@delali/narsil 0.4.1 → 0.4.2-next.273
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/README.md +1 -1
- package/dist/adapters/filesystem.d.ts +1 -1
- package/dist/adapters/filesystem.mjs +9 -3
- package/dist/adapters/gcs.d.ts +1 -1
- package/dist/adapters/indexeddb.d.ts +6 -1
- package/dist/adapters/indexeddb.mjs +20 -26
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/s3.d.ts +1 -1
- package/dist/{adapters-pljAqmrC.d.ts → adapters-8LcdNB77.d.ts} +18 -1
- package/dist/browser/{chunk-QAOVAYAG.mjs → chunk-56UNHLAF.mjs} +1 -1
- package/dist/browser/{chunk-GBJSEHVJ.mjs → chunk-EKISQBV2.mjs} +283 -244
- package/dist/browser/{chunk-YINZFPLT.mjs → chunk-VAPCFSMX.mjs} +1 -1
- package/dist/browser/{chunk-4E5APHTM.mjs → chunk-VIVG3OXM.mjs} +1 -1
- package/dist/browser/{durability-config-75NSFCQN.mjs → durability-config-UP3OTUMB.mjs} +34 -2
- package/dist/browser/{msgpack-leaf-44XNWSSY.mjs → msgpack-leaf-76Q5SZ5S.mjs} +23 -10
- package/dist/browser/{optional-reads-6LN3HMUH.mjs → optional-reads-NQO5DKM4.mjs} +18 -16
- package/dist/browser/{optional-writes-76DWMRQH.mjs → optional-writes-3HKIVZFU.mjs} +295 -106
- package/dist/browser/{segment-codec-leaf-A427QJUX.mjs → segment-codec-leaf-GXSRX5VT.mjs} +47 -30
- package/dist/browser/{storage-leaf-5UTR5K7J.mjs → storage-leaf-42IZEOJJ.mjs} +1473 -305
- package/dist/{capabilities-BOFFMx84.d.ts → capabilities-BoWiLNv7.d.ts} +76 -61
- package/dist/{chunk-Z7XSHKOF.mjs → chunk-35RWLUVY.mjs} +63 -144
- package/dist/{chunk-6GHX35ZM.mjs → chunk-43T3P3BE.mjs} +1 -1
- package/dist/{chunk-IL5DRCNU.mjs → chunk-4JLHHEBN.mjs} +1 -1
- package/dist/{chunk-DKIMHIBC.mjs → chunk-4YIVY3PB.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-ZUJCUPVS.mjs → chunk-5SHWA6PE.mjs} +1 -1
- package/dist/{chunk-2K24MEYV.mjs → chunk-6LVQ3GLT.mjs} +3 -3
- package/dist/{chunk-DDUXEJXW.mjs → chunk-6SIEVWMG.mjs} +45 -22
- package/dist/{chunk-WM5KJSQV.mjs → chunk-ACNHJOGC.mjs} +1 -1
- package/dist/{chunk-755NM4PL.mjs → chunk-BWPVDIRN.mjs} +183 -21
- package/dist/{chunk-SMQPZHPS.mjs → chunk-C57GWAXN.mjs} +1 -1
- package/dist/{chunk-357KIU5E.mjs → chunk-DRZP5MSG.mjs} +5 -5
- package/dist/{chunk-MYN4K5IS.mjs → chunk-DZMD4OMD.mjs} +1 -1
- package/dist/{chunk-7P5YWDRQ.mjs → chunk-EY5U4P5V.mjs} +1 -1
- package/dist/{chunk-X3EQCQLP.mjs → chunk-EZJ6HBG7.mjs} +2 -2
- package/dist/{chunk-WC5KAWXQ.mjs → chunk-FE2XILWN.mjs} +4 -4
- package/dist/{chunk-CERPUGRK.mjs → chunk-G3KVEHIW.mjs} +2 -2
- package/dist/{chunk-B3MO37YF.mjs → chunk-GTGQLCEI.mjs} +1 -1
- package/dist/{chunk-MSJD74GN.mjs → chunk-H23FB267.mjs} +5 -5
- package/dist/{chunk-UNEEFTEU.mjs → chunk-HZ3OAUTL.mjs} +2 -1
- package/dist/{chunk-M3B7SGJB.mjs → chunk-KL4ORYJW.mjs} +6 -6
- package/dist/{chunk-WTMCGZ74.mjs → chunk-KXA77DPZ.mjs} +2 -2
- package/dist/{chunk-6I6OO6B2.mjs → chunk-LRIJ7U3T.mjs} +4 -4
- package/dist/{chunk-3IE3A74H.mjs → chunk-PNFP5THV.mjs} +3 -3
- package/dist/{react-native/chunks/chunk-4FUCRLSA.mjs → chunk-PQWK7KXS.mjs} +1 -1
- package/dist/{chunk-P4F4UWLC.mjs → chunk-PSO7V7VW.mjs} +17 -3
- package/dist/{chunk-OGYSPNL2.mjs → chunk-QNZJYMCF.mjs} +7 -7
- package/dist/{chunk-DBC4EJWB.mjs → chunk-R3PFPFME.mjs} +1 -1
- package/dist/{chunk-MSIN4NM3.mjs → chunk-S3JHYPH7.mjs} +6 -1
- package/dist/{chunk-MI6UZGUR.mjs → chunk-SPA7GXST.mjs} +3 -3
- package/dist/{chunk-PP3W5PQQ.mjs → chunk-WYH3QHBK.mjs} +698 -451
- package/dist/{chunk-D456ZFPQ.mjs → chunk-X5V25BPN.mjs} +2 -2
- package/dist/{chunk-GXCDWLQI.mjs → chunk-Y7GXGJFZ.mjs} +23 -10
- package/dist/{chunk-NCIGNQJE.mjs → chunk-YGRJLI2Z.mjs} +930 -387
- package/dist/{react-native/chunks/chunk-MMPBO4WR.mjs → chunk-ZO7VLAIT.mjs} +2 -2
- package/dist/{chunk-AXDB6KUQ.mjs → chunk-ZTB7AWTW.mjs} +4 -4
- package/dist/chunk-ZYEEOZTT.mjs +52 -0
- package/dist/{client-BhNxHtcZ.d.ts → client-B0NPZSKY.d.ts} +4 -4
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +2 -2
- package/dist/{config-P9zW3Zz7.d.ts → config-B3-sw887.d.ts} +3 -3
- package/dist/{config-BJSL7piq.d.ts → config-DL_nkguq.d.ts} +4 -4
- package/dist/{direct-executor-GWJXDFLD.mjs → direct-executor-7G57AYXH.mjs} +4 -4
- package/dist/distribution/coordinator/etcd.d.ts +3 -3
- package/dist/distribution/coordinator/etcd.mjs +33 -3
- package/dist/distribution/coordinator/in-memory.d.ts +3 -3
- package/dist/distribution/transport/grpc.mjs +4 -4
- package/dist/distribution/transport/in-memory.mjs +1 -1
- package/dist/distribution/transport/tcp.mjs +12 -7
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +167 -91
- package/dist/{durability-config-VWS2K24E.mjs → durability-config-HWKWP35M.mjs} +34 -2
- package/dist/embeddings/openai.d.ts +7 -3
- package/dist/embeddings/openai.mjs +37 -31
- package/dist/{engine-DoFnkRoF.d.ts → engine-DGG_yX0p.d.ts} +3 -3
- package/dist/{index-B_vmxpgW.d.ts → index-fX_FbuRT.d.ts} +1 -1
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +4 -4
- package/dist/index.react-native.mjs +4 -4
- package/dist/invalidation/broadcast-channel.d.ts +1 -1
- package/dist/invalidation/filesystem.d.ts +1 -1
- package/dist/invalidation/noop.d.ts +1 -1
- package/dist/{long-query-thread-GNTDYDOZ.mjs → long-query-thread-KPN7NSOC.mjs} +14 -14
- package/dist/msgpack-leaf-LIT7TKZW.mjs +9 -0
- package/dist/{optional-reads-UCS23AWP.mjs → optional-reads-ESDVS225.mjs} +18 -16
- package/dist/{optional-writes-2AHJCGTY.mjs → optional-writes-CSULLISE.mjs} +9 -8
- package/dist/{paged-partition-archive-GBAHDT55.mjs → paged-partition-archive-BKQADXOT.mjs} +13 -13
- package/dist/partial-words.browser.mjs +3 -3
- package/dist/partial-words.mjs +4 -4
- package/dist/pattern.browser.mjs +2 -2
- package/dist/pattern.mjs +2 -2
- package/dist/persistence/durability/checkpoint-worker.d.ts +2 -2
- package/dist/persistence/durability/checkpoint-worker.mjs +14 -14
- package/dist/{query-actions-IDCUA7UV.mjs → query-actions-HTSJKZRU.mjs} +4 -4
- package/dist/query-suggestions/merge-worker.mjs +7 -7
- package/dist/query-suggestions.browser.mjs +3 -3
- package/dist/query-suggestions.d.ts +3 -3
- package/dist/query-suggestions.mjs +5 -5
- package/dist/react-native/chunks/{chunk-MRH36RN3.mjs → chunk-AOLLV37A.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-UO44MA5M.mjs → chunk-DN4FT62B.mjs} +23 -10
- package/dist/react-native/chunks/{chunk-TG56N5JC.mjs → chunk-EF4Y5C3Y.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-HTBY4GON.mjs → chunk-ESVBC3AT.mjs} +1 -1
- package/dist/{chunk-F26DOOUH.mjs → react-native/chunks/chunk-H6LK5WCF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-LPX26NNL.mjs → chunk-JEYZQA4Z.mjs} +699 -451
- package/dist/react-native/chunks/{chunk-AJAH6X7W.mjs → chunk-KJQ3BUVM.mjs} +4 -4
- package/dist/{chunk-UHLFCGZ3.mjs → react-native/chunks/chunk-QYVRD6C5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-SCGBU47K.mjs → chunk-X3VY2YT4.mjs} +2 -2
- package/dist/{chunk-R2PJKSNL.mjs → react-native/chunks/chunk-ZF3VSGEI.mjs} +1 -1
- package/dist/react-native/chunks/{durability-config-FCSD4MXY.mjs → durability-config-HJETGZVB.mjs} +34 -2
- package/dist/react-native/chunks/msgpack-leaf-FOUPTT7J.mjs +7 -0
- package/dist/react-native/chunks/{optional-reads-4XCJ34QG.mjs → optional-reads-TN3PT6M4.mjs} +18 -16
- package/dist/react-native/chunks/{optional-writes-XYZVTBFB.mjs → optional-writes-MGFFGKYQ.mjs} +8 -7
- package/dist/react-native/chunks/{restore-queue-NOKQZJ2Z.mjs → restore-queue-MVJTP3E4.mjs} +7 -7
- package/dist/react-native/chunks/{segment-codec-leaf-3ZXBJVKH.mjs → segment-codec-leaf-PSWHL55A.mjs} +5 -5
- package/dist/react-native/chunks/{segment-merge-leaf-3Z7MMPWE.mjs → segment-merge-leaf-WOJWSDLW.mjs} +6 -6
- package/dist/react-native/chunks/{storage-leaf-KJOX3MMW.mjs → storage-leaf-ZUN6Y44X.mjs} +1481 -314
- package/dist/react-native/chunks/{store-leaf-QGLVSO5X.mjs → store-leaf-K5XG46FV.mjs} +6 -6
- package/dist/react-native/chunks/{suggestions-leaf-6GI5ZSW6.mjs → suggestions-leaf-KDPM3P27.mjs} +6 -6
- package/dist/react-native/chunks/{worker-copies-ALOD7TSP.mjs → worker-copies-FVFMBBH6.mjs} +5 -5
- package/dist/react-native/partial-words.mjs +4 -4
- package/dist/react-native/pattern.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +4 -4
- package/dist/react-native/sync.mjs +4 -4
- package/dist/react-native/synonyms.mjs +4 -4
- package/dist/react.d.ts +10 -10
- package/dist/react.mjs +0 -2
- package/dist/{rerank-HB6DU6GS.mjs → rerank-3QEJNMFH.mjs} +4 -4
- package/dist/rerankers/http.d.ts +1 -1
- package/dist/rerankers/http.mjs +19 -15
- package/dist/{restore-queue-VUQHGCXE.mjs → restore-queue-Q76Q4S35.mjs} +7 -7
- package/dist/{schema-CzG9OUw5.d.ts → schema-CFnQ-WI3.d.ts} +1 -1
- package/dist/{segment-codec-leaf-TW2FPAAT.mjs → segment-codec-leaf-BSDDR7DQ.mjs} +5 -5
- package/dist/{segment-merge-leaf-BS3QV5PZ.mjs → segment-merge-leaf-6TT66HC5.mjs} +5 -5
- package/dist/server.d.ts +86 -12
- package/dist/server.mjs +2243 -1918
- package/dist/{storage-leaf-5IG2HPNY.mjs → storage-leaf-R5JQ2X2M.mjs} +1193 -219
- package/dist/{store-leaf-ZWSOK2DV.mjs → store-leaf-NCGETZYY.mjs} +6 -6
- package/dist/{suggestions-leaf-MUZNKQVF.mjs → suggestions-leaf-TX3GTD6S.mjs} +8 -8
- package/dist/sync/filesystem.d.ts +4 -4
- package/dist/sync/filesystem.mjs +12 -12
- package/dist/sync/indexeddb.browser.mjs +1 -1
- package/dist/sync/indexeddb.d.ts +4 -4
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +4 -4
- package/dist/sync.d.ts +5 -5
- package/dist/sync.mjs +4 -4
- package/dist/synonyms.browser.mjs +3 -3
- package/dist/synonyms.mjs +4 -4
- package/dist/{tasks-DrLiolTG.d.ts → tasks-B2MDjPL0.d.ts} +4 -4
- package/dist/{thread-6ZBCENAP.mjs → thread-VLVPAUWC.mjs} +13 -13
- package/dist/{types-pS-mAJmX.d.ts → types-DGjk684l.d.ts} +2 -2
- package/dist/vector/search-worker.d.ts +2 -2
- package/dist/{worker-copies-32HWFUH7.mjs → worker-copies-NZSBQZKG.mjs} +7 -7
- package/dist/workers/entry.mjs +16 -16
- package/package.json +12 -12
- package/dist/chunk-HLPRHOSO.mjs +0 -17
- package/dist/msgpack-leaf-H5ZYW7S7.mjs +0 -9
- package/dist/react-native/chunks/msgpack-leaf-JMNGSTRW.mjs +0 -7
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-EF4Y5C3Y.mjs';
|
|
2
2
|
export { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-X3VY2YT4.mjs';
|
|
4
|
+
import './chunk-JEYZQA4Z.mjs';
|
|
5
5
|
import './chunk-HQEVQEDJ.mjs';
|
|
6
6
|
import './chunk-AKRYHAVG.mjs';
|
|
7
7
|
import './chunk-LX62Y4B5.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-ESVBC3AT.mjs';
|
|
9
9
|
import './chunk-UYKIV2KT.mjs';
|
|
10
10
|
import './chunk-CW2ZFXSE.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-DN4FT62B.mjs';
|
|
12
|
+
import './chunk-AOLLV37A.mjs';
|
|
13
13
|
import './chunk-HRDMIQ63.mjs';
|
|
14
14
|
import './chunk-VUJCSQG5.mjs';
|
|
15
15
|
import './chunk-43R4GCM7.mjs';
|
package/dist/react-native/chunks/{suggestions-leaf-6GI5ZSW6.mjs → suggestions-leaf-KDPM3P27.mjs}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, DayStore, RestoredHistory, dayOf, sameBytes, openCountsFile } from './chunk-EF4Y5C3Y.mjs';
|
|
2
2
|
import { oneSyncChangeAtATime } from './chunk-Q32DDFKX.mjs';
|
|
3
|
-
import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-
|
|
4
|
-
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-
|
|
3
|
+
import { attachedRuntimeOf, attachRuntime, isGroup, invalidSetting, MIN_KEY_BYTES, historyFilesOf, buildRecordKey, resolveSetting, acceptedPhrase, normaliseBan, banListFromInput, validateSetting, withState, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, isPerson, removeHistoryFolder, packEnvelopeWithChecksum, crc32, openChecksummedEnvelope, MAX_MANUAL_SUGGESTION_COUNT, MAX_SOURCE_INDEX_NAME_LENGTH, DEFAULT_PREVIEW_LIMIT, MAX_PREVIEW_LIMIT, requireFieldsInSchema, removeRestoreLeftovers, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, parseSchedule, nextMatchAfter, latestMatchAtOrBefore, DAY_MS, listHistoryFolder, historyFileOf, BUILD_WRITE_BATCH, MAX_TIMER_DELAY_MS, MS_PER_SECOND, BUILD_LIST_PAGE, unionOfBans } from './chunk-X3VY2YT4.mjs';
|
|
4
|
+
import { GROUP_FORMAT, loadDigest, emitEngineEvent, emitWriteEventAfter, createEngineIndex, withOpenIndex, SUGGESTIONS_INDEX_INFIX } from './chunk-JEYZQA4Z.mjs';
|
|
5
5
|
import './chunk-HQEVQEDJ.mjs';
|
|
6
6
|
import './chunk-AKRYHAVG.mjs';
|
|
7
7
|
import './chunk-LX62Y4B5.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-ESVBC3AT.mjs';
|
|
9
9
|
import './chunk-UYKIV2KT.mjs';
|
|
10
10
|
import './chunk-CW2ZFXSE.mjs';
|
|
11
|
-
import { decode } from './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import { decode } from './chunk-DN4FT62B.mjs';
|
|
12
|
+
import './chunk-AOLLV37A.mjs';
|
|
13
13
|
import { compareCodePoints } from './chunk-HRDMIQ63.mjs';
|
|
14
14
|
import './chunk-VUJCSQG5.mjs';
|
|
15
15
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-
|
|
2
|
-
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-
|
|
1
|
+
import { buildSegmentPayloads, freezeSegmentShared, isValidWorkerResponse, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, toError, isDeterministicFailure, workerIneligibility, reportIneligible, selectionKeeps, alreadyPresentOnWorker, eligibleIndexNames } from './chunk-KJQ3BUVM.mjs';
|
|
2
|
+
import { growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, encodeSegmentState, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-JEYZQA4Z.mjs';
|
|
3
3
|
import './chunk-HQEVQEDJ.mjs';
|
|
4
4
|
import { resolveWorkerCount, DEFAULT_BACKPRESSURE_LIMIT, DEFAULT_REQUEST_TIMEOUT_MS, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount, fnv1a, noteThreadSlotGone, threadSlotOfWorker } from './chunk-AKRYHAVG.mjs';
|
|
5
5
|
import { MAX_SWEEP_INTERVAL_MS, MIN_SWEEP_INTERVAL_MS } from './chunk-LX62Y4B5.mjs';
|
|
6
|
-
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
6
|
+
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-ESVBC3AT.mjs';
|
|
7
7
|
import './chunk-UYKIV2KT.mjs';
|
|
8
8
|
import './chunk-CW2ZFXSE.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { schemaFieldsOf } from './chunk-
|
|
9
|
+
import './chunk-DN4FT62B.mjs';
|
|
10
|
+
import { schemaFieldsOf } from './chunk-AOLLV37A.mjs';
|
|
11
11
|
import './chunk-HRDMIQ63.mjs';
|
|
12
12
|
import './chunk-VUJCSQG5.mjs';
|
|
13
13
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-
|
|
1
|
+
import { spellingCountsOf, encodePartialSpellings, countSpelling, SurfaceTable, SURFACE_TABLE_START_CAPACITY, StringPlan, SegmentRefusal, reserveStrings, grownCapacity, PARTIAL_WORD_RUN_CODE_POINTS, encodeStringBlob, sameFields, countDocumentSpellings, tokenize, GROWING_PARTIAL_ENTRY_BYTES, GROWING_PARTIAL_RUN_BYTES, GROWING_PARTIAL_RUN_MEMBER_BYTES, GROWING_PARTIAL_PENDING_ENTRY_BYTES, RUN_TABLE_START_CAPACITY, TERM_REGION_GROWTH_FACTOR, RUN_MEMBER_START_CAPACITY, SLICE_CAPACITIES, TERM_SLOT_LOAD_DENOMINATOR, TERM_SLOT_LOAD_NUMERATOR, PoolPlan, requireRoom, releaseRange, requireSegment, termText, partitionDocumentFrequency, visitDocumentSpellings, visitDocumentSurfaceSpellings, resolveStopWords, transformToken, expansionSource, liveFrequency, codePointCountOf, GROWING_PARTIAL_PENDING_ENTRIES_PER_ENTRY, typedRegion, regionsOverlap, mergeText } from './chunks/chunk-JEYZQA4Z.mjs';
|
|
2
2
|
import './chunks/chunk-HQEVQEDJ.mjs';
|
|
3
3
|
import { FNV_OFFSET_BASIS, FNV_PRIME } from './chunks/chunk-AKRYHAVG.mjs';
|
|
4
4
|
import { PARTIAL_WORD_MIN_CODE_POINTS, PARTIAL_WORDS_ADDED_PER_QUERY, DEFAULT_FUZZY_PREFIX_LENGTH } from './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import { fuzzyTermMatches, storedText } from './chunks/chunk-
|
|
5
|
+
import { fuzzyTermMatches, storedText } from './chunks/chunk-ESVBC3AT.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
|
-
import './chunks/chunk-
|
|
9
|
-
import './chunks/chunk-
|
|
8
|
+
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
+
import './chunks/chunk-AOLLV37A.mjs';
|
|
10
10
|
import { compareCodePoints, codePointCount } from './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { storedValuesOf, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, bitsetHas, bitsetSet, TYPO_CLAIM_SLOTS_PER_WORD, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, storedText, tabulatedLevenshtein } from './chunks/chunk-
|
|
1
|
+
import { storedValuesOf, GrowableUint32, PATTERN_RUN_CODE_POINTS, PATTERN_TEST_OPERATORS, PATTERN_ELEMENT_OPERATORS, createBitSet, MAX_PATTERN_POSITIONS, MATCHER_STATE_OVERHEAD_BYTES, bitsetHas, bitsetSet, TYPO_CLAIM_SLOTS_PER_WORD, MAX_PATTERN_TOLERANCE, bitsetAnd, bitsetNot, PATTERN_EXPRESSION_OPERATORS, invalid, MAX_PATTERN_TEXT_CODE_POINTS, MATCHER_CODE_POINT_BYTES, MATCHER_SIMULATION_BYTES_PER_POSITION, storedText, tabulatedLevenshtein } from './chunks/chunk-ESVBC3AT.mjs';
|
|
2
2
|
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-UYKIV2KT.mjs';
|
|
3
3
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
4
|
-
import './chunks/chunk-
|
|
4
|
+
import './chunks/chunk-AOLLV37A.mjs';
|
|
5
5
|
import { codePointCount, exceedsCodePoints } from './chunks/chunk-HRDMIQ63.mjs';
|
|
6
6
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './chunks/chunk-JEYZQA4Z.mjs';
|
|
2
2
|
import './chunks/chunk-HQEVQEDJ.mjs';
|
|
3
3
|
import './chunks/chunk-AKRYHAVG.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-ESVBC3AT.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
|
-
import './chunks/chunk-
|
|
9
|
-
import './chunks/chunk-
|
|
8
|
+
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
+
import './chunks/chunk-AOLLV37A.mjs';
|
|
10
10
|
import './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-
|
|
1
|
+
import { isSyncEpoch, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunks/chunk-JEYZQA4Z.mjs';
|
|
2
2
|
import './chunks/chunk-HQEVQEDJ.mjs';
|
|
3
3
|
import './chunks/chunk-AKRYHAVG.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-ESVBC3AT.mjs';
|
|
6
6
|
import './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
|
-
import './chunks/chunk-
|
|
9
|
-
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunks/chunk-
|
|
8
|
+
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
+
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunks/chunk-AOLLV37A.mjs';
|
|
10
10
|
import './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './chunks/chunk-43R4GCM7.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './chunks/chunk-JEYZQA4Z.mjs';
|
|
2
2
|
import './chunks/chunk-HQEVQEDJ.mjs';
|
|
3
3
|
import './chunks/chunk-AKRYHAVG.mjs';
|
|
4
4
|
import './chunks/chunk-LX62Y4B5.mjs';
|
|
5
|
-
import { storedText } from './chunks/chunk-
|
|
5
|
+
import { storedText } from './chunks/chunk-ESVBC3AT.mjs';
|
|
6
6
|
import { nativeSearchCoreIsEnabled, loadNativeCore, noteFallback } from './chunks/chunk-UYKIV2KT.mjs';
|
|
7
7
|
import './chunks/chunk-CW2ZFXSE.mjs';
|
|
8
|
-
import './chunks/chunk-
|
|
9
|
-
import { requireLoadedMessagePack } from './chunks/chunk-
|
|
8
|
+
import './chunks/chunk-DN4FT62B.mjs';
|
|
9
|
+
import { requireLoadedMessagePack } from './chunks/chunk-AOLLV37A.mjs';
|
|
10
10
|
import { compareCodePoints } from './chunks/chunk-HRDMIQ63.mjs';
|
|
11
11
|
import './chunks/chunk-VUJCSQG5.mjs';
|
|
12
12
|
import { NarsilError, ErrorCodes } from './chunks/chunk-43R4GCM7.mjs';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { s as Narsil, N as NarsilError, L as ListParams,
|
|
2
|
-
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-
|
|
3
|
-
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
4
|
-
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-
|
|
1
|
+
import { s as Narsil, N as NarsilError, L as ListParams, v as ListResult, I as IndexInfo, z as IndexStats, Q as QueryParams, y as PreflightResult, t as QueryResult, w as SuggestParams, x as SuggestResult } from './engine-DGG_yX0p.js';
|
|
2
|
+
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DGG_yX0p.js';
|
|
3
|
+
import { f as TaskRecord, e as TaskProgress, c as ImportResult, d as TaskListQuery, T as TaskListPage } from './tasks-B2MDjPL0.js';
|
|
4
|
+
export { E as ErrorDetail, I as ImportError, g as TaskStatus, i as TaskType } from './tasks-B2MDjPL0.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
|
-
import { N as NarsilClient, I as ImportSource } from './client-
|
|
7
|
-
import { A as AnyDocument } from './schema-
|
|
8
|
-
import './adapters-
|
|
6
|
+
import { N as NarsilClient, I as ImportSource } from './client-B0NPZSKY.js';
|
|
7
|
+
import { A as AnyDocument } from './schema-CFnQ-WI3.js';
|
|
8
|
+
import './adapters-8LcdNB77.js';
|
|
9
9
|
import './query-suggestions-CBYkrQ5T.js';
|
|
10
10
|
import './synonyms-CpOAHPa-.js';
|
|
11
|
-
import './config-
|
|
12
|
-
import './config-
|
|
13
|
-
import './index-
|
|
11
|
+
import './config-DL_nkguq.js';
|
|
12
|
+
import './config-B3-sw887.js';
|
|
13
|
+
import './index-fX_FbuRT.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
package/dist/react.mjs
CHANGED
|
@@ -705,8 +705,6 @@ function useDocuments(indexName, params, options) {
|
|
|
705
705
|
indexName
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
|
-
|
|
709
|
-
// src/server/task-status.ts
|
|
710
708
|
var TERMINAL_TASK_STATUSES = /* @__PURE__ */ new Set(["succeeded", "failed", "cancelled"]);
|
|
711
709
|
function isTerminalTaskStatus(status) {
|
|
712
710
|
return TERMINAL_TASK_STATUSES.has(status);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { loadRerankRuntime } from './chunk-
|
|
1
|
+
import { loadRerankRuntime } from './chunk-WYH3QHBK.mjs';
|
|
2
2
|
import './chunk-2CKDCC65.mjs';
|
|
3
3
|
import './chunk-2AFZE7Y3.mjs';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
5
5
|
import './chunk-BUMREPLU.mjs';
|
|
6
6
|
import './chunk-7T4LAYT4.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-4JLHHEBN.mjs';
|
|
8
|
+
import './chunk-EY5U4P5V.mjs';
|
|
9
9
|
import './chunk-U2BKYEC7.mjs';
|
|
10
10
|
import './chunk-FJXJZUWF.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
package/dist/rerankers/http.d.ts
CHANGED
package/dist/rerankers/http.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-
|
|
1
|
+
import { resolveApiKey, buildSignal, postJsonWithRetry } from '../chunk-PSO7V7VW.mjs';
|
|
2
2
|
import { ErrorCodes, NarsilError } from '../chunk-ZKOQR7EA.mjs';
|
|
3
3
|
|
|
4
4
|
// src/rerankers/constants.ts
|
|
@@ -80,21 +80,25 @@ function createHttpReranker(config) {
|
|
|
80
80
|
if (documents.length === 0) return [];
|
|
81
81
|
const apiKey = apiKeySource === void 0 ? null : await resolveApiKey(apiKeySource, "HTTP rerank adapter", ErrorCodes.RERANK_CONFIG_INVALID);
|
|
82
82
|
const combinedSignal = buildSignal(signal, timeoutMs);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
try {
|
|
84
|
+
const scores = [];
|
|
85
|
+
for (let start = 0; start < documents.length; start += perRequest) {
|
|
86
|
+
const chunk = documents.slice(start, start + perRequest);
|
|
87
|
+
const response = await postJsonWithRetry({
|
|
88
|
+
url,
|
|
89
|
+
body: JSON.stringify({ model, query, documents: chunk, top_n: chunk.length }),
|
|
90
|
+
apiKey,
|
|
91
|
+
maxRetries,
|
|
92
|
+
signal: combinedSignal.signal,
|
|
93
|
+
service: SERVICE,
|
|
94
|
+
failureCode: ErrorCodes.RERANK_FAILED
|
|
95
|
+
});
|
|
96
|
+
for (const score of scoresFromResults(response.results, chunk.length)) scores.push(score);
|
|
97
|
+
}
|
|
98
|
+
return scores;
|
|
99
|
+
} finally {
|
|
100
|
+
combinedSignal.dispose();
|
|
96
101
|
}
|
|
97
|
-
return scores;
|
|
98
102
|
},
|
|
99
103
|
async shutdown() {
|
|
100
104
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-
|
|
2
|
-
export { startQuerySuggestions } from './chunk-
|
|
3
|
-
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-
|
|
4
|
-
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-
|
|
1
|
+
import { installSuggestionHooks, RestoredHistory, clearLeftoversOfName } from './chunk-4YIVY3PB.mjs';
|
|
2
|
+
export { startQuerySuggestions } from './chunk-4YIVY3PB.mjs';
|
|
3
|
+
import { attachedRuntimeOf, withState, unionOfBans, BUILD_WRITE_BATCH } from './chunk-G3KVEHIW.mjs';
|
|
4
|
+
import { loadStorageCode, loadOptionalWrites, emitEngineEvent, removeDocumentBatch2 } from './chunk-WYH3QHBK.mjs';
|
|
5
5
|
import './chunk-2CKDCC65.mjs';
|
|
6
6
|
import './chunk-2AFZE7Y3.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
8
8
|
import './chunk-BUMREPLU.mjs';
|
|
9
9
|
import './chunk-7T4LAYT4.mjs';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-4JLHHEBN.mjs';
|
|
11
|
+
import './chunk-EY5U4P5V.mjs';
|
|
12
12
|
import './chunk-U2BKYEC7.mjs';
|
|
13
13
|
import './chunk-FJXJZUWF.mjs';
|
|
14
14
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-
|
|
2
|
-
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-
|
|
1
|
+
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-PQWK7KXS.mjs';
|
|
2
|
+
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-WYH3QHBK.mjs';
|
|
3
3
|
import './chunk-2CKDCC65.mjs';
|
|
4
4
|
import './chunk-2AFZE7Y3.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
6
6
|
import './chunk-BUMREPLU.mjs';
|
|
7
7
|
import './chunk-7T4LAYT4.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-4JLHHEBN.mjs';
|
|
9
|
+
import './chunk-EY5U4P5V.mjs';
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-FJXJZUWF.mjs';
|
|
12
12
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { deserializePartition, serializePartition } from './chunk-
|
|
2
|
-
export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-
|
|
1
|
+
export { deserializePartition, serializePartition } from './chunk-ZO7VLAIT.mjs';
|
|
2
|
+
export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-WYH3QHBK.mjs';
|
|
3
3
|
import './chunk-2CKDCC65.mjs';
|
|
4
4
|
import './chunk-2AFZE7Y3.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
6
6
|
import './chunk-BUMREPLU.mjs';
|
|
7
7
|
import './chunk-7T4LAYT4.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-4JLHHEBN.mjs';
|
|
9
|
+
import './chunk-EY5U4P5V.mjs';
|
|
10
10
|
import './chunk-U2BKYEC7.mjs';
|
|
11
11
|
import './chunk-FJXJZUWF.mjs';
|
|
12
12
|
import './chunk-5EI5CXO6.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { G as GroupResult, H as Hit, Q as QueryParams,
|
|
2
|
-
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-
|
|
3
|
-
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
4
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { G as GroupResult, H as Hit, Q as QueryParams, J as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, z as IndexStats, v as ListResult, y as PreflightResult, x as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-DGG_yX0p.js';
|
|
2
|
+
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-DGG_yX0p.js';
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-BoWiLNv7.js';
|
|
4
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-BoWiLNv7.js';
|
|
5
|
+
import { P as PersistenceAdapter } from './adapters-8LcdNB77.js';
|
|
6
|
+
import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-B2MDjPL0.js';
|
|
7
|
+
export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-B2MDjPL0.js';
|
|
7
8
|
import { d as QuerySuggestionsSetting, M as ManualQuerySuggestion, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
8
|
-
import {
|
|
9
|
-
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-
|
|
10
|
-
import './adapters-pljAqmrC.js';
|
|
9
|
+
import { i as ClusterHealth } from './config-DL_nkguq.js';
|
|
10
|
+
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CFnQ-WI3.js';
|
|
11
11
|
import './synonyms-CpOAHPa-.js';
|
|
12
|
-
import './index-
|
|
13
|
-
import './config-
|
|
12
|
+
import './index-fX_FbuRT.js';
|
|
13
|
+
import './config-B3-sw887.js';
|
|
14
14
|
import './types-DvncmvuQ.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -403,6 +403,80 @@ declare function httpStatusForNarsilError(code: string): number;
|
|
|
403
403
|
*/
|
|
404
404
|
declare function createServer(engine: Narsil, options?: ServerOptions): NarsilServer;
|
|
405
405
|
|
|
406
|
+
/**
|
|
407
|
+
* A {@link TaskStore} that writes every task record through a
|
|
408
|
+
* {@link PersistenceAdapter}, so that a restarted server still reports the
|
|
409
|
+
* tasks that it accepted before the restart.
|
|
410
|
+
*
|
|
411
|
+
* The store writes each record as one JSON file under its id, through the
|
|
412
|
+
* adapter's `save`, so a filesystem adapter replaces each file atomically. It
|
|
413
|
+
* reads every record once, on the first call, and answers every later read
|
|
414
|
+
* from memory, so one server must own the adapter's keys. Writes to one record
|
|
415
|
+
* reach the adapter in the order of the calls. A key that holds no readable
|
|
416
|
+
* record is deleted on that first read, and a key that the adapter fails to
|
|
417
|
+
* load is skipped. The store caps how many records it keeps and drops the
|
|
418
|
+
* oldest finished records first, deleting their keys, which bounds both the
|
|
419
|
+
* memory and the storage that task records take. `ttlMs` is ignored, because
|
|
420
|
+
* the cap plays that role.
|
|
421
|
+
*
|
|
422
|
+
* @public
|
|
423
|
+
*/
|
|
424
|
+
declare class PersistenceTaskStore implements TaskStore {
|
|
425
|
+
private readonly adapter;
|
|
426
|
+
private readonly maxRetained;
|
|
427
|
+
private readonly records;
|
|
428
|
+
private readonly pendingWrites;
|
|
429
|
+
private loading;
|
|
430
|
+
/**
|
|
431
|
+
* Builds a store over an adapter that it owns alone.
|
|
432
|
+
*
|
|
433
|
+
* @param adapter - The adapter that holds the records, such as one from
|
|
434
|
+
* `createFilesystemPersistence` scoped to a folder that holds nothing else.
|
|
435
|
+
* The store deletes every key of the adapter that holds no task record.
|
|
436
|
+
* @param maxRetained - Records to keep before the oldest finished ones are
|
|
437
|
+
* dropped. Defaults to 1000.
|
|
438
|
+
*/
|
|
439
|
+
constructor(adapter: PersistenceAdapter, maxRetained?: number);
|
|
440
|
+
/**
|
|
441
|
+
* Stores a record and writes it through the adapter, replacing whatever its
|
|
442
|
+
* id already held.
|
|
443
|
+
*
|
|
444
|
+
* @param record - The record to store. A copy is kept, so changing the
|
|
445
|
+
* object afterwards leaves the store untouched.
|
|
446
|
+
* @throws The adapter's error where the write fails. The store still
|
|
447
|
+
* answers reads with the new record, and the next write of that id tries
|
|
448
|
+
* again.
|
|
449
|
+
*/
|
|
450
|
+
set(record: TaskRecord): Promise<void>;
|
|
451
|
+
/**
|
|
452
|
+
* Reads one record back.
|
|
453
|
+
*
|
|
454
|
+
* @param id - The task to read.
|
|
455
|
+
* @returns A copy of the record, or `null` when the store holds no such id.
|
|
456
|
+
*/
|
|
457
|
+
get(id: string): Promise<TaskRecord | null>;
|
|
458
|
+
/**
|
|
459
|
+
* Lists every record the store holds.
|
|
460
|
+
*
|
|
461
|
+
* @returns A copy of each record, oldest first.
|
|
462
|
+
*/
|
|
463
|
+
list(): Promise<TaskRecord[]>;
|
|
464
|
+
/**
|
|
465
|
+
* Removes one record and deletes its key. An id the store never held is not
|
|
466
|
+
* an error.
|
|
467
|
+
*
|
|
468
|
+
* @param id - The task to remove.
|
|
469
|
+
*/
|
|
470
|
+
delete(id: string): Promise<void>;
|
|
471
|
+
/** Resolves once every write that the store has started reaches the adapter, failed or not. */
|
|
472
|
+
shutdown(): Promise<void>;
|
|
473
|
+
private ensureLoaded;
|
|
474
|
+
private load;
|
|
475
|
+
private loadKey;
|
|
476
|
+
private persist;
|
|
477
|
+
private prune;
|
|
478
|
+
}
|
|
479
|
+
|
|
406
480
|
/**
|
|
407
481
|
* Default {@link TaskStore}: an in-process map, lost on restart and not shared
|
|
408
482
|
* across instances. It caps how many records it keeps and evicts the oldest
|
|
@@ -451,4 +525,4 @@ declare class InMemoryTaskStore implements TaskStore {
|
|
|
451
525
|
private prune;
|
|
452
526
|
}
|
|
453
527
|
|
|
454
|
-
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|
|
528
|
+
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, PersistenceTaskStore, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|