promptfoo 0.121.8 → 0.121.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/{accounts-DAv_0iE7.js → accounts-4Xa5fcHy.js} +17 -18
- package/dist/src/{accounts-BWjqwsrf.js → accounts-BAajbKSh.js} +17 -18
- package/dist/src/{accounts-D6IBfEE0.js → accounts-Bw2qPqE-.js} +18 -19
- package/dist/src/{accounts-BVz5gHLK.cjs → accounts-DAcQXPwE.cjs} +20 -21
- package/dist/src/{agentic-utils-C-A92xhn.cjs → agentic-utils-C8eEgGG-.cjs} +3 -3
- package/dist/src/{agentic-utils-DmoS_S4B.js → agentic-utils-CP1IXFz3.js} +3 -3
- package/dist/src/{agentic-utils-BJKAkz2e.js → agentic-utils-CUwa3AE9.js} +3 -3
- package/dist/src/{agentic-utils-GdToujHu.js → agentic-utils-DYr-aM6d.js} +3 -3
- package/dist/src/{agents-2C8NN6I1.js → agents-Bb00M6i5.js} +5 -5
- package/dist/src/{agents-C98cz5pl.js → agents-CASf5zRj.js} +5 -5
- package/dist/src/{agents-DB8Ub2Ld.cjs → agents-CD1wH9bm.cjs} +5 -5
- package/dist/src/{agents-BMAiSR2o.js → agents-CZOHU7Q8.js} +5 -5
- package/dist/src/{agents-C-PGaxwj.js → agents-D539zhHr.js} +5 -5
- package/dist/src/{agents-Dwshy2H8.js → agents-DpRJdGBZ.js} +5 -5
- package/dist/src/{agents-mlKjx-cK.js → agents-gZTW-8nu.js} +5 -5
- package/dist/src/{agents-n2ej-c4H.cjs → agents-hix6c0Sh.cjs} +5 -5
- package/dist/src/{aimlapi-WyUK0wYy.js → aimlapi-DRQSL-Z4.js} +7 -7
- package/dist/src/{aimlapi-Bi-laUlp.js → aimlapi-Dc3LW5zI.js} +7 -7
- package/dist/src/{aimlapi-v-63ZjEI.js → aimlapi-KNYnjjU6.js} +7 -7
- package/dist/src/{aimlapi-D0OFV4Vj.cjs → aimlapi-gnrgd_Ej.cjs} +7 -7
- package/dist/src/app/assets/Report-Clw_YCp-.js +1 -0
- package/dist/src/app/assets/index-BQHaquKk.css +1 -0
- package/dist/src/app/assets/{index-BopgkZEh.js → index-CW3XcQK7.js} +6 -6
- package/dist/src/app/index.html +2 -2
- package/dist/src/{audio-x44tsxIo.cjs → audio-BgFTqfMO.cjs} +5 -5
- package/dist/src/{audio-heR0mu0n.js → audio-Cslbgd4l.js} +5 -5
- package/dist/src/{audio-DnEIHWZR.js → audio-DOI8kth4.js} +5 -5
- package/dist/src/{audio-wafFO1wn.js → audio-hewMOCUU.js} +5 -5
- package/dist/src/{authoritativeMarkupInjection-81PPynHR.js → authoritativeMarkupInjection-DgE4u_Rl.js} +8 -8
- package/dist/src/{authoritativeMarkupInjection-D9O70HPi.js → authoritativeMarkupInjection-gpm2K-Rp.js} +8 -8
- package/dist/src/{authoritativeMarkupInjection-PxSf3Rh8.js → authoritativeMarkupInjection-nrC4mSPQ.js} +7 -7
- package/dist/src/{authoritativeMarkupInjection-2G3Be6oL.cjs → authoritativeMarkupInjection-wG4x0yP2.cjs} +8 -8
- package/dist/src/{base-0Gzzue9Z.js → base-0yya4DsM.js} +3 -3
- package/dist/src/{base-Bp4c52YZ.js → base-BARAIJmp.js} +3 -3
- package/dist/src/{base-BzdS8tod.cjs → base-BE_pY-r5.cjs} +3 -3
- package/dist/src/{base-BuNn-YBX.js → base-CTWzNAH9.js} +3 -3
- package/dist/src/{bestOfN-CdkNPPbX.js → bestOfN-CV7ZKPw2.js} +8 -8
- package/dist/src/{bestOfN-BHiOjeaq.js → bestOfN-DeucA4QS.js} +9 -9
- package/dist/src/{bestOfN-DWwXEg1h.cjs → bestOfN-DxcpVUvj.cjs} +9 -9
- package/dist/src/{bestOfN-ClUSOhN0.js → bestOfN-Ilxc2hMv.js} +9 -9
- package/dist/src/{blobs-B0977K1O.cjs → blobs-5wbW7TbH.cjs} +3 -3
- package/dist/src/{blobs-Dwef1Ao1.js → blobs-BfIMflt0.js} +3 -3
- package/dist/src/{blobs-DODuTK-a.js → blobs-CA4gXarv.js} +3 -3
- package/dist/src/{blobs-CeFdPn_T.js → blobs-ikh75MtF.js} +3 -3
- package/dist/src/{cache-BR77mdIR.js → cache-BuudGL4I.js} +5 -5
- package/dist/src/{cache-DdriHsNX.js → cache-CT5D7d_A.js} +4 -4
- package/dist/src/cache-CrL5EYgi.js +3 -0
- package/dist/src/{cache-h5MWOBZI.cjs → cache-WuIsgzMA.cjs} +4 -4
- package/dist/src/{cache-CrioYnaa.js → cache-x9llZxbx.js} +5 -5
- package/dist/src/{chat-g5QLeLOo.js → chat-B5NqvkS_.js} +3 -3
- package/dist/src/{chat-DTdf-J5Q.js → chat-B8lsx0A0.js} +11 -11
- package/dist/src/{chat-Dq3DomYU.cjs → chat-BBlR1h8c.cjs} +3 -3
- package/dist/src/{chat-BBEnnpQk.js → chat-CCtIXezK.js} +11 -11
- package/dist/src/{chat-Bnt7ieO0.js → chat-CZOhFlzV.js} +3 -3
- package/dist/src/{chat-BSos6PvZ.js → chat-CvQMD-mp.js} +11 -11
- package/dist/src/{chat-mTTuUAYb.js → chat-Dh6mb5OL.js} +3 -3
- package/dist/src/{chat-DSyYuTYT.cjs → chat-DkitQHdt.cjs} +11 -11
- package/dist/src/{chatkit-fARZwEfV.js → chatkit-55cAEQb2.js} +4 -4
- package/dist/src/{chatkit-lb6FK02w.js → chatkit-B-uz3x63.js} +4 -4
- package/dist/src/{chatkit-B6DWi70Q.js → chatkit-Dxp6KO70.js} +4 -4
- package/dist/src/{chatkit-BYveR48_.cjs → chatkit-jEtokOVZ.cjs} +4 -4
- package/dist/src/{claude-agent-sdk-BP__YGfK.js → claude-agent-sdk-BVfdeahc.js} +6 -6
- package/dist/src/{claude-agent-sdk-n2XcEclh.cjs → claude-agent-sdk-C0p-RhcW.cjs} +6 -6
- package/dist/src/{claude-agent-sdk-BGUac_kS.js → claude-agent-sdk-DB99Npst.js} +6 -6
- package/dist/src/{claude-agent-sdk-Ddgx5BIQ.js → claude-agent-sdk-DHyrhDUu.js} +6 -6
- package/dist/src/cloud-BA4aLhk0.js +3 -0
- package/dist/src/{cloud-DqF5N1aJ.js → cloud-BbAl8dyj.js} +3 -3
- package/dist/src/{cloudflare-ai-sD26nP6V.js → cloudflare-ai-ChBxkojW.js} +5 -5
- package/dist/src/{cloudflare-ai-BwW8W-w7.js → cloudflare-ai-DDmTDys_.js} +5 -5
- package/dist/src/{cloudflare-ai-DCRGnsyL.cjs → cloudflare-ai-DPlNiC6I.cjs} +5 -5
- package/dist/src/{cloudflare-ai-BGamMotN.js → cloudflare-ai-UsZe6ndv.js} +5 -5
- package/dist/src/{cloudflare-gateway-CCC1DFrC.cjs → cloudflare-gateway-7b-lEtrb.cjs} +4 -4
- package/dist/src/{cloudflare-gateway-2lnOT4qM.js → cloudflare-gateway-Bq5cqiV8.js} +4 -4
- package/dist/src/{cloudflare-gateway-DOghiU6r.js → cloudflare-gateway-C0N-5s62.js} +4 -4
- package/dist/src/{cloudflare-gateway-B1-8KNCt.js → cloudflare-gateway-D5fm-QvC.js} +4 -4
- package/dist/src/{codex-app-server-BWeWamEb.js → codex-app-server-BG5Aphvl.js} +6 -6
- package/dist/src/{codex-app-server-DyQB1P0p.js → codex-app-server-BnPMlcjl.js} +6 -6
- package/dist/src/{codex-app-server-ZQRJSJjU.js → codex-app-server-D6gbvJFw.js} +6 -6
- package/dist/src/{codex-app-server-R9u_G7W9.cjs → codex-app-server-Dl6BLKJn.cjs} +6 -6
- package/dist/src/{codex-sdk-Dio1zJBS.js → codex-sdk-BnRTWAhS.js} +8 -7
- package/dist/src/codex-sdk-CChw5CYU.js +3 -0
- package/dist/src/{codex-sdk-BRPUvJG8.cjs → codex-sdk-Cy1pEjsQ.cjs} +8 -7
- package/dist/src/{codex-sdk-B62H0fe7.js → codex-sdk-D86dT4XV.js} +8 -7
- package/dist/src/{codex-sdk-iEmW1eS2.js → codex-sdk-mgUqOG2C.js} +8 -7
- package/dist/src/{cometapi-C7yWNGqt.js → cometapi-CkOfr271.js} +8 -8
- package/dist/src/{cometapi-sZgBZtbU.cjs → cometapi-EB-Is7jj.cjs} +8 -8
- package/dist/src/{cometapi-CSIi16a0.js → cometapi-gvPhrXNM.js} +8 -8
- package/dist/src/{cometapi--hh7dESS.js → cometapi-sBbQmdfk.js} +8 -8
- package/dist/src/{completion-DUScduXp.js → completion-BoWiFP-D.js} +7 -7
- package/dist/src/{completion-D_2IOAoS.js → completion-C99GFqQE.js} +7 -7
- package/dist/src/{completion-DT8cxo9T.js → completion-CUtdijfr.js} +7 -7
- package/dist/src/{completion-CWtqdn3z.cjs → completion-CkRVjadz.cjs} +7 -7
- package/dist/src/{crescendo-B41TwUHM.js → crescendo-B4EiUJ-M.js} +14 -14
- package/dist/src/{crescendo-DXFB7rHP.cjs → crescendo-BAN6NuWV.cjs} +16 -16
- package/dist/src/{crescendo-DvvYxMLA.js → crescendo-CYzxmaSJ.js} +16 -16
- package/dist/src/{crescendo-Bfic7KC4.js → crescendo-CrsXyaL0.js} +16 -16
- package/dist/src/{custom-BdzuqFTN.js → custom-C5K9QFs1.js} +13 -13
- package/dist/src/{custom-LEXHCRe3.cjs → custom-D1UjT5I5.cjs} +13 -13
- package/dist/src/{custom-DLgufezC.js → custom-DnMZvgB6.js} +13 -13
- package/dist/src/{custom-Cf5Q6r-P.js → custom-EWterxkb.js} +11 -11
- package/dist/src/{docker-D2TWGyTP.js → docker-BFQc9ccU.js} +6 -6
- package/dist/src/{docker-D0h2vFrc.cjs → docker-BMfsGXyn.cjs} +6 -6
- package/dist/src/{docker-BOSO_6hK.js → docker-ChD4-eri.js} +6 -6
- package/dist/src/{docker-Vj_4_cPg.js → docker-mZF5j6cW.js} +6 -6
- package/dist/src/{embedding-BQIApR18.cjs → embedding-BMqFDnLI.cjs} +7 -7
- package/dist/src/{embedding-CU78FMnw.js → embedding-BQBXSWgy.js} +7 -7
- package/dist/src/{embedding-CStK0TV6.js → embedding-BwTB3YDt.js} +7 -7
- package/dist/src/{embedding-CV8lmCnU.js → embedding-cd5oPBkX.js} +7 -7
- package/dist/src/{esm-BTK1W7lG.js → esm-CGER3lko.js} +2 -2
- package/dist/src/{esm-Bexx2PFc.js → esm-CYMWMaSj.js} +2 -2
- package/dist/src/{esm-B6whoAcf.js → esm-C_yrt93A.js} +2 -2
- package/dist/src/{esm-BIKakvNa.cjs → esm-vv4rR-Dp.cjs} +2 -2
- package/dist/src/{eval-B3BaNBbO.js → eval-DmGWplIN.js} +10 -10
- package/dist/src/{eval-DfR9885C.js → eval-N_VV5NZg.js} +1 -1
- package/dist/src/{evalResult-DHXs-9TL.cjs → evalResult-BZld6I3I.cjs} +6 -6
- package/dist/src/{evalResult-CcSqNl_Y.js → evalResult-ByGP9zuP.js} +7 -7
- package/dist/src/evalResult-CPPINYHK.js +3 -0
- package/dist/src/{evalResult-PGqEbasb.js → evalResult-gEmQRANj.js} +6 -6
- package/dist/src/evaluator-B01pCdUY.js +3 -0
- package/dist/src/{evaluator-n_dEb00o.js → evaluator-BpaUYhLY.js} +37 -37
- package/dist/src/{evaluatorHelpers-D06I9WFL.cjs → evaluatorHelpers-2gpZ9Q_f.cjs} +10 -10
- package/dist/src/{evaluatorHelpers-CrRObe2z.js → evaluatorHelpers-C8C8WQTv.js} +10 -10
- package/dist/src/{evaluatorHelpers-D1_kwvyp.js → evaluatorHelpers-DDG44JeI.js} +10 -10
- package/dist/src/{extractor-D3Fv_Tdh.js → extractor-Bjz9sdTQ.js} +6 -6
- package/dist/src/{extractor-BVkZtk4R.js → extractor-CtadTcJm.js} +6 -6
- package/dist/src/{extractor-Jp53vs-6.js → extractor-DAnauX2V.js} +6 -6
- package/dist/src/{extractor-bV_NOoaz.cjs → extractor-nyUwvU2U.cjs} +6 -6
- package/dist/src/{fetch-Cfm4EuOB.cjs → fetch-B2HvaVUc.cjs} +14 -12
- package/dist/src/{fetch-Cpf1U1nO.js → fetch-C59QM4cf.js} +10 -8
- package/dist/src/{fetch-BSSAcMxf.js → fetch-CBe8pU8Q.js} +10 -8
- package/dist/src/{fetch-Doks14zQ.js → fetch-CHJu2KON.js} +9 -7
- package/dist/src/fetch-D_XnRfBV.js +3 -0
- package/dist/src/{goat-CJngS-WU.js → goat-0HwO0EB2.js} +17 -17
- package/dist/src/{goat-DOMbozoX.cjs → goat-7wQgRcT4.cjs} +17 -17
- package/dist/src/{goat-CwsbfQeu.js → goat-BNX0lOFx.js} +15 -15
- package/dist/src/{goat-Ba7Gznzq.js → goat-BOVnOl5S.js} +17 -17
- package/dist/src/{graders-BQt1BaQe.js → graders-BnO-xoa-.js} +28 -28
- package/dist/src/{graders-CBQ2s6gz.cjs → graders-CQv1GT5Q.cjs} +27 -27
- package/dist/src/graders-D4vc1PFi.js +3 -0
- package/dist/src/{graders-KXzjnIim.js → graders-GNRQ1357.js} +27 -27
- package/dist/src/{graders-DaRU98zs.js → graders-k8qmhrPu.js} +29 -29
- package/dist/src/{hydra-CR0KyYDb.js → hydra-BrgGALmB.js} +16 -16
- package/dist/src/{hydra-BmXHxlyl.js → hydra-C38LOovb.js} +14 -14
- package/dist/src/{hydra-BU6GjYoQ.js → hydra-CXc0p63W.js} +16 -16
- package/dist/src/{hydra-RO9jBks7.cjs → hydra-Hdj65j0k.cjs} +16 -16
- package/dist/src/{image-B_PFG7IG.js → image-6u3WZ_7H.js} +5 -5
- package/dist/src/{image-LGj8dTcr.js → image-B6hCz0z3.js} +5 -5
- package/dist/src/{image-BtODOZjh.js → image-CgmaPlV_.js} +7 -7
- package/dist/src/{image-BBmZdKO3.js → image-DXbwwL-r.js} +5 -5
- package/dist/src/{image-HK2Cfqb1.cjs → image-Daa_X_YB.cjs} +7 -7
- package/dist/src/{image-CYuNJIqd.js → image-DmC5qwQx.js} +7 -7
- package/dist/src/{image-E00WFZkq.cjs → image-TY6FsHmn.cjs} +5 -5
- package/dist/src/{image-YMKejC0r.js → image-V0-pYiBI.js} +7 -7
- package/dist/src/index.cjs +49 -49
- package/dist/src/index.js +49 -49
- package/dist/src/{indirectWebPwn-D7NA9Nsv.cjs → indirectWebPwn-04ziKbly.cjs} +5 -5
- package/dist/src/{indirectWebPwn-CiWB-vVH.js → indirectWebPwn-1gHqaL91.js} +5 -5
- package/dist/src/{indirectWebPwn-B80dLlFC.js → indirectWebPwn-B0CAtvZJ.js} +6 -6
- package/dist/src/{indirectWebPwn-BMTXXznx.js → indirectWebPwn-BXUoJl4I.js} +5 -5
- package/dist/src/{indirectWebPwn-o_bEFMjP.js → indirectWebPwn-Biy9I52D.js} +6 -6
- package/dist/src/{indirectWebPwn-BzpyMnFS.js → indirectWebPwn-BoPqjm9W.js} +6 -6
- package/dist/src/{indirectWebPwn-BZFPV7Q9.js → indirectWebPwn-DRYpRTx6.js} +5 -5
- package/dist/src/{indirectWebPwn-BaEQEOIO.cjs → indirectWebPwn-MiCFTfzI.cjs} +6 -6
- package/dist/src/{inputVariables-DUGMb9Ka.js → inputVariables-B7cylqzM.js} +2 -2
- package/dist/src/{inputVariables-Dq9W-Z3a.cjs → inputVariables-D5K2vTp4.cjs} +2 -2
- package/dist/src/{inputVariables-B0qUChbV.js → inputVariables-DpOsOnzU.js} +3 -3
- package/dist/src/{inputVariables-DXFdi7AI.js → inputVariables-qJmuSN5i.js} +3 -3
- package/dist/src/{interactiveCheck-C4QlIuoR.js → interactiveCheck-BLnDrfjg.js} +2 -2
- package/dist/src/{iterative-CVwoExo8.js → iterative-BDRx_noa.js} +16 -16
- package/dist/src/{iterative-QDrGSyss.js → iterative-BZxrxnoh.js} +14 -14
- package/dist/src/{iterative-BACUeCCz.cjs → iterative-KSovqu_j.cjs} +16 -16
- package/dist/src/{iterative-B-l0syBV.js → iterative-vxBU1IPs.js} +16 -16
- package/dist/src/{iterativeImage-Bwn0fM75.js → iterativeImage-BZuMd4x3.js} +7 -7
- package/dist/src/{iterativeImage-BQg2OwA6.js → iterativeImage-DUWLmyVM.js} +6 -6
- package/dist/src/{iterativeImage-CcgVyASo.cjs → iterativeImage-DqNKoaIl.cjs} +7 -7
- package/dist/src/{iterativeImage-D_UbQXg4.js → iterativeImage-DwIp1WGB.js} +7 -7
- package/dist/src/{iterativeMeta-DlqY3BsS.cjs → iterativeMeta-9gsvnsl1.cjs} +15 -15
- package/dist/src/{iterativeMeta-CN8CNjFA.js → iterativeMeta-AgI6UEh6.js} +15 -15
- package/dist/src/{iterativeMeta-CIu-CHRS.js → iterativeMeta-BbcVN5nQ.js} +15 -15
- package/dist/src/{iterativeMeta-DN6BTjpq.js → iterativeMeta-BcF8LsFk.js} +13 -13
- package/dist/src/{iterativeTree-DcuFXnjL.js → iterativeTree-5TLHU9Kx.js} +14 -14
- package/dist/src/{iterativeTree-LOgAi0nU.cjs → iterativeTree-7XyY_zdo.cjs} +14 -14
- package/dist/src/{iterativeTree-CJ8a8G9T.js → iterativeTree-CnHx_kPu.js} +14 -14
- package/dist/src/{iterativeTree-FrDDYAN0.js → iterativeTree-D9I3UJ0P.js} +12 -12
- package/dist/src/{knowledgeBase-o_wTLzrt.js → knowledgeBase-BGbDBwr5.js} +5 -5
- package/dist/src/{knowledgeBase-CjOXp6Lr.js → knowledgeBase-BzfBwPyQ.js} +5 -5
- package/dist/src/{knowledgeBase-DxAq4n4z.js → knowledgeBase-C_MSTwDt.js} +5 -5
- package/dist/src/{knowledgeBase-CdbcGBZF.cjs → knowledgeBase-DSVK_YTi.cjs} +5 -5
- package/dist/src/{litellm-CYfgxLrM.js → litellm-CRTmskqC.js} +5 -5
- package/dist/src/{litellm-B2gHwya_.js → litellm-Ch4E-r4b.js} +5 -5
- package/dist/src/{litellm-ojWBKU3C.js → litellm-DNnk7802.js} +5 -5
- package/dist/src/{litellm-CPpdlO7n.cjs → litellm-jA4_p8mv.cjs} +5 -5
- package/dist/src/{logger-KD8JjCRJ.js → logger-BjYLHvGm.js} +56 -25
- package/dist/src/{logger-cfNpzI4o.cjs → logger-Cm0Nb8YX.cjs} +34 -3
- package/dist/src/{logger-Ct2S6Yx-.js → logger-Cs0I2v_y.js} +34 -3
- package/dist/src/{logger-BbY6ypFL.js → logger-h-eiS4iv.js} +34 -3
- package/dist/src/{luma-ray-BCCO9XXG.cjs → luma-ray-BCkN79tz.cjs} +5 -5
- package/dist/src/{luma-ray-DP5N79lB.js → luma-ray-BqVizUQY.js} +5 -5
- package/dist/src/{luma-ray-BPrdihAb.js → luma-ray-CD7rd6KW.js} +5 -5
- package/dist/src/{luma-ray-DTDyoAlM.js → luma-ray-DLWLjDCa.js} +5 -5
- package/dist/src/main.js +55 -55
- package/dist/src/{memoryPoisoning-B6N3us35.cjs → memoryPoisoning-BXDi4XCK.cjs} +8 -8
- package/dist/src/{memoryPoisoning-D375zwSX.js → memoryPoisoning-D-V4yXjj.js} +8 -8
- package/dist/src/{memoryPoisoning-Bc_BK_k2.js → memoryPoisoning-PrsT7Zh2.js} +8 -8
- package/dist/src/{memoryPoisoning-DJA0YjJT.js → memoryPoisoning-ZUwCLvEn.js} +8 -8
- package/dist/src/{messages-BrZEnHsV.cjs → messages-BSFLFXIO.cjs} +8 -8
- package/dist/src/{messages-Bg29Nbit.js → messages-C5qBfONg.js} +8 -8
- package/dist/src/{messages-K9A8RxBM.js → messages-CQoK4jHx.js} +8 -8
- package/dist/src/{messages-CBulRaud.js → messages-Dy5vvc3H.js} +8 -8
- package/dist/src/{mischievousUser-CSUrH3fq.cjs → mischievousUser-B4_YRWqu.cjs} +5 -5
- package/dist/src/{mischievousUser-Blx-OtT3.js → mischievousUser-BoZy3Fry.js} +5 -5
- package/dist/src/{mischievousUser-CHuTTvBg.js → mischievousUser-CjJ9ZEuw.js} +5 -5
- package/dist/src/{mischievousUser-BDLwSGN0.js → mischievousUser-CrMXlOUj.js} +5 -5
- package/dist/src/{modelslab-CBCrdIBc.js → modelslab-B72XbAlR.js} +8 -8
- package/dist/src/{modelslab-CrGpXuhv.js → modelslab-Bw-46LmW.js} +8 -8
- package/dist/src/{modelslab-BjEk7yCP.js → modelslab-CJ0zQdDH.js} +8 -8
- package/dist/src/{modelslab-Cvh0klQx.cjs → modelslab-LXFLCD-O.cjs} +8 -8
- package/dist/src/{nova-reel-DH_Ksu6X.cjs → nova-reel-D0k0-k8Y.cjs} +5 -5
- package/dist/src/{nova-reel-YQAqUYJY.js → nova-reel-DItvBa6z.js} +5 -5
- package/dist/src/{nova-reel-CUDDZcSA.js → nova-reel-DN7gTJzd.js} +5 -5
- package/dist/src/{nova-reel-CyDESu5J.js → nova-reel-DRLvlFOH.js} +5 -5
- package/dist/src/{nova-sonic-DxmK95c1.js → nova-sonic-BeAjEzkG.js} +3 -3
- package/dist/src/{nova-sonic-BhmnRGyh.js → nova-sonic-DB7LzcCY.js} +3 -3
- package/dist/src/{nova-sonic-Bg3cxMMu.cjs → nova-sonic-DfLkPbkF.cjs} +3 -3
- package/dist/src/{nova-sonic-BVFFB7JZ.js → nova-sonic-kzIVxZDb.js} +3 -3
- package/dist/src/{openai-zgwBb4Ff.js → openai-Bfbg6L4c.js} +2 -2
- package/dist/src/{openai-C3uXv8wS.cjs → openai-CCaz18I4.cjs} +2 -2
- package/dist/src/{openai-CJrsh9n4.js → openai-CJOpg_dA.js} +2 -2
- package/dist/src/{openai-BMHD2Huo.js → openai-uRacy72N.js} +2 -2
- package/dist/src/{openclaw-CWOm2eOr.js → openclaw-2Y9Ukt9Y.js} +9 -9
- package/dist/src/{openclaw-Cdk9JKfY.js → openclaw-BdnuiqBG.js} +9 -9
- package/dist/src/{openclaw-CHQaZi_-.cjs → openclaw-D54hA9Fe.cjs} +9 -9
- package/dist/src/{openclaw-DhF8rUpI.js → openclaw-DRjsDCSS.js} +9 -9
- package/dist/src/{opencode-sdk-BRjiPV-g.js → opencode-sdk-2su-bzyz.js} +38 -9
- package/dist/src/{opencode-sdk-CPFMw0ed.cjs → opencode-sdk-BRkqgOOQ.cjs} +38 -9
- package/dist/src/{opencode-sdk-CqkyG8De.js → opencode-sdk-CFY-1bkH.js} +38 -9
- package/dist/src/{opencode-sdk-CaSOCsBA.js → opencode-sdk-D-tRQJ9s.js} +38 -9
- package/dist/src/{otlpReceiver-B2eaKC8C.js → otlpReceiver-BkB7tsTT.js} +3 -3
- package/dist/src/{otlpReceiver--gTpSagc.js → otlpReceiver-BqJYGC-M.js} +4 -4
- package/dist/src/{otlpReceiver-BXjcRqAM.js → otlpReceiver-CRwU2egH.js} +4 -4
- package/dist/src/{otlpReceiver-CvJdBGSc.cjs → otlpReceiver-DOl5S07u.cjs} +4 -4
- package/dist/src/{packageParser--MWTSrPW.js → packageParser-B3bpKHK4.js} +2 -2
- package/dist/src/{packageParser-CgE-ziRo.js → packageParser-CZdMKLBh.js} +2 -2
- package/dist/src/{packageParser-hwwSGnAZ.js → packageParser-D7YWfcSe.js} +2 -2
- package/dist/src/{packageParser-QoCS1FMl.cjs → packageParser-DR054ceU.cjs} +2 -2
- package/dist/src/{promptLength-B9nZEfO6.js → promptLength-5B4_P93z.js} +2 -2
- package/dist/src/{promptLength-BbBbDHNj.cjs → promptLength-CAcg7BmO.cjs} +2 -2
- package/dist/src/{promptLength-4X-Wd8PG.js → promptLength-PkjlYFx0.js} +2 -2
- package/dist/src/{promptLength-0qIHyhA5.js → promptLength-ho3wbst6.js} +2 -2
- package/dist/src/{promptfoo-CqEpj6Sr.js → promptfoo-CEsoPlBa.js} +8 -8
- package/dist/src/{promptfoo-ClChwT74.cjs → promptfoo-DAXBmrE6.cjs} +8 -8
- package/dist/src/{promptfoo-CReYAtfb.js → promptfoo-DVKqidd8.js} +9 -9
- package/dist/src/{promptfoo-BU4_0J85.js → promptfoo-wxe28-q9.js} +9 -9
- package/dist/src/{providerRegistry-DHcFiVWX.js → providerRegistry-Bf4tRLgu.js} +2 -2
- package/dist/src/{providerRegistry-CZO_w7ue.cjs → providerRegistry-DKbi2EbP.cjs} +2 -2
- package/dist/src/{providerRegistry-ReCd0sFa.js → providerRegistry-DLeG-xXn.js} +2 -2
- package/dist/src/{providerRegistry-1gB5vtzQ.js → providerRegistry-v8Wa3f9z.js} +2 -2
- package/dist/src/{providers-B7TyByfj.js → providers-CYBHjFEg.js} +128 -120
- package/dist/src/{providers-iH3Sw1yo.js → providers-DDLQc0tl.js} +127 -119
- package/dist/src/{providers-V6RBuieY.cjs → providers-DP1CDgd5.cjs} +126 -118
- package/dist/src/{providers-BGc7tDtQ.js → providers-DTPwadhk.js} +126 -118
- package/dist/src/{providers-CSOp-bCm.js → providers-DvBFcsXi.js} +1 -1
- package/dist/src/{pythonUtils-Cokhluq3.cjs → pythonUtils-BjuymNdM.cjs} +3 -3
- package/dist/src/{pythonUtils-D0BYebvX.js → pythonUtils-C4Wnz6Q7.js} +3 -3
- package/dist/src/{pythonUtils-CLCgQ9tt.js → pythonUtils-CBe7VV6f.js} +3 -3
- package/dist/src/{pythonUtils-CgYxeSmO.js → pythonUtils-CLAoc6jg.js} +3 -3
- package/dist/src/{quiverai-C1dYu5MW.js → quiverai-B6ebiUKf.js} +6 -6
- package/dist/src/{quiverai-CNMIpZQg.js → quiverai-BG7dvOQc.js} +6 -6
- package/dist/src/{quiverai-fmSfU43k.cjs → quiverai-DH6SMaxD.cjs} +6 -6
- package/dist/src/{quiverai-58BtRRet.js → quiverai-DHNIAUfS.js} +6 -6
- package/dist/src/{registry-BTGk2ZkB.js → registry-BKlwRYvr.js} +14 -14
- package/dist/src/{registry-6Jw6ebor.cjs → registry-CQHRTGYs.cjs} +14 -14
- package/dist/src/{registry-NGnOG2xa.js → registry-Eiv-QeUm.js} +14 -14
- package/dist/src/{registry-BTNqmP5o.js → registry-qNoxbVEb.js} +14 -14
- package/dist/src/{remoteGeneration-BpIYlb_O.cjs → remoteGeneration-CD3c_rzc.cjs} +6 -6
- package/dist/src/{remoteGeneration-CJC3E0aW.js → remoteGeneration-CoxtxLvB.js} +6 -6
- package/dist/src/{remoteGeneration-D6UjE2JT.js → remoteGeneration-DW6mPZnO.js} +6 -6
- package/dist/src/{remoteGeneration--D6WjzUm.js → remoteGeneration-DvWEm3yi.js} +6 -6
- package/dist/src/{render-_6ur1fhE.js → render-BoxrvB84.js} +2 -2
- package/dist/src/{render-DFfDeYUK.js → render-CTZQAINJ.js} +2 -2
- package/dist/src/{render-BNTrbmBw.cjs → render-DJ4yipCD.cjs} +2 -2
- package/dist/src/{render-DznWrxGO.js → render-MiyTvDY4.js} +2 -2
- package/dist/src/{render-CSP99NLm.js → render-jE6RKVgk.js} +2 -2
- package/dist/src/{responses-CUARGrhY.cjs → responses-Bs2_3zyr.cjs} +14 -14
- package/dist/src/{responses-CrmWv6iz.js → responses-C0yU3fO6.js} +14 -14
- package/dist/src/{responses-BVi7xIdv.js → responses-C2vhwf8F.js} +14 -14
- package/dist/src/{responses-5Gf5HNOi.js → responses-pvlY3oYx.js} +14 -14
- package/dist/src/{rubyUtils-CnlW8AYb.js → rubyUtils-AvgsD_QH.js} +3 -3
- package/dist/src/{rubyUtils-CqUWBZAt.cjs → rubyUtils-BEqeZynS.cjs} +3 -3
- package/dist/src/{rubyUtils-CXlFM2rR.js → rubyUtils-C-sxXgGT.js} +3 -3
- package/dist/src/{rubyUtils-DdGojpfv.js → rubyUtils-DFzPvVD4.js} +3 -3
- package/dist/src/rubyUtils-DfYaGbxe.js +3 -0
- package/dist/src/{runtimeTransform-DigbjU1r.js → runtimeTransform-BmhEztlx.js} +2 -2
- package/dist/src/{runtimeTransform-BJOpL9Yc.js → runtimeTransform-Bw9Tttpp.js} +2 -2
- package/dist/src/{runtimeTransform-ON3YYILw.cjs → runtimeTransform-DJEknTZQ.cjs} +2 -2
- package/dist/src/{runtimeTransform-Dgh_D7DU.js → runtimeTransform-s14J7yxm.js} +2 -2
- package/dist/src/{sagemaker-BwbV5U7_.js → sagemaker-C8NJAT8D.js} +11 -11
- package/dist/src/{sagemaker-ClAZ6Qwc.js → sagemaker-DlajLLgJ.js} +11 -11
- package/dist/src/{sagemaker-DY2qrOpq.js → sagemaker-PgIzjxMt.js} +11 -11
- package/dist/src/{sagemaker-BeVTKfrv.cjs → sagemaker-hwPXLGI4.cjs} +11 -11
- package/dist/src/{scanner-BS-iFIp3.js → scanner-B3DPvw5u.js} +6 -6
- package/dist/src/server/index.js +57 -57
- package/dist/src/{server-DLYjSFm2.js → server-4wx571OM.js} +6 -6
- package/dist/src/{server-JQYD_Nws.js → server-8in_Vrrf.js} +6 -6
- package/dist/src/server-BHd6SQYX.js +3 -0
- package/dist/src/{server-CbiJppij.js → server-pMTgWs3M.js} +4 -4
- package/dist/src/{server-BHOEL8p8.cjs → server-yHhoBx98.cjs} +4 -4
- package/dist/src/{shared-CSIGeGLl.js → shared-BF25a7ms.js} +12 -12
- package/dist/src/{shared-aHWko3P1.cjs → shared-DlmtkptR.cjs} +12 -12
- package/dist/src/{shared-DNvim54U.js → shared-DsbObxvy.js} +12 -12
- package/dist/src/{shared-CRq0gGVf.js → shared-yBQATkD5.js} +13 -13
- package/dist/src/{signal-CSurUUyV.js → signal-CRrWj2xI.js} +3 -3
- package/dist/src/{simulatedUser-mnCUS9Bm.cjs → simulatedUser-9A3YPDh2.cjs} +7 -7
- package/dist/src/{simulatedUser-DH_7RzEQ.js → simulatedUser-CbZZV7UQ.js} +7 -7
- package/dist/src/{simulatedUser-C7sOFSF6.js → simulatedUser-DdcsTBuS.js} +7 -7
- package/dist/src/{simulatedUser-lgMMmniD.js → simulatedUser-LKk31Iov.js} +7 -7
- package/dist/src/{slack-k-_CP84Q.js → slack-CWxUAo6N.js} +2 -2
- package/dist/src/{slack-DMC1QVEg.cjs → slack-CtMQnlyy.cjs} +2 -2
- package/dist/src/{slack-DTEFhrMn.js → slack-DrcMAkvd.js} +2 -2
- package/dist/src/{slack-Bapo-7_8.js → slack-chzmaYU3.js} +2 -2
- package/dist/src/{storage-EKVWZBNY.js → storage-B9lg2RCL.js} +6 -6
- package/dist/src/{storage-95htjpLs.js → storage-BC9TzmHh.js} +5 -5
- package/dist/src/{storage-A4WnAeN3.cjs → storage-Cv7QYUPO.cjs} +4 -4
- package/dist/src/{storage-B2Ql_oq4.js → storage-fbHNSuZ9.js} +4 -4
- package/dist/src/{store-B2NDDooM.cjs → store-BKN4VD-m.cjs} +3 -3
- package/dist/src/{store-HpopRVzl.js → store-C4eo8Kyv.js} +3 -3
- package/dist/src/store-mJpYYA7W.js +3 -0
- package/dist/src/{store-DKd5592Q.js → store-u1XNK3e8.js} +3 -3
- package/dist/src/{strategies-CD1gHeeQ.js → strategies-4Nnr_9xt.js} +18 -18
- package/dist/src/{strategies-CCcnEbFO.cjs → strategies-BD7US9WB.cjs} +18 -18
- package/dist/src/{strategies-CBI1brSy.js → strategies-Ptz_P4P4.js} +20 -20
- package/dist/src/{tables-CRSXQ2Ke.js → tables-Bn3_8sxV.js} +2 -2
- package/dist/src/{tables-DafUHOeh.js → tables-D_ZGKiGc.js} +3 -3
- package/dist/src/{tables-DBIJU0WE.cjs → tables-D_s2HMPP.cjs} +2 -2
- package/dist/src/{tables-CxjU7bBd.js → tables-PWOqfbI_.js} +3 -3
- package/dist/src/{telemetry-C4bX-6Sr.js → telemetry-BTIhfopq.js} +21 -16
- package/dist/src/{telemetry-DOE567Wj.js → telemetry-BU80NveV.js} +21 -16
- package/dist/src/telemetry-CVHVhMOI.js +3 -0
- package/dist/src/{telemetry-BbpmrenM.js → telemetry-D3yQCekN.js} +21 -16
- package/dist/src/{telemetry-C_ImlCOk.cjs → telemetry-DvzmDrSM.cjs} +21 -16
- package/dist/src/{tracingOptions-xhjOg2b1.js → tracingOptions-D2F0D7es.js} +4 -4
- package/dist/src/{tracingOptions-BvmDa_jH.js → tracingOptions-PLePpCmo.js} +3 -3
- package/dist/src/{tracingOptions-BOP1FsRt.js → tracingOptions-WpE9IqC8.js} +4 -4
- package/dist/src/{tracingOptions-DFBoE8O0.cjs → tracingOptions-eqmq5sA2.cjs} +4 -4
- package/dist/src/{transcription-D8kkPXg_.cjs → transcription-CKLxdMxm.cjs} +7 -7
- package/dist/src/{transcription-BOXDoehT.js → transcription-CmlDorqD.js} +7 -7
- package/dist/src/{transcription-CpVdKc4P.js → transcription-Cupf4JNw.js} +7 -7
- package/dist/src/{transcription-Z94eV9LR.js → transcription-sOgdGxM6.js} +7 -7
- package/dist/src/{transform-BnSXWmU_2.cjs → transform-0wnBYYaL2.cjs} +4 -4
- package/dist/src/{transform-DtTfiGoh.js → transform-AfC8gqCB.js} +5 -5
- package/dist/src/{transform-CGt7Kt3y2.js → transform-BDSnWRNv2.js} +4 -4
- package/dist/src/{transform-BnSTnFlp.js → transform-C5pxvKUV.js} +4 -4
- package/dist/src/{transform-CrPGTsij.js → transform-C5rpIuDz.js} +4 -4
- package/dist/src/{transform-BufxPIQL.js → transform-D7QlmswG.js} +5 -5
- package/dist/src/{transform-DJkt81VY.cjs → transform-DKw2FNwg.cjs} +5 -5
- package/dist/src/{transform-Wp6s_5QE.js → transform-R1PnNdLv.js} +5 -5
- package/dist/src/{types-BFevViUY.js → types-C_e_SykX.js} +2 -2
- package/dist/src/{types-BJQBBPTP.js → types-uLCKnRiK.js} +2 -2
- package/dist/src/{util-DNtUsus_.cjs → util-3BRss2KA.cjs} +7 -7
- package/dist/src/{util-o2Qg5rZv.js → util-B2Nt2Oy7.js} +19 -14
- package/dist/src/{util-DwNJzqOV.js → util-BGfk7zh7.js} +8 -8
- package/dist/src/{util-DeY58psG.js → util-BLSQ_7Ky.js} +19 -14
- package/dist/src/{util-BHCAeuXx.cjs → util-BSZPCmvm.cjs} +4 -3
- package/dist/src/{util-COnzevXE.cjs → util-BuYzkbEz.cjs} +7 -7
- package/dist/src/{util-CYev3d-r.js → util-C6d3eV0A.js} +19 -14
- package/dist/src/{util-jZRrXe1P.js → util-CES4qWd7.js} +8 -8
- package/dist/src/{util-DGqkTb2-.js → util-CKZReNsz.js} +8 -8
- package/dist/src/{util-NYQvo1C7.cjs → util-Cs372i1_.cjs} +19 -14
- package/dist/src/{util-X4KQgyVD.js → util-Cw9nJJWm.js} +4 -3
- package/dist/src/{util-DpV6KT5i.js → util-D1NKMz55.js} +7 -7
- package/dist/src/{util-ETfU_sS9.js → util-D9grslJP.js} +8 -8
- package/dist/src/{util-CMrHV35u.js → util-SNUDkWJ8.js} +4 -3
- package/dist/src/{util-DRfqa4xz.js → util-vaCPFatZ.js} +7 -7
- package/dist/src/{util-DTq3jq2z.js → util-weQgMdSy.js} +4 -3
- package/dist/src/{utils-Ve6kuJsa.cjs → utils-B_HCobst.cjs} +2 -2
- package/dist/src/{utils-BGY69tk_.js → utils-C3qMBhJT.js} +2 -2
- package/dist/src/{utils-BFOh20Gb.js → utils-Cdx3ZJr7.js} +2 -2
- package/dist/src/{utils-B0lzitHZ.js → utils-DMWnIu_V.js} +2 -2
- package/dist/src/{version-CHR-EFec.js → version-BGiEZvX0.js} +2 -2
- package/dist/src/{version-qVEN5qCm.js → version-BNhpIb2U.js} +2 -2
- package/dist/src/{version-F0YDgb7J.js → version-CnYqmWbz.js} +2 -2
- package/dist/src/{version-VzUqOBZk.cjs → version-XjGPawtU.cjs} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -16
- package/dist/src/app/assets/Report-sCXUfaWo.js +0 -1
- package/dist/src/app/assets/index-yhM8y1PP.css +0 -1
- package/dist/src/cache-BKYi3kAA.js +0 -3
- package/dist/src/cloud-DiWbUiVP.js +0 -3
- package/dist/src/codex-sdk-DxukZs_K.js +0 -3
- package/dist/src/evalResult-BtZSUgQv.js +0 -3
- package/dist/src/evaluator-B9LGbKI8.js +0 -3
- package/dist/src/fetch-BodQTrMU.js +0 -3
- package/dist/src/graders-B3D7kCcD.js +0 -3
- package/dist/src/rubyUtils-BYVlQ94c.js +0 -3
- package/dist/src/server-D18AAlAc.js +0 -3
- package/dist/src/store-IbiRIF3k.js +0 -3
- package/dist/src/telemetry-BUm_krVX.js +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as invariant } from "./invariant-DIYf9sP1.js";
|
|
2
|
-
import { c as isLoggedIntoCloud } from "./accounts-
|
|
3
|
-
import { i as REDTEAM_SIMULATED_USER_TASK_ID } from "./promptfoo-
|
|
4
|
-
import { t as SimulatedUser } from "./simulatedUser-
|
|
5
|
-
import { d as messagesToRedteamHistory, s as getLastMessageContent } from "./shared-
|
|
2
|
+
import { c as isLoggedIntoCloud } from "./accounts-BAajbKSh.js";
|
|
3
|
+
import { i as REDTEAM_SIMULATED_USER_TASK_ID } from "./promptfoo-DVKqidd8.js";
|
|
4
|
+
import { t as SimulatedUser } from "./simulatedUser-CbZZV7UQ.js";
|
|
5
|
+
import { d as messagesToRedteamHistory, s as getLastMessageContent } from "./shared-yBQATkD5.js";
|
|
6
6
|
//#region src/redteam/providers/mischievousUser.ts
|
|
7
7
|
const PROVIDER_ID = "promptfoo:redteam:mischievous-user";
|
|
8
8
|
var RedteamMischievousUserProvider = class extends SimulatedUser {
|
|
@@ -43,4 +43,4 @@ var RedteamMischievousUserProvider = class extends SimulatedUser {
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { RedteamMischievousUserProvider as default };
|
|
45
45
|
|
|
46
|
-
//# sourceMappingURL=mischievousUser-
|
|
46
|
+
//# sourceMappingURL=mischievousUser-CrMXlOUj.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { O as getEnvString, s as logger } from "./logger-
|
|
3
|
-
import {
|
|
4
|
-
import { a as fetchWithCache } from "./cache-
|
|
2
|
+
import { O as getEnvString, s as logger } from "./logger-h-eiS4iv.js";
|
|
3
|
+
import { n as fetchWithProxy, v as getRequestTimeoutMs } from "./fetch-C59QM4cf.js";
|
|
4
|
+
import { a as fetchWithCache } from "./cache-BuudGL4I.js";
|
|
5
5
|
import { t as ellipsize } from "./text-Db-Wt2u2.js";
|
|
6
|
-
import { i as storeBlob } from "./blobs-
|
|
7
|
-
import { n as isBlobStorageEnabled } from "./extractor-
|
|
6
|
+
import { i as storeBlob } from "./blobs-CA4gXarv.js";
|
|
7
|
+
import { n as isBlobStorageEnabled } from "./extractor-CtadTcJm.js";
|
|
8
8
|
//#region src/providers/modelslab.ts
|
|
9
9
|
/**
|
|
10
10
|
* ModelsLab provider for text-to-image generation.
|
|
@@ -67,7 +67,7 @@ var ModelsLabImageProvider = class {
|
|
|
67
67
|
method: "POST",
|
|
68
68
|
headers: { "Content-Type": "application/json" },
|
|
69
69
|
body: JSON.stringify(requestBody)
|
|
70
|
-
},
|
|
70
|
+
}, getRequestTimeoutMs(), "json", true);
|
|
71
71
|
let data = response.data;
|
|
72
72
|
let cached = response.cached;
|
|
73
73
|
if (data.status === "processing") {
|
|
@@ -137,7 +137,7 @@ var ModelsLabImageProvider = class {
|
|
|
137
137
|
method: "POST",
|
|
138
138
|
headers: { "Content-Type": "application/json" },
|
|
139
139
|
body: JSON.stringify({ key: this.apiKey })
|
|
140
|
-
},
|
|
140
|
+
}, getRequestTimeoutMs(), "json", true)).data;
|
|
141
141
|
logger.debug("[ModelsLab] Poll attempt", {
|
|
142
142
|
attempt: attempt + 1,
|
|
143
143
|
requestId,
|
|
@@ -161,4 +161,4 @@ var ModelsLabImageProvider = class {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
export { ModelsLabImageProvider };
|
|
163
163
|
|
|
164
|
-
//# sourceMappingURL=modelslab-
|
|
164
|
+
//# sourceMappingURL=modelslab-B72XbAlR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as getEnvString, a as logger } from "./logger-
|
|
2
|
-
import {
|
|
3
|
-
import { r as fetchWithCache } from "./cache-
|
|
1
|
+
import { T as getEnvString, a as logger } from "./logger-Cs0I2v_y.js";
|
|
2
|
+
import { m as getRequestTimeoutMs, t as fetchWithProxy } from "./fetch-CHJu2KON.js";
|
|
3
|
+
import { r as fetchWithCache } from "./cache-CT5D7d_A.js";
|
|
4
4
|
import { t as ellipsize } from "./text-DwYK5EBn.js";
|
|
5
|
-
import { r as storeBlob } from "./blobs-
|
|
6
|
-
import { n as isBlobStorageEnabled } from "./extractor-
|
|
5
|
+
import { r as storeBlob } from "./blobs-BfIMflt0.js";
|
|
6
|
+
import { n as isBlobStorageEnabled } from "./extractor-Bjz9sdTQ.js";
|
|
7
7
|
//#region src/providers/modelslab.ts
|
|
8
8
|
/**
|
|
9
9
|
* ModelsLab provider for text-to-image generation.
|
|
@@ -66,7 +66,7 @@ var ModelsLabImageProvider = class {
|
|
|
66
66
|
method: "POST",
|
|
67
67
|
headers: { "Content-Type": "application/json" },
|
|
68
68
|
body: JSON.stringify(requestBody)
|
|
69
|
-
},
|
|
69
|
+
}, getRequestTimeoutMs(), "json", true);
|
|
70
70
|
let data = response.data;
|
|
71
71
|
let cached = response.cached;
|
|
72
72
|
if (data.status === "processing") {
|
|
@@ -136,7 +136,7 @@ var ModelsLabImageProvider = class {
|
|
|
136
136
|
method: "POST",
|
|
137
137
|
headers: { "Content-Type": "application/json" },
|
|
138
138
|
body: JSON.stringify({ key: this.apiKey })
|
|
139
|
-
},
|
|
139
|
+
}, getRequestTimeoutMs(), "json", true)).data;
|
|
140
140
|
logger.debug("[ModelsLab] Poll attempt", {
|
|
141
141
|
attempt: attempt + 1,
|
|
142
142
|
requestId,
|
|
@@ -160,4 +160,4 @@ var ModelsLabImageProvider = class {
|
|
|
160
160
|
//#endregion
|
|
161
161
|
export { ModelsLabImageProvider };
|
|
162
162
|
|
|
163
|
-
//# sourceMappingURL=modelslab-
|
|
163
|
+
//# sourceMappingURL=modelslab-Bw-46LmW.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as fetchWithProxy,
|
|
3
|
-
import { r as fetchWithCache } from "./cache-
|
|
4
|
-
import { i as storeBlob } from "./blobs-
|
|
5
|
-
import { n as isBlobStorageEnabled } from "./extractor-
|
|
1
|
+
import { E as getEnvString, a as logger } from "./logger-BjYLHvGm.js";
|
|
2
|
+
import { t as fetchWithProxy, y as getRequestTimeoutMs } from "./fetch-CBe8pU8Q.js";
|
|
3
|
+
import { r as fetchWithCache } from "./cache-x9llZxbx.js";
|
|
4
|
+
import { i as storeBlob } from "./blobs-ikh75MtF.js";
|
|
5
|
+
import { n as isBlobStorageEnabled } from "./extractor-DAnauX2V.js";
|
|
6
6
|
import { t as ellipsize } from "./text-CZr46tp_.js";
|
|
7
7
|
//#region src/providers/modelslab.ts
|
|
8
8
|
/**
|
|
@@ -66,7 +66,7 @@ var ModelsLabImageProvider = class {
|
|
|
66
66
|
method: "POST",
|
|
67
67
|
headers: { "Content-Type": "application/json" },
|
|
68
68
|
body: JSON.stringify(requestBody)
|
|
69
|
-
},
|
|
69
|
+
}, getRequestTimeoutMs(), "json", true);
|
|
70
70
|
let data = response.data;
|
|
71
71
|
let cached = response.cached;
|
|
72
72
|
if (data.status === "processing") {
|
|
@@ -136,7 +136,7 @@ var ModelsLabImageProvider = class {
|
|
|
136
136
|
method: "POST",
|
|
137
137
|
headers: { "Content-Type": "application/json" },
|
|
138
138
|
body: JSON.stringify({ key: this.apiKey })
|
|
139
|
-
},
|
|
139
|
+
}, getRequestTimeoutMs(), "json", true)).data;
|
|
140
140
|
logger.debug("[ModelsLab] Poll attempt", {
|
|
141
141
|
attempt: attempt + 1,
|
|
142
142
|
requestId,
|
|
@@ -160,4 +160,4 @@ var ModelsLabImageProvider = class {
|
|
|
160
160
|
//#endregion
|
|
161
161
|
export { ModelsLabImageProvider };
|
|
162
162
|
|
|
163
|
-
//# sourceMappingURL=modelslab-
|
|
163
|
+
//# sourceMappingURL=modelslab-CJ0zQdDH.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
const require_fetch = require("./fetch-
|
|
3
|
-
const require_cache = require("./cache-
|
|
1
|
+
const require_logger = require("./logger-Cm0Nb8YX.cjs");
|
|
2
|
+
const require_fetch = require("./fetch-B2HvaVUc.cjs");
|
|
3
|
+
const require_cache = require("./cache-WuIsgzMA.cjs");
|
|
4
4
|
const require_text = require("./text-nywWsRBM.cjs");
|
|
5
|
-
const require_blobs = require("./blobs-
|
|
6
|
-
const require_extractor = require("./extractor-
|
|
5
|
+
const require_blobs = require("./blobs-5wbW7TbH.cjs");
|
|
6
|
+
const require_extractor = require("./extractor-nyUwvU2U.cjs");
|
|
7
7
|
//#region src/providers/modelslab.ts
|
|
8
8
|
/**
|
|
9
9
|
* ModelsLab provider for text-to-image generation.
|
|
@@ -66,7 +66,7 @@ var ModelsLabImageProvider = class {
|
|
|
66
66
|
method: "POST",
|
|
67
67
|
headers: { "Content-Type": "application/json" },
|
|
68
68
|
body: JSON.stringify(requestBody)
|
|
69
|
-
}, require_fetch.
|
|
69
|
+
}, require_fetch.getRequestTimeoutMs(), "json", true);
|
|
70
70
|
let data = response.data;
|
|
71
71
|
let cached = response.cached;
|
|
72
72
|
if (data.status === "processing") {
|
|
@@ -136,7 +136,7 @@ var ModelsLabImageProvider = class {
|
|
|
136
136
|
method: "POST",
|
|
137
137
|
headers: { "Content-Type": "application/json" },
|
|
138
138
|
body: JSON.stringify({ key: this.apiKey })
|
|
139
|
-
}, require_fetch.
|
|
139
|
+
}, require_fetch.getRequestTimeoutMs(), "json", true)).data;
|
|
140
140
|
require_logger.logger.debug("[ModelsLab] Poll attempt", {
|
|
141
141
|
attempt: attempt + 1,
|
|
142
142
|
requestId,
|
|
@@ -160,4 +160,4 @@ var ModelsLabImageProvider = class {
|
|
|
160
160
|
//#endregion
|
|
161
161
|
exports.ModelsLabImageProvider = ModelsLabImageProvider;
|
|
162
162
|
|
|
163
|
-
//# sourceMappingURL=modelslab-
|
|
163
|
+
//# sourceMappingURL=modelslab-LXFLCD-O.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
|
-
const require_logger = require("./logger-
|
|
3
|
-
const require_fetch = require("./fetch-
|
|
2
|
+
const require_logger = require("./logger-Cm0Nb8YX.cjs");
|
|
3
|
+
const require_fetch = require("./fetch-B2HvaVUc.cjs");
|
|
4
4
|
const require_text = require("./text-nywWsRBM.cjs");
|
|
5
|
-
const require_base = require("./base-
|
|
6
|
-
const require_blobs = require("./blobs-
|
|
5
|
+
const require_base = require("./base-BE_pY-r5.cjs");
|
|
6
|
+
const require_blobs = require("./blobs-5wbW7TbH.cjs");
|
|
7
7
|
let fs = require("fs");
|
|
8
8
|
fs = require_rolldown_runtime.__toESM(fs, 1);
|
|
9
9
|
let path = require("path");
|
|
@@ -276,4 +276,4 @@ var NovaReelVideoProvider = class extends require_base.AwsBedrockGenericProvider
|
|
|
276
276
|
//#endregion
|
|
277
277
|
exports.NovaReelVideoProvider = NovaReelVideoProvider;
|
|
278
278
|
|
|
279
|
-
//# sourceMappingURL=nova-reel-
|
|
279
|
+
//# sourceMappingURL=nova-reel-D0k0-k8Y.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as logger } from "./logger-
|
|
2
|
-
import { m as sleep } from "./fetch-
|
|
3
|
-
import { i as storeBlob } from "./blobs-
|
|
1
|
+
import { a as logger } from "./logger-BjYLHvGm.js";
|
|
2
|
+
import { m as sleep } from "./fetch-CBe8pU8Q.js";
|
|
3
|
+
import { i as storeBlob } from "./blobs-ikh75MtF.js";
|
|
4
4
|
import { t as ellipsize } from "./text-CZr46tp_.js";
|
|
5
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
5
|
+
import { t as AwsBedrockGenericProvider } from "./base-CTWzNAH9.js";
|
|
6
6
|
import * as fs$1 from "fs";
|
|
7
7
|
import * as path$1 from "path";
|
|
8
8
|
//#region src/providers/bedrock/nova-reel.ts
|
|
@@ -273,4 +273,4 @@ var NovaReelVideoProvider = class extends AwsBedrockGenericProvider {
|
|
|
273
273
|
//#endregion
|
|
274
274
|
export { NovaReelVideoProvider };
|
|
275
275
|
|
|
276
|
-
//# sourceMappingURL=nova-reel-
|
|
276
|
+
//# sourceMappingURL=nova-reel-DItvBa6z.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { s as logger } from "./logger-
|
|
3
|
-
import { f as sleep } from "./fetch-
|
|
2
|
+
import { s as logger } from "./logger-h-eiS4iv.js";
|
|
3
|
+
import { f as sleep } from "./fetch-C59QM4cf.js";
|
|
4
4
|
import { t as ellipsize } from "./text-Db-Wt2u2.js";
|
|
5
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
6
|
-
import { i as storeBlob } from "./blobs-
|
|
5
|
+
import { t as AwsBedrockGenericProvider } from "./base-BARAIJmp.js";
|
|
6
|
+
import { i as storeBlob } from "./blobs-CA4gXarv.js";
|
|
7
7
|
import * as fs$1 from "fs";
|
|
8
8
|
import * as path$1 from "path";
|
|
9
9
|
//#region src/providers/bedrock/nova-reel.ts
|
|
@@ -274,4 +274,4 @@ var NovaReelVideoProvider = class extends AwsBedrockGenericProvider {
|
|
|
274
274
|
//#endregion
|
|
275
275
|
export { NovaReelVideoProvider };
|
|
276
276
|
|
|
277
|
-
//# sourceMappingURL=nova-reel-
|
|
277
|
+
//# sourceMappingURL=nova-reel-DN7gTJzd.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as logger } from "./logger-
|
|
2
|
-
import { l as sleep } from "./fetch-
|
|
1
|
+
import { a as logger } from "./logger-Cs0I2v_y.js";
|
|
2
|
+
import { l as sleep } from "./fetch-CHJu2KON.js";
|
|
3
3
|
import { t as ellipsize } from "./text-DwYK5EBn.js";
|
|
4
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
5
|
-
import { r as storeBlob } from "./blobs-
|
|
4
|
+
import { t as AwsBedrockGenericProvider } from "./base-0yya4DsM.js";
|
|
5
|
+
import { r as storeBlob } from "./blobs-BfIMflt0.js";
|
|
6
6
|
import * as fs$1 from "fs";
|
|
7
7
|
import * as path$1 from "path";
|
|
8
8
|
//#region src/providers/bedrock/nova-reel.ts
|
|
@@ -273,4 +273,4 @@ var NovaReelVideoProvider = class extends AwsBedrockGenericProvider {
|
|
|
273
273
|
//#endregion
|
|
274
274
|
export { NovaReelVideoProvider };
|
|
275
275
|
|
|
276
|
-
//# sourceMappingURL=nova-reel-
|
|
276
|
+
//# sourceMappingURL=nova-reel-DRLvlFOH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { s as logger } from "./logger-
|
|
2
|
+
import { s as logger } from "./logger-h-eiS4iv.js";
|
|
3
3
|
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-CDet74yk.js";
|
|
4
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
4
|
+
import { t as AwsBedrockGenericProvider } from "./base-BARAIJmp.js";
|
|
5
5
|
import { Buffer } from "node:buffer";
|
|
6
6
|
import { Subject, firstValueFrom } from "rxjs";
|
|
7
7
|
import { take } from "rxjs/operators";
|
|
@@ -361,4 +361,4 @@ var NovaSonicProvider = class extends AwsBedrockGenericProvider {
|
|
|
361
361
|
//#endregion
|
|
362
362
|
export { NovaSonicProvider };
|
|
363
363
|
|
|
364
|
-
//# sourceMappingURL=nova-sonic-
|
|
364
|
+
//# sourceMappingURL=nova-sonic-BeAjEzkG.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as logger } from "./logger-
|
|
1
|
+
import { a as logger } from "./logger-Cs0I2v_y.js";
|
|
2
2
|
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-CmnQ0G2m.js";
|
|
3
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
3
|
+
import { t as AwsBedrockGenericProvider } from "./base-0yya4DsM.js";
|
|
4
4
|
import { Buffer } from "node:buffer";
|
|
5
5
|
import { Subject, firstValueFrom } from "rxjs";
|
|
6
6
|
import { take } from "rxjs/operators";
|
|
@@ -360,4 +360,4 @@ var NovaSonicProvider = class extends AwsBedrockGenericProvider {
|
|
|
360
360
|
//#endregion
|
|
361
361
|
export { NovaSonicProvider };
|
|
362
362
|
|
|
363
|
-
//# sourceMappingURL=nova-sonic-
|
|
363
|
+
//# sourceMappingURL=nova-sonic-DB7LzcCY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
|
-
const require_logger = require("./logger-
|
|
2
|
+
const require_logger = require("./logger-Cm0Nb8YX.cjs");
|
|
3
3
|
const require_tokenUsageUtils = require("./tokenUsageUtils-_B-P8IAi.cjs");
|
|
4
|
-
const require_base = require("./base-
|
|
4
|
+
const require_base = require("./base-BE_pY-r5.cjs");
|
|
5
5
|
let node_buffer = require("node:buffer");
|
|
6
6
|
let rxjs = require("rxjs");
|
|
7
7
|
let rxjs_operators = require("rxjs/operators");
|
|
@@ -361,4 +361,4 @@ var NovaSonicProvider = class extends require_base.AwsBedrockGenericProvider {
|
|
|
361
361
|
//#endregion
|
|
362
362
|
exports.NovaSonicProvider = NovaSonicProvider;
|
|
363
363
|
|
|
364
|
-
//# sourceMappingURL=nova-sonic-
|
|
364
|
+
//# sourceMappingURL=nova-sonic-DfLkPbkF.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as logger } from "./logger-
|
|
1
|
+
import { a as logger } from "./logger-BjYLHvGm.js";
|
|
2
2
|
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-BjVkdk18.js";
|
|
3
|
-
import { t as AwsBedrockGenericProvider } from "./base-
|
|
3
|
+
import { t as AwsBedrockGenericProvider } from "./base-CTWzNAH9.js";
|
|
4
4
|
import { Buffer } from "node:buffer";
|
|
5
5
|
import { Subject, firstValueFrom } from "rxjs";
|
|
6
6
|
import { take } from "rxjs/operators";
|
|
@@ -360,4 +360,4 @@ var NovaSonicProvider = class extends AwsBedrockGenericProvider {
|
|
|
360
360
|
//#endregion
|
|
361
361
|
export { NovaSonicProvider };
|
|
362
362
|
|
|
363
|
-
//# sourceMappingURL=nova-sonic-
|
|
363
|
+
//# sourceMappingURL=nova-sonic-kzIVxZDb.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as getEnvString } from "./logger-
|
|
1
|
+
import { T as getEnvString } from "./logger-Cs0I2v_y.js";
|
|
2
2
|
//#region src/providers/openai/index.ts
|
|
3
3
|
var OpenAiGenericProvider = class {
|
|
4
4
|
modelName;
|
|
@@ -44,4 +44,4 @@ var OpenAiGenericProvider = class {
|
|
|
44
44
|
//#endregion
|
|
45
45
|
export { OpenAiGenericProvider as t };
|
|
46
46
|
|
|
47
|
-
//# sourceMappingURL=openai-
|
|
47
|
+
//# sourceMappingURL=openai-Bfbg6L4c.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
1
|
+
const require_logger = require("./logger-Cm0Nb8YX.cjs");
|
|
2
2
|
//#region src/providers/openai/index.ts
|
|
3
3
|
var OpenAiGenericProvider = class {
|
|
4
4
|
modelName;
|
|
@@ -49,4 +49,4 @@ Object.defineProperty(exports, "OpenAiGenericProvider", {
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
//# sourceMappingURL=openai-
|
|
52
|
+
//# sourceMappingURL=openai-CCaz18I4.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { O as getEnvString } from "./logger-
|
|
2
|
+
import { O as getEnvString } from "./logger-h-eiS4iv.js";
|
|
3
3
|
//#region src/providers/openai/index.ts
|
|
4
4
|
var OpenAiGenericProvider = class {
|
|
5
5
|
modelName;
|
|
@@ -45,4 +45,4 @@ var OpenAiGenericProvider = class {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { OpenAiGenericProvider as t };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=openai-
|
|
48
|
+
//# sourceMappingURL=openai-CJOpg_dA.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as getEnvString } from "./logger-BjYLHvGm.js";
|
|
2
2
|
//#region src/providers/openai/index.ts
|
|
3
3
|
var OpenAiGenericProvider = class {
|
|
4
4
|
modelName;
|
|
@@ -44,4 +44,4 @@ var OpenAiGenericProvider = class {
|
|
|
44
44
|
//#endregion
|
|
45
45
|
export { OpenAiGenericProvider as t };
|
|
46
46
|
|
|
47
|
-
//# sourceMappingURL=openai-
|
|
47
|
+
//# sourceMappingURL=openai-uRacy72N.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as getConfigDirectoryPath, O as getEnvString, s as logger } from "./logger-
|
|
3
|
-
import {
|
|
4
|
-
import { n as VERSION } from "./version-
|
|
2
|
+
import { C as getConfigDirectoryPath, O as getEnvString, s as logger } from "./logger-h-eiS4iv.js";
|
|
3
|
+
import { n as fetchWithProxy, v as getRequestTimeoutMs } from "./fetch-C59QM4cf.js";
|
|
4
|
+
import { n as VERSION } from "./version-CnYqmWbz.js";
|
|
5
5
|
import { n as sha256 } from "./createHash-CgRvs4Fn.js";
|
|
6
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
7
|
-
import { t as OpenAiEmbeddingProvider } from "./embedding-
|
|
8
|
-
import { t as OpenAiResponsesProvider } from "./responses-
|
|
6
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-B8lsx0A0.js";
|
|
7
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-BQBXSWgy.js";
|
|
8
|
+
import { t as OpenAiResponsesProvider } from "./responses-C0yU3fO6.js";
|
|
9
9
|
import fs from "fs";
|
|
10
10
|
import path from "path";
|
|
11
11
|
import os from "os";
|
|
@@ -565,7 +565,7 @@ var OpenClawAgentProvider = class {
|
|
|
565
565
|
const authSecret = resolveAuthSecret(this.openclawConfig, env);
|
|
566
566
|
this.authKind = authSecret?.kind;
|
|
567
567
|
this.authSecret = authSecret?.value;
|
|
568
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
568
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
569
569
|
this.scopes = normalizeScopes(this.openclawConfig.scopes);
|
|
570
570
|
this.hasExplicitScopes = this.scopes.length > 0;
|
|
571
571
|
if (!this.hasExplicitScopes) this.scopes = [...DEFAULT_SCOPES];
|
|
@@ -1102,7 +1102,7 @@ var OpenClawToolInvokeProvider = class {
|
|
|
1102
1102
|
const env = providerOptions.env;
|
|
1103
1103
|
this.gatewayUrl = resolveGatewayUrl(this.openclawConfig, env);
|
|
1104
1104
|
this.authToken = resolveAuthToken(this.openclawConfig, env);
|
|
1105
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
1105
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
1106
1106
|
}
|
|
1107
1107
|
id() {
|
|
1108
1108
|
return `openclaw:tools:${this.toolName}`;
|
|
@@ -1199,4 +1199,4 @@ function createOpenClawProvider(providerPath, providerOptions = {}, env) {
|
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
export { createOpenClawProvider };
|
|
1201
1201
|
|
|
1202
|
-
//# sourceMappingURL=openclaw-
|
|
1202
|
+
//# sourceMappingURL=openclaw-2Y9Ukt9Y.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as getEnvString, a as logger, x as getConfigDirectoryPath } from "./logger-
|
|
2
|
-
import {
|
|
3
|
-
import { n as VERSION } from "./version-
|
|
1
|
+
import { T as getEnvString, a as logger, x as getConfigDirectoryPath } from "./logger-Cs0I2v_y.js";
|
|
2
|
+
import { m as getRequestTimeoutMs, t as fetchWithProxy } from "./fetch-CHJu2KON.js";
|
|
3
|
+
import { n as VERSION } from "./version-BNhpIb2U.js";
|
|
4
4
|
import { n as sha256 } from "./createHash-BtbSX3mj.js";
|
|
5
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
6
|
-
import { t as OpenAiEmbeddingProvider } from "./embedding-
|
|
7
|
-
import { t as OpenAiResponsesProvider } from "./responses-
|
|
5
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-CCtIXezK.js";
|
|
6
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-cd5oPBkX.js";
|
|
7
|
+
import { t as OpenAiResponsesProvider } from "./responses-C2vhwf8F.js";
|
|
8
8
|
import fs from "fs";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import os from "os";
|
|
@@ -564,7 +564,7 @@ var OpenClawAgentProvider = class {
|
|
|
564
564
|
const authSecret = resolveAuthSecret(this.openclawConfig, env);
|
|
565
565
|
this.authKind = authSecret?.kind;
|
|
566
566
|
this.authSecret = authSecret?.value;
|
|
567
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
567
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
568
568
|
this.scopes = normalizeScopes(this.openclawConfig.scopes);
|
|
569
569
|
this.hasExplicitScopes = this.scopes.length > 0;
|
|
570
570
|
if (!this.hasExplicitScopes) this.scopes = [...DEFAULT_SCOPES];
|
|
@@ -1101,7 +1101,7 @@ var OpenClawToolInvokeProvider = class {
|
|
|
1101
1101
|
const env = providerOptions.env;
|
|
1102
1102
|
this.gatewayUrl = resolveGatewayUrl(this.openclawConfig, env);
|
|
1103
1103
|
this.authToken = resolveAuthToken(this.openclawConfig, env);
|
|
1104
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
1104
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
1105
1105
|
}
|
|
1106
1106
|
id() {
|
|
1107
1107
|
return `openclaw:tools:${this.toolName}`;
|
|
@@ -1198,4 +1198,4 @@ function createOpenClawProvider(providerPath, providerOptions = {}, env) {
|
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
export { createOpenClawProvider };
|
|
1200
1200
|
|
|
1201
|
-
//# sourceMappingURL=openclaw-
|
|
1201
|
+
//# sourceMappingURL=openclaw-BdnuiqBG.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-D_mwlA32.cjs");
|
|
2
|
-
const require_logger = require("./logger-
|
|
3
|
-
const require_fetch = require("./fetch-
|
|
4
|
-
const require_version = require("./version-
|
|
2
|
+
const require_logger = require("./logger-Cm0Nb8YX.cjs");
|
|
3
|
+
const require_fetch = require("./fetch-B2HvaVUc.cjs");
|
|
4
|
+
const require_version = require("./version-XjGPawtU.cjs");
|
|
5
5
|
const require_createHash = require("./createHash-CSiqnK5P.cjs");
|
|
6
|
-
const require_chat = require("./chat-
|
|
7
|
-
const require_embedding = require("./embedding-
|
|
8
|
-
const require_responses = require("./responses-
|
|
6
|
+
const require_chat = require("./chat-DkitQHdt.cjs");
|
|
7
|
+
const require_embedding = require("./embedding-BMqFDnLI.cjs");
|
|
8
|
+
const require_responses = require("./responses-Bs2_3zyr.cjs");
|
|
9
9
|
let fs = require("fs");
|
|
10
10
|
fs = require_rolldown_runtime.__toESM(fs, 1);
|
|
11
11
|
let path = require("path");
|
|
@@ -571,7 +571,7 @@ var OpenClawAgentProvider = class {
|
|
|
571
571
|
const authSecret = resolveAuthSecret(this.openclawConfig, env);
|
|
572
572
|
this.authKind = authSecret?.kind;
|
|
573
573
|
this.authSecret = authSecret?.value;
|
|
574
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ?? require_fetch.
|
|
574
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? require_fetch.getRequestTimeoutMs();
|
|
575
575
|
this.scopes = normalizeScopes(this.openclawConfig.scopes);
|
|
576
576
|
this.hasExplicitScopes = this.scopes.length > 0;
|
|
577
577
|
if (!this.hasExplicitScopes) this.scopes = [...DEFAULT_SCOPES];
|
|
@@ -1108,7 +1108,7 @@ var OpenClawToolInvokeProvider = class {
|
|
|
1108
1108
|
const env = providerOptions.env;
|
|
1109
1109
|
this.gatewayUrl = resolveGatewayUrl(this.openclawConfig, env);
|
|
1110
1110
|
this.authToken = resolveAuthToken(this.openclawConfig, env);
|
|
1111
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ?? require_fetch.
|
|
1111
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? require_fetch.getRequestTimeoutMs();
|
|
1112
1112
|
}
|
|
1113
1113
|
id() {
|
|
1114
1114
|
return `openclaw:tools:${this.toolName}`;
|
|
@@ -1205,4 +1205,4 @@ function createOpenClawProvider(providerPath, providerOptions = {}, env) {
|
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
exports.createOpenClawProvider = createOpenClawProvider;
|
|
1207
1207
|
|
|
1208
|
-
//# sourceMappingURL=openclaw-
|
|
1208
|
+
//# sourceMappingURL=openclaw-D54hA9Fe.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as fetchWithProxy,
|
|
3
|
-
import { n as VERSION } from "./version-
|
|
1
|
+
import { E as getEnvString, a as logger, x as getConfigDirectoryPath } from "./logger-BjYLHvGm.js";
|
|
2
|
+
import { t as fetchWithProxy, y as getRequestTimeoutMs } from "./fetch-CBe8pU8Q.js";
|
|
3
|
+
import { n as VERSION } from "./version-BGiEZvX0.js";
|
|
4
4
|
import { n as sha256 } from "./createHash-CGVzWdjj.js";
|
|
5
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
6
|
-
import { t as OpenAiResponsesProvider } from "./responses-
|
|
7
|
-
import { t as OpenAiEmbeddingProvider } from "./embedding-
|
|
5
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-CvQMD-mp.js";
|
|
6
|
+
import { t as OpenAiResponsesProvider } from "./responses-pvlY3oYx.js";
|
|
7
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-BwTB3YDt.js";
|
|
8
8
|
import fs from "fs";
|
|
9
9
|
import path from "path";
|
|
10
10
|
import os from "os";
|
|
@@ -564,7 +564,7 @@ var OpenClawAgentProvider = class {
|
|
|
564
564
|
const authSecret = resolveAuthSecret(this.openclawConfig, env);
|
|
565
565
|
this.authKind = authSecret?.kind;
|
|
566
566
|
this.authSecret = authSecret?.value;
|
|
567
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
567
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
568
568
|
this.scopes = normalizeScopes(this.openclawConfig.scopes);
|
|
569
569
|
this.hasExplicitScopes = this.scopes.length > 0;
|
|
570
570
|
if (!this.hasExplicitScopes) this.scopes = [...DEFAULT_SCOPES];
|
|
@@ -1101,7 +1101,7 @@ var OpenClawToolInvokeProvider = class {
|
|
|
1101
1101
|
const env = providerOptions.env;
|
|
1102
1102
|
this.gatewayUrl = resolveGatewayUrl(this.openclawConfig, env);
|
|
1103
1103
|
this.authToken = resolveAuthToken(this.openclawConfig, env);
|
|
1104
|
-
this.timeoutMs = this.openclawConfig.timeoutMs ??
|
|
1104
|
+
this.timeoutMs = this.openclawConfig.timeoutMs ?? getRequestTimeoutMs();
|
|
1105
1105
|
}
|
|
1106
1106
|
id() {
|
|
1107
1107
|
return `openclaw:tools:${this.toolName}`;
|
|
@@ -1198,4 +1198,4 @@ function createOpenClawProvider(providerPath, providerOptions = {}, env) {
|
|
|
1198
1198
|
//#endregion
|
|
1199
1199
|
export { createOpenClawProvider };
|
|
1200
1200
|
|
|
1201
|
-
//# sourceMappingURL=openclaw-
|
|
1201
|
+
//# sourceMappingURL=openclaw-DRjsDCSS.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as importModule } from "./esm-
|
|
3
|
-
import { i as initializeAgenticCache, n as generateCacheKey, r as getCachedResponse, t as cacheResponse } from "./agentic-utils-
|
|
1
|
+
import { E as getEnvString, S as state, a as logger, t as getLogLevel } from "./logger-BjYLHvGm.js";
|
|
2
|
+
import { r as importModule } from "./esm-CGER3lko.js";
|
|
3
|
+
import { i as initializeAgenticCache, n as generateCacheKey, r as getCachedResponse, t as cacheResponse } from "./agentic-utils-DYr-aM6d.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
@@ -51,6 +51,39 @@ function unwrapOpenCodeResult(result) {
|
|
|
51
51
|
if (typeof result === "object" && "data" in result) return result.data;
|
|
52
52
|
return result;
|
|
53
53
|
}
|
|
54
|
+
function getOpenCodeCacheDetails(cache) {
|
|
55
|
+
if (typeof cache === "number") return {
|
|
56
|
+
read: cache,
|
|
57
|
+
write: 0
|
|
58
|
+
};
|
|
59
|
+
if (!cache || typeof cache !== "object") return {
|
|
60
|
+
read: 0,
|
|
61
|
+
write: 0
|
|
62
|
+
};
|
|
63
|
+
return {
|
|
64
|
+
read: cache.read ?? 0,
|
|
65
|
+
write: cache.write ?? 0
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function buildOpenCodeTokenUsage(tokens) {
|
|
69
|
+
if (!tokens) return;
|
|
70
|
+
const prompt = tokens.input ?? 0;
|
|
71
|
+
const completion = tokens.output ?? 0;
|
|
72
|
+
const cache = getOpenCodeCacheDetails(tokens.cache);
|
|
73
|
+
const completionDetails = {};
|
|
74
|
+
if (typeof tokens.reasoning === "number") completionDetails.reasoning = tokens.reasoning;
|
|
75
|
+
if (tokens.cache !== void 0) {
|
|
76
|
+
completionDetails.cacheReadInputTokens = cache.read;
|
|
77
|
+
completionDetails.cacheCreationInputTokens = cache.write;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
prompt,
|
|
81
|
+
completion,
|
|
82
|
+
total: tokens.total ?? prompt + completion,
|
|
83
|
+
...tokens.cache === void 0 ? {} : { cached: cache.read },
|
|
84
|
+
...Object.keys(completionDetails).length > 0 ? { completionDetails } : {}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
54
87
|
function getSessionPath(sessionId) {
|
|
55
88
|
return {
|
|
56
89
|
id: sessionId,
|
|
@@ -502,11 +535,7 @@ var OpenCodeSDKProvider = class {
|
|
|
502
535
|
const tokens = assistantMessage?.tokens;
|
|
503
536
|
return {
|
|
504
537
|
output,
|
|
505
|
-
tokenUsage: tokens
|
|
506
|
-
prompt: tokens.input ?? 0,
|
|
507
|
-
completion: tokens.output ?? 0,
|
|
508
|
-
total: (tokens.input ?? 0) + (tokens.output ?? 0)
|
|
509
|
-
} : void 0,
|
|
538
|
+
tokenUsage: buildOpenCodeTokenUsage(tokens),
|
|
510
539
|
cost: assistantMessage?.cost ?? 0,
|
|
511
540
|
raw: JSON.stringify(response),
|
|
512
541
|
sessionId
|
|
@@ -590,4 +619,4 @@ var OpenCodeSDKProvider = class {
|
|
|
590
619
|
//#endregion
|
|
591
620
|
export { OpenCodeSDKProvider };
|
|
592
621
|
|
|
593
|
-
//# sourceMappingURL=opencode-sdk-
|
|
622
|
+
//# sourceMappingURL=opencode-sdk-2su-bzyz.js.map
|