@delali/narsil 0.4.2-next.271 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{chunk-XBWABEL3.mjs → chunk-56UNHLAF.mjs} +1 -1
- package/dist/browser/{chunk-DPRCAVC2.mjs → chunk-EKISQBV2.mjs} +272 -239
- package/dist/browser/{chunk-WRRXR57N.mjs → chunk-VAPCFSMX.mjs} +1 -1
- package/dist/browser/{chunk-Y5CSZDOH.mjs → chunk-VIVG3OXM.mjs} +1 -1
- package/dist/browser/{msgpack-leaf-FEPCLXXY.mjs → msgpack-leaf-76Q5SZ5S.mjs} +16 -9
- package/dist/browser/{optional-writes-HVPPDHSY.mjs → optional-writes-3HKIVZFU.mjs} +36 -2
- package/dist/browser/{segment-codec-leaf-A427QJUX.mjs → segment-codec-leaf-GXSRX5VT.mjs} +47 -30
- package/dist/{chunk-TI4G3SIG.mjs → chunk-35RWLUVY.mjs} +3 -3
- package/dist/{chunk-GTBJSNN2.mjs → chunk-43T3P3BE.mjs} +1 -1
- package/dist/{chunk-KQWTS7AM.mjs → chunk-4JLHHEBN.mjs} +1 -1
- package/dist/{chunk-KX3OP6VP.mjs → chunk-4YIVY3PB.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-XGS2UYVI.mjs → chunk-5SHWA6PE.mjs} +1 -1
- package/dist/{chunk-BBIAUHAB.mjs → chunk-6LVQ3GLT.mjs} +3 -3
- package/dist/{chunk-H6LWGMPQ.mjs → chunk-6SIEVWMG.mjs} +7 -7
- package/dist/{chunk-NFA3WHJU.mjs → chunk-ACNHJOGC.mjs} +1 -1
- package/dist/{chunk-FOGTBAYN.mjs → chunk-BWPVDIRN.mjs} +12 -12
- package/dist/{chunk-ATQ6JR3I.mjs → chunk-C57GWAXN.mjs} +1 -1
- package/dist/{chunk-5E3TJ4P3.mjs → chunk-DRZP5MSG.mjs} +5 -5
- package/dist/{chunk-OLXFIUIZ.mjs → chunk-DZMD4OMD.mjs} +1 -1
- package/dist/{chunk-4WQNWAQE.mjs → chunk-EY5U4P5V.mjs} +1 -1
- package/dist/{chunk-Q4NLL66U.mjs → chunk-EZJ6HBG7.mjs} +2 -2
- package/dist/{chunk-QJFKL4NK.mjs → chunk-FE2XILWN.mjs} +4 -4
- package/dist/{chunk-WIT6B5OB.mjs → chunk-G3KVEHIW.mjs} +2 -2
- package/dist/{chunk-TANKI7TG.mjs → chunk-GTGQLCEI.mjs} +1 -1
- package/dist/{chunk-EALKCTWH.mjs → chunk-H23FB267.mjs} +3 -3
- package/dist/{chunk-YHZSSPG3.mjs → chunk-KXA77DPZ.mjs} +2 -2
- package/dist/{chunk-XWPNRHTG.mjs → chunk-LRIJ7U3T.mjs} +4 -4
- package/dist/{chunk-SSITKQU6.mjs → chunk-PNFP5THV.mjs} +3 -3
- package/dist/{chunk-VHIOGDVD.mjs → chunk-PQWK7KXS.mjs} +1 -1
- package/dist/{chunk-TT3UDDL3.mjs → chunk-QNZJYMCF.mjs} +6 -6
- package/dist/{chunk-33ZMFOAR.mjs → chunk-R3PFPFME.mjs} +1 -1
- package/dist/{chunk-XGVSG6ZU.mjs → chunk-SPA7GXST.mjs} +3 -3
- package/dist/{chunk-MS746XNY.mjs → chunk-WYH3QHBK.mjs} +384 -304
- package/dist/{chunk-MIIJ5O3O.mjs → chunk-X5V25BPN.mjs} +1 -1
- package/dist/{chunk-5GYGHPCH.mjs → chunk-Y7GXGJFZ.mjs} +16 -9
- package/dist/{chunk-4GCHJ3XD.mjs → chunk-YGRJLI2Z.mjs} +4 -4
- package/dist/{react-native/chunks/chunk-LE4DTMDL.mjs → chunk-ZO7VLAIT.mjs} +2 -2
- package/dist/{chunk-W3JH2IK6.mjs → chunk-ZTB7AWTW.mjs} +1 -1
- package/dist/client.mjs +2 -2
- package/dist/{direct-executor-PCBB6FCO.mjs → direct-executor-7G57AYXH.mjs} +4 -4
- package/dist/distribution/coordinator/etcd.mjs +2 -2
- package/dist/distribution/transport/grpc.mjs +3 -3
- package/dist/distribution/transport/tcp.mjs +3 -3
- package/dist/distribution.mjs +29 -29
- package/dist/index.browser.mjs +3 -3
- package/dist/index.mjs +4 -4
- package/dist/index.react-native.mjs +4 -4
- package/dist/{long-query-thread-4ALYIIC4.mjs → long-query-thread-KPN7NSOC.mjs} +14 -14
- package/dist/{msgpack-leaf-6ZBZWFRD.mjs → msgpack-leaf-LIT7TKZW.mjs} +3 -3
- package/dist/{optional-writes-2OK4TOLY.mjs → optional-writes-CSULLISE.mjs} +6 -6
- package/dist/{paged-partition-archive-Y5OAKNRB.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.mjs +11 -11
- package/dist/{query-actions-UQVQZFIJ.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.mjs +5 -5
- package/dist/react-native/chunks/{chunk-AVCMTWET.mjs → chunk-AOLLV37A.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-VRI5XH2M.mjs → chunk-DN4FT62B.mjs} +16 -9
- package/dist/react-native/chunks/{chunk-VIO5IPF7.mjs → chunk-EF4Y5C3Y.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-GS6LGXY3.mjs → chunk-ESVBC3AT.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-4OOUY2K7.mjs → chunk-H6LK5WCF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-5MYHYBET.mjs → chunk-JEYZQA4Z.mjs} +384 -304
- package/dist/react-native/chunks/{chunk-XW6GZQWP.mjs → chunk-KJQ3BUVM.mjs} +4 -4
- package/dist/{chunk-DA32WXBT.mjs → react-native/chunks/chunk-QYVRD6C5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-Z44S6WW5.mjs → chunk-X3VY2YT4.mjs} +2 -2
- package/dist/{chunk-OETLM4EH.mjs → react-native/chunks/chunk-ZF3VSGEI.mjs} +1 -1
- package/dist/react-native/chunks/{msgpack-leaf-4MIGXWZT.mjs → msgpack-leaf-FOUPTT7J.mjs} +3 -3
- package/dist/react-native/chunks/{optional-writes-LZDHB7FX.mjs → optional-writes-MGFFGKYQ.mjs} +5 -5
- package/dist/react-native/chunks/{restore-queue-J7SB263E.mjs → restore-queue-MVJTP3E4.mjs} +7 -7
- package/dist/react-native/chunks/{segment-codec-leaf-PEKX7TBL.mjs → segment-codec-leaf-PSWHL55A.mjs} +5 -5
- package/dist/react-native/chunks/{segment-merge-leaf-I2EC7H6R.mjs → segment-merge-leaf-WOJWSDLW.mjs} +6 -6
- package/dist/react-native/chunks/{storage-leaf-RQXM7HBO.mjs → storage-leaf-ZUN6Y44X.mjs} +9 -9
- package/dist/react-native/chunks/{store-leaf-EZGCLSLM.mjs → store-leaf-K5XG46FV.mjs} +6 -6
- package/dist/react-native/chunks/{suggestions-leaf-JNGH2JYC.mjs → suggestions-leaf-KDPM3P27.mjs} +6 -6
- package/dist/react-native/chunks/{worker-copies-2OWLLBCV.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/{rerank-TQ4SU76L.mjs → rerank-3QEJNMFH.mjs} +4 -4
- package/dist/{restore-queue-W7U2X6V3.mjs → restore-queue-Q76Q4S35.mjs} +7 -7
- package/dist/{segment-codec-leaf-WGP4FBXF.mjs → segment-codec-leaf-BSDDR7DQ.mjs} +5 -5
- package/dist/{segment-merge-leaf-FYWJQSPL.mjs → segment-merge-leaf-6TT66HC5.mjs} +5 -5
- package/dist/server.mjs +20 -20
- package/dist/{storage-leaf-GRG44RQA.mjs → storage-leaf-R5JQ2X2M.mjs} +22 -22
- package/dist/{store-leaf-YDJVH73G.mjs → store-leaf-NCGETZYY.mjs} +6 -6
- package/dist/{suggestions-leaf-5UFJV7SC.mjs → suggestions-leaf-TX3GTD6S.mjs} +8 -8
- package/dist/sync/filesystem.mjs +9 -9
- package/dist/sync/indexeddb.browser.mjs +1 -1
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +4 -4
- package/dist/sync.mjs +4 -4
- package/dist/synonyms.browser.mjs +3 -3
- package/dist/synonyms.mjs +4 -4
- package/dist/{thread-6YLVL2NC.mjs → thread-VLVPAUWC.mjs} +13 -13
- package/dist/{worker-copies-IP4L7KEW.mjs → worker-copies-NZSBQZKG.mjs} +7 -7
- package/dist/workers/entry.mjs +10 -10
- package/package.json +7 -5
|
@@ -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],
|
|
@@ -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;
|