promptfoo 0.125.0 → 0.125.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/src/accounts-BOxNYxVN.js +229 -0
- package/dist/src/accounts-BezXLdAW.cjs +276 -0
- package/dist/src/accounts-CPISMNlh.js +227 -0
- package/dist/src/accounts-vJBPs89d.js +222 -0
- package/dist/src/agentWorkspace-Bom7SpF2.js +592 -0
- package/dist/src/agentWorkspace-CEomAcws.cjs +619 -0
- package/dist/src/agentWorkspace-DPtMLrlI.js +593 -0
- package/dist/src/agentWorkspace-DkAeEYLz.js +592 -0
- package/dist/src/agentic-utils-121v7mJo.js +197 -0
- package/dist/src/agentic-utils-CBWD_rcd.cjs +237 -0
- package/dist/src/agentic-utils-D8wyQwPG.js +198 -0
- package/dist/src/agentic-utils-EP1QkQCs.js +197 -0
- package/dist/src/agents-Br3ah8iA.js +778 -0
- package/dist/src/agents-C5wj_UTv.js +777 -0
- package/dist/src/agents-C9Efp4mC.js +266 -0
- package/dist/src/agents-CQYwaVCO.js +267 -0
- package/dist/src/agents-CjCd4Vo8.js +777 -0
- package/dist/src/agents-DRWiCHYz.js +266 -0
- package/dist/src/agents-F2rhx0iL.cjs +266 -0
- package/dist/src/agents-RTYyy69h.cjs +777 -0
- package/dist/src/agents-api-CY72O86e.js +711 -0
- package/dist/src/agents-api-CsSsC21b.js +710 -0
- package/dist/src/agents-api-DN-ibDc8.js +710 -0
- package/dist/src/agents-api-cNDsCCv1.cjs +710 -0
- package/dist/src/ai.studio-Bj6Dyi6o.js +2 -0
- package/dist/src/ai.studio-C-e0LzyW.js +369 -0
- package/dist/src/ai.studio-CR8M6Aqf.cjs +391 -0
- package/dist/src/ai.studio-YKk7F0tv.js +374 -0
- package/dist/src/aimlapi-BGunsuTu.js +30 -0
- package/dist/src/aimlapi-BkzcfBsL.js +29 -0
- package/dist/src/aimlapi-DXFcEdP8.js +28 -0
- package/dist/src/aimlapi-r-8iCcAw.cjs +29 -0
- package/dist/src/anthropicMessages-7-YNRgQR.js +114 -0
- package/dist/src/anthropicMessages-C8m9Whrd.cjs +114 -0
- package/dist/src/anthropicMessages-DS1vXD0f.js +115 -0
- package/dist/src/anthropicMessages-DmvGkz-0.js +114 -0
- package/dist/src/app/assets/index-CrdXWTXm.js +392 -0
- package/dist/src/app/browser-inventory.json +4 -4
- package/dist/src/app/index.html +1 -1
- package/dist/src/audio-BLgFgyw-.cjs +104 -0
- package/dist/src/audio-C2sibT7Q.js +104 -0
- package/dist/src/audio-DXEXb03H.js +104 -0
- package/dist/src/audio-TkvojpwO.js +105 -0
- package/dist/src/authoritativeMarkupInjection-BAT9B-Wj.js +79 -0
- package/dist/src/authoritativeMarkupInjection-B_yHETKT.js +78 -0
- package/dist/src/authoritativeMarkupInjection-BfjecQ3Q.cjs +78 -0
- package/dist/src/authoritativeMarkupInjection-D-hDKrhD.js +78 -0
- package/dist/src/aws-B_9unI_-.js +1149 -0
- package/dist/src/aws-D0FY3qkc.js +2433 -0
- package/dist/src/aws-Dh1-a90n.js +2433 -0
- package/dist/src/aws-qskKGczY.cjs +2454 -0
- package/dist/src/base-CaWlBkVz.js +462 -0
- package/dist/src/base-CcViNwVs.js +255 -0
- package/dist/src/base-CsVbPJkU.cjs +467 -0
- package/dist/src/base-DNK9py25.js +255 -0
- package/dist/src/base-DlH5tjEZ.js +463 -0
- package/dist/src/base-DyLOZ_iX.js +256 -0
- package/dist/src/base-RRYXfG7l.cjs +305 -0
- package/dist/src/base-oXVgvtVn.js +462 -0
- package/dist/src/bedrock-BP17ZXbR.cjs +2 -0
- package/dist/src/bedrock-CsjM1dOt.js +1300 -0
- package/dist/src/bedrock-CzPwj8GO.js +1 -0
- package/dist/src/bedrock-eGXZw8oh.js +1 -0
- package/dist/src/bedrock-tSWjmXdj.js +2 -0
- package/dist/src/bestOfN-BQ93nUKV.js +160 -0
- package/dist/src/bestOfN-ByGGwlcb.cjs +161 -0
- package/dist/src/bestOfN-CbP7csHr.js +159 -0
- package/dist/src/bestOfN-xn6i2Xs2.js +159 -0
- package/dist/src/cache-CHq9hPz9.js +2 -0
- package/dist/src/cache-D-9eZN3I.js +754 -0
- package/dist/src/cache-DSm6t1MZ.js +741 -0
- package/dist/src/cache-DeF5zIEN.js +782 -0
- package/dist/src/cache-iG87oYan.cjs +856 -0
- package/dist/src/cerebras-CTtM4yMH.js +98 -0
- package/dist/src/cerebras-CogcJ3ce.cjs +97 -0
- package/dist/src/cerebras-DmkRypTh.js +97 -0
- package/dist/src/cerebras-GUp0B8JY.js +97 -0
- package/dist/src/chat-B4ihd3fw.js +226 -0
- package/dist/src/chat-B9cAQ_rS.js +227 -0
- package/dist/src/chat-BU7EB4R-.cjs +76 -0
- package/dist/src/chat-C8yxJ2-s.cjs +226 -0
- package/dist/src/chat-ClTFM3qq.js +934 -0
- package/dist/src/chat-Cnq0Is68.js +123 -0
- package/dist/src/chat-CwrurR57.cjs +987 -0
- package/dist/src/chat-D0lsojPv.js +124 -0
- package/dist/src/chat-D7_8yFIx.js +76 -0
- package/dist/src/chat-DCoETlLG.js +226 -0
- package/dist/src/chat-DHE7xaTR.js +76 -0
- package/dist/src/chat-DmhT6rz2.cjs +123 -0
- package/dist/src/chat-DvfMe8KI.js +123 -0
- package/dist/src/chat-DwP5kVnl.js +935 -0
- package/dist/src/chat-MB7U-QE2.js +77 -0
- package/dist/src/chat-zCWuBKAj.js +934 -0
- package/dist/src/claude-agent-sdk-23bIVI75.js +999 -0
- package/dist/src/claude-agent-sdk-BACpnIJi.cjs +1005 -0
- package/dist/src/claude-agent-sdk-BlYlmcEr.js +999 -0
- package/dist/src/claude-agent-sdk-Cr-jqJZl.js +1000 -0
- package/dist/src/client-BktbiPx9.cjs +357 -0
- package/dist/src/client-CjztEBmW.js +351 -0
- package/dist/src/client-mRs2UvH9.js +351 -0
- package/dist/src/client-uCz0ydjC.js +352 -0
- package/dist/src/cloud-BtYF555L.js +2 -0
- package/dist/src/cloud-CVSUEmAy.js +287 -0
- package/dist/src/cloud-D7Ifb-Fl.js +599 -0
- package/dist/src/cloud-DB5oK5NX.cjs +666 -0
- package/dist/src/cloud-ecu989Em.js +657 -0
- package/dist/src/cloud-ramjGURF.js +599 -0
- package/dist/src/cloudflare-ai-BfDkIjO8.js +133 -0
- package/dist/src/cloudflare-ai-D9HaXz1M.js +134 -0
- package/dist/src/cloudflare-ai-HrD5WUK8.js +132 -0
- package/dist/src/cloudflare-ai-Qdj8aKP2.cjs +133 -0
- package/dist/src/cloudflare-gateway-C81uKETQ.js +276 -0
- package/dist/src/cloudflare-gateway-CX5Z9X0k.js +276 -0
- package/dist/src/cloudflare-gateway-DW-og8gb.js +277 -0
- package/dist/src/cloudflare-gateway-iRyXo9n2.cjs +276 -0
- package/dist/src/codex-app-server-BFIrSgdy.js +2155 -0
- package/dist/src/codex-app-server-By1eDVD4.js +2 -0
- package/dist/src/codex-app-server-DKsF4qmY.js +2156 -0
- package/dist/src/codex-app-server-n7n4uZzC.cjs +2162 -0
- package/dist/src/codex-app-server-xAoELVxu.js +2155 -0
- package/dist/src/codex-sdk-C2ZLxa6r.js +1552 -0
- package/dist/src/codex-sdk-CzG02tQt.cjs +1588 -0
- package/dist/src/codex-sdk-DNxAOhiV.js +2 -0
- package/dist/src/codex-sdk-DT3aQezK.js +1557 -0
- package/dist/src/codex-sdk-pw9DpcJP.js +1557 -0
- package/dist/src/codex-security-B0bLmXJF.js +406 -0
- package/dist/src/codex-security-BhYs-3iY.js +406 -0
- package/dist/src/codex-security-DQcOfxYW.js +407 -0
- package/dist/src/codex-security-DsCWr6GZ.cjs +411 -0
- package/dist/src/cometapi-B16asPLX.cjs +55 -0
- package/dist/src/cometapi-MgTbZA_H.js +53 -0
- package/dist/src/cometapi-i33vKzPV.js +55 -0
- package/dist/src/cometapi-wK2UWK0X.js +56 -0
- package/dist/src/compatible-COj8ZCy9.js +24 -0
- package/dist/src/compatible-CRSsIUGb.cjs +24 -0
- package/dist/src/compatible-Dy1vCcNF.js +25 -0
- package/dist/src/compatible-aUItQrpk.js +24 -0
- package/dist/src/completion-Bn7COFMk.js +119 -0
- package/dist/src/completion-Bub2N48b.js +118 -0
- package/dist/src/completion-Cf2G9OlM.cjs +123 -0
- package/dist/src/conversationScoring-BiTYJ9MD.js +374 -0
- package/dist/src/conversationScoring-CKL47uIu.js +373 -0
- package/dist/src/conversationScoring-DCvQKp6k.cjs +398 -0
- package/dist/src/conversationScoring-DLNJtDZI.js +373 -0
- package/dist/src/crescendo-5iLk9WiJ.cjs +734 -0
- package/dist/src/crescendo-B5ylG7kW.js +733 -0
- package/dist/src/crescendo-BD7k6TIx.js +730 -0
- package/dist/src/crescendo-DqO2Ch0P.js +732 -0
- package/dist/src/custom-8rv_aG2K.js +617 -0
- package/dist/src/custom-BOtrIHFN.js +619 -0
- package/dist/src/custom-BvN8seCs.cjs +620 -0
- package/dist/src/custom-Cld9v_Y4.js +618 -0
- package/dist/src/dataUrl-BdHUey2l.cjs +3187 -0
- package/dist/src/dataUrl-DBMifX6C.js +3133 -0
- package/dist/src/dataUrl-DUSr-ZvI.js +2868 -0
- package/dist/src/decisions-CLazADTw.js +516 -0
- package/dist/src/decisions-D5X93awq.js +515 -0
- package/dist/src/decisions-DmaeArEn.js +515 -0
- package/dist/src/decisions-DyQJyHJz.cjs +514 -0
- package/dist/src/docker-C9NYQFeu.js +94 -0
- package/dist/src/docker-CGq3mMol.cjs +94 -0
- package/dist/src/docker-DOm7nmpl.js +95 -0
- package/dist/src/docker-skFN-Kfo.js +93 -0
- package/dist/src/embedding-0UbzkTk9.js +82 -0
- package/dist/src/embedding-DTrSDt7k.cjs +86 -0
- package/dist/src/embedding-j2ORNl5H.js +81 -0
- package/dist/src/envoy-BvS8XTQO.js +60 -0
- package/dist/src/envoy-Cn6Hzw0e.js +60 -0
- package/dist/src/envoy-DC3KWcUY.cjs +60 -0
- package/dist/src/envoy-DetHjo5B.js +61 -0
- package/dist/src/eval-Cer9dPe9.js +1920 -0
- package/dist/src/eval-CytYmI2Z.js +2 -0
- package/dist/src/evalResult-DzOq5wt9.js +1300 -0
- package/dist/src/evaluator-BxCmvGtv.js +10578 -0
- package/dist/src/evaluator-Ct7YDELm.js +2 -0
- package/dist/src/evaluatorHelpers-B_AwIrsl.js +600 -0
- package/dist/src/evaluatorHelpers-D1Tpc7gd.js +601 -0
- package/dist/src/evaluatorHelpers-DRR3rLq0.cjs +622 -0
- package/dist/src/fetch-B5KxZuKu.js +1559 -0
- package/dist/src/fetch-BG_Jl7ty.js +1556 -0
- package/dist/src/fetch-BKlgUg08.cjs +1853 -0
- package/dist/src/fetch-C9Fsja0R.js +2 -0
- package/dist/src/fetch-CM7P8KWA.cjs +14 -0
- package/dist/src/fetch-D0FkIB3G.js +9 -0
- package/dist/src/fetch-RXHsZF-J.js +1280 -0
- package/dist/src/fetch-rSECy8jR.js +10 -0
- package/dist/src/functionCallbackUtils-BB9tmf6a.cjs +262 -0
- package/dist/src/functionCallbackUtils-BXk2iY01.js +246 -0
- package/dist/src/functionCallbackUtils-B_cYp7P5.js +245 -0
- package/dist/src/functionCallbackUtils-BfXnPo0o.js +245 -0
- package/dist/src/gemini-image-BXLMADDz.js +471 -0
- package/dist/src/gemini-image-BYUZyEUx.js +472 -0
- package/dist/src/gemini-image-DSt1QubZ.cjs +471 -0
- package/dist/src/gemini-image-DdNDMiZ_.js +471 -0
- package/dist/src/goat-9b-uU_k6.js +514 -0
- package/dist/src/goat-BCJuiDd0.js +515 -0
- package/dist/src/goat-CmAHbemm.js +512 -0
- package/dist/src/goat-DdOTdyoS.cjs +515 -0
- package/dist/src/goblin-Bp5C5lyb.js +22 -0
- package/dist/src/goblin-Dmr7GItI.js +23 -0
- package/dist/src/goblin-DpM8wxlf.cjs +22 -0
- package/dist/src/goblin-cJyH6Pq-.js +22 -0
- package/dist/src/google-B6eaPAbE.js +142 -0
- package/dist/src/google-D-FStdN6.cjs +142 -0
- package/dist/src/google-DAC7BsCW.js +142 -0
- package/dist/src/google-Id18H0Va.js +143 -0
- package/dist/src/graders-BjNQWkaB.js +2 -0
- package/dist/src/graders-CqdIp_vl.js +15470 -0
- package/dist/src/hydra-6Ouh74DE.js +610 -0
- package/dist/src/hydra-BHjhZnLB.cjs +612 -0
- package/dist/src/hydra-BL6k2REV.js +2 -0
- package/dist/src/hydra-BWUc0o67.js +613 -0
- package/dist/src/hydra-CUkEOLKw.js +612 -0
- package/dist/src/image-B6hG_xhb.js +481 -0
- package/dist/src/image-BFaq7Krd.cjs +209 -0
- package/dist/src/image-Bql5C0N9.cjs +504 -0
- package/dist/src/image-BtZfI2pT.js +163 -0
- package/dist/src/image-CIM4oN7Z.cjs +163 -0
- package/dist/src/image-CbAl7Jpu.js +209 -0
- package/dist/src/image-CiYm_yFw.js +209 -0
- package/dist/src/image-DCMNvBiV.js +163 -0
- package/dist/src/image-DL7pIuUZ.js +210 -0
- package/dist/src/image-ey0kxF8o.js +164 -0
- package/dist/src/image-smgIk3rE.js +482 -0
- package/dist/src/index.cjs +27 -27
- package/dist/src/index.d.cts +8 -8
- package/dist/src/index.js +27 -27
- package/dist/src/indirectWebPwn-B_-UpWY5.js +285 -0
- package/dist/src/indirectWebPwn-Cz3SLiEq.js +434 -0
- package/dist/src/indirectWebPwn-D2s8zGiM.cjs +463 -0
- package/dist/src/indirectWebPwn-DXbj2wGu.cjs +285 -0
- package/dist/src/indirectWebPwn-D_4H44E6.js +285 -0
- package/dist/src/indirectWebPwn-L044SrpV.js +434 -0
- package/dist/src/indirectWebPwn-cnmvdavH.js +435 -0
- package/dist/src/indirectWebPwn-zUBzsqTt.js +286 -0
- package/dist/src/interactions-Bu3oVQ-j.js +850 -0
- package/dist/src/interactions-CND010Lh.cjs +850 -0
- package/dist/src/interactions-DAx7tqUz.js +851 -0
- package/dist/src/interactions-DPkIumeh.js +850 -0
- package/dist/src/iterative-BO4JRnpG.js +545 -0
- package/dist/src/iterative-CAK-k9rz.js +548 -0
- package/dist/src/iterative-CDgHc0xO.cjs +549 -0
- package/dist/src/iterative-CXJlHLl9.js +547 -0
- package/dist/src/iterativeImage-BEdGKSmh.cjs +419 -0
- package/dist/src/iterativeImage-BfL0QZw5.js +417 -0
- package/dist/src/iterativeImage-C9KhnibC.js +417 -0
- package/dist/src/iterativeImage-btjkOfWG.js +418 -0
- package/dist/src/iterativeMeta-B5Bdw6QA.js +437 -0
- package/dist/src/iterativeMeta-C3mI4gpT.js +440 -0
- package/dist/src/iterativeMeta-Co2BKyqS.cjs +439 -0
- package/dist/src/iterativeMeta-DD8ihRWD.js +439 -0
- package/dist/src/iterativeTree-AMi4GV2O.js +878 -0
- package/dist/src/iterativeTree-C8FJOEje.cjs +879 -0
- package/dist/src/iterativeTree-CvrY1f2Z.js +877 -0
- package/dist/src/iterativeTree-bPtESmaD.js +876 -0
- package/dist/src/knowledgeBase-Cf5871e3.js +163 -0
- package/dist/src/knowledgeBase-D2PQhqLH.js +164 -0
- package/dist/src/knowledgeBase-DpoMw1IH.cjs +163 -0
- package/dist/src/knowledgeBase-npGFl763.js +163 -0
- package/dist/src/litellm-BBB5DQdt.cjs +146 -0
- package/dist/src/litellm-Bo43ow7r.js +145 -0
- package/dist/src/litellm-CaU8CMLS.js +146 -0
- package/dist/src/litellm-wY7Unh8o.js +147 -0
- package/dist/src/live-5g2w-M-E.js +891 -0
- package/dist/src/live-BfaXsDyD.cjs +891 -0
- package/dist/src/live-C1xewnGD.js +2 -0
- package/dist/src/live-DaF7nYy5.js +892 -0
- package/dist/src/live-lp3urLUw.js +891 -0
- package/dist/src/luma-ray-B7zvKGVG.js +309 -0
- package/dist/src/luma-ray-DCf5fnrz.cjs +309 -0
- package/dist/src/luma-ray-DepBcn6z.js +309 -0
- package/dist/src/luma-ray-XQC4M1pt.js +310 -0
- package/dist/src/main.js +26 -26
- package/dist/src/mantleChat-7xm95vSV.js +154 -0
- package/dist/src/mantleChat-CXhAs5RD.js +155 -0
- package/dist/src/mantleChat-CcE-zjfj.cjs +154 -0
- package/dist/src/mantleChat-Cpefl7Zm.js +154 -0
- package/dist/src/mcp-B0V0ikdM.js +84 -0
- package/dist/src/mcp-CV2k2gwj.js +85 -0
- package/dist/src/memoryPoisoning-BC5FQQWZ.js +111 -0
- package/dist/src/memoryPoisoning-BDwrtZKX.js +111 -0
- package/dist/src/memoryPoisoning-BFemS_FF.js +112 -0
- package/dist/src/memoryPoisoning-DRs2rbVV.cjs +111 -0
- package/dist/src/messages-Bc5oZoAJ.js +1128 -0
- package/dist/src/messages-BkaH8fRW.js +1127 -0
- package/dist/src/messages-CoHlziS5.js +1127 -0
- package/dist/src/messages-Cv_m6kYs.cjs +1161 -0
- package/dist/src/mischievousUser-BcyFxrqJ.js +51 -0
- package/dist/src/mischievousUser-BlhOQSd2.js +52 -0
- package/dist/src/mischievousUser-BuQiKE8D.js +51 -0
- package/dist/src/mischievousUser-ChIOk6cT.cjs +51 -0
- package/dist/src/modelslab-BXIWBTgX.js +171 -0
- package/dist/src/modelslab-ChVsUiaJ.js +170 -0
- package/dist/src/modelslab-DZ6BFlDv.js +170 -0
- package/dist/src/modelslab-DhRr-vyo.cjs +170 -0
- package/dist/src/nova-reel-BL8DrN4_.js +272 -0
- package/dist/src/nova-reel-BiOMUm5q.cjs +272 -0
- package/dist/src/nova-reel-CTsya1hV.js +273 -0
- package/dist/src/nova-reel-kgBY4Svd.js +272 -0
- package/dist/src/nova-sonic-CaSSA3Jq.cjs +374 -0
- package/dist/src/nova-sonic-DLpmoGsR.js +375 -0
- package/dist/src/nova-sonic-DwWc4SoN.js +374 -0
- package/dist/src/nova-sonic-qnReTaXm.js +374 -0
- package/dist/src/novita-B5mAt3Ui.js +114 -0
- package/dist/src/novita-D57vCjDD.js +116 -0
- package/dist/src/novita-ITRtG8IJ.js +115 -0
- package/dist/src/novita-Rh3T13YO.cjs +115 -0
- package/dist/src/nscale-8V7iZ_pI.js +210 -0
- package/dist/src/nscale-BQnMv4pH.cjs +209 -0
- package/dist/src/nscale-BWZXHZVF.js +209 -0
- package/dist/src/nscale-BqrHiUqU.js +207 -0
- package/dist/src/openaiResponses-BMtGTu8R.js +317 -0
- package/dist/src/openaiResponses-CvcI_viE.js +318 -0
- package/dist/src/openaiResponses-DYPZEMX1.cjs +318 -0
- package/dist/src/openaiResponses-DZTg1-kb.js +319 -0
- package/dist/src/openclaw-BeKuig4g.js +1338 -0
- package/dist/src/openclaw-COkdQ83y.js +1337 -0
- package/dist/src/openclaw-CSoX_HQ5.cjs +1344 -0
- package/dist/src/openclaw-DJlhPGCb.js +1336 -0
- package/dist/src/opencode-sdk-BEJftEs6.cjs +1018 -0
- package/dist/src/opencode-sdk-DMvBB3V7.js +1013 -0
- package/dist/src/opencode-sdk-Df7hMjLO.js +1012 -0
- package/dist/src/opencode-sdk-bQp5Xf3W.js +1012 -0
- package/dist/src/openinterpreter-B3GgVZjK.js +431 -0
- package/dist/src/openinterpreter-BiGcU-HN.cjs +435 -0
- package/dist/src/openinterpreter-Buj2l3Eh.js +432 -0
- package/dist/src/openinterpreter-C3_Cg5b_.js +431 -0
- package/dist/src/pricing-0Pampf0q.cjs +999 -0
- package/dist/src/pricing-B8VdhEhY.js +976 -0
- package/dist/src/pricing-CtLA-rKA.js +976 -0
- package/dist/src/promptfoo-4OkHtH9P.cjs +341 -0
- package/dist/src/promptfoo-Bhpm7sH6.js +286 -0
- package/dist/src/promptfoo-BqV8ogVA.js +285 -0
- package/dist/src/promptfoo-S1Q9OHk_.js +286 -0
- package/dist/src/providers-B5zs1ZRv.js +24437 -0
- package/dist/src/providers-Cd6CJh6m.js +2 -0
- package/dist/src/providers-CpJlgHET.js +24039 -0
- package/dist/src/providers-CzvLvK6G.cjs +24180 -0
- package/dist/src/quiverai-1E_IvLHn.js +325 -0
- package/dist/src/quiverai-BXH004Vv.js +325 -0
- package/dist/src/quiverai-Ccya2z8Y.cjs +325 -0
- package/dist/src/quiverai-Cez57oe-.js +326 -0
- package/dist/src/registry-3zX_M9Ik.js +131 -0
- package/dist/src/registry-AuCrKTvS.js +132 -0
- package/dist/src/registry-CxXWKtQG.js +131 -0
- package/dist/src/registry-DG3o66JQ.cjs +131 -0
- package/dist/src/remoteGeneration-CAtvamG6.js +370 -0
- package/dist/src/remoteGeneration-CF225pDl.cjs +482 -0
- package/dist/src/remoteGeneration-DtnqocnL.js +370 -0
- package/dist/src/remoteGeneration-g3KvW-sP.js +371 -0
- package/dist/src/responses-BMbaUXQI.js +1098 -0
- package/dist/src/responses-B_TOSof-.js +1099 -0
- package/dist/src/responses-v-yANwTA.cjs +1109 -0
- package/dist/src/runtimeTransform-BBZv-oUZ.js +156 -0
- package/dist/src/runtimeTransform-DT2v5ovW.js +156 -0
- package/dist/src/runtimeTransform-GXXEIXdS.cjs +161 -0
- package/dist/src/runtimeTransform-JTwBQc-P.js +157 -0
- package/dist/src/sagemaker-B8D0L4rj.cjs +716 -0
- package/dist/src/sagemaker-CR2_AGdB.js +713 -0
- package/dist/src/sagemaker-Cd9qSQUV.js +714 -0
- package/dist/src/sagemaker-mKlltN4p.js +713 -0
- package/dist/src/scanner-PG_8lh8r.js +1971 -0
- package/dist/src/server/index.js +55 -55
- package/dist/src/server-Bmh7sd9F.js +155 -0
- package/dist/src/server-C7b8z6aC.js +63 -0
- package/dist/src/server-CAcovgtL.js +2 -0
- package/dist/src/server-CuuMfKlh.cjs +74 -0
- package/dist/src/server-DMPCj9jy.js +189 -0
- package/dist/src/session-BksXvRH_.cjs +69 -0
- package/dist/src/session-DOxUjqGQ.js +63 -0
- package/dist/src/session-Dujsc-b9.js +62 -0
- package/dist/src/session-VjtIxREd.js +62 -0
- package/dist/src/shared-Bkyz_7e5.cjs +2185 -0
- package/dist/src/shared-DDJg8ycC.js +1929 -0
- package/dist/src/shared-Dh3yfRBd.js +1927 -0
- package/dist/src/shared-tfPT8Tna.js +1928 -0
- package/dist/src/simulatedUser-6JdkyL3k.cjs +252 -0
- package/dist/src/simulatedUser-CFr2mr3M.js +248 -0
- package/dist/src/simulatedUser-DjwwUqx-.js +247 -0
- package/dist/src/slack-C_gIYiUs.js +144 -0
- package/dist/src/slack-DhNbz9CM.cjs +144 -0
- package/dist/src/slack-Dm2iI1zu.js +145 -0
- package/dist/src/strategies-BIY-bNul.js +2248 -0
- package/dist/src/strategies-C1KQQj9G.cjs +2420 -0
- package/dist/src/strategies-DM_3mReG.js +2385 -0
- package/dist/src/telemetry-BhMTibZO.js +2 -0
- package/dist/src/telemetry-C04d25BM.cjs +216 -0
- package/dist/src/telemetry-CIqy4fSC.js +201 -0
- package/dist/src/telemetry-CXozp_6C.js +205 -0
- package/dist/src/telemetry-g7PkBxmY.js +205 -0
- package/dist/src/togetherai-BvCim68-.js +50 -0
- package/dist/src/togetherai-CWyDCA9m.cjs +49 -0
- package/dist/src/togetherai-CeSE31vK.js +49 -0
- package/dist/src/togetherai-_2W0URf8.js +48 -0
- package/dist/src/traceContext-Brw3Oe41.js +1016 -0
- package/dist/src/traceContext-DpAYv27G.js +1015 -0
- package/dist/src/traceContext-KSqhzZI2.cjs +1032 -0
- package/dist/src/transcription-BySopazW.js +175 -0
- package/dist/src/transcription-DO4UPkRI.cjs +178 -0
- package/dist/src/transcription-RJGBa-pC.js +176 -0
- package/dist/src/transcription-fZenF3G5.js +175 -0
- package/dist/src/transform-BzhRc5z2.js +125 -0
- package/dist/src/transform-CPQu05u6.cjs +154 -0
- package/dist/src/transform-DAED8imp.js +126 -0
- package/dist/src/transform-DIOIQDmM.js +125 -0
- package/dist/src/typesafe-ByE0Kxfg.js +253 -0
- package/dist/src/typesafe-CFqGFY34.js +253 -0
- package/dist/src/typesafe-DCWIw-CP.cjs +253 -0
- package/dist/src/typesafe-DyHFV5Qk.js +254 -0
- package/dist/src/util-BHkj9joz.js +2049 -0
- package/dist/src/util-CICwIpmu.cjs +934 -0
- package/dist/src/util-CePiY2xZ.js +286 -0
- package/dist/src/util-CgT3uf4p.js +743 -0
- package/dist/src/util-Cj9drvOY.js +1770 -0
- package/dist/src/util-ClJRjlQA.cjs +357 -0
- package/dist/src/util-Cxf8VF2M.js +395 -0
- package/dist/src/util-D7RdV7rS.js +395 -0
- package/dist/src/util-DMNFhk47.js +351 -0
- package/dist/src/util-DNzh3M0z.js +396 -0
- package/dist/src/util-Df7rfMGb.cjs +2305 -0
- package/dist/src/util-Kf0KnG_6.js +2051 -0
- package/dist/src/util-LEbeiYw_.js +743 -0
- package/dist/src/util-WH8CgVs4.js +352 -0
- package/dist/src/util-cx6Xw8Lw.cjs +478 -0
- package/dist/src/util-qzBqirBH.js +2050 -0
- package/dist/src/vertex-CBAMfRz3.js +854 -0
- package/dist/src/vertex-CMP2IpN9.js +2 -0
- package/dist/src/vertex-CZ5YOotT.js +848 -0
- package/dist/src/vertex-DNsh1F1M.cjs +871 -0
- package/dist/src/vertexLive-BTXYj3-F.js +55 -0
- package/dist/src/vertexLive-Ba_LAqEF.cjs +55 -0
- package/dist/src/vertexLive-DM4sFaaj.js +56 -0
- package/dist/src/vertexLive-JqZOw7HC.js +55 -0
- package/dist/src/video-BY7Q2Gii.cjs +706 -0
- package/dist/src/video-CYElP-CK.js +703 -0
- package/dist/src/video-C_AdEDH0.js +702 -0
- package/dist/src/video-DGvjQ_4j.js +702 -0
- package/package.json +1 -1
- package/dist/src/accounts-Dpb43yde.cjs +0 -276
- package/dist/src/accounts-GKrO1olH.js +0 -229
- package/dist/src/accounts-e4FGOsji.js +0 -227
- package/dist/src/accounts-sUiEJfkB.js +0 -222
- package/dist/src/agentWorkspace-B8A_wuMR.cjs +0 -619
- package/dist/src/agentWorkspace-DSPIscXR.js +0 -593
- package/dist/src/agentWorkspace-DxUqd-XK.js +0 -592
- package/dist/src/agentWorkspace-n0uOJXhD.js +0 -592
- package/dist/src/agentic-utils-9bCj4twQ.js +0 -197
- package/dist/src/agentic-utils-CyCLuLoj.js +0 -197
- package/dist/src/agentic-utils-D23qtOlx.cjs +0 -237
- package/dist/src/agentic-utils-DuBMMNCw.js +0 -198
- package/dist/src/agents-6hDRNoYD.js +0 -777
- package/dist/src/agents-B8w2o7Sc.cjs +0 -777
- package/dist/src/agents-Ck0NXl7v.js +0 -777
- package/dist/src/agents-CwT3B1qB.js +0 -778
- package/dist/src/agents-DOLjfOEq.js +0 -266
- package/dist/src/agents-OcF9hq--.js +0 -267
- package/dist/src/agents-api-CnZZt8bn.cjs +0 -710
- package/dist/src/agents-api-D04u3bmL.js +0 -711
- package/dist/src/agents-api-DWw0_Vio.js +0 -710
- package/dist/src/agents-api-IWHEwp8i.js +0 -710
- package/dist/src/agents-mHt2Mh9O.cjs +0 -266
- package/dist/src/agents-sICccZCA.js +0 -266
- package/dist/src/ai.studio-Ci4rypDT.js +0 -2
- package/dist/src/ai.studio-KkQ6KaHa.js +0 -369
- package/dist/src/ai.studio-gSXK2cGI.js +0 -374
- package/dist/src/ai.studio-nQF_B4DH.cjs +0 -391
- package/dist/src/aimlapi-BeSk5BDV.js +0 -30
- package/dist/src/aimlapi-CzNUhdKu.cjs +0 -29
- package/dist/src/aimlapi-DCkazDPI.js +0 -29
- package/dist/src/aimlapi-WeH5B6K1.js +0 -28
- package/dist/src/anthropicMessages-AcNWTpYO.js +0 -115
- package/dist/src/anthropicMessages-BUtvzbpL.js +0 -114
- package/dist/src/anthropicMessages-DTWhZDCd.js +0 -114
- package/dist/src/anthropicMessages-lGVnSgyx.cjs +0 -114
- package/dist/src/app/assets/index-CyEI5aDN.js +0 -392
- package/dist/src/audio-BE_Duiu1.js +0 -104
- package/dist/src/audio-CiUd00k2.cjs +0 -104
- package/dist/src/audio-Dop6omna.js +0 -105
- package/dist/src/audio-EZNTInr_.js +0 -104
- package/dist/src/authoritativeMarkupInjection-BUqH6hNk.js +0 -78
- package/dist/src/authoritativeMarkupInjection-BmbJdJO0.cjs +0 -78
- package/dist/src/authoritativeMarkupInjection-Cpz12Y3w.js +0 -78
- package/dist/src/authoritativeMarkupInjection-W4XfcH91.js +0 -79
- package/dist/src/aws-B2Jqbnet.js +0 -2433
- package/dist/src/aws-DHtuUIzQ.js +0 -1149
- package/dist/src/aws-DLqXP6wY.js +0 -2433
- package/dist/src/aws-DfduhmwL.cjs +0 -2454
- package/dist/src/base-B9L2Xvpc.js +0 -255
- package/dist/src/base-BTZnIsuH.cjs +0 -305
- package/dist/src/base-BhaWNQPJ.js +0 -462
- package/dist/src/base-Br-G_Xou.js +0 -256
- package/dist/src/base-Bzo8hiUS.cjs +0 -467
- package/dist/src/base-C82fd2jq.js +0 -463
- package/dist/src/base-CRdQwC1W.js +0 -462
- package/dist/src/base-CjGwZNOQ.js +0 -255
- package/dist/src/bedrock-BdMru_ro.js +0 -1300
- package/dist/src/bedrock-CBUmfLX1.cjs +0 -2
- package/dist/src/bedrock-DBDxBaF9.js +0 -2
- package/dist/src/bedrock-DDrECM21.js +0 -1
- package/dist/src/bedrock-DVwkgvRS.js +0 -1
- package/dist/src/bestOfN-AKF5beq4.js +0 -159
- package/dist/src/bestOfN-C1UIVGJV.js +0 -160
- package/dist/src/bestOfN-DlkETbXy.cjs +0 -161
- package/dist/src/bestOfN-XIfEgU-g.js +0 -159
- package/dist/src/cache-BZaVoKaA.js +0 -2
- package/dist/src/cache-CEYhFUsH.js +0 -741
- package/dist/src/cache-Cbw1zH6q.js +0 -782
- package/dist/src/cache-CdaZNb75.js +0 -754
- package/dist/src/cache-DpuIzPxh.cjs +0 -856
- package/dist/src/cerebras-Bpn6FPkJ.js +0 -97
- package/dist/src/cerebras-CqJ0BRCJ.cjs +0 -97
- package/dist/src/cerebras-D4ILa_TY.js +0 -97
- package/dist/src/cerebras-DR8uc7ee.js +0 -98
- package/dist/src/chat-B7PZfaYp.cjs +0 -987
- package/dist/src/chat-BVuSjdEb.js +0 -227
- package/dist/src/chat-BsaZRjXN.js +0 -76
- package/dist/src/chat-C5liqe3Y.js +0 -226
- package/dist/src/chat-C9hyHf5B.js +0 -124
- package/dist/src/chat-CFLalAck.js +0 -226
- package/dist/src/chat-CN8JGrHu.js +0 -76
- package/dist/src/chat-CaHBBpCb.js +0 -123
- package/dist/src/chat-CcbLSghx.js +0 -123
- package/dist/src/chat-CoSN6sr2.js +0 -934
- package/dist/src/chat-CsJRFX8a.cjs +0 -226
- package/dist/src/chat-DFoZLvO_.js +0 -934
- package/dist/src/chat-DiLQvL7r.js +0 -77
- package/dist/src/chat-F6qVSDk3.cjs +0 -123
- package/dist/src/chat-Oq4FaJgI.cjs +0 -76
- package/dist/src/chat-knMfQUKz.js +0 -935
- package/dist/src/claude-agent-sdk-CJkOLpnI.js +0 -999
- package/dist/src/claude-agent-sdk-Ckn76PRD.js +0 -999
- package/dist/src/claude-agent-sdk-DX0gTr11.cjs +0 -1005
- package/dist/src/claude-agent-sdk-LMeikxoR.js +0 -1000
- package/dist/src/client-BFf1r6Z8.js +0 -352
- package/dist/src/client-CdXyDdDi.js +0 -351
- package/dist/src/client-DV8XMu7i.js +0 -351
- package/dist/src/client-iEXtOBKW.cjs +0 -357
- package/dist/src/cloud-B02qcpjf.js +0 -2
- package/dist/src/cloud-BlHP-g1v.cjs +0 -666
- package/dist/src/cloud-C9BI4isF.js +0 -287
- package/dist/src/cloud-CTTLNdvj.js +0 -657
- package/dist/src/cloud-D5X5yQ_d.js +0 -599
- package/dist/src/cloud-QxPkpsHA.js +0 -599
- package/dist/src/cloudflare-ai-DRTRT1fc.js +0 -132
- package/dist/src/cloudflare-ai-DgaXapAV.cjs +0 -133
- package/dist/src/cloudflare-ai-DkuJXijS.js +0 -134
- package/dist/src/cloudflare-ai-wy9QCHku.js +0 -133
- package/dist/src/cloudflare-gateway-9cAN8g29.cjs +0 -276
- package/dist/src/cloudflare-gateway-BVFMD292.js +0 -277
- package/dist/src/cloudflare-gateway-BuUI4p6I.js +0 -276
- package/dist/src/cloudflare-gateway-TlYHizbW.js +0 -276
- package/dist/src/codex-app-server-BPz_feug.cjs +0 -2162
- package/dist/src/codex-app-server-C9noXM9C.js +0 -2155
- package/dist/src/codex-app-server-CEmD-Y5U.js +0 -2
- package/dist/src/codex-app-server-DZolc18r.js +0 -2156
- package/dist/src/codex-app-server-Dd0A37nO.js +0 -2155
- package/dist/src/codex-sdk-BbxjBvBk.cjs +0 -1588
- package/dist/src/codex-sdk-BpXeIs-_.js +0 -1557
- package/dist/src/codex-sdk-BtQp5X0f.js +0 -1552
- package/dist/src/codex-sdk-CH0v9Bk1.js +0 -2
- package/dist/src/codex-sdk-CgrN7JB8.js +0 -1557
- package/dist/src/codex-security-B5fENNUr.js +0 -406
- package/dist/src/codex-security-C6uuJx-y.cjs +0 -411
- package/dist/src/codex-security-CifWtZR_.js +0 -407
- package/dist/src/codex-security-Kg2bOEKy.js +0 -406
- package/dist/src/cometapi-BFpIDLIx.js +0 -55
- package/dist/src/cometapi-C6O2PIrN.js +0 -56
- package/dist/src/cometapi-D5Yupc6F.js +0 -53
- package/dist/src/cometapi-DzgIwJzJ.cjs +0 -55
- package/dist/src/compatible-0jhmVfOp.js +0 -25
- package/dist/src/compatible-DdtwWdJi.cjs +0 -24
- package/dist/src/compatible-Di4nR3sU.js +0 -24
- package/dist/src/compatible-iJKLWdnf.js +0 -24
- package/dist/src/completion-B0_hVUDG.js +0 -119
- package/dist/src/completion-BdI6v0-Q.cjs +0 -123
- package/dist/src/completion-CWcJscwv.js +0 -118
- package/dist/src/conversationScoring-99EOPJRa.js +0 -373
- package/dist/src/conversationScoring-BIq4J0Cq.js +0 -374
- package/dist/src/conversationScoring-DARyeATr.cjs +0 -398
- package/dist/src/conversationScoring-DS48t4Hb.js +0 -373
- package/dist/src/crescendo-CebvXIu4.js +0 -730
- package/dist/src/crescendo-CxrLS0oo.js +0 -732
- package/dist/src/crescendo-DZQXBSkj.js +0 -733
- package/dist/src/crescendo-wjEx68uD.cjs +0 -734
- package/dist/src/custom-BiQ-aUNw.cjs +0 -620
- package/dist/src/custom-ByyB5Z93.js +0 -619
- package/dist/src/custom-C5jOevNb.js +0 -617
- package/dist/src/custom-CCrsCz8o.js +0 -618
- package/dist/src/dataUrl-C9J7wz9H.js +0 -3133
- package/dist/src/dataUrl-CGsBT7UZ.cjs +0 -3187
- package/dist/src/dataUrl-CzKvvWNO.js +0 -2868
- package/dist/src/decisions-BTusXCUx.cjs +0 -514
- package/dist/src/decisions-BYtL9edD.js +0 -515
- package/dist/src/decisions-jYix_gCF.js +0 -515
- package/dist/src/decisions-nxxfHRAN.js +0 -516
- package/dist/src/docker-DDIv4zkg.js +0 -93
- package/dist/src/docker-DVLp_5OG.js +0 -94
- package/dist/src/docker-INm9w0SY.cjs +0 -94
- package/dist/src/docker-sGuoCul_.js +0 -95
- package/dist/src/embedding-CAhqLLrR.js +0 -82
- package/dist/src/embedding-D94GAsti.cjs +0 -86
- package/dist/src/embedding-zb4MAzQy.js +0 -81
- package/dist/src/envoy-BMPszwEa.cjs +0 -60
- package/dist/src/envoy-Bp-s39_8.js +0 -60
- package/dist/src/envoy-BswDt-Ou.js +0 -61
- package/dist/src/envoy-rVbYcV80.js +0 -60
- package/dist/src/eval-B1-XfrC7.js +0 -2
- package/dist/src/eval-pC4qCvLw.js +0 -1920
- package/dist/src/evalResult-CzjCb5bd.js +0 -1300
- package/dist/src/evaluator-CNq2K7J_.js +0 -10578
- package/dist/src/evaluator-LtfxdxEu.js +0 -2
- package/dist/src/evaluatorHelpers-C5J0NYpQ.js +0 -601
- package/dist/src/evaluatorHelpers-DcdCglCs.cjs +0 -622
- package/dist/src/evaluatorHelpers-Rvb88W6B.js +0 -600
- package/dist/src/fetch-5HtnNhHg.js +0 -1556
- package/dist/src/fetch-BCwjoIFd.js +0 -1559
- package/dist/src/fetch-BhfUnKen.js +0 -1280
- package/dist/src/fetch-C08w4vVl.js +0 -9
- package/dist/src/fetch-DBxy8Tlb.cjs +0 -14
- package/dist/src/fetch-DYte6oQX.cjs +0 -1853
- package/dist/src/fetch-ElpfcAVG.js +0 -10
- package/dist/src/fetch-lM1OIaSt.js +0 -2
- package/dist/src/functionCallbackUtils-BCAdWfHO.js +0 -246
- package/dist/src/functionCallbackUtils-BYq9qOhG.js +0 -245
- package/dist/src/functionCallbackUtils-ByWkmVud.cjs +0 -262
- package/dist/src/functionCallbackUtils-D_C_JaFd.js +0 -245
- package/dist/src/gemini-image-CAlwaJhZ.js +0 -471
- package/dist/src/gemini-image-DJoVoOnZ.cjs +0 -471
- package/dist/src/gemini-image-Waio-9Xx.js +0 -472
- package/dist/src/gemini-image-vbY6Ftbf.js +0 -471
- package/dist/src/goat-BWbtyY9c.js +0 -512
- package/dist/src/goat-CXzzeCOQ.cjs +0 -515
- package/dist/src/goat-CfgvzSgZ.js +0 -514
- package/dist/src/goat-DLeoIHBp.js +0 -515
- package/dist/src/goblin-CmfCfwqk.cjs +0 -22
- package/dist/src/goblin-CtcaORRH.js +0 -22
- package/dist/src/goblin-DF6DDhM-.js +0 -22
- package/dist/src/goblin-Nai0xxBV.js +0 -23
- package/dist/src/google-ClpkLtKL.cjs +0 -142
- package/dist/src/google-CrFgKu9k.js +0 -143
- package/dist/src/google-Dj_EIBqS.js +0 -142
- package/dist/src/google-e4-vARv6.js +0 -142
- package/dist/src/graders-BN1IIa71.js +0 -15470
- package/dist/src/graders-C5sCfSP5.js +0 -2
- package/dist/src/hydra-B7RfXVBK.js +0 -2
- package/dist/src/hydra-C1cFN-Jg.js +0 -613
- package/dist/src/hydra-CK6Uc1ia.js +0 -612
- package/dist/src/hydra-Dg65rAP_.js +0 -610
- package/dist/src/hydra-Fqx8l_Xu.cjs +0 -612
- package/dist/src/image-BdlUDAtp.js +0 -163
- package/dist/src/image-C-KwEhwt.cjs +0 -163
- package/dist/src/image-C76fp6NK.cjs +0 -209
- package/dist/src/image-D75ehv3D.js +0 -482
- package/dist/src/image-DKtc5v5W.js +0 -209
- package/dist/src/image-DT_xOkJY.js +0 -163
- package/dist/src/image-DVpdllEE.js +0 -209
- package/dist/src/image-DXZ8AzMf.js +0 -481
- package/dist/src/image-DZl_1mvy.js +0 -164
- package/dist/src/image-DcTD7Ak0.cjs +0 -504
- package/dist/src/image-ndxEvBKB.js +0 -210
- package/dist/src/indirectWebPwn-70WA5x_q.js +0 -435
- package/dist/src/indirectWebPwn-BRVyd3qV.cjs +0 -463
- package/dist/src/indirectWebPwn-BsJVsu0q.js +0 -285
- package/dist/src/indirectWebPwn-Cw6yJu0i.js +0 -285
- package/dist/src/indirectWebPwn-D-PhJzo4.js +0 -286
- package/dist/src/indirectWebPwn-DRPHt2I8.js +0 -434
- package/dist/src/indirectWebPwn-DXtfFhd9.cjs +0 -285
- package/dist/src/indirectWebPwn-DvpNouzc.js +0 -434
- package/dist/src/interactions-5ixfW7Cl.js +0 -850
- package/dist/src/interactions-BOUzfmg1.cjs +0 -850
- package/dist/src/interactions-CSSXcGNc.js +0 -851
- package/dist/src/interactions-WB_sgkN0.js +0 -850
- package/dist/src/iterative-BShRNqjC.cjs +0 -549
- package/dist/src/iterative-BcW_ELtB.js +0 -548
- package/dist/src/iterative-BpHbHz8B.js +0 -547
- package/dist/src/iterative-YcchP12d.js +0 -545
- package/dist/src/iterativeImage-BMFE5Hl7.cjs +0 -419
- package/dist/src/iterativeImage-CkSaYLMY.js +0 -417
- package/dist/src/iterativeImage-DAEUlQX_.js +0 -418
- package/dist/src/iterativeImage-DeUSkEnj.js +0 -417
- package/dist/src/iterativeMeta-DbdaKdEO.cjs +0 -439
- package/dist/src/iterativeMeta-DcF9JWEK.js +0 -437
- package/dist/src/iterativeMeta-DkfPqWIC.js +0 -439
- package/dist/src/iterativeMeta-DkrpnVSs.js +0 -440
- package/dist/src/iterativeTree-CEMY1FhE.cjs +0 -879
- package/dist/src/iterativeTree-Cv5W4tX9.js +0 -877
- package/dist/src/iterativeTree-DGvomd3M.js +0 -876
- package/dist/src/iterativeTree-KbtC2Mkz.js +0 -878
- package/dist/src/knowledgeBase-AYRXn4wO.js +0 -163
- package/dist/src/knowledgeBase-BNqQfx01.js +0 -163
- package/dist/src/knowledgeBase-C0IaCCVs.js +0 -164
- package/dist/src/knowledgeBase-C2uj6wK4.cjs +0 -163
- package/dist/src/litellm-CN1ScAwZ.js +0 -147
- package/dist/src/litellm-CTjwiKSa.js +0 -146
- package/dist/src/litellm-Cd4Nj5ue.js +0 -145
- package/dist/src/litellm-DMqLpEBg.cjs +0 -146
- package/dist/src/live-Bt50-InO.cjs +0 -891
- package/dist/src/live-Bu2ujadG.js +0 -2
- package/dist/src/live-C3M52i3p.js +0 -891
- package/dist/src/live-CRfHMO3B.js +0 -892
- package/dist/src/live-iCIpO14m.js +0 -891
- package/dist/src/luma-ray-B8eHC4c8.cjs +0 -309
- package/dist/src/luma-ray-BIvkPw0s.js +0 -309
- package/dist/src/luma-ray-ChsiBxMA.js +0 -309
- package/dist/src/luma-ray-DAvKrInz.js +0 -310
- package/dist/src/mantleChat-5YeEXAZI.js +0 -154
- package/dist/src/mantleChat-D--mW3hl.js +0 -154
- package/dist/src/mantleChat-DHP3siNg.cjs +0 -154
- package/dist/src/mantleChat-wBfAX46o.js +0 -155
- package/dist/src/mcp-49jlEcTQ.js +0 -85
- package/dist/src/mcp-__PIz81I.js +0 -84
- package/dist/src/memoryPoisoning-Chxge74M.js +0 -111
- package/dist/src/memoryPoisoning-QH6NCUVE.js +0 -112
- package/dist/src/memoryPoisoning-tCxZt8Nz.js +0 -111
- package/dist/src/memoryPoisoning-ymrRItRR.cjs +0 -111
- package/dist/src/messages-BE_eZ7NA.js +0 -1127
- package/dist/src/messages-Bo638ShI.js +0 -1127
- package/dist/src/messages-BzR0-NQ1.js +0 -1128
- package/dist/src/messages-Cbg5Pfd0.cjs +0 -1161
- package/dist/src/mischievousUser-BtED2Z5Z.cjs +0 -51
- package/dist/src/mischievousUser-KqSOjrDJ.js +0 -51
- package/dist/src/mischievousUser-YMD41YNZ.js +0 -51
- package/dist/src/mischievousUser-zBxlNdCu.js +0 -52
- package/dist/src/modelslab-B8gZxtfE.js +0 -171
- package/dist/src/modelslab-C7bmVpTB.js +0 -170
- package/dist/src/modelslab-CCeQCTZg.js +0 -170
- package/dist/src/modelslab-CvBJGv7y.cjs +0 -170
- package/dist/src/nova-reel-BOEWsEKA.cjs +0 -272
- package/dist/src/nova-reel-BtyBXq5M.js +0 -273
- package/dist/src/nova-reel-C1eF3-EE.js +0 -272
- package/dist/src/nova-reel-YhgrxEKT.js +0 -272
- package/dist/src/nova-sonic-BaERP20w.js +0 -374
- package/dist/src/nova-sonic-CxgM3O-P.cjs +0 -374
- package/dist/src/nova-sonic-DJS22fC3.js +0 -375
- package/dist/src/nova-sonic-DwvwHyRX.js +0 -374
- package/dist/src/novita-D1l2tG0O.js +0 -116
- package/dist/src/novita-D84VM3v0.cjs +0 -115
- package/dist/src/novita-DGInvwfR.js +0 -115
- package/dist/src/novita-vXHkXhTg.js +0 -114
- package/dist/src/nscale-CU0Ldr00.js +0 -209
- package/dist/src/nscale-ClfKlQeM.cjs +0 -209
- package/dist/src/nscale-DxaVnF0x.js +0 -210
- package/dist/src/nscale-_poVxIrO.js +0 -207
- package/dist/src/openaiResponses-CJGsneNj.js +0 -317
- package/dist/src/openaiResponses-CKSl5Sdg.js +0 -319
- package/dist/src/openaiResponses-DC8rzFUc.js +0 -318
- package/dist/src/openaiResponses-rMHIA3dV.cjs +0 -318
- package/dist/src/openclaw-CCbvsNFW.cjs +0 -1344
- package/dist/src/openclaw-CZw1lCDZ.js +0 -1336
- package/dist/src/openclaw-ChFLgC-a.js +0 -1338
- package/dist/src/openclaw-DrPMoRrH.js +0 -1337
- package/dist/src/opencode-sdk-2EfIDhFp.cjs +0 -1018
- package/dist/src/opencode-sdk-CHw3F845.js +0 -1013
- package/dist/src/opencode-sdk-D0EGGxvy.js +0 -1012
- package/dist/src/opencode-sdk-jSS7NI2Q.js +0 -1012
- package/dist/src/openinterpreter-CY622xHC.js +0 -431
- package/dist/src/openinterpreter-DATyhuhP.js +0 -432
- package/dist/src/openinterpreter-DDUMyIf1.js +0 -431
- package/dist/src/openinterpreter-s5Tz6Lid.cjs +0 -435
- package/dist/src/pricing-C498twd2.js +0 -976
- package/dist/src/pricing-DBd_bMIh.cjs +0 -999
- package/dist/src/pricing-ISrMCskv.js +0 -976
- package/dist/src/promptfoo-6p0WG2ih.js +0 -286
- package/dist/src/promptfoo-BQRfgNs_.js +0 -285
- package/dist/src/promptfoo-Bqo88z20.cjs +0 -341
- package/dist/src/promptfoo-Cq5AVI3I.js +0 -286
- package/dist/src/providers-ATbeMX5E.cjs +0 -24180
- package/dist/src/providers-B7F1FiNI.js +0 -2
- package/dist/src/providers-DazIw8mI.js +0 -24039
- package/dist/src/providers-QvGlNAD0.js +0 -24437
- package/dist/src/quiverai-BPlNcLkV.cjs +0 -325
- package/dist/src/quiverai-By99-YmJ.js +0 -325
- package/dist/src/quiverai-CmmByDqo.js +0 -325
- package/dist/src/quiverai-HZkoJJqw.js +0 -326
- package/dist/src/registry-BLTnTfjT.cjs +0 -131
- package/dist/src/registry-BMC-COHT.js +0 -132
- package/dist/src/registry-C8UZtmBp.js +0 -131
- package/dist/src/registry-CfwEUYXG.js +0 -131
- package/dist/src/remoteGeneration-Bgg6kC5V.js +0 -370
- package/dist/src/remoteGeneration-CKJFE960.cjs +0 -482
- package/dist/src/remoteGeneration-DaxwJDKv.js +0 -370
- package/dist/src/remoteGeneration-vHMGVKr1.js +0 -371
- package/dist/src/responses-BvnyIHrq.js +0 -1099
- package/dist/src/responses-CERAgvf-.js +0 -1098
- package/dist/src/responses-CwgjeuOg.cjs +0 -1109
- package/dist/src/runtimeTransform-3RF9Avyg.cjs +0 -161
- package/dist/src/runtimeTransform-C51Z5j4H.js +0 -156
- package/dist/src/runtimeTransform-CKE_Iyv8.js +0 -157
- package/dist/src/runtimeTransform-Cs11xJpj.js +0 -156
- package/dist/src/sagemaker-BJ4dOCxE.js +0 -713
- package/dist/src/sagemaker-Bt3JUAWq.js +0 -714
- package/dist/src/sagemaker-QVKyLgLF.cjs +0 -716
- package/dist/src/sagemaker-l3IB8iTs.js +0 -713
- package/dist/src/scanner-DGjIiTZ1.js +0 -1971
- package/dist/src/server-BNaLZH6u.js +0 -63
- package/dist/src/server-CBMuQul3.js +0 -189
- package/dist/src/server-CMKKIzKv.cjs +0 -74
- package/dist/src/server-CN2IS9Cs.js +0 -155
- package/dist/src/server-ua4cqbjC.js +0 -2
- package/dist/src/session-CQIjq_HZ.cjs +0 -69
- package/dist/src/session-FTlg8sEu.js +0 -62
- package/dist/src/session-GBQXtPWp.js +0 -63
- package/dist/src/session-_0-rTdwY.js +0 -62
- package/dist/src/shared-BtuO-OAM.js +0 -1927
- package/dist/src/shared-Ci78wTZX.js +0 -1928
- package/dist/src/shared-Dd3rimdM.js +0 -1929
- package/dist/src/shared-KAjFxRre.cjs +0 -2185
- package/dist/src/simulatedUser--OjW6xCx.js +0 -247
- package/dist/src/simulatedUser-D0-slRye.cjs +0 -252
- package/dist/src/simulatedUser-D1Kh_cwA.js +0 -248
- package/dist/src/slack-BX0FUevO.js +0 -144
- package/dist/src/slack-CcwXFiJE.cjs +0 -144
- package/dist/src/slack-CnfqKfXp.js +0 -145
- package/dist/src/strategies-2ntcK4tN.js +0 -2248
- package/dist/src/strategies-DZIW7Zcs.js +0 -2385
- package/dist/src/strategies-YRDF2j-N.cjs +0 -2420
- package/dist/src/telemetry-CL8CVA4p.js +0 -205
- package/dist/src/telemetry-Cix90qqz.js +0 -201
- package/dist/src/telemetry-CkmlqTjV.js +0 -205
- package/dist/src/telemetry-DQH7l5bb.js +0 -2
- package/dist/src/telemetry-DUCXc1-r.cjs +0 -216
- package/dist/src/togetherai-3yUt5Ck7.js +0 -49
- package/dist/src/togetherai-BJUByLwt.cjs +0 -49
- package/dist/src/togetherai-Bh6KZkmd.js +0 -50
- package/dist/src/togetherai-DDl9yk3b.js +0 -48
- package/dist/src/traceContext-BiJVppjT.cjs +0 -1032
- package/dist/src/traceContext-CKKluULP.js +0 -1016
- package/dist/src/traceContext-D3Sk8fO-.js +0 -1015
- package/dist/src/transcription-BoVQKIVz.js +0 -175
- package/dist/src/transcription-Bs5u8780.js +0 -175
- package/dist/src/transcription-Dl654d1p.cjs +0 -178
- package/dist/src/transcription-VEvhM1Fu.js +0 -176
- package/dist/src/transform-BAbkGpvl.js +0 -125
- package/dist/src/transform-C_j4hUH8.js +0 -126
- package/dist/src/transform-Da86hs4M.cjs +0 -154
- package/dist/src/transform-_i1raQNo.js +0 -125
- package/dist/src/typesafe-CKXBeh82.cjs +0 -253
- package/dist/src/typesafe-D3VaGeNm.js +0 -253
- package/dist/src/typesafe-DYM-SFNH.js +0 -253
- package/dist/src/typesafe-LXmSbw8F.js +0 -254
- package/dist/src/util-41rb0XHX.js +0 -743
- package/dist/src/util-B0WlHYFM.js +0 -2049
- package/dist/src/util-BD1R_PsR.js +0 -1770
- package/dist/src/util-BLbM_ItC.js +0 -395
- package/dist/src/util-C72P0iIa.js +0 -352
- package/dist/src/util-C7MpGlJ6.cjs +0 -2305
- package/dist/src/util-CCtqagKc.js +0 -286
- package/dist/src/util-CM2Ec_uY.js +0 -2051
- package/dist/src/util-CSSAWO8v.js +0 -351
- package/dist/src/util-CkQc-fx3.cjs +0 -934
- package/dist/src/util-DcOlFTFa.cjs +0 -478
- package/dist/src/util-DluGTGVB.js +0 -395
- package/dist/src/util-PfQ60chz.js +0 -743
- package/dist/src/util-f14-CPij.js +0 -396
- package/dist/src/util-l9pXX3Eu.cjs +0 -357
- package/dist/src/util-o_BnlYqS.js +0 -2050
- package/dist/src/vertex-B_-gQgzc.js +0 -2
- package/dist/src/vertex-CU4gqoYa.js +0 -854
- package/dist/src/vertex-DZ42UHb3.js +0 -848
- package/dist/src/vertex-DsYQJA0T.cjs +0 -871
- package/dist/src/vertexLive-BvIaHKGB.js +0 -55
- package/dist/src/vertexLive-CTULqNx7.js +0 -56
- package/dist/src/vertexLive-DjJ_YQBe.cjs +0 -55
- package/dist/src/vertexLive-STUGcteB.js +0 -55
- package/dist/src/video-CAQGmtEV.js +0 -703
- package/dist/src/video-_FSTWlwX.js +0 -702
- package/dist/src/video-aBPJPWdt.js +0 -702
- package/dist/src/video-gDjkWv5m.cjs +0 -706
package/dist/src/server/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __exportAll, t as getProcessShim } from "../processShim-CAJN2mjb.js";
|
|
2
2
|
import { $ as getProcessEnv, A as buildConfiguredProviderMap, B as safeJsonStringify, C as sanitizeTracingConfigForPersistence, E as sanitizeUrlForLogging, F as extractFirstJsonObject, G as state, H as loadYaml, I as extractJsonObjects, J as getEnvInt, K as getEnvBool, L as getAjv, M as resolveConfiguredProviderReference, N as isApiProvider, P as isProviderOptions, Q as getMaxEvalTimeMs, S as sanitizeRuntimeOptions, T as sanitizeUrlEncodedString, U as getConfigDirectoryPath, V as summarizeEvaluateResultForLogging, X as getEnvString, Y as getEnvOverrides, Z as getEvalTimeoutMs, _ as preserveTracingCredentialReferences, b as sanitizeConfigForOutput, c as setLogLevel, d as isNonCredentialHeader, et as getProviderEnvString, f as isSecretEnvVarName, i as isDebugEnabled, it as parseEnvFloat, j as isProviderTypeMap, l as REDACTED, m as looksLikeSecret, n as getLogLevel, nt as isTemplateProcessEnvDisabled, o as logger, ot as getExplicitProviderEnv, p as isSecretField, q as getEnvFloat, r as globalLogCallback, s as setLogCallback, st as setExplicitProviderEnv, t as clearLogCallbackIfOwned, tt as isCI, v as redactAzureBlobSasTokens, w as sanitizeUrl, x as sanitizeObject, y as restoreAzureBlobSasTokens, z as orderKeys } from "../logger-Gff7RMNF.js";
|
|
3
|
-
import { $ as queryTestIndicesOptimized, A as sanitizeProviderIdForLog, B as persistRepeatMetadata, C as getProviderDescription, D as isOpenAiProvider, E as isGoogleProvider, F as EvalResult, G as stripTraceLinkageFromMetadata, H as projectPrompt, I as PROMPTFOO_METADATA_KEY, J as invalidateEvaluationCaches, K as toSerializableProviderRef, L as asEvaluateResult, M as loadProviderConfigsFromFile, N as normalizeProviderRef, O as isProviderAllowed, P as readProviderConfigFile, Q as getTotalResultRowCount, R as getResultIndexKey, S as doesProviderRefMatch, T as isAnthropicProvider, U as projectTracesForOutput, V as persistTraceMetadata, W as sanitizeResultForJsonlArtifact, X as notifyEvaluationsDeleted, Y as notifyEvaluationChanged, Z as getCachedResultsCount, _ as deduplicateTestCases, a as printBorder, at as normalizeInput, b as resultIsForTestCase, c as getOutputFileFormat, ct as hasUnscopedUpdate, d as generateEvalCsv, dt as setupSignalWatcher, et as getCachedStandaloneEvals, f as getEvalTableOutputPromptLocationsBySize, ft as updateEvalIds, g as setupEnv, h as fetchCsvFromGoogleSheet, it as maybeFilePath, j as isProviderConfigFileReference, k as providerToIdentifier, l as ComparisonEvalNotFoundError, lt as isAllEvalsDeleted, m as mergeComparisonTables, mt as HUMAN_ASSERTION_TYPE, nt as setCachedStandaloneEvals, o as warnOnDegradedJsonlRecovery, ot as generateIdFromPrompt, p as getEvalTablePromptStrippedPayload, pt as FILE_METADATA_KEY, q as invalidateEvaluationCache, rt as hashPrompt, s as writeMultipleOutputs, st as hasDeleteComponent, tt as getStandaloneEvalCacheKey, u as evalTableToJson, ut as readSignalFile, v as extractRuntimeVars, w as getProviderIdentifier, x as checkProviderApiKeys, y as filterRuntimeVars, z as getStripFlags } from "../dataUrl-
|
|
4
|
-
import { A as isAbortError$1, D as extractRateLimitErrorType, E as extractRateLimitErrorCode, G as getDefaultPort, I as createDecompressionInterceptor, J as getShareViewBaseUrl, K as getDefaultShareViewBaseUrl, L as stripDecompressionHeaders, N as isHttpRateLimitError, O as formatRateLimitErrorMessage, P as isNonTransientHttpStatus, T as NON_TRANSIENT_HTTP_STATUSES, W as TERMINAL_MAX_WIDTH, X as VERSION, _ as CloudConfig, k as getAbortError, n as fetchWithRetries, o as rateLimitTimingFromHeaders, q as getShareApiBaseUrl, r as fetchWithTimeout, t as fetchWithProxy, v as cloudConfig, w as HttpRateLimitError } from "../fetch-
|
|
3
|
+
import { $ as queryTestIndicesOptimized, A as sanitizeProviderIdForLog, B as persistRepeatMetadata, C as getProviderDescription, D as isOpenAiProvider, E as isGoogleProvider, F as EvalResult, G as stripTraceLinkageFromMetadata, H as projectPrompt, I as PROMPTFOO_METADATA_KEY, J as invalidateEvaluationCaches, K as toSerializableProviderRef, L as asEvaluateResult, M as loadProviderConfigsFromFile, N as normalizeProviderRef, O as isProviderAllowed, P as readProviderConfigFile, Q as getTotalResultRowCount, R as getResultIndexKey, S as doesProviderRefMatch, T as isAnthropicProvider, U as projectTracesForOutput, V as persistTraceMetadata, W as sanitizeResultForJsonlArtifact, X as notifyEvaluationsDeleted, Y as notifyEvaluationChanged, Z as getCachedResultsCount, _ as deduplicateTestCases, a as printBorder, at as normalizeInput, b as resultIsForTestCase, c as getOutputFileFormat, ct as hasUnscopedUpdate, d as generateEvalCsv, dt as setupSignalWatcher, et as getCachedStandaloneEvals, f as getEvalTableOutputPromptLocationsBySize, ft as updateEvalIds, g as setupEnv, h as fetchCsvFromGoogleSheet, it as maybeFilePath, j as isProviderConfigFileReference, k as providerToIdentifier, l as ComparisonEvalNotFoundError, lt as isAllEvalsDeleted, m as mergeComparisonTables, mt as HUMAN_ASSERTION_TYPE, nt as setCachedStandaloneEvals, o as warnOnDegradedJsonlRecovery, ot as generateIdFromPrompt, p as getEvalTablePromptStrippedPayload, pt as FILE_METADATA_KEY, q as invalidateEvaluationCache, rt as hashPrompt, s as writeMultipleOutputs, st as hasDeleteComponent, tt as getStandaloneEvalCacheKey, u as evalTableToJson, ut as readSignalFile, v as extractRuntimeVars, w as getProviderIdentifier, x as checkProviderApiKeys, y as filterRuntimeVars, z as getStripFlags } from "../dataUrl-DBMifX6C.js";
|
|
4
|
+
import { A as isAbortError$1, D as extractRateLimitErrorType, E as extractRateLimitErrorCode, G as getDefaultPort, I as createDecompressionInterceptor, J as getShareViewBaseUrl, K as getDefaultShareViewBaseUrl, L as stripDecompressionHeaders, N as isHttpRateLimitError, O as formatRateLimitErrorMessage, P as isNonTransientHttpStatus, T as NON_TRANSIENT_HTTP_STATUSES, W as TERMINAL_MAX_WIDTH, X as VERSION, _ as CloudConfig, k as getAbortError, n as fetchWithRetries, o as rateLimitTimingFromHeaders, q as getShareApiBaseUrl, r as fetchWithTimeout, t as fetchWithProxy, v as cloudConfig, w as HttpRateLimitError } from "../fetch-B5KxZuKu.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-CPISMNlh.js";
|
|
7
7
|
import { S as isCallerAbortError, _ as transformToolChoice, a as getRequestTimeoutMs, b as withResponseCacheMetadata, c as isPromptfooSampleTarget, f as parseChatPrompt, g as toTitleCase, h as throwIfAborted$3, i as getOpenAIChatOutputLimitFromEnv, l as modelNameFromProviderPath, m as shouldBustProviderCache, n as calculateCost, p as resolveDirectTestVariable, r as clampCachedTokens, t as LONG_RUNNING_MODEL_TIMEOUT_MS, v as transformTools, y as waitForPromiseWithAbort } from "../shared-BBI-NXjW.js";
|
|
8
8
|
import { n as sleep, r as sleepWithAbort, t as getCurrentTimestamp } from "../time-Db5rO0GY.js";
|
|
9
9
|
import { t as getPackageVersion } from "../packageVersion-DPcg6DyC.js";
|
|
@@ -12,12 +12,12 @@ import { n as resolveProviderApiKey, t as resolveConfiguredApiKey } from "../cre
|
|
|
12
12
|
import { t as providerRegistry } from "../providerRegistry-jbw0KYyZ.js";
|
|
13
13
|
import { i as withSpanRole, r as getActiveTraceparent, t as SPAN_ROLE_ATTRIBUTE } from "../spanRoles-Drw6abNG.js";
|
|
14
14
|
import { c as extractProviderResponseAttributes, f as recordSpanError, g as withGenAIToolSpan, h as withGenAISpan, i as buildChatSpanContext, l as getGenAITracer, m as setGenAIResponseAttributes, n as PromptfooAttributes, o as emitTurnMarkerSpan, p as sanitizeBody, s as extractGenAIResponse, t as GenAIAttributes } from "../genaiTracer-CuSjHi4t.js";
|
|
15
|
-
import { a as getAbortSignalScopedKey, c as getCacheTtlMs, d as withCacheEnabled, f as withCacheNamespace, i as fetchWithCache, l as getScopedCacheKey, n as claimCacheKeyOnce, o as getCache, r as disableCache, s as getCacheClearGeneration, u as isCacheEnabled } from "../cache-
|
|
15
|
+
import { a as getAbortSignalScopedKey, c as getCacheTtlMs, d as withCacheEnabled, f as withCacheNamespace, i as fetchWithCache, l as getScopedCacheKey, n as claimCacheKeyOnce, o as getCache, r as disableCache, s as getCacheClearGeneration, u as isCacheEnabled } from "../cache-DSm6t1MZ.js";
|
|
16
16
|
import { n as sha256, t as randomSequence } from "../createHash-D7vud8fe.js";
|
|
17
17
|
import { a as importModule, c as safeResolve, i as getWrapperDir, n as ensureTypescriptLoader, r as getDirectory, s as safeJoin, t as clearCjsModuleCache } from "../esm-D2FLmzG-.js";
|
|
18
|
-
import { a as isAgenticGradingProvider } from "../agentic-utils-
|
|
18
|
+
import { a as isAgenticGradingProvider } from "../agentic-utils-EP1QkQCs.js";
|
|
19
19
|
import { a as extractVariablesFromTemplates, i as extractVariablesFromTemplate, n as renderVarsInObject, o as getNunjucksEngine, r as analyzeTemplateReference, t as renderEnvOnlyInObject } from "../render-DuOHcYot.js";
|
|
20
|
-
import { i as isAgentWorkspace, r as createAgentWorkspaceForConfig } from "../agentWorkspace-
|
|
20
|
+
import { i as isAgentWorkspace, r as createAgentWorkspaceForConfig } from "../agentWorkspace-Bom7SpF2.js";
|
|
21
21
|
import { a as isGpt6Model, i as getGpt6Variant, n as getGpt6ChatReasoningEffort, o as resolveGpt6ChatOutputCap, r as getGpt6ResponsesReasoning, t as applyGpt6RequestRules } from "../gpt6-CA0S8lOm.js";
|
|
22
22
|
import { r as hasFunctionToolCallValidator } from "../toolSchemaError-qJjAEeAH.js";
|
|
23
23
|
import { A as getTokenUsageWithRequestCount, B as parseChatCompletionJsonOutput, C as getOpenAiEffectiveServiceTier, D as getOpenAiPolicyRefusal, E as getOpenAiPartialOutput, F as isCustomOpenAiEndpoint, H as validateChatCompletionMessage, I as isOpenAiErrorOnlyResponse, J as prepareOpenAiTools, K as prepareOpenAiReasoning, L as isOpenAiFirstPartyApiUrl, M as hasSensitiveOpenAiCachePath, N as hasSensitiveOpenAiCacheString, O as getRetiredOpenAiModelRoute, P as isAzureOpenAiEndpoint, R as normalizeOpenAiBillingModelName, S as getOpenAiChatChoiceError, U as validateFunctionCall, V as resolveMaxToolIterations, W as isOpenAiJsonSchemaFormat, Y as filterFiniteScores, _ as flattenResponseTool, a as OPENAI_COMPLETION_MODELS, d as appendOpenAiApiPath, f as assertOpenAiApiModel, g as failApiCall, h as classifyOpenAiGatewayStreamError, k as getTokenUsage$2, l as OPENAI_TTS_MODELS, m as calculateSafeOpenAICost, n as NON_CONVERSATIONAL_REALTIME_MODELS, o as OPENAI_DAYBREAK_ALIASES, p as assertOpenAiModelEndpointCompatibility, q as prepareOpenAiResponseFormat, r as OPENAI_BILLING_MODELS, s as OPENAI_REALTIME_MODELS, u as RETIRED_OPENAI_MODEL_IDS, v as formatOpenAiError, w as getOpenAiGatewayErrorType, x as getOpenAICompletionTokenDetails, y as getChatCompletionRefusal, z as normalizeOpenAiServiceTierForWire } from "../util-CsTD_ROg.js";
|
|
@@ -30,37 +30,37 @@ import { i as hasActiveTracingSpan, s as getDefaultOtelConfig } from "../tracing
|
|
|
30
30
|
import { $ as ALL_PLUGINS, A as PolicyObjectSchema, At as hasTraceCredentialPath, B as DEFAULT_STRATEGIES, C as UnifiedConfigSchema, Ct as CODING_AGENT_PLUGINS, D as ConversationMessageSchema, Dt as ProvidersSchema, Et as ProviderOptionsSchema, F as isCliEventSource, G as isCustomStrategy, H as STRATEGY_COLLECTIONS, I as RedteamConfigSchema, J as Severity, K as isFanoutStrategy, L as AGENTIC_STRATEGIES, M as StrategyConfigSchema, Mt as closeDbIfOpen, N as isValidReusablePolicyId, Nt as getDb, O as PartialGenerationError, Ot as filterByRange, P as isUuid, Q as ALIASED_PLUGIN_MAPPINGS, R as ALL_STRATEGIES, S as TestSuiteSchema, St as CODING_AGENT_CORE_PLUGINS, T as ResultFailureReason, Tt as CODING_AGENT_PLUGIN_DISPLAY_NAMES, U as STRATEGY_COLLECTION_MAPPINGS, V as MULTI_TURN_STRATEGIES, W as getDefaultNFanout, Y as categoryAliases, Z as riskCategorySeverityMap, _ as CommandLineOptionsSchema, _t as REMOTE_ONLY_PLUGIN_IDS, a as evalResultsTable, at as FOUNDATION_PLUGINS, bt as TELECOM_PLUGINS, c as evalsToPromptsTable, ct as LLAMA_GUARD_ENABLED_CATEGORIES, d as promptsTable, dt as MULTI_INPUT_EXCLUDED_PLUGINS, et as BIAS_PLUGINS, f as spansTable, ft as MULTI_INPUT_VAR, g as BaseAssertionTypesSchema, gt as REDTEAM_PROVIDER_HARM_PLUGINS, h as AssertionOrSetSchema, ht as PLUGIN_CATEGORIES, i as datasetsTable, it as FINANCIAL_PLUGINS, j as ProbeLimitExceededError, k as PluginConfigSchema, kt as PromptSchema, l as evalsToTagsTable, lt as LLAMA_GUARD_REPLICATE_PROVIDER, m as tracesTable, mt as PII_PLUGINS, n as blobReferencesTable, nt as DATASET_EXEMPT_PLUGINS, o as evalsTable, ot as HARM_PLUGINS, p as tagsTable, pt as PHARMACY_PLUGINS, q as isMultiTurnStrategy, r as configsTable, rt as DEFAULT_PLUGINS, s as evalsToDatasetsTable, st as INSURANCE_PLUGINS, t as blobAssetsTable, tt as CANARY_BREAKING_STRATEGY_IDS, u as modelAuditsTable, ut as MEDICAL_PLUGINS, v as EvalResultsFilterMode, vt as STRATEGY_EXEMPT_PLUGINS, w as isGradingResult, wt as CODING_AGENT_PLUGIN_DESCRIPTIONS, x as TestSuiteConfigSchema, xt as UNALIGNED_PROVIDER_HARM_PLUGINS, y as EvaluateOptionsSchema, yt as TEEN_SAFETY_PLUGINS } from "../tables-D7gZdWrS.js";
|
|
31
31
|
import { o as buildInputPromptDescription, t as BaseTokenUsageSchema } from "../shared-CPig5o70.js";
|
|
32
32
|
import { a as TOOL_ARGUMENT_ATTRIBUTE_KEYS, c as getToolNameFromAttributes, i as SEARCH_ATTRIBUTE_KEYS, l as sanitizeTraceAttributes, o as getFirstStringAttribute, r as COMMAND_ATTRIBUTE_KEYS, s as getNormalizedToolAttributes, t as getTraceStore } from "../store-zGP98TMs.js";
|
|
33
|
-
import { _ as getCodexDefaultProviders, c as neverGenerateRemote, d as shouldGenerateRemote, f as getCloudTargetIdFromProviderId, g as resolveRedteamGenerationContext, h as remoteGenerationContextPayload, i as getRemoteGenerationUrl, m as isRecord$2, n as getRemoteGenerationExplicitlyDisabledError, o as getRemoteHealthUrl, p as getCloudTargetIdFromTargetIds, r as getRemoteGenerationHeaders, v as hasCodexDefaultCredentials } from "../remoteGeneration-
|
|
34
|
-
import { a as openBrowser, i as checkServerRunning, n as BrowserBehaviorNames, s as promptYesNo, t as BrowserBehavior } from "../server-
|
|
33
|
+
import { _ as getCodexDefaultProviders, c as neverGenerateRemote, d as shouldGenerateRemote, f as getCloudTargetIdFromProviderId, g as resolveRedteamGenerationContext, h as remoteGenerationContextPayload, i as getRemoteGenerationUrl, m as isRecord$2, n as getRemoteGenerationExplicitlyDisabledError, o as getRemoteHealthUrl, p as getCloudTargetIdFromTargetIds, r as getRemoteGenerationHeaders, v as hasCodexDefaultCredentials } from "../remoteGeneration-DtnqocnL.js";
|
|
34
|
+
import { a as openBrowser, i as checkServerRunning, n as BrowserBehaviorNames, s as promptYesNo, t as BrowserBehavior } from "../server-Bmh7sd9F.js";
|
|
35
35
|
import { c as accumulateTokenUsage, d as createEmptyTokenUsage, f as getErrorTokenUsage, i as accumulateGradingRequest, l as cloneTokenUsageBreakdown, m as addCompletionDetails, n as accumulateAttackerTokenUsage, o as accumulateGradingTokenUsage, p as normalizeTokenUsage, r as accumulateGenerationTokenUsage, s as accumulateResponseTokenUsage, t as accumulateAssertionTokenUsage, u as createEmptyAssertions } from "../tokenUsageUtils-BfzeNdYY.js";
|
|
36
36
|
import { i as isSafeInlineBlobMimeType, n as getBlobStorageProvider, r as getShareAuthorizedBlob } from "../blobs-DiN8G72v.js";
|
|
37
37
|
import { a as collectBlobHashes, i as BLOB_URI_REGEX$1, n as isBlobStorageEnabled, o as extractBlobHashesFromValue, r as BLOB_SCAN_MAX_STRING_LENGTH, s as normalizeBlobHash, t as extractAndStoreBinaryData } from "../extractor-NglB5koy.js";
|
|
38
|
-
import { A as withGradingUsage, B as withProviderCallExecutionContext, C as MAX_CHARS_PER_MESSAGE_MODIFIER_KEY, D as getGradingAssertionHash, E as throwIfTargetPromptExceedsMaxChars, F as createProviderRateLimitOptions, I as isRateLimitWrapped, L as getProviderCallExecutionContext, M as RateLimitRegistry, N as sleepWithAbort$1, O as getGradingInputHash, P as throwIfAborted$4, R as getProviderCallTracingContext, T as getMaxCharsPerMessageModifierValue, U as uploadBlobRemote, V as withProviderCallTracingContext, j as TokenUsageTracker, k as getTargetConversation, w as getGeneratedPromptOverLimit, y as redteamProviderManager, z as runProviderCallWithAbort } from "../shared-
|
|
39
|
-
import { a as getPluginSeverityOverridesFromCloud, c as isCloudProvider, d as validateLinkedTargetId, i as getOrgContext, l as makeRequest, n as getCloudDatabaseId, o as getPoliciesFromCloud, r as getEvalConfigFromCloud, s as getProviderFromCloud, t as checkCloudPermissions, u as resolveTeamId } from "../cloud-
|
|
40
|
-
import { r as TelemetryEventSchema, t as telemetry } from "../telemetry-
|
|
38
|
+
import { A as withGradingUsage, B as withProviderCallExecutionContext, C as MAX_CHARS_PER_MESSAGE_MODIFIER_KEY, D as getGradingAssertionHash, E as throwIfTargetPromptExceedsMaxChars, F as createProviderRateLimitOptions, I as isRateLimitWrapped, L as getProviderCallExecutionContext, M as RateLimitRegistry, N as sleepWithAbort$1, O as getGradingInputHash, P as throwIfAborted$4, R as getProviderCallTracingContext, T as getMaxCharsPerMessageModifierValue, U as uploadBlobRemote, V as withProviderCallTracingContext, j as TokenUsageTracker, k as getTargetConversation, w as getGeneratedPromptOverLimit, y as redteamProviderManager, z as runProviderCallWithAbort } from "../shared-Dh3yfRBd.js";
|
|
39
|
+
import { a as getPluginSeverityOverridesFromCloud, c as isCloudProvider, d as validateLinkedTargetId, i as getOrgContext, l as makeRequest, n as getCloudDatabaseId, o as getPoliciesFromCloud, r as getEvalConfigFromCloud, s as getProviderFromCloud, t as checkCloudPermissions, u as resolveTeamId } from "../cloud-D7Ifb-Fl.js";
|
|
40
|
+
import { r as TelemetryEventSchema, t as telemetry } from "../telemetry-g7PkBxmY.js";
|
|
41
41
|
import { n as normalizeFinishReason, t as FINISH_REASON_MAP } from "../finishReason-BixMIdSI.js";
|
|
42
42
|
import { n as optionalPackageInstallHint, t as isMissingPackageImportError } from "../packageImportErrors-rgCkzu81.js";
|
|
43
|
-
import { a as getOAuthTokenWithExpiry, d as normalizeRenderedAuth, g as McpAuthSchema, m as BearerAuthSchema, n as getAuthHeaders, p as BasicAuthSchema, r as getAuthQueryParams, s as isMcpToolNameFilter, t as applyQueryParams, u as sanitizeMcpToolData } from "../util-
|
|
44
|
-
import { t as McpConfigSchema } from "../mcp-
|
|
45
|
-
import { t as McpClientSession } from "../session-
|
|
46
|
-
import { B as hasGoogleDefaultCredentials, D as removeGoogleFunctionDeclarations, E as removeDeprecatedGeminiGenerationParams, H as resolveProjectId, I as GoogleAuthManager, L as determineGoogleVertexMode, M as CHAT_MODELS, O as resolveGoogleToolConfig, P as getVertexApiHostForRegion, S as normalizeSafetySettings, T as parseConfigSystemInstruction, V as loadCredentials, _ as mergeGoogleCompletionOptions, a as createAuthCacheDiscriminator, b as normalizeGeminiAudio, c as getCandidate, d as getGoogleGuardrails, f as getGoogleResponseServiceTier, h as isNonCandidateStreamChunk, i as collectThoughtSignatures, m as getVertexServiceTierHeaders, n as calculateGoogleCostFromUsage, o as formatCandidateContents, p as getLastPromptSafetyRatings, r as collectGroundingMetadata, s as geminiFormatAndSystemInstructions, t as calculateGoogleCost, u as getGoogleApiBaseUrl, v as mergeGoogleRequestTools, w as parseConfigResponseSchema, x as normalizeGoogleServiceTier, y as mergeParts, z as getGoogleClient } from "../util-
|
|
47
|
-
import { i as transformMCPToolsToOpenAi } from "../transform-
|
|
48
|
-
import { a as hashAnthropicCacheValue, i as getAnthropicEnvHeaderSuppressions, n as AnthropicGenericProvider, t as AnthropicMessagesProvider } from "../messages-
|
|
49
|
-
import { A as parseMessages, C as isForcedToolChoiceUnsupportedClaudeModel, E as looksLikeClaudeModelId, M as resolveClaudeSamplingParams, O as normalizeClaudeThinkingConfig, a as calculateAnthropicCost, c as claudeThinkingConsumesTokens, f as getTokenUsage$3, i as applyClaudeRegionalPremium, k as outputFromMessage, n as ANTHROPIC_SHORTHAND_MODEL_IDS, s as clampMaxTokensForThinkingBudget, w as isSamplingParamsDeprecatedClaudeModel, x as isClaudeThinkingEnabled } from "../util-
|
|
50
|
-
import { r as loadProviderCallbackFromFileUrl, t as FunctionCallbackHandler } from "../functionCallbackUtils-
|
|
51
|
-
import { t as GoogleGenericProvider } from "../base-
|
|
52
|
-
import { c as preserveResponseHeadersObserverError, l as preserveResponseHeadersObserverErrorResponse, n as getOpenAiGatewayRateLimitKind, o as isResponseHeadersObserverError, r as getOpenAiRateLimitResponse, t as OpenAiChatCompletionProvider } from "../chat-
|
|
43
|
+
import { a as getOAuthTokenWithExpiry, d as normalizeRenderedAuth, g as McpAuthSchema, m as BearerAuthSchema, n as getAuthHeaders, p as BasicAuthSchema, r as getAuthQueryParams, s as isMcpToolNameFilter, t as applyQueryParams, u as sanitizeMcpToolData } from "../util-DMNFhk47.js";
|
|
44
|
+
import { t as McpConfigSchema } from "../mcp-B0V0ikdM.js";
|
|
45
|
+
import { t as McpClientSession } from "../session-VjtIxREd.js";
|
|
46
|
+
import { B as hasGoogleDefaultCredentials, D as removeGoogleFunctionDeclarations, E as removeDeprecatedGeminiGenerationParams, H as resolveProjectId, I as GoogleAuthManager, L as determineGoogleVertexMode, M as CHAT_MODELS, O as resolveGoogleToolConfig, P as getVertexApiHostForRegion, S as normalizeSafetySettings, T as parseConfigSystemInstruction, V as loadCredentials, _ as mergeGoogleCompletionOptions, a as createAuthCacheDiscriminator, b as normalizeGeminiAudio, c as getCandidate, d as getGoogleGuardrails, f as getGoogleResponseServiceTier, h as isNonCandidateStreamChunk, i as collectThoughtSignatures, m as getVertexServiceTierHeaders, n as calculateGoogleCostFromUsage, o as formatCandidateContents, p as getLastPromptSafetyRatings, r as collectGroundingMetadata, s as geminiFormatAndSystemInstructions, t as calculateGoogleCost, u as getGoogleApiBaseUrl, v as mergeGoogleRequestTools, w as parseConfigResponseSchema, x as normalizeGoogleServiceTier, y as mergeParts, z as getGoogleClient } from "../util-BHkj9joz.js";
|
|
47
|
+
import { i as transformMCPToolsToOpenAi } from "../transform-DIOIQDmM.js";
|
|
48
|
+
import { a as hashAnthropicCacheValue, i as getAnthropicEnvHeaderSuppressions, n as AnthropicGenericProvider, t as AnthropicMessagesProvider } from "../messages-CoHlziS5.js";
|
|
49
|
+
import { A as parseMessages, C as isForcedToolChoiceUnsupportedClaudeModel, E as looksLikeClaudeModelId, M as resolveClaudeSamplingParams, O as normalizeClaudeThinkingConfig, a as calculateAnthropicCost, c as claudeThinkingConsumesTokens, f as getTokenUsage$3, i as applyClaudeRegionalPremium, k as outputFromMessage, n as ANTHROPIC_SHORTHAND_MODEL_IDS, s as clampMaxTokensForThinkingBudget, w as isSamplingParamsDeprecatedClaudeModel, x as isClaudeThinkingEnabled } from "../util-CgT3uf4p.js";
|
|
50
|
+
import { r as loadProviderCallbackFromFileUrl, t as FunctionCallbackHandler } from "../functionCallbackUtils-BfXnPo0o.js";
|
|
51
|
+
import { t as GoogleGenericProvider } from "../base-oXVgvtVn.js";
|
|
52
|
+
import { c as preserveResponseHeadersObserverError, l as preserveResponseHeadersObserverErrorResponse, n as getOpenAiGatewayRateLimitKind, o as isResponseHeadersObserverError, r as getOpenAiRateLimitResponse, t as OpenAiChatCompletionProvider } from "../chat-ClTFM3qq.js";
|
|
53
53
|
import { n as getOpenRouterBillingMetadata, r as isOpenRouterEndpoint, t as calculateOpenRouterResponseCost } from "../openrouterBilling--wdhQt3U.js";
|
|
54
54
|
import { i as resolveOpenAiApiUrl, n as OpenAiGenericProvider, r as hasHeaderOverride, t as OPENAI_ORGANIZATION_HEADER } from "../openai-TU3iAci7.js";
|
|
55
55
|
import { n as ResponsesProcessor, r as getResponsesTokenUsage, t as normalizeResponsesInput } from "../input-C6OUkYP4.js";
|
|
56
56
|
import { a as storeMedia, i as retrieveMedia, n as isMediaStorageEnabled, r as mediaExists, t as getMediaStorage } from "../storage-D3ai5syz.js";
|
|
57
57
|
import { n as escapeRegExp, t as ellipsize } from "../text-Fd7EOhdv.js";
|
|
58
58
|
import { n as loadFromPackage, r as parsePackageProvider, t as isPackagePath } from "../packageParser-BTnPc8_v.js";
|
|
59
|
-
import { a as extractPromptFromTags, c as isBasicRefusal, d as recordFailedGenerationTokenUsage, f as recordGenerationTokenUsage, i as extractMaterializedVariablesFromJsonWithMetadata, l as isEmptyResponse, m as trackGenerationTokenUsage, n as extractGoalFromPrompt, o as getSessionId$1, p as trackAdditionalGenerationProvider, r as extractInputVarsFromPrompt, s as getShortPluginId, t as extractAllPromptsFromTags, u as removePrefix } from "../util-
|
|
59
|
+
import { a as extractPromptFromTags, c as isBasicRefusal, d as recordFailedGenerationTokenUsage, f as recordGenerationTokenUsage, i as extractMaterializedVariablesFromJsonWithMetadata, l as isEmptyResponse, m as trackGenerationTokenUsage, n as extractGoalFromPrompt, o as getSessionId$1, p as trackAdditionalGenerationProvider, r as extractInputVarsFromPrompt, s as getShortPluginId, t as extractAllPromptsFromTags, u as removePrefix } from "../util-Cxf8VF2M.js";
|
|
60
60
|
import { n as createPlaceholderInputValue, r as materializeInputVariablesWithMetadata, t as buildPromptInputDescriptions } from "../inputVariables-Rh8ZiqVx.js";
|
|
61
|
-
import { a as assertRemoteMaterializationHandled, l as requiresRemoteMaterialization, n as PromptfooHarmfulCompletionProvider, r as PromptfooSimulatedUserProvider } from "../promptfoo-
|
|
61
|
+
import { a as assertRemoteMaterializationHandled, l as requiresRemoteMaterialization, n as PromptfooHarmfulCompletionProvider, r as PromptfooSimulatedUserProvider } from "../promptfoo-BqV8ogVA.js";
|
|
62
62
|
import { a as getTransformLabel, c as isSafeMode, i as getTransformErrorMessage, n as TRANSFORM_KEYS, o as transform, r as TransformInputType, s as SafeModeError, t as INLINE_FUNCTION_LABEL } from "../transform-BClOmD-Z.js";
|
|
63
|
-
import { a as appendPluginMetricSuffix, i as appendMetricSuffix, n as checkExfilTracking, r as getWebPageTrackingIds, t as addIndirectWebPwnTestCases } from "../indirectWebPwn-
|
|
63
|
+
import { a as appendPluginMetricSuffix, i as appendMetricSuffix, n as checkExfilTracking, r as getWebPageTrackingIds, t as addIndirectWebPwnTestCases } from "../indirectWebPwn-Cz3SLiEq.js";
|
|
64
64
|
import { createRequire } from "node:module";
|
|
65
65
|
import fs from "node:fs";
|
|
66
66
|
import os from "node:os";
|
|
@@ -30066,7 +30066,7 @@ const providerMap = [
|
|
|
30066
30066
|
{
|
|
30067
30067
|
test: (providerPath) => providerPath.startsWith("opencode:") || providerPath === "opencode",
|
|
30068
30068
|
create: async (providerPath, providerOptions, context) => {
|
|
30069
|
-
const { OpenCodeSDKProvider } = await import("../opencode-sdk-
|
|
30069
|
+
const { OpenCodeSDKProvider } = await import("../opencode-sdk-bQp5Xf3W.js");
|
|
30070
30070
|
return new OpenCodeSDKProvider({
|
|
30071
30071
|
...providerOptions,
|
|
30072
30072
|
id: providerOptions.id ?? providerPath,
|
|
@@ -30078,7 +30078,7 @@ const providerMap = [
|
|
|
30078
30078
|
{
|
|
30079
30079
|
test: (providerPath) => providerPath === "openinterpreter" || providerPath.startsWith("openinterpreter:"),
|
|
30080
30080
|
create: async (providerPath, providerOptions, context) => {
|
|
30081
|
-
const { OpenInterpreterProvider } = await import("../openinterpreter-
|
|
30081
|
+
const { OpenInterpreterProvider } = await import("../openinterpreter-C3_Cg5b_.js");
|
|
30082
30082
|
const model = providerPath.split(":").slice(1).join(":");
|
|
30083
30083
|
return new OpenInterpreterProvider({
|
|
30084
30084
|
...providerOptions,
|
|
@@ -30094,14 +30094,14 @@ const providerMap = [
|
|
|
30094
30094
|
{
|
|
30095
30095
|
test: (providerPath) => providerPath.startsWith("openclaw:") || providerPath === "openclaw",
|
|
30096
30096
|
create: async (providerPath, providerOptions, context) => {
|
|
30097
|
-
const { createOpenClawProvider } = await import("../openclaw-
|
|
30097
|
+
const { createOpenClawProvider } = await import("../openclaw-DJlhPGCb.js");
|
|
30098
30098
|
return createOpenClawProvider(providerPath, providerOptions, context.env);
|
|
30099
30099
|
}
|
|
30100
30100
|
},
|
|
30101
30101
|
{
|
|
30102
30102
|
test: (providerPath) => providerPath.startsWith("anthropic:claude-agent-sdk") || providerPath.startsWith("anthropic:claude-code"),
|
|
30103
30103
|
create: async (_providerPath, providerOptions, _context) => {
|
|
30104
|
-
const { ClaudeCodeSDKProvider } = await import("../claude-agent-sdk-
|
|
30104
|
+
const { ClaudeCodeSDKProvider } = await import("../claude-agent-sdk-23bIVI75.js");
|
|
30105
30105
|
return new ClaudeCodeSDKProvider({ ...providerOptions });
|
|
30106
30106
|
}
|
|
30107
30107
|
},
|
|
@@ -30188,7 +30188,7 @@ const providerMap = [
|
|
|
30188
30188
|
{
|
|
30189
30189
|
test: (providerPath) => providerPath.startsWith("cloudflare-ai:"),
|
|
30190
30190
|
create: async (providerPath, providerOptions, context) => {
|
|
30191
|
-
const { createCloudflareAiProvider } = await import("../cloudflare-ai-
|
|
30191
|
+
const { createCloudflareAiProvider } = await import("../cloudflare-ai-HrD5WUK8.js");
|
|
30192
30192
|
return createCloudflareAiProvider(providerPath, {
|
|
30193
30193
|
...providerOptions,
|
|
30194
30194
|
env: context.env
|
|
@@ -30198,7 +30198,7 @@ const providerMap = [
|
|
|
30198
30198
|
{
|
|
30199
30199
|
test: (providerPath) => providerPath.startsWith("cloudflare-gateway:"),
|
|
30200
30200
|
create: async (providerPath, providerOptions, context) => {
|
|
30201
|
-
const { createCloudflareGatewayProvider } = await import("../cloudflare-gateway-
|
|
30201
|
+
const { createCloudflareGatewayProvider } = await import("../cloudflare-gateway-C81uKETQ.js");
|
|
30202
30202
|
return createCloudflareGatewayProvider(providerPath, {
|
|
30203
30203
|
...providerOptions,
|
|
30204
30204
|
env: context.env
|
|
@@ -30304,7 +30304,7 @@ const providerMap = [
|
|
|
30304
30304
|
{
|
|
30305
30305
|
test: (providerPath) => providerPath.startsWith("fireworks:"),
|
|
30306
30306
|
create: async (providerPath, providerOptions, context) => {
|
|
30307
|
-
const { createFireworksProvider } = await import("../chat-
|
|
30307
|
+
const { createFireworksProvider } = await import("../chat-Cnq0Is68.js");
|
|
30308
30308
|
return createFireworksProvider(providerPath, {
|
|
30309
30309
|
config: providerOptions,
|
|
30310
30310
|
env: mergeProviderEnv(providerPath, context.env, providerOptions.env)
|
|
@@ -30341,20 +30341,20 @@ const providerMap = [
|
|
|
30341
30341
|
create: async (providerPath, providerOptions, context) => {
|
|
30342
30342
|
const modelType = providerPath.split(":")[1];
|
|
30343
30343
|
if (modelType === "image") {
|
|
30344
|
-
const { createHyperbolicImageProvider } = await import("../image-
|
|
30344
|
+
const { createHyperbolicImageProvider } = await import("../image-DCMNvBiV.js");
|
|
30345
30345
|
return createHyperbolicImageProvider(providerPath, {
|
|
30346
30346
|
...providerOptions,
|
|
30347
30347
|
env: context.env
|
|
30348
30348
|
});
|
|
30349
30349
|
}
|
|
30350
30350
|
if (modelType === "audio") {
|
|
30351
|
-
const { createHyperbolicAudioProvider } = await import("../audio-
|
|
30351
|
+
const { createHyperbolicAudioProvider } = await import("../audio-C2sibT7Q.js");
|
|
30352
30352
|
return createHyperbolicAudioProvider(providerPath, {
|
|
30353
30353
|
...providerOptions,
|
|
30354
30354
|
env: context.env
|
|
30355
30355
|
});
|
|
30356
30356
|
}
|
|
30357
|
-
const { createHyperbolicProvider } = await import("../chat-
|
|
30357
|
+
const { createHyperbolicProvider } = await import("../chat-B4ihd3fw.js");
|
|
30358
30358
|
return createHyperbolicProvider(providerPath, providerOptions);
|
|
30359
30359
|
}
|
|
30360
30360
|
},
|
|
@@ -30405,7 +30405,7 @@ const providerMap = [
|
|
|
30405
30405
|
{
|
|
30406
30406
|
test: (providerPath) => providerPath.startsWith("nvidia:"),
|
|
30407
30407
|
create: async (providerPath, providerOptions, context) => {
|
|
30408
|
-
const { createNvidiaProvider } = await import("../chat-
|
|
30408
|
+
const { createNvidiaProvider } = await import("../chat-D7_8yFIx.js");
|
|
30409
30409
|
return createNvidiaProvider(providerPath, {
|
|
30410
30410
|
config: providerOptions,
|
|
30411
30411
|
env: context.env
|
|
@@ -30426,7 +30426,7 @@ const providerMap = [
|
|
|
30426
30426
|
{
|
|
30427
30427
|
test: (providerPath) => providerPath === "openai:codex-security" || providerPath.startsWith("openai:codex-security:"),
|
|
30428
30428
|
create: async (providerPath, providerOptions, context) => {
|
|
30429
|
-
const { OpenAICodexSecurityProvider } = await import("../codex-security-
|
|
30429
|
+
const { OpenAICodexSecurityProvider } = await import("../codex-security-BhYs-3iY.js");
|
|
30430
30430
|
const codexModel = providerPath.split(":").slice(2).join(":") || getConfiguredOpenAiModel(providerOptions);
|
|
30431
30431
|
return new OpenAICodexSecurityProvider({
|
|
30432
30432
|
...providerOptions,
|
|
@@ -30460,7 +30460,7 @@ const providerMap = [
|
|
|
30460
30460
|
"codex"
|
|
30461
30461
|
].includes(modelType) && codexModelProvider === "openai" && typeof codexBaseUrl === "string" && codexBaseUrl.length > 0 && isOpenAiFirstPartyApiUrl(codexBaseUrl)) assertOpenAiModelEndpointCompatibility(modelName || configuredModel);
|
|
30462
30462
|
if (modelType === "agents-api") {
|
|
30463
|
-
const { OpenAiAgentsApiProvider } = await import("../agents-api-
|
|
30463
|
+
const { OpenAiAgentsApiProvider } = await import("../agents-api-CsSsC21b.js");
|
|
30464
30464
|
return new OpenAiAgentsApiProvider(modelName, {
|
|
30465
30465
|
...providerOptions,
|
|
30466
30466
|
env: mergeProviderEnv(providerPath, context.env, providerOptions.env)
|
|
@@ -30468,7 +30468,7 @@ const providerMap = [
|
|
|
30468
30468
|
}
|
|
30469
30469
|
if (modelType === "codex-app-server" || modelType === "codex-desktop") {
|
|
30470
30470
|
const codexModel = modelName || configuredModel;
|
|
30471
|
-
const { OpenAICodexAppServerProvider } = await import("../codex-app-server-
|
|
30471
|
+
const { OpenAICodexAppServerProvider } = await import("../codex-app-server-BFIrSgdy.js");
|
|
30472
30472
|
const codexProviderId = providerOptions.id ?? providerPath;
|
|
30473
30473
|
return new OpenAICodexAppServerProvider({
|
|
30474
30474
|
...providerOptions,
|
|
@@ -30482,7 +30482,7 @@ const providerMap = [
|
|
|
30482
30482
|
}
|
|
30483
30483
|
if (modelType === "codex-sdk" || modelType === "codex") {
|
|
30484
30484
|
const codexModel = modelName || configuredModel;
|
|
30485
|
-
const { OpenAICodexSDKProvider } = await import("../codex-sdk-
|
|
30485
|
+
const { OpenAICodexSDKProvider } = await import("../codex-sdk-DT3aQezK.js").then((n) => n.r);
|
|
30486
30486
|
const codexProviderId = providerOptions.id ?? providerPath;
|
|
30487
30487
|
return new OpenAICodexSDKProvider({
|
|
30488
30488
|
...providerOptions,
|
|
@@ -30512,14 +30512,14 @@ const providerMap = [
|
|
|
30512
30512
|
if (modelType === "realtime") return new OpenAiRealtimeProvider(modelName || configuredModel || "gpt-realtime-2.1", providerOptions);
|
|
30513
30513
|
if (modelType === "responses") return new OpenAiResponsesProvider(modelName || configuredModel || "gpt-6-sol", providerOptions);
|
|
30514
30514
|
if (modelType === "decisions") {
|
|
30515
|
-
const { OpenAiDecisionsProvider } = await import("../decisions-
|
|
30515
|
+
const { OpenAiDecisionsProvider } = await import("../decisions-D5X93awq.js");
|
|
30516
30516
|
return new OpenAiDecisionsProvider(modelName || configuredModel || "", {
|
|
30517
30517
|
...providerOptions,
|
|
30518
30518
|
env: providerEnv
|
|
30519
30519
|
});
|
|
30520
30520
|
}
|
|
30521
30521
|
if (modelType === "transcription") {
|
|
30522
|
-
const { OpenAiTranscriptionProvider } = await import("../transcription-
|
|
30522
|
+
const { OpenAiTranscriptionProvider } = await import("../transcription-fZenF3G5.js");
|
|
30523
30523
|
return new OpenAiTranscriptionProvider(modelName || configuredModel || "gpt-4o-transcribe-diarize", providerOptions);
|
|
30524
30524
|
}
|
|
30525
30525
|
if (modelType === "tts" || modelType === "speech") return new OpenAiTtsProvider(modelName || configuredModel || "gpt-4o-mini-tts", providerOptions);
|
|
@@ -30532,7 +30532,7 @@ const providerMap = [
|
|
|
30532
30532
|
if (OpenAiCompletionProvider.OPENAI_COMPLETION_MODEL_NAMES.includes(modelType)) return new OpenAiCompletionProvider(modelType, providerOptions);
|
|
30533
30533
|
if (OpenAiTtsProvider.OPENAI_TTS_MODEL_NAMES.includes(modelType)) return new OpenAiTtsProvider(modelType, providerOptions);
|
|
30534
30534
|
if (modelType === "gpt-transcribe") {
|
|
30535
|
-
const { OpenAiTranscriptionProvider } = await import("../transcription-
|
|
30535
|
+
const { OpenAiTranscriptionProvider } = await import("../transcription-fZenF3G5.js");
|
|
30536
30536
|
return new OpenAiTranscriptionProvider(modelType, providerOptions);
|
|
30537
30537
|
}
|
|
30538
30538
|
if (OpenAiRealtimeProvider.OPENAI_REALTIME_MODEL_NAMES.includes(modelType)) return new OpenAiRealtimeProvider(modelType, providerOptions);
|
|
@@ -30545,7 +30545,7 @@ const providerMap = [
|
|
|
30545
30545
|
case "moderation": return new OpenAiModerationProvider(modelType, providerOptions);
|
|
30546
30546
|
}
|
|
30547
30547
|
if (modelType === "agents") {
|
|
30548
|
-
const { OpenAiAgentsProvider } = await loadOpenAiAgentsModule(() => import("../agents-
|
|
30548
|
+
const { OpenAiAgentsProvider } = await loadOpenAiAgentsModule(() => import("../agents-C5wj_UTv.js"));
|
|
30549
30549
|
return new OpenAiAgentsProvider(modelName || "default-agent", providerOptions);
|
|
30550
30550
|
}
|
|
30551
30551
|
if (modelType === "assistant") return new OpenAiAssistantProvider(modelName, providerOptions);
|
|
@@ -30573,7 +30573,7 @@ const providerMap = [
|
|
|
30573
30573
|
{
|
|
30574
30574
|
test: (providerPath) => providerPath.startsWith("quiverai:"),
|
|
30575
30575
|
create: async (providerPath, providerOptions, context) => {
|
|
30576
|
-
const { createQuiverAiProvider } = await import("../quiverai-
|
|
30576
|
+
const { createQuiverAiProvider } = await import("../quiverai-1E_IvLHn.js");
|
|
30577
30577
|
return createQuiverAiProvider(providerPath, providerOptions, context.env);
|
|
30578
30578
|
}
|
|
30579
30579
|
},
|
|
@@ -30591,7 +30591,7 @@ const providerMap = [
|
|
|
30591
30591
|
{
|
|
30592
30592
|
test: (providerPath) => providerPath.startsWith("modelslab:"),
|
|
30593
30593
|
create: async (providerPath, providerOptions, context) => {
|
|
30594
|
-
const { ModelsLabImageProvider } = await import("../modelslab-
|
|
30594
|
+
const { ModelsLabImageProvider } = await import("../modelslab-ChVsUiaJ.js");
|
|
30595
30595
|
const splits = providerPath.split(":");
|
|
30596
30596
|
const modelType = splits[1];
|
|
30597
30597
|
const modelName = splits.slice(2).join(":");
|
|
@@ -30609,7 +30609,7 @@ const providerMap = [
|
|
|
30609
30609
|
{
|
|
30610
30610
|
test: (providerPath) => providerPath.startsWith("typesafe:"),
|
|
30611
30611
|
create: async (providerPath, providerOptions, context) => {
|
|
30612
|
-
const { TypeSafeProvider } = await import("../typesafe-
|
|
30612
|
+
const { TypeSafeProvider } = await import("../typesafe-CFqGFY34.js");
|
|
30613
30613
|
const modelName = modelNameFromProviderPath(providerPath, 1);
|
|
30614
30614
|
if (!modelName) throw new Error(`Invalid typesafe provider path: ${providerPath}. Model name is required. Use: typesafe:jev-latest`);
|
|
30615
30615
|
return new TypeSafeProvider(modelName, {
|
|
@@ -30622,7 +30622,7 @@ const providerMap = [
|
|
|
30622
30622
|
{
|
|
30623
30623
|
test: (providerPath) => providerPath.startsWith("aimlapi:"),
|
|
30624
30624
|
create: async (providerPath, providerOptions, context) => {
|
|
30625
|
-
const { createAimlApiProvider } = await import("../aimlapi-
|
|
30625
|
+
const { createAimlApiProvider } = await import("../aimlapi-DXFcEdP8.js");
|
|
30626
30626
|
return createAimlApiProvider(providerPath, {
|
|
30627
30627
|
...providerOptions,
|
|
30628
30628
|
env: context.env
|
|
@@ -30632,14 +30632,14 @@ const providerMap = [
|
|
|
30632
30632
|
{
|
|
30633
30633
|
test: (providerPath) => providerPath.startsWith("cometapi:"),
|
|
30634
30634
|
create: async (providerPath, providerOptions) => {
|
|
30635
|
-
const { createCometApiProvider } = await import("../cometapi-
|
|
30635
|
+
const { createCometApiProvider } = await import("../cometapi-MgTbZA_H.js");
|
|
30636
30636
|
return createCometApiProvider(providerPath, providerOptions);
|
|
30637
30637
|
}
|
|
30638
30638
|
},
|
|
30639
30639
|
{
|
|
30640
30640
|
test: (providerPath) => providerPath.startsWith("docker:"),
|
|
30641
30641
|
create: async (providerPath, providerOptions, context) => {
|
|
30642
|
-
const { createDockerProvider } = await import("../docker-
|
|
30642
|
+
const { createDockerProvider } = await import("../docker-skFN-Kfo.js");
|
|
30643
30643
|
return createDockerProvider(providerPath, {
|
|
30644
30644
|
...providerOptions,
|
|
30645
30645
|
env: context.env
|
|
@@ -30879,7 +30879,7 @@ const providerFamilies = [
|
|
|
30879
30879
|
{
|
|
30880
30880
|
canHandle: (value) => /^(cerebras|envoy|litellm|novita|nscale|togetherai):/.test(value),
|
|
30881
30881
|
factories: async () => {
|
|
30882
|
-
const { getCompatibleProviderFactories } = await import("../compatible-
|
|
30882
|
+
const { getCompatibleProviderFactories } = await import("../compatible-COj8ZCy9.js");
|
|
30883
30883
|
return getCompatibleProviderFactories((path, providerOptions, context) => mergeProviderEnv({
|
|
30884
30884
|
id: path,
|
|
30885
30885
|
config: providerOptions.config
|
|
@@ -30889,21 +30889,21 @@ const providerFamilies = [
|
|
|
30889
30889
|
{
|
|
30890
30890
|
canHandle: isAwsProviderPath,
|
|
30891
30891
|
factories: async () => {
|
|
30892
|
-
const { awsProviderFactories } = await import("../aws-
|
|
30892
|
+
const { awsProviderFactories } = await import("../aws-D0FY3qkc.js");
|
|
30893
30893
|
return awsProviderFactories;
|
|
30894
30894
|
}
|
|
30895
30895
|
},
|
|
30896
30896
|
{
|
|
30897
30897
|
canHandle: isGoogleProviderPath,
|
|
30898
30898
|
factories: async () => {
|
|
30899
|
-
const { googleProviderFactories } = await import("../google-
|
|
30899
|
+
const { googleProviderFactories } = await import("../google-B6eaPAbE.js");
|
|
30900
30900
|
return googleProviderFactories;
|
|
30901
30901
|
}
|
|
30902
30902
|
},
|
|
30903
30903
|
{
|
|
30904
30904
|
canHandle: isRedteamProviderPath,
|
|
30905
30905
|
factories: async () => {
|
|
30906
|
-
const { redteamProviderFactories } = await import("../registry-
|
|
30906
|
+
const { redteamProviderFactories } = await import("../registry-3zX_M9Ik.js");
|
|
30907
30907
|
return redteamProviderFactories;
|
|
30908
30908
|
}
|
|
30909
30909
|
}
|
|
@@ -73281,10 +73281,10 @@ router.get("/", async (_req, res) => {
|
|
|
73281
73281
|
};
|
|
73282
73282
|
} catch (error) {
|
|
73283
73283
|
logger.debug(`Failed to fetch latest version: ${error}`);
|
|
73284
|
-
latestVersion = versionCache.latestVersion ?? "0.125.
|
|
73284
|
+
latestVersion = versionCache.latestVersion ?? "0.125.1";
|
|
73285
73285
|
}
|
|
73286
73286
|
}
|
|
73287
|
-
const resolvedLatestVersion = latestVersion ?? "0.125.
|
|
73287
|
+
const resolvedLatestVersion = latestVersion ?? "0.125.1";
|
|
73288
73288
|
const response = {
|
|
73289
73289
|
...buildBaseVersionFields(),
|
|
73290
73290
|
latestVersion: resolvedLatestVersion,
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { n as __exportAll } from "./processShim-CAJN2mjb.js";
|
|
2
|
+
import { o as logger } from "./logger-Gff7RMNF.js";
|
|
3
|
+
import { G as getDefaultPort, t as fetchWithProxy } from "./fetch-B5KxZuKu.js";
|
|
4
|
+
import { s as getRemoteVersionUrl } from "./remoteGeneration-DtnqocnL.js";
|
|
5
|
+
import "chalk";
|
|
6
|
+
import { promisify } from "node:util";
|
|
7
|
+
import opener from "opener";
|
|
8
|
+
import readline from "readline";
|
|
9
|
+
//#region src/util/readline.ts
|
|
10
|
+
/**
|
|
11
|
+
* Factory function for creating readline interface.
|
|
12
|
+
* This abstraction makes it easier to mock in tests and prevents open handles.
|
|
13
|
+
*/
|
|
14
|
+
function createReadlineInterface() {
|
|
15
|
+
return readline.createInterface({
|
|
16
|
+
input: process.stdin,
|
|
17
|
+
output: process.stdout
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Prompts the user with a question and returns their answer.
|
|
22
|
+
* Automatically handles cleanup of the readline interface.
|
|
23
|
+
*/
|
|
24
|
+
async function promptUser(question) {
|
|
25
|
+
return new Promise((resolve, reject) => {
|
|
26
|
+
let rl = null;
|
|
27
|
+
try {
|
|
28
|
+
rl = createReadlineInterface();
|
|
29
|
+
rl.on("error", (err) => {
|
|
30
|
+
rl.close();
|
|
31
|
+
reject(err);
|
|
32
|
+
});
|
|
33
|
+
rl.question(question, (answer) => {
|
|
34
|
+
rl.close();
|
|
35
|
+
resolve(answer);
|
|
36
|
+
});
|
|
37
|
+
} catch (err) {
|
|
38
|
+
if (rl) rl.close();
|
|
39
|
+
reject(err);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Prompts the user with a yes/no question and returns a boolean.
|
|
45
|
+
* @param question The question to ask
|
|
46
|
+
* @param defaultYes If true, empty response defaults to yes. If false, defaults to no.
|
|
47
|
+
*/
|
|
48
|
+
async function promptYesNo(question, defaultYes = false) {
|
|
49
|
+
const answer = await promptUser(`${question} ${defaultYes ? "(Y/n): " : "(y/N): "}`);
|
|
50
|
+
if (defaultYes) return !answer.trim().toLowerCase().startsWith("n");
|
|
51
|
+
return answer.trim().toLowerCase().startsWith("y");
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/util/server.ts
|
|
55
|
+
var server_exports = /* @__PURE__ */ __exportAll({
|
|
56
|
+
BrowserBehavior: () => BrowserBehavior,
|
|
57
|
+
BrowserBehaviorNames: () => BrowserBehaviorNames,
|
|
58
|
+
checkServerFeatureSupport: () => checkServerFeatureSupport,
|
|
59
|
+
checkServerRunning: () => checkServerRunning,
|
|
60
|
+
openBrowser: () => openBrowser
|
|
61
|
+
});
|
|
62
|
+
const openBrowserProcess = promisify((url, callback) => opener(url, {}, callback));
|
|
63
|
+
async function launchBrowser(url, onError) {
|
|
64
|
+
let timeout;
|
|
65
|
+
try {
|
|
66
|
+
await Promise.race([openBrowserProcess(url).catch(onError), new Promise((resolve) => {
|
|
67
|
+
timeout = setTimeout(resolve, 1e3);
|
|
68
|
+
})]);
|
|
69
|
+
} finally {
|
|
70
|
+
clearTimeout(timeout);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const BrowserBehavior = {
|
|
74
|
+
ASK: 0,
|
|
75
|
+
OPEN: 1,
|
|
76
|
+
SKIP: 2,
|
|
77
|
+
OPEN_TO_REPORT: 3,
|
|
78
|
+
OPEN_TO_REDTEAM_CREATE: 4,
|
|
79
|
+
OPEN_TO_EVAL_SETUP: 5
|
|
80
|
+
};
|
|
81
|
+
const BrowserBehaviorNames = {
|
|
82
|
+
[BrowserBehavior.ASK]: "ASK",
|
|
83
|
+
[BrowserBehavior.OPEN]: "OPEN",
|
|
84
|
+
[BrowserBehavior.SKIP]: "SKIP",
|
|
85
|
+
[BrowserBehavior.OPEN_TO_REPORT]: "OPEN_TO_REPORT",
|
|
86
|
+
[BrowserBehavior.OPEN_TO_REDTEAM_CREATE]: "OPEN_TO_REDTEAM_CREATE",
|
|
87
|
+
[BrowserBehavior.OPEN_TO_EVAL_SETUP]: "OPEN_TO_EVAL_SETUP"
|
|
88
|
+
};
|
|
89
|
+
const featureCache = /* @__PURE__ */ new Map();
|
|
90
|
+
/**
|
|
91
|
+
* Checks if a server supports a specific feature based on build date
|
|
92
|
+
* @param featureName - Name of the feature (for caching and logging)
|
|
93
|
+
* @param requiredBuildDate - Minimum build date when feature was added (ISO string)
|
|
94
|
+
* @returns Promise<boolean> - true if server supports the feature
|
|
95
|
+
*/
|
|
96
|
+
async function checkServerFeatureSupport(featureName, requiredBuildDate) {
|
|
97
|
+
const cacheKey = `${featureName}`;
|
|
98
|
+
if (featureCache.has(cacheKey)) return featureCache.get(cacheKey);
|
|
99
|
+
let supported = false;
|
|
100
|
+
try {
|
|
101
|
+
logger.debug(`[Feature Detection] Checking server support for feature: ${featureName}`);
|
|
102
|
+
const versionUrl = getRemoteVersionUrl();
|
|
103
|
+
if (versionUrl) {
|
|
104
|
+
const data = await (await fetchWithProxy(versionUrl, {
|
|
105
|
+
method: "GET",
|
|
106
|
+
headers: { "Content-Type": "application/json" }
|
|
107
|
+
})).json();
|
|
108
|
+
if (data.buildDate) {
|
|
109
|
+
supported = new Date(data.buildDate) >= new Date(requiredBuildDate);
|
|
110
|
+
logger.debug(`[Feature Detection] ${featureName}: buildDate=${data.buildDate}, required=${requiredBuildDate}, supported=${supported}`);
|
|
111
|
+
} else {
|
|
112
|
+
logger.debug(`[Feature Detection] ${featureName}: no version info, assuming not supported`);
|
|
113
|
+
supported = false;
|
|
114
|
+
}
|
|
115
|
+
} else {
|
|
116
|
+
logger.debug(`[Feature Detection] No remote URL available for ${featureName}, assuming local server supports it`);
|
|
117
|
+
supported = true;
|
|
118
|
+
}
|
|
119
|
+
} catch (error) {
|
|
120
|
+
logger.debug(`[Feature Detection] Version check failed for ${featureName}, assuming not supported: ${error}`);
|
|
121
|
+
supported = false;
|
|
122
|
+
}
|
|
123
|
+
featureCache.set(cacheKey, supported);
|
|
124
|
+
return supported;
|
|
125
|
+
}
|
|
126
|
+
async function checkServerRunning(port = getDefaultPort()) {
|
|
127
|
+
logger.debug(`Checking for existing server on port ${port}...`);
|
|
128
|
+
try {
|
|
129
|
+
const data = await (await fetchWithProxy(`http://localhost:${port}/health`, { headers: { "x-promptfoo-silent": "true" } })).json();
|
|
130
|
+
return data.status === "OK" && data.version === "0.125.1";
|
|
131
|
+
} catch (err) {
|
|
132
|
+
logger.debug(`No existing server found - this is expected on first startup. ${String(err)}`);
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async function openBrowser(browserBehavior, port = getDefaultPort()) {
|
|
137
|
+
const baseUrl = `http://localhost:${port}`;
|
|
138
|
+
let url = baseUrl;
|
|
139
|
+
if (browserBehavior === BrowserBehavior.OPEN_TO_REPORT) url = `${baseUrl}/report`;
|
|
140
|
+
else if (browserBehavior === BrowserBehavior.OPEN_TO_REDTEAM_CREATE) url = `${baseUrl}/redteam/setup`;
|
|
141
|
+
else if (browserBehavior === BrowserBehavior.OPEN_TO_EVAL_SETUP) url = `${baseUrl}/setup`;
|
|
142
|
+
const doOpen = async () => {
|
|
143
|
+
logger.info("Press Ctrl+C to stop the server");
|
|
144
|
+
await launchBrowser(url, (err) => {
|
|
145
|
+
logger.error(`Failed to open browser: ${String(err)}`);
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
if (browserBehavior === BrowserBehavior.ASK) {
|
|
149
|
+
if (await promptYesNo("Open URL in browser?", false)) await doOpen();
|
|
150
|
+
} else if (browserBehavior !== BrowserBehavior.SKIP) await doOpen();
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
export { openBrowser as a, checkServerRunning as i, BrowserBehaviorNames as n, server_exports as o, checkServerFeatureSupport as r, promptYesNo as s, BrowserBehavior as t };
|
|
154
|
+
|
|
155
|
+
//# sourceMappingURL=server-Bmh7sd9F.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.js";
|
|
2
|
+
import { o as logger } from "./logger-CNHLbG5Y.js";
|
|
3
|
+
import { t as fetchWithProxy } from "./fetch-BG_Jl7ty.js";
|
|
4
|
+
import { s as getRemoteVersionUrl } from "./remoteGeneration-CAtvamG6.js";
|
|
5
|
+
import "chalk";
|
|
6
|
+
import { promisify } from "node:util";
|
|
7
|
+
import opener from "opener";
|
|
8
|
+
//#region src/util/server.ts
|
|
9
|
+
var server_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
+
BrowserBehavior: () => BrowserBehavior,
|
|
11
|
+
checkServerFeatureSupport: () => checkServerFeatureSupport
|
|
12
|
+
});
|
|
13
|
+
promisify((url, callback) => opener(url, {}, callback));
|
|
14
|
+
const BrowserBehavior = {
|
|
15
|
+
ASK: 0,
|
|
16
|
+
OPEN: 1,
|
|
17
|
+
SKIP: 2,
|
|
18
|
+
OPEN_TO_REPORT: 3,
|
|
19
|
+
OPEN_TO_REDTEAM_CREATE: 4,
|
|
20
|
+
OPEN_TO_EVAL_SETUP: 5
|
|
21
|
+
};
|
|
22
|
+
BrowserBehavior.ASK, BrowserBehavior.OPEN, BrowserBehavior.SKIP, BrowserBehavior.OPEN_TO_REPORT, BrowserBehavior.OPEN_TO_REDTEAM_CREATE, BrowserBehavior.OPEN_TO_EVAL_SETUP;
|
|
23
|
+
const featureCache = /* @__PURE__ */ new Map();
|
|
24
|
+
/**
|
|
25
|
+
* Checks if a server supports a specific feature based on build date
|
|
26
|
+
* @param featureName - Name of the feature (for caching and logging)
|
|
27
|
+
* @param requiredBuildDate - Minimum build date when feature was added (ISO string)
|
|
28
|
+
* @returns Promise<boolean> - true if server supports the feature
|
|
29
|
+
*/
|
|
30
|
+
async function checkServerFeatureSupport(featureName, requiredBuildDate) {
|
|
31
|
+
const cacheKey = `${featureName}`;
|
|
32
|
+
if (featureCache.has(cacheKey)) return featureCache.get(cacheKey);
|
|
33
|
+
let supported = false;
|
|
34
|
+
try {
|
|
35
|
+
logger.debug(`[Feature Detection] Checking server support for feature: ${featureName}`);
|
|
36
|
+
const versionUrl = getRemoteVersionUrl();
|
|
37
|
+
if (versionUrl) {
|
|
38
|
+
const data = await (await fetchWithProxy(versionUrl, {
|
|
39
|
+
method: "GET",
|
|
40
|
+
headers: { "Content-Type": "application/json" }
|
|
41
|
+
})).json();
|
|
42
|
+
if (data.buildDate) {
|
|
43
|
+
supported = new Date(data.buildDate) >= new Date(requiredBuildDate);
|
|
44
|
+
logger.debug(`[Feature Detection] ${featureName}: buildDate=${data.buildDate}, required=${requiredBuildDate}, supported=${supported}`);
|
|
45
|
+
} else {
|
|
46
|
+
logger.debug(`[Feature Detection] ${featureName}: no version info, assuming not supported`);
|
|
47
|
+
supported = false;
|
|
48
|
+
}
|
|
49
|
+
} else {
|
|
50
|
+
logger.debug(`[Feature Detection] No remote URL available for ${featureName}, assuming local server supports it`);
|
|
51
|
+
supported = true;
|
|
52
|
+
}
|
|
53
|
+
} catch (error) {
|
|
54
|
+
logger.debug(`[Feature Detection] Version check failed for ${featureName}, assuming not supported: ${error}`);
|
|
55
|
+
supported = false;
|
|
56
|
+
}
|
|
57
|
+
featureCache.set(cacheKey, supported);
|
|
58
|
+
return supported;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { server_exports as n, checkServerFeatureSupport as t };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=server-C7b8z6aC.js.map
|