promptfoo 0.122.1 → 0.122.2
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-Jug2Ciel.js → accounts-B8CVRmIl.js} +4 -4
- package/dist/src/{accounts-mch0qw47.js → accounts-BDud3p32.js} +4 -4
- package/dist/src/{accounts-CAjSMkuH.js → accounts-DApS8Gpe.js} +5 -5
- package/dist/src/{accounts-CZFxG3Og.cjs → accounts-DosZWKJy.cjs} +4 -4
- package/dist/src/{agentic-utils-CAL6OL48.js → agentic-utils-B94-_ExD.js} +12 -3
- package/dist/src/{agentic-utils-B3r4NpU-.cjs → agentic-utils-CMewaQ09.cjs} +13 -4
- package/dist/src/{agentic-utils-Cswmio9j.js → agentic-utils-DOMq4mqJ.js} +12 -3
- package/dist/src/{agentic-utils-CR5IyddC.js → agentic-utils-DneHhExJ.js} +12 -3
- package/dist/src/{agents-BYZQa11K.js → agents-99i09OkS.js} +4 -4
- package/dist/src/{agents-CfaaStfu.cjs → agents-BXDQ1xw_.cjs} +2 -2
- package/dist/src/{agents-CUSOo7ly.js → agents-BzOkbtWo.js} +2 -2
- package/dist/src/{agents-DgKZ1aMv.js → agents-CmgJALGp.js} +2 -2
- package/dist/src/{agents-CzaXVlpn.js → agents-CqqOAB9i.js} +4 -4
- package/dist/src/{agents-t29fGe9S.js → agents-CroOVBY1.js} +4 -4
- package/dist/src/{agents-CKOdC5bg.cjs → agents-DtmugJpS.cjs} +4 -4
- package/dist/src/{agents-B2aTR8k4.js → agents-mNkg-c-D.js} +2 -2
- package/dist/src/{ai.studio-DprNFGT7.js → ai.studio-4CqyrhMr.js} +7 -6
- package/dist/src/{ai.studio-BTbBobIe.js → ai.studio-Bw7HGWAy.js} +7 -6
- package/dist/src/{ai.studio-DdDttvQ_.js → ai.studio-BySqRQcL.js} +7 -6
- package/dist/src/{ai.studio-lJHgVtc3.js → ai.studio-CmQz4HRF.js} +1 -1
- package/dist/src/{ai.studio-Cfr1uqJd.cjs → ai.studio-CzWiW2J3.cjs} +11 -10
- package/dist/src/{aimlapi-agQErPC7.cjs → aimlapi-BPLx5bkN.cjs} +6 -6
- package/dist/src/{aimlapi-C7aw_Yci.js → aimlapi-CPHuwytR.js} +6 -6
- package/dist/src/{aimlapi-BbhgeGRG.js → aimlapi-CtFNhGfQ.js} +6 -6
- package/dist/src/{aimlapi-Cj1shS5g.js → aimlapi-DvORJAqy.js} +6 -6
- package/dist/src/{anthropicMessages-DM4fND86.cjs → anthropicMessages-CV6LTNAW.cjs} +2 -2
- package/dist/src/{anthropicMessages-B2lCmO9a.js → anthropicMessages-D7C1kjQD.js} +2 -2
- package/dist/src/{anthropicMessages-B3DWK3KH.js → anthropicMessages-Dnuashu8.js} +2 -2
- package/dist/src/{anthropicMessages-CIzwoHC7.js → anthropicMessages-HcZgERmB.js} +2 -2
- package/dist/src/app/assets/{index-A24J7UxV.css → index-4gjyvw3y.css} +1 -1
- package/dist/src/app/assets/{index-BSBYsw_6.js → index-nyJ_XC0u.js} +55 -55
- package/dist/src/app/index.html +2 -2
- package/dist/src/{audio-FK9OJM6x.js → audio-BdlJQepT.js} +3 -3
- package/dist/src/{audio-DJSX3nfH.cjs → audio-CT31dzi3.cjs} +3 -3
- package/dist/src/{audio-BLydpzg4.js → audio-CZ4800_-.js} +3 -3
- package/dist/src/{audio-BFL3WPG8.js → audio-CuAl9sNH.js} +3 -3
- package/dist/src/{authoritativeMarkupInjection-C79vhK3h.js → authoritativeMarkupInjection-Bk-2UAXm.js} +6 -6
- package/dist/src/{authoritativeMarkupInjection-DSEnwId_.cjs → authoritativeMarkupInjection-BkZvUL3M.cjs} +6 -6
- package/dist/src/{authoritativeMarkupInjection-D7PPkR2H.js → authoritativeMarkupInjection-CO3XuBsw.js} +6 -6
- package/dist/src/{authoritativeMarkupInjection-a2WZAWI8.js → authoritativeMarkupInjection-CsW2Rlxr.js} +6 -6
- package/dist/src/{aws-GuyZqnyf.js → aws-BatJ_yy7.js} +20 -20
- package/dist/src/{aws-BHmi7gOy.cjs → aws-DhQCXH3c.cjs} +20 -20
- package/dist/src/{aws-Bzt3WQU2.js → aws-VLbhCTiT.js} +20 -20
- package/dist/src/{aws-BS8qSHy8.js → aws-iSX9DyrD.js} +20 -20
- package/dist/src/{base-nbJrRpSV.js → base-C6jKTbCS.js} +7 -6
- package/dist/src/{base-CoTAT5vv.cjs → base-CJEf9k2O.cjs} +8 -7
- package/dist/src/{base-DEkuzxBW.js → base-CWyDTNcT.js} +2 -2
- package/dist/src/{base-mEWUSyIi.cjs → base-CeTzVZ7f.cjs} +2 -2
- package/dist/src/{base-CcYX8Sl7.js → base-CnzvtFbT.js} +2 -2
- package/dist/src/{base-BW_ro6TZ.js → base-Dd6PX7qL.js} +7 -6
- package/dist/src/{base-e2pL9Dg2.js → base-IFkEP-f1.js} +2 -2
- package/dist/src/{base-Bya3Xq-l.js → base-wuaktSuM.js} +7 -6
- package/dist/src/{bestOfN-6RYHfbeS.js → bestOfN-B99Kp3n1.js} +7 -7
- package/dist/src/{bestOfN-DsHy4gMF.cjs → bestOfN-BtBlH3Y1.cjs} +7 -7
- package/dist/src/{bestOfN-DDkIdZME.js → bestOfN-C7cPgSak.js} +7 -7
- package/dist/src/{bestOfN-Cbw8nnar.js → bestOfN-YNF3sLNc.js} +7 -7
- package/dist/src/{billing-nlGj2fi4.js → billing-BhTrP4CT.js} +2 -2
- package/dist/src/{billing-_izMSTD8.js → billing-D0eg28TA.js} +2 -2
- package/dist/src/{billing-K5i9I9vT.cjs → billing-Q1c9C5Or.cjs} +2 -2
- package/dist/src/{billing-CXk1T-EF.js → billing-eFe0xWZw.js} +2 -2
- package/dist/src/cache-Cjok8TBD.js +3 -0
- package/dist/src/{cache-Bwj_lNIo.js → cache-DTOVFNqA.js} +10 -4
- package/dist/src/{cache-C41JuZ74.js → cache-ePPAC5hy.js} +10 -4
- package/dist/src/{cache-DU82DyKI.cjs → cache-g3VTrtsd.cjs} +10 -4
- package/dist/src/{cache-NhFSRGTI.js → cache-xL5UULpy.js} +10 -5
- package/dist/src/{chat-Dt05zdU6.js → chat-1nt-gftw.js} +2 -2
- package/dist/src/{chat-Bh-Qkkm0.js → chat-64whAu1x.js} +2 -2
- package/dist/src/{chat-B43K4ZEW.cjs → chat-B5hzLi-1.cjs} +2 -2
- package/dist/src/{chat-6XCdGjXy.js → chat-BNY6oewj.js} +2 -2
- package/dist/src/{chat-Ds6f4gIO.js → chat-BPcmJMS6.js} +3 -3
- package/dist/src/{chat-CsmFtqbm.js → chat-BbVy4fHI.js} +2 -2
- package/dist/src/{chat-BPZNYAci.js → chat-BfWSvpJp.js} +3 -3
- package/dist/src/{chat-g28uolEO.cjs → chat-BuHuQ8dN.cjs} +13 -12
- package/dist/src/{chat-BUPwwei1.js → chat-C9Xi0123.js} +2 -2
- package/dist/src/{chat-D6SUUPHc.js → chat-CQkXljIT.js} +11 -10
- package/dist/src/{chat-BJT_S-0-.cjs → chat-DQfpTnnW.cjs} +2 -2
- package/dist/src/{chat-BjEpVBWz.js → chat-DQhTLvCt.js} +2 -2
- package/dist/src/{chat-b1tvD2yV.js → chat-Dn1Z6reC.js} +3 -3
- package/dist/src/{chat-DYIP7MZz.js → chat-DqUm2XRG.js} +11 -10
- package/dist/src/{chat-ByXWx4Jn.js → chat-WpIdBaCf.js} +11 -10
- package/dist/src/{chat-D9DdQU09.cjs → chat-psXx3S3c.cjs} +3 -3
- package/dist/src/{claude-agent-sdk-BOt139Ms.js → claude-agent-sdk-ByLXefcP.js} +4 -4
- package/dist/src/{claude-agent-sdk-BbO4g2C3.cjs → claude-agent-sdk-CXAxCt84.cjs} +4 -4
- package/dist/src/{claude-agent-sdk-ClB69ybZ.js → claude-agent-sdk-Ccqr4OHD.js} +4 -4
- package/dist/src/{claude-agent-sdk-DDgSb327.js → claude-agent-sdk-DFDGkJC4.js} +4 -4
- package/dist/src/{client-nl7Ghern.js → client-4bErwdpG.js} +3 -3
- package/dist/src/{client-DvRyvBRs.cjs → client-B8cIFzy1.cjs} +3 -3
- package/dist/src/{client-QLK1dAIt.js → client-Bz_qkOt7.js} +3 -3
- package/dist/src/{client-BpIjXLJ0.js → client-C8mYuoRi.js} +3 -3
- package/dist/src/cloud-BzpJioZO.js +3 -0
- package/dist/src/{cloud-D3FRkXX5.js → cloud-D9lRDzlx.js} +43 -7
- package/dist/src/{cloudflare-ai-CerptSv1.js → cloudflare-ai-BduG_WGt.js} +4 -4
- package/dist/src/{cloudflare-ai-BEu-xQ5J.cjs → cloudflare-ai-C0cr71_N.cjs} +4 -4
- package/dist/src/{cloudflare-ai-Cnaag2kZ.js → cloudflare-ai-DNNHsdi_.js} +4 -4
- package/dist/src/{cloudflare-ai-DpwGGVCv.js → cloudflare-ai-GiqeJOW2.js} +4 -4
- package/dist/src/{cloudflare-gateway-yWM6dZYR.js → cloudflare-gateway-BCd15euW.js} +3 -3
- package/dist/src/{cloudflare-gateway-D_M6cCM_.cjs → cloudflare-gateway-CNwgkjWa.cjs} +3 -3
- package/dist/src/{cloudflare-gateway-DC_kOGWf.js → cloudflare-gateway-D6gTnn0M.js} +3 -3
- package/dist/src/{cloudflare-gateway-BDO7Oy1M.js → cloudflare-gateway-j8ioV3mO.js} +3 -3
- package/dist/src/{codex-app-server-CwK6Xbfe.cjs → codex-app-server-CeT18Dkz.cjs} +6 -6
- package/dist/src/{codex-app-server-YZmDON1h.js → codex-app-server-CjOwEU74.js} +1 -1
- package/dist/src/{codex-app-server-Caz528S8.js → codex-app-server-DW77otWv.js} +5 -5
- package/dist/src/{codex-app-server-DK4HYKYU.js → codex-app-server-GlPHXwGV.js} +5 -5
- package/dist/src/{codex-app-server-DTZ30MNj.js → codex-app-server-krirlx9j.js} +5 -5
- package/dist/src/codex-runtime-BjmQ9rWv.js +5 -0
- package/dist/src/codex-runtime-DYQUgTW-.js +4 -0
- package/dist/src/codex-runtime-o7SyHeWu.js +4 -0
- package/dist/src/codex-runtime-sKhQvTow.cjs +3 -0
- package/dist/src/{codex-sdk-C5VGCVuq.js → codex-sdk-B3LZgJqW.js} +6 -5
- package/dist/src/{codex-sdk-Bxihv7gJ.cjs → codex-sdk-BrhzHGrr.cjs} +7 -6
- package/dist/src/{codex-sdk-BRCGs7KO.js → codex-sdk-DZ_mKG21.js} +6 -5
- package/dist/src/codex-sdk-DkbU2gJR.js +3 -0
- package/dist/src/{codex-sdk-AzoGV5xQ.js → codex-sdk-Gv0vgj5a.js} +6 -5
- package/dist/src/codex-security-71xcR7s3.js +382 -0
- package/dist/src/codex-security-A8dTt6Ov.cjs +386 -0
- package/dist/src/codex-security-DSYUnVdR.js +383 -0
- package/dist/src/codex-security-DqVPI2Th.js +382 -0
- package/dist/src/{cometapi-CFOBA79U.js → cometapi-BdmjhPSR.js} +7 -7
- package/dist/src/{cometapi-Dq70nB-i.js → cometapi-Bst9fl8W.js} +7 -7
- package/dist/src/{cometapi-DEVvRD5z.cjs → cometapi-CPjQpopA.cjs} +7 -7
- package/dist/src/{cometapi-C3SQRHPF.js → cometapi-Duei84Pe.js} +7 -7
- package/dist/src/{completion-Ci8l1pSN.js → completion-BwID-cTv.js} +5 -5
- package/dist/src/{completion-CcbYZDub.js → completion-D90cHpyH.js} +5 -5
- package/dist/src/{completion-wKp5JlDu.js → completion-DSVbiAms.js} +5 -5
- package/dist/src/{completion-Ch4qZHiN.cjs → completion-fjqwBQIQ.cjs} +5 -5
- package/dist/src/{crescendo-QA8kgoFA.cjs → crescendo-Cism3YAo.cjs} +18 -18
- package/dist/src/{crescendo-DXTA2eKd.js → crescendo-Cpj-F0iB.js} +13 -13
- package/dist/src/{crescendo-Dgco_cd5.js → crescendo-DJ3dxaZ8.js} +13 -13
- package/dist/src/{crescendo-By5ZfUli.js → crescendo-DiAK4mXf.js} +13 -13
- package/dist/src/{custom-fIO2MwcN.js → custom-BcSQF7OR.js} +11 -11
- package/dist/src/{custom-CobMcSKD.js → custom-CpA8_KgN.js} +11 -11
- package/dist/src/{custom-CPTsrJYI.js → custom-DfeRaakX.js} +11 -11
- package/dist/src/{custom-DQMMH6yL.cjs → custom-WyC-PH98.cjs} +14 -14
- package/dist/src/{docker-Bhb-hDqU.cjs → docker-5g1NcdAE.cjs} +5 -5
- package/dist/src/{docker-bXiMHPBm.js → docker-B97bdCFf.js} +5 -5
- package/dist/src/{docker-CdqlpwxU.js → docker-CgvCV_lT.js} +5 -5
- package/dist/src/{docker-CLatgAgj.js → docker-D2q5yAnA.js} +5 -5
- package/dist/src/{embedding-DMnl5l3W.js → embedding-B3RQXlr7.js} +5 -5
- package/dist/src/{embedding-cJ7sWqTp.cjs → embedding-C2BHs7bs.cjs} +5 -5
- package/dist/src/{embedding-DWeAJwIi.js → embedding-DgjYhcCm.js} +5 -5
- package/dist/src/{embedding-Kx2Jhb7b.js → embedding-qvISOYlD.js} +5 -5
- package/dist/src/{eval-XZjM8PtE.js → eval-BB4Rvl3w.js} +4 -4
- package/dist/src/{eval-yT4SKSzC.js → eval-BFqlPFXm.js} +1 -1
- package/dist/src/{evalResult-CmUmgA2I.js → evalResult-C9ntrv7r.js} +2 -2
- package/dist/src/{evaluator-BNYv5Xws.js → evaluator-BxDpurGf.js} +21 -20
- package/dist/src/evaluator-DxIVNCZm.js +3 -0
- package/dist/src/{evaluatorHelpers-D2ObFR8i.cjs → evaluatorHelpers-B2c1yYV4.cjs} +8 -7
- package/dist/src/{evaluatorHelpers-C60uhMf4.js → evaluatorHelpers-Bd8xun4J.js} +5 -4
- package/dist/src/{evaluatorHelpers-lNii4N30.js → evaluatorHelpers-CZ2p3rWG.js} +5 -4
- package/dist/src/{evaluatorHelpers-G6saWD9g.js → evaluatorHelpers-CgcFRjns.js} +5 -4
- package/dist/src/fetch-BO4sLtRp.js +3 -0
- package/dist/src/{fetch-BCrWkFgb.js → fetch-CKqW5dym.js} +2 -2
- package/dist/src/{fetch-DxQ9oCzS.cjs → fetch-CQfF18HC.cjs} +2 -2
- package/dist/src/{fetch-DDiGmyRM.js → fetch-Cm0VICza.js} +2 -2
- package/dist/src/{fetch-DTnUr1aF.cjs → fetch-D54lzFcD.cjs} +69 -18
- package/dist/src/{fetch-BdWQKDMj.js → fetch-DnDg-Ics.js} +64 -19
- package/dist/src/{fetch-JNQMF9vN.js → fetch-Dwv9LIL3.js} +2 -2
- package/dist/src/{fetch-Bnj1JCJi.js → fetch-KD8O9oZZ.js} +24 -15
- package/dist/src/{fetch-BjXG13jC.js → fetch-tOnj-VPG.js} +64 -19
- package/dist/src/{functionCallbackUtils-Ck1qbh7p.js → functionCallbackUtils-B-fNUZ4T.js} +3 -3
- package/dist/src/{functionCallbackUtils-BJ2I_9tt.js → functionCallbackUtils-B7KGl5xQ.js} +3 -3
- package/dist/src/{functionCallbackUtils-VbcI1Aub.cjs → functionCallbackUtils-BDroEgNs.cjs} +3 -3
- package/dist/src/{functionCallbackUtils-BGXXxhrC.js → functionCallbackUtils-EjWy67uz.js} +3 -3
- package/dist/src/{gemini-image-8YxPzaSx.js → gemini-image-B4vMqMOQ.js} +4 -4
- package/dist/src/{gemini-image-C5qQIQhS.js → gemini-image-B6ZTrDe5.js} +4 -4
- package/dist/src/{gemini-image-DxTRWDFj.cjs → gemini-image-DYd6vsTn.cjs} +4 -4
- package/dist/src/{gemini-image-CfkY7fEx.js → gemini-image-D_-_Yxtw.js} +4 -4
- package/dist/src/{goat-CR4LFL8E.js → goat-B80KUvGW.js} +14 -14
- package/dist/src/{goat-Dg7N-qgd.js → goat-BKhidS2l.js} +14 -14
- package/dist/src/{goat-D_thj1jf.cjs → goat-Dorh32Ub.cjs} +18 -18
- package/dist/src/{goat-BVp2yIw-.js → goat-jg8kFsKP.js} +14 -14
- package/dist/src/{goblin-4D8Nfpnl.cjs → goblin-B_rz0LjO.cjs} +2 -2
- package/dist/src/{goblin-CZAgIkjX.js → goblin-C8-aCrlP.js} +2 -2
- package/dist/src/{goblin-Dlox542E.js → goblin-CqLJeleh.js} +2 -2
- package/dist/src/{goblin-OrBEar64.js → goblin-CuznsHt0.js} +2 -2
- package/dist/src/{google-CC83MIsJ.cjs → google-8szBGwzV.cjs} +11 -11
- package/dist/src/{google-DRsee0nT.js → google-B1v8u6hy.js} +11 -11
- package/dist/src/{google-Dbpyq6la.js → google-B6p_pWxZ.js} +11 -11
- package/dist/src/{google-LtdcKmFu.js → google-DCn7b9au.js} +11 -11
- package/dist/src/graders-B8dB5kSQ.js +3 -0
- package/dist/src/{graders-vHzBsfHT.js → graders-BPmH2YVm.js} +20 -19
- package/dist/src/{graders-C77c5GiF.js → graders-BWtqxJ75.js} +20 -19
- package/dist/src/{graders-43jk_163.js → graders-CS8YkOd5.js} +21 -20
- package/dist/src/{graders-D7xtBg2s.cjs → graders-DpPGnz8u.cjs} +26 -25
- package/dist/src/{hydra-BBkVh274.js → hydra-CXR6iPRp.js} +12 -12
- package/dist/src/{hydra-CvGcOAZn.js → hydra-Cr1WleCi.js} +1 -1
- package/dist/src/{hydra-WACE_1Zb.js → hydra-DCp4JZxW.js} +12 -12
- package/dist/src/{hydra-DlPvPWLB.js → hydra-HgjWEGIf.js} +12 -12
- package/dist/src/{hydra-B0Aqb-zg.cjs → hydra-RlGwrC81.cjs} +12 -12
- package/dist/src/{image-B7HA9bRW.js → image-B4B444eV.js} +3 -3
- package/dist/src/{image-CLljmxcq.cjs → image-Bkns4wpz.cjs} +3 -3
- package/dist/src/{image-D_yzoOlU.js → image-BqF4qDz6.js} +5 -5
- package/dist/src/{image-RxcUfS9c.js → image-C1bIho6n.js} +4 -4
- package/dist/src/{image-BQf2QP3f.js → image-CFtq9j1u.js} +4 -4
- package/dist/src/{image-B-BLrwzM.js → image-CeAMtI2v.js} +5 -5
- package/dist/src/{image-DD9l6-Hi.cjs → image-ChCkFmER.cjs} +5 -5
- package/dist/src/{image-DQB7ft5H.js → image-Cy0nxgir.js} +3 -3
- package/dist/src/{image-HHqjkpmw.js → image-DDJ5HtyW.js} +3 -3
- package/dist/src/{image-N49IDbzx.cjs → image-DSLZ3_9_.cjs} +4 -4
- package/dist/src/{image-C1Tc1hrH.js → image-Dde5ywa6.js} +4 -4
- package/dist/src/{image-Dll064X0.js → image-G65m_Tkp.js} +5 -5
- package/dist/src/index.cjs +37 -35
- package/dist/src/index.d.cts +2 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +26 -24
- package/dist/src/{indirectWebPwn-g-F3__Gp.js → indirectWebPwn-BFdbbs6S.js} +5 -5
- package/dist/src/{indirectWebPwn-Dg4gS14o.js → indirectWebPwn-BeNTvIGX.js} +4 -4
- package/dist/src/{indirectWebPwn-BVsvAUZv.js → indirectWebPwn-BhuZ26Yd.js} +4 -4
- package/dist/src/{indirectWebPwn-DmNLSb0J.js → indirectWebPwn-C-pe6OEr.js} +5 -5
- package/dist/src/{indirectWebPwn-Ch0EQWKt.cjs → indirectWebPwn-CwSQCQGM.cjs} +4 -4
- package/dist/src/{indirectWebPwn-2HDLyS-4.js → indirectWebPwn-DahWlbTc.js} +4 -4
- package/dist/src/{indirectWebPwn-lUx8flGh.cjs → indirectWebPwn-Dcc2nw9e.cjs} +5 -5
- package/dist/src/{indirectWebPwn-P3GLMBT7.js → indirectWebPwn-Dcn8pufK.js} +5 -5
- package/dist/src/{interactions-CqITU8xN.js → interactions-BC_LipMV.js} +5 -5
- package/dist/src/{interactions-vSEfKNox.js → interactions-BUojcIo3.js} +5 -5
- package/dist/src/{interactions-BkHdiUV_.cjs → interactions-CBWiz1sE.cjs} +10 -10
- package/dist/src/{interactions-BwaVVpFQ.js → interactions-FdIt-wCm.js} +5 -5
- package/dist/src/{iterative-CJqvJcCg.cjs → iterative-C03QAXol.cjs} +17 -17
- package/dist/src/{iterative-CmzmX0Ud.js → iterative-C6PvGSZG.js} +13 -13
- package/dist/src/{iterative-BrCMcCPN.js → iterative-C6dOO1pV.js} +13 -13
- package/dist/src/{iterative-Ny9s9zYD.js → iterative-Dm9ed-k9.js} +13 -13
- package/dist/src/{iterativeImage-6UW4D5PR.js → iterativeImage-C1eEEQTU.js} +4 -4
- package/dist/src/{iterativeImage-MQuACdQM.js → iterativeImage-CPdjUydZ.js} +4 -4
- package/dist/src/{iterativeImage-C9ti-N0n.js → iterativeImage-Drxk9690.js} +4 -4
- package/dist/src/{iterativeImage-DrKM797g.cjs → iterativeImage-qpfLOoXo.cjs} +6 -6
- package/dist/src/{iterativeMeta-BFyT65qP.js → iterativeMeta-Bcfzi4sI.js} +12 -12
- package/dist/src/{iterativeMeta-0J6M1Vdv.js → iterativeMeta-CpW_wQO6.js} +12 -12
- package/dist/src/{iterativeMeta-GZVbjagU.cjs → iterativeMeta-DPgnNAss.cjs} +12 -12
- package/dist/src/{iterativeMeta-C1Dh7MxZ.js → iterativeMeta-weggsGV_.js} +12 -12
- package/dist/src/{iterativeTree-BrUcgg6W.js → iterativeTree-CKuB2Z6S.js} +12 -12
- package/dist/src/{iterativeTree-D3_N68uI.js → iterativeTree-Uw3DtvA4.js} +12 -12
- package/dist/src/{iterativeTree-CypPTiqZ.js → iterativeTree-Z5eESQAW.js} +12 -12
- package/dist/src/{iterativeTree-CZMTUJkt.cjs → iterativeTree-sq1SXe1H.cjs} +23 -23
- package/dist/src/{knowledgeBase-oPMm43ZU.js → knowledgeBase-2fh31P8U.js} +4 -4
- package/dist/src/{knowledgeBase-DSmUn4aP.js → knowledgeBase-CZwpvp9c.js} +4 -4
- package/dist/src/{knowledgeBase-BIZW29tN.js → knowledgeBase-Cfr9fuln.js} +4 -4
- package/dist/src/{knowledgeBase-dv8uETfk.cjs → knowledgeBase-Cy5S2dUm.cjs} +4 -4
- package/dist/src/{litellm-CCNfY67w.cjs → litellm-BX6YVwnT.cjs} +4 -4
- package/dist/src/{litellm-CPWGXO61.js → litellm-Bwskx_kf.js} +4 -4
- package/dist/src/{litellm-D2w4bj_z.js → litellm-DG8dC_1P.js} +4 -4
- package/dist/src/{litellm-DB7MRouZ.js → litellm-RtR3zWqA.js} +4 -4
- package/dist/src/{live-CDBvrFTF.cjs → live-BIYLKr6M.cjs} +4 -4
- package/dist/src/{live-BFul3lOj.js → live-BloWTLms.js} +4 -4
- package/dist/src/{live-A1fk8Tl-.js → live-C2hVmTZg.js} +4 -4
- package/dist/src/{live-CRIdbA0o.js → live-CCPXSaYj.js} +4 -4
- package/dist/src/{luma-ray-5CZM_02a.cjs → luma-ray-B3Mt-cN9.cjs} +2 -2
- package/dist/src/{luma-ray-D68mWNcj.js → luma-ray-BGYY3Y9D.js} +2 -2
- package/dist/src/{luma-ray-5Y_J9rjd.js → luma-ray-DTvqEeAb.js} +2 -2
- package/dist/src/{luma-ray-lD3WwDx2.js → luma-ray-Te_YbEBL.js} +2 -2
- package/dist/src/main.js +41 -38
- package/dist/src/{mantleChat-B9O0prU3.js → mantleChat-B7ZGnN3G.js} +2 -2
- package/dist/src/{mantleChat-BRtCbGNb.js → mantleChat-BEwZSACi.js} +2 -2
- package/dist/src/{mantleChat-BNYodgnM.cjs → mantleChat-DRHEiiq7.cjs} +2 -2
- package/dist/src/{mantleChat-aXRLgaar.js → mantleChat-bG3JUmId.js} +2 -2
- package/dist/src/{memoryPoisoning-BP8lqzRR.js → memoryPoisoning-CRCeE8o0.js} +5 -5
- package/dist/src/{memoryPoisoning-CXlBD_-Y.js → memoryPoisoning-DPz_mF21.js} +5 -5
- package/dist/src/{memoryPoisoning-B2dsdKye.cjs → memoryPoisoning-DRIrT0Zv.cjs} +5 -5
- package/dist/src/{memoryPoisoning-C2cyu0C-.js → memoryPoisoning-DUqPlY5F.js} +5 -5
- package/dist/src/{messages-B5cYbsZJ.cjs → messages-BDbtGaqI.cjs} +8 -8
- package/dist/src/{messages-C1diy8zs.js → messages-C306BIuu.js} +8 -8
- package/dist/src/{messages-C9rJcTgf.js → messages-Cqi4nZlY.js} +8 -8
- package/dist/src/{messages-C3_Aa793.js → messages-W898zuCm.js} +8 -8
- package/dist/src/{mischievousUser-BM8LRsDW.js → mischievousUser-4wlyqv76.js} +5 -5
- package/dist/src/{mischievousUser-SPu0AbcD.js → mischievousUser-B1-HU9CD.js} +5 -5
- package/dist/src/{mischievousUser-BVr9ULj0.js → mischievousUser-BJQRmmfP.js} +5 -5
- package/dist/src/{mischievousUser-BDv5f6eO.cjs → mischievousUser-CHIJi5vr.cjs} +5 -5
- package/dist/src/{modelslab-9k-zzEfW.cjs → modelslab-CLDbPmPX.cjs} +3 -3
- package/dist/src/{modelslab-VVi56eHt.js → modelslab-CZ03gaHC.js} +3 -3
- package/dist/src/{modelslab-SFmxkyC5.js → modelslab-Cj0cBlIy.js} +3 -3
- package/dist/src/{modelslab-CvNCpR5m.js → modelslab-DPG6v3Oa.js} +3 -3
- package/dist/src/{nova-reel-DvEcNfJd.js → nova-reel-B401inIg.js} +2 -2
- package/dist/src/{nova-reel-DZRncxke.cjs → nova-reel-D8AFHBH-.cjs} +2 -2
- package/dist/src/{nova-reel-Dtr84O_-.js → nova-reel-RFBr44SY.js} +2 -2
- package/dist/src/{nova-reel-C7RtmR9_.js → nova-reel-sCfu2U7B.js} +2 -2
- package/dist/src/{nova-sonic-B4wexztM.cjs → nova-sonic-B1QLKfJe.cjs} +2 -2
- package/dist/src/{nova-sonic-DXnFfrox.js → nova-sonic-D3CP2Y2f.js} +2 -2
- package/dist/src/{nova-sonic-KyVv4RyY.js → nova-sonic-DPbzYDKH.js} +2 -2
- package/dist/src/{nova-sonic-Doe7LDx_.js → nova-sonic-DlgK5oIa.js} +2 -2
- package/dist/src/{openaiResponses-C3Ml3xst.cjs → openaiResponses-Be2L8u1C.cjs} +2 -2
- package/dist/src/{openaiResponses-CE5BAFhg.js → openaiResponses-CDvzqtsT.js} +2 -2
- package/dist/src/{openaiResponses-CEPZVzZz.js → openaiResponses-CPVWxpRK.js} +2 -2
- package/dist/src/{openaiResponses-DhO4eHg0.js → openaiResponses-sdWTgYPz.js} +2 -2
- package/dist/src/{openclaw-DOZfTvJO.js → openclaw-CKvd8EzM.js} +5 -5
- package/dist/src/{openclaw-XMg8C92z.cjs → openclaw-CSWfAv7N.cjs} +5 -5
- package/dist/src/{openclaw-CbJpj7T8.js → openclaw-Cusi9mm2.js} +5 -5
- package/dist/src/{openclaw-Bugs4BPX.js → openclaw-SY4Ur74P.js} +5 -5
- package/dist/src/{opencode-sdk-CoCVfums.js → opencode-sdk-AGZbtWlq.js} +2 -2
- package/dist/src/{opencode-sdk-Cid8t6m7.cjs → opencode-sdk-B9Dcws4x.cjs} +2 -2
- package/dist/src/{opencode-sdk-CKbY24l_.js → opencode-sdk-ClpPufaf.js} +2 -2
- package/dist/src/{opencode-sdk-mkkCU9O6.js → opencode-sdk-CwBVY4H1.js} +2 -2
- package/dist/src/{openinterpreter-esp9h7Qu.js → openinterpreter-BF1BIP3x.js} +3 -3
- package/dist/src/{openinterpreter-B09Fvndf.js → openinterpreter-Ba9uEUB3.js} +3 -3
- package/dist/src/{openinterpreter-O-8L3wHT.js → openinterpreter-CjAfk7zr.js} +3 -3
- package/dist/src/{openinterpreter-DmCcocbX.cjs → openinterpreter-CjvjRmfR.cjs} +4 -4
- package/dist/src/{promptfoo-BzTq3CZR.cjs → promptfoo-B3EDkr9n.cjs} +4 -4
- package/dist/src/{promptfoo-BnRYCHWo.js → promptfoo-BeCm2WDJ.js} +4 -4
- package/dist/src/{promptfoo-DmLIq1Fg.js → promptfoo-ByMuyN2p.js} +4 -4
- package/dist/src/{promptfoo-DFE6FPtn.js → promptfoo-HD40ugrk.js} +4 -4
- package/dist/src/{providers-YJTtc38R.js → providers-BbgOo13t.js} +68 -48
- package/dist/src/{providers-Dbcg914T.js → providers-BmppqfDI.js} +70 -50
- package/dist/src/{providers-DbRpLhoc.js → providers-C75KcJPJ.js} +68 -48
- package/dist/src/{providers-ASKoKjG0.cjs → providers-CRCoPqQH.cjs} +116 -96
- package/dist/src/{providers-59LpYr3g.js → providers-DI6OXKnh.js} +1 -1
- package/dist/src/{quiverai-BsabGKm2.js → quiverai-8--n-u4s.js} +3 -3
- package/dist/src/{quiverai-dEV-iH9x.cjs → quiverai-CPa-eT-O.cjs} +3 -3
- package/dist/src/{quiverai-CfQpkyAP.js → quiverai-Cyt6JU4X.js} +3 -3
- package/dist/src/{quiverai-D4M0KkyD.js → quiverai-pbddNqGK.js} +3 -3
- package/dist/src/{registry-QpHnWcMr.cjs → registry-3k9Gai1o.cjs} +15 -15
- package/dist/src/{registry-C_cHVcat.js → registry-BdsjaDF0.js} +15 -15
- package/dist/src/{registry-BAiKTqod.js → registry-C63p_cTi.js} +15 -15
- package/dist/src/{registry-BnTKy_CX.js → registry-C842b92A.js} +15 -15
- package/dist/src/{remoteGeneration-PxK1EefI.cjs → remoteGeneration-C0Ev99MO.cjs} +4 -4
- package/dist/src/{remoteGeneration-B0eQSIHo.js → remoteGeneration-Cc78LDjQ.js} +4 -4
- package/dist/src/{remoteGeneration-CwQ0KBdC.js → remoteGeneration-DGJxSMYI.js} +4 -4
- package/dist/src/{remoteGeneration-CopIeiNI.js → remoteGeneration-DnSGqkoH.js} +4 -4
- package/dist/src/render-BRIaR8VG.js +348 -0
- package/dist/src/render-C1VJjFT2.cjs +383 -0
- package/dist/src/render-DIhuKgcQ.js +347 -0
- package/dist/src/render-zarxdXS7.js +347 -0
- package/dist/src/{responses-Cf45MBI8.js → responses-B72c3dpg.js} +8 -7
- package/dist/src/{responses-CB2IgICL.js → responses-DVF5R5Il.js} +8 -7
- package/dist/src/{responses-Doa5xhY1.cjs → responses-DiZCcd1S.cjs} +10 -9
- package/dist/src/{responses-Ci3OK0i0.js → responses-ykcvZ0oE.js} +8 -7
- package/dist/src/{runtimeTransform-BiANYoNE.cjs → runtimeTransform-6aaLbaUN.cjs} +2 -2
- package/dist/src/{runtimeTransform-DCRyBnI7.js → runtimeTransform-Bf5Aif-g.js} +2 -2
- package/dist/src/{runtimeTransform-Dvxqdevg.js → runtimeTransform-DVpy5lDj.js} +2 -2
- package/dist/src/{runtimeTransform-PGM7l51H.js → runtimeTransform-rEgJC2VZ.js} +2 -2
- package/dist/src/{sagemaker-D8O3f2bO.js → sagemaker-BzAkO4HL.js} +9 -9
- package/dist/src/{sagemaker-mlPtR7-q.js → sagemaker-C35al2QN.js} +9 -9
- package/dist/src/{sagemaker-2TZPOS4O.js → sagemaker-D8HnIjWK.js} +9 -9
- package/dist/src/{sagemaker-OlHR8fru.cjs → sagemaker-I0Ei2kNn.cjs} +9 -9
- package/dist/src/{scanner-Dt3oFdeb.js → scanner-De5yM_DC.js} +5 -5
- package/dist/src/server/index.js +31 -29
- package/dist/src/server-B5-TIxn2.js +3 -0
- package/dist/src/{server-MNuRsmJQ.js → server-BaM1Q5gD.js} +4 -4
- package/dist/src/{server-CkrRpgsu.cjs → server-BpmZ1EP0.cjs} +3 -3
- package/dist/src/{server-L884Wtbc.js → server-CqQtEkS_.js} +4 -4
- package/dist/src/{server-lm2H6tXC.js → server-DB1I8Xl3.js} +3 -3
- package/dist/src/{shared-D5rN2VlH.js → shared-BkcgE6vB.js} +14 -14
- package/dist/src/{shared-IP25vMkJ.cjs → shared-Bl84k1Oo.cjs} +14 -14
- package/dist/src/{shared-Dk1AVE9w.js → shared-CkERSpeg.js} +14 -14
- package/dist/src/{shared-yyb3qFQd.js → shared-jcnXW0lA.js} +16 -16
- package/dist/src/{simulatedUser-9Ru_f_dX.js → simulatedUser-BK0F6Lub.js} +5 -4
- package/dist/src/{simulatedUser-6ys8hxx_.js → simulatedUser-BTox0iZp.js} +5 -4
- package/dist/src/{simulatedUser-BQghw48z.cjs → simulatedUser-ByVb7gXp.cjs} +8 -7
- package/dist/src/{simulatedUser-BHmmQ4hb.js → simulatedUser-C8WconFg.js} +5 -4
- package/dist/src/{slack-C--lAIHY.js → slack-7DG3xMM4.js} +2 -2
- package/dist/src/{slack-CxCLWDSi.js → slack-BvWGK3kV.js} +2 -2
- package/dist/src/{slack-6c3iW1pP.cjs → slack-DqFNyAEf.cjs} +2 -2
- package/dist/src/{slack-D_QGURhP.js → slack-spSrgvZu.js} +2 -2
- package/dist/src/{storage-BFmq8CKG.cjs → storage-BX5ws4jD.cjs} +11 -11
- package/dist/src/{storage-J-nYoltq.js → storage-B_t-NiUa.js} +11 -11
- package/dist/src/{storage-BC3GVwPL.js → storage-CVVbTVYC.js} +11 -11
- package/dist/src/{storage-DGeXeJj0.js → storage-CrqPUKqY.js} +12 -12
- package/dist/src/{strategies-C6oBZHYF.js → strategies-CaqOj9gZ.js} +10 -10
- package/dist/src/{strategies-Bn1z2exW.cjs → strategies-DJfqHuoT.cjs} +10 -10
- package/dist/src/{strategies-BMxIs2Jx.js → strategies-DVRYSzm8.js} +10 -10
- package/dist/src/{strategies-cFTP9vSw.js → strategies-DpZ1ydwx.js} +11 -11
- package/dist/src/{telemetry-D64Cj0UR.js → telemetry-BD4xF9d_.js} +3 -3
- package/dist/src/{telemetry-Bqa8fxWp.js → telemetry-BQZTDom3.js} +3 -3
- package/dist/src/{telemetry-CIaL2pmn.js → telemetry-CJdYAcRk.js} +3 -3
- package/dist/src/telemetry-ClfmjQQj.js +3 -0
- package/dist/src/{telemetry-DVYPYBQH.cjs → telemetry-cZi2RTrN.cjs} +3 -3
- package/dist/src/{traceContext-CNp7smkn.js → traceContext-2sZXHY0h.js} +2 -2
- package/dist/src/{traceContext-D7liCnkq.js → traceContext-B3qWxoa7.js} +2 -2
- package/dist/src/{traceContext-BuXw2Yxu.cjs → traceContext-achbslCl.cjs} +2 -2
- package/dist/src/{traceContext-B4vypxe_.js → traceContext-jOhKJ5Ty.js} +2 -2
- package/dist/src/{transcription-SiDe8ogZ.js → transcription-1iEk_fG7.js} +4 -4
- package/dist/src/{transcription-Dq6gB3km.js → transcription-CtogIwZI.js} +4 -4
- package/dist/src/{transcription-BQg4-zD7.cjs → transcription-CuNQgPv9.cjs} +4 -4
- package/dist/src/{transcription-Zq-_5uca.js → transcription-RRwDmQBI.js} +4 -4
- package/dist/src/{transform-CdcZMCo-.js → transform-2ldksCeN.js} +3 -3
- package/dist/src/{transform-BfiH9c1w.js → transform-BesK7nGM.js} +3 -3
- package/dist/src/{transform-CCHDyuc8.cjs → transform-DS2y12jo.cjs} +3 -3
- package/dist/src/{transform-D0QSXU95.js → transform-ciU2euIH.js} +3 -3
- package/dist/src/{util-tlprLsf4.js → util-9K7THVcA2.js} +2 -2
- package/dist/src/{util-BoTwsVvn.js → util-BKfPcBQN.js} +4 -4
- package/dist/src/{util-L5T81aJ0.cjs → util-BPkxeLuk.cjs} +10 -387
- package/dist/src/{util-Ur5TGF_w.js → util-BPlSGvsQ.js} +4 -3
- package/dist/src/{util-uYYKYi7_.js → util-BPtpPW4O.js} +5 -346
- package/dist/src/{util-EBjz-RBV.js → util-BaGd-bCr.js} +2 -2
- package/dist/src/{util-BJ42x4mo.js → util-Bac0h5Sr.js} +2 -2
- package/dist/src/{util-ChbabPn9.cjs → util-Bd8_MhVm.cjs} +2 -2
- package/dist/src/{util-BxmNax2U.js → util-BdN7DdPq.js} +4 -3
- package/dist/src/{util-DdGIEAK_.js → util-BnytsHEr.js} +5 -346
- package/dist/src/{util-COyt9Xaf.cjs → util-BuKoPAn3.cjs} +4 -4
- package/dist/src/{util-BVDvJqrO.js → util-CEecmC3Y.js} +4 -4
- package/dist/src/{util-CZ9shpIL.js → util-CJi6Bgno.js} +3 -3
- package/dist/src/{util-BdAsuWmv.js → util-CZyLhvIk.js} +6 -347
- package/dist/src/{util-CeP1x2P-.cjs → util-Cadd9fGT.cjs} +3 -3
- package/dist/src/{util-DT7Jko3E.js → util-CzWbxb9R.js} +4 -3
- package/dist/src/{util-CVbeMrg1.js → util-DHtnWbEL.js} +3 -3
- package/dist/src/{util-BDDaDhsI.cjs → util-DSwbJPgL.cjs} +7 -6
- package/dist/src/{util-BNvjVvcH.cjs → util-DhtW6BNS.cjs} +5 -4
- package/dist/src/{util-CmRx53hM.js → util-DiVs2Kf-.js} +4 -3
- package/dist/src/{util-DxyypCZC.js → util-DlFpV1xV.js} +4 -4
- package/dist/src/{util-DtOvD10k.js → util-DlT2H1W5.js} +3 -3
- package/dist/src/{util-PX9qBGnk.js → util-InmFNqSw.js} +4 -3
- package/dist/src/{util-CwUz9jYN.js → util-Rbl6Om9L2.js} +4 -3
- package/dist/src/{vertex-BGBoge5t.js → vertex-BJYJC-Tr.js} +8 -7
- package/dist/src/{vertex-BKhWzpAp.js → vertex-CRMbWhh2.js} +8 -7
- package/dist/src/{vertex-BpaCFvPe.js → vertex-DWXywdFu.js} +8 -7
- package/dist/src/{vertex-FM6gcfuB.cjs → vertex-DXmhY_4R.cjs} +10 -9
- package/dist/src/{vertex-DPgy1bci.js → vertex-Xq6Hc4hv.js} +1 -1
- package/dist/src/{video-CLhmUJuz.js → video-1uQOdg9A.js} +3 -3
- package/dist/src/{video-C4hvGFWO.js → video-BMnt4dq9.js} +3 -3
- package/dist/src/{video-DV7VnFDb.js → video-CZ5He3fP.js} +3 -3
- package/dist/src/{video-CFJeZvvL.cjs → video-ChxZLKTs.cjs} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/dist/src/cache-Ca6QI7yz.js +0 -3
- package/dist/src/cloud-aeP705RD.js +0 -3
- package/dist/src/codex-sdk-CMTTOSVq.js +0 -3
- package/dist/src/evaluator-CRrA6xHS.js +0 -3
- package/dist/src/fetch-BYe9zZ94.js +0 -3
- package/dist/src/graders-fvvHDb5X.js +0 -3
- package/dist/src/server-DmrHjxNq.js +0 -3
- package/dist/src/telemetry-BvzHQKBp.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { I as getEnvFloat, L as getEnvInt, R as getEnvString, c as logger } from "./logger-YzVIwMVq.js";
|
|
3
|
-
import { n as telemetry } from "./telemetry-
|
|
3
|
+
import { n as telemetry } from "./telemetry-BD4xF9d_.js";
|
|
4
4
|
import { s as StringOrFunctionSchema } from "./fileExtensions-CAc10_Jb.js";
|
|
5
5
|
import { i as getTransformErrorMessage, o as transform, r as TransformInputType } from "./transform-BBv6X1Ag.js";
|
|
6
6
|
import { z as z$1 } from "zod";
|
|
@@ -409,7 +409,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
409
409
|
* Invoke SageMaker endpoint for text generation with caching, delay support, and transformations
|
|
410
410
|
*/
|
|
411
411
|
async callApi(prompt, context, _options) {
|
|
412
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
412
|
+
const { isCacheEnabled, getCache } = await import("./cache-Cjok8TBD.js");
|
|
413
413
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
414
414
|
const transformResult = await this.runTransformSafely(prompt, context, "SageMaker transform error");
|
|
415
415
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -423,7 +423,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
423
423
|
const bustCache = context?.bustCache ?? context?.debug === true;
|
|
424
424
|
if (isCacheEnabled() && !bustCache) {
|
|
425
425
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
426
|
-
const cachedResult = await (getCache ? getCache() : await import("./cache-
|
|
426
|
+
const cachedResult = await (getCache ? getCache() : await import("./cache-Cjok8TBD.js").then((m) => m.getCache())).get(cacheKey);
|
|
427
427
|
if (cachedResult) {
|
|
428
428
|
logger.debug(`Using cached SageMaker response for ${this.getEndpointName()}`);
|
|
429
429
|
try {
|
|
@@ -497,7 +497,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
497
497
|
};
|
|
498
498
|
if (isCacheEnabled() && !bustCache && result.output && !result.error) {
|
|
499
499
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
500
|
-
const cache = getCache ? getCache() : await import("./cache-
|
|
500
|
+
const cache = getCache ? getCache() : await import("./cache-Cjok8TBD.js").then((m) => m.getCache());
|
|
501
501
|
const resultToCache = JSON.stringify(result);
|
|
502
502
|
try {
|
|
503
503
|
await cache.set(cacheKey, resultToCache);
|
|
@@ -542,7 +542,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
542
542
|
* Invoke SageMaker endpoint for embeddings with caching, delay support, and transformations
|
|
543
543
|
*/
|
|
544
544
|
async callEmbeddingApi(text, context) {
|
|
545
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
545
|
+
const { isCacheEnabled, getCache } = await import("./cache-Cjok8TBD.js");
|
|
546
546
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
547
547
|
const transformResult = await this.runTransformSafely(text, context, "SageMaker embedding transform error");
|
|
548
548
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -556,7 +556,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
556
556
|
const bustCache = context?.debug === true;
|
|
557
557
|
if (isCacheEnabled() && !bustCache) {
|
|
558
558
|
const cacheKey = this.getCacheKey(transformedText);
|
|
559
|
-
const cachedResult = await (await getCache ? await getCache() : await import("./cache-
|
|
559
|
+
const cachedResult = await (await getCache ? await getCache() : await import("./cache-Cjok8TBD.js").then((m) => m.getCache())).get(cacheKey);
|
|
560
560
|
if (cachedResult) {
|
|
561
561
|
logger.debug(`Using cached SageMaker embedding response for ${this.getEndpointName()}`);
|
|
562
562
|
try {
|
|
@@ -668,11 +668,11 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
668
668
|
* Helper method to cache embedding results
|
|
669
669
|
*/
|
|
670
670
|
async cacheEmbeddingResult(result, text, context, isTransformed = false, originalText) {
|
|
671
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
671
|
+
const { isCacheEnabled, getCache } = await import("./cache-Cjok8TBD.js");
|
|
672
672
|
const bustCache = context?.debug === true;
|
|
673
673
|
if (isCacheEnabled() && !bustCache && result.embedding && !result.error) {
|
|
674
674
|
const cacheKey = this.getCacheKey(text);
|
|
675
|
-
const cache = await getCache ? await getCache() : await import("./cache-
|
|
675
|
+
const cache = await getCache ? await getCache() : await import("./cache-Cjok8TBD.js").then((m) => m.getCache());
|
|
676
676
|
if (isTransformed && originalText && !result.metadata) result.metadata = {
|
|
677
677
|
transformed: true,
|
|
678
678
|
originalText
|
|
@@ -694,4 +694,4 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
694
694
|
//#endregion
|
|
695
695
|
export { SageMakerCompletionProvider, SageMakerEmbeddingProvider };
|
|
696
696
|
|
|
697
|
-
//# sourceMappingURL=sagemaker-
|
|
697
|
+
//# sourceMappingURL=sagemaker-C35al2QN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as getEnvInt, I as getEnvString, P as getEnvFloat, o as logger } from "./logger-D4ion89i.js";
|
|
2
2
|
import { s as StringOrFunctionSchema } from "./shared-B6FXN6z-.js";
|
|
3
|
-
import { t as telemetry } from "./telemetry-
|
|
3
|
+
import { t as telemetry } from "./telemetry-BQZTDom3.js";
|
|
4
4
|
import { i as getTransformErrorMessage, o as transform, r as TransformInputType } from "./transform-DB3wGXIb.js";
|
|
5
5
|
import { z as z$1 } from "zod";
|
|
6
6
|
import crypto from "crypto";
|
|
@@ -408,7 +408,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
408
408
|
* Invoke SageMaker endpoint for text generation with caching, delay support, and transformations
|
|
409
409
|
*/
|
|
410
410
|
async callApi(prompt, context, _options) {
|
|
411
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
411
|
+
const { isCacheEnabled, getCache } = await import("./cache-ePPAC5hy.js").then((n) => n.t);
|
|
412
412
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
413
413
|
const transformResult = await this.runTransformSafely(prompt, context, "SageMaker transform error");
|
|
414
414
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -422,7 +422,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
422
422
|
const bustCache = context?.bustCache ?? context?.debug === true;
|
|
423
423
|
if (isCacheEnabled() && !bustCache) {
|
|
424
424
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
425
|
-
const cachedResult = await (getCache ? getCache() : await import("./cache-
|
|
425
|
+
const cachedResult = await (getCache ? getCache() : await import("./cache-ePPAC5hy.js").then((n) => n.t).then((m) => m.getCache())).get(cacheKey);
|
|
426
426
|
if (cachedResult) {
|
|
427
427
|
logger.debug(`Using cached SageMaker response for ${this.getEndpointName()}`);
|
|
428
428
|
try {
|
|
@@ -496,7 +496,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
496
496
|
};
|
|
497
497
|
if (isCacheEnabled() && !bustCache && result.output && !result.error) {
|
|
498
498
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
499
|
-
const cache = getCache ? getCache() : await import("./cache-
|
|
499
|
+
const cache = getCache ? getCache() : await import("./cache-ePPAC5hy.js").then((n) => n.t).then((m) => m.getCache());
|
|
500
500
|
const resultToCache = JSON.stringify(result);
|
|
501
501
|
try {
|
|
502
502
|
await cache.set(cacheKey, resultToCache);
|
|
@@ -541,7 +541,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
541
541
|
* Invoke SageMaker endpoint for embeddings with caching, delay support, and transformations
|
|
542
542
|
*/
|
|
543
543
|
async callEmbeddingApi(text, context) {
|
|
544
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
544
|
+
const { isCacheEnabled, getCache } = await import("./cache-ePPAC5hy.js").then((n) => n.t);
|
|
545
545
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
546
546
|
const transformResult = await this.runTransformSafely(text, context, "SageMaker embedding transform error");
|
|
547
547
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -555,7 +555,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
555
555
|
const bustCache = context?.debug === true;
|
|
556
556
|
if (isCacheEnabled() && !bustCache) {
|
|
557
557
|
const cacheKey = this.getCacheKey(transformedText);
|
|
558
|
-
const cachedResult = await (await getCache ? await getCache() : await import("./cache-
|
|
558
|
+
const cachedResult = await (await getCache ? await getCache() : await import("./cache-ePPAC5hy.js").then((n) => n.t).then((m) => m.getCache())).get(cacheKey);
|
|
559
559
|
if (cachedResult) {
|
|
560
560
|
logger.debug(`Using cached SageMaker embedding response for ${this.getEndpointName()}`);
|
|
561
561
|
try {
|
|
@@ -667,11 +667,11 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
667
667
|
* Helper method to cache embedding results
|
|
668
668
|
*/
|
|
669
669
|
async cacheEmbeddingResult(result, text, context, isTransformed = false, originalText) {
|
|
670
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
670
|
+
const { isCacheEnabled, getCache } = await import("./cache-ePPAC5hy.js").then((n) => n.t);
|
|
671
671
|
const bustCache = context?.debug === true;
|
|
672
672
|
if (isCacheEnabled() && !bustCache && result.embedding && !result.error) {
|
|
673
673
|
const cacheKey = this.getCacheKey(text);
|
|
674
|
-
const cache = await getCache ? await getCache() : await import("./cache-
|
|
674
|
+
const cache = await getCache ? await getCache() : await import("./cache-ePPAC5hy.js").then((n) => n.t).then((m) => m.getCache());
|
|
675
675
|
if (isTransformed && originalText && !result.metadata) result.metadata = {
|
|
676
676
|
transformed: true,
|
|
677
677
|
originalText
|
|
@@ -693,4 +693,4 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
693
693
|
//#endregion
|
|
694
694
|
export { SageMakerCompletionProvider, SageMakerEmbeddingProvider };
|
|
695
695
|
|
|
696
|
-
//# sourceMappingURL=sagemaker-
|
|
696
|
+
//# sourceMappingURL=sagemaker-D8HnIjWK.js.map
|
|
@@ -2,7 +2,7 @@ const require_logger = require("./logger-BN3n9c1R.cjs");
|
|
|
2
2
|
const require_shared = require("./shared-BBB3Jgi1.cjs");
|
|
3
3
|
require("./fileExtensions-BQZEFw03.cjs");
|
|
4
4
|
const require_transform = require("./transform-Bz311bXX.cjs");
|
|
5
|
-
const require_telemetry = require("./telemetry-
|
|
5
|
+
const require_telemetry = require("./telemetry-cZi2RTrN.cjs");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let crypto = require("crypto");
|
|
8
8
|
crypto = require_logger.__toESM(crypto, 1);
|
|
@@ -410,7 +410,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
410
410
|
* Invoke SageMaker endpoint for text generation with caching, delay support, and transformations
|
|
411
411
|
*/
|
|
412
412
|
async callApi(prompt, context, _options) {
|
|
413
|
-
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-
|
|
413
|
+
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports);
|
|
414
414
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
415
415
|
const transformResult = await this.runTransformSafely(prompt, context, "SageMaker transform error");
|
|
416
416
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -424,7 +424,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
424
424
|
const bustCache = context?.bustCache ?? context?.debug === true;
|
|
425
425
|
if (isCacheEnabled() && !bustCache) {
|
|
426
426
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
427
|
-
const cachedResult = await (getCache ? getCache() : await Promise.resolve().then(() => require("./cache-
|
|
427
|
+
const cachedResult = await (getCache ? getCache() : await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports).then((m) => m.getCache())).get(cacheKey);
|
|
428
428
|
if (cachedResult) {
|
|
429
429
|
require_logger.logger.debug(`Using cached SageMaker response for ${this.getEndpointName()}`);
|
|
430
430
|
try {
|
|
@@ -498,7 +498,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
498
498
|
};
|
|
499
499
|
if (isCacheEnabled() && !bustCache && result.output && !result.error) {
|
|
500
500
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
501
|
-
const cache = getCache ? getCache() : await Promise.resolve().then(() => require("./cache-
|
|
501
|
+
const cache = getCache ? getCache() : await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports).then((m) => m.getCache());
|
|
502
502
|
const resultToCache = JSON.stringify(result);
|
|
503
503
|
try {
|
|
504
504
|
await cache.set(cacheKey, resultToCache);
|
|
@@ -543,7 +543,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
543
543
|
* Invoke SageMaker endpoint for embeddings with caching, delay support, and transformations
|
|
544
544
|
*/
|
|
545
545
|
async callEmbeddingApi(text, context) {
|
|
546
|
-
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-
|
|
546
|
+
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports);
|
|
547
547
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
548
548
|
const transformResult = await this.runTransformSafely(text, context, "SageMaker embedding transform error");
|
|
549
549
|
if (!transformResult.ok) return { error: transformResult.error };
|
|
@@ -557,7 +557,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
557
557
|
const bustCache = context?.debug === true;
|
|
558
558
|
if (isCacheEnabled() && !bustCache) {
|
|
559
559
|
const cacheKey = this.getCacheKey(transformedText);
|
|
560
|
-
const cachedResult = await (await getCache ? await getCache() : await Promise.resolve().then(() => require("./cache-
|
|
560
|
+
const cachedResult = await (await getCache ? await getCache() : await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports).then((m) => m.getCache())).get(cacheKey);
|
|
561
561
|
if (cachedResult) {
|
|
562
562
|
require_logger.logger.debug(`Using cached SageMaker embedding response for ${this.getEndpointName()}`);
|
|
563
563
|
try {
|
|
@@ -669,11 +669,11 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
669
669
|
* Helper method to cache embedding results
|
|
670
670
|
*/
|
|
671
671
|
async cacheEmbeddingResult(result, text, context, isTransformed = false, originalText) {
|
|
672
|
-
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-
|
|
672
|
+
const { isCacheEnabled, getCache } = await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports);
|
|
673
673
|
const bustCache = context?.debug === true;
|
|
674
674
|
if (isCacheEnabled() && !bustCache && result.embedding && !result.error) {
|
|
675
675
|
const cacheKey = this.getCacheKey(text);
|
|
676
|
-
const cache = await getCache ? await getCache() : await Promise.resolve().then(() => require("./cache-
|
|
676
|
+
const cache = await getCache ? await getCache() : await Promise.resolve().then(() => require("./cache-g3VTrtsd.cjs")).then((n) => n.cache_exports).then((m) => m.getCache());
|
|
677
677
|
if (isTransformed && originalText && !result.metadata) result.metadata = {
|
|
678
678
|
transformed: true,
|
|
679
679
|
originalText
|
|
@@ -696,4 +696,4 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
696
696
|
exports.SageMakerCompletionProvider = SageMakerCompletionProvider;
|
|
697
697
|
exports.SageMakerEmbeddingProvider = SageMakerEmbeddingProvider;
|
|
698
698
|
|
|
699
|
-
//# sourceMappingURL=sagemaker-
|
|
699
|
+
//# sourceMappingURL=sagemaker-I0Ei2kNn.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { U as state, c as logger, j as loadYaml, r as getLogLevel, u as setLogLevel } from "./logger-YzVIwMVq.js";
|
|
3
|
-
import {
|
|
3
|
+
import { W as TERMINAL_MAX_WIDTH, X as VERSION } from "./fetch-KD8O9oZZ.js";
|
|
4
4
|
import { r as sleepWithAbort } from "./time-Ct6CnABs.js";
|
|
5
|
-
import { t as printBorder } from "./util-BdAsuWmv.js";
|
|
6
5
|
import { n as sha256 } from "./createHash-DqA6GWxE.js";
|
|
6
|
+
import { t as printBorder } from "./util-CZyLhvIk.js";
|
|
7
7
|
import { t as formatDuration } from "./formatDuration-22XOO9FJ.js";
|
|
8
8
|
import chalk from "chalk";
|
|
9
9
|
import { z as z$1 } from "zod";
|
|
@@ -270,7 +270,7 @@ var ConfigLoadError = class extends Error {
|
|
|
270
270
|
*/
|
|
271
271
|
let cloudConfig$1;
|
|
272
272
|
try {
|
|
273
|
-
cloudConfig$1 = (await import("./cloud-
|
|
273
|
+
cloudConfig$1 = (await import("./cloud-BzpJioZO.js")).cloudConfig;
|
|
274
274
|
} catch (error) {
|
|
275
275
|
if (error instanceof Error && "code" in error && error.code === "MODULE_NOT_FOUND") {} else logger.debug(`Unexpected error loading cloud config: ${error}`);
|
|
276
276
|
}
|
|
@@ -315,7 +315,7 @@ function resolveBaseAuthCredentials(opts) {
|
|
|
315
315
|
*/
|
|
316
316
|
let cloudConfig;
|
|
317
317
|
try {
|
|
318
|
-
cloudConfig = (await import("./cloud-
|
|
318
|
+
cloudConfig = (await import("./cloud-BzpJioZO.js")).cloudConfig;
|
|
319
319
|
} catch (error) {
|
|
320
320
|
if (error instanceof Error && "code" in error && error.code === "MODULE_NOT_FOUND") {} else logger.debug(`Unexpected error loading cloud config: ${error}`);
|
|
321
321
|
}
|
|
@@ -1981,4 +1981,4 @@ async function executeScan(repoPath, options) {
|
|
|
1981
1981
|
//#endregion
|
|
1982
1982
|
export { executeScan };
|
|
1983
1983
|
|
|
1984
|
-
//# sourceMappingURL=scanner-
|
|
1984
|
+
//# sourceMappingURL=scanner-De5yM_DC.js.map
|
package/dist/src/server/index.js
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
import { t as getProcessShim } from "../processShim-CAJN2mjb.js";
|
|
2
2
|
import { C as extractJsonObjects, D as safeJsonStringify, E as orderKeys, F as getEnvInt, I as getEnvString, L as getEvalTimeoutMs, M as state, N as getEnvBool, O as summarizeEvaluateResultForLogging, P as getEnvFloat, R as getMaxEvalTimeMs, S as extractFirstJsonObject, _ as sanitizeRuntimeOptions, c as setLogLevel, g as sanitizeObject, h as restoreAzureBlobSasTokens, i as isDebugEnabled, k as loadYaml, m as redactAzureBlobSasTokens, n as getLogLevel, o as logger, p as preserveTracingCredentialReferences, r as globalLogCallback, s as setLogCallback, t as clearLogCallbackIfOwned, v as sanitizeTracingConfigForPersistence, w as getAjv, z as isCI } from "../logger-D4ion89i.js";
|
|
3
|
-
import { $ as isGoogleProvider, A as hasUnscopedUpdate,
|
|
4
|
-
import {
|
|
3
|
+
import { $ as isGoogleProvider, A as hasUnscopedUpdate, B as fetchCsvFromGoogleSheet, C as getCachedResultsCount, Ct as isApiProvider, D as getStandaloneEvalCacheKey, E as getCachedStandaloneEvals, Et as HUMAN_ASSERTION_TYPE, F as hashPrompt, G as filterRuntimeVars, H as setupEnv, J as checkProviderApiKeys, K as getTestCaseDeduplicationKey, M as readSignalFile, N as setupSignalWatcher, O as setCachedStandaloneEvals, P as updateEvalIds, Q as isAnthropicProvider, S as notifyEvaluationsDeleted, T as queryTestIndicesOptimized, Tt as FILE_METADATA_KEY, U as deduplicateTestCases, W as extractRuntimeVars, X as getProviderDescription, Y as doesProviderRefMatch, Z as getProviderIdentifier, _ as sanitizeResultForJsonlArtifact, _t as readOutput, a as ComparisonEvalNotFoundError, at as normalizeProviderRef, b as invalidateEvaluationCaches, bt as loadFunction, c as getEvalTableOutputPromptLocationsBySize, d as EvalResult, et as isOpenAiProvider, f as PROMPTFOO_METADATA_KEY, g as sanitizeProvider, gt as readFilters, h as persistTraceMetadata, ht as pathExists, i as getOutputFileFormat, j as isAllEvalsDeleted, k as hasDeleteComponent, l as getEvalTablePromptStrippedPayload, lt as maybeLoadConfigFromExternalFile, m as getResultIndexKey, n as warnOnDegradedJsonlRecovery, nt as sanitizeProviderIdForLog, o as evalTableToJson, p as asEvaluateResult, pt as maybeLoadToolsFromExternalFile, q as resultIsForTestCase, r as writeMultipleOutputs, s as generateEvalCsv, t as printBorder, tt as isProviderAllowed, u as mergeComparisonTables, ut as maybeLoadFromExternalFile, v as stripTraceLinkageFromMetadata, w as getTotalResultRowCount, x as notifyEvaluationChanged, xt as parseFileUrl, y as invalidateEvaluationCache, z as generateIdFromPrompt } from "../util-BPtpPW4O.js";
|
|
4
|
+
import { G as TERMINAL_MAX_WIDTH, J as getShareApiBaseUrl, K as getDefaultPort, L as parseChatPrompt, P as isPromptfooSampleTarget, S as isAbortError, Y as getShareViewBaseUrl, Z as VERSION, j as getRequestTimeoutMs, m as cloudConfig, n as fetchWithRetries, p as CloudConfig, q as getDefaultShareViewBaseUrl, r as fetchWithTimeout, t as fetchWithProxy, w as isNonTransientHttpStatus, y as NON_TRANSIENT_HTTP_STATUSES } from "../fetch-DnDg-Ics.js";
|
|
5
5
|
import { t as invariant } from "../invariant-CHP0zrix.js";
|
|
6
|
-
import { a as getAuthor, c as getUserId, d as setUserEmail, i as clearUserEmail, l as isLoggedIntoCloud, n as checkEmailStatus, r as checkEmailStatusAndMaybeExit, s as getUserEmail, t as EmailValidationError, u as promptForEmailUnverified } from "../accounts-
|
|
6
|
+
import { a as getAuthor, c as getUserId, d as setUserEmail, i as clearUserEmail, l as isLoggedIntoCloud, n as checkEmailStatus, r as checkEmailStatusAndMaybeExit, s as getUserEmail, t as EmailValidationError, u as promptForEmailUnverified } from "../accounts-BDud3p32.js";
|
|
7
7
|
import { n as sleep, t as getCurrentTimestamp } from "../time-BPNW8jwJ.js";
|
|
8
8
|
import { r as importModule, t as getDirectory } from "../esm-Cft3V56i.js";
|
|
9
9
|
import { t as providerRegistry } from "../providerRegistry-C2g0ODeW.js";
|
|
10
10
|
import { i as withSpanRole, r as getActiveTraceparent, t as SPAN_ROLE_ATTRIBUTE } from "../spanRoles-Drw6abNG.js";
|
|
11
11
|
import { c as getGenAITracer, d as sanitizeBody, f as withGenAISpan, n as PromptfooAttributes, t as GenAIAttributes } from "../genaiTracer-Cp9O3qLz.js";
|
|
12
12
|
import { n as sha256, t as randomSequence } from "../createHash-D7vud8fe.js";
|
|
13
|
-
import { a as getCache, d as withCacheNamespace, i as fetchWithCache, r as disableCache, u as withCacheEnabled } from "../cache-
|
|
14
|
-
import { a as
|
|
13
|
+
import { a as getCache, d as withCacheNamespace, i as fetchWithCache, r as disableCache, u as withCacheEnabled } from "../cache-ePPAC5hy.js";
|
|
14
|
+
import { a as isAgenticGradingProvider } from "../agentic-utils-DneHhExJ.js";
|
|
15
15
|
import { $ as Severity, A as isCliEventSource, D as UnifiedConfigSchema, Dt as CODING_AGENT_CORE_PLUGINS, E as TestSuiteSchema, Et as UNALIGNED_PROVIDER_HARM_PLUGINS, F as PartialGenerationError, G as DEFAULT_STRATEGIES, I as PluginConfigSchema, J as STRATEGY_COLLECTION_MAPPINGS, M as ProviderOptionsSchema, Mt as PromptSchema, N as ProvidersSchema, O as isGradingResult, Ot as CODING_AGENT_PLUGINS, P as ConversationMessageSchema, Q as isMultiTurnStrategy, R as ProbeLimitExceededError, S as EvaluateOptionsSchema, St as REMOTE_ONLY_PLUGIN_IDS, T as TestSuiteConfigSchema, Tt as TELECOM_PLUGINS, U as ALL_STRATEGIES, V as isUuid, Y as getDefaultNFanout, Z as isFanoutStrategy, _t as MULTI_INPUT_VAR, a as evalResultsTable, at as BIAS_PLUGINS, b as CommandLineOptionsSchema, bt as PLUGIN_CATEGORIES, c as evalsToPromptsTable, ct as DEFAULT_PLUGINS, d as promptsTable, dt as HARM_PLUGINS, et as categoryAliases, f as spansTable, ft as INSURANCE_PLUGINS, g as getDb, gt as MULTI_INPUT_EXCLUDED_PLUGINS, h as closeDbIfOpen, ht as MEDICAL_PLUGINS, i as datasetsTable, it as ALL_PLUGINS, j as RedteamConfigSchema, jt as filterByRange, l as evalsToTagsTable, lt as FINANCIAL_PLUGINS, m as tracesTable, mt as LLAMA_GUARD_REPLICATE_PROVIDER, n as blobReferencesTable, nt as riskCategorySeverityMap, o as evalsTable, ot as CANARY_BREAKING_STRATEGY_IDS, p as tagsTable, pt as LLAMA_GUARD_ENABLED_CATEGORIES, q as STRATEGY_COLLECTIONS, r as configsTable, rt as ALIASED_PLUGIN_MAPPINGS, s as evalsToDatasetsTable, st as DATASET_EXEMPT_PLUGINS, t as blobAssetsTable, u as modelAuditsTable, ut as FOUNDATION_PLUGINS, v as AssertionOrSetSchema, vt as PHARMACY_PLUGINS, w as ResultFailureReason, wt as TEEN_SAFETY_PLUGINS, x as EvalResultsFilterMode, xt as REDTEAM_PROVIDER_HARM_PLUGINS, y as BaseAssertionTypesSchema, yt as PII_PLUGINS, z as StrategyConfigSchema } from "../tables-Dq3ppf0B.js";
|
|
16
16
|
import { t as BaseTokenUsageSchema } from "../shared-DRec7ZjY.js";
|
|
17
17
|
import { i as isJavascriptFile } from "../shared-B6FXN6z-.js";
|
|
18
18
|
import { n as removeSecureTempDirectory, r as writeSecureTempFile, t as createSecureTempDirectory } from "../secureTempFiles-DrvT47pa.js";
|
|
19
19
|
import { r as runPython } from "../pythonUtils-Spisespr.js";
|
|
20
|
+
import { a as extractVariablesFromTemplates, i as extractVariablesFromTemplate, n as renderVarsInObject, o as getNunjucksEngine, r as analyzeTemplateReference, t as renderEnvOnlyInObject } from "../render-DIhuKgcQ.js";
|
|
20
21
|
import { i as getShareAuthorizedBlob, n as getBlobByHash, r as getBlobUrl } from "../blobs-CTgrjifI.js";
|
|
21
22
|
import { a as collectBlobHashes, i as BLOB_URI_REGEX, n as isBlobStorageEnabled, o as extractBlobHashesFromValue, r as BLOB_SCAN_MAX_STRING_LENGTH, s as normalizeBlobHash, t as extractAndStoreBinaryData } from "../extractor-Bz0PjsMF.js";
|
|
22
23
|
import { c as accumulateTokenUsage, d as createEmptyTokenUsage, f as getErrorTokenUsage, i as accumulateGradingRequest, l as cloneTokenUsageBreakdown, n as accumulateAttackerTokenUsage, o as accumulateGradingTokenUsage, p as normalizeTokenUsage, r as accumulateGenerationTokenUsage, s as accumulateResponseTokenUsage, t as accumulateAssertionTokenUsage, u as createEmptyAssertions } from "../tokenUsageUtils-T-dUB6UI.js";
|
|
23
|
-
import { v as validateFunctionCall } from "../util-
|
|
24
|
+
import { v as validateFunctionCall } from "../util-CJi6Bgno.js";
|
|
24
25
|
import { s as getDefaultOtelConfig } from "../tracing-Ct2HWfTt.js";
|
|
25
26
|
import { a as TOOL_ARGUMENT_ATTRIBUTE_KEYS, c as getToolNameFromAttributes, i as SEARCH_ATTRIBUTE_KEYS, o as getFirstStringAttribute, r as COMMAND_ATTRIBUTE_KEYS, t as getTraceStore } from "../store-Cov-RTJ6.js";
|
|
26
|
-
import { c as neverGenerateRemote, d as shouldGenerateRemote, h as getCodexDefaultProviders, i as getRemoteGenerationUrl, m as resolveRedteamGenerationContext, n as getRemoteGenerationExplicitlyDisabledError, o as getRemoteHealthUrl, p as remoteGenerationContextPayload, r as getRemoteGenerationHeaders } from "../remoteGeneration-
|
|
27
|
-
import { $ as loadRubricPrompt, A as DivergentRepetitionPlugin, B as matchesFactuality, C as getPiiLeakTestsForCategory, Ct as sampleArray, D as HarmbenchPlugin, Dt as getRedteamGenerationContextFromProviders, E as ImitationPlugin, Et as getCloudTargetIdFromProviders, F as AegisPlugin, G as doRemoteGrading, H as matchesLlmRubric, I as RedteamPluginBase, J as readProviderPromptMap, K as processPrompts, L as fetchHuggingFaceDataset, M as CrossSessionLeakPlugin, N as ContractPlugin, O as HallucinationPlugin, P as BeavertailsPlugin, Q as SUGGEST_PROMPTS_SYSTEM_MESSAGE, R as isGraderFailure, S as PlinyPlugin, St as retryWithDeduplication, T as IntentPlugin, Tt as DEFAULT_ANTHROPIC_MODEL, U as matchesPiScore, V as matchesGEval, W as matchesTrajectoryGoalSuccess, X as DEFAULT_WEB_SEARCH_PROMPT, Y as DEFAULT_AGENT_GRADING_PROMPT, Z as SELECT_BEST_PROMPT, _ as PoliticsPlugin, _t as getAndCheckProvider, a as UnverifiableClaimsPlugin, at as fail, b as isValidPolicyObject, bt as shouldUseRemoteGrading, c as ToolDiscoveryPlugin, ct as splitIntoSentences, d as TeenSafetyDangerousContentPlugin, dt as coerceString, et as renderLlmRubricPrompt, f as TeenSafetyAgeRestrictedGoodsAndServicesPlugin, ft as getFinalTest, g as PromptExtractionPlugin, gt as callProviderWithContext, h as RbacPlugin, ht as callGradingProvider, i as VLGuardPlugin, it as euclideanDistance, j as DebugAccessPlugin, k as ExcessiveAgencyPlugin, l as TeenSafetyHarmfulBodyIdealsPlugin, lt as splitTextIntoSentences, m as ShellInjectionPlugin, mt as processFileReference, nt as cosineSimilarity, o as UnsafeBenchPlugin, ot as graderFail, p as SqlInjectionPlugin, pt as loadFromJavaScriptFile, q as readPrompts, r as VLSUPlugin, rt as dotProduct, s as ToxicChatPlugin, st as normalizeMatcherTokenUsage, t as getGraderById, tt as runJsonGradingPrompt, u as TeenSafetyDangerousRoleplayPlugin, ut as tryParse, v as PolicyPlugin, vt as getGradingProvider, w as OverreliancePlugin, wt as getDefaultProviders, x as makeInlinePolicyIdSync, xt as getCustomPolicies, y as determinePolicyTypeFromId, yt as getRemoteGradingContext, z as matchesClosedQa } from "../graders-
|
|
28
|
-
import { a as openBrowser, i as checkServerRunning, n as BrowserBehaviorNames, s as promptYesNo, t as BrowserBehavior } from "../server-
|
|
29
|
-
import { A as withProviderCallTracingContext, C as TokenUsageTracker, D as getProviderCallExecutionContext, M as uploadBlobRemote, O as getProviderCallTracingContext, S as throwIfTargetPromptExceedsMaxChars, T as createProviderRateLimitOptions, b as getGeneratedPromptOverLimit, g as redteamProviderManager, k as withProviderCallExecutionContext, w as createRateLimitRegistry, x as getMaxCharsPerMessageModifierValue, y as MAX_CHARS_PER_MESSAGE_MODIFIER_KEY } from "../shared-
|
|
30
|
-
import { c as getEvalConfigFromCloud, h as resolveTeamId, i as retrieveMedia, l as getOrgContext, o as checkCloudPermissions, p as isCloudProvider, r as mediaExists, s as getCloudDatabaseId, t as getMediaStorage, u as getPluginSeverityOverridesFromCloud } from "../storage-
|
|
31
|
-
import { r as TelemetryEventSchema, t as telemetry } from "../telemetry-
|
|
32
|
-
import { a as resolveProvider, d as createTransformRequest, f as createTransformResponse, l as MCPProvider, n as loadApiProvider, o as resolveProviderConfigs, p as A2AProvider, r as loadApiProviders, t as getProviderIds, u as HttpProvider } from "../providers-
|
|
27
|
+
import { c as neverGenerateRemote, d as shouldGenerateRemote, h as getCodexDefaultProviders, i as getRemoteGenerationUrl, m as resolveRedteamGenerationContext, n as getRemoteGenerationExplicitlyDisabledError, o as getRemoteHealthUrl, p as remoteGenerationContextPayload, r as getRemoteGenerationHeaders } from "../remoteGeneration-DGJxSMYI.js";
|
|
28
|
+
import { $ as loadRubricPrompt, A as DivergentRepetitionPlugin, B as matchesFactuality, C as getPiiLeakTestsForCategory, Ct as sampleArray, D as HarmbenchPlugin, Dt as getRedteamGenerationContextFromProviders, E as ImitationPlugin, Et as getCloudTargetIdFromProviders, F as AegisPlugin, G as doRemoteGrading, H as matchesLlmRubric, I as RedteamPluginBase, J as readProviderPromptMap, K as processPrompts, L as fetchHuggingFaceDataset, M as CrossSessionLeakPlugin, N as ContractPlugin, O as HallucinationPlugin, P as BeavertailsPlugin, Q as SUGGEST_PROMPTS_SYSTEM_MESSAGE, R as isGraderFailure, S as PlinyPlugin, St as retryWithDeduplication, T as IntentPlugin, Tt as DEFAULT_ANTHROPIC_MODEL, U as matchesPiScore, V as matchesGEval, W as matchesTrajectoryGoalSuccess, X as DEFAULT_WEB_SEARCH_PROMPT, Y as DEFAULT_AGENT_GRADING_PROMPT, Z as SELECT_BEST_PROMPT, _ as PoliticsPlugin, _t as getAndCheckProvider, a as UnverifiableClaimsPlugin, at as fail, b as isValidPolicyObject, bt as shouldUseRemoteGrading, c as ToolDiscoveryPlugin, ct as splitIntoSentences, d as TeenSafetyDangerousContentPlugin, dt as coerceString, et as renderLlmRubricPrompt, f as TeenSafetyAgeRestrictedGoodsAndServicesPlugin, ft as getFinalTest, g as PromptExtractionPlugin, gt as callProviderWithContext, h as RbacPlugin, ht as callGradingProvider, i as VLGuardPlugin, it as euclideanDistance, j as DebugAccessPlugin, k as ExcessiveAgencyPlugin, l as TeenSafetyHarmfulBodyIdealsPlugin, lt as splitTextIntoSentences, m as ShellInjectionPlugin, mt as processFileReference, nt as cosineSimilarity, o as UnsafeBenchPlugin, ot as graderFail, p as SqlInjectionPlugin, pt as loadFromJavaScriptFile, q as readPrompts, r as VLSUPlugin, rt as dotProduct, s as ToxicChatPlugin, st as normalizeMatcherTokenUsage, t as getGraderById, tt as runJsonGradingPrompt, u as TeenSafetyDangerousRoleplayPlugin, ut as tryParse, v as PolicyPlugin, vt as getGradingProvider, w as OverreliancePlugin, wt as getDefaultProviders, x as makeInlinePolicyIdSync, xt as getCustomPolicies, y as determinePolicyTypeFromId, yt as getRemoteGradingContext, z as matchesClosedQa } from "../graders-BWtqxJ75.js";
|
|
29
|
+
import { a as openBrowser, i as checkServerRunning, n as BrowserBehaviorNames, s as promptYesNo, t as BrowserBehavior } from "../server-CqQtEkS_.js";
|
|
30
|
+
import { A as withProviderCallTracingContext, C as TokenUsageTracker, D as getProviderCallExecutionContext, M as uploadBlobRemote, O as getProviderCallTracingContext, S as throwIfTargetPromptExceedsMaxChars, T as createProviderRateLimitOptions, b as getGeneratedPromptOverLimit, g as redteamProviderManager, k as withProviderCallExecutionContext, w as createRateLimitRegistry, x as getMaxCharsPerMessageModifierValue, y as MAX_CHARS_PER_MESSAGE_MODIFIER_KEY } from "../shared-BkcgE6vB.js";
|
|
31
|
+
import { c as getEvalConfigFromCloud, h as resolveTeamId, i as retrieveMedia, l as getOrgContext, o as checkCloudPermissions, p as isCloudProvider, r as mediaExists, s as getCloudDatabaseId, t as getMediaStorage, u as getPluginSeverityOverridesFromCloud } from "../storage-B_t-NiUa.js";
|
|
32
|
+
import { r as TelemetryEventSchema, t as telemetry } from "../telemetry-BQZTDom3.js";
|
|
33
|
+
import { a as resolveProvider, d as createTransformRequest, f as createTransformResponse, l as MCPProvider, n as loadApiProvider, o as resolveProviderConfigs, p as A2AProvider, r as loadApiProviders, t as getProviderIds, u as HttpProvider } from "../providers-C75KcJPJ.js";
|
|
33
34
|
import { t as ellipsize } from "../text-Fd7EOhdv.js";
|
|
34
35
|
import { n as loadFromPackage, t as isPackagePath } from "../packageParser-DK15aaEn.js";
|
|
35
36
|
import { n as runRuby } from "../rubyUtils-BN2KIyj3.js";
|
|
36
|
-
import { a as extractPromptFromTags, c as isBasicRefusal, f as recordGenerationTokenUsage, i as extractMaterializedVariablesFromJsonWithMetadata, m as trackGenerationTokenUsage, n as extractGoalFromPrompt, o as getSessionId, p as trackAdditionalGenerationProvider, s as getShortPluginId } from "../util-
|
|
37
|
+
import { a as extractPromptFromTags, c as isBasicRefusal, f as recordGenerationTokenUsage, i as extractMaterializedVariablesFromJsonWithMetadata, m as trackGenerationTokenUsage, n as extractGoalFromPrompt, o as getSessionId, p as trackAdditionalGenerationProvider, s as getShortPluginId } from "../util-CEecmC3Y.js";
|
|
37
38
|
import { n as createPlaceholderInputValue, t as buildPromptInputDescriptions } from "../inputVariables-0w-8L-AP.js";
|
|
38
|
-
import { a as assertRemoteMaterializationHandled, l as requiresRemoteMaterialization, n as PromptfooHarmfulCompletionProvider } from "../promptfoo-
|
|
39
|
+
import { a as assertRemoteMaterializationHandled, l as requiresRemoteMaterialization, n as PromptfooHarmfulCompletionProvider } from "../promptfoo-ByMuyN2p.js";
|
|
39
40
|
import { a as getTransformLabel, i as getTransformErrorMessage, n as TRANSFORM_KEYS, o as transform, r as TransformInputType, t as INLINE_FUNCTION_LABEL } from "../transform-DB3wGXIb.js";
|
|
40
|
-
import { n as checkExfilTracking } from "../indirectWebPwn-
|
|
41
|
-
import { i as filterFiniteScores, n as renderPrompt, r as runExtensionHook, t as collectFileMetadata } from "../evaluatorHelpers-
|
|
42
|
-
import { n as fetchTraceContext, r as isExternalTraceProvider } from "../traceContext-
|
|
43
|
-
import { i as pluginMatchesStrategyTargets, n as loadStrategy, r as validateStrategies, t as Strategies } from "../strategies-
|
|
41
|
+
import { n as checkExfilTracking } from "../indirectWebPwn-DahWlbTc.js";
|
|
42
|
+
import { i as filterFiniteScores, n as renderPrompt, r as runExtensionHook, t as collectFileMetadata } from "../evaluatorHelpers-CZ2p3rWG.js";
|
|
43
|
+
import { n as fetchTraceContext, r as isExternalTraceProvider } from "../traceContext-jOhKJ5Ty.js";
|
|
44
|
+
import { i as pluginMatchesStrategyTargets, n as loadStrategy, r as validateStrategies, t as Strategies } from "../strategies-CaqOj9gZ.js";
|
|
44
45
|
import dotenv from "dotenv";
|
|
45
46
|
import * as fs$3 from "fs";
|
|
46
47
|
import fs, { createWriteStream, existsSync, readFileSync } from "fs";
|
|
@@ -2430,8 +2431,10 @@ async function sendChunkedResults(evalRecord, url, options = {}) {
|
|
|
2430
2431
|
maxResultsPerChunk: resultsPerChunk
|
|
2431
2432
|
};
|
|
2432
2433
|
logger.debug(`Chunk config: ${JSON.stringify(chunkConfig)}`);
|
|
2433
|
-
const headers = {
|
|
2434
|
-
|
|
2434
|
+
const headers = {
|
|
2435
|
+
"Content-Type": "application/json",
|
|
2436
|
+
...cloudConfig.isEnabled() ? cloudConfig.getAuthHeaders() ?? {} : {}
|
|
2437
|
+
};
|
|
2435
2438
|
const totalResults = await evalRecord.getTotalResultRowCount();
|
|
2436
2439
|
logger.debug(`Total results to share: ${totalResults}`);
|
|
2437
2440
|
let progressBar = null;
|
|
@@ -4891,7 +4894,7 @@ async function generateTraceContextIfNeeded(test, evaluateOptions, testIdx, prom
|
|
|
4891
4894
|
async function matchesAgentRubric(rubric, llmOutput, grading, vars, assertion, providerCallContext) {
|
|
4892
4895
|
if (!grading) throw new Error("Cannot grade output without grading config. Specify --grader option or grading config.");
|
|
4893
4896
|
const agentProvider = (grading.provider ? await getGradingProvider("text", grading.provider, null) : null) || getCodexDefaultProviders().llmRubricProvider;
|
|
4894
|
-
if (!agentProvider || !
|
|
4897
|
+
if (!agentProvider || !isAgenticGradingProvider(agentProvider)) throw new Error("agent-rubric assertion requires an agentic grading provider. Use openai:codex-sdk, openai:codex-app-server, anthropic:claude-agent-sdk, openinterpreter, or opencode:sdk.");
|
|
4895
4898
|
const result = await runJsonGradingPrompt({
|
|
4896
4899
|
assertion,
|
|
4897
4900
|
checkName: "agent-rubric check",
|
|
@@ -12127,7 +12130,7 @@ async function resolveDefaultTestProvider(defaultTest, testCase) {
|
|
|
12127
12130
|
const defaultProvider = defaultTest.provider;
|
|
12128
12131
|
if (isApiProvider(defaultProvider)) return defaultProvider;
|
|
12129
12132
|
if (typeof defaultProvider === "object" && defaultProvider.id) {
|
|
12130
|
-
const { loadApiProvider } = await import("../providers-
|
|
12133
|
+
const { loadApiProvider } = await import("../providers-C75KcJPJ.js").then((n) => n.i);
|
|
12131
12134
|
return loadApiProvider(typeof defaultProvider.id === "function" ? defaultProvider.id() : defaultProvider.id, { options: defaultProvider });
|
|
12132
12135
|
}
|
|
12133
12136
|
return defaultProvider;
|
|
@@ -16816,14 +16819,13 @@ async function testProviderConnectivity({ provider, prompt = "Hello World!", inp
|
|
|
16816
16819
|
};
|
|
16817
16820
|
}
|
|
16818
16821
|
const HOST = cloudConfig.getApiHost();
|
|
16819
|
-
const apiKey = cloudConfig.getApiKey();
|
|
16820
16822
|
try {
|
|
16821
16823
|
logger.debug("[testProviderConnectivity] Calling agent helper", { providerId: provider.id });
|
|
16822
16824
|
const testAnalyzerResponse = await fetchWithProxy(`${HOST}/api/v1/providers/test`, {
|
|
16823
16825
|
method: "POST",
|
|
16824
16826
|
headers: {
|
|
16825
16827
|
"Content-Type": "application/json",
|
|
16826
|
-
|
|
16828
|
+
...cloudConfig.getAuthHeaders() ?? {}
|
|
16827
16829
|
},
|
|
16828
16830
|
body: JSON.stringify({
|
|
16829
16831
|
config: provider.config,
|
|
@@ -19097,7 +19099,7 @@ providersRouter.post("/http-generator", async (req, res) => {
|
|
|
19097
19099
|
return;
|
|
19098
19100
|
}
|
|
19099
19101
|
const HOST = (cloudConfig.isEnabled() ? cloudConfig.getApiHost() : getEnvString("PROMPTFOO_CLOUD_API_URL", "https://api.promptfoo.app")).replace(/\/+$/, "");
|
|
19100
|
-
const
|
|
19102
|
+
const authHeaders = cloudConfig.isEnabled() ? cloudConfig.getAuthHeaders() : void 0;
|
|
19101
19103
|
try {
|
|
19102
19104
|
logger.debug("[POST /providers/http-generator] Calling HTTP provider generator API", {
|
|
19103
19105
|
requestExamplePreview: requestExample?.substring(0, 200),
|
|
@@ -19107,7 +19109,7 @@ providersRouter.post("/http-generator", async (req, res) => {
|
|
|
19107
19109
|
method: "POST",
|
|
19108
19110
|
headers: {
|
|
19109
19111
|
"Content-Type": "application/json",
|
|
19110
|
-
...
|
|
19112
|
+
...authHeaders ?? {}
|
|
19111
19113
|
},
|
|
19112
19114
|
body: JSON.stringify({
|
|
19113
19115
|
requestExample,
|
|
@@ -24478,10 +24480,10 @@ router.get("/", async (_req, res) => {
|
|
|
24478
24480
|
};
|
|
24479
24481
|
} catch (error) {
|
|
24480
24482
|
logger.debug(`Failed to fetch latest version: ${error}`);
|
|
24481
|
-
latestVersion = versionCache.latestVersion ?? "0.122.
|
|
24483
|
+
latestVersion = versionCache.latestVersion ?? "0.122.2";
|
|
24482
24484
|
}
|
|
24483
24485
|
}
|
|
24484
|
-
const resolvedLatestVersion = latestVersion ?? "0.122.
|
|
24486
|
+
const resolvedLatestVersion = latestVersion ?? "0.122.2";
|
|
24485
24487
|
const response = {
|
|
24486
24488
|
...buildBaseVersionFields(),
|
|
24487
24489
|
latestVersion: resolvedLatestVersion,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { c as logger } from "./logger-YzVIwMVq.js";
|
|
3
|
-
import {
|
|
4
|
-
import { s as getRemoteVersionUrl } from "./remoteGeneration-
|
|
3
|
+
import { G as getDefaultPort, r as fetchWithProxy } from "./fetch-KD8O9oZZ.js";
|
|
4
|
+
import { s as getRemoteVersionUrl } from "./remoteGeneration-Cc78LDjQ.js";
|
|
5
5
|
import chalk from "chalk";
|
|
6
6
|
import opener from "opener";
|
|
7
7
|
import readline from "readline";
|
|
@@ -108,7 +108,7 @@ async function checkServerRunning(port = getDefaultPort()) {
|
|
|
108
108
|
logger.debug(`Checking for existing server on port ${port}...`);
|
|
109
109
|
try {
|
|
110
110
|
const data = await (await fetchWithProxy(`http://localhost:${port}/health`, { headers: { "x-promptfoo-silent": "true" } })).json();
|
|
111
|
-
return data.status === "OK" && data.version === "0.122.
|
|
111
|
+
return data.status === "OK" && data.version === "0.122.2";
|
|
112
112
|
} catch (err) {
|
|
113
113
|
logger.debug(`No existing server found - this is expected on first startup. ${String(err)}`);
|
|
114
114
|
return false;
|
|
@@ -178,4 +178,4 @@ async function openAuthBrowser(authUrl, welcomeUrl, browserBehavior) {
|
|
|
178
178
|
//#endregion
|
|
179
179
|
export { openAuthBrowser as a, promptYesNo as c, checkServerRunning as i, BrowserBehaviorNames as n, openBrowser as o, checkServerFeatureSupport as r, promptUser as s, BrowserBehavior as t };
|
|
180
180
|
|
|
181
|
-
//# sourceMappingURL=server-
|
|
181
|
+
//# sourceMappingURL=server-BaM1Q5gD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_logger = require("./logger-BN3n9c1R.cjs");
|
|
2
|
-
const require_fetch = require("./fetch-
|
|
3
|
-
const require_remoteGeneration = require("./remoteGeneration-
|
|
2
|
+
const require_fetch = require("./fetch-D54lzFcD.cjs");
|
|
3
|
+
const require_remoteGeneration = require("./remoteGeneration-C0Ev99MO.cjs");
|
|
4
4
|
let chalk = require("chalk");
|
|
5
5
|
chalk = require_logger.__toESM(chalk, 1);
|
|
6
6
|
require("opener");
|
|
@@ -69,4 +69,4 @@ Object.defineProperty(exports, "server_exports", {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
//# sourceMappingURL=server-
|
|
72
|
+
//# sourceMappingURL=server-BpmZ1EP0.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./processShim-CAJN2mjb.js";
|
|
2
2
|
import { o as logger } from "./logger-D4ion89i.js";
|
|
3
|
-
import {
|
|
4
|
-
import { s as getRemoteVersionUrl } from "./remoteGeneration-
|
|
3
|
+
import { K as getDefaultPort, t as fetchWithProxy } from "./fetch-DnDg-Ics.js";
|
|
4
|
+
import { s as getRemoteVersionUrl } from "./remoteGeneration-DGJxSMYI.js";
|
|
5
5
|
import "chalk";
|
|
6
6
|
import opener from "opener";
|
|
7
7
|
import readline from "readline";
|
|
@@ -115,7 +115,7 @@ async function checkServerRunning(port = getDefaultPort()) {
|
|
|
115
115
|
logger.debug(`Checking for existing server on port ${port}...`);
|
|
116
116
|
try {
|
|
117
117
|
const data = await (await fetchWithProxy(`http://localhost:${port}/health`, { headers: { "x-promptfoo-silent": "true" } })).json();
|
|
118
|
-
return data.status === "OK" && data.version === "0.122.
|
|
118
|
+
return data.status === "OK" && data.version === "0.122.2";
|
|
119
119
|
} catch (err) {
|
|
120
120
|
logger.debug(`No existing server found - this is expected on first startup. ${String(err)}`);
|
|
121
121
|
return false;
|
|
@@ -142,4 +142,4 @@ async function openBrowser(browserBehavior, port = getDefaultPort()) {
|
|
|
142
142
|
//#endregion
|
|
143
143
|
export { openBrowser as a, checkServerRunning as i, BrowserBehaviorNames as n, server_exports as o, checkServerFeatureSupport as r, promptYesNo as s, BrowserBehavior as t };
|
|
144
144
|
|
|
145
|
-
//# sourceMappingURL=server-
|
|
145
|
+
//# sourceMappingURL=server-CqQtEkS_.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.js";
|
|
2
2
|
import { o as logger } from "./logger-BKiOczgq.js";
|
|
3
|
-
import { t as fetchWithProxy } from "./fetch-
|
|
4
|
-
import { s as getRemoteVersionUrl } from "./remoteGeneration-
|
|
3
|
+
import { t as fetchWithProxy } from "./fetch-tOnj-VPG.js";
|
|
4
|
+
import { s as getRemoteVersionUrl } from "./remoteGeneration-DnSGqkoH.js";
|
|
5
5
|
import "chalk";
|
|
6
6
|
import "opener";
|
|
7
7
|
//#region src/util/server.ts
|
|
@@ -58,4 +58,4 @@ async function checkServerFeatureSupport(featureName, requiredBuildDate) {
|
|
|
58
58
|
//#endregion
|
|
59
59
|
export { server_exports as n, checkServerFeatureSupport as t };
|
|
60
60
|
|
|
61
|
-
//# sourceMappingURL=server-
|
|
61
|
+
//# sourceMappingURL=server-DB1I8Xl3.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { D as safeJsonStringify, F as getEnvInt, M as state, N as getEnvBool, P as getEnvFloat, o as logger } from "./logger-D4ion89i.js";
|
|
2
|
-
import { Ct as isApiProvider, nt as sanitizeProviderIdForLog, wt as isProviderOptions } from "./util-
|
|
3
|
-
import {
|
|
2
|
+
import { Ct as isApiProvider, nt as sanitizeProviderIdForLog, wt as isProviderOptions } from "./util-BPtpPW4O.js";
|
|
3
|
+
import { C as isHttpRateLimitError, D as parseRetryAfter, E as parseRateLimitHeaders, T as isTransientConnectionError, m as cloudConfig, s as withFetchRetryContext } from "./fetch-DnDg-Ics.js";
|
|
4
4
|
import { t as invariant } from "./invariant-CHP0zrix.js";
|
|
5
|
-
import { l as isLoggedIntoCloud } from "./accounts-
|
|
5
|
+
import { l as isLoggedIntoCloud } from "./accounts-BDud3p32.js";
|
|
6
6
|
import { n as sleep } from "./time-BPNW8jwJ.js";
|
|
7
7
|
import "./tables-Dq3ppf0B.js";
|
|
8
8
|
import { n as isBlobStorageEnabled, t as extractAndStoreBinaryData } from "./extractor-Bz0PjsMF.js";
|
|
9
9
|
import { a as accumulateGradingResponseTokenUsage, c as accumulateTokenUsage, d as createEmptyTokenUsage, s as accumulateResponseTokenUsage } from "./tokenUsageUtils-T-dUB6UI.js";
|
|
10
|
-
import { p as remoteGenerationContextPayload } from "./remoteGeneration-
|
|
11
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
12
|
-
import { t as PromptfooChatCompletionProvider } from "./promptfoo-
|
|
10
|
+
import { p as remoteGenerationContextPayload } from "./remoteGeneration-DGJxSMYI.js";
|
|
11
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-CQkXljIT.js";
|
|
12
|
+
import { t as PromptfooChatCompletionProvider } from "./promptfoo-ByMuyN2p.js";
|
|
13
13
|
import { o as transform, r as TransformInputType } from "./transform-DB3wGXIb.js";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -18,12 +18,12 @@ import { EventEmitter } from "events";
|
|
|
18
18
|
function buildRemoteUploadTarget() {
|
|
19
19
|
if (getEnvBool("PROMPTFOO_DISABLE_SHARING")) return null;
|
|
20
20
|
const baseUrl = cloudConfig.getApiHost();
|
|
21
|
-
const
|
|
22
|
-
if (!baseUrl || !
|
|
21
|
+
const authHeaders = cloudConfig.getAuthHeaders();
|
|
22
|
+
if (!baseUrl || !authHeaders || !isLoggedIntoCloud()) return null;
|
|
23
23
|
try {
|
|
24
24
|
return {
|
|
25
25
|
url: new URL("/api/blobs", baseUrl).toString(),
|
|
26
|
-
|
|
26
|
+
authHeaders
|
|
27
27
|
};
|
|
28
28
|
} catch (error) {
|
|
29
29
|
logger.debug("[RemoteBlob] Invalid remote blob URL", {
|
|
@@ -40,12 +40,12 @@ async function uploadBlobRemote(buffer, mimeType, context) {
|
|
|
40
40
|
const target = buildRemoteUploadTarget();
|
|
41
41
|
if (!target) return null;
|
|
42
42
|
try {
|
|
43
|
-
const { fetchWithProxy } = await import("./fetch-
|
|
43
|
+
const { fetchWithProxy } = await import("./fetch-DnDg-Ics.js").then((n) => n.i);
|
|
44
44
|
const response = await fetchWithProxy(target.url, {
|
|
45
45
|
method: "POST",
|
|
46
46
|
headers: {
|
|
47
47
|
"Content-Type": "application/json",
|
|
48
|
-
|
|
48
|
+
...target.authHeaders
|
|
49
49
|
},
|
|
50
50
|
body: JSON.stringify({
|
|
51
51
|
data: buffer.toString("base64"),
|
|
@@ -1130,7 +1130,7 @@ function accumulateUnblockingTokenUsage(totalTokenUsage, result) {
|
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
1132
|
const defaultRedteamProviderLoader = async (providers) => {
|
|
1133
|
-
const { loadApiProviders } = await import("./providers-
|
|
1133
|
+
const { loadApiProviders } = await import("./providers-C75KcJPJ.js").then((n) => n.i);
|
|
1134
1134
|
return loadApiProviders(providers);
|
|
1135
1135
|
};
|
|
1136
1136
|
let redteamProviderLoader = defaultRedteamProviderLoader;
|
|
@@ -1583,7 +1583,7 @@ async function tryUnblocking({ messages, lastResponse, goal, purpose, targetId }
|
|
|
1583
1583
|
logger.debug("[Unblocking] Disabled by default (set PROMPTFOO_ENABLE_UNBLOCKING=true to enable)");
|
|
1584
1584
|
return { success: false };
|
|
1585
1585
|
}
|
|
1586
|
-
const { checkServerFeatureSupport } = await import("./server-
|
|
1586
|
+
const { checkServerFeatureSupport } = await import("./server-CqQtEkS_.js").then((n) => n.o);
|
|
1587
1587
|
if (!await checkServerFeatureSupport("blocking-question-analysis", "2025-06-16T14:49:11-07:00")) {
|
|
1588
1588
|
logger.debug("[Unblocking] Server does not support unblocking, skipping gracefully");
|
|
1589
1589
|
return { success: false };
|
|
@@ -1671,4 +1671,4 @@ function getGraderAssertionValue(assertToUse) {
|
|
|
1671
1671
|
//#endregion
|
|
1672
1672
|
export { withProviderCallTracingContext as A, TokenUsageTracker as C, getProviderCallExecutionContext as D, isRateLimitWrapped as E, uploadBlobRemote as M, getProviderCallTracingContext as O, throwIfTargetPromptExceedsMaxChars as S, createProviderRateLimitOptions as T, runRedteamGrader as _, callTargetProvider as a, getGeneratedPromptOverLimit as b, externalizeResponseForRedteamHistory as c, getLastMessageContent as d, getTargetResponse as f, redteamProviderManager as g, messagesToRedteamHistory as h, callGradingProvider as i, shouldAttemptRemoteBlobUpload as j, withProviderCallExecutionContext as k, formatRedteamHistoryAsTranscript as l, isValidChatMessageArray as m, accumulateUnblockingTokenUsage as n, checkPenalizedPhrases as o, isConversationEndedResponse as p, buildGraderResultAssertion as r, createIterationContext as s, accumulateGraderResult as t, getGraderAssertionValue as u, tryUnblocking as v, createRateLimitRegistry as w, getMaxCharsPerMessageModifierValue as x, MAX_CHARS_PER_MESSAGE_MODIFIER_KEY as y };
|
|
1673
1673
|
|
|
1674
|
-
//# sourceMappingURL=shared-
|
|
1674
|
+
//# sourceMappingURL=shared-BkcgE6vB.js.map
|