@delali/narsil 0.3.1-next.156 → 0.3.1-next.157
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/{analysis-change-5BQOQ4BF.mjs → analysis-change-CKEMM2MC.mjs} +9 -9
- package/dist/{react-native/chunks/analysis-change-entry-SCVWK6OU.mjs → analysis-change-entry-SEDMJ6MW.mjs} +1 -1
- package/dist/browser/{analysis-change-435CUEPZ.mjs → analysis-change-ZKGJFENM.mjs} +38 -29
- package/dist/{analysis-change-entry-TXX6JSMX.mjs → browser/analysis-change-entry-5BFUVMHJ.mjs} +1 -1
- package/dist/browser/{chunk-BHFQATSC.mjs → chunk-25MTVDYD.mjs} +1 -1
- package/dist/browser/{chunk-IZXVW2ZJ.mjs → chunk-3NLMB5CC.mjs} +2 -2
- package/dist/browser/{chunk-23XRXIBW.mjs → chunk-5YWB3E2W.mjs} +8 -1
- package/dist/browser/chunk-AI5UI46D.mjs +12 -0
- package/dist/browser/{chunk-2CFI5VVV.mjs → chunk-BLT4RHCJ.mjs} +2 -2
- package/dist/browser/{chunk-4NGKC4H4.mjs → chunk-C26SPCGQ.mjs} +7 -6
- package/dist/browser/{chunk-6LWDPLTB.mjs → chunk-C4FJ3WDY.mjs} +1 -1
- package/dist/browser/{chunk-MGI4BCXC.mjs → chunk-CXNTHHA7.mjs} +2 -2
- package/dist/browser/{chunk-STOWQFT3.mjs → chunk-DUH6QUVU.mjs} +547 -2
- package/dist/browser/chunk-EKMGCRSR.mjs +61 -0
- package/dist/browser/{chunk-SSTPBZZX.mjs → chunk-GFAZPSWK.mjs} +5 -5
- package/dist/browser/{chunk-3SSRJMFN.mjs → chunk-HUCSHDTB.mjs} +1 -1
- package/dist/browser/{chunk-K4Q6KX3R.mjs → chunk-K3IPRX6D.mjs} +48 -17
- package/dist/browser/{chunk-MOG4OVDK.mjs → chunk-MY2XKH22.mjs} +1 -12
- package/dist/browser/{chunk-3V7DNNZL.mjs → chunk-N23GL72Q.mjs} +178 -801
- package/dist/browser/{chunk-NQAME3RK.mjs → chunk-UATIJ4KU.mjs} +2 -2
- package/dist/browser/{chunk-2TI4SSUP.mjs → chunk-UKOWD2K5.mjs} +3 -3
- package/dist/browser/{chunk-7U3WVJUP.mjs → chunk-UTMHUHUV.mjs} +2 -2
- package/dist/browser/{chunk-EA63E3D2.mjs → chunk-V43N6TZO.mjs} +5 -5
- package/dist/browser/{chunk-CRE3G7F3.mjs → chunk-VY5KW3HN.mjs} +3 -3
- package/dist/browser/{chunk-WI4MR75E.mjs → chunk-X7TXYUKO.mjs} +1 -1
- package/dist/browser/{chunk-KZWSX6BH.mjs → chunk-Y6IBAUNO.mjs} +2 -86
- package/dist/browser/{cold-module-2EHCIV4K.mjs → cold-module-YNUUDNOM.mjs} +12 -10
- package/dist/browser/{durability-wiring-A7BVG2DW.mjs → durability-wiring-GVZEE46O.mjs} +64 -21
- package/dist/browser/{engine-hooks-E4UD67JD.mjs → engine-hooks-HBVS6YM4.mjs} +5 -4
- package/dist/browser/{geo-index-HHWGMNIS.mjs → geo-index-OTV7VPIR.mjs} +2 -1
- package/dist/browser/{import-DXYB6756.mjs → import-5ESVMFDJ.mjs} +6 -5
- package/dist/browser/{module-NIYMEA5R.mjs → module-NDSQLPMQ.mjs} +11 -9
- package/dist/{release-BH3DKW3T.mjs → browser/release-HYXPVJVS.mjs} +0 -1
- package/dist/browser/{restore-hooks-YPN4ZFCY.mjs → restore-hooks-IE3GGYHG.mjs} +8 -7
- package/dist/browser/{restore-queue-G3RQGL3Y.mjs → restore-queue-LQBBTODR.mjs} +3 -3
- package/dist/browser/{retention-ZWVMNC3Q.mjs → retention-TY3L3BFN.mjs} +7 -6
- package/dist/browser/{snapshot-VEQNIE6C.mjs → snapshot-5FHPPCNZ.mjs} +16 -14
- package/dist/browser/{start-BM442C6R.mjs → start-2UZTOBG5.mjs} +8 -7
- package/dist/browser/{write-2EVMZWDE.mjs → write-ULXAN5B4.mjs} +10 -8
- package/dist/{capabilities-Da4ywVVl.d.ts → capabilities-D3AoBJoF.d.ts} +2 -2
- package/dist/{chunk-K5QFDYST.mjs → chunk-24FNVRKB.mjs} +1 -1
- package/dist/{chunk-DP5C7YFQ.mjs → chunk-2ROUFMQX.mjs} +2 -2
- package/dist/{chunk-PWC4VB3Q.mjs → chunk-4B7JIGQD.mjs} +2 -2
- package/dist/{chunk-FAKFUDZZ.mjs → chunk-4LMSZAK6.mjs} +14 -3
- package/dist/{chunk-6I6AYAXS.mjs → chunk-4ZTHGTVX.mjs} +2 -2
- package/dist/{chunk-QOW2JPUI.mjs → chunk-BNL5OPRV.mjs} +6 -6
- package/dist/{chunk-3HYC4JRF.mjs → chunk-C7XQYG6U.mjs} +2 -2
- package/dist/{chunk-WX4LAO6M.mjs → chunk-CQZXZ75V.mjs} +3 -97
- package/dist/{chunk-4KKXNJM6.mjs → chunk-CWS55TEX.mjs} +2 -2
- package/dist/{chunk-2UV4QBHW.mjs → chunk-EYD7K3H6.mjs} +5 -5
- package/dist/{chunk-EFBDHH5P.mjs → chunk-FEZVDOWX.mjs} +160 -245
- package/dist/{chunk-XAXKV65G.mjs → chunk-FUD5XSZ5.mjs} +1 -1
- package/dist/{chunk-JDJBQLRO.mjs → chunk-GPWMUPCA.mjs} +10 -10
- package/dist/{chunk-25KDNIZZ.mjs → chunk-IIRIG7H5.mjs} +1 -1
- package/dist/{chunk-TZTRKM33.mjs → chunk-JSV6OQ4C.mjs} +1 -1
- package/dist/{chunk-NF4DT3IH.mjs → chunk-JTYPJF3T.mjs} +8 -1
- package/dist/chunk-KCQYFO4K.mjs +62 -0
- package/dist/{chunk-CSLGFPFQ.mjs → chunk-LDNCLRZU.mjs} +1 -1
- package/dist/{chunk-MQOJIO5B.mjs → chunk-MW6BR4QP.mjs} +2 -2
- package/dist/{react-native/chunks/chunk-MUWD2H2S.mjs → chunk-MWD5VPN7.mjs} +2 -2
- package/dist/{chunk-XXHN7J46.mjs → chunk-ODYKO5TO.mjs} +1 -1
- package/dist/{chunk-RDXO6JST.mjs → chunk-OG7UGJ6F.mjs} +2 -2
- package/dist/{chunk-FYOVBEMM.mjs → chunk-OQLD2BSW.mjs} +2 -2
- package/dist/{chunk-I53G4JAU.mjs → chunk-OYABFKTW.mjs} +2 -2
- package/dist/{chunk-TZ3355VS.mjs → chunk-P5LANSH6.mjs} +1 -1
- package/dist/{chunk-P5ZI2P2W.mjs → chunk-PIH5SJ4N.mjs} +3 -3
- package/dist/{chunk-HFPMMRQT.mjs → chunk-PSZI4O24.mjs} +51 -4
- package/dist/{chunk-L6V6BST3.mjs → chunk-PV2CG7EJ.mjs} +3 -552
- package/dist/{chunk-SA5LOGO3.mjs → chunk-PWGYQXML.mjs} +1 -1
- package/dist/{chunk-BWZ3P4MU.mjs → chunk-QLDABJZM.mjs} +3 -3
- package/dist/{chunk-JWRUUCWD.mjs → chunk-RCX4WNLC.mjs} +2 -2
- package/dist/{chunk-DWEPMFJE.mjs → chunk-RIHIVFIQ.mjs} +5 -5
- package/dist/{chunk-FNGAM5B7.mjs → chunk-RWURUDSP.mjs} +8 -8
- package/dist/{chunk-I2KPOLOZ.mjs → chunk-SMOOSIAW.mjs} +3 -3
- package/dist/{chunk-TGS5UXBE.mjs → chunk-SOI6LTHM.mjs} +3 -3
- package/dist/{chunk-YTWZVGCB.mjs → chunk-UD5HIS4U.mjs} +1 -1
- package/dist/{chunk-46KY2PJD.mjs → chunk-UJDJB3NE.mjs} +37 -29
- package/dist/{chunk-Z2KAFCRT.mjs → chunk-VSLSGASN.mjs} +2 -2
- package/dist/{chunk-VTTRFF2C.mjs → chunk-VZ2ONHEE.mjs} +9 -5
- package/dist/chunk-W5EB5XKI.mjs +741 -0
- package/dist/{chunk-7LXHHCXZ.mjs → chunk-W7OSSKH5.mjs} +46 -16
- package/dist/{chunk-ZKP7G7TV.mjs → chunk-XXJZMTZT.mjs} +1 -1
- package/dist/{chunk-FRBFVQFN.mjs → chunk-ZPZ3YGXV.mjs} +4 -4
- package/dist/{client-DRv7UVeY.d.ts → client-kqSMevVi.d.ts} +15 -3
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -0
- package/dist/{cold-module-6MO2XJF2.mjs → cold-module-VOJXMNZB.mjs} +13 -12
- package/dist/{config-DMwffLKn.d.ts → config-B4v_Htpu.d.ts} +1 -1
- package/dist/{config-CoSig5Ox.d.ts → config-CTP01fns.d.ts} +1 -1
- package/dist/{direct-executor-FTMYY3TI.mjs → direct-executor-V5DRIECI.mjs} +5 -5
- package/dist/distribution.d.ts +4 -4
- package/dist/distribution.mjs +72 -64
- package/dist/{durability-wiring-VIF5MOSY.mjs → durability-wiring-3TD62MBI.mjs} +38 -30
- package/dist/{engine-CFxPYqEk.d.ts → engine-CkPn2PWE.d.ts} +1 -1
- package/dist/{engine-hooks-EGUGNZYE.mjs → engine-hooks-HA3SBOBR.mjs} +8 -8
- package/dist/{import-XKDPJQDP.mjs → import-GPKLTSKA.mjs} +8 -8
- package/dist/index.browser.mjs +4 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +7 -7
- package/dist/index.react-native.mjs +3 -3
- package/dist/{long-query-thread-YA4IAYSY.mjs → long-query-thread-QDFQSJD6.mjs} +13 -13
- package/dist/{module-FQ4JWNQJ.mjs → module-JYHFTVPS.mjs} +12 -11
- package/dist/{paged-partition-archive-PXW5XAYU.mjs → paged-partition-archive-RLRGOXDX.mjs} +14 -14
- package/dist/partial-words.mjs +3 -3
- package/dist/persistence/durability/checkpoint-worker.mjs +13 -12
- package/dist/query-suggestions/merge-worker.mjs +9 -9
- package/dist/query-suggestions.browser.mjs +9 -8
- package/dist/query-suggestions.d.ts +1 -1
- package/dist/query-suggestions.mjs +17 -17
- package/dist/react-native/chunks/{analysis-change-LT5QBQ3H.mjs → analysis-change-QUVDNABS.mjs} +37 -29
- package/dist/{browser/analysis-change-entry-HZXKPPGV.mjs → react-native/chunks/analysis-change-entry-OC4XASBF.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-KV46CT4D.mjs → chunk-4AV5PPH6.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-GXX3DQXP.mjs → chunk-4COWCEY7.mjs} +188 -163
- package/dist/react-native/chunks/{chunk-G43IPIDG.mjs → chunk-4NWR3NGS.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-3JWDECAZ.mjs → chunk-5MSX5FRT.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-6WA3C3DV.mjs → chunk-6OFDUYVX.mjs} +8 -1
- package/dist/react-native/chunks/{chunk-NB3LP33V.mjs → chunk-6ZELFCK5.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-4JYO3JD2.mjs → chunk-BITYFZSZ.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZXZFN7FI.mjs → chunk-DMIFXZ3Q.mjs} +1 -1
- package/dist/{chunk-KF4EXSM4.mjs → react-native/chunks/chunk-IAENKE2D.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-ZLWVW734.mjs → chunk-KSBYEMCB.mjs} +1 -1
- package/dist/react-native/chunks/chunk-KU646XXT.mjs +164 -0
- package/dist/react-native/chunks/{chunk-MIP4SOR6.mjs → chunk-OCSLSH27.mjs} +164 -244
- package/dist/react-native/chunks/chunk-OXM66LO6.mjs +62 -0
- package/dist/react-native/chunks/{chunk-VWUDIOT6.mjs → chunk-TORU2OHQ.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-PDRWWPKV.mjs → chunk-WVWJNUMN.mjs} +48 -18
- package/dist/react-native/chunks/{chunk-UQ4OAXKU.mjs → chunk-WW2X2AEI.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-QUKQNI3H.mjs → chunk-ZNZ6CPAZ.mjs} +2 -87
- package/dist/react-native/chunks/{chunk-TP6KCKER.mjs → chunk-ZVQMBF2H.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-POPDAGH6.mjs → chunk-ZWAIN4GG.mjs} +6 -6
- package/dist/react-native/chunks/{cold-module-KVZYUGRY.mjs → cold-module-N6KFNNZA.mjs} +9 -8
- package/dist/react-native/chunks/{durability-wiring-34OYO32E.mjs → durability-wiring-RN64S2TL.mjs} +63 -21
- package/dist/react-native/chunks/{engine-hooks-M7JV46NH.mjs → engine-hooks-CWA5CKCA.mjs} +4 -4
- package/dist/react-native/chunks/{import-H6AQREWI.mjs → import-5UAWBRJP.mjs} +4 -4
- package/dist/react-native/chunks/{module-LBZPGOWH.mjs → module-6RP4ZCBW.mjs} +8 -7
- package/dist/react-native/chunks/{release-D7ZTIANM.mjs → release-2SIHZWDO.mjs} +0 -1
- package/dist/react-native/chunks/{restore-hooks-IBGIY3DR.mjs → restore-hooks-ENFMDTWC.mjs} +7 -7
- package/dist/react-native/chunks/{restore-queue-ZZX54AH7.mjs → restore-queue-4R6AASE5.mjs} +3 -3
- package/dist/react-native/chunks/{retention-EW4TTDFB.mjs → retention-5GTFT3GR.mjs} +6 -6
- package/dist/react-native/chunks/{snapshot-REYVIN3X.mjs → snapshot-5LGPQXFS.mjs} +15 -14
- package/dist/react-native/chunks/{start-BQK6KN3R.mjs → start-ZQJVZ5DN.mjs} +7 -7
- package/dist/react-native/chunks/{write-FQAYCZF5.mjs → write-6BRYIIZ7.mjs} +7 -6
- package/dist/react-native/partial-words.mjs +2 -2
- package/dist/react-native/query-suggestions.mjs +8 -8
- package/dist/react-native/sync.mjs +44 -10
- package/dist/react.d.ts +7 -7
- package/dist/{browser/release-76MXRPGV.mjs → release-SMR4WJD4.mjs} +0 -1
- package/dist/{restore-hooks-CDERDEF4.mjs → restore-hooks-HXLIEB4A.mjs} +12 -12
- package/dist/{restore-queue-7NNSTROA.mjs → restore-queue-LZH7LMLR.mjs} +3 -3
- package/dist/{retention-QSVBBNRM.mjs → retention-3K7ARGAG.mjs} +12 -12
- package/dist/server.d.ts +10 -8
- package/dist/server.mjs +37 -29
- package/dist/{snapshot-RH4NSKIZ.mjs → snapshot-O7ICP7NJ.mjs} +24 -23
- package/dist/{start-MCKCOGIW.mjs → start-S4PFP6RS.mjs} +14 -14
- package/dist/sync/filesystem.d.ts +2 -2
- package/dist/sync/indexeddb.d.ts +2 -2
- package/dist/sync.browser.mjs +44 -10
- package/dist/sync.d.ts +3 -3
- package/dist/sync.mjs +44 -10
- package/dist/{tasks-qrJojgST.d.ts → tasks-CoNjxbop.d.ts} +2 -2
- package/dist/{thread-O4SBJJJS.mjs → thread-YLJ3ZPQ3.mjs} +12 -12
- package/dist/{types-BZCGjfLn.d.ts → types-DPMjfOr_.d.ts} +1 -1
- package/dist/workers/entry.mjs +5 -5
- package/dist/{write-3FK7NG3Y.mjs → write-2OBJGLFS.mjs} +11 -10
- package/openapi.json +71 -0
- package/package.json +7 -7
- package/dist/chunk-BU4SAIC4.mjs +0 -196
- package/dist/react-native/chunks/chunk-DNXOMPAQ.mjs +0 -191
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export { localRuntimeOf } from './chunk-
|
|
1
|
+
export { localRuntimeOf } from './chunk-GFAZPSWK.mjs';
|
|
2
2
|
import './chunk-M3MQE2X7.mjs';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
import './chunk-VY5KW3HN.mjs';
|
|
4
|
+
import './chunk-25MTVDYD.mjs';
|
|
5
|
+
import './chunk-CXNTHHA7.mjs';
|
|
6
6
|
import './chunk-OEDCEZXJ.mjs';
|
|
7
7
|
import './chunk-ATEBYXP6.mjs';
|
|
8
8
|
import './chunk-5W3MMTLG.mjs';
|
|
9
9
|
import './chunk-7IGKGWSQ.mjs';
|
|
10
10
|
import './chunk-HOZW3PKP.mjs';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-N23GL72Q.mjs';
|
|
12
12
|
import './chunk-ML7THVLJ.mjs';
|
|
13
13
|
import './chunk-VI7BQR4U.mjs';
|
|
14
14
|
import './chunk-JPTQZWJQ.mjs';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-DUH6QUVU.mjs';
|
|
16
16
|
import './chunk-RA6LSBCM.mjs';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-MY2XKH22.mjs';
|
|
18
|
+
import './chunk-AI5UI46D.mjs';
|
|
18
19
|
import './chunk-TK63WFXK.mjs';
|
|
19
20
|
import './chunk-XAWNZ4G2.mjs';
|
|
20
21
|
import './chunk-TY7L6OXO.mjs';
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-
|
|
1
|
+
import { DOCUMENT_EXPORT_VERSION, DOCUMENT_EXPORT_FORMAT } from './chunk-3NLMB5CC.mjs';
|
|
2
2
|
import './chunk-EXQZGUQH.mjs';
|
|
3
3
|
import './chunk-DSXIBE6N.mjs';
|
|
4
|
-
import { encodeExactJson, encodeDocumentJson } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { encodeExactJson, encodeDocumentJson } from './chunk-X7TXYUKO.mjs';
|
|
5
|
+
import './chunk-C4FJ3WDY.mjs';
|
|
6
|
+
import { KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-Y6IBAUNO.mjs';
|
|
7
|
+
import { setNestedValue } from './chunk-EKMGCRSR.mjs';
|
|
8
|
+
import { decodeStoredDocument } from './chunk-N23GL72Q.mjs';
|
|
8
9
|
import './chunk-ML7THVLJ.mjs';
|
|
9
10
|
import './chunk-VI7BQR4U.mjs';
|
|
10
11
|
import './chunk-JPTQZWJQ.mjs';
|
|
11
|
-
import { openChecksummedEnvelope } from './chunk-
|
|
12
|
+
import { openChecksummedEnvelope } from './chunk-DUH6QUVU.mjs';
|
|
12
13
|
import './chunk-RA6LSBCM.mjs';
|
|
13
|
-
import './chunk-
|
|
14
|
+
import './chunk-MY2XKH22.mjs';
|
|
15
|
+
import './chunk-AI5UI46D.mjs';
|
|
14
16
|
import './chunk-TK63WFXK.mjs';
|
|
15
17
|
import { decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-WN464PTL.mjs';
|
|
16
18
|
import './chunk-XAWNZ4G2.mjs';
|
|
@@ -101,7 +103,7 @@ async function wholeFileVectorReads(checkpoint) {
|
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
105
|
async function* pagedDocumentLines(checkpoint) {
|
|
104
|
-
const { openFileVectorReads, pagedPartitionLines } = await import('./module-
|
|
106
|
+
const { openFileVectorReads, pagedPartitionLines } = await import('./module-NDSQLPMQ.mjs');
|
|
105
107
|
const vectors = await openFileVectorReads(checkpoint, () => wholeFileVectorReads(checkpoint));
|
|
106
108
|
try {
|
|
107
109
|
for (const partition of checkpoint.manifest.partitions) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as EmbeddingAdapter, R as RerankAdapter } from './adapters-pljAqmrC.js';
|
|
2
|
-
import { C as ClusterNamespace } from './config-
|
|
2
|
+
import { C as ClusterNamespace } from './config-B4v_Htpu.js';
|
|
3
3
|
import { l as RecordedQuery } from './query-suggestions-CBYkrQ5T.js';
|
|
4
|
-
import { E as ErrorDetail, j as TaskStore } from './tasks-
|
|
4
|
+
import { E as ErrorDetail, j as TaskStore } from './tasks-CoNjxbop.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Context handed to {@link OnRequestHook} for every inbound request, captured
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dayFileKey, restoreStagingPrefix, restoredFileKey, listHistoryFolder, historyFileOf } from './chunk-KP7TYHWT.mjs';
|
|
2
|
-
import { resolveSetting } from './chunk-
|
|
3
|
-
import { openCountsFile, encodeCountsFile } from './chunk-
|
|
2
|
+
import { resolveSetting } from './chunk-UD5HIS4U.mjs';
|
|
3
|
+
import { openCountsFile, encodeCountsFile } from './chunk-PWGYQXML.mjs';
|
|
4
4
|
import { DAY_MS, SCRAMBLED_ID_BYTES, QUERY_HISTORY_ARCHIVE_PREFIX, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS } from './chunk-5YNRKI2C.mjs';
|
|
5
5
|
|
|
6
6
|
// src/query-suggestions/day-counts.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sanitizeSurfaceForms, patternIndexesFromWire, dropStoredVectorValues } from './chunk-
|
|
2
|
-
import { requireValidFieldTypes } from './chunk-
|
|
1
|
+
import { sanitizeSurfaceForms, patternIndexesFromWire, dropStoredVectorValues } from './chunk-W7OSSKH5.mjs';
|
|
2
|
+
import { requireValidFieldTypes } from './chunk-W5EB5XKI.mjs';
|
|
3
3
|
import { VALID_HNSW_METRICS } from './chunk-U476IXKQ.mjs';
|
|
4
4
|
import { decode } from '@msgpack/msgpack';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { encodeJson, SYNC_CLOSE_SERVER_ERROR, SYNC_SUBPROTOCOL } from './chunk-KYYABCSW.mjs';
|
|
2
|
-
import { answerRefusalOf } from './chunk-
|
|
3
|
-
import { archiveRange } from './chunk-
|
|
4
|
-
import { readRecentMemoryFigures, readMemoryFigures } from './chunk-
|
|
2
|
+
import { answerRefusalOf } from './chunk-IIRIG7H5.mjs';
|
|
3
|
+
import { archiveRange } from './chunk-JSV6OQ4C.mjs';
|
|
4
|
+
import { readRecentMemoryFigures, readMemoryFigures } from './chunk-OYABFKTW.mjs';
|
|
5
5
|
import { DEFAULT_RERANK_WINDOW } from './chunk-HJSN7UYG.mjs';
|
|
6
6
|
import { collectGarbageBeforeRefusal, collectYoungGenerationBeforeRefusal, reportRefusalAfterCollection, reservedHeapBytes, admitHeapBytes } from './chunk-XIHUI4KB.mjs';
|
|
7
7
|
import { ANALYSIS_CHANGE_MEMBERS } from './chunk-EEBCDP36.mjs';
|
|
@@ -2662,6 +2662,17 @@ function createSyncSnapshotHandler(serving) {
|
|
|
2662
2662
|
// src/server/routes/sync.ts
|
|
2663
2663
|
function syncRoutes(shared) {
|
|
2664
2664
|
return [
|
|
2665
|
+
{
|
|
2666
|
+
method: "get",
|
|
2667
|
+
path: "/indexes/:name/sync",
|
|
2668
|
+
handler: "getSync",
|
|
2669
|
+
options: shared.named,
|
|
2670
|
+
operationId: "getSync",
|
|
2671
|
+
summary: "Report the device sync setting of an index, whether a device has downloaded it, and its epoch",
|
|
2672
|
+
tags: ["Sync"],
|
|
2673
|
+
request: null,
|
|
2674
|
+
responses: { 200: "SyncStatus" }
|
|
2675
|
+
},
|
|
2665
2676
|
{
|
|
2666
2677
|
method: "put",
|
|
2667
2678
|
path: "/indexes/:name/sync",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { restoredEmbedding, restoredPartitionConfig, readSharedConfigFields } from './chunk-INJYO3BU.mjs';
|
|
2
2
|
import { isSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
3
3
|
import { MAX_PARTITION_COUNT, MAX_REPLICATION_FACTOR } from './chunk-JDDXV6UF.mjs';
|
|
4
|
-
import { storedStateOf } from './chunk-
|
|
4
|
+
import { storedStateOf } from './chunk-ODYKO5TO.mjs';
|
|
5
5
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-EEBCDP36.mjs';
|
|
6
|
-
import { generateId } from './chunk-
|
|
6
|
+
import { generateId } from './chunk-VZ2ONHEE.mjs';
|
|
7
7
|
import { decodeSynonymRules } from './chunk-I5B7RXU7.mjs';
|
|
8
8
|
import { getLanguage } from './chunk-RZWWB2XR.mjs';
|
|
9
9
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { littleEndianBytes, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, KEYWORD_SEGMENT_PAYLOAD_VERSION, uint64Bytes } from './chunk-
|
|
1
|
+
import { littleEndianBytes, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment, KEYWORD_SEGMENT_PAYLOAD_VERSION, uint64Bytes } from './chunk-CQZXZ75V.mjs';
|
|
2
2
|
import { readListedFile, requireListedChecksum } from './chunk-UHICS3JI.mjs';
|
|
3
|
-
import { segmentKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-
|
|
3
|
+
import { segmentKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-JTYPJF3T.mjs';
|
|
4
4
|
import { SEGMENT_FILE_FRAMING_SLACK_BYTES, SEGMENT_TOKEN_TABLE_SHARE_OF_FILE } from './chunk-QDZJM7NI.mjs';
|
|
5
|
-
import { packChecksummedEnvelope } from './chunk-
|
|
6
|
-
import { selectionKeeps, segmentArraysOf, mergeSegmentContents } from './chunk-
|
|
5
|
+
import { packChecksummedEnvelope } from './chunk-FEZVDOWX.mjs';
|
|
6
|
+
import { selectionKeeps, segmentArraysOf, mergeSegmentContents } from './chunk-VZ2ONHEE.mjs';
|
|
7
7
|
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-3OH67G7R.mjs';
|
|
8
|
-
import { messagePackUpperBoundBytes } from './chunk-
|
|
8
|
+
import { messagePackUpperBoundBytes } from './chunk-W5EB5XKI.mjs';
|
|
9
9
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
10
10
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
11
11
|
import { encode } from '@msgpack/msgpack';
|
|
@@ -547,7 +547,7 @@ async function writePagedGroup(state, group) {
|
|
|
547
547
|
const tombstones = state.tombstonesWritten ? [] : [...request.tombstones];
|
|
548
548
|
const id = state.nextSegmentId;
|
|
549
549
|
const key = segmentKey(request.indexName, request.partitionId, id);
|
|
550
|
-
const { writePagedSegment } = await import('./module-
|
|
550
|
+
const { writePagedSegment } = await import('./module-JYHFTVPS.mjs');
|
|
551
551
|
const written = await writePagedSegment({
|
|
552
552
|
directory,
|
|
553
553
|
key,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-
|
|
2
|
-
import { packChecksummedEnvelope } from './chunk-
|
|
1
|
+
import { SEGMENT_MANIFEST_VERSION, MANIFEST_ENVELOPE_VERSION } from './chunk-JTYPJF3T.mjs';
|
|
2
|
+
import { packChecksummedEnvelope } from './chunk-FEZVDOWX.mjs';
|
|
3
3
|
import { encode } from '@msgpack/msgpack';
|
|
4
4
|
|
|
5
5
|
function fileRefOnTheWire(ref) {
|
|
@@ -1,102 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getNestedValue } from './chunk-L6V6BST3.mjs';
|
|
3
|
-
import { requireValidFieldTypes } from './chunk-BU4SAIC4.mjs';
|
|
1
|
+
import { requireValidFieldTypes } from './chunk-W5EB5XKI.mjs';
|
|
4
2
|
import { VECTOR_PATTERN } from './chunk-L5ORED7V.mjs';
|
|
5
|
-
import {
|
|
3
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
6
4
|
import { decode } from '@msgpack/msgpack';
|
|
7
5
|
|
|
8
|
-
function validateReplicationEntry(entry, localPrimaryTerm, log) {
|
|
9
|
-
if (!log.verifyChecksum(entry)) {
|
|
10
|
-
return { valid: false, error: ErrorCodes.REPLICATION_ENTRY_CORRUPT };
|
|
11
|
-
}
|
|
12
|
-
if (entry.primaryTerm < localPrimaryTerm) {
|
|
13
|
-
return { valid: false, error: ErrorCodes.REPLICATION_TERM_MISMATCH };
|
|
14
|
-
}
|
|
15
|
-
return { valid: true };
|
|
16
|
-
}
|
|
17
|
-
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
18
|
-
if (entry.document === null) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const document = decode(entry.document);
|
|
22
|
-
restoreVectorFields(document, vectorFieldPaths);
|
|
23
|
-
const documentId = entry.documentId;
|
|
24
|
-
if (manager.has(documentId)) {
|
|
25
|
-
removeDocumentVectors(documentId, vecIndexes);
|
|
26
|
-
manager.remove(documentId);
|
|
27
|
-
}
|
|
28
|
-
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
29
|
-
manager.insert(documentId, partitionDoc);
|
|
30
|
-
try {
|
|
31
|
-
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
32
|
-
} catch (err) {
|
|
33
|
-
manager.remove(documentId);
|
|
34
|
-
throw err;
|
|
35
|
-
}
|
|
36
|
-
if (!schedulesGraphBuild) return;
|
|
37
|
-
for (const fieldPath of extractedVectors.keys()) {
|
|
38
|
-
const vecIndex = vecIndexes.get(fieldPath);
|
|
39
|
-
if (vecIndex) {
|
|
40
|
-
vecIndex.scheduleBuild();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
45
|
-
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
46
|
-
if (!manager.has(entry.documentId)) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
manager.remove(entry.documentId, removedSpellings);
|
|
50
|
-
}
|
|
51
|
-
function restoreVectorFields(document, vectorFieldPaths) {
|
|
52
|
-
for (const fieldPath of vectorFieldPaths) {
|
|
53
|
-
const value = getNestedValue(document, fieldPath);
|
|
54
|
-
if (value instanceof Uint8Array && !(value instanceof Float32Array)) {
|
|
55
|
-
if (value.byteLength % 4 !== 0) {
|
|
56
|
-
throw new Error(
|
|
57
|
-
`Vector field "${fieldPath}" has invalid byte length ${value.byteLength} (must be divisible by 4)`
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
const elementCount = value.byteLength / 4;
|
|
61
|
-
const float32 = new Float32Array(elementCount);
|
|
62
|
-
const dataView = new DataView(value.buffer, value.byteOffset, value.byteLength);
|
|
63
|
-
for (let i = 0; i < elementCount; i += 1) {
|
|
64
|
-
float32[i] = dataView.getFloat32(i * 4, true);
|
|
65
|
-
}
|
|
66
|
-
setNestedValue(document, fieldPath, float32);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
71
|
-
function setNestedValue(obj, path, value) {
|
|
72
|
-
if (!path.includes(".")) {
|
|
73
|
-
if (FORBIDDEN_KEYS.has(path)) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
obj[path] = value;
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const segments = path.split(".");
|
|
80
|
-
let current = obj;
|
|
81
|
-
for (let i = 0; i < segments.length - 1; i += 1) {
|
|
82
|
-
const segment = segments[i];
|
|
83
|
-
if (segment === void 0 || FORBIDDEN_KEYS.has(segment)) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
let next = current[segment];
|
|
87
|
-
if (next === null || next === void 0 || typeof next !== "object") {
|
|
88
|
-
next = {};
|
|
89
|
-
current[segment] = next;
|
|
90
|
-
}
|
|
91
|
-
current = next;
|
|
92
|
-
}
|
|
93
|
-
const finalSegment = segments.at(-1);
|
|
94
|
-
if (finalSegment === void 0 || FORBIDDEN_KEYS.has(finalSegment)) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
current[finalSegment] = value;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
6
|
// src/serialization/keyword-segment/types.ts
|
|
101
7
|
var KEYWORD_SEGMENT_PAYLOAD_VERSION = 1;
|
|
102
8
|
var KEYWORD_SEGMENT_ENVELOPE_VERSION = 4;
|
|
@@ -653,4 +559,4 @@ function decodeKeywordSegment(payload, shared) {
|
|
|
653
559
|
return writeRecords === null ? { schema, tombstones, arrays } : { schema, tombstones, arrays, writeRecords };
|
|
654
560
|
}
|
|
655
561
|
|
|
656
|
-
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION,
|
|
562
|
+
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION, decodeBooleanColumns, decodeEnumColumns, decodeFieldLengths, decodeGeopointColumns, decodeKeywordSegment, decodePartialWords, decodePatternColumns, decodeSurfaceForms, decodeValueColumns, littleEndianBytes, requireEntriesAscend, requireOffsets, requireUtf8Entries, uint32sFrom, uint64Bytes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VECTOR_FILE_MAX_VECTORS, deadBytesFor } from './chunk-K4ZIGL2O.mjs';
|
|
2
|
-
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, graphPartKey, vectorFileKey } from './chunk-
|
|
2
|
+
import { MAX_SEGMENT_ID, MANIFEST_ENVELOPE_VERSION, EARLIER_SEGMENT_MANIFEST_VERSION, SEGMENT_MANIFEST_VERSION, MAX_SEGMENTS_PER_PARTITION, segmentKey, graphPartKey, vectorFileKey } from './chunk-JTYPJF3T.mjs';
|
|
3
3
|
import { openChecksummedEnvelope, HEADER_SIZE } from './chunk-3OH67G7R.mjs';
|
|
4
|
-
import { requireValidFieldTypes } from './chunk-
|
|
4
|
+
import { requireValidFieldTypes } from './chunk-W5EB5XKI.mjs';
|
|
5
5
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
6
6
|
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
7
7
|
import { decode } from '@msgpack/msgpack';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SHA256_BLOCK_BYTES, sha256, SHA256_INITIAL_STATE, compressSha256Block, paddedSha256Message, sha256Digest } from './chunk-LNGE7SLY.mjs';
|
|
2
|
-
import { DayStore, RestoredHistory, dayOf } from './chunk-
|
|
2
|
+
import { DayStore, RestoredHistory, dayOf } from './chunk-2ROUFMQX.mjs';
|
|
3
3
|
import { historyFilesOf, buildRecordKey, listHistoryFolder, historyFileOf, removeHistoryFolder, removeRestoreLeftovers } from './chunk-KP7TYHWT.mjs';
|
|
4
|
-
import { resolveSetting, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-
|
|
4
|
+
import { resolveSetting, parseSchedule, nextMatchAfter, latestMatchAtOrBefore } from './chunk-UD5HIS4U.mjs';
|
|
5
5
|
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
6
6
|
import { spawnNodeWorker } from './chunk-BEZH7VEH.mjs';
|
|
7
|
-
import { Merger } from './chunk-
|
|
8
|
-
import { sameBytes } from './chunk-
|
|
7
|
+
import { Merger } from './chunk-FUD5XSZ5.mjs';
|
|
8
|
+
import { sameBytes } from './chunk-PWGYQXML.mjs';
|
|
9
9
|
import { isPerson, isGroup, acceptedPhrase } from './chunk-GQPTDQCL.mjs';
|
|
10
10
|
import { SUGGESTIONS_INDEX_INFIX, BUILD_WRITE_BATCH, MIN_KEY_BYTES, DAY_MS, BYTES_PER_MIB, MS_PER_SECOND, SCRAMBLED_ID_BYTES, KEY_FINGERPRINT_LABEL, KEY_FINGERPRINT_BYTES, HISTORY_SWEEP_INTERVAL_MS, SCHEDULE_OFF, MAX_TIMER_DELAY_MS, BUILD_LIST_PAGE } from './chunk-5YNRKI2C.mjs';
|
|
11
|
-
import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-
|
|
11
|
+
import { emitEngineEvent, emitWriteEventAfter, createEngineIndex, packEnvelopeWithChecksum } from './chunk-FEZVDOWX.mjs';
|
|
12
12
|
import { resolveWorkerEntry } from './chunk-LHKOSI2J.mjs';
|
|
13
13
|
import { openChecksummedEnvelope } from './chunk-3OH67G7R.mjs';
|
|
14
14
|
import { crc32 } from './chunk-7GXJUJ24.mjs';
|