@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,14 +1,14 @@
|
|
|
1
|
-
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { DayStore, RestoredHistory, clearLeftoversOfName, dayOf, installSuggestionHooks, openCountsFile, sameBytes, startQuerySuggestions } from './chunk-4YIVY3PB.mjs';
|
|
2
2
|
export { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
3
|
-
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { BUILD_LIST_PAGE, BUILD_WRITE_BATCH, BYTES_PER_MIB, DAY_MS, DEFAULT_PREVIEW_LIMIT, HEADER_SIZE, HISTORY_SWEEP_INTERVAL_MS, KEY_FINGERPRINT_BYTES, KEY_FINGERPRINT_LABEL, MAX_HISTORY_FILE_BYTES, MAX_MANUAL_SUGGESTION_COUNT, MAX_PREVIEW_LIMIT, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_TIMER_DELAY_MS, MIN_KEY_BYTES, MS_PER_SECOND, QUERY_HISTORY_ARCHIVE_PREFIX, QUERY_HISTORY_FOLDER, SCHEDULE_OFF, SCRAMBLED_ID_BYTES, acceptedPhrase, attachRuntime, attachedRuntimeOf, banListFromInput, bindSuggestionStoreHost, buildRecordKey, checksumOfChunks, crc32, crc32Final, crc32Init, crc32Update, engineVersionParts, hasNrslMagic, historyFileOf, historyFilesOf, invalidSetting, isGroup, isPerson, latestMatchAtOrBefore, listHistoryFolder, nextMatchAfter, normaliseBan, openChecksummedEnvelope, packChecksummedEnvelope, packEnvelopeWithChecksum, parseSchedule, readHeader, removeHistoryFolder, removeRestoreLeftovers, requireFieldsInSchema, requireWithinFileLimit, resolveSetting, storedStateFromWire, storedStateOf, storedStateToWire, unionOfBans, validateSetting, withState, writeHeader } from './chunk-G3KVEHIW.mjs';
|
|
4
|
+
import './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,16 +1,16 @@
|
|
|
1
|
-
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-
|
|
2
|
-
export { bindSuggestionsHost } from './chunk-
|
|
3
|
-
import { installSuggestionHooks } from './chunk-
|
|
1
|
+
import { querySuggestionsOf, keyBytesOf, createQuerySuggestionsRuntime, createLocalHost } from './chunk-DRZP5MSG.mjs';
|
|
2
|
+
export { bindSuggestionsHost } from './chunk-KXA77DPZ.mjs';
|
|
3
|
+
import { installSuggestionHooks } from './chunk-4YIVY3PB.mjs';
|
|
4
4
|
import './chunk-V6EUBAIT.mjs';
|
|
5
|
-
import { attachedRuntimeOf, attachRuntime } from './chunk-
|
|
6
|
-
import './chunk-
|
|
5
|
+
import { attachedRuntimeOf, attachRuntime } from './chunk-G3KVEHIW.mjs';
|
|
6
|
+
import './chunk-WYH3QHBK.mjs';
|
|
7
7
|
import './chunk-2CKDCC65.mjs';
|
|
8
8
|
import './chunk-2AFZE7Y3.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
10
10
|
import './chunk-BUMREPLU.mjs';
|
|
11
11
|
import './chunk-7T4LAYT4.mjs';
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
12
|
+
import './chunk-4JLHHEBN.mjs';
|
|
13
|
+
import './chunk-EY5U4P5V.mjs';
|
|
14
14
|
import './chunk-U2BKYEC7.mjs';
|
|
15
15
|
import './chunk-FJXJZUWF.mjs';
|
|
16
16
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
3
|
-
import '../adapters-
|
|
4
|
-
import '../schema-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-DGjk684l.js';
|
|
2
|
+
import '../engine-DGG_yX0p.js';
|
|
3
|
+
import '../adapters-8LcdNB77.js';
|
|
4
|
+
import '../schema-CFnQ-WI3.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
6
|
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
package/dist/sync/filesystem.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-
|
|
1
|
+
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-43T3P3BE.mjs';
|
|
2
2
|
import { createSerial, QUEUE_COMPACTION_BYTES, DOWNLOAD_FRAME_BYTES, STORE_FRAME_LIMIT_BYTES } from '../chunk-6MSZ543Y.mjs';
|
|
3
|
-
import { createDurableDirectory } from '../chunk-
|
|
4
|
-
import '../chunk-HLPRHOSO.mjs';
|
|
5
|
-
import '../chunk-MSIN4NM3.mjs';
|
|
3
|
+
import { createDurableDirectory } from '../chunk-KL4ORYJW.mjs';
|
|
6
4
|
import '../chunk-S5QMWECL.mjs';
|
|
7
5
|
import '../chunk-LNGE7SLY.mjs';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-5SHWA6PE.mjs';
|
|
7
|
+
import '../chunk-PQWK7KXS.mjs';
|
|
8
|
+
import '../chunk-ZO7VLAIT.mjs';
|
|
11
9
|
import '../chunk-R724DJSG.mjs';
|
|
12
10
|
import '../chunk-V6EUBAIT.mjs';
|
|
13
|
-
import { crc32 } from '../chunk-
|
|
14
|
-
import '../chunk-
|
|
11
|
+
import { crc32 } from '../chunk-G3KVEHIW.mjs';
|
|
12
|
+
import '../chunk-WYH3QHBK.mjs';
|
|
15
13
|
import '../chunk-2CKDCC65.mjs';
|
|
16
14
|
import '../chunk-2AFZE7Y3.mjs';
|
|
17
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-Y7GXGJFZ.mjs';
|
|
18
16
|
import '../chunk-BUMREPLU.mjs';
|
|
19
17
|
import '../chunk-7T4LAYT4.mjs';
|
|
20
|
-
import '../chunk-
|
|
21
|
-
import { loadMessagePack } from '../chunk-
|
|
18
|
+
import '../chunk-4JLHHEBN.mjs';
|
|
19
|
+
import { loadMessagePack } from '../chunk-EY5U4P5V.mjs';
|
|
22
20
|
import '../chunk-U2BKYEC7.mjs';
|
|
23
21
|
import '../chunk-FJXJZUWF.mjs';
|
|
24
22
|
import '../chunk-5EI5CXO6.mjs';
|
|
25
23
|
import '../chunk-3ECIRFS5.mjs';
|
|
26
24
|
import '../chunk-ASZLNVWW.mjs';
|
|
27
25
|
import '../chunk-ZXX5GZEX.mjs';
|
|
26
|
+
import '../chunk-ZYEEOZTT.mjs';
|
|
27
|
+
import '../chunk-S3JHYPH7.mjs';
|
|
28
28
|
import '../chunk-4PY4JYMY.mjs';
|
|
29
29
|
import { NarsilError, ErrorCodes } from '../chunk-ZKOQR7EA.mjs';
|
|
30
30
|
import '../chunk-TGPKS2UM.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../browser/chunk-WC2DEXWU.mjs';
|
|
2
2
|
import { isSyncEpoch } from '../browser/chunk-YJHGOJAC.mjs';
|
|
3
|
-
import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-
|
|
3
|
+
import { loadMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack } from '../browser/chunk-VAPCFSMX.mjs';
|
|
4
4
|
|
|
5
5
|
// src/sync/device/stores/indexeddb-requests.ts
|
|
6
6
|
var META_STORE = "meta";
|
package/dist/sync/indexeddb.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../engine-
|
|
3
|
-
import '../adapters-
|
|
4
|
-
import '../schema-
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-DGjk684l.js';
|
|
2
|
+
import '../engine-DGG_yX0p.js';
|
|
3
|
+
import '../adapters-8LcdNB77.js';
|
|
4
|
+
import '../schema-CFnQ-WI3.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
6
|
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
package/dist/sync/indexeddb.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-
|
|
1
|
+
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-43T3P3BE.mjs';
|
|
2
2
|
import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../chunk-6MSZ543Y.mjs';
|
|
3
3
|
import '../chunk-BUMREPLU.mjs';
|
|
4
|
-
import { loadMessagePack } from '../chunk-
|
|
4
|
+
import { loadMessagePack } from '../chunk-EY5U4P5V.mjs';
|
|
5
5
|
import '../chunk-ZXX5GZEX.mjs';
|
|
6
6
|
import '../chunk-4PY4JYMY.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from '../chunk-ZKOQR7EA.mjs';
|
package/dist/sync.browser.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './browser/chunk-WC2DEXWU.mjs';
|
|
2
|
-
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-
|
|
3
|
-
import './browser/chunk-
|
|
2
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './browser/chunk-EKISQBV2.mjs';
|
|
3
|
+
import './browser/chunk-56UNHLAF.mjs';
|
|
4
4
|
import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
|
|
5
|
-
import { createNarsilClient } from './browser/chunk-
|
|
6
|
-
import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema } from './browser/chunk-
|
|
5
|
+
import { createNarsilClient } from './browser/chunk-VIVG3OXM.mjs';
|
|
6
|
+
import { loadMessagePack, loadedMessagePack, NarsilError, ErrorCodes, requireLoadedMessagePack, getNestedValue, ClientErrorCodes, extractVectorFieldsFromSchema } from './browser/chunk-VAPCFSMX.mjs';
|
|
7
7
|
|
|
8
8
|
// src/sync/protocol.ts
|
|
9
9
|
var SYNC_SUBPROTOCOL = "narsil.sync.v1";
|
package/dist/sync.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as DeviceSyncOptions, a as DeviceSync } from './types-
|
|
2
|
-
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-
|
|
3
|
-
import './engine-
|
|
4
|
-
import './adapters-
|
|
5
|
-
import './schema-
|
|
1
|
+
import { D as DeviceSyncOptions, a as DeviceSync } from './types-DGjk684l.js';
|
|
2
|
+
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-DGjk684l.js';
|
|
3
|
+
import './engine-DGG_yX0p.js';
|
|
4
|
+
import './adapters-8LcdNB77.js';
|
|
5
|
+
import './schema-CFnQ-WI3.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
|
7
7
|
import './query-suggestions-CBYkrQ5T.js';
|
|
8
8
|
|
package/dist/sync.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SYNC_CLOSE_RESYNC, SYNC_CLOSE_CREDENTIAL_EXPIRED, encodeJson, SYNC_SUBPROTOCOL, CHANGES_SUBPROTOCOL, decodeScore } from './chunk-TACP6VK6.mjs';
|
|
2
2
|
import { createSerial, KEPT_ENTRY_FLUSH_IDLE_MS, KEPT_ENTRY_OVERHEAD_BYTES, DEFAULT_REPLAY_LIMIT_OF_SNAPSHOT, BACKOFF_DOUBLINGS_LIMIT, KEPT_ENTRY_FLUSH_BYTES, UPLOAD_BATCH_WRITES, RETRY_MAX_DELAY_MS, UPLOAD_RETRY_DELAY_MS, DOWNLOAD_SAVE_BYTES, SNAPSHOT_MEMORY_PER_ARCHIVE_BYTE, SNAPSHOT_RETRY_DELAY_MS, RECONNECT_MIN_DELAY_MS } from './chunk-6MSZ543Y.mjs';
|
|
3
|
-
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-
|
|
3
|
+
import { hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, loadStorageCode, getLanguage } from './chunk-WYH3QHBK.mjs';
|
|
4
4
|
import './chunk-2CKDCC65.mjs';
|
|
5
5
|
import './chunk-2AFZE7Y3.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
7
7
|
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
8
8
|
import './chunk-7T4LAYT4.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-
|
|
9
|
+
import './chunk-4JLHHEBN.mjs';
|
|
10
|
+
import { loadMessagePack, loadedMessagePack, requireLoadedMessagePack, getNestedValue, extractVectorFieldsFromSchema } from './chunk-EY5U4P5V.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-FJXJZUWF.mjs';
|
|
13
13
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-
|
|
2
|
-
import { storedText } from './browser/chunk-
|
|
1
|
+
import { withOpenIndex, oneAtATime, resolveIndexAnalysis, loadStorageCode, emitSyncChange, encodeStringBlob, tokenize, typedRegion, regionsOverlap, encodeLookupKey } from './browser/chunk-EKISQBV2.mjs';
|
|
2
|
+
import { storedText } from './browser/chunk-56UNHLAF.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes, requireLoadedMessagePack, compareCodePoints } from './browser/chunk-VAPCFSMX.mjs';
|
|
5
5
|
|
|
6
6
|
// src/core/synonyms/combined-postings.ts
|
|
7
7
|
var NO_DELETED = { size: 0, has: () => false };
|
package/dist/synonyms.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } 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';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-
|
|
2
|
-
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-DL_nkguq.js';
|
|
2
|
+
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-fX_FbuRT.js';
|
|
3
3
|
import { a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
4
|
-
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-
|
|
5
|
-
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-
|
|
4
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './engine-DGG_yX0p.js';
|
|
5
|
+
import { A as AnyDocument, a as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-CFnQ-WI3.js';
|
|
6
6
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { closeRequestThread, drainRequestThread, searchHandler, serveRequests } from './chunk-35RWLUVY.mjs';
|
|
2
|
+
import './chunk-YGRJLI2Z.mjs';
|
|
3
3
|
import './chunk-TACP6VK6.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-ACNHJOGC.mjs';
|
|
5
|
+
import './chunk-LRIJ7U3T.mjs';
|
|
6
|
+
import './chunk-GTGQLCEI.mjs';
|
|
7
7
|
import './chunk-S5QMWECL.mjs';
|
|
8
8
|
import './chunk-LNGE7SLY.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-5SHWA6PE.mjs';
|
|
10
|
+
import './chunk-PQWK7KXS.mjs';
|
|
11
|
+
import './chunk-ZO7VLAIT.mjs';
|
|
12
12
|
import './chunk-R724DJSG.mjs';
|
|
13
13
|
import './chunk-V6EUBAIT.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-G3KVEHIW.mjs';
|
|
15
|
+
import './chunk-WYH3QHBK.mjs';
|
|
16
16
|
import './chunk-2CKDCC65.mjs';
|
|
17
17
|
import './chunk-2AFZE7Y3.mjs';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
19
19
|
import './chunk-BUMREPLU.mjs';
|
|
20
20
|
import './chunk-7T4LAYT4.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import './chunk-4JLHHEBN.mjs';
|
|
22
|
+
import './chunk-EY5U4P5V.mjs';
|
|
23
23
|
import './chunk-U2BKYEC7.mjs';
|
|
24
24
|
import './chunk-FJXJZUWF.mjs';
|
|
25
25
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as Narsil, N as NarsilError } from './engine-
|
|
2
|
-
import { A as AnyDocument } from './schema-
|
|
1
|
+
import { s as Narsil, N as NarsilError } from './engine-DGG_yX0p.js';
|
|
2
|
+
import { A as AnyDocument } from './schema-CFnQ-WI3.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* One local write that the device holds until the server accepts it.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-
|
|
2
|
-
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-
|
|
1
|
+
import { holdCopyPublication, copyGenerationOf, transferIndexToPool, loadIndexOntoWorkers } from './chunk-C57GWAXN.mjs';
|
|
2
|
+
export { emptySerializablePartition, loadIndexOntoWorkers, transferIndexToPool } from './chunk-C57GWAXN.mjs';
|
|
3
3
|
import { executeUntilAnswered } from './chunk-4H4RG2FR.mjs';
|
|
4
|
-
import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-
|
|
5
|
-
export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-
|
|
4
|
+
import { DEFAULT_WORKER_SILENCE_BEFORE_PROBE_MS, DEFAULT_WORKER_SILENCE_BEFORE_RETIREMENT_MS, growPartitionsTo, isCompositePartition, createSharedFrozenSegment, loadStorageCode, resolvePartitionInsertOptions, buildSegmentPayloads, freezeSegmentShared, DEFAULT_MAX_THREADS_LEFT_RUNNING, DEFAULT_COPY_THRESHOLD, workersEnabledByDefault, POOL_RESTART_DELAY_MS, createRequestId, mergeSegmentContents, freezeEncodedSegmentShared, SegmentRefusal, NO_REMOVED_SPELLINGS, DEFAULT_COPY_IDLE_TIMEOUT_MS, LONG_QUERY_THREADS, toError, isDeterministicFailure, workerIneligibility, reportIneligible, fnv1a, selectionKeeps, prepareDocumentVectors, MAX_PENDING_REPLICATION_DOCUMENTS, MAIN_COPY_LONE_QUERY_DOCUMENTS, returnsEveryMatch, oversampledFacetConfig, afterCurrentTurn, LOAD_BUFFER_YIELD_INTERVAL, yieldToEventLoop, IDLE_MERGE_DELAY_MS, alreadyPresentOnWorker, REPLICATION_WINDOW, RETIRED_THREADS_EXIT_WAIT_MS, eligibleIndexNames, createWorkerFactory, availablePatternSearch, patternHost, kWayMerge, mergeFacets, generateId, POOL_RESTART_DELAY_MAX_MS, COMPACTION_SEGMENT_TRIGGER, LIVE_TAIL_FREEZE_FLOOR, requireLoadedVectorCode, LIVE_TAIL_FLUSH_DOCUMENTS, SEGMENTS_PER_MERGE } from './chunk-WYH3QHBK.mjs';
|
|
5
|
+
export { bindWorkerCopiesHost, createWorkerExecutor } from './chunk-WYH3QHBK.mjs';
|
|
6
6
|
import './chunk-2CKDCC65.mjs';
|
|
7
7
|
import './chunk-2AFZE7Y3.mjs';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-Y7GXGJFZ.mjs';
|
|
9
9
|
import './chunk-BUMREPLU.mjs';
|
|
10
10
|
import './chunk-7T4LAYT4.mjs';
|
|
11
|
-
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-
|
|
12
|
-
import { schemaFieldsOf } from './chunk-
|
|
11
|
+
import { MATCHER_STATE_BUDGET_BYTES } from './chunk-4JLHHEBN.mjs';
|
|
12
|
+
import { schemaFieldsOf } from './chunk-EY5U4P5V.mjs';
|
|
13
13
|
import './chunk-U2BKYEC7.mjs';
|
|
14
14
|
import { resolveWorkerCount, splitWorkerBudget, SHUTDOWN_TIMEOUT_MS, resolveRequestThreadCount } from './chunk-FJXJZUWF.mjs';
|
|
15
15
|
import { noteThreadSlotGone, threadSlotOfWorker } from './chunk-5EI5CXO6.mjs';
|
package/dist/workers/entry.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } from '../chunk-
|
|
1
|
+
import { requireSearchBackendSettings, loadVectorCode, loadGeoCode, importOptionalReads, initializeCopyPublication, publishCopyAction, isValidWorkerAction } 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 { loadMessagePack } from '../chunk-
|
|
7
|
+
import '../chunk-4JLHHEBN.mjs';
|
|
8
|
+
import { loadMessagePack } from '../chunk-EY5U4P5V.mjs';
|
|
9
9
|
import '../chunk-U2BKYEC7.mjs';
|
|
10
10
|
import '../chunk-FJXJZUWF.mjs';
|
|
11
11
|
import { threadSlotOfWorker, startIdleHeapCleanup } from '../chunk-5EI5CXO6.mjs';
|
|
@@ -31,10 +31,10 @@ async function importBootstrapModule(moduleUrl) {
|
|
|
31
31
|
}
|
|
32
32
|
await import(moduleUrl);
|
|
33
33
|
}
|
|
34
|
-
async function stopServingRequests() {
|
|
35
|
-
const { drainRequestThread } = await import('../thread-
|
|
36
|
-
await drainRequestThread();
|
|
37
|
-
const { closeLongQueryThread } = await import('../long-query-thread-
|
|
34
|
+
async function stopServingRequests(refuseNewRequests) {
|
|
35
|
+
const { drainRequestThread } = await import('../thread-VLVPAUWC.mjs');
|
|
36
|
+
await drainRequestThread(refuseNewRequests);
|
|
37
|
+
const { closeLongQueryThread } = await import('../long-query-thread-KPN7NSOC.mjs');
|
|
38
38
|
closeLongQueryThread();
|
|
39
39
|
}
|
|
40
40
|
function holdsCopies(executor) {
|
|
@@ -62,9 +62,9 @@ function createActionHandler(executor) {
|
|
|
62
62
|
}
|
|
63
63
|
return result;
|
|
64
64
|
}
|
|
65
|
-
async function stopServingOnceStarted() {
|
|
65
|
+
async function stopServingOnceStarted(refuseNewRequests) {
|
|
66
66
|
if (serving.start !== null) await serving.start;
|
|
67
|
-
if (servingRequests) await stopServingRequests();
|
|
67
|
+
if (servingRequests) await stopServingRequests(refuseNewRequests);
|
|
68
68
|
servingRequests = false;
|
|
69
69
|
}
|
|
70
70
|
return async function handleAction(action, post) {
|
|
@@ -76,7 +76,7 @@ function createActionHandler(executor) {
|
|
|
76
76
|
if (stopping) throw new NarsilError(ErrorCodes.WORKER_CRASHED, "The worker is shutting down");
|
|
77
77
|
if (action.type === "shutdown") {
|
|
78
78
|
stopping = true;
|
|
79
|
-
await stopServingOnceStarted();
|
|
79
|
+
await stopServingOnceStarted(false);
|
|
80
80
|
await Promise.all(copyChanges.values());
|
|
81
81
|
await executor.shutdown();
|
|
82
82
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
@@ -91,7 +91,7 @@ function createActionHandler(executor) {
|
|
|
91
91
|
if (!holdsCopies(executor)) {
|
|
92
92
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer requests from");
|
|
93
93
|
}
|
|
94
|
-
const starting = import('../thread-
|
|
94
|
+
const starting = import('../thread-VLVPAUWC.mjs').then(
|
|
95
95
|
({ serveRequests }) => serveRequests(executor, action.settings)
|
|
96
96
|
);
|
|
97
97
|
serving.start = starting.then(
|
|
@@ -108,14 +108,14 @@ function createActionHandler(executor) {
|
|
|
108
108
|
if (!holdsCopies(executor)) {
|
|
109
109
|
throw new NarsilError(ErrorCodes.CONFIG_INVALID, "This executor holds no copies to answer long queries from");
|
|
110
110
|
}
|
|
111
|
-
const { serveLongQueries } = await import('../long-query-thread-
|
|
111
|
+
const { serveLongQueries } = await import('../long-query-thread-KPN7NSOC.mjs');
|
|
112
112
|
serveLongQueries(executor, action.settings);
|
|
113
113
|
servingRequests = true;
|
|
114
114
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
if (action.type === "stopServing") {
|
|
118
|
-
await stopServingOnceStarted();
|
|
118
|
+
await stopServingOnceStarted(action.refuseNewRequests === true);
|
|
119
119
|
post(buildSuccessResponse(action.requestId, void 0));
|
|
120
120
|
return false;
|
|
121
121
|
}
|
|
@@ -156,8 +156,8 @@ async function setup() {
|
|
|
156
156
|
}
|
|
157
157
|
requireSearchBackendSettings();
|
|
158
158
|
const [{ createDirectExecutor }, { runQueryAction }] = await Promise.all([
|
|
159
|
-
import('../direct-executor-
|
|
160
|
-
import('../query-actions-
|
|
159
|
+
import('../direct-executor-7G57AYXH.mjs'),
|
|
160
|
+
import('../query-actions-HTSJKZRU.mjs'),
|
|
161
161
|
loadVectorCode(),
|
|
162
162
|
loadGeoCode(),
|
|
163
163
|
importOptionalReads(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delali/narsil",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-next.273",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Distributed search engine with full-text, vector, hybrid, and geosearch. One engine, embedded or on a server, with a cross-language .nrsl format.",
|
|
6
6
|
"author": "Delali (https://sondelali.com)",
|
|
@@ -384,6 +384,7 @@
|
|
|
384
384
|
"test:object-stores": "vitest run src/__tests__/persistence/live-object-stores",
|
|
385
385
|
"test:native": "vitest run src/__tests__/core/tokenizer src/__tests__/core/keyword-score src/__tests__/math src/__tests__/vector/native src/__tests__/integration/filtered-vector-recall/native src/__tests__/integration/filtered-vectors/mutations-native src/__tests__/integration/removed-vectors/main-thread src/__tests__/integration/sort-value-reduction.test.ts src/__tests__/integration/hybrid-fusion-extreme-scores.test.ts",
|
|
386
386
|
"test:file-backed-memory": "vitest run src/__tests__/engine/memory-limit/file-backed-vectors.test.ts",
|
|
387
|
+
"test:held-files": "vitest run src/__tests__/persistence/durability/checkpoint-held-reader.test.ts",
|
|
387
388
|
"test:cluster": "vitest run src/__tests__/e2e/cluster-memory --no-file-parallelism",
|
|
388
389
|
"test:faults": "vitest run src/__tests__/e2e/cluster-faults --no-file-parallelism",
|
|
389
390
|
"test:etcd": "vitest run src/__tests__/distribution/coordinator/etcd-integration/*.test.ts",
|
|
@@ -595,23 +596,24 @@
|
|
|
595
596
|
"NOTICE"
|
|
596
597
|
],
|
|
597
598
|
"dependencies": {
|
|
598
|
-
"@msgpack/msgpack": "3.1.
|
|
599
|
+
"@msgpack/msgpack": "3.1.3"
|
|
599
600
|
},
|
|
600
601
|
"devDependencies": {
|
|
601
|
-
"@aws-sdk/client-s3": "3.
|
|
602
|
+
"@aws-sdk/client-s3": "3.1164.0",
|
|
602
603
|
"@biomejs/biome": "2.4.4",
|
|
603
604
|
"@delali/narsil-embeddings-transformers": "workspace:*",
|
|
604
605
|
"@google-cloud/storage": "8.4.0",
|
|
605
606
|
"@grpc/grpc-js": "1.14.7",
|
|
606
607
|
"@microsoft/api-extractor": "7.60.1",
|
|
607
|
-
"@stoplight/spectral-cli": "6.17.
|
|
608
|
+
"@stoplight/spectral-cli": "6.17.1",
|
|
608
609
|
"@types/node": "22.20.5",
|
|
609
610
|
"@types/react": "19.3.0",
|
|
610
611
|
"@types/react-dom": "19.3.0",
|
|
611
|
-
"@vitest/coverage-v8": "4.
|
|
612
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
612
613
|
"ajv": "8.20.0",
|
|
613
614
|
"esbuild": "0.28.2",
|
|
614
615
|
"etcd3": "1.1.2",
|
|
616
|
+
"fake-indexeddb": "6.2.8",
|
|
615
617
|
"fflate": "0.8.3",
|
|
616
618
|
"jsdom": "28.1.0",
|
|
617
619
|
"re2-wasm": "1.0.2",
|
|
@@ -622,7 +624,7 @@
|
|
|
622
624
|
"tsx": "4.23.15",
|
|
623
625
|
"typescript": "5.9.3",
|
|
624
626
|
"uWebSockets.js": "github:uNetworking/uWebSockets.js#b1092c70692ddbcc87464a77da44848614f6342a",
|
|
625
|
-
"vitest": "4.
|
|
627
|
+
"vitest": "4.1.12",
|
|
626
628
|
"wabt": "1.0.39"
|
|
627
629
|
},
|
|
628
630
|
"peerDependencies": {
|
|
@@ -654,11 +656,9 @@
|
|
|
654
656
|
}
|
|
655
657
|
},
|
|
656
658
|
"optionalDependencies": {
|
|
657
|
-
"@delali/narsil-native-
|
|
658
|
-
"@delali/narsil-native-
|
|
659
|
-
"@delali/narsil-native-
|
|
660
|
-
"@delali/narsil-native-
|
|
661
|
-
"@delali/narsil-native-win32-arm64": "0.4.1",
|
|
662
|
-
"@delali/narsil-native-win32-x64": "0.4.1"
|
|
659
|
+
"@delali/narsil-native-linux-arm64": "0.4.2-next.273",
|
|
660
|
+
"@delali/narsil-native-linux-x64": "0.4.2-next.273",
|
|
661
|
+
"@delali/narsil-native-win32-arm64": "0.4.2-next.273",
|
|
662
|
+
"@delali/narsil-native-win32-x64": "0.4.2-next.273"
|
|
663
663
|
}
|
|
664
664
|
}
|
package/dist/chunk-HLPRHOSO.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// src/persistence/durability/node-fs.ts
|
|
2
|
-
var cachedFs = null;
|
|
3
|
-
var cachedPath = null;
|
|
4
|
-
async function getFs() {
|
|
5
|
-
if (cachedFs === null) {
|
|
6
|
-
cachedFs = await import('fs/promises');
|
|
7
|
-
}
|
|
8
|
-
return cachedFs;
|
|
9
|
-
}
|
|
10
|
-
async function getPath() {
|
|
11
|
-
if (cachedPath === null) {
|
|
12
|
-
cachedPath = await import('path');
|
|
13
|
-
}
|
|
14
|
-
return cachedPath;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { getFs, getPath };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { restoreVectorFields, setNestedValue } from './chunk-R2PJKSNL.mjs';
|
|
2
|
-
export { encodeDocument } from './chunk-2CKDCC65.mjs';
|
|
3
|
-
export { Decoder, MAP_TAGS, bindMsgpackHost, decode, decodeMulti, headerAt } from './chunk-GXCDWLQI.mjs';
|
|
4
|
-
import './chunk-7P5YWDRQ.mjs';
|
|
5
|
-
import './chunk-ZXX5GZEX.mjs';
|
|
6
|
-
import './chunk-4PY4JYMY.mjs';
|
|
7
|
-
import './chunk-ZKOQR7EA.mjs';
|
|
8
|
-
import './chunk-TGPKS2UM.mjs';
|
|
9
|
-
export { encode } from '@msgpack/msgpack';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { restoreVectorFields, setNestedValue } from './chunk-ZUJCUPVS.mjs';
|
|
2
|
-
export { Decoder, MAP_TAGS, bindMsgpackHost, decode, decodeMulti, encodeDocument, headerAt } from './chunk-UO44MA5M.mjs';
|
|
3
|
-
import './chunk-MRH36RN3.mjs';
|
|
4
|
-
import './chunk-HRDMIQ63.mjs';
|
|
5
|
-
import './chunk-VUJCSQG5.mjs';
|
|
6
|
-
import './chunk-43R4GCM7.mjs';
|
|
7
|
-
export { encode } from '@msgpack/msgpack';
|