@delali/narsil 0.3.1-next.103 → 0.3.1-next.107
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-RHG4O77A.mjs → chunk-J3QB4LBD.mjs} +1 -0
- package/dist/browser/{chunk-6DHYBN7M.mjs → chunk-JJKVYLL3.mjs} +3 -2
- package/dist/browser/{chunk-CRNQAT2Q.mjs → chunk-NNQPZPTB.mjs} +5 -5
- package/dist/browser/{chunk-MM7WIDI5.mjs → chunk-OKZGAJEF.mjs} +111 -10
- package/dist/browser/{chunk-AQZDOKDT.mjs → chunk-OL7S2KLL.mjs} +2 -2
- package/dist/browser/{chunk-74OXU3R2.mjs → chunk-PA56PRWX.mjs} +2 -2
- package/dist/browser/{chunk-YMDH3JID.mjs → chunk-WZUSMF7A.mjs} +13 -13
- package/dist/browser/{durability-wiring-SGY7CZHD.mjs → durability-wiring-HFQULBSA.mjs} +6 -6
- package/dist/browser/{module-QJ55JCJ6.mjs → module-VROKZ7IZ.mjs} +20 -16
- package/dist/browser/{restore-queue-LPKB6QJR.mjs → restore-queue-EU77FRCV.mjs} +1 -1
- package/dist/browser/{runtime-7ZAHCHWR.mjs → runtime-JQYPNOK6.mjs} +1 -1
- package/dist/browser/{snapshot-R7GY6PAG.mjs → snapshot-G77LQBZX.mjs} +7 -7
- package/dist/browser/{write-GFFRUCJD.mjs → write-RUC64JIH.mjs} +5 -5
- package/dist/{capabilities-ByQRMOx-.d.ts → capabilities-ByKPha_q.d.ts} +2 -2
- package/dist/{chunk-PC2G76VW.mjs → chunk-2MNJ2HX7.mjs} +2 -2
- package/dist/{chunk-EMRMGYRE.mjs → chunk-3BRFOMGX.mjs} +2 -2
- package/dist/{chunk-LPQOEU5M.mjs → chunk-5FPMDU54.mjs} +38 -9
- package/dist/{chunk-BWJVNZPR.mjs → chunk-6JUOMMHQ.mjs} +1 -0
- package/dist/{chunk-LKOB5COA.mjs → chunk-77SO7G55.mjs} +1 -1
- package/dist/{chunk-JTNDFNDP.mjs → chunk-7IBX2LRA.mjs} +12 -28
- package/dist/{chunk-UTG5YNXV.mjs → chunk-AEF2O7B4.mjs} +1 -1
- package/dist/{chunk-JZVARCRZ.mjs → chunk-BRIOLMIX.mjs} +2 -2
- package/dist/{chunk-YVDYMXR2.mjs → chunk-CKNOGER5.mjs} +22 -22
- package/dist/{chunk-5WT7BKQZ.mjs → chunk-CYHQNM3T.mjs} +1 -1
- package/dist/{chunk-U4436DZG.mjs → chunk-DNKM67DF.mjs} +2 -2
- package/dist/chunk-DUWYU4D5.mjs +19 -0
- package/dist/{chunk-ZKWYWW4Y.mjs → chunk-FABI2JA7.mjs} +1 -1
- package/dist/{chunk-VI4R6W25.mjs → chunk-FEOLYA2Y.mjs} +6 -6
- package/dist/{chunk-BQ2JSVAG.mjs → chunk-G6YATIRT.mjs} +113 -10
- package/dist/chunk-HAQUJYMN.mjs +344 -0
- package/dist/{chunk-TZRWRIZ6.mjs → chunk-HNAQNAFS.mjs} +3 -3
- package/dist/{chunk-64MXRJZ7.mjs → chunk-IA3H54X4.mjs} +2 -2
- package/dist/{chunk-TXV375YK.mjs → chunk-IA6I5U36.mjs} +1 -1
- package/dist/{chunk-SDFIFGOL.mjs → chunk-IZLM2OOO.mjs} +4 -4
- package/dist/{chunk-2RIRGOUL.mjs → chunk-JSSGO4B5.mjs} +1 -1
- package/dist/{chunk-5JNA5SKS.mjs → chunk-KOCHOOS5.mjs} +177 -8
- package/dist/{chunk-XKLUOODW.mjs → chunk-M5EZVXIM.mjs} +2 -2
- package/dist/{chunk-YEEQHT4V.mjs → chunk-MJIJG4YT.mjs} +2 -2
- package/dist/{chunk-75XIEF6H.mjs → chunk-MZW4V4DS.mjs} +1 -1
- package/dist/{chunk-IQYUFGQ6.mjs → chunk-NRARRUKN.mjs} +7 -7
- package/dist/{chunk-S7FL6UAH.mjs → chunk-OKZPYJZX.mjs} +3 -3
- package/dist/{chunk-HMPYTBBN.mjs → chunk-QA6F5MML.mjs} +6 -6
- package/dist/{chunk-ZM7KU4YW.mjs → chunk-QALAFGF5.mjs} +1 -1
- package/dist/{chunk-46D6JQIG.mjs → chunk-RI5VNFAI.mjs} +2 -2
- package/dist/{chunk-PNEYIHA4.mjs → chunk-RPIE4QCL.mjs} +0 -1
- package/dist/{chunk-XRTFWD3E.mjs → chunk-UM6Z7AIP.mjs} +3 -3
- package/dist/{chunk-YYQIODMF.mjs → chunk-VHPVBJOI.mjs} +2 -2
- package/dist/{chunk-HMFNFVP7.mjs → chunk-VJS4JFBQ.mjs} +2 -1
- package/dist/{chunk-RFVUDM5E.mjs → chunk-VVDQNCOG.mjs} +2 -15
- package/dist/{chunk-OEYI3KRB.mjs → chunk-VVFKFHWE.mjs} +3 -3
- package/dist/{chunk-AHVWSZTY.mjs → chunk-VWFFCDOL.mjs} +6 -6
- package/dist/{chunk-SM7S3HAP.mjs → chunk-WCJJCBR4.mjs} +9 -9
- package/dist/{chunk-EWZLIYHV.mjs → chunk-WCNN2PLX.mjs} +1 -1
- package/dist/{chunk-OM362BRO.mjs → chunk-WXVTQ6NO.mjs} +3 -3
- package/dist/chunk-ZXZ26WSO.mjs +14 -0
- package/dist/{client-BOStAkc5.d.ts → client-DI-xIXgR.d.ts} +2 -2
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +1 -0
- package/dist/{config-H6SGzbPH.d.ts → config-BZ_e3X8w.d.ts} +8 -5
- package/dist/{config-Cjvzbs_j.d.ts → config-DL_bDDD8.d.ts} +1 -1
- package/dist/direct-executor-BPBD2PBK.mjs +25 -0
- package/dist/distribution/coordinator/etcd.d.ts +1 -1
- package/dist/distribution/coordinator/etcd.mjs +3 -1
- package/dist/distribution/coordinator/in-memory.d.ts +1 -1
- package/dist/distribution/transport/grpc.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +5 -4
- package/dist/distribution/transport/in-memory.d.ts +2 -2
- package/dist/distribution/transport/in-memory.mjs +3 -2
- package/dist/distribution/transport/tcp.d.ts +2 -2
- package/dist/distribution/transport/tcp.mjs +4 -3
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +1818 -2425
- package/dist/{durability-wiring-2LOZIIJN.mjs → durability-wiring-AZL4EFLO.mjs} +27 -26
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-rC0vjjY-.d.ts → engine-D_SYDsId.d.ts} +1 -1
- package/dist/{events-DqOIg5xa.d.ts → events-C7_dboUr.d.ts} +1 -0
- package/dist/{index-Bkdt8nDw.d.ts → index-Cl5qQauj.d.ts} +6 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +19 -18
- package/dist/{module-H37P44S6.mjs → module-6EY7GW2W.mjs} +25 -21
- package/dist/partial-words.mjs +6 -6
- package/dist/pattern.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +23 -22
- package/dist/react.d.ts +6 -6
- package/dist/react.mjs +1 -0
- package/dist/{rerank-K7C4WZFG.mjs → rerank-WVFFZV76.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/{restore-queue-KVCG36SI.mjs → restore-queue-DDXFDP7U.mjs} +1 -1
- package/dist/{runtime-6Y4ZYXOG.mjs → runtime-AVUUCJWQ.mjs} +5 -5
- package/dist/server.d.ts +10 -10
- package/dist/server.mjs +30 -17
- package/dist/{snapshot-YQ2CIFOZ.mjs → snapshot-IDAM65JO.mjs} +29 -28
- package/dist/synonyms.mjs +3 -3
- package/dist/{tasks-CwPTz-tP.d.ts → tasks-BhjQZ8Qf.d.ts} +1 -1
- package/dist/{thread-5IYXJDWO.mjs → thread-LMSYLCPI.mjs} +16 -14
- package/dist/{types-2qoitTXg.d.ts → types-Ck97nB3D.d.ts} +1 -1
- package/dist/{types-Cz5okLml.d.ts → types-DvncmvuQ.d.ts} +11 -0
- package/dist/vector/search-worker.d.ts +2 -0
- package/dist/vector/search-worker.mjs +5 -5
- package/dist/workers/entry.mjs +7 -6
- package/dist/{write-7UCWA3GX.mjs → write-3LIFIGOL.mjs} +21 -20
- package/package.json +7 -7
- package/dist/chunk-747OHOUA.mjs +0 -11
- package/dist/chunk-BOFBLJFZ.mjs +0 -209
- package/dist/direct-executor-QG7LEP6P.mjs +0 -24
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { normalizeSort, requireMatchingCursor, encodePageCursor, decodePageCursor, projectionKeepsField, resolveProjection, clampRowCount, sortSignatureOf, requireSortableFields, fanOutQuery, requireWithinResultWindow, sortModesOf, applySorting, applyPagination, countsWithoutScores, fanOutMatchCount, FNV_OFFSET_BASIS, validatedFilterOf, createPatternWorkMeter, partialWordsToHighlight, partialWordHighlighter, pruneStatsToQueryTerms, everyValueFacetConfig, fulltextMatches, mergeFacets, applyPartitionFiltersBitset, fnv1aContinue, partitionsIn, fnv1aContinueTaggedNumbers, undeclaredFieldOnStrictIndex } from './chunk-
|
|
1
|
+
import { normalizeSort, requireMatchingCursor, encodePageCursor, decodePageCursor, projectionKeepsField, resolveProjection, clampRowCount, sortSignatureOf, requireSortableFields, fanOutQuery, requireWithinResultWindow, sortModesOf, applySorting, applyPagination, countsWithoutScores, fanOutMatchCount, FNV_OFFSET_BASIS, validatedFilterOf, createPatternWorkMeter, partialWordsToHighlight, partialWordHighlighter, pruneStatsToQueryTerms, everyValueFacetConfig, fulltextMatches, mergeFacets, applyPartitionFiltersBitset, fnv1aContinue, partitionsIn, fnv1aContinueTaggedNumbers, undeclaredFieldOnStrictIndex } from './chunk-FEOLYA2Y.mjs';
|
|
2
2
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN, MAX_DOC_ID_LENGTH, DEFAULT_LIMIT, DEFAULT_SUGGEST_LIMIT, MAX_SUGGEST_LIMIT, MAX_SUGGEST_SCATTER_LIMIT, ABSOLUTE_WINDOWS_PATH_PATTERN, MODULE_URL_SCHEME_PATTERN, DEFAULT_OFFSET } from './chunk-LXWDQLTW.mjs';
|
|
3
3
|
import { MIN_OVERSAMPLE, MAX_RENUMBERED_SEARCH_ATTEMPTS } from './chunk-QSK35UC2.mjs';
|
|
4
|
-
import { flattenSchema, partialFieldsOf } from './chunk-
|
|
4
|
+
import { flattenSchema, partialFieldsOf } from './chunk-VVFKFHWE.mjs';
|
|
5
5
|
import { DEFAULT_MAX_PER_GROUP, DEFAULT_FUZZY_PREFIX_LENGTH, DEFAULT_LINEAR_ALPHA, MIN_LINEAR_ALPHA, MAX_LINEAR_ALPHA, DEFAULT_RANK_CONSTANT, MIN_RANK_CONSTANT, RESULT_WINDOW, MAX_TOLERANCE, MAX_PREFIX_LENGTH } from './chunk-E74YLAIG.mjs';
|
|
6
6
|
import { fuzzyTermMatches } from './chunk-GES7U2PM.mjs';
|
|
7
|
-
import { isStringValuedBase, parsedTypeOf, isWordIndexedFieldType } from './chunk-
|
|
8
|
-
import { tokenize } from './chunk-
|
|
7
|
+
import { isStringValuedBase, parsedTypeOf, isWordIndexedFieldType } from './chunk-77SO7G55.mjs';
|
|
8
|
+
import { tokenize } from './chunk-AEF2O7B4.mjs';
|
|
9
9
|
import { compareComparableKeys } from './chunk-R6A773WK.mjs';
|
|
10
10
|
import { compareCodePoints, holdsUnpairedSurrogate } from './chunk-YTJCGKM4.mjs';
|
|
11
11
|
import { MIN_PATTERN_VALUE_LIMIT, MAX_PATTERN_VALUE_LIMIT, isGeopointOrVectorType, VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
12
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
12
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
13
13
|
|
|
14
14
|
// src/search/cursor-binding.ts
|
|
15
15
|
var ABSENT_TAG = 0;
|
|
@@ -1401,13 +1401,13 @@ function requireCursorDepth(cursor, signature, binding) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
function hybridSearchOf(params, context, limit, offset, cursorDepth) {
|
|
1403
1403
|
if ((params.hybrid?.depth ?? null) === null) return executeHybridSearch(params, context, limit, offset, cursorDepth);
|
|
1404
|
-
return import('./runtime-
|
|
1404
|
+
return import('./runtime-AVUUCJWQ.mjs').then(
|
|
1405
1405
|
(runtime) => runtime.searchFixedDepthHybrid(params, context, { cursorDepth: cursorDepth ?? 0, offset, limit }, runtimeHost)
|
|
1406
1406
|
);
|
|
1407
1407
|
}
|
|
1408
1408
|
function executeQuery(request, callerContext) {
|
|
1409
1409
|
if (request.rerank === void 0) return runQuery(request, callerContext);
|
|
1410
|
-
return import('./runtime-
|
|
1410
|
+
return import('./runtime-AVUUCJWQ.mjs').then(
|
|
1411
1411
|
(runtime) => runtime.executeRerankedQuery(request, callerContext, executeQuery, runtimeHost)
|
|
1412
1412
|
);
|
|
1413
1413
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR } from './chunk-P36MUFEJ.mjs';
|
|
2
|
-
import { readSharedConfigFields, restoredEmbedding, restoredPartitionConfig } from './chunk-
|
|
3
|
-
import { generateId, getLanguage } from './chunk-
|
|
2
|
+
import { readSharedConfigFields, restoredEmbedding, restoredPartitionConfig } from './chunk-3BRFOMGX.mjs';
|
|
3
|
+
import { generateId, getLanguage } from './chunk-QALAFGF5.mjs';
|
|
4
4
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-LXWDQLTW.mjs';
|
|
5
5
|
import { decodeSynonymRules } from './chunk-7X5JST5L.mjs';
|
|
6
6
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
7
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
7
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
8
8
|
import { encode, decode } from '@msgpack/msgpack';
|
|
9
9
|
|
|
10
10
|
// src/narsil/write-blocks.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead, VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-
|
|
2
|
-
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, readSegmentFile, manifestKey, segmentsPrefix, readListedFile, requireListedChecksum, vectorFileKey, graphPartKey } from './chunk-
|
|
3
|
-
import { VERSION, rulesOfStoredSynonyms, openChecksummedEnvelope, readHeader, HEADER_SIZE, crc32, engineVersionParts, writeHeader, packChecksummedEnvelope } from './chunk-
|
|
4
|
-
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-
|
|
5
|
-
import { flattenSchema, requireValidFieldTypes, isQuantizationMode, isStorageMode } from './chunk-
|
|
1
|
+
import { decodeVectorGraphPartPayload, assembleGraphParts, decodeVectorFilePayload, countDead, VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-VHPVBJOI.mjs';
|
|
2
|
+
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, readSegmentFile, manifestKey, segmentsPrefix, readListedFile, requireListedChecksum, vectorFileKey, graphPartKey } from './chunk-WCJJCBR4.mjs';
|
|
3
|
+
import { VERSION, rulesOfStoredSynonyms, openChecksummedEnvelope, readHeader, HEADER_SIZE, crc32, engineVersionParts, writeHeader, packChecksummedEnvelope } from './chunk-CKNOGER5.mjs';
|
|
4
|
+
import { decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays } from './chunk-7IBX2LRA.mjs';
|
|
5
|
+
import { flattenSchema, requireValidFieldTypes, isQuantizationMode, isStorageMode } from './chunk-VVFKFHWE.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES, VALID_HNSW_METRICS } from './chunk-U476IXKQ.mjs';
|
|
7
7
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
8
8
|
import { VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
9
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
9
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
10
10
|
import { decode, encode } from '@msgpack/msgpack';
|
|
11
11
|
|
|
12
12
|
// src/engine/durability-metadata.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseSynonymRules, encodeSynonymRules, decodeSynonymRules, SYNONYM_EXPANSION_CACHE_ENTRIES, SYNONYMS_ADDED_PER_QUERY } from './chunk-7X5JST5L.mjs';
|
|
2
|
-
import { encodeStringBlob, tokenize, encodeLookupKey } from './chunk-
|
|
2
|
+
import { encodeStringBlob, tokenize, encodeLookupKey } from './chunk-AEF2O7B4.mjs';
|
|
3
3
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
5
5
|
|
|
6
6
|
// src/analysis/registry.ts
|
|
7
7
|
var tokenizers = /* @__PURE__ */ new Map();
|
|
@@ -33,7 +33,6 @@ var ReplicationMessageTypes = {
|
|
|
33
33
|
SNAPSHOT_START: "replication.snapshot_start",
|
|
34
34
|
SNAPSHOT_CHUNK: "replication.snapshot_chunk",
|
|
35
35
|
SNAPSHOT_END: "replication.snapshot_end",
|
|
36
|
-
SNAPSHOT_SYNC_REQUEST: "replication.snapshot_sync_request",
|
|
37
36
|
INSYNC_ADD: "replication.insync_add",
|
|
38
37
|
INSYNC_REMOVE: "replication.insync_remove",
|
|
39
38
|
INSYNC_CONFIRM: "replication.insync_confirm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readMetadataEnvelope } from './chunk-
|
|
2
|
-
import { readWalSegments, durableRecordMissing, checkpointLastSeqNo, SEGMENT_HEADER_SIZE } from './chunk-
|
|
3
|
-
import { applyDeleteEntry, applyIndexEntry } from './chunk-
|
|
1
|
+
import { readMetadataEnvelope } from './chunk-QA6F5MML.mjs';
|
|
2
|
+
import { readWalSegments, durableRecordMissing, checkpointLastSeqNo, SEGMENT_HEADER_SIZE } from './chunk-WCJJCBR4.mjs';
|
|
3
|
+
import { applyDeleteEntry, applyIndexEntry } from './chunk-IZLM2OOO.mjs';
|
|
4
4
|
|
|
5
5
|
// src/persistence/durability/recovery.ts
|
|
6
6
|
async function listPersistedIndexes(directory) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { osqRecordBytes } from './chunk-37CD3OKS.mjs';
|
|
2
|
-
import { MAX_M, EARLIER_RELEASE_MIN_M, MIN_M } from './chunk-
|
|
3
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
2
|
+
import { MAX_M, EARLIER_RELEASE_MIN_M, MIN_M } from './chunk-VJS4JFBQ.mjs';
|
|
3
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
4
4
|
|
|
5
5
|
// src/vector/vector-index/dead-bits.ts
|
|
6
6
|
var NO_LIVE_VECTOR_AT_POSITION = -1;
|
|
@@ -10,5 +10,6 @@ var FARTHEST_REJECTED_LINKS_KEPT = 1;
|
|
|
10
10
|
var COMPACTION_TOMBSTONE_RATIO = 0.1;
|
|
11
11
|
var COMPACTION_ABSOLUTE_THRESHOLD = 1e3;
|
|
12
12
|
var DEFAULT_EF_SEARCH = 50;
|
|
13
|
+
var NEAREST_LINK_FALLBACK_HOSTS = 4;
|
|
13
14
|
|
|
14
|
-
export { COMPACTION_ABSOLUTE_THRESHOLD, COMPACTION_TOMBSTONE_RATIO, DEFAULT_EF_SEARCH, EARLIER_RELEASE_MIN_M, FARTHEST_REJECTED_LINKS_KEPT, INITIAL_LIST_CAPACITY, INITIAL_UPPER_SLOTS, MAX_LAYER_CAP, MAX_M, MIN_M, PLACEMENT_ROOM_REQUESTS };
|
|
15
|
+
export { COMPACTION_ABSOLUTE_THRESHOLD, COMPACTION_TOMBSTONE_RATIO, DEFAULT_EF_SEARCH, EARLIER_RELEASE_MIN_M, FARTHEST_REJECTED_LINKS_KEPT, INITIAL_LIST_CAPACITY, INITIAL_UPPER_SLOTS, MAX_LAYER_CAP, MAX_M, MIN_M, NEAREST_LINK_FALLBACK_HOSTS, PLACEMENT_ROOM_REQUESTS };
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
+
import { IDLE_HEAP_CLEANUP_CHECK_MS, IDLE_HEAP_CLEANUP_MAX_UTILISATION, IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES, IDLE_HEAP_CLEANUP_QUIET_CHECKS, IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES } from './chunk-ZXZ26WSO.mjs';
|
|
1
2
|
import { performance } from 'perf_hooks';
|
|
2
3
|
import { setFlagsFromString, getHeapStatistics } from 'v8';
|
|
3
4
|
import { runInNewContext } from 'vm';
|
|
4
5
|
|
|
5
|
-
// src/runtime/idle-heap-cleanup.ts
|
|
6
|
-
|
|
7
|
-
// src/runtime/constants.ts
|
|
8
|
-
var IDLE_HEAP_CLEANUP_CHECK_MS = 1e3;
|
|
9
|
-
var IDLE_HEAP_CLEANUP_QUIET_CHECKS = 2;
|
|
10
|
-
var IDLE_HEAP_CLEANUP_MAX_UTILISATION = 0.1;
|
|
11
|
-
var IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES = 4 * 1024 * 1024;
|
|
12
|
-
var IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES = 64 * 1024 * 1024;
|
|
13
|
-
var REFUSAL_COLLECTION_MIN_INTERVAL_MS = 1e3;
|
|
14
|
-
var REFUSAL_COLLECTION_TIME_MULTIPLE = 10;
|
|
15
|
-
var REFUSAL_YOUNG_COLLECTION_MIN_INTERVAL_MS = 10;
|
|
16
|
-
var HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.75;
|
|
17
|
-
var HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.65;
|
|
18
|
-
|
|
19
6
|
// src/runtime/idle-heap-cleaner.ts
|
|
20
7
|
function createIdleHeapCleaner(deps) {
|
|
21
8
|
let quietChecks = 0;
|
|
@@ -108,4 +95,4 @@ function startIdleHeapCleanup() {
|
|
|
108
95
|
return () => clearInterval(timer);
|
|
109
96
|
}
|
|
110
97
|
|
|
111
|
-
export {
|
|
98
|
+
export { collectAndReturnPages, collectYoungGeneration, startIdleHeapCleanup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MAX_DOCUMENT_ENCODING_DEPTH, DOCUMENT_ENCODER_RETAINED_BUFFER_BYTES, DOCUMENT_REPLY_ENVELOPE_DEPTH } from './chunk-U476IXKQ.mjs';
|
|
2
|
-
import { EARLIER_RELEASE_MIN_M, MIN_M, MAX_M } from './chunk-
|
|
3
|
-
import { isWordIndexedBase, parseFieldType } from './chunk-
|
|
2
|
+
import { EARLIER_RELEASE_MIN_M, MIN_M, MAX_M } from './chunk-VJS4JFBQ.mjs';
|
|
3
|
+
import { isWordIndexedBase, parseFieldType } from './chunk-77SO7G55.mjs';
|
|
4
4
|
import { compareCodePoints, holdsUnpairedSurrogate, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
5
5
|
import { DEFAULT_PATTERN_VALUE_LIMIT, isPlainObject, MAX_TEXT_FIELDS, MAX_VECTOR_DIMENSION, MAX_DOCUMENT_BYTES, MAX_NESTING_DEPTH, PROTOTYPE_POLLUTION_KEYS, FIELD_NAME_PATTERN, RESERVED_ROOT_FIELDS, MAX_DOCUMENT_NESTING_DEPTH, VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
6
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
6
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
7
7
|
import { Encoder, encode } from '@msgpack/msgpack';
|
|
8
8
|
|
|
9
9
|
// src/schema/validator/schema.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { vectorsPerFile } from './chunk-
|
|
2
|
-
import { writeLiveVectors, decodeSegmentManifest, openManifestPayload, listedKeysOf, decodeManifestPayload, SINGLE_NODE_PRIMARY_TERM } from './chunk-
|
|
3
|
-
import { vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-
|
|
4
|
-
import { writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, commitCheckpointManifest, manifestKey, manifestFileRefs, partitionContentsOf } from './chunk-
|
|
5
|
-
import { HEADER_SIZE } from './chunk-
|
|
1
|
+
import { vectorsPerFile } from './chunk-HNAQNAFS.mjs';
|
|
2
|
+
import { writeLiveVectors, decodeSegmentManifest, openManifestPayload, listedKeysOf, decodeManifestPayload, SINGLE_NODE_PRIMARY_TERM } from './chunk-QA6F5MML.mjs';
|
|
3
|
+
import { vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION } from './chunk-VHPVBJOI.mjs';
|
|
4
|
+
import { writeCheckpointSegments, DEFAULT_COMPACTION_THRESHOLD, commitCheckpointManifest, manifestKey, manifestFileRefs, partitionContentsOf } from './chunk-WCJJCBR4.mjs';
|
|
5
|
+
import { HEADER_SIZE } from './chunk-CKNOGER5.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
7
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
7
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
8
8
|
|
|
9
9
|
// src/persistence/archive/memory-store.ts
|
|
10
10
|
function joined(chunks) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes } from './chunk-
|
|
1
|
+
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, restoreVectorFields, KEYWORD_SEGMENT_PAYLOAD_VERSION, littleEndianBytes } from './chunk-IZLM2OOO.mjs';
|
|
2
2
|
import { WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
|
|
3
|
-
import { ReplicationMessageTypes } from './chunk-
|
|
4
|
-
import { packChecksummedEnvelope, crc32, openChecksummedEnvelope, reconstructSchemaFromMetadata, HEADER_SIZE, prepareDocumentVectors } from './chunk-
|
|
5
|
-
import { freezeSegmentShared, createSharedFrozenSegment, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, selectionKeeps, decodeMapWithoutFields, shareSegmentArrays, segmentArraysOf, mergeSegmentContents } from './chunk-
|
|
6
|
-
import { fnv1a, isCompositePartition, survivorDocumentsOf, partitionStateOf } from './chunk-
|
|
7
|
-
import { generateId, getLanguage } from './chunk-
|
|
8
|
-
import { extractVectorFieldsFromSchema, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-
|
|
3
|
+
import { ReplicationMessageTypes } from './chunk-RPIE4QCL.mjs';
|
|
4
|
+
import { packChecksummedEnvelope, crc32, openChecksummedEnvelope, reconstructSchemaFromMetadata, HEADER_SIZE, prepareDocumentVectors } from './chunk-CKNOGER5.mjs';
|
|
5
|
+
import { freezeSegmentShared, createSharedFrozenSegment, createFrozenSegment, createPartitionManager, createPartitionRouter, buildSegmentPayload, resolvePartitionInsertOptions, selectionKeeps, decodeMapWithoutFields, shareSegmentArrays, segmentArraysOf, mergeSegmentContents } from './chunk-7IBX2LRA.mjs';
|
|
6
|
+
import { fnv1a, isCompositePartition, survivorDocumentsOf, partitionStateOf } from './chunk-FEOLYA2Y.mjs';
|
|
7
|
+
import { generateId, getLanguage } from './chunk-QALAFGF5.mjs';
|
|
8
|
+
import { extractVectorFieldsFromSchema, partialFieldsOf, messagePackUpperBoundBytes } from './chunk-VVFKFHWE.mjs';
|
|
9
9
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
10
|
-
import { resolveIndexAnalysis } from './chunk-
|
|
11
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
10
|
+
import { resolveIndexAnalysis } from './chunk-RI5VNFAI.mjs';
|
|
11
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
12
12
|
import { encode, decode } from '@msgpack/msgpack';
|
|
13
13
|
|
|
14
14
|
// src/persistence/durability/constants.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MIN_HYBRID_DEPTH, MAX_HYBRID_DEPTH } from './chunk-E74YLAIG.mjs';
|
|
2
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-6JUOMMHQ.mjs';
|
|
3
3
|
|
|
4
4
|
// src/search/hybrid-depth.ts
|
|
5
5
|
function fixedHybridDepthOf(hybrid) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { flattenSchema } from './chunk-
|
|
1
|
+
import { flattenSchema } from './chunk-VVFKFHWE.mjs';
|
|
2
2
|
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunk-E74YLAIG.mjs';
|
|
3
3
|
import { fuzzyTermMatches } from './chunk-GES7U2PM.mjs';
|
|
4
|
-
import { isWordIndexedBase } from './chunk-
|
|
5
|
-
import { encodeStringBlob, tokenize, resolveStopWords, transformToken, visitTokens, visitSurfaceSpellings } from './chunk-
|
|
4
|
+
import { isWordIndexedBase } from './chunk-77SO7G55.mjs';
|
|
5
|
+
import { encodeStringBlob, tokenize, resolveStopWords, transformToken, visitTokens, visitSurfaceSpellings } from './chunk-AEF2O7B4.mjs';
|
|
6
6
|
import { compareCodePoints, codePointCount } from './chunk-YTJCGKM4.mjs';
|
|
7
7
|
|
|
8
8
|
// src/core/partition/suggestions.ts
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/runtime/constants.ts
|
|
2
|
+
var IDLE_HEAP_CLEANUP_CHECK_MS = 1e3;
|
|
3
|
+
var IDLE_HEAP_CLEANUP_QUIET_CHECKS = 2;
|
|
4
|
+
var IDLE_HEAP_CLEANUP_MAX_UTILISATION = 0.1;
|
|
5
|
+
var IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES = 4 * 1024 * 1024;
|
|
6
|
+
var IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES = 64 * 1024 * 1024;
|
|
7
|
+
var REFUSAL_COLLECTION_MIN_INTERVAL_MS = 1e3;
|
|
8
|
+
var REFUSAL_COLLECTION_TIME_MULTIPLE = 10;
|
|
9
|
+
var REFUSAL_YOUNG_COLLECTION_MIN_INTERVAL_MS = 10;
|
|
10
|
+
var HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.75;
|
|
11
|
+
var HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE = 0.65;
|
|
12
|
+
var PROCESS_LIMIT_REFRESH_INTERVAL_MS = 1e3;
|
|
13
|
+
|
|
14
|
+
export { HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, IDLE_HEAP_CLEANUP_CHECK_MS, IDLE_HEAP_CLEANUP_MAX_GROWTH_BYTES, IDLE_HEAP_CLEANUP_MAX_UTILISATION, IDLE_HEAP_CLEANUP_MIN_RECLAIMABLE_BYTES, IDLE_HEAP_CLEANUP_QUIET_CHECKS, PROCESS_LIMIT_REFRESH_INTERVAL_MS, REFUSAL_COLLECTION_MIN_INTERVAL_MS, REFUSAL_COLLECTION_TIME_MULTIPLE, REFUSAL_YOUNG_COLLECTION_MIN_INTERVAL_MS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as PartitionConfig, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-4W_7tk1f.js';
|
|
2
|
-
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult } from './events-
|
|
2
|
+
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult } from './events-C7_dboUr.js';
|
|
3
3
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
+
import { e as TaskRecord, M as MemoryStatsResponse, b as ImportResult, H as HttpIndexConfig, c as TaskListQuery, T as TaskListPage } from './tasks-BhjQZ8Qf.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This is the `fetch` implementation the client sends every request through.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-
|
|
2
|
-
export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
3
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-
|
|
4
|
-
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-
|
|
1
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-C7_dboUr.js';
|
|
2
|
+
export { A as ASYNC_IMPORT_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-ByKPha_q.js';
|
|
3
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, H as HttpIndexConfig, I as ImportError, b as ImportResult, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, d as TaskProgress, e as TaskRecord, f as TaskStatus, g as TaskType } from './tasks-BhjQZ8Qf.js';
|
|
4
|
+
export { A as AdminOperations, B as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, a as IndexOperations, N as NarsilClient, b as NarsilClientOptions, P as PutResult, R as RequestOptions, S as SearchOperations, c as ServerOperations, d as ServerVersion, T as TaskOperations, W as WaitForTaskOptions, e as createNarsilClient } from './client-DI-xIXgR.js';
|
|
5
5
|
import './schema-4W_7tk1f.js';
|
|
6
6
|
import './adapters-BQFQ4PRz.js';
|
|
7
7
|
import './synonyms-CpOAHPa-.js';
|
|
8
|
-
import './config-
|
|
9
|
-
import './config-
|
|
10
|
-
import './index-
|
|
11
|
-
import './types-
|
|
8
|
+
import './config-BZ_e3X8w.js';
|
|
9
|
+
import './config-DL_bDDD8.js';
|
|
10
|
+
import './index-Cl5qQauj.js';
|
|
11
|
+
import './types-DvncmvuQ.js';
|
package/dist/client.mjs
CHANGED
|
@@ -68,6 +68,7 @@ var ErrorCodes = {
|
|
|
68
68
|
REPLICATION_ENTRY_INVALID: "REPLICATION_ENTRY_INVALID",
|
|
69
69
|
REPLICATION_INSYNC_REMOVAL_FAILED: "REPLICATION_INSYNC_REMOVAL_FAILED",
|
|
70
70
|
REPLICATION_ROLLBACK_FAILED: "REPLICATION_ROLLBACK_FAILED",
|
|
71
|
+
REPLICATION_OUTCOME_UNKNOWN: "REPLICATION_OUTCOME_UNKNOWN",
|
|
71
72
|
REPLICATION_LOG_FULL: "REPLICATION_LOG_FULL",
|
|
72
73
|
REPLICATION_ENTRY_CORRUPT: "REPLICATION_ENTRY_CORRUPT",
|
|
73
74
|
REPLICATION_SNAPSHOT_CORRUPT: "REPLICATION_SNAPSHOT_CORRUPT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NarsilConfig } from './config-
|
|
2
|
-
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-
|
|
3
|
-
import { N as NodeTransport } from './types-
|
|
1
|
+
import { N as NarsilConfig } from './config-DL_bDDD8.js';
|
|
2
|
+
import { A as AllocationTable, N as NodeRole, a as NodeRegistration, C as ClusterCoordinator, b as NodeCapacity } from './index-Cl5qQauj.js';
|
|
3
|
+
import { N as NodeTransport } from './types-DvncmvuQ.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* How much replication history a primary keeps, and how many replicas have to
|
|
@@ -191,8 +191,11 @@ interface ClusterNodeConfig {
|
|
|
191
191
|
* When this node counts as full, which is what makes the cluster refuse inserts and updates to every index with a
|
|
192
192
|
* copy on the node.
|
|
193
193
|
*
|
|
194
|
-
* The node measures its process memory
|
|
195
|
-
*
|
|
194
|
+
* The node measures its process memory and its main thread's heap once a second, and it compares the heap with the
|
|
195
|
+
* heap limit. It compares the process memory with the container's memory limit where a container sets one. Without a
|
|
196
|
+
* container limit, a node on Linux compares it with its own resident memory plus the memory that the host reports as
|
|
197
|
+
* available, up to the host's total memory, so that the memory that other processes take counts against the node. A
|
|
198
|
+
* node on any other system compares it with the host's total memory. The node counts as full once either figure passes
|
|
196
199
|
* `blockWritesAbove` of its limit, and as clear again once both fall below `resumeWritesBelow`, so that a node hovering
|
|
197
200
|
* at the threshold does not switch writes on and off. Removes and searches go through while the node is full, which is
|
|
198
201
|
* how an operator frees memory.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './events-
|
|
2
|
+
import { Q as QueryParams, e as QueryResult, f as NarsilEventHandlers } from './events-C7_dboUr.js';
|
|
3
3
|
import { I as IndexConfig, A as AnyDocument } from './schema-4W_7tk1f.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { createDirectExecutor } from './chunk-7IBX2LRA.mjs';
|
|
2
|
+
import './chunk-FEOLYA2Y.mjs';
|
|
3
|
+
import './chunk-QALAFGF5.mjs';
|
|
4
|
+
import './chunk-5FPMDU54.mjs';
|
|
5
|
+
import './chunk-TGP5M5R7.mjs';
|
|
6
|
+
import './chunk-U2BKYEC7.mjs';
|
|
7
|
+
import './chunk-2MNJ2HX7.mjs';
|
|
8
|
+
import './chunk-WQBCBKY3.mjs';
|
|
9
|
+
import './chunk-WXVTQ6NO.mjs';
|
|
10
|
+
import './chunk-VVFKFHWE.mjs';
|
|
11
|
+
import './chunk-U476IXKQ.mjs';
|
|
12
|
+
import './chunk-E74YLAIG.mjs';
|
|
13
|
+
import './chunk-VJS4JFBQ.mjs';
|
|
14
|
+
import './chunk-GES7U2PM.mjs';
|
|
15
|
+
import './chunk-77SO7G55.mjs';
|
|
16
|
+
import './chunk-RI5VNFAI.mjs';
|
|
17
|
+
import './chunk-X5CV2E2B.mjs';
|
|
18
|
+
import './chunk-7X5JST5L.mjs';
|
|
19
|
+
import './chunk-AEF2O7B4.mjs';
|
|
20
|
+
import './chunk-R6A773WK.mjs';
|
|
21
|
+
import './chunk-YTJCGKM4.mjs';
|
|
22
|
+
import './chunk-IA6I5U36.mjs';
|
|
23
|
+
import './chunk-ZXZ26WSO.mjs';
|
|
24
|
+
import './chunk-L5ORED7V.mjs';
|
|
25
|
+
import './chunk-6JUOMMHQ.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_NODE_ID_LENGTH, CONTROLLER_LEASE_KEY, MAX_WATCHERS } from '../../chunk-44W3CBNG.mjs';
|
|
2
2
|
import '../../chunk-R6A773WK.mjs';
|
|
3
3
|
import { compareCodePoints } from '../../chunk-YTJCGKM4.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes, describeError } from '../../chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes, describeError } from '../../chunk-6JUOMMHQ.mjs';
|
|
5
5
|
import { encode, decode } from '@msgpack/msgpack';
|
|
6
6
|
|
|
7
7
|
// src/distribution/coordinator/etcd/constants.ts
|
|
@@ -12,6 +12,7 @@ var ETCD_MAX_RESPONSE_BYTES = 2147483647;
|
|
|
12
12
|
var RECONNECT_FIRST_DELAY_MS = 100;
|
|
13
13
|
var RECONNECT_LONGEST_DELAY_MS = 5e3;
|
|
14
14
|
var ETCD_START_PROBE_TIMEOUT_MS = 1e4;
|
|
15
|
+
var ETCD_CALL_TIMEOUT_MS = 5e3;
|
|
15
16
|
|
|
16
17
|
// src/distribution/coordinator/etcd/types.ts
|
|
17
18
|
var DEFAULT_ETCD_CONFIG = {
|
|
@@ -744,6 +745,7 @@ async function createEtcdCoordinator(config) {
|
|
|
744
745
|
const client = new etcd3Module.Etcd3({
|
|
745
746
|
hosts: resolvedConfig.endpoints,
|
|
746
747
|
grpcOptions: { "grpc.max_receive_message_length": ETCD_MAX_RESPONSE_BYTES },
|
|
748
|
+
defaultCallOptions: (context) => context.isStream ? {} : { deadline: Date.now() + ETCD_CALL_TIMEOUT_MS },
|
|
747
749
|
...securityOptions
|
|
748
750
|
});
|
|
749
751
|
const keys = coordinatorKeys(resolvedConfig);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TransportConfig, N as NodeTransport } from '../../types-
|
|
2
|
-
import { a as TlsConfig } from '../../types-
|
|
1
|
+
import { T as TransportConfig, N as NodeTransport } from '../../types-DvncmvuQ.js';
|
|
2
|
+
import { a as TlsConfig } from '../../types-Ck97nB3D.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* How the gRPC transport listens and dials.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-
|
|
2
|
-
import { replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { decodeTransportMessage, encodeTransportMessage } from '../../chunk-FABI2JA7.mjs';
|
|
2
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-DUWYU4D5.mjs';
|
|
3
3
|
import { MAX_MESSAGE_SIZE_BYTES, GRPC_KEEPALIVE_TIMEOUT_MS, GRPC_KEEPALIVE_TIME_MS, GRPC_ENVELOPE_OVERHEAD_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
4
|
-
import { TransportError, TransportErrorCodes } from '../../chunk-
|
|
5
|
-
import { NarsilError, ErrorCodes } from '../../chunk-
|
|
4
|
+
import { TransportError, TransportErrorCodes } from '../../chunk-RPIE4QCL.mjs';
|
|
5
|
+
import { NarsilError, ErrorCodes } from '../../chunk-6JUOMMHQ.mjs';
|
|
6
6
|
|
|
7
7
|
// src/distribution/transport/grpc/codec.ts
|
|
8
8
|
var FIELD_ONE_LENGTH_DELIMITED_KEY = 10;
|
|
@@ -621,6 +621,7 @@ async function createGrpcTransport(nodeId, config) {
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return {
|
|
624
|
+
timeouts: timeoutsOf(resolvedConfig),
|
|
624
625
|
getPort() {
|
|
625
626
|
return server.getPort();
|
|
626
627
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NodeTransport, a as TransportMessage, R as RespondFn, T as TransportConfig } from '../../types-
|
|
2
|
-
export { L as ListenHandler } from '../../types-
|
|
1
|
+
import { N as NodeTransport, a as TransportMessage, R as RespondFn, T as TransportConfig } from '../../types-DvncmvuQ.js';
|
|
2
|
+
export { L as ListenHandler } from '../../types-DvncmvuQ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Receives a streamed response one chunk at a time.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-DUWYU4D5.mjs';
|
|
2
2
|
import { MAX_MESSAGE_SIZE_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
3
|
-
import { DEFAULT_TRANSPORT_CONFIG, TransportError, TransportErrorCodes } from '../../chunk-
|
|
3
|
+
import { DEFAULT_TRANSPORT_CONFIG, TransportError, TransportErrorCodes } from '../../chunk-RPIE4QCL.mjs';
|
|
4
4
|
|
|
5
5
|
// src/distribution/transport/in-memory.ts
|
|
6
6
|
function createInMemoryNetwork() {
|
|
@@ -41,6 +41,7 @@ function createInMemoryTransport(nodeId, network, config) {
|
|
|
41
41
|
return peer;
|
|
42
42
|
}
|
|
43
43
|
const internal = {
|
|
44
|
+
timeouts: timeoutsOf(resolvedConfig),
|
|
44
45
|
deliverMessage(message, respond) {
|
|
45
46
|
if (listenHandler === void 0) {
|
|
46
47
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NodeTransport } from '../../types-
|
|
2
|
-
import { T as TcpTransportConfig, a as TlsConfig } from '../../types-
|
|
1
|
+
import { N as NodeTransport } from '../../types-DvncmvuQ.js';
|
|
2
|
+
import { T as TcpTransportConfig, a as TlsConfig } from '../../types-Ck97nB3D.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Builds the TCP transport a cluster node reaches its peers through, with
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DEFAULT_TCP_CONFIG, encodeTransportMessage, encodeFrame, FRAME_TYPE_REQUEST, FrameParser, FRAME_TYPE_RESPONSE, decodeTransportMessage, FRAME_TYPE_STREAM_CHUNK, FRAME_TYPE_STREAM_END } from '../../chunk-
|
|
2
|
-
import { replyDeadlineMs } from '../../chunk-
|
|
1
|
+
import { DEFAULT_TCP_CONFIG, encodeTransportMessage, encodeFrame, FRAME_TYPE_REQUEST, FrameParser, FRAME_TYPE_RESPONSE, decodeTransportMessage, FRAME_TYPE_STREAM_CHUNK, FRAME_TYPE_STREAM_END } from '../../chunk-FABI2JA7.mjs';
|
|
2
|
+
import { timeoutsOf, replyDeadlineMs } from '../../chunk-DUWYU4D5.mjs';
|
|
3
3
|
import { MAX_MESSAGE_SIZE_BYTES } from '../../chunk-UNEEFTEU.mjs';
|
|
4
|
-
import { TransportError, TransportErrorCodes } from '../../chunk-
|
|
4
|
+
import { TransportError, TransportErrorCodes } from '../../chunk-RPIE4QCL.mjs';
|
|
5
5
|
import { connect as connect$1, createServer as createServer$1 } from 'net';
|
|
6
6
|
import { connect, createServer } from 'tls';
|
|
7
7
|
|
|
@@ -578,6 +578,7 @@ function createTcpTransport(nodeId, config) {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return {
|
|
581
|
+
timeouts: timeoutsOf(resolvedConfig),
|
|
581
582
|
getPort() {
|
|
582
583
|
return server.getPort();
|
|
583
584
|
},
|
package/dist/distribution.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-
|
|
2
|
-
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig } from './config-
|
|
1
|
+
import { a as CreateIndexOptions, C as ClusterNamespace, b as ClusterNodeConfig } from './config-BZ_e3X8w.js';
|
|
2
|
+
export { c as ClusterControllerConfig, d as ClusterHealth, e as ClusterHealthStatus, f as ClusterMemoryConfig, g as ClusterMetrics, h as ClusterNodeInfo, i as ClusterQueryConfig, j as CommitPointFigure, k as CoordinatorRequestFigure, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, l as ReplicationConfig } from './config-BZ_e3X8w.js';
|
|
3
3
|
import { R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
4
|
-
import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-
|
|
4
|
+
import { B as BatchResult, L as ListParams, g as ListResult, h as SuggestParams, j as SuggestResult, Q as QueryParams, P as PreflightResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, M as MemoryStats, m as NarsilEventMap, e as QueryResult } from './events-C7_dboUr.js';
|
|
5
5
|
import { I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-4W_7tk1f.js';
|
|
6
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
|
-
import { b as NodeCapacity, N as NodeRole } from './index-
|
|
8
|
-
export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexPartitionBytes, e as NodeEvent, f as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, g as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-
|
|
9
|
-
import { N as Narsil } from './engine-
|
|
10
|
-
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-
|
|
11
|
-
import './config-
|
|
7
|
+
import { b as NodeCapacity, N as NodeRole } from './index-Cl5qQauj.js';
|
|
8
|
+
export { c as AllocationConstraints, d as AllocationEvent, A as AllocationTable, C as ClusterCoordinator, I as IndexPartitionBytes, e as NodeEvent, f as NodeMemoryReport, a as NodeRegistration, P as PartitionAssignment, g as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-Cl5qQauj.js';
|
|
9
|
+
import { N as Narsil } from './engine-D_SYDsId.js';
|
|
10
|
+
export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
|
|
11
|
+
import './config-DL_bDDD8.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The cluster splits an index into this many partitions when
|