promptfoo 0.120.24 → 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.
- package/README.md +35 -22
- package/dist/src/{ListApp-55OAHww3.js → ListApp-D3DG0F8h.js} +1 -1
- package/dist/src/{accounts-BwVGYllP.cjs → accounts-BzEY8H3v.cjs} +5 -5
- package/dist/src/{accounts-BOlMHrvn.js → accounts-DHHiXsy6.js} +6 -6
- package/dist/src/{accounts-DxR9x_En.js → accounts-R3gfCR_g.js} +5 -5
- package/dist/src/{agentic-utils-t9-1raty.js → agentic-utils-D6_gzOUF.js} +3 -3
- package/dist/src/{agents-DMpQ860j.cjs → agents-C7BiinFI.cjs} +7 -7
- package/dist/src/{agents-9Z7pO8yx.js → agents-Cao4i7AX.js} +8 -8
- package/dist/src/{agents-DjExVR3v.js → agents-Cnph5GLD.js} +2 -2
- package/dist/src/{agents-CI0Ad69d.cjs → agents-CwM7re15.cjs} +5 -5
- package/dist/src/{agents-BwI-Tm5m.js → agents-DETIQHqF.js} +7 -7
- package/dist/src/{agents-CRAmwjo-.js → agents-DYIT-hQy.js} +6 -6
- package/dist/src/{agents-BbIpDhgp.js → agents-GiUianme.js} +5 -5
- package/dist/src/{agents-yL5DzIKY.js → agents-v4cW_ZgC.js} +2 -2
- package/dist/src/{aimlapi-xHHqwNg8.js → aimlapi-CMJpKK-B.js} +13 -13
- package/dist/src/{aimlapi-BM9P45Bp.js → aimlapi-DMF6v_vb.js} +15 -15
- package/dist/src/{aimlapi-DKo7IxJg.cjs → aimlapi-DoGLcQW_.cjs} +14 -14
- package/dist/src/{aimlapi-ivzDkqbs.js → aimlapi-DtSf1ykJ.js} +2 -2
- package/dist/src/app/assets/index-BOgkICuY.css +1 -0
- package/dist/src/app/assets/index-CSgqn_Vd.js +428 -0
- package/dist/src/app/assets/{vendor-charts-DnwydkkY.js → vendor-charts-CYyo8R8v.js} +1 -1
- package/dist/src/app/assets/{vendor-markdown-DjKAU15k.js → vendor-markdown-DSmzq4Jh.js} +1 -1
- package/dist/src/app/assets/vendor-react-AtKqiNEf.js +4 -0
- package/dist/src/app/assets/{vendor-syntax-Dc86c4Bu.js → vendor-syntax-D06x6TQF.js} +1 -1
- package/dist/src/app/index.html +6 -6
- package/dist/src/app/tsconfig.app.tsbuildinfo +1 -1
- package/dist/src/{audio-B3QGL6Nl.cjs → audio-BWjyvHn9.cjs} +4 -4
- package/dist/src/{audio-C-1oBiVZ.js → audio-BrJBFN2b.js} +4 -4
- package/dist/src/{audio-DnfDVjhL.js → audio-DUH4q0Xq.js} +5 -5
- package/dist/src/{audio-DQWHfAr8.js → audio-U580w8jM.js} +2 -2
- package/dist/src/{base-DHam07ip.js → base-BaXmtXYp.js} +3 -3
- package/dist/src/{base-BjsgxJp9.js → base-Dtp8b4_N.js} +3 -3
- package/dist/src/{base-Bso8ccGu.cjs → base-f71xxWai.cjs} +3 -3
- package/dist/src/{blobs-DOdc-E8L.cjs → blobs-673H0jCl.cjs} +3 -3
- package/dist/src/{blobs-Dcm272OH.js → blobs-C9J2mVgo.js} +3 -3
- package/dist/src/{blobs-MlVQyoSc.js → blobs-kt8v3UyH.js} +3 -3
- package/dist/src/{cache-KNsTJLKP.cjs → cache-7xULbvt3.cjs} +35 -8
- package/dist/src/{cache-BMl3AIo5.js → cache-BLLayYEN.js} +24 -9
- package/dist/src/{cache-B0ptF7sO.js → cache-BUPcq0Ad.js} +3 -3
- package/dist/src/cache-CVfRb-HD.cjs +6 -0
- package/dist/src/{cache-DPztwHxt.js → cache-O4EuX2JV.js} +4 -4
- package/dist/src/{cache-DHm8Pc8l.js → cache-mIszOnuz.js} +5 -22
- package/dist/src/{chat-DOQIJx7O.cjs → chat-C4zqjObh.cjs} +10 -10
- package/dist/src/{chat-DDGU7Tik.js → chat-C8Ei4f87.js} +9 -9
- package/dist/src/{chat-BnzIuoTQ.js → chat-CgyGj2hC.js} +12 -12
- package/dist/src/{chat-BRMJOuCv.js → chat-Cpz3O-Xl.js} +14 -14
- package/dist/src/{chat-CVOyOBYk.js → chat-DIywASPG.js} +11 -11
- package/dist/src/{chat-CrnXMbvh.cjs → chat-Fl6TZJRS.cjs} +13 -13
- package/dist/src/{chat-D8GcWK9l.js → chat-XPN9YHhr.js} +2 -2
- package/dist/src/{chatkit-IWIuhxFE.js → chatkit-DEls11hE.js} +4 -4
- package/dist/src/{chatkit-DlOZ-eNb.js → chatkit-DIrJX8xk.js} +4 -4
- package/dist/src/{chatkit-CcktkleS.js → chatkit-Dpxrq4eD.js} +2 -2
- package/dist/src/{chatkit-yeVtURUi.cjs → chatkit-e25Ziu17.cjs} +4 -4
- package/dist/src/{claude-agent-sdk-BiMgSH9g.js → claude-agent-sdk-6-xTaLwM.js} +48 -19
- package/dist/src/{claude-agent-sdk-Yj9Hq0cH.cjs → claude-agent-sdk-BzxF6NIJ.cjs} +48 -19
- package/dist/src/{claude-agent-sdk-rVqlUIJl.js → claude-agent-sdk-CmkTnKGH.js} +49 -20
- package/dist/src/{claude-agent-sdk-yid1kGsL.js → claude-agent-sdk-rXCBLK_o.js} +40 -11
- package/dist/src/{cloud-ByJVRSQI.js → cloud-BMbRVJFw.js} +3 -3
- package/dist/src/cloud-CZ4hytdm.js +5 -0
- package/dist/src/{cloudflare-ai-DmJZcvVx.cjs → cloudflare-ai-BAQ0u_dg.cjs} +14 -14
- package/dist/src/{cloudflare-ai-CWKYPCCF.js → cloudflare-ai-CUg4BTcj.js} +13 -13
- package/dist/src/{cloudflare-ai-goDJ5bwr.js → cloudflare-ai-CobxMTR4.js} +15 -15
- package/dist/src/{cloudflare-ai-CdKv38f6.js → cloudflare-ai-Z9X219gp.js} +2 -2
- package/dist/src/{cloudflare-gateway-BW8hcdB0.cjs → cloudflare-gateway-C0sgfr_z.cjs} +15 -15
- package/dist/src/{cloudflare-gateway-CDCOS1Os.js → cloudflare-gateway-D2_yi-Fh.js} +16 -16
- package/dist/src/{cloudflare-gateway-Dz_HCMGY.js → cloudflare-gateway-Djf3F3_H.js} +2 -2
- package/dist/src/{cloudflare-gateway-gzmTsXcd.js → cloudflare-gateway-_itGuXry.js} +14 -14
- package/dist/src/{codex-sdk-BlvhxMr0.js → codex-sdk-BASDNkIl.js} +90 -34
- package/dist/src/{codex-sdk-BC5qbCjh.js → codex-sdk-dSnGdgIp.js} +92 -36
- package/dist/src/{codex-sdk-CBpm53B8.js → codex-sdk-ibXwdglL.js} +91 -35
- package/dist/src/{codex-sdk-Cf5_CQch.cjs → codex-sdk-wTEpMM_X.cjs} +92 -36
- package/dist/src/{cometapi-DoaO5SLq.js → cometapi-B01btbfb.js} +16 -16
- package/dist/src/{cometapi-BUKGSUCw.js → cometapi-ChAaRjg5.js} +14 -14
- package/dist/src/{cometapi-C6BSw9k3.js → cometapi-DHUAH6nK.js} +2 -2
- package/dist/src/{cometapi-B3TzpkNI.cjs → cometapi-JbvOJSCO.cjs} +15 -15
- package/dist/src/{completion-BLe7SUA4.js → completion-BBJ6zmG3.js} +6 -6
- package/dist/src/{completion-1RAiLcwi.js → completion-D9_MDlnd.js} +6 -6
- package/dist/src/{completion-D6BTVt6e.cjs → completion-DDyL3Cb2.cjs} +6 -6
- package/dist/src/{docker-CkOzlD1W.js → docker-BuButc4D.js} +15 -15
- package/dist/src/{docker-BWsSX8Pn.cjs → docker-Ckw-j7Rr.cjs} +14 -14
- package/dist/src/{docker-CMf5SGLq.js → docker-JAAubMw3.js} +13 -13
- package/dist/src/{docker-C0AzMsuf.js → docker-vnOg96gi.js} +2 -2
- package/dist/src/errors-DnGCbnx8.js +36 -0
- package/dist/src/{esm-gWVPXn3r.cjs → esm-BQkx5roy.cjs} +2 -2
- package/dist/src/{esm-Lh6czAFT.js → esm-CYhseqj4.js} +2 -2
- package/dist/src/{esm-D40XsWlR.js → esm-rDtG_2rg.js} +2 -2
- package/dist/src/eval-CKHWqG9f.js +16 -0
- package/dist/src/{eval-WaSg64w3.js → eval-CYrbG57o.js} +106 -29
- package/dist/src/{evalResult-CGrGU_cG.js → evalResult-6JaUIStC.js} +7 -7
- package/dist/src/{evalResult-C_UM63nn.js → evalResult-COsVttMA.js} +7 -7
- package/dist/src/evalResult-CxTP-LMm.cjs +11 -0
- package/dist/src/evalResult-CzLURDcP.js +13 -0
- package/dist/src/{evalResult-BU4huold.cjs → evalResult-DlRfu_Rq.cjs} +7 -7
- package/dist/src/evalResult-DyttNQ_G.js +11 -0
- package/dist/src/evaluator-0PvfeBYh.js +38 -0
- package/dist/src/{evaluator-gmF3Vddp.js → evaluator-3EJCMTs0.js} +75 -49
- package/dist/src/{extractor-D-RM2m6A.cjs → extractor-DbhlYEeo.cjs} +23 -6
- package/dist/src/{extractor-Da8IxCeS.js → extractor-Hs7la_19.js} +23 -6
- package/dist/src/{extractor-BA90EtLq.js → extractor-LSYjrhK0.js} +23 -6
- package/dist/src/{fetch-BIfcW-Fd.js → fetch-18MuNu9i.js} +21 -7
- package/dist/src/{fetch-CW9GabAi.js → fetch-Bi0o-fdp.js} +2 -2
- package/dist/src/fetch-CMptBDVg.cjs +4 -0
- package/dist/src/fetch-DAZkv3gV.js +6 -0
- package/dist/src/{fetch-Mb7SbeM-.js → fetch-SRsE6Ctl.js} +21 -7
- package/dist/src/{fetch-MvWxCS5U.cjs → fetch-ZMn_oemb.cjs} +21 -7
- package/dist/src/{fileExtensions-CzcPkiKZ.js → fileExtensions-BpuMmaFL.js} +1 -1
- package/dist/src/{formatDuration-CCiZ-wBY.js → formatDuration-Doo0xq-z.js} +1 -1
- package/dist/src/{genaiTracer-BQ8AmajD.cjs → genaiTracer-CQlpZkrp.cjs} +2 -2
- package/dist/src/{genaiTracer-foKtbVa2.js → genaiTracer-CqNnnXrE.js} +1 -1
- package/dist/src/graders-BCytzXrb.js +34 -0
- package/dist/src/{graders-CwtelA9k.js → graders-BaMCwIKp.js} +212 -91
- package/dist/src/graders-CGZQShfJ.cjs +33 -0
- package/dist/src/{graders-2dabIkXs.cjs → graders-DzUUnUjC.cjs} +212 -91
- package/dist/src/{graders-BscQ6O1Q.js → graders-QsALpIdy.js} +211 -90
- package/dist/src/graders-spkuVC-E.js +36 -0
- package/dist/src/{image-Dv0o-Ab7.js → image-BXt_7u0v.js} +4 -4
- package/dist/src/{image-B6TV9l0v.js → image-BiEVdpdP.js} +7 -7
- package/dist/src/{image-DS9hlgSc.cjs → image-C3BjJUAU.cjs} +7 -7
- package/dist/src/{image-_jKUeeh9.js → image-COCWy5dX.js} +2 -2
- package/dist/src/{image-DqElR73O.cjs → image-D10zEe1f.cjs} +4 -4
- package/dist/src/{image-BVEVjrwl.js → image-DB4sHxdJ.js} +5 -5
- package/dist/src/{image-C1i3NoZo.js → image-mhAGP07h.js} +7 -7
- package/dist/src/index.cjs +305 -112
- package/dist/src/index.d.cts +137 -3
- package/dist/src/index.d.ts +137 -3
- package/dist/src/index.js +304 -111
- package/dist/src/{interactiveCheck-CjK2R4rB.js → interactiveCheck-DU-MAhp5.js} +2 -2
- package/dist/src/{knowledgeBase-K5fJN2kC.cjs → knowledgeBase-Bnb00xKs.cjs} +8 -8
- package/dist/src/{knowledgeBase-D-xthvn0.js → knowledgeBase-CMvMlLZR.js} +9 -9
- package/dist/src/{knowledgeBase-DJZHeJqg.js → knowledgeBase-DotRBzUE.js} +2 -2
- package/dist/src/{knowledgeBase-BSs2ldSR.js → knowledgeBase-XJQ0Qyez.js} +8 -8
- package/dist/src/{litellm-kPhaZkzz.js → litellm-BECdjOTx.js} +3 -3
- package/dist/src/{litellm-uRLukY7s.cjs → litellm-BrnZhMcL.cjs} +15 -15
- package/dist/src/{litellm-DH_rVIOd.js → litellm-CHrRmPAe.js} +16 -16
- package/dist/src/{litellm-DoXGHlpD.js → litellm-CrLJrPIm.js} +14 -14
- package/dist/src/{logger-CMp-NS-e.cjs → logger-BdZ-IqBc.cjs} +5 -2
- package/dist/src/{logger-Bzi5o47S.js → logger-BotXmWKW.js} +5 -2
- package/dist/src/{logger-q5I8CByj.js → logger-w8Ozp0Td.js} +5 -2
- package/dist/src/{luma-ray-B3GiVpuq.js → luma-ray-BOeX-h0M.js} +10 -10
- package/dist/src/{luma-ray-CPISsLu-.js → luma-ray-C-w6EsJm.js} +2 -2
- package/dist/src/{luma-ray-BrWrKIIB.cjs → luma-ray-C0RkI3lt.cjs} +10 -10
- package/dist/src/{luma-ray-gyI_GEy2.js → luma-ray-DgKLS0BF.js} +11 -11
- package/dist/src/main.js +3260 -2537
- package/dist/src/{messages-CJgEjRQF.js → messages-CDZYGNlS.js} +13 -10
- package/dist/src/{messages-BMkwrfmt.js → messages-D61tPFQo.js} +14 -11
- package/dist/src/{messages-B5HsO_dM.cjs → messages-DXV3Qh8_.cjs} +14 -11
- package/dist/src/{meteor-CBciquOS.js → meteor-Dj8cTkU_.js} +1 -1
- package/dist/src/{meteor-0cLf9TIn.js → meteor-P2rUE-Uz.js} +1 -1
- package/dist/src/{meteor-BQ6Ws9k2.js → meteor-SLNTgmXm.js} +2 -2
- package/dist/src/{meteor-DRuEfzuQ.cjs → meteor-odmwVbyG.cjs} +1 -1
- package/dist/src/{nova-reel-B5SOonY2.js → nova-reel-Bk5npr2q.js} +11 -11
- package/dist/src/{nova-reel-CT9ZuhJ3.js → nova-reel-C2LFfVTf.js} +2 -2
- package/dist/src/{nova-reel-ByTx85ed.cjs → nova-reel-D9FXq3Mt.cjs} +10 -10
- package/dist/src/{nova-reel-ChM7WaHR.js → nova-reel-DtCjbD5O.js} +10 -10
- package/dist/src/{nova-sonic-D4M3kKYu.js → nova-sonic-BXRfQyF-.js} +8 -8
- package/dist/src/{nova-sonic-C-H3eDvL.cjs → nova-sonic-BoRSY_U6.cjs} +7 -7
- package/dist/src/{nova-sonic-DgifpOKF.js → nova-sonic-CgaWLDM1.js} +7 -7
- package/dist/src/{nova-sonic-BqP59oOu.js → nova-sonic-D_qERM-K.js} +2 -2
- package/dist/src/{openai-BjpdxIOG.cjs → openai-Bigwjgo1.cjs} +2 -2
- package/dist/src/{openai-Cv9pEKxp.js → openai-CT5fwbve.js} +2 -2
- package/dist/src/{openai-CitF-gEN.js → openai-Dz3surb_.js} +2 -2
- package/dist/src/openclaw-B6XY2kUf.js +526 -0
- package/dist/src/openclaw-CpPrXwf6.js +524 -0
- package/dist/src/openclaw-DDSfq5fp.cjs +528 -0
- package/dist/src/openclaw-dHLcXUWZ.js +511 -0
- package/dist/src/{opencode-sdk-Dakn4QMp.js → opencode-sdk-CImWVqy9.js} +7 -7
- package/dist/src/{opencode-sdk-BcLvVMV-.js → opencode-sdk-CuCztr4P.js} +6 -6
- package/dist/src/{opencode-sdk-z7KKOCdB.js → opencode-sdk-DhcfRbBH.js} +3 -3
- package/dist/src/{opencode-sdk-Cqszt4br.cjs → opencode-sdk-mqF-Oj3f.cjs} +6 -6
- package/dist/src/{otlpReceiver-BvmMgacx.cjs → otlpReceiver-B6Xo4KZM.cjs} +6 -6
- package/dist/src/{otlpReceiver-DRNetlJH.js → otlpReceiver-BO0rbDzh.js} +6 -6
- package/dist/src/{otlpReceiver-Bhj_vnzl.js → otlpReceiver-Dg817agV.js} +6 -6
- package/dist/src/{otlpReceiver-Cpnk-Hjf.js → otlpReceiver-DmRb0NBj.js} +2 -2
- package/dist/src/{providerRegistry-D32Lt9vp.js → providerRegistry-Xf0qdqGQ.js} +2 -2
- package/dist/src/{providerRegistry-HGQd2MF6.cjs → providerRegistry-lc7a7utN.cjs} +2 -2
- package/dist/src/{providerRegistry-BdKWcUa8.js → providerRegistry-wCWd7sKQ.js} +2 -2
- package/dist/src/providers-BMZZmPBJ.cjs +32 -0
- package/dist/src/{providers-BWoVY_Wz.cjs → providers-BNKVY53V.cjs} +294 -782
- package/dist/src/{providers-Co_FGgH8.js → providers-BiNq_Iyc.js} +281 -769
- package/dist/src/{providers-CUCHJCHD.js → providers-BlEhY5mi.js} +286 -779
- package/dist/src/providers-CQQrNaJk.js +32 -0
- package/dist/src/providers-Ck8HyrC-.js +34 -0
- package/dist/src/{pythonUtils-rOCm9w_5.cjs → pythonUtils-DZ6EbdY4.cjs} +3 -3
- package/dist/src/{pythonUtils-B9JA-gsC.js → pythonUtils-r1uBuA0n.js} +3 -3
- package/dist/src/{pythonUtils-eNq6Wsfr.js → pythonUtils-vMlk9Qp5.js} +3 -3
- package/dist/src/{quiverai-BpWtOEQZ.cjs → quiverai-BNfIwKCO.cjs} +13 -13
- package/dist/src/{quiverai-Cj-PUa3p.js → quiverai-BQigKdIH.js} +14 -14
- package/dist/src/{quiverai-BN8OVvDE.js → quiverai-Bfy2WnE2.js} +12 -12
- package/dist/src/{quiverai-D5MSsd2c.js → quiverai-CedIP0PJ.js} +2 -2
- package/dist/src/{render-D2710HbA.js → render-CAZvKKkB.js} +4 -4
- package/dist/src/responses-DLLjADw5.js +653 -0
- package/dist/src/responses-TsdODUpm.js +654 -0
- package/dist/src/responses-zOtKtnY_.cjs +671 -0
- package/dist/src/{rubyUtils-Dn6MGcsk.js → rubyUtils-BtjlqyXt.js} +3 -3
- package/dist/src/{rubyUtils-LBsk3zIm.js → rubyUtils-Cs35SDYa.js} +3 -3
- package/dist/src/rubyUtils-D7--T12C.js +6 -0
- package/dist/src/{rubyUtils-rnCVDgH-.cjs → rubyUtils-DCVaJ3mc.cjs} +3 -3
- package/dist/src/rubyUtils-DRRiMFV2.js +5 -0
- package/dist/src/rubyUtils-vb8OYFC-.cjs +5 -0
- package/dist/src/{sagemaker-C8MeZIkH.js → sagemaker-BcgLu0U4.js} +18 -18
- package/dist/src/{sagemaker-4ukMNSN0.js → sagemaker-CLdUAv5z.js} +17 -17
- package/dist/src/{sagemaker-DyVHy2BW.js → sagemaker-Du4LIR97.js} +2 -2
- package/dist/src/{sagemaker-DB3Eojau.cjs → sagemaker-DwNnEVYt.cjs} +17 -17
- package/dist/src/{scanner-C28XVEq2.js → scanner-Dyw21Wg_.js} +12 -12
- package/dist/src/server/index.js +1818 -605
- package/dist/src/server-BUbS0Qfh.js +6 -0
- package/dist/src/{server-BF3HkMhe.js → server-CbMTRQkg.js} +8 -6
- package/dist/src/{server-CSbLW-UI.cjs → server-CgUQ25qW.cjs} +8 -6
- package/dist/src/{server-mycZbUH8.js → server-DWmZLfCy.js} +10 -7
- package/dist/src/server-XpGXFHkS.cjs +6 -0
- package/dist/src/server-gfOx5Zrk.js +8 -0
- package/dist/src/{signal-DM_SPNmi.js → signal-Bl32q42d.js} +3 -3
- package/dist/src/{slack-Ed1yyt_j.js → slack-BfdBx2tO.js} +2 -2
- package/dist/src/{slack-D1F9Y7CH.cjs → slack-BtMkB6xP.cjs} +2 -2
- package/dist/src/{slack-DkAF58Tr.js → slack-DPqj42Ts.js} +2 -2
- package/dist/src/{slack-BK312SXM.js → slack-OZYxoVON.js} +2 -2
- package/dist/src/{store-CT_e5OZX.js → store-2ocbYY9D.js} +3 -3
- package/dist/src/store-5u2yriTV.js +7 -0
- package/dist/src/{store-BpumNYCl.cjs → store-BqwfFEyF.cjs} +3 -3
- package/dist/src/{store-BFLqwuc_.js → store-D4gdn9ih.js} +3 -3
- package/dist/src/store-D_lq_8oQ.js +6 -0
- package/dist/src/store-m5KT6Ly7.cjs +6 -0
- package/dist/src/{tables-Dansasnu.cjs → tables-B9E1kRp-.cjs} +3 -3
- package/dist/src/{tables-BjaApSAB.js → tables-C7TT2XVn.js} +3 -3
- package/dist/src/{tables-Dwexr5Z6.js → tables-D-NSwNIb.js} +3 -3
- package/dist/src/telemetry-5RHFoCJh.js +6 -0
- package/dist/src/{telemetry-MVkZQxt9.js → telemetry-BXyVqyAg.js} +5 -4
- package/dist/src/{telemetry-DFDFKdnr.cjs → telemetry-D0_yFdtU.cjs} +5 -4
- package/dist/src/{telemetry-Ds5Nn81l.js → telemetry-DZ_7PaVq.js} +5 -4
- package/dist/src/telemetry-Do8wMnA-.js +8 -0
- package/dist/src/telemetry-LojxPoFq.cjs +6 -0
- package/dist/src/{text-PYISqVm1.cjs → text-DF2hMKdg.cjs} +1 -1
- package/dist/src/{text-DuYSUYPB.js → text-DgMr_tiM.js} +1 -1
- package/dist/src/{text-Dx0GJOCN.js → text-Dm78AVGG.js} +1 -1
- package/dist/src/{tokenUsageUtils-BtZd3sP7.cjs → tokenUsageUtils-CXhxVj72.cjs} +9 -4
- package/dist/src/{tokenUsageUtils-DoinwgKF.js → tokenUsageUtils-DmZSD2eU.js} +9 -4
- package/dist/src/{tokenUsageUtils-cFdLMERB.js → tokenUsageUtils-FZd5O_4A.js} +9 -4
- package/dist/src/{transcription-Cp19m_Mt.js → transcription-C-M81iDA.js} +2 -2
- package/dist/src/{transcription-CLRpAg07.js → transcription-CYuY5sFO.js} +10 -10
- package/dist/src/{transcription-D8ifIKOv.js → transcription-Ch7S-LWw.js} +11 -11
- package/dist/src/{transcription-CXXFEVM_.cjs → transcription-FNIz3YOe.cjs} +10 -10
- package/dist/src/transform-8eGmaH-7.js +7 -0
- package/dist/src/transform-BRVvWaG4.cjs +6 -0
- package/dist/src/{transform-Bn-lgBE2.js → transform-CoP2bJ7P.js} +44 -5
- package/dist/src/{transform-BFPYuBaW.js → transform-CqTFr7KR.js} +5 -5
- package/dist/src/{transform-DvQWeBSR.js → transform-D8dILpfZ.js} +4 -4
- package/dist/src/{transform-BUrxadlA.js → transform-DMaxQwDx.js} +44 -5
- package/dist/src/transform-GybT0X0u.js +8 -0
- package/dist/src/{transform-DshYLyBq.cjs → transform-Kd6u-oNm.cjs} +4 -4
- package/dist/src/{transform-Bw1IstDE.cjs → transform-ivxEY4f7.cjs} +55 -4
- package/dist/src/{transformersAvailability-BaoWHpu1.cjs → transformersAvailability-Bkep3ka7.cjs} +1 -1
- package/dist/src/{transformersAvailability-Dhh45n5P.js → transformersAvailability-DEU2naS1.js} +1 -1
- package/dist/src/{transformersAvailability-DtpwoeFC.js → transformersAvailability-DkAWaK5B.js} +1 -1
- package/dist/src/{transformersAvailability-O2YaCv9Z.js → transformersAvailability-DwmezkVe.js} +1 -1
- package/dist/src/{types-B-XUqfNs.cjs → types-BIfttHrT.cjs} +22 -2
- package/dist/src/{types-BsU_PxR3.js → types-DMVjYLpx.js} +16 -2
- package/dist/src/{types-CgrxBFgm.js → types-t52w-XsS.js} +19 -3
- package/dist/src/{util-M2MoNCUR.js → util-BSh4a_Q8.js} +7 -7
- package/dist/src/{util-DTJWKLkl.cjs → util-C08Kns6-.cjs} +18 -4
- package/dist/src/{util-DHBpsbZE.js → util-CUEt0Vum.js} +18 -4
- package/dist/src/{util-Bnw6EyZN.js → util-Cl0zfT3V.js} +18 -4
- package/dist/src/{util-C7A-PlKK.cjs → util-DUYOvxAy.cjs} +6 -6
- package/dist/src/{util-WYC3rB_p.js → util-DiCePfDu.js} +6 -6
- package/dist/src/{util-CV99ps44.cjs → util-DkFTvieG.cjs} +17 -5
- package/dist/src/{util-CfepsNVK.js → util-mJ58qbbw.js} +17 -5
- package/dist/src/{util-BZaMVBMq.js → util-vjscpUzy.js} +17 -5
- package/dist/src/{utils-BryuD3vq.js → utils-CVzb4YiI.js} +3 -3
- package/dist/src/{utils-Dezi3MBH.cjs → utils-DFaZa6Rf.cjs} +3 -3
- package/dist/src/{utils-GiyI2K4P.js → utils-JaY9veb5.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +75 -77
- package/dist/src/app/assets/index-07dbAcWK.js +0 -427
- package/dist/src/app/assets/index-DnEcCQgk.css +0 -1
- package/dist/src/app/assets/vendor-react-DHoaNLma.js +0 -4
- package/dist/src/cache-BujOdYlc.cjs +0 -6
- package/dist/src/cloud-BHYz0XkH.js +0 -5
- package/dist/src/eval-0IFf8hON.js +0 -16
- package/dist/src/evalResult-BCCv6FXj.js +0 -13
- package/dist/src/evalResult-C8iVgVvr.js +0 -11
- package/dist/src/evalResult-CqFeWKYx.cjs +0 -11
- package/dist/src/evaluator-DwS5NAEj.js +0 -37
- package/dist/src/fetch-BH9KSaUC.cjs +0 -4
- package/dist/src/fetch-BL6kqunF.js +0 -6
- package/dist/src/graders-BK3LuhJ8.cjs +0 -32
- package/dist/src/graders-Bpjtip-E.js +0 -35
- package/dist/src/graders-KIf6Uej3.js +0 -33
- package/dist/src/providers-41mSodR_.js +0 -31
- package/dist/src/providers-CiZCpIxz.cjs +0 -31
- package/dist/src/providers-G531909f.js +0 -33
- package/dist/src/rubyUtils-BLd6EE1u.cjs +0 -5
- package/dist/src/rubyUtils-CVELPvUH.js +0 -6
- package/dist/src/rubyUtils-_t9Gmf7U.js +0 -5
- package/dist/src/server-Bc4T4XDt.cjs +0 -6
- package/dist/src/server-CMyxJ7ct.js +0 -6
- package/dist/src/server-D9FuxNYE.js +0 -8
- package/dist/src/store-CrMinjmN.cjs +0 -6
- package/dist/src/store-EaWZOoxz.js +0 -7
- package/dist/src/store-KXWnHB15.js +0 -6
- package/dist/src/telemetry-BXD2mCyr.cjs +0 -6
- package/dist/src/telemetry-CYiBm56v.js +0 -8
- package/dist/src/telemetry-lICYKIMB.js +0 -6
- package/dist/src/transform-DZI2t8-9.js +0 -8
- package/dist/src/transform-DZUV3qpO.js +0 -7
- package/dist/src/transform-XcotjzZX.cjs +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getConfigDirectoryPath, i as logger_default } from "./logger-
|
|
2
|
-
import { n as blobReferencesTable, p as getDb, t as blobAssetsTable } from "./tables-
|
|
1
|
+
import { g as getConfigDirectoryPath, i as logger_default } from "./logger-w8Ozp0Td.js";
|
|
2
|
+
import { n as blobReferencesTable, p as getDb, t as blobAssetsTable } from "./tables-D-NSwNIb.js";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as fsPromises$1 from "node:fs/promises";
|
|
@@ -233,4 +233,4 @@ async function recordBlobReference(hash, refContext) {
|
|
|
233
233
|
|
|
234
234
|
//#endregion
|
|
235
235
|
export { BLOB_MIN_SIZE as a, BLOB_MAX_SIZE as i, recordBlobReference as n, storeBlob as r, getBlobByHash as t };
|
|
236
|
-
//# sourceMappingURL=blobs-
|
|
236
|
+
//# sourceMappingURL=blobs-C9J2mVgo.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as logger_default, v as getConfigDirectoryPath } from "./logger-
|
|
3
|
-
import { g as getDb, n as blobReferencesTable, t as blobAssetsTable } from "./tables-
|
|
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-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-
|
|
240
|
+
//# sourceMappingURL=blobs-kt8v3UyH.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_logger = require('./logger-
|
|
2
|
-
const require_fetch = require('./fetch-
|
|
1
|
+
const require_logger = require('./logger-BdZ-IqBc.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
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
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-
|
|
802
|
+
//# sourceMappingURL=cache-7xULbvt3.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-FhC4c-0y.js";
|
|
2
|
-
import { _ as getEnvBool, b as getEnvString, g as getConfigDirectoryPath, i as logger_default, y as getEnvInt } from "./logger-
|
|
3
|
-
import { h as REQUEST_TIMEOUT_MS, n as fetchWithRetries, p as sleep } from "./fetch-
|
|
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-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
|
-
*
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
*
|
|
519
|
-
*
|
|
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,
|
|
727
|
-
//# sourceMappingURL=cache-
|
|
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
|
-
import "./logger-
|
|
3
|
-
import "./fetch-
|
|
4
|
-
import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-
|
|
2
|
+
import "./logger-w8Ozp0Td.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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
|
-
import "./logger-
|
|
4
|
-
import "./fetch-
|
|
5
|
-
import "./cloud-
|
|
6
|
-
import { a as fetchWithCache, i as enableCache, n as clearCache, o as getCache, r as disableCache, s as isCacheEnabled } from "./cache-
|
|
3
|
+
import "./logger-BotXmWKW.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
|
-
import { C as getEnvString, S as getEnvInt, b as getEnvBool, o as logger_default, v as getConfigDirectoryPath } from "./logger-
|
|
4
|
-
import { d as REQUEST_TIMEOUT_MS, l as sleep, r as fetchWithRetries } from "./fetch-
|
|
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-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,
|
|
728
|
-
//# sourceMappingURL=cache-
|
|
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
|
-
const require_logger = require('./logger-
|
|
2
|
-
const require_esm = require('./esm-
|
|
1
|
+
const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
2
|
+
const require_esm = require('./esm-BQkx5roy.cjs');
|
|
3
3
|
const require_fileExtensions = require('./fileExtensions-DkJYkWUy.cjs');
|
|
4
|
-
const require_util = require('./util-
|
|
5
|
-
const require_fetch = require('./fetch-
|
|
6
|
-
const require_cache = require('./cache-
|
|
7
|
-
const require_genaiTracer = require('./genaiTracer-
|
|
8
|
-
const require_transform = require('./transform-
|
|
9
|
-
const require_openai = require('./openai-
|
|
10
|
-
const require_util$1 = require('./util-
|
|
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
|
+
const require_genaiTracer = require('./genaiTracer-CQlpZkrp.cjs');
|
|
8
|
+
const require_transform = require('./transform-ivxEY4f7.cjs');
|
|
9
|
+
const require_openai = require('./openai-Bigwjgo1.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-
|
|
788
|
+
//# sourceMappingURL=chat-C4zqjObh.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as getEnvBool, b as getEnvString, i as logger_default, v as getEnvFloat, w as cliState_default, y as getEnvInt } from "./logger-
|
|
2
|
-
import { r as importModule } from "./esm-
|
|
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
|
+
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-
|
|
5
|
-
import { S as parseChatPrompt, T as transformTools, h as REQUEST_TIMEOUT_MS, w as transformToolChoice } from "./fetch-
|
|
6
|
-
import { a as fetchWithCache } from "./cache-
|
|
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
|
|
9
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
10
|
-
import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-
|
|
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
|
+
import { t as OpenAiGenericProvider } from "./openai-Dz3surb_.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-
|
|
764
|
+
//# sourceMappingURL=chat-C8Ei4f87.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./chunk-FhC4c-0y.js";
|
|
2
|
-
import { i as logger_default } from "./logger-
|
|
2
|
+
import { i as logger_default } from "./logger-w8Ozp0Td.js";
|
|
3
3
|
import { t as invariant } from "./invariant-1pAf2CD1.js";
|
|
4
|
-
import "./esm-
|
|
5
|
-
import "./pythonUtils-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./util-
|
|
8
|
-
import "./fetch-
|
|
9
|
-
import "./cache-
|
|
4
|
+
import "./esm-rDtG_2rg.js";
|
|
5
|
+
import "./pythonUtils-vMlk9Qp5.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-
|
|
12
|
-
import "./transform-
|
|
13
|
-
import "./openai-
|
|
14
|
-
import "./util-
|
|
11
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-C8Ei4f87.js";
|
|
12
|
+
import "./transform-DMaxQwDx.js";
|
|
13
|
+
import "./openai-Dz3surb_.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-
|
|
301
|
+
//# sourceMappingURL=chat-CgyGj2hC.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
|
-
import { o as logger_default } from "./logger-
|
|
4
|
-
import "./fetch-
|
|
3
|
+
import { o as logger_default } from "./logger-BotXmWKW.js";
|
|
4
|
+
import "./fetch-SRsE6Ctl.js";
|
|
5
5
|
import { t as invariant } from "./invariant-DT20jrBd.js";
|
|
6
|
-
import "./cloud-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./cache-
|
|
9
|
-
import "./util-
|
|
10
|
-
import "./esm-
|
|
11
|
-
import "./pythonUtils-
|
|
12
|
-
import "./genaiTracer-
|
|
13
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
14
|
-
import "./transform-
|
|
15
|
-
import "./openai-
|
|
16
|
-
import "./util-
|
|
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-
|
|
303
|
+
//# sourceMappingURL=chat-Cpz3O-Xl.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as getEnvString, O as cliState_default, S as getEnvInt, b as getEnvBool, o as logger_default, x as getEnvFloat } from "./logger-
|
|
3
|
-
import { b as transformToolChoice, d as REQUEST_TIMEOUT_MS, v as parseChatPrompt, x as transformTools } from "./fetch-
|
|
4
|
-
import { a as fetchWithCache } from "./cache-
|
|
5
|
-
import { i as isJavascriptFile } from "./fileExtensions-
|
|
6
|
-
import { g as maybeLoadToolsFromExternalFile, h as maybeLoadResponseFormatFromExternalFile, m as maybeLoadFromExternalFileWithVars, x as renderVarsInObject } from "./util-
|
|
7
|
-
import { r as importModule } from "./esm-
|
|
8
|
-
import { n as withGenAISpan } from "./genaiTracer-
|
|
9
|
-
import { C as
|
|
10
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
11
|
-
import { a as calculateOpenAICost, c as getTokenUsage, t as OPENAI_CHAT_MODELS } from "./util-
|
|
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-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-
|
|
765
|
+
//# sourceMappingURL=chat-DIywASPG.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const require_logger = require('./logger-
|
|
1
|
+
const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
2
2
|
const require_invariant = require('./invariant-CKcJAQ6M.cjs');
|
|
3
|
-
require('./esm-
|
|
4
|
-
require('./pythonUtils-
|
|
5
|
-
require('./types-
|
|
6
|
-
require('./util-
|
|
7
|
-
require('./fetch-
|
|
8
|
-
require('./cache-
|
|
9
|
-
require('./genaiTracer-
|
|
10
|
-
const require_chat = require('./chat-
|
|
11
|
-
require('./transform-
|
|
12
|
-
require('./openai-
|
|
13
|
-
require('./util-
|
|
3
|
+
require('./esm-BQkx5roy.cjs');
|
|
4
|
+
require('./pythonUtils-DZ6EbdY4.cjs');
|
|
5
|
+
require('./types-BIfttHrT.cjs');
|
|
6
|
+
require('./util-DUYOvxAy.cjs');
|
|
7
|
+
require('./fetch-ZMn_oemb.cjs');
|
|
8
|
+
require('./cache-7xULbvt3.cjs');
|
|
9
|
+
require('./genaiTracer-CQlpZkrp.cjs');
|
|
10
|
+
const require_chat = require('./chat-C4zqjObh.cjs');
|
|
11
|
+
require('./transform-ivxEY4f7.cjs');
|
|
12
|
+
require('./openai-Bigwjgo1.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-
|
|
300
|
+
//# sourceMappingURL=chat-Fl6TZJRS.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as invariant, j as logger_default, l as OpenAiChatCompletionProvider } from "./server/index.js";
|
|
2
2
|
|
|
3
3
|
//#region src/providers/hyperbolic/chat.ts
|
|
4
4
|
const HYPERBOLIC_CHAT_MODELS = [
|
|
@@ -285,4 +285,4 @@ function createHyperbolicProvider(providerPath, options = {}) {
|
|
|
285
285
|
|
|
286
286
|
//#endregion
|
|
287
287
|
export { createHyperbolicProvider };
|
|
288
|
-
//# sourceMappingURL=chat-
|
|
288
|
+
//# sourceMappingURL=chat-XPN9YHhr.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as logger_default } from "./logger-
|
|
3
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
4
|
-
import { t as providerRegistry } from "./providerRegistry-
|
|
2
|
+
import { o as logger_default } from "./logger-BotXmWKW.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-
|
|
1160
|
+
//# sourceMappingURL=chatkit-DEls11hE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as logger_default } from "./logger-
|
|
2
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
3
|
-
import { t as providerRegistry } from "./providerRegistry-
|
|
1
|
+
import { i as logger_default } from "./logger-w8Ozp0Td.js";
|
|
2
|
+
import { t as OpenAiGenericProvider } from "./openai-Dz3surb_.js";
|
|
3
|
+
import { t as providerRegistry } from "./providerRegistry-wCWd7sKQ.js";
|
|
4
4
|
import * as http$1 from "http";
|
|
5
5
|
import { chromium } from "playwright";
|
|
6
6
|
|
|
@@ -1156,4 +1156,4 @@ Original error: ${errorMessage}`);
|
|
|
1156
1156
|
|
|
1157
1157
|
//#endregion
|
|
1158
1158
|
export { OpenAiChatKitProvider };
|
|
1159
|
-
//# sourceMappingURL=chatkit-
|
|
1159
|
+
//# sourceMappingURL=chatkit-DIrJX8xk.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as OpenAiGenericProvider, j as logger_default, t as providerRegistry } from "./server/index.js";
|
|
2
2
|
import * as http$1 from "http";
|
|
3
3
|
import { chromium } from "playwright";
|
|
4
4
|
|
|
@@ -1154,4 +1154,4 @@ Original error: ${errorMessage}`);
|
|
|
1154
1154
|
|
|
1155
1155
|
//#endregion
|
|
1156
1156
|
export { OpenAiChatKitProvider };
|
|
1157
|
-
//# sourceMappingURL=chatkit-
|
|
1157
|
+
//# sourceMappingURL=chatkit-Dpxrq4eD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_logger = require('./logger-
|
|
2
|
-
const require_openai = require('./openai-
|
|
3
|
-
const require_providerRegistry = require('./providerRegistry-
|
|
1
|
+
const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
2
|
+
const require_openai = require('./openai-Bigwjgo1.cjs');
|
|
3
|
+
const require_providerRegistry = require('./providerRegistry-lc7a7utN.cjs');
|
|
4
4
|
let http = require("http");
|
|
5
5
|
http = require_logger.__toESM(http);
|
|
6
6
|
let playwright = require("playwright");
|
|
@@ -1157,4 +1157,4 @@ Original error: ${errorMessage}`);
|
|
|
1157
1157
|
|
|
1158
1158
|
//#endregion
|
|
1159
1159
|
exports.OpenAiChatKitProvider = OpenAiChatKitProvider;
|
|
1160
|
-
//# sourceMappingURL=chatkit-
|
|
1160
|
+
//# sourceMappingURL=chatkit-e25Ziu17.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./chunk-FhC4c-0y.js";
|
|
2
|
-
import { b as getEnvString, i as logger_default, w as cliState_default } from "./logger-
|
|
3
|
-
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-
|
|
4
|
-
import "./pythonUtils-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./util-
|
|
7
|
-
import "./fetch-
|
|
8
|
-
import "./cache-
|
|
9
|
-
import { t as transformMCPConfigToClaudeCode } from "./transform-
|
|
10
|
-
import { t as ANTHROPIC_MODELS } from "./util-
|
|
11
|
-
import { n as getCachedResponse, r as initializeAgenticCache, t as cacheResponse } from "./cometapi-
|
|
2
|
+
import { b as getEnvString, i as logger_default, w as cliState_default } from "./logger-w8Ozp0Td.js";
|
|
3
|
+
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-rDtG_2rg.js";
|
|
4
|
+
import "./pythonUtils-vMlk9Qp5.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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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-
|
|
352
|
+
//# sourceMappingURL=claude-agent-sdk-6-xTaLwM.js.map
|