@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
|
@@ -4,14 +4,14 @@ function holdsChangeWork(entry) {
|
|
|
4
4
|
}
|
|
5
5
|
async function abandonChangeOf(core, indexName) {
|
|
6
6
|
if (!holdsChangeWork(core.indexRegistry.get(indexName))) return;
|
|
7
|
-
const { abandonAnalysisChange } = await import('./analysis-change-
|
|
7
|
+
const { abandonAnalysisChange } = await import('./analysis-change-ZKGJFENM.mjs');
|
|
8
8
|
await abandonAnalysisChange(core, indexName);
|
|
9
9
|
}
|
|
10
10
|
async function resumeChangeOf(core, indexName) {
|
|
11
11
|
if ((core.indexRegistry.get(indexName)?.pendingAnalysis ?? null) === null) return;
|
|
12
12
|
if (core.mutationCtx.capacityScope === "partition") return;
|
|
13
13
|
if (core.executor.getManager(indexName) === void 0) return;
|
|
14
|
-
const { resumeAnalysisChange } = await import('./analysis-change-
|
|
14
|
+
const { resumeAnalysisChange } = await import('./analysis-change-ZKGJFENM.mjs');
|
|
15
15
|
void resumeAnalysisChange(core, indexName).catch(() => void 0);
|
|
16
16
|
}
|
|
17
17
|
async function resumeEveryChange(core) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-
|
|
1
|
+
import { openManifestPayload, listedKeysOf, decodeManifestPayload } from './chunk-BLT4RHCJ.mjs';
|
|
2
2
|
import { QUERY_HISTORY_ARCHIVE_PREFIX, MAX_HISTORY_FILE_BYTES } from './chunk-7IGKGWSQ.mjs';
|
|
3
|
-
import { manifestFileRefs } from './chunk-
|
|
4
|
-
import { HEADER_SIZE } from './chunk-
|
|
3
|
+
import { manifestFileRefs } from './chunk-5YWB3E2W.mjs';
|
|
4
|
+
import { HEADER_SIZE } from './chunk-DUH6QUVU.mjs';
|
|
5
5
|
import { MAX_FILE_BYTES } from './chunk-GPPOG6PT.mjs';
|
|
6
6
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RESTORE_ESTIMATE_MARGIN, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-ELV4OZOI.mjs';
|
|
2
2
|
import { collectAndReturnPages } from './chunk-OIZS5KIX.mjs';
|
|
3
|
-
import { readResidentMemory } from './chunk-
|
|
4
|
-
import { extractVectorFieldsFromSchema, readHeapStatistics } from './chunk-
|
|
3
|
+
import { readResidentMemory } from './chunk-N23GL72Q.mjs';
|
|
4
|
+
import { extractVectorFieldsFromSchema, readHeapStatistics } from './chunk-DUH6QUVU.mjs';
|
|
5
5
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
6
6
|
|
|
7
7
|
// src/engine/snapshot/memory-budget.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
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-Y6IBAUNO.mjs';
|
|
2
2
|
import { SEGMENT_FILE_FRAMING_SLACK_BYTES, SEGMENT_TOKEN_TABLE_SHARE_OF_FILE } from './chunk-ZI2V4VD7.mjs';
|
|
3
|
-
import { segmentKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-
|
|
4
|
-
import { selectionKeeps, packChecksummedEnvelope,
|
|
5
|
-
import { crc32, openChecksummedEnvelope, HEADER_SIZE } from './chunk-
|
|
3
|
+
import { segmentKey, MAX_SEGMENTS_PER_PARTITION } from './chunk-5YWB3E2W.mjs';
|
|
4
|
+
import { selectionKeeps, packChecksummedEnvelope, segmentArraysOf, mergeSegmentContents } from './chunk-N23GL72Q.mjs';
|
|
5
|
+
import { crc32, openChecksummedEnvelope, HEADER_SIZE, messagePackUpperBoundBytes } from './chunk-DUH6QUVU.mjs';
|
|
6
6
|
import { MAX_FILE_BYTES } from './chunk-GPPOG6PT.mjs';
|
|
7
7
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
8
8
|
import { decode, encode } from '@msgpack/msgpack';
|
|
@@ -770,7 +770,7 @@ async function writePagedGroup(state, group) {
|
|
|
770
770
|
const tombstones = state.tombstonesWritten ? [] : [...request.tombstones];
|
|
771
771
|
const id = state.nextSegmentId;
|
|
772
772
|
const key = segmentKey(request.indexName, request.partitionId, id);
|
|
773
|
-
const { writePagedSegment } = await import('./module-
|
|
773
|
+
const { writePagedSegment } = await import('./module-NDSQLPMQ.mjs');
|
|
774
774
|
const written = await writePagedSegment({
|
|
775
775
|
directory,
|
|
776
776
|
key,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolveSetting, isGroup, isNormalPhrase } from './chunk-
|
|
1
|
+
import { resolveSetting, isGroup, isNormalPhrase } from './chunk-25MTVDYD.mjs';
|
|
2
2
|
import { dayFileKey, restoreStagingPrefix, restoredFileKey, listHistoryFolder, historyFileOf } from './chunk-OEDCEZXJ.mjs';
|
|
3
3
|
import { MAX_HISTORY_FILE_BYTES, KEY_FINGERPRINT_BYTES, DAY_MS, SCRAMBLED_ID_BYTES, QUERY_HISTORY_ARCHIVE_PREFIX, MAX_INDEX_UUID_LENGTH, MAX_MAX_LENGTH, MAX_MAX_WORDS, MIN_PHRASE_TABLE_CAPACITY, PERSON_TABLE_MIN_SLOTS, PAIR_PAGE_BLOCKS, PAIR_BLOCK_SLOTS, MAX_PEOPLE_PER_PHRASE_IN_FILE } from './chunk-7IGKGWSQ.mjs';
|
|
4
|
-
import { packEnvelopeWithChecksum } from './chunk-
|
|
5
|
-
import { openChecksummedEnvelope, HEADER_SIZE, crc32 } from './chunk-
|
|
4
|
+
import { packEnvelopeWithChecksum } from './chunk-N23GL72Q.mjs';
|
|
5
|
+
import { openChecksummedEnvelope, HEADER_SIZE, crc32 } from './chunk-DUH6QUVU.mjs';
|
|
6
6
|
|
|
7
7
|
// src/query-suggestions/msgpack-cursor.ts
|
|
8
8
|
var MalformedPayload = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-
|
|
1
|
+
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-C4FJ3WDY.mjs';
|
|
2
2
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/engine/export/json-line.ts
|
|
@@ -1,91 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-STOWQFT3.mjs';
|
|
1
|
+
import { requireValidFieldTypes, VECTOR_PATTERN } from './chunk-DUH6QUVU.mjs';
|
|
3
2
|
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
4
3
|
import { decode } from '@msgpack/msgpack';
|
|
5
4
|
|
|
6
|
-
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
7
|
-
if (entry.document === null) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const document = decode(entry.document);
|
|
11
|
-
restoreVectorFields(document, vectorFieldPaths);
|
|
12
|
-
const documentId = entry.documentId;
|
|
13
|
-
if (manager.has(documentId)) {
|
|
14
|
-
removeDocumentVectors(documentId, vecIndexes);
|
|
15
|
-
manager.remove(documentId);
|
|
16
|
-
}
|
|
17
|
-
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
18
|
-
manager.insert(documentId, partitionDoc);
|
|
19
|
-
try {
|
|
20
|
-
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
21
|
-
} catch (err) {
|
|
22
|
-
manager.remove(documentId);
|
|
23
|
-
throw err;
|
|
24
|
-
}
|
|
25
|
-
if (!schedulesGraphBuild) return;
|
|
26
|
-
for (const fieldPath of extractedVectors.keys()) {
|
|
27
|
-
const vecIndex = vecIndexes.get(fieldPath);
|
|
28
|
-
if (vecIndex) {
|
|
29
|
-
vecIndex.scheduleBuild();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
34
|
-
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
35
|
-
if (!manager.has(entry.documentId)) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
manager.remove(entry.documentId, removedSpellings);
|
|
39
|
-
}
|
|
40
|
-
function restoreVectorFields(document, vectorFieldPaths) {
|
|
41
|
-
for (const fieldPath of vectorFieldPaths) {
|
|
42
|
-
const value = getNestedValue(document, fieldPath);
|
|
43
|
-
if (value instanceof Uint8Array && !(value instanceof Float32Array)) {
|
|
44
|
-
if (value.byteLength % 4 !== 0) {
|
|
45
|
-
throw new Error(
|
|
46
|
-
`Vector field "${fieldPath}" has invalid byte length ${value.byteLength} (must be divisible by 4)`
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
const elementCount = value.byteLength / 4;
|
|
50
|
-
const float32 = new Float32Array(elementCount);
|
|
51
|
-
const dataView = new DataView(value.buffer, value.byteOffset, value.byteLength);
|
|
52
|
-
for (let i = 0; i < elementCount; i += 1) {
|
|
53
|
-
float32[i] = dataView.getFloat32(i * 4, true);
|
|
54
|
-
}
|
|
55
|
-
setNestedValue(document, fieldPath, float32);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
var FORBIDDEN_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
60
|
-
function setNestedValue(obj, path, value) {
|
|
61
|
-
if (!path.includes(".")) {
|
|
62
|
-
if (FORBIDDEN_KEYS.has(path)) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
obj[path] = value;
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
const segments = path.split(".");
|
|
69
|
-
let current = obj;
|
|
70
|
-
for (let i = 0; i < segments.length - 1; i += 1) {
|
|
71
|
-
const segment = segments[i];
|
|
72
|
-
if (segment === void 0 || FORBIDDEN_KEYS.has(segment)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
let next = current[segment];
|
|
76
|
-
if (next === null || next === void 0 || typeof next !== "object") {
|
|
77
|
-
next = {};
|
|
78
|
-
current[segment] = next;
|
|
79
|
-
}
|
|
80
|
-
current = next;
|
|
81
|
-
}
|
|
82
|
-
const finalSegment = segments.at(-1);
|
|
83
|
-
if (finalSegment === void 0 || FORBIDDEN_KEYS.has(finalSegment)) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
current[finalSegment] = value;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
5
|
// src/serialization/keyword-segment/types.ts
|
|
90
6
|
var KEYWORD_SEGMENT_PAYLOAD_VERSION = 1;
|
|
91
7
|
var KEYWORD_SEGMENT_ENVELOPE_VERSION = 4;
|
|
@@ -642,4 +558,4 @@ function decodeKeywordSegment(payload, shared) {
|
|
|
642
558
|
return writeRecords === null ? { schema, tombstones, arrays } : { schema, tombstones, arrays, writeRecords };
|
|
643
559
|
}
|
|
644
560
|
|
|
645
|
-
export { KEYWORD_SEGMENT_ENVELOPE_VERSION, KEYWORD_SEGMENT_PAYLOAD_VERSION,
|
|
561
|
+
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,18 +1,20 @@
|
|
|
1
|
-
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-
|
|
2
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { readWholeSectionChecked, checkEverySectionPage, readFileRange, openPagedFile, readCacheOfThisThread, createSectionReader, closePagedFile } from './chunk-C26SPCGQ.mjs';
|
|
2
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-C26SPCGQ.mjs';
|
|
3
|
+
import './chunk-X7TXYUKO.mjs';
|
|
4
|
+
import './chunk-C4FJ3WDY.mjs';
|
|
5
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-V43N6TZO.mjs';
|
|
6
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
7
7
|
import './chunk-ZI2V4VD7.mjs';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import
|
|
8
|
+
import './chunk-EKMGCRSR.mjs';
|
|
9
|
+
import './chunk-5YWB3E2W.mjs';
|
|
10
|
+
import { yieldToEventLoop } from './chunk-N23GL72Q.mjs';
|
|
10
11
|
import './chunk-ML7THVLJ.mjs';
|
|
11
12
|
import './chunk-VI7BQR4U.mjs';
|
|
12
13
|
import './chunk-JPTQZWJQ.mjs';
|
|
13
|
-
import { HEADER_SIZE, crc32, readHeader } from './chunk-
|
|
14
|
+
import { HEADER_SIZE, crc32, readHeader } from './chunk-DUH6QUVU.mjs';
|
|
14
15
|
import './chunk-RA6LSBCM.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
+
import './chunk-MY2XKH22.mjs';
|
|
17
|
+
import './chunk-AI5UI46D.mjs';
|
|
16
18
|
import './chunk-TK63WFXK.mjs';
|
|
17
19
|
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-VLJQW4J6.mjs';
|
|
18
20
|
export { createHNSWIndex, osqBitsOf } from './chunk-VLJQW4J6.mjs';
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { writeMetadataEnvelope, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, readMetadataEnvelope, createSeqOwner, SEGMENT_HEADER_SIZE, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, checkpointLastSeqNo, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, deserializePayloadV2, unpackEnvelopeBytes, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, writeLiveVectors, commitCheckpointManifest, removeCheckpointGarbage, readWalSegments, durableRecordMissing, growPartitionsTo, writeSegmentHeader, VECTOR_FILE_ENVELOPE_VERSION, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, documentsOfPayloadV2, metadataConfigOf, durableMetadataConfigOf, buildEntry, captureWholePartition } from './chunk-
|
|
1
|
+
import { writeMetadataEnvelope, metadataFromConfig, SINGLE_NODE_PRIMARY_TERM, readCurrentManifest, readMetadataEnvelope, createSeqOwner, SEGMENT_HEADER_SIZE, readSegmentManifest, reclaimUnlistedKeys, loadSegmentedCheckpoint, checkpointLastSeqNo, nextSegmentKey, checkSegmentHeader, RECORD_LENGTH_SIZE, MAX_WAL_RECORD_BYTES, FRAME_CRC_SIZE, decodeWalEntry, readCommitMarker, deserializePayloadV2, unpackEnvelopeBytes, checkpointPrimaryTerm, frameRecord, writeCheckpointSegments, partitionContentsOf, writeLiveVectors, commitCheckpointManifest, removeCheckpointGarbage, readWalSegments, durableRecordMissing, growPartitionsTo, writeSegmentHeader, VECTOR_FILE_ENVELOPE_VERSION, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, documentsOfPayloadV2, metadataConfigOf, durableMetadataConfigOf, buildEntry, captureWholePartition } from './chunk-K3IPRX6D.mjs';
|
|
2
2
|
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-G64Q6OJF.mjs';
|
|
3
|
-
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-
|
|
3
|
+
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-BLT4RHCJ.mjs';
|
|
4
4
|
import './chunk-YJHGOJAC.mjs';
|
|
5
5
|
import { sha256 } from './chunk-M3MQE2X7.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-HUCSHDTB.mjs';
|
|
7
|
+
import './chunk-25MTVDYD.mjs';
|
|
8
8
|
import { QUERY_HISTORY_FOLDER } from './chunk-7IGKGWSQ.mjs';
|
|
9
9
|
import './chunk-3I27KXQD.mjs';
|
|
10
10
|
import { nodeThreadId, spawnNodeWorker } from './chunk-HOZW3PKP.mjs';
|
|
11
|
-
import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-
|
|
12
|
-
import
|
|
11
|
+
import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-V43N6TZO.mjs';
|
|
12
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
13
13
|
import { DEFAULT_SEGMENT_MAX_BYTES, DEFAULT_CHECKPOINT_INTERVAL_MS, DEFAULT_CHECKPOINT_MUTATION_THRESHOLD, DEFAULT_COMPACTION_THRESHOLD, DEFAULT_ASYNC_FLUSH_INTERVAL_MS, WRITES_STALL_ABOVE_UNCHECKPOINTED_BYTES, DIRECTORY_LOCK_ATTEMPTS, DIRECTORY_LOCK_SETTLE_MS, WHOLE_PARTITION_LARGEST_DOCUMENT_COUNT, WHOLE_PARTITION_MIN_CHANGED_SHARE, CHECKPOINT_TIMEOUT_RECOVERY_BACKOFF_MS, CHECKPOINT_WORKER_TIMEOUT_MS, CHECKPOINT_WORKER_IDLE_MS, LOG_RECORDS_PER_CHECKPOINT } from './chunk-ZI2V4VD7.mjs';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { restoreVectorFields } from './chunk-EKMGCRSR.mjs';
|
|
15
|
+
import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION, manifestWithinPartitionCount } from './chunk-5YWB3E2W.mjs';
|
|
16
|
+
import { toError, packChecksummedEnvelope, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors } from './chunk-N23GL72Q.mjs';
|
|
16
17
|
import './chunk-ML7THVLJ.mjs';
|
|
17
18
|
import { createRequestId } from './chunk-VI7BQR4U.mjs';
|
|
18
19
|
import './chunk-JPTQZWJQ.mjs';
|
|
19
|
-
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-
|
|
20
|
+
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-DUH6QUVU.mjs';
|
|
20
21
|
import { fnv1a } from './chunk-RA6LSBCM.mjs';
|
|
21
|
-
import './chunk-
|
|
22
|
+
import './chunk-MY2XKH22.mjs';
|
|
23
|
+
import './chunk-AI5UI46D.mjs';
|
|
22
24
|
import './chunk-TK63WFXK.mjs';
|
|
23
25
|
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-WN464PTL.mjs';
|
|
24
26
|
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime, resolveWorkerEntry } from './chunk-XAWNZ4G2.mjs';
|
|
@@ -691,6 +693,40 @@ function parseSegmentStartSeqNo(key, prefix) {
|
|
|
691
693
|
function formatSegmentStart(startSeqNo) {
|
|
692
694
|
return startSeqNo.toString().padStart(16, "0");
|
|
693
695
|
}
|
|
696
|
+
function applyIndexEntry(entry, manager, vectorFieldPaths, vecIndexes, schedulesGraphBuild = true) {
|
|
697
|
+
if (entry.document === null) {
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
const document = decode(entry.document);
|
|
701
|
+
restoreVectorFields(document, vectorFieldPaths);
|
|
702
|
+
const documentId = entry.documentId;
|
|
703
|
+
if (manager.has(documentId)) {
|
|
704
|
+
removeDocumentVectors(documentId, vecIndexes);
|
|
705
|
+
manager.remove(documentId);
|
|
706
|
+
}
|
|
707
|
+
const { partitionDoc, extractedVectors } = prepareDocumentVectors(document, vectorFieldPaths);
|
|
708
|
+
manager.insert(documentId, partitionDoc);
|
|
709
|
+
try {
|
|
710
|
+
insertDocumentVectors(documentId, extractedVectors, vecIndexes, manager.partitionIdOf(documentId));
|
|
711
|
+
} catch (err) {
|
|
712
|
+
manager.remove(documentId);
|
|
713
|
+
throw err;
|
|
714
|
+
}
|
|
715
|
+
if (!schedulesGraphBuild) return;
|
|
716
|
+
for (const fieldPath of extractedVectors.keys()) {
|
|
717
|
+
const vecIndex = vecIndexes.get(fieldPath);
|
|
718
|
+
if (vecIndex) {
|
|
719
|
+
vecIndex.scheduleBuild();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
function applyDeleteEntry(entry, manager, vecIndexes, removedSpellings) {
|
|
724
|
+
removeDocumentVectors(entry.documentId, vecIndexes);
|
|
725
|
+
if (!manager.has(entry.documentId)) {
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
manager.remove(entry.documentId, removedSpellings);
|
|
729
|
+
}
|
|
694
730
|
|
|
695
731
|
// src/persistence/durability/marker-writer.ts
|
|
696
732
|
function markerKey(indexName, partitionId) {
|
|
@@ -1281,7 +1317,8 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1281
1317
|
const store = directoryCheckpointStore(input.directory);
|
|
1282
1318
|
const writeRecords = input.hooks.writeRecords ?? null;
|
|
1283
1319
|
const { indexName } = input;
|
|
1284
|
-
const
|
|
1320
|
+
const storedManifest = await readCurrentManifest(store, input.indexName);
|
|
1321
|
+
const priorManifest = storedManifest === null ? null : manifestWithinPartitionCount(storedManifest, manager.partitionCount);
|
|
1285
1322
|
const textOnDisk = metadata.textStorage === "disk";
|
|
1286
1323
|
const wholePartitionsOf = wholePartitionsWhereMostChanged(manager, {
|
|
1287
1324
|
priorCheckpoint: priorManifest?.checkpoint ?? [],
|
|
@@ -1318,7 +1355,7 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1318
1355
|
}
|
|
1319
1356
|
async function adoptWrittenSegments(input, manager, partitions, changes) {
|
|
1320
1357
|
const { indexName, indexState, hooks } = input;
|
|
1321
|
-
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-
|
|
1358
|
+
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-NDSQLPMQ.mjs');
|
|
1322
1359
|
const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
|
|
1323
1360
|
if (adoption === null) return [];
|
|
1324
1361
|
const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
|
|
@@ -1373,7 +1410,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
|
|
|
1373
1410
|
const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
|
|
1374
1411
|
if (!input.holdsCheckpointFiles()) {
|
|
1375
1412
|
const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
|
|
1376
|
-
const stillRead = metadata.textStorage === "disk" ? (await import('./module-
|
|
1413
|
+
const stillRead = metadata.textStorage === "disk" ? (await import('./module-NDSQLPMQ.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
|
|
1377
1414
|
const keptForSync = await input.keepsCheckpointKey();
|
|
1378
1415
|
await removeCheckpointGarbage(
|
|
1379
1416
|
store,
|
|
@@ -3404,7 +3441,7 @@ var decoder = new TextDecoder();
|
|
|
3404
3441
|
async function countPagedPartition(store, partition) {
|
|
3405
3442
|
const { directory } = store;
|
|
3406
3443
|
if (directory === void 0 || partition.segments.length === 0) return null;
|
|
3407
|
-
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-
|
|
3444
|
+
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-NDSQLPMQ.mjs');
|
|
3408
3445
|
for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
|
|
3409
3446
|
const scans = [];
|
|
3410
3447
|
try {
|
|
@@ -4147,11 +4184,7 @@ function capture(input, prior) {
|
|
|
4147
4184
|
return { targets, plans, documentCount: input.manager.countDocuments(), contents };
|
|
4148
4185
|
}
|
|
4149
4186
|
async function writeCaptured(input, store, prior, captured) {
|
|
4150
|
-
const
|
|
4151
|
-
const priorWithinCount = prior === null ? null : {
|
|
4152
|
-
checkpoint: prior.checkpoint.filter((entry) => entry.partitionId < partitionCount),
|
|
4153
|
-
partitions: prior.partitions.filter((partition) => partition.partitionId < partitionCount)
|
|
4154
|
-
};
|
|
4187
|
+
const priorWithinCount = prior === null ? null : manifestWithinPartitionCount(prior, input.manager.partitionCount);
|
|
4155
4188
|
const written = await writeCheckpointSegments({
|
|
4156
4189
|
store,
|
|
4157
4190
|
metadata: input.metadata,
|
|
@@ -4665,9 +4698,19 @@ function createDurabilityFromTier(tier, wiring) {
|
|
|
4665
4698
|
keepsSyncHistory: (indexName) => wiring.indexRegistry.get(indexName)?.sync?.active === true,
|
|
4666
4699
|
onHistoryMoved(indexName) {
|
|
4667
4700
|
if (wiring.indexRegistry.get(indexName)?.sync?.active !== true) return;
|
|
4668
|
-
import('./retention-
|
|
4701
|
+
import('./retention-TY3L3BFN.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
|
|
4669
4702
|
}
|
|
4670
4703
|
});
|
|
4671
4704
|
}
|
|
4705
|
+
async function reloadIndexAndCopies(orchestrator, durability, indexName) {
|
|
4706
|
+
const manager = durability?.manager;
|
|
4707
|
+
if (manager?.reloadIndex === void 0) return;
|
|
4708
|
+
const wasScaledOut = orchestrator.desyncIndex(indexName);
|
|
4709
|
+
try {
|
|
4710
|
+
await manager.reloadIndex(indexName);
|
|
4711
|
+
} finally {
|
|
4712
|
+
await orchestrator.resyncIndex(indexName, wasScaledOut);
|
|
4713
|
+
}
|
|
4714
|
+
}
|
|
4672
4715
|
|
|
4673
|
-
export { createDurabilityFromTier };
|
|
4716
|
+
export { createDurabilityFromTier, reloadIndexAndCopies };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-
|
|
1
|
+
export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-CXNTHHA7.mjs';
|
|
2
2
|
import './chunk-ATEBYXP6.mjs';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-N23GL72Q.mjs';
|
|
4
4
|
import './chunk-ML7THVLJ.mjs';
|
|
5
5
|
import './chunk-VI7BQR4U.mjs';
|
|
6
6
|
import './chunk-JPTQZWJQ.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-DUH6QUVU.mjs';
|
|
8
8
|
import './chunk-RA6LSBCM.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-MY2XKH22.mjs';
|
|
10
|
+
import './chunk-AI5UI46D.mjs';
|
|
10
11
|
import './chunk-TK63WFXK.mjs';
|
|
11
12
|
import './chunk-XAWNZ4G2.mjs';
|
|
12
13
|
import './chunk-TY7L6OXO.mjs';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { highWord, MAGNITUDE_MASK, INFINITE_HIGH_WORD, lowWord, withLowWord, fromWords, scaleByPowerOfTwo } from './chunk-MY2XKH22.mjs';
|
|
2
|
+
import { MIN_POLYGON_POINTS, MAX_LONGITUDE_DEGREES, ANTIMERIDIAN_SPAN_DEGREES, FULL_TURN_DEGREES, LOCATION_CODE_BITS_PER_AXIS, MAX_LATITUDE_DEGREES, MAX_COVERING_CELLS, EARTH_RADIUS_METERS, DEG_TO_RAD } from './chunk-AI5UI46D.mjs';
|
|
2
3
|
|
|
3
4
|
// src/geo/cells.ts
|
|
4
5
|
var AXIS_CELLS = 2 ** LOCATION_CODE_BITS_PER_AXIS;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-
|
|
1
|
+
export { DOCUMENT_EXPORT_FORMAT, DOCUMENT_EXPORT_VERSION, readDocumentExport } from './chunk-3NLMB5CC.mjs';
|
|
2
2
|
import './chunk-EXQZGUQH.mjs';
|
|
3
3
|
import './chunk-DSXIBE6N.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-C4FJ3WDY.mjs';
|
|
5
|
+
import './chunk-N23GL72Q.mjs';
|
|
6
6
|
import './chunk-ML7THVLJ.mjs';
|
|
7
7
|
import './chunk-VI7BQR4U.mjs';
|
|
8
8
|
import './chunk-JPTQZWJQ.mjs';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-DUH6QUVU.mjs';
|
|
10
10
|
import './chunk-RA6LSBCM.mjs';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-MY2XKH22.mjs';
|
|
12
|
+
import './chunk-AI5UI46D.mjs';
|
|
12
13
|
import './chunk-TK63WFXK.mjs';
|
|
13
14
|
import './chunk-XAWNZ4G2.mjs';
|
|
14
15
|
import './chunk-TY7L6OXO.mjs';
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { actionPartitionsOf, adoptSegmentsOnWorker, bytesThatSegmentsHoldInMemory, checkPagedSegmentFully, closeUnusedSegments, countsAsLatestHolder, createPagedFrozenSegment, isPagedSegmentFile, keysThatSegmentsStillRead, mergePagedWindow, openFileVectorReads, openPagedSegmentScan, openPagedSnapshot, openRewriteSpill, pagedListingOf, pagedPartitionLines, pagedTombstonesFor, prepareDiskAdoption, startReadingOpeningSectionsAhead, swapPreparedPartitions, writePagedSegment } from './chunk-C26SPCGQ.mjs';
|
|
2
|
+
import './chunk-X7TXYUKO.mjs';
|
|
3
|
+
import './chunk-C4FJ3WDY.mjs';
|
|
4
|
+
import './chunk-V43N6TZO.mjs';
|
|
5
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
6
6
|
import './chunk-ZI2V4VD7.mjs';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-EKMGCRSR.mjs';
|
|
8
|
+
import './chunk-5YWB3E2W.mjs';
|
|
9
|
+
import './chunk-N23GL72Q.mjs';
|
|
9
10
|
import './chunk-ML7THVLJ.mjs';
|
|
10
11
|
import './chunk-VI7BQR4U.mjs';
|
|
11
12
|
import './chunk-JPTQZWJQ.mjs';
|
|
12
|
-
import './chunk-
|
|
13
|
+
import './chunk-DUH6QUVU.mjs';
|
|
13
14
|
import './chunk-RA6LSBCM.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
+
import './chunk-MY2XKH22.mjs';
|
|
16
|
+
import './chunk-AI5UI46D.mjs';
|
|
15
17
|
import './chunk-TK63WFXK.mjs';
|
|
16
18
|
import './chunk-U3JOQGWX.mjs';
|
|
17
19
|
import './chunk-XAWNZ4G2.mjs';
|
|
@@ -10,7 +10,6 @@ async function releaseIndexCopies(state, indexName, steps) {
|
|
|
10
10
|
if (pool === null) return reloads;
|
|
11
11
|
pool.removeIndex(indexName);
|
|
12
12
|
state.segmentLedger.delete(indexName);
|
|
13
|
-
state.unbroadcastSegments.delete(indexName);
|
|
14
13
|
await Promise.all(
|
|
15
14
|
pool.executorEntries().map(
|
|
16
15
|
({ executor }) => executor.execute({ type: "dropIndex", indexName, requestId: `restore-release-${indexName}` }).catch((error) => {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { withState, unionOfBans } from './chunk-
|
|
2
|
-
import { RestoredHistory } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { installSuggestionHooks, clearLeftoversOfName } from './chunk-
|
|
1
|
+
import { withState, unionOfBans } from './chunk-HUCSHDTB.mjs';
|
|
2
|
+
import { RestoredHistory } from './chunk-VY5KW3HN.mjs';
|
|
3
|
+
import './chunk-25MTVDYD.mjs';
|
|
4
|
+
import { installSuggestionHooks, clearLeftoversOfName } from './chunk-CXNTHHA7.mjs';
|
|
5
5
|
import './chunk-OEDCEZXJ.mjs';
|
|
6
6
|
import { attachedRuntimeOf } from './chunk-ATEBYXP6.mjs';
|
|
7
7
|
import { BUILD_WRITE_BATCH } from './chunk-7IGKGWSQ.mjs';
|
|
8
|
-
import { emitEngineEvent, removeDocumentBatch } from './chunk-
|
|
8
|
+
import { emitEngineEvent, removeDocumentBatch } from './chunk-N23GL72Q.mjs';
|
|
9
9
|
import './chunk-ML7THVLJ.mjs';
|
|
10
10
|
import './chunk-VI7BQR4U.mjs';
|
|
11
11
|
import './chunk-JPTQZWJQ.mjs';
|
|
12
|
-
import './chunk-
|
|
12
|
+
import './chunk-DUH6QUVU.mjs';
|
|
13
13
|
import './chunk-RA6LSBCM.mjs';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-MY2XKH22.mjs';
|
|
15
|
+
import './chunk-AI5UI46D.mjs';
|
|
15
16
|
import './chunk-TK63WFXK.mjs';
|
|
16
17
|
import './chunk-XAWNZ4G2.mjs';
|
|
17
18
|
import './chunk-TY7L6OXO.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { abandonChangeOf } from './chunk-
|
|
1
|
+
import { abandonChangeOf } from './chunk-UATIJ4KU.mjs';
|
|
2
2
|
import { attachedRuntimeOf } from './chunk-ATEBYXP6.mjs';
|
|
3
3
|
|
|
4
4
|
// src/narsil/restore-queue.ts
|
|
@@ -8,7 +8,7 @@ function suggestionsInPlay(core, ...entries) {
|
|
|
8
8
|
function suggestionHooksLoadedOnUse(core, engine, indexName) {
|
|
9
9
|
let loaded = null;
|
|
10
10
|
const load = () => {
|
|
11
|
-
loaded ??= import('./restore-hooks-
|
|
11
|
+
loaded ??= import('./restore-hooks-IE3GGYHG.mjs').then(
|
|
12
12
|
({ restoreSuggestionHooksOf }) => restoreSuggestionHooksOf(core, engine, indexName)
|
|
13
13
|
);
|
|
14
14
|
return loaded;
|
|
@@ -48,7 +48,7 @@ function restoreDepsOf(core, host, engine, indexName) {
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
async function runRestore(core, host, indexName, data, engine) {
|
|
51
|
-
const { restoreFromSnapshot } = await import('./snapshot-
|
|
51
|
+
const { restoreFromSnapshot } = await import('./snapshot-5FHPPCNZ.mjs');
|
|
52
52
|
await restoreFromSnapshot(indexName, data, restoreDepsOf(core, host, engine, indexName));
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { unrefInterval, DEFAULT_HISTORY_MAX_AGE_MS } from './chunk-G64Q6OJF.mjs';
|
|
2
2
|
import { syncStorageOf } from './chunk-NLWTBAGB.mjs';
|
|
3
3
|
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ELV4OZOI.mjs';
|
|
4
|
-
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEntryHeaders, tarPadding, tarEnd } from './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEntryHeaders, tarPadding, tarEnd } from './chunk-UKOWD2K5.mjs';
|
|
5
|
+
import './chunk-BLT4RHCJ.mjs';
|
|
6
6
|
import { isSyncEpoch } from './chunk-YJHGOJAC.mjs';
|
|
7
7
|
import { oneSyncChangeAtATime } from './chunk-5W3MMTLG.mjs';
|
|
8
8
|
import './chunk-7IGKGWSQ.mjs';
|
|
9
9
|
import './chunk-ZI2V4VD7.mjs';
|
|
10
|
-
import { manifestFileRefs } from './chunk-
|
|
11
|
-
import { emitEngineEvent, encodeIndexConfiguration } from './chunk-
|
|
10
|
+
import { manifestFileRefs } from './chunk-5YWB3E2W.mjs';
|
|
11
|
+
import { emitEngineEvent, encodeIndexConfiguration } from './chunk-N23GL72Q.mjs';
|
|
12
12
|
import { withOpenIndex } from './chunk-ML7THVLJ.mjs';
|
|
13
13
|
import './chunk-VI7BQR4U.mjs';
|
|
14
14
|
import './chunk-JPTQZWJQ.mjs';
|
|
15
|
-
import { openChecksummedEnvelope, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './chunk-
|
|
15
|
+
import { openChecksummedEnvelope, INDEX_CONFIGURATION_ENVELOPE_VERSION } from './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-WN464PTL.mjs';
|
|
20
21
|
import './chunk-XAWNZ4G2.mjs';
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-EXQZGUQH.mjs';
|
|
2
|
-
import { indexMetadataOf, writeCheckpointSegments, writeLiveVectors, commitCheckpointManifest, SINGLE_NODE_PRIMARY_TERM, partitionContentsOf, unpackIndexSnapshotEnvelope, encodeSegmentManifest, loadSegmentedCheckpoint, writeMetadataEnvelope, readVectorFile, readGraphParts, documentsOfPayloadV2, deserializePayloadV1 } from './chunk-
|
|
3
|
-
import { requireRestoreMemory, earlierSnapshotFootprint, storedBytesOfSegments, archiveFootprint } from './chunk-
|
|
2
|
+
import { indexMetadataOf, writeCheckpointSegments, writeLiveVectors, commitCheckpointManifest, SINGLE_NODE_PRIMARY_TERM, partitionContentsOf, unpackIndexSnapshotEnvelope, encodeSegmentManifest, loadSegmentedCheckpoint, writeMetadataEnvelope, readVectorFile, readGraphParts, documentsOfPayloadV2, deserializePayloadV1 } from './chunk-K3IPRX6D.mjs';
|
|
3
|
+
import { requireRestoreMemory, earlierSnapshotFootprint, storedBytesOfSegments, archiveFootprint } from './chunk-UTMHUHUV.mjs';
|
|
4
4
|
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ELV4OZOI.mjs';
|
|
5
5
|
import { createByteReader } from './chunk-DSXIBE6N.mjs';
|
|
6
|
-
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, readSnapshotArchive, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-
|
|
7
|
-
import { decodeSegmentManifest } from './chunk-
|
|
6
|
+
import { ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, readSnapshotArchive, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-UKOWD2K5.mjs';
|
|
7
|
+
import { decodeSegmentManifest } from './chunk-BLT4RHCJ.mjs';
|
|
8
8
|
import { newSyncEpoch } from './chunk-YJHGOJAC.mjs';
|
|
9
|
-
import { storedStateOf } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import { storedStateOf } from './chunk-HUCSHDTB.mjs';
|
|
10
|
+
import './chunk-25MTVDYD.mjs';
|
|
11
11
|
import { oneSyncChangeAtATime } from './chunk-5W3MMTLG.mjs';
|
|
12
12
|
import './chunk-7IGKGWSQ.mjs';
|
|
13
13
|
import { vectorsPerFile } from './chunk-U4YDIBUT.mjs';
|
|
14
14
|
import './chunk-3I27KXQD.mjs';
|
|
15
15
|
import './chunk-OIZS5KIX.mjs';
|
|
16
|
-
import { readSegmentFile } from './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import { readSegmentFile } from './chunk-V43N6TZO.mjs';
|
|
17
|
+
import './chunk-Y6IBAUNO.mjs';
|
|
18
18
|
import { DEFAULT_COMPACTION_THRESHOLD } from './chunk-ZI2V4VD7.mjs';
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
19
|
+
import './chunk-EKMGCRSR.mjs';
|
|
20
|
+
import { manifestKey, manifestFileRefs } from './chunk-5YWB3E2W.mjs';
|
|
21
|
+
import { encodeIndexConfiguration, ARRAY_POSITION_GAP, validatePatternValueLimit, requireSurfaceFormsForPartialFields, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, prepareStoredSynonyms, loadSchemaCodeFor, decodeEveryStoredDocument, isCompositePartition, arrayPositionsAreStale, insertDocumentVectors } from './chunk-N23GL72Q.mjs';
|
|
21
22
|
import { emitSyncChange } from './chunk-ML7THVLJ.mjs';
|
|
22
23
|
import './chunk-VI7BQR4U.mjs';
|
|
23
24
|
import './chunk-JPTQZWJQ.mjs';
|
|
24
|
-
import { hasNrslMagic, HEADER_SIZE, readHeader, getLanguage, validateSchema, resolveIndexAnalysis, decodeIndexConfiguration, flattenSchema } from './chunk-
|
|
25
|
+
import { hasNrslMagic, HEADER_SIZE, readHeader, raiseEarlierReleaseGraphSetting, getLanguage, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, resolveIndexAnalysis, decodeIndexConfiguration, flattenSchema, parseVectorDimension } from './chunk-DUH6QUVU.mjs';
|
|
25
26
|
import './chunk-RA6LSBCM.mjs';
|
|
26
|
-
import './chunk-
|
|
27
|
+
import './chunk-MY2XKH22.mjs';
|
|
28
|
+
import './chunk-AI5UI46D.mjs';
|
|
27
29
|
import './chunk-TK63WFXK.mjs';
|
|
28
30
|
import './chunk-VLJQW4J6.mjs';
|
|
29
31
|
import { decodeVectorIndexParts, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors } from './chunk-WN464PTL.mjs';
|
|
@@ -291,7 +293,7 @@ async function validateStagedCheckpoint(store, manifest) {
|
|
|
291
293
|
for (const ref of partition.segments) {
|
|
292
294
|
const { directory } = store;
|
|
293
295
|
if (directory !== void 0) {
|
|
294
|
-
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-
|
|
296
|
+
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-NDSQLPMQ.mjs');
|
|
295
297
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
296
298
|
requireSchemaOfManifest(ref.key, await checkPagedSegmentFully(directory, ref), manifest);
|
|
297
299
|
continue;
|
|
@@ -681,7 +683,7 @@ async function stageArchive(indexName, reader, staging, deps, staged) {
|
|
|
681
683
|
if (manifest === null) missingPart("manifest");
|
|
682
684
|
const { directory } = staging;
|
|
683
685
|
if (keepsTextOnDisk(prepared, staging) && directory !== void 0) {
|
|
684
|
-
const { bytesThatSegmentsHoldInMemory } = await import('./module-
|
|
686
|
+
const { bytesThatSegmentsHoldInMemory } = await import('./module-NDSQLPMQ.mjs');
|
|
685
687
|
const replacesIndex = deps.indexRegistry.has(indexName);
|
|
686
688
|
const segmentBytes = await bytesThatSegmentsHoldInMemory(directory, manifest);
|
|
687
689
|
requireRestoreMemory(indexName, archiveFootprint(prepared, manifest, replacesIndex, segmentBytes), replacesIndex);
|