@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,78 +1,88 @@
|
|
|
1
|
-
import { documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, writeArchiveFile } from './chunk-
|
|
3
|
-
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-
|
|
4
|
-
import { readVectorFile, readGraphParts } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import { documentsOfPayloadV2 } from './chunk-PWC4VB3Q.mjs';
|
|
2
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, writeArchiveFile } from './chunk-DWEPMFJE.mjs';
|
|
3
|
+
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-7LXHHCXZ.mjs';
|
|
4
|
+
import { readVectorFile, readGraphParts } from './chunk-TZ3355VS.mjs';
|
|
5
|
+
import { requireRestoreMemory, earlierSnapshotFootprint, storedBytesOfSegments, archiveFootprint } from './chunk-JWRUUCWD.mjs';
|
|
6
|
+
import './chunk-FCJ553HS.mjs';
|
|
7
7
|
import './chunk-MATMVH65.mjs';
|
|
8
8
|
import './chunk-VD7J552I.mjs';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
9
|
+
import './chunk-ZXNNR73R.mjs';
|
|
10
|
+
import './chunk-WZ7YV54N.mjs';
|
|
11
|
+
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-INJYO3BU.mjs';
|
|
12
12
|
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS } from './chunk-ZYAY26KG.mjs';
|
|
13
13
|
import { createByteReader } from './chunk-CZQ33DLW.mjs';
|
|
14
|
-
import { readSnapshotArchive } from './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import { readSnapshotArchive } from './chunk-MQOJIO5B.mjs';
|
|
15
|
+
import './chunk-4KKXNJM6.mjs';
|
|
16
|
+
import { decodeVectorIndexParts, bytesToVectors } from './chunk-K4ZIGL2O.mjs';
|
|
16
17
|
import { newSyncEpoch } from './chunk-BUMREPLU.mjs';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import { decodeVectorIndexParts, bytesToVectors } from './chunk-AO2FAYIZ.mjs';
|
|
19
|
-
import './chunk-BPSKLCS7.mjs';
|
|
20
|
-
import './chunk-DJHHF2L5.mjs';
|
|
18
|
+
import './chunk-5VV4R6P7.mjs';
|
|
21
19
|
import './chunk-37CD3OKS.mjs';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import { encodeSegmentManifest } from './chunk-
|
|
20
|
+
import './chunk-JDJBQLRO.mjs';
|
|
21
|
+
import { encodeSegmentManifest } from './chunk-3HYC4JRF.mjs';
|
|
22
|
+
import { readSegmentFile } from './chunk-QOW2JPUI.mjs';
|
|
23
|
+
import './chunk-WX4LAO6M.mjs';
|
|
24
|
+
import './chunk-UHICS3JI.mjs';
|
|
25
|
+
import './chunk-5FLRXF73.mjs';
|
|
24
26
|
import './chunk-JDDXV6UF.mjs';
|
|
25
|
-
import {
|
|
26
|
-
import './chunk-62G63NMH.mjs';
|
|
27
|
-
import './chunk-S2N75OTN.mjs';
|
|
28
|
-
import { manifestKey, manifestFileRefs } from './chunk-Q3TCTQCC.mjs';
|
|
27
|
+
import { manifestKey, manifestFileRefs } from './chunk-NF4DT3IH.mjs';
|
|
29
28
|
import './chunk-QDZJM7NI.mjs';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
29
|
+
import { storedStateOf } from './chunk-XXHN7J46.mjs';
|
|
30
|
+
import './chunk-YTWZVGCB.mjs';
|
|
31
|
+
import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
|
|
32
|
+
import './chunk-GQPTDQCL.mjs';
|
|
33
|
+
import './chunk-5YNRKI2C.mjs';
|
|
34
|
+
import { encodeIndexConfiguration, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, prepareStoredSynonyms, arrayPositionsAreStale, insertDocumentVectors } from './chunk-EFBDHH5P.mjs';
|
|
35
|
+
import { validatePatternValueLimit, requireSurfaceFormsForPartialFields } from './chunk-I53G4JAU.mjs';
|
|
33
36
|
import './chunk-HJSN7UYG.mjs';
|
|
34
|
-
import './chunk-
|
|
37
|
+
import './chunk-LHKOSI2J.mjs';
|
|
35
38
|
import './chunk-XIHUI4KB.mjs';
|
|
36
39
|
import './chunk-3MXV3VHR.mjs';
|
|
37
40
|
import './chunk-EEBCDP36.mjs';
|
|
38
|
-
import { decodeEveryStoredDocument } from './chunk-
|
|
39
|
-
import {
|
|
40
|
-
import { decodeIndexConfiguration } from './chunk-
|
|
41
|
-
import { hasNrslMagic, HEADER_SIZE, readHeader } from './chunk-
|
|
41
|
+
import { loadSchemaCodeFor, decodeEveryStoredDocument } from './chunk-VTTRFF2C.mjs';
|
|
42
|
+
import { isCompositePartition } from './chunk-P5ZI2P2W.mjs';
|
|
43
|
+
import { decodeIndexConfiguration } from './chunk-GH4WQ22V.mjs';
|
|
44
|
+
import { hasNrslMagic, HEADER_SIZE, readHeader } from './chunk-3OH67G7R.mjs';
|
|
42
45
|
import './chunk-IPN7S4KX.mjs';
|
|
43
46
|
import './chunk-KAKQ74LS.mjs';
|
|
44
47
|
import './chunk-7GXJUJ24.mjs';
|
|
45
48
|
import './chunk-Q2UL2TPC.mjs';
|
|
46
|
-
import './chunk-
|
|
47
|
-
import './chunk-
|
|
49
|
+
import './chunk-CITFCZKF.mjs';
|
|
50
|
+
import './chunk-RLOES5SX.mjs';
|
|
51
|
+
import { raiseEarlierReleaseGraphSetting, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension } from './chunk-L6V6BST3.mjs';
|
|
52
|
+
import './chunk-SQJWAIF4.mjs';
|
|
53
|
+
import './chunk-FQBFZAWG.mjs';
|
|
54
|
+
import { validateSchema, flattenSchema } from './chunk-BU4SAIC4.mjs';
|
|
55
|
+
import './chunk-GES7U2PM.mjs';
|
|
56
|
+
import './chunk-I54T6CQP.mjs';
|
|
57
|
+
import './chunk-I5B7RXU7.mjs';
|
|
48
58
|
import { emitSyncChange } from './chunk-Y4WPNHMC.mjs';
|
|
49
|
-
import { getLanguage, resolveIndexAnalysis } from './chunk-
|
|
59
|
+
import { getLanguage, resolveIndexAnalysis } from './chunk-RZWWB2XR.mjs';
|
|
50
60
|
import './chunk-TGP5M5R7.mjs';
|
|
61
|
+
import './chunk-G6HRSGOU.mjs';
|
|
51
62
|
import './chunk-U2BKYEC7.mjs';
|
|
63
|
+
import './chunk-6HTGOXIK.mjs';
|
|
52
64
|
import './chunk-QHPYS427.mjs';
|
|
53
65
|
import './chunk-QYRNLLLI.mjs';
|
|
54
|
-
import
|
|
66
|
+
import './chunk-TDIK6NTV.mjs';
|
|
67
|
+
import { ARRAY_POSITION_GAP } from './chunk-FB6463IN.mjs';
|
|
68
|
+
import './chunk-7GFE3PEY.mjs';
|
|
55
69
|
import './chunk-ZXNQEW43.mjs';
|
|
70
|
+
import './chunk-7V5IUP2T.mjs';
|
|
71
|
+
import './chunk-L5ORED7V.mjs';
|
|
72
|
+
import './chunk-X5CV2E2B.mjs';
|
|
73
|
+
import './chunk-A4L7YTKX.mjs';
|
|
74
|
+
import './chunk-U55XJEIG.mjs';
|
|
56
75
|
import './chunk-KOKM4PQN.mjs';
|
|
57
|
-
import './chunk-
|
|
76
|
+
import './chunk-ORN5BLL7.mjs';
|
|
58
77
|
import './chunk-BTPGQC6Z.mjs';
|
|
59
78
|
import './chunk-LQG5G2LY.mjs';
|
|
60
|
-
import './chunk-RFBLQLLZ.mjs';
|
|
61
|
-
import './chunk-OKX2BBNW.mjs';
|
|
62
|
-
import './chunk-JUKYYXSP.mjs';
|
|
63
|
-
import { raiseEarlierReleaseGraphSetting, validateVectorPromotion, validateVectorStorage, validateTextStorage, parseVectorDimension } from './chunk-VMXSVVXG.mjs';
|
|
64
|
-
import { validateSchema, flattenSchema } from './chunk-Z3TNWCI5.mjs';
|
|
65
|
-
import './chunk-FQBFZAWG.mjs';
|
|
66
|
-
import './chunk-ZIFJXCKA.mjs';
|
|
67
|
-
import './chunk-4UMZ7KQL.mjs';
|
|
68
79
|
import './chunk-ZXX5GZEX.mjs';
|
|
69
|
-
import './chunk-
|
|
70
|
-
import './chunk-
|
|
71
|
-
import './chunk-L5ORED7V.mjs';
|
|
80
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
81
|
+
import './chunk-KKQC526K.mjs';
|
|
72
82
|
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
73
|
-
import { NarsilError, ErrorCodes } from './chunk-
|
|
74
|
-
import './chunk-
|
|
75
|
-
import './chunk-
|
|
83
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
84
|
+
import './chunk-J4IJTTEX.mjs';
|
|
85
|
+
import './chunk-TBC3XUL2.mjs';
|
|
76
86
|
import { decode } from '@msgpack/msgpack';
|
|
77
87
|
|
|
78
88
|
// src/persistence/archive/validate.ts
|
|
@@ -100,7 +110,7 @@ async function validateStagedCheckpoint(store, manifest) {
|
|
|
100
110
|
for (const ref of partition.segments) {
|
|
101
111
|
const { directory } = store;
|
|
102
112
|
if (directory !== void 0) {
|
|
103
|
-
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-
|
|
113
|
+
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-FQ4JWNQJ.mjs');
|
|
104
114
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
105
115
|
requireSchemaOfManifest(ref.key, await checkPagedSegmentFully(directory, ref), manifest);
|
|
106
116
|
continue;
|
|
@@ -197,7 +207,8 @@ function prepareRestoredIndex(configuration, deps, reject) {
|
|
|
197
207
|
storedRevision,
|
|
198
208
|
analysisGeneration,
|
|
199
209
|
storedArrayPositionGap: storedArrayPositionGap(configuration.arrayPositionGap),
|
|
200
|
-
synonyms
|
|
210
|
+
synonyms,
|
|
211
|
+
querySuggestions: storedStateOf(configuration)
|
|
201
212
|
};
|
|
202
213
|
}
|
|
203
214
|
function restoredSynonyms(raw, config, language, reject) {
|
|
@@ -205,8 +216,8 @@ function restoredSynonyms(raw, config, language, reject) {
|
|
|
205
216
|
return prepareStoredSynonyms(raw, config, language, (message) => reject(`synonyms: ${message}`));
|
|
206
217
|
}
|
|
207
218
|
async function prepareDetachedIndex(indexName, prepared, partitionCount, deps) {
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
219
|
+
const loadingSchemaCode = loadSchemaCodeFor(prepared.config.schema);
|
|
220
|
+
if (loadingSchemaCode !== null) await loadingSchemaCode;
|
|
210
221
|
const detached = createDetachedIndex(
|
|
211
222
|
indexName,
|
|
212
223
|
prepared.config,
|
|
@@ -234,7 +245,8 @@ function restoredRegistryEntry(prepared, manager, deps) {
|
|
|
234
245
|
analysisGeneration: prepared.analysisGeneration,
|
|
235
246
|
pendingAnalysis: null,
|
|
236
247
|
durableAnalysis: null,
|
|
237
|
-
sync: null
|
|
248
|
+
sync: null,
|
|
249
|
+
querySuggestions: prepared.querySuggestions
|
|
238
250
|
};
|
|
239
251
|
}
|
|
240
252
|
|
|
@@ -347,6 +359,7 @@ async function replaceExisting(indexName, restored, entry, deps) {
|
|
|
347
359
|
for (const vectorIndex of vectorIndexes) await vectorIndex.releaseVectorFiles();
|
|
348
360
|
await commitToStorage(indexName, restored, previous?.partitionCount ?? 0, deps);
|
|
349
361
|
activate(indexName, restored, entry, deps);
|
|
362
|
+
await deps.querySuggestions?.afterActivate(entry);
|
|
350
363
|
});
|
|
351
364
|
} finally {
|
|
352
365
|
const ending = endRelease(indexName, release, deps).catch(() => void 0);
|
|
@@ -361,6 +374,7 @@ async function createFresh(indexName, restored, entry, deps) {
|
|
|
361
374
|
await deps.indexState.registerReplacing(indexName, async () => {
|
|
362
375
|
await commitToStorage(indexName, restored, 0, deps);
|
|
363
376
|
activate(indexName, restored, entry, deps);
|
|
377
|
+
await deps.querySuggestions?.afterActivate(entry);
|
|
364
378
|
});
|
|
365
379
|
} catch (error) {
|
|
366
380
|
if (deps.indexRegistry.get(indexName) === entry) deps.indexRegistry.delete(indexName);
|
|
@@ -373,12 +387,14 @@ async function stageMetadata(indexName, staging, entry) {
|
|
|
373
387
|
const metadata = indexMetadataOf(indexName, entry, entry.partitionCount);
|
|
374
388
|
await staging.store.write(`${indexName}/meta`, [await writeMetadataEnvelope(metadata, { checksum: true })]);
|
|
375
389
|
}
|
|
376
|
-
async function installRestoredIndex(indexName, restored, deps) {
|
|
390
|
+
async function installRestoredIndex(indexName, restored, deps, history = null) {
|
|
377
391
|
const entry = restoredRegistryEntry(restored.prepared, restored.detached.manager, deps);
|
|
378
392
|
const previousSync = deps.indexRegistry.get(indexName)?.sync ?? null;
|
|
379
393
|
if (previousSync !== null) entry.sync = { ...previousSync, active: false, epoch: newSyncEpoch() };
|
|
380
394
|
let replaced;
|
|
381
395
|
try {
|
|
396
|
+
if (deps.indexRegistry.has(indexName)) await deps.abandonAnalysisChange(indexName);
|
|
397
|
+
await deps.querySuggestions?.beforeInstall(entry, deps.indexRegistry.get(indexName));
|
|
382
398
|
if (restored.staging !== null) await stageMetadata(indexName, restored.staging, entry);
|
|
383
399
|
replaced = deps.indexRegistry.get(indexName);
|
|
384
400
|
if (replaced !== void 0) await replaceExisting(indexName, restored, entry, deps);
|
|
@@ -400,6 +416,7 @@ async function installRestoredIndex(indexName, restored, deps) {
|
|
|
400
416
|
await oneSyncChangeAtATime(deps.indexRegistry, indexName, () => storage.release(indexName));
|
|
401
417
|
emitSyncChange(deps.indexRegistry, { kind: "epoch", indexName });
|
|
402
418
|
}
|
|
419
|
+
await deps.querySuggestions?.afterInstall(entry, history);
|
|
403
420
|
if (replaced !== void 0) await deps.announceIndexDropped(indexName, replaced.config);
|
|
404
421
|
await deps.announceIndexCreated(indexName, restored.prepared.config);
|
|
405
422
|
for (const vectorIndex of restored.detached.manager.getVectorIndexes().values()) {
|
|
@@ -450,9 +467,14 @@ function missingPart(what) {
|
|
|
450
467
|
function keepsTextOnDisk(prepared, staging) {
|
|
451
468
|
return prepared.config.textStorage === "disk" && staging.directory !== void 0;
|
|
452
469
|
}
|
|
453
|
-
async function stageArchive(indexName, reader, staging, deps) {
|
|
454
|
-
const staged = { prepared: null, manifest: null };
|
|
470
|
+
async function stageArchive(indexName, reader, staging, deps, staged) {
|
|
455
471
|
await readSnapshotArchive(reader, {
|
|
472
|
+
history: async (chunks) => {
|
|
473
|
+
if (staged.history === void 0) {
|
|
474
|
+
staged.history = await deps.querySuggestions?.historySink(staged.prepared?.querySuggestions ?? null) ?? null;
|
|
475
|
+
}
|
|
476
|
+
await staged.history?.add(chunks);
|
|
477
|
+
},
|
|
456
478
|
config: async (bytes) => {
|
|
457
479
|
staged.prepared = prepareRestoredIndex(await decodeIndexConfiguration(bytes), deps, rejectConfiguration);
|
|
458
480
|
},
|
|
@@ -478,7 +500,7 @@ async function stageArchive(indexName, reader, staging, deps) {
|
|
|
478
500
|
if (manifest === null) missingPart("manifest");
|
|
479
501
|
const { directory } = staging;
|
|
480
502
|
if (keepsTextOnDisk(prepared, staging) && directory !== void 0) {
|
|
481
|
-
const { bytesThatSegmentsHoldInMemory } = await import('./module-
|
|
503
|
+
const { bytesThatSegmentsHoldInMemory } = await import('./module-FQ4JWNQJ.mjs');
|
|
482
504
|
const replacesIndex = deps.indexRegistry.has(indexName);
|
|
483
505
|
const segmentBytes = await bytesThatSegmentsHoldInMemory(directory, manifest);
|
|
484
506
|
requireRestoreMemory(indexName, archiveFootprint(prepared, manifest, replacesIndex, segmentBytes), replacesIndex);
|
|
@@ -507,9 +529,14 @@ async function loadStagedIndex(indexName, staged, staging, store, deps) {
|
|
|
507
529
|
async function restoreArchive(indexName, reader, deps) {
|
|
508
530
|
const staging = deps.durability?.manager.stageRestore?.(indexName) ?? null;
|
|
509
531
|
const store = staging?.store ?? memoryCheckpointStore();
|
|
532
|
+
const archive = { prepared: null, manifest: null, history: void 0 };
|
|
510
533
|
try {
|
|
511
|
-
const staged = await stageArchive(indexName, reader, store, deps);
|
|
512
|
-
|
|
534
|
+
const staged = await stageArchive(indexName, reader, store, deps, archive);
|
|
535
|
+
const restored = await loadStagedIndex(indexName, staged, staging, store, deps);
|
|
536
|
+
await installRestoredIndex(indexName, restored, deps, archive.history ?? null);
|
|
537
|
+
} catch (error) {
|
|
538
|
+
await archive.history?.abandon().catch(() => void 0);
|
|
539
|
+
throw error;
|
|
513
540
|
} finally {
|
|
514
541
|
await staging?.discard().catch(() => void 0);
|
|
515
542
|
await reader.close();
|
|
@@ -664,13 +691,23 @@ async function checkpointForArchive(deps) {
|
|
|
664
691
|
partitionId: null
|
|
665
692
|
});
|
|
666
693
|
}
|
|
667
|
-
async function
|
|
694
|
+
async function* queryHistoryEntries(core, indexName) {
|
|
695
|
+
const { historyArchiveEntries } = await import('./archive-history-E4R73RWD.mjs');
|
|
696
|
+
yield* historyArchiveEntries(core, indexName);
|
|
697
|
+
}
|
|
698
|
+
async function createSnapshot(deps, coreWithAddedHistory) {
|
|
699
|
+
const trailingEntries = coreWithAddedHistory === null ? void 0 : () => queryHistoryEntries(coreWithAddedHistory, deps.indexName);
|
|
668
700
|
for (let attempt = 0; attempt < MAX_SNAPSHOT_ANALYSIS_ATTEMPTS; attempt += 1) {
|
|
669
701
|
const checkpoint = await checkpointForArchive(deps);
|
|
670
702
|
try {
|
|
671
703
|
if ((checkpoint.manifest.analysisGeneration ?? 0) === deps.entry.analysisGeneration) {
|
|
672
704
|
const config = await encodeIndexConfiguration(deps.entry);
|
|
673
|
-
return archiveStream({
|
|
705
|
+
return archiveStream({
|
|
706
|
+
...checkpoint,
|
|
707
|
+
config,
|
|
708
|
+
sourceIndexName: deps.indexName,
|
|
709
|
+
...trailingEntries !== void 0 ? { trailingEntries } : {}
|
|
710
|
+
});
|
|
674
711
|
}
|
|
675
712
|
} catch (error) {
|
|
676
713
|
checkpoint.release();
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export { localRuntimeOf } from './chunk-Z2KAFCRT.mjs';
|
|
2
|
+
import './chunk-RDXO6JST.mjs';
|
|
3
|
+
import './chunk-S5LN746F.mjs';
|
|
4
|
+
import './chunk-2UV4QBHW.mjs';
|
|
5
|
+
import './chunk-LNGE7SLY.mjs';
|
|
6
|
+
import './chunk-DP5C7YFQ.mjs';
|
|
7
|
+
import './chunk-KP7TYHWT.mjs';
|
|
8
|
+
import './chunk-YTWZVGCB.mjs';
|
|
9
|
+
import './chunk-V6EUBAIT.mjs';
|
|
10
|
+
import './chunk-BEZH7VEH.mjs';
|
|
11
|
+
import './chunk-XAXKV65G.mjs';
|
|
12
|
+
import './chunk-SA5LOGO3.mjs';
|
|
13
|
+
import './chunk-GQPTDQCL.mjs';
|
|
14
|
+
import './chunk-5YNRKI2C.mjs';
|
|
15
|
+
import './chunk-EFBDHH5P.mjs';
|
|
16
|
+
import './chunk-I53G4JAU.mjs';
|
|
17
|
+
import './chunk-HJSN7UYG.mjs';
|
|
18
|
+
import './chunk-LHKOSI2J.mjs';
|
|
19
|
+
import './chunk-XIHUI4KB.mjs';
|
|
20
|
+
import './chunk-3MXV3VHR.mjs';
|
|
21
|
+
import './chunk-EEBCDP36.mjs';
|
|
22
|
+
import './chunk-VTTRFF2C.mjs';
|
|
23
|
+
import './chunk-P5ZI2P2W.mjs';
|
|
24
|
+
import './chunk-GH4WQ22V.mjs';
|
|
25
|
+
import './chunk-3OH67G7R.mjs';
|
|
26
|
+
import './chunk-IPN7S4KX.mjs';
|
|
27
|
+
import './chunk-KAKQ74LS.mjs';
|
|
28
|
+
import './chunk-7GXJUJ24.mjs';
|
|
29
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
30
|
+
import './chunk-CITFCZKF.mjs';
|
|
31
|
+
import './chunk-RLOES5SX.mjs';
|
|
32
|
+
import './chunk-L6V6BST3.mjs';
|
|
33
|
+
import './chunk-SQJWAIF4.mjs';
|
|
34
|
+
import './chunk-FQBFZAWG.mjs';
|
|
35
|
+
import './chunk-BU4SAIC4.mjs';
|
|
36
|
+
import './chunk-GES7U2PM.mjs';
|
|
37
|
+
import './chunk-I54T6CQP.mjs';
|
|
38
|
+
import './chunk-I5B7RXU7.mjs';
|
|
39
|
+
import './chunk-Y4WPNHMC.mjs';
|
|
40
|
+
import './chunk-RZWWB2XR.mjs';
|
|
41
|
+
import './chunk-TGP5M5R7.mjs';
|
|
42
|
+
import './chunk-G6HRSGOU.mjs';
|
|
43
|
+
import './chunk-U2BKYEC7.mjs';
|
|
44
|
+
import './chunk-6HTGOXIK.mjs';
|
|
45
|
+
import './chunk-QHPYS427.mjs';
|
|
46
|
+
import './chunk-QYRNLLLI.mjs';
|
|
47
|
+
import './chunk-TDIK6NTV.mjs';
|
|
48
|
+
import './chunk-FB6463IN.mjs';
|
|
49
|
+
import './chunk-7GFE3PEY.mjs';
|
|
50
|
+
import './chunk-ZXNQEW43.mjs';
|
|
51
|
+
import './chunk-7V5IUP2T.mjs';
|
|
52
|
+
import './chunk-L5ORED7V.mjs';
|
|
53
|
+
import './chunk-X5CV2E2B.mjs';
|
|
54
|
+
import './chunk-A4L7YTKX.mjs';
|
|
55
|
+
import './chunk-U55XJEIG.mjs';
|
|
56
|
+
import './chunk-KOKM4PQN.mjs';
|
|
57
|
+
import './chunk-ORN5BLL7.mjs';
|
|
58
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
59
|
+
import './chunk-LQG5G2LY.mjs';
|
|
60
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
61
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
62
|
+
import './chunk-KKQC526K.mjs';
|
|
63
|
+
import './chunk-U476IXKQ.mjs';
|
|
64
|
+
import './chunk-MP7ABPTD.mjs';
|
|
65
|
+
import './chunk-J4IJTTEX.mjs';
|
|
66
|
+
import './chunk-TBC3XUL2.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../
|
|
3
|
-
import '../schema-DDauvDOv.js';
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-BZCGjfLn.js';
|
|
2
|
+
import '../engine-CFxPYqEk.js';
|
|
4
3
|
import '../adapters-pljAqmrC.js';
|
|
4
|
+
import '../schema-Jwt928nJ.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
|
-
import '../
|
|
6
|
+
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The settings of {@link createFilesystemDeviceStore}.
|
package/dist/sync/filesystem.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-
|
|
1
|
+
import { replayQueue, decodeKeptEntries, encodeKeptEntries, encodeQueueRecord, encodePosition, decodePosition, decodeDownloadTag, downloadOutOfOrder, encodeDownloadTag } from '../chunk-KJ3RTZDJ.mjs';
|
|
2
2
|
import { createSerial, QUEUE_COMPACTION_BYTES, DOWNLOAD_FRAME_BYTES, STORE_FRAME_LIMIT_BYTES } from '../chunk-6MSZ543Y.mjs';
|
|
3
3
|
import '../chunk-BUMREPLU.mjs';
|
|
4
|
-
import { createDurableDirectory } from '../chunk-
|
|
5
|
-
import '../chunk-BEZH7VEH.mjs';
|
|
4
|
+
import { createDurableDirectory } from '../chunk-HHBUCIUY.mjs';
|
|
6
5
|
import '../chunk-HLPRHOSO.mjs';
|
|
7
6
|
import '../chunk-QDZJM7NI.mjs';
|
|
7
|
+
import '../chunk-BEZH7VEH.mjs';
|
|
8
8
|
import { crc32 } from '../chunk-7GXJUJ24.mjs';
|
|
9
9
|
import '../chunk-Q2UL2TPC.mjs';
|
|
10
10
|
import '../chunk-ZXNQEW43.mjs';
|
|
11
11
|
import '../chunk-U476IXKQ.mjs';
|
|
12
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
12
|
+
import { NarsilError, ErrorCodes } from '../chunk-MP7ABPTD.mjs';
|
|
13
|
+
import '../chunk-J4IJTTEX.mjs';
|
|
14
|
+
import '../chunk-TBC3XUL2.mjs';
|
|
15
15
|
|
|
16
16
|
// src/sync/device/stores/frames.ts
|
|
17
17
|
var FRAME_HEADER_BYTES = 8;
|
package/dist/sync/indexeddb.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as DeviceSyncStore } from '../types-
|
|
2
|
-
import '../
|
|
3
|
-
import '../schema-DDauvDOv.js';
|
|
1
|
+
import { d as DeviceSyncStore } from '../types-BZCGjfLn.js';
|
|
2
|
+
import '../engine-CFxPYqEk.js';
|
|
4
3
|
import '../adapters-pljAqmrC.js';
|
|
4
|
+
import '../schema-Jwt928nJ.js';
|
|
5
5
|
import '../synonyms-CpOAHPa-.js';
|
|
6
|
-
import '../
|
|
6
|
+
import '../query-suggestions-CBYkrQ5T.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The settings of {@link createIndexedDBDeviceStore}.
|
package/dist/sync/indexeddb.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-
|
|
1
|
+
import { decodePosition, downloadOutOfOrder, decodeKeptEntries, encodeKeptEntries, encodePosition } from '../chunk-KJ3RTZDJ.mjs';
|
|
2
2
|
import { DEFAULT_INDEXEDDB_DEVICE_STORE_NAME, createSerial, INDEXEDDB_DEVICE_STORE_BLOCKED_TIMEOUT_MS } from '../chunk-6MSZ543Y.mjs';
|
|
3
3
|
import '../chunk-BUMREPLU.mjs';
|
|
4
|
-
import { NarsilError, ErrorCodes } from '../chunk-
|
|
4
|
+
import { NarsilError, ErrorCodes } from '../chunk-MP7ABPTD.mjs';
|
|
5
5
|
|
|
6
6
|
// src/sync/device/stores/indexeddb-requests.ts
|
|
7
7
|
var META_STORE = "meta";
|
package/dist/sync.browser.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { createByteReader } from './browser/chunk-DSXIBE6N.mjs';
|
|
2
|
-
import { readSnapshotArchive } from './browser/chunk-
|
|
3
|
-
import './browser/chunk-
|
|
4
|
-
import './browser/chunk-4PD752F6.mjs';
|
|
5
|
-
import { encodeDocument, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, decodeIndexConfiguration, getLanguage } from './browser/chunk-7TTWXUH6.mjs';
|
|
6
|
-
import './browser/chunk-RA6LSBCM.mjs';
|
|
7
|
-
import './browser/chunk-3U3QR5YP.mjs';
|
|
8
|
-
import './browser/chunk-7MEYN7V6.mjs';
|
|
2
|
+
import { readSnapshotArchive } from './browser/chunk-2TI4SSUP.mjs';
|
|
3
|
+
import './browser/chunk-2CFI5VVV.mjs';
|
|
9
4
|
import { isSyncEpoch } from './browser/chunk-YJHGOJAC.mjs';
|
|
10
|
-
import
|
|
5
|
+
import './browser/chunk-7IGKGWSQ.mjs';
|
|
6
|
+
import './browser/chunk-23XRXIBW.mjs';
|
|
7
|
+
import { encodeDocument, hasLanguage, hasTokenizer, hasStopWords, readHeapStatistics, decodeIndexConfiguration, getLanguage } from './browser/chunk-STOWQFT3.mjs';
|
|
8
|
+
import './browser/chunk-RA6LSBCM.mjs';
|
|
9
|
+
import './browser/chunk-WN464PTL.mjs';
|
|
10
|
+
import './browser/chunk-NXQG7DRA.mjs';
|
|
11
|
+
import './browser/chunk-GPPOG6PT.mjs';
|
|
12
|
+
import { NarsilError, ErrorCodes, ClientErrorCodes, ServerErrorCodes, describeError } from './browser/chunk-SRMZXJSL.mjs';
|
|
11
13
|
import { decode, encode } from '@msgpack/msgpack';
|
|
12
14
|
|
|
13
15
|
// src/json-encoding.ts
|
|
@@ -93,11 +95,13 @@ function createAdminOperations(transport) {
|
|
|
93
95
|
await transport.json({ method: "POST", path: `${indexPath(indexName)}/_checkpoint`, options });
|
|
94
96
|
},
|
|
95
97
|
snapshot(indexName, options) {
|
|
98
|
+
const { queryHistory, ...request } = options ?? {};
|
|
96
99
|
return transport.stream({
|
|
97
100
|
method: "GET",
|
|
98
101
|
path: `${indexPath(indexName)}/snapshot`,
|
|
102
|
+
...queryHistory === true ? { query: { queryHistory: "true" } } : {},
|
|
99
103
|
defaultTimeoutMs: NO_TIMEOUT,
|
|
100
|
-
options
|
|
104
|
+
options: request
|
|
101
105
|
});
|
|
102
106
|
},
|
|
103
107
|
async restore(indexName, data, options) {
|
|
@@ -200,7 +204,9 @@ function createBackupOperations(transport) {
|
|
|
200
204
|
}
|
|
201
205
|
return {
|
|
202
206
|
createBackup(indexName, backupName, options) {
|
|
203
|
-
|
|
207
|
+
const { queryHistory, ...request } = options ?? {};
|
|
208
|
+
const body = { backup: backupName, ...queryHistory === true ? { queryHistory } : {} };
|
|
209
|
+
return postTask(`${indexPath(indexName)}/backups`, body, request);
|
|
204
210
|
},
|
|
205
211
|
async listBackups(options) {
|
|
206
212
|
const path = "/backups";
|
|
@@ -770,6 +776,62 @@ function createIndexOperations(transport) {
|
|
|
770
776
|
};
|
|
771
777
|
}
|
|
772
778
|
|
|
779
|
+
// src/client/query-suggestions.ts
|
|
780
|
+
function createQuerySuggestionOperations(transport) {
|
|
781
|
+
const pathOf = (indexName, route = "") => `${indexPath(indexName)}/query-suggestions${route}`;
|
|
782
|
+
function send(method, path, body, options) {
|
|
783
|
+
return transport.json({
|
|
784
|
+
method,
|
|
785
|
+
path,
|
|
786
|
+
...body === void 0 ? {} : { body: encodeJson(body), contentType: "application/json" },
|
|
787
|
+
options
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
return {
|
|
791
|
+
async updateQuerySuggestions(indexName, setting, options) {
|
|
792
|
+
await send("PUT", pathOf(indexName), setting, options);
|
|
793
|
+
},
|
|
794
|
+
async querySuggestionsStatus(indexName, options) {
|
|
795
|
+
const path = pathOf(indexName);
|
|
796
|
+
return readBody(await send("GET", path, void 0, options), path);
|
|
797
|
+
},
|
|
798
|
+
async recordQuery(indexName, query, options) {
|
|
799
|
+
const path = pathOf(indexName, "/record");
|
|
800
|
+
return readBody(await send("POST", path, { query }, options), path);
|
|
801
|
+
},
|
|
802
|
+
async buildQuerySuggestions(indexName, options) {
|
|
803
|
+
const path = pathOf(indexName, "/build");
|
|
804
|
+
return readBody(await send("POST", path, void 0, options), path);
|
|
805
|
+
},
|
|
806
|
+
async previewQuerySuggestions(indexName, limit, options) {
|
|
807
|
+
const path = pathOf(indexName, "/preview");
|
|
808
|
+
const payload = await transport.json({
|
|
809
|
+
method: "GET",
|
|
810
|
+
path,
|
|
811
|
+
...limit === void 0 ? {} : { query: { limit: String(limit) } },
|
|
812
|
+
options
|
|
813
|
+
});
|
|
814
|
+
return readBody(payload, path);
|
|
815
|
+
},
|
|
816
|
+
async readQueryBans(indexName, options) {
|
|
817
|
+
const path = pathOf(indexName, "/bans");
|
|
818
|
+
return readArray(await send("GET", path, void 0, options), "bans", path);
|
|
819
|
+
},
|
|
820
|
+
async replaceQueryBans(indexName, bans, options) {
|
|
821
|
+
const path = pathOf(indexName, "/bans");
|
|
822
|
+
return readArray(await send("PUT", path, { bans }, options), "bans", path);
|
|
823
|
+
},
|
|
824
|
+
async removeQuery(indexName, query, options) {
|
|
825
|
+
const path = pathOf(indexName, "/remove");
|
|
826
|
+
return readNumber(await send("POST", path, { query }, options), "suggestionIndexes", path);
|
|
827
|
+
},
|
|
828
|
+
async addManualSuggestion(indexName, suggestion, options) {
|
|
829
|
+
const path = pathOf(indexName, "/manual");
|
|
830
|
+
return readString(await send("POST", path, suggestion, options), "indexName", path);
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
|
|
773
835
|
// src/client/search.ts
|
|
774
836
|
function createSearchOperations(transport) {
|
|
775
837
|
async function post(path, params, options) {
|
|
@@ -973,7 +1035,8 @@ function createNarsilClient(options) {
|
|
|
973
1035
|
...createAdminOperations(transport),
|
|
974
1036
|
...createBackupOperations(transport),
|
|
975
1037
|
...createServerOperations(transport),
|
|
976
|
-
...createSyncSettingOperations(transport)
|
|
1038
|
+
...createSyncSettingOperations(transport),
|
|
1039
|
+
...createQuerySuggestionOperations(transport)
|
|
977
1040
|
};
|
|
978
1041
|
}
|
|
979
1042
|
|
package/dist/sync.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as DeviceSyncOptions, a as DeviceSync } from './types-
|
|
2
|
-
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-
|
|
3
|
-
import './
|
|
4
|
-
import './schema-DDauvDOv.js';
|
|
1
|
+
import { D as DeviceSyncOptions, a as DeviceSync } from './types-BZCGjfLn.js';
|
|
2
|
+
export { b as DevicePosition, c as DeviceSyncStatus, d as DeviceSyncStore, K as KeptEntry, Q as QueuedWrite, R as RefusedWrite, S as SavedDownload, e as SnapshotMemoryCheck, U as UploadOutcome } from './types-BZCGjfLn.js';
|
|
3
|
+
import './engine-CFxPYqEk.js';
|
|
5
4
|
import './adapters-pljAqmrC.js';
|
|
5
|
+
import './schema-Jwt928nJ.js';
|
|
6
6
|
import './synonyms-CpOAHPa-.js';
|
|
7
|
-
import './
|
|
7
|
+
import './query-suggestions-CBYkrQ5T.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Keeps one index on a device in step with a server that has device sync on for that index.
|