@delali/narsil 0.3.1-next.154 → 0.3.1-next.156
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/NOTICE +45 -0
- package/README.md +1 -0
- package/dist/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/{analysis-change-4GCRVRBW.mjs → analysis-change-5BQOQ4BF.mjs} +35 -28
- package/dist/{react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs → analysis-change-entry-TXX6JSMX.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-IXWPXXJJ.mjs → analysis-change-435CUEPZ.mjs} +32 -12
- package/dist/{analysis-change-entry-KYGSXW4K.mjs → browser/analysis-change-entry-HZXKPPGV.mjs} +1 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
- package/dist/browser/{chunk-4PD752F6.mjs → chunk-23XRXIBW.mjs} +1 -1
- package/dist/browser/{chunk-J433A7P3.mjs → chunk-2CFI5VVV.mjs} +5 -5
- package/dist/{react-native/chunks/chunk-3XKMRNRE.mjs → browser/chunk-2TI4SSUP.mjs} +27 -10
- package/dist/browser/chunk-3SSRJMFN.mjs +100 -0
- package/dist/browser/{chunk-2SHAKW2Z.mjs → chunk-3V7DNNZL.mjs} +515 -733
- package/dist/browser/{chunk-C4KS2QNF.mjs → chunk-4NGKC4H4.mjs} +9 -9
- package/dist/browser/{chunk-XRV72TJD.mjs → chunk-6LWDPLTB.mjs} +2 -2
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/{chunk-VCOYGVP7.mjs → chunk-7U3WVJUP.mjs} +3 -3
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/browser/chunk-BHFQATSC.mjs +432 -0
- package/dist/browser/chunk-CRE3G7F3.mjs +1007 -0
- package/dist/browser/{chunk-QXTPSX2H.mjs → chunk-EA63E3D2.mjs} +7 -7
- package/dist/{react-native/chunks/chunk-DCKMICOB.mjs → browser/chunk-EXQZGUQH.mjs} +1 -1
- package/dist/browser/{chunk-ML6HY7T7.mjs → chunk-G64Q6OJF.mjs} +1 -1
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/{chunk-EUNBNLKM.mjs → chunk-IZXVW2ZJ.mjs} +5 -5
- package/dist/browser/{chunk-G7LUMBSG.mjs → chunk-K4Q6KX3R.mjs} +30 -20
- package/dist/browser/{chunk-H6QFBMVE.mjs → chunk-KZWSX6BH.mjs} +3 -3
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/chunk-MGI4BCXC.mjs +63 -0
- package/dist/browser/chunk-MOG4OVDK.mjs +51 -0
- package/dist/browser/{chunk-W5X2UFWQ.mjs → chunk-NLWTBAGB.mjs} +12 -3
- package/dist/browser/{chunk-AYY6PIKL.mjs → chunk-NQAME3RK.mjs} +2 -2
- package/dist/browser/{chunk-7MEYN7V6.mjs → chunk-NXQG7DRA.mjs} +29 -14
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/{chunk-KUZKUONM.mjs → browser/chunk-SRMZXJSL.mjs} +1 -0
- package/dist/browser/chunk-SSTPBZZX.mjs +1106 -0
- package/dist/browser/{chunk-7TTWXUH6.mjs → chunk-STOWQFT3.mjs} +3 -2
- package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
- package/dist/browser/{chunk-SJB6VIZG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/{chunk-AJ4HHOVT.mjs → chunk-U4YDIBUT.mjs} +4 -4
- package/dist/browser/{chunk-2FX6ROWR.mjs → chunk-VLJQW4J6.mjs} +2986 -2986
- package/dist/{react-native/chunks/chunk-3O57C2ZO.mjs → browser/chunk-WI4MR75E.mjs} +2 -2
- package/dist/browser/{chunk-3U3QR5YP.mjs → chunk-WN464PTL.mjs} +2 -2
- package/dist/browser/{chunk-U2E3HMYW.mjs → chunk-XAWNZ4G2.mjs} +11 -11
- package/dist/browser/{cold-module-VTUGDYNY.mjs → cold-module-2EHCIV4K.mjs} +20 -18
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-GL4A7KDV.mjs → durability-wiring-A7BVG2DW.mjs} +50 -153
- package/dist/browser/engine-hooks-E4UD67JD.mjs +17 -0
- package/dist/browser/geo-index-HHWGMNIS.mjs +1386 -0
- package/dist/browser/import-DXYB6756.mjs +19 -0
- package/dist/browser/{methods-LMUTS7OI.mjs → methods-KTQCSIN4.mjs} +3 -3
- package/dist/browser/{module-M4JNBV6V.mjs → module-NIYMEA5R.mjs} +16 -14
- package/dist/browser/{module-EC3FYW7N.mjs → module-TCT66FWA.mjs} +10 -9
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-NPYUVX75.mjs → phrase-module-HAT3TLZN.mjs} +2 -2
- package/dist/browser/{pool-WCGDZHJP.mjs → pool-3JLET5RO.mjs} +1 -1
- package/dist/browser/restore-hooks-YPN4ZFCY.mjs +114 -0
- package/dist/browser/restore-queue-G3RQGL3Y.mjs +55 -0
- package/dist/browser/{retention-6QMRS5VK.mjs → retention-ZWVMNC3Q.mjs} +18 -15
- package/dist/browser/{runtime-3EW2AGB6.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-DN3CRVUQ.mjs → snapshot-VEQNIE6C.mjs} +71 -36
- package/dist/browser/start-BM442C6R.mjs +25 -0
- package/dist/browser/{write-WAWAFGKQ.mjs → write-2EVMZWDE.mjs} +16 -14
- package/dist/{capabilities-B3Brs1Rc.d.ts → capabilities-Da4ywVVl.d.ts} +35 -3
- package/dist/{chunk-K4B7OH65.mjs → chunk-25KDNIZZ.mjs} +2 -2
- package/dist/{chunk-O43Z4MS6.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/chunk-2UV4QBHW.mjs +1092 -0
- package/dist/{chunk-3Y3J4V2R.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/{chunk-TRISKD4Q.mjs → chunk-3HYC4JRF.mjs} +2 -2
- package/dist/{chunk-HVYICDY3.mjs → chunk-3OH67G7R.mjs} +1 -1
- package/dist/{chunk-PFKM7VNZ.mjs → chunk-46KY2PJD.mjs} +30 -11
- package/dist/{chunk-IJU7LL7D.mjs → chunk-4KKXNJM6.mjs} +5 -5
- package/dist/{chunk-IQ4R2I6N.mjs → chunk-5FLRXF73.mjs} +5 -1
- package/dist/{chunk-BPSKLCS7.mjs → chunk-5VV4R6P7.mjs} +3017 -3017
- package/dist/chunk-5YNRKI2C.mjs +81 -0
- package/dist/chunk-6HTGOXIK.mjs +875 -0
- package/dist/{chunk-7HCZWC7B.mjs → chunk-6I6AYAXS.mjs} +50 -8
- package/dist/{chunk-C6ASEFZI.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{chunk-DVWYODEB.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/chunk-7GFE3PEY.mjs +40 -0
- package/dist/{chunk-QKZHLADX.mjs → chunk-7LXHHCXZ.mjs} +28 -19
- package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
- package/dist/{react-native/chunks/chunk-7GWPJDOA.mjs → chunk-A4L7YTKX.mjs} +53 -90
- package/dist/{chunk-Z3TNWCI5.mjs → chunk-BU4SAIC4.mjs} +3 -3
- package/dist/chunk-BWZ3P4MU.mjs +20 -0
- package/dist/{chunk-OKX2BBNW.mjs → chunk-CITFCZKF.mjs} +5 -4
- package/dist/{chunk-4HWZV5MK.mjs → chunk-CSLGFPFQ.mjs} +5 -5
- package/dist/chunk-DP5C7YFQ.mjs +543 -0
- package/dist/{chunk-RVKFI3A2.mjs → chunk-DWEPMFJE.mjs} +11 -8
- package/dist/{chunk-LSM2YTKM.mjs → chunk-EFBDHH5P.mjs} +87 -144
- package/dist/{chunk-NZMAXR2S.mjs → chunk-FAKFUDZZ.mjs} +121 -11
- package/dist/chunk-FB6463IN.mjs +1499 -0
- package/dist/{chunk-REL7LFLR.mjs → chunk-FCJ553HS.mjs} +3 -3
- package/dist/{chunk-MMEMEUOO.mjs → chunk-FJKKCV4D.mjs} +2 -2
- package/dist/{chunk-K7KLL263.mjs → chunk-FNGAM5B7.mjs} +14 -13
- package/dist/{chunk-DMQPFLGI.mjs → chunk-FRBFVQFN.mjs} +6 -5
- package/dist/{chunk-IBNLW3AV.mjs → chunk-FYOVBEMM.mjs} +20 -6
- package/dist/chunk-G6HRSGOU.mjs +74 -0
- package/dist/{chunk-USR7FQRZ.mjs → chunk-GH4WQ22V.mjs} +2 -2
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/{chunk-VREK3MYG.mjs → chunk-HFPMMRQT.mjs} +3 -3
- package/dist/{chunk-MLHNSAPK.mjs → chunk-HHBUCIUY.mjs} +3 -3
- package/dist/{chunk-YROWNOMH.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-ECX4SGX6.mjs → chunk-I2KPOLOZ.mjs} +9 -9
- package/dist/{chunk-TV2L3BN7.mjs → chunk-I53G4JAU.mjs} +266 -265
- package/dist/{chunk-3A5KI24C.mjs → chunk-I54T6CQP.mjs} +1 -1
- package/dist/{chunk-NTZOXVUZ.mjs → chunk-I5B7RXU7.mjs} +93 -24
- package/dist/{chunk-YBJDOA2T.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
- package/dist/{chunk-X6NSJYQ3.mjs → chunk-JDJBQLRO.mjs} +13 -13
- package/dist/{chunk-MMBEANB2.mjs → chunk-JWRUUCWD.mjs} +3 -3
- package/dist/{chunk-AO2FAYIZ.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-JFNKIBDT.mjs → chunk-K5QFDYST.mjs} +2 -2
- package/dist/{chunk-C73JLU4E.mjs → chunk-KF4EXSM4.mjs} +2 -2
- package/dist/{chunk-WCBA2LVZ.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/{chunk-7QUGDVFC.mjs → chunk-KJ3RTZDJ.mjs} +1 -1
- package/dist/{chunk-HVKXNBFL.mjs → chunk-KKQC526K.mjs} +20 -12
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-VMXSVVXG.mjs → chunk-L6V6BST3.mjs} +9 -22
- package/dist/{chunk-URPCYQVJ.mjs → chunk-LHKOSI2J.mjs} +1 -1
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/{react-native/chunks/chunk-CUNGPR5R.mjs → chunk-MP7ABPTD.mjs} +1 -0
- package/dist/{chunk-5KGYQT6W.mjs → chunk-MQOJIO5B.mjs} +26 -9
- package/dist/{chunk-Q3TCTQCC.mjs → chunk-NF4DT3IH.mjs} +1 -1
- package/dist/{chunk-3OFU3NJT.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/chunk-ORN5BLL7.mjs +11 -0
- package/dist/{chunk-HWEDFLB7.mjs → chunk-P5ZI2P2W.mjs} +126 -1701
- package/dist/{chunk-466PYR4P.mjs → chunk-PWC4VB3Q.mjs} +2 -2
- package/dist/{chunk-B7S6YEBP.mjs → chunk-QJVOLKU6.mjs} +12 -3
- package/dist/{chunk-KCUIFVVW.mjs → chunk-QOW2JPUI.mjs} +9 -9
- package/dist/chunk-RDXO6JST.mjs +63 -0
- package/dist/chunk-RLOES5SX.mjs +31 -0
- package/dist/{chunk-YPUEV6ZC.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/{chunk-JCLTESFN.mjs → chunk-RZWWB2XR.mjs} +1 -1
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/chunk-SA5LOGO3.mjs +470 -0
- package/dist/chunk-SQJWAIF4.mjs +12 -0
- package/dist/{chunk-YTJCGKM4.mjs → chunk-TBC3XUL2.mjs} +29 -6
- package/dist/chunk-TDIK6NTV.mjs +10 -0
- package/dist/chunk-TGS5UXBE.mjs +216 -0
- package/dist/{chunk-CP5RRPJR.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-7NTMUDC5.mjs → chunk-TZ3355VS.mjs} +5 -5
- package/dist/{chunk-Q7MS6P2J.mjs → chunk-TZTRKM33.mjs} +2 -2
- package/dist/{chunk-4UMZ7KQL.mjs → chunk-U55XJEIG.mjs} +2 -1
- package/dist/{chunk-S2N75OTN.mjs → chunk-UHICS3JI.mjs} +1 -1
- package/dist/{chunk-5FUOVJKG.mjs → chunk-VTTRFF2C.mjs} +32 -19
- package/dist/{chunk-62G63NMH.mjs → chunk-WX4LAO6M.mjs} +4 -4
- package/dist/{chunk-LTUGDMV4.mjs → chunk-WZ7YV54N.mjs} +1 -1
- package/dist/chunk-XAXKV65G.mjs +72 -0
- package/dist/chunk-XXHN7J46.mjs +101 -0
- package/dist/{chunk-PGVPE7GJ.mjs → chunk-YEKL4JBK.mjs} +1 -1
- package/dist/chunk-YTWZVGCB.mjs +382 -0
- package/dist/chunk-Z2KAFCRT.mjs +30 -0
- package/dist/{chunk-LKUE5GXS.mjs → chunk-ZKP7G7TV.mjs} +2 -2
- package/dist/{client-Df76GNKm.d.ts → client-DRv7UVeY.d.ts} +123 -11
- package/dist/client.d.ts +9 -8
- package/dist/client.mjs +65 -3
- package/dist/{cold-module-YLWMTTZG.mjs → cold-module-6MO2XJF2.mjs} +45 -39
- package/dist/{config-B8DP2VwR.d.ts → config-CoSig5Ox.d.ts} +22 -3
- package/dist/{config-05G_hy-1.d.ts → config-DMwffLKn.d.ts} +20 -5
- package/dist/direct-executor-FTMYY3TI.mjs +34 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +3 -3
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- package/dist/distribution/transport/grpc.mjs +4 -4
- package/dist/distribution/transport/in-memory.mjs +2 -2
- package/dist/distribution/transport/tcp.mjs +3 -3
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +6799 -5939
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-RHLXDIVF.mjs → durability-wiring-VIF5MOSY.mjs} +82 -179
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{sync-uXR7MmM7.d.ts → engine-CFxPYqEk.d.ts} +702 -2
- package/dist/engine-hooks-EGUGNZYE.mjs +54 -0
- package/dist/geo-index-MRH5JMIR.mjs +1387 -0
- package/dist/import-XKDPJQDP.mjs +56 -0
- package/dist/{index-nRqDM6uS.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +9 -7
- package/dist/index.d.ts +134 -9
- package/dist/index.mjs +33 -26
- package/dist/index.react-native.mjs +20 -17
- package/dist/invalidation/filesystem.mjs +2 -2
- package/dist/{long-query-thread-EMYTGSJP.mjs → long-query-thread-YA4IAYSY.mjs} +34 -28
- package/dist/{methods-ABM5ELBR.mjs → methods-7IOINERF.mjs} +3 -3
- package/dist/{module-MG7JMV2U.mjs → module-FQ4JWNQJ.mjs} +41 -34
- package/dist/{module-3OMJZUFT.mjs → module-N55W4Q5C.mjs} +14 -14
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-UOLHOEZJ.mjs → paged-partition-archive-PXW5XAYU.mjs} +48 -38
- package/dist/partial-words.mjs +11 -9
- package/dist/pattern.mjs +6 -5
- package/dist/persistence/durability/checkpoint-worker.d.ts +8 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +44 -35
- package/dist/{phrase-module-O3MDRQXP.mjs → phrase-module-XW5MKWP5.mjs} +4 -3
- package/dist/{pool-CQXYPFLG.mjs → pool-Y4A46T36.mjs} +1 -1
- package/dist/query-suggestions/merge-worker.d.ts +55 -0
- package/dist/query-suggestions/merge-worker.mjs +88 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +247 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +69 -0
- package/dist/react-native/chunks/{analysis-change-EAYO3Y6Q.mjs → analysis-change-LT5QBQ3H.mjs} +43 -22
- package/dist/{browser/analysis-change-entry-FCSHFQSS.mjs → react-native/chunks/analysis-change-entry-SCVWK6OU.mjs} +1 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
- package/dist/{chunk-ZIFJXCKA.mjs → react-native/chunks/chunk-2PRHILX3.mjs} +54 -20
- package/dist/react-native/chunks/{chunk-VQSKZ3EZ.mjs → chunk-3JWDECAZ.mjs} +8 -8
- package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-75VWIY35.mjs → chunk-4DII3ZSM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-NKIZX26F.mjs → chunk-4J74WHQM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-UWDNZDWK.mjs → chunk-4JYO3JD2.mjs} +6 -6
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +17 -0
- package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +9 -0
- package/dist/react-native/chunks/{chunk-SJWDBRNP.mjs → chunk-6WA3C3DV.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-OQQVRWZ2.mjs → chunk-C5G6TJ7A.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-RVAEBN74.mjs → chunk-CKNRFDTZ.mjs} +1 -1
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/react-native/chunks/{chunk-O32RB3BL.mjs → chunk-DNXOMPAQ.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-YBEW6YTR.mjs → chunk-DVDX4SDR.mjs} +2 -2
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
- package/dist/{browser/chunk-MYITLCHT.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +1 -0
- package/dist/react-native/chunks/{chunk-PPEPTUVV.mjs → chunk-EJ33LCHV.mjs} +29 -6
- package/dist/react-native/chunks/{chunk-RYMDHGL4.mjs → chunk-ENLMYKSX.mjs} +3045 -3075
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
- package/dist/react-native/chunks/{chunk-JV6VQY2S.mjs → chunk-FTZHMRD2.mjs} +2 -1
- package/dist/react-native/chunks/{chunk-YHKZSLOC.mjs → chunk-G43IPIDG.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-AUT7PMA4.mjs → chunk-GXX3DQXP.mjs} +8 -22
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-DH3TVWWK.mjs → chunk-IYNT75CE.mjs} +12 -3
- package/dist/react-native/chunks/chunk-KV46CT4D.mjs +1007 -0
- package/dist/{browser/chunk-ZPTA75ZC.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-63YSZOXB.mjs → chunk-MIP4SOR6.mjs} +1480 -826
- package/dist/react-native/chunks/{chunk-ZBSWRSBG.mjs → chunk-MJDQU5MW.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GFYFQLJD.mjs → chunk-MUWD2H2S.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-IOY2SM2P.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/{browser/chunk-TTD27VXX.mjs → react-native/chunks/chunk-NB3LP33V.mjs} +27 -10
- package/dist/react-native/chunks/{chunk-I5PGWQJF.mjs → chunk-PDRWWPKV.mjs} +33 -24
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/{chunk-2CGSQM4O.mjs → chunk-POPDAGH6.mjs} +13 -13
- package/dist/react-native/chunks/{chunk-NP7DD4G5.mjs → chunk-QUKQNI3H.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-EH5CFV6Z.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-JX2RIAXH.mjs → chunk-SK2PWYDH.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-ZYDKJXQJ.mjs → chunk-SUPXRTMD.mjs} +1 -1
- package/dist/react-native/chunks/chunk-TP6KCKER.mjs +63 -0
- package/dist/react-native/chunks/{chunk-JPAJWO6D.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/chunk-UQ4OAXKU.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-VVFYOADG.mjs → chunk-VWUDIOT6.mjs} +6 -6
- package/dist/{browser/chunk-SIR3LMTV.mjs → react-native/chunks/chunk-WBYQRHDY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-C2H2QQFW.mjs → chunk-YH7QY657.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-NCJS3WIY.mjs → chunk-YZW4CHM6.mjs} +51 -12
- package/dist/react-native/chunks/chunk-ZLWVW734.mjs +100 -0
- package/dist/react-native/chunks/chunk-ZXZFN7FI.mjs +432 -0
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-TJL6AFAD.mjs → cold-module-KVZYUGRY.mjs} +31 -28
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-RRDYJLLM.mjs → durability-wiring-34OYO32E.mjs} +60 -162
- package/dist/react-native/chunks/engine-hooks-M7JV46NH.mjs +30 -0
- package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
- package/dist/react-native/chunks/import-H6AQREWI.mjs +32 -0
- package/dist/react-native/chunks/{methods-X6F36SJE.mjs → methods-6W5U4C3H.mjs} +3 -3
- package/dist/react-native/chunks/module-LBZPGOWH.mjs +36 -0
- package/dist/react-native/chunks/{module-S4DKSWMF.mjs → module-TTEVPRCW.mjs} +14 -13
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-JZ37TB7N.mjs → phrase-module-QK22HSQ2.mjs} +2 -2
- package/dist/react-native/chunks/{pool-RTGXJXPU.mjs → pool-JR3NJCAF.mjs} +1 -1
- package/dist/react-native/chunks/restore-hooks-IBGIY3DR.mjs +127 -0
- package/dist/react-native/chunks/restore-queue-ZZX54AH7.mjs +55 -0
- package/dist/react-native/chunks/{retention-PPCTP2VY.mjs → retention-EW4TTDFB.mjs} +29 -25
- package/dist/react-native/chunks/{runtime-KUATOLYB.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-ZBIEOZTZ.mjs → snapshot-REYVIN3X.mjs} +80 -44
- package/dist/react-native/chunks/start-BQK6KN3R.mjs +38 -0
- package/dist/react-native/chunks/{write-2W4FTX7J.mjs → write-FQAYCZF5.mjs} +27 -24
- package/dist/react-native/partial-words.mjs +11 -9
- package/dist/react-native/pattern.mjs +4 -4
- package/dist/react-native/query-suggestions.mjs +260 -0
- package/dist/react-native/sync.mjs +78 -15
- package/dist/react-native/synonyms.mjs +95 -27
- package/dist/react.d.ts +11 -11
- package/dist/react.mjs +1 -0
- package/dist/{rerank-IZOB6NII.mjs → rerank-MQ37IYRV.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-hooks-CDERDEF4.mjs +153 -0
- package/dist/restore-queue-7NNSTROA.mjs +55 -0
- package/dist/retention-QSVBBNRM.mjs +66 -0
- package/dist/{runtime-UZOC3NPY.mjs → runtime-COIUORCN.mjs} +5 -5
- package/dist/{schema-DDauvDOv.d.ts → schema-Jwt928nJ.d.ts} +1 -1
- package/dist/server.d.ts +108 -12
- package/dist/server.mjs +303 -50
- package/dist/{snapshot-NFX2EYN2.mjs → snapshot-RH4NSKIZ.mjs} +98 -61
- package/dist/start-MCKCOGIW.mjs +66 -0
- package/dist/sync/filesystem.d.ts +4 -4
- package/dist/sync/filesystem.mjs +6 -6
- package/dist/sync/indexeddb.d.ts +4 -4
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +74 -11
- package/dist/sync.d.ts +5 -5
- package/dist/sync.mjs +78 -16
- package/dist/synonyms.mjs +9 -8
- package/dist/{tasks-BShx8pdK.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/thread-O4SBJJJS.mjs +50 -0
- package/dist/{types-SnO7_tAI.d.ts → types-BZCGjfLn.d.ts} +2 -3
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +8 -8
- package/dist/workers/entry.mjs +19 -8
- package/dist/{write-FGB62BHQ.mjs → write-3FK7NG3Y.mjs} +40 -33
- package/openapi.json +798 -7
- package/package.json +32 -8
- package/dist/browser/import-YI5GNB4H.mjs +0 -17
- package/dist/browser/operations-WVYLF72Q.mjs +0 -5
- package/dist/browser/restore-queue-TYIGDL5L.mjs +0 -41
- package/dist/chunk-37IVJLP6.mjs +0 -44
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/direct-executor-FI5GJHWX.mjs +0 -29
- package/dist/engine-DYu-e0oR.d.ts +0 -674
- package/dist/import-SRBNC6TE.mjs +0 -49
- package/dist/operations-PGOAY2KS.mjs +0 -5
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
- package/dist/react-native/chunks/gzip.react-native-DNB5YNFA.mjs +0 -3
- package/dist/react-native/chunks/import-JYBMEJPQ.mjs +0 -29
- package/dist/react-native/chunks/module-QT5HZAY4.mjs +0 -33
- package/dist/react-native/chunks/operations-RYKTSZQA.mjs +0 -5
- package/dist/react-native/chunks/restore-queue-ZBVIKJWI.mjs +0 -41
- package/dist/restore-queue-COI2GSSK.mjs +0 -41
- package/dist/retention-55WA7GPU.mjs +0 -58
- package/dist/thread-P2G2FWM2.mjs +0 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { NUMBER_TAG, DATE_TAG, BYTES_TAG, encodeBase64, startsWithTagPrefix, OBJECT_TAG, MILLISECONDS_PER_SECOND, NANOSECONDS_PER_MILLISECOND } from './chunk-6LWDPLTB.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/engine/export/json-line.ts
|
|
5
5
|
function refuse(path, kind, docId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MAX_M, EARLIER_RELEASE_MIN_M, MIN_M } from './chunk-
|
|
2
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { MAX_M, EARLIER_RELEASE_MIN_M, MIN_M } from './chunk-NXQG7DRA.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/vector/vector-index/dead-bits.ts
|
|
5
5
|
var NO_LIVE_VECTOR_AT_POSITION = -1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
1
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
2
2
|
|
|
3
3
|
// src/runtime/turn-budget.browser.ts
|
|
4
4
|
var turnsAreBudgeted = true;
|
|
@@ -69,16 +69,6 @@ function markSimdUnavailable() {
|
|
|
69
69
|
simdAvailable = false;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// src/vector/osq/constants.ts
|
|
73
|
-
var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
|
|
74
|
-
var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
|
|
75
|
-
var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
|
|
76
|
-
var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
|
|
77
|
-
var OSQ_LAMBDA = 0.1;
|
|
78
|
-
var OSQ_REFINE_ROUNDS = 5;
|
|
79
|
-
var OSQ_REFINE_TOLERANCE = 1e-8;
|
|
80
|
-
var MIN_OVERSAMPLE = 1;
|
|
81
|
-
|
|
82
72
|
// src/workers/thread-slot.ts
|
|
83
73
|
var goneThreadSlots = /* @__PURE__ */ new Set();
|
|
84
74
|
function threadSlotOfWorker(workerId) {
|
|
@@ -94,6 +84,16 @@ function threadSlotGone(threadSlot) {
|
|
|
94
84
|
return goneThreadSlots.has(threadSlot);
|
|
95
85
|
}
|
|
96
86
|
|
|
87
|
+
// src/vector/osq/constants.ts
|
|
88
|
+
var OSQ_GRID = { 1: 0.798, 2: 1.493, 4: 2.514, 8: 3.922 };
|
|
89
|
+
var OSQ_STEPS = { 1: 1, 2: 3, 4: 15, 8: 255 };
|
|
90
|
+
var OSQ_QUERY_BITS = { 1: 4, 2: 4, 4: 4, 8: 8 };
|
|
91
|
+
var OSQ_PLACEMENT_QUERY_BITS = { 1: 4, 2: 4, 4: 8, 8: 8 };
|
|
92
|
+
var OSQ_LAMBDA = 0.1;
|
|
93
|
+
var OSQ_REFINE_ROUNDS = 5;
|
|
94
|
+
var OSQ_REFINE_TOLERANCE = 1e-8;
|
|
95
|
+
var MIN_OVERSAMPLE = 1;
|
|
96
|
+
|
|
97
97
|
// src/core/doc-id-tables/plain.ts
|
|
98
98
|
function createDocIdMap() {
|
|
99
99
|
return /* @__PURE__ */ new Map();
|
|
@@ -1,28 +1,30 @@
|
|
|
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-4NGKC4H4.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-4NGKC4H4.mjs';
|
|
3
|
+
import './chunk-WI4MR75E.mjs';
|
|
4
|
+
import './chunk-6LWDPLTB.mjs';
|
|
5
|
+
import { COLD_LOAD_WAIT_WITHOUT_SEARCH_MS, loadFailed, decodeSections, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, COLD_WALK_NODES_READ_AHEAD } from './chunk-EA63E3D2.mjs';
|
|
6
|
+
import './chunk-KZWSX6BH.mjs';
|
|
7
7
|
import './chunk-ZI2V4VD7.mjs';
|
|
8
|
-
import
|
|
8
|
+
import './chunk-23XRXIBW.mjs';
|
|
9
|
+
import { yieldToEventLoop } from './chunk-3V7DNNZL.mjs';
|
|
10
|
+
import './chunk-ML7THVLJ.mjs';
|
|
9
11
|
import './chunk-VI7BQR4U.mjs';
|
|
10
12
|
import './chunk-JPTQZWJQ.mjs';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import { HEADER_SIZE, crc32, readHeader } from './chunk-7TTWXUH6.mjs';
|
|
13
|
+
import { HEADER_SIZE, crc32, readHeader } from './chunk-STOWQFT3.mjs';
|
|
13
14
|
import './chunk-RA6LSBCM.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
15
|
+
import './chunk-MOG4OVDK.mjs';
|
|
16
|
+
import './chunk-TK63WFXK.mjs';
|
|
17
|
+
import { magnitude, defaultRescoreDepth, defaultEfSearch, computeCodeBlockLayout, toScore, osqQuantize, createOsqScratch, scalarQueryProducts, osqEstimate, osqDistance, toDistance } from './chunk-VLJQW4J6.mjs';
|
|
18
|
+
export { createHNSWIndex, osqBitsOf } from './chunk-VLJQW4J6.mjs';
|
|
19
|
+
import './chunk-U3JOQGWX.mjs';
|
|
20
|
+
import { isDead, VECTOR_FILE_PAYLOAD_VERSION, bytesToVectors, stageQueryLevels, readTrailer } from './chunk-WN464PTL.mjs';
|
|
21
|
+
import './chunk-XAWNZ4G2.mjs';
|
|
20
22
|
import './chunk-TY7L6OXO.mjs';
|
|
21
23
|
import './chunk-4RD3AFSB.mjs';
|
|
22
|
-
import { compareCodePoints } from './chunk-
|
|
24
|
+
import { compareCodePoints } from './chunk-NXQG7DRA.mjs';
|
|
25
|
+
import './chunk-GPPOG6PT.mjs';
|
|
23
26
|
import './chunk-WXLBZJMT.mjs';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import { NarsilError, ErrorCodes } from './chunk-MYITLCHT.mjs';
|
|
27
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
26
28
|
import { decode, decodeMulti } from '@msgpack/msgpack';
|
|
27
29
|
|
|
28
30
|
// src/persistence/paged/cold-search.ts
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { MAX_FILE_BYTES } from './chunk-GPPOG6PT.mjs';
|
|
2
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
3
|
+
|
|
4
|
+
// src/engine/durability-config.ts
|
|
5
|
+
var WAL_ONLY_FIELDS = ["directory", "mode", "flushIntervalMs", "segmentMaxBytes", "compactionThreshold"];
|
|
6
|
+
function configError(message) {
|
|
7
|
+
return new NarsilError(ErrorCodes.CONFIG_INVALID, message);
|
|
8
|
+
}
|
|
9
|
+
function requireKnob(name, value, minimum) {
|
|
10
|
+
if (value === void 0) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < minimum) {
|
|
14
|
+
throw configError(`durability.${name} must be a finite number of at least ${minimum}, got ${String(value)}`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function requireValidDurabilityConfig(durability) {
|
|
18
|
+
if (durability.tier !== void 0 && durability.tier !== "wal" && durability.tier !== "snapshot") {
|
|
19
|
+
throw configError(`durability.tier must be "wal" or "snapshot", got "${String(durability.tier)}"`);
|
|
20
|
+
}
|
|
21
|
+
if (durability.mode !== void 0 && durability.mode !== "sync" && durability.mode !== "async") {
|
|
22
|
+
throw configError(`durability.mode must be "sync" or "async", got "${String(durability.mode)}"`);
|
|
23
|
+
}
|
|
24
|
+
requireKnob("checkpointIntervalMs", durability.checkpointIntervalMs, 0);
|
|
25
|
+
requireKnob("checkpointMutationThreshold", durability.checkpointMutationThreshold, 1);
|
|
26
|
+
requireKnob("flushIntervalMs", durability.flushIntervalMs, 0);
|
|
27
|
+
requireKnob("segmentMaxBytes", durability.segmentMaxBytes, 1);
|
|
28
|
+
if (durability.segmentMaxBytes !== void 0 && durability.segmentMaxBytes > MAX_FILE_BYTES) {
|
|
29
|
+
throw configError(
|
|
30
|
+
`durability.segmentMaxBytes must be at most ${MAX_FILE_BYTES}, the largest file that every implementation reads, got ${durability.segmentMaxBytes}`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
requireKnob("compactionThreshold", durability.compactionThreshold, 1);
|
|
34
|
+
if (durability.tier === "snapshot") {
|
|
35
|
+
for (const field of WAL_ONLY_FIELDS) {
|
|
36
|
+
if (durability[field] !== void 0) {
|
|
37
|
+
throw configError(
|
|
38
|
+
`durability.${field} applies to the write-ahead log tier only and cannot combine with durability.tier "snapshot"`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function filesystemBackedDirectory(config) {
|
|
45
|
+
const adapterDirectory = config.persistence?.directory;
|
|
46
|
+
if (adapterDirectory !== void 0 && adapterDirectory.trim().length > 0) {
|
|
47
|
+
return adapterDirectory;
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
function resolveDurabilityTier(config) {
|
|
52
|
+
const filesystemDirectory = filesystemBackedDirectory(config);
|
|
53
|
+
if (config.durability) {
|
|
54
|
+
requireValidDurabilityConfig(config.durability);
|
|
55
|
+
}
|
|
56
|
+
if (config.durability?.tier === "snapshot") {
|
|
57
|
+
if (config.persistence === void 0) {
|
|
58
|
+
throw configError(
|
|
59
|
+
"Snapshot durability persists through a persistence adapter. Configure persistence, or remove durability.tier"
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return { kind: "snapshot", config: { ...config.durability }, adapter: config.persistence };
|
|
63
|
+
}
|
|
64
|
+
if (config.durability) {
|
|
65
|
+
if (config.durability.directory !== void 0 && config.durability.directory.trim().length > 0) {
|
|
66
|
+
return { kind: "wal", config: { ...config.durability } };
|
|
67
|
+
}
|
|
68
|
+
if (filesystemDirectory !== null) {
|
|
69
|
+
return { kind: "wal", config: { ...config.durability, directory: filesystemDirectory } };
|
|
70
|
+
}
|
|
71
|
+
if (config.persistence !== void 0) {
|
|
72
|
+
throw configError(
|
|
73
|
+
"WAL durability requires a filesystem directory, but the configured persistence adapter is not filesystem-backed. Use a filesystem persistence adapter or set durability.directory"
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
throw configError(
|
|
77
|
+
"Durability requires a directory. Set durability.directory explicitly, or configure a filesystem persistence adapter"
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
if (config.persistence === void 0) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
if (filesystemDirectory !== null) {
|
|
84
|
+
return { kind: "wal", config: { directory: filesystemDirectory } };
|
|
85
|
+
}
|
|
86
|
+
return { kind: "snapshot", config: {}, adapter: config.persistence };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { resolveDurabilityTier };
|
|
@@ -1,28 +1,34 @@
|
|
|
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-
|
|
2
|
-
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-
|
|
3
|
-
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
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-K4Q6KX3R.mjs';
|
|
2
|
+
import { createDirectoryWatch, unrefInterval, LOG_READ_CHUNK_BYTES } from './chunk-G64Q6OJF.mjs';
|
|
3
|
+
import { decodeSegmentManifest, isRecord, invalidManifest, isId, isUint32, isSequenceNumber } from './chunk-2CFI5VVV.mjs';
|
|
4
|
+
import './chunk-YJHGOJAC.mjs';
|
|
5
|
+
import { sha256 } from './chunk-M3MQE2X7.mjs';
|
|
6
|
+
import './chunk-3SSRJMFN.mjs';
|
|
7
|
+
import './chunk-BHFQATSC.mjs';
|
|
8
|
+
import { QUERY_HISTORY_FOLDER } from './chunk-7IGKGWSQ.mjs';
|
|
9
|
+
import './chunk-3I27KXQD.mjs';
|
|
10
|
+
import { nodeThreadId, spawnNodeWorker } from './chunk-HOZW3PKP.mjs';
|
|
11
|
+
import { adapterCheckpointStore, directoryCheckpointStore, readListedFile, readSegmentFile } from './chunk-EA63E3D2.mjs';
|
|
12
|
+
import { applyDeleteEntry, applyIndexEntry } from './chunk-KZWSX6BH.mjs';
|
|
7
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';
|
|
8
|
-
import {
|
|
14
|
+
import { manifestKey, manifestReferencedKeys, snapshotBundleKey, manifestFileRefs, MAX_SEGMENTS_PER_PARTITION } from './chunk-23XRXIBW.mjs';
|
|
15
|
+
import { toError, packChecksummedEnvelope, buildSegmentPayload, resolvePartitionInsertOptions, freezeSegmentShared, createSharedFrozenSegment } from './chunk-3V7DNNZL.mjs';
|
|
16
|
+
import './chunk-ML7THVLJ.mjs';
|
|
9
17
|
import { createRequestId } from './chunk-VI7BQR4U.mjs';
|
|
10
18
|
import './chunk-JPTQZWJQ.mjs';
|
|
11
|
-
import {
|
|
12
|
-
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-7TTWXUH6.mjs';
|
|
19
|
+
import { encodeDocument, openChecksummedEnvelope, crc32, requireValidFieldTypes, HEADER_SIZE } from './chunk-STOWQFT3.mjs';
|
|
13
20
|
import { fnv1a } from './chunk-RA6LSBCM.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import
|
|
16
|
-
import './chunk-
|
|
17
|
-
import {
|
|
18
|
-
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime, resolveWorkerEntry } from './chunk-U2E3HMYW.mjs';
|
|
21
|
+
import './chunk-MOG4OVDK.mjs';
|
|
22
|
+
import './chunk-TK63WFXK.mjs';
|
|
23
|
+
import { decodeVectorIndexParts, VECTOR_FILE_MAX_VECTORS, deadBytesFor, countDead, decodeVectorFilePayload, decodeVectorGraphPayload, graphPartsOfEarlierPayload } from './chunk-WN464PTL.mjs';
|
|
24
|
+
import { turnsAreBudgeted, turnIsSpent, yieldTurn, waitOutsideCountedWrite, detectRuntime, resolveWorkerEntry } from './chunk-XAWNZ4G2.mjs';
|
|
19
25
|
import './chunk-TY7L6OXO.mjs';
|
|
20
26
|
import { MAX_INDEX_NAME_LENGTH, INDEX_NAME_PATTERN } from './chunk-4RD3AFSB.mjs';
|
|
21
|
-
import { compareCodePoints, MIN_M
|
|
27
|
+
import { compareCodePoints, MIN_M } from './chunk-NXQG7DRA.mjs';
|
|
28
|
+
import { MAX_FILE_BYTES } from './chunk-GPPOG6PT.mjs';
|
|
22
29
|
import './chunk-WXLBZJMT.mjs';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import { NarsilError, ErrorCodes } from './chunk-MYITLCHT.mjs';
|
|
30
|
+
import { NarsilError, ErrorCodes } from './chunk-SRMZXJSL.mjs';
|
|
31
|
+
import './chunk-JNOAKDUM.mjs';
|
|
26
32
|
import { decode, encode } from '@msgpack/msgpack';
|
|
27
33
|
|
|
28
34
|
// src/persistence/durability/node-fs.browser.ts
|
|
@@ -1312,7 +1318,7 @@ async function writeOneBoundedCheckpoint(input) {
|
|
|
1312
1318
|
}
|
|
1313
1319
|
async function adoptWrittenSegments(input, manager, partitions, changes) {
|
|
1314
1320
|
const { indexName, indexState, hooks } = input;
|
|
1315
|
-
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-
|
|
1321
|
+
const { actionPartitionsOf, closeUnusedSegments, prepareDiskAdoption, swapPreparedPartitions } = await import('./module-NIYMEA5R.mjs');
|
|
1316
1322
|
const adoption = await prepareDiskAdoption(input.directory, manager, partitions);
|
|
1317
1323
|
if (adoption === null) return [];
|
|
1318
1324
|
const adopted = await whileNoMutationApplies([...indexState.partitions.values()], () => {
|
|
@@ -1367,7 +1373,7 @@ async function finishBoundedCheckpoint(input, manager, store, metadata, priorMan
|
|
|
1367
1373
|
const droppedThisCheckpoint = changes !== null && capture2.recordsLeftInLog === 0 ? new Set(await adoptWrittenSegments(input, manager, segments.partitions, changes)) : /* @__PURE__ */ new Set();
|
|
1368
1374
|
if (!input.holdsCheckpointFiles()) {
|
|
1369
1375
|
const removable = await garbageThatNoFieldStillReads(store, vectorIndexes, written.garbage);
|
|
1370
|
-
const stillRead = metadata.textStorage === "disk" ? (await import('./module-
|
|
1376
|
+
const stillRead = metadata.textStorage === "disk" ? (await import('./module-NIYMEA5R.mjs')).keysThatSegmentsStillRead(manager) : /* @__PURE__ */ new Set();
|
|
1371
1377
|
const keptForSync = await input.keepsCheckpointKey();
|
|
1372
1378
|
await removeCheckpointGarbage(
|
|
1373
1379
|
store,
|
|
@@ -1528,135 +1534,6 @@ async function drainIndexStateForUnload(indexState, pendingMetadataWrite, closeW
|
|
|
1528
1534
|
}
|
|
1529
1535
|
}
|
|
1530
1536
|
|
|
1531
|
-
// src/persistence/durability/sha256.ts
|
|
1532
|
-
var ROUND_CONSTANTS = new Uint32Array([
|
|
1533
|
-
1116352408,
|
|
1534
|
-
1899447441,
|
|
1535
|
-
3049323471,
|
|
1536
|
-
3921009573,
|
|
1537
|
-
961987163,
|
|
1538
|
-
1508970993,
|
|
1539
|
-
2453635748,
|
|
1540
|
-
2870763221,
|
|
1541
|
-
3624381080,
|
|
1542
|
-
310598401,
|
|
1543
|
-
607225278,
|
|
1544
|
-
1426881987,
|
|
1545
|
-
1925078388,
|
|
1546
|
-
2162078206,
|
|
1547
|
-
2614888103,
|
|
1548
|
-
3248222580,
|
|
1549
|
-
3835390401,
|
|
1550
|
-
4022224774,
|
|
1551
|
-
264347078,
|
|
1552
|
-
604807628,
|
|
1553
|
-
770255983,
|
|
1554
|
-
1249150122,
|
|
1555
|
-
1555081692,
|
|
1556
|
-
1996064986,
|
|
1557
|
-
2554220882,
|
|
1558
|
-
2821834349,
|
|
1559
|
-
2952996808,
|
|
1560
|
-
3210313671,
|
|
1561
|
-
3336571891,
|
|
1562
|
-
3584528711,
|
|
1563
|
-
113926993,
|
|
1564
|
-
338241895,
|
|
1565
|
-
666307205,
|
|
1566
|
-
773529912,
|
|
1567
|
-
1294757372,
|
|
1568
|
-
1396182291,
|
|
1569
|
-
1695183700,
|
|
1570
|
-
1986661051,
|
|
1571
|
-
2177026350,
|
|
1572
|
-
2456956037,
|
|
1573
|
-
2730485921,
|
|
1574
|
-
2820302411,
|
|
1575
|
-
3259730800,
|
|
1576
|
-
3345764771,
|
|
1577
|
-
3516065817,
|
|
1578
|
-
3600352804,
|
|
1579
|
-
4094571909,
|
|
1580
|
-
275423344,
|
|
1581
|
-
430227734,
|
|
1582
|
-
506948616,
|
|
1583
|
-
659060556,
|
|
1584
|
-
883997877,
|
|
1585
|
-
958139571,
|
|
1586
|
-
1322822218,
|
|
1587
|
-
1537002063,
|
|
1588
|
-
1747873779,
|
|
1589
|
-
1955562222,
|
|
1590
|
-
2024104815,
|
|
1591
|
-
2227730452,
|
|
1592
|
-
2361852424,
|
|
1593
|
-
2428436474,
|
|
1594
|
-
2756734187,
|
|
1595
|
-
3204031479,
|
|
1596
|
-
3329325298
|
|
1597
|
-
]);
|
|
1598
|
-
var INITIAL_STATE = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225];
|
|
1599
|
-
var BLOCK_BYTES = 64;
|
|
1600
|
-
var LENGTH_BYTES = 8;
|
|
1601
|
-
function rotateRight(value, bits) {
|
|
1602
|
-
return value >>> bits | value << 32 - bits;
|
|
1603
|
-
}
|
|
1604
|
-
function padded(bytes) {
|
|
1605
|
-
const total = Math.ceil((bytes.byteLength + 1 + LENGTH_BYTES) / BLOCK_BYTES) * BLOCK_BYTES;
|
|
1606
|
-
const message = new Uint8Array(total);
|
|
1607
|
-
message.set(bytes);
|
|
1608
|
-
message[bytes.byteLength] = 128;
|
|
1609
|
-
const view = new DataView(message.buffer);
|
|
1610
|
-
const bitLength = bytes.byteLength * 8;
|
|
1611
|
-
view.setUint32(total - LENGTH_BYTES, Math.floor(bitLength / 4294967296), false);
|
|
1612
|
-
view.setUint32(total - 4, bitLength >>> 0, false);
|
|
1613
|
-
return view;
|
|
1614
|
-
}
|
|
1615
|
-
function sha256(bytes) {
|
|
1616
|
-
const view = padded(bytes);
|
|
1617
|
-
const state = INITIAL_STATE.slice();
|
|
1618
|
-
const words = new Uint32Array(64);
|
|
1619
|
-
for (let block = 0; block < view.byteLength; block += BLOCK_BYTES) {
|
|
1620
|
-
for (let i = 0; i < 16; i++) words[i] = view.getUint32(block + i * 4, false);
|
|
1621
|
-
for (let i = 16; i < 64; i++) {
|
|
1622
|
-
const w15 = words[i - 15];
|
|
1623
|
-
const w2 = words[i - 2];
|
|
1624
|
-
const s0 = rotateRight(w15, 7) ^ rotateRight(w15, 18) ^ w15 >>> 3;
|
|
1625
|
-
const s1 = rotateRight(w2, 17) ^ rotateRight(w2, 19) ^ w2 >>> 10;
|
|
1626
|
-
words[i] = words[i - 16] + s0 + words[i - 7] + s1 >>> 0;
|
|
1627
|
-
}
|
|
1628
|
-
let [a, b, c, d, e, f, g, h] = state;
|
|
1629
|
-
for (let i = 0; i < 64; i++) {
|
|
1630
|
-
const s1 = rotateRight(e, 6) ^ rotateRight(e, 11) ^ rotateRight(e, 25);
|
|
1631
|
-
const choice = e & f ^ ~e & g;
|
|
1632
|
-
const t1 = h + s1 + choice + ROUND_CONSTANTS[i] + words[i] >>> 0;
|
|
1633
|
-
const s0 = rotateRight(a, 2) ^ rotateRight(a, 13) ^ rotateRight(a, 22);
|
|
1634
|
-
const majority = a & b ^ a & c ^ b & c;
|
|
1635
|
-
const t2 = s0 + majority >>> 0;
|
|
1636
|
-
h = g;
|
|
1637
|
-
g = f;
|
|
1638
|
-
f = e;
|
|
1639
|
-
e = d + t1 >>> 0;
|
|
1640
|
-
d = c;
|
|
1641
|
-
c = b;
|
|
1642
|
-
b = a;
|
|
1643
|
-
a = t1 + t2 >>> 0;
|
|
1644
|
-
}
|
|
1645
|
-
state[0] = state[0] + a >>> 0;
|
|
1646
|
-
state[1] = state[1] + b >>> 0;
|
|
1647
|
-
state[2] = state[2] + c >>> 0;
|
|
1648
|
-
state[3] = state[3] + d >>> 0;
|
|
1649
|
-
state[4] = state[4] + e >>> 0;
|
|
1650
|
-
state[5] = state[5] + f >>> 0;
|
|
1651
|
-
state[6] = state[6] + g >>> 0;
|
|
1652
|
-
state[7] = state[7] + h >>> 0;
|
|
1653
|
-
}
|
|
1654
|
-
const digest = new Uint8Array(32);
|
|
1655
|
-
const out = new DataView(digest.buffer);
|
|
1656
|
-
for (let i = 0; i < 8; i++) out.setUint32(i * 4, state[i], false);
|
|
1657
|
-
return digest;
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
1537
|
// src/persistence/durability/restore-journal.ts
|
|
1661
1538
|
var RESTORE_JOURNAL_PREFIX = ".swap-";
|
|
1662
1539
|
var RESTORE_STAGING_PREFIX = ".restore-";
|
|
@@ -2019,6 +1896,22 @@ function createArchiveCheckpointAccess(deps) {
|
|
|
2019
1896
|
};
|
|
2020
1897
|
}
|
|
2021
1898
|
|
|
1899
|
+
// src/persistence/durability/query-history.ts
|
|
1900
|
+
async function removeQueryHistoryOf(storage, indexName) {
|
|
1901
|
+
const folder = `${QUERY_HISTORY_FOLDER}/${indexName}/`;
|
|
1902
|
+
if (storage.kind === "directory") {
|
|
1903
|
+
for (const key of await storage.directory.list(folder)) await storage.directory.remove(key);
|
|
1904
|
+
return;
|
|
1905
|
+
}
|
|
1906
|
+
for (const key of await storage.adapter.list(folder)) await storage.adapter.delete(key);
|
|
1907
|
+
}
|
|
1908
|
+
function queryHistoryAccess(storage) {
|
|
1909
|
+
return {
|
|
1910
|
+
historyStorage: () => storage,
|
|
1911
|
+
removeQueryHistory: (indexName) => removeQueryHistoryOf(storage, indexName)
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
|
|
2022
1915
|
// src/persistence/durability/manager-unload.ts
|
|
2023
1916
|
function createIndexUnloading(deps) {
|
|
2024
1917
|
const { directory, hooks, indexes, metadataWrites } = deps;
|
|
@@ -2035,6 +1928,7 @@ function createIndexUnloading(deps) {
|
|
|
2035
1928
|
for (const key of await directory.list(`${indexName}/`)) {
|
|
2036
1929
|
await directory.remove(key);
|
|
2037
1930
|
}
|
|
1931
|
+
await removeQueryHistoryOf({ kind: "directory", directory }, indexName);
|
|
2038
1932
|
deps.forgetSyncState(indexName);
|
|
2039
1933
|
},
|
|
2040
1934
|
async unloadIndex(indexName) {
|
|
@@ -2785,8 +2679,8 @@ function createGroupCommitCoordinator(sync) {
|
|
|
2785
2679
|
// src/persistence/durability/wal-writer.ts
|
|
2786
2680
|
var SEGMENT_TAIL_PATTERN = /^\d{16}$/;
|
|
2787
2681
|
function segmentKey(indexName, partitionId, startSeqNo) {
|
|
2788
|
-
const
|
|
2789
|
-
return `${indexName}/wal/${partitionId}/${
|
|
2682
|
+
const padded = startSeqNo.toString().padStart(16, "0");
|
|
2683
|
+
return `${indexName}/wal/${partitionId}/${padded}`;
|
|
2790
2684
|
}
|
|
2791
2685
|
function parseSegmentStartSeqNo2(key) {
|
|
2792
2686
|
const tail = key.slice(key.lastIndexOf("/") + 1);
|
|
@@ -3510,7 +3404,7 @@ var decoder = new TextDecoder();
|
|
|
3510
3404
|
async function countPagedPartition(store, partition) {
|
|
3511
3405
|
const { directory } = store;
|
|
3512
3406
|
if (directory === void 0 || partition.segments.length === 0) return null;
|
|
3513
|
-
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-
|
|
3407
|
+
const { countsAsLatestHolder, isPagedSegmentFile, openPagedSegmentScan } = await import('./module-NIYMEA5R.mjs');
|
|
3514
3408
|
for (const ref of partition.segments) if (!await isPagedSegmentFile(directory, ref.key)) return null;
|
|
3515
3409
|
const scans = [];
|
|
3516
3410
|
try {
|
|
@@ -4212,6 +4106,7 @@ function createDurabilityManager(config, hooks, directoryOverride) {
|
|
|
4212
4106
|
},
|
|
4213
4107
|
...unloading,
|
|
4214
4108
|
syncStorage: () => syncStorage,
|
|
4109
|
+
...queryHistoryAccess({ kind: "directory", directory }),
|
|
4215
4110
|
...archiveAccess,
|
|
4216
4111
|
async shutdown() {
|
|
4217
4112
|
shuttingDown = true;
|
|
@@ -4615,6 +4510,7 @@ function createSnapshotOnlyManager(adapter, config, hooks, publisher) {
|
|
|
4615
4510
|
if (lastSeqNo > 0) indexState.appliedSeqNoByPartition.set(partitionId, lastSeqNo);
|
|
4616
4511
|
}
|
|
4617
4512
|
},
|
|
4513
|
+
...queryHistoryAccess({ kind: "adapter", adapter }),
|
|
4618
4514
|
async removeIndex(indexName) {
|
|
4619
4515
|
await settleRestore(indexName).catch(() => void 0);
|
|
4620
4516
|
restores.forget(indexName);
|
|
@@ -4623,6 +4519,7 @@ function createSnapshotOnlyManager(adapter, config, hooks, publisher) {
|
|
|
4623
4519
|
for (const key of await adapter.list(`${indexName}/`)) {
|
|
4624
4520
|
await adapter.delete(key);
|
|
4625
4521
|
}
|
|
4522
|
+
await removeQueryHistoryOf({ kind: "adapter", adapter }, indexName);
|
|
4626
4523
|
},
|
|
4627
4524
|
async unloadIndex(indexName) {
|
|
4628
4525
|
await settleRestore(indexName);
|
|
@@ -4768,7 +4665,7 @@ function createDurabilityFromTier(tier, wiring) {
|
|
|
4768
4665
|
keepsSyncHistory: (indexName) => wiring.indexRegistry.get(indexName)?.sync?.active === true,
|
|
4769
4666
|
onHistoryMoved(indexName) {
|
|
4770
4667
|
if (wiring.indexRegistry.get(indexName)?.sync?.active !== true) return;
|
|
4771
|
-
import('./retention-
|
|
4668
|
+
import('./retention-ZWVMNC3Q.mjs').then((retention) => retention.scheduleSyncRetention(wiring.engineCore(), indexName)).catch((error) => wiring.emitFatalError(error instanceof Error ? error : new Error(String(error))));
|
|
4772
4669
|
}
|
|
4773
4670
|
});
|
|
4774
4671
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { clearLeftoversOfName, dropSuggestionIndexesOf, installSuggestionHooks, startQuerySuggestions } from './chunk-MGI4BCXC.mjs';
|
|
2
|
+
import './chunk-ATEBYXP6.mjs';
|
|
3
|
+
import './chunk-3V7DNNZL.mjs';
|
|
4
|
+
import './chunk-ML7THVLJ.mjs';
|
|
5
|
+
import './chunk-VI7BQR4U.mjs';
|
|
6
|
+
import './chunk-JPTQZWJQ.mjs';
|
|
7
|
+
import './chunk-STOWQFT3.mjs';
|
|
8
|
+
import './chunk-RA6LSBCM.mjs';
|
|
9
|
+
import './chunk-MOG4OVDK.mjs';
|
|
10
|
+
import './chunk-TK63WFXK.mjs';
|
|
11
|
+
import './chunk-XAWNZ4G2.mjs';
|
|
12
|
+
import './chunk-TY7L6OXO.mjs';
|
|
13
|
+
import './chunk-4RD3AFSB.mjs';
|
|
14
|
+
import './chunk-NXQG7DRA.mjs';
|
|
15
|
+
import './chunk-GPPOG6PT.mjs';
|
|
16
|
+
import './chunk-WXLBZJMT.mjs';
|
|
17
|
+
import './chunk-SRMZXJSL.mjs';
|