@delali/narsil 0.3.1-next.112 → 0.3.1-next.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-YRYBTRWB.mjs → chunk-3YPLBK4C.mjs} +2 -2
- package/dist/browser/{chunk-O5IKTA27.mjs → chunk-4FVSBSXY.mjs} +1 -1
- package/dist/browser/{chunk-UR5MNN53.mjs → chunk-DC2SZO4D.mjs} +7 -6
- package/dist/browser/{chunk-OVY4RPDS.mjs → chunk-YZPOBLAS.mjs} +35 -1
- package/dist/browser/{durability-wiring-CPEMDDK7.mjs → durability-wiring-2RG22WQJ.mjs} +3 -3
- package/dist/browser/{module-DYKR4INA.mjs → module-5EWHBKHZ.mjs} +102 -11
- package/dist/browser/{restore-queue-2H4QDQV4.mjs → restore-queue-WCFUB4NS.mjs} +1 -1
- package/dist/browser/{snapshot-ISZMBDCN.mjs → snapshot-BE3F2PNC.mjs} +6 -5
- package/dist/browser/{write-IABOLE4N.mjs → write-MV7K7OCU.mjs} +2 -2
- package/dist/{capabilities-ByaX8Arf.d.ts → capabilities-DOgB3pPf.d.ts} +2 -2
- package/dist/{chunk-ZXZ26WSO.mjs → chunk-22YPZVMG.mjs} +5 -1
- package/dist/{chunk-2IFU7SXG.mjs → chunk-27ZEY73B.mjs} +3 -3
- package/dist/{chunk-QI6JW4PM.mjs → chunk-4PFOOQFQ.mjs} +1 -1
- package/dist/{chunk-YIDSHBQS.mjs → chunk-4XWIW3F3.mjs} +29 -1
- package/dist/{chunk-V7ISFBFC.mjs → chunk-5QIRLJH4.mjs} +2 -2
- package/dist/{chunk-63HFWQEA.mjs → chunk-AOLD3LPV.mjs} +273 -102
- package/dist/{chunk-PT7VRWS7.mjs → chunk-CU4OB64V.mjs} +3 -2
- package/dist/{chunk-BVOUSX3U.mjs → chunk-DZXGNLK5.mjs} +3 -3
- package/dist/chunk-EBIHRL7B.mjs +21 -0
- package/dist/{chunk-R2MRGYU5.mjs → chunk-H2GNWBLB.mjs} +22 -2
- package/dist/{chunk-V7G627TA.mjs → chunk-HFJXEFFV.mjs} +13 -62
- package/dist/chunk-IWVEG5CX.mjs +67 -0
- package/dist/{chunk-VLRT47GU.mjs → chunk-JUAFWJON.mjs} +3 -3
- package/dist/{chunk-3COL24MT.mjs → chunk-LVNBY2TS.mjs} +1 -1
- package/dist/{chunk-IM76DLA7.mjs → chunk-OABTAUCW.mjs} +2 -2
- package/dist/{chunk-IBTKJIV7.mjs → chunk-OM5G2J6X.mjs} +1 -1
- package/dist/{chunk-3RRATITJ.mjs → chunk-PABYSTKO.mjs} +11 -8
- package/dist/chunk-PELHVTO7.mjs +24 -0
- package/dist/{chunk-7CI34JAP.mjs → chunk-QGVMEMCG.mjs} +4 -4
- package/dist/{chunk-6OXNHLNZ.mjs → chunk-RIIUZJQ3.mjs} +1 -1
- package/dist/{chunk-C7SLA6CM.mjs → chunk-W55X2BYN.mjs} +5 -1
- package/dist/{chunk-SOADQINJ.mjs → chunk-ZATRDAYU.mjs} +31 -3
- package/dist/{client-BdnzDFtO.d.ts → client-BGzLNt78.d.ts} +2 -2
- package/dist/client.d.ts +6 -6
- package/dist/{config-ujZESkJz.d.ts → config-CS5ADSrx.d.ts} +18 -2
- package/dist/{config-CSgvApt0.d.ts → config-CSYMTTm1.d.ts} +1 -1
- package/dist/{direct-executor-ZSTKRA6Z.mjs → direct-executor-R4HOSVPE.mjs} +5 -4
- package/dist/distribution.d.ts +5 -5
- package/dist/distribution.mjs +72 -35
- package/dist/{durability-wiring-EQTFL3B4.mjs → durability-wiring-XZI6355I.mjs} +13 -12
- package/dist/{engine-C_HSy3iz.d.ts → engine-CCBBGmMR.d.ts} +1 -1
- package/dist/{events-CJsXF1F9.d.ts → events-D8GPB1-H.d.ts} +5 -0
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +6 -5
- package/dist/{module-WP4VVGV2.mjs → module-WVKSJL74.mjs} +67 -7
- package/dist/persistence/durability/checkpoint-worker.mjs +10 -9
- package/dist/react.d.ts +6 -6
- package/dist/{restore-queue-WZTMTJP2.mjs → restore-queue-JAZAB5IQ.mjs} +1 -1
- package/dist/server.d.ts +8 -8
- package/dist/server.mjs +20 -62
- package/dist/{snapshot-EU6NNB2P.mjs → snapshot-PDUGHQ25.mjs} +14 -13
- package/dist/{tasks-CI3Fvkxw.d.ts → tasks-5_LCFEzF.d.ts} +1 -1
- package/dist/{thread-WGBCVJII.mjs → thread-S4SUCV4Y.mjs} +8 -5
- package/dist/vector/search-worker.mjs +2 -2
- package/dist/workers/entry.mjs +6 -6
- package/dist/{write-CKRWS3P5.mjs → write-KVJ7YJJ6.mjs} +7 -6
- package/package.json +7 -7
package/dist/distribution.mjs
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { DEFAULT_NODE_LIFECYCLE_CONFIG, bindWriteBlockLookup, bindEngineWriteBlock, bindIndexReads, DEFAULT_CONTROLLER_CONFIG, getIndexMetadata, getClusterIndexConfig, withPartitionCount, validateIndexName, readIndexState, readIndexMetadataSnapshot, storeSynonymSet, deleteSynonymSet, indexSettingsOf, putIndexMetadata, isValidInteger, isRecord, HIDDEN_GENERATION_PREFIX, indexConfigFromSettings, metadataWithSynonymSet, indexConfigKey, 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-LOBYK2FG.mjs';
|
|
2
|
-
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,
|
|
3
|
-
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-
|
|
2
|
+
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_DROP_ACKNOWLEDGE_WAIT_MS, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR, DEFAULT_CREATE_INDEX_WAIT_MS, refuseEncodeWithoutRoom, readRecentMemoryFigures, DEFAULT_BOOTSTRAP_SYNC_DEADLINE_MS, MAX_SYNONYM_REPLACEMENT_ATTEMPTS, 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-HFJXEFFV.mjs';
|
|
3
|
+
export { DEFAULT_CAPACITY, DEFAULT_PARTITION_COUNT, DEFAULT_REPLICATION_FACTOR } from './chunk-HFJXEFFV.mjs';
|
|
4
|
+
import { addBackgroundAdmission, workWaitingForMemory } from './chunk-PELHVTO7.mjs';
|
|
5
|
+
import { onRefusalAfterCollection, reservedHeapBytes, reserveHeapBytes, collectYoungGenerationBeforeRefusal, collectGarbageBeforeRefusal } from './chunk-IWVEG5CX.mjs';
|
|
4
6
|
import { fixedHybridDepthOf, requireWithinHybridDepth, pageByPosition } from './chunk-2RAQKITH.mjs';
|
|
5
|
-
import { closePartitionWriter, replaySyncedWal } from './chunk-
|
|
6
|
-
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-
|
|
7
|
+
import { closePartitionWriter, replaySyncedWal } from './chunk-DZXGNLK5.mjs';
|
|
8
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive } from './chunk-QGVMEMCG.mjs';
|
|
9
|
+
import './chunk-CU4OB64V.mjs';
|
|
10
|
+
import { indexMetadataOf, loadPartitionSegments, readSegmentManifest, readVectorFile } from './chunk-JUAFWJON.mjs';
|
|
9
11
|
import { decodeVectorFilePayload, bytesToVectors, isDead } from './chunk-OCB7TMUQ.mjs';
|
|
10
12
|
import { CONTROLLER_LEASE_KEY } from './chunk-44W3CBNG.mjs';
|
|
11
13
|
import { MAX_MESSAGE_SIZE_BYTES } from './chunk-UNEEFTEU.mjs';
|
|
12
|
-
import './chunk-
|
|
14
|
+
import './chunk-4XWIW3F3.mjs';
|
|
13
15
|
import './chunk-DJHHF2L5.mjs';
|
|
14
16
|
import './chunk-37CD3OKS.mjs';
|
|
15
17
|
import { getPath, getFs } from './chunk-HLPRHOSO.mjs';
|
|
16
|
-
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-
|
|
17
|
-
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-27ZEY73B.mjs';
|
|
19
|
+
import { applyIndexEntry, applyDeleteEntry, validateReplicationEntry } from './chunk-LVNBY2TS.mjs';
|
|
18
20
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR, WIRE_BATCH_BUDGET } from './chunk-P36MUFEJ.mjs';
|
|
19
21
|
import { TransportErrorCodes, ReplicationMessageTypes, ClusterMessageTypes, QueryMessageTypes, TransportError, DEFAULT_TRANSPORT_CONFIG } from './chunk-YH5OIL7B.mjs';
|
|
20
|
-
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-
|
|
22
|
+
import { requireKnownConfig, resolveRunnableConfig, createEngineCore, startEngineCore, createNarsilFromCore, runEngineQueryStats, runEngineListDocuments, runEngineSuggest, runEnginePreflight, runEngineQuery, createEngineIndex, encodeIndexConfiguration, requireConfigurationWithinSizeLimit, prepareConfiguredSynonyms, createByteReader, openChecksummedEnvelope, emptySerializablePartition, crc32Init, crc32Final, crc32Update, yieldToEventLoop } from './chunk-PABYSTKO.mjs';
|
|
21
23
|
import { runtimeHost, requireSurfaceFormsForPartialFields, now, listBindingOf, clampLimit, hitsKeptPerGroup, queryBindingOf, resolveHybridFusion, dedupePinnedEntries, foldGroupReducer } from './chunk-GLZI636G.mjs';
|
|
22
24
|
import { bindRerankWindowSource, rerankWindowCapOf, providedDocId, engineCoreOf } from './chunk-N57XXGPG.mjs';
|
|
23
25
|
import './chunk-6PN3U6XW.mjs';
|
|
24
26
|
import './chunk-AV4IJKD2.mjs';
|
|
25
|
-
import { synonymModule } from './chunk-
|
|
27
|
+
import { synonymModule } from './chunk-5QIRLJH4.mjs';
|
|
26
28
|
import { oversampledShardSize, 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-5WEBVYOA.mjs';
|
|
27
29
|
import { generateId, getLanguage } from './chunk-FUUP45IS.mjs';
|
|
28
|
-
import './chunk-
|
|
30
|
+
import './chunk-ZATRDAYU.mjs';
|
|
31
|
+
import './chunk-EBIHRL7B.mjs';
|
|
29
32
|
import './chunk-HJSN7UYG.mjs';
|
|
30
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-LXWDQLTW.mjs';
|
|
31
34
|
import './chunk-TGP5M5R7.mjs';
|
|
@@ -48,10 +51,10 @@ import './chunk-7X5JST5L.mjs';
|
|
|
48
51
|
import './chunk-OFYKBKKV.mjs';
|
|
49
52
|
import { isSortMode, SORT_MODES, toComparableSortValue, compareComparableKeys, compareSortValues } from './chunk-R6A773WK.mjs';
|
|
50
53
|
import { compareCodePoints, exceedsCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
51
|
-
import { collectAndReturnPages } from './chunk-
|
|
54
|
+
import { collectAndReturnPages } from './chunk-RIIUZJQ3.mjs';
|
|
52
55
|
import './chunk-CQUMNIIG.mjs';
|
|
53
|
-
import './chunk-
|
|
54
|
-
import { HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-
|
|
56
|
+
import './chunk-4PFOOQFQ.mjs';
|
|
57
|
+
import { HEAP_RESUME_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE, HEAP_BLOCK_FRACTION_BELOW_V8_INEFFECTIVE_MARK_COMPACT_LINE } from './chunk-22YPZVMG.mjs';
|
|
55
58
|
import './chunk-RFBLQLLZ.mjs';
|
|
56
59
|
import { MAX_STORED_VECTOR_DIMENSION, MAX_NESTING_DEPTH } from './chunk-L5ORED7V.mjs';
|
|
57
60
|
import { ErrorCodes, NarsilError, describeError, ServerErrorCodes } from './chunk-OBWUWZRA.mjs';
|
|
@@ -3626,7 +3629,13 @@ async function readClusterMetrics(deps) {
|
|
|
3626
3629
|
}
|
|
3627
3630
|
}
|
|
3628
3631
|
keepAcknowledgementsOf(deps.catchUp, ledPartitionKeys);
|
|
3629
|
-
return {
|
|
3632
|
+
return {
|
|
3633
|
+
replicationLag,
|
|
3634
|
+
commitPoints,
|
|
3635
|
+
partitions,
|
|
3636
|
+
coordinatorRequests: deps.timing.figures(),
|
|
3637
|
+
vectorRebuildsWaitingForMemory: workWaitingForMemory()
|
|
3638
|
+
};
|
|
3630
3639
|
}
|
|
3631
3640
|
|
|
3632
3641
|
// src/distribution/cluster-node/cluster-namespace.ts
|
|
@@ -8316,6 +8325,7 @@ async function createClusterLocalEngine(config, hooks) {
|
|
|
8316
8325
|
core.mutationCtx.durability = createAdmittingRecorder(core, admission, core.mutationCtx.durability);
|
|
8317
8326
|
},
|
|
8318
8327
|
writeAnalysisOf: (indexName) => writeAnalysisOf(core, indexName),
|
|
8328
|
+
vectorGrowthBytesOf: (indexName, documents) => vectorGrowthBytesOf(core, indexName, documents),
|
|
8319
8329
|
restartLocalLog: (indexName, partitionId, position) => restartLocalLog(core, indexName, partitionId, position),
|
|
8320
8330
|
isolateCopyFailures: (onFailed) => core.durability?.manager.isolatePartitionFailures?.(onFailed),
|
|
8321
8331
|
emptyPartitionCopy: (indexName, partitionId) => emptyPartitionCopy(core, indexName, partitionId, writeRecords),
|
|
@@ -8363,6 +8373,13 @@ function writeAnalysisOf(core, indexName) {
|
|
|
8363
8373
|
...customTokenizer === void 0 ? {} : { customTokenizer }
|
|
8364
8374
|
};
|
|
8365
8375
|
}
|
|
8376
|
+
function vectorGrowthBytesOf(core, indexName, documents) {
|
|
8377
|
+
const manager = core.executor.getManager(indexName);
|
|
8378
|
+
if (manager === void 0 || manager === null) return 0;
|
|
8379
|
+
let bytes = 0;
|
|
8380
|
+
for (const vectorIndex of manager.getVectorIndexes().values()) bytes += vectorIndex.growthBytesFor(documents);
|
|
8381
|
+
return bytes;
|
|
8382
|
+
}
|
|
8366
8383
|
function persistedPositionOf(core, indexName, partitionId) {
|
|
8367
8384
|
const durable = core.durability?.manager;
|
|
8368
8385
|
if (durable === void 0) return { seqNo: 0, primaryTerm: 0 };
|
|
@@ -11660,28 +11677,35 @@ var WRITE_WOULD_FILL_MEMORY_REASON = "write_would_fill_memory";
|
|
|
11660
11677
|
var WRITE_EXCEEDS_MEMORY_REASON = "write_exceeds_memory";
|
|
11661
11678
|
var UNPROJECTED = { count: 0, release: () => {
|
|
11662
11679
|
} };
|
|
11663
|
-
function
|
|
11664
|
-
return
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11680
|
+
function heapRoomIn(figures, fractions) {
|
|
11681
|
+
return fractions.heapBlock * figures.heapLimitBytes - figures.heapBytes - figures.youngHeapBytes;
|
|
11682
|
+
}
|
|
11683
|
+
function processRoomIn(figures, fractions) {
|
|
11684
|
+
return fractions.processBlock * figures.processLimitBytes - figures.processBytes - figures.youngReserveBytes;
|
|
11668
11685
|
}
|
|
11669
11686
|
function createWriteProjection(options) {
|
|
11670
11687
|
const bounds = /* @__PURE__ */ new Map();
|
|
11671
|
-
function fittingCount(figures, groupBounds, start) {
|
|
11688
|
+
function fittingCount(indexName, figures, groupBounds, start) {
|
|
11672
11689
|
const end = Math.min(groupBounds.length, start + BATCH_CHUNK_SIZE);
|
|
11673
11690
|
if (figures === null) return end - start;
|
|
11674
|
-
const
|
|
11691
|
+
const reserved = reservedHeapBytes();
|
|
11692
|
+
const heapRoom = heapRoomIn(figures, options.fractions) - reserved;
|
|
11693
|
+
const processRoom = processRoomIn(figures, options.fractions) - reserved;
|
|
11694
|
+
const mostGrowth = options.vectorGrowthBytesOf(indexName, end - start);
|
|
11675
11695
|
let taken = 0;
|
|
11676
11696
|
let count2 = 0;
|
|
11677
|
-
while (start + count2 < end
|
|
11678
|
-
taken
|
|
11697
|
+
while (start + count2 < end) {
|
|
11698
|
+
const next = taken + groupBounds[start + count2];
|
|
11699
|
+
if (next > heapRoom) break;
|
|
11700
|
+
if (next + mostGrowth > processRoom && next + options.vectorGrowthBytesOf(indexName, count2 + 1) > processRoom)
|
|
11701
|
+
break;
|
|
11702
|
+
taken = next;
|
|
11679
11703
|
count2++;
|
|
11680
11704
|
}
|
|
11681
11705
|
return count2;
|
|
11682
11706
|
}
|
|
11683
|
-
function reserve(groupBounds, start, count2) {
|
|
11684
|
-
let bytes = 0;
|
|
11707
|
+
function reserve(indexName, groupBounds, start, count2) {
|
|
11708
|
+
let bytes = count2 === 0 ? 0 : options.vectorGrowthBytesOf(indexName, count2);
|
|
11685
11709
|
for (let index = start; index < start + count2; index++) bytes += groupBounds[index];
|
|
11686
11710
|
const reservation = reserveHeapBytes(bytes);
|
|
11687
11711
|
return { count: count2, release: () => reservation.release() };
|
|
@@ -11712,6 +11736,8 @@ function createWriteProjection(options) {
|
|
|
11712
11736
|
heapBytesBeforeCollection,
|
|
11713
11737
|
collectedGarbage,
|
|
11714
11738
|
processBytes: figures.processBytes,
|
|
11739
|
+
youngCeilingBytes: figures.youngCeilingBytes,
|
|
11740
|
+
youngReserveBytes: figures.youngReserveBytes,
|
|
11715
11741
|
blockBytes: blockBytesOf(figures)
|
|
11716
11742
|
}
|
|
11717
11743
|
);
|
|
@@ -11719,17 +11745,18 @@ function createWriteProjection(options) {
|
|
|
11719
11745
|
function takeGroup(indexName, groupBounds, start) {
|
|
11720
11746
|
if (start >= groupBounds.length) return UNPROJECTED;
|
|
11721
11747
|
const measured = options.measure();
|
|
11722
|
-
if (measured === null)
|
|
11748
|
+
if (measured === null)
|
|
11749
|
+
return reserve(indexName, groupBounds, start, fittingCount(indexName, null, groupBounds, start));
|
|
11723
11750
|
if (groupBounds[start] > blockBytesOf(measured)) {
|
|
11724
11751
|
throw exceedsMemory(indexName, groupBounds[start], blockBytesOf(measured));
|
|
11725
11752
|
}
|
|
11726
11753
|
let figures = measured;
|
|
11727
|
-
let count2 = fittingCount(figures, groupBounds, start);
|
|
11728
|
-
if (count2 > 0) return reserve(groupBounds, start, count2);
|
|
11754
|
+
let count2 = fittingCount(indexName, figures, groupBounds, start);
|
|
11755
|
+
if (count2 > 0) return reserve(indexName, groupBounds, start, count2);
|
|
11729
11756
|
const collectionsBefore = options.collections();
|
|
11730
11757
|
figures = options.measureWithoutGarbage() ?? figures;
|
|
11731
|
-
count2 = fittingCount(figures, groupBounds, start);
|
|
11732
|
-
if (count2 > 0) return reserve(groupBounds, start, count2);
|
|
11758
|
+
count2 = fittingCount(indexName, figures, groupBounds, start);
|
|
11759
|
+
if (count2 > 0) return reserve(indexName, groupBounds, start, count2);
|
|
11733
11760
|
const collected = options.collections() !== collectionsBefore;
|
|
11734
11761
|
if (collected) options.refusedAfterCollection(figures);
|
|
11735
11762
|
throw wouldFillMemory(indexName, groupBounds[start], figures, measured.heapBytes, collected);
|
|
@@ -17543,11 +17570,11 @@ function reportOf(figures, full) {
|
|
|
17543
17570
|
};
|
|
17544
17571
|
}
|
|
17545
17572
|
function atOrAboveResume(figures, fractions) {
|
|
17546
|
-
return fractionOf(figures.processBytes, figures.processLimitBytes) >= fractions.processResume || fractionOf(figures.heapBytes, figures.heapLimitBytes) >= fractions.heapResume;
|
|
17573
|
+
return fractionOf(figures.processBytes + figures.youngReserveBytes, figures.processLimitBytes) >= fractions.processResume || fractionOf(figures.heapBytes, figures.heapLimitBytes) >= fractions.heapResume;
|
|
17547
17574
|
}
|
|
17548
17575
|
function nextFullState(wasFull, figures, fractions) {
|
|
17549
17576
|
if (wasFull) return atOrAboveResume(figures, fractions);
|
|
17550
|
-
return fractionOf(figures.processBytes, figures.processLimitBytes) > fractions.processBlock || fractionOf(figures.heapBytes, figures.heapLimitBytes) > fractions.heapBlock;
|
|
17577
|
+
return fractionOf(figures.processBytes + figures.youngReserveBytes, figures.processLimitBytes) > fractions.processBlock || fractionOf(figures.heapBytes, figures.heapLimitBytes) > fractions.heapBlock;
|
|
17551
17578
|
}
|
|
17552
17579
|
function createMemoryMonitor(options) {
|
|
17553
17580
|
let latest = null;
|
|
@@ -17741,7 +17768,8 @@ function createNodeMemoryReporting(options) {
|
|
|
17741
17768
|
measureWithoutGarbage: () => monitor.measureWithoutGarbage(),
|
|
17742
17769
|
collections: () => monitor.collections(),
|
|
17743
17770
|
refusedAfterCollection: (figures) => monitor.refusedAfterCollection(figures),
|
|
17744
|
-
analysisOf: (indexName) => options.engine.writeAnalysisOf(indexName)
|
|
17771
|
+
analysisOf: (indexName) => options.engine.writeAnalysisOf(indexName),
|
|
17772
|
+
vectorGrowthBytesOf: (indexName, documents) => options.engine.vectorGrowthBytesOf(indexName, documents)
|
|
17745
17773
|
});
|
|
17746
17774
|
const heapLimitBytes = readMemoryFigures()?.heapLimitBytes ?? Number.POSITIVE_INFINITY;
|
|
17747
17775
|
const writePressure = createWritePressure({
|
|
@@ -17752,6 +17780,12 @@ function createNodeMemoryReporting(options) {
|
|
|
17752
17780
|
beforeAdmit: () => monitor.sampleIfOlderThan(WRITE_MEMORY_SAMPLE_MAX_AGE_MS)
|
|
17753
17781
|
});
|
|
17754
17782
|
let stopHearingRefusals = null;
|
|
17783
|
+
let stopAdmitting = null;
|
|
17784
|
+
function admitsBackgroundBytes(bytes) {
|
|
17785
|
+
const figures = readRecentMemoryFigures();
|
|
17786
|
+
if (figures === null) return true;
|
|
17787
|
+
return bytes <= fractions.processBlock * figures.processLimitBytes - figures.processBytes - figures.youngReserveBytes - reservedHeapBytes();
|
|
17788
|
+
}
|
|
17755
17789
|
return {
|
|
17756
17790
|
view,
|
|
17757
17791
|
writePressure,
|
|
@@ -17759,11 +17793,14 @@ function createNodeMemoryReporting(options) {
|
|
|
17759
17793
|
async start() {
|
|
17760
17794
|
monitor.start();
|
|
17761
17795
|
stopHearingRefusals ??= onRefusalAfterCollection((figures) => monitor.refusedAfterCollection(figures));
|
|
17796
|
+
stopAdmitting ??= addBackgroundAdmission(admitsBackgroundBytes);
|
|
17762
17797
|
await view.start();
|
|
17763
17798
|
},
|
|
17764
17799
|
stop() {
|
|
17765
17800
|
stopHearingRefusals?.();
|
|
17766
17801
|
stopHearingRefusals = null;
|
|
17802
|
+
stopAdmitting?.();
|
|
17803
|
+
stopAdmitting = null;
|
|
17767
17804
|
monitor.stop();
|
|
17768
17805
|
view.stop();
|
|
17769
17806
|
},
|
|
@@ -1,24 +1,25 @@
|
|
|
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-
|
|
1
|
+
import { deserializePayloadV2, documentsOfPayloadV2 } from './chunk-OM5G2J6X.mjs';
|
|
2
|
+
import { closePartitionWriter, drainIndexStateForUnload, listPersistedIndexes, loadMetadata, snapshotCheckpointFor, replayWal } from './chunk-DZXGNLK5.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-JUAFWJON.mjs';
|
|
4
4
|
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-OCB7TMUQ.mjs';
|
|
5
5
|
import './chunk-37CD3OKS.mjs';
|
|
6
|
-
import { createDurableDirectory } from './chunk-
|
|
7
|
-
import { spawnNodeWorker } from './chunk-
|
|
6
|
+
import { createDurableDirectory } from './chunk-OABTAUCW.mjs';
|
|
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-27ZEY73B.mjs';
|
|
10
|
+
import './chunk-LVNBY2TS.mjs';
|
|
11
11
|
import './chunk-P36MUFEJ.mjs';
|
|
12
12
|
import './chunk-YH5OIL7B.mjs';
|
|
13
|
-
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
13
|
+
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-PABYSTKO.mjs';
|
|
14
14
|
import './chunk-GLZI636G.mjs';
|
|
15
15
|
import './chunk-N57XXGPG.mjs';
|
|
16
16
|
import { resolveWorkerEntry } from './chunk-6PN3U6XW.mjs';
|
|
17
17
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
18
|
-
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-
|
|
18
|
+
import { buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-5QIRLJH4.mjs';
|
|
19
19
|
import { fnv1a } from './chunk-5WEBVYOA.mjs';
|
|
20
20
|
import './chunk-FUUP45IS.mjs';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-ZATRDAYU.mjs';
|
|
22
|
+
import './chunk-EBIHRL7B.mjs';
|
|
22
23
|
import './chunk-HJSN7UYG.mjs';
|
|
23
24
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-LXWDQLTW.mjs';
|
|
24
25
|
import './chunk-TGP5M5R7.mjs';
|
|
@@ -42,8 +43,8 @@ import './chunk-OFYKBKKV.mjs';
|
|
|
42
43
|
import './chunk-R6A773WK.mjs';
|
|
43
44
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
44
45
|
import './chunk-CQUMNIIG.mjs';
|
|
45
|
-
import './chunk-
|
|
46
|
-
import './chunk-
|
|
46
|
+
import './chunk-4PFOOQFQ.mjs';
|
|
47
|
+
import './chunk-22YPZVMG.mjs';
|
|
47
48
|
import './chunk-RFBLQLLZ.mjs';
|
|
48
49
|
import './chunk-L5ORED7V.mjs';
|
|
49
50
|
import { NarsilError, ErrorCodes } from './chunk-OBWUWZRA.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
2
|
-
import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-
|
|
2
|
+
import { B as BatchResult, I as IndexInfo, k as IndexStats, l as PartitionStatsResult, L as ListParams, g as ListResult, Q as QueryParams, e as QueryResult, P as PreflightResult, h as SuggestParams, j as SuggestResult, D as DocumentImportResult, M as MemoryStats, V as VectorMaintenanceResult, m as NarsilEventMap } from './events-D8GPB1-H.js';
|
|
3
3
|
import { A as AnyDocument, a as InsertOptions, W as WriteOptions, I as IndexConfig, P as PartitionConfig } from './schema-4W_7tk1f.js';
|
|
4
4
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
5
5
|
|
|
@@ -561,6 +561,11 @@ interface VectorMaintenanceResult {
|
|
|
561
561
|
bufferSize: number;
|
|
562
562
|
/** This stays true while a graph build runs. */
|
|
563
563
|
building: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* This turns true while a rebuild that keeps recall up waits for the node to have
|
|
566
|
+
* room for a second graph beside the one it serves, and false once it starts.
|
|
567
|
+
*/
|
|
568
|
+
waitingForMemory: boolean;
|
|
564
569
|
/** {@link Narsil.compactVectors} would take about this many milliseconds. */
|
|
565
570
|
estimatedCompactMs: number;
|
|
566
571
|
/** {@link Narsil.optimizeVectors} would take about this many milliseconds. */
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-
|
|
1
|
+
export { VERSION, clearNormalizationCache, configureNormalizationCache, createNarsil, getLanguage, getNormalizationCacheSize, getStopWords, getTokenizer, hasStopWords, hasTokenizer, registerLanguage, registerPartialWordSearch, registerPatternSearch, registerStopWords, registerSynonyms, registerTokenizer, resetNormalizationCache } from './browser/chunk-DC2SZO4D.mjs';
|
|
2
2
|
export { isSimdAvailable } from './browser/chunk-2CBQ2PCC.mjs';
|
|
3
3
|
import './browser/chunk-JPTQZWJQ.mjs';
|
|
4
4
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-LJS6PREA.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ 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
|
-
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-
|
|
10
|
-
import { N as NarsilConfig } from './config-
|
|
11
|
-
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-
|
|
12
|
-
import { N as Narsil } from './engine-
|
|
13
|
-
export { A as AdapterRegistrationOperations, B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-
|
|
9
|
+
export { A as ArrayFilter, B as BatchResult, C as ClientErrorCode, a as ClientErrorCodes, n as ComparisonFilter, D as DocumentImportResult, o as DocumentProjection, E as ErrorCode, b as ErrorCodes, F as FacetConfig, p as FacetResult, q as FieldFilter, r as FilterExpression, G as GeoFilter, s as GeoPolygonFilter, t as GeoRadiusFilter, u as GroupConfig, v as GroupReducer, w as GroupResult, H as HeldCheckpointReport, x as HighlightConfig, y as HighlightMatch, z as Hit, J as HybridConfig, I as IndexInfo, k as IndexStats, L as ListParams, g as ListResult, K as ListedDocument, M as MemoryStats, N as NarsilError, c as NarsilErrorCode, f as NarsilEventHandlers, m as NarsilEventMap, l as PartitionStatsResult, P as PreflightResult, O as PresenceFilter, R as ProcessMemoryReport, T as QueryCoverage, Q as QueryParams, e as QueryResult, U as RerankConfig, W as ScoreComponents, X as SearchMode, S as ServerErrorCode, d as ServerErrorCodes, Y as SortField, Z as SortSpec, _ as StringFilter, h as SuggestParams, j as SuggestResult, $ as TermMatchPolicy, V as VectorMaintenanceResult, a0 as VectorQueryConfig, a1 as WorkerCopyReport, i as isNarsilError } from './events-D8GPB1-H.js';
|
|
10
|
+
import { N as NarsilConfig } from './config-CSYMTTm1.js';
|
|
11
|
+
export { A as AnalysisConfig, D as DurabilityConfig, I as IndexContext, a as IndexLifecycleConfig, b as InsertContext, M as MainCopyQueries, c as NarsilPlugin, P as PartitionContext, R as RemoveContext, S as SearchContext, d as StaleAnalysis, U as UpdateContext, W as WorkerConfig, e as WorkerContext } from './config-CSYMTTm1.js';
|
|
12
|
+
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
13
|
+
export { A as AdapterRegistrationOperations, B as ByteSource, D as DocumentWriteOperations, I as IndexLifecycleOperations, S as SynonymOperations } from './engine-CCBBGmMR.js';
|
|
14
14
|
export { E as EmbeddingAdapter, I as InvalidationAdapter, a as InvalidationEvent, b as PartitionStatistics, P as PersistenceAdapter, R as RerankAdapter } from './adapters-BQFQ4PRz.js';
|
|
15
15
|
|
|
16
16
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { VERSION, createNarsil } from './chunk-
|
|
1
|
+
export { VERSION, createNarsil } from './chunk-PABYSTKO.mjs';
|
|
2
2
|
import './chunk-GLZI636G.mjs';
|
|
3
3
|
import './chunk-N57XXGPG.mjs';
|
|
4
4
|
import './chunk-6PN3U6XW.mjs';
|
|
5
5
|
import './chunk-AV4IJKD2.mjs';
|
|
6
|
-
export { registerSynonyms } from './chunk-
|
|
6
|
+
export { registerSynonyms } from './chunk-5QIRLJH4.mjs';
|
|
7
7
|
export { registerPartialWordSearch, registerPatternSearch } from './chunk-5WEBVYOA.mjs';
|
|
8
8
|
export { getLanguage, registerLanguage } from './chunk-FUUP45IS.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-ZATRDAYU.mjs';
|
|
10
|
+
import './chunk-EBIHRL7B.mjs';
|
|
10
11
|
import './chunk-HJSN7UYG.mjs';
|
|
11
12
|
import './chunk-LXWDQLTW.mjs';
|
|
12
13
|
import './chunk-TGP5M5R7.mjs';
|
|
@@ -30,8 +31,8 @@ export { clearNormalizationCache, configureNormalizationCache, getNormalizationC
|
|
|
30
31
|
import './chunk-R6A773WK.mjs';
|
|
31
32
|
import './chunk-YTJCGKM4.mjs';
|
|
32
33
|
import './chunk-CQUMNIIG.mjs';
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
34
|
+
import './chunk-4PFOOQFQ.mjs';
|
|
35
|
+
import './chunk-22YPZVMG.mjs';
|
|
35
36
|
import './chunk-RFBLQLLZ.mjs';
|
|
36
37
|
import './chunk-L5ORED7V.mjs';
|
|
37
38
|
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-OBWUWZRA.mjs';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { noteWaitingForMemory, admitsBackgroundBytes } from './chunk-PELHVTO7.mjs';
|
|
2
|
+
import { chargeHeapBytes } from './chunk-IWVEG5CX.mjs';
|
|
3
|
+
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-CU4OB64V.mjs';
|
|
2
4
|
import { isDead, NO_LIVE_VECTOR_AT_POSITION, bytesToVectors } from './chunk-OCB7TMUQ.mjs';
|
|
3
|
-
import { createVectorStore } from './chunk-
|
|
4
|
-
export { openSharedVectorField } from './chunk-
|
|
5
|
-
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-
|
|
6
|
-
export { releaseLocksHeldBy } from './chunk-
|
|
5
|
+
import { createVectorStore } from './chunk-H2GNWBLB.mjs';
|
|
6
|
+
export { openSharedVectorField } from './chunk-H2GNWBLB.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-4XWIW3F3.mjs';
|
|
8
|
+
export { releaseLocksHeldBy } from './chunk-4XWIW3F3.mjs';
|
|
7
9
|
import { noteFallback } from './chunk-DJHHF2L5.mjs';
|
|
8
10
|
import './chunk-37CD3OKS.mjs';
|
|
9
|
-
import { spawnNodeWorker } from './chunk-
|
|
11
|
+
import { spawnNodeWorker } from './chunk-W55X2BYN.mjs';
|
|
10
12
|
import { resolveWorkerCount, resolveWorkerEntry, workerResourceLimits } from './chunk-6PN3U6XW.mjs';
|
|
11
13
|
import { detectRuntime } from './chunk-AV4IJKD2.mjs';
|
|
14
|
+
import './chunk-EBIHRL7B.mjs';
|
|
12
15
|
import './chunk-LXWDQLTW.mjs';
|
|
13
16
|
import './chunk-KOKM4PQN.mjs';
|
|
14
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,6 +21,8 @@ import './chunk-E74YLAIG.mjs';
|
|
|
18
21
|
import './chunk-VJS4JFBQ.mjs';
|
|
19
22
|
import './chunk-R6A773WK.mjs';
|
|
20
23
|
import { compareCodePoints } from './chunk-YTJCGKM4.mjs';
|
|
24
|
+
import './chunk-RIIUZJQ3.mjs';
|
|
25
|
+
import './chunk-22YPZVMG.mjs';
|
|
21
26
|
import { noteThreadSlotLive, noteThreadSlotGone } from './chunk-RFBLQLLZ.mjs';
|
|
22
27
|
import { NarsilError, ErrorCodes, isNarsilError } from './chunk-OBWUWZRA.mjs';
|
|
23
28
|
|
|
@@ -1206,6 +1211,35 @@ async function releasePendingLocations(state) {
|
|
|
1206
1211
|
await releaseInTurn(state, () => releaseLocations(state, paths, pending));
|
|
1207
1212
|
}
|
|
1208
1213
|
|
|
1214
|
+
// src/vector/vector-index/memory-charge.ts
|
|
1215
|
+
function admitShuffledRebuild(state) {
|
|
1216
|
+
const bytes = state.hnsw?.graphBytes ?? 0;
|
|
1217
|
+
if (!admitsBackgroundBytes(bytes)) {
|
|
1218
|
+
state.waitingForMemory = true;
|
|
1219
|
+
noteWaitingForMemory(state, { indexName: state.indexName, fieldName: state.fieldName });
|
|
1220
|
+
return false;
|
|
1221
|
+
}
|
|
1222
|
+
stopWaitingForMemory(state);
|
|
1223
|
+
chargeHeapBytes(bytes - state.rebuildChargeBytes);
|
|
1224
|
+
state.rebuildChargeBytes = bytes;
|
|
1225
|
+
return true;
|
|
1226
|
+
}
|
|
1227
|
+
function stopWaitingForMemory(state) {
|
|
1228
|
+
if (!state.waitingForMemory) return;
|
|
1229
|
+
state.waitingForMemory = false;
|
|
1230
|
+
noteWaitingForMemory(state, null);
|
|
1231
|
+
}
|
|
1232
|
+
function releaseRebuildCharge(state) {
|
|
1233
|
+
chargeHeapBytes(-state.rebuildChargeBytes);
|
|
1234
|
+
state.rebuildChargeBytes = 0;
|
|
1235
|
+
}
|
|
1236
|
+
function releaseMemoryCharges(state) {
|
|
1237
|
+
releaseRebuildCharge(state);
|
|
1238
|
+
stopWaitingForMemory(state);
|
|
1239
|
+
if (state.rebuildWaitTimer !== null) clearTimeout(state.rebuildWaitTimer);
|
|
1240
|
+
state.rebuildWaitTimer = null;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1209
1243
|
// src/vector/vector-index/build.ts
|
|
1210
1244
|
function bufferWhatTheGraphLacks(state, graph) {
|
|
1211
1245
|
for (const docId of allLiveDocIds(state)) {
|
|
@@ -1288,8 +1322,25 @@ async function rebuildInShuffledOrder(state) {
|
|
|
1288
1322
|
const adopted = await buildGraphFromStore(state);
|
|
1289
1323
|
if (adopted && replacing.loadedWithoutCount) state.onLoadedGraphRepaired();
|
|
1290
1324
|
}
|
|
1325
|
+
function retryWhenMemoryAllows(state) {
|
|
1326
|
+
if (state.rebuildWaitTimer !== null || state.disposed) return;
|
|
1327
|
+
const timer = setTimeout(() => {
|
|
1328
|
+
state.rebuildWaitTimer = null;
|
|
1329
|
+
startShuffledRebuild(state);
|
|
1330
|
+
}, SHUFFLED_REBUILD_MEMORY_RETRY_MS);
|
|
1331
|
+
timer.unref?.();
|
|
1332
|
+
state.rebuildWaitTimer = timer;
|
|
1333
|
+
}
|
|
1291
1334
|
function startShuffledRebuild(state) {
|
|
1292
|
-
if (state.shuffledRebuild !== null || state.disposed
|
|
1335
|
+
if (state.shuffledRebuild !== null || state.disposed) return;
|
|
1336
|
+
if (!shuffledRebuildDue(state)) {
|
|
1337
|
+
stopWaitingForMemory(state);
|
|
1338
|
+
return;
|
|
1339
|
+
}
|
|
1340
|
+
if (!admitShuffledRebuild(state)) {
|
|
1341
|
+
retryWhenMemoryAllows(state);
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1293
1344
|
state.shuffledRebuild = rebuildInShuffledOrder(state).catch((error) => {
|
|
1294
1345
|
console.warn(
|
|
1295
1346
|
`Rebuilding the graph of "${state.indexName}/${state.fieldName}" in a shuffled order failed, so the field keeps the graph it holds:`,
|
|
@@ -1297,6 +1348,7 @@ function startShuffledRebuild(state) {
|
|
|
1297
1348
|
);
|
|
1298
1349
|
}).finally(() => {
|
|
1299
1350
|
state.shuffledRebuild = null;
|
|
1351
|
+
releaseRebuildCharge(state);
|
|
1300
1352
|
scheduleBuild(state);
|
|
1301
1353
|
scheduleWorkerCopyLoad(state);
|
|
1302
1354
|
});
|
|
@@ -1422,9 +1474,12 @@ function releaseHeldMemory(state) {
|
|
|
1422
1474
|
state.savedFiles = [];
|
|
1423
1475
|
state.savedSignature = null;
|
|
1424
1476
|
state.store.release();
|
|
1477
|
+
releaseMemoryCharges(state);
|
|
1425
1478
|
}
|
|
1426
1479
|
function disposeIndex(state) {
|
|
1427
1480
|
state.disposed = true;
|
|
1481
|
+
if (state.rebuildWaitTimer !== null) clearTimeout(state.rebuildWaitTimer);
|
|
1482
|
+
state.rebuildWaitTimer = null;
|
|
1428
1483
|
if (state.buildTimer !== null) clearTimeout(state.buildTimer);
|
|
1429
1484
|
state.buildTimer = null;
|
|
1430
1485
|
invalidateWorkerCopies(state);
|
|
@@ -1763,6 +1818,7 @@ function maintenanceStatus(state) {
|
|
|
1763
1818
|
graphCount,
|
|
1764
1819
|
bufferSize: state.buffer.size,
|
|
1765
1820
|
building: state.building || state.buildScheduled || state.buildTimer !== null || state.shuffledRebuild !== null,
|
|
1821
|
+
waitingForMemory: state.waitingForMemory,
|
|
1766
1822
|
estimatedCompactMs,
|
|
1767
1823
|
estimatedOptimizeMs
|
|
1768
1824
|
};
|
|
@@ -1965,6 +2021,9 @@ function createVectorIndex(fieldName, dimension, config, workerCopies = VECTOR_W
|
|
|
1965
2021
|
hnsw: null,
|
|
1966
2022
|
freshGraph: null,
|
|
1967
2023
|
...noBuildHistory(),
|
|
2024
|
+
rebuildChargeBytes: 0,
|
|
2025
|
+
waitingForMemory: false,
|
|
2026
|
+
rebuildWaitTimer: null,
|
|
1968
2027
|
onLoadedGraphRepaired,
|
|
1969
2028
|
compactedNodeCount: 0,
|
|
1970
2029
|
building: false,
|
|
@@ -2122,6 +2181,7 @@ function createVectorIndex(fieldName, dimension, config, workerCopies = VECTOR_W
|
|
|
2122
2181
|
},
|
|
2123
2182
|
maintenanceStatus: () => maintenanceStatus(state),
|
|
2124
2183
|
estimateMemoryBytes: () => estimateMemoryBytes(state),
|
|
2184
|
+
growthBytesFor: (vectors) => state.store.growthBytesFor(vectors),
|
|
2125
2185
|
deserialize: (parts) => {
|
|
2126
2186
|
invalidateWorkerCopies(state);
|
|
2127
2187
|
deserialize(state, parts);
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { createDurableDirectory } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { createDurableDirectory } from '../../chunk-OABTAUCW.mjs';
|
|
2
|
+
import '../../chunk-W55X2BYN.mjs';
|
|
3
3
|
import '../../chunk-HLPRHOSO.mjs';
|
|
4
|
-
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
4
|
+
import { CHECKPOINT_WORKER_HEARTBEAT_MS, writeCheckpointSegments, directoryCheckpointStore } from '../../chunk-27ZEY73B.mjs';
|
|
5
|
+
import '../../chunk-LVNBY2TS.mjs';
|
|
6
6
|
import '../../chunk-P36MUFEJ.mjs';
|
|
7
7
|
import '../../chunk-YH5OIL7B.mjs';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-PABYSTKO.mjs';
|
|
9
9
|
import '../../chunk-GLZI636G.mjs';
|
|
10
10
|
import '../../chunk-N57XXGPG.mjs';
|
|
11
11
|
import '../../chunk-6PN3U6XW.mjs';
|
|
12
12
|
import '../../chunk-AV4IJKD2.mjs';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-5QIRLJH4.mjs';
|
|
14
14
|
import '../../chunk-5WEBVYOA.mjs';
|
|
15
15
|
import '../../chunk-FUUP45IS.mjs';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-ZATRDAYU.mjs';
|
|
17
|
+
import '../../chunk-EBIHRL7B.mjs';
|
|
17
18
|
import '../../chunk-HJSN7UYG.mjs';
|
|
18
19
|
import '../../chunk-LXWDQLTW.mjs';
|
|
19
20
|
import '../../chunk-TGP5M5R7.mjs';
|
|
@@ -37,8 +38,8 @@ import '../../chunk-OFYKBKKV.mjs';
|
|
|
37
38
|
import '../../chunk-R6A773WK.mjs';
|
|
38
39
|
import '../../chunk-YTJCGKM4.mjs';
|
|
39
40
|
import '../../chunk-CQUMNIIG.mjs';
|
|
40
|
-
import '../../chunk-
|
|
41
|
-
import '../../chunk-
|
|
41
|
+
import '../../chunk-4PFOOQFQ.mjs';
|
|
42
|
+
import '../../chunk-22YPZVMG.mjs';
|
|
42
43
|
import '../../chunk-RFBLQLLZ.mjs';
|
|
43
44
|
import '../../chunk-L5ORED7V.mjs';
|
|
44
45
|
import '../../chunk-OBWUWZRA.mjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as NarsilError, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, Q as QueryParams, P as PreflightResult, e as QueryResult, h as SuggestParams, j as SuggestResult } from './events-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-
|
|
3
|
-
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-
|
|
1
|
+
import { N as NarsilError, L as ListParams, g as ListResult, I as IndexInfo, k as IndexStats, Q as QueryParams, P as PreflightResult, e as QueryResult, h as SuggestParams, j as SuggestResult } from './events-D8GPB1-H.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './events-D8GPB1-H.js';
|
|
3
|
+
import { e as TaskRecord, d as TaskProgress, b as ImportResult, c as TaskListQuery, T as TaskListPage } from './tasks-5_LCFEzF.js';
|
|
4
|
+
export { I as ImportError, f as TaskStatus, g as TaskType } from './tasks-5_LCFEzF.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as Narsil } from './engine-
|
|
7
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
6
|
+
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
7
|
+
import { N as NarsilClient, I as ImportSource } from './client-BGzLNt78.js';
|
|
8
8
|
import { A as AnyDocument } from './schema-4W_7tk1f.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
10
|
import './adapters-BQFQ4PRz.js';
|
|
@@ -18,7 +18,7 @@ function restoreDepsOf(core, host) {
|
|
|
18
18
|
function queueRestore(core, host, restoresInFlight, indexName, data) {
|
|
19
19
|
const previous = restoresInFlight.get(indexName) ?? Promise.resolve();
|
|
20
20
|
const restored = previous.then(async () => {
|
|
21
|
-
const { restoreFromSnapshot } = await import('./snapshot-
|
|
21
|
+
const { restoreFromSnapshot } = await import('./snapshot-PDUGHQ25.mjs');
|
|
22
22
|
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host));
|
|
23
23
|
});
|
|
24
24
|
const settled = restored.then(
|
package/dist/server.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
import { c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
import { N as Narsil } from './engine-
|
|
5
|
-
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-
|
|
6
|
-
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-
|
|
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-D8GPB1-H.js';
|
|
2
|
+
import { c as ServerOptions, N as NarsilServer } from './capabilities-DOgB3pPf.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, C as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, d as RequestContext, e as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, f as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-DOgB3pPf.js';
|
|
4
|
+
import { N as Narsil } from './engine-CCBBGmMR.js';
|
|
5
|
+
import { d as TaskProgress, b as ImportResult, h as TaskStore, e as TaskRecord } from './tasks-5_LCFEzF.js';
|
|
6
|
+
export { C as CapabilitiesResponse, a as CreateIndexEmbedding, i as CreateIndexRequest, H as HttpIndexConfig, I as ImportError, M as MemoryStatsResponse, T as TaskListPage, c as TaskListQuery, f as TaskStatus, g as TaskType } from './tasks-5_LCFEzF.js';
|
|
7
7
|
import './schema-4W_7tk1f.js';
|
|
8
8
|
import './adapters-BQFQ4PRz.js';
|
|
9
9
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './config-
|
|
11
|
-
import './config-
|
|
10
|
+
import './config-CS5ADSrx.js';
|
|
11
|
+
import './config-CSYMTTm1.js';
|
|
12
12
|
import './index-Cl5qQauj.js';
|
|
13
13
|
import './types-DvncmvuQ.js';
|
|
14
14
|
|