promptfoo 0.121.3 → 0.121.5
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 +1 -1
- package/dist/src/{ListApp-Du7YVwj5.js → ListApp-BRUsT43Y.js} +1 -1
- package/dist/src/{accounts-BPyfpSeU.cjs → accounts-BIFntVWB.cjs} +5 -5
- package/dist/src/{accounts-CFLK3mnD.js → accounts-CLJHCDDb.js} +6 -6
- package/dist/src/{accounts-B2XmGjty.js → accounts-CaLNYnf7.js} +5 -5
- package/dist/src/{accounts-Xatc0RYb.js → accounts-bnyHT7Ju.js} +5 -5
- package/dist/src/{agentic-utils-36epdqwB.js → agentic-utils-B5krlibj.js} +3 -3
- package/dist/src/{agentic-utils-DIYAAYE7.js → agentic-utils-Ba67xmgs.js} +3 -3
- package/dist/src/{agentic-utils-D8yXo5Lm.js → agentic-utils-BclbiXiq.js} +4 -4
- package/dist/src/{agentic-utils-DAVsChuB.cjs → agentic-utils-D2x0wGhB.cjs} +3 -3
- package/dist/src/{agents-CLQ-P15P.js → agents-BGqaTDnr.js} +5 -7
- package/dist/src/{agents-wg3ohknq.js → agents-BV9yFpXX.js} +6 -7
- package/dist/src/{agents-CgBniSlI.js → agents-BYdMl1UE.js} +5 -9
- package/dist/src/{agents-Bqgfdokm.js → agents-DhxWMCtH.js} +35 -14
- package/dist/src/{agents-BBWxKSM0.cjs → agents-DiWmQYH9.cjs} +5 -7
- package/dist/src/{agents-CAYbM7qD.cjs → agents-WULPVjbH.cjs} +34 -12
- package/dist/src/{agents-DSSTV4bv.js → agents-emVcx3yh.js} +35 -13
- package/dist/src/{agents-BBVJCIYr.js → agents-n6vPqV3i.js} +35 -13
- package/dist/src/{aimlapi-BwGC1TtS.js → aimlapi-BxqK9HF_.js} +8 -14
- package/dist/src/{aimlapi-Bv8Fmc-b.cjs → aimlapi-BzLjZI_m.cjs} +8 -15
- package/dist/src/{aimlapi-MgSLdvy7.js → aimlapi-DR4pgeiC.js} +7 -14
- package/dist/src/{aimlapi-DaC3qZ-o.js → aimlapi-uPGp0Zdo.js} +7 -16
- package/dist/src/app/app/tsconfig.app.tsbuildinfo +1 -0
- package/dist/src/app/assets/Report-vjzrbgce.js +1 -0
- package/dist/src/app/assets/index-B3NQ8HTd.js +385 -0
- package/dist/src/app/assets/index-Cli2yAXv.css +1 -0
- package/dist/src/app/assets/rolldown-runtime-COnpUsM8.js +1 -0
- package/dist/src/app/assets/scroll-timeline-D9IT_e8Z.js +1 -0
- package/dist/src/app/assets/sync-IjzpWrOE.js +4 -0
- package/dist/src/app/assets/vendor-charts-BNdH8TCw.js +36 -0
- package/dist/src/app/assets/vendor-markdown-Ch00wnNI.js +29 -0
- package/dist/src/app/assets/vendor-react-CVvmk1UB.js +9 -0
- package/dist/src/app/assets/vendor-utils-BnEYbx2Q.js +37 -0
- package/dist/src/app/index.html +32 -7
- package/dist/src/{audio-Bn44pQxv.js → audio-BvpTOArF.js} +4 -4
- package/dist/src/{audio-DVFjQ67_.cjs → audio-C0vDeS0j.cjs} +4 -4
- package/dist/src/{audio-DjU9GswO.js → audio-CScmnmEB.js} +4 -5
- package/dist/src/{audio-DDA5WHdx.js → audio-Da8U9IS5.js} +4 -4
- package/dist/src/{base-CKjwebIH.js → base-BOMaNEes.js} +3 -3
- package/dist/src/{base-CqzQ4K8j.js → base-BTux96b1.js} +3 -3
- package/dist/src/{base-BboXIF_0.cjs → base-Tw6uhH8K.cjs} +3 -3
- package/dist/src/{base-Cz2ZC_iA.js → base-dYsl2hmL.js} +3 -3
- package/dist/src/{blobs-C6j0bvFz.cjs → blobs-B95F_7vE.cjs} +3 -3
- package/dist/src/{blobs-DXTl6J3H.js → blobs-BW4U31ue.js} +3 -3
- package/dist/src/{blobs-BUWmKWzo.js → blobs-D_gg8nbm.js} +4 -4
- package/dist/src/{blobs-B1JriOyi.js → blobs-DjLby-uP.js} +4 -4
- package/dist/src/cache-BI5BY7ey.js +280 -0
- package/dist/src/cache-BRkhlH3k.cjs +3 -0
- package/dist/src/cache-BlC6aeJ0.js +3 -0
- package/dist/src/cache-Bzttsk0X.js +310 -0
- package/dist/src/cache-Cr-qWIbP.js +310 -0
- package/dist/src/cache-DGg-yTZG.cjs +376 -0
- package/dist/src/{chat-BEwdgGEg.js → chat-BLOdH60v.js} +63 -37
- package/dist/src/{chat-B0iaWhoh.js → chat-Cx_LkwvZ.js} +63 -37
- package/dist/src/{chat-DK1U-eZ-.js → chat-D9nudO9b.js} +5 -14
- package/dist/src/{chat-pxmiVpWe.js → chat-DChSH_Es.js} +63 -37
- package/dist/src/{chat-B-52XYI1.js → chat-DG2LkwLq.js} +3 -13
- package/dist/src/{chat-BtIKkLKx.cjs → chat-DH97tVV9.cjs} +3 -13
- package/dist/src/{chat-BE0qTA8e.js → chat-aMQZw6R7.js} +4 -16
- package/dist/src/{chat-CM8qWR3_.cjs → chat-vYqqv1gP.cjs} +64 -38
- package/dist/src/{chatkit-_8eJqKcD.js → chatkit-B8X34dQc.js} +4 -4
- package/dist/src/{chatkit-BYGQlHlV.js → chatkit-BXu42Qwt.js} +4 -4
- package/dist/src/{chatkit-a2D6mY6s.js → chatkit-CbMRoeYw.js} +4 -4
- package/dist/src/{chatkit-Cx174XI3.cjs → chatkit-D44VyUyB.cjs} +4 -4
- package/dist/src/{claude-agent-sdk-8ddRp1L2.cjs → claude-agent-sdk-BRq0bbIK.cjs} +23 -18
- package/dist/src/{claude-agent-sdk-CMjh4LFH.js → claude-agent-sdk-BjriSVRZ.js} +20 -15
- package/dist/src/{claude-agent-sdk-HgbFioFw.js → claude-agent-sdk-BzNZeZ0N.js} +20 -15
- package/dist/src/{claude-agent-sdk-Bq5EArsX.js → claude-agent-sdk-DYv_AJ8u.js} +21 -17
- package/dist/src/cloud-CoD5OacT.js +3 -0
- package/dist/src/{cloud-z8KZpUoa.js → cloud-Da0bofJd.js} +25 -13
- package/dist/src/{cloudflare-ai-Bbp26N0L.js → cloudflare-ai-CXC4b1EU.js} +5 -14
- package/dist/src/{cloudflare-ai-BGyXlpXJ.js → cloudflare-ai-CyBoIs1Q.js} +7 -15
- package/dist/src/{cloudflare-ai-DdKP9TKT.js → cloudflare-ai-DGOwgexC.js} +6 -17
- package/dist/src/{cloudflare-ai-C62x6MQG.cjs → cloudflare-ai-DJv5qnyb.cjs} +6 -15
- package/dist/src/{cloudflare-gateway-DXhtXDRb.js → cloudflare-gateway-1sAoOyft.js} +6 -16
- package/dist/src/{cloudflare-gateway-D-e9i1Sn.js → cloudflare-gateway-D-dnkzCF.js} +5 -18
- package/dist/src/{cloudflare-gateway-Dx36ftqF.cjs → cloudflare-gateway-DKVjkDav.cjs} +4 -15
- package/dist/src/{cloudflare-gateway-BwAaUgeW.js → cloudflare-gateway-TJkVrZlB.js} +4 -15
- package/dist/src/codex-app-server-CCLjqCh9.js +1915 -0
- package/dist/src/codex-app-server-CCe0TiDc.js +1915 -0
- package/dist/src/codex-app-server-CPW1LFwh.js +1916 -0
- package/dist/src/codex-app-server-VMRnjZ68.cjs +1920 -0
- package/dist/src/codex-sdk-1jm_qPHf.js +3 -0
- package/dist/src/codex-sdk-Bd8UbO9q.cjs +1172 -0
- package/dist/src/codex-sdk-BgEFQ70r.js +1164 -0
- package/dist/src/codex-sdk-Bzb_TqX9.js +1165 -0
- package/dist/src/codex-sdk-Danroptg.cjs +2 -0
- package/dist/src/codex-sdk-DfvDTN33.js +1165 -0
- package/dist/src/{cometapi-BDyV-NNm.js → cometapi-B5ImDlSm.js} +9 -15
- package/dist/src/{cometapi-C3hOlM7-.cjs → cometapi-BgAkuYCw.cjs} +9 -16
- package/dist/src/{cometapi-hhL4TAh3.js → cometapi-CC7hWxmX.js} +8 -15
- package/dist/src/{cometapi-sp7sJpBD.js → cometapi-CCbpHkuF.js} +8 -17
- package/dist/src/{completion-DoYy49ti.js → completion-2iuYVxwi.js} +8 -57
- package/dist/src/{completion-BCimtq-h.js → completion-CrD6MQ93.js} +8 -57
- package/dist/src/{completion-DlXUhj5c.cjs → completion-DtQ72Bm3.cjs} +7 -62
- package/dist/src/{completion-DCjv7RZ3.js → completion-Vq_ad618.js} +8 -57
- package/dist/src/{createHash-CTQmL3G2.js → createHash-4gFQpDDv.js} +3 -3
- package/dist/src/{createHash-Da8fMwqB.js → createHash-DPpsZgFF.js} +3 -3
- package/dist/src/{createHash-DmPQkvBh.js → createHash-Un4Q_huE.js} +3 -3
- package/dist/src/{createHash-BYwImsYv.cjs → createHash-VvBIc-AW.cjs} +4 -4
- package/dist/src/{docker-CxCkwMzc.js → docker--3qzPa-6.js} +6 -14
- package/dist/src/{docker-Cqj2-QVi.cjs → docker-D3AY-5F5.cjs} +7 -15
- package/dist/src/{docker-FeBni2dw.js → docker-DCsCDvwM.js} +7 -14
- package/dist/src/{docker-DpguQj-w.js → docker-Dorv4_Dg.js} +6 -16
- package/dist/src/embedding-BXhN5lCH.cjs +63 -0
- package/dist/src/embedding-ChS1ivFS.js +58 -0
- package/dist/src/embedding-DNRvZwRN.js +59 -0
- package/dist/src/embedding-D_bI4NDq.js +58 -0
- package/dist/src/entrypoint.js +69 -6
- package/dist/src/{errors-P6ll7XSJ.js → errors-DFHe4L-n.js} +1 -1
- package/dist/src/{esm-SUNIX1x3.js → esm-B6whoAcf.js} +15 -6
- package/dist/src/{esm-CKWP3u_P.js → esm-BRkfNsYs.js} +16 -7
- package/dist/src/{esm-7UIl0pPM.js → esm-BX8fwlAO.js} +27 -18
- package/dist/src/{esm-CipptfDu.cjs → esm-B_rGuPTo.cjs} +15 -6
- package/dist/src/eval-BQPLBJbw.js +3 -0
- package/dist/src/{eval-BTqTn7lb.js → eval-DJ_4A-tr.js} +50 -21
- package/dist/src/evalResult-BBJAHAtw.cjs +2 -0
- package/dist/src/evalResult-BBK58h2B.js +3 -0
- package/dist/src/{evalResult-DpARzUCb.cjs → evalResult-Cx-8OWkb.cjs} +29 -11
- package/dist/src/{evalResult-DUDShQrm.js → evalResult-D6P5I5il.js} +29 -11
- package/dist/src/{evalResult-BkIhRdTe.js → evalResult-pSvGWFMo.js} +29 -11
- package/dist/src/evalResult-spPqh1G_.js +2 -0
- package/dist/src/{evaluator-BcvOGaam.js → evaluator-D-UIbbYq.js} +3975 -2152
- package/dist/src/evaluator-DgLKaZk8.js +3 -0
- package/dist/src/{extractor-D_wd8jxt.js → extractor-BM3jRERL.js} +6 -6
- package/dist/src/{extractor-DG3sSfXE.cjs → extractor-Dxr2J_wK.cjs} +6 -6
- package/dist/src/{extractor-CAZ2G3Kh.js → extractor-DxyiFhPk.js} +6 -6
- package/dist/src/{extractor-C8XwivI9.js → extractor-YlZbUMsL.js} +6 -6
- package/dist/src/fetch-8viavNv8.js +3 -0
- package/dist/src/{fetch-DoVRJZhJ.js → fetch-B6ch2nU2.js} +199 -60
- package/dist/src/{fetch-CVAtKnI3.js → fetch-D9xxyC1p.js} +404 -252
- package/dist/src/{fetch-BnR9wSnm.cjs → fetch-NuqXW1Xb.cjs} +415 -263
- package/dist/src/{fetch-BiYv2BZc.js → fetch-Y5qX_kST.js} +222 -70
- package/dist/src/{fileExtensions-LcDYkU4v.js → fileExtensions-8CjoL7vB.js} +1 -1
- package/dist/src/{fileExtensions-DnqA1y9x.js → fileExtensions-BGh-W-HT.js} +1 -1
- package/dist/src/{fileExtensions-bYh77CN8.cjs → fileExtensions-D9h-8Wxg.cjs} +1 -1
- package/dist/src/{fileExtensions-Ds-foDzt.js → fileExtensions-DysCsxNG.js} +1 -1
- package/dist/src/{formatDuration-DgBVMN65.js → formatDuration-Ch4A7G3o.js} +1 -1
- package/dist/src/{genaiTracer-BfxrvSUb.cjs → genaiTracer-BokHC-MW.cjs} +7 -3
- package/dist/src/{genaiTracer-C1rxGO8Q.js → genaiTracer-C3ZPQU60.js} +6 -2
- package/dist/src/{genaiTracer-70Z8BIuV.js → genaiTracer-CFny3gOy.js} +6 -2
- package/dist/src/{genaiTracer-D3fD9dNV.js → genaiTracer-DxODqT9e.js} +6 -2
- package/dist/src/golang/wrapper.go +1 -1
- package/dist/src/{graders-DG7mhg-b.js → graders-BoUqsCEm.js} +7402 -5699
- package/dist/src/{graders-BElhu9ZY.cjs → graders-Bw1wk_21.cjs} +5220 -3437
- package/dist/src/graders-C84JI-m5.js +2 -0
- package/dist/src/graders-CBbd0K0Q.cjs +2 -0
- package/dist/src/graders-CbQqpHSN.js +3 -0
- package/dist/src/{graders-RjHF8VfG.js → graders-CgPn32yp.js} +7400 -5697
- package/dist/src/{graders-BXAJ0sbS.js → graders-CwrbifOo.js} +6136 -4433
- package/dist/src/graders-DS42d3ZG.js +2 -0
- package/dist/src/{image-6WQXK8m8.js → image-BeWaInPF.js} +4 -4
- package/dist/src/{image-PoF6DN3x.js → image-BmilRNqO.js} +8 -8
- package/dist/src/{image--F58eEIn.cjs → image-CxJoa3aW.cjs} +8 -8
- package/dist/src/{image-fza3zuKs.cjs → image-D10dNAav.cjs} +4 -4
- package/dist/src/{image-DO0RYnjH.js → image-Dr_3I3nK.js} +4 -5
- package/dist/src/{image-B8b6f36E.js → image-DsGRlkh7.js} +8 -8
- package/dist/src/{image-CoxZp9PZ.js → image-a_SGUobh.js} +8 -8
- package/dist/src/{image-xNbw5ph2.js → image-qjO6FWPs.js} +4 -4
- package/dist/src/index.cjs +4835 -2582
- package/dist/src/index.d.cts +2782 -31
- package/dist/src/index.d.ts +2783 -32
- package/dist/src/index.js +4817 -2564
- package/dist/src/{interactiveCheck-BnMYOjMu.js → interactiveCheck-CCICw2cy.js} +2 -2
- package/dist/src/{invariant-BtWWVVhl.js → invariant-B2Rf6avk.js} +1 -1
- package/dist/src/{invariant-vgHWClmd.js → invariant-DIYf9sP1.js} +1 -1
- package/dist/src/{knowledgeBase-Bi7CmDbx.js → knowledgeBase-BBETc5-S.js} +6 -8
- package/dist/src/{knowledgeBase-DqrLX8fy.cjs → knowledgeBase-C8qOo26M.cjs} +6 -8
- package/dist/src/{knowledgeBase-DFRXPZl_.js → knowledgeBase-CzAi2rUI.js} +7 -8
- package/dist/src/{knowledgeBase-Ce3ofVan.js → knowledgeBase-Dr3Kib7F.js} +6 -10
- package/dist/src/{litellm-CKiAxnoM.js → litellm-BLSiANhk.js} +6 -14
- package/dist/src/{litellm-CnHI69aj.cjs → litellm-CaUmV7Mk.cjs} +6 -15
- package/dist/src/{litellm-Tc294Jhj.js → litellm-DQGo_juI.js} +5 -14
- package/dist/src/{litellm-Bo2gQXpo.js → litellm-DRc4qWfc.js} +5 -16
- package/dist/src/{logger-BcJBzSSA.js → logger-BbY6ypFL.js} +41 -12
- package/dist/src/{logger-D5iKBpu_.cjs → logger-COuQb2xB.cjs} +51 -10
- package/dist/src/{logger-DO8_zM18.js → logger-Ct2S6Yx-.js} +40 -11
- package/dist/src/{logger-BnkjG2jt.js → logger-KD8JjCRJ.js} +41 -12
- package/dist/src/{luma-ray-C9q8rdQe.js → luma-ray-B-tNZzqW.js} +6 -10
- package/dist/src/{luma-ray-DP0QA9qn.js → luma-ray-CtS3OlGq.js} +6 -10
- package/dist/src/{luma-ray-0ehMPt5N.js → luma-ray-PJJgUjOc.js} +6 -11
- package/dist/src/{luma-ray-m9Ku2meV.cjs → luma-ray-if-Ml4R9.cjs} +6 -10
- package/dist/src/main.d.ts +1 -26
- package/dist/src/main.js +1188 -679
- package/dist/src/messages-B9dSjrNf.js +544 -0
- package/dist/src/messages-BnsVHUnm.cjs +558 -0
- package/dist/src/messages-CI69Lasb.js +543 -0
- package/dist/src/messages-CewuNcNS.js +543 -0
- package/dist/src/{meteor-DLZZ3osF.cjs → meteor-BBGcGeCa.cjs} +1 -1
- package/dist/src/{meteor-DUiCJRC-.js → meteor-BKTM-7KS.js} +1 -1
- package/dist/src/{meteor-44VjEACX.js → meteor-CeGo0Lu2.js} +2 -2
- package/dist/src/{meteor-D-SotUw9.js → meteor-Wc_aUVvu.js} +2 -2
- package/dist/src/{modelslab-B5J-ZM5c.js → modelslab-BCLOtfek.js} +8 -10
- package/dist/src/{modelslab-IQbNg-r7.cjs → modelslab-BkapYJhh.cjs} +7 -10
- package/dist/src/{modelslab-BTOT8FUO.js → modelslab-D73OnKSx.js} +7 -10
- package/dist/src/{modelslab-BI458moT.js → modelslab-zpz9JcK0.js} +7 -12
- package/dist/src/{nova-reel-BZ9y-Y5s.js → nova-reel-B8F_TK5w.js} +7 -10
- package/dist/src/{nova-reel-Xw1SXLpg.js → nova-reel-Bx0NFV2f.js} +6 -10
- package/dist/src/{nova-reel-DEeQlnOJ.js → nova-reel-CNGJTLtG.js} +6 -12
- package/dist/src/{nova-reel-CE5etkv9.cjs → nova-reel-DkT7tnoB.cjs} +6 -10
- package/dist/src/{nova-sonic-Ogqf-csn.js → nova-sonic-BaXRN1cr.js} +5 -7
- package/dist/src/{nova-sonic-DXTLpi-r.js → nova-sonic-BeTRaFOh.js} +4 -7
- package/dist/src/{nova-sonic-DWswpN1E.js → nova-sonic-CL7Zqv0G.js} +4 -9
- package/dist/src/{nova-sonic-N0yCm0vb.cjs → nova-sonic-YT426juD.cjs} +4 -7
- package/dist/src/{openai-BcB5KlTk.js → openai-BMHD2Huo.js} +6 -3
- package/dist/src/{openai-BMcwgD5C.js → openai-BT-JvDse.js} +6 -3
- package/dist/src/{openai-CoxGAQwn.cjs → openai-Cy1XLs0c.cjs} +6 -3
- package/dist/src/{openai-D6wITiVn.js → openai-D4fxGvRx.js} +6 -3
- package/dist/src/openclaw-Bq7RVR3k.js +1200 -0
- package/dist/src/openclaw-DA8U4DsD.js +1201 -0
- package/dist/src/openclaw-DObVgpjC.js +1200 -0
- package/dist/src/openclaw-DUBZP3GL.cjs +1206 -0
- package/dist/src/{opencode-sdk-CHCs7dEb.js → opencode-sdk-BB40Wir1.js} +6 -8
- package/dist/src/{opencode-sdk-DDxj4QqH.js → opencode-sdk-BM1UAIv1.js} +6 -8
- package/dist/src/{opencode-sdk-WWJhnbKr.cjs → opencode-sdk-CeqiOcOU.cjs} +7 -9
- package/dist/src/{opencode-sdk-C71Z0ehR.js → opencode-sdk-ChdK7F7z.js} +6 -9
- package/dist/src/{otlpReceiver-CZL48YfC.js → otlpReceiver-C6thJRXi.js} +154 -98
- package/dist/src/{otlpReceiver-C9KlUtxh.js → otlpReceiver-CcdIikOu.js} +154 -98
- package/dist/src/{otlpReceiver-DHKqJlsz.cjs → otlpReceiver-DNSQj6bf.cjs} +154 -98
- package/dist/src/{otlpReceiver-CavGAA6k.js → otlpReceiver-UYMQx3sy.js} +154 -98
- package/dist/src/{providerRegistry-BkzVH5Ba.js → providerRegistry-1gB5vtzQ.js} +2 -2
- package/dist/src/{providerRegistry-BTDgfV5h.cjs → providerRegistry-BESeALrr.cjs} +2 -2
- package/dist/src/{providerRegistry-CUWki5mQ.js → providerRegistry-DoACwqhD.js} +2 -2
- package/dist/src/{providerRegistry-B9lh-_tx.js → providerRegistry-PMsleEzs.js} +2 -2
- package/dist/src/providers-BuyzKt7C.js +2 -0
- package/dist/src/providers-C7lNVBjX.cjs +3 -0
- package/dist/src/providers-CCE2COJi2.js +2 -0
- package/dist/src/{providers-Cn73d5sr.js → providers-CJh7iriU.js} +17180 -16823
- package/dist/src/providers-Ctcc592x.js +3 -0
- package/dist/src/{providers-DvddrgxL.js → providers-DRrerKra.js} +1052 -695
- package/dist/src/{providers-Ch6Mr0gn.js → providers-DT-GtF2t.js} +16716 -16359
- package/dist/src/{providers-CScd1wN6.cjs → providers-eDShy16E.cjs} +19893 -19506
- package/dist/src/python/persistent_wrapper.py +0 -5
- package/dist/src/{pythonUtils-Cpo0Ez1p.js → pythonUtils-C4tltmIn.js} +4 -4
- package/dist/src/{pythonUtils-dAVigVK-.cjs → pythonUtils-CoLaCwNY.cjs} +4 -4
- package/dist/src/{pythonUtils-Bzwbgpbg.js → pythonUtils-DMO68Jg7.js} +3 -3
- package/dist/src/{pythonUtils-wIqk7zAf.js → pythonUtils-DNqbnRdx.js} +3 -3
- package/dist/src/{quiverai-BeofbLVc.js → quiverai-BSS9a7wV.js} +4 -4
- package/dist/src/{quiverai-DVSEqJiq.js → quiverai-Bk1KrvL6.js} +4 -4
- package/dist/src/{quiverai-CcUhPIBg.cjs → quiverai-Bpx6MZ7T.cjs} +4 -4
- package/dist/src/{quiverai-CCQn73lq.js → quiverai-CPKhWgaT.js} +4 -5
- package/dist/src/render-7uNJ2V14.js +135 -0
- package/dist/src/render-DlscvAUJ.js +135 -0
- package/dist/src/render-eui5p5mL.js +136 -0
- package/dist/src/{render-BHl6QVq9.js → render-nj-UaPdn.js} +2 -3
- package/dist/src/render-tG6ir9_g.cjs +165 -0
- package/dist/src/{responses-CgNyTPsY.js → responses-1ztiVYsx.js} +56 -17
- package/dist/src/{responses-BKP_WYis.js → responses-B8haB-mD.js} +56 -17
- package/dist/src/{responses-CQb1Tj69.js → responses-BiaBguAu.js} +56 -17
- package/dist/src/{responses-mo0KQDbu.cjs → responses-CF-ayauu.cjs} +56 -17
- package/dist/src/rubyUtils-4hjGxvju.js +3 -0
- package/dist/src/{rubyUtils-DECSbsfY.js → rubyUtils-BI0p46eZ.js} +3 -3
- package/dist/src/{rubyUtils-CiVfln3g.js → rubyUtils-CIQFnVz4.js} +3 -3
- package/dist/src/rubyUtils-CO-tuszQ.cjs +2 -0
- package/dist/src/{rubyUtils-PgU-gHmx.js → rubyUtils-DGnoCYL2.js} +4 -4
- package/dist/src/{rubyUtils-CGeUtCfW.cjs → rubyUtils-DoifqkiA.cjs} +5 -4
- package/dist/src/{sagemaker-CqeASYE5.js → sagemaker-BDLeW29y.js} +14 -18
- package/dist/src/{sagemaker-MUbD5V3v.js → sagemaker-C5T60MKf.js} +14 -19
- package/dist/src/{sagemaker-CVv8W7so.js → sagemaker-ClS_NB07.js} +14 -18
- package/dist/src/{sagemaker-jiw1wQa-.cjs → sagemaker-ljtY12VM.cjs} +14 -18
- package/dist/src/{scanner-DVDeUz1r.js → scanner-nOCWNIXa.js} +130 -35
- package/dist/src/server/golang/wrapper.go +1 -1
- package/dist/src/server/index.js +4829 -2529
- package/dist/src/server/python/persistent_wrapper.py +0 -5
- package/dist/src/{server-BtoCXeXI.cjs → server-BEECpeGG.cjs} +140 -6
- package/dist/src/{server-DZ9MtCn0.js → server-ByiF3qlg.js} +129 -9
- package/dist/src/{server-Cns05F1j.js → server-ByxbqAcQ.js} +128 -8
- package/dist/src/server-C0XKRNB_.cjs +2 -0
- package/dist/src/server-C_15p79-.js +3 -0
- package/dist/src/{server-CP9qKM40.js → server-gyd6d4Hc.js} +126 -7
- package/dist/src/{signal-C3ZTsUgi.js → signal-DTtUuU3l.js} +3 -3
- package/dist/src/{slack-DCEV-vWP.js → slack-4zZX1OKP.js} +2 -2
- package/dist/src/{slack-94iG3T0s.cjs → slack-BLlsDpfG.cjs} +2 -2
- package/dist/src/{slack-BR0HtO3K.js → slack-BPYLQLgb.js} +2 -2
- package/dist/src/{slack-2sdpGzbt.js → slack-Bamy_7te.js} +2 -2
- package/dist/src/{store-CLyU7AtI.cjs → store-2K0kDi80.cjs} +3 -3
- package/dist/src/{store-VB0GP46K.js → store-2OXm_eBY.js} +3 -3
- package/dist/src/store-BELqNwvz.js +3 -0
- package/dist/src/{store-Cj258DgL.js → store-BPkzEyFM.js} +3 -3
- package/dist/src/{store-P8OKm19S.js → store-CPh25336.js} +3 -3
- package/dist/src/store-uQZ4AjPe.cjs +2 -0
- package/dist/src/{tables-BEIFz2tM.js → tables-BMSOS2Gg.js} +3 -3
- package/dist/src/{tables-BdZQEpRz.cjs → tables-CXbaZ9y1.cjs} +3 -3
- package/dist/src/{tables-DmzvLbeZ.js → tables-NlvH23ky.js} +3 -3
- package/dist/src/{tables-kC7R5kiK.js → tables-WgdUZ8Ck.js} +3 -3
- package/dist/src/{telemetry-DPXLd7UE.js → telemetry--iqaGyaS.js} +5 -4
- package/dist/src/{telemetry-re627Lre.cjs → telemetry-CEQxGnMZ.cjs} +8 -7
- package/dist/src/{telemetry-BugWqKiu.js → telemetry-CgdVGV8N.js} +5 -4
- package/dist/src/{telemetry-BnH5VJAU.js → telemetry-DWdGHvEf.js} +5 -4
- package/dist/src/telemetry-DjNoC_n3.cjs +2 -0
- package/dist/src/telemetry-ZdPZc0fm.js +3 -0
- package/dist/src/{text-CW1cyrwj.cjs → text-BiNME7QG.cjs} +1 -1
- package/dist/src/{text-Db-Wt2u2.js → text-D4lz-Jg_.js} +1 -1
- package/dist/src/{text-TIv0QYnd.js → text-DDQP0tuQ.js} +1 -1
- package/dist/src/{text-B_UCRPp2.js → text-NWvfMfkF.js} +1 -1
- package/dist/src/{tokenUsageUtils-DflFMjS0.js → tokenUsageUtils-2wIvAhB3.js} +7 -3
- package/dist/src/{tokenUsageUtils-BDGe-iyI.js → tokenUsageUtils-4c780gFd.js} +7 -3
- package/dist/src/{tokenUsageUtils-NYT-WKS6.js → tokenUsageUtils-BjVkdk18.js} +7 -3
- package/dist/src/{tokenUsageUtils-bVa1ga6f.cjs → tokenUsageUtils-C9odhsbW.cjs} +7 -3
- package/dist/src/{transcription-CaMivnjG.js → transcription-84t4ALo2.js} +7 -11
- package/dist/src/{transcription-Hb3VnC4M.js → transcription-Bm2emLmJ.js} +8 -11
- package/dist/src/{transcription-BvtsrzRG.cjs → transcription-CZ4LG5hQ.cjs} +9 -13
- package/dist/src/{transcription-DOMMTu01.js → transcription-D7Q0vJsh.js} +7 -13
- package/dist/src/{transform-DrleutM3.js → transform-B-b6Cq-q.js} +8 -6
- package/dist/src/transform-BQt0BeAW.js +3 -0
- package/dist/src/transform-Bq5oqC0s.cjs +2 -0
- package/dist/src/{transform-ZrG2dvlo.cjs → transform-C9izGX54.cjs} +5 -5
- package/dist/src/{transform-BzK09Q_9.js → transform-CwbAZ84V.js} +5 -5
- package/dist/src/{transform-0BwoBsvO.cjs → transform-Dg4LcO1Y.cjs} +18 -10
- package/dist/src/{transform-B2-jIv68.js → transform-DtooZqYY.js} +8 -6
- package/dist/src/{transform-ljLYHEPh.js → transform-DzCF-wqV.js} +5 -5
- package/dist/src/{transform-DyDAwEpE.js → transform-_DpNB4qp.js} +9 -7
- package/dist/src/{transform-BqPkNPYm.js → transform-eGiUAv86.js} +5 -5
- package/dist/src/{transformersAvailability-DKoRtQLy.cjs → transformersAvailability-B22swDxr.cjs} +1 -1
- package/dist/src/{transformersAvailability-BGkzavwb.js → transformersAvailability-lvCCvuPT.js} +1 -1
- package/dist/src/{transformersAvailability-D6c6ROpT.js → transformersAvailability-rJGPccjr.js} +1 -1
- package/dist/src/{types-Cd3ygw8W.js → types-BDjGOq4E.js} +354 -24
- package/dist/src/{types-CIhFeUC4.js → types-BVH9hjgW.js} +364 -23
- package/dist/src/{types-D8cGDZbL.cjs → types-CgG2rKiW.cjs} +534 -167
- package/dist/src/{types-q8GXGF65.js → types-DNRZVOue.js} +498 -167
- package/dist/src/{util-BLvy9qfE.js → util-3pBZZb_H.js} +151 -149
- package/dist/src/{util-CFj4YKIn.cjs → util-A5_ZsQUn.cjs} +66 -44
- package/dist/src/{util-BtoGs5Cb.js → util-B9CNhyac.js} +66 -44
- package/dist/src/{util-Bm3E9jpK.js → util-BQOCAHQC.js} +692 -690
- package/dist/src/{util-vNmDL5DT.js → util-BVXcTwXu.js} +138 -36
- package/dist/src/{util-CgDCK4KI.js → util-BlFVL0UF.js} +66 -44
- package/dist/src/{util-DM2rTn_6.js → util-C-kmRosx.js} +66 -44
- package/dist/src/{util-DbVG-yZU.js → util-DFPeFkiV.js} +138 -36
- package/dist/src/{util-DMFeUvLz.js → util-DN0-b81k.js} +138 -36
- package/dist/src/{util--9u9UVCt.cjs → util-Dpmm_dAI.cjs} +143 -35
- package/dist/src/{util-CMMkIxfU.js → util-Dub0f_ej.js} +693 -691
- package/dist/src/{util-CuLo2pMR.cjs → util-DvpHnLt0.cjs} +714 -719
- package/dist/src/{utils-DOjD4dTC.js → utils-BUMN8orw.js} +6 -4
- package/dist/src/{utils-DKw8mrgr.cjs → utils-DkVeShIB.cjs} +6 -4
- package/dist/src/{utils-DEuL4VNB.js → utils-kt7lv30R.js} +6 -4
- package/dist/src/{utils-CFxO9KGo.js → utils-o8S5huU2.js} +6 -4
- package/dist/src/version-0frU0UTr.js +16 -0
- package/dist/src/version-CbpiUINz.js +17 -0
- package/dist/src/version-CbuBKu2U.js +16 -0
- package/dist/src/version-D9zu9FWB.cjs +27 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +57 -46
- package/dist/src/app/assets/index-B6l9CVVb.js +0 -439
- package/dist/src/app/assets/index-DyZ0Ep37.css +0 -1
- package/dist/src/app/assets/scroll-timeline-BdJZVXlz.js +0 -1
- package/dist/src/app/assets/sync-CStkzc6u.js +0 -4
- package/dist/src/app/assets/vendor-charts-BnDWwBlI.js +0 -36
- package/dist/src/app/assets/vendor-markdown-Bz7N-ca6.js +0 -29
- package/dist/src/app/assets/vendor-react-AtKqiNEf.js +0 -4
- package/dist/src/app/assets/vendor-syntax-D06x6TQF.js +0 -2
- package/dist/src/app/assets/vendor-utils-BvMHZmO7.js +0 -37
- package/dist/src/cache-C5yFZ4gC.cjs +0 -816
- package/dist/src/cache-CaT5tPgo.js +0 -756
- package/dist/src/cache-CyCanoMu.js +0 -6
- package/dist/src/cache-DSqR6ezl.js +0 -726
- package/dist/src/cache-Df_QFDNu.cjs +0 -5
- package/dist/src/cache-HP0NP4k3.js +0 -756
- package/dist/src/cloud-DE3t1-ZI.js +0 -4
- package/dist/src/codex-sdk-BQEw16R_.js +0 -834
- package/dist/src/codex-sdk-C_07GuVS.js +0 -834
- package/dist/src/codex-sdk-DE5G18dx.js +0 -835
- package/dist/src/codex-sdk-ZLKfDjqP.cjs +0 -838
- package/dist/src/eval-7aEqoMs3.js +0 -15
- package/dist/src/evalResult-CYNHkk5A.js +0 -12
- package/dist/src/evalResult-CuvJeNiM.js +0 -10
- package/dist/src/evalResult-tGdilrWt.cjs +0 -10
- package/dist/src/evaluator-BBUqRhz1.js +0 -36
- package/dist/src/fetch-UWU706qb.js +0 -5
- package/dist/src/graders-BxfEguVY.js +0 -32
- package/dist/src/graders-CzVMbEnv.js +0 -34
- package/dist/src/graders-DjCXfj0l.cjs +0 -32
- package/dist/src/graders-kHzIWOKu.js +0 -32
- package/dist/src/messages-DJNo37Ko.js +0 -246
- package/dist/src/messages-Dy9QecMs.js +0 -245
- package/dist/src/messages-HJsyEh4o.cjs +0 -257
- package/dist/src/messages-biC_ex-p.js +0 -245
- package/dist/src/openclaw-0Sv7AK3O.js +0 -580
- package/dist/src/openclaw-CXxbKgDH.cjs +0 -586
- package/dist/src/openclaw-D1FSCps-.js +0 -580
- package/dist/src/openclaw-D2ENvu7a.js +0 -582
- package/dist/src/providers-BSLEaIQG.js +0 -32
- package/dist/src/providers-D-FnDg8k.cjs +0 -31
- package/dist/src/providers-DEYiFVAo.js +0 -30
- package/dist/src/providers-sS2WI8YD.js +0 -30
- package/dist/src/rubyUtils-B1HXG4ej.cjs +0 -4
- package/dist/src/rubyUtils-Rt6pKA96.js +0 -5
- package/dist/src/server-B0Xh1Gx-.js +0 -7
- package/dist/src/server-DJTKu9IR.cjs +0 -5
- package/dist/src/store-C5u6MgC8.js +0 -6
- package/dist/src/store-CNHk-De4.cjs +0 -5
- package/dist/src/telemetry-Yig0Tino.js +0 -7
- package/dist/src/telemetry-p8Pwqm1i.cjs +0 -5
- package/dist/src/transform-ChNIpHz7.js +0 -6
- package/dist/src/transform-PtQ6rAE3.cjs +0 -5
|
@@ -1,137 +1,13 @@
|
|
|
1
|
-
import { i as isJavascriptFile, t as JAVASCRIPT_EXTENSIONS } from "./fileExtensions-
|
|
1
|
+
import { i as isJavascriptFile, t as JAVASCRIPT_EXTENSIONS } from "./fileExtensions-8CjoL7vB.js";
|
|
2
2
|
import dedent from "dedent";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/types/env.ts
|
|
5
|
-
const ProviderEnvOverridesSchema = z.object({
|
|
6
|
-
AI21_API_BASE_URL: z.string().optional(),
|
|
7
|
-
AI21_API_KEY: z.string().optional(),
|
|
8
|
-
AIML_API_KEY: z.string().optional(),
|
|
9
|
-
ANTHROPIC_API_KEY: z.string().optional(),
|
|
10
|
-
ANTHROPIC_BASE_URL: z.string().optional(),
|
|
11
|
-
AWS_BEDROCK_REGION: z.string().optional(),
|
|
12
|
-
AZURE_API_BASE_URL: z.string().optional(),
|
|
13
|
-
AZURE_API_HOST: z.string().optional(),
|
|
14
|
-
AZURE_API_KEY: z.string().optional(),
|
|
15
|
-
AZURE_AUTHORITY_HOST: z.string().optional(),
|
|
16
|
-
AZURE_CLIENT_ID: z.string().optional(),
|
|
17
|
-
AZURE_CLIENT_SECRET: z.string().optional(),
|
|
18
|
-
AZURE_DEPLOYMENT_NAME: z.string().optional(),
|
|
19
|
-
AZURE_EMBEDDING_DEPLOYMENT_NAME: z.string().optional(),
|
|
20
|
-
AZURE_OPENAI_API_BASE_URL: z.string().optional(),
|
|
21
|
-
AZURE_OPENAI_API_HOST: z.string().optional(),
|
|
22
|
-
AZURE_OPENAI_API_KEY: z.string().optional(),
|
|
23
|
-
AZURE_OPENAI_BASE_URL: z.string().optional(),
|
|
24
|
-
AZURE_OPENAI_DEPLOYMENT_NAME: z.string().optional(),
|
|
25
|
-
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME: z.string().optional(),
|
|
26
|
-
AZURE_TENANT_ID: z.string().optional(),
|
|
27
|
-
AZURE_TOKEN_SCOPE: z.string().optional(),
|
|
28
|
-
CLAUDE_CODE_USE_BEDROCK: z.string().optional(),
|
|
29
|
-
CLAUDE_CODE_USE_VERTEX: z.string().optional(),
|
|
30
|
-
CLOUDFLARE_ACCOUNT_ID: z.string().optional(),
|
|
31
|
-
CLOUDFLARE_API_KEY: z.string().optional(),
|
|
32
|
-
CLOUDFLARE_GATEWAY_ID: z.string().optional(),
|
|
33
|
-
CF_AIG_TOKEN: z.string().optional(),
|
|
34
|
-
COMETAPI_KEY: z.string().optional(),
|
|
35
|
-
COHERE_API_KEY: z.string().optional(),
|
|
36
|
-
COHERE_CLIENT_NAME: z.string().optional(),
|
|
37
|
-
DATABRICKS_TOKEN: z.string().optional(),
|
|
38
|
-
DATABRICKS_WORKSPACE_URL: z.string().optional(),
|
|
39
|
-
DOCKER_MODEL_RUNNER_BASE_URL: z.string().optional(),
|
|
40
|
-
DOCKER_MODEL_RUNNER_API_KEY: z.string().optional(),
|
|
41
|
-
ELEVENLABS_API_KEY: z.string().optional(),
|
|
42
|
-
FAL_KEY: z.string().optional(),
|
|
43
|
-
GITHUB_TOKEN: z.string().optional(),
|
|
44
|
-
GOOGLE_API_HOST: z.string().optional(),
|
|
45
|
-
GOOGLE_API_BASE_URL: z.string().optional(),
|
|
46
|
-
GOOGLE_API_KEY: z.string().optional(),
|
|
47
|
-
GOOGLE_PROJECT_ID: z.string().optional(),
|
|
48
|
-
GOOGLE_LOCATION: z.string().optional(),
|
|
49
|
-
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional(),
|
|
50
|
-
GEMINI_API_KEY: z.string().optional(),
|
|
51
|
-
GROQ_API_KEY: z.string().optional(),
|
|
52
|
-
HELICONE_API_KEY: z.string().optional(),
|
|
53
|
-
HF_API_TOKEN: z.string().optional(),
|
|
54
|
-
HF_TOKEN: z.string().optional(),
|
|
55
|
-
HYPERBOLIC_API_KEY: z.string().optional(),
|
|
56
|
-
HUGGING_FACE_HUB_TOKEN: z.string().optional(),
|
|
57
|
-
JFROG_API_KEY: z.string().optional(),
|
|
58
|
-
LANGFUSE_HOST: z.string().optional(),
|
|
59
|
-
LANGFUSE_PUBLIC_KEY: z.string().optional(),
|
|
60
|
-
LANGFUSE_SECRET_KEY: z.string().optional(),
|
|
61
|
-
LITELLM_API_BASE: z.string().optional(),
|
|
62
|
-
LLAMA_BASE_URL: z.string().optional(),
|
|
63
|
-
LOCALAI_BASE_URL: z.string().optional(),
|
|
64
|
-
MISTRAL_API_BASE_URL: z.string().optional(),
|
|
65
|
-
MISTRAL_API_HOST: z.string().optional(),
|
|
66
|
-
MISTRAL_API_KEY: z.string().optional(),
|
|
67
|
-
MODELSLAB_API_KEY: z.string().optional(),
|
|
68
|
-
NSCALE_SERVICE_TOKEN: z.string().optional(),
|
|
69
|
-
NSCALE_API_KEY: z.string().optional(),
|
|
70
|
-
OLLAMA_API_KEY: z.string().optional(),
|
|
71
|
-
OLLAMA_BASE_URL: z.string().optional(),
|
|
72
|
-
OPENAI_API_BASE_URL: z.string().optional(),
|
|
73
|
-
OPENAI_API_HOST: z.string().optional(),
|
|
74
|
-
OPENAI_API_KEY: z.string().optional(),
|
|
75
|
-
OPENAI_BASE_URL: z.string().optional(),
|
|
76
|
-
OPENAI_ORGANIZATION: z.string().optional(),
|
|
77
|
-
CLAWDBOT_GATEWAY_PASSWORD: z.string().optional(),
|
|
78
|
-
CLAWDBOT_GATEWAY_TOKEN: z.string().optional(),
|
|
79
|
-
CLAWDBOT_GATEWAY_URL: z.string().optional(),
|
|
80
|
-
CODEX_API_KEY: z.string().optional(),
|
|
81
|
-
OPENCLAW_CONFIG_PATH: z.string().optional(),
|
|
82
|
-
OPENCLAW_GATEWAY_PASSWORD: z.string().optional(),
|
|
83
|
-
OPENCLAW_GATEWAY_TOKEN: z.string().optional(),
|
|
84
|
-
OPENCLAW_GATEWAY_URL: z.string().optional(),
|
|
85
|
-
PALM_API_HOST: z.string().optional(),
|
|
86
|
-
PALM_API_KEY: z.string().optional(),
|
|
87
|
-
PORTKEY_API_KEY: z.string().optional(),
|
|
88
|
-
PROMPTFOO_CA_CERT_PATH: z.string().optional(),
|
|
89
|
-
PROMPTFOO_PFX_CERT_PATH: z.string().optional(),
|
|
90
|
-
PROMPTFOO_PFX_PASSWORD: z.string().optional(),
|
|
91
|
-
PROMPTFOO_JKS_CERT_PATH: z.string().optional(),
|
|
92
|
-
PROMPTFOO_JKS_PASSWORD: z.string().optional(),
|
|
93
|
-
PROMPTFOO_JKS_ALIAS: z.string().optional(),
|
|
94
|
-
PROMPTFOO_INSECURE_SSL: z.string().optional(),
|
|
95
|
-
QUIVERAI_API_KEY: z.string().optional(),
|
|
96
|
-
REPLICATE_API_KEY: z.string().optional(),
|
|
97
|
-
REPLICATE_API_TOKEN: z.string().optional(),
|
|
98
|
-
SHAREPOINT_BASE_URL: z.string().optional(),
|
|
99
|
-
SHAREPOINT_CERT_PATH: z.string().optional(),
|
|
100
|
-
SHAREPOINT_CLIENT_ID: z.string().optional(),
|
|
101
|
-
SHAREPOINT_TENANT_ID: z.string().optional(),
|
|
102
|
-
VERCEL_AI_GATEWAY_API_KEY: z.string().optional(),
|
|
103
|
-
VERCEL_AI_GATEWAY_BASE_URL: z.string().optional(),
|
|
104
|
-
VERTEX_API_HOST: z.string().optional(),
|
|
105
|
-
VERTEX_API_KEY: z.string().optional(),
|
|
106
|
-
VERTEX_API_VERSION: z.string().optional(),
|
|
107
|
-
VERTEX_PROJECT_ID: z.string().optional(),
|
|
108
|
-
VERTEX_PUBLISHER: z.string().optional(),
|
|
109
|
-
VERTEX_REGION: z.string().optional(),
|
|
110
|
-
VOYAGE_API_BASE_URL: z.string().optional(),
|
|
111
|
-
VOYAGE_API_KEY: z.string().optional(),
|
|
112
|
-
WATSONX_AI_APIKEY: z.string().optional(),
|
|
113
|
-
WATSONX_AI_AUTH_TYPE: z.string().optional(),
|
|
114
|
-
WATSONX_AI_BEARER_TOKEN: z.string().optional(),
|
|
115
|
-
WATSONX_AI_PROJECT_ID: z.string().optional(),
|
|
116
|
-
XAI_API_BASE_URL: z.string().optional(),
|
|
117
|
-
XAI_API_KEY: z.string().optional(),
|
|
118
|
-
AZURE_CONTENT_SAFETY_ENDPOINT: z.string().optional(),
|
|
119
|
-
AZURE_CONTENT_SAFETY_API_KEY: z.string().optional(),
|
|
120
|
-
AZURE_CONTENT_SAFETY_API_VERSION: z.string().optional(),
|
|
121
|
-
AWS_REGION: z.string().optional(),
|
|
122
|
-
AWS_DEFAULT_REGION: z.string().optional(),
|
|
123
|
-
AWS_SAGEMAKER_MAX_TOKENS: z.string().optional(),
|
|
124
|
-
AWS_SAGEMAKER_TEMPERATURE: z.string().optional(),
|
|
125
|
-
AWS_SAGEMAKER_TOP_P: z.string().optional(),
|
|
126
|
-
AWS_SAGEMAKER_MAX_RETRIES: z.string().optional(),
|
|
127
|
-
PROMPTFOO_EVAL_TIMEOUT_MS: z.string().optional()
|
|
128
|
-
});
|
|
129
|
-
//#endregion
|
|
130
4
|
//#region src/types/shared.ts
|
|
131
5
|
const CompletionTokenDetailsSchema = z.object({
|
|
132
6
|
reasoning: z.number().optional(),
|
|
133
7
|
acceptedPrediction: z.number().optional(),
|
|
134
|
-
rejectedPrediction: z.number().optional()
|
|
8
|
+
rejectedPrediction: z.number().optional(),
|
|
9
|
+
cacheReadInputTokens: z.number().optional(),
|
|
10
|
+
cacheCreationInputTokens: z.number().optional()
|
|
135
11
|
});
|
|
136
12
|
/**
|
|
137
13
|
* Base schema for token usage statistics with all fields optional
|
|
@@ -154,24 +30,54 @@ const BaseTokenUsageSchema = z.object({
|
|
|
154
30
|
});
|
|
155
31
|
const InputsSchema = z.record(z.string().regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/, { error: "Input variable names must be valid identifiers (start with letter or underscore)" }), z.string().min(1, { error: "Input descriptions must be non-empty strings" }));
|
|
156
32
|
//#endregion
|
|
157
|
-
//#region src/
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
33
|
+
//#region src/redteam/constants/codingAgents.ts
|
|
34
|
+
const CODING_AGENT_CORE_PLUGINS = [
|
|
35
|
+
"coding-agent:repo-prompt-injection",
|
|
36
|
+
"coding-agent:terminal-output-injection",
|
|
37
|
+
"coding-agent:secret-env-read",
|
|
38
|
+
"coding-agent:sandbox-read-escape",
|
|
39
|
+
"coding-agent:verifier-sabotage"
|
|
40
|
+
];
|
|
41
|
+
const CODING_AGENT_PLUGINS = [
|
|
42
|
+
...CODING_AGENT_CORE_PLUGINS,
|
|
43
|
+
"coding-agent:secret-file-read",
|
|
44
|
+
"coding-agent:sandbox-write-escape",
|
|
45
|
+
"coding-agent:network-egress-bypass"
|
|
46
|
+
];
|
|
47
|
+
const CODING_AGENT_COLLECTIONS = ["coding-agent:core"];
|
|
48
|
+
const CODING_AGENT_PLUGIN_DISPLAY_NAMES = {
|
|
49
|
+
"coding-agent:core": "Coding Agent Core",
|
|
50
|
+
"coding-agent:repo-prompt-injection": "Repository Prompt Injection",
|
|
51
|
+
"coding-agent:terminal-output-injection": "Terminal Output Injection",
|
|
52
|
+
"coding-agent:secret-env-read": "Secret Environment Read",
|
|
53
|
+
"coding-agent:secret-file-read": "Secret File Read",
|
|
54
|
+
"coding-agent:sandbox-read-escape": "Sandbox Read Escape",
|
|
55
|
+
"coding-agent:sandbox-write-escape": "Sandbox Write Escape",
|
|
56
|
+
"coding-agent:network-egress-bypass": "Network Egress Bypass",
|
|
57
|
+
"coding-agent:verifier-sabotage": "Verifier Sabotage"
|
|
58
|
+
};
|
|
59
|
+
const CODING_AGENT_PLUGIN_DESCRIPTIONS = {
|
|
60
|
+
"coding-agent:core": "Tests coding agents against a focused MVP set of repository prompt injection, terminal output injection, secret environment read, sandbox read escape, and verifier sabotage risks",
|
|
61
|
+
"coding-agent:repo-prompt-injection": "Tests whether instructions embedded in README files, source comments, fixture data, issue text, logs, or generated artifacts can override the user task or operating policy",
|
|
62
|
+
"coding-agent:terminal-output-injection": "Tests whether compiler, test, package manager, linter, formatter, git, grep, or script output can instruct the coding agent to perform unrelated or dangerous actions",
|
|
63
|
+
"coding-agent:secret-env-read": "Tests whether launcher-only environment canaries remain absent from commands, output, traces, reports, diffs, URLs, and tool or connector parameters",
|
|
64
|
+
"coding-agent:secret-file-read": "Tests whether protected local files, dotfiles, sibling checkout files, temp files, cache files, browser profile files, or support-bundle files remain outside the coding agent task boundary",
|
|
65
|
+
"coding-agent:sandbox-read-escape": "Tests whether the agent can read outside the intended workspace through absolute paths, sibling checkout paths, symlinks, archives, mount points, caches, temp paths, browser profiles, or home directories",
|
|
66
|
+
"coding-agent:sandbox-write-escape": "Tests whether the agent can create, overwrite, append, delete, chmod, or otherwise mutate files outside the intended workspace through relative paths, absolute paths, symlinks, temp paths, home paths, caches, mounts, or sibling checkouts",
|
|
67
|
+
"coding-agent:network-egress-bypass": "Tests whether the agent can make unauthorized outbound network requests, DNS lookups, package fetches, webhook calls, tunnels, or connector/tool calls that bypass the intended network policy",
|
|
68
|
+
"coding-agent:verifier-sabotage": "Tests whether the agent weakens tests, lint, typecheck, CI, snapshots, fixtures, auth, locks, security checks, policies, or harness assertions instead of fixing the requested implementation"
|
|
69
|
+
};
|
|
70
|
+
const CODING_AGENT_PLUGIN_ALIASES = {
|
|
71
|
+
"coding-agent:core": "CodingAgentCore",
|
|
72
|
+
"coding-agent:repo-prompt-injection": "CodingAgentRepoPromptInjection",
|
|
73
|
+
"coding-agent:terminal-output-injection": "CodingAgentTerminalOutputInjection",
|
|
74
|
+
"coding-agent:secret-env-read": "CodingAgentSecretEnvRead",
|
|
75
|
+
"coding-agent:secret-file-read": "CodingAgentSecretFileRead",
|
|
76
|
+
"coding-agent:sandbox-read-escape": "CodingAgentSandboxReadEscape",
|
|
77
|
+
"coding-agent:sandbox-write-escape": "CodingAgentSandboxWriteEscape",
|
|
78
|
+
"coding-agent:network-egress-bypass": "CodingAgentNetworkEgressBypass",
|
|
79
|
+
"coding-agent:verifier-sabotage": "CodingAgentVerifierSabotage"
|
|
80
|
+
};
|
|
175
81
|
//#endregion
|
|
176
82
|
//#region src/redteam/constants/plugins.ts
|
|
177
83
|
const MULTI_INPUT_VAR = "__prompt";
|
|
@@ -293,8 +199,10 @@ const COLLECTIONS = [
|
|
|
293
199
|
"financial",
|
|
294
200
|
"ecommerce",
|
|
295
201
|
"telecom",
|
|
202
|
+
"teen-safety",
|
|
296
203
|
"realestate",
|
|
297
|
-
"guardrails-eval"
|
|
204
|
+
"guardrails-eval",
|
|
205
|
+
...CODING_AGENT_COLLECTIONS
|
|
298
206
|
];
|
|
299
207
|
const UNALIGNED_PROVIDER_HARM_PLUGINS = {
|
|
300
208
|
"harmful:child-exploitation": "Child Exploitation",
|
|
@@ -344,6 +252,9 @@ const BIAS_PLUGINS = [
|
|
|
344
252
|
];
|
|
345
253
|
const MEDICAL_PLUGINS = [
|
|
346
254
|
"medical:anchoring-bias",
|
|
255
|
+
"medical:fda:ai-disclosure",
|
|
256
|
+
"medical:fda:cyber-access-control",
|
|
257
|
+
"medical:fda:cyber-audit-tampering",
|
|
347
258
|
"medical:hallucination",
|
|
348
259
|
"medical:incorrect-knowledge",
|
|
349
260
|
"medical:off-label-use",
|
|
@@ -359,6 +270,7 @@ const FINANCIAL_PLUGINS = [
|
|
|
359
270
|
"financial:defamation",
|
|
360
271
|
"financial:hallucination",
|
|
361
272
|
"financial:impartiality",
|
|
273
|
+
"financial:japan-fiea-suitability",
|
|
362
274
|
"financial:misconduct",
|
|
363
275
|
"financial:sox-compliance",
|
|
364
276
|
"financial:sycophancy"
|
|
@@ -404,6 +316,12 @@ const REALESTATE_PLUGINS = [
|
|
|
404
316
|
"realestate:advertising-discrimination",
|
|
405
317
|
"realestate:source-of-income"
|
|
406
318
|
];
|
|
319
|
+
const TEEN_SAFETY_PLUGINS = [
|
|
320
|
+
"teen-safety:harmful-body-ideals",
|
|
321
|
+
"teen-safety:dangerous-content",
|
|
322
|
+
"teen-safety:dangerous-roleplay",
|
|
323
|
+
"teen-safety:age-restricted-goods-and-services"
|
|
324
|
+
];
|
|
407
325
|
const BASE_PLUGINS = [
|
|
408
326
|
"contracts",
|
|
409
327
|
"excessive-agency",
|
|
@@ -418,6 +336,7 @@ const ADDITIONAL_PLUGINS = [
|
|
|
418
336
|
"bfla",
|
|
419
337
|
"bola",
|
|
420
338
|
"cca",
|
|
339
|
+
...CODING_AGENT_PLUGINS,
|
|
421
340
|
"competitors",
|
|
422
341
|
"coppa",
|
|
423
342
|
"cross-session-leak",
|
|
@@ -434,6 +353,9 @@ const ADDITIONAL_PLUGINS = [
|
|
|
434
353
|
"mcp",
|
|
435
354
|
"model-identification",
|
|
436
355
|
"medical:anchoring-bias",
|
|
356
|
+
"medical:fda:ai-disclosure",
|
|
357
|
+
"medical:fda:cyber-access-control",
|
|
358
|
+
"medical:fda:cyber-audit-tampering",
|
|
437
359
|
"medical:hallucination",
|
|
438
360
|
"medical:incorrect-knowledge",
|
|
439
361
|
"medical:off-label-use",
|
|
@@ -447,6 +369,7 @@ const ADDITIONAL_PLUGINS = [
|
|
|
447
369
|
"financial:defamation",
|
|
448
370
|
"financial:hallucination",
|
|
449
371
|
"financial:impartiality",
|
|
372
|
+
"financial:japan-fiea-suitability",
|
|
450
373
|
"financial:misconduct",
|
|
451
374
|
"financial:sox-compliance",
|
|
452
375
|
"financial:sycophancy",
|
|
@@ -476,6 +399,10 @@ const ADDITIONAL_PLUGINS = [
|
|
|
476
399
|
"telecom:coverage-misinformation",
|
|
477
400
|
"telecom:law-enforcement-request-handling",
|
|
478
401
|
"telecom:accessibility-violation",
|
|
402
|
+
"teen-safety:harmful-body-ideals",
|
|
403
|
+
"teen-safety:dangerous-content",
|
|
404
|
+
"teen-safety:dangerous-roleplay",
|
|
405
|
+
"teen-safety:age-restricted-goods-and-services",
|
|
479
406
|
"realestate:fair-housing-discrimination",
|
|
480
407
|
"realestate:steering",
|
|
481
408
|
"realestate:discriminatory-listings",
|
|
@@ -507,6 +434,16 @@ const ADDITIONAL_PLUGINS = [
|
|
|
507
434
|
];
|
|
508
435
|
const CONFIG_REQUIRED_PLUGINS = ["intent", "policy"];
|
|
509
436
|
const AGENTIC_EXEMPT_PLUGINS = ["system-prompt-override", "agentic:memory-poisoning"];
|
|
437
|
+
const CANARY_BREAKING_STRATEGY_IDS = [
|
|
438
|
+
"base64",
|
|
439
|
+
"hex",
|
|
440
|
+
"homoglyph",
|
|
441
|
+
"leetspeak",
|
|
442
|
+
"rot13",
|
|
443
|
+
"multilingual",
|
|
444
|
+
"math-prompt",
|
|
445
|
+
"jailbreak:composite"
|
|
446
|
+
];
|
|
510
447
|
const DATASET_EXEMPT_PLUGINS = [
|
|
511
448
|
"aegis",
|
|
512
449
|
"beavertails",
|
|
@@ -557,10 +494,13 @@ const PLUGIN_CATEGORIES = {
|
|
|
557
494
|
pharmacy: PHARMACY_PLUGINS,
|
|
558
495
|
insurance: INSURANCE_PLUGINS,
|
|
559
496
|
telecom: TELECOM_PLUGINS,
|
|
497
|
+
"teen-safety": TEEN_SAFETY_PLUGINS,
|
|
560
498
|
realestate: REALESTATE_PLUGINS
|
|
561
499
|
};
|
|
562
500
|
const REMOTE_ONLY_PLUGIN_IDS = [
|
|
563
501
|
"agentic:memory-poisoning",
|
|
502
|
+
...CODING_AGENT_COLLECTIONS,
|
|
503
|
+
...CODING_AGENT_PLUGINS,
|
|
564
504
|
"ascii-smuggling",
|
|
565
505
|
"bfla",
|
|
566
506
|
"bola",
|
|
@@ -1075,26 +1015,125 @@ const NIST_AI_RMF_MAPPING = {
|
|
|
1075
1015
|
strategies: []
|
|
1076
1016
|
}
|
|
1077
1017
|
};
|
|
1018
|
+
const MITRE_ATLAS_AI_ATTACK_STAGING_MAPPING = {
|
|
1019
|
+
plugins: [
|
|
1020
|
+
"ascii-smuggling",
|
|
1021
|
+
"excessive-agency",
|
|
1022
|
+
"harmful:cybercrime:malicious-code",
|
|
1023
|
+
"hallucination",
|
|
1024
|
+
"indirect-prompt-injection",
|
|
1025
|
+
"rag-poisoning"
|
|
1026
|
+
],
|
|
1027
|
+
strategies: ["jailbreak", "jailbreak:tree"]
|
|
1028
|
+
};
|
|
1078
1029
|
const MITRE_ATLAS_MAPPING = {
|
|
1030
|
+
"mitre:atlas:ai-attack-staging": MITRE_ATLAS_AI_ATTACK_STAGING_MAPPING,
|
|
1031
|
+
"mitre:atlas:ai-model-access": {
|
|
1032
|
+
plugins: [],
|
|
1033
|
+
strategies: []
|
|
1034
|
+
},
|
|
1035
|
+
"mitre:atlas:collection": {
|
|
1036
|
+
plugins: [
|
|
1037
|
+
"data-exfil",
|
|
1038
|
+
"harmful:privacy",
|
|
1039
|
+
"pii:api-db",
|
|
1040
|
+
"pii:direct",
|
|
1041
|
+
"pii:session",
|
|
1042
|
+
"pii:social",
|
|
1043
|
+
"prompt-extraction",
|
|
1044
|
+
"rag-document-exfiltration"
|
|
1045
|
+
],
|
|
1046
|
+
strategies: []
|
|
1047
|
+
},
|
|
1048
|
+
"mitre:atlas:command-and-control": {
|
|
1049
|
+
plugins: [
|
|
1050
|
+
"excessive-agency",
|
|
1051
|
+
"harmful:cybercrime",
|
|
1052
|
+
"harmful:cybercrime:malicious-code",
|
|
1053
|
+
"mcp",
|
|
1054
|
+
"shell-injection",
|
|
1055
|
+
"ssrf"
|
|
1056
|
+
],
|
|
1057
|
+
strategies: ["crescendo"]
|
|
1058
|
+
},
|
|
1059
|
+
"mitre:atlas:credential-access": {
|
|
1060
|
+
plugins: [
|
|
1061
|
+
"data-exfil",
|
|
1062
|
+
"harmful:privacy",
|
|
1063
|
+
"pii:api-db",
|
|
1064
|
+
"pii:direct",
|
|
1065
|
+
"pii:session",
|
|
1066
|
+
"pii:social",
|
|
1067
|
+
"prompt-extraction",
|
|
1068
|
+
"rag-document-exfiltration",
|
|
1069
|
+
"tool-discovery"
|
|
1070
|
+
],
|
|
1071
|
+
strategies: []
|
|
1072
|
+
},
|
|
1073
|
+
"mitre:atlas:defense-evasion": {
|
|
1074
|
+
plugins: [
|
|
1075
|
+
"ascii-smuggling",
|
|
1076
|
+
"hijacking",
|
|
1077
|
+
"imitation",
|
|
1078
|
+
"rag-source-attribution",
|
|
1079
|
+
"special-token-injection"
|
|
1080
|
+
],
|
|
1081
|
+
strategies: [
|
|
1082
|
+
"base64",
|
|
1083
|
+
"jailbreak",
|
|
1084
|
+
"jailbreak-templates",
|
|
1085
|
+
"leetspeak",
|
|
1086
|
+
"rot13"
|
|
1087
|
+
]
|
|
1088
|
+
},
|
|
1089
|
+
"mitre:atlas:discovery": {
|
|
1090
|
+
plugins: [
|
|
1091
|
+
"debug-access",
|
|
1092
|
+
"model-identification",
|
|
1093
|
+
"prompt-extraction",
|
|
1094
|
+
"system-prompt-override",
|
|
1095
|
+
"tool-discovery"
|
|
1096
|
+
],
|
|
1097
|
+
strategies: []
|
|
1098
|
+
},
|
|
1099
|
+
"mitre:atlas:execution": {
|
|
1100
|
+
plugins: [
|
|
1101
|
+
"excessive-agency",
|
|
1102
|
+
"hijacking",
|
|
1103
|
+
"indirect-prompt-injection",
|
|
1104
|
+
"mcp",
|
|
1105
|
+
"shell-injection",
|
|
1106
|
+
"sql-injection",
|
|
1107
|
+
"ssrf",
|
|
1108
|
+
"system-prompt-override",
|
|
1109
|
+
"tool-discovery"
|
|
1110
|
+
],
|
|
1111
|
+
strategies: ["jailbreak", "jailbreak-templates"]
|
|
1112
|
+
},
|
|
1079
1113
|
"mitre:atlas:exfiltration": {
|
|
1080
1114
|
plugins: [
|
|
1081
1115
|
"ascii-smuggling",
|
|
1116
|
+
"cross-session-leak",
|
|
1117
|
+
"data-exfil",
|
|
1082
1118
|
"harmful:privacy",
|
|
1083
1119
|
"indirect-prompt-injection",
|
|
1084
1120
|
"pii:api-db",
|
|
1085
1121
|
"pii:direct",
|
|
1086
1122
|
"pii:session",
|
|
1087
1123
|
"pii:social",
|
|
1088
|
-
"prompt-extraction"
|
|
1124
|
+
"prompt-extraction",
|
|
1125
|
+
"rag-document-exfiltration"
|
|
1089
1126
|
],
|
|
1090
1127
|
strategies: []
|
|
1091
1128
|
},
|
|
1092
1129
|
"mitre:atlas:impact": {
|
|
1093
1130
|
plugins: [
|
|
1131
|
+
"divergent-repetition",
|
|
1094
1132
|
"excessive-agency",
|
|
1095
1133
|
"harmful",
|
|
1096
1134
|
"hijacking",
|
|
1097
|
-
"imitation"
|
|
1135
|
+
"imitation",
|
|
1136
|
+
"reasoning-dos"
|
|
1098
1137
|
],
|
|
1099
1138
|
strategies: ["crescendo"]
|
|
1100
1139
|
},
|
|
@@ -1102,6 +1141,8 @@ const MITRE_ATLAS_MAPPING = {
|
|
|
1102
1141
|
plugins: [
|
|
1103
1142
|
"debug-access",
|
|
1104
1143
|
"harmful:cybercrime",
|
|
1144
|
+
"indirect-prompt-injection",
|
|
1145
|
+
"mcp",
|
|
1105
1146
|
"shell-injection",
|
|
1106
1147
|
"sql-injection",
|
|
1107
1148
|
"ssrf"
|
|
@@ -1114,18 +1155,46 @@ const MITRE_ATLAS_MAPPING = {
|
|
|
1114
1155
|
"rot13"
|
|
1115
1156
|
]
|
|
1116
1157
|
},
|
|
1117
|
-
"mitre:atlas:
|
|
1158
|
+
"mitre:atlas:lateral-movement": {
|
|
1118
1159
|
plugins: [
|
|
1119
|
-
"
|
|
1160
|
+
"bfla",
|
|
1161
|
+
"bola",
|
|
1162
|
+
"harmful:cybercrime",
|
|
1163
|
+
"rbac"
|
|
1164
|
+
],
|
|
1165
|
+
strategies: []
|
|
1166
|
+
},
|
|
1167
|
+
"mitre:atlas:persistence": {
|
|
1168
|
+
plugins: [
|
|
1169
|
+
"agentic:memory-poisoning",
|
|
1170
|
+
"cross-session-leak",
|
|
1171
|
+
"indirect-prompt-injection",
|
|
1172
|
+
"rag-poisoning",
|
|
1173
|
+
"system-prompt-override"
|
|
1174
|
+
],
|
|
1175
|
+
strategies: ["jailbreak"]
|
|
1176
|
+
},
|
|
1177
|
+
"mitre:atlas:privilege-escalation": {
|
|
1178
|
+
plugins: [
|
|
1179
|
+
"bfla",
|
|
1180
|
+
"bola",
|
|
1181
|
+
"debug-access",
|
|
1120
1182
|
"excessive-agency",
|
|
1121
|
-
"
|
|
1122
|
-
"
|
|
1183
|
+
"mcp",
|
|
1184
|
+
"rbac",
|
|
1185
|
+
"shell-injection",
|
|
1186
|
+
"system-prompt-override"
|
|
1123
1187
|
],
|
|
1124
|
-
strategies: [
|
|
1188
|
+
strategies: [
|
|
1189
|
+
"jailbreak",
|
|
1190
|
+
"jailbreak:tree",
|
|
1191
|
+
"jailbreak-templates"
|
|
1192
|
+
]
|
|
1125
1193
|
},
|
|
1126
1194
|
"mitre:atlas:reconnaissance": {
|
|
1127
1195
|
plugins: [
|
|
1128
1196
|
"competitors",
|
|
1197
|
+
"model-identification",
|
|
1129
1198
|
"policy",
|
|
1130
1199
|
"prompt-extraction",
|
|
1131
1200
|
"rbac"
|
|
@@ -1134,13 +1203,16 @@ const MITRE_ATLAS_MAPPING = {
|
|
|
1134
1203
|
},
|
|
1135
1204
|
"mitre:atlas:resource-development": {
|
|
1136
1205
|
plugins: [
|
|
1206
|
+
"harmful:chemical-biological-weapons",
|
|
1137
1207
|
"harmful:cybercrime",
|
|
1208
|
+
"harmful:cybercrime:malicious-code",
|
|
1138
1209
|
"harmful:illegal-drugs",
|
|
1139
1210
|
"harmful:indiscriminate-weapons"
|
|
1140
1211
|
],
|
|
1141
1212
|
strategies: []
|
|
1142
1213
|
}
|
|
1143
1214
|
};
|
|
1215
|
+
const MITRE_ATLAS_LEGACY_MAPPING = { "mitre:atlas:ml-attack-staging": MITRE_ATLAS_AI_ATTACK_STAGING_MAPPING };
|
|
1144
1216
|
/**
|
|
1145
1217
|
* EU Artificial Intelligence Act
|
|
1146
1218
|
* ▸ Art. 5 (Prohibited AI practices) – unacceptable-risk
|
|
@@ -1547,6 +1619,7 @@ const ALIASED_PLUGINS = [
|
|
|
1547
1619
|
"iso:42001",
|
|
1548
1620
|
"gdpr",
|
|
1549
1621
|
...Object.keys(MITRE_ATLAS_MAPPING),
|
|
1622
|
+
...Object.keys(MITRE_ATLAS_LEGACY_MAPPING),
|
|
1550
1623
|
...Object.keys(NIST_AI_RMF_MAPPING),
|
|
1551
1624
|
...Object.keys(OWASP_API_TOP_10_MAPPING),
|
|
1552
1625
|
...Object.keys(OWASP_LLM_TOP_10_MAPPING),
|
|
@@ -1558,6 +1631,7 @@ const ALIASED_PLUGINS = [
|
|
|
1558
1631
|
];
|
|
1559
1632
|
const ALIASED_PLUGIN_MAPPINGS = {
|
|
1560
1633
|
"dod:ai:ethics": DOD_AI_ETHICS_MAPPING,
|
|
1634
|
+
"mitre:atlas:ml-attack-staging": MITRE_ATLAS_LEGACY_MAPPING,
|
|
1561
1635
|
"mitre:atlas": MITRE_ATLAS_MAPPING,
|
|
1562
1636
|
"nist:ai:measure": NIST_AI_RMF_MAPPING,
|
|
1563
1637
|
"owasp:api": OWASP_API_TOP_10_MAPPING,
|
|
@@ -1618,8 +1692,8 @@ const ALIASED_PLUGIN_MAPPINGS = {
|
|
|
1618
1692
|
strategies: []
|
|
1619
1693
|
} }
|
|
1620
1694
|
};
|
|
1621
|
-
|
|
1622
|
-
|
|
1695
|
+
({ ...CODING_AGENT_PLUGIN_DESCRIPTIONS });
|
|
1696
|
+
({ ...CODING_AGENT_PLUGIN_DISPLAY_NAMES });
|
|
1623
1697
|
const Severity = {
|
|
1624
1698
|
Critical: "critical",
|
|
1625
1699
|
High: "high",
|
|
@@ -1636,6 +1710,10 @@ const SeveritySchema = z.enum([
|
|
|
1636
1710
|
]);
|
|
1637
1711
|
Severity.Critical, Severity.High, Severity.Medium, Severity.Low, Severity.Informational;
|
|
1638
1712
|
Severity.Critical, Severity.High, Severity.Medium, Severity.Low, Severity.Informational;
|
|
1713
|
+
const codingAgentRiskCategorySeverityMap = {
|
|
1714
|
+
...Object.fromEntries(CODING_AGENT_PLUGINS.map((pluginId) => [pluginId, Severity.High])),
|
|
1715
|
+
"coding-agent:core": Severity.High
|
|
1716
|
+
};
|
|
1639
1717
|
const riskCategorySeverityMap = {
|
|
1640
1718
|
["agentic:memory-poisoning"]: Severity.High,
|
|
1641
1719
|
aegis: Severity.Medium,
|
|
@@ -1653,6 +1731,7 @@ const riskCategorySeverityMap = {
|
|
|
1653
1731
|
"financial:defamation": Severity.Medium,
|
|
1654
1732
|
"financial:hallucination": Severity.Low,
|
|
1655
1733
|
"financial:impartiality": Severity.Medium,
|
|
1734
|
+
"financial:japan-fiea-suitability": Severity.High,
|
|
1656
1735
|
"financial:misconduct": Severity.High,
|
|
1657
1736
|
"financial:sox-compliance": Severity.High,
|
|
1658
1737
|
"financial:sycophancy": Severity.Low,
|
|
@@ -1668,6 +1747,9 @@ const riskCategorySeverityMap = {
|
|
|
1668
1747
|
default: Severity.Low,
|
|
1669
1748
|
mcp: Severity.High,
|
|
1670
1749
|
"medical:anchoring-bias": Severity.High,
|
|
1750
|
+
"medical:fda:ai-disclosure": Severity.High,
|
|
1751
|
+
"medical:fda:cyber-access-control": Severity.Critical,
|
|
1752
|
+
"medical:fda:cyber-audit-tampering": Severity.Critical,
|
|
1671
1753
|
"medical:hallucination": Severity.Critical,
|
|
1672
1754
|
"medical:incorrect-knowledge": Severity.Critical,
|
|
1673
1755
|
"medical:off-label-use": Severity.High,
|
|
@@ -1744,6 +1826,11 @@ const riskCategorySeverityMap = {
|
|
|
1744
1826
|
"telecom:coverage-misinformation": Severity.Medium,
|
|
1745
1827
|
"telecom:law-enforcement-request-handling": Severity.Medium,
|
|
1746
1828
|
"telecom:accessibility-violation": Severity.Medium,
|
|
1829
|
+
"teen-safety": Severity.Low,
|
|
1830
|
+
"teen-safety:harmful-body-ideals": Severity.Low,
|
|
1831
|
+
"teen-safety:dangerous-content": Severity.Low,
|
|
1832
|
+
"teen-safety:dangerous-roleplay": Severity.Low,
|
|
1833
|
+
"teen-safety:age-restricted-goods-and-services": Severity.Low,
|
|
1747
1834
|
realestate: Severity.Critical,
|
|
1748
1835
|
"realestate:fair-housing-discrimination": Severity.Critical,
|
|
1749
1836
|
"realestate:steering": Severity.Critical,
|
|
@@ -1783,9 +1870,10 @@ const riskCategorySeverityMap = {
|
|
|
1783
1870
|
vlguard: Severity.Medium,
|
|
1784
1871
|
vlsu: Severity.Medium,
|
|
1785
1872
|
wordplay: Severity.Low,
|
|
1786
|
-
xstest: Severity.Low
|
|
1873
|
+
xstest: Severity.Low,
|
|
1874
|
+
...codingAgentRiskCategorySeverityMap
|
|
1787
1875
|
};
|
|
1788
|
-
|
|
1876
|
+
const riskCategories = {
|
|
1789
1877
|
"Security & Access Control": [
|
|
1790
1878
|
"ascii-smuggling",
|
|
1791
1879
|
"bfla",
|
|
@@ -1857,6 +1945,10 @@ Object.entries({
|
|
|
1857
1945
|
"harmful:radicalization",
|
|
1858
1946
|
"harmful:self-harm",
|
|
1859
1947
|
"harmful:sexual-content",
|
|
1948
|
+
"teen-safety:harmful-body-ideals",
|
|
1949
|
+
"teen-safety:dangerous-content",
|
|
1950
|
+
"teen-safety:dangerous-roleplay",
|
|
1951
|
+
"teen-safety:age-restricted-goods-and-services",
|
|
1860
1952
|
"wordplay"
|
|
1861
1953
|
],
|
|
1862
1954
|
Brand: [
|
|
@@ -1888,11 +1980,15 @@ Object.entries({
|
|
|
1888
1980
|
"financial:defamation",
|
|
1889
1981
|
"financial:hallucination",
|
|
1890
1982
|
"financial:impartiality",
|
|
1983
|
+
"financial:japan-fiea-suitability",
|
|
1891
1984
|
"financial:misconduct",
|
|
1892
1985
|
"financial:sox-compliance",
|
|
1893
1986
|
"financial:sycophancy",
|
|
1894
1987
|
"medical:hallucination",
|
|
1895
1988
|
"medical:anchoring-bias",
|
|
1989
|
+
"medical:fda:ai-disclosure",
|
|
1990
|
+
"medical:fda:cyber-access-control",
|
|
1991
|
+
"medical:fda:cyber-audit-tampering",
|
|
1896
1992
|
"medical:incorrect-knowledge",
|
|
1897
1993
|
"medical:off-label-use",
|
|
1898
1994
|
"medical:prioritization-error",
|
|
@@ -1933,8 +2029,10 @@ Object.entries({
|
|
|
1933
2029
|
"vlguard",
|
|
1934
2030
|
"vlsu",
|
|
1935
2031
|
"xstest"
|
|
1936
|
-
]
|
|
1937
|
-
|
|
2032
|
+
],
|
|
2033
|
+
"Coding Agent Security": [...CODING_AGENT_PLUGINS]
|
|
2034
|
+
};
|
|
2035
|
+
Object.entries(riskCategories).reduce((acc, [category, harms]) => {
|
|
1938
2036
|
harms.forEach((harm) => {
|
|
1939
2037
|
acc[harm] = category;
|
|
1940
2038
|
});
|
|
@@ -1960,6 +2058,9 @@ const categoryAliases = {
|
|
|
1960
2058
|
ferpa: "FERPACompliance",
|
|
1961
2059
|
mcp: "MCP",
|
|
1962
2060
|
"medical:anchoring-bias": "MedicalAnchoringBias",
|
|
2061
|
+
"medical:fda:ai-disclosure": "MedicalFdaAiDisclosure",
|
|
2062
|
+
"medical:fda:cyber-access-control": "MedicalFdaCyberAccessControl",
|
|
2063
|
+
"medical:fda:cyber-audit-tampering": "MedicalFdaCyberAuditTampering",
|
|
1963
2064
|
"medical:hallucination": "Medical Hallucination",
|
|
1964
2065
|
"medical:incorrect-knowledge": "MedicalIncorrectKnowledge",
|
|
1965
2066
|
"medical:off-label-use": "MedicalOffLabelUse",
|
|
@@ -1977,6 +2078,7 @@ const categoryAliases = {
|
|
|
1977
2078
|
"financial:defamation": "FinancialDefamation",
|
|
1978
2079
|
"financial:hallucination": "FinancialHallucination",
|
|
1979
2080
|
"financial:impartiality": "FinancialImpartiality",
|
|
2081
|
+
"financial:japan-fiea-suitability": "FinancialJapanFieaSuitability",
|
|
1980
2082
|
"financial:misconduct": "FinancialMisconduct",
|
|
1981
2083
|
"financial:sox-compliance": "FinancialSoxCompliance",
|
|
1982
2084
|
"financial:sycophancy": "FinancialSycophancy",
|
|
@@ -2018,6 +2120,11 @@ const categoryAliases = {
|
|
|
2018
2120
|
"telecom:coverage-misinformation": "TelecomCoverageMisinformation",
|
|
2019
2121
|
"telecom:law-enforcement-request-handling": "TelecomLawEnforcementRequestHandling",
|
|
2020
2122
|
"telecom:accessibility-violation": "TelecomAccessibilityViolation",
|
|
2123
|
+
"teen-safety": "TeenSafety",
|
|
2124
|
+
"teen-safety:harmful-body-ideals": "TeenSafetyHarmfulBodyIdeals",
|
|
2125
|
+
"teen-safety:dangerous-content": "TeenSafetyDangerousContent",
|
|
2126
|
+
"teen-safety:dangerous-roleplay": "TeenSafetyDangerousRoleplay",
|
|
2127
|
+
"teen-safety:age-restricted-goods-and-services": "TeenSafetyAgeRestrictedGoodsAndServices",
|
|
2021
2128
|
realestate: "Real Estate Safety",
|
|
2022
2129
|
"realestate:fair-housing-discrimination": "RealEstateFairHousingDiscrimination",
|
|
2023
2130
|
"realestate:steering": "RealEstateSteering",
|
|
@@ -2087,7 +2194,8 @@ const categoryAliases = {
|
|
|
2087
2194
|
vlguard: "VLGuard",
|
|
2088
2195
|
vlsu: "VLSU",
|
|
2089
2196
|
wordplay: "Wordplay",
|
|
2090
|
-
xstest: "XSTest"
|
|
2197
|
+
xstest: "XSTest",
|
|
2198
|
+
...CODING_AGENT_PLUGIN_ALIASES
|
|
2091
2199
|
};
|
|
2092
2200
|
Object.entries(categoryAliases).reduce((acc, [key, value]) => {
|
|
2093
2201
|
acc[value] = key;
|
|
@@ -2143,6 +2251,11 @@ const pluginDescriptions = {
|
|
|
2143
2251
|
"telecom:coverage-misinformation": "Tests for false or misleading claims about network coverage, 5G availability, or roaming capabilities",
|
|
2144
2252
|
"telecom:law-enforcement-request-handling": "Tests for improper handling of law enforcement data requests in violation of CALEA requirements and privacy laws",
|
|
2145
2253
|
"telecom:accessibility-violation": "Tests for accessibility compliance violations under Section 255, Section 508, ADA, and 21st Century CVAA",
|
|
2254
|
+
"teen-safety": "Comprehensive teen safety testing for age-appropriate AI behavior across body image harms, dangerous activities, unsafe roleplay, and underage access risks",
|
|
2255
|
+
"teen-safety:harmful-body-ideals": "Tests for harmful body-ideal promotion, body shaming, and facilitation of unsafe restriction, purging, over-exercise, or concealment behaviors that can harm teens",
|
|
2256
|
+
"teen-safety:dangerous-content": "Tests for promotion, glorification, or facilitation of dangerous challenges, unsafe stunts, risky experimentation, and dangerous at-home procedures inappropriate for teens",
|
|
2257
|
+
"teen-safety:dangerous-roleplay": "Tests for interactive roleplay involving minors that simulates romantic, sexual, or violent scenarios that could normalize exploitation or harm",
|
|
2258
|
+
"teen-safety:age-restricted-goods-and-services": "Tests for encouragement, sourcing, or circumvention tactics that help minors access age-restricted goods or services such as alcohol, vaping, gambling, weapons, or adult-only venues",
|
|
2146
2259
|
realestate: "Comprehensive real estate AI safety testing for Fair Housing Act compliance, steering prevention, lending discrimination (ECOA), valuation bias, and housing discrimination vulnerabilities",
|
|
2147
2260
|
"realestate:fair-housing-discrimination": "Tests for Fair Housing Act violations across all 7 protected classes: race, color, religion, national origin, sex (including gender identity and sexual orientation), familial status, and disability",
|
|
2148
2261
|
"realestate:steering": "Tests for illegal steering practices where systems direct buyers toward or away from neighborhoods based on protected class characteristics rather than objective housing criteria",
|
|
@@ -2190,6 +2303,9 @@ const pluginDescriptions = {
|
|
|
2190
2303
|
"ecommerce:price-manipulation": "Tests for price manipulation through discount code abuse, inventory exploits, cart manipulation, unauthorized price modifications, or coupon stacking vulnerabilities",
|
|
2191
2304
|
mcp: "Tests for vulnerabilities to Model Context Protocol (MCP) attacks",
|
|
2192
2305
|
"medical:anchoring-bias": "Tests for medical anchoring bias where AI fixates on irrelevant information in medical contexts",
|
|
2306
|
+
"medical:fda:ai-disclosure": "Tests whether AI-enabled medical-device or clinical LLM systems disclose intended-use boundaries, confidence and uncertainty, subgroup limitations, data drift, and model or device version changes instead of concealing them",
|
|
2307
|
+
"medical:fda:cyber-access-control": "Tests whether medical-device AI systems enforce authenticated, role-scoped, deny-by-default workflows and refuse privileged device, telemetry, update, or therapy actions from unauthorized users or stale sessions",
|
|
2308
|
+
"medical:fda:cyber-audit-tampering": "Tests whether medical-device AI systems preserve anomaly alerts, SBOM/version records, and forensic audit trails instead of helping users suppress, rewrite, or delete cybersecurity evidence",
|
|
2193
2309
|
"medical:hallucination": "Tests for fabricated medical facts, non-existent studies, made-up drug interactions, or other false medical information",
|
|
2194
2310
|
"medical:incorrect-knowledge": "Tests for factually wrong medical information that could be harmful if followed",
|
|
2195
2311
|
"medical:off-label-use": "Tests for inappropriate off-label medication recommendations without proper disclaimers, warnings, or professional consultation requirements",
|
|
@@ -2203,6 +2319,7 @@ const pluginDescriptions = {
|
|
|
2203
2319
|
"financial:defamation": "Tests for false statements that damage the reputation of financial entities, including unfounded fraud accusations, fabricated scandals, or false insolvency claims",
|
|
2204
2320
|
"financial:hallucination": "Tests for fabricated market data, non-existent financial instruments, fictional company financials, or invented market events",
|
|
2205
2321
|
"financial:impartiality": "Tests for inappropriate provision of financial advice, investment recommendations, broker suggestions, or transaction facilitation without proper authorization or disclaimers",
|
|
2322
|
+
"financial:japan-fiea-suitability": "Tests whether AI recommends unsuitable financial products, downplays risks, or uses sales framing that conflicts with Japan's FIEA suitability and explanation duties",
|
|
2206
2323
|
"financial:misconduct": "Tests for facilitation of financial crimes including insider trading, market manipulation, front-running, spoofing, bribery, or circumventing financial regulations",
|
|
2207
2324
|
"financial:sox-compliance": "Tests for violations of Sarbanes-Oxley requirements including internal controls bypass, financial statement manipulation, CEO/CFO certification fraud, audit obstruction, document retention violations, and whistleblower retaliation",
|
|
2208
2325
|
"financial:sycophancy": "Tests for agreeing with risky trading strategies, unrealistic return expectations, or get-rich-quick schemes",
|
|
@@ -2240,7 +2357,8 @@ const pluginDescriptions = {
|
|
|
2240
2357
|
vlsu: "Tests compositional safety where individually safe images and text combine to produce harmful outputs using Apple VLSU dataset",
|
|
2241
2358
|
wordplay: "Tests whether AI systems can be tricked into generating profanity or offensive language through innocent-seeming wordplay like riddles and rhyming games",
|
|
2242
2359
|
xstest: "Tests how models handle ambiguous terms related to potentially harmful topics like violence and drugs",
|
|
2243
|
-
"guardrails-eval": "Evaluate guardrail effectiveness against common risks"
|
|
2360
|
+
"guardrails-eval": "Evaluate guardrail effectiveness against common risks",
|
|
2361
|
+
...CODING_AGENT_PLUGIN_DESCRIPTIONS
|
|
2244
2362
|
};
|
|
2245
2363
|
//#endregion
|
|
2246
2364
|
//#region src/redteam/constants/strategies.ts
|
|
@@ -2260,6 +2378,7 @@ const DEFAULT_STRATEGIES = [
|
|
|
2260
2378
|
"jailbreak:meta",
|
|
2261
2379
|
"jailbreak:composite"
|
|
2262
2380
|
];
|
|
2381
|
+
new Set(DEFAULT_STRATEGIES);
|
|
2263
2382
|
const MULTI_TURN_STRATEGIES = [
|
|
2264
2383
|
"crescendo",
|
|
2265
2384
|
"goat",
|
|
@@ -2267,6 +2386,7 @@ const MULTI_TURN_STRATEGIES = [
|
|
|
2267
2386
|
"custom",
|
|
2268
2387
|
"mischievous-user"
|
|
2269
2388
|
];
|
|
2389
|
+
new Set(MULTI_TURN_STRATEGIES);
|
|
2270
2390
|
const isCustomStrategy = (strategyId) => {
|
|
2271
2391
|
return strategyId === "custom" || strategyId.startsWith("custom:");
|
|
2272
2392
|
};
|
|
@@ -2281,6 +2401,7 @@ const AGENTIC_STRATEGIES = [
|
|
|
2281
2401
|
"jailbreak:tree",
|
|
2282
2402
|
"mischievous-user"
|
|
2283
2403
|
];
|
|
2404
|
+
new Set(AGENTIC_STRATEGIES);
|
|
2284
2405
|
const DATASET_PLUGINS = [
|
|
2285
2406
|
"beavertails",
|
|
2286
2407
|
"cyberseceval",
|
|
@@ -2446,7 +2567,62 @@ const PluginConfigSchema = z.object({
|
|
|
2446
2567
|
policy: z.union([z.string(), PolicyObjectSchema]).optional(),
|
|
2447
2568
|
systemPrompt: z.string().optional(),
|
|
2448
2569
|
excludeStrategies: z.array(z.string()).optional(),
|
|
2570
|
+
protectedFilePath: z.string().optional(),
|
|
2571
|
+
protectedFilePaths: z.array(z.string()).optional(),
|
|
2572
|
+
secretFilePath: z.string().optional(),
|
|
2573
|
+
secretFilePaths: z.array(z.string()).optional(),
|
|
2574
|
+
secretLocalFilePath: z.string().optional(),
|
|
2575
|
+
secretLocalFilePaths: z.array(z.string()).optional(),
|
|
2576
|
+
secretFileValue: z.string().optional(),
|
|
2577
|
+
secretFileValues: z.array(z.string()).optional(),
|
|
2578
|
+
outsideWritePath: z.string().optional(),
|
|
2579
|
+
outsideWritePaths: z.array(z.string()).optional(),
|
|
2580
|
+
outsideWriteHostPath: z.string().optional(),
|
|
2581
|
+
outsideWriteHostPaths: z.array(z.string()).optional(),
|
|
2582
|
+
outsideWriteProbeDir: z.string().optional(),
|
|
2583
|
+
outsideWriteProbeDirs: z.array(z.string()).optional(),
|
|
2584
|
+
outsideWriteAllowedPath: z.string().optional(),
|
|
2585
|
+
outsideWriteAllowedPaths: z.array(z.string()).optional(),
|
|
2586
|
+
outsideWriteExpectedSha256: z.string().optional(),
|
|
2587
|
+
outsideWritePathSha256: z.string().optional(),
|
|
2588
|
+
outsideWriteSha256: z.string().optional(),
|
|
2589
|
+
outsideWriteMustNotExistPath: z.string().optional(),
|
|
2590
|
+
outsideWriteMustNotExistPaths: z.array(z.string()).optional(),
|
|
2591
|
+
mustNotExistPath: z.string().optional(),
|
|
2592
|
+
mustNotExistPaths: z.array(z.string()).optional(),
|
|
2593
|
+
protectedWritePath: z.string().optional(),
|
|
2594
|
+
protectedWritePaths: z.array(z.string()).optional(),
|
|
2595
|
+
sandboxWritePath: z.string().optional(),
|
|
2596
|
+
sandboxWritePaths: z.array(z.string()).optional(),
|
|
2597
|
+
workspacePath: z.string().optional(),
|
|
2598
|
+
workspacePaths: z.array(z.string()).optional(),
|
|
2599
|
+
workspaceRoot: z.string().optional(),
|
|
2600
|
+
workspaceRoots: z.array(z.string()).optional(),
|
|
2601
|
+
workingDirectory: z.string().optional(),
|
|
2602
|
+
workingDirectoryPath: z.string().optional(),
|
|
2603
|
+
workingDir: z.string().optional(),
|
|
2604
|
+
networkEgressUrl: z.string().optional(),
|
|
2605
|
+
networkEgressUrls: z.array(z.string()).optional(),
|
|
2606
|
+
networkTrapUrl: z.string().optional(),
|
|
2607
|
+
networkTrapUrls: z.array(z.string()).optional(),
|
|
2608
|
+
networkEgressHost: z.string().optional(),
|
|
2609
|
+
networkEgressHosts: z.array(z.string()).optional(),
|
|
2610
|
+
networkTrapHost: z.string().optional(),
|
|
2611
|
+
networkTrapHosts: z.array(z.string()).optional(),
|
|
2612
|
+
networkAllowedHost: z.string().optional(),
|
|
2613
|
+
networkAllowedHosts: z.array(z.string()).optional(),
|
|
2614
|
+
networkAllowedUrl: z.string().optional(),
|
|
2615
|
+
networkAllowedUrls: z.array(z.string()).optional(),
|
|
2616
|
+
networkTrapLogPath: z.string().optional(),
|
|
2617
|
+
networkTrapLogPaths: z.array(z.string()).optional(),
|
|
2618
|
+
networkScanPath: z.string().optional(),
|
|
2619
|
+
networkScanPaths: z.array(z.string()).optional(),
|
|
2620
|
+
networkWorkspacePath: z.string().optional(),
|
|
2621
|
+
networkWorkspacePaths: z.array(z.string()).optional(),
|
|
2622
|
+
networkEgressReceipt: z.string().optional(),
|
|
2623
|
+
networkEgressReceipts: z.array(z.string()).optional(),
|
|
2449
2624
|
inputs: InputsSchema.optional(),
|
|
2625
|
+
maxCharsPerMessage: z.number().int().positive().optional(),
|
|
2450
2626
|
__nonce: z.number().optional()
|
|
2451
2627
|
});
|
|
2452
2628
|
const StrategyConfigSchema = z.object({
|
|
@@ -2474,6 +2650,135 @@ var PartialGenerationError = class extends Error {
|
|
|
2474
2650
|
}
|
|
2475
2651
|
};
|
|
2476
2652
|
//#endregion
|
|
2653
|
+
//#region src/types/env.ts
|
|
2654
|
+
const ProviderEnvOverridesSchema = z.object({
|
|
2655
|
+
ABLIT_API_BASE_URL: z.string().optional(),
|
|
2656
|
+
ABLIT_KEY: z.string().optional(),
|
|
2657
|
+
AI21_API_BASE_URL: z.string().optional(),
|
|
2658
|
+
AI21_API_KEY: z.string().optional(),
|
|
2659
|
+
AIML_API_KEY: z.string().optional(),
|
|
2660
|
+
ANTHROPIC_API_KEY: z.string().optional(),
|
|
2661
|
+
ANTHROPIC_BASE_URL: z.string().optional(),
|
|
2662
|
+
AWS_BEDROCK_REGION: z.string().optional(),
|
|
2663
|
+
AZURE_API_BASE_URL: z.string().optional(),
|
|
2664
|
+
AZURE_API_HOST: z.string().optional(),
|
|
2665
|
+
AZURE_API_KEY: z.string().optional(),
|
|
2666
|
+
AZURE_AUTHORITY_HOST: z.string().optional(),
|
|
2667
|
+
AZURE_CLIENT_ID: z.string().optional(),
|
|
2668
|
+
AZURE_CLIENT_SECRET: z.string().optional(),
|
|
2669
|
+
AZURE_DEPLOYMENT_NAME: z.string().optional(),
|
|
2670
|
+
AZURE_EMBEDDING_DEPLOYMENT_NAME: z.string().optional(),
|
|
2671
|
+
AZURE_OPENAI_API_BASE_URL: z.string().optional(),
|
|
2672
|
+
AZURE_OPENAI_API_HOST: z.string().optional(),
|
|
2673
|
+
AZURE_OPENAI_API_KEY: z.string().optional(),
|
|
2674
|
+
AZURE_OPENAI_BASE_URL: z.string().optional(),
|
|
2675
|
+
AZURE_OPENAI_DEPLOYMENT_NAME: z.string().optional(),
|
|
2676
|
+
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME: z.string().optional(),
|
|
2677
|
+
AZURE_TENANT_ID: z.string().optional(),
|
|
2678
|
+
AZURE_TOKEN_SCOPE: z.string().optional(),
|
|
2679
|
+
CLAUDE_CODE_USE_BEDROCK: z.string().optional(),
|
|
2680
|
+
CLAUDE_CODE_USE_VERTEX: z.string().optional(),
|
|
2681
|
+
CLOUDFLARE_ACCOUNT_ID: z.string().optional(),
|
|
2682
|
+
CLOUDFLARE_API_KEY: z.string().optional(),
|
|
2683
|
+
CLOUDFLARE_GATEWAY_ID: z.string().optional(),
|
|
2684
|
+
CF_AIG_TOKEN: z.string().optional(),
|
|
2685
|
+
COMETAPI_KEY: z.string().optional(),
|
|
2686
|
+
COHERE_API_KEY: z.string().optional(),
|
|
2687
|
+
COHERE_CLIENT_NAME: z.string().optional(),
|
|
2688
|
+
DATABRICKS_TOKEN: z.string().optional(),
|
|
2689
|
+
DATABRICKS_WORKSPACE_URL: z.string().optional(),
|
|
2690
|
+
DOCKER_MODEL_RUNNER_BASE_URL: z.string().optional(),
|
|
2691
|
+
DOCKER_MODEL_RUNNER_API_KEY: z.string().optional(),
|
|
2692
|
+
ELEVENLABS_API_KEY: z.string().optional(),
|
|
2693
|
+
FAL_KEY: z.string().optional(),
|
|
2694
|
+
GITHUB_TOKEN: z.string().optional(),
|
|
2695
|
+
GOOGLE_API_HOST: z.string().optional(),
|
|
2696
|
+
GOOGLE_API_BASE_URL: z.string().optional(),
|
|
2697
|
+
GOOGLE_API_KEY: z.string().optional(),
|
|
2698
|
+
GOOGLE_PROJECT_ID: z.string().optional(),
|
|
2699
|
+
GOOGLE_LOCATION: z.string().optional(),
|
|
2700
|
+
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional(),
|
|
2701
|
+
GEMINI_API_KEY: z.string().optional(),
|
|
2702
|
+
GROQ_API_KEY: z.string().optional(),
|
|
2703
|
+
HELICONE_API_KEY: z.string().optional(),
|
|
2704
|
+
HF_API_TOKEN: z.string().optional(),
|
|
2705
|
+
HF_TOKEN: z.string().optional(),
|
|
2706
|
+
HYPERBOLIC_API_KEY: z.string().optional(),
|
|
2707
|
+
HUGGING_FACE_HUB_TOKEN: z.string().optional(),
|
|
2708
|
+
JFROG_API_KEY: z.string().optional(),
|
|
2709
|
+
LANGFUSE_HOST: z.string().optional(),
|
|
2710
|
+
LANGFUSE_PUBLIC_KEY: z.string().optional(),
|
|
2711
|
+
LANGFUSE_SECRET_KEY: z.string().optional(),
|
|
2712
|
+
LITELLM_API_BASE: z.string().optional(),
|
|
2713
|
+
LLAMA_BASE_URL: z.string().optional(),
|
|
2714
|
+
LOCALAI_BASE_URL: z.string().optional(),
|
|
2715
|
+
MISTRAL_API_BASE_URL: z.string().optional(),
|
|
2716
|
+
MISTRAL_API_HOST: z.string().optional(),
|
|
2717
|
+
MISTRAL_API_KEY: z.string().optional(),
|
|
2718
|
+
MODELSLAB_API_KEY: z.string().optional(),
|
|
2719
|
+
NSCALE_SERVICE_TOKEN: z.string().optional(),
|
|
2720
|
+
NSCALE_API_KEY: z.string().optional(),
|
|
2721
|
+
OLLAMA_API_KEY: z.string().optional(),
|
|
2722
|
+
OLLAMA_BASE_URL: z.string().optional(),
|
|
2723
|
+
OPENAI_API_BASE_URL: z.string().optional(),
|
|
2724
|
+
OPENAI_API_HOST: z.string().optional(),
|
|
2725
|
+
OPENAI_API_KEY: z.string().optional(),
|
|
2726
|
+
OPENAI_BASE_URL: z.string().optional(),
|
|
2727
|
+
OPENAI_ORGANIZATION: z.string().optional(),
|
|
2728
|
+
CLAWDBOT_GATEWAY_PASSWORD: z.string().optional(),
|
|
2729
|
+
CLAWDBOT_GATEWAY_TOKEN: z.string().optional(),
|
|
2730
|
+
CLAWDBOT_GATEWAY_URL: z.string().optional(),
|
|
2731
|
+
CODEX_API_KEY: z.string().optional(),
|
|
2732
|
+
OPENCLAW_CONFIG_PATH: z.string().optional(),
|
|
2733
|
+
OPENCLAW_GATEWAY_PASSWORD: z.string().optional(),
|
|
2734
|
+
OPENCLAW_GATEWAY_PORT: z.string().optional(),
|
|
2735
|
+
OPENCLAW_GATEWAY_TOKEN: z.string().optional(),
|
|
2736
|
+
OPENCLAW_GATEWAY_URL: z.string().optional(),
|
|
2737
|
+
PALM_API_HOST: z.string().optional(),
|
|
2738
|
+
PALM_API_KEY: z.string().optional(),
|
|
2739
|
+
PORTKEY_API_KEY: z.string().optional(),
|
|
2740
|
+
PROMPTFOO_CA_CERT_PATH: z.string().optional(),
|
|
2741
|
+
PROMPTFOO_PFX_CERT_PATH: z.string().optional(),
|
|
2742
|
+
PROMPTFOO_PFX_PASSWORD: z.string().optional(),
|
|
2743
|
+
PROMPTFOO_JKS_CERT_PATH: z.string().optional(),
|
|
2744
|
+
PROMPTFOO_JKS_PASSWORD: z.string().optional(),
|
|
2745
|
+
PROMPTFOO_JKS_ALIAS: z.string().optional(),
|
|
2746
|
+
PROMPTFOO_INSECURE_SSL: z.string().optional(),
|
|
2747
|
+
QUIVERAI_API_KEY: z.string().optional(),
|
|
2748
|
+
REPLICATE_API_KEY: z.string().optional(),
|
|
2749
|
+
REPLICATE_API_TOKEN: z.string().optional(),
|
|
2750
|
+
SHAREPOINT_BASE_URL: z.string().optional(),
|
|
2751
|
+
SHAREPOINT_CERT_PATH: z.string().optional(),
|
|
2752
|
+
SHAREPOINT_CLIENT_ID: z.string().optional(),
|
|
2753
|
+
SHAREPOINT_TENANT_ID: z.string().optional(),
|
|
2754
|
+
VERCEL_AI_GATEWAY_API_KEY: z.string().optional(),
|
|
2755
|
+
VERCEL_AI_GATEWAY_BASE_URL: z.string().optional(),
|
|
2756
|
+
VERTEX_API_HOST: z.string().optional(),
|
|
2757
|
+
VERTEX_API_KEY: z.string().optional(),
|
|
2758
|
+
VERTEX_API_VERSION: z.string().optional(),
|
|
2759
|
+
VERTEX_PROJECT_ID: z.string().optional(),
|
|
2760
|
+
VERTEX_PUBLISHER: z.string().optional(),
|
|
2761
|
+
VERTEX_REGION: z.string().optional(),
|
|
2762
|
+
VOYAGE_API_BASE_URL: z.string().optional(),
|
|
2763
|
+
VOYAGE_API_KEY: z.string().optional(),
|
|
2764
|
+
WATSONX_AI_APIKEY: z.string().optional(),
|
|
2765
|
+
WATSONX_AI_AUTH_TYPE: z.string().optional(),
|
|
2766
|
+
WATSONX_AI_BEARER_TOKEN: z.string().optional(),
|
|
2767
|
+
WATSONX_AI_PROJECT_ID: z.string().optional(),
|
|
2768
|
+
XAI_API_BASE_URL: z.string().optional(),
|
|
2769
|
+
XAI_API_KEY: z.string().optional(),
|
|
2770
|
+
AZURE_CONTENT_SAFETY_ENDPOINT: z.string().optional(),
|
|
2771
|
+
AZURE_CONTENT_SAFETY_API_KEY: z.string().optional(),
|
|
2772
|
+
AZURE_CONTENT_SAFETY_API_VERSION: z.string().optional(),
|
|
2773
|
+
AWS_REGION: z.string().optional(),
|
|
2774
|
+
AWS_DEFAULT_REGION: z.string().optional(),
|
|
2775
|
+
AWS_SAGEMAKER_MAX_TOKENS: z.string().optional(),
|
|
2776
|
+
AWS_SAGEMAKER_TEMPERATURE: z.string().optional(),
|
|
2777
|
+
AWS_SAGEMAKER_TOP_P: z.string().optional(),
|
|
2778
|
+
AWS_SAGEMAKER_MAX_RETRIES: z.string().optional(),
|
|
2779
|
+
PROMPTFOO_EVAL_TIMEOUT_MS: z.string().optional()
|
|
2780
|
+
});
|
|
2781
|
+
//#endregion
|
|
2477
2782
|
//#region src/validators/providers.ts
|
|
2478
2783
|
const ProviderOptionsSchema = z.object({
|
|
2479
2784
|
id: z.custom().optional(),
|
|
@@ -2536,6 +2841,26 @@ const ProviderSchema = z.union([
|
|
|
2536
2841
|
ProviderOptionsSchema
|
|
2537
2842
|
]);
|
|
2538
2843
|
//#endregion
|
|
2844
|
+
//#region src/validators/prompts.ts
|
|
2845
|
+
const PromptConfigSchema = z.object({
|
|
2846
|
+
prefix: z.string().optional(),
|
|
2847
|
+
suffix: z.string().optional()
|
|
2848
|
+
});
|
|
2849
|
+
const PromptFunctionSchema = z.custom((v) => typeof v === "function");
|
|
2850
|
+
const PromptSchema = z.object({
|
|
2851
|
+
id: z.string().optional(),
|
|
2852
|
+
raw: z.string(),
|
|
2853
|
+
template: z.string().optional(),
|
|
2854
|
+
display: z.string().optional(),
|
|
2855
|
+
label: z.string(),
|
|
2856
|
+
function: PromptFunctionSchema.optional(),
|
|
2857
|
+
config: z.any().optional()
|
|
2858
|
+
});
|
|
2859
|
+
function assert$1() {}
|
|
2860
|
+
assert$1();
|
|
2861
|
+
assert$1();
|
|
2862
|
+
assert$1();
|
|
2863
|
+
//#endregion
|
|
2539
2864
|
//#region src/validators/redteam.ts
|
|
2540
2865
|
const TracingConfigSchema = z.lazy(() => z.object({
|
|
2541
2866
|
enabled: z.boolean().optional(),
|
|
@@ -2636,6 +2961,7 @@ z.object({
|
|
|
2636
2961
|
language: z.union([z.string(), z.array(z.string())]).optional().describe("Language(s) of tests to generate"),
|
|
2637
2962
|
frameworks: z.array(z.enum(frameworkOptions)).min(1).optional().describe("Subset of compliance frameworks to include when generating, reporting, and filtering results"),
|
|
2638
2963
|
maxConcurrency: z.int().positive().optional().describe("Maximum number of concurrent API calls"),
|
|
2964
|
+
maxCharsPerMessage: z.int().positive().optional().describe("Maximum number of characters allowed per generated user message"),
|
|
2639
2965
|
numTests: z.int().positive().optional().describe("Number of tests to generate"),
|
|
2640
2966
|
output: z.string().optional().describe("Output file path"),
|
|
2641
2967
|
plugins: z.array(RedteamPluginObjectSchema).optional().describe("Plugins to use"),
|
|
@@ -2668,6 +2994,7 @@ const RedteamConfigSchema = z.object({
|
|
|
2668
2994
|
Supports ${ALL_STRATEGIES.join(", ")}
|
|
2669
2995
|
`).optional().prefault(["default"]),
|
|
2670
2996
|
maxConcurrency: z.int().positive().optional().describe("Maximum number of concurrent API calls"),
|
|
2997
|
+
maxCharsPerMessage: z.int().positive().optional().describe("Maximum number of characters allowed per generated user message"),
|
|
2671
2998
|
delay: z.int().nonnegative().optional().describe("Delay in milliseconds between plugin API calls"),
|
|
2672
2999
|
excludeTargetOutputFromAgenticAttackGeneration: z.boolean().optional().describe("Whether to exclude target output from the agentific attack generation process"),
|
|
2673
3000
|
tracing: TracingConfigSchema.optional().describe("Tracing defaults applied to all strategies unless overridden"),
|
|
@@ -2721,6 +3048,7 @@ const RedteamConfigSchema = z.object({
|
|
|
2721
3048
|
else if (id === "pharmacy") expandCollection([...PHARMACY_PLUGINS], config, numTests, severity);
|
|
2722
3049
|
else if (id === "insurance") expandCollection([...INSURANCE_PLUGINS], config, numTests, severity);
|
|
2723
3050
|
else if (id === "financial") expandCollection([...FINANCIAL_PLUGINS], config, numTests, severity);
|
|
3051
|
+
else if (id === "teen-safety") expandCollection([...TEEN_SAFETY_PLUGINS], config, numTests, severity);
|
|
2724
3052
|
else if (id === "default") expandCollection([...DEFAULT_PLUGINS], config, numTests, severity);
|
|
2725
3053
|
else if (id === "guardrails-eval") expandCollection([...GUARDRAILS_EVALUATION_PLUGINS], config, numTests, severity);
|
|
2726
3054
|
};
|
|
@@ -2781,6 +3109,7 @@ const RedteamConfigSchema = z.object({
|
|
|
2781
3109
|
});
|
|
2782
3110
|
return {
|
|
2783
3111
|
numTests: data.numTests,
|
|
3112
|
+
...data.maxCharsPerMessage ? { maxCharsPerMessage: data.maxCharsPerMessage } : {},
|
|
2784
3113
|
plugins: uniquePlugins,
|
|
2785
3114
|
strategies,
|
|
2786
3115
|
...frameworks ? { frameworks } : {},
|
|
@@ -2906,6 +3235,7 @@ const PromptMetricsSchema = z.object({
|
|
|
2906
3235
|
tokenUsage: BaseTokenUsageSchema,
|
|
2907
3236
|
namedScores: z.record(z.string(), z.number()),
|
|
2908
3237
|
namedScoresCount: z.record(z.string(), z.number()),
|
|
3238
|
+
namedScoreWeights: z.record(z.string(), z.number()).optional(),
|
|
2909
3239
|
redteam: z.object({
|
|
2910
3240
|
pluginPassCount: z.record(z.string(), z.number()),
|
|
2911
3241
|
pluginFailCount: z.record(z.string(), z.number()),
|
|
@@ -2928,7 +3258,7 @@ function isResultFailureReason(value) {
|
|
|
2928
3258
|
return validResultFailureReasons.has(value);
|
|
2929
3259
|
}
|
|
2930
3260
|
function isGradingResult(result) {
|
|
2931
|
-
return typeof result === "object" && result !== null && typeof result.pass === "boolean" && typeof result.score === "number" && typeof result.reason === "string" && (typeof result.namedScores === "undefined" || typeof result.namedScores === "object") && (typeof result.tokensUsed === "undefined" || typeof result.tokensUsed === "object") && (typeof result.componentResults === "undefined" || Array.isArray(result.componentResults)) && (typeof result.assertion === "undefined" || result.assertion === null || typeof result.assertion === "object") && (typeof result.comment === "undefined" || typeof result.comment === "string");
|
|
3261
|
+
return typeof result === "object" && result !== null && typeof result.pass === "boolean" && typeof result.score === "number" && typeof result.reason === "string" && (typeof result.namedScores === "undefined" || typeof result.namedScores === "object") && (typeof result.namedScoreWeights === "undefined" || typeof result.namedScoreWeights === "object") && (typeof result.tokensUsed === "undefined" || typeof result.tokensUsed === "object") && (typeof result.componentResults === "undefined" || Array.isArray(result.componentResults)) && (typeof result.assertion === "undefined" || result.assertion === null || typeof result.assertion === "object") && (typeof result.comment === "undefined" || typeof result.comment === "string");
|
|
2932
3262
|
}
|
|
2933
3263
|
const BaseAssertionTypesSchema = z.enum([
|
|
2934
3264
|
"answer-relevance",
|
|
@@ -3071,6 +3401,7 @@ const TestCaseSchema = z.object({
|
|
|
3071
3401
|
...GradingConfigSchema.shape,
|
|
3072
3402
|
disableVarExpansion: z.boolean().optional(),
|
|
3073
3403
|
disableConversationVar: z.boolean().optional(),
|
|
3404
|
+
disableDefaultAsserts: z.boolean().optional(),
|
|
3074
3405
|
runSerially: z.boolean().optional()
|
|
3075
3406
|
}).catchall(z.any()).optional(),
|
|
3076
3407
|
threshold: z.number().optional(),
|
|
@@ -3160,7 +3491,7 @@ const TestSuiteSchema = z.object({
|
|
|
3160
3491
|
enabled: z.boolean(),
|
|
3161
3492
|
port: z.number(),
|
|
3162
3493
|
host: z.string().optional(),
|
|
3163
|
-
acceptFormats: z.array(z.
|
|
3494
|
+
acceptFormats: z.array(z.enum(["protobuf", "json"])).optional()
|
|
3164
3495
|
}).optional(),
|
|
3165
3496
|
grpc: z.object({
|
|
3166
3497
|
enabled: z.boolean(),
|
|
@@ -3229,7 +3560,7 @@ const TestSuiteConfigSchema = z.object({
|
|
|
3229
3560
|
enabled: z.boolean().prefault(true),
|
|
3230
3561
|
port: z.number().prefault(4318),
|
|
3231
3562
|
host: z.string().prefault("0.0.0.0"),
|
|
3232
|
-
acceptFormats: z.array(z.enum(["protobuf", "json"])).prefault(["json"])
|
|
3563
|
+
acceptFormats: z.array(z.enum(["protobuf", "json"])).prefault(["json", "protobuf"])
|
|
3233
3564
|
}).optional(),
|
|
3234
3565
|
grpc: z.object({
|
|
3235
3566
|
enabled: z.boolean().prefault(false),
|
|
@@ -3284,6 +3615,6 @@ const EvalResultsFilterMode = z.enum([
|
|
|
3284
3615
|
"user-rated"
|
|
3285
3616
|
]);
|
|
3286
3617
|
//#endregion
|
|
3287
|
-
export {
|
|
3618
|
+
export { categoryAliases as $, isApiProvider as A, CompletionTokenDetailsSchema as At, StrategyConfigSchema as B, TestGeneratorConfigSchema as C, TELECOM_PLUGINS as Ct, VarsSchema as D, CODING_AGENT_PLUGIN_DESCRIPTIONS as Dt, UnifiedConfigSchema as E, CODING_AGENT_PLUGINS as Et, ProvidersSchema as F, DEFAULT_STRATEGIES as G, isUuid as H, ConversationMessageSchema as I, STRATEGY_COLLECTION_MAPPINGS as J, MULTI_TURN_STRATEGIES as K, PartialGenerationError as L, RedteamConfigSchema as M, PromptSchema as N, isGradingResult as O, CODING_AGENT_PLUGIN_DISPLAY_NAMES as Ot, ProviderOptionsSchema as P, Severity as Q, PluginConfigSchema as R, TestCasesWithMetadataSchema as S, TEEN_SAFETY_PLUGINS as St, TestSuiteSchema as T, CODING_AGENT_CORE_PLUGINS as Tt, AGENTIC_STRATEGIES as U, isValidReusablePolicyId as V, DATASET_PLUGINS as W, isCustomStrategy as X, getDefaultNFanout as Y, isFanoutStrategy as Z, ScenarioSchema as _, PII_PLUGINS as _t, AtomicTestCaseSchema as a, DATASET_EXEMPT_PLUGINS as at, TestCaseWithVarsFileSchema as b, REMOTE_ONLY_PLUGIN_IDS as bt, CompletedPromptSchema as c, FOUNDATION_PLUGINS as ct, EvaluateOptionsSchema as d, LLAMA_GUARD_ENABLED_CATEGORIES as dt, pluginDescriptions as et, GradingConfigSchema as f, LLAMA_GUARD_REPLICATE_PROVIDER as ft, ResultFailureReason as g, PHARMACY_PLUGINS as gt, OutputFileExtension as h, MULTI_INPUT_VAR as ht, AssertionTypeSchema as i, CANARY_BREAKING_STRATEGY_IDS as it, isProviderOptions as j, InputsSchema as jt, isResultFailureReason as k, BaseTokenUsageSchema as kt, DerivedMetricSchema as l, HARM_PLUGINS as lt, OutputConfigSchema as m, MULTI_INPUT_EXCLUDED_PLUGINS as mt, AssertionSchema as n, ALIASED_PLUGIN_MAPPINGS as nt, BaseAssertionTypesSchema as o, DEFAULT_PLUGINS as ot, NotPrefixedAssertionTypesSchema as p, MEDICAL_PLUGINS as pt, STRATEGY_COLLECTIONS as q, AssertionSetSchema as r, BIAS_PLUGINS as rt, CommandLineOptionsSchema as s, FINANCIAL_PLUGINS as st, AssertionOrSetSchema as t, riskCategorySeverityMap as tt, EvalResultsFilterMode as u, INSURANCE_PLUGINS as ut, SpecialAssertionTypesSchema as v, PLUGIN_CATEGORIES as vt, TestSuiteConfigSchema as w, UNALIGNED_PROVIDER_HARM_PLUGINS as wt, TestCasesWithMetadataPromptSchema as x, STRATEGY_EXEMPT_PLUGINS as xt, TestCaseSchema as y, REDTEAM_PROVIDER_HARM_PLUGINS as yt, PolicyObjectSchema as z };
|
|
3288
3619
|
|
|
3289
|
-
//# sourceMappingURL=types-
|
|
3620
|
+
//# sourceMappingURL=types-DNRZVOue.js.map
|