@retrivora-ai/rag-engine 2.5.3 → 2.5.5
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/FREE_TIER_ARCHITECTURE.md +232 -232
- package/README.md +206 -206
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +129 -82
- package/dist/handlers/index.mjs +11888 -24
- package/dist/{BatchProcessor-B8OLSahY.d.ts → index-8vijDPfT.d.ts} +395 -379
- package/dist/{BatchProcessor-OVOIlNfK.d.mts → index-BKOyhayB.d.mts} +395 -379
- package/dist/{index-BSzhBMdH.d.mts → index-DE8qPWpI.d.mts} +1 -1
- package/dist/{index-T-TH-wJd.d.ts → index-DkOhRqEc.d.ts} +1 -1
- package/dist/index.css +851 -1352
- package/dist/index.d.mts +54 -30
- package/dist/index.d.ts +54 -30
- package/dist/index.js +3779 -3790
- package/dist/index.min.css +2 -2
- package/dist/index.mjs +1641 -310
- package/dist/server.d.mts +32 -31
- package/dist/server.d.ts +32 -31
- package/dist/server.js +151 -84
- package/dist/server.mjs +12444 -371
- package/package.json +157 -157
- package/dist/1c-EBREIWTW.mjs +0 -146
- package/dist/ChromaDBProvider-4RPJN7Y3.mjs +0 -8
- package/dist/ChromaDBProvider-G2V6SE7V.mjs +0 -8
- package/dist/MilvusProvider-FWDM6SB6.mjs +0 -8
- package/dist/MilvusProvider-WJLLZ6TW.mjs +0 -8
- package/dist/MongoDBProvider-QSERELZX.mjs +0 -8
- package/dist/MongoDBProvider-QXKT6PP6.mjs +0 -8
- package/dist/MultiTablePostgresProvider-2X2DMRKH.mjs +0 -9
- package/dist/MultiTablePostgresProvider-JF2HEUDZ.mjs +0 -9
- package/dist/PineconeProvider-Q5SD254K.mjs +0 -10
- package/dist/PineconeProvider-SM6ULSYT.mjs +0 -10
- package/dist/PostgreSQLProvider-JQMCNHRO.mjs +0 -8
- package/dist/PostgreSQLProvider-YET2HBKQ.mjs +0 -8
- package/dist/QdrantProvider-6MNFPEVC.mjs +0 -8
- package/dist/QdrantProvider-OHKKKERB.mjs +0 -8
- package/dist/RedisProvider-ERQL6AEB.mjs +0 -8
- package/dist/RedisProvider-XXXBWC4L.mjs +0 -8
- package/dist/SimpleGraphProvider-3FBIK4SP.mjs +0 -70
- package/dist/SimpleGraphProvider-OP3HAJJM.mjs +0 -70
- package/dist/UniversalVectorProvider-INM3KH5F.mjs +0 -9
- package/dist/UniversalVectorProvider-JNGYSY6K.mjs +0 -9
- package/dist/WeaviateProvider-VHWWICCC.mjs +0 -8
- package/dist/WeaviateProvider-WILDWYCU.mjs +0 -8
- package/dist/abap-WNGGW2VB.mjs +0 -7
- package/dist/abnf-BGGAKJOG.mjs +0 -80
- package/dist/abnf-CLVQL7IW.mjs +0 -7
- package/dist/accesslog-AW4TMVBR.mjs +0 -102
- package/dist/actionscript-LDBW7DZN.mjs +0 -9
- package/dist/actionscript-SJQA7YO2.mjs +0 -92
- package/dist/ada-5NUV4FXL.mjs +0 -7
- package/dist/ada-C4SZDD2N.mjs +0 -153
- package/dist/agda-UD47ECFZ.mjs +0 -7
- package/dist/al-TFIDG74E.mjs +0 -7
- package/dist/all-XHREXETZ.mjs +0 -305
- package/dist/angelscript-ACNK4CYA.mjs +0 -124
- package/dist/antlr4-G6CQUZ2D.mjs +0 -7
- package/dist/apache-XDWBIP3F.mjs +0 -84
- package/dist/apacheconf-Y65Q5KSY.mjs +0 -7
- package/dist/apex-EWTMFSY5.mjs +0 -9
- package/dist/apl-ZJEOL4BM.mjs +0 -7
- package/dist/applescript-LSSKJYWQ.mjs +0 -146
- package/dist/applescript-TDKWHEBN.mjs +0 -7
- package/dist/aql-C7I3QNPK.mjs +0 -7
- package/dist/arcade-EYNEVUEM.mjs +0 -154
- package/dist/arduino-JOVHFA3R.mjs +0 -10
- package/dist/arduino-WPJOZF2Q.mjs +0 -430
- package/dist/arff-KZ7QGS44.mjs +0 -7
- package/dist/armasm-AEPI2UBM.mjs +0 -101
- package/dist/armasm-I36FUMNF.mjs +0 -7
- package/dist/arturo-BQ3VRFKF.mjs +0 -7
- package/dist/asciidoc-7THCKEEE.mjs +0 -7
- package/dist/asciidoc-FCEOLYRF.mjs +0 -283
- package/dist/asm6502-MQSXKVKX.mjs +0 -7
- package/dist/asmatmel-VYPLCNX4.mjs +0 -7
- package/dist/aspectj-K3JIUMID.mjs +0 -161
- package/dist/aspnet-YIFISSHD.mjs +0 -10
- package/dist/autohotkey-3FUCNGDY.mjs +0 -7
- package/dist/autohotkey-S675MA75.mjs +0 -84
- package/dist/autoit-6EC4LIFF.mjs +0 -7
- package/dist/autoit-OYRPIUEX.mjs +0 -168
- package/dist/avisynth-SJN5SPLC.mjs +0 -7
- package/dist/avrasm-6YKZF5NN.mjs +0 -69
- package/dist/avro-idl-DU6N3NTX.mjs +0 -7
- package/dist/awk-DFHXRUGP.mjs +0 -74
- package/dist/awk-EHJ72KGN.mjs +0 -7
- package/dist/axapta-J6O4OPTW.mjs +0 -175
- package/dist/bash-L47TFVTQ.mjs +0 -144
- package/dist/bash-RW5QGICG.mjs +0 -7
- package/dist/basic-KRHBUH4Q.mjs +0 -7
- package/dist/basic-XCFCUNQJ.mjs +0 -54
- package/dist/batch-XOXCYEL4.mjs +0 -7
- package/dist/bbcode-HGCFVVJQ.mjs +0 -7
- package/dist/bbj-MFUEOWFL.mjs +0 -7
- package/dist/bicep-COPGQHAW.mjs +0 -7
- package/dist/birb-RNKSLPQ7.mjs +0 -8
- package/dist/bison-P5JHD2NT.mjs +0 -9
- package/dist/bnf-22GAP3DX.mjs +0 -40
- package/dist/bnf-CZNGBIRM.mjs +0 -7
- package/dist/bqn-C72UTBAF.mjs +0 -7
- package/dist/brainfuck-RX67ZTKJ.mjs +0 -7
- package/dist/brainfuck-XOLDR7KM.mjs +0 -48
- package/dist/brightscript-7QASPOYI.mjs +0 -7
- package/dist/bro-AI3KSENM.mjs +0 -7
- package/dist/bsl-DRVDLKP6.mjs +0 -7
- package/dist/c-L6PNSVOV.mjs +0 -253
- package/dist/c-VSCSOGCO.mjs +0 -8
- package/dist/c-like-3HOZD2N5.mjs +0 -430
- package/dist/cal-I27UVPAA.mjs +0 -101
- package/dist/capnproto-OHUPLF3N.mjs +0 -62
- package/dist/ceylon-HGLYEJK7.mjs +0 -73
- package/dist/cfscript-MFVE7RSZ.mjs +0 -8
- package/dist/chaiscript-JMR44JSQ.mjs +0 -10
- package/dist/chunk-24KBROYU.mjs +0 -64
- package/dist/chunk-2AL6NDUD.mjs +0 -69
- package/dist/chunk-2ZGMRLS2.mjs +0 -73
- package/dist/chunk-353NWWBK.mjs +0 -79
- package/dist/chunk-36GPRAF6.mjs +0 -102
- package/dist/chunk-37YNNB3W.mjs +0 -61
- package/dist/chunk-3B67MLYC.mjs +0 -197
- package/dist/chunk-3JZPJ5J4.mjs +0 -82
- package/dist/chunk-3LVEBYSC.mjs +0 -374
- package/dist/chunk-3P2MI7HF.mjs +0 -336
- package/dist/chunk-3RZAZFEU.mjs +0 -177
- package/dist/chunk-3SIHJKB4.mjs +0 -34
- package/dist/chunk-3YYX3D4T.mjs +0 -156
- package/dist/chunk-425XUIWE.mjs +0 -61
- package/dist/chunk-44M35G7Z.mjs +0 -54
- package/dist/chunk-45ZOXJFQ.mjs +0 -29
- package/dist/chunk-46PPCH2N.mjs +0 -52
- package/dist/chunk-4GPCGAFU.mjs +0 -318
- package/dist/chunk-4H4VBYBC.mjs +0 -31
- package/dist/chunk-4MS5JQEH.mjs +0 -49
- package/dist/chunk-4RZ3ACXD.mjs +0 -30
- package/dist/chunk-4S53M4C4.mjs +0 -83
- package/dist/chunk-4VWIH6DQ.mjs +0 -47
- package/dist/chunk-4X2CL3IQ.mjs +0 -109
- package/dist/chunk-4XWE2SWC.mjs +0 -52
- package/dist/chunk-53KZDXRW.mjs +0 -143
- package/dist/chunk-53Q6ESIL.mjs +0 -41
- package/dist/chunk-54WCNRZJ.mjs +0 -29
- package/dist/chunk-56226XXM.mjs +0 -165
- package/dist/chunk-56OI6W4H.mjs +0 -29
- package/dist/chunk-5BDPKJ6Y.mjs +0 -306
- package/dist/chunk-5F42BHTW.mjs +0 -112
- package/dist/chunk-5ID4EPQA.mjs +0 -131
- package/dist/chunk-5IXLUSDV.mjs +0 -53
- package/dist/chunk-5RROYZHX.mjs +0 -28
- package/dist/chunk-5UV7M5EU.mjs +0 -41
- package/dist/chunk-5XDBEAKK.mjs +0 -48
- package/dist/chunk-62WBBPBE.mjs +0 -651
- package/dist/chunk-6CLUTKPO.mjs +0 -57
- package/dist/chunk-6J2OLOZQ.mjs +0 -56
- package/dist/chunk-6J5SU6C7.mjs +0 -73
- package/dist/chunk-6OIK4NDX.mjs +0 -20
- package/dist/chunk-6TDWOHUA.mjs +0 -112
- package/dist/chunk-6WEP476E.mjs +0 -129
- package/dist/chunk-6WT5UGSS.mjs +0 -64
- package/dist/chunk-6YA4NYTY.mjs +0 -41
- package/dist/chunk-7ACPC4WG.mjs +0 -105
- package/dist/chunk-7EKXO46A.mjs +0 -39
- package/dist/chunk-7EWVBXEM.mjs +0 -29
- package/dist/chunk-7JAAWZ6M.mjs +0 -22
- package/dist/chunk-7K2L66XX.mjs +0 -73
- package/dist/chunk-7NFKVMAZ.mjs +0 -98
- package/dist/chunk-7PUPFWKS.mjs +0 -68
- package/dist/chunk-7YES2STE.mjs +0 -34
- package/dist/chunk-AD5VQQXO.mjs +0 -28
- package/dist/chunk-AGBAETQL.mjs +0 -50
- package/dist/chunk-ARO6I5WR.mjs +0 -122
- package/dist/chunk-ATH2U2VT.mjs +0 -38
- package/dist/chunk-AVHZ6YNV.mjs +0 -39
- package/dist/chunk-AZNYSXF2.mjs +0 -283
- package/dist/chunk-AZR3CC74.mjs +0 -23305
- package/dist/chunk-AZVF7NXO.mjs +0 -107
- package/dist/chunk-B36KGPR3.mjs +0 -36
- package/dist/chunk-B4AXIUM7.mjs +0 -49
- package/dist/chunk-B5SMFA6Y.mjs +0 -356
- package/dist/chunk-BAOD4KDW.mjs +0 -21
- package/dist/chunk-BEPLYQBS.mjs +0 -89
- package/dist/chunk-BMS3P73V.mjs +0 -80
- package/dist/chunk-BNOPQCZW.mjs +0 -238
- package/dist/chunk-BNUG5H34.mjs +0 -40
- package/dist/chunk-BR6K55MU.mjs +0 -36
- package/dist/chunk-BTVRNVQM.mjs +0 -55
- package/dist/chunk-BZCXV3LG.mjs +0 -107
- package/dist/chunk-C2A43JHI.mjs +0 -37
- package/dist/chunk-C2S4QV4U.mjs +0 -87
- package/dist/chunk-C32XOSS6.mjs +0 -88
- package/dist/chunk-C5ALZKTS.mjs +0 -72
- package/dist/chunk-C7KTMGHZ.mjs +0 -29
- package/dist/chunk-CASPYOUV.mjs +0 -33
- package/dist/chunk-CJLO3EDH.mjs +0 -157
- package/dist/chunk-CKTJQRFM.mjs +0 -30
- package/dist/chunk-COLGDCFR.mjs +0 -37
- package/dist/chunk-CX776XAS.mjs +0 -70
- package/dist/chunk-CYBAJKNA.mjs +0 -96
- package/dist/chunk-CYHP3BTO.mjs +0 -43
- package/dist/chunk-D2X6GS5O.mjs +0 -138
- package/dist/chunk-DA7JAJTU.mjs +0 -37
- package/dist/chunk-DABY3J56.mjs +0 -22
- package/dist/chunk-DDAURLDF.mjs +0 -66
- package/dist/chunk-DGDYNWYR.mjs +0 -65
- package/dist/chunk-DGRKZN3X.mjs +0 -158
- package/dist/chunk-DI4VFT7Q.mjs +0 -41
- package/dist/chunk-DM36CSZO.mjs +0 -191
- package/dist/chunk-DOENMU66.mjs +0 -58
- package/dist/chunk-DPLQGHIH.mjs +0 -281
- package/dist/chunk-DRJEECIQ.mjs +0 -72
- package/dist/chunk-DT2OSTVS.mjs +0 -54
- package/dist/chunk-DXT2K7WR.mjs +0 -56
- package/dist/chunk-E2526GUT.mjs +0 -30
- package/dist/chunk-E26IAM43.mjs +0 -145
- package/dist/chunk-ECEYM4LR.mjs +0 -55
- package/dist/chunk-ECP2LGXT.mjs +0 -35
- package/dist/chunk-EFECPLWP.mjs +0 -18
- package/dist/chunk-EM77UBEU.mjs +0 -68
- package/dist/chunk-ENBRIH7E.mjs +0 -60
- package/dist/chunk-EPFSENEW.mjs +0 -28
- package/dist/chunk-EVS3BFHU.mjs +0 -156
- package/dist/chunk-EZZI6VVY.mjs +0 -134
- package/dist/chunk-F5A7WWU7.mjs +0 -31
- package/dist/chunk-F5BFQTNM.mjs +0 -207
- package/dist/chunk-F6MFGVUD.mjs +0 -69
- package/dist/chunk-FGXIA3R7.mjs +0 -37
- package/dist/chunk-FHVJNAYD.mjs +0 -100
- package/dist/chunk-FKSBUL4E.mjs +0 -74
- package/dist/chunk-FLJJMJSJ.mjs +0 -87
- package/dist/chunk-FLOHZEYO.mjs +0 -36
- package/dist/chunk-FNLDG434.mjs +0 -72
- package/dist/chunk-FOVZHPLR.mjs +0 -27
- package/dist/chunk-FWGKSVXV.mjs +0 -34
- package/dist/chunk-FZF3BLSB.mjs +0 -96
- package/dist/chunk-G3ZDT4R5.mjs +0 -318
- package/dist/chunk-G5XSLDAB.mjs +0 -234
- package/dist/chunk-G73FQRRH.mjs +0 -4720
- package/dist/chunk-GFAAOIJ7.mjs +0 -56
- package/dist/chunk-GKTJV6TW.mjs +0 -81
- package/dist/chunk-GLIHIGNW.mjs +0 -52
- package/dist/chunk-GMDOMJ2U.mjs +0 -89
- package/dist/chunk-GP2AJQRQ.mjs +0 -107
- package/dist/chunk-GUI4PF6W.mjs +0 -59
- package/dist/chunk-GW3C7ZEN.mjs +0 -44
- package/dist/chunk-GWULZIAC.mjs +0 -49
- package/dist/chunk-GYHTSAUQ.mjs +0 -64
- package/dist/chunk-GYN4DEP4.mjs +0 -58
- package/dist/chunk-HAWFTDSB.mjs +0 -20
- package/dist/chunk-HIFPVOLS.mjs +0 -88
- package/dist/chunk-HMDPGJHZ.mjs +0 -33
- package/dist/chunk-HRB4D3AQ.mjs +0 -40
- package/dist/chunk-HSKFBW5N.mjs +0 -35
- package/dist/chunk-HTNRSSPJ.mjs +0 -145
- package/dist/chunk-HUMYU6YT.mjs +0 -107
- package/dist/chunk-HV7ENVP6.mjs +0 -53
- package/dist/chunk-HWKTI4K5.mjs +0 -58
- package/dist/chunk-HZDVG65R.mjs +0 -211
- package/dist/chunk-IJARWX2J.mjs +0 -31
- package/dist/chunk-IKEYRVNO.mjs +0 -146
- package/dist/chunk-IKTUEH2L.mjs +0 -54
- package/dist/chunk-IKXNCR5M.mjs +0 -40
- package/dist/chunk-ILV4WMVY.mjs +0 -144
- package/dist/chunk-IMP6FUCY.mjs +0 -30
- package/dist/chunk-IN7MHMT7.mjs +0 -152
- package/dist/chunk-IOSXMLA3.mjs +0 -51
- package/dist/chunk-IZBADY66.mjs +0 -141
- package/dist/chunk-J4ZJ66CR.mjs +0 -35
- package/dist/chunk-J5HJOWHG.mjs +0 -89
- package/dist/chunk-J6TZWF5T.mjs +0 -28
- package/dist/chunk-J74VV3TW.mjs +0 -90
- package/dist/chunk-JEEODZGS.mjs +0 -106
- package/dist/chunk-JL6ZSWZP.mjs +0 -37
- package/dist/chunk-JRQWSJNF.mjs +0 -202
- package/dist/chunk-JS7TBJC3.mjs +0 -50
- package/dist/chunk-JWQFZ37Q.mjs +0 -27
- package/dist/chunk-JYZAXNEX.mjs +0 -72
- package/dist/chunk-JZDXZFTC.mjs +0 -19
- package/dist/chunk-K24TPR3X.mjs +0 -72
- package/dist/chunk-K4PNNFZZ.mjs +0 -98
- package/dist/chunk-KCTI32UG.mjs +0 -57
- package/dist/chunk-KD7Y3NQE.mjs +0 -70
- package/dist/chunk-KHAAYTKK.mjs +0 -107
- package/dist/chunk-KJWL6BH2.mjs +0 -63
- package/dist/chunk-KK3VUFRU.mjs +0 -65
- package/dist/chunk-KLF6W6OK.mjs +0 -96
- package/dist/chunk-KO2RCBMO.mjs +0 -53
- package/dist/chunk-KUL33RN6.mjs +0 -23
- package/dist/chunk-KUPY2M4R.mjs +0 -39
- package/dist/chunk-KWN4H2SK.mjs +0 -78
- package/dist/chunk-KYHHBFFU.mjs +0 -43
- package/dist/chunk-L5J5BRSV.mjs +0 -26
- package/dist/chunk-LAL4U5ZY.mjs +0 -87
- package/dist/chunk-LF5D4CD4.mjs +0 -94
- package/dist/chunk-LHSMOUWA.mjs +0 -36
- package/dist/chunk-LL5HM2IL.mjs +0 -22
- package/dist/chunk-LONF3WLA.mjs +0 -61
- package/dist/chunk-LPIMB7BN.mjs +0 -33
- package/dist/chunk-LSSEZBDR.mjs +0 -37
- package/dist/chunk-LYHCKUNF.mjs +0 -112
- package/dist/chunk-M5IOO2NE.mjs +0 -77
- package/dist/chunk-MBCXE2JX.mjs +0 -43
- package/dist/chunk-MBEKXI2X.mjs +0 -23
- package/dist/chunk-MFIWWUC7.mjs +0 -152
- package/dist/chunk-MGWM63L3.mjs +0 -92
- package/dist/chunk-MQASXSQP.mjs +0 -113
- package/dist/chunk-MS4V6IZO.mjs +0 -931
- package/dist/chunk-MSLEAWCD.mjs +0 -21
- package/dist/chunk-MU2WX5MJ.mjs +0 -116
- package/dist/chunk-MUVFBHMZ.mjs +0 -97
- package/dist/chunk-MWICNCB2.mjs +0 -157
- package/dist/chunk-MZJMWUUV.mjs +0 -81
- package/dist/chunk-N2KO4GER.mjs +0 -127
- package/dist/chunk-N54YTFBN.mjs +0 -76
- package/dist/chunk-ND3IPLH2.mjs +0 -95
- package/dist/chunk-NF5WZDWP.mjs +0 -105
- package/dist/chunk-NFOQ23PO.mjs +0 -67
- package/dist/chunk-NLAJ7DKF.mjs +0 -36
- package/dist/chunk-NNDFANAN.mjs +0 -38
- package/dist/chunk-NRA5D7QO.mjs +0 -93
- package/dist/chunk-NROFUE73.mjs +0 -50
- package/dist/chunk-NTUTBJ7Y.mjs +0 -72
- package/dist/chunk-NXICO2UA.mjs +0 -64
- package/dist/chunk-NYBB6PRX.mjs +0 -31
- package/dist/chunk-O2ZYAHJD.mjs +0 -51
- package/dist/chunk-O3H6GV3Y.mjs +0 -65
- package/dist/chunk-OB4PPPH2.mjs +0 -42
- package/dist/chunk-OKIWJ7FA.mjs +0 -236
- package/dist/chunk-ORVO4EZJ.mjs +0 -21
- package/dist/chunk-OUYML22K.mjs +0 -57
- package/dist/chunk-OZYKOI26.mjs +0 -91
- package/dist/chunk-P3ELVMCC.mjs +0 -152
- package/dist/chunk-P6TDRTZQ.mjs +0 -57
- package/dist/chunk-PG7O6BY6.mjs +0 -60
- package/dist/chunk-PGCE2UE5.mjs +0 -22
- package/dist/chunk-PIMBXK6H.mjs +0 -51
- package/dist/chunk-PL6S4P4B.mjs +0 -73
- package/dist/chunk-POOWU2HR.mjs +0 -211
- package/dist/chunk-PQDAGF45.mjs +0 -93
- package/dist/chunk-PVILVBTP.mjs +0 -29
- package/dist/chunk-PYI2JMTB.mjs +0 -96
- package/dist/chunk-Q2QAZZT2.mjs +0 -31
- package/dist/chunk-QAOPNIPD.mjs +0 -34
- package/dist/chunk-QEMWQTNW.mjs +0 -98
- package/dist/chunk-QGVNUT2H.mjs +0 -59
- package/dist/chunk-QHF5K7KB.mjs +0 -107
- package/dist/chunk-QJWOEPXO.mjs +0 -238
- package/dist/chunk-QOBL2CCS.mjs +0 -30
- package/dist/chunk-QOGP6RKQ.mjs +0 -145
- package/dist/chunk-QOPA32CS.mjs +0 -57
- package/dist/chunk-QOSBCNOL.mjs +0 -76
- package/dist/chunk-QP7Q6T4D.mjs +0 -146
- package/dist/chunk-QUC5WXRL.mjs +0 -61
- package/dist/chunk-R2ACZM6S.mjs +0 -39
- package/dist/chunk-R4HNDMW7.mjs +0 -36
- package/dist/chunk-R5QMEYGM.mjs +0 -105
- package/dist/chunk-RBXXHJS3.mjs +0 -44
- package/dist/chunk-RFWLCVJI.mjs +0 -53
- package/dist/chunk-RJHP2TRO.mjs +0 -342
- package/dist/chunk-RL545ZDL.mjs +0 -57
- package/dist/chunk-RM2AN4WX.mjs +0 -19
- package/dist/chunk-RV2EV72B.mjs +0 -17
- package/dist/chunk-RV63XGV4.mjs +0 -33
- package/dist/chunk-RVXIWAZN.mjs +0 -50
- package/dist/chunk-RYEHGIGZ.mjs +0 -37
- package/dist/chunk-S45OTSGB.mjs +0 -33
- package/dist/chunk-S4AFUAMK.mjs +0 -46
- package/dist/chunk-SA7NQFBH.mjs +0 -55
- package/dist/chunk-SBC7VBZN.mjs +0 -229
- package/dist/chunk-SCH4R4AJ.mjs +0 -154
- package/dist/chunk-SCXMB3X3.mjs +0 -93
- package/dist/chunk-SK64537N.mjs +0 -51
- package/dist/chunk-SKR2H5PP.mjs +0 -49
- package/dist/chunk-SNL4I326.mjs +0 -100
- package/dist/chunk-SPLIZTXR.mjs +0 -32
- package/dist/chunk-SRYYJW6L.mjs +0 -124
- package/dist/chunk-T37HUHMP.mjs +0 -89
- package/dist/chunk-T5QKF6NH.mjs +0 -41
- package/dist/chunk-TDYA7OZL.mjs +0 -141
- package/dist/chunk-TK3ZBYU3.mjs +0 -81
- package/dist/chunk-TNDIFWEF.mjs +0 -46
- package/dist/chunk-TYOOLW7O.mjs +0 -86
- package/dist/chunk-TZDJJPDB.mjs +0 -97
- package/dist/chunk-U2Y2KG4V.mjs +0 -38
- package/dist/chunk-U33ZZ3Q5.mjs +0 -1193
- package/dist/chunk-U766TQKY.mjs +0 -66
- package/dist/chunk-UAMSMWXX.mjs +0 -26
- package/dist/chunk-UBG4IN2Y.mjs +0 -152
- package/dist/chunk-UFW3LUKC.mjs +0 -25
- package/dist/chunk-UM4DIO3H.mjs +0 -19
- package/dist/chunk-UP4YFQ5C.mjs +0 -186
- package/dist/chunk-UP6R6FXP.mjs +0 -46
- package/dist/chunk-USYLX2KE.mjs +0 -8691
- package/dist/chunk-UUIR3O4R.mjs +0 -24
- package/dist/chunk-UYNKZWSI.mjs +0 -49
- package/dist/chunk-UZ64LFY3.mjs +0 -19
- package/dist/chunk-V5FEJO5H.mjs +0 -203
- package/dist/chunk-V6KLBTID.mjs +0 -47
- package/dist/chunk-VAWLUSHA.mjs +0 -62
- package/dist/chunk-VCRH6KHB.mjs +0 -43
- package/dist/chunk-VKUTQHLL.mjs +0 -69
- package/dist/chunk-VLTOV7HT.mjs +0 -81
- package/dist/chunk-VO56WRKB.mjs +0 -29
- package/dist/chunk-VOEQS3R4.mjs +0 -54
- package/dist/chunk-VRQ6DRFR.mjs +0 -66
- package/dist/chunk-VXIVRVUP.mjs +0 -74
- package/dist/chunk-VY6R5EWX.mjs +0 -29
- package/dist/chunk-VZAGOPXK.mjs +0 -129
- package/dist/chunk-VZTB23JU.mjs +0 -29
- package/dist/chunk-W2DKVD3G.mjs +0 -81
- package/dist/chunk-W4FIJVDH.mjs +0 -192
- package/dist/chunk-WAIRETE3.mjs +0 -111
- package/dist/chunk-WBZ7QUFI.mjs +0 -44
- package/dist/chunk-WDJODUZW.mjs +0 -89
- package/dist/chunk-WG7TKVBL.mjs +0 -72
- package/dist/chunk-WGKQSSVM.mjs +0 -34
- package/dist/chunk-WSFQS3WJ.mjs +0 -17
- package/dist/chunk-X4RRHV3M.mjs +0 -41
- package/dist/chunk-X5WFUYZB.mjs +0 -31
- package/dist/chunk-X6TJKD4J.mjs +0 -69
- package/dist/chunk-X6Z6T7ZP.mjs +0 -40
- package/dist/chunk-XHSDHPKI.mjs +0 -336
- package/dist/chunk-XJCKDBMP.mjs +0 -37
- package/dist/chunk-XLH3B3GV.mjs +0 -65
- package/dist/chunk-XMF4PKWZ.mjs +0 -37
- package/dist/chunk-XTMKISZY.mjs +0 -130
- package/dist/chunk-Y6CL6A3V.mjs +0 -43
- package/dist/chunk-YCZHGF5L.mjs +0 -121
- package/dist/chunk-YDIELCJS.mjs +0 -91
- package/dist/chunk-YEUDGGMZ.mjs +0 -96
- package/dist/chunk-YEXGYK57.mjs +0 -92
- package/dist/chunk-YI3LY73Z.mjs +0 -17
- package/dist/chunk-YI4DBSAT.mjs +0 -28
- package/dist/chunk-YKMHUGN4.mjs +0 -651
- package/dist/chunk-YSPBV2YN.mjs +0 -421
- package/dist/chunk-YVVDPSKP.mjs +0 -197
- package/dist/chunk-YYSN3YCL.mjs +0 -26
- package/dist/chunk-Z3AKA3KE.mjs +0 -30
- package/dist/chunk-Z6JJIYMP.mjs +0 -34
- package/dist/chunk-ZA465M4H.mjs +0 -46
- package/dist/chunk-ZC367C4K.mjs +0 -281
- package/dist/chunk-ZCJNV2WB.mjs +0 -90
- package/dist/chunk-ZH2VDUC2.mjs +0 -34
- package/dist/chunk-ZHBKXVTG.mjs +0 -53
- package/dist/chunk-ZJ2FMMA4.mjs +0 -31
- package/dist/chunk-ZKOCHX43.mjs +0 -140
- package/dist/chunk-ZTTIDD57.mjs +0 -72
- package/dist/chunk-ZUW5WWT6.mjs +0 -13
- package/dist/cil-OX77PIZP.mjs +0 -7
- package/dist/cilkc-BDYOXZY5.mjs +0 -9
- package/dist/cilkcpp-KZN7MPWX.mjs +0 -10
- package/dist/clean-BLPANDN4.mjs +0 -36
- package/dist/clike-UUOWHDIR.mjs +0 -7
- package/dist/clojure-4MK5ONG5.mjs +0 -127
- package/dist/clojure-KTYQ4S7G.mjs +0 -7
- package/dist/clojure-repl-HWYI7CXM.mjs +0 -26
- package/dist/cmake-WHHZR2V7.mjs +0 -7
- package/dist/cmake-X2SGPNAG.mjs +0 -34
- package/dist/cobol-3CRTQG4X.mjs +0 -7
- package/dist/coffeescript-2BBF2PM5.mjs +0 -9
- package/dist/coffeescript-6KMIBZTX.mjs +0 -348
- package/dist/concurnas-CMH2MQMO.mjs +0 -7
- package/dist/cooklang-XPZDBZRQ.mjs +0 -7
- package/dist/coq-VPBWZI4H.mjs +0 -7
- package/dist/coq-XHEDPREY.mjs +0 -35
- package/dist/core-53TVE6ED.mjs +0 -1811
- package/dist/core-EFA5INDY.mjs +0 -7
- package/dist/cos-MTQDQCSA.mjs +0 -98
- package/dist/cpp-22ZXPFI6.mjs +0 -409
- package/dist/cpp-3QCYFNK6.mjs +0 -9
- package/dist/crmsh-3WRNVSTP.mjs +0 -97
- package/dist/crystal-2EHE2T46.mjs +0 -322
- package/dist/crystal-NWCQSLUO.mjs +0 -9
- package/dist/csharp-O3I3SJ3U.mjs +0 -8
- package/dist/csharp-ZV6YFQOP.mjs +0 -438
- package/dist/cshtml-LHWACG2S.mjs +0 -10
- package/dist/csp-35EVUMH3.mjs +0 -7
- package/dist/csp-VGB42C4V.mjs +0 -34
- package/dist/css-MNNVIBFJ.mjs +0 -7
- package/dist/css-SEV6MHRT.mjs +0 -597
- package/dist/css-extras-VESJUQ7R.mjs +0 -8
- package/dist/csv-Q6LVKY6B.mjs +0 -7
- package/dist/cue-4HRQJQ3R.mjs +0 -7
- package/dist/cypher-GT3MK3QV.mjs +0 -7
- package/dist/d-3DEZYWVP.mjs +0 -8
- package/dist/d-3ZCSNCJV.mjs +0 -121
- package/dist/dart-QALF24GY.mjs +0 -8
- package/dist/dart-XRFXD5NS.mjs +0 -189
- package/dist/dataweave-CEXE5S2M.mjs +0 -7
- package/dist/dax-7F67K7YK.mjs +0 -7
- package/dist/delphi-WFNKQ6WQ.mjs +0 -118
- package/dist/dhall-IBEFEXHW.mjs +0 -7
- package/dist/diff-FMR6ALMO.mjs +0 -7
- package/dist/diff-YPVRB2CU.mjs +0 -85
- package/dist/django-5YUPXABX.mjs +0 -9
- package/dist/django-LT2HNZGS.mjs +0 -57
- package/dist/dns-IFOJ77LV.mjs +0 -45
- package/dist/dns-zone-file-2CGVUUHD.mjs +0 -7
- package/dist/docker-QUSAJHC2.mjs +0 -7
- package/dist/dockerfile-ZB7LFK2K.mjs +0 -33
- package/dist/dos-GS4GLAUA.mjs +0 -61
- package/dist/dot-EJOMR6ES.mjs +0 -7
- package/dist/dsconfig-VJKRFJYE.mjs +0 -66
- package/dist/dts-ACRDLUDL.mjs +0 -144
- package/dist/dust-PTJ3DDBL.mjs +0 -44
- package/dist/ebnf-B3NDJ47R.mjs +0 -51
- package/dist/ebnf-XR4NJT5O.mjs +0 -7
- package/dist/editorconfig-YIXKX6PC.mjs +0 -7
- package/dist/eiffel-Z3NTT5RG.mjs +0 -7
- package/dist/ejs-HSSKSQKD.mjs +0 -11
- package/dist/elixir-DUZIZIJE.mjs +0 -7
- package/dist/elixir-FE2WKL6Y.mjs +0 -260
- package/dist/elm-5LDDVRJS.mjs +0 -120
- package/dist/elm-LI4XTQ6E.mjs +0 -7
- package/dist/erb-ANDNIMHK.mjs +0 -11
- package/dist/erb-SYU7FYSK.mjs +0 -27
- package/dist/erlang-KDEF4DYJ.mjs +0 -7
- package/dist/erlang-WDL2I3MK.mjs +0 -192
- package/dist/erlang-repl-NFUOVYAF.mjs +0 -70
- package/dist/etlua-X55UO5HM.mjs +0 -10
- package/dist/excel-IXNS4PYL.mjs +0 -69
- package/dist/excel-formula-MCOXGT6C.mjs +0 -7
- package/dist/factor-YNYKUWUH.mjs +0 -7
- package/dist/false-DPAUHKI5.mjs +0 -7
- package/dist/firestore-security-rules-A7WORSBC.mjs +0 -8
- package/dist/fix-NLAEEWWO.mjs +0 -40
- package/dist/flix-ZSHQ5XTB.mjs +0 -51
- package/dist/flow-6FFTX3ZP.mjs +0 -9
- package/dist/fortran-3AEDT6XT.mjs +0 -102
- package/dist/fortran-B3P5B7ES.mjs +0 -7
- package/dist/fsharp-BC5JMMR2.mjs +0 -8
- package/dist/fsharp-JITTJ54M.mjs +0 -79
- package/dist/ftl-AGA3I4XJ.mjs +0 -9
- package/dist/gams-WAPNC62I.mjs +0 -177
- package/dist/gap-NQYBQZ2B.mjs +0 -7
- package/dist/gauss-MECLGUAT.mjs +0 -206
- package/dist/gcode-MG7JXQ7V.mjs +0 -88
- package/dist/gcode-RRRVAYT2.mjs +0 -7
- package/dist/gdscript-ENR6AP4E.mjs +0 -7
- package/dist/gedcom-XBQGOHZ3.mjs +0 -7
- package/dist/gettext-6PGLS7V5.mjs +0 -7
- package/dist/gherkin-2H4XSYV4.mjs +0 -7
- package/dist/gherkin-3GRG53ES.mjs +0 -51
- package/dist/git-TYFIJXO4.mjs +0 -7
- package/dist/glsl-D26NB6J3.mjs +0 -9
- package/dist/glsl-LL7DU4TU.mjs +0 -39
- package/dist/gml-B52KPF4C.mjs +0 -8
- package/dist/gml-SI5MSGKE.mjs +0 -32
- package/dist/gn-3SZRXCF5.mjs +0 -7
- package/dist/go-ILRFIZP3.mjs +0 -8
- package/dist/go-QV2RBBLW.mjs +0 -69
- package/dist/go-module-RS3DPE3U.mjs +0 -7
- package/dist/golo-CIYAWEC6.mjs +0 -29
- package/dist/gradle-FT5KGOKN.mjs +0 -28
- package/dist/gradle-JDKJRVUN.mjs +0 -8
- package/dist/graphql-ARI5GIJV.mjs +0 -7
- package/dist/groovy-EITVUB7G.mjs +0 -8
- package/dist/groovy-VNBLNCR2.mjs +0 -147
- package/dist/haml-2ASE7KCG.mjs +0 -9
- package/dist/haml-WK3PC3I5.mjs +0 -117
- package/dist/handlebars-VVNCKCG2.mjs +0 -9
- package/dist/handlebars-ZL76DGI2.mjs +0 -270
- package/dist/haskell-6ILWUO7I.mjs +0 -7
- package/dist/haskell-NTK5RBZP.mjs +0 -163
- package/dist/haxe-4QQCCPVH.mjs +0 -8
- package/dist/haxe-5MW6GLB2.mjs +0 -162
- package/dist/hcl-73BIQ3M4.mjs +0 -7
- package/dist/hlsl-OULX4HA6.mjs +0 -9
- package/dist/hoon-LUXS3O2A.mjs +0 -7
- package/dist/hpkp-ML5FM4Q7.mjs +0 -7
- package/dist/hsp-IAWLPXBG.mjs +0 -62
- package/dist/hsts-Y7BGEHZR.mjs +0 -7
- package/dist/htmlbars-S6FRWYPY.mjs +0 -278
- package/dist/http-TJ7OZI2Q.mjs +0 -106
- package/dist/http-XL3ZNGIY.mjs +0 -7
- package/dist/hy-FUJRHAQL.mjs +0 -82
- package/dist/ichigojam-UFIQSIDS.mjs +0 -7
- package/dist/icon-L3WTN2K2.mjs +0 -7
- package/dist/icu-message-format-BQRWIPGH.mjs +0 -7
- package/dist/idris-ZDQ4PXMA.mjs +0 -8
- package/dist/iecst-TD53KMLC.mjs +0 -7
- package/dist/ignore-YJEHPWMH.mjs +0 -7
- package/dist/inform7-3RY726UI.mjs +0 -66
- package/dist/inform7-YPPQWHLN.mjs +0 -7
- package/dist/ini-CETYIAUM.mjs +0 -7
- package/dist/ini-SPOLXKBK.mjs +0 -148
- package/dist/io-EYJW7VN6.mjs +0 -7
- package/dist/irpf90-6SBM76YD.mjs +0 -81
- package/dist/isbl-FSGOKI4V.mjs +0 -268
- package/dist/j-Q5JQ4SLX.mjs +0 -7
- package/dist/java-DJQZUC6R.mjs +0 -177
- package/dist/java-YR4IU5BM.mjs +0 -8
- package/dist/javadoc-BRJNCLP6.mjs +0 -11
- package/dist/javadoclike-TFSRBPQM.mjs +0 -7
- package/dist/javascript-2ZEIO6XD.mjs +0 -552
- package/dist/javascript-QTUJKQHC.mjs +0 -8
- package/dist/javastacktrace-GGTEZXE3.mjs +0 -7
- package/dist/jboss-cli-77LKGYS3.mjs +0 -62
- package/dist/jexl-BTJOELHK.mjs +0 -7
- package/dist/jolie-FSJACUDX.mjs +0 -8
- package/dist/jq-ZM5F7ZDK.mjs +0 -7
- package/dist/js-extras-4DGOZNV7.mjs +0 -9
- package/dist/js-templates-NCH5GDOS.mjs +0 -9
- package/dist/jsdoc-RVRQ2ONF.mjs +0 -11
- package/dist/json-ROTEBQRJ.mjs +0 -7
- package/dist/json-YZZOVRBO.mjs +0 -65
- package/dist/json5-UP2ZOKOQ.mjs +0 -8
- package/dist/jsonp-DR56NR56.mjs +0 -8
- package/dist/jsstacktrace-VDL5T4D5.mjs +0 -7
- package/dist/jsx-SXP6XKYC.mjs +0 -10
- package/dist/julia-HTJ7H7C7.mjs +0 -7
- package/dist/julia-Q4ZVHRDI.mjs +0 -356
- package/dist/julia-repl-BTX3J3NJ.mjs +0 -35
- package/dist/keepalived-QZJZ5HOV.mjs +0 -7
- package/dist/keyman-ZGSFJPGK.mjs +0 -7
- package/dist/kotlin-IGZZRCGC.mjs +0 -264
- package/dist/kotlin-JJZ52WH7.mjs +0 -8
- package/dist/kumir-7GXMJK3V.mjs +0 -7
- package/dist/kusto-WG6JJXRJ.mjs +0 -7
- package/dist/lasso-WWTZY5UH.mjs +0 -170
- package/dist/latex-2YADPEPI.mjs +0 -7
- package/dist/latex-WRAYL6SG.mjs +0 -259
- package/dist/latte-SLTLZ42G.mjs +0 -11
- package/dist/ldif-6UEPZ3X4.mjs +0 -45
- package/dist/leaf-NI5FUQC2.mjs +0 -52
- package/dist/less-IZNHBS3M.mjs +0 -8
- package/dist/less-NIE4VYT6.mjs +0 -659
- package/dist/lilypond-5Q7S6AWI.mjs +0 -8
- package/dist/linker-script-U2G3YT6Y.mjs +0 -7
- package/dist/liquid-APSL6YSQ.mjs +0 -9
- package/dist/lisp-66VVBLOV.mjs +0 -118
- package/dist/lisp-VKANOWYN.mjs +0 -7
- package/dist/livecodeserver-DUT3Q46F.mjs +0 -119
- package/dist/livescript-747Z7BTF.mjs +0 -366
- package/dist/livescript-Q5U2BMW5.mjs +0 -7
- package/dist/llvm-GL4XTW5Y.mjs +0 -7
- package/dist/llvm-QVOA6LPG.mjs +0 -100
- package/dist/log-WZTVEF6C.mjs +0 -7
- package/dist/lolcode-4MINGUJV.mjs +0 -7
- package/dist/lsl-QPPMC5D4.mjs +0 -90
- package/dist/lua-L6OBT7JV.mjs +0 -71
- package/dist/lua-ZSJIAUOH.mjs +0 -7
- package/dist/magma-XCJJFWJR.mjs +0 -7
- package/dist/makefile-OOWCTVQ7.mjs +0 -82
- package/dist/makefile-QIYFPW2R.mjs +0 -7
- package/dist/markdown-DAR7DPFL.mjs +0 -8
- package/dist/markdown-N3SY7XVC.mjs +0 -239
- package/dist/markup-OXVKDD47.mjs +0 -7
- package/dist/markup-templating-J4DO7422.mjs +0 -8
- package/dist/mata-765PWMBX.mjs +0 -7
- package/dist/mathematica-LT6GQUHF.mjs +0 -6751
- package/dist/matlab-4GFLVE2P.mjs +0 -87
- package/dist/matlab-6HITLEEC.mjs +0 -7
- package/dist/maxima-Z3RYDEQB.mjs +0 -63
- package/dist/maxscript-WQI6JYAB.mjs +0 -7
- package/dist/mel-27RKMW7S.mjs +0 -7
- package/dist/mel-SFVB3IOI.mjs +0 -35
- package/dist/mercury-CKPXMMW7.mjs +0 -99
- package/dist/mermaid-XHBPQM2B.mjs +0 -7
- package/dist/metafont-7AGXCDBQ.mjs +0 -7
- package/dist/mipsasm-3NYLGAR6.mjs +0 -85
- package/dist/mizar-64NH7HJA.mjs +0 -20
- package/dist/mizar-U2HYXZIV.mjs +0 -7
- package/dist/mojolicious-P7XXJCR3.mjs +0 -37
- package/dist/mongodb-WUNFEENG.mjs +0 -9
- package/dist/monkey-PPCGIXWW.mjs +0 -84
- package/dist/monkey-QLUD3OXB.mjs +0 -7
- package/dist/moonscript-4CWFAPGN.mjs +0 -7
- package/dist/moonscript-A2M4GDBP.mjs +0 -148
- package/dist/n1ql-JCXANXED.mjs +0 -7
- package/dist/n1ql-SDCT2EHR.mjs +0 -56
- package/dist/n4js-XYYHI2EG.mjs +0 -9
- package/dist/nand2tetris-hdl-EFYRZT6S.mjs +0 -7
- package/dist/naniscript-MA6QESE2.mjs +0 -7
- package/dist/nasm-VHY6J4EF.mjs +0 -7
- package/dist/neon-QCP2WSBT.mjs +0 -7
- package/dist/nevod-EFXVYLVX.mjs +0 -7
- package/dist/nginx-TGT7EO4X.mjs +0 -7
- package/dist/nginx-WW7TAPC7.mjs +0 -138
- package/dist/nim-HL4DQ5UH.mjs +0 -70
- package/dist/nim-YWSIL2DE.mjs +0 -7
- package/dist/nix-2AR5CCIH.mjs +0 -63
- package/dist/nix-E3D77UG6.mjs +0 -7
- package/dist/node-repl-NKLTAWN7.mjs +0 -38
- package/dist/nsis-33NHQMB7.mjs +0 -7
- package/dist/nsis-3IEZ3YJJ.mjs +0 -110
- package/dist/objectivec-3IFCJWCA.mjs +0 -9
- package/dist/objectivec-KOG52TJY.mjs +0 -96
- package/dist/ocaml-KY5FDADX.mjs +0 -7
- package/dist/ocaml-VAM3KDWB.mjs +0 -74
- package/dist/odin-A2IE76HA.mjs +0 -7
- package/dist/opencl-4S3HASAT.mjs +0 -9
- package/dist/openqasm-AWQKXLGZ.mjs +0 -7
- package/dist/openscad-HHFIEWVA.mjs +0 -82
- package/dist/oxygene-66TQWGHU.mjs +0 -95
- package/dist/oz-ZITDMMHD.mjs +0 -7
- package/dist/parigp-VBT7UQG5.mjs +0 -7
- package/dist/parser-YEZVTKJT.mjs +0 -8
- package/dist/parser3-NMC257GM.mjs +0 -58
- package/dist/pascal-XXANPKBW.mjs +0 -7
- package/dist/pascaligo-4AUPQUM4.mjs +0 -7
- package/dist/pcaxis-XLPP7YFP.mjs +0 -7
- package/dist/peoplecode-2JPUOZ5D.mjs +0 -7
- package/dist/perl-J6SU2KAK.mjs +0 -480
- package/dist/perl-XPOI3VE2.mjs +0 -7
- package/dist/pf-L6J5TXP5.mjs +0 -44
- package/dist/pgsql-CXOXGLSM.mjs +0 -388
- package/dist/php-7COQUIL6.mjs +0 -9
- package/dist/php-THQHZWBK.mjs +0 -192
- package/dist/php-extras-KXCGVKVT.mjs +0 -10
- package/dist/php-template-MDQ7YQYU.mjs +0 -55
- package/dist/phpdoc-P3J4KDLP.mjs +0 -11
- package/dist/plaintext-FOX4HEYD.mjs +0 -21
- package/dist/plant-uml-HLQGLS6L.mjs +0 -7
- package/dist/plsql-S52OSJ2U.mjs +0 -8
- package/dist/pony-W4DRRBBC.mjs +0 -65
- package/dist/powerquery-YHSDPEFX.mjs +0 -7
- package/dist/powershell-FLJWJJQQ.mjs +0 -7
- package/dist/powershell-P6JU2TP5.mjs +0 -280
- package/dist/processing-GGDIH7QS.mjs +0 -29
- package/dist/processing-LTLRX2F5.mjs +0 -8
- package/dist/profile-SWN3ONGX.mjs +0 -46
- package/dist/prolog-22I55WFQ.mjs +0 -90
- package/dist/prolog-NTHCGAGP.mjs +0 -7
- package/dist/promql-WFSRW4IG.mjs +0 -7
- package/dist/properties-WFMQKC4W.mjs +0 -7
- package/dist/properties-WSAVMNCN.mjs +0 -82
- package/dist/protobuf-6IXRTNB4.mjs +0 -51
- package/dist/protobuf-HKASI7GQ.mjs +0 -8
- package/dist/psl-IOI6QPHM.mjs +0 -7
- package/dist/pug-347NHF34.mjs +0 -10
- package/dist/puppet-VTVLTBI2.mjs +0 -121
- package/dist/puppet-YOC76H6Z.mjs +0 -7
- package/dist/pure-JBAF6TB6.mjs +0 -7
- package/dist/purebasic-C3YNOS5P.mjs +0 -70
- package/dist/purebasic-JWVWWWJD.mjs +0 -8
- package/dist/purescript-N3Q4R3YA.mjs +0 -8
- package/dist/python-A4CFGSSI.mjs +0 -7
- package/dist/python-NT5AD4JY.mjs +0 -412
- package/dist/python-repl-LHNIOXJX.mjs +0 -38
- package/dist/q-FMB4DBLN.mjs +0 -7
- package/dist/q-UTM7ZTW7.mjs +0 -33
- package/dist/qml-MJHPGC4V.mjs +0 -9
- package/dist/qml-WIGTJGI4.mjs +0 -177
- package/dist/qore-NTRR7XWO.mjs +0 -8
- package/dist/qsharp-SDEJFN7R.mjs +0 -8
- package/dist/r-RELSGV5I.mjs +0 -7
- package/dist/r-WY7E4G62.mjs +0 -175
- package/dist/racket-QSCJEQRD.mjs +0 -8
- package/dist/reason-TTF6YRJC.mjs +0 -8
- package/dist/reasonml-XPP4N3QO.mjs +0 -294
- package/dist/regex-PRGZTHZL.mjs +0 -7
- package/dist/rego-EPT6TBBG.mjs +0 -7
- package/dist/renpy-TIIZPWPG.mjs +0 -7
- package/dist/rescript-4KMHHGJS.mjs +0 -7
- package/dist/rest-CAP5QXCA.mjs +0 -7
- package/dist/rib-7TW3PGSO.mjs +0 -24
- package/dist/rip-U3OVF6I5.mjs +0 -7
- package/dist/roboconf-DXZX2XRS.mjs +0 -7
- package/dist/roboconf-EWDKJ5LM.mjs +0 -78
- package/dist/robotframework-5MDZVXUI.mjs +0 -7
- package/dist/routeros-F63X5ZIY.mjs +0 -163
- package/dist/rsl-KI4U6V76.mjs +0 -42
- package/dist/ruby-RXY2RLEY.mjs +0 -346
- package/dist/ruby-SRVPHZXE.mjs +0 -8
- package/dist/ruleslanguage-CW4QBLC4.mjs +0 -40
- package/dist/rust-CA3GNIOD.mjs +0 -7
- package/dist/rust-PMGZCFRY.mjs +0 -123
- package/dist/sas-7FFW2O23.mjs +0 -7
- package/dist/sas-PMTXHOIS.mjs +0 -66
- package/dist/sass-YWHWQAUT.mjs +0 -8
- package/dist/scala-4SFCTX6I.mjs +0 -9
- package/dist/scala-5GJ43JLG.mjs +0 -131
- package/dist/scheme-6GQTRHJH.mjs +0 -7
- package/dist/scheme-LAM5SAF2.mjs +0 -159
- package/dist/scilab-YCB5BINJ.mjs +0 -69
- package/dist/scss-GQSUZCJS.mjs +0 -8
- package/dist/scss-QK2HU2CK.mjs +0 -551
- package/dist/shell-UOPX2W7I.mjs +0 -30
- package/dist/shell-session-6VKIJ4UE.mjs +0 -8
- package/dist/smali-5FECMKNA.mjs +0 -137
- package/dist/smali-J3GXN3CR.mjs +0 -7
- package/dist/smalltalk-DJMU7FZQ.mjs +0 -7
- package/dist/smalltalk-VRGDZA3W.mjs +0 -66
- package/dist/smarty-R6DOPNCK.mjs +0 -9
- package/dist/sml-2F2GSLBP.mjs +0 -7
- package/dist/sml-NYPT675T.mjs +0 -81
- package/dist/solidity-PFRSAYM6.mjs +0 -8
- package/dist/solution-file-U4FZFD55.mjs +0 -7
- package/dist/soy-Y4XP2HZR.mjs +0 -9
- package/dist/sparql-FNWGIQ7N.mjs +0 -8
- package/dist/splunk-spl-JXVVU3X5.mjs +0 -7
- package/dist/sqf-5I2ZD7YO.mjs +0 -8
- package/dist/sqf-QDIV7VDQ.mjs +0 -86
- package/dist/sql-GBCT2QB4.mjs +0 -7
- package/dist/sql-WF5COLPY.mjs +0 -655
- package/dist/sql_more-OYKA6JQY.mjs +0 -60
- package/dist/squirrel-5LI5TRO2.mjs +0 -8
- package/dist/stan-LHT2ZONH.mjs +0 -7
- package/dist/stan-NZHR4RTX.mjs +0 -547
- package/dist/stata-L5S3GROB.mjs +0 -11
- package/dist/stata-M24CXK7H.mjs +0 -54
- package/dist/step21-R2GQ3VPU.mjs +0 -68
- package/dist/stylus-7JEVD63H.mjs +0 -7
- package/dist/stylus-EGU6YPC7.mjs +0 -605
- package/dist/subunit-TBVEFCZ4.mjs +0 -54
- package/dist/supercollider-DQRFF2ZM.mjs +0 -7
- package/dist/swift-KF3IM6ZM.mjs +0 -7
- package/dist/swift-Z37BBBV6.mjs +0 -799
- package/dist/systemd-MN3J4ZZP.mjs +0 -7
- package/dist/t4-cs-4VGLEZ3E.mjs +0 -10
- package/dist/t4-templating-Z5UNC7NL.mjs +0 -7
- package/dist/t4-vb-WND6NL7I.mjs +0 -10
- package/dist/taggerscript-E4K2IWZI.mjs +0 -53
- package/dist/tap-CHINMJXZ.mjs +0 -8
- package/dist/tap-SOP3LUUF.mjs +0 -56
- package/dist/tcl-KFAY3Y76.mjs +0 -83
- package/dist/tcl-RYS635Z3.mjs +0 -7
- package/dist/textile-K4LIB2S4.mjs +0 -8
- package/dist/thrift-CD3DUU44.mjs +0 -49
- package/dist/toml-H32BR4RA.mjs +0 -7
- package/dist/tp-YEGGGPV6.mjs +0 -91
- package/dist/tremor-KW3FV3KC.mjs +0 -7
- package/dist/tsx-5J5VXZS5.mjs +0 -12
- package/dist/tt2-HGSBIVQ4.mjs +0 -10
- package/dist/turtle-3BXU77UR.mjs +0 -7
- package/dist/twig-BHEIMS2I.mjs +0 -70
- package/dist/twig-WPWEOXUJ.mjs +0 -9
- package/dist/typescript-G3NW53G6.mjs +0 -9
- package/dist/typescript-XCHCHZTB.mjs +0 -628
- package/dist/typoscript-JAVNW6VK.mjs +0 -7
- package/dist/unrealscript-42PWKY6Q.mjs +0 -7
- package/dist/uorazor-JCCJPUCB.mjs +0 -7
- package/dist/uri-6TOG7EQ3.mjs +0 -7
- package/dist/v-U43HBEJL.mjs +0 -8
- package/dist/vala-DG57MCH7.mjs +0 -8
- package/dist/vala-SOJ7ADYF.mjs +0 -51
- package/dist/vbnet-NANZ6YNZ.mjs +0 -164
- package/dist/vbnet-VGGYD7UL.mjs +0 -8
- package/dist/vbscript-ZGKTU75O.mjs +0 -68
- package/dist/vbscript-html-IXDLQQWA.mjs +0 -24
- package/dist/velocity-I7WPNNRT.mjs +0 -8
- package/dist/verilog-Q2SCWKH6.mjs +0 -7
- package/dist/verilog-TOWZGWW5.mjs +0 -72
- package/dist/vhdl-LMAC2JYU.mjs +0 -51
- package/dist/vhdl-UMPVMOXL.mjs +0 -7
- package/dist/vim-2YLACCEH.mjs +0 -74
- package/dist/vim-B5DEGKND.mjs +0 -7
- package/dist/visual-basic-TH2SIMKY.mjs +0 -7
- package/dist/warpscript-DRY2GDSF.mjs +0 -7
- package/dist/wasm-5A4VSDDR.mjs +0 -7
- package/dist/web-idl-DDXJ6PB7.mjs +0 -7
- package/dist/wgsl-BTSX35ZR.mjs +0 -7
- package/dist/wiki-7DBBSDZ4.mjs +0 -8
- package/dist/wolfram-GZXM3VCU.mjs +0 -7
- package/dist/wren-67TXQCEN.mjs +0 -7
- package/dist/x86asm-SBYXVAPW.mjs +0 -106
- package/dist/xeora-DPVBEV2S.mjs +0 -8
- package/dist/xl-MJ5LQ7IG.mjs +0 -77
- package/dist/xml-FLJSLCB4.mjs +0 -254
- package/dist/xml-doc-3NHESP5E.mjs +0 -8
- package/dist/xojo-AKFOJ5KB.mjs +0 -7
- package/dist/xquery-KPNYT5DH.mjs +0 -161
- package/dist/xquery-WALO52IF.mjs +0 -8
- package/dist/yaml-CDPEVNU3.mjs +0 -7
- package/dist/yaml-GBY4TVPN.mjs +0 -173
- package/dist/yang-W5ZMJ3A7.mjs +0 -7
- package/dist/zephir-Y2H2MA66.mjs +0 -118
- package/dist/zig-7XFLDRZS.mjs +0 -7
- package/dist/{ILLMProvider-BynaFBpy.d.mts → ILLMProvider-DO5gj-e5.d.mts} +83 -83
- package/dist/{ILLMProvider-BynaFBpy.d.ts → ILLMProvider-DO5gj-e5.d.ts} +83 -83
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch,
|
|
2
|
+
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig, U as UITransformationResponse, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig } from './ILLMProvider-DO5gj-e5.js';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -134,7 +134,14 @@ interface ClientConfig {
|
|
|
134
134
|
retrivoraApiBase?: string;
|
|
135
135
|
projectSettings?: ProjectChatSettings;
|
|
136
136
|
autoLoadProjectSettings?: boolean;
|
|
137
|
+
/** True while validate + /config are still in-flight. ChatWidget shows nothing until false. */
|
|
137
138
|
isProjectSettingsLoading?: boolean;
|
|
139
|
+
/** True once /validate succeeds. False if license is expired/invalid/revoked. */
|
|
140
|
+
isLicenseValid?: boolean;
|
|
141
|
+
/** True once /config returns 200 and config is populated. False if /config call failed. */
|
|
142
|
+
isConfigLoaded?: boolean;
|
|
143
|
+
/** Human-readable error from the init sequence (license error or config fetch error). */
|
|
144
|
+
initError?: string;
|
|
138
145
|
}
|
|
139
146
|
interface ConfigProviderProps {
|
|
140
147
|
config?: {
|
|
@@ -159,246 +166,6 @@ interface ConfigProviderProps {
|
|
|
159
166
|
children: ReactNode;
|
|
160
167
|
}
|
|
161
168
|
|
|
162
|
-
/**
|
|
163
|
-
* Dynamically resolved SDK Version from package.json
|
|
164
|
-
*/
|
|
165
|
-
declare const SDK_VERSION: string;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* ConfigFetcher.ts — Dynamically fetches project credentials from Retrivora Control Plane
|
|
169
|
-
* without hardcoding plain-text master keys in NPM package binaries.
|
|
170
|
-
*
|
|
171
|
-
* SECURITY: The SDK must ONLY call the Retrivora Control Plane at https://www.retrivora.com.
|
|
172
|
-
* It must never call the end user's own localhost or any other endpoint.
|
|
173
|
-
* LLM and embedding calls are proxied through https://www.retrivora.com/api/v1 which
|
|
174
|
-
* forwards to https://llm.retrivora.com with the server-side LITELLM_MASTER_KEY.
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
interface RemoteVectorConfig {
|
|
178
|
-
apiKey: string;
|
|
179
|
-
indexName: string;
|
|
180
|
-
provider: string;
|
|
181
|
-
projectId?: string;
|
|
182
|
-
namespace?: string;
|
|
183
|
-
}
|
|
184
|
-
interface RemoteEmbeddingConfig {
|
|
185
|
-
provider: string;
|
|
186
|
-
model: string;
|
|
187
|
-
baseUrl: string;
|
|
188
|
-
apiKey: string;
|
|
189
|
-
profile?: string;
|
|
190
|
-
}
|
|
191
|
-
interface RemoteLLMConfig {
|
|
192
|
-
provider: string;
|
|
193
|
-
model: string;
|
|
194
|
-
baseUrl: string;
|
|
195
|
-
apiKey: string;
|
|
196
|
-
profile?: string;
|
|
197
|
-
}
|
|
198
|
-
interface RemoteConfig {
|
|
199
|
-
projectId?: string;
|
|
200
|
-
tier?: string;
|
|
201
|
-
isActive?: boolean;
|
|
202
|
-
expiresAt?: string;
|
|
203
|
-
vectorDb: RemoteVectorConfig;
|
|
204
|
-
embedding: RemoteEmbeddingConfig;
|
|
205
|
-
llm: RemoteLLMConfig;
|
|
206
|
-
workspace?: {
|
|
207
|
-
namespace: string;
|
|
208
|
-
indexName: string;
|
|
209
|
-
};
|
|
210
|
-
projectSettings?: ProjectChatSettings;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
declare class ConfigFetcher {
|
|
214
|
-
private static cache;
|
|
215
|
-
private static readonly TTL_MS;
|
|
216
|
-
/**
|
|
217
|
-
* Fetch full project configuration (vectorDb + embedding + llm + workspace) from Retrivora Control Plane.
|
|
218
|
-
*
|
|
219
|
-
* The SDK calls https://www.retrivora.com/api/v1/config with the project ID and license key.
|
|
220
|
-
* The server validates the license against the database and returns:
|
|
221
|
-
* - validity (tier, isActive, expiresAt)
|
|
222
|
-
* - LLM model info
|
|
223
|
-
* - embedding model info
|
|
224
|
-
* - Pinecone index name and workspace/namespace
|
|
225
|
-
*
|
|
226
|
-
* The Pinecone API key is NOT returned (server-only). The SDK uses local
|
|
227
|
-
* PINECONE_API_KEY if available, or vector operations are handled server-side.
|
|
228
|
-
*/
|
|
229
|
-
static fetchRemoteConfig(projectId: string, licenseKey?: string): Promise<RemoteConfig | null>;
|
|
230
|
-
/** Convenience: fetch only vector DB config (backwards compat). */
|
|
231
|
-
static fetchRemoteVectorConfig(projectId: string, licenseKey?: string): Promise<RemoteVectorConfig | null>;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* LicenseConfigResolver — Resolves LLM and embedding configuration
|
|
236
|
-
* based on the user's license tier from Retrivora admin dashboard.
|
|
237
|
-
*
|
|
238
|
-
* The end-user SDK only needs:
|
|
239
|
-
* - licenseKey (JWT token from Retrivora)
|
|
240
|
-
* - projectId (workspace identifier)
|
|
241
|
-
*
|
|
242
|
-
* Configuration includes:
|
|
243
|
-
* 1. Tier-based model selection (/api/v1/config)
|
|
244
|
-
* 2. Provider API credentials (/api/v1/credentials)
|
|
245
|
-
* 3. Vector DB and rate limit settings
|
|
246
|
-
*
|
|
247
|
-
* All provider API keys (Gemini, Groq, Pinecone) are stored on Retrivora backend
|
|
248
|
-
* and never exposed to end-users directly.
|
|
249
|
-
*/
|
|
250
|
-
|
|
251
|
-
interface LicenseTierConfig {
|
|
252
|
-
tier: 'free_trial' | 'free' | 'hobby' | 'pro' | 'enterprise';
|
|
253
|
-
llmModel: string;
|
|
254
|
-
embeddingModel: string;
|
|
255
|
-
embeddingDimensions: number;
|
|
256
|
-
maxTokens: number;
|
|
257
|
-
chunkSize: number;
|
|
258
|
-
chunkOverlap: number;
|
|
259
|
-
topK: number;
|
|
260
|
-
vectorDb: {
|
|
261
|
-
provider: string;
|
|
262
|
-
indexName: string;
|
|
263
|
-
};
|
|
264
|
-
rateLimit?: {
|
|
265
|
-
requestsPerMinute: number;
|
|
266
|
-
tokensPerDay: number;
|
|
267
|
-
};
|
|
268
|
-
systemPrompt?: string;
|
|
269
|
-
}
|
|
270
|
-
interface ProviderCredentials {
|
|
271
|
-
geminiApiKey?: string;
|
|
272
|
-
groqApiKey?: string;
|
|
273
|
-
pineconeApiKey?: string;
|
|
274
|
-
textEmbeddingProvider?: string;
|
|
275
|
-
}
|
|
276
|
-
interface ProviderCredentials {
|
|
277
|
-
geminiApiKey?: string;
|
|
278
|
-
groqApiKey?: string;
|
|
279
|
-
pineconeApiKey?: string;
|
|
280
|
-
textEmbeddingProvider?: string;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Resolver for license-based configuration.
|
|
284
|
-
* This is called by the end-user SDK after they instantiate with licenseKey + projectId.
|
|
285
|
-
*/
|
|
286
|
-
declare class LicenseConfigResolver {
|
|
287
|
-
private static readonly RETRIVORA_CONFIG_URL;
|
|
288
|
-
private static readonly RETRIVORA_CREDENTIALS_URL;
|
|
289
|
-
private static readonly CACHE_TTL_MS;
|
|
290
|
-
private static configCache;
|
|
291
|
-
/**
|
|
292
|
-
* Validate and resolve configuration from license key
|
|
293
|
-
* @param licenseKey JWT token from Retrivora (format: rtv_eyJ...)
|
|
294
|
-
* @param projectId Workspace identifier
|
|
295
|
-
* @returns Resolved LLM and embedding configs with provider credentials
|
|
296
|
-
*/
|
|
297
|
-
static resolveFromLicense(licenseKey: string, projectId: string): Promise<{
|
|
298
|
-
llmConfig: LLMConfig;
|
|
299
|
-
embeddingConfig: EmbeddingConfig;
|
|
300
|
-
vectorDbConfig: VectorDBConfig;
|
|
301
|
-
tierConfig: LicenseTierConfig;
|
|
302
|
-
credentials: ProviderCredentials;
|
|
303
|
-
}>;
|
|
304
|
-
/**
|
|
305
|
-
* Fetch tier configuration from Retrivora config API
|
|
306
|
-
*/
|
|
307
|
-
private static fetchTierConfig;
|
|
308
|
-
/**
|
|
309
|
-
* Fetch provider credentials from Retrivora credentials API
|
|
310
|
-
*/
|
|
311
|
-
private static fetchProviderCredentials;
|
|
312
|
-
/**
|
|
313
|
-
* Build LLM, embedding, and vector DB configs from tier and credentials
|
|
314
|
-
*/
|
|
315
|
-
private static buildConfigs;
|
|
316
|
-
/**
|
|
317
|
-
* Get provider-specific vector DB options
|
|
318
|
-
*/
|
|
319
|
-
private static getVectorDbOptions;
|
|
320
|
-
/**
|
|
321
|
-
* Clear configuration cache (useful for testing or manual refresh)
|
|
322
|
-
*/
|
|
323
|
-
static clearCache(): void;
|
|
324
|
-
/**
|
|
325
|
-
* Get cache stats for debugging
|
|
326
|
-
*/
|
|
327
|
-
static getCacheStats(): {
|
|
328
|
-
size: number;
|
|
329
|
-
entries: string[];
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Primary rendering outcome types supported by the decision engine.
|
|
335
|
-
*/
|
|
336
|
-
type RenderType = 'text' | 'table' | 'carousel' | 'chart' | 'mixed' | 'card' | 'none';
|
|
337
|
-
/**
|
|
338
|
-
* Chart sub-types available when renderType === 'chart'.
|
|
339
|
-
*/
|
|
340
|
-
type ChartType = 'bar' | 'line' | 'pie' | 'scatter';
|
|
341
|
-
/**
|
|
342
|
-
* High-level intent classification categories.
|
|
343
|
-
*/
|
|
344
|
-
type IntentCategory = 'information_lookup' | 'product_search' | 'recommendation' | 'comparison' | 'analytics' | 'trend_analysis' | 'ranking' | 'summarization';
|
|
345
|
-
/**
|
|
346
|
-
* Individual section specifier for multi-section (mixed) responses.
|
|
347
|
-
*/
|
|
348
|
-
interface RenderSectionDecision {
|
|
349
|
-
type: RenderType;
|
|
350
|
-
chartType?: ChartType;
|
|
351
|
-
title?: string;
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Final decision produced by the Visualization Decision Engine.
|
|
355
|
-
*/
|
|
356
|
-
interface RenderDecision {
|
|
357
|
-
/** Primary rendering format selected */
|
|
358
|
-
renderType: RenderType;
|
|
359
|
-
/** Specific chart sub-type if renderType === 'chart' */
|
|
360
|
-
chartType?: ChartType;
|
|
361
|
-
/** Confidence score between 0.0 and 1.0 */
|
|
362
|
-
confidence: number;
|
|
363
|
-
/** Human-readable explanation of why this decision was reached */
|
|
364
|
-
reason: string;
|
|
365
|
-
/** Sub-sections if renderType === 'mixed' */
|
|
366
|
-
sections?: RenderSectionDecision[];
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Context provided to the intent classifier & decision engine rules.
|
|
370
|
-
*/
|
|
371
|
-
interface DecisionContext {
|
|
372
|
-
/** Original user prompt/query string */
|
|
373
|
-
userQuery: string;
|
|
374
|
-
/** Vector DB retrieved documents / context records */
|
|
375
|
-
retrievedDocuments?: VectorMatch[];
|
|
376
|
-
/** Optional LLM text response if already available */
|
|
377
|
-
llmResponse?: string;
|
|
378
|
-
/** Additional custom metadata or config settings */
|
|
379
|
-
metadata?: Record<string, unknown>;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Interface implemented by rule strategies in the Rule Engine.
|
|
383
|
-
*/
|
|
384
|
-
interface IRenderRule {
|
|
385
|
-
/** Unique name of the decision rule */
|
|
386
|
-
name: string;
|
|
387
|
-
/** Precedence score (higher priority rules run first) */
|
|
388
|
-
priority: number;
|
|
389
|
-
/** Evaluate the rule against current query context and classified intent */
|
|
390
|
-
evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision | null;
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Interface implemented by pluggable Renderer Strategies in RendererRegistry.
|
|
394
|
-
*/
|
|
395
|
-
interface IRendererStrategy {
|
|
396
|
-
/** Render type identifier handled by this strategy */
|
|
397
|
-
type: RenderType | string;
|
|
398
|
-
/** Transform input data into a standardized UITransformationResponse payload */
|
|
399
|
-
render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
169
|
/**
|
|
403
170
|
* DocumentChunker — splits long text into overlapping chunks
|
|
404
171
|
* suitable for vector embedding and retrieval.
|
|
@@ -443,6 +210,141 @@ declare class DocumentChunker {
|
|
|
443
210
|
}>): Chunk[];
|
|
444
211
|
}
|
|
445
212
|
|
|
213
|
+
type CircuitState = 'closed' | 'open' | 'half-open';
|
|
214
|
+
interface CircuitBreakerOptions {
|
|
215
|
+
failureThreshold?: number;
|
|
216
|
+
resetTimeoutMs?: number;
|
|
217
|
+
halfOpenMaxCalls?: number;
|
|
218
|
+
}
|
|
219
|
+
declare class CircuitBreaker {
|
|
220
|
+
private state;
|
|
221
|
+
private failureCount;
|
|
222
|
+
private successCount;
|
|
223
|
+
private lastFailureAt;
|
|
224
|
+
private halfOpenCalls;
|
|
225
|
+
private readonly failureThreshold;
|
|
226
|
+
readonly resetTimeoutMs: number;
|
|
227
|
+
private readonly halfOpenMaxCalls;
|
|
228
|
+
constructor(options?: CircuitBreakerOptions);
|
|
229
|
+
record(success: boolean): void;
|
|
230
|
+
canExecute(): boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Increments the half-open probe counter when a call is attempted in
|
|
233
|
+
* half-open state. Must be called after `canExecute()` returns true and
|
|
234
|
+
* the state is half-open. Safe to call in other states (no-op).
|
|
235
|
+
*/
|
|
236
|
+
incrementHalfOpen(): void;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the number of milliseconds the caller should wait before retrying.
|
|
239
|
+
* Returns 0 when the circuit is closed or half-open (i.e., calls are allowed).
|
|
240
|
+
*
|
|
241
|
+
* Fix TYPE-1: replaces direct access to private `lastFailureAt` field via
|
|
242
|
+
* `(cb as any).lastFailureAt` in BatchProcessor.
|
|
243
|
+
*/
|
|
244
|
+
retryAfterMs(): number;
|
|
245
|
+
wrap<T>(fn: () => Promise<T>): Promise<T>;
|
|
246
|
+
getState(): CircuitState;
|
|
247
|
+
getFailureCount(): number;
|
|
248
|
+
reset(): void;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* BatchProcessor.ts — Handles batch operations with retry logic.
|
|
253
|
+
*
|
|
254
|
+
* Provides exponential backoff, partial failure tracking, and
|
|
255
|
+
* configurable batch sizing for efficient bulk operations.
|
|
256
|
+
*
|
|
257
|
+
* Fix ARCH-3: BatchProcessor no longer holds a static module-level
|
|
258
|
+
* CircuitBreaker that was shared across all callers. Each call site
|
|
259
|
+
* that needs circuit-breaking should create its own CircuitBreaker
|
|
260
|
+
* and pass it via BatchOptions.circuitBreaker so failures in one
|
|
261
|
+
* upstream (e.g., Pinecone) do not trip the breaker for unrelated
|
|
262
|
+
* upstreams (e.g., PostgreSQL).
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
interface BatchOptions {
|
|
266
|
+
/** Maximum number of items per batch */
|
|
267
|
+
batchSize?: number;
|
|
268
|
+
/** Maximum number of retries for transient failures */
|
|
269
|
+
maxRetries?: number;
|
|
270
|
+
/** Initial delay before retry in milliseconds */
|
|
271
|
+
initialDelayMs?: number;
|
|
272
|
+
/** Maximum delay between retries in milliseconds */
|
|
273
|
+
maxDelayMs?: number;
|
|
274
|
+
/** Multiplier for exponential backoff */
|
|
275
|
+
backoffMultiplier?: number;
|
|
276
|
+
/** Whether to throw on any partial failure */
|
|
277
|
+
throwOnPartialFailure?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Optional circuit breaker scoped to the upstream being called.
|
|
280
|
+
*
|
|
281
|
+
* Fix ARCH-3: provide your own CircuitBreaker instance per upstream so
|
|
282
|
+
* failures in one provider (e.g., Pinecone) do not trip the breaker for
|
|
283
|
+
* unrelated providers (e.g., PostgreSQL). When omitted, calls are made
|
|
284
|
+
* directly without circuit-breaking.
|
|
285
|
+
*/
|
|
286
|
+
circuitBreaker?: CircuitBreaker;
|
|
287
|
+
}
|
|
288
|
+
interface BatchResult<T> {
|
|
289
|
+
results: T[];
|
|
290
|
+
errors: Array<{
|
|
291
|
+
index: number;
|
|
292
|
+
error: Error;
|
|
293
|
+
itemCount?: number;
|
|
294
|
+
}>;
|
|
295
|
+
totalProcessed: number;
|
|
296
|
+
totalFailed: number;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Determines if an error is transient (should retry)
|
|
300
|
+
*/
|
|
301
|
+
declare function isTransientError(error: unknown): boolean;
|
|
302
|
+
declare class BatchProcessor {
|
|
303
|
+
/**
|
|
304
|
+
* Execute a processor call, optionally through a caller-provided circuit
|
|
305
|
+
* breaker. Only transient failures count toward opening the circuit.
|
|
306
|
+
*
|
|
307
|
+
* Fix ARCH-3: removed the static module-level `cb` field. Callers must
|
|
308
|
+
* supply their own CircuitBreaker via BatchOptions.circuitBreaker.
|
|
309
|
+
* Fix TYPE-1: uses the public retryAfterMs() and incrementHalfOpen()
|
|
310
|
+
* API instead of accessing private fields via `as any`.
|
|
311
|
+
*/
|
|
312
|
+
private static executeWithCircuitBreaker;
|
|
313
|
+
/**
|
|
314
|
+
* Processes an array of items in configurable batches with retry logic.
|
|
315
|
+
*
|
|
316
|
+
* @param items - Items to process
|
|
317
|
+
* @param processor - Async function that processes a batch of items
|
|
318
|
+
* @param options - Configuration for batch size, retries, etc.
|
|
319
|
+
* @returns Object with results, errors, and statistics
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* const docs = [...];
|
|
323
|
+
* const result = await BatchProcessor.processBatch(
|
|
324
|
+
* docs,
|
|
325
|
+
* (batch) => vectorDB.batchUpsert(batch),
|
|
326
|
+
* { batchSize: 100, maxRetries: 3 }
|
|
327
|
+
* );
|
|
328
|
+
*/
|
|
329
|
+
static processBatch<T, R>(items: T[], processor: (batch: T[]) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
330
|
+
/**
|
|
331
|
+
* Processes items sequentially (one at a time) with retry logic.
|
|
332
|
+
* Useful for operations that don't support batching or when granular
|
|
333
|
+
* error tracking is needed.
|
|
334
|
+
*/
|
|
335
|
+
static processSequential<T, R>(items: T[], processor: (item: T) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
336
|
+
/**
|
|
337
|
+
* Maps over items with retry logic, returning results in order.
|
|
338
|
+
* Like Array.map() but with async processing and automatic retries.
|
|
339
|
+
*/
|
|
340
|
+
static mapWithRetry<T, R>(items: T[], mapper: (item: T) => Promise<R>, options?: BatchOptions): Promise<R[]>;
|
|
341
|
+
/**
|
|
342
|
+
* Parallel processor with concurrency limit.
|
|
343
|
+
* Processes up to `concurrency` items at the same time.
|
|
344
|
+
*/
|
|
345
|
+
static processConcurrent<T, R>(items: T[], processor: (item: T) => Promise<R>, concurrency?: number, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
346
|
+
}
|
|
347
|
+
|
|
446
348
|
/**
|
|
447
349
|
* Pipeline — orchestrates the RAG flow: Embed → Search → Augment → Generate.
|
|
448
350
|
*
|
|
@@ -576,42 +478,150 @@ declare class Retrivora {
|
|
|
576
478
|
}
|
|
577
479
|
|
|
578
480
|
/**
|
|
579
|
-
*
|
|
481
|
+
* Dynamically resolved SDK Version from package.json
|
|
580
482
|
*/
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
483
|
+
declare const SDK_VERSION: string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* ConfigFetcher.ts — Dynamically fetches project credentials from Retrivora Control Plane
|
|
487
|
+
* without hardcoding plain-text master keys in NPM package binaries.
|
|
488
|
+
*
|
|
489
|
+
* SECURITY: The SDK must ONLY call the Retrivora Control Plane at https://www.retrivora.com.
|
|
490
|
+
* It must never call the end user's own localhost or any other endpoint.
|
|
491
|
+
* LLM and embedding calls are proxied through https://www.retrivora.com/api/v1 which
|
|
492
|
+
* forwards to https://llm.retrivora.com with the server-side LITELLM_MASTER_KEY.
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
interface RemoteVectorConfig {
|
|
496
|
+
apiKey: string;
|
|
497
|
+
indexName: string;
|
|
498
|
+
provider: string;
|
|
499
|
+
projectId?: string;
|
|
500
|
+
namespace?: string;
|
|
586
501
|
}
|
|
587
|
-
|
|
588
|
-
|
|
502
|
+
interface RemoteEmbeddingConfig {
|
|
503
|
+
provider: string;
|
|
504
|
+
model: string;
|
|
505
|
+
baseUrl: string;
|
|
506
|
+
apiKey: string;
|
|
507
|
+
profile?: string;
|
|
589
508
|
}
|
|
590
|
-
|
|
591
|
-
|
|
509
|
+
interface RemoteLLMConfig {
|
|
510
|
+
provider: string;
|
|
511
|
+
model: string;
|
|
512
|
+
baseUrl: string;
|
|
513
|
+
apiKey: string;
|
|
514
|
+
profile?: string;
|
|
592
515
|
}
|
|
593
|
-
|
|
594
|
-
|
|
516
|
+
interface RemoteConfig {
|
|
517
|
+
projectId?: string;
|
|
518
|
+
tier?: string;
|
|
519
|
+
isActive?: boolean;
|
|
520
|
+
expiresAt?: string;
|
|
521
|
+
allowedModels?: string[];
|
|
522
|
+
vectorDb: RemoteVectorConfig;
|
|
523
|
+
embedding: RemoteEmbeddingConfig;
|
|
524
|
+
llm: RemoteLLMConfig;
|
|
525
|
+
workspace?: {
|
|
526
|
+
namespace: string;
|
|
527
|
+
indexName: string;
|
|
528
|
+
};
|
|
529
|
+
projectSettings?: ProjectChatSettings;
|
|
595
530
|
}
|
|
596
|
-
|
|
597
|
-
|
|
531
|
+
|
|
532
|
+
declare class ConfigFetcher {
|
|
533
|
+
private static cache;
|
|
534
|
+
/** In-flight deduplication: concurrent callers for the same key share one network request */
|
|
535
|
+
private static inflight;
|
|
536
|
+
private static readonly TTL_MS;
|
|
537
|
+
/**
|
|
538
|
+
* Fetch full project configuration (vectorDb + embedding + llm + workspace) from Retrivora Control Plane.
|
|
539
|
+
*
|
|
540
|
+
* The SDK calls https://www.retrivora.com/api/v1/config with the project ID and license key.
|
|
541
|
+
* The server validates the license against the database and returns:
|
|
542
|
+
* - validity (tier, isActive, expiresAt)
|
|
543
|
+
* - LLM model info
|
|
544
|
+
* - embedding model info
|
|
545
|
+
* - Pinecone index name and workspace/namespace
|
|
546
|
+
*
|
|
547
|
+
* The Pinecone API key is NOT returned (server-only). The SDK uses local
|
|
548
|
+
* PINECONE_API_KEY if available, or vector operations are handled server-side.
|
|
549
|
+
*/
|
|
550
|
+
static fetchRemoteConfig(projectId: string, licenseKey?: string): Promise<RemoteConfig | null>;
|
|
551
|
+
/** Internal: performs the actual HTTP fetch. Shared by all callers via inflight dedup. */
|
|
552
|
+
private static _doFetch;
|
|
553
|
+
/** Convenience: fetch only vector DB config (backwards compat). */
|
|
554
|
+
static fetchRemoteVectorConfig(projectId: string, licenseKey?: string): Promise<RemoteVectorConfig | null>;
|
|
598
555
|
}
|
|
599
|
-
|
|
600
|
-
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Primary rendering outcome types supported by the decision engine.
|
|
559
|
+
*/
|
|
560
|
+
type RenderType = 'text' | 'table' | 'carousel' | 'chart' | 'mixed' | 'card' | 'none';
|
|
561
|
+
/**
|
|
562
|
+
* Chart sub-types available when renderType === 'chart'.
|
|
563
|
+
*/
|
|
564
|
+
type ChartType = 'bar' | 'line' | 'pie' | 'scatter';
|
|
565
|
+
/**
|
|
566
|
+
* High-level intent classification categories.
|
|
567
|
+
*/
|
|
568
|
+
type IntentCategory = 'information_lookup' | 'product_search' | 'recommendation' | 'comparison' | 'analytics' | 'trend_analysis' | 'ranking' | 'summarization';
|
|
569
|
+
/**
|
|
570
|
+
* Individual section specifier for multi-section (mixed) responses.
|
|
571
|
+
*/
|
|
572
|
+
interface RenderSectionDecision {
|
|
573
|
+
type: RenderType;
|
|
574
|
+
chartType?: ChartType;
|
|
575
|
+
title?: string;
|
|
601
576
|
}
|
|
602
|
-
|
|
603
|
-
|
|
577
|
+
/**
|
|
578
|
+
* Final decision produced by the Visualization Decision Engine.
|
|
579
|
+
*/
|
|
580
|
+
interface RenderDecision {
|
|
581
|
+
/** Primary rendering format selected */
|
|
582
|
+
renderType: RenderType;
|
|
583
|
+
/** Specific chart sub-type if renderType === 'chart' */
|
|
584
|
+
chartType?: ChartType;
|
|
585
|
+
/** Confidence score between 0.0 and 1.0 */
|
|
586
|
+
confidence: number;
|
|
587
|
+
/** Human-readable explanation of why this decision was reached */
|
|
588
|
+
reason: string;
|
|
589
|
+
/** Sub-sections if renderType === 'mixed' */
|
|
590
|
+
sections?: RenderSectionDecision[];
|
|
604
591
|
}
|
|
605
|
-
|
|
606
|
-
|
|
592
|
+
/**
|
|
593
|
+
* Context provided to the intent classifier & decision engine rules.
|
|
594
|
+
*/
|
|
595
|
+
interface DecisionContext {
|
|
596
|
+
/** Original user prompt/query string */
|
|
597
|
+
userQuery: string;
|
|
598
|
+
/** Vector DB retrieved documents / context records */
|
|
599
|
+
retrievedDocuments?: VectorMatch[];
|
|
600
|
+
/** Optional LLM text response if already available */
|
|
601
|
+
llmResponse?: string;
|
|
602
|
+
/** Additional custom metadata or config settings */
|
|
603
|
+
metadata?: Record<string, unknown>;
|
|
607
604
|
}
|
|
608
|
-
|
|
609
|
-
|
|
605
|
+
/**
|
|
606
|
+
* Interface implemented by rule strategies in the Rule Engine.
|
|
607
|
+
*/
|
|
608
|
+
interface IRenderRule {
|
|
609
|
+
/** Unique name of the decision rule */
|
|
610
|
+
name: string;
|
|
611
|
+
/** Precedence score (higher priority rules run first) */
|
|
612
|
+
priority: number;
|
|
613
|
+
/** Evaluate the rule against current query context and classified intent */
|
|
614
|
+
evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision | null;
|
|
610
615
|
}
|
|
611
616
|
/**
|
|
612
|
-
*
|
|
617
|
+
* Interface implemented by pluggable Renderer Strategies in RendererRegistry.
|
|
613
618
|
*/
|
|
614
|
-
|
|
619
|
+
interface IRendererStrategy {
|
|
620
|
+
/** Render type identifier handled by this strategy */
|
|
621
|
+
type: RenderType | string;
|
|
622
|
+
/** Transform input data into a standardized UITransformationResponse payload */
|
|
623
|
+
render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
|
|
624
|
+
}
|
|
615
625
|
|
|
616
626
|
/**
|
|
617
627
|
* Input contract for `LicenseValidator.validate()`.
|
|
@@ -681,6 +691,8 @@ interface LicenseValidationResponse {
|
|
|
681
691
|
declare class LicenseValidator {
|
|
682
692
|
private static instance;
|
|
683
693
|
private cache;
|
|
694
|
+
/** In-flight deduplication: concurrent calls for same key share one network request */
|
|
695
|
+
private inflight;
|
|
684
696
|
private static readonly SUCCESS_CACHE_TTL_MS;
|
|
685
697
|
private constructor();
|
|
686
698
|
/** @returns Singleton instance of the validator (shared cache across all consumers). */
|
|
@@ -708,141 +720,145 @@ declare class LicenseValidator {
|
|
|
708
720
|
* lock the chat widget.
|
|
709
721
|
*/
|
|
710
722
|
validate(request: LicenseValidationRequest): Promise<LicenseValidationResponse>;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
type CircuitState = 'closed' | 'open' | 'half-open';
|
|
714
|
-
interface CircuitBreakerOptions {
|
|
715
|
-
failureThreshold?: number;
|
|
716
|
-
resetTimeoutMs?: number;
|
|
717
|
-
halfOpenMaxCalls?: number;
|
|
718
|
-
}
|
|
719
|
-
declare class CircuitBreaker {
|
|
720
|
-
private state;
|
|
721
|
-
private failureCount;
|
|
722
|
-
private successCount;
|
|
723
|
-
private lastFailureAt;
|
|
724
|
-
private halfOpenCalls;
|
|
725
|
-
private readonly failureThreshold;
|
|
726
|
-
readonly resetTimeoutMs: number;
|
|
727
|
-
private readonly halfOpenMaxCalls;
|
|
728
|
-
constructor(options?: CircuitBreakerOptions);
|
|
729
|
-
record(success: boolean): void;
|
|
730
|
-
canExecute(): boolean;
|
|
731
|
-
/**
|
|
732
|
-
* Increments the half-open probe counter when a call is attempted in
|
|
733
|
-
* half-open state. Must be called after `canExecute()` returns true and
|
|
734
|
-
* the state is half-open. Safe to call in other states (no-op).
|
|
735
|
-
*/
|
|
736
|
-
incrementHalfOpen(): void;
|
|
737
|
-
/**
|
|
738
|
-
* Returns the number of milliseconds the caller should wait before retrying.
|
|
739
|
-
* Returns 0 when the circuit is closed or half-open (i.e., calls are allowed).
|
|
740
|
-
*
|
|
741
|
-
* Fix TYPE-1: replaces direct access to private `lastFailureAt` field via
|
|
742
|
-
* `(cb as any).lastFailureAt` in BatchProcessor.
|
|
743
|
-
*/
|
|
744
|
-
retryAfterMs(): number;
|
|
745
|
-
wrap<T>(fn: () => Promise<T>): Promise<T>;
|
|
746
|
-
getState(): CircuitState;
|
|
747
|
-
getFailureCount(): number;
|
|
748
|
-
reset(): void;
|
|
723
|
+
/** Performs the actual network request. Called once; result shared by in-flight dedup. */
|
|
724
|
+
private _doNetworkValidate;
|
|
749
725
|
}
|
|
750
726
|
|
|
751
727
|
/**
|
|
752
|
-
*
|
|
728
|
+
* LicenseConfigResolver — Resolves LLM and embedding configuration
|
|
729
|
+
* based on the user's license tier from Retrivora admin dashboard.
|
|
753
730
|
*
|
|
754
|
-
*
|
|
755
|
-
*
|
|
731
|
+
* The end-user SDK only needs:
|
|
732
|
+
* - licenseKey (JWT token from Retrivora)
|
|
733
|
+
* - projectId (workspace identifier)
|
|
756
734
|
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
762
|
-
*
|
|
735
|
+
* Configuration includes:
|
|
736
|
+
* 1. Tier-based model selection (/api/v1/config)
|
|
737
|
+
* 2. Provider API credentials (/api/v1/credentials)
|
|
738
|
+
* 3. Vector DB and rate limit settings
|
|
739
|
+
*
|
|
740
|
+
* All provider API keys (Gemini, Groq, Pinecone) are stored on Retrivora backend
|
|
741
|
+
* and never exposed to end-users directly.
|
|
763
742
|
*/
|
|
764
743
|
|
|
765
|
-
interface
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
* unrelated providers (e.g., PostgreSQL). When omitted, calls are made
|
|
784
|
-
* directly without circuit-breaking.
|
|
785
|
-
*/
|
|
786
|
-
circuitBreaker?: CircuitBreaker;
|
|
744
|
+
interface LicenseTierConfig {
|
|
745
|
+
tier: 'free_trial' | 'free' | 'hobby' | 'pro' | 'enterprise';
|
|
746
|
+
llmModel: string;
|
|
747
|
+
embeddingModel: string;
|
|
748
|
+
embeddingDimensions: number;
|
|
749
|
+
maxTokens: number;
|
|
750
|
+
chunkSize: number;
|
|
751
|
+
chunkOverlap: number;
|
|
752
|
+
topK: number;
|
|
753
|
+
vectorDb: {
|
|
754
|
+
provider: string;
|
|
755
|
+
indexName: string;
|
|
756
|
+
};
|
|
757
|
+
rateLimit?: {
|
|
758
|
+
requestsPerMinute: number;
|
|
759
|
+
tokensPerDay: number;
|
|
760
|
+
};
|
|
761
|
+
systemPrompt?: string;
|
|
787
762
|
}
|
|
788
|
-
interface
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
763
|
+
interface ProviderCredentials {
|
|
764
|
+
geminiApiKey?: string;
|
|
765
|
+
groqApiKey?: string;
|
|
766
|
+
pineconeApiKey?: string;
|
|
767
|
+
textEmbeddingProvider?: string;
|
|
768
|
+
}
|
|
769
|
+
interface ProviderCredentials {
|
|
770
|
+
geminiApiKey?: string;
|
|
771
|
+
groqApiKey?: string;
|
|
772
|
+
pineconeApiKey?: string;
|
|
773
|
+
textEmbeddingProvider?: string;
|
|
797
774
|
}
|
|
798
775
|
/**
|
|
799
|
-
*
|
|
776
|
+
* Resolver for license-based configuration.
|
|
777
|
+
* This is called by the end-user SDK after they instantiate with licenseKey + projectId.
|
|
800
778
|
*/
|
|
801
|
-
declare
|
|
802
|
-
|
|
779
|
+
declare class LicenseConfigResolver {
|
|
780
|
+
private static readonly RETRIVORA_CONFIG_URL;
|
|
781
|
+
private static readonly RETRIVORA_CREDENTIALS_URL;
|
|
782
|
+
private static readonly CACHE_TTL_MS;
|
|
783
|
+
private static configCache;
|
|
803
784
|
/**
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
* supply their own CircuitBreaker via BatchOptions.circuitBreaker.
|
|
809
|
-
* Fix TYPE-1: uses the public retryAfterMs() and incrementHalfOpen()
|
|
810
|
-
* API instead of accessing private fields via `as any`.
|
|
785
|
+
* Validate and resolve configuration from license key
|
|
786
|
+
* @param licenseKey JWT token from Retrivora (format: rtv_eyJ...)
|
|
787
|
+
* @param projectId Workspace identifier
|
|
788
|
+
* @returns Resolved LLM and embedding configs with provider credentials
|
|
811
789
|
*/
|
|
812
|
-
|
|
790
|
+
static resolveFromLicense(licenseKey: string, projectId: string): Promise<{
|
|
791
|
+
llmConfig: LLMConfig;
|
|
792
|
+
embeddingConfig: EmbeddingConfig;
|
|
793
|
+
vectorDbConfig: VectorDBConfig;
|
|
794
|
+
tierConfig: LicenseTierConfig;
|
|
795
|
+
credentials: ProviderCredentials;
|
|
796
|
+
}>;
|
|
813
797
|
/**
|
|
814
|
-
*
|
|
815
|
-
*
|
|
816
|
-
* @param items - Items to process
|
|
817
|
-
* @param processor - Async function that processes a batch of items
|
|
818
|
-
* @param options - Configuration for batch size, retries, etc.
|
|
819
|
-
* @returns Object with results, errors, and statistics
|
|
820
|
-
*
|
|
821
|
-
* @example
|
|
822
|
-
* const docs = [...];
|
|
823
|
-
* const result = await BatchProcessor.processBatch(
|
|
824
|
-
* docs,
|
|
825
|
-
* (batch) => vectorDB.batchUpsert(batch),
|
|
826
|
-
* { batchSize: 100, maxRetries: 3 }
|
|
827
|
-
* );
|
|
798
|
+
* Fetch tier configuration from Retrivora config API
|
|
828
799
|
*/
|
|
829
|
-
static
|
|
800
|
+
private static fetchTierConfig;
|
|
830
801
|
/**
|
|
831
|
-
*
|
|
832
|
-
* Useful for operations that don't support batching or when granular
|
|
833
|
-
* error tracking is needed.
|
|
802
|
+
* Fetch provider credentials from Retrivora credentials API
|
|
834
803
|
*/
|
|
835
|
-
static
|
|
804
|
+
private static fetchProviderCredentials;
|
|
836
805
|
/**
|
|
837
|
-
*
|
|
838
|
-
* Like Array.map() but with async processing and automatic retries.
|
|
806
|
+
* Build LLM, embedding, and vector DB configs from tier and credentials
|
|
839
807
|
*/
|
|
840
|
-
static
|
|
808
|
+
private static buildConfigs;
|
|
841
809
|
/**
|
|
842
|
-
*
|
|
843
|
-
* Processes up to `concurrency` items at the same time.
|
|
810
|
+
* Get provider-specific vector DB options
|
|
844
811
|
*/
|
|
845
|
-
static
|
|
812
|
+
private static getVectorDbOptions;
|
|
813
|
+
/**
|
|
814
|
+
* Clear configuration cache (useful for testing or manual refresh)
|
|
815
|
+
*/
|
|
816
|
+
static clearCache(): void;
|
|
817
|
+
/**
|
|
818
|
+
* Get cache stats for debugging
|
|
819
|
+
*/
|
|
820
|
+
static getCacheStats(): {
|
|
821
|
+
size: number;
|
|
822
|
+
entries: string[];
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Named SDK exceptions make failures machine-readable for host applications.
|
|
828
|
+
*/
|
|
829
|
+
type RetrivoraErrorCode = 'PROVIDER_NOT_FOUND' | 'EMBEDDING_FAILED' | 'RETRIEVAL_FAILED' | 'RATE_LIMITED' | 'CONFIGURATION_ERROR' | 'AUTHENTICATION_ERROR' | 'SDK_VERSION_UNSUPPORTED' | 'LICENSE_VALIDATION_ERROR';
|
|
830
|
+
declare class RetrivoraError extends Error {
|
|
831
|
+
readonly code: RetrivoraErrorCode;
|
|
832
|
+
readonly details?: unknown;
|
|
833
|
+
constructor(message: string, code: RetrivoraErrorCode, details?: unknown);
|
|
834
|
+
}
|
|
835
|
+
declare class ProviderNotFoundException extends RetrivoraError {
|
|
836
|
+
constructor(providerType: string, provider: string, details?: unknown);
|
|
837
|
+
}
|
|
838
|
+
declare class EmbeddingFailedException extends RetrivoraError {
|
|
839
|
+
constructor(message?: string, details?: unknown);
|
|
840
|
+
}
|
|
841
|
+
declare class RetrievalException extends RetrivoraError {
|
|
842
|
+
constructor(message?: string, details?: unknown);
|
|
843
|
+
}
|
|
844
|
+
declare class RateLimitException extends RetrivoraError {
|
|
845
|
+
constructor(message?: string, details?: unknown);
|
|
846
846
|
}
|
|
847
|
+
declare class ConfigurationException extends RetrivoraError {
|
|
848
|
+
constructor(message: string, details?: unknown);
|
|
849
|
+
}
|
|
850
|
+
declare class AuthenticationException extends RetrivoraError {
|
|
851
|
+
constructor(message?: string, details?: unknown);
|
|
852
|
+
}
|
|
853
|
+
declare class SDKVersionUnsupportedError extends RetrivoraError {
|
|
854
|
+
constructor(message?: string, details?: unknown);
|
|
855
|
+
}
|
|
856
|
+
declare class LicenseValidationError extends RetrivoraError {
|
|
857
|
+
constructor(message?: string, details?: unknown);
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Wraps any unknown error into an appropriate RetrivoraError subclass.
|
|
861
|
+
*/
|
|
862
|
+
declare function wrapError(err: unknown, defaultCode: RetrivoraErrorCode, defaultMessage?: string): RetrivoraError;
|
|
847
863
|
|
|
848
864
|
export { type RenderSectionDecision as $, AuthenticationException as A, type BatchOptions as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, type RemoteVectorConfig as F, type RenderDecision as G, type RenderType as H, type IRenderRule as I, RetrievalException as J, Retrivora as K, type LicenseTierConfig as L, type MessageBubbleProps as M, RetrivoraError as N, type RetrivoraErrorCode as O, type ProductCardProps as P, SDKVersionUnsupportedError as Q, type RemoteConfig as R, type SourceCardProps as S, SDK_VERSION as T, isTransientError as U, type ArchitectureCardProps as V, DocumentChunker as W, LicenseConfigResolver as X, Pipeline as Y, type PipelineStep as Z, type ProviderPill as _, type ChatWindowProps as a, type Snippet as a0, wrapError as a1, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, type ChatViewportSize as e, BatchProcessor as f, type BatchResult as g, type ChartType as h, type Chunk as i, type ChunkOptions as j, CircuitBreaker as k, type CircuitBreakerOptions as l, ConfigFetcher as m, ConfigurationException as n, type DecisionContext as o, type IRendererStrategy as p, type IntentCategory as q, LicenseValidationError as r, type LicenseValidationRequest as s, type LicenseValidationResponse as t, LicenseValidator as u, type ProviderCredentials as v, ProviderNotFoundException as w, RateLimitException as x, type RemoteEmbeddingConfig as y, type RemoteLLMConfig as z };
|