promptfoo 0.121.7 → 0.121.8
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/dist/src/{accounts-CmWzeD2d.cjs → accounts-BVz5gHLK.cjs} +4 -4
- package/dist/src/{accounts-DanM1wq_.js → accounts-BWjqwsrf.js} +4 -4
- package/dist/src/{accounts-CjFnOPmb.js → accounts-D6IBfEE0.js} +5 -5
- package/dist/src/{accounts-Ca7WIoPY.js → accounts-DAv_0iE7.js} +4 -4
- package/dist/src/{agentic-utils-DDEGRV9v.js → agentic-utils-BJKAkz2e.js} +2 -2
- package/dist/src/{agentic-utils-DvPWSUpb.cjs → agentic-utils-C-A92xhn.cjs} +2 -2
- package/dist/src/{agentic-utils-TxUEMPYS.js → agentic-utils-DmoS_S4B.js} +2 -2
- package/dist/src/{agentic-utils-CJ0j3fBi.js → agentic-utils-GdToujHu.js} +2 -2
- package/dist/src/{agents-CBgJvRkB.js → agents-2C8NN6I1.js} +4 -4
- package/dist/src/{agents-CYn2n3QP.js → agents-BMAiSR2o.js} +2 -2
- package/dist/src/{agents-LrHuQqr1.js → agents-C-PGaxwj.js} +4 -4
- package/dist/src/{agents-D-vDNFx4.js → agents-C98cz5pl.js} +4 -4
- package/dist/src/{agents-B4sRuXg3.cjs → agents-DB8Ub2Ld.cjs} +2 -2
- package/dist/src/{agents-B8q7h_ek.js → agents-Dwshy2H8.js} +2 -2
- package/dist/src/{agents-QGg76OF-.js → agents-mlKjx-cK.js} +2 -2
- package/dist/src/{agents-eHZ9nlgA.cjs → agents-n2ej-c4H.cjs} +4 -4
- package/dist/src/{aimlapi-D5HXzZ0s.js → aimlapi-Bi-laUlp.js} +6 -6
- package/dist/src/{aimlapi-T6HGNxNe.cjs → aimlapi-D0OFV4Vj.cjs} +6 -6
- package/dist/src/{aimlapi-eYv3a_DK.js → aimlapi-WyUK0wYy.js} +6 -6
- package/dist/src/{aimlapi-CJEbQ0o6.js → aimlapi-v-63ZjEI.js} +6 -6
- package/dist/src/app/assets/Report-sCXUfaWo.js +1 -0
- package/dist/src/app/assets/{index-BnT6P6sF.js → index-BopgkZEh.js} +2 -2
- package/dist/src/app/index.html +1 -1
- package/dist/src/{audio-DyiebVB3.js → audio-DnEIHWZR.js} +3 -3
- package/dist/src/{audio-BqnRvcWG.js → audio-heR0mu0n.js} +3 -3
- package/dist/src/{audio-CPMtV1yR.js → audio-wafFO1wn.js} +3 -3
- package/dist/src/{audio-FnxbEnSE.cjs → audio-x44tsxIo.cjs} +3 -3
- package/dist/src/{authoritativeMarkupInjection-F2gBw0lN.cjs → authoritativeMarkupInjection-2G3Be6oL.cjs} +6 -6
- package/dist/src/{authoritativeMarkupInjection-DyAXAsSr.js → authoritativeMarkupInjection-81PPynHR.js} +6 -6
- package/dist/src/{authoritativeMarkupInjection-QEQmFS83.js → authoritativeMarkupInjection-D9O70HPi.js} +6 -6
- package/dist/src/{authoritativeMarkupInjection-BZIywVjG.js → authoritativeMarkupInjection-PxSf3Rh8.js} +5 -5
- package/dist/src/{base-E9I8zXjz.js → base-0Gzzue9Z.js} +2 -2
- package/dist/src/{base-Co80MMCi.js → base-Bp4c52YZ.js} +2 -2
- package/dist/src/{base-CKLo890h.js → base-BuNn-YBX.js} +2 -2
- package/dist/src/{base-DGJW48uz.cjs → base-BzdS8tod.cjs} +2 -2
- package/dist/src/{bestOfN-_kTi8Bxe.js → bestOfN-BHiOjeaq.js} +7 -7
- package/dist/src/{bestOfN-BBsO41z4.js → bestOfN-CdkNPPbX.js} +6 -6
- package/dist/src/{bestOfN-B3wNzjSB.js → bestOfN-ClUSOhN0.js} +7 -7
- package/dist/src/{bestOfN-CAwmg5UL.cjs → bestOfN-DWwXEg1h.cjs} +7 -7
- package/dist/src/cache-BKYi3kAA.js +3 -0
- package/dist/src/{cache-DpPWrkTE.js → cache-BR77mdIR.js} +3 -3
- package/dist/src/{cache-roFAE0cI.js → cache-CrioYnaa.js} +2 -2
- package/dist/src/{cache-DIXbtkNO.js → cache-DdriHsNX.js} +2 -2
- package/dist/src/{cache-CPGUA4Yl.cjs → cache-h5MWOBZI.cjs} +2 -2
- package/dist/src/{chat-Dabu84Br.js → chat-BBEnnpQk.js} +6 -6
- package/dist/src/{chat-CUCorGiL.js → chat-BSos6PvZ.js} +6 -6
- package/dist/src/{chat-TP8Qifkh.js → chat-Bnt7ieO0.js} +2 -2
- package/dist/src/{chat-DxTDQ83C.cjs → chat-DSyYuTYT.cjs} +6 -6
- package/dist/src/{chat-DqUFcWI0.js → chat-DTdf-J5Q.js} +6 -6
- package/dist/src/{chat-DG1wG4w0.cjs → chat-Dq3DomYU.cjs} +2 -2
- package/dist/src/{chat-GmlolEwo.js → chat-g5QLeLOo.js} +2 -2
- package/dist/src/{chat-iwaM5UTQ.js → chat-mTTuUAYb.js} +2 -2
- package/dist/src/{claude-agent-sdk-x1XJ1-pU.js → claude-agent-sdk-BGUac_kS.js} +7 -5
- package/dist/src/{claude-agent-sdk-D5Jl0SDh.js → claude-agent-sdk-BP__YGfK.js} +7 -5
- package/dist/src/{claude-agent-sdk-BQNp_y-F.js → claude-agent-sdk-Ddgx5BIQ.js} +7 -5
- package/dist/src/{claude-agent-sdk-DH416NBD.cjs → claude-agent-sdk-n2XcEclh.cjs} +7 -5
- package/dist/src/cloud-DiWbUiVP.js +3 -0
- package/dist/src/{cloud-D3DiFqH6.js → cloud-DqF5N1aJ.js} +2 -2
- package/dist/src/{cloudflare-ai-B6NVI3ax.js → cloudflare-ai-BGamMotN.js} +4 -4
- package/dist/src/{cloudflare-ai-r4tbYmWU.js → cloudflare-ai-BwW8W-w7.js} +4 -4
- package/dist/src/{cloudflare-ai-CEAW-xQa.cjs → cloudflare-ai-DCRGnsyL.cjs} +4 -4
- package/dist/src/{cloudflare-ai-RFSojyXG.js → cloudflare-ai-sD26nP6V.js} +4 -4
- package/dist/src/{cloudflare-gateway-BaZ4insB.js → cloudflare-gateway-2lnOT4qM.js} +3 -3
- package/dist/src/{cloudflare-gateway-BCkLouto.js → cloudflare-gateway-B1-8KNCt.js} +3 -3
- package/dist/src/{cloudflare-gateway-TJMLBj6I.cjs → cloudflare-gateway-CCC1DFrC.cjs} +3 -3
- package/dist/src/{cloudflare-gateway-CF-Vb-2Z.js → cloudflare-gateway-DOghiU6r.js} +3 -3
- package/dist/src/{codex-app-server-DIXZ230V.js → codex-app-server-BWeWamEb.js} +17 -2
- package/dist/src/{codex-app-server-B8KHEiF4.js → codex-app-server-DyQB1P0p.js} +17 -2
- package/dist/src/{codex-app-server-CnrLBCeA.cjs → codex-app-server-R9u_G7W9.cjs} +17 -2
- package/dist/src/{codex-app-server-Dd22dC_N.js → codex-app-server-ZQRJSJjU.js} +17 -2
- package/dist/src/{codex-sdk-CmQABzV3.js → codex-sdk-B62H0fe7.js} +14 -3
- package/dist/src/{codex-sdk-CFF6gUyi.cjs → codex-sdk-BRPUvJG8.cjs} +14 -3
- package/dist/src/{codex-sdk-B6Wah8Pa.js → codex-sdk-Dio1zJBS.js} +14 -3
- package/dist/src/codex-sdk-DxukZs_K.js +3 -0
- package/dist/src/{codex-sdk-D2d54RL8.js → codex-sdk-iEmW1eS2.js} +14 -3
- package/dist/src/{cometapi-Bu9B8NUY.js → cometapi--hh7dESS.js} +7 -7
- package/dist/src/{cometapi-OBILPLlu.js → cometapi-C7yWNGqt.js} +7 -7
- package/dist/src/{cometapi-CtzNCHKu.js → cometapi-CSIi16a0.js} +7 -7
- package/dist/src/{cometapi-DHCDlQUI.cjs → cometapi-sZgBZtbU.cjs} +7 -7
- package/dist/src/{completion-CSYfl2cd.cjs → completion-CWtqdn3z.cjs} +4 -4
- package/dist/src/{completion-CO2e1_62.js → completion-DT8cxo9T.js} +4 -4
- package/dist/src/{completion-DZNxcyfG.js → completion-DUScduXp.js} +4 -4
- package/dist/src/{completion-sNvCLTAP.js → completion-D_2IOAoS.js} +4 -4
- package/dist/src/{crescendo-QiaSLW0d.js → crescendo-B41TwUHM.js} +39 -18
- package/dist/src/{crescendo-J1Xx4_zb.js → crescendo-Bfic7KC4.js} +41 -20
- package/dist/src/{crescendo-BXEJK_bi.cjs → crescendo-DXFB7rHP.cjs} +41 -20
- package/dist/src/{crescendo-CU_Y2i-m.js → crescendo-DvvYxMLA.js} +41 -20
- package/dist/src/{custom-BJfP00Bh.js → custom-BdzuqFTN.js} +10 -10
- package/dist/src/{custom-notggYVl.js → custom-Cf5Q6r-P.js} +8 -8
- package/dist/src/{custom-CZVn-1-r.js → custom-DLgufezC.js} +10 -10
- package/dist/src/{custom-Cqia7M0D.cjs → custom-LEXHCRe3.cjs} +10 -10
- package/dist/src/{docker-4D1eL6Gq.js → docker-BOSO_6hK.js} +5 -5
- package/dist/src/{docker-D06JUoe2.cjs → docker-D0h2vFrc.cjs} +5 -5
- package/dist/src/{docker-DdJQBxK9.js → docker-D2TWGyTP.js} +5 -5
- package/dist/src/{docker-BBv1WUDu.js → docker-Vj_4_cPg.js} +5 -5
- package/dist/src/{embedding-BbrwopfX.cjs → embedding-BQIApR18.cjs} +4 -4
- package/dist/src/{embedding-Bi3rxrZF.js → embedding-CStK0TV6.js} +4 -4
- package/dist/src/{embedding--UZVe4_7.js → embedding-CU78FMnw.js} +4 -4
- package/dist/src/{embedding-C251p1-8.js → embedding-CV8lmCnU.js} +4 -4
- package/dist/src/{eval-0VRANImH.js → eval-B3BaNBbO.js} +4 -4
- package/dist/src/{eval-DscR5iOM.js → eval-DfR9885C.js} +1 -1
- package/dist/src/evalResult-BtZSUgQv.js +3 -0
- package/dist/src/{evalResult-eUkJv9Ko.js → evalResult-CcSqNl_Y.js} +3 -3
- package/dist/src/{evalResult-CvtS8h8u.cjs → evalResult-DHXs-9TL.cjs} +3 -3
- package/dist/src/{evalResult-2RRJvFyB.js → evalResult-PGqEbasb.js} +3 -3
- package/dist/src/evaluator-B9LGbKI8.js +3 -0
- package/dist/src/{evaluator-DRoiYB2q.js → evaluator-n_dEb00o.js} +20 -20
- package/dist/src/{evaluatorHelpers-DuqFFfq7.js → evaluatorHelpers-CrRObe2z.js} +4 -4
- package/dist/src/{evaluatorHelpers-CRqTvSux.cjs → evaluatorHelpers-D06I9WFL.cjs} +4 -4
- package/dist/src/{evaluatorHelpers-BsYP_muT.js → evaluatorHelpers-D1_kwvyp.js} +4 -4
- package/dist/src/{extractor-CIW3iN-b.js → extractor-BVkZtk4R.js} +4 -4
- package/dist/src/{extractor-CxRtnaHl.js → extractor-D3Fv_Tdh.js} +4 -4
- package/dist/src/{extractor-BR7XAzAL.js → extractor-Jp53vs-6.js} +4 -4
- package/dist/src/{extractor-BdxEtt3J.cjs → extractor-bV_NOoaz.cjs} +4 -4
- package/dist/src/{fetch-BufrQtvR.js → fetch-BSSAcMxf.js} +2 -2
- package/dist/src/fetch-BodQTrMU.js +3 -0
- package/dist/src/{fetch-Dw4XZHjj.cjs → fetch-Cfm4EuOB.cjs} +2 -2
- package/dist/src/{fetch-DXUnXkVU.js → fetch-Cpf1U1nO.js} +3 -3
- package/dist/src/{fetch-It34O8Ur.js → fetch-Doks14zQ.js} +2 -2
- package/dist/src/{goat-Qgurm-NP.js → goat-Ba7Gznzq.js} +18 -17
- package/dist/src/{goat-Ckd3q3AY.js → goat-CJngS-WU.js} +18 -17
- package/dist/src/{goat-ghadEDdy.js → goat-CwsbfQeu.js} +16 -15
- package/dist/src/{goat-una6pZGP.cjs → goat-DOMbozoX.cjs} +18 -17
- package/dist/src/graders-B3D7kCcD.js +3 -0
- package/dist/src/{graders-BGP99PdK.js → graders-BQt1BaQe.js} +18 -18
- package/dist/src/{graders-ClrU2fnd.cjs → graders-CBQ2s6gz.cjs} +18 -18
- package/dist/src/{graders-C0nXU_ZP.js → graders-DaRU98zs.js} +18 -18
- package/dist/src/{graders-BX0f2tvS.js → graders-KXzjnIim.js} +18 -18
- package/dist/src/{hydra-DE4xWwyc.js → hydra-BU6GjYoQ.js} +35 -17
- package/dist/src/{hydra-BxdG4nkg.js → hydra-BmXHxlyl.js} +33 -15
- package/dist/src/{hydra-BSNZZm2M.js → hydra-CR0KyYDb.js} +35 -17
- package/dist/src/{hydra-DrJttnvw.cjs → hydra-RO9jBks7.cjs} +35 -17
- package/dist/src/{image-B_fPIwdg.js → image-BBmZdKO3.js} +3 -3
- package/dist/src/{image-QzmydkiG.js → image-B_PFG7IG.js} +3 -3
- package/dist/src/{image-BvUAW344.js → image-BtODOZjh.js} +4 -4
- package/dist/src/{image-Cvjwx1uY.js → image-CYuNJIqd.js} +4 -4
- package/dist/src/{image-DfVCGPbI.cjs → image-E00WFZkq.cjs} +3 -3
- package/dist/src/{image-X0oY4350.cjs → image-HK2Cfqb1.cjs} +4 -4
- package/dist/src/{image-BN-hjLL9.js → image-LGj8dTcr.js} +3 -3
- package/dist/src/{image-B4oBtu6J.js → image-YMKejC0r.js} +4 -4
- package/dist/src/index.cjs +112 -115
- package/dist/src/index.d.cts +13 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.js +113 -116
- package/dist/src/{indirectWebPwn-DBQhOjoD.js → indirectWebPwn-B80dLlFC.js} +5 -5
- package/dist/src/{indirectWebPwn-uyWdHx04.js → indirectWebPwn-BMTXXznx.js} +4 -4
- package/dist/src/{indirectWebPwn-tNx9OZ35.js → indirectWebPwn-BZFPV7Q9.js} +4 -4
- package/dist/src/{indirectWebPwn-CfQJt3gk.cjs → indirectWebPwn-BaEQEOIO.cjs} +5 -5
- package/dist/src/{indirectWebPwn-OsXnKejv.js → indirectWebPwn-BzpyMnFS.js} +5 -5
- package/dist/src/{indirectWebPwn-CbjUG0rh.js → indirectWebPwn-CiWB-vVH.js} +4 -4
- package/dist/src/{indirectWebPwn-BJ22AbQa.cjs → indirectWebPwn-D7NA9Nsv.cjs} +4 -4
- package/dist/src/{indirectWebPwn-02ZIghCS.js → indirectWebPwn-o_bEFMjP.js} +5 -5
- package/dist/src/{iterative-DJQEQpG3.js → iterative-B-l0syBV.js} +25 -15
- package/dist/src/{iterative-DQBuWM-j.cjs → iterative-BACUeCCz.cjs} +25 -15
- package/dist/src/{iterative-FTS4Bz67.js → iterative-CVwoExo8.js} +25 -15
- package/dist/src/{iterative-CpU6i2As.js → iterative-QDrGSyss.js} +23 -13
- package/dist/src/{iterativeImage-BUABMVOA.js → iterativeImage-BQg2OwA6.js} +3 -3
- package/dist/src/{iterativeImage-Doz8mgxF.js → iterativeImage-Bwn0fM75.js} +4 -4
- package/dist/src/{iterativeImage-ByFWkxax.cjs → iterativeImage-CcgVyASo.cjs} +4 -4
- package/dist/src/{iterativeImage-BzUapOUi.js → iterativeImage-D_UbQXg4.js} +4 -4
- package/dist/src/{iterativeMeta-C7APE_P1.js → iterativeMeta-CIu-CHRS.js} +36 -16
- package/dist/src/{iterativeMeta-B3YiAOc8.js → iterativeMeta-CN8CNjFA.js} +36 -16
- package/dist/src/{iterativeMeta-DgoQ7bLh.js → iterativeMeta-DN6BTjpq.js} +34 -14
- package/dist/src/{iterativeMeta-CSS8M6Ds.cjs → iterativeMeta-DlqY3BsS.cjs} +36 -16
- package/dist/src/{iterativeTree-DvZ7GBwt.js → iterativeTree-CJ8a8G9T.js} +78 -28
- package/dist/src/{iterativeTree-B5zxBBSW.js → iterativeTree-DcuFXnjL.js} +78 -28
- package/dist/src/{iterativeTree-CNyIk0Yn.js → iterativeTree-FrDDYAN0.js} +76 -26
- package/dist/src/{iterativeTree-CPMF10ve.cjs → iterativeTree-LOgAi0nU.cjs} +78 -28
- package/dist/src/{knowledgeBase-DUh34xba.cjs → knowledgeBase-CdbcGBZF.cjs} +4 -4
- package/dist/src/{knowledgeBase-Bi_8sV-H.js → knowledgeBase-CjOXp6Lr.js} +4 -4
- package/dist/src/{knowledgeBase-BadkINlJ.js → knowledgeBase-DxAq4n4z.js} +4 -4
- package/dist/src/{knowledgeBase-CkMljjdg.js → knowledgeBase-o_wTLzrt.js} +4 -4
- package/dist/src/{litellm-BKBo0jpC.js → litellm-B2gHwya_.js} +4 -4
- package/dist/src/{litellm-CtAr7bKG.cjs → litellm-CPpdlO7n.cjs} +4 -4
- package/dist/src/{litellm-BXyn5kZK.js → litellm-CYfgxLrM.js} +4 -4
- package/dist/src/{litellm-CNcfbCfa.js → litellm-ojWBKU3C.js} +4 -4
- package/dist/src/{luma-ray-D3FUc2K3.cjs → luma-ray-BCCO9XXG.cjs} +3 -3
- package/dist/src/{luma-ray-BMX1iEB6.js → luma-ray-BPrdihAb.js} +3 -3
- package/dist/src/{luma-ray-CR5TSpp4.js → luma-ray-DP5N79lB.js} +3 -3
- package/dist/src/{luma-ray-OEMmS1RB.js → luma-ray-DTDyoAlM.js} +3 -3
- package/dist/src/main.js +116 -119
- package/dist/src/{memoryPoisoning-Dp-btinn.cjs → memoryPoisoning-B6N3us35.cjs} +6 -6
- package/dist/src/{memoryPoisoning-D8h9gXJF.js → memoryPoisoning-Bc_BK_k2.js} +6 -6
- package/dist/src/{memoryPoisoning-CM83NWYl.js → memoryPoisoning-D375zwSX.js} +6 -6
- package/dist/src/{memoryPoisoning-cLuCoTuJ.js → memoryPoisoning-DJA0YjJT.js} +6 -6
- package/dist/src/{messages-BabO-cX8.js → messages-Bg29Nbit.js} +7 -7
- package/dist/src/{messages-DBPir0TQ.cjs → messages-BrZEnHsV.cjs} +7 -7
- package/dist/src/{messages-vsE_-Lv0.js → messages-CBulRaud.js} +7 -7
- package/dist/src/{messages-DGUlSNU7.js → messages-K9A8RxBM.js} +7 -7
- package/dist/src/{mischievousUser-0l8GD7Dp.js → mischievousUser-BDLwSGN0.js} +5 -5
- package/dist/src/{mischievousUser-frFYKxu6.js → mischievousUser-Blx-OtT3.js} +5 -5
- package/dist/src/{mischievousUser-BUOP9W5r.js → mischievousUser-CHuTTvBg.js} +5 -5
- package/dist/src/{mischievousUser-olGgHIVR.cjs → mischievousUser-CSUrH3fq.cjs} +5 -5
- package/dist/src/{modelslab-Cogmu4mG.js → modelslab-BjEk7yCP.js} +4 -4
- package/dist/src/{modelslab-EyDczZ5A.js → modelslab-CBCrdIBc.js} +4 -4
- package/dist/src/{modelslab-Dzst7VTU.js → modelslab-CrGpXuhv.js} +4 -4
- package/dist/src/{modelslab-CNV5bMSk.cjs → modelslab-Cvh0klQx.cjs} +4 -4
- package/dist/src/{nova-reel-BGPNBOMS.js → nova-reel-CUDDZcSA.js} +3 -3
- package/dist/src/{nova-reel-B_5NKFu1.js → nova-reel-CyDESu5J.js} +3 -3
- package/dist/src/{nova-reel-CjJRxI1X.cjs → nova-reel-DH_Ksu6X.cjs} +3 -3
- package/dist/src/{nova-reel-C4eUJGse.js → nova-reel-YQAqUYJY.js} +3 -3
- package/dist/src/{nova-sonic-ChPlh5na.js → nova-sonic-BVFFB7JZ.js} +2 -2
- package/dist/src/{nova-sonic-DuOG9Aun.cjs → nova-sonic-Bg3cxMMu.cjs} +2 -2
- package/dist/src/{nova-sonic-CrV0iaY_.js → nova-sonic-BhmnRGyh.js} +2 -2
- package/dist/src/{nova-sonic-BNGmgfFz.js → nova-sonic-DxmK95c1.js} +2 -2
- package/dist/src/{openclaw-Dphc01BY.cjs → openclaw-CHQaZi_-.cjs} +6 -6
- package/dist/src/{openclaw-zIJAsz3P.js → openclaw-CWOm2eOr.js} +6 -6
- package/dist/src/{openclaw-CF7fMido.js → openclaw-Cdk9JKfY.js} +6 -6
- package/dist/src/{openclaw-BIHlu_36.js → openclaw-DhF8rUpI.js} +6 -6
- package/dist/src/{opencode-sdk-B3vlPLsp.js → opencode-sdk-BRjiPV-g.js} +2 -2
- package/dist/src/{opencode-sdk-DoY6GbWw.cjs → opencode-sdk-CPFMw0ed.cjs} +2 -2
- package/dist/src/{opencode-sdk-sRKYHGoI.js → opencode-sdk-CaSOCsBA.js} +2 -2
- package/dist/src/{opencode-sdk-D05JSgMQ.js → opencode-sdk-CqkyG8De.js} +2 -2
- package/dist/src/{promptfoo-Rjp-MeBb.js → promptfoo-BU4_0J85.js} +64 -7
- package/dist/src/{promptfoo-BDrfT30-.js → promptfoo-CReYAtfb.js} +64 -7
- package/dist/src/{promptfoo-b-baRMj-.cjs → promptfoo-ClChwT74.cjs} +93 -6
- package/dist/src/{promptfoo-Cm4hiy1Y.js → promptfoo-CqEpj6Sr.js} +64 -7
- package/dist/src/{providers-B9KzWxAX.js → providers-B7TyByfj.js} +94 -50
- package/dist/src/{providers-DVYRZP4E.js → providers-BGc7tDtQ.js} +93 -49
- package/dist/src/{providers-BYAn82cf.js → providers-CSOp-bCm.js} +1 -1
- package/dist/src/{providers-BDVVIQM6.cjs → providers-V6RBuieY.cjs} +93 -49
- package/dist/src/{providers-BCCz6_IX.js → providers-iH3Sw1yo.js} +93 -49
- package/dist/src/{quiverai-BvIhI_0l.js → quiverai-58BtRRet.js} +3 -3
- package/dist/src/{quiverai-Cv7rJKDz.js → quiverai-C1dYu5MW.js} +3 -3
- package/dist/src/{quiverai-CdTWPe-A.js → quiverai-CNMIpZQg.js} +3 -3
- package/dist/src/{quiverai-BAp6iTZD.cjs → quiverai-fmSfU43k.cjs} +3 -3
- package/dist/src/{registry-KCVF1CFC.cjs → registry-6Jw6ebor.cjs} +14 -14
- package/dist/src/{registry-BUJrgjwv.js → registry-BTGk2ZkB.js} +14 -14
- package/dist/src/{registry-DXm1t_x0.js → registry-BTNqmP5o.js} +14 -14
- package/dist/src/{registry-Dp5EqoXc.js → registry-NGnOG2xa.js} +14 -14
- package/dist/src/{remoteGeneration-COpWcmWd.js → remoteGeneration--D6WjzUm.js} +4 -4
- package/dist/src/{remoteGeneration-DS9N3pgB.cjs → remoteGeneration-BpIYlb_O.cjs} +4 -4
- package/dist/src/{remoteGeneration-DsaSwmG2.js → remoteGeneration-CJC3E0aW.js} +4 -4
- package/dist/src/{remoteGeneration-B1_XsKXU.js → remoteGeneration-D6UjE2JT.js} +4 -4
- package/dist/src/{responses-B6ktc3Ra.js → responses-5Gf5HNOi.js} +9 -5
- package/dist/src/{responses-URRzV8qE.js → responses-BVi7xIdv.js} +9 -5
- package/dist/src/{responses-1UFFF9N_.cjs → responses-CUARGrhY.cjs} +9 -5
- package/dist/src/{responses-B3W2JvOQ.js → responses-CrmWv6iz.js} +9 -5
- package/dist/src/{sagemaker-DzffAqo_.cjs → sagemaker-BeVTKfrv.cjs} +9 -9
- package/dist/src/{sagemaker-yr1QKeBs.js → sagemaker-BwbV5U7_.js} +9 -9
- package/dist/src/{sagemaker-vhtSV7JI.js → sagemaker-ClAZ6Qwc.js} +9 -9
- package/dist/src/{sagemaker-CujrzP1a.js → sagemaker-DY2qrOpq.js} +9 -9
- package/dist/src/{scanner-DS0109SS.js → scanner-BS-iFIp3.js} +5 -5
- package/dist/src/server/index.js +111 -114
- package/dist/src/{server-B8rqV126.cjs → server-BHOEL8p8.cjs} +3 -3
- package/dist/src/{server-CMJD10J4.js → server-CbiJppij.js} +3 -3
- package/dist/src/server-D18AAlAc.js +3 -0
- package/dist/src/{server-DhMHosWj.js → server-DLYjSFm2.js} +5 -5
- package/dist/src/{server-Ddp8GNMp.js → server-JQYD_Nws.js} +5 -5
- package/dist/src/{shared-7pmVZLNO.js → shared-CRq0gGVf.js} +8 -8
- package/dist/src/{shared-D6IjElRI.js → shared-CSIGeGLl.js} +8 -8
- package/dist/src/{shared-9WHQ1oNE.js → shared-DNvim54U.js} +7 -7
- package/dist/src/{shared-WkgnDkcg.cjs → shared-aHWko3P1.cjs} +8 -8
- package/dist/src/{simulatedUser-U_qAHnuB.js → simulatedUser-C7sOFSF6.js} +5 -5
- package/dist/src/{simulatedUser-C9aQObBI.js → simulatedUser-DH_7RzEQ.js} +5 -5
- package/dist/src/{simulatedUser-p3tACcmw.js → simulatedUser-lgMMmniD.js} +5 -5
- package/dist/src/{simulatedUser-Cu601Dd4.cjs → simulatedUser-mnCUS9Bm.cjs} +5 -5
- package/dist/src/{storage-QdU-SmvD.js → storage-95htjpLs.js} +3 -3
- package/dist/src/{storage-CA-v9V2v.cjs → storage-A4WnAeN3.cjs} +3 -3
- package/dist/src/{storage-CD-GWAdx.js → storage-B2Ql_oq4.js} +3 -3
- package/dist/src/{storage-BU4qcnOb.js → storage-EKVWZBNY.js} +4 -4
- package/dist/src/{strategies-DRJjGTIY.js → strategies-CBI1brSy.js} +10 -10
- package/dist/src/{strategies-7CS3Alao.cjs → strategies-CCcnEbFO.cjs} +9 -9
- package/dist/src/{strategies-CiSeroPH.js → strategies-CD1gHeeQ.js} +9 -9
- package/dist/src/telemetry-BUm_krVX.js +3 -0
- package/dist/src/{telemetry-DmXYcJNV.js → telemetry-BbpmrenM.js} +4 -4
- package/dist/src/{telemetry-DwX9XUN5.js → telemetry-C4bX-6Sr.js} +4 -4
- package/dist/src/{telemetry-CJ7FnCsc.cjs → telemetry-C_ImlCOk.cjs} +4 -4
- package/dist/src/{telemetry-00ezXr_t.js → telemetry-DOE567Wj.js} +4 -4
- package/dist/src/{tracingOptions-ji2OuXbT.js → tracingOptions-BOP1FsRt.js} +2 -2
- package/dist/src/{tracingOptions-Chi74lOD.js → tracingOptions-BvmDa_jH.js} +2 -2
- package/dist/src/{tracingOptions-DrbSFaKy.cjs → tracingOptions-DFBoE8O0.cjs} +2 -2
- package/dist/src/{tracingOptions-BnwKCkSB.js → tracingOptions-xhjOg2b1.js} +2 -2
- package/dist/src/{transcription-Dkd22_4K.js → transcription-BOXDoehT.js} +4 -4
- package/dist/src/{transcription-CfU5loSq.js → transcription-CpVdKc4P.js} +4 -4
- package/dist/src/{transcription-mzuf18Mq.cjs → transcription-D8kkPXg_.cjs} +4 -4
- package/dist/src/{transcription-B8uIgCYX.js → transcription-Z94eV9LR.js} +4 -4
- package/dist/src/{transform-BIMynQsA.js → transform-BufxPIQL.js} +3 -3
- package/dist/src/{transform-DhNkAUs8.cjs → transform-DJkt81VY.cjs} +3 -3
- package/dist/src/{transform-EtD4jAWi.js → transform-DtTfiGoh.js} +3 -3
- package/dist/src/{transform-DmvYBRll.js → transform-Wp6s_5QE.js} +3 -3
- package/dist/src/{util-IYzs5Y04.cjs → util-BHCAeuXx.cjs} +3 -3
- package/dist/src/{util--WMgw7wM.js → util-CMrHV35u.js} +3 -3
- package/dist/src/{util-SPsvFONY.cjs → util-COnzevXE.cjs} +3 -3
- package/dist/src/{util-LKTmNsMQ.js → util-CYev3d-r.js} +16 -3
- package/dist/src/{util-Df8YMvS1.js → util-DGqkTb2-.js} +4 -4
- package/dist/src/{util-CN8om2rz.cjs → util-DNtUsus_.cjs} +4 -4
- package/dist/src/{util-Bx677_k2.js → util-DRfqa4xz.js} +3 -3
- package/dist/src/{util-DiQ3QvBB.js → util-DTq3jq2z.js} +3 -3
- package/dist/src/{util-5WnCSb0h.js → util-DeY58psG.js} +16 -3
- package/dist/src/{util-DNl96nNs.js → util-DpV6KT5i.js} +4 -4
- package/dist/src/{util-I-Rf-KaD.js → util-DwNJzqOV.js} +3 -3
- package/dist/src/{util-kDURhgJW.js → util-ETfU_sS9.js} +4 -4
- package/dist/src/{util-BSIuSLVK.cjs → util-NYQvo1C7.cjs} +16 -3
- package/dist/src/{util-CoQWM76y.js → util-X4KQgyVD.js} +3 -3
- package/dist/src/{util-DURocbYR.js → util-jZRrXe1P.js} +3 -3
- package/dist/src/{util-efByNxcr.js → util-o2Qg5rZv.js} +16 -3
- package/dist/src/{version-BK20a4sw.js → version-CHR-EFec.js} +2 -2
- package/dist/src/{version-eRkNuGv8.js → version-F0YDgb7J.js} +2 -2
- package/dist/src/{version-BWCSaByA.cjs → version-VzUqOBZk.cjs} +2 -2
- package/dist/src/{version-lpHV_53E.js → version-qVEN5qCm.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/dist/src/app/assets/Report-BNHJKN35.js +0 -1
- package/dist/src/cache-Cf7b4pWE.js +0 -3
- package/dist/src/cloud-p96PA4MH.js +0 -3
- package/dist/src/codex-sdk-BGjVAk23.js +0 -3
- package/dist/src/evalResult-DqzsS6_W.js +0 -3
- package/dist/src/evaluator-DNdJF1Gv.js +0 -3
- package/dist/src/fetch-_YgGd2qv.js +0 -3
- package/dist/src/graders-BDT7dif6.js +0 -3
- package/dist/src/server-BaLytskk.js +0 -3
- package/dist/src/telemetry-ByPqDcKC.js +0 -3
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { A as getMaxEvalTimeMs, D as getEnvInt, N as state, O as getEnvString, S as summarizeEvaluateResultForLogging, T as getEnvBool, _ as extractJsonObjects, c as setLogCallback, g as extractFirstJsonObject, j as isCI, k as getEvalTimeoutMs, r as globalLogCallback, s as logger, v as getAjv, x as safeJsonStringify } from "./logger-BbY6ypFL.js";
|
|
3
|
-
import { L as FILE_METADATA_KEY, f as sleep, r as fetchWithRetries, w as parseChatPrompt, x as isPromptfooSampleTarget } from "./fetch-
|
|
4
|
-
import { n as VERSION } from "./version-
|
|
3
|
+
import { L as FILE_METADATA_KEY, f as sleep, r as fetchWithRetries, w as parseChatPrompt, x as isPromptfooSampleTarget } from "./fetch-Cpf1U1nO.js";
|
|
4
|
+
import { n as VERSION } from "./version-F0YDgb7J.js";
|
|
5
5
|
import { t as invariant } from "./invariant-B2Rf6avk.js";
|
|
6
|
-
import { r as telemetry } from "./telemetry-
|
|
6
|
+
import { r as telemetry } from "./telemetry-DOE567Wj.js";
|
|
7
7
|
import { at as MULTI_INPUT_VAR, d as isGradingResult, nt as LLAMA_GUARD_REPLICATE_PROVIDER, p as isApiProvider, s as ResultFailureReason } from "./types-BFevViUY.js";
|
|
8
8
|
import { i as isJavascriptFile } from "./fileExtensions-D4GCJ67J.js";
|
|
9
9
|
import { i as extractVariablesFromTemplate, o as getNunjucksEngine, r as analyzeTemplateReference } from "./render-CSP99NLm.js";
|
|
10
10
|
import { t as providerRegistry } from "./providerRegistry-ReCd0sFa.js";
|
|
11
|
-
import { l as shouldGenerateRemote } from "./remoteGeneration-
|
|
12
|
-
import { c as promptYesNo } from "./server-
|
|
11
|
+
import { l as shouldGenerateRemote } from "./remoteGeneration-D6UjE2JT.js";
|
|
12
|
+
import { c as promptYesNo } from "./server-DLYjSFm2.js";
|
|
13
13
|
import { n as isNonTransientHttpStatus } from "./errors-9PcUL8BC.js";
|
|
14
|
-
import { l as withCacheNamespace, o as getCache } from "./cache-
|
|
14
|
+
import { l as withCacheNamespace, o as getCache } from "./cache-BR77mdIR.js";
|
|
15
15
|
import { r as runPython } from "./pythonUtils-CgYxeSmO.js";
|
|
16
|
-
import { B as parseFileUrl, C as isOpenAiProvider, F as maybeLoadToolsFromExternalFile, S as isGoogleProvider, w as isProviderAllowed, x as isAnthropicProvider, z as loadFunction } from "./util-
|
|
17
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
18
|
-
import { h as validateFunctionCall } from "./transform-
|
|
19
|
-
import { l as validateFunctionCall$1 } from "./util-
|
|
20
|
-
import { _ as VertexChatProvider, n as loadApiProvider, v as GoogleLiveProvider, y as AIStudioChatProvider } from "./providers-
|
|
16
|
+
import { B as parseFileUrl, C as isOpenAiProvider, F as maybeLoadToolsFromExternalFile, S as isGoogleProvider, w as isProviderAllowed, x as isAnthropicProvider, z as loadFunction } from "./util-jZRrXe1P.js";
|
|
17
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-DTdf-J5Q.js";
|
|
18
|
+
import { h as validateFunctionCall } from "./transform-DtTfiGoh.js";
|
|
19
|
+
import { l as validateFunctionCall$1 } from "./util-DeY58psG.js";
|
|
20
|
+
import { _ as VertexChatProvider, n as loadApiProvider, v as GoogleLiveProvider, y as AIStudioChatProvider } from "./providers-B7TyByfj.js";
|
|
21
21
|
import { a as createEmptyTokenUsage, i as createEmptyAssertions, n as accumulateResponseTokenUsage, o as normalizeTokenUsage, r as accumulateTokenUsage, t as accumulateAssertionTokenUsage } from "./tokenUsageUtils-CDet74yk.js";
|
|
22
22
|
import { t as getProcessShim } from "./processShim-BBxt7LKO.js";
|
|
23
23
|
import { n as loadFromPackage, t as isPackagePath } from "./packageParser--MWTSrPW.js";
|
|
24
24
|
import { n as runRuby } from "./rubyUtils-CXlFM2rR.js";
|
|
25
|
-
import { c as isBasicRefusal, o as getSessionId } from "./util-
|
|
26
|
-
import { $ as DEFAULT_WEB_SEARCH_PROMPT, Ct as getDefaultProviders, Dt as getGradingProvider, Et as getAndCheckProvider, G as matchesGEval, H as isGraderFailure, J as matchesTrajectoryGoalSuccess, K as matchesLlmRubric, Ot as getProviderCallExecutionContext, St as processFileReference, Tt as callProviderWithContext, U as matchesClosedQa, W as matchesFactuality, Y as doRemoteGrading, _t as splitIntoSentences, at as CONTEXT_RECALL, bt as getFinalTest, ct as CONTEXT_RELEVANCE, dt as renderLlmRubricPrompt, et as SELECT_BEST_PROMPT, ft as cosineSimilarity, gt as normalizeMatcherTokenUsage, ht as fail, it as CONTEXT_FAITHFULNESS_NLI_STATEMENTS, kt as withProviderCallExecutionContext, lt as CONTEXT_RELEVANCE_BAD, mt as euclideanDistance, n as getGraderById, nt as ANSWER_RELEVANCY_GENERATE, ot as CONTEXT_RECALL_ATTRIBUTED_TOKEN, pt as dotProduct, q as matchesPiScore, rt as CONTEXT_FAITHFULNESS_LONGFORM, st as CONTEXT_RECALL_NOT_ATTRIBUTED_TOKEN, tt as SUGGEST_PROMPTS_SYSTEM_MESSAGE, ut as loadRubricPrompt, vt as tryParse, wt as DEFAULT_ANTHROPIC_MODEL, xt as loadFromJavaScriptFile, yt as coerceString } from "./graders-
|
|
27
|
-
import { f as redteamProviderManager, g as createProviderRateLimitOptions, h as createRateLimitRegistry, m as TokenUsageTracker } from "./shared-
|
|
25
|
+
import { c as isBasicRefusal, o as getSessionId } from "./util-ETfU_sS9.js";
|
|
26
|
+
import { $ as DEFAULT_WEB_SEARCH_PROMPT, Ct as getDefaultProviders, Dt as getGradingProvider, Et as getAndCheckProvider, G as matchesGEval, H as isGraderFailure, J as matchesTrajectoryGoalSuccess, K as matchesLlmRubric, Ot as getProviderCallExecutionContext, St as processFileReference, Tt as callProviderWithContext, U as matchesClosedQa, W as matchesFactuality, Y as doRemoteGrading, _t as splitIntoSentences, at as CONTEXT_RECALL, bt as getFinalTest, ct as CONTEXT_RELEVANCE, dt as renderLlmRubricPrompt, et as SELECT_BEST_PROMPT, ft as cosineSimilarity, gt as normalizeMatcherTokenUsage, ht as fail, it as CONTEXT_FAITHFULNESS_NLI_STATEMENTS, kt as withProviderCallExecutionContext, lt as CONTEXT_RELEVANCE_BAD, mt as euclideanDistance, n as getGraderById, nt as ANSWER_RELEVANCY_GENERATE, ot as CONTEXT_RECALL_ATTRIBUTED_TOKEN, pt as dotProduct, q as matchesPiScore, rt as CONTEXT_FAITHFULNESS_LONGFORM, st as CONTEXT_RECALL_NOT_ATTRIBUTED_TOKEN, tt as SUGGEST_PROMPTS_SYSTEM_MESSAGE, ut as loadRubricPrompt, vt as tryParse, wt as DEFAULT_ANTHROPIC_MODEL, xt as loadFromJavaScriptFile, yt as coerceString } from "./graders-BQt1BaQe.js";
|
|
27
|
+
import { f as redteamProviderManager, g as createProviderRateLimitOptions, h as createRateLimitRegistry, m as TokenUsageTracker } from "./shared-DNvim54U.js";
|
|
28
28
|
import { i as generateIdFromPrompt } from "./utils-BFOh20Gb.js";
|
|
29
29
|
import { a as getTransformLabel, i as getTransformErrorMessage, o as transform, r as TransformInputType } from "./transform-BnSTnFlp.js";
|
|
30
30
|
import { n as getTraceStore } from "./store-DKd5592Q.js";
|
|
31
31
|
import { a as getActualPromptWithFallback, r as updateSignalFile } from "./signal-CSurUUyV.js";
|
|
32
|
-
import { t as extractAndStoreBinaryData } from "./extractor-
|
|
32
|
+
import { t as extractAndStoreBinaryData } from "./extractor-BVkZtk4R.js";
|
|
33
33
|
import { i as throwIfTargetPromptExceedsMaxChars } from "./promptLength-4X-Wd8PG.js";
|
|
34
|
-
import { n as checkExfilTracking } from "./indirectWebPwn-
|
|
34
|
+
import { n as checkExfilTracking } from "./indirectWebPwn-BMTXXznx.js";
|
|
35
35
|
import { n as getFirstStringAttribute, r as getToolNameFromAttributes, t as TOOL_ARGUMENT_ATTRIBUTE_KEYS } from "./toolAttributes-COVgDrBG.js";
|
|
36
|
-
import { i as filterFiniteScores, n as renderPrompt, r as runExtensionHook, t as collectFileMetadata } from "./evaluatorHelpers-
|
|
36
|
+
import { i as filterFiniteScores, n as renderPrompt, r as runExtensionHook, t as collectFileMetadata } from "./evaluatorHelpers-D1_kwvyp.js";
|
|
37
37
|
import { AsyncResource } from "node:async_hooks";
|
|
38
38
|
import chalk from "chalk";
|
|
39
39
|
import fs, { createWriteStream } from "fs";
|
|
@@ -6226,7 +6226,7 @@ async function resolveDefaultTestProvider(defaultTest, testCase) {
|
|
|
6226
6226
|
const defaultProvider = defaultTest.provider;
|
|
6227
6227
|
if (isApiProvider(defaultProvider)) return defaultProvider;
|
|
6228
6228
|
if (typeof defaultProvider === "object" && defaultProvider.id) {
|
|
6229
|
-
const { loadApiProvider } = await import("./providers-
|
|
6229
|
+
const { loadApiProvider } = await import("./providers-CSOp-bCm.js");
|
|
6230
6230
|
return loadApiProvider(typeof defaultProvider.id === "function" ? defaultProvider.id() : defaultProvider.id, { options: defaultProvider });
|
|
6231
6231
|
}
|
|
6232
6232
|
return defaultProvider;
|
|
@@ -6386,7 +6386,7 @@ function buildRepeatCacheContextByTestIdx(runEvalOptions) {
|
|
|
6386
6386
|
async function filterCompletedResumeSteps(runEvalOptions, evalRecord) {
|
|
6387
6387
|
if (!state.resume || !evalRecord.persisted) return;
|
|
6388
6388
|
try {
|
|
6389
|
-
const { default: EvalResult } = await import("./evalResult-
|
|
6389
|
+
const { default: EvalResult } = await import("./evalResult-BtZSUgQv.js");
|
|
6390
6390
|
const completedPairs = await EvalResult.getCompletedIndexPairs(evalRecord.id, { excludeErrors: state.retryMode });
|
|
6391
6391
|
const originalCount = runEvalOptions.length;
|
|
6392
6392
|
for (let i = runEvalOptions.length - 1; i >= 0; i--) {
|
|
@@ -7495,4 +7495,4 @@ function evaluate(testSuite, evalRecord, options) {
|
|
|
7495
7495
|
//#endregion
|
|
7496
7496
|
export { isAllowedPrompt as a, assertions_default as c, generateVarCombinations as i, readAssertions as l, evaluate as n, accumulateNamedMetric as o, formatVarsForDisplay as r, doesPromptRefMatch as s, ProgressBarManager as t, runAssertions as u };
|
|
7497
7497
|
|
|
7498
|
-
//# sourceMappingURL=evaluator-
|
|
7498
|
+
//# sourceMappingURL=evaluator-n_dEb00o.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { S as getEnvBool, T as getEnvString, a as logger, k as state } from "./logger-Ct2S6Yx-.js";
|
|
2
2
|
import { t as invariant } from "./invariant-Ddh24eXh.js";
|
|
3
|
-
import { t as fetchWithProxy } from "./fetch-
|
|
3
|
+
import { t as fetchWithProxy } from "./fetch-Doks14zQ.js";
|
|
4
4
|
import { a as isVideoFile, i as isJavascriptFile, n as isAudioFile, r as isImageFile } from "./fileExtensions-CXRfY3Ss.js";
|
|
5
5
|
import { r as importModule } from "./esm-BTK1W7lG.js";
|
|
6
6
|
import { i as extractVariablesFromTemplate, n as renderVarsInObject, o as getNunjucksEngine } from "./render-DFfDeYUK.js";
|
|
7
7
|
import { r as runPython } from "./pythonUtils-D0BYebvX.js";
|
|
8
|
-
import "./util-
|
|
9
|
-
import { t as telemetry } from "./telemetry-
|
|
8
|
+
import "./util-DRfqa4xz.js";
|
|
9
|
+
import { t as telemetry } from "./telemetry-C4bX-6Sr.js";
|
|
10
10
|
import { n as loadFromPackage, t as isPackagePath } from "./packageParser-CgE-ziRo.js";
|
|
11
11
|
import { o as transform } from "./transform-CGt7Kt3y2.js";
|
|
12
12
|
import * as fs$1 from "fs";
|
|
@@ -507,4 +507,4 @@ async function runExtensionHook(extensions, hookName, context) {
|
|
|
507
507
|
//#endregion
|
|
508
508
|
export { filterFiniteScores as i, renderPrompt as n, runExtensionHook as r, collectFileMetadata as t };
|
|
509
509
|
|
|
510
|
-
//# sourceMappingURL=evaluatorHelpers-
|
|
510
|
+
//# sourceMappingURL=evaluatorHelpers-CrRObe2z.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
2
|
const require_logger = require("./logger-cfNpzI4o.cjs");
|
|
3
3
|
const require_invariant = require("./invariant-QtnLD03y.cjs");
|
|
4
|
-
const require_fetch = require("./fetch-
|
|
4
|
+
const require_fetch = require("./fetch-Cfm4EuOB.cjs");
|
|
5
5
|
const require_fileExtensions = require("./fileExtensions-BhdwzYaD.cjs");
|
|
6
6
|
const require_esm = require("./esm-BIKakvNa.cjs");
|
|
7
7
|
const require_render = require("./render-BNTrbmBw.cjs");
|
|
8
8
|
const require_pythonUtils = require("./pythonUtils-Cokhluq3.cjs");
|
|
9
|
-
require("./util-
|
|
10
|
-
const require_telemetry = require("./telemetry-
|
|
9
|
+
require("./util-COnzevXE.cjs");
|
|
10
|
+
const require_telemetry = require("./telemetry-C_ImlCOk.cjs");
|
|
11
11
|
const require_packageParser = require("./packageParser-QoCS1FMl.cjs");
|
|
12
12
|
const require_transform = require("./transform-BnSXWmU_2.cjs");
|
|
13
13
|
let fs = require("fs");
|
|
@@ -534,4 +534,4 @@ Object.defineProperty(exports, "runExtensionHook", {
|
|
|
534
534
|
}
|
|
535
535
|
});
|
|
536
536
|
|
|
537
|
-
//# sourceMappingURL=evaluatorHelpers-
|
|
537
|
+
//# sourceMappingURL=evaluatorHelpers-D06I9WFL.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { N as state, O as getEnvString, T as getEnvBool, s as logger } from "./logger-BbY6ypFL.js";
|
|
3
|
-
import { n as fetchWithProxy } from "./fetch-
|
|
3
|
+
import { n as fetchWithProxy } from "./fetch-Cpf1U1nO.js";
|
|
4
4
|
import { t as invariant } from "./invariant-B2Rf6avk.js";
|
|
5
|
-
import { r as telemetry } from "./telemetry-
|
|
5
|
+
import { r as telemetry } from "./telemetry-DOE567Wj.js";
|
|
6
6
|
import { a as isVideoFile, i as isJavascriptFile, n as isAudioFile, r as isImageFile } from "./fileExtensions-D4GCJ67J.js";
|
|
7
7
|
import { r as importModule } from "./esm-Bexx2PFc.js";
|
|
8
8
|
import { i as extractVariablesFromTemplate, n as renderVarsInObject, o as getNunjucksEngine } from "./render-CSP99NLm.js";
|
|
9
9
|
import { r as runPython } from "./pythonUtils-CgYxeSmO.js";
|
|
10
|
-
import "./util-
|
|
10
|
+
import "./util-jZRrXe1P.js";
|
|
11
11
|
import { n as loadFromPackage, t as isPackagePath } from "./packageParser--MWTSrPW.js";
|
|
12
12
|
import { o as transform } from "./transform-BnSTnFlp.js";
|
|
13
13
|
import * as fs$1 from "fs";
|
|
@@ -508,4 +508,4 @@ async function runExtensionHook(extensions, hookName, context) {
|
|
|
508
508
|
//#endregion
|
|
509
509
|
export { filterFiniteScores as i, renderPrompt as n, runExtensionHook as r, collectFileMetadata as t };
|
|
510
510
|
|
|
511
|
-
//# sourceMappingURL=evaluatorHelpers-
|
|
511
|
+
//# sourceMappingURL=evaluatorHelpers-D1_kwvyp.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { T as getEnvBool, s as logger } from "./logger-BbY6ypFL.js";
|
|
3
|
-
import { c as isLoggedIntoCloud } from "./accounts-
|
|
4
|
-
import { a as cloudConfig } from "./cloud-
|
|
3
|
+
import { c as isLoggedIntoCloud } from "./accounts-D6IBfEE0.js";
|
|
4
|
+
import { a as cloudConfig } from "./cloud-DqF5N1aJ.js";
|
|
5
5
|
import { i as storeBlob, r as recordBlobReference } from "./blobs-DODuTK-a.js";
|
|
6
6
|
//#region src/blobs/remoteUpload.ts
|
|
7
7
|
function buildRemoteUrl() {
|
|
@@ -26,7 +26,7 @@ async function uploadBlobRemote(buffer, mimeType, context) {
|
|
|
26
26
|
const apiKey = cloudConfig.getApiKey();
|
|
27
27
|
if (!url || !apiKey) return null;
|
|
28
28
|
try {
|
|
29
|
-
const { fetchWithProxy } = await import("./fetch-
|
|
29
|
+
const { fetchWithProxy } = await import("./fetch-BodQTrMU.js");
|
|
30
30
|
const response = await fetchWithProxy(url, {
|
|
31
31
|
method: "POST",
|
|
32
32
|
headers: {
|
|
@@ -372,4 +372,4 @@ async function recordExistingBlobReferences(value, context, location) {
|
|
|
372
372
|
//#endregion
|
|
373
373
|
export { isBlobStorageEnabled as n, shouldAttemptRemoteBlobUpload as r, extractAndStoreBinaryData as t };
|
|
374
374
|
|
|
375
|
-
//# sourceMappingURL=extractor-
|
|
375
|
+
//# sourceMappingURL=extractor-BVkZtk4R.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as getEnvBool, a as logger } from "./logger-Ct2S6Yx-.js";
|
|
2
|
-
import { T as cloudConfig } from "./fetch-
|
|
3
|
-
import { o as isLoggedIntoCloud } from "./accounts-
|
|
2
|
+
import { T as cloudConfig } from "./fetch-Doks14zQ.js";
|
|
3
|
+
import { o as isLoggedIntoCloud } from "./accounts-DAv_0iE7.js";
|
|
4
4
|
import { n as recordBlobReference, r as storeBlob } from "./blobs-Dwef1Ao1.js";
|
|
5
5
|
//#region src/blobs/remoteUpload.ts
|
|
6
6
|
function buildRemoteUrl() {
|
|
@@ -25,7 +25,7 @@ async function uploadBlobRemote(buffer, mimeType, context) {
|
|
|
25
25
|
const apiKey = cloudConfig.getApiKey();
|
|
26
26
|
if (!url || !apiKey) return null;
|
|
27
27
|
try {
|
|
28
|
-
const { fetchWithProxy } = await import("./fetch-
|
|
28
|
+
const { fetchWithProxy } = await import("./fetch-Doks14zQ.js").then((n) => n.i);
|
|
29
29
|
const response = await fetchWithProxy(url, {
|
|
30
30
|
method: "POST",
|
|
31
31
|
headers: {
|
|
@@ -371,4 +371,4 @@ async function recordExistingBlobReferences(value, context, location) {
|
|
|
371
371
|
//#endregion
|
|
372
372
|
export { isBlobStorageEnabled as n, shouldAttemptRemoteBlobUpload as r, extractAndStoreBinaryData as t };
|
|
373
373
|
|
|
374
|
-
//# sourceMappingURL=extractor-
|
|
374
|
+
//# sourceMappingURL=extractor-D3Fv_Tdh.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as getEnvBool, a as logger } from "./logger-KD8JjCRJ.js";
|
|
2
|
-
import { l as cloudConfig } from "./fetch-
|
|
3
|
-
import { c as isLoggedIntoCloud } from "./accounts-
|
|
2
|
+
import { l as cloudConfig } from "./fetch-BSSAcMxf.js";
|
|
3
|
+
import { c as isLoggedIntoCloud } from "./accounts-BWjqwsrf.js";
|
|
4
4
|
import { i as storeBlob, r as recordBlobReference } from "./blobs-CeFdPn_T.js";
|
|
5
5
|
//#region src/blobs/remoteUpload.ts
|
|
6
6
|
function buildRemoteUrl() {
|
|
@@ -25,7 +25,7 @@ async function uploadBlobRemote(buffer, mimeType, context) {
|
|
|
25
25
|
const apiKey = cloudConfig.getApiKey();
|
|
26
26
|
if (!url || !apiKey) return null;
|
|
27
27
|
try {
|
|
28
|
-
const { fetchWithProxy } = await import("./fetch-
|
|
28
|
+
const { fetchWithProxy } = await import("./fetch-BSSAcMxf.js").then((n) => n.i);
|
|
29
29
|
const response = await fetchWithProxy(url, {
|
|
30
30
|
method: "POST",
|
|
31
31
|
headers: {
|
|
@@ -371,4 +371,4 @@ async function recordExistingBlobReferences(value, context, location) {
|
|
|
371
371
|
//#endregion
|
|
372
372
|
export { isBlobStorageEnabled as n, shouldAttemptRemoteBlobUpload as r, extractAndStoreBinaryData as t };
|
|
373
373
|
|
|
374
|
-
//# sourceMappingURL=extractor-
|
|
374
|
+
//# sourceMappingURL=extractor-Jp53vs-6.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_logger = require("./logger-cfNpzI4o.cjs");
|
|
2
|
-
const require_fetch = require("./fetch-
|
|
3
|
-
const require_accounts = require("./accounts-
|
|
2
|
+
const require_fetch = require("./fetch-Cfm4EuOB.cjs");
|
|
3
|
+
const require_accounts = require("./accounts-BVz5gHLK.cjs");
|
|
4
4
|
const require_blobs = require("./blobs-B0977K1O.cjs");
|
|
5
5
|
//#region src/blobs/remoteUpload.ts
|
|
6
6
|
function buildRemoteUrl() {
|
|
@@ -25,7 +25,7 @@ async function uploadBlobRemote(buffer, mimeType, context) {
|
|
|
25
25
|
const apiKey = require_fetch.cloudConfig.getApiKey();
|
|
26
26
|
if (!url || !apiKey) return null;
|
|
27
27
|
try {
|
|
28
|
-
const { fetchWithProxy } = await Promise.resolve().then(() => require("./fetch-
|
|
28
|
+
const { fetchWithProxy } = await Promise.resolve().then(() => require("./fetch-Cfm4EuOB.cjs")).then((n) => n.fetch_exports);
|
|
29
29
|
const response = await fetchWithProxy(url, {
|
|
30
30
|
method: "POST",
|
|
31
31
|
headers: {
|
|
@@ -388,4 +388,4 @@ Object.defineProperty(exports, "shouldAttemptRemoteBlobUpload", {
|
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
390
|
|
|
391
|
-
//# sourceMappingURL=extractor-
|
|
391
|
+
//# sourceMappingURL=extractor-bV_NOoaz.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DEq-mXcV.js";
|
|
2
2
|
import { S as getEnvBool, T as getEnvString, a as logger, i as logRequestResponse, k as state, p as sanitizeUrl, w as getEnvInt, x as getConfigDirectoryPath } from "./logger-KD8JjCRJ.js";
|
|
3
|
-
import { n as VERSION } from "./version-
|
|
3
|
+
import { n as VERSION } from "./version-CHR-EFec.js";
|
|
4
4
|
import { t as invariant } from "./invariant-DIYf9sP1.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import * as fs$2 from "fs";
|
|
@@ -993,4 +993,4 @@ async function fetchWithRetries(url, options = {}, timeout, maxRetries) {
|
|
|
993
993
|
//#endregion
|
|
994
994
|
export { CONSENT_ENDPOINT as A, openaiToolChoiceToBedrock as C, transformToolChoice as D, toTitleCase as E, getDefaultShareViewBaseUrl as F, getShareApiBaseUrl as I, getShareViewBaseUrl as L, R_ENDPOINT as M, TERMINAL_MAX_WIDTH as N, transformTools as O, getDefaultPort as P, FILE_METADATA_KEY as R, isPromptfooSampleTarget as S, parseChatPrompt as T, LONG_RUNNING_MODEL_TIMEOUT_MS as _, getFetchWithProxyHeaders as a, isOpenAIToolArray as b, CloudConfig as c, writeGlobalConfig as d, writeGlobalConfigPartial as f, parseRetryAfter as g, parseRateLimitHeaders as h, fetch_exports as i, EVENTS_ENDPOINT as j, CLOUD_PROVIDER_PREFIX as k, cloudConfig as l, sleep as m, fetchWithRetries as n, withFetchRetryContext as o, getCurrentTimestamp as p, fetchWithTimeout as r, isPromptfooCloudApiHost as s, fetchWithProxy as t, readGlobalConfig as u, REQUEST_TIMEOUT_MS as v, openaiToolsToBedrock as w, isOpenAIToolChoice as x, calculateCost as y, HUMAN_ASSERTION_TYPE as z };
|
|
995
995
|
|
|
996
|
-
//# sourceMappingURL=fetch-
|
|
996
|
+
//# sourceMappingURL=fetch-BSSAcMxf.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
2
|
const require_logger = require("./logger-cfNpzI4o.cjs");
|
|
3
3
|
const require_invariant = require("./invariant-QtnLD03y.cjs");
|
|
4
|
-
const require_version = require("./version-
|
|
4
|
+
const require_version = require("./version-VzUqOBZk.cjs");
|
|
5
5
|
let fs = require("fs");
|
|
6
6
|
fs = require_rolldown_runtime.__toESM(fs, 1);
|
|
7
7
|
let path = require("path");
|
|
@@ -1220,4 +1220,4 @@ Object.defineProperty(exports, "writeGlobalConfigPartial", {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
});
|
|
1222
1222
|
|
|
1223
|
-
//# sourceMappingURL=fetch-
|
|
1223
|
+
//# sourceMappingURL=fetch-Cfm4EuOB.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { D as getEnvInt, N as state, O as getEnvString, T as getEnvBool, h as sanitizeUrl, o as logRequestResponse, s as logger } from "./logger-BbY6ypFL.js";
|
|
3
|
-
import { n as VERSION } from "./version-
|
|
3
|
+
import { n as VERSION } from "./version-F0YDgb7J.js";
|
|
4
4
|
import { t as invariant } from "./invariant-B2Rf6avk.js";
|
|
5
|
-
import { a as cloudConfig, n as CLOUD_API_HOST } from "./cloud-
|
|
5
|
+
import { a as cloudConfig, n as CLOUD_API_HOST } from "./cloud-DqF5N1aJ.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import path from "path";
|
|
8
8
|
import yaml from "js-yaml";
|
|
@@ -794,4 +794,4 @@ async function fetchWithRetries(url, options = {}, timeout, maxRetries) {
|
|
|
794
794
|
//#endregion
|
|
795
795
|
export { EVENTS_ENDPOINT as A, openaiToolsToBedrock as C, transformTools as D, transformToolChoice as E, getShareApiBaseUrl as F, getShareViewBaseUrl as I, FILE_METADATA_KEY as L, TERMINAL_MAX_WIDTH as M, getDefaultPort as N, CLOUD_PROVIDER_PREFIX as O, getDefaultShareViewBaseUrl as P, HUMAN_ASSERTION_TYPE as R, openaiToolChoiceToBedrock as S, toTitleCase as T, REQUEST_TIMEOUT_MS as _, getFetchWithProxyHeaders as a, isOpenAIToolChoice as b, isTransientError as c, getCurrentTimestamp as d, sleep as f, LONG_RUNNING_MODEL_TIMEOUT_MS as g, parseRetryAfter as h, fetchWithTimeout as i, R_ENDPOINT as j, CONSENT_ENDPOINT as k, withFetchRetryContext as l, parseRateLimitHeaders as m, fetchWithProxy as n, handleRateLimit as o, sleepWithAbort as p, fetchWithRetries as r, isRateLimited as s, clearAgentCache as t, isPromptfooCloudApiHost as u, calculateCost as v, parseChatPrompt as w, isPromptfooSampleTarget as x, isOpenAIToolArray as y };
|
|
796
796
|
|
|
797
|
-
//# sourceMappingURL=fetch-
|
|
797
|
+
//# sourceMappingURL=fetch-Cpf1U1nO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DEq-mXcV.js";
|
|
2
2
|
import { S as getEnvBool, T as getEnvString, a as logger, i as logRequestResponse, k as state, p as sanitizeUrl, w as getEnvInt, x as getConfigDirectoryPath } from "./logger-Ct2S6Yx-.js";
|
|
3
3
|
import { t as invariant } from "./invariant-Ddh24eXh.js";
|
|
4
|
-
import { n as VERSION } from "./version-
|
|
4
|
+
import { n as VERSION } from "./version-qVEN5qCm.js";
|
|
5
5
|
import * as fs$2 from "fs";
|
|
6
6
|
import * as path$1 from "path";
|
|
7
7
|
import path from "path";
|
|
@@ -990,4 +990,4 @@ async function fetchWithRetries(url, options = {}, timeout, maxRetries) {
|
|
|
990
990
|
//#endregion
|
|
991
991
|
export { CONSENT_ENDPOINT as A, transformTools as C, writeGlobalConfig as D, readGlobalConfig as E, getShareApiBaseUrl as F, getShareViewBaseUrl as I, FILE_METADATA_KEY as L, R_ENDPOINT as M, TERMINAL_MAX_WIDTH as N, writeGlobalConfigPartial as O, getDefaultShareViewBaseUrl as P, HUMAN_ASSERTION_TYPE as R, transformToolChoice as S, cloudConfig as T, isPromptfooSampleTarget as _, getFetchWithProxyHeaders as a, parseChatPrompt as b, getCurrentTimestamp as c, parseRetryAfter as d, LONG_RUNNING_MODEL_TIMEOUT_MS as f, isOpenAIToolChoice as g, isOpenAIToolArray as h, fetch_exports as i, EVENTS_ENDPOINT as j, CLOUD_PROVIDER_PREFIX as k, sleep as l, calculateCost as m, fetchWithRetries as n, withFetchRetryContext as o, REQUEST_TIMEOUT_MS as p, fetchWithTimeout as r, isPromptfooCloudApiHost as s, fetchWithProxy as t, parseRateLimitHeaders as u, openaiToolChoiceToBedrock as v, CloudConfig as w, toTitleCase as x, openaiToolsToBedrock as y };
|
|
992
992
|
|
|
993
|
-
//# sourceMappingURL=fetch-
|
|
993
|
+
//# sourceMappingURL=fetch-Doks14zQ.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { a as logger, y as safeJsonStringify } from "./logger-Ct2S6Yx-.js";
|
|
2
2
|
import { t as invariant } from "./invariant-Ddh24eXh.js";
|
|
3
|
-
import { l as sleep, t as fetchWithProxy } from "./fetch-
|
|
4
|
-
import { n as VERSION } from "./version-
|
|
5
|
-
import { i as getUserEmail, o as isLoggedIntoCloud } from "./accounts-
|
|
3
|
+
import { l as sleep, t as fetchWithProxy } from "./fetch-Doks14zQ.js";
|
|
4
|
+
import { n as VERSION } from "./version-qVEN5qCm.js";
|
|
5
|
+
import { i as getUserEmail, o as isLoggedIntoCloud } from "./accounts-DAv_0iE7.js";
|
|
6
6
|
import { o as getNunjucksEngine } from "./render-DFfDeYUK.js";
|
|
7
|
-
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration-
|
|
7
|
+
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration-CJC3E0aW.js";
|
|
8
8
|
import { a as createEmptyTokenUsage, n as accumulateResponseTokenUsage } from "./tokenUsageUtils-CmnQ0G2m.js";
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
11
|
-
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-
|
|
9
|
+
import { a as extractPromptFromTags, o as getSessionId, r as extractInputVarsFromPrompt } from "./util-DpV6KT5i.js";
|
|
10
|
+
import { a as assertRemoteMaterializationHandled, c as isRemoteMaterializationUpgradeError, s as buildRemoteMaterializedInputVariables } from "./promptfoo-CqEpj6Sr.js";
|
|
11
|
+
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-CSIGeGLl.js";
|
|
12
12
|
import { i as throwIfTargetPromptExceedsMaxChars } from "./promptLength-B9nZEfO6.js";
|
|
13
|
-
import { n as checkExfilTracking } from "./indirectWebPwn-
|
|
14
|
-
import { n as renderPrompt } from "./evaluatorHelpers-
|
|
15
|
-
import { t as Strategies } from "./strategies-
|
|
16
|
-
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-
|
|
13
|
+
import { n as checkExfilTracking } from "./indirectWebPwn-CiWB-vVH.js";
|
|
14
|
+
import { n as renderPrompt } from "./evaluatorHelpers-CrRObe2z.js";
|
|
15
|
+
import { t as Strategies } from "./strategies-CD1gHeeQ.js";
|
|
16
|
+
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-BOP1FsRt.js";
|
|
17
17
|
import { t as applyRuntimeTransforms } from "./runtimeTransform-DigbjU1r.js";
|
|
18
18
|
import { i as getGoalRubric } from "./prompts-DHhQsANy.js";
|
|
19
19
|
import chalk from "chalk";
|
|
@@ -80,7 +80,7 @@ var GoatProvider = class {
|
|
|
80
80
|
let assertToUse;
|
|
81
81
|
let graderPassed;
|
|
82
82
|
let storedGraderResult;
|
|
83
|
-
const { getGraderById } = await import("./graders-
|
|
83
|
+
const { getGraderById } = await import("./graders-KXzjnIim.js").then((n) => n.r);
|
|
84
84
|
let test;
|
|
85
85
|
if (context?.test) {
|
|
86
86
|
test = context?.test;
|
|
@@ -191,11 +191,11 @@ var GoatProvider = class {
|
|
|
191
191
|
let processedMessage = attackerMessage.content;
|
|
192
192
|
const extractedPrompt = extractPromptFromTags(attackerMessage.content);
|
|
193
193
|
if (extractedPrompt) processedMessage = extractedPrompt;
|
|
194
|
+
if (this.config.inputs) assertRemoteMaterializationHandled(data, "GOAT multi-input generation");
|
|
194
195
|
const currentInputVars = extractInputVarsFromPrompt(processedMessage, this.config.inputs);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}) : void 0)?.vars ?? currentInputVars;
|
|
196
|
+
let materializedInputVars;
|
|
197
|
+
if (currentInputVars && this.config.inputs) materializedInputVars = buildRemoteMaterializedInputVariables(data, currentInputVars, this.config.inputs);
|
|
198
|
+
const currentRenderInputVars = materializedInputVars?.vars ?? currentInputVars;
|
|
199
199
|
if (currentInputVars && this.config.inputs) try {
|
|
200
200
|
const parsed = JSON.parse(processedMessage);
|
|
201
201
|
if (typeof parsed.prompt === "string") processedMessage = parsed.prompt;
|
|
@@ -437,6 +437,7 @@ var GoatProvider = class {
|
|
|
437
437
|
logger.debug("[GOAT] Operation aborted");
|
|
438
438
|
throw error;
|
|
439
439
|
}
|
|
440
|
+
if (isRemoteMaterializationUpgradeError(error)) throw error;
|
|
440
441
|
logger.error(`[GOAT] An error occurred in GOAT turn ${turn}. The test will continue to the next turn in the conversation.`, { error: error.message || error });
|
|
441
442
|
}
|
|
442
443
|
const finalPrompt = getLastMessageContent(messages, "user") || "";
|
|
@@ -463,4 +464,4 @@ var GoatProvider = class {
|
|
|
463
464
|
//#endregion
|
|
464
465
|
export { GoatProvider as default };
|
|
465
466
|
|
|
466
|
-
//# sourceMappingURL=goat-
|
|
467
|
+
//# sourceMappingURL=goat-Ba7Gznzq.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { s as logger, x as safeJsonStringify } from "./logger-BbY6ypFL.js";
|
|
3
|
-
import { f as sleep, n as fetchWithProxy } from "./fetch-
|
|
4
|
-
import { n as VERSION } from "./version-
|
|
3
|
+
import { f as sleep, n as fetchWithProxy } from "./fetch-Cpf1U1nO.js";
|
|
4
|
+
import { n as VERSION } from "./version-F0YDgb7J.js";
|
|
5
5
|
import { t as invariant } from "./invariant-B2Rf6avk.js";
|
|
6
|
-
import { c as isLoggedIntoCloud, o as getUserEmail } from "./accounts-
|
|
6
|
+
import { c as isLoggedIntoCloud, o as getUserEmail } from "./accounts-D6IBfEE0.js";
|
|
7
7
|
import { o as getNunjucksEngine } from "./render-CSP99NLm.js";
|
|
8
|
-
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration-
|
|
8
|
+
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration-D6UjE2JT.js";
|
|
9
9
|
import { a as createEmptyTokenUsage, n as accumulateResponseTokenUsage } from "./tokenUsageUtils-CDet74yk.js";
|
|
10
|
-
import { r as
|
|
11
|
-
import { a as
|
|
12
|
-
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-
|
|
10
|
+
import { a as extractPromptFromTags, o as getSessionId, r as extractInputVarsFromPrompt } from "./util-ETfU_sS9.js";
|
|
11
|
+
import { a as assertRemoteMaterializationHandled, c as isRemoteMaterializationUpgradeError, s as buildRemoteMaterializedInputVariables } from "./promptfoo-BU4_0J85.js";
|
|
12
|
+
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-DNvim54U.js";
|
|
13
13
|
import { i as throwIfTargetPromptExceedsMaxChars } from "./promptLength-4X-Wd8PG.js";
|
|
14
|
-
import { n as checkExfilTracking } from "./indirectWebPwn-
|
|
15
|
-
import { n as renderPrompt } from "./evaluatorHelpers-
|
|
16
|
-
import { t as Strategies } from "./strategies-
|
|
17
|
-
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-
|
|
14
|
+
import { n as checkExfilTracking } from "./indirectWebPwn-BMTXXznx.js";
|
|
15
|
+
import { n as renderPrompt } from "./evaluatorHelpers-D1_kwvyp.js";
|
|
16
|
+
import { t as Strategies } from "./strategies-CBI1brSy.js";
|
|
17
|
+
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-xhjOg2b1.js";
|
|
18
18
|
import { t as applyRuntimeTransforms } from "./runtimeTransform-Dgh_D7DU.js";
|
|
19
19
|
import { i as getGoalRubric } from "./prompts-C-bqE1Yp.js";
|
|
20
20
|
import chalk from "chalk";
|
|
@@ -81,7 +81,7 @@ var GoatProvider = class {
|
|
|
81
81
|
let assertToUse;
|
|
82
82
|
let graderPassed;
|
|
83
83
|
let storedGraderResult;
|
|
84
|
-
const { getGraderById } = await import("./graders-
|
|
84
|
+
const { getGraderById } = await import("./graders-B3D7kCcD.js");
|
|
85
85
|
let test;
|
|
86
86
|
if (context?.test) {
|
|
87
87
|
test = context?.test;
|
|
@@ -192,11 +192,11 @@ var GoatProvider = class {
|
|
|
192
192
|
let processedMessage = attackerMessage.content;
|
|
193
193
|
const extractedPrompt = extractPromptFromTags(attackerMessage.content);
|
|
194
194
|
if (extractedPrompt) processedMessage = extractedPrompt;
|
|
195
|
+
if (this.config.inputs) assertRemoteMaterializationHandled(data, "GOAT multi-input generation");
|
|
195
196
|
const currentInputVars = extractInputVarsFromPrompt(processedMessage, this.config.inputs);
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}) : void 0)?.vars ?? currentInputVars;
|
|
197
|
+
let materializedInputVars;
|
|
198
|
+
if (currentInputVars && this.config.inputs) materializedInputVars = buildRemoteMaterializedInputVariables(data, currentInputVars, this.config.inputs);
|
|
199
|
+
const currentRenderInputVars = materializedInputVars?.vars ?? currentInputVars;
|
|
200
200
|
if (currentInputVars && this.config.inputs) try {
|
|
201
201
|
const parsed = JSON.parse(processedMessage);
|
|
202
202
|
if (typeof parsed.prompt === "string") processedMessage = parsed.prompt;
|
|
@@ -438,6 +438,7 @@ var GoatProvider = class {
|
|
|
438
438
|
logger.debug("[GOAT] Operation aborted");
|
|
439
439
|
throw error;
|
|
440
440
|
}
|
|
441
|
+
if (isRemoteMaterializationUpgradeError(error)) throw error;
|
|
441
442
|
logger.error(`[GOAT] An error occurred in GOAT turn ${turn}. The test will continue to the next turn in the conversation.`, { error: error.message || error });
|
|
442
443
|
}
|
|
443
444
|
const finalPrompt = getLastMessageContent(messages, "user") || "";
|
|
@@ -464,4 +465,4 @@ var GoatProvider = class {
|
|
|
464
465
|
//#endregion
|
|
465
466
|
export { GoatProvider as default };
|
|
466
467
|
|
|
467
|
-
//# sourceMappingURL=goat-
|
|
468
|
+
//# sourceMappingURL=goat-CJngS-WU.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as logger, y as safeJsonStringify } from "./logger-KD8JjCRJ.js";
|
|
2
|
-
import { m as sleep, t as fetchWithProxy } from "./fetch-
|
|
3
|
-
import { n as VERSION } from "./version-
|
|
2
|
+
import { m as sleep, t as fetchWithProxy } from "./fetch-BSSAcMxf.js";
|
|
3
|
+
import { n as VERSION } from "./version-CHR-EFec.js";
|
|
4
4
|
import { t as invariant } from "./invariant-DIYf9sP1.js";
|
|
5
|
-
import { c as isLoggedIntoCloud, o as getUserEmail } from "./accounts-
|
|
5
|
+
import { c as isLoggedIntoCloud, o as getUserEmail } from "./accounts-BWjqwsrf.js";
|
|
6
6
|
import { o as getNunjucksEngine } from "./render-_6ur1fhE.js";
|
|
7
|
-
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration
|
|
7
|
+
import { r as getRemoteGenerationUrl, s as neverGenerateRemote } from "./remoteGeneration--D6WjzUm.js";
|
|
8
8
|
import { a as createEmptyTokenUsage, n as accumulateResponseTokenUsage } from "./tokenUsageUtils-BjVkdk18.js";
|
|
9
|
-
import { r as
|
|
10
|
-
import { a as
|
|
11
|
-
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-
|
|
9
|
+
import { a as extractPromptFromTags, o as getSessionId, r as extractInputVarsFromPrompt } from "./util-DGqkTb2-.js";
|
|
10
|
+
import { a as assertRemoteMaterializationHandled, c as isRemoteMaterializationUpgradeError, s as buildRemoteMaterializedInputVariables } from "./promptfoo-CReYAtfb.js";
|
|
11
|
+
import { o as getGraderAssertionValue, p as tryUnblocking, s as getLastMessageContent, t as buildGraderResultAssertion } from "./shared-CRq0gGVf.js";
|
|
12
12
|
import { i as throwIfTargetPromptExceedsMaxChars } from "./promptLength-0qIHyhA5.js";
|
|
13
|
-
import { n as checkExfilTracking } from "./indirectWebPwn-
|
|
13
|
+
import { n as checkExfilTracking } from "./indirectWebPwn-BZFPV7Q9.js";
|
|
14
14
|
import { n as renderPrompt, t as Strategies } from "./server/index.js";
|
|
15
|
-
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-
|
|
15
|
+
import { a as fetchTraceContext, i as extractTraceIdFromTraceparent, n as formatTraceForMetadata, r as formatTraceSummary, t as resolveTracingOptions } from "./tracingOptions-BvmDa_jH.js";
|
|
16
16
|
import { t as applyRuntimeTransforms } from "./runtimeTransform-BJOpL9Yc.js";
|
|
17
17
|
import { i as getGoalRubric } from "./prompts-BYMtqPCw.js";
|
|
18
18
|
import chalk from "chalk";
|
|
@@ -79,7 +79,7 @@ var GoatProvider = class {
|
|
|
79
79
|
let assertToUse;
|
|
80
80
|
let graderPassed;
|
|
81
81
|
let storedGraderResult;
|
|
82
|
-
const { getGraderById } = await import("./graders-
|
|
82
|
+
const { getGraderById } = await import("./graders-DaRU98zs.js").then((n) => n.r);
|
|
83
83
|
let test;
|
|
84
84
|
if (context?.test) {
|
|
85
85
|
test = context?.test;
|
|
@@ -190,11 +190,11 @@ var GoatProvider = class {
|
|
|
190
190
|
let processedMessage = attackerMessage.content;
|
|
191
191
|
const extractedPrompt = extractPromptFromTags(attackerMessage.content);
|
|
192
192
|
if (extractedPrompt) processedMessage = extractedPrompt;
|
|
193
|
+
if (this.config.inputs) assertRemoteMaterializationHandled(data, "GOAT multi-input generation");
|
|
193
194
|
const currentInputVars = extractInputVarsFromPrompt(processedMessage, this.config.inputs);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}) : void 0)?.vars ?? currentInputVars;
|
|
195
|
+
let materializedInputVars;
|
|
196
|
+
if (currentInputVars && this.config.inputs) materializedInputVars = buildRemoteMaterializedInputVariables(data, currentInputVars, this.config.inputs);
|
|
197
|
+
const currentRenderInputVars = materializedInputVars?.vars ?? currentInputVars;
|
|
198
198
|
if (currentInputVars && this.config.inputs) try {
|
|
199
199
|
const parsed = JSON.parse(processedMessage);
|
|
200
200
|
if (typeof parsed.prompt === "string") processedMessage = parsed.prompt;
|
|
@@ -436,6 +436,7 @@ var GoatProvider = class {
|
|
|
436
436
|
logger.debug("[GOAT] Operation aborted");
|
|
437
437
|
throw error;
|
|
438
438
|
}
|
|
439
|
+
if (isRemoteMaterializationUpgradeError(error)) throw error;
|
|
439
440
|
logger.error(`[GOAT] An error occurred in GOAT turn ${turn}. The test will continue to the next turn in the conversation.`, { error: error.message || error });
|
|
440
441
|
}
|
|
441
442
|
const finalPrompt = getLastMessageContent(messages, "user") || "";
|
|
@@ -462,4 +463,4 @@ var GoatProvider = class {
|
|
|
462
463
|
//#endregion
|
|
463
464
|
export { GoatProvider as default };
|
|
464
465
|
|
|
465
|
-
//# sourceMappingURL=goat-
|
|
466
|
+
//# sourceMappingURL=goat-CwsbfQeu.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
2
|
const require_logger = require("./logger-cfNpzI4o.cjs");
|
|
3
3
|
const require_invariant = require("./invariant-QtnLD03y.cjs");
|
|
4
|
-
const require_fetch = require("./fetch-
|
|
5
|
-
const require_version = require("./version-
|
|
6
|
-
const require_accounts = require("./accounts-
|
|
4
|
+
const require_fetch = require("./fetch-Cfm4EuOB.cjs");
|
|
5
|
+
const require_version = require("./version-VzUqOBZk.cjs");
|
|
6
|
+
const require_accounts = require("./accounts-BVz5gHLK.cjs");
|
|
7
7
|
const require_render = require("./render-BNTrbmBw.cjs");
|
|
8
|
-
const require_remoteGeneration = require("./remoteGeneration-
|
|
8
|
+
const require_remoteGeneration = require("./remoteGeneration-BpIYlb_O.cjs");
|
|
9
9
|
const require_tokenUsageUtils = require("./tokenUsageUtils-_B-P8IAi.cjs");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const require_shared = require("./shared-
|
|
10
|
+
const require_util = require("./util-DNtUsus_.cjs");
|
|
11
|
+
const require_promptfoo = require("./promptfoo-ClChwT74.cjs");
|
|
12
|
+
const require_shared = require("./shared-aHWko3P1.cjs");
|
|
13
13
|
const require_promptLength = require("./promptLength-BbBbDHNj.cjs");
|
|
14
|
-
const require_indirectWebPwn = require("./indirectWebPwn-
|
|
15
|
-
const require_evaluatorHelpers = require("./evaluatorHelpers-
|
|
16
|
-
const require_strategies = require("./strategies-
|
|
17
|
-
const require_tracingOptions = require("./tracingOptions-
|
|
14
|
+
const require_indirectWebPwn = require("./indirectWebPwn-D7NA9Nsv.cjs");
|
|
15
|
+
const require_evaluatorHelpers = require("./evaluatorHelpers-D06I9WFL.cjs");
|
|
16
|
+
const require_strategies = require("./strategies-CCcnEbFO.cjs");
|
|
17
|
+
const require_tracingOptions = require("./tracingOptions-DFBoE8O0.cjs");
|
|
18
18
|
const require_runtimeTransform = require("./runtimeTransform-ON3YYILw.cjs");
|
|
19
19
|
const require_prompts = require("./prompts-hNvWBD3z.cjs");
|
|
20
20
|
let chalk = require("chalk");
|
|
@@ -83,7 +83,7 @@ var GoatProvider = class {
|
|
|
83
83
|
let assertToUse;
|
|
84
84
|
let graderPassed;
|
|
85
85
|
let storedGraderResult;
|
|
86
|
-
const { getGraderById } = await Promise.resolve().then(() => require("./graders-
|
|
86
|
+
const { getGraderById } = await Promise.resolve().then(() => require("./graders-CBQ2s6gz.cjs")).then((n) => n.graders_exports);
|
|
87
87
|
let test;
|
|
88
88
|
if (context?.test) {
|
|
89
89
|
test = context?.test;
|
|
@@ -194,11 +194,11 @@ var GoatProvider = class {
|
|
|
194
194
|
let processedMessage = attackerMessage.content;
|
|
195
195
|
const extractedPrompt = require_util.extractPromptFromTags(attackerMessage.content);
|
|
196
196
|
if (extractedPrompt) processedMessage = extractedPrompt;
|
|
197
|
+
if (this.config.inputs) require_promptfoo.assertRemoteMaterializationHandled(data, "GOAT multi-input generation");
|
|
197
198
|
const currentInputVars = require_util.extractInputVarsFromPrompt(processedMessage, this.config.inputs);
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}) : void 0)?.vars ?? currentInputVars;
|
|
199
|
+
let materializedInputVars;
|
|
200
|
+
if (currentInputVars && this.config.inputs) materializedInputVars = require_promptfoo.buildRemoteMaterializedInputVariables(data, currentInputVars, this.config.inputs);
|
|
201
|
+
const currentRenderInputVars = materializedInputVars?.vars ?? currentInputVars;
|
|
202
202
|
if (currentInputVars && this.config.inputs) try {
|
|
203
203
|
const parsed = JSON.parse(processedMessage);
|
|
204
204
|
if (typeof parsed.prompt === "string") processedMessage = parsed.prompt;
|
|
@@ -440,6 +440,7 @@ var GoatProvider = class {
|
|
|
440
440
|
require_logger.logger.debug("[GOAT] Operation aborted");
|
|
441
441
|
throw error;
|
|
442
442
|
}
|
|
443
|
+
if (require_promptfoo.isRemoteMaterializationUpgradeError(error)) throw error;
|
|
443
444
|
require_logger.logger.error(`[GOAT] An error occurred in GOAT turn ${turn}. The test will continue to the next turn in the conversation.`, { error: error.message || error });
|
|
444
445
|
}
|
|
445
446
|
const finalPrompt = require_shared.getLastMessageContent(messages, "user") || "";
|
|
@@ -466,4 +467,4 @@ var GoatProvider = class {
|
|
|
466
467
|
//#endregion
|
|
467
468
|
exports.default = GoatProvider;
|
|
468
469
|
|
|
469
|
-
//# sourceMappingURL=goat-
|
|
470
|
+
//# sourceMappingURL=goat-DOMbozoX.cjs.map
|