promptfoo 0.120.25 → 0.120.26

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 (237) hide show
  1. package/README.md +35 -22
  2. package/dist/src/{ListApp-CYTAaS6A.js → ListApp-D3DG0F8h.js} +1 -1
  3. package/dist/src/{accounts-CwqY22lU.cjs → accounts-BzEY8H3v.cjs} +4 -4
  4. package/dist/src/{accounts-Bzx8GnL6.js → accounts-DHHiXsy6.js} +5 -5
  5. package/dist/src/{accounts-BSwMxhY3.js → accounts-R3gfCR_g.js} +4 -4
  6. package/dist/src/{agentic-utils-5K7LzooV.js → agentic-utils-D6_gzOUF.js} +2 -2
  7. package/dist/src/{agents-B8RWrA68.cjs → agents-C7BiinFI.cjs} +6 -6
  8. package/dist/src/{agents-zHyWnnQ2.js → agents-Cao4i7AX.js} +7 -7
  9. package/dist/src/{agents-KZxXwlyn.cjs → agents-CwM7re15.cjs} +2 -2
  10. package/dist/src/{agents-DleC7rb4.js → agents-DETIQHqF.js} +6 -6
  11. package/dist/src/{agents-CkA9l77-.js → agents-DYIT-hQy.js} +5 -5
  12. package/dist/src/{agents-B20gl7hH.js → agents-GiUianme.js} +2 -2
  13. package/dist/src/{aimlapi-DgbFGPTX.js → aimlapi-CMJpKK-B.js} +9 -9
  14. package/dist/src/{aimlapi-DILJovhN.js → aimlapi-DMF6v_vb.js} +14 -14
  15. package/dist/src/{aimlapi-DIdWBHtH.cjs → aimlapi-DoGLcQW_.cjs} +9 -9
  16. package/dist/src/app/assets/index-BOgkICuY.css +1 -0
  17. package/dist/src/app/assets/index-CSgqn_Vd.js +428 -0
  18. package/dist/src/app/assets/{vendor-charts-DnwydkkY.js → vendor-charts-CYyo8R8v.js} +1 -1
  19. package/dist/src/app/assets/{vendor-markdown-DjKAU15k.js → vendor-markdown-DSmzq4Jh.js} +1 -1
  20. package/dist/src/app/assets/vendor-react-AtKqiNEf.js +4 -0
  21. package/dist/src/app/assets/{vendor-syntax-Dc86c4Bu.js → vendor-syntax-D06x6TQF.js} +1 -1
  22. package/dist/src/app/index.html +6 -6
  23. package/dist/src/app/tsconfig.app.tsbuildinfo +1 -1
  24. package/dist/src/{audio-BoR9KZV8.cjs → audio-BWjyvHn9.cjs} +3 -3
  25. package/dist/src/{audio-nUSOpXY7.js → audio-BrJBFN2b.js} +3 -3
  26. package/dist/src/{audio-BDrAkpVc.js → audio-DUH4q0Xq.js} +4 -4
  27. package/dist/src/{base-DumUXbOH.js → base-BaXmtXYp.js} +2 -2
  28. package/dist/src/{base-CwCV0t8r.js → base-Dtp8b4_N.js} +2 -2
  29. package/dist/src/{base-D8VQYhNQ.cjs → base-f71xxWai.cjs} +2 -2
  30. package/dist/src/{blobs-_kNRY6vU.cjs → blobs-673H0jCl.cjs} +2 -2
  31. package/dist/src/{blobs-Dnt2rxpc.js → blobs-C9J2mVgo.js} +2 -2
  32. package/dist/src/{blobs-DlB5fwyF.js → blobs-kt8v3UyH.js} +2 -2
  33. package/dist/src/{cache-S9MAoF9H.cjs → cache-7xULbvt3.cjs} +34 -7
  34. package/dist/src/{cache-C4A4H4Xb.js → cache-BLLayYEN.js} +23 -8
  35. package/dist/src/{cache-B2oIvf92.js → cache-BUPcq0Ad.js} +2 -2
  36. package/dist/src/cache-CVfRb-HD.cjs +6 -0
  37. package/dist/src/{cache-DofebEnH.js → cache-O4EuX2JV.js} +3 -3
  38. package/dist/src/{cache-Bg1Wpvzq.js → cache-mIszOnuz.js} +4 -21
  39. package/dist/src/{chat-DTCPbuld.cjs → chat-C4zqjObh.cjs} +6 -6
  40. package/dist/src/{chat-noXtEAh5.js → chat-C8Ei4f87.js} +6 -6
  41. package/dist/src/{chat-BiImdLJf.js → chat-CgyGj2hC.js} +8 -8
  42. package/dist/src/{chat-DQ6Z5Cbn.js → chat-Cpz3O-Xl.js} +13 -13
  43. package/dist/src/{chat-D_cro0wd.js → chat-DIywASPG.js} +10 -10
  44. package/dist/src/{chat-BR2x1dG_.cjs → chat-Fl6TZJRS.cjs} +8 -8
  45. package/dist/src/{chatkit-TnC1YoVi.js → chatkit-DEls11hE.js} +3 -3
  46. package/dist/src/{claude-agent-sdk-CBpAZV5h.js → claude-agent-sdk-6-xTaLwM.js} +45 -16
  47. package/dist/src/{claude-agent-sdk-uHLgAUZj.cjs → claude-agent-sdk-BzxF6NIJ.cjs} +45 -16
  48. package/dist/src/{claude-agent-sdk-qxE5mGVi.js → claude-agent-sdk-CmkTnKGH.js} +48 -19
  49. package/dist/src/{claude-agent-sdk-DyPvrj-1.js → claude-agent-sdk-rXCBLK_o.js} +38 -9
  50. package/dist/src/{cloud-lRosK6Nk.js → cloud-BMbRVJFw.js} +2 -2
  51. package/dist/src/{cloud-DHWE-9nj.js → cloud-CZ4hytdm.js} +1 -1
  52. package/dist/src/{cloudflare-ai-D0OtFY6g.cjs → cloudflare-ai-BAQ0u_dg.cjs} +9 -9
  53. package/dist/src/{cloudflare-ai-BprwSD6d.js → cloudflare-ai-CUg4BTcj.js} +9 -9
  54. package/dist/src/{cloudflare-ai-CB7OWRAP.js → cloudflare-ai-CobxMTR4.js} +14 -14
  55. package/dist/src/{cloudflare-gateway-C29gWj5O.cjs → cloudflare-gateway-C0sgfr_z.cjs} +10 -10
  56. package/dist/src/{cloudflare-gateway-BaVwoBjE.js → cloudflare-gateway-D2_yi-Fh.js} +15 -15
  57. package/dist/src/{cloudflare-gateway-BjoxwqUw.js → cloudflare-gateway-_itGuXry.js} +10 -10
  58. package/dist/src/{codex-sdk-DNkCbb7c.js → codex-sdk-dSnGdgIp.js} +3 -3
  59. package/dist/src/{cometapi-BGxGZ7VA.js → cometapi-B01btbfb.js} +15 -15
  60. package/dist/src/{cometapi-xiTQZp8R.js → cometapi-ChAaRjg5.js} +10 -10
  61. package/dist/src/{cometapi-DalITP94.cjs → cometapi-JbvOJSCO.cjs} +10 -10
  62. package/dist/src/{completion-BTbouQDz.js → completion-BBJ6zmG3.js} +5 -5
  63. package/dist/src/{completion-HYrX5gEL.js → completion-D9_MDlnd.js} +4 -4
  64. package/dist/src/{completion-DV0Ys99K.cjs → completion-DDyL3Cb2.cjs} +4 -4
  65. package/dist/src/{docker-Dx_FN1ag.js → docker-BuButc4D.js} +14 -14
  66. package/dist/src/{docker-zUAnbYTM.cjs → docker-Ckw-j7Rr.cjs} +9 -9
  67. package/dist/src/{docker-BAYnlbAW.js → docker-JAAubMw3.js} +9 -9
  68. package/dist/src/errors-DnGCbnx8.js +36 -0
  69. package/dist/src/{esm-79BpbQzg.js → esm-CYhseqj4.js} +1 -1
  70. package/dist/src/eval-CKHWqG9f.js +16 -0
  71. package/dist/src/{eval-Cxb9alW8.js → eval-CYrbG57o.js} +45 -13
  72. package/dist/src/{evalResult-B8LbgWMA.js → evalResult-6JaUIStC.js} +6 -6
  73. package/dist/src/{evalResult-CJNSpa3q.js → evalResult-COsVttMA.js} +6 -6
  74. package/dist/src/evalResult-CxTP-LMm.cjs +11 -0
  75. package/dist/src/evalResult-CzLURDcP.js +13 -0
  76. package/dist/src/{evalResult-hI1mhi_g.cjs → evalResult-DlRfu_Rq.cjs} +6 -6
  77. package/dist/src/evalResult-DyttNQ_G.js +11 -0
  78. package/dist/src/evaluator-0PvfeBYh.js +38 -0
  79. package/dist/src/{evaluator-1Tkdu8MK.js → evaluator-3EJCMTs0.js} +74 -48
  80. package/dist/src/{extractor-BPBlLyOn.cjs → extractor-DbhlYEeo.cjs} +22 -5
  81. package/dist/src/{extractor-CuUWqwrE.js → extractor-Hs7la_19.js} +22 -5
  82. package/dist/src/{extractor-BFoThUOa.js → extractor-LSYjrhK0.js} +22 -5
  83. package/dist/src/{fetch-zJuFPxN1.js → fetch-18MuNu9i.js} +4 -4
  84. package/dist/src/{fetch-BdiCecAv.js → fetch-Bi0o-fdp.js} +1 -1
  85. package/dist/src/fetch-CMptBDVg.cjs +4 -0
  86. package/dist/src/{fetch-BQgz6x7S.js → fetch-DAZkv3gV.js} +2 -2
  87. package/dist/src/{fetch-BuP-gm0E.js → fetch-SRsE6Ctl.js} +4 -4
  88. package/dist/src/{fetch-Dy2YML9G.cjs → fetch-ZMn_oemb.cjs} +4 -4
  89. package/dist/src/{fileExtensions-CzcPkiKZ.js → fileExtensions-BpuMmaFL.js} +1 -1
  90. package/dist/src/{formatDuration-CGa0ZDQ8.js → formatDuration-Doo0xq-z.js} +1 -1
  91. package/dist/src/{genaiTracer-foKtbVa2.js → genaiTracer-CqNnnXrE.js} +1 -1
  92. package/dist/src/graders-BCytzXrb.js +34 -0
  93. package/dist/src/{graders-DMAzEgEF.js → graders-BaMCwIKp.js} +211 -91
  94. package/dist/src/graders-CGZQShfJ.cjs +33 -0
  95. package/dist/src/{graders-NBsuYeMx.cjs → graders-DzUUnUjC.cjs} +206 -86
  96. package/dist/src/{graders-CtvuaC8D.js → graders-QsALpIdy.js} +206 -86
  97. package/dist/src/graders-spkuVC-E.js +36 -0
  98. package/dist/src/{image-Bf8RiJ2g.js → image-BXt_7u0v.js} +3 -3
  99. package/dist/src/{image-LhLO5KCW.js → image-BiEVdpdP.js} +4 -4
  100. package/dist/src/{image-CaVWfZub.cjs → image-C3BjJUAU.cjs} +4 -4
  101. package/dist/src/{image-BnF25Osq.cjs → image-D10zEe1f.cjs} +3 -3
  102. package/dist/src/{image-DIn_AW1Z.js → image-DB4sHxdJ.js} +4 -4
  103. package/dist/src/{image-DFwp1aAV.js → image-mhAGP07h.js} +6 -6
  104. package/dist/src/index.cjs +152 -69
  105. package/dist/src/index.d.cts +20 -3
  106. package/dist/src/index.d.ts +20 -3
  107. package/dist/src/index.js +152 -69
  108. package/dist/src/{interactiveCheck-Dmm9vjpx.js → interactiveCheck-DU-MAhp5.js} +1 -1
  109. package/dist/src/{knowledgeBase-Bf57PI7g.cjs → knowledgeBase-Bnb00xKs.cjs} +6 -6
  110. package/dist/src/{knowledgeBase-DZw2L9kf.js → knowledgeBase-CMvMlLZR.js} +8 -8
  111. package/dist/src/{knowledgeBase-CfOvyF2s.js → knowledgeBase-XJQ0Qyez.js} +6 -6
  112. package/dist/src/{litellm-Ds8YmO1b.js → litellm-BECdjOTx.js} +3 -3
  113. package/dist/src/{litellm-ByNRN2Vh.cjs → litellm-BrnZhMcL.cjs} +11 -11
  114. package/dist/src/{litellm-fU-xV6T4.js → litellm-CHrRmPAe.js} +16 -16
  115. package/dist/src/{litellm-DexU8FFp.js → litellm-CrLJrPIm.js} +11 -11
  116. package/dist/src/{luma-ray-y26EHFO8.js → luma-ray-BOeX-h0M.js} +8 -8
  117. package/dist/src/{luma-ray-BIe5ctI4.cjs → luma-ray-C0RkI3lt.cjs} +8 -8
  118. package/dist/src/{luma-ray-vvE-O9EA.js → luma-ray-DgKLS0BF.js} +10 -10
  119. package/dist/src/main.js +1011 -404
  120. package/dist/src/{messages-Bg2ekFPc.js → messages-CDZYGNlS.js} +7 -7
  121. package/dist/src/{messages-DpoCLD_8.js → messages-D61tPFQo.js} +9 -9
  122. package/dist/src/{messages-16jb9LP7.cjs → messages-DXV3Qh8_.cjs} +7 -7
  123. package/dist/src/{meteor-DLCdreag.js → meteor-P2rUE-Uz.js} +1 -1
  124. package/dist/src/{nova-reel-BM0snD2m.js → nova-reel-Bk5npr2q.js} +10 -10
  125. package/dist/src/{nova-reel-CvXCVn3f.cjs → nova-reel-D9FXq3Mt.cjs} +8 -8
  126. package/dist/src/{nova-reel-CJLpBKSI.js → nova-reel-DtCjbD5O.js} +8 -8
  127. package/dist/src/{nova-sonic-CklvraBd.js → nova-sonic-BXRfQyF-.js} +7 -7
  128. package/dist/src/{nova-sonic-DEx_FdFW.cjs → nova-sonic-BoRSY_U6.cjs} +5 -5
  129. package/dist/src/{nova-sonic-Cjh_qopr.js → nova-sonic-CgaWLDM1.js} +5 -5
  130. package/dist/src/{openai-jNIREoAW.js → openai-CT5fwbve.js} +1 -1
  131. package/dist/src/{openclaw-CnAwBfPO.js → openclaw-B6XY2kUf.js} +14 -14
  132. package/dist/src/{openclaw-DBSSY4SP.js → openclaw-CpPrXwf6.js} +9 -9
  133. package/dist/src/{openclaw-CbHtt3B8.cjs → openclaw-DDSfq5fp.cjs} +9 -9
  134. package/dist/src/{opencode-sdk-CqxTHrk0.js → opencode-sdk-CImWVqy9.js} +6 -6
  135. package/dist/src/{opencode-sdk-xUrRk5Jx.js → opencode-sdk-CuCztr4P.js} +4 -4
  136. package/dist/src/{opencode-sdk-DdmtRB6D.cjs → opencode-sdk-mqF-Oj3f.cjs} +4 -4
  137. package/dist/src/{otlpReceiver-th2zHwjZ.cjs → otlpReceiver-B6Xo4KZM.cjs} +4 -4
  138. package/dist/src/{otlpReceiver-uytrRKdo.js → otlpReceiver-BO0rbDzh.js} +4 -4
  139. package/dist/src/{otlpReceiver-C-1cdVDr.js → otlpReceiver-Dg817agV.js} +5 -5
  140. package/dist/src/{providerRegistry-DAZoFmGv.js → providerRegistry-Xf0qdqGQ.js} +1 -1
  141. package/dist/src/providers-BMZZmPBJ.cjs +32 -0
  142. package/dist/src/{providers-CpUrPa8s.cjs → providers-BNKVY53V.cjs} +94 -64
  143. package/dist/src/{providers-D3lk_R7Q.js → providers-BiNq_Iyc.js} +94 -64
  144. package/dist/src/{providers-BOvl9qv5.js → providers-BlEhY5mi.js} +110 -79
  145. package/dist/src/providers-CQQrNaJk.js +32 -0
  146. package/dist/src/providers-Ck8HyrC-.js +34 -0
  147. package/dist/src/{pythonUtils-CUPlf1H0.js → pythonUtils-r1uBuA0n.js} +2 -2
  148. package/dist/src/{quiverai-BNGJOQym.cjs → quiverai-BNfIwKCO.cjs} +8 -8
  149. package/dist/src/{quiverai-Y7Is4wah.js → quiverai-BQigKdIH.js} +13 -13
  150. package/dist/src/{quiverai-DthRqZs9.js → quiverai-Bfy2WnE2.js} +8 -8
  151. package/dist/src/{render-kFatbqG6.js → render-CAZvKKkB.js} +3 -3
  152. package/dist/src/{responses-BtU_i-R0.js → responses-DLLjADw5.js} +5 -5
  153. package/dist/src/{responses-B85halqh.js → responses-TsdODUpm.js} +8 -8
  154. package/dist/src/{responses-CXJACENh.cjs → responses-zOtKtnY_.cjs} +5 -5
  155. package/dist/src/{rubyUtils-DYKoa7Ze.js → rubyUtils-BtjlqyXt.js} +2 -2
  156. package/dist/src/{rubyUtils-BA4D4gMX.js → rubyUtils-D7--T12C.js} +2 -2
  157. package/dist/src/{sagemaker-hRS_Jj3-.js → sagemaker-BcgLu0U4.js} +17 -17
  158. package/dist/src/{sagemaker-DI6IOTjT.js → sagemaker-CLdUAv5z.js} +11 -11
  159. package/dist/src/{sagemaker-BUagsrJ-.cjs → sagemaker-DwNnEVYt.cjs} +11 -11
  160. package/dist/src/{scanner-C6QXA9Pn.js → scanner-Dyw21Wg_.js} +10 -10
  161. package/dist/src/server/index.js +1376 -486
  162. package/dist/src/server-BUbS0Qfh.js +6 -0
  163. package/dist/src/{server-BPC37wlX.js → server-CbMTRQkg.js} +3 -3
  164. package/dist/src/{server-C_O6-VE4.cjs → server-CgUQ25qW.cjs} +3 -3
  165. package/dist/src/{server-HQtz_gUy.js → server-DWmZLfCy.js} +4 -4
  166. package/dist/src/server-XpGXFHkS.cjs +6 -0
  167. package/dist/src/server-gfOx5Zrk.js +8 -0
  168. package/dist/src/{signal-D4VhSJOY.js → signal-Bl32q42d.js} +2 -2
  169. package/dist/src/{slack-DTUSadx4.js → slack-BfdBx2tO.js} +1 -1
  170. package/dist/src/{store-BTdkdmK9.js → store-2ocbYY9D.js} +2 -2
  171. package/dist/src/store-5u2yriTV.js +7 -0
  172. package/dist/src/{store-F-KTiqfb.cjs → store-BqwfFEyF.cjs} +2 -2
  173. package/dist/src/{store-rueRdzcm.js → store-D4gdn9ih.js} +2 -2
  174. package/dist/src/store-D_lq_8oQ.js +6 -0
  175. package/dist/src/store-m5KT6Ly7.cjs +6 -0
  176. package/dist/src/{tables-w-r-abWq.cjs → tables-B9E1kRp-.cjs} +2 -2
  177. package/dist/src/{tables-ChjAuVAR.js → tables-C7TT2XVn.js} +2 -2
  178. package/dist/src/{tables-dNaVPyDr.js → tables-D-NSwNIb.js} +2 -2
  179. package/dist/src/telemetry-5RHFoCJh.js +6 -0
  180. package/dist/src/{telemetry-wXyCQ1Nz.js → telemetry-BXyVqyAg.js} +3 -3
  181. package/dist/src/{telemetry-Y1esJM0v.cjs → telemetry-D0_yFdtU.cjs} +3 -3
  182. package/dist/src/{telemetry-Dai7PdlR.js → telemetry-DZ_7PaVq.js} +3 -3
  183. package/dist/src/telemetry-Do8wMnA-.js +8 -0
  184. package/dist/src/telemetry-LojxPoFq.cjs +6 -0
  185. package/dist/src/{text-C1cXk9ij.js → text-DgMr_tiM.js} +1 -1
  186. package/dist/src/{tokenUsageUtils-D2ko2eFQ.js → tokenUsageUtils-DmZSD2eU.js} +1 -1
  187. package/dist/src/{transcription-i6EfSMie.js → transcription-CYuY5sFO.js} +6 -6
  188. package/dist/src/{transcription-CcYTL4wi.js → transcription-Ch7S-LWw.js} +10 -10
  189. package/dist/src/{transcription-C-K2hDJX.cjs → transcription-FNIz3YOe.cjs} +6 -6
  190. package/dist/src/{transform-gpzlPrwG.js → transform-CoP2bJ7P.js} +43 -4
  191. package/dist/src/{transform-B86_0IIb.js → transform-CqTFr7KR.js} +4 -4
  192. package/dist/src/{transform-DosdxVdh.js → transform-DMaxQwDx.js} +43 -4
  193. package/dist/src/{transform-DwsntMEQ.js → transform-GybT0X0u.js} +3 -3
  194. package/dist/src/{transform-CCSNqTI-.cjs → transform-ivxEY4f7.cjs} +54 -3
  195. package/dist/src/{transformersAvailability-DM54tWzt.js → transformersAvailability-DwmezkVe.js} +1 -1
  196. package/dist/src/{types-Brw5kggg.cjs → types-BIfttHrT.cjs} +13 -1
  197. package/dist/src/{types-CslP2TyG.js → types-DMVjYLpx.js} +13 -1
  198. package/dist/src/{types-CMDs7Kzu.js → types-t52w-XsS.js} +16 -2
  199. package/dist/src/{util-BECSJ0T_.js → util-BSh4a_Q8.js} +6 -6
  200. package/dist/src/{util-D8z5QOy8.cjs → util-C08Kns6-.cjs} +3 -3
  201. package/dist/src/{util-CttPoePn.js → util-CUEt0Vum.js} +3 -3
  202. package/dist/src/{util-CfPdWQJX.js → util-Cl0zfT3V.js} +3 -3
  203. package/dist/src/{util-Dab5xp2E.cjs → util-DUYOvxAy.cjs} +3 -3
  204. package/dist/src/{util-CY_XguB9.js → util-DiCePfDu.js} +3 -3
  205. package/dist/src/{util-CBAXTxfy.cjs → util-DkFTvieG.cjs} +3 -3
  206. package/dist/src/{util-Dft1RxsL.js → util-mJ58qbbw.js} +3 -3
  207. package/dist/src/{util-Ba18wQ8e.js → util-vjscpUzy.js} +3 -3
  208. package/dist/src/{utils-BTeLHwiH.js → utils-CVzb4YiI.js} +2 -2
  209. package/dist/src/{utils-Db5KwiXp.cjs → utils-DFaZa6Rf.cjs} +2 -2
  210. package/dist/src/{utils-ICP7kLcY.js → utils-JaY9veb5.js} +2 -2
  211. package/dist/tsconfig.tsbuildinfo +1 -1
  212. package/package.json +43 -42
  213. package/dist/src/app/assets/index-COIipVf1.css +0 -1
  214. package/dist/src/app/assets/index-ClD64gUa.js +0 -428
  215. package/dist/src/app/assets/vendor-react-DHoaNLma.js +0 -4
  216. package/dist/src/cache-BJ31KhNT.cjs +0 -6
  217. package/dist/src/eval-DgiEH2xe.js +0 -16
  218. package/dist/src/evalResult-Boel8xoS.js +0 -13
  219. package/dist/src/evalResult-DGx1-Ela.js +0 -11
  220. package/dist/src/evalResult-DzRxYLDH.cjs +0 -11
  221. package/dist/src/evaluator-B4qKt437.js +0 -38
  222. package/dist/src/fetch-DwhKew9e.cjs +0 -4
  223. package/dist/src/graders-BpEqZT2Q.js +0 -34
  224. package/dist/src/graders-DTGI-hHE.cjs +0 -33
  225. package/dist/src/graders-DgMr-E4I.js +0 -36
  226. package/dist/src/providers-DVsoSup2.js +0 -34
  227. package/dist/src/providers-D_tJatIk.js +0 -32
  228. package/dist/src/providers-wpMPsMZ7.cjs +0 -32
  229. package/dist/src/server-BeqUuSvj.js +0 -6
  230. package/dist/src/server-CwQsQ6dl.cjs +0 -6
  231. package/dist/src/server-Dhbq83-d.js +0 -8
  232. package/dist/src/store-C7U17qcu.js +0 -6
  233. package/dist/src/store-CuDU_jDN.js +0 -7
  234. package/dist/src/store-awdDxuiD.cjs +0 -6
  235. package/dist/src/telemetry-ClcYTCOG.js +0 -8
  236. package/dist/src/telemetry-DEWuLu_s.js +0 -6
  237. package/dist/src/telemetry-tADmeX6E.cjs +0 -6
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { o as logger_default, v as getConfigDirectoryPath } from "./logger-BotXmWKW.js";
3
- import { g as getDb, n as blobReferencesTable, t as blobAssetsTable } from "./tables-ChjAuVAR.js";
3
+ import { g as getDb, n as blobReferencesTable, t as blobAssetsTable } from "./tables-C7TT2XVn.js";
4
4
  import * as fs$1 from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import * as fsPromises$1 from "node:fs/promises";
@@ -237,4 +237,4 @@ async function recordBlobReference(hash, refContext) {
237
237
 
238
238
  //#endregion
239
239
  export { BLOB_MAX_SIZE as a, storeBlob as i, getBlobUrl as n, BLOB_MIN_SIZE as o, recordBlobReference as r, getBlobByHash as t };
240
- //# sourceMappingURL=blobs-DlB5fwyF.js.map
240
+ //# sourceMappingURL=blobs-kt8v3UyH.js.map
@@ -1,5 +1,5 @@
1
1
  const require_logger = require('./logger-BdZ-IqBc.cjs');
2
- const require_fetch = require('./fetch-Dy2YML9G.cjs');
2
+ const require_fetch = require('./fetch-ZMn_oemb.cjs');
3
3
  let fs = require("fs");
4
4
  fs = require_logger.__toESM(fs);
5
5
  let path = require("path");
@@ -513,12 +513,27 @@ function shouldRunMigration(cachePath, newCacheFile) {
513
513
  //#endregion
514
514
  //#region src/util/fetch/errors.ts
515
515
  /**
516
- * Detect transient connection errors distinct from rate limits or permanent
517
- * certificate/config errors. Only matches errors that are likely to succeed
518
- * on retry (stale connections, mid-stream resets). Permanent failures like
519
- * "self signed certificate", "unable to verify", "unknown ca", or
520
- * "wrong version number" (HTTPS->HTTP mismatch) are intentionally excluded.
516
+ * Non-transient HTTP status codes that indicate the target is unavailable or misconfigured.
517
+ * These errors will not resolve on retry and should abort the scan immediately.
518
+ *
519
+ * - 401: Unauthorized - authentication required or invalid credentials
520
+ * - 403: Forbidden - valid credentials but access denied
521
+ * - 404: Not Found - target endpoint doesn't exist
522
+ * - 501: Not Implemented - server doesn't support the request method
523
+ *
524
+ * Excluded: 500 (often transient — server crashes, DB timeouts, deployment rollouts,
525
+ * or input-dependent bugs where one prompt triggers it but the next doesn't),
526
+ * 502/503/504 (typically transient gateway issues).
521
527
  */
528
+ const NON_TRANSIENT_HTTP_STATUSES = [
529
+ 401,
530
+ 403,
531
+ 404,
532
+ 501
533
+ ];
534
+ function isNonTransientHttpStatus(status) {
535
+ return NON_TRANSIENT_HTTP_STATUSES.includes(status);
536
+ }
522
537
  function isTransientConnectionError(error) {
523
538
  if (!error) return false;
524
539
  const code = error.code;
@@ -724,6 +739,12 @@ function isCacheEnabled() {
724
739
  }
725
740
 
726
741
  //#endregion
742
+ Object.defineProperty(exports, 'NON_TRANSIENT_HTTP_STATUSES', {
743
+ enumerable: true,
744
+ get: function () {
745
+ return NON_TRANSIENT_HTTP_STATUSES;
746
+ }
747
+ });
727
748
  Object.defineProperty(exports, 'cache_exports', {
728
749
  enumerable: true,
729
750
  get: function () {
@@ -766,10 +787,16 @@ Object.defineProperty(exports, 'isCacheEnabled', {
766
787
  return isCacheEnabled;
767
788
  }
768
789
  });
790
+ Object.defineProperty(exports, 'isNonTransientHttpStatus', {
791
+ enumerable: true,
792
+ get: function () {
793
+ return isNonTransientHttpStatus;
794
+ }
795
+ });
769
796
  Object.defineProperty(exports, 'isTransientConnectionError', {
770
797
  enumerable: true,
771
798
  get: function () {
772
799
  return isTransientConnectionError;
773
800
  }
774
801
  });
775
- //# sourceMappingURL=cache-S9MAoF9H.cjs.map
802
+ //# sourceMappingURL=cache-7xULbvt3.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-FhC4c-0y.js";
2
2
  import { _ as getEnvBool, b as getEnvString, g as getConfigDirectoryPath, i as logger_default, y as getEnvInt } from "./logger-w8Ozp0Td.js";
3
- import { h as REQUEST_TIMEOUT_MS, n as fetchWithRetries, p as sleep } from "./fetch-zJuFPxN1.js";
3
+ import { h as REQUEST_TIMEOUT_MS, n as fetchWithRetries, p as sleep } from "./fetch-18MuNu9i.js";
4
4
  import fs from "fs";
5
5
  import path from "path";
6
6
  import { createCache } from "cache-manager";
@@ -512,12 +512,27 @@ function shouldRunMigration(cachePath, newCacheFile) {
512
512
  //#endregion
513
513
  //#region src/util/fetch/errors.ts
514
514
  /**
515
- * Detect transient connection errors distinct from rate limits or permanent
516
- * certificate/config errors. Only matches errors that are likely to succeed
517
- * on retry (stale connections, mid-stream resets). Permanent failures like
518
- * "self signed certificate", "unable to verify", "unknown ca", or
519
- * "wrong version number" (HTTPS->HTTP mismatch) are intentionally excluded.
515
+ * Non-transient HTTP status codes that indicate the target is unavailable or misconfigured.
516
+ * These errors will not resolve on retry and should abort the scan immediately.
517
+ *
518
+ * - 401: Unauthorized - authentication required or invalid credentials
519
+ * - 403: Forbidden - valid credentials but access denied
520
+ * - 404: Not Found - target endpoint doesn't exist
521
+ * - 501: Not Implemented - server doesn't support the request method
522
+ *
523
+ * Excluded: 500 (often transient — server crashes, DB timeouts, deployment rollouts,
524
+ * or input-dependent bugs where one prompt triggers it but the next doesn't),
525
+ * 502/503/504 (typically transient gateway issues).
520
526
  */
527
+ const NON_TRANSIENT_HTTP_STATUSES = [
528
+ 401,
529
+ 403,
530
+ 404,
531
+ 501
532
+ ];
533
+ function isNonTransientHttpStatus(status) {
534
+ return NON_TRANSIENT_HTTP_STATUSES.includes(status);
535
+ }
521
536
  function isTransientConnectionError(error) {
522
537
  if (!error) return false;
523
538
  const code = error.code;
@@ -723,5 +738,5 @@ function isCacheEnabled() {
723
738
  }
724
739
 
725
740
  //#endregion
726
- export { fetchWithCache as a, isTransientConnectionError as c, enableCache as i, clearCache as n, getCache as o, disableCache as r, isCacheEnabled as s, cache_exports as t };
727
- //# sourceMappingURL=cache-C4A4H4Xb.js.map
741
+ export { fetchWithCache as a, NON_TRANSIENT_HTTP_STATUSES as c, enableCache as i, isNonTransientHttpStatus as l, clearCache as n, getCache as o, disableCache as r, isCacheEnabled as s, cache_exports as t, isTransientConnectionError as u };
742
+ //# sourceMappingURL=cache-BLLayYEN.js.map
@@ -1,6 +1,6 @@
1
1
  import "./chunk-FhC4c-0y.js";
2
2
  import "./logger-w8Ozp0Td.js";
3
- import "./fetch-zJuFPxN1.js";
4
- import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-C4A4H4Xb.js";
3
+ import "./fetch-18MuNu9i.js";
4
+ import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-BLLayYEN.js";
5
5
 
6
6
  export { getCache, isCacheEnabled };
@@ -0,0 +1,6 @@
1
+ require('./logger-BdZ-IqBc.cjs');
2
+ require('./fetch-ZMn_oemb.cjs');
3
+ const require_cache = require('./cache-7xULbvt3.cjs');
4
+
5
+ exports.getCache = require_cache.getCache;
6
+ exports.isCacheEnabled = require_cache.isCacheEnabled;
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import "./chunk-DHDDz29n.js";
3
3
  import "./logger-BotXmWKW.js";
4
- import "./fetch-BuP-gm0E.js";
5
- import "./cloud-lRosK6Nk.js";
6
- import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-Bg1Wpvzq.js";
4
+ import "./fetch-SRsE6Ctl.js";
5
+ import "./cloud-BMbRVJFw.js";
6
+ import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-mIszOnuz.js";
7
7
 
8
8
  export { getCache, isCacheEnabled };
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { t as __exportAll } from "./chunk-DHDDz29n.js";
3
3
  import { C as getEnvString, S as getEnvInt, b as getEnvBool, o as logger_default, v as getConfigDirectoryPath } from "./logger-BotXmWKW.js";
4
- import { d as REQUEST_TIMEOUT_MS, l as sleep, r as fetchWithRetries } from "./fetch-BuP-gm0E.js";
4
+ import { d as REQUEST_TIMEOUT_MS, l as sleep, r as fetchWithRetries } from "./fetch-SRsE6Ctl.js";
5
+ import { r as isTransientConnectionError } from "./errors-DnGCbnx8.js";
5
6
  import fs from "fs";
6
7
  import path from "path";
7
8
  import { createCache } from "cache-manager";
@@ -510,24 +511,6 @@ function shouldRunMigration(cachePath, newCacheFile) {
510
511
  return hasOldCacheFormat(cachePath);
511
512
  }
512
513
 
513
- //#endregion
514
- //#region src/util/fetch/errors.ts
515
- /**
516
- * Detect transient connection errors distinct from rate limits or permanent
517
- * certificate/config errors. Only matches errors that are likely to succeed
518
- * on retry (stale connections, mid-stream resets). Permanent failures like
519
- * "self signed certificate", "unable to verify", "unknown ca", or
520
- * "wrong version number" (HTTPS->HTTP mismatch) are intentionally excluded.
521
- */
522
- function isTransientConnectionError(error) {
523
- if (!error) return false;
524
- const code = error.code;
525
- if (code === "ECONNRESET" || code === "EPIPE") return true;
526
- const message = (error.message ?? "").toLowerCase();
527
- if (message.includes("eproto") && (message.includes("wrong version number") || message.includes("self signed") || message.includes("unable to verify") || message.includes("unknown ca") || message.includes("cert"))) return false;
528
- return message.includes("bad record mac") || message.includes("eproto") || message.includes("econnreset") || message.includes("socket hang up");
529
- }
530
-
531
514
  //#endregion
532
515
  //#region src/cache.ts
533
516
  var cache_exports = /* @__PURE__ */ __exportAll({
@@ -724,5 +707,5 @@ function isCacheEnabled() {
724
707
  }
725
708
 
726
709
  //#endregion
727
- export { fetchWithCache as a, isTransientConnectionError as c, enableCache as i, clearCache as n, getCache as o, disableCache as r, isCacheEnabled as s, cache_exports as t };
728
- //# sourceMappingURL=cache-Bg1Wpvzq.js.map
710
+ export { fetchWithCache as a, enableCache as i, clearCache as n, getCache as o, disableCache as r, isCacheEnabled as s, cache_exports as t };
711
+ //# sourceMappingURL=cache-mIszOnuz.js.map
@@ -1,13 +1,13 @@
1
1
  const require_logger = require('./logger-BdZ-IqBc.cjs');
2
2
  const require_esm = require('./esm-BQkx5roy.cjs');
3
3
  const require_fileExtensions = require('./fileExtensions-DkJYkWUy.cjs');
4
- const require_util = require('./util-Dab5xp2E.cjs');
5
- const require_fetch = require('./fetch-Dy2YML9G.cjs');
6
- const require_cache = require('./cache-S9MAoF9H.cjs');
4
+ const require_util = require('./util-DUYOvxAy.cjs');
5
+ const require_fetch = require('./fetch-ZMn_oemb.cjs');
6
+ const require_cache = require('./cache-7xULbvt3.cjs');
7
7
  const require_genaiTracer = require('./genaiTracer-CQlpZkrp.cjs');
8
- const require_transform = require('./transform-CCSNqTI-.cjs');
8
+ const require_transform = require('./transform-ivxEY4f7.cjs');
9
9
  const require_openai = require('./openai-Bigwjgo1.cjs');
10
- const require_util$1 = require('./util-D8z5QOy8.cjs');
10
+ const require_util$1 = require('./util-C08Kns6-.cjs');
11
11
  let path = require("path");
12
12
  path = require_logger.__toESM(path);
13
13
  let _modelcontextprotocol_sdk_client_index_js = require("@modelcontextprotocol/sdk/client/index.js");
@@ -785,4 +785,4 @@ Object.defineProperty(exports, 'normalizeFinishReason', {
785
785
  return normalizeFinishReason;
786
786
  }
787
787
  });
788
- //# sourceMappingURL=chat-DTCPbuld.cjs.map
788
+ //# sourceMappingURL=chat-C4zqjObh.cjs.map
@@ -1,13 +1,13 @@
1
1
  import { _ as getEnvBool, b as getEnvString, i as logger_default, v as getEnvFloat, w as cliState_default, y as getEnvInt } from "./logger-w8Ozp0Td.js";
2
2
  import { r as importModule } from "./esm-rDtG_2rg.js";
3
3
  import { i as isJavascriptFile } from "./fileExtensions-ePDqouxn.js";
4
- import { d as maybeLoadToolsFromExternalFile, g as renderVarsInObject, l as maybeLoadFromExternalFileWithVars, u as maybeLoadResponseFormatFromExternalFile } from "./util-CY_XguB9.js";
5
- import { S as parseChatPrompt, T as transformTools, h as REQUEST_TIMEOUT_MS, w as transformToolChoice } from "./fetch-zJuFPxN1.js";
6
- import { a as fetchWithCache } from "./cache-C4A4H4Xb.js";
4
+ import { d as maybeLoadToolsFromExternalFile, g as renderVarsInObject, l as maybeLoadFromExternalFileWithVars, u as maybeLoadResponseFormatFromExternalFile } from "./util-DiCePfDu.js";
5
+ import { S as parseChatPrompt, T as transformTools, h as REQUEST_TIMEOUT_MS, w as transformToolChoice } from "./fetch-18MuNu9i.js";
6
+ import { a as fetchWithCache } from "./cache-BLLayYEN.js";
7
7
  import { n as withGenAISpan } from "./genaiTracer-Ce19n68P.js";
8
- import { C as getAuthQueryParams, E as TOKEN_REFRESH_BUFFER_MS, S as getAuthHeaders, T as renderAuthVars, i as transformMCPToolsToOpenAi, w as getOAuthTokenWithExpiry, x as applyQueryParams } from "./transform-DosdxVdh.js";
8
+ import { C as applyQueryParams, D as renderAuthVars, E as getOAuthTokenWithExpiry, O as TOKEN_REFRESH_BUFFER_MS, T as getAuthQueryParams, i as transformMCPToolsToOpenAi, w as getAuthHeaders } from "./transform-DMaxQwDx.js";
9
9
  import { t as OpenAiGenericProvider } from "./openai-Dz3surb_.js";
10
- import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-CfPdWQJX.js";
10
+ import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-Cl0zfT3V.js";
11
11
  import path from "path";
12
12
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
13
13
 
@@ -761,4 +761,4 @@ var OpenAiChatCompletionProvider = class OpenAiChatCompletionProvider extends Op
761
761
 
762
762
  //#endregion
763
763
  export { normalizeFinishReason as i, MCPClient as n, FINISH_REASON_MAP as r, OpenAiChatCompletionProvider as t };
764
- //# sourceMappingURL=chat-noXtEAh5.js.map
764
+ //# sourceMappingURL=chat-C8Ei4f87.js.map
@@ -3,15 +3,15 @@ import { i as logger_default } from "./logger-w8Ozp0Td.js";
3
3
  import { t as invariant } from "./invariant-1pAf2CD1.js";
4
4
  import "./esm-rDtG_2rg.js";
5
5
  import "./pythonUtils-vMlk9Qp5.js";
6
- import "./types-CslP2TyG.js";
7
- import "./util-CY_XguB9.js";
8
- import "./fetch-zJuFPxN1.js";
9
- import "./cache-C4A4H4Xb.js";
6
+ import "./types-DMVjYLpx.js";
7
+ import "./util-DiCePfDu.js";
8
+ import "./fetch-18MuNu9i.js";
9
+ import "./cache-BLLayYEN.js";
10
10
  import "./genaiTracer-Ce19n68P.js";
11
- import { t as OpenAiChatCompletionProvider } from "./chat-noXtEAh5.js";
12
- import "./transform-DosdxVdh.js";
11
+ import { t as OpenAiChatCompletionProvider } from "./chat-C8Ei4f87.js";
12
+ import "./transform-DMaxQwDx.js";
13
13
  import "./openai-Dz3surb_.js";
14
- import "./util-CfPdWQJX.js";
14
+ import "./util-Cl0zfT3V.js";
15
15
 
16
16
  //#region src/providers/hyperbolic/chat.ts
17
17
  const HYPERBOLIC_CHAT_MODELS = [
@@ -298,4 +298,4 @@ function createHyperbolicProvider(providerPath, options = {}) {
298
298
 
299
299
  //#endregion
300
300
  export { createHyperbolicProvider };
301
- //# sourceMappingURL=chat-BiImdLJf.js.map
301
+ //# sourceMappingURL=chat-CgyGj2hC.js.map
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import "./chunk-DHDDz29n.js";
3
3
  import { o as logger_default } from "./logger-BotXmWKW.js";
4
- import "./fetch-BuP-gm0E.js";
4
+ import "./fetch-SRsE6Ctl.js";
5
5
  import { t as invariant } from "./invariant-DT20jrBd.js";
6
- import "./cloud-lRosK6Nk.js";
7
- import "./types-CMDs7Kzu.js";
8
- import "./cache-Bg1Wpvzq.js";
9
- import "./util-BECSJ0T_.js";
10
- import "./esm-79BpbQzg.js";
11
- import "./pythonUtils-CUPlf1H0.js";
12
- import "./genaiTracer-foKtbVa2.js";
13
- import { t as OpenAiChatCompletionProvider } from "./chat-D_cro0wd.js";
14
- import "./transform-gpzlPrwG.js";
15
- import "./openai-jNIREoAW.js";
16
- import "./util-CttPoePn.js";
6
+ import "./cloud-BMbRVJFw.js";
7
+ import "./types-t52w-XsS.js";
8
+ import "./cache-mIszOnuz.js";
9
+ import "./util-BSh4a_Q8.js";
10
+ import "./esm-CYhseqj4.js";
11
+ import "./pythonUtils-r1uBuA0n.js";
12
+ import "./genaiTracer-CqNnnXrE.js";
13
+ import { t as OpenAiChatCompletionProvider } from "./chat-DIywASPG.js";
14
+ import "./transform-CoP2bJ7P.js";
15
+ import "./openai-CT5fwbve.js";
16
+ import "./util-CUEt0Vum.js";
17
17
 
18
18
  //#region src/providers/hyperbolic/chat.ts
19
19
  const HYPERBOLIC_CHAT_MODELS = [
@@ -300,4 +300,4 @@ function createHyperbolicProvider(providerPath, options = {}) {
300
300
 
301
301
  //#endregion
302
302
  export { createHyperbolicProvider };
303
- //# sourceMappingURL=chat-DQ6Z5Cbn.js.map
303
+ //# sourceMappingURL=chat-Cpz3O-Xl.js.map
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { C as getEnvString, O as cliState_default, S as getEnvInt, b as getEnvBool, o as logger_default, x as getEnvFloat } from "./logger-BotXmWKW.js";
3
- import { b as transformToolChoice, d as REQUEST_TIMEOUT_MS, v as parseChatPrompt, x as transformTools } from "./fetch-BuP-gm0E.js";
4
- import { a as fetchWithCache } from "./cache-Bg1Wpvzq.js";
5
- import { i as isJavascriptFile } from "./fileExtensions-CzcPkiKZ.js";
6
- import { g as maybeLoadToolsFromExternalFile, h as maybeLoadResponseFormatFromExternalFile, m as maybeLoadFromExternalFileWithVars, x as renderVarsInObject } from "./util-BECSJ0T_.js";
7
- import { r as importModule } from "./esm-79BpbQzg.js";
8
- import { n as withGenAISpan } from "./genaiTracer-foKtbVa2.js";
9
- import { C as getAuthQueryParams, E as TOKEN_REFRESH_BUFFER_MS, S as getAuthHeaders, T as renderAuthVars, i as transformMCPToolsToOpenAi, w as getOAuthTokenWithExpiry, x as applyQueryParams } from "./transform-gpzlPrwG.js";
10
- import { t as OpenAiGenericProvider } from "./openai-jNIREoAW.js";
11
- import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-CttPoePn.js";
3
+ import { b as transformToolChoice, d as REQUEST_TIMEOUT_MS, v as parseChatPrompt, x as transformTools } from "./fetch-SRsE6Ctl.js";
4
+ import { a as fetchWithCache } from "./cache-mIszOnuz.js";
5
+ import { i as isJavascriptFile } from "./fileExtensions-BpuMmaFL.js";
6
+ import { g as maybeLoadToolsFromExternalFile, h as maybeLoadResponseFormatFromExternalFile, m as maybeLoadFromExternalFileWithVars, x as renderVarsInObject } from "./util-BSh4a_Q8.js";
7
+ import { r as importModule } from "./esm-CYhseqj4.js";
8
+ import { n as withGenAISpan } from "./genaiTracer-CqNnnXrE.js";
9
+ import { C as applyQueryParams, D as renderAuthVars, E as getOAuthTokenWithExpiry, O as TOKEN_REFRESH_BUFFER_MS, T as getAuthQueryParams, i as transformMCPToolsToOpenAi, w as getAuthHeaders } from "./transform-CoP2bJ7P.js";
10
+ import { t as OpenAiGenericProvider } from "./openai-CT5fwbve.js";
11
+ import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-CUEt0Vum.js";
12
12
  import path from "path";
13
13
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
14
14
 
@@ -762,4 +762,4 @@ var OpenAiChatCompletionProvider = class OpenAiChatCompletionProvider extends Op
762
762
 
763
763
  //#endregion
764
764
  export { normalizeFinishReason as i, MCPClient as n, FINISH_REASON_MAP as r, OpenAiChatCompletionProvider as t };
765
- //# sourceMappingURL=chat-D_cro0wd.js.map
765
+ //# sourceMappingURL=chat-DIywASPG.js.map
@@ -2,15 +2,15 @@ const require_logger = require('./logger-BdZ-IqBc.cjs');
2
2
  const require_invariant = require('./invariant-CKcJAQ6M.cjs');
3
3
  require('./esm-BQkx5roy.cjs');
4
4
  require('./pythonUtils-DZ6EbdY4.cjs');
5
- require('./types-Brw5kggg.cjs');
6
- require('./util-Dab5xp2E.cjs');
7
- require('./fetch-Dy2YML9G.cjs');
8
- require('./cache-S9MAoF9H.cjs');
5
+ require('./types-BIfttHrT.cjs');
6
+ require('./util-DUYOvxAy.cjs');
7
+ require('./fetch-ZMn_oemb.cjs');
8
+ require('./cache-7xULbvt3.cjs');
9
9
  require('./genaiTracer-CQlpZkrp.cjs');
10
- const require_chat = require('./chat-DTCPbuld.cjs');
11
- require('./transform-CCSNqTI-.cjs');
10
+ const require_chat = require('./chat-C4zqjObh.cjs');
11
+ require('./transform-ivxEY4f7.cjs');
12
12
  require('./openai-Bigwjgo1.cjs');
13
- require('./util-D8z5QOy8.cjs');
13
+ require('./util-C08Kns6-.cjs');
14
14
 
15
15
  //#region src/providers/hyperbolic/chat.ts
16
16
  const HYPERBOLIC_CHAT_MODELS = [
@@ -297,4 +297,4 @@ function createHyperbolicProvider(providerPath, options = {}) {
297
297
 
298
298
  //#endregion
299
299
  exports.createHyperbolicProvider = createHyperbolicProvider;
300
- //# sourceMappingURL=chat-BR2x1dG_.cjs.map
300
+ //# sourceMappingURL=chat-Fl6TZJRS.cjs.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { o as logger_default } from "./logger-BotXmWKW.js";
3
- import { t as OpenAiGenericProvider } from "./openai-jNIREoAW.js";
4
- import { t as providerRegistry } from "./providerRegistry-DAZoFmGv.js";
3
+ import { t as OpenAiGenericProvider } from "./openai-CT5fwbve.js";
4
+ import { t as providerRegistry } from "./providerRegistry-Xf0qdqGQ.js";
5
5
  import * as http$1 from "http";
6
6
  import { chromium } from "playwright";
7
7
 
@@ -1157,4 +1157,4 @@ Original error: ${errorMessage}`);
1157
1157
 
1158
1158
  //#endregion
1159
1159
  export { OpenAiChatKitProvider };
1160
- //# sourceMappingURL=chatkit-TnC1YoVi.js.map
1160
+ //# sourceMappingURL=chatkit-DEls11hE.js.map
@@ -2,13 +2,13 @@ import "./chunk-FhC4c-0y.js";
2
2
  import { b as getEnvString, i as logger_default, w as cliState_default } from "./logger-w8Ozp0Td.js";
3
3
  import { i as resolvePackageEntryPoint, r as importModule } from "./esm-rDtG_2rg.js";
4
4
  import "./pythonUtils-vMlk9Qp5.js";
5
- import "./types-CslP2TyG.js";
6
- import "./util-CY_XguB9.js";
7
- import "./fetch-zJuFPxN1.js";
8
- import "./cache-C4A4H4Xb.js";
9
- import { t as transformMCPConfigToClaudeCode } from "./transform-DosdxVdh.js";
10
- import { t as ANTHROPIC_MODELS } from "./util-Dft1RxsL.js";
11
- import { n as getCachedResponse, r as initializeAgenticCache, t as cacheResponse } from "./cometapi-xiTQZp8R.js";
5
+ import "./types-DMVjYLpx.js";
6
+ import "./util-DiCePfDu.js";
7
+ import "./fetch-18MuNu9i.js";
8
+ import "./cache-BLLayYEN.js";
9
+ import { t as transformMCPConfigToClaudeCode } from "./transform-DMaxQwDx.js";
10
+ import { t as ANTHROPIC_MODELS } from "./util-mJ58qbbw.js";
11
+ import { n as getCachedResponse, r as initializeAgenticCache, t as cacheResponse } from "./cometapi-ChAaRjg5.js";
12
12
  import path from "node:path";
13
13
  import fs from "node:fs";
14
14
  import dedent from "dedent";
@@ -189,6 +189,12 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
189
189
  hooks: config.hooks,
190
190
  includePartialMessages: config.include_partial_messages,
191
191
  betas: config.betas,
192
+ thinking: config.thinking,
193
+ effort: config.effort,
194
+ agent: config.agent,
195
+ sessionId: config.session_id,
196
+ debug: config.debug,
197
+ debugFile: config.debug_file,
192
198
  sandbox: config.sandbox,
193
199
  allowDangerouslySkipPermissions: config.allow_dangerously_skip_permissions,
194
200
  permissionPromptToolName: config.permission_prompt_tool_name,
@@ -257,7 +263,28 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
257
263
  try {
258
264
  if (!this.claudeCodeModule) this.claudeCodeModule = await loadClaudeCodeSDK();
259
265
  const res = await this.claudeCodeModule.query(queryParams);
260
- for await (const msg of res) if (msg.type == "result") {
266
+ const toolCallsMap = /* @__PURE__ */ new Map();
267
+ for await (const msg of res) if (msg.type === "assistant") {
268
+ for (const block of msg.message.content) if (block.type === "tool_use") toolCallsMap.set(block.id, {
269
+ id: block.id,
270
+ name: block.name,
271
+ input: block.input,
272
+ output: void 0,
273
+ is_error: false,
274
+ parentToolUseId: msg.parent_tool_use_id
275
+ });
276
+ } else if (msg.type === "user") {
277
+ const content = msg.message?.content;
278
+ if (Array.isArray(content)) {
279
+ for (const block of content) if (block.type === "tool_result") {
280
+ const entry = toolCallsMap.get(block.tool_use_id);
281
+ if (entry) {
282
+ entry.output = block.content;
283
+ entry.is_error = block.is_error ?? false;
284
+ }
285
+ }
286
+ }
287
+ } else if (msg.type === "result") {
261
288
  const raw = JSON.stringify(msg);
262
289
  const tokenUsage = {
263
290
  prompt: msg.usage?.input_tokens,
@@ -266,18 +293,19 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
266
293
  };
267
294
  const cost = msg.total_cost_usd ?? 0;
268
295
  const sessionId = msg.session_id;
269
- if (msg.subtype == "success") {
296
+ const toolCallsArray = Array.from(toolCallsMap.values());
297
+ if (msg.subtype === "success") {
270
298
  logger_default.debug(`Claude Agent SDK response: ${raw}`);
271
299
  const response = {
272
300
  output: msg.structured_output !== void 0 ? msg.structured_output : msg.result,
273
301
  tokenUsage,
274
302
  cost,
275
303
  raw,
276
- sessionId
277
- };
278
- if (msg.structured_output !== void 0) response.metadata = {
279
- ...response.metadata,
280
- structuredOutput: msg.structured_output
304
+ sessionId,
305
+ metadata: {
306
+ toolCalls: toolCallsArray,
307
+ ...msg.structured_output !== void 0 ? { structuredOutput: msg.structured_output } : {}
308
+ }
281
309
  };
282
310
  await cacheResponse(cacheResult, response, "Claude Agent SDK");
283
311
  return response;
@@ -286,7 +314,8 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
286
314
  tokenUsage,
287
315
  cost,
288
316
  raw,
289
- sessionId
317
+ sessionId,
318
+ metadata: { toolCalls: toolCallsArray }
290
319
  };
291
320
  }
292
321
  return { error: "Claude Agent SDK call didn't return a result" };
@@ -320,4 +349,4 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
320
349
 
321
350
  //#endregion
322
351
  export { ClaudeCodeSDKProvider };
323
- //# sourceMappingURL=claude-agent-sdk-CBpAZV5h.js.map
352
+ //# sourceMappingURL=claude-agent-sdk-6-xTaLwM.js.map
@@ -1,13 +1,13 @@
1
1
  const require_logger = require('./logger-BdZ-IqBc.cjs');
2
2
  const require_esm = require('./esm-BQkx5roy.cjs');
3
3
  require('./pythonUtils-DZ6EbdY4.cjs');
4
- require('./types-Brw5kggg.cjs');
5
- require('./util-Dab5xp2E.cjs');
6
- require('./fetch-Dy2YML9G.cjs');
7
- require('./cache-S9MAoF9H.cjs');
8
- const require_transform = require('./transform-CCSNqTI-.cjs');
9
- const require_util$1 = require('./util-CBAXTxfy.cjs');
10
- const require_cometapi = require('./cometapi-DalITP94.cjs');
4
+ require('./types-BIfttHrT.cjs');
5
+ require('./util-DUYOvxAy.cjs');
6
+ require('./fetch-ZMn_oemb.cjs');
7
+ require('./cache-7xULbvt3.cjs');
8
+ const require_transform = require('./transform-ivxEY4f7.cjs');
9
+ const require_util$1 = require('./util-DkFTvieG.cjs');
10
+ const require_cometapi = require('./cometapi-JbvOJSCO.cjs');
11
11
  let node_fs = require("node:fs");
12
12
  node_fs = require_logger.__toESM(node_fs);
13
13
  let node_path = require("node:path");
@@ -192,6 +192,12 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
192
192
  hooks: config.hooks,
193
193
  includePartialMessages: config.include_partial_messages,
194
194
  betas: config.betas,
195
+ thinking: config.thinking,
196
+ effort: config.effort,
197
+ agent: config.agent,
198
+ sessionId: config.session_id,
199
+ debug: config.debug,
200
+ debugFile: config.debug_file,
195
201
  sandbox: config.sandbox,
196
202
  allowDangerouslySkipPermissions: config.allow_dangerously_skip_permissions,
197
203
  permissionPromptToolName: config.permission_prompt_tool_name,
@@ -260,7 +266,28 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
260
266
  try {
261
267
  if (!this.claudeCodeModule) this.claudeCodeModule = await loadClaudeCodeSDK();
262
268
  const res = await this.claudeCodeModule.query(queryParams);
263
- for await (const msg of res) if (msg.type == "result") {
269
+ const toolCallsMap = /* @__PURE__ */ new Map();
270
+ for await (const msg of res) if (msg.type === "assistant") {
271
+ for (const block of msg.message.content) if (block.type === "tool_use") toolCallsMap.set(block.id, {
272
+ id: block.id,
273
+ name: block.name,
274
+ input: block.input,
275
+ output: void 0,
276
+ is_error: false,
277
+ parentToolUseId: msg.parent_tool_use_id
278
+ });
279
+ } else if (msg.type === "user") {
280
+ const content = msg.message?.content;
281
+ if (Array.isArray(content)) {
282
+ for (const block of content) if (block.type === "tool_result") {
283
+ const entry = toolCallsMap.get(block.tool_use_id);
284
+ if (entry) {
285
+ entry.output = block.content;
286
+ entry.is_error = block.is_error ?? false;
287
+ }
288
+ }
289
+ }
290
+ } else if (msg.type === "result") {
264
291
  const raw = JSON.stringify(msg);
265
292
  const tokenUsage = {
266
293
  prompt: msg.usage?.input_tokens,
@@ -269,18 +296,19 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
269
296
  };
270
297
  const cost = msg.total_cost_usd ?? 0;
271
298
  const sessionId = msg.session_id;
272
- if (msg.subtype == "success") {
299
+ const toolCallsArray = Array.from(toolCallsMap.values());
300
+ if (msg.subtype === "success") {
273
301
  require_logger.logger_default.debug(`Claude Agent SDK response: ${raw}`);
274
302
  const response = {
275
303
  output: msg.structured_output !== void 0 ? msg.structured_output : msg.result,
276
304
  tokenUsage,
277
305
  cost,
278
306
  raw,
279
- sessionId
280
- };
281
- if (msg.structured_output !== void 0) response.metadata = {
282
- ...response.metadata,
283
- structuredOutput: msg.structured_output
307
+ sessionId,
308
+ metadata: {
309
+ toolCalls: toolCallsArray,
310
+ ...msg.structured_output !== void 0 ? { structuredOutput: msg.structured_output } : {}
311
+ }
284
312
  };
285
313
  await require_cometapi.cacheResponse(cacheResult, response, "Claude Agent SDK");
286
314
  return response;
@@ -289,7 +317,8 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
289
317
  tokenUsage,
290
318
  cost,
291
319
  raw,
292
- sessionId
320
+ sessionId,
321
+ metadata: { toolCalls: toolCallsArray }
293
322
  };
294
323
  }
295
324
  return { error: "Claude Agent SDK call didn't return a result" };
@@ -323,4 +352,4 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
323
352
 
324
353
  //#endregion
325
354
  exports.ClaudeCodeSDKProvider = ClaudeCodeSDKProvider;
326
- //# sourceMappingURL=claude-agent-sdk-uHLgAUZj.cjs.map
355
+ //# sourceMappingURL=claude-agent-sdk-BzxF6NIJ.cjs.map