@mcp-use/inspector 0.22.3 → 0.23.0

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.
Files changed (217) hide show
  1. package/dist/cdn/inspector.js +22786 -22658
  2. package/dist/client/components/ChatTab.d.ts +5 -1
  3. package/dist/client/components/ChatTab.d.ts.map +1 -1
  4. package/dist/client/components/chat/ChatHeader.d.ts +3 -1
  5. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  6. package/dist/client/components/chat/useChatMessages.d.ts +1 -0
  7. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  8. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +1 -0
  9. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  10. package/dist/client/index.js +85 -65
  11. package/dist/web/assets/{1c-BY9hg5VO.js → 1c-B_je6PfC.js} +1 -1
  12. package/dist/web/assets/{abnf-CL1Oinim.js → abnf-CMyowSyS.js} +1 -1
  13. package/dist/web/assets/{accesslog-Daj2COOe.js → accesslog-B8bWWYFd.js} +1 -1
  14. package/dist/web/assets/{actionscript-CK4mTICu.js → actionscript-Bm06ULzQ.js} +1 -1
  15. package/dist/web/assets/{ada-Uu8mMOlf.js → ada-DB-eSZJZ.js} +1 -1
  16. package/dist/web/assets/{angelscript-DG3JS4Pt.js → angelscript-5kqeqwJe.js} +1 -1
  17. package/dist/web/assets/{apache-BbDRmKD5.js → apache-CybdhqJ2.js} +1 -1
  18. package/dist/web/assets/{applescript-C8vS9zYp.js → applescript-DdoNE_9S.js} +1 -1
  19. package/dist/web/assets/{arcade-B-AGXDua.js → arcade-DN-WIgd_.js} +1 -1
  20. package/dist/web/assets/{arduino-Cw77rja_.js → arduino-DwQxKJ4e.js} +1 -1
  21. package/dist/web/assets/{armasm-CHSjCEkG.js → armasm-dFo227o8.js} +1 -1
  22. package/dist/web/assets/{asciidoc-Cp4hnBVg.js → asciidoc-BEFNLOT0.js} +1 -1
  23. package/dist/web/assets/{aspectj-DnEJ_6Tx.js → aspectj-BQH--xv3.js} +1 -1
  24. package/dist/web/assets/{autohotkey-pG5ZN3Xb.js → autohotkey-CFDHj8-O.js} +1 -1
  25. package/dist/web/assets/{autoit-C93zudGB.js → autoit-B8H_AR3d.js} +1 -1
  26. package/dist/web/assets/{avrasm-D8P7I6Xk.js → avrasm-CFP-9Hcg.js} +1 -1
  27. package/dist/web/assets/{awk-B9AiPTi_.js → awk-BTDWhXxC.js} +1 -1
  28. package/dist/web/assets/{axapta-BiHIWhbm.js → axapta-BkG50zY6.js} +1 -1
  29. package/dist/web/assets/{bash-Co_XMbBz.js → bash-BwmuHn4L.js} +1 -1
  30. package/dist/web/assets/{basic-gWgkzZ40.js → basic-DyMnlzsT.js} +1 -1
  31. package/dist/web/assets/{bnf-CZ112Y_1.js → bnf-wgP2gYai.js} +1 -1
  32. package/dist/web/assets/{brainfuck-HHe3MmJP.js → brainfuck-sl47XX-n.js} +1 -1
  33. package/dist/web/assets/{c-BiqWWzON.js → c-BsHU5Igk.js} +1 -1
  34. package/dist/web/assets/{c-like-Db5tg_sr.js → c-like-CqskoEx9.js} +1 -1
  35. package/dist/web/assets/{cal-QNnVn6v3.js → cal-BznNzu_D.js} +1 -1
  36. package/dist/web/assets/{capnproto-RqTIpDx9.js → capnproto-DUBMKB47.js} +1 -1
  37. package/dist/web/assets/{ceylon-BuovP0OQ.js → ceylon-ySvbdVNJ.js} +1 -1
  38. package/dist/web/assets/{clean-q9TT-CqW.js → clean-BDNdAdak.js} +1 -1
  39. package/dist/web/assets/{client-A6Te1Nrl.js → client-BuqtKWTS.js} +3 -3
  40. package/dist/web/assets/{clojure-Bv4T1o6e.js → clojure-BUYGZAJO.js} +1 -1
  41. package/dist/web/assets/{clojure-repl-BKNwzg9u.js → clojure-repl-CFX3nuKH.js} +1 -1
  42. package/dist/web/assets/{cmake-GwS-m6mj.js → cmake-B0jnRzyO.js} +1 -1
  43. package/dist/web/assets/{coffeescript-St5PB0o0.js → coffeescript-CpXwCdZz.js} +1 -1
  44. package/dist/web/assets/{coq-C9uljeUe.js → coq-27HdgGtX.js} +1 -1
  45. package/dist/web/assets/{core-BcNI4N_j.js → core-BMZRhyOQ.js} +1 -1
  46. package/dist/web/assets/{cos-DC_u_2Wk.js → cos-BDZEzGql.js} +1 -1
  47. package/dist/web/assets/{cpp-Npi735iX.js → cpp-CdJeebjR.js} +1 -1
  48. package/dist/web/assets/{crmsh-CgwDy8hW.js → crmsh-BQAX9lf1.js} +1 -1
  49. package/dist/web/assets/{crystal-ChC4oJ0U.js → crystal-BEigTkZV.js} +1 -1
  50. package/dist/web/assets/{csharp-Clz9F3sP.js → csharp-CfEDILBg.js} +1 -1
  51. package/dist/web/assets/{csp-CQs0Rgdv.js → csp-CxPy5hcn.js} +1 -1
  52. package/dist/web/assets/{css-Dx2cWeap.js → css-CMLuD7AI.js} +1 -1
  53. package/dist/web/assets/{d-Ck5uThWL.js → d-ClrhAUQO.js} +1 -1
  54. package/dist/web/assets/{dart-Do5z2Ebl.js → dart-BjGU1EF6.js} +1 -1
  55. package/dist/web/assets/{delphi-CIoWS_NP.js → delphi-QulVW-GU.js} +1 -1
  56. package/dist/web/assets/{diff-D9MaYDd0.js → diff-12NuWxNv.js} +1 -1
  57. package/dist/web/assets/{display-A5IEINAP-cWKELVdp.js → display-A5IEINAP-Djz0KdYV.js} +2 -2
  58. package/dist/web/assets/{django-BAB_pc60.js → django-G2wpsFnc.js} +1 -1
  59. package/dist/web/assets/{dns-C_qR2SoS.js → dns-CMUAhAyW.js} +1 -1
  60. package/dist/web/assets/{dockerfile-dLPaPiNQ.js → dockerfile-DW2nN5-j.js} +1 -1
  61. package/dist/web/assets/{dos-zeCIrpto.js → dos-BdpgcwAB.js} +1 -1
  62. package/dist/web/assets/{dsconfig-V_lTjveF.js → dsconfig-DpuxAJjs.js} +1 -1
  63. package/dist/web/assets/{dts-DCkpDwtb.js → dts-MWWeiyZ-.js} +1 -1
  64. package/dist/web/assets/{dust-BCiH9mmH.js → dust-BvFjCcxi.js} +1 -1
  65. package/dist/web/assets/{ebnf-BssZ73ZD.js → ebnf-CCLpH6ws.js} +1 -1
  66. package/dist/web/assets/{elixir-yGlt97yR.js → elixir-Dq40XM8Z.js} +1 -1
  67. package/dist/web/assets/{elm-Bgc7A4ej.js → elm-BVy63D_g.js} +1 -1
  68. package/dist/web/assets/{embeddings-BPcF2rPH.js → embeddings-BvH7ZdmL.js} +1 -1
  69. package/dist/web/assets/{erb-i7RV7Mgu.js → erb-Dnlj40O6.js} +1 -1
  70. package/dist/web/assets/{erlang-BF9Lu8b3.js → erlang-DQYvLS_f.js} +1 -1
  71. package/dist/web/assets/{erlang-repl-CwtXgIsP.js → erlang-repl-IRMolZ4v.js} +1 -1
  72. package/dist/web/assets/{excel-CoCCOh1G.js → excel-CamZDJFp.js} +1 -1
  73. package/dist/web/assets/{fix-DPMCJ8fg.js → fix-DyJGyuzT.js} +1 -1
  74. package/dist/web/assets/{flix-DnqM5wSr.js → flix-IAT9M8k0.js} +1 -1
  75. package/dist/web/assets/{fortran-BIogvxTs.js → fortran-Xq5ArUMh.js} +1 -1
  76. package/dist/web/assets/{fsharp-BB0Klq7T.js → fsharp-B_YSlgiC.js} +1 -1
  77. package/dist/web/assets/{gams-CrDnIzMO.js → gams-5gA6q89M.js} +1 -1
  78. package/dist/web/assets/{gauss-DPqf_7wG.js → gauss-BpCcOLfr.js} +1 -1
  79. package/dist/web/assets/{gcode-DrFUoPm6.js → gcode-DwtGgXaR.js} +1 -1
  80. package/dist/web/assets/{gherkin-BhNnk7p6.js → gherkin-KXqOjvTC.js} +1 -1
  81. package/dist/web/assets/{glsl-Dt2D_ceQ.js → glsl-22KfDz-0.js} +1 -1
  82. package/dist/web/assets/{gml-B99j-iGN.js → gml-DEKvIqVF.js} +1 -1
  83. package/dist/web/assets/{go-vo9AETVa.js → go-D-wiYFxl.js} +1 -1
  84. package/dist/web/assets/{golo-CblP64f1.js → golo-DJrp9ats.js} +1 -1
  85. package/dist/web/assets/{gradle-CrTckNQc.js → gradle-CMtW6Qfi.js} +1 -1
  86. package/dist/web/assets/{groovy-Bt9GtKxe.js → groovy-D0xBkuRa.js} +1 -1
  87. package/dist/web/assets/{haml-DvJ_-R8m.js → haml-Xo0_4dqz.js} +1 -1
  88. package/dist/web/assets/{handlebars-C6Gt0Yxn.js → handlebars-BPJ5GVnz.js} +1 -1
  89. package/dist/web/assets/{haskell-DF2pQwvn.js → haskell-CoqneDxq.js} +1 -1
  90. package/dist/web/assets/{haxe-D0xvaxiF.js → haxe-D7euWtAP.js} +1 -1
  91. package/dist/web/assets/{hsp-C6pWfp4u.js → hsp-D3rX7tSn.js} +1 -1
  92. package/dist/web/assets/{htmlbars-BORPrLad.js → htmlbars-EsxrG9s9.js} +1 -1
  93. package/dist/web/assets/{http-DOfBwVD2.js → http-BLdsE9-_.js} +1 -1
  94. package/dist/web/assets/{hy-Ds_8m9M4.js → hy-CQRm0lvC.js} +1 -1
  95. package/dist/web/assets/{index-BCuNBDGw.js → index-BGZ_E61E.js} +1 -1
  96. package/dist/web/assets/{index-CS79cRUw.js → index-BWrbAuul.js} +1 -1
  97. package/dist/web/assets/{index-C5fcbC9F.js → index-CasfVa_z.js} +1 -1
  98. package/dist/web/assets/{index-Djs_VhKs.js → index-DYdfZiN5.js} +1 -1
  99. package/dist/web/assets/{index-8CwMSFu3.js → index-EQ5dayGy.js} +155 -155
  100. package/dist/web/assets/{index-By9Gfw-Q.js → index-VInbTqkl.js} +1 -1
  101. package/dist/web/assets/{index-DkeQAS92.js → index-rGyQWD5d.js} +1 -1
  102. package/dist/web/assets/{inform7-CycWHUYM.js → inform7-BhKMBHn1.js} +1 -1
  103. package/dist/web/assets/{ini-Dqot2gvf.js → ini-B8h_vE4H.js} +1 -1
  104. package/dist/web/assets/{irpf90-CC-czpc_.js → irpf90-CTrvOh6B.js} +1 -1
  105. package/dist/web/assets/{isbl-B09yO6kk.js → isbl-CiBkUpIB.js} +1 -1
  106. package/dist/web/assets/{java-CCi2jkz6.js → java-Dejg8LYu.js} +1 -1
  107. package/dist/web/assets/{javascript-D1P6LK-b.js → javascript-BSr_g6Qp.js} +1 -1
  108. package/dist/web/assets/{jboss-cli-BAubHM2x.js → jboss-cli-BJPQrGBp.js} +1 -1
  109. package/dist/web/assets/{json-Cpbzvk2j.js → json-DW6y8gJL.js} +1 -1
  110. package/dist/web/assets/{julia-BCtJ-qSx.js → julia-CVwylLUm.js} +1 -1
  111. package/dist/web/assets/{julia-repl-wwBIF-51.js → julia-repl-BaYgxd1Q.js} +1 -1
  112. package/dist/web/assets/{kotlin-TQsrk-cQ.js → kotlin-DaR9zYlH.js} +1 -1
  113. package/dist/web/assets/{langfuse-U2OEF7K7-CZn-4_83.js → langfuse-U2OEF7K7-CGMUPIPb.js} +3 -3
  114. package/dist/web/assets/{lasso-CxrDgkB8.js → lasso-UR0nfSAp.js} +1 -1
  115. package/dist/web/assets/{latex-Dx5D1LvA.js → latex-6QoImG_q.js} +1 -1
  116. package/dist/web/assets/{ldif-CHuUnp8F.js → ldif-BVb__qq8.js} +1 -1
  117. package/dist/web/assets/{leaf-BGMI4wpN.js → leaf-B9eyYs68.js} +1 -1
  118. package/dist/web/assets/{less-C9X8Hb5d.js → less-DwfIC8bh.js} +1 -1
  119. package/dist/web/assets/{lisp-CKgTvj0b.js → lisp-C7qEPJ3F.js} +1 -1
  120. package/dist/web/assets/{livecodeserver-Dvcifilt.js → livecodeserver-CGD1DD2T.js} +1 -1
  121. package/dist/web/assets/{livescript-C-5HpQtc.js → livescript-C-9OhXPH.js} +1 -1
  122. package/dist/web/assets/{llms--9GbEsAa.js → llms-B0zs90kq.js} +1 -1
  123. package/dist/web/assets/{llvm-CQWQrKZN.js → llvm-16wwRDwA.js} +1 -1
  124. package/dist/web/assets/{lsl-B0S8WlXY.js → lsl-CWuJPVoL.js} +1 -1
  125. package/dist/web/assets/{lua-opSykX_e.js → lua-LITIGhoN.js} +1 -1
  126. package/dist/web/assets/{makefile-BleNuj93.js → makefile-95Bba-dy.js} +1 -1
  127. package/dist/web/assets/{markdown-DkTnsspf.js → markdown-C95TKAda.js} +1 -1
  128. package/dist/web/assets/{mathematica-CSWTWKFD.js → mathematica-BQpRB38P.js} +1 -1
  129. package/dist/web/assets/{matlab-CMzIWY1g.js → matlab-BGayBMsq.js} +1 -1
  130. package/dist/web/assets/{maxima-DX_NdAF5.js → maxima-CjZWFs_J.js} +1 -1
  131. package/dist/web/assets/{mel-fbkdu9e_.js → mel-BpEckeWP.js} +1 -1
  132. package/dist/web/assets/{mercury-DnixjAw6.js → mercury-D2zkDp8M.js} +1 -1
  133. package/dist/web/assets/{mipsasm-CxsQAxBE.js → mipsasm-CRPiVoeH.js} +1 -1
  134. package/dist/web/assets/{mizar-CNJNhi8W.js → mizar-B3BtwgcQ.js} +1 -1
  135. package/dist/web/assets/{mojolicious-DQjQSzH4.js → mojolicious-CJ3KCHwt.js} +1 -1
  136. package/dist/web/assets/{monkey-BuvDb5Cg.js → monkey-BQ5qA794.js} +1 -1
  137. package/dist/web/assets/{moonscript-q6-TxIeT.js → moonscript-BCr1MWWG.js} +1 -1
  138. package/dist/web/assets/{n1ql-BAzbI-Kf.js → n1ql-CGYGZU8R.js} +1 -1
  139. package/dist/web/assets/{nginx-CgPxRmoX.js → nginx-DkMtKMmq.js} +1 -1
  140. package/dist/web/assets/{nim-Y774-80w.js → nim-CMa9cdZ7.js} +1 -1
  141. package/dist/web/assets/{nix-DL90C1A9.js → nix-CdqVQ-JG.js} +1 -1
  142. package/dist/web/assets/{node-repl-BAH-4aO8.js → node-repl-BlT0krOy.js} +1 -1
  143. package/dist/web/assets/{nsis-Cag1K8pu.js → nsis-BAwbESyn.js} +1 -1
  144. package/dist/web/assets/{objectivec-2AOmg7Fb.js → objectivec-BAwBm25O.js} +1 -1
  145. package/dist/web/assets/{ocaml-CYr9n3jl.js → ocaml-DYJ8qoU6.js} +1 -1
  146. package/dist/web/assets/{openscad-BMX-Qk_F.js → openscad-DkqvknC-.js} +1 -1
  147. package/dist/web/assets/{oxygene-DV8Kwi5Z.js → oxygene-BrJvcxBy.js} +1 -1
  148. package/dist/web/assets/{parser3-gVJVwyss.js → parser3-fafUqQi2.js} +1 -1
  149. package/dist/web/assets/{perl-CqjBEZKS.js → perl--jYF00F0.js} +1 -1
  150. package/dist/web/assets/{pf-qok5iX1r.js → pf-BhSXdG0_.js} +1 -1
  151. package/dist/web/assets/{pgsql-BS0ptGTu.js → pgsql-HgzZhc5T.js} +1 -1
  152. package/dist/web/assets/{php-kWdk0F6D.js → php-DZyMwBqo.js} +1 -1
  153. package/dist/web/assets/{php-template-DQowOhOF.js → php-template-B8piwhU2.js} +1 -1
  154. package/dist/web/assets/{plaintext-DtctCUuH.js → plaintext-EAUL7Dxt.js} +1 -1
  155. package/dist/web/assets/{pony-BzPWCeVb.js → pony-CCpAjnnq.js} +1 -1
  156. package/dist/web/assets/{powershell-D1Xb8Pnx.js → powershell-DT_hNyeL.js} +1 -1
  157. package/dist/web/assets/{processing-BcLgJ-ad.js → processing-BPIe0lUf.js} +1 -1
  158. package/dist/web/assets/{profile-D2YuE2tN.js → profile-oG12msCt.js} +1 -1
  159. package/dist/web/assets/{prolog-cbf9nEFr.js → prolog-C4FL3v6h.js} +1 -1
  160. package/dist/web/assets/{properties-BsD67rYU.js → properties-XGoYqUVT.js} +1 -1
  161. package/dist/web/assets/{protobuf-BObX6a5a.js → protobuf--oqbsbBH.js} +1 -1
  162. package/dist/web/assets/{puppet-CvJOCWWw.js → puppet-B_Gin-K8.js} +1 -1
  163. package/dist/web/assets/{purebasic-CKsYYjhg.js → purebasic-DyEwTmwY.js} +1 -1
  164. package/dist/web/assets/{python-LuPUaF8e.js → python-QFOsazzN.js} +1 -1
  165. package/dist/web/assets/{python-repl-BNDDtIuA.js → python-repl-DFj8HAmm.js} +1 -1
  166. package/dist/web/assets/{q-iW6HwAxF.js → q-I0_NMD2H.js} +1 -1
  167. package/dist/web/assets/{qml-CaT0tW8S.js → qml-CMebwEgm.js} +1 -1
  168. package/dist/web/assets/{r-DBoUpgfg.js → r-DKKlNppV.js} +1 -1
  169. package/dist/web/assets/{reasonml-CV6zVGNT.js → reasonml-CbRZEW-I.js} +1 -1
  170. package/dist/web/assets/{rib-8Ox4ZZxr.js → rib-E5n3Msug.js} +1 -1
  171. package/dist/web/assets/{roboconf-CaWw3vEJ.js → roboconf-Dv9mT086.js} +1 -1
  172. package/dist/web/assets/{routeros-DZuoGNbX.js → routeros-BfutvcgN.js} +1 -1
  173. package/dist/web/assets/{rsl-D435zTs_.js → rsl-FiwBpg36.js} +1 -1
  174. package/dist/web/assets/{ruby-Bpnl5leP.js → ruby-Dxo6i7Sa.js} +1 -1
  175. package/dist/web/assets/{ruleslanguage-d1jaVL2t.js → ruleslanguage-CaIzMGqP.js} +1 -1
  176. package/dist/web/assets/{rust-_XzUPcJX.js → rust-COrUlmUI.js} +1 -1
  177. package/dist/web/assets/{sas-D2nsObqn.js → sas-D4qg8kb5.js} +1 -1
  178. package/dist/web/assets/{scala-D5O0jaRL.js → scala-CUBcEPgu.js} +1 -1
  179. package/dist/web/assets/{scheme-B1s6egle.js → scheme-0ZpX1ySL.js} +1 -1
  180. package/dist/web/assets/{scilab-Dde56007.js → scilab-BCODw-0T.js} +1 -1
  181. package/dist/web/assets/{scss-j5LXnIyV.js → scss-le2yyBXs.js} +1 -1
  182. package/dist/web/assets/{shell-qeht7kvG.js → shell-B-0dFyKm.js} +1 -1
  183. package/dist/web/assets/{smali-DqpFuxTr.js → smali-DMWoqzQX.js} +1 -1
  184. package/dist/web/assets/{smalltalk-BJipSjpG.js → smalltalk-lkIe20u7.js} +1 -1
  185. package/dist/web/assets/{sml-BwTqiu2x.js → sml-BLssJHhI.js} +1 -1
  186. package/dist/web/assets/{sqf-BeI49Hag.js → sqf-BSiek2nc.js} +1 -1
  187. package/dist/web/assets/{sql-DW_5amaf.js → sql-CwPLT5Zx.js} +1 -1
  188. package/dist/web/assets/{sql_more-DGnGnKZF.js → sql_more-CYbYArA0.js} +1 -1
  189. package/dist/web/assets/{stan-CZro_4hI.js → stan-C1xx8pCO.js} +1 -1
  190. package/dist/web/assets/{stata-C4SBQoKJ.js → stata-CIH7ZWNc.js} +1 -1
  191. package/dist/web/assets/{stdio-YPS6T26I-D8D73-f-.js → stdio-PTTIG7SS-me9t1SdW.js} +1 -1
  192. package/dist/web/assets/{step21-BzIPRteI.js → step21-XNBcD_dp.js} +1 -1
  193. package/dist/web/assets/{stylus-DJICcqbR.js → stylus-BD_OvkZb.js} +1 -1
  194. package/dist/web/assets/{subunit-Cs9rVey-.js → subunit-D9lzPgDY.js} +1 -1
  195. package/dist/web/assets/{swift-CGstItND.js → swift-D6Ck_ind.js} +1 -1
  196. package/dist/web/assets/{taggerscript-DNQQCUhH.js → taggerscript-aPaeNA4b.js} +1 -1
  197. package/dist/web/assets/{tap-RuaqtcHb.js → tap-C7r0ZeWw.js} +1 -1
  198. package/dist/web/assets/{tcl-yKcgwGzI.js → tcl-DzVGzGM7.js} +1 -1
  199. package/dist/web/assets/{thrift-aIIWVf1c.js → thrift-iZUyuSTy.js} +1 -1
  200. package/dist/web/assets/{tp-bIe96RTe.js → tp-BpuLXsMO.js} +1 -1
  201. package/dist/web/assets/{twig-hiHSs1AP.js → twig-BojFLS7l.js} +1 -1
  202. package/dist/web/assets/{typescript-BhNKgKZ0.js → typescript-Bi9qg7GO.js} +1 -1
  203. package/dist/web/assets/{vala-DOGhBEmL.js → vala-DbcwTZqk.js} +1 -1
  204. package/dist/web/assets/{vbnet-Cbz-z6AW.js → vbnet-DFnvJTPG.js} +1 -1
  205. package/dist/web/assets/{vbscript-ChcS2gY9.js → vbscript-DiUDExti.js} +1 -1
  206. package/dist/web/assets/{vbscript-html-SdY2oJMk.js → vbscript-html-DlyUoqjN.js} +1 -1
  207. package/dist/web/assets/{verilog-CXnd9XvY.js → verilog-LwisCW_O.js} +1 -1
  208. package/dist/web/assets/{vhdl-DU-MPXBT.js → vhdl-CS5FT-M5.js} +1 -1
  209. package/dist/web/assets/{vim-BLXZENow.js → vim-Btvi-251.js} +1 -1
  210. package/dist/web/assets/{x86asm-4So3Hav3.js → x86asm-C75IOaeQ.js} +1 -1
  211. package/dist/web/assets/{xl-W5T-Pr7d.js → xl-BSeeUT0h.js} +1 -1
  212. package/dist/web/assets/{xml-DwKWdh_5.js → xml-D-m4zfDV.js} +1 -1
  213. package/dist/web/assets/{xquery-B5Lron-I.js → xquery-Dquu35_d.js} +1 -1
  214. package/dist/web/assets/{yaml-CqCoSwCx.js → yaml-DZAxXcR7.js} +1 -1
  215. package/dist/web/assets/{zephir-BbxJ_pNe.js → zephir-B8Lcrp1n.js} +1 -1
  216. package/dist/web/index.html +2 -2
  217. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import{X as Zs,be as Za,bf as x,bg as Ja,ad as Ha,ac as Va,Q as Me,bh as Xa,a1 as R,b as et,aw as Ga,aJ as Ya,a2 as Qa,Z as Js,$ as Hs,U as Ce,l as bt,bi as ei,W as vn,bj as rs,bk as ti,bl as ni,bm as si,a0 as as,bn as is,bo as ri,y as ai,V as sn,G as ii,b2 as Z,b8 as xn,ba as te,bc as Vs,bb as W,b3 as Mt,b9 as Q,bp as oi,p as ui,A as li,a as ci}from"./index-8CwMSFu3.js";import{c as pi,j as di,h as hi,f as Xs,S as os,J as us,R as ls,k as fi}from"./index-BCuNBDGw.js";import{J as cs,c as mi,p as Gs,m as lt,B as gi}from"./llms--9GbEsAa.js";import{c as rn,E as _i}from"./embeddings-BPcF2rPH.js";import{T as yi,t as zt,D as wi}from"./index-DkeQAS92.js";function tt(e,t){return e.lc_error_code=t,e.message=`${e.message}
1
+ import{X as Zs,be as Za,bf as x,bg as Ja,ad as Ha,ac as Va,Q as Me,bh as Xa,a1 as R,b as et,aw as Ga,aJ as Ya,a2 as Qa,Z as Js,$ as Hs,U as Ce,l as bt,bi as ei,W as vn,bj as rs,bk as ti,bl as ni,bm as si,a0 as as,bn as is,bo as ri,y as ai,V as sn,G as ii,b2 as Z,b8 as xn,ba as te,bc as Vs,bb as W,b3 as Mt,b9 as Q,bp as oi,p as ui,A as li,a as ci}from"./index-EQ5dayGy.js";import{c as pi,j as di,h as hi,f as Xs,S as os,J as us,R as ls,k as fi}from"./index-BGZ_E61E.js";import{J as cs,c as mi,p as Gs,m as lt,B as gi}from"./llms-B0zs90kq.js";import{c as rn,E as _i}from"./embeddings-BvH7ZdmL.js";import{T as yi,t as zt,D as wi}from"./index-rGyQWD5d.js";function tt(e,t){return e.lc_error_code=t,e.message=`${e.message}
2
2
 
3
3
  Troubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${t}/
4
4
  `,e}function O(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}function p(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)}let Ys=function(){const{crypto:e}=globalThis;if(e?.randomUUID)return Ys=e.randomUUID.bind(e),e.randomUUID();const t=new Uint8Array(1),n=e?()=>e.getRandomValues(t)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s=>(+s^n()&15>>+s/4).toString(16))};function an(e){return typeof e=="object"&&e!==null&&("name"in e&&e.name==="AbortError"||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}const on=e=>{if(e instanceof Error)return e;if(typeof e=="object"&&e!==null){try{if(Object.prototype.toString.call(e)==="[object Error]"){const t=new Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return new Error(JSON.stringify(e))}catch{}}return new Error(e)};class A extends Error{}class q extends A{constructor(t,n,s,r){super(`${q.makeMessage(t,n,s)}`),this.status=t,this.headers=r,this.requestID=r?.get("x-request-id"),this.error=n;const a=n;this.code=a?.code,this.param=a?.param,this.type=a?.type}static makeMessage(t,n,s){const r=n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):s;return t&&r?`${t} ${r}`:t?`${t} status code (no body)`:r||"(no status code or body)"}static generate(t,n,s,r){if(!t||!r)return new Ut({message:s,cause:on(n)});const a=n?.error;return t===400?new Qs(t,a,s,r):t===401?new er(t,a,s,r):t===403?new tr(t,a,s,r):t===404?new nr(t,a,s,r):t===409?new sr(t,a,s,r):t===422?new rr(t,a,s,r):t===429?new ar(t,a,s,r):t>=500?new ir(t,a,s,r):new q(t,a,s,r)}}class ee extends q{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Ut extends q{constructor({message:t,cause:n}){super(void 0,void 0,t||"Connection error.",void 0),n&&(this.cause=n)}}class Lt extends Ut{constructor({message:t}={}){super({message:t??"Request timed out."})}}class Qs extends q{}class er extends q{}class tr extends q{}class nr extends q{}class sr extends q{}class rr extends q{}class ar extends q{}class ir extends q{}class or extends A{constructor(){super("Could not parse response content as the length limit was reached")}}class ur extends A{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class ze extends Error{constructor(t){super(t)}}const bi=/^[a-z][a-z0-9+.-]*:/i,Ai=e=>bi.test(e);let V=e=>(V=Array.isArray,V(e)),ps=V;function lr(e){return typeof e!="object"?{}:e??{}}function Ii(e){if(!e)return!0;for(const t in e)return!1;return!0}function Oi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ct(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const vi=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new A(`${e} must be an integer`);if(t<0)throw new A(`${e} must be a positive integer`);return t},xi=e=>{try{return JSON.parse(e)}catch{return}},Ve=e=>new Promise(t=>setTimeout(t,e)),ve="6.17.0",ki=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u";function Ti(){return typeof Deno<"u"&&Deno.build!=null?"deno":typeof EdgeRuntime<"u"?"edge":Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]"?"node":"unknown"}const Ci=()=>{const e=Ti();if(e==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":hs(Deno.build.os),"X-Stainless-Arch":ds(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(e==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":hs(globalThis.process.platform??"unknown"),"X-Stainless-Arch":ds(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};const t=Si();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function Si(){if(typeof navigator>"u"||!navigator)return null;const e=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:t,pattern:n}of e){const s=n.exec(navigator.userAgent);if(s){const r=s[1]||0,a=s[2]||0,i=s[3]||0;return{browser:t,version:`${r}.${a}.${i}`}}}return null}const ds=e=>e==="x32"?"x32":e==="x86_64"||e==="x64"?"x64":e==="arm"?"arm":e==="aarch64"||e==="arm64"?"arm64":e?`other:${e}`:"unknown",hs=e=>(e=e.toLowerCase(),e.includes("ios")?"iOS":e==="android"?"Android":e==="darwin"?"MacOS":e==="win32"?"Windows":e==="freebsd"?"FreeBSD":e==="openbsd"?"OpenBSD":e==="linux"?"Linux":e?`Other:${e}`:"Unknown");let fs;const Pi=()=>fs??(fs=Ci());function Ri(){if(typeof fetch<"u")return fetch;throw new Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function cr(...e){const t=globalThis.ReadableStream;if(typeof t>"u")throw new Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function pr(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return cr({start(){},async pull(n){const{done:s,value:r}=await t.next();s?n.close():n.enqueue(r)},async cancel(){await t.return?.()}})}function dr(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const n=await t.read();return n?.done&&t.releaseLock(),n}catch(n){throw t.releaseLock(),n}},async return(){const n=t.cancel();return t.releaseLock(),await n,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function Ei(e){if(e===null||typeof e!="object")return;if(e[Symbol.asyncIterator]){await e[Symbol.asyncIterator]().return?.();return}const t=e.getReader(),n=t.cancel();t.releaseLock(),await n}const $i=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),hr="RFC3986",fr=e=>String(e),ms={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:fr},Ni="RFC1738";let un=(e,t)=>(un=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),un(e,t));const ae=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Vt=1024,Mi=(e,t,n,s,r)=>{if(e.length===0)return e;let a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(o){return"%26%23"+parseInt(o.slice(2),16)+"%3B"});let i="";for(let o=0;o<a.length;o+=Vt){const l=a.length>=Vt?a.slice(o,o+Vt):a,u=[];for(let m=0;m<l.length;++m){let d=l.charCodeAt(m);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Ni&&(d===40||d===41)){u[u.length]=l.charAt(m);continue}if(d<128){u[u.length]=ae[d];continue}if(d<2048){u[u.length]=ae[192|d>>6]+ae[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=ae[224|d>>12]+ae[128|d>>6&63]+ae[128|d&63];continue}m+=1,d=65536+((d&1023)<<10|l.charCodeAt(m)&1023),u[u.length]=ae[240|d>>18]+ae[128|d>>12&63]+ae[128|d>>6&63]+ae[128|d&63]}i+=u.join("")}return i};function zi(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function gs(e,t){if(V(e)){const n=[];for(let s=0;s<e.length;s+=1)n.push(t(e[s]));return n}return t(e)}const mr={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},gr=function(e,t){Array.prototype.push.apply(e,V(t)?t:[t])};let _s;const U={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Mi,encodeValuesOnly:!1,format:hr,formatter:fr,indices:!1,serializeDate(e){return(_s??(_s=Function.prototype.call.bind(Date.prototype.toISOString)))(e)},skipNulls:!1,strictNullHandling:!1};function Ui(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const Xt={};function _r(e,t,n,s,r,a,i,o,l,u,m,d,f,c,w,b,C,h){let g=e,k=h,S=0,J=!1;for(;(k=k.get(Xt))!==void 0&&!J;){const $=k.get(e);if(S+=1,typeof $<"u"){if($===S)throw new RangeError("Cyclic object value");J=!0}typeof k.get(Xt)>"u"&&(S=0)}if(typeof u=="function"?g=u(t,g):g instanceof Date?g=f?.(g):n==="comma"&&V(g)&&(g=gs(g,function($){return $ instanceof Date?f?.($):$})),g===null){if(a)return l&&!b?l(t,U.encoder,C,"key",c):t;g=""}if(Ui(g)||zi(g)){if(l){const $=b?t:l(t,U.encoder,C,"key",c);return[w?.($)+"="+w?.(l(g,U.encoder,C,"value",c))]}return[w?.(t)+"="+w?.(String(g))]}const L=[];if(typeof g>"u")return L;let E;if(n==="comma"&&V(g))b&&l&&(g=gs(g,l)),E=[{value:g.length>0?g.join(",")||null:void 0}];else if(V(u))E=u;else{const $=Object.keys(g);E=m?$.sort(m):$}const B=o?String(t).replace(/\./g,"%2E"):String(t),D=s&&V(g)&&g.length===1?B+"[]":B;if(r&&V(g)&&g.length===0)return D+"[]";for(let $=0;$<E.length;++$){const M=E[$],ns=typeof M=="object"&&typeof M.value<"u"?M.value:g[M];if(i&&ns===null)continue;const Ht=d&&o?M.replace(/\./g,"%2E"):M,Wa=V(g)?typeof n=="function"?n(D,Ht):D:D+(d?"."+Ht:"["+Ht+"]");h.set(e,S);const ss=new WeakMap;ss.set(Xt,h),gr(L,_r(ns,Wa,n,s,r,a,i,o,n==="comma"&&b&&V(g)?null:l,u,m,d,f,c,w,b,C,ss))}return L}function Li(e=U){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||U.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=hr;if(typeof e.format<"u"){if(!un(ms,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const s=ms[n];let r=U.filter;(typeof e.filter=="function"||V(e.filter))&&(r=e.filter);let a;if(e.arrayFormat&&e.arrayFormat in mr?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=U.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const i=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:U.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:U.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:U.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:U.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?U.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:U.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:U.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:U.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:U.encodeValuesOnly,filter:r,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:U.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:U.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:U.strictNullHandling}}function Di(e,t={}){let n=e;const s=Li(t);let r,a;typeof s.filter=="function"?(a=s.filter,n=a("",n)):V(s.filter)&&(a=s.filter,r=a);const i=[];if(typeof n!="object"||n===null)return"";const o=mr[s.arrayFormat],l=o==="comma"&&s.commaRoundTrip;r||(r=Object.keys(n)),s.sort&&r.sort(s.sort);const u=new WeakMap;for(let f=0;f<r.length;++f){const c=r[f];s.skipNulls&&n[c]===null||gr(i,_r(n[c],c,o,l,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,u))}const m=i.join(s.delimiter);let d=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),m.length>0?d+m:""}function ji(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let s=0;for(const r of e)n.set(r,s),s+=r.length;return n}let ys;function kn(e){let t;return(ys??(t=new globalThis.TextEncoder,ys=t.encode.bind(t)))(e)}let ws;function bs(e){let t;return(ws??(t=new globalThis.TextDecoder,ws=t.decode.bind(t)))(e)}var X,G;class Dt{constructor(){X.set(this,void 0),G.set(this,void 0),O(this,X,new Uint8Array),O(this,G,null)}decode(t){if(t==null)return[];const n=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?kn(t):t;O(this,X,ji([p(this,X,"f"),n]));const s=[];let r;for(;(r=Bi(p(this,X,"f"),p(this,G,"f")))!=null;){if(r.carriage&&p(this,G,"f")==null){O(this,G,r.index);continue}if(p(this,G,"f")!=null&&(r.index!==p(this,G,"f")+1||r.carriage)){s.push(bs(p(this,X,"f").subarray(0,p(this,G,"f")-1))),O(this,X,p(this,X,"f").subarray(p(this,G,"f"))),O(this,G,null);continue}const a=p(this,G,"f")!==null?r.preceding-1:r.preceding,i=bs(p(this,X,"f").subarray(0,a));s.push(i),O(this,X,p(this,X,"f").subarray(r.index)),O(this,G,null)}return s}flush(){return p(this,X,"f").length?this.decode(`
@@ -1,4 +1,4 @@
1
- import{o as E,s as x,i as P,v as $,p as S,A as b,a as C,e as N,m as O,_ as g,b as A,c as I,d as L,f as J,T as f,g as F,C as R,h as M,j as y,k as B,l as _,n as j,q as Z}from"./index-8CwMSFu3.js";import{B as W,i as q,a as H,b as K,c as V}from"./index-BCuNBDGw.js";var z={};j(z,{BaseToolkit:()=>G,DynamicStructuredTool:()=>k,DynamicTool:()=>D,StructuredTool:()=>T,Tool:()=>w,ToolInputParsingException:()=>f,isLangChainTool:()=>V,isRunnableToolLike:()=>K,isStructuredTool:()=>H,isStructuredToolParams:()=>q,tool:()=>Q});var T=class extends W{extras;returnDirect=!1;verboseParsingErrors=!1;get lc_namespace(){return["langchain","tools"]}responseFormat="content";defaultConfig;constructor(t){super(t??{}),this.verboseParsingErrors=t?.verboseParsingErrors??this.verboseParsingErrors,this.responseFormat=t?.responseFormat??this.responseFormat,this.defaultConfig=t?.defaultConfig??this.defaultConfig,this.metadata=t?.metadata??this.metadata,this.extras=t?.extras??this.extras}async invoke(t,e){let a,s=N(O(this.defaultConfig,e));return g(t)?(a=t.args,s={...s,toolCall:t}):a=t,this.call(a,s)}async call(t,e,a){const s=g(t)?t.args:t;let u;if(A(this.schema))try{u=await I(this.schema,s)}catch(c){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
1
+ import{o as E,s as x,i as P,v as $,p as S,A as b,a as C,e as N,m as O,_ as g,b as A,c as I,d as L,f as J,T as f,g as F,C as R,h as M,j as y,k as B,l as _,n as j,q as Z}from"./index-EQ5dayGy.js";import{B as W,i as q,a as H,b as K,c as V}from"./index-BGZ_E61E.js";var z={};j(z,{BaseToolkit:()=>G,DynamicStructuredTool:()=>k,DynamicTool:()=>D,StructuredTool:()=>T,Tool:()=>w,ToolInputParsingException:()=>f,isLangChainTool:()=>V,isRunnableToolLike:()=>K,isStructuredTool:()=>H,isStructuredToolParams:()=>q,tool:()=>Q});var T=class extends W{extras;returnDirect=!1;verboseParsingErrors=!1;get lc_namespace(){return["langchain","tools"]}responseFormat="content";defaultConfig;constructor(t){super(t??{}),this.verboseParsingErrors=t?.verboseParsingErrors??this.verboseParsingErrors,this.responseFormat=t?.responseFormat??this.responseFormat,this.defaultConfig=t?.defaultConfig??this.defaultConfig,this.metadata=t?.metadata??this.metadata,this.extras=t?.extras??this.extras}async invoke(t,e){let a,s=N(O(this.defaultConfig,e));return g(t)?(a=t.args,s={...s,toolCall:t}):a=t,this.call(a,s)}async call(t,e,a){const s=g(t)?t.args:t;let u;if(A(this.schema))try{u=await I(this.schema,s)}catch(c){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
2
2
  Details: ${c.message}`),L(c)&&(o=`${o}
3
3
 
4
4
  ${J(c)}`),new f(o,JSON.stringify(t))}else{const c=F(s,this.schema);if(!c.valid){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as s}from"./inform7-CKh91FfW.js";function c(t,f){for(var o=0;o<f.length;o++){const r=f[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=s();const m=a(i),l=c({__proto__:null,default:m},[i]);export{l as i};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as s}from"./inform7-CKh91FfW.js";function c(t,f){for(var o=0;o<f.length;o++){const r=f[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=s();const m=a(i),l=c({__proto__:null,default:m},[i]);export{l as i};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./ini-CUN5Fz6a.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as i};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./ini-CUN5Fz6a.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as i};
@@ -1 +1 @@
1
- import{r as p}from"./index-8CwMSFu3.js";import{r as a}from"./irpf90-BGwK5upn.js";function s(t,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const f=Object.getOwnPropertyDescriptor(r,e);f&&Object.defineProperty(t,e,f.get?f:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=a();const c=p(n),g=s({__proto__:null,default:c},[n]);export{g as i};
1
+ import{r as p}from"./index-EQ5dayGy.js";import{r as a}from"./irpf90-BGwK5upn.js";function s(t,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const f=Object.getOwnPropertyDescriptor(r,e);f&&Object.defineProperty(t,e,f.get?f:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=a();const c=p(n),g=s({__proto__:null,default:c},[n]);export{g as i};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./isbl-BW2-1xqY.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),b=l({__proto__:null,default:c},[n]);export{b as i};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./isbl-BW2-1xqY.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),b=l({__proto__:null,default:c},[n]);export{b as i};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as i}from"./java-BopHZ59q.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),g=c({__proto__:null,default:p},[f]);export{g as j};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as i}from"./java-BopHZ59q.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),g=c({__proto__:null,default:p},[f]);export{g as j};
@@ -1 +1 @@
1
- import{r as c}from"./index-8CwMSFu3.js";import{r as n}from"./javascript-Bcajz3YC.js";function p(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=n();const f=c(i),g=p({__proto__:null,default:f},[i]);export{g as j};
1
+ import{r as c}from"./index-EQ5dayGy.js";import{r as n}from"./javascript-Bcajz3YC.js";function p(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=n();const f=c(i),g=p({__proto__:null,default:f},[i]);export{g as j};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./jboss-cli-7Bb2wtKY.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),b=l({__proto__:null,default:c},[n]);export{b as j};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./jboss-cli-7Bb2wtKY.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),b=l({__proto__:null,default:c},[n]);export{b as j};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as i}from"./json-_cGKMkqV.js";function c(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=i();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as j};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as i}from"./json-_cGKMkqV.js";function c(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=i();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as j};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./julia-CflsGA1_.js";function u(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const l=f(n),g=u({__proto__:null,default:l},[n]);export{g as j};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./julia-CflsGA1_.js";function u(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const l=f(n),g=u({__proto__:null,default:l},[n]);export{g as j};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as p}from"./julia-repl-DTkCRO_Z.js";function f(t,l){for(var o=0;o<l.length;o++){const e=l[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=p();const s=n(i),g=f({__proto__:null,default:s},[i]);export{g as j};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as p}from"./julia-repl-DTkCRO_Z.js";function f(t,l){for(var o=0;o<l.length;o++){const e=l[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=p();const s=n(i),g=f({__proto__:null,default:s},[i]);export{g as j};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./kotlin-DSmpQSGN.js";function l(r,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),g=l({__proto__:null,default:c},[a]);export{g as k};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./kotlin-DSmpQSGN.js";function l(r,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),g=l({__proto__:null,default:c},[a]);export{g as k};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-A6Te1Nrl.js","assets/index-8CwMSFu3.js","assets/index-Br5Lp-nB.css","assets/display-A5IEINAP-cWKELVdp.js"])))=>i.map(i=>d[i]);
2
- import{bq as $c,br as eo,bs as jc,t as R,bt as Wr,b7 as Gr,bu as ve,b4 as Lc,bp as Dc,b9 as kn,b2 as re,bb as Fc,b3 as Uc,bv as Vc,K as y,aQ as Re,e as mn,bw as Bc,bx as En,A as He,by as Ss,n as X,aC as hn,aA as se,U as P,ab as ae,j as zc,C as Hc,bz as Wc,z as Do,aY as Ii,bA as oe,aE as xn,bB as _n,X as Pi,S as Ue,bC as to,Q as Me,V as Cs,W as Qt,aJ as yr,bD as Gc,bE as Kc,bF as Jc,bG as qc,bH as Yc,bI as Xc,bJ as Zc,bK as Qc,bL as eu,bM as tu,bN as nu,bO as ru,bP as su,bQ as ou,bR as iu,bS as au,bT as lu,bU as cu,bV as uu,bW as hu,a1 as du,bX as fu,bY as pu,bZ as mu,p as vn,m as $e,a2 as it,aN as en,b_ as gu,Y as yu,aZ as Fo,aO as wu,b$ as Uo,c0 as Vo,c1 as wr,c2 as bt,b5 as no,ax as Ts,aw as ks,az as bu,ad as _u,as as ro,ay as so,an as te,av as nt,o as K,c3 as Le,c4 as Oi,b as oo,l as j,c5 as vu,c6 as Su,c7 as Cu,ac as Ni,at as Tu,x as ku,aR as Eu,T as xu,c8 as Dn,c9 as De,s as ie,ca as Ri,cb as tn,cc as Mn,cd as Mu,ce as Ke,cf as _t,cg as z,au as Au,f as io,aB as Iu,a as Pu,ch as $i,ci as Fn,cj as gt,ck as Ou,bl as Nu,bj as Ru,bi as $u,cl as ju,H as ji,cm as Xn,cn as Bo,u as nn,bg as Zn,E as Lu,co as Du,J as zo,cp as Fu,cq as Uu,cr as Vu,O as Bu,cs as zu,ct as Hu,cu as Ho}from"./index-8CwMSFu3.js";import{a as Qn,S as jr,b as Wu,t as Li,T as Gu,D as Ku}from"./index-DkeQAS92.js";import{h as Un,s as Di,g as Fi,d as Ju,l as qu,m as Yu,I as Xu,C as Zu,n as Qu,t as eh,o as th,p as nh,q as rh,r as sh,u as oh,v as ih,w as ah,x as lh,y as ch,z as uh,R as hh,A as Wo,e as dh}from"./index-BCuNBDGw.js";import{E as Ui,a as fh,e as ph}from"./embeddings-BPcF2rPH.js";import{L as Vi,o as mh,l as gh}from"./llms--9GbEsAa.js";var Kr,Hn,Jr=0,qr=0;function yh(t,e,n){var r=0,s=e||new Array(16);t=t||{};var o=t.node,i=t.clockseq;if(t._v6||(o||(o=Kr),i==null&&(i=Hn)),o==null||i==null){var a=t.random||(t.rng||$c)();o==null&&(o=[a[0],a[1],a[2],a[3],a[4],a[5]],!Kr&&!t._v6&&(o[0]|=1,Kr=o)),i==null&&(i=(a[6]<<8|a[7])&16383,Hn===void 0&&!t._v6&&(Hn=i))}var l=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:qr+1,u=l-Jr+(c-qr)/1e4;if(u<0&&t.clockseq===void 0&&(i=i+1&16383),(u<0||l>Jr)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Jr=l,qr=c,Hn=i,l+=122192928e5;var d=((l&268435455)*1e4+c)%4294967296;s[r++]=d>>>24&255,s[r++]=d>>>16&255,s[r++]=d>>>8&255,s[r++]=d&255;var h=l/4294967296*1e4&268435455;s[r++]=h>>>8&255,s[r++]=h&255,s[r++]=h>>>24&15|16,s[r++]=h>>>16&255,s[r++]=i>>>8|128,s[r++]=i&255;for(var f=0;f<6;++f)s[r+f]=o[f];return e||eo(s)}function wh(t){var e=typeof t=="string"?jc(t):t,n=bh(e);return typeof t=="string"?eo(n):n}function bh(t,e=!1){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Go(Object(n),!0).forEach(function(r){_h(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _h(t,e,n){return(e=vh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vh(t){var e=Sh(t,"string");return typeof e=="symbol"?e:e+""}function Sh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ch(t={},e,n=0){var r=yh(Ko(Ko({},t),{},{_v6:!0}),new Uint8Array(16));return r=wh(r),eo(r)}async function*Bi(t){for await(const e of t)if(e.event==="on_chat_model_stream"&&e.data?.chunk?.text){const n=e.data.chunk.text;typeof n=="string"&&n.length>0&&(yield n)}}R(Bi,"streamEventsToAISDK");function zi(t){return new ReadableStream({async start(e){try{for await(const n of t)e.enqueue(n);e.close()}catch(n){e.error(n)}}})}R(zi,"createReadableStreamFromGenerator");async function*Hi(t){for await(const e of t)switch(e.event){case"on_chat_model_stream":if(e.data?.chunk?.text){const n=e.data.chunk.text;typeof n=="string"&&n.length>0&&(yield n)}break;case"on_tool_start":yield`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-BuqtKWTS.js","assets/index-EQ5dayGy.js","assets/index-Br5Lp-nB.css","assets/display-A5IEINAP-Djz0KdYV.js"])))=>i.map(i=>d[i]);
2
+ import{bq as $c,br as eo,bs as jc,t as R,bt as Wr,b7 as Gr,bu as ve,b4 as Lc,bp as Dc,b9 as kn,b2 as re,bb as Fc,b3 as Uc,bv as Vc,K as y,aQ as Re,e as mn,bw as Bc,bx as En,A as He,by as Ss,n as X,aC as hn,aA as se,U as P,ab as ae,j as zc,C as Hc,bz as Wc,z as Do,aY as Ii,bA as oe,aE as xn,bB as _n,X as Pi,S as Ue,bC as to,Q as Me,V as Cs,W as Qt,aJ as yr,bD as Gc,bE as Kc,bF as Jc,bG as qc,bH as Yc,bI as Xc,bJ as Zc,bK as Qc,bL as eu,bM as tu,bN as nu,bO as ru,bP as su,bQ as ou,bR as iu,bS as au,bT as lu,bU as cu,bV as uu,bW as hu,a1 as du,bX as fu,bY as pu,bZ as mu,p as vn,m as $e,a2 as it,aN as en,b_ as gu,Y as yu,aZ as Fo,aO as wu,b$ as Uo,c0 as Vo,c1 as wr,c2 as bt,b5 as no,ax as Ts,aw as ks,az as bu,ad as _u,as as ro,ay as so,an as te,av as nt,o as K,c3 as Le,c4 as Oi,b as oo,l as j,c5 as vu,c6 as Su,c7 as Cu,ac as Ni,at as Tu,x as ku,aR as Eu,T as xu,c8 as Dn,c9 as De,s as ie,ca as Ri,cb as tn,cc as Mn,cd as Mu,ce as Ke,cf as _t,cg as z,au as Au,f as io,aB as Iu,a as Pu,ch as $i,ci as Fn,cj as gt,ck as Ou,bl as Nu,bj as Ru,bi as $u,cl as ju,H as ji,cm as Xn,cn as Bo,u as nn,bg as Zn,E as Lu,co as Du,J as zo,cp as Fu,cq as Uu,cr as Vu,O as Bu,cs as zu,ct as Hu,cu as Ho}from"./index-EQ5dayGy.js";import{a as Qn,S as jr,b as Wu,t as Li,T as Gu,D as Ku}from"./index-rGyQWD5d.js";import{h as Un,s as Di,g as Fi,d as Ju,l as qu,m as Yu,I as Xu,C as Zu,n as Qu,t as eh,o as th,p as nh,q as rh,r as sh,u as oh,v as ih,w as ah,x as lh,y as ch,z as uh,R as hh,A as Wo,e as dh}from"./index-BGZ_E61E.js";import{E as Ui,a as fh,e as ph}from"./embeddings-BvH7ZdmL.js";import{L as Vi,o as mh,l as gh}from"./llms-B0zs90kq.js";var Kr,Hn,Jr=0,qr=0;function yh(t,e,n){var r=0,s=e||new Array(16);t=t||{};var o=t.node,i=t.clockseq;if(t._v6||(o||(o=Kr),i==null&&(i=Hn)),o==null||i==null){var a=t.random||(t.rng||$c)();o==null&&(o=[a[0],a[1],a[2],a[3],a[4],a[5]],!Kr&&!t._v6&&(o[0]|=1,Kr=o)),i==null&&(i=(a[6]<<8|a[7])&16383,Hn===void 0&&!t._v6&&(Hn=i))}var l=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:qr+1,u=l-Jr+(c-qr)/1e4;if(u<0&&t.clockseq===void 0&&(i=i+1&16383),(u<0||l>Jr)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Jr=l,qr=c,Hn=i,l+=122192928e5;var d=((l&268435455)*1e4+c)%4294967296;s[r++]=d>>>24&255,s[r++]=d>>>16&255,s[r++]=d>>>8&255,s[r++]=d&255;var h=l/4294967296*1e4&268435455;s[r++]=h>>>8&255,s[r++]=h&255,s[r++]=h>>>24&15|16,s[r++]=h>>>16&255,s[r++]=i>>>8|128,s[r++]=i&255;for(var f=0;f<6;++f)s[r+f]=o[f];return e||eo(s)}function wh(t){var e=typeof t=="string"?jc(t):t,n=bh(e);return typeof t=="string"?eo(n):n}function bh(t,e=!1){return Uint8Array.of((t[6]&15)<<4|t[7]>>4&15,(t[7]&15)<<4|(t[4]&240)>>4,(t[4]&15)<<4|(t[5]&240)>>4,(t[5]&15)<<4|(t[0]&240)>>4,(t[0]&15)<<4|(t[1]&240)>>4,(t[1]&15)<<4|(t[2]&240)>>4,96|t[2]&15,t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Go(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Go(Object(n),!0).forEach(function(r){_h(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _h(t,e,n){return(e=vh(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vh(t){var e=Sh(t,"string");return typeof e=="symbol"?e:e+""}function Sh(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ch(t={},e,n=0){var r=yh(Ko(Ko({},t),{},{_v6:!0}),new Uint8Array(16));return r=wh(r),eo(r)}async function*Bi(t){for await(const e of t)if(e.event==="on_chat_model_stream"&&e.data?.chunk?.text){const n=e.data.chunk.text;typeof n=="string"&&n.length>0&&(yield n)}}R(Bi,"streamEventsToAISDK");function zi(t){return new ReadableStream({async start(e){try{for await(const n of t)e.enqueue(n);e.close()}catch(n){e.error(n)}}})}R(zi,"createReadableStreamFromGenerator");async function*Hi(t){for await(const e of t)switch(e.event){case"on_chat_model_stream":if(e.data?.chunk?.text){const n=e.data.chunk.text;typeof n=="string"&&n.length>0&&(yield n)}break;case"on_tool_start":yield`
3
3
  🔧 Using tool: ${e.name}
4
4
  `;break;case"on_tool_end":yield`
5
5
  ✅ Tool completed: ${e.name}
@@ -387,7 +387,7 @@ You can then use these server-specific tools in subsequent steps.
387
387
  Here are the tools *currently* available to you (this list includes server management tools and will
388
388
  change when you connect to a server):
389
389
  {tool_descriptions}
390
- `;function gr(t,e,n,r,s,o){if(typeof t=="object"&&t!==null){const i=t;return{query:i.prompt,maxSteps:i.maxSteps,manageConnector:i.manageConnector,externalHistory:i.externalHistory,outputSchema:i.schema,signal:i.signal}}return{query:t,maxSteps:e,manageConnector:n,externalHistory:r,outputSchema:s,signal:o}}R(gr,"normalizeRunOptions");var Zt,Ty=(Zt=class{static getPackageVersion(){return ji()}llm;client;connectors;maxSteps;autoInitialize;memoryEnabled;disallowedTools;additionalTools;toolsUsedNames=[];exposeResourcesAsTools=!0;exposePromptsAsTools=!0;useServerManager;verbose;observe;systemPrompt;systemPromptTemplateOverride;additionalInstructions;_initialized=!1;conversationHistory=[];_agentExecutor=null;sessions={};systemMessage=null;_tools=[];adapter;serverManager=null;telemetry;modelProvider;modelName;observabilityManager;callbacks=[];metadata={};tags=[];isRemote=!1;remoteAgent=null;isSimplifiedMode=!1;llmString;llmConfig;mcpServersConfig;clientOwnedByAgent=!1;constructor(e){if(e.agentId){this.isRemote=!0,this.remoteAgent=new Mc({agentId:e.agentId,apiKey:e.apiKey,baseUrl:e.baseUrl}),this.maxSteps=e.maxSteps??5,this.memoryEnabled=e.memoryEnabled??!0,this.autoInitialize=e.autoInitialize??!1,this.verbose=e.verbose??!1,this.observe=e.observe??!0,this.connectors=[],this.disallowedTools=[],this.additionalTools=[],this.useServerManager=!1,this.adapter=new xt,this.telemetry=Xn.getInstance(),this.modelProvider="remote",this.modelName="remote-agent",this.observabilityManager=new Qs({customCallbacks:e.callbacks,agentId:e.agentId}),this.callbacks=[];return}if(!e.llm)throw new Error("llm is required for local execution. For remote execution, provide agentId instead.");if(typeof e.llm=="string"){if(this.isSimplifiedMode=!0,this.llmString=e.llm,this.llmConfig=e.llmConfig,this.mcpServersConfig=e.mcpServers,!this.mcpServersConfig||Object.keys(this.mcpServersConfig).length===0)throw new Error("Simplified mode requires 'mcpServers' configuration. Provide an object with server configurations, e.g., { filesystem: { command: 'npx', args: [...] } }");this.llm=void 0,this.client=void 0,this.clientOwnedByAgent=!0,this.connectors=[],y.info(`🎯 Simplified mode enabled: LLM will be created from '${this.llmString}'`)}else if(this.isSimplifiedMode=!1,this.llm=e.llm,this.client=e.client,this.connectors=e.connectors??[],this.clientOwnedByAgent=!1,!this.client&&this.connectors.length===0)throw new Error("Explicit mode requires either 'client' or at least one 'connector'. Alternatively, use simplified mode with 'llm' as a string and 'mcpServers' config.");if(this.maxSteps=e.maxSteps??5,this.autoInitialize=e.autoInitialize??!1,this.memoryEnabled=e.memoryEnabled??!0,this.systemPrompt=e.systemPrompt??null,this.systemPromptTemplateOverride=e.systemPromptTemplate??null,this.additionalInstructions=e.additionalInstructions??null,this.disallowedTools=e.disallowedTools??[],this.additionalTools=e.additionalTools??[],this.toolsUsedNames=e.toolsUsedNames??[],this.exposeResourcesAsTools=e.exposeResourcesAsTools??!0,this.exposePromptsAsTools=e.exposePromptsAsTools??!0,this.useServerManager=e.useServerManager??!1,this.verbose=e.verbose??!1,this.observe=e.observe??!0,this.isSimplifiedMode)this.adapter=e.adapter??new xt(this.disallowedTools),this.telemetry=Xn.getInstance(),this.modelProvider="unknown",this.modelName="unknown";else{if(this.useServerManager){if(!this.client)throw new Error("'client' must be provided when 'useServerManager' is true.");this.adapter=e.adapter??new xt(this.disallowedTools),this.serverManager=e.serverManagerFactory?.(this.client)??new xi(this.client,this.adapter)}else this.adapter=e.adapter??new xt(this.disallowedTools);if(this.telemetry=Xn.getInstance(),this.llm){const[r,s]=Bo(this.llm);this.modelProvider=r,this.modelName=s}else this.modelProvider="unknown",this.modelName="unknown"}this.observabilityManager=new Qs({customCallbacks:e.callbacks,verbose:this.verbose,observe:this.observe,agentId:e.agentId,metadataProvider:R(()=>this.getMetadata(),"metadataProvider"),tagsProvider:R(()=>this.getTags(),"tagsProvider")}),Object.defineProperty(this,"agentExecutor",{get:R(()=>this._agentExecutor,"get"),configurable:!0}),Object.defineProperty(this,"tools",{get:R(()=>this._tools,"get"),configurable:!0}),Object.defineProperty(this,"initialized",{get:R(()=>this._initialized,"get"),configurable:!0})}async initialize(){if(this.isRemote){this._initialized=!0;return}if(y.info("🚀 Initializing MCP agent and connecting to services..."),this.isSimplifiedMode){if(y.info("🎯 Simplified mode: Creating client and LLM from configuration..."),this.mcpServersConfig){y.info(`Creating MCPClient with ${Object.keys(this.mcpServersConfig).length} server(s)...`);const{MCPClient:r}=await nn(async()=>{const{MCPClient:s}=await import("./client-A6Te1Nrl.js").then(o=>o.c);return{MCPClient:s}},__vite__mapDeps([0,1,2]));this.client=new r({mcpServers:this.mcpServersConfig}),y.info("✅ MCPClient created successfully")}if(this.llmString){y.info(`Creating LLM from string: ${this.llmString}...`);try{this.llm=await $o(this.llmString,this.llmConfig),y.info("✅ LLM created successfully");const[r,s]=Bo(this.llm);this.modelProvider=r,this.modelName=s}catch(r){throw new Error(`Failed to create LLM from string '${this.llmString}': ${r?.message||r}`)}}if(this.useServerManager){if(!this.client)throw new Error("'client' must be available when 'useServerManager' is true.");this.serverManager=new xi(this.client,this.adapter)}}this.callbacks=await this.observabilityManager.getCallbacks();const e=await this.observabilityManager.getHandlerNames();if(e.length>0&&y.info(`📊 Observability enabled with: ${e.join(", ")}`),this.useServerManager&&this.serverManager){await this.serverManager.initialize();const r=this.serverManager.tools;this._tools=r,this._tools.push(...this.additionalTools),y.info(`🔧 Server manager mode active with ${r.length} management tools`),await this.createSystemMessageFromTools(this._tools)}else{if(this.client){if(this.sessions=this.client.getAllActiveSessions(),y.info(`🔌 Found ${Object.keys(this.sessions).length} existing sessions`),Object.keys(this.sessions).filter(s=>s!=="code_mode").length===0&&(y.info("🔄 No active sessions found, creating new ones..."),this.sessions=await this.client.createAllSessions(),y.info(`✅ Created ${Object.keys(this.sessions).length} new sessions`)),this.client.codeMode){const s=this.sessions.code_mode;if(s)this._tools=await this.adapter.createToolsFromConnectors([s.connector]),y.info(`🛠️ Created ${this._tools.length} code mode tools`);else throw new Error("Code mode enabled but code_mode session not found")}else{const s=Object.values(this.sessions).map(l=>l.connector),o=await this.adapter.createToolsFromConnectors(s),i=this.exposeResourcesAsTools?await this.adapter.createResourcesFromConnectors(s):[],a=this.exposePromptsAsTools?await this.adapter.createPromptsFromConnectors(s):[];this._tools=[...o,...i,...a],y.info(`🛠️ Created ${this._tools.length} LangChain items from client: ${o.length} tools, ${i.length} resources, ${a.length} prompts`)}this._tools.push(...this.additionalTools)}else{y.info(`🔗 Connecting to ${this.connectors.length} direct connectors...`);for(const i of this.connectors)i.isClientConnected||await i.connect();const r=await this.adapter.createToolsFromConnectors(this.connectors),s=await this.adapter.createResourcesFromConnectors(this.connectors),o=await this.adapter.createPromptsFromConnectors(this.connectors);this._tools=[...r,...s,...o],this._tools.push(...this.additionalTools),y.info(`🛠️ Created ${this._tools.length} LangChain items from connectors: ${r.length} tools, ${s.length} resources, ${o.length} prompts`)}y.info(`🧰 Found ${this._tools.length} tools across all connectors`),await this.createSystemMessageFromTools(this._tools)}this._agentExecutor=this.createAgent(),this._initialized=!0;const n=this.getMCPServerInfo();Object.keys(n).length>0&&(this.setMetadata(n),y.debug(`MCP server info added to metadata: ${JSON.stringify(n)}`)),y.info("✨ Agent initialization complete")}async createSystemMessageFromTools(e){const n=this.systemPromptTemplateOverride??Sy;this.systemMessage=Rc(e,n,Cy,this.useServerManager,this.disallowedTools,this.systemPrompt??void 0,this.additionalInstructions??void 0),this.memoryEnabled&&(this.conversationHistory=[this.systemMessage,...this.conversationHistory.filter(r=>!(r instanceof oe))])}createAgent(){if(!this.llm)throw new Error("LLM is required to create agent");const e=this.systemMessage?.content??"You are a helpful assistant.",n=this._tools.map(o=>o.name);y.info(`🧠 Agent ready with tools: ${n.join(", ")}`);const r=[Tc({runLimit:this.maxSteps})],s=sc({model:this.llm,tools:this._tools,systemPrompt:e,middleware:r});return y.debug(`Created agent with max_steps=${this.maxSteps} (via ModelCallLimitMiddleware) and ${this.callbacks.length} callbacks`),s}getConversationHistory(){return[...this.conversationHistory]}clearConversationHistory(){this.conversationHistory=this.memoryEnabled&&this.systemMessage?[this.systemMessage]:[]}addToHistory(e){this.memoryEnabled&&this.conversationHistory.push(e)}getSystemMessage(){return this.systemMessage}setSystemMessage(e){this.systemMessage=new oe(e),this.memoryEnabled&&(this.conversationHistory=this.conversationHistory.filter(n=>!(n instanceof oe)),this.conversationHistory.unshift(this.systemMessage)),this._initialized&&this._tools.length&&(this._agentExecutor=this.createAgent(),y.debug("Agent recreated with new system message"))}setDisallowedTools(e){this.disallowedTools=e,this.adapter=new xt(this.disallowedTools),this._initialized&&y.debug("Agent already initialized. Changes will take effect on next initialization.")}getDisallowedTools(){return this.disallowedTools}setMetadata(e){const n=this.sanitizeMetadata(e);this.metadata={...this.metadata,...n},y.debug(`Metadata set: ${JSON.stringify(this.metadata)}`)}getMetadata(){return{...this.metadata}}setTags(e){const n=this.sanitizeTags(e);this.tags=[...new Set([...this.tags,...n])],y.debug(`Tags set: ${JSON.stringify(this.tags)}`)}getTags(){return[...this.tags]}sanitizeMetadata(e){const n={};for(const[r,s]of Object.entries(e)){if(typeof r!="string"||r.length===0){y.warn(`Invalid metadata key: ${r}. Skipping.`);continue}const o=r.replace(/[^\w-]/g,"_");if(s==null)n[o]=s;else if(typeof s=="string"||typeof s=="number"||typeof s=="boolean")n[o]=s;else if(Array.isArray(s)){const i=s.filter(a=>typeof a=="string"||typeof a=="number"||typeof a=="boolean");i.length>0&&(n[o]=i)}else if(typeof s=="object")try{const i=JSON.stringify(s);i.length>1e3?(y.warn(`Metadata value for key '${o}' is too large. Truncating.`),n[o]=`${i.substring(0,1e3)}...`):n[o]=s}catch(i){y.warn(`Failed to serialize metadata value for key '${o}': ${i}. Skipping.`)}else y.warn(`Unsupported metadata value type for key '${o}': ${typeof s}. Skipping.`)}return n}sanitizeTags(e){return e.filter(n=>typeof n=="string"&&n.length>0).map(n=>n.replace(/[^\w:-]/g,"_")).filter(n=>n.length<=50)}getMCPServerInfo(){const e={};try{if(this.client){const n=this.client.getServerNames();e.mcp_servers_count=n.length,e.mcp_server_names=n;const r={};for(const s of n)try{const o=this.client.getServerConfig(s);if(o){let i="unknown";o.command?i="command":o.url?i="http":o.ws_url&&(i="websocket"),r[s]={type:i,has_args:!!o.args,has_env:!!o.env,has_headers:!!o.headers,url:o.url||null,command:o.command||null}}}catch(o){y.warn(`Failed to get config for server '${s}': ${o}`),r[s]={type:"error",error:"config_unavailable"}}e.mcp_server_configs=r}else this.connectors&&this.connectors.length>0&&(e.mcp_servers_count=this.connectors.length,e.mcp_server_names=this.connectors.map(n=>n.publicIdentifier),e.mcp_server_types=this.connectors.map(n=>n.constructor.name))}catch(n){y.warn(`Failed to collect MCP server info: ${n}`),e.error="collection_failed"}return e}_normalizeOutput(e){try{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"content"in e)return this._normalizeOutput(e.content);if(Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="object"&&r!==null)"text"in r&&typeof r.text=="string"?n.push(r.text):"content"in r?n.push(this._normalizeOutput(r.content)):n.push(String(r));else{const s=r&&typeof r=="object"&&"text"in r?r.text:null;if(typeof s=="string")n.push(s);else{const o=r&&typeof r=="object"&&"content"in r?r.content:r;n.push(this._normalizeOutput(o))}}return n.join("")}return String(e)}catch{return String(e)}}_isAIMessageLike(e){if(e instanceof P)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{const r=n.getType();if(r==="ai"||r==="assistant")return!0}catch{}if(typeof n._getType=="function")try{const r=n._getType();if(r==="ai"||r==="assistant")return!0}catch{}return"type"in n?n.type==="ai"||n.type==="assistant":"role"in n?n.role==="ai"||n.role==="assistant":!1}_messageHasToolCalls(e){return typeof e=="object"&&e!==null&&"tool_calls"in e&&Array.isArray(e.tool_calls)?e.tool_calls.length>0:!1}_isHumanMessageLike(e){if(e instanceof se)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{const r=n.getType();if(r==="human"||r==="user")return!0}catch{}return"type"in n&&(n.type==="human"||n.type==="user")||"role"in n&&(n.role==="human"||n.role==="user")}_isToolMessageLike(e){if(e instanceof j)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{if(n.getType()==="tool")return!0}catch{}return"type"in n&&n.type==="tool"}_getMessageContent(e){if(e instanceof P||e&&typeof e=="object"&&"content"in e)return e.content}async _consumeAndReturn(e){for(;;){const{done:n,value:r}=await e.next();if(n)return r}}async run(e,n,r,s,o,i){const{query:a,maxSteps:l,manageConnector:c,externalHistory:u,outputSchema:d,signal:h}=gr(e,n,r,s,o,i);if(this.isRemote&&this.remoteAgent)return this.remoteAgent.run(a,l,c,u,d);const f=this.stream(a,l,c,u,d,h);return this._consumeAndReturn(f)}async*stream(e,n,r=!0,s,o,i){const{query:a,maxSteps:l,manageConnector:c,externalHistory:u,outputSchema:d,signal:h}=gr(e,n,r,s,o,i);if(this.isRemote&&this.remoteAgent)return await this.remoteAgent.run(a,l,c,u,d);let f=!1;const m=Date.now();let p=!1,C=null,T=0;try{if(c&&!this._initialized?(await this.initialize(),f=!0):!this._initialized&&this.autoInitialize&&(await this.initialize(),f=!0),!this._agentExecutor)throw new Error("MCP agent failed to initialize");if(this.useServerManager&&this.serverManager){const b=this.serverManager.tools,E=new Set(b.map(x=>x.name)),S=new Set(this._tools.map(x=>x.name));(E.size!==S.size||[...E].some(x=>!S.has(x)))&&(y.info(`🔄 Tools changed before execution, updating agent. New tools: ${[...E].join(", ")}`),this._tools=b,this._tools.push(...this.additionalTools),await this.createSystemMessageFromTools(this._tools),this._agentExecutor=this.createAgent())}const k=u??this.conversationHistory,_=[];for(const b of k)(this._isHumanMessageLike(b)||this._isAIMessageLike(b)||this._isToolMessageLike(b))&&_.push(b);const g=a.length>50?`${a.slice(0,50).replace(/\n/g," ")}...`:a.replace(/\n/g," ");y.info(`💬 Received query: '${g}'`),y.info("🏁 Starting agent execution");const v=3;let M=0;const w=[..._,new se(a)];for(;M<=v;){const b={messages:w};let E=!1;const S=await this._agentExecutor.stream(b,{streamMode:"updates",callbacks:this.callbacks,metadata:this.getMetadata(),tags:this.getTags(),runName:this.metadata.trace_name||"mcp-use-agent",recursionLimit:this.maxSteps*3,...this.metadata.session_id&&{sessionId:this.metadata.session_id},...h&&{signal:h}});for await(const x of S){if(h?.aborted)break;for(const[I,O]of Object.entries(x))if(y.debug(`📦 Node '${I}' output: ${JSON.stringify(O)}`),O&&typeof O=="object"&&"messages"in O){let F=O.messages;Array.isArray(F)||(F=[F]);for(const ce of F)w.includes(ce)||w.push(ce);for(const ce of F){if("tool_calls"in ce&&Array.isArray(ce.tool_calls)&&ce.tool_calls.length>0)for(const Ie of ce.tool_calls){const we=Ie.name||"unknown",ht=Ie.args||{};this.toolsUsedNames.push(we),T++;let Je=JSON.stringify(ht);Je.length>100&&(Je=`${Je.slice(0,97)}...`),y.info(`🔧 Tool call: ${we} with input: ${Je}`),yield{action:{tool:we,toolInput:ht,log:`Calling tool ${we}`},observation:""}}if(this._isToolMessageLike(ce)){const Ie=ce.content;let we=String(Ie);if(we.length>100&&(we=`${we.slice(0,97)}...`),we=we.replace(/\n/g," "),y.info(`📄 Tool result: ${we}`),this.useServerManager&&this.serverManager){const ht=this.serverManager.tools,Je=new Set(ht.map(fn=>fn.name)),Lo=new Set(this._tools.map(fn=>fn.name));if(Je.size!==Lo.size||[...Je].some(fn=>!Lo.has(fn))){y.info(`🔄 Tools changed during execution. New tools: ${[...Je].join(", ")}`),this._tools=ht,this._tools.push(...this.additionalTools),await this.createSystemMessageFromTools(this._tools),this._agentExecutor=this.createAgent(),E=!0,M++,y.info(`🔃 Restarting execution with updated tools (restart ${M}/${v})`);break}}}this._isAIMessageLike(ce)&&!this._messageHasToolCalls(ce)&&(C=this._normalizeOutput(this._getMessageContent(ce)),y.info("✅ Agent finished with output"))}if(E)break}if(E)break}if(!E)break;if(M>v){y.warn(`⚠️ Max restarts (${v}) reached. Continuing with current tools.`);break}}if(this.memoryEnabled){const b=w.slice(_.length);for(const E of b)this.addToHistory(E)}if(d&&C)try{y.info("🔧 Attempting structured output...");const b=await this._attemptStructuredOutput(C,this.llm,d);return this.memoryEnabled&&this.addToHistory(new P(`Structured result: ${JSON.stringify(b)}`)),y.info("✅ Structured output successful"),p=!0,b}catch(b){throw y.error(`❌ Structured output failed: ${b}`),new Error(`Failed to generate structured output: ${b instanceof Error?b.message:String(b)}`)}return y.info(`🎉 Agent execution complete in ${((Date.now()-m)/1e3).toFixed(2)} seconds`),p=!0,C||"No output generated"}catch(k){throw y.error(`❌ Error running query: ${k}`),f&&c&&(y.info("🧹 Cleaning up resources after error"),await this.close()),k}finally{const k=Date.now()-m;let _=0;this.client?_=Object.keys(this.client.getAllActiveSessions()).length:this.connectors&&(_=this.connectors.length);const g=this.memoryEnabled?this.conversationHistory.length:0,v=this._tools||[];await this.telemetry.trackAgentExecution({executionMethod:"stream",query:a,success:p,modelProvider:this.modelProvider,modelName:this.modelName,serverCount:_,serverIdentifiers:this.connectors.map(M=>M.publicIdentifier),totalToolsAvailable:v.length,toolsAvailableNames:v.map(M=>M.name),maxStepsConfigured:this.maxSteps,memoryEnabled:this.memoryEnabled,useServerManager:this.useServerManager,maxStepsUsed:l??null,manageConnector:c??!0,externalHistoryUsed:u!==void 0,stepsTaken:T,toolsUsedCount:this.toolsUsedNames.length,toolsUsedNames:this.toolsUsedNames,response:C||"",executionTimeMs:k,errorType:p?null:"execution_error",conversationHistoryLength:g}),c&&!this.client&&f&&(y.info("🧹 Closing agent after stream completion"),await this.close())}}async flush(){this.isRemote&&this.remoteAgent||(y.debug("Flushing observability traces..."),await this.observabilityManager.flush())}async close(){if(this.isRemote&&this.remoteAgent){await this.remoteAgent.close();return}y.info("🔌 Closing MCPAgent resources…"),await this.observabilityManager.shutdown();try{if(this._agentExecutor=null,this._tools=[],this.client)this.clientOwnedByAgent?(y.info("🔄 Closing internally-created client (simplified mode) and cleaning up resources"),await this.client.close(),this.sessions={},this.client=void 0):(y.info("🔄 Closing client and cleaning up resources"),await this.client.close(),this.sessions={});else for(const e of this.connectors)y.info("🔄 Disconnecting connector"),await e.disconnect();this.isSimplifiedMode&&this.llm&&(y.debug("🔄 Clearing LLM reference (simplified mode)"),this.llm=void 0),"connectorToolMap"in this.adapter&&(this.adapter=new xt)}finally{this._initialized=!1,y.info("👋 Agent closed successfully")}}async*prettyStreamEvents(e,n,r=!0,s,o){const{prettyStreamEvents:i}=await nn(async()=>{const{prettyStreamEvents:l}=await import("./display-A5IEINAP-cWKELVdp.js");return{prettyStreamEvents:l}},__vite__mapDeps([3,1,2])),a="";for await(const l of i(this.streamEvents(e,n,r,s,o)))yield;return a}async*streamEvents(e,n,r=!0,s,o,i){const a=gr(e,n,r,s,o,i);let{query:l}=a;const{maxSteps:c,manageConnector:u,externalHistory:d,outputSchema:h,signal:f}=a;let m=!1;const p=Date.now();let C=!1,T=0,k=0,_="";h&&(l=this._enhanceQueryWithSchema(l,h));try{u&&!this._initialized?(await this.initialize(),m=!0):!this._initialized&&this.autoInitialize&&(await this.initialize(),m=!0);const g=this._agentExecutor;if(!g)throw new Error("MCP agent failed to initialize");this.maxSteps=c??this.maxSteps;const v=typeof l=="string"&&l.length>50?`${l.slice(0,50).replace(/\n/g," ")}...`:typeof l=="string"?l.replace(/\n/g," "):String(l);y.info(`💬 Received query for streamEvents: '${v}'`),this.memoryEnabled&&(y.info(`🔄 Adding user message to history: ${v}`),this.addToHistory(new se({content:l})));const M=d??this.conversationHistory,w=[];for(const S of M)this._isHumanMessageLike(S)||this._isAIMessageLike(S)||this._isToolMessageLike(S)?w.push(S):y.info(`⚠️ Skipped message of type: ${S.constructor?.name||typeof S}`);const b=[...w,new se(l)];y.info("callbacks",this.callbacks);const E=g.streamEvents({messages:b},{streamMode:"messages",version:"v2",callbacks:this.callbacks,metadata:this.getMetadata(),tags:this.getTags(),runName:this.metadata.trace_name||"mcp-use-agent",recursionLimit:this.maxSteps*3,...this.metadata.session_id&&{sessionId:this.metadata.session_id},...f&&{signal:f}});for await(const S of E){if(f?.aborted)break;if(T++,!(!S||typeof S!="object")){if(S.event==="on_chat_model_stream"&&S.data?.chunk?.content&&(k+=S.data.chunk.content.length),S.event==="on_chat_model_stream"&&S.data?.chunk){const x=S.data.chunk;if(x.content){_||(_="");const I=this._normalizeOutput(x.content);_+=I,y.debug(`📝 Accumulated response length: ${_.length}`)}}if(yield S,S.event==="on_chain_end"&&S.data?.output&&!_){const x=S.data.output;Array.isArray(x)&&x.length>0&&x[0]?.text?_=x[0].text:typeof x=="string"?_=x:x&&typeof x=="object"&&"output"in x&&(_=x.output)}}}if(h&&_){y.info("🔧 Attempting structured output conversion...");try{let S=!1,x=null,I=null;this._attemptStructuredOutput(_,this.llm,h).then(F=>(S=!0,x=F,F)).catch(F=>{throw S=!0,I=F,F});let O=0;for(;!S;)await new Promise(F=>setTimeout(F,2e3)),S||(O++,yield{event:"on_structured_output_progress",data:{message:`Converting to structured output... (${O*2}s)`,elapsed:O*2}});if(I)throw I;x&&(yield{event:"on_structured_output",data:{output:x}},this.memoryEnabled&&this.addToHistory(new P(`Structured result: ${JSON.stringify(x)}`)),y.info("✅ Structured output successful"))}catch(S){y.warn(`⚠️ Structured output failed: ${S}`),yield{event:"on_structured_output_error",data:{error:S instanceof Error?S.message:String(S)}}}}else this.memoryEnabled&&_&&this.addToHistory(new P(_));console.log(`
390
+ `;function gr(t,e,n,r,s,o){if(typeof t=="object"&&t!==null){const i=t;return{query:i.prompt,maxSteps:i.maxSteps,manageConnector:i.manageConnector,externalHistory:i.externalHistory,outputSchema:i.schema,signal:i.signal}}return{query:t,maxSteps:e,manageConnector:n,externalHistory:r,outputSchema:s,signal:o}}R(gr,"normalizeRunOptions");var Zt,Ty=(Zt=class{static getPackageVersion(){return ji()}llm;client;connectors;maxSteps;autoInitialize;memoryEnabled;disallowedTools;additionalTools;toolsUsedNames=[];exposeResourcesAsTools=!0;exposePromptsAsTools=!0;useServerManager;verbose;observe;systemPrompt;systemPromptTemplateOverride;additionalInstructions;_initialized=!1;conversationHistory=[];_agentExecutor=null;sessions={};systemMessage=null;_tools=[];adapter;serverManager=null;telemetry;modelProvider;modelName;observabilityManager;callbacks=[];metadata={};tags=[];isRemote=!1;remoteAgent=null;isSimplifiedMode=!1;llmString;llmConfig;mcpServersConfig;clientOwnedByAgent=!1;constructor(e){if(e.agentId){this.isRemote=!0,this.remoteAgent=new Mc({agentId:e.agentId,apiKey:e.apiKey,baseUrl:e.baseUrl}),this.maxSteps=e.maxSteps??5,this.memoryEnabled=e.memoryEnabled??!0,this.autoInitialize=e.autoInitialize??!1,this.verbose=e.verbose??!1,this.observe=e.observe??!0,this.connectors=[],this.disallowedTools=[],this.additionalTools=[],this.useServerManager=!1,this.adapter=new xt,this.telemetry=Xn.getInstance(),this.modelProvider="remote",this.modelName="remote-agent",this.observabilityManager=new Qs({customCallbacks:e.callbacks,agentId:e.agentId}),this.callbacks=[];return}if(!e.llm)throw new Error("llm is required for local execution. For remote execution, provide agentId instead.");if(typeof e.llm=="string"){if(this.isSimplifiedMode=!0,this.llmString=e.llm,this.llmConfig=e.llmConfig,this.mcpServersConfig=e.mcpServers,!this.mcpServersConfig||Object.keys(this.mcpServersConfig).length===0)throw new Error("Simplified mode requires 'mcpServers' configuration. Provide an object with server configurations, e.g., { filesystem: { command: 'npx', args: [...] } }");this.llm=void 0,this.client=void 0,this.clientOwnedByAgent=!0,this.connectors=[],y.info(`🎯 Simplified mode enabled: LLM will be created from '${this.llmString}'`)}else if(this.isSimplifiedMode=!1,this.llm=e.llm,this.client=e.client,this.connectors=e.connectors??[],this.clientOwnedByAgent=!1,!this.client&&this.connectors.length===0)throw new Error("Explicit mode requires either 'client' or at least one 'connector'. Alternatively, use simplified mode with 'llm' as a string and 'mcpServers' config.");if(this.maxSteps=e.maxSteps??5,this.autoInitialize=e.autoInitialize??!1,this.memoryEnabled=e.memoryEnabled??!0,this.systemPrompt=e.systemPrompt??null,this.systemPromptTemplateOverride=e.systemPromptTemplate??null,this.additionalInstructions=e.additionalInstructions??null,this.disallowedTools=e.disallowedTools??[],this.additionalTools=e.additionalTools??[],this.toolsUsedNames=e.toolsUsedNames??[],this.exposeResourcesAsTools=e.exposeResourcesAsTools??!0,this.exposePromptsAsTools=e.exposePromptsAsTools??!0,this.useServerManager=e.useServerManager??!1,this.verbose=e.verbose??!1,this.observe=e.observe??!0,this.isSimplifiedMode)this.adapter=e.adapter??new xt(this.disallowedTools),this.telemetry=Xn.getInstance(),this.modelProvider="unknown",this.modelName="unknown";else{if(this.useServerManager){if(!this.client)throw new Error("'client' must be provided when 'useServerManager' is true.");this.adapter=e.adapter??new xt(this.disallowedTools),this.serverManager=e.serverManagerFactory?.(this.client)??new xi(this.client,this.adapter)}else this.adapter=e.adapter??new xt(this.disallowedTools);if(this.telemetry=Xn.getInstance(),this.llm){const[r,s]=Bo(this.llm);this.modelProvider=r,this.modelName=s}else this.modelProvider="unknown",this.modelName="unknown"}this.observabilityManager=new Qs({customCallbacks:e.callbacks,verbose:this.verbose,observe:this.observe,agentId:e.agentId,metadataProvider:R(()=>this.getMetadata(),"metadataProvider"),tagsProvider:R(()=>this.getTags(),"tagsProvider")}),Object.defineProperty(this,"agentExecutor",{get:R(()=>this._agentExecutor,"get"),configurable:!0}),Object.defineProperty(this,"tools",{get:R(()=>this._tools,"get"),configurable:!0}),Object.defineProperty(this,"initialized",{get:R(()=>this._initialized,"get"),configurable:!0})}async initialize(){if(this.isRemote){this._initialized=!0;return}if(y.info("🚀 Initializing MCP agent and connecting to services..."),this.isSimplifiedMode){if(y.info("🎯 Simplified mode: Creating client and LLM from configuration..."),this.mcpServersConfig){y.info(`Creating MCPClient with ${Object.keys(this.mcpServersConfig).length} server(s)...`);const{MCPClient:r}=await nn(async()=>{const{MCPClient:s}=await import("./client-BuqtKWTS.js").then(o=>o.c);return{MCPClient:s}},__vite__mapDeps([0,1,2]));this.client=new r({mcpServers:this.mcpServersConfig}),y.info("✅ MCPClient created successfully")}if(this.llmString){y.info(`Creating LLM from string: ${this.llmString}...`);try{this.llm=await $o(this.llmString,this.llmConfig),y.info("✅ LLM created successfully");const[r,s]=Bo(this.llm);this.modelProvider=r,this.modelName=s}catch(r){throw new Error(`Failed to create LLM from string '${this.llmString}': ${r?.message||r}`)}}if(this.useServerManager){if(!this.client)throw new Error("'client' must be available when 'useServerManager' is true.");this.serverManager=new xi(this.client,this.adapter)}}this.callbacks=await this.observabilityManager.getCallbacks();const e=await this.observabilityManager.getHandlerNames();if(e.length>0&&y.info(`📊 Observability enabled with: ${e.join(", ")}`),this.useServerManager&&this.serverManager){await this.serverManager.initialize();const r=this.serverManager.tools;this._tools=r,this._tools.push(...this.additionalTools),y.info(`🔧 Server manager mode active with ${r.length} management tools`),await this.createSystemMessageFromTools(this._tools)}else{if(this.client){if(this.sessions=this.client.getAllActiveSessions(),y.info(`🔌 Found ${Object.keys(this.sessions).length} existing sessions`),Object.keys(this.sessions).filter(s=>s!=="code_mode").length===0&&(y.info("🔄 No active sessions found, creating new ones..."),this.sessions=await this.client.createAllSessions(),y.info(`✅ Created ${Object.keys(this.sessions).length} new sessions`)),this.client.codeMode){const s=this.sessions.code_mode;if(s)this._tools=await this.adapter.createToolsFromConnectors([s.connector]),y.info(`🛠️ Created ${this._tools.length} code mode tools`);else throw new Error("Code mode enabled but code_mode session not found")}else{const s=Object.values(this.sessions).map(l=>l.connector),o=await this.adapter.createToolsFromConnectors(s),i=this.exposeResourcesAsTools?await this.adapter.createResourcesFromConnectors(s):[],a=this.exposePromptsAsTools?await this.adapter.createPromptsFromConnectors(s):[];this._tools=[...o,...i,...a],y.info(`🛠️ Created ${this._tools.length} LangChain items from client: ${o.length} tools, ${i.length} resources, ${a.length} prompts`)}this._tools.push(...this.additionalTools)}else{y.info(`🔗 Connecting to ${this.connectors.length} direct connectors...`);for(const i of this.connectors)i.isClientConnected||await i.connect();const r=await this.adapter.createToolsFromConnectors(this.connectors),s=await this.adapter.createResourcesFromConnectors(this.connectors),o=await this.adapter.createPromptsFromConnectors(this.connectors);this._tools=[...r,...s,...o],this._tools.push(...this.additionalTools),y.info(`🛠️ Created ${this._tools.length} LangChain items from connectors: ${r.length} tools, ${s.length} resources, ${o.length} prompts`)}y.info(`🧰 Found ${this._tools.length} tools across all connectors`),await this.createSystemMessageFromTools(this._tools)}this._agentExecutor=this.createAgent(),this._initialized=!0;const n=this.getMCPServerInfo();Object.keys(n).length>0&&(this.setMetadata(n),y.debug(`MCP server info added to metadata: ${JSON.stringify(n)}`)),y.info("✨ Agent initialization complete")}async createSystemMessageFromTools(e){const n=this.systemPromptTemplateOverride??Sy;this.systemMessage=Rc(e,n,Cy,this.useServerManager,this.disallowedTools,this.systemPrompt??void 0,this.additionalInstructions??void 0),this.memoryEnabled&&(this.conversationHistory=[this.systemMessage,...this.conversationHistory.filter(r=>!(r instanceof oe))])}createAgent(){if(!this.llm)throw new Error("LLM is required to create agent");const e=this.systemMessage?.content??"You are a helpful assistant.",n=this._tools.map(o=>o.name);y.info(`🧠 Agent ready with tools: ${n.join(", ")}`);const r=[Tc({runLimit:this.maxSteps})],s=sc({model:this.llm,tools:this._tools,systemPrompt:e,middleware:r});return y.debug(`Created agent with max_steps=${this.maxSteps} (via ModelCallLimitMiddleware) and ${this.callbacks.length} callbacks`),s}getConversationHistory(){return[...this.conversationHistory]}clearConversationHistory(){this.conversationHistory=this.memoryEnabled&&this.systemMessage?[this.systemMessage]:[]}addToHistory(e){this.memoryEnabled&&this.conversationHistory.push(e)}getSystemMessage(){return this.systemMessage}setSystemMessage(e){this.systemMessage=new oe(e),this.memoryEnabled&&(this.conversationHistory=this.conversationHistory.filter(n=>!(n instanceof oe)),this.conversationHistory.unshift(this.systemMessage)),this._initialized&&this._tools.length&&(this._agentExecutor=this.createAgent(),y.debug("Agent recreated with new system message"))}setDisallowedTools(e){this.disallowedTools=e,this.adapter=new xt(this.disallowedTools),this._initialized&&y.debug("Agent already initialized. Changes will take effect on next initialization.")}getDisallowedTools(){return this.disallowedTools}setMetadata(e){const n=this.sanitizeMetadata(e);this.metadata={...this.metadata,...n},y.debug(`Metadata set: ${JSON.stringify(this.metadata)}`)}getMetadata(){return{...this.metadata}}setTags(e){const n=this.sanitizeTags(e);this.tags=[...new Set([...this.tags,...n])],y.debug(`Tags set: ${JSON.stringify(this.tags)}`)}getTags(){return[...this.tags]}sanitizeMetadata(e){const n={};for(const[r,s]of Object.entries(e)){if(typeof r!="string"||r.length===0){y.warn(`Invalid metadata key: ${r}. Skipping.`);continue}const o=r.replace(/[^\w-]/g,"_");if(s==null)n[o]=s;else if(typeof s=="string"||typeof s=="number"||typeof s=="boolean")n[o]=s;else if(Array.isArray(s)){const i=s.filter(a=>typeof a=="string"||typeof a=="number"||typeof a=="boolean");i.length>0&&(n[o]=i)}else if(typeof s=="object")try{const i=JSON.stringify(s);i.length>1e3?(y.warn(`Metadata value for key '${o}' is too large. Truncating.`),n[o]=`${i.substring(0,1e3)}...`):n[o]=s}catch(i){y.warn(`Failed to serialize metadata value for key '${o}': ${i}. Skipping.`)}else y.warn(`Unsupported metadata value type for key '${o}': ${typeof s}. Skipping.`)}return n}sanitizeTags(e){return e.filter(n=>typeof n=="string"&&n.length>0).map(n=>n.replace(/[^\w:-]/g,"_")).filter(n=>n.length<=50)}getMCPServerInfo(){const e={};try{if(this.client){const n=this.client.getServerNames();e.mcp_servers_count=n.length,e.mcp_server_names=n;const r={};for(const s of n)try{const o=this.client.getServerConfig(s);if(o){let i="unknown";o.command?i="command":o.url?i="http":o.ws_url&&(i="websocket"),r[s]={type:i,has_args:!!o.args,has_env:!!o.env,has_headers:!!o.headers,url:o.url||null,command:o.command||null}}}catch(o){y.warn(`Failed to get config for server '${s}': ${o}`),r[s]={type:"error",error:"config_unavailable"}}e.mcp_server_configs=r}else this.connectors&&this.connectors.length>0&&(e.mcp_servers_count=this.connectors.length,e.mcp_server_names=this.connectors.map(n=>n.publicIdentifier),e.mcp_server_types=this.connectors.map(n=>n.constructor.name))}catch(n){y.warn(`Failed to collect MCP server info: ${n}`),e.error="collection_failed"}return e}_normalizeOutput(e){try{if(typeof e=="string")return e;if(e&&typeof e=="object"&&"content"in e)return this._normalizeOutput(e.content);if(Array.isArray(e)){const n=[];for(const r of e)if(typeof r=="object"&&r!==null)"text"in r&&typeof r.text=="string"?n.push(r.text):"content"in r?n.push(this._normalizeOutput(r.content)):n.push(String(r));else{const s=r&&typeof r=="object"&&"text"in r?r.text:null;if(typeof s=="string")n.push(s);else{const o=r&&typeof r=="object"&&"content"in r?r.content:r;n.push(this._normalizeOutput(o))}}return n.join("")}return String(e)}catch{return String(e)}}_isAIMessageLike(e){if(e instanceof P)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{const r=n.getType();if(r==="ai"||r==="assistant")return!0}catch{}if(typeof n._getType=="function")try{const r=n._getType();if(r==="ai"||r==="assistant")return!0}catch{}return"type"in n?n.type==="ai"||n.type==="assistant":"role"in n?n.role==="ai"||n.role==="assistant":!1}_messageHasToolCalls(e){return typeof e=="object"&&e!==null&&"tool_calls"in e&&Array.isArray(e.tool_calls)?e.tool_calls.length>0:!1}_isHumanMessageLike(e){if(e instanceof se)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{const r=n.getType();if(r==="human"||r==="user")return!0}catch{}return"type"in n&&(n.type==="human"||n.type==="user")||"role"in n&&(n.role==="human"||n.role==="user")}_isToolMessageLike(e){if(e instanceof j)return!0;if(typeof e!="object"||e===null)return!1;const n=e;if(typeof n.getType=="function")try{if(n.getType()==="tool")return!0}catch{}return"type"in n&&n.type==="tool"}_getMessageContent(e){if(e instanceof P||e&&typeof e=="object"&&"content"in e)return e.content}async _consumeAndReturn(e){for(;;){const{done:n,value:r}=await e.next();if(n)return r}}async run(e,n,r,s,o,i){const{query:a,maxSteps:l,manageConnector:c,externalHistory:u,outputSchema:d,signal:h}=gr(e,n,r,s,o,i);if(this.isRemote&&this.remoteAgent)return this.remoteAgent.run(a,l,c,u,d);const f=this.stream(a,l,c,u,d,h);return this._consumeAndReturn(f)}async*stream(e,n,r=!0,s,o,i){const{query:a,maxSteps:l,manageConnector:c,externalHistory:u,outputSchema:d,signal:h}=gr(e,n,r,s,o,i);if(this.isRemote&&this.remoteAgent)return await this.remoteAgent.run(a,l,c,u,d);let f=!1;const m=Date.now();let p=!1,C=null,T=0;try{if(c&&!this._initialized?(await this.initialize(),f=!0):!this._initialized&&this.autoInitialize&&(await this.initialize(),f=!0),!this._agentExecutor)throw new Error("MCP agent failed to initialize");if(this.useServerManager&&this.serverManager){const b=this.serverManager.tools,E=new Set(b.map(x=>x.name)),S=new Set(this._tools.map(x=>x.name));(E.size!==S.size||[...E].some(x=>!S.has(x)))&&(y.info(`🔄 Tools changed before execution, updating agent. New tools: ${[...E].join(", ")}`),this._tools=b,this._tools.push(...this.additionalTools),await this.createSystemMessageFromTools(this._tools),this._agentExecutor=this.createAgent())}const k=u??this.conversationHistory,_=[];for(const b of k)(this._isHumanMessageLike(b)||this._isAIMessageLike(b)||this._isToolMessageLike(b))&&_.push(b);const g=a.length>50?`${a.slice(0,50).replace(/\n/g," ")}...`:a.replace(/\n/g," ");y.info(`💬 Received query: '${g}'`),y.info("🏁 Starting agent execution");const v=3;let M=0;const w=[..._,new se(a)];for(;M<=v;){const b={messages:w};let E=!1;const S=await this._agentExecutor.stream(b,{streamMode:"updates",callbacks:this.callbacks,metadata:this.getMetadata(),tags:this.getTags(),runName:this.metadata.trace_name||"mcp-use-agent",recursionLimit:this.maxSteps*3,...this.metadata.session_id&&{sessionId:this.metadata.session_id},...h&&{signal:h}});for await(const x of S){if(h?.aborted)break;for(const[I,O]of Object.entries(x))if(y.debug(`📦 Node '${I}' output: ${JSON.stringify(O)}`),O&&typeof O=="object"&&"messages"in O){let F=O.messages;Array.isArray(F)||(F=[F]);for(const ce of F)w.includes(ce)||w.push(ce);for(const ce of F){if("tool_calls"in ce&&Array.isArray(ce.tool_calls)&&ce.tool_calls.length>0)for(const Ie of ce.tool_calls){const we=Ie.name||"unknown",ht=Ie.args||{};this.toolsUsedNames.push(we),T++;let Je=JSON.stringify(ht);Je.length>100&&(Je=`${Je.slice(0,97)}...`),y.info(`🔧 Tool call: ${we} with input: ${Je}`),yield{action:{tool:we,toolInput:ht,log:`Calling tool ${we}`},observation:""}}if(this._isToolMessageLike(ce)){const Ie=ce.content;let we=String(Ie);if(we.length>100&&(we=`${we.slice(0,97)}...`),we=we.replace(/\n/g," "),y.info(`📄 Tool result: ${we}`),this.useServerManager&&this.serverManager){const ht=this.serverManager.tools,Je=new Set(ht.map(fn=>fn.name)),Lo=new Set(this._tools.map(fn=>fn.name));if(Je.size!==Lo.size||[...Je].some(fn=>!Lo.has(fn))){y.info(`🔄 Tools changed during execution. New tools: ${[...Je].join(", ")}`),this._tools=ht,this._tools.push(...this.additionalTools),await this.createSystemMessageFromTools(this._tools),this._agentExecutor=this.createAgent(),E=!0,M++,y.info(`🔃 Restarting execution with updated tools (restart ${M}/${v})`);break}}}this._isAIMessageLike(ce)&&!this._messageHasToolCalls(ce)&&(C=this._normalizeOutput(this._getMessageContent(ce)),y.info("✅ Agent finished with output"))}if(E)break}if(E)break}if(!E)break;if(M>v){y.warn(`⚠️ Max restarts (${v}) reached. Continuing with current tools.`);break}}if(this.memoryEnabled){const b=w.slice(_.length);for(const E of b)this.addToHistory(E)}if(d&&C)try{y.info("🔧 Attempting structured output...");const b=await this._attemptStructuredOutput(C,this.llm,d);return this.memoryEnabled&&this.addToHistory(new P(`Structured result: ${JSON.stringify(b)}`)),y.info("✅ Structured output successful"),p=!0,b}catch(b){throw y.error(`❌ Structured output failed: ${b}`),new Error(`Failed to generate structured output: ${b instanceof Error?b.message:String(b)}`)}return y.info(`🎉 Agent execution complete in ${((Date.now()-m)/1e3).toFixed(2)} seconds`),p=!0,C||"No output generated"}catch(k){throw y.error(`❌ Error running query: ${k}`),f&&c&&(y.info("🧹 Cleaning up resources after error"),await this.close()),k}finally{const k=Date.now()-m;let _=0;this.client?_=Object.keys(this.client.getAllActiveSessions()).length:this.connectors&&(_=this.connectors.length);const g=this.memoryEnabled?this.conversationHistory.length:0,v=this._tools||[];await this.telemetry.trackAgentExecution({executionMethod:"stream",query:a,success:p,modelProvider:this.modelProvider,modelName:this.modelName,serverCount:_,serverIdentifiers:this.connectors.map(M=>M.publicIdentifier),totalToolsAvailable:v.length,toolsAvailableNames:v.map(M=>M.name),maxStepsConfigured:this.maxSteps,memoryEnabled:this.memoryEnabled,useServerManager:this.useServerManager,maxStepsUsed:l??null,manageConnector:c??!0,externalHistoryUsed:u!==void 0,stepsTaken:T,toolsUsedCount:this.toolsUsedNames.length,toolsUsedNames:this.toolsUsedNames,response:C||"",executionTimeMs:k,errorType:p?null:"execution_error",conversationHistoryLength:g}),c&&!this.client&&f&&(y.info("🧹 Closing agent after stream completion"),await this.close())}}async flush(){this.isRemote&&this.remoteAgent||(y.debug("Flushing observability traces..."),await this.observabilityManager.flush())}async close(){if(this.isRemote&&this.remoteAgent){await this.remoteAgent.close();return}y.info("🔌 Closing MCPAgent resources…"),await this.observabilityManager.shutdown();try{if(this._agentExecutor=null,this._tools=[],this.client)this.clientOwnedByAgent?(y.info("🔄 Closing internally-created client (simplified mode) and cleaning up resources"),await this.client.close(),this.sessions={},this.client=void 0):(y.info("🔄 Closing client and cleaning up resources"),await this.client.close(),this.sessions={});else for(const e of this.connectors)y.info("🔄 Disconnecting connector"),await e.disconnect();this.isSimplifiedMode&&this.llm&&(y.debug("🔄 Clearing LLM reference (simplified mode)"),this.llm=void 0),"connectorToolMap"in this.adapter&&(this.adapter=new xt)}finally{this._initialized=!1,y.info("👋 Agent closed successfully")}}async*prettyStreamEvents(e,n,r=!0,s,o){const{prettyStreamEvents:i}=await nn(async()=>{const{prettyStreamEvents:l}=await import("./display-A5IEINAP-Djz0KdYV.js");return{prettyStreamEvents:l}},__vite__mapDeps([3,1,2])),a="";for await(const l of i(this.streamEvents(e,n,r,s,o)))yield;return a}async*streamEvents(e,n,r=!0,s,o,i){const a=gr(e,n,r,s,o,i);let{query:l}=a;const{maxSteps:c,manageConnector:u,externalHistory:d,outputSchema:h,signal:f}=a;let m=!1;const p=Date.now();let C=!1,T=0,k=0,_="";h&&(l=this._enhanceQueryWithSchema(l,h));try{u&&!this._initialized?(await this.initialize(),m=!0):!this._initialized&&this.autoInitialize&&(await this.initialize(),m=!0);const g=this._agentExecutor;if(!g)throw new Error("MCP agent failed to initialize");this.maxSteps=c??this.maxSteps;const v=typeof l=="string"&&l.length>50?`${l.slice(0,50).replace(/\n/g," ")}...`:typeof l=="string"?l.replace(/\n/g," "):String(l);y.info(`💬 Received query for streamEvents: '${v}'`),this.memoryEnabled&&(y.info(`🔄 Adding user message to history: ${v}`),this.addToHistory(new se({content:l})));const M=d??this.conversationHistory,w=[];for(const S of M)this._isHumanMessageLike(S)||this._isAIMessageLike(S)||this._isToolMessageLike(S)?w.push(S):y.info(`⚠️ Skipped message of type: ${S.constructor?.name||typeof S}`);const b=[...w,new se(l)];y.info("callbacks",this.callbacks);const E=g.streamEvents({messages:b},{streamMode:"messages",version:"v2",callbacks:this.callbacks,metadata:this.getMetadata(),tags:this.getTags(),runName:this.metadata.trace_name||"mcp-use-agent",recursionLimit:this.maxSteps*3,...this.metadata.session_id&&{sessionId:this.metadata.session_id},...f&&{signal:f}});for await(const S of E){if(f?.aborted)break;if(T++,!(!S||typeof S!="object")){if(S.event==="on_chat_model_stream"&&S.data?.chunk?.content&&(k+=S.data.chunk.content.length),S.event==="on_chat_model_stream"&&S.data?.chunk){const x=S.data.chunk;if(x.content){_||(_="");const I=this._normalizeOutput(x.content);_+=I,y.debug(`📝 Accumulated response length: ${_.length}`)}}if(yield S,S.event==="on_chain_end"&&S.data?.output&&!_){const x=S.data.output;Array.isArray(x)&&x.length>0&&x[0]?.text?_=x[0].text:typeof x=="string"?_=x:x&&typeof x=="object"&&"output"in x&&(_=x.output)}}}if(h&&_){y.info("🔧 Attempting structured output conversion...");try{let S=!1,x=null,I=null;this._attemptStructuredOutput(_,this.llm,h).then(F=>(S=!0,x=F,F)).catch(F=>{throw S=!0,I=F,F});let O=0;for(;!S;)await new Promise(F=>setTimeout(F,2e3)),S||(O++,yield{event:"on_structured_output_progress",data:{message:`Converting to structured output... (${O*2}s)`,elapsed:O*2}});if(I)throw I;x&&(yield{event:"on_structured_output",data:{output:x}},this.memoryEnabled&&this.addToHistory(new P(`Structured result: ${JSON.stringify(x)}`)),y.info("✅ Structured output successful"))}catch(S){y.warn(`⚠️ Structured output failed: ${S}`),yield{event:"on_structured_output_error",data:{error:S instanceof Error?S.message:String(S)}}}}else this.memoryEnabled&&_&&this.addToHistory(new P(_));console.log(`
391
391
 
392
392
  `),y.info(`🎉 StreamEvents complete - ${T} events emitted`),C=!0}catch(g){throw y.error(`❌ Error during streamEvents: ${g}`),m&&u&&(y.info("🧹 Cleaning up resources after initialization error in streamEvents"),await this.close()),g}finally{const g=Date.now()-p;let v=0;this.client?v=Object.keys(this.client.getAllActiveSessions()).length:this.connectors&&(v=this.connectors.length);const M=this.memoryEnabled?this.conversationHistory.length:0;await this.telemetry.trackAgentExecution({executionMethod:"streamEvents",query:l,success:C,modelProvider:this.modelProvider,modelName:this.modelName,serverCount:v,serverIdentifiers:this.connectors.map(w=>w.publicIdentifier),totalToolsAvailable:this._tools.length,toolsAvailableNames:this._tools.map(w=>w.name),maxStepsConfigured:this.maxSteps,memoryEnabled:this.memoryEnabled,useServerManager:this.useServerManager,maxStepsUsed:c??null,manageConnector:u??!0,externalHistoryUsed:d!==void 0,response:`[STREAMED RESPONSE - ${k} chars]`,executionTimeMs:g,errorType:C?null:"streaming_error",conversationHistoryLength:M}),u&&!this.client&&m&&(y.info("🧹 Closing agent after streamEvents completion"),await this.close())}}async _attemptStructuredOutput(e,n,r){y.info(`🔄 Attempting structured output with schema: ${JSON.stringify(r,null,2)}`),y.info(`🔄 Raw result: ${JSON.stringify(e,null,2)}`);let s=null,o="";if(y.debug(`🔄 Structured output requested, schema: ${JSON.stringify(Zn(r),null,2)}`),n&&"withStructuredOutput"in n&&typeof n.withStructuredOutput=="function")s=n.withStructuredOutput(r);else if(n)s=n;else throw new Error("LLM is required for structured output");const i=Zn(r),{$schema:a,additionalProperties:l,...c}=i;o=JSON.stringify(c,null,2),y.info(`🔄 Schema description: ${o}`);let u="";typeof e=="string"?u=e:e&&typeof e=="object"&&(u=JSON.stringify(e)),y.info("rawResult",e),u||(u=JSON.stringify(e));const d=3;let h="";for(let f=1;f<=d;f++){y.info(`🔄 Structured output attempt ${f}/${d}`);let m=`
393
393
  Please format the following information according to the EXACT schema specified below.
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as l}from"./lasso-BciudTQ1.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=l();const c=f(n),g=i({__proto__:null,default:c},[n]);export{g as l};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as l}from"./lasso-BciudTQ1.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=l();const c=f(n),g=i({__proto__:null,default:c},[n]);export{g as l};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as l}from"./latex-CHdb8PhR.js";function i(r,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),g=i({__proto__:null,default:c},[f]);export{g as l};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as l}from"./latex-CHdb8PhR.js";function i(r,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),g=i({__proto__:null,default:c},[f]);export{g as l};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as s}from"./ldif-jBEfafs_.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const f=Object.getOwnPropertyDescriptor(e,r);f&&Object.defineProperty(t,r,f.get?f:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const c=a(n),d=l({__proto__:null,default:c},[n]);export{d as l};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as s}from"./ldif-jBEfafs_.js";function l(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const f=Object.getOwnPropertyDescriptor(e,r);f&&Object.defineProperty(t,r,f.get?f:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const c=a(n),d=l({__proto__:null,default:c},[n]);export{d as l};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as l}from"./leaf-CQphRTnn.js";function i(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=l();const c=s(n),g=i({__proto__:null,default:c},[n]);export{g as l};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as l}from"./leaf-CQphRTnn.js";function i(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=l();const c=s(n),g=i({__proto__:null,default:c},[n]);export{g as l};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as l}from"./less-D0Ccux41.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=l();const c=f(a),g=i({__proto__:null,default:c},[a]);export{g as l};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as l}from"./less-D0Ccux41.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=l();const c=f(a),g=i({__proto__:null,default:c},[a]);export{g as l};
@@ -1 +1 @@
1
- import{r as p}from"./index-8CwMSFu3.js";import{r as a}from"./lisp-DfrNO5te.js";function f(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=a();const l=p(n),g=f({__proto__:null,default:l},[n]);export{g as l};
1
+ import{r as p}from"./index-EQ5dayGy.js";import{r as a}from"./lisp-DfrNO5te.js";function f(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=a();const l=p(n),g=f({__proto__:null,default:l},[n]);export{g as l};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as a}from"./livecodeserver-WU_wnUq8.js";function f(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=a();const l=n(c),v=f({__proto__:null,default:l},[c]);export{v as l};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as a}from"./livecodeserver-WU_wnUq8.js";function f(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=a();const l=n(c),v=f({__proto__:null,default:l},[c]);export{v as l};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as p}from"./livescript-oQhn4lAX.js";function a(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=p();const f=n(c),g=a({__proto__:null,default:f},[c]);export{g as l};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as p}from"./livescript-oQhn4lAX.js";function a(t,s){for(var o=0;o<s.length;o++){const e=s[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var c=p();const f=n(c),g=a({__proto__:null,default:f},[c]);export{g as l};
@@ -1,2 +1,2 @@
1
- import{x as O,y as M,z as R,n as b,C as L,G as N,B as x,D as J,R as P}from"./index-8CwMSFu3.js";import{O as k,d as E,e as T}from"./index-BCuNBDGw.js";function C(n,e){if(n.function===void 0)return;let t;if(e?.partial)try{t=R(n.function.arguments??"{}")}catch{return}else try{t=JSON.parse(n.function.arguments)}catch(r){throw new k([`Function "${n.function.name}" arguments:`,"",n.function.arguments,"","are not valid JSON.",`Error: ${r.message}`].join(`
1
+ import{x as O,y as M,z as R,n as b,C as L,G as N,B as x,D as J,R as P}from"./index-EQ5dayGy.js";import{O as k,d as E,e as T}from"./index-BGZ_E61E.js";function C(n,e){if(n.function===void 0)return;let t;if(e?.partial)try{t=R(n.function.arguments??"{}")}catch{return}else try{t=JSON.parse(n.function.arguments)}catch(r){throw new k([`Function "${n.function.name}" arguments:`,"",n.function.arguments,"","are not valid JSON.",`Error: ${r.message}`].join(`
2
2
  `))}const s={name:n.function.name,args:t,type:"tool_call"};return e?.returnId&&(s.id=n.id),s}function z(n){if(n.id===void 0)throw new Error('All OpenAI tool calls must have an "id" field.');return{id:n.id,type:"function",function:{name:n.name,arguments:JSON.stringify(n.args)}}}function A(n,e){return{name:n.function?.name,args:n.function?.arguments,id:n.id,error:e,type:"invalid_tool_call"}}var S=class extends E{static lc_name(){return"JsonOutputToolsParser"}returnId=!1;lc_namespace=["langchain","output_parsers","openai_tools"];lc_serializable=!0;constructor(n){super(n),this.returnId=n?.returnId??this.returnId}_diff(){throw new Error("Not supported.")}async parse(){throw new Error("Not implemented.")}async parseResult(n){return await this.parsePartialResult(n,!1)}async parsePartialResult(n,e=!0){const t=n[0].message;let s;if(M(t)&&t.tool_calls?.length?s=t.tool_calls.map(a=>{const{id:l,...u}=a;return this.returnId?{id:l,...u}:u}):t.additional_kwargs.tool_calls!==void 0&&(s=JSON.parse(JSON.stringify(t.additional_kwargs.tool_calls)).map(l=>C(l,{returnId:this.returnId,partial:e}))),!s)return[];const r=[];for(const a of s)if(a!==void 0){const l={type:a.name,args:a.args,id:a.id};r.push(l)}return r}},B=class extends S{static lc_name(){return"JsonOutputKeyToolsParser"}lc_namespace=["langchain","output_parsers","openai_tools"];lc_serializable=!0;returnId=!1;keyName;returnSingle=!1;zodSchema;constructor(n){super(n),this.keyName=n.keyName,this.returnSingle=n.returnSingle??this.returnSingle,this.zodSchema=n.zodSchema}async _validateResult(n){if(this.zodSchema===void 0)return n;const e=await O(this.zodSchema,n);if(e.success)return e.data;throw new k(`Failed to parse. Text: "${JSON.stringify(n,null,2)}". Error: ${JSON.stringify(e.error?.issues)}`,JSON.stringify(n,null,2))}async parsePartialResult(n){const t=(await super.parsePartialResult(n)).filter(r=>r.type===this.keyName);let s=t;if(t.length)return this.returnId||(s=t.map(r=>r.args)),this.returnSingle?s[0]:s}async parseResult(n){const t=(await super.parsePartialResult(n,!1)).filter(a=>a.type===this.keyName);let s=t;return t.length?(this.returnId||(s=t.map(a=>a.args)),this.returnSingle?this._validateResult(s[0]):await Promise.all(s.map(a=>this._validateResult(a)))):void 0}},F={};b(F,{JsonOutputKeyToolsParser:()=>B,JsonOutputToolsParser:()=>S,convertLangChainToolCallToOpenAI:()=>z,makeInvalidToolCall:()=>A,parseToolCall:()=>C});var K={};b(K,{BaseLLM:()=>I,LLM:()=>U});var I=class f extends T{lc_namespace=["langchain","llms",this._llmType()];async invoke(e,t){const s=f._convertInputToPromptValue(e);return(await this.generatePrompt([s],t,t?.callbacks)).generations[0][0].text}async*_streamResponseChunks(e,t,s){throw new Error("Not implemented.")}_separateRunnableConfigFromCallOptionsCompat(e){const[t,s]=super._separateRunnableConfigFromCallOptions(e);return s.signal=t.signal,[t,s]}async*_streamIterator(e,t){if(this._streamResponseChunks===f.prototype._streamResponseChunks)yield this.invoke(e,t);else{const s=f._convertInputToPromptValue(e),[r,a]=this._separateRunnableConfigFromCallOptionsCompat(t),l=await L.configure(r.callbacks,this.callbacks,r.tags,this.tags,r.metadata,this.metadata,{verbose:this.verbose}),u={options:a,invocation_params:this?.invocationParams(a),batch_size:1},h=await l?.handleLLMStart(this.toJSON(),[s.toString()],r.runId,void 0,u,void 0,void 0,r.runName);let o=new N({text:""});try{for await(const i of this._streamResponseChunks(s.toString(),a,h?.[0]))o?o=o.concat(i):o=i,typeof i.text=="string"&&(yield i.text)}catch(i){throw await Promise.all((h??[]).map(d=>d?.handleLLMError(i))),i}await Promise.all((h??[]).map(i=>i?.handleLLMEnd({generations:[[o]]})))}}async generatePrompt(e,t,s){const r=e.map(a=>a.toString());return this.generate(r,t,s)}invocationParams(e){return{}}_flattenLLMResult(e){const t=[];for(let s=0;s<e.generations.length;s+=1){const r=e.generations[s];if(s===0)t.push({generations:[r],llmOutput:e.llmOutput});else{const a=e.llmOutput?{...e.llmOutput,tokenUsage:{}}:void 0;t.push({generations:[r],llmOutput:a})}}return t}async _generateUncached(e,t,s,r){let a;if(r!==void 0&&r.length===e.length)a=r;else{const o=await L.configure(s.callbacks,this.callbacks,s.tags,this.tags,s.metadata,this.metadata,{verbose:this.verbose}),i={options:t,invocation_params:this?.invocationParams(t),batch_size:e.length};a=await o?.handleLLMStart(this.toJSON(),e,s.runId,void 0,i,void 0,void 0,s?.runName)}const l=!!a?.[0].handlers.find(x);let u;if(l&&e.length===1&&this._streamResponseChunks!==f.prototype._streamResponseChunks)try{const o=await this._streamResponseChunks(e[0],t,a?.[0]);let i;for await(const d of o)i===void 0?i=d:i=J(i,d);if(i===void 0)throw new Error("Received empty response from chat model call.");u={generations:[[i]],llmOutput:{}},await a?.[0].handleLLMEnd(u)}catch(o){throw await a?.[0].handleLLMError(o),o}else{try{u=await this._generate(e,t,a?.[0])}catch(i){throw await Promise.all((a??[]).map(d=>d?.handleLLMError(i))),i}const o=this._flattenLLMResult(u);await Promise.all((a??[]).map((i,d)=>i?.handleLLMEnd(o[d])))}const h=a?.map(o=>o.runId)||void 0;return Object.defineProperty(u,P,{value:h?{runIds:h}:void 0,configurable:!0}),u}async _generateCached({prompts:e,cache:t,llmStringKey:s,parsedOptions:r,handledOptions:a,runId:l}){const u=await L.configure(a.callbacks,this.callbacks,a.tags,this.tags,a.metadata,this.metadata,{verbose:this.verbose}),h={options:r,invocation_params:this?.invocationParams(r),batch_size:e.length},o=await u?.handleLLMStart(this.toJSON(),e,l,void 0,h,void 0,void 0,a?.runName),i=[],v=(await Promise.allSettled(e.map(async(c,m)=>{const _=await t.lookup(c,s);return _==null&&i.push(m),_}))).map((c,m)=>({result:c,runManager:o?.[m]})).filter(({result:c})=>c.status==="fulfilled"&&c.value!=null||c.status==="rejected"),p=[];await Promise.all(v.map(async({result:c,runManager:m},_)=>{if(c.status==="fulfilled"){const y=c.value;return p[_]=y.map(w=>(w.generationInfo={...w.generationInfo,tokenUsage:{}},w)),y.length&&await m?.handleLLMNewToken(y[0].text),m?.handleLLMEnd({generations:[y]},void 0,void 0,void 0,{cached:!0})}else return await m?.handleLLMError(c.reason,void 0,void 0,void 0,{cached:!0}),Promise.reject(c.reason)}));const g={generations:p,missingPromptIndices:i,startedRunManagers:o};return Object.defineProperty(g,P,{value:o?{runIds:o?.map(c=>c.runId)}:void 0,configurable:!0}),g}async generate(e,t,s){if(!Array.isArray(e))throw new Error("Argument 'prompts' is expected to be a string[]");let r;Array.isArray(t)?r={stop:t}:r=t;const[a,l]=this._separateRunnableConfigFromCallOptionsCompat(r);if(a.callbacks=a.callbacks??s,!this.cache)return this._generateUncached(e,l,a);const{cache:u}=this,h=this._getSerializedCacheKeyParametersForCall(l),{generations:o,missingPromptIndices:i,startedRunManagers:d}=await this._generateCached({prompts:e,cache:u,llmStringKey:h,parsedOptions:l,handledOptions:a,runId:a.runId});let v={};if(i.length>0){const p=await this._generateUncached(i.map(g=>e[g]),l,a,d!==void 0?i.map(g=>d?.[g]):void 0);await Promise.all(p.generations.map(async(g,c)=>{const m=i[c];return o[m]=g,u.update(e[m],h,g)})),v=p.llmOutput??{}}return{generations:o,llmOutput:v}}_identifyingParams(){return{}}_modelType(){return"base_llm"}},U=class extends I{async _generate(n,e,t){return{generations:await Promise.all(n.map((r,a)=>this._call(r,{...e,promptIndex:a},t).then(l=>[{text:l}])))}}};export{I as B,B as J,U as L,z as c,K as l,A as m,F as o,C as p};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./llvm-Ctq8Ea1M.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),u=i({__proto__:null,default:c},[a]);export{u as l};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./llvm-Ctq8Ea1M.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const l=Object.getOwnPropertyDescriptor(e,r);l&&Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),u=i({__proto__:null,default:c},[a]);export{u as l};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./lsl-CZ-92Osz.js";function i(t,l){for(var o=0;o<l.length;o++){const e=l[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),g=i({__proto__:null,default:c},[n]);export{g as l};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./lsl-CZ-92Osz.js";function i(t,l){for(var o=0;o<l.length;o++){const e=l[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=a(n),g=i({__proto__:null,default:c},[n]);export{g as l};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as u}from"./lua-CtuzIFQ2.js";function l(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=u();const i=s(f),g=l({__proto__:null,default:i},[f]);export{g as l};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as u}from"./lua-CtuzIFQ2.js";function l(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=u();const i=s(f),g=l({__proto__:null,default:i},[f]);export{g as l};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as s}from"./makefile-CUBjRDBz.js";function l(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=s();const c=n(i),u=l({__proto__:null,default:c},[i]);export{u as m};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as s}from"./makefile-CUBjRDBz.js";function l(t,f){for(var o=0;o<f.length;o++){const e=f[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=s();const c=n(i),u=l({__proto__:null,default:c},[i]);export{u as m};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as i}from"./markdown-Bnpjmjdr.js";function c(t,a){for(var o=0;o<a.length;o++){const r=a[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),d=c({__proto__:null,default:m},[f]);export{d as m};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as i}from"./markdown-Bnpjmjdr.js";function c(t,a){for(var o=0;o<a.length;o++){const r=a[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),d=c({__proto__:null,default:m},[f]);export{d as m};
@@ -1 +1 @@
1
- import{r as m}from"./index-8CwMSFu3.js";import{r as n}from"./mathematica-DMjmGOFL.js";function f(r,i){for(var a=0;a<i.length;a++){const e=i[a];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var c=n();const s=m(c),l=f({__proto__:null,default:s},[c]);export{l as m};
1
+ import{r as m}from"./index-EQ5dayGy.js";import{r as n}from"./mathematica-DMjmGOFL.js";function f(r,i){for(var a=0;a<i.length;a++){const e=i[a];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var c=n();const s=m(c),l=f({__proto__:null,default:s},[c]);export{l as m};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as l}from"./matlab-bMP2hmJA.js";function i(r,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),u=i({__proto__:null,default:c},[f]);export{u as m};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as l}from"./matlab-bMP2hmJA.js";function i(r,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const a=Object.getOwnPropertyDescriptor(e,t);a&&Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),u=i({__proto__:null,default:c},[f]);export{u as m};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as f}from"./maxima-CiGgQtRy.js";function s(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),l=s({__proto__:null,default:c},[m]);export{l as m};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as f}from"./maxima-CiGgQtRy.js";function s(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var m=f();const c=n(m),l=s({__proto__:null,default:c},[m]);export{l as m};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as l}from"./mel-BKEdQ-Ac.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),u=i({__proto__:null,default:c},[f]);export{u as m};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as l}from"./mel-BKEdQ-Ac.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),u=i({__proto__:null,default:c},[f]);export{u as m};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./mercury-Cg7tRNfI.js";function u(t,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const c=Object.getOwnPropertyDescriptor(r,e);c&&Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),y=u({__proto__:null,default:i},[a]);export{y as m};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./mercury-Cg7tRNfI.js";function u(t,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const c=Object.getOwnPropertyDescriptor(r,e);c&&Object.defineProperty(t,e,c.get?c:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),y=u({__proto__:null,default:i},[a]);export{y as m};
@@ -1 +1 @@
1
- import{r as m}from"./index-8CwMSFu3.js";import{r as n}from"./mipsasm-CNyeTk3S.js";function p(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=n();const f=m(i),l=p({__proto__:null,default:f},[i]);export{l as m};
1
+ import{r as m}from"./index-EQ5dayGy.js";import{r as n}from"./mipsasm-CNyeTk3S.js";function p(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=n();const f=m(i),l=p({__proto__:null,default:f},[i]);export{l as m};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./mizar-BICf15Zj.js";function c(t,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const m=f(n),l=c({__proto__:null,default:m},[n]);export{l as m};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./mizar-BICf15Zj.js";function c(t,i){for(var o=0;o<i.length;o++){const r=i[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const m=f(n),l=c({__proto__:null,default:m},[n]);export{l as m};
@@ -1 +1 @@
1
- import{r as n}from"./index-8CwMSFu3.js";import{r as a}from"./mojolicious-DiD_1YV0.js";function f(r,s){for(var t=0;t<s.length;t++){const e=s[t];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in r)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var c=a();const u=n(c),p=f({__proto__:null,default:u},[c]);export{p as m};
1
+ import{r as n}from"./index-EQ5dayGy.js";import{r as a}from"./mojolicious-DiD_1YV0.js";function f(r,s){for(var t=0;t<s.length;t++){const e=s[t];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in r)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var c=a();const u=n(c),p=f({__proto__:null,default:u},[c]);export{p as m};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as i}from"./monkey-D6kono4g.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),y=c({__proto__:null,default:m},[f]);export{y as m};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as i}from"./monkey-D6kono4g.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const m=s(f),y=c({__proto__:null,default:m},[f]);export{y as m};
@@ -1 +1 @@
1
- import{r as c}from"./index-8CwMSFu3.js";import{r as p}from"./moonscript-Ba-Tqbk8.js";function a(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=p();const f=c(i),l=a({__proto__:null,default:f},[i]);export{l as m};
1
+ import{r as c}from"./index-EQ5dayGy.js";import{r as p}from"./moonscript-Ba-Tqbk8.js";function a(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const n=Object.getOwnPropertyDescriptor(r,e);n&&Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=p();const f=c(i),l=a({__proto__:null,default:f},[i]);export{l as m};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as l}from"./n1ql-AxtiJSd2.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),g=i({__proto__:null,default:c},[f]);export{g as n};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as l}from"./n1ql-AxtiJSd2.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=l();const c=s(f),g=i({__proto__:null,default:c},[f]);export{g as n};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./nginx-DwELR1Kc.js";function g(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),l=g({__proto__:null,default:c},[a]);export{l as n};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./nginx-DwELR1Kc.js";function g(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),l=g({__proto__:null,default:c},[a]);export{l as n};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./nim-WLvfBExD.js";function c(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const m=f(a),l=c({__proto__:null,default:m},[a]);export{l as n};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./nim-WLvfBExD.js";function c(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const m=f(a),l=c({__proto__:null,default:m},[a]);export{l as n};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./nix-CYCtYL9u.js";function c(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as n};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./nix-CYCtYL9u.js";function c(t,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const p=f(a),g=c({__proto__:null,default:p},[a]);export{g as n};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./node-repl-DFkgLtXM.js";function l(t,p){for(var o=0;o<p.length;o++){const e=p[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),d=l({__proto__:null,default:i},[a]);export{d as n};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./node-repl-DFkgLtXM.js";function l(t,p){for(var o=0;o<p.length;o++){const e=p[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),d=l({__proto__:null,default:i},[a]);export{d as n};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./nsis-DuGBnzB5.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),g=c({__proto__:null,default:p},[i]);export{g as n};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./nsis-DuGBnzB5.js";function c(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i=f();const p=a(i),g=c({__proto__:null,default:p},[i]);export{g as n};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./objectivec-DaSEGJ40.js";function s(r,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const c=Object.getOwnPropertyDescriptor(e,t);c&&Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n=f();const p=a(n),l=s({__proto__:null,default:p},[n]);export{l as o};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./objectivec-DaSEGJ40.js";function s(r,i){for(var o=0;o<i.length;o++){const e=i[o];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in r)){const c=Object.getOwnPropertyDescriptor(e,t);c&&Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n=f();const p=a(n),l=s({__proto__:null,default:p},[n]);export{l as o};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./ocaml-Lke8W5fZ.js";function l(t,c){for(var o=0;o<c.length;o++){const e=c[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const i=f(n),u=l({__proto__:null,default:i},[n]);export{u as o};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./ocaml-Lke8W5fZ.js";function l(t,c){for(var o=0;o<c.length;o++){const e=c[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=s();const i=f(n),u=l({__proto__:null,default:i},[n]);export{u as o};
@@ -1 +1 @@
1
- import{r as c}from"./index-8CwMSFu3.js";import{r as p}from"./openscad-BUF8N3i5.js";function f(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s=p();const i=c(s),l=f({__proto__:null,default:i},[s]);export{l as o};
1
+ import{r as c}from"./index-EQ5dayGy.js";import{r as p}from"./openscad-BUF8N3i5.js";function f(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var s=p();const i=c(s),l=f({__proto__:null,default:i},[s]);export{l as o};
@@ -1 +1 @@
1
- import{r as s}from"./index-8CwMSFu3.js";import{r as g}from"./oxygene-CNTFR9M0.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=g();const c=s(f),y=i({__proto__:null,default:c},[f]);export{y as o};
1
+ import{r as s}from"./index-EQ5dayGy.js";import{r as g}from"./oxygene-CNTFR9M0.js";function i(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=g();const c=s(f),y=i({__proto__:null,default:c},[f]);export{y as o};
@@ -1 +1 @@
1
- import{r as p}from"./index-8CwMSFu3.js";import{r as f}from"./parser3-DkkG33l8.js";function i(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=p(n),g=i({__proto__:null,default:c},[n]);export{g as p};
1
+ import{r as p}from"./index-EQ5dayGy.js";import{r as f}from"./parser3-DkkG33l8.js";function i(t,s){for(var o=0;o<s.length;o++){const r=s[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n=f();const c=p(n),g=i({__proto__:null,default:c},[n]);export{g as p};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./perl-CG48H2Tk.js";function l(t,p){for(var o=0;o<p.length;o++){const e=p[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),g=l({__proto__:null,default:i},[a]);export{g as p};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./perl-CG48H2Tk.js";function l(t,p){for(var o=0;o<p.length;o++){const e=p[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const i=f(a),g=l({__proto__:null,default:i},[a]);export{g as p};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as s}from"./pf-B8CGBekM.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const f=Object.getOwnPropertyDescriptor(e,r);f&&Object.defineProperty(t,r,f.get?f:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var p=s();const c=a(p),g=i({__proto__:null,default:c},[p]);export{g as p};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as s}from"./pf-B8CGBekM.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const f=Object.getOwnPropertyDescriptor(e,r);f&&Object.defineProperty(t,r,f.get?f:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var p=s();const c=a(p),g=i({__proto__:null,default:c},[p]);export{g as p};
@@ -1 +1 @@
1
- import{r as a}from"./index-8CwMSFu3.js";import{r as f}from"./pgsql-C72BsFGV.js";function l(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var p=f();const g=a(p),u=l({__proto__:null,default:g},[p]);export{u as p};
1
+ import{r as a}from"./index-EQ5dayGy.js";import{r as f}from"./pgsql-C72BsFGV.js";function l(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(e,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var p=f();const g=a(p),u=l({__proto__:null,default:g},[p]);export{u as p};
@@ -1 +1 @@
1
- import{r as f}from"./index-8CwMSFu3.js";import{r as s}from"./php-BnOcpMux.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const p=Object.getOwnPropertyDescriptor(e,r);p&&Object.defineProperty(t,r,p.get?p:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),g=i({__proto__:null,default:c},[a]);export{g as p};
1
+ import{r as f}from"./index-EQ5dayGy.js";import{r as s}from"./php-BnOcpMux.js";function i(t,n){for(var o=0;o<n.length;o++){const e=n[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const p=Object.getOwnPropertyDescriptor(e,r);p&&Object.defineProperty(t,r,p.get?p:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var a=s();const c=f(a),g=i({__proto__:null,default:c},[a]);export{g as p};