@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,7 +1,7 @@
|
|
|
1
|
-
import { c as BM25FieldParams, P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-
|
|
1
|
+
import { c as BM25FieldParams, P as PartitionConfig, d as ScoringMode, V as VectorIndexConfig } from '../../schema-CFnQ-WI3.js';
|
|
2
2
|
import { d as QuerySuggestionsSetting, i as QuerySuggestionsSource } from '../../query-suggestions-CBYkrQ5T.js';
|
|
3
3
|
import { N as NativeStoredValues } from '../../stored-values-BWIMpiT_.js';
|
|
4
|
-
import '../../adapters-
|
|
4
|
+
import '../../adapters-8LcdNB77.js';
|
|
5
5
|
import '../../synonyms-CpOAHPa-.js';
|
|
6
6
|
|
|
7
7
|
interface PatternIndexArrays {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { createDurableDirectory } from '../../chunk-
|
|
2
|
-
import { writeCheckpointSegments } from '../../chunk-
|
|
3
|
-
import { directoryCheckpointStore } from '../../chunk-
|
|
1
|
+
import { createDurableDirectory } from '../../chunk-KL4ORYJW.mjs';
|
|
2
|
+
import { writeCheckpointSegments } from '../../chunk-6SIEVWMG.mjs';
|
|
3
|
+
import { directoryCheckpointStore } from '../../chunk-H23FB267.mjs';
|
|
4
4
|
import '../../chunk-5FLRXF73.mjs';
|
|
5
5
|
import '../../chunk-JDDXV6UF.mjs';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-HLPRHOSO.mjs';
|
|
8
|
-
import { CHECKPOINT_WORKER_HEARTBEAT_MS } from '../../chunk-MSIN4NM3.mjs';
|
|
6
|
+
import '../../chunk-GTGQLCEI.mjs';
|
|
9
7
|
import '../../chunk-S5QMWECL.mjs';
|
|
10
8
|
import '../../chunk-LNGE7SLY.mjs';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-5SHWA6PE.mjs';
|
|
10
|
+
import '../../chunk-PQWK7KXS.mjs';
|
|
11
|
+
import '../../chunk-ZO7VLAIT.mjs';
|
|
14
12
|
import '../../chunk-R724DJSG.mjs';
|
|
15
13
|
import '../../chunk-V6EUBAIT.mjs';
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-
|
|
14
|
+
import '../../chunk-G3KVEHIW.mjs';
|
|
15
|
+
import { importOptionalReads, loadGeoCodeFor } from '../../chunk-WYH3QHBK.mjs';
|
|
18
16
|
import '../../chunk-2CKDCC65.mjs';
|
|
19
17
|
import '../../chunk-2AFZE7Y3.mjs';
|
|
20
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-Y7GXGJFZ.mjs';
|
|
21
19
|
import '../../chunk-BUMREPLU.mjs';
|
|
22
20
|
import '../../chunk-7T4LAYT4.mjs';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import { loadMessagePack } from '../../chunk-
|
|
21
|
+
import '../../chunk-4JLHHEBN.mjs';
|
|
22
|
+
import { loadMessagePack } from '../../chunk-EY5U4P5V.mjs';
|
|
25
23
|
import '../../chunk-U2BKYEC7.mjs';
|
|
26
24
|
import '../../chunk-FJXJZUWF.mjs';
|
|
27
25
|
import '../../chunk-5EI5CXO6.mjs';
|
|
28
26
|
import '../../chunk-3ECIRFS5.mjs';
|
|
29
27
|
import '../../chunk-ASZLNVWW.mjs';
|
|
30
28
|
import '../../chunk-ZXX5GZEX.mjs';
|
|
29
|
+
import '../../chunk-ZYEEOZTT.mjs';
|
|
30
|
+
import { CHECKPOINT_WORKER_HEARTBEAT_MS } from '../../chunk-S3JHYPH7.mjs';
|
|
31
31
|
import '../../chunk-4PY4JYMY.mjs';
|
|
32
32
|
import '../../chunk-ZKOQR7EA.mjs';
|
|
33
33
|
import '../../chunk-TGPKS2UM.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } from './chunk-
|
|
1
|
+
import { loadPhraseCodeFor, loadCursorPageFor, loadGroupingFor, loadPinningFor, loadFacetMergesFor, loadSortingFor, loadPrefixFor, joinPatternWorkMeter, fanOutQuery, sanitizeGlobalStats, countsWithoutScores, fanOutMatchCount, documentsOf, rankPage, fillHits } 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 { answerFromOneState, requirePinnedState } from './chunk-FJXJZUWF.mjs';
|
|
11
11
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Merger } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { Merger } from '../chunk-KXA77DPZ.mjs';
|
|
2
|
+
import '../chunk-4YIVY3PB.mjs';
|
|
3
3
|
import '../chunk-V6EUBAIT.mjs';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-G3KVEHIW.mjs';
|
|
5
|
+
import '../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 '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-4JLHHEBN.mjs';
|
|
12
|
+
import '../chunk-EY5U4P5V.mjs';
|
|
13
13
|
import '../chunk-U2BKYEC7.mjs';
|
|
14
14
|
import '../chunk-FJXJZUWF.mjs';
|
|
15
15
|
import '../chunk-5EI5CXO6.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-
|
|
2
|
-
import './browser/chunk-
|
|
1
|
+
import { engineCoreOf, loadSuggestionsCode, GROUP_PATTERN_SOURCE, GROUP_FORMAT, SUGGESTIONS_INDEX_INFIX } from './browser/chunk-EKISQBV2.mjs';
|
|
2
|
+
import './browser/chunk-56UNHLAF.mjs';
|
|
3
3
|
import './browser/chunk-YJHGOJAC.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes } from './browser/chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes } from './browser/chunk-VAPCFSMX.mjs';
|
|
5
5
|
|
|
6
6
|
// src/query-suggestions/providers.ts
|
|
7
7
|
var providers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as Narsil } from './engine-
|
|
1
|
+
import { s as Narsil } from './engine-DGG_yX0p.js';
|
|
2
2
|
import { g as QuerySuggestions } from './query-suggestions-CBYkrQ5T.js';
|
|
3
3
|
export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, h as QuerySuggestionsBuildEvent, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, i as QuerySuggestionsSource, e as QuerySuggestionsStatus, j as QuerySuggestionsWarningEvent, k as QuerySuggestionsWarningReason, R as RecordQueryOutcome, f as RecordQueryResult, l as RecordedQuery } from './query-suggestions-CBYkrQ5T.js';
|
|
4
|
-
import './adapters-
|
|
5
|
-
import './schema-
|
|
4
|
+
import './adapters-8LcdNB77.js';
|
|
5
|
+
import './schema-CFnQ-WI3.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { querySuggestions } from './chunk-
|
|
1
|
+
export { querySuggestions } from './chunk-R3PFPFME.mjs';
|
|
2
2
|
import './chunk-S2POFTLN.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './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 './chunk-BUMREPLU.mjs';
|
|
8
8
|
import './chunk-7T4LAYT4.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-4JLHHEBN.mjs';
|
|
10
|
+
import './chunk-EY5U4P5V.mjs';
|
|
11
11
|
import './chunk-U2BKYEC7.mjs';
|
|
12
12
|
import './chunk-FJXJZUWF.mjs';
|
|
13
13
|
import './chunk-5EI5CXO6.mjs';
|
|
@@ -866,7 +866,7 @@ var loaded = null;
|
|
|
866
866
|
var loading = null;
|
|
867
867
|
function loadMessagePack() {
|
|
868
868
|
if (loaded !== null) return Promise.resolve(loaded);
|
|
869
|
-
loading ??= import('./msgpack-leaf-
|
|
869
|
+
loading ??= import('./msgpack-leaf-FOUPTT7J.mjs').then(
|
|
870
870
|
(code) => {
|
|
871
871
|
code.bindMsgpackHost({
|
|
872
872
|
BYTE_ORDER_MARK_WALK_BYTES_PER_HEADER,
|
|
@@ -45,24 +45,31 @@ function encodeDocument(document) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// src/serialization/msgpack-header.ts
|
|
48
|
-
function
|
|
48
|
+
function headerOf(headerBytes, bodyBytes, children, into) {
|
|
49
|
+
if (into === void 0) return { headerBytes, bodyBytes, children };
|
|
50
|
+
into.headerBytes = headerBytes;
|
|
51
|
+
into.bodyBytes = bodyBytes;
|
|
52
|
+
into.children = children;
|
|
53
|
+
return into;
|
|
54
|
+
}
|
|
55
|
+
function headerAt(view, offset, into) {
|
|
49
56
|
if (offset >= view.byteLength) return null;
|
|
50
57
|
const tag = view.getUint8(offset);
|
|
51
|
-
if (tag <= 127 || tag >= 224) return
|
|
52
|
-
if (tag <= 143) return
|
|
53
|
-
if (tag <= 159) return
|
|
54
|
-
if (tag <= 191) return
|
|
58
|
+
if (tag <= 127 || tag >= 224) return headerOf(1, 0, 0, into);
|
|
59
|
+
if (tag <= 143) return headerOf(1, 0, (tag & 15) * 2, into);
|
|
60
|
+
if (tag <= 159) return headerOf(1, 0, tag & 15, into);
|
|
61
|
+
if (tag <= 191) return headerOf(1, tag & 31, 0, into);
|
|
55
62
|
const lengthBytes = LENGTH_BYTES_BY_TAG.get(tag);
|
|
56
63
|
if (lengthBytes !== void 0) {
|
|
57
64
|
if (offset + 1 + lengthBytes > view.byteLength) return null;
|
|
58
65
|
const length = lengthBytes === 1 ? view.getUint8(offset + 1) : lengthBytes === 2 ? view.getUint16(offset + 1, false) : view.getUint32(offset + 1, false);
|
|
59
66
|
const headerBytes = 1 + lengthBytes;
|
|
60
|
-
if (ARRAY_TAGS.has(tag)) return
|
|
61
|
-
if (MAP_TAGS.has(tag)) return
|
|
62
|
-
return
|
|
67
|
+
if (ARRAY_TAGS.has(tag)) return headerOf(headerBytes, 0, length, into);
|
|
68
|
+
if (MAP_TAGS.has(tag)) return headerOf(headerBytes, 0, length * 2, into);
|
|
69
|
+
return headerOf(headerBytes, length + (EXT_TAGS.has(tag) ? 1 : 0), 0, into);
|
|
63
70
|
}
|
|
64
71
|
const fixedBytes = FIXED_BODY_BYTES_BY_TAG.get(tag);
|
|
65
|
-
return fixedBytes === void 0 ? null :
|
|
72
|
+
return fixedBytes === void 0 ? null : headerOf(1, fixedBytes, 0, into);
|
|
66
73
|
}
|
|
67
74
|
var LENGTH_BYTES_BY_TAG = /* @__PURE__ */ new Map([
|
|
68
75
|
[196, 1],
|
|
@@ -225,8 +232,14 @@ function decode(bytes) {
|
|
|
225
232
|
sharedDecoder ??= new Decoder();
|
|
226
233
|
return sharedDecoder.decode(bytes);
|
|
227
234
|
}
|
|
235
|
+
function decodeBoundedMessage(bytes) {
|
|
236
|
+
if (scanStrings(bytes, 0, null, Number.POSITIVE_INFINITY) === null) {
|
|
237
|
+
throw new RangeError("Invalid MessagePack value header");
|
|
238
|
+
}
|
|
239
|
+
return decode(bytes);
|
|
240
|
+
}
|
|
228
241
|
function decodeMulti(bytes) {
|
|
229
242
|
return new Decoder().decodeMulti(bytes);
|
|
230
243
|
}
|
|
231
244
|
|
|
232
|
-
export { Decoder, MAP_TAGS, bindMsgpackHost, decode, decodeMulti, encodeDocument, headerAt };
|
|
245
|
+
export { Decoder, MAP_TAGS, bindMsgpackHost, decode, decodeBoundedMessage, decodeMulti, encodeDocument, headerAt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-
|
|
2
|
-
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-
|
|
1
|
+
import { MAX_HISTORY_FILE_BYTES, openChecksummedEnvelope, KEY_FINGERPRINT_BYTES, DAY_MS, dayFileKey, SCRAMBLED_ID_BYTES, restoreStagingPrefix, resolveSetting, QUERY_HISTORY_ARCHIVE_PREFIX, restoredFileKey, attachedRuntimeOf, MAX_INDEX_UUID_LENGTH, HEADER_SIZE, isGroup, isNormalPhrase, MAX_MAX_LENGTH, MAX_MAX_WORDS, listHistoryFolder, historyFileOf, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, packEnvelopeWithChecksum, crc32, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-X3VY2YT4.mjs';
|
|
2
|
+
import { loadSuggestionsCode, emitWriteEventAfter, dropEngineIndex } from './chunk-JEYZQA4Z.mjs';
|
|
3
3
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
4
4
|
|
|
5
5
|
// src/query-suggestions/engine-hooks.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-
|
|
1
|
+
import { requireLoadedMessagePack, getNestedValue, parsedTypeOf } from './chunk-AOLLV37A.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-43R4GCM7.mjs';
|
|
3
3
|
|
|
4
4
|
// src/core/bitset.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-
|
|
1
|
+
import { loadStorageCode, resolvePartialWordAnalysis, resolvePartitionInsertOptions, yieldToEventLoop, createPartitionIndex, writePartitionDocument } from './chunk-JEYZQA4Z.mjs';
|
|
2
2
|
|
|
3
3
|
// src/partitioning/constants.ts
|
|
4
4
|
var REBALANCE_CHUNK_SIZE = 1e3;
|