promptfoo 0.120.25 → 0.120.26
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 +35 -22
- package/dist/src/{ListApp-CYTAaS6A.js → ListApp-D3DG0F8h.js} +1 -1
- package/dist/src/{accounts-CwqY22lU.cjs → accounts-BzEY8H3v.cjs} +4 -4
- package/dist/src/{accounts-Bzx8GnL6.js → accounts-DHHiXsy6.js} +5 -5
- package/dist/src/{accounts-BSwMxhY3.js → accounts-R3gfCR_g.js} +4 -4
- package/dist/src/{agentic-utils-5K7LzooV.js → agentic-utils-D6_gzOUF.js} +2 -2
- package/dist/src/{agents-B8RWrA68.cjs → agents-C7BiinFI.cjs} +6 -6
- package/dist/src/{agents-zHyWnnQ2.js → agents-Cao4i7AX.js} +7 -7
- package/dist/src/{agents-KZxXwlyn.cjs → agents-CwM7re15.cjs} +2 -2
- package/dist/src/{agents-DleC7rb4.js → agents-DETIQHqF.js} +6 -6
- package/dist/src/{agents-CkA9l77-.js → agents-DYIT-hQy.js} +5 -5
- package/dist/src/{agents-B20gl7hH.js → agents-GiUianme.js} +2 -2
- package/dist/src/{aimlapi-DgbFGPTX.js → aimlapi-CMJpKK-B.js} +9 -9
- package/dist/src/{aimlapi-DILJovhN.js → aimlapi-DMF6v_vb.js} +14 -14
- package/dist/src/{aimlapi-DIdWBHtH.cjs → aimlapi-DoGLcQW_.cjs} +9 -9
- package/dist/src/app/assets/index-BOgkICuY.css +1 -0
- package/dist/src/app/assets/index-CSgqn_Vd.js +428 -0
- package/dist/src/app/assets/{vendor-charts-DnwydkkY.js → vendor-charts-CYyo8R8v.js} +1 -1
- package/dist/src/app/assets/{vendor-markdown-DjKAU15k.js → vendor-markdown-DSmzq4Jh.js} +1 -1
- package/dist/src/app/assets/vendor-react-AtKqiNEf.js +4 -0
- package/dist/src/app/assets/{vendor-syntax-Dc86c4Bu.js → vendor-syntax-D06x6TQF.js} +1 -1
- package/dist/src/app/index.html +6 -6
- package/dist/src/app/tsconfig.app.tsbuildinfo +1 -1
- package/dist/src/{audio-BoR9KZV8.cjs → audio-BWjyvHn9.cjs} +3 -3
- package/dist/src/{audio-nUSOpXY7.js → audio-BrJBFN2b.js} +3 -3
- package/dist/src/{audio-BDrAkpVc.js → audio-DUH4q0Xq.js} +4 -4
- package/dist/src/{base-DumUXbOH.js → base-BaXmtXYp.js} +2 -2
- package/dist/src/{base-CwCV0t8r.js → base-Dtp8b4_N.js} +2 -2
- package/dist/src/{base-D8VQYhNQ.cjs → base-f71xxWai.cjs} +2 -2
- package/dist/src/{blobs-_kNRY6vU.cjs → blobs-673H0jCl.cjs} +2 -2
- package/dist/src/{blobs-Dnt2rxpc.js → blobs-C9J2mVgo.js} +2 -2
- package/dist/src/{blobs-DlB5fwyF.js → blobs-kt8v3UyH.js} +2 -2
- package/dist/src/{cache-S9MAoF9H.cjs → cache-7xULbvt3.cjs} +34 -7
- package/dist/src/{cache-C4A4H4Xb.js → cache-BLLayYEN.js} +23 -8
- package/dist/src/{cache-B2oIvf92.js → cache-BUPcq0Ad.js} +2 -2
- package/dist/src/cache-CVfRb-HD.cjs +6 -0
- package/dist/src/{cache-DofebEnH.js → cache-O4EuX2JV.js} +3 -3
- package/dist/src/{cache-Bg1Wpvzq.js → cache-mIszOnuz.js} +4 -21
- package/dist/src/{chat-DTCPbuld.cjs → chat-C4zqjObh.cjs} +6 -6
- package/dist/src/{chat-noXtEAh5.js → chat-C8Ei4f87.js} +6 -6
- package/dist/src/{chat-BiImdLJf.js → chat-CgyGj2hC.js} +8 -8
- package/dist/src/{chat-DQ6Z5Cbn.js → chat-Cpz3O-Xl.js} +13 -13
- package/dist/src/{chat-D_cro0wd.js → chat-DIywASPG.js} +10 -10
- package/dist/src/{chat-BR2x1dG_.cjs → chat-Fl6TZJRS.cjs} +8 -8
- package/dist/src/{chatkit-TnC1YoVi.js → chatkit-DEls11hE.js} +3 -3
- package/dist/src/{claude-agent-sdk-CBpAZV5h.js → claude-agent-sdk-6-xTaLwM.js} +45 -16
- package/dist/src/{claude-agent-sdk-uHLgAUZj.cjs → claude-agent-sdk-BzxF6NIJ.cjs} +45 -16
- package/dist/src/{claude-agent-sdk-qxE5mGVi.js → claude-agent-sdk-CmkTnKGH.js} +48 -19
- package/dist/src/{claude-agent-sdk-DyPvrj-1.js → claude-agent-sdk-rXCBLK_o.js} +38 -9
- package/dist/src/{cloud-lRosK6Nk.js → cloud-BMbRVJFw.js} +2 -2
- package/dist/src/{cloud-DHWE-9nj.js → cloud-CZ4hytdm.js} +1 -1
- package/dist/src/{cloudflare-ai-D0OtFY6g.cjs → cloudflare-ai-BAQ0u_dg.cjs} +9 -9
- package/dist/src/{cloudflare-ai-BprwSD6d.js → cloudflare-ai-CUg4BTcj.js} +9 -9
- package/dist/src/{cloudflare-ai-CB7OWRAP.js → cloudflare-ai-CobxMTR4.js} +14 -14
- package/dist/src/{cloudflare-gateway-C29gWj5O.cjs → cloudflare-gateway-C0sgfr_z.cjs} +10 -10
- package/dist/src/{cloudflare-gateway-BaVwoBjE.js → cloudflare-gateway-D2_yi-Fh.js} +15 -15
- package/dist/src/{cloudflare-gateway-BjoxwqUw.js → cloudflare-gateway-_itGuXry.js} +10 -10
- package/dist/src/{codex-sdk-DNkCbb7c.js → codex-sdk-dSnGdgIp.js} +3 -3
- package/dist/src/{cometapi-BGxGZ7VA.js → cometapi-B01btbfb.js} +15 -15
- package/dist/src/{cometapi-xiTQZp8R.js → cometapi-ChAaRjg5.js} +10 -10
- package/dist/src/{cometapi-DalITP94.cjs → cometapi-JbvOJSCO.cjs} +10 -10
- package/dist/src/{completion-BTbouQDz.js → completion-BBJ6zmG3.js} +5 -5
- package/dist/src/{completion-HYrX5gEL.js → completion-D9_MDlnd.js} +4 -4
- package/dist/src/{completion-DV0Ys99K.cjs → completion-DDyL3Cb2.cjs} +4 -4
- package/dist/src/{docker-Dx_FN1ag.js → docker-BuButc4D.js} +14 -14
- package/dist/src/{docker-zUAnbYTM.cjs → docker-Ckw-j7Rr.cjs} +9 -9
- package/dist/src/{docker-BAYnlbAW.js → docker-JAAubMw3.js} +9 -9
- package/dist/src/errors-DnGCbnx8.js +36 -0
- package/dist/src/{esm-79BpbQzg.js → esm-CYhseqj4.js} +1 -1
- package/dist/src/eval-CKHWqG9f.js +16 -0
- package/dist/src/{eval-Cxb9alW8.js → eval-CYrbG57o.js} +45 -13
- package/dist/src/{evalResult-B8LbgWMA.js → evalResult-6JaUIStC.js} +6 -6
- package/dist/src/{evalResult-CJNSpa3q.js → evalResult-COsVttMA.js} +6 -6
- package/dist/src/evalResult-CxTP-LMm.cjs +11 -0
- package/dist/src/evalResult-CzLURDcP.js +13 -0
- package/dist/src/{evalResult-hI1mhi_g.cjs → evalResult-DlRfu_Rq.cjs} +6 -6
- package/dist/src/evalResult-DyttNQ_G.js +11 -0
- package/dist/src/evaluator-0PvfeBYh.js +38 -0
- package/dist/src/{evaluator-1Tkdu8MK.js → evaluator-3EJCMTs0.js} +74 -48
- package/dist/src/{extractor-BPBlLyOn.cjs → extractor-DbhlYEeo.cjs} +22 -5
- package/dist/src/{extractor-CuUWqwrE.js → extractor-Hs7la_19.js} +22 -5
- package/dist/src/{extractor-BFoThUOa.js → extractor-LSYjrhK0.js} +22 -5
- package/dist/src/{fetch-zJuFPxN1.js → fetch-18MuNu9i.js} +4 -4
- package/dist/src/{fetch-BdiCecAv.js → fetch-Bi0o-fdp.js} +1 -1
- package/dist/src/fetch-CMptBDVg.cjs +4 -0
- package/dist/src/{fetch-BQgz6x7S.js → fetch-DAZkv3gV.js} +2 -2
- package/dist/src/{fetch-BuP-gm0E.js → fetch-SRsE6Ctl.js} +4 -4
- package/dist/src/{fetch-Dy2YML9G.cjs → fetch-ZMn_oemb.cjs} +4 -4
- package/dist/src/{fileExtensions-CzcPkiKZ.js → fileExtensions-BpuMmaFL.js} +1 -1
- package/dist/src/{formatDuration-CGa0ZDQ8.js → formatDuration-Doo0xq-z.js} +1 -1
- package/dist/src/{genaiTracer-foKtbVa2.js → genaiTracer-CqNnnXrE.js} +1 -1
- package/dist/src/graders-BCytzXrb.js +34 -0
- package/dist/src/{graders-DMAzEgEF.js → graders-BaMCwIKp.js} +211 -91
- package/dist/src/graders-CGZQShfJ.cjs +33 -0
- package/dist/src/{graders-NBsuYeMx.cjs → graders-DzUUnUjC.cjs} +206 -86
- package/dist/src/{graders-CtvuaC8D.js → graders-QsALpIdy.js} +206 -86
- package/dist/src/graders-spkuVC-E.js +36 -0
- package/dist/src/{image-Bf8RiJ2g.js → image-BXt_7u0v.js} +3 -3
- package/dist/src/{image-LhLO5KCW.js → image-BiEVdpdP.js} +4 -4
- package/dist/src/{image-CaVWfZub.cjs → image-C3BjJUAU.cjs} +4 -4
- package/dist/src/{image-BnF25Osq.cjs → image-D10zEe1f.cjs} +3 -3
- package/dist/src/{image-DIn_AW1Z.js → image-DB4sHxdJ.js} +4 -4
- package/dist/src/{image-DFwp1aAV.js → image-mhAGP07h.js} +6 -6
- package/dist/src/index.cjs +152 -69
- package/dist/src/index.d.cts +20 -3
- package/dist/src/index.d.ts +20 -3
- package/dist/src/index.js +152 -69
- package/dist/src/{interactiveCheck-Dmm9vjpx.js → interactiveCheck-DU-MAhp5.js} +1 -1
- package/dist/src/{knowledgeBase-Bf57PI7g.cjs → knowledgeBase-Bnb00xKs.cjs} +6 -6
- package/dist/src/{knowledgeBase-DZw2L9kf.js → knowledgeBase-CMvMlLZR.js} +8 -8
- package/dist/src/{knowledgeBase-CfOvyF2s.js → knowledgeBase-XJQ0Qyez.js} +6 -6
- package/dist/src/{litellm-Ds8YmO1b.js → litellm-BECdjOTx.js} +3 -3
- package/dist/src/{litellm-ByNRN2Vh.cjs → litellm-BrnZhMcL.cjs} +11 -11
- package/dist/src/{litellm-fU-xV6T4.js → litellm-CHrRmPAe.js} +16 -16
- package/dist/src/{litellm-DexU8FFp.js → litellm-CrLJrPIm.js} +11 -11
- package/dist/src/{luma-ray-y26EHFO8.js → luma-ray-BOeX-h0M.js} +8 -8
- package/dist/src/{luma-ray-BIe5ctI4.cjs → luma-ray-C0RkI3lt.cjs} +8 -8
- package/dist/src/{luma-ray-vvE-O9EA.js → luma-ray-DgKLS0BF.js} +10 -10
- package/dist/src/main.js +1011 -404
- package/dist/src/{messages-Bg2ekFPc.js → messages-CDZYGNlS.js} +7 -7
- package/dist/src/{messages-DpoCLD_8.js → messages-D61tPFQo.js} +9 -9
- package/dist/src/{messages-16jb9LP7.cjs → messages-DXV3Qh8_.cjs} +7 -7
- package/dist/src/{meteor-DLCdreag.js → meteor-P2rUE-Uz.js} +1 -1
- package/dist/src/{nova-reel-BM0snD2m.js → nova-reel-Bk5npr2q.js} +10 -10
- package/dist/src/{nova-reel-CvXCVn3f.cjs → nova-reel-D9FXq3Mt.cjs} +8 -8
- package/dist/src/{nova-reel-CJLpBKSI.js → nova-reel-DtCjbD5O.js} +8 -8
- package/dist/src/{nova-sonic-CklvraBd.js → nova-sonic-BXRfQyF-.js} +7 -7
- package/dist/src/{nova-sonic-DEx_FdFW.cjs → nova-sonic-BoRSY_U6.cjs} +5 -5
- package/dist/src/{nova-sonic-Cjh_qopr.js → nova-sonic-CgaWLDM1.js} +5 -5
- package/dist/src/{openai-jNIREoAW.js → openai-CT5fwbve.js} +1 -1
- package/dist/src/{openclaw-CnAwBfPO.js → openclaw-B6XY2kUf.js} +14 -14
- package/dist/src/{openclaw-DBSSY4SP.js → openclaw-CpPrXwf6.js} +9 -9
- package/dist/src/{openclaw-CbHtt3B8.cjs → openclaw-DDSfq5fp.cjs} +9 -9
- package/dist/src/{opencode-sdk-CqxTHrk0.js → opencode-sdk-CImWVqy9.js} +6 -6
- package/dist/src/{opencode-sdk-xUrRk5Jx.js → opencode-sdk-CuCztr4P.js} +4 -4
- package/dist/src/{opencode-sdk-DdmtRB6D.cjs → opencode-sdk-mqF-Oj3f.cjs} +4 -4
- package/dist/src/{otlpReceiver-th2zHwjZ.cjs → otlpReceiver-B6Xo4KZM.cjs} +4 -4
- package/dist/src/{otlpReceiver-uytrRKdo.js → otlpReceiver-BO0rbDzh.js} +4 -4
- package/dist/src/{otlpReceiver-C-1cdVDr.js → otlpReceiver-Dg817agV.js} +5 -5
- package/dist/src/{providerRegistry-DAZoFmGv.js → providerRegistry-Xf0qdqGQ.js} +1 -1
- package/dist/src/providers-BMZZmPBJ.cjs +32 -0
- package/dist/src/{providers-CpUrPa8s.cjs → providers-BNKVY53V.cjs} +94 -64
- package/dist/src/{providers-D3lk_R7Q.js → providers-BiNq_Iyc.js} +94 -64
- package/dist/src/{providers-BOvl9qv5.js → providers-BlEhY5mi.js} +110 -79
- package/dist/src/providers-CQQrNaJk.js +32 -0
- package/dist/src/providers-Ck8HyrC-.js +34 -0
- package/dist/src/{pythonUtils-CUPlf1H0.js → pythonUtils-r1uBuA0n.js} +2 -2
- package/dist/src/{quiverai-BNGJOQym.cjs → quiverai-BNfIwKCO.cjs} +8 -8
- package/dist/src/{quiverai-Y7Is4wah.js → quiverai-BQigKdIH.js} +13 -13
- package/dist/src/{quiverai-DthRqZs9.js → quiverai-Bfy2WnE2.js} +8 -8
- package/dist/src/{render-kFatbqG6.js → render-CAZvKKkB.js} +3 -3
- package/dist/src/{responses-BtU_i-R0.js → responses-DLLjADw5.js} +5 -5
- package/dist/src/{responses-B85halqh.js → responses-TsdODUpm.js} +8 -8
- package/dist/src/{responses-CXJACENh.cjs → responses-zOtKtnY_.cjs} +5 -5
- package/dist/src/{rubyUtils-DYKoa7Ze.js → rubyUtils-BtjlqyXt.js} +2 -2
- package/dist/src/{rubyUtils-BA4D4gMX.js → rubyUtils-D7--T12C.js} +2 -2
- package/dist/src/{sagemaker-hRS_Jj3-.js → sagemaker-BcgLu0U4.js} +17 -17
- package/dist/src/{sagemaker-DI6IOTjT.js → sagemaker-CLdUAv5z.js} +11 -11
- package/dist/src/{sagemaker-BUagsrJ-.cjs → sagemaker-DwNnEVYt.cjs} +11 -11
- package/dist/src/{scanner-C6QXA9Pn.js → scanner-Dyw21Wg_.js} +10 -10
- package/dist/src/server/index.js +1376 -486
- package/dist/src/server-BUbS0Qfh.js +6 -0
- package/dist/src/{server-BPC37wlX.js → server-CbMTRQkg.js} +3 -3
- package/dist/src/{server-C_O6-VE4.cjs → server-CgUQ25qW.cjs} +3 -3
- package/dist/src/{server-HQtz_gUy.js → server-DWmZLfCy.js} +4 -4
- package/dist/src/server-XpGXFHkS.cjs +6 -0
- package/dist/src/server-gfOx5Zrk.js +8 -0
- package/dist/src/{signal-D4VhSJOY.js → signal-Bl32q42d.js} +2 -2
- package/dist/src/{slack-DTUSadx4.js → slack-BfdBx2tO.js} +1 -1
- package/dist/src/{store-BTdkdmK9.js → store-2ocbYY9D.js} +2 -2
- package/dist/src/store-5u2yriTV.js +7 -0
- package/dist/src/{store-F-KTiqfb.cjs → store-BqwfFEyF.cjs} +2 -2
- package/dist/src/{store-rueRdzcm.js → store-D4gdn9ih.js} +2 -2
- package/dist/src/store-D_lq_8oQ.js +6 -0
- package/dist/src/store-m5KT6Ly7.cjs +6 -0
- package/dist/src/{tables-w-r-abWq.cjs → tables-B9E1kRp-.cjs} +2 -2
- package/dist/src/{tables-ChjAuVAR.js → tables-C7TT2XVn.js} +2 -2
- package/dist/src/{tables-dNaVPyDr.js → tables-D-NSwNIb.js} +2 -2
- package/dist/src/telemetry-5RHFoCJh.js +6 -0
- package/dist/src/{telemetry-wXyCQ1Nz.js → telemetry-BXyVqyAg.js} +3 -3
- package/dist/src/{telemetry-Y1esJM0v.cjs → telemetry-D0_yFdtU.cjs} +3 -3
- package/dist/src/{telemetry-Dai7PdlR.js → telemetry-DZ_7PaVq.js} +3 -3
- package/dist/src/telemetry-Do8wMnA-.js +8 -0
- package/dist/src/telemetry-LojxPoFq.cjs +6 -0
- package/dist/src/{text-C1cXk9ij.js → text-DgMr_tiM.js} +1 -1
- package/dist/src/{tokenUsageUtils-D2ko2eFQ.js → tokenUsageUtils-DmZSD2eU.js} +1 -1
- package/dist/src/{transcription-i6EfSMie.js → transcription-CYuY5sFO.js} +6 -6
- package/dist/src/{transcription-CcYTL4wi.js → transcription-Ch7S-LWw.js} +10 -10
- package/dist/src/{transcription-C-K2hDJX.cjs → transcription-FNIz3YOe.cjs} +6 -6
- package/dist/src/{transform-gpzlPrwG.js → transform-CoP2bJ7P.js} +43 -4
- package/dist/src/{transform-B86_0IIb.js → transform-CqTFr7KR.js} +4 -4
- package/dist/src/{transform-DosdxVdh.js → transform-DMaxQwDx.js} +43 -4
- package/dist/src/{transform-DwsntMEQ.js → transform-GybT0X0u.js} +3 -3
- package/dist/src/{transform-CCSNqTI-.cjs → transform-ivxEY4f7.cjs} +54 -3
- package/dist/src/{transformersAvailability-DM54tWzt.js → transformersAvailability-DwmezkVe.js} +1 -1
- package/dist/src/{types-Brw5kggg.cjs → types-BIfttHrT.cjs} +13 -1
- package/dist/src/{types-CslP2TyG.js → types-DMVjYLpx.js} +13 -1
- package/dist/src/{types-CMDs7Kzu.js → types-t52w-XsS.js} +16 -2
- package/dist/src/{util-BECSJ0T_.js → util-BSh4a_Q8.js} +6 -6
- package/dist/src/{util-D8z5QOy8.cjs → util-C08Kns6-.cjs} +3 -3
- package/dist/src/{util-CttPoePn.js → util-CUEt0Vum.js} +3 -3
- package/dist/src/{util-CfPdWQJX.js → util-Cl0zfT3V.js} +3 -3
- package/dist/src/{util-Dab5xp2E.cjs → util-DUYOvxAy.cjs} +3 -3
- package/dist/src/{util-CY_XguB9.js → util-DiCePfDu.js} +3 -3
- package/dist/src/{util-CBAXTxfy.cjs → util-DkFTvieG.cjs} +3 -3
- package/dist/src/{util-Dft1RxsL.js → util-mJ58qbbw.js} +3 -3
- package/dist/src/{util-Ba18wQ8e.js → util-vjscpUzy.js} +3 -3
- package/dist/src/{utils-BTeLHwiH.js → utils-CVzb4YiI.js} +2 -2
- package/dist/src/{utils-Db5KwiXp.cjs → utils-DFaZa6Rf.cjs} +2 -2
- package/dist/src/{utils-ICP7kLcY.js → utils-JaY9veb5.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -42
- package/dist/src/app/assets/index-COIipVf1.css +0 -1
- package/dist/src/app/assets/index-ClD64gUa.js +0 -428
- package/dist/src/app/assets/vendor-react-DHoaNLma.js +0 -4
- package/dist/src/cache-BJ31KhNT.cjs +0 -6
- package/dist/src/eval-DgiEH2xe.js +0 -16
- package/dist/src/evalResult-Boel8xoS.js +0 -13
- package/dist/src/evalResult-DGx1-Ela.js +0 -11
- package/dist/src/evalResult-DzRxYLDH.cjs +0 -11
- package/dist/src/evaluator-B4qKt437.js +0 -38
- package/dist/src/fetch-DwhKew9e.cjs +0 -4
- package/dist/src/graders-BpEqZT2Q.js +0 -34
- package/dist/src/graders-DTGI-hHE.cjs +0 -33
- package/dist/src/graders-DgMr-E4I.js +0 -36
- package/dist/src/providers-DVsoSup2.js +0 -34
- package/dist/src/providers-D_tJatIk.js +0 -32
- package/dist/src/providers-wpMPsMZ7.cjs +0 -32
- package/dist/src/server-BeqUuSvj.js +0 -6
- package/dist/src/server-CwQsQ6dl.cjs +0 -6
- package/dist/src/server-Dhbq83-d.js +0 -8
- package/dist/src/store-C7U17qcu.js +0 -6
- package/dist/src/store-CuDU_jDN.js +0 -7
- package/dist/src/store-awdDxuiD.cjs +0 -6
- package/dist/src/telemetry-ClcYTCOG.js +0 -8
- package/dist/src/telemetry-DEWuLu_s.js +0 -6
- package/dist/src/telemetry-tADmeX6E.cjs +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
3
|
import { C as getEnvString, O as cliState_default, o as logger_default } from "./logger-BotXmWKW.js";
|
|
4
|
-
import "./fetch-
|
|
5
|
-
import "./cloud-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./cache-
|
|
8
|
-
import "./util-
|
|
9
|
-
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-
|
|
10
|
-
import "./pythonUtils-
|
|
11
|
-
import { t as transformMCPConfigToClaudeCode } from "./transform-
|
|
12
|
-
import { t as ANTHROPIC_MODELS } from "./util-
|
|
13
|
-
import { n as getCachedResponse, r as initializeAgenticCache, t as cacheResponse } from "./agentic-utils-
|
|
4
|
+
import "./fetch-SRsE6Ctl.js";
|
|
5
|
+
import "./cloud-BMbRVJFw.js";
|
|
6
|
+
import "./types-t52w-XsS.js";
|
|
7
|
+
import "./cache-mIszOnuz.js";
|
|
8
|
+
import "./util-BSh4a_Q8.js";
|
|
9
|
+
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-CYhseqj4.js";
|
|
10
|
+
import "./pythonUtils-r1uBuA0n.js";
|
|
11
|
+
import { t as transformMCPConfigToClaudeCode } from "./transform-CoP2bJ7P.js";
|
|
12
|
+
import { t as ANTHROPIC_MODELS } from "./util-vjscpUzy.js";
|
|
13
|
+
import { n as getCachedResponse, r as initializeAgenticCache, t as cacheResponse } from "./agentic-utils-D6_gzOUF.js";
|
|
14
14
|
import fs from "node:fs";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import dedent from "dedent";
|
|
@@ -191,6 +191,12 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
191
191
|
hooks: config.hooks,
|
|
192
192
|
includePartialMessages: config.include_partial_messages,
|
|
193
193
|
betas: config.betas,
|
|
194
|
+
thinking: config.thinking,
|
|
195
|
+
effort: config.effort,
|
|
196
|
+
agent: config.agent,
|
|
197
|
+
sessionId: config.session_id,
|
|
198
|
+
debug: config.debug,
|
|
199
|
+
debugFile: config.debug_file,
|
|
194
200
|
sandbox: config.sandbox,
|
|
195
201
|
allowDangerouslySkipPermissions: config.allow_dangerously_skip_permissions,
|
|
196
202
|
permissionPromptToolName: config.permission_prompt_tool_name,
|
|
@@ -259,7 +265,28 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
259
265
|
try {
|
|
260
266
|
if (!this.claudeCodeModule) this.claudeCodeModule = await loadClaudeCodeSDK();
|
|
261
267
|
const res = await this.claudeCodeModule.query(queryParams);
|
|
262
|
-
|
|
268
|
+
const toolCallsMap = /* @__PURE__ */ new Map();
|
|
269
|
+
for await (const msg of res) if (msg.type === "assistant") {
|
|
270
|
+
for (const block of msg.message.content) if (block.type === "tool_use") toolCallsMap.set(block.id, {
|
|
271
|
+
id: block.id,
|
|
272
|
+
name: block.name,
|
|
273
|
+
input: block.input,
|
|
274
|
+
output: void 0,
|
|
275
|
+
is_error: false,
|
|
276
|
+
parentToolUseId: msg.parent_tool_use_id
|
|
277
|
+
});
|
|
278
|
+
} else if (msg.type === "user") {
|
|
279
|
+
const content = msg.message?.content;
|
|
280
|
+
if (Array.isArray(content)) {
|
|
281
|
+
for (const block of content) if (block.type === "tool_result") {
|
|
282
|
+
const entry = toolCallsMap.get(block.tool_use_id);
|
|
283
|
+
if (entry) {
|
|
284
|
+
entry.output = block.content;
|
|
285
|
+
entry.is_error = block.is_error ?? false;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
} else if (msg.type === "result") {
|
|
263
290
|
const raw = JSON.stringify(msg);
|
|
264
291
|
const tokenUsage = {
|
|
265
292
|
prompt: msg.usage?.input_tokens,
|
|
@@ -268,18 +295,19 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
268
295
|
};
|
|
269
296
|
const cost = msg.total_cost_usd ?? 0;
|
|
270
297
|
const sessionId = msg.session_id;
|
|
271
|
-
|
|
298
|
+
const toolCallsArray = Array.from(toolCallsMap.values());
|
|
299
|
+
if (msg.subtype === "success") {
|
|
272
300
|
logger_default.debug(`Claude Agent SDK response: ${raw}`);
|
|
273
301
|
const response = {
|
|
274
302
|
output: msg.structured_output !== void 0 ? msg.structured_output : msg.result,
|
|
275
303
|
tokenUsage,
|
|
276
304
|
cost,
|
|
277
305
|
raw,
|
|
278
|
-
sessionId
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
306
|
+
sessionId,
|
|
307
|
+
metadata: {
|
|
308
|
+
toolCalls: toolCallsArray,
|
|
309
|
+
...msg.structured_output !== void 0 ? { structuredOutput: msg.structured_output } : {}
|
|
310
|
+
}
|
|
283
311
|
};
|
|
284
312
|
await cacheResponse(cacheResult, response, "Claude Agent SDK");
|
|
285
313
|
return response;
|
|
@@ -288,7 +316,8 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
288
316
|
tokenUsage,
|
|
289
317
|
cost,
|
|
290
318
|
raw,
|
|
291
|
-
sessionId
|
|
319
|
+
sessionId,
|
|
320
|
+
metadata: { toolCalls: toolCallsArray }
|
|
292
321
|
};
|
|
293
322
|
}
|
|
294
323
|
return { error: "Claude Agent SDK call didn't return a result" };
|
|
@@ -322,4 +351,4 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
322
351
|
|
|
323
352
|
//#endregion
|
|
324
353
|
export { ClaudeCodeSDKProvider };
|
|
325
|
-
//# sourceMappingURL=claude-agent-sdk-
|
|
354
|
+
//# sourceMappingURL=claude-agent-sdk-CmkTnKGH.js.map
|
|
@@ -180,6 +180,12 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
180
180
|
hooks: config.hooks,
|
|
181
181
|
includePartialMessages: config.include_partial_messages,
|
|
182
182
|
betas: config.betas,
|
|
183
|
+
thinking: config.thinking,
|
|
184
|
+
effort: config.effort,
|
|
185
|
+
agent: config.agent,
|
|
186
|
+
sessionId: config.session_id,
|
|
187
|
+
debug: config.debug,
|
|
188
|
+
debugFile: config.debug_file,
|
|
183
189
|
sandbox: config.sandbox,
|
|
184
190
|
allowDangerouslySkipPermissions: config.allow_dangerously_skip_permissions,
|
|
185
191
|
permissionPromptToolName: config.permission_prompt_tool_name,
|
|
@@ -248,7 +254,28 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
248
254
|
try {
|
|
249
255
|
if (!this.claudeCodeModule) this.claudeCodeModule = await loadClaudeCodeSDK();
|
|
250
256
|
const res = await this.claudeCodeModule.query(queryParams);
|
|
251
|
-
|
|
257
|
+
const toolCallsMap = /* @__PURE__ */ new Map();
|
|
258
|
+
for await (const msg of res) if (msg.type === "assistant") {
|
|
259
|
+
for (const block of msg.message.content) if (block.type === "tool_use") toolCallsMap.set(block.id, {
|
|
260
|
+
id: block.id,
|
|
261
|
+
name: block.name,
|
|
262
|
+
input: block.input,
|
|
263
|
+
output: void 0,
|
|
264
|
+
is_error: false,
|
|
265
|
+
parentToolUseId: msg.parent_tool_use_id
|
|
266
|
+
});
|
|
267
|
+
} else if (msg.type === "user") {
|
|
268
|
+
const content = msg.message?.content;
|
|
269
|
+
if (Array.isArray(content)) {
|
|
270
|
+
for (const block of content) if (block.type === "tool_result") {
|
|
271
|
+
const entry = toolCallsMap.get(block.tool_use_id);
|
|
272
|
+
if (entry) {
|
|
273
|
+
entry.output = block.content;
|
|
274
|
+
entry.is_error = block.is_error ?? false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} else if (msg.type === "result") {
|
|
252
279
|
const raw = JSON.stringify(msg);
|
|
253
280
|
const tokenUsage = {
|
|
254
281
|
prompt: msg.usage?.input_tokens,
|
|
@@ -257,18 +284,19 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
257
284
|
};
|
|
258
285
|
const cost = msg.total_cost_usd ?? 0;
|
|
259
286
|
const sessionId = msg.session_id;
|
|
260
|
-
|
|
287
|
+
const toolCallsArray = Array.from(toolCallsMap.values());
|
|
288
|
+
if (msg.subtype === "success") {
|
|
261
289
|
logger_default.debug(`Claude Agent SDK response: ${raw}`);
|
|
262
290
|
const response = {
|
|
263
291
|
output: msg.structured_output !== void 0 ? msg.structured_output : msg.result,
|
|
264
292
|
tokenUsage,
|
|
265
293
|
cost,
|
|
266
294
|
raw,
|
|
267
|
-
sessionId
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
295
|
+
sessionId,
|
|
296
|
+
metadata: {
|
|
297
|
+
toolCalls: toolCallsArray,
|
|
298
|
+
...msg.structured_output !== void 0 ? { structuredOutput: msg.structured_output } : {}
|
|
299
|
+
}
|
|
272
300
|
};
|
|
273
301
|
await cacheResponse(cacheResult, response, "Claude Agent SDK");
|
|
274
302
|
return response;
|
|
@@ -277,7 +305,8 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
277
305
|
tokenUsage,
|
|
278
306
|
cost,
|
|
279
307
|
raw,
|
|
280
|
-
sessionId
|
|
308
|
+
sessionId,
|
|
309
|
+
metadata: { toolCalls: toolCallsArray }
|
|
281
310
|
};
|
|
282
311
|
}
|
|
283
312
|
return { error: "Claude Agent SDK call didn't return a result" };
|
|
@@ -311,4 +340,4 @@ var ClaudeCodeSDKProvider = class ClaudeCodeSDKProvider {
|
|
|
311
340
|
|
|
312
341
|
//#endregion
|
|
313
342
|
export { ClaudeCodeSDKProvider };
|
|
314
|
-
//# sourceMappingURL=claude-agent-sdk-
|
|
343
|
+
//# sourceMappingURL=claude-agent-sdk-rXCBLK_o.js.map
|
|
@@ -120,7 +120,7 @@ var CloudConfig = class {
|
|
|
120
120
|
}
|
|
121
121
|
async validateAndSetApiToken(token, apiHost) {
|
|
122
122
|
try {
|
|
123
|
-
const { fetchWithProxy } = await import("./fetch-
|
|
123
|
+
const { fetchWithProxy } = await import("./fetch-DAZkv3gV.js");
|
|
124
124
|
const response = await fetchWithProxy(`${apiHost}/api/v1/users/me`, { headers: { Authorization: `Bearer ${token}` } });
|
|
125
125
|
if (!response.ok) {
|
|
126
126
|
const errorMessage = await response.text();
|
|
@@ -190,4 +190,4 @@ const cloudConfig = new CloudConfig();
|
|
|
190
190
|
|
|
191
191
|
//#endregion
|
|
192
192
|
export { readGlobalConfig as a, cloudConfig as i, CLOUD_API_HOST as n, writeGlobalConfig as o, CloudConfig as r, writeGlobalConfigPartial as s, API_HOST as t };
|
|
193
|
-
//# sourceMappingURL=cloud-
|
|
193
|
+
//# sourceMappingURL=cloud-BMbRVJFw.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./logger-BotXmWKW.js";
|
|
3
|
-
import { i as cloudConfig, n as CLOUD_API_HOST, r as CloudConfig, t as API_HOST } from "./cloud-
|
|
3
|
+
import { i as cloudConfig, n as CLOUD_API_HOST, r as CloudConfig, t as API_HOST } from "./cloud-BMbRVJFw.js";
|
|
4
4
|
|
|
5
5
|
export { cloudConfig };
|
|
@@ -2,16 +2,16 @@ const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
|
2
2
|
const require_invariant = require('./invariant-CKcJAQ6M.cjs');
|
|
3
3
|
require('./esm-BQkx5roy.cjs');
|
|
4
4
|
require('./pythonUtils-DZ6EbdY4.cjs');
|
|
5
|
-
require('./types-
|
|
6
|
-
require('./util-
|
|
7
|
-
require('./fetch-
|
|
8
|
-
require('./cache-
|
|
5
|
+
require('./types-BIfttHrT.cjs');
|
|
6
|
+
require('./util-DUYOvxAy.cjs');
|
|
7
|
+
require('./fetch-ZMn_oemb.cjs');
|
|
8
|
+
require('./cache-7xULbvt3.cjs');
|
|
9
9
|
require('./genaiTracer-CQlpZkrp.cjs');
|
|
10
|
-
const require_chat = require('./chat-
|
|
11
|
-
require('./transform-
|
|
10
|
+
const require_chat = require('./chat-C4zqjObh.cjs');
|
|
11
|
+
require('./transform-ivxEY4f7.cjs');
|
|
12
12
|
require('./openai-Bigwjgo1.cjs');
|
|
13
|
-
require('./util-
|
|
14
|
-
const require_completion = require('./completion-
|
|
13
|
+
require('./util-C08Kns6-.cjs');
|
|
14
|
+
const require_completion = require('./completion-DDyL3Cb2.cjs');
|
|
15
15
|
|
|
16
16
|
//#region src/providers/cloudflare-ai.ts
|
|
17
17
|
function getCloudflareApiConfig(config, env) {
|
|
@@ -169,4 +169,4 @@ function createCloudflareAiProvider(providerPath, options = {}) {
|
|
|
169
169
|
|
|
170
170
|
//#endregion
|
|
171
171
|
exports.createCloudflareAiProvider = createCloudflareAiProvider;
|
|
172
|
-
//# sourceMappingURL=cloudflare-ai-
|
|
172
|
+
//# sourceMappingURL=cloudflare-ai-BAQ0u_dg.cjs.map
|
|
@@ -3,16 +3,16 @@ import { b as getEnvString } from "./logger-w8Ozp0Td.js";
|
|
|
3
3
|
import { t as invariant } from "./invariant-1pAf2CD1.js";
|
|
4
4
|
import "./esm-rDtG_2rg.js";
|
|
5
5
|
import "./pythonUtils-vMlk9Qp5.js";
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./util-
|
|
8
|
-
import "./fetch-
|
|
9
|
-
import "./cache-
|
|
6
|
+
import "./types-DMVjYLpx.js";
|
|
7
|
+
import "./util-DiCePfDu.js";
|
|
8
|
+
import "./fetch-18MuNu9i.js";
|
|
9
|
+
import "./cache-BLLayYEN.js";
|
|
10
10
|
import "./genaiTracer-Ce19n68P.js";
|
|
11
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
12
|
-
import "./transform-
|
|
11
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-C8Ei4f87.js";
|
|
12
|
+
import "./transform-DMaxQwDx.js";
|
|
13
13
|
import "./openai-Dz3surb_.js";
|
|
14
|
-
import "./util-
|
|
15
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-
|
|
14
|
+
import "./util-Cl0zfT3V.js";
|
|
15
|
+
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-D9_MDlnd.js";
|
|
16
16
|
|
|
17
17
|
//#region src/providers/cloudflare-ai.ts
|
|
18
18
|
function getCloudflareApiConfig(config, env) {
|
|
@@ -170,4 +170,4 @@ function createCloudflareAiProvider(providerPath, options = {}) {
|
|
|
170
170
|
|
|
171
171
|
//#endregion
|
|
172
172
|
export { createCloudflareAiProvider };
|
|
173
|
-
//# sourceMappingURL=cloudflare-ai-
|
|
173
|
+
//# sourceMappingURL=cloudflare-ai-CUg4BTcj.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
3
|
import { C as getEnvString } from "./logger-BotXmWKW.js";
|
|
4
|
-
import "./fetch-
|
|
4
|
+
import "./fetch-SRsE6Ctl.js";
|
|
5
5
|
import { t as invariant } from "./invariant-DT20jrBd.js";
|
|
6
|
-
import "./cloud-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./cache-
|
|
9
|
-
import "./util-
|
|
10
|
-
import "./esm-
|
|
11
|
-
import "./pythonUtils-
|
|
12
|
-
import "./genaiTracer-
|
|
13
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
14
|
-
import "./transform-
|
|
15
|
-
import "./openai-
|
|
16
|
-
import "./util-
|
|
17
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-
|
|
6
|
+
import "./cloud-BMbRVJFw.js";
|
|
7
|
+
import "./types-t52w-XsS.js";
|
|
8
|
+
import "./cache-mIszOnuz.js";
|
|
9
|
+
import "./util-BSh4a_Q8.js";
|
|
10
|
+
import "./esm-CYhseqj4.js";
|
|
11
|
+
import "./pythonUtils-r1uBuA0n.js";
|
|
12
|
+
import "./genaiTracer-CqNnnXrE.js";
|
|
13
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-DIywASPG.js";
|
|
14
|
+
import "./transform-CoP2bJ7P.js";
|
|
15
|
+
import "./openai-CT5fwbve.js";
|
|
16
|
+
import "./util-CUEt0Vum.js";
|
|
17
|
+
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-BBJ6zmG3.js";
|
|
18
18
|
|
|
19
19
|
//#region src/providers/cloudflare-ai.ts
|
|
20
20
|
function getCloudflareApiConfig(config, env) {
|
|
@@ -172,4 +172,4 @@ function createCloudflareAiProvider(providerPath, options = {}) {
|
|
|
172
172
|
|
|
173
173
|
//#endregion
|
|
174
174
|
export { createCloudflareAiProvider };
|
|
175
|
-
//# sourceMappingURL=cloudflare-ai-
|
|
175
|
+
//# sourceMappingURL=cloudflare-ai-CobxMTR4.js.map
|
|
@@ -2,17 +2,17 @@ const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
|
2
2
|
const require_invariant = require('./invariant-CKcJAQ6M.cjs');
|
|
3
3
|
require('./esm-BQkx5roy.cjs');
|
|
4
4
|
require('./pythonUtils-DZ6EbdY4.cjs');
|
|
5
|
-
require('./types-
|
|
6
|
-
require('./util-
|
|
7
|
-
require('./fetch-
|
|
8
|
-
require('./cache-
|
|
5
|
+
require('./types-BIfttHrT.cjs');
|
|
6
|
+
require('./util-DUYOvxAy.cjs');
|
|
7
|
+
require('./fetch-ZMn_oemb.cjs');
|
|
8
|
+
require('./cache-7xULbvt3.cjs');
|
|
9
9
|
require('./genaiTracer-CQlpZkrp.cjs');
|
|
10
|
-
const require_chat = require('./chat-
|
|
11
|
-
require('./transform-
|
|
12
|
-
const require_messages = require('./messages-
|
|
13
|
-
require('./util-
|
|
10
|
+
const require_chat = require('./chat-C4zqjObh.cjs');
|
|
11
|
+
require('./transform-ivxEY4f7.cjs');
|
|
12
|
+
const require_messages = require('./messages-DXV3Qh8_.cjs');
|
|
13
|
+
require('./util-DkFTvieG.cjs');
|
|
14
14
|
require('./openai-Bigwjgo1.cjs');
|
|
15
|
-
require('./util-
|
|
15
|
+
require('./util-C08Kns6-.cjs');
|
|
16
16
|
|
|
17
17
|
//#region src/providers/cloudflare-gateway.ts
|
|
18
18
|
/**
|
|
@@ -281,4 +281,4 @@ function createCloudflareGatewayProvider(providerPath, options = {}) {
|
|
|
281
281
|
|
|
282
282
|
//#endregion
|
|
283
283
|
exports.createCloudflareGatewayProvider = createCloudflareGatewayProvider;
|
|
284
|
-
//# sourceMappingURL=cloudflare-gateway-
|
|
284
|
+
//# sourceMappingURL=cloudflare-gateway-C0sgfr_z.cjs.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
3
|
import { C as getEnvString, o as logger_default } from "./logger-BotXmWKW.js";
|
|
4
|
-
import "./fetch-
|
|
4
|
+
import "./fetch-SRsE6Ctl.js";
|
|
5
5
|
import { t as invariant } from "./invariant-DT20jrBd.js";
|
|
6
|
-
import "./cloud-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./cache-
|
|
9
|
-
import "./util-
|
|
10
|
-
import "./esm-
|
|
11
|
-
import "./pythonUtils-
|
|
12
|
-
import "./genaiTracer-
|
|
13
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
14
|
-
import "./transform-
|
|
15
|
-
import { t as AnthropicMessagesProvider } from "./messages-
|
|
16
|
-
import "./util-
|
|
17
|
-
import "./openai-
|
|
18
|
-
import "./util-
|
|
6
|
+
import "./cloud-BMbRVJFw.js";
|
|
7
|
+
import "./types-t52w-XsS.js";
|
|
8
|
+
import "./cache-mIszOnuz.js";
|
|
9
|
+
import "./util-BSh4a_Q8.js";
|
|
10
|
+
import "./esm-CYhseqj4.js";
|
|
11
|
+
import "./pythonUtils-r1uBuA0n.js";
|
|
12
|
+
import "./genaiTracer-CqNnnXrE.js";
|
|
13
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-DIywASPG.js";
|
|
14
|
+
import "./transform-CoP2bJ7P.js";
|
|
15
|
+
import { t as AnthropicMessagesProvider } from "./messages-D61tPFQo.js";
|
|
16
|
+
import "./util-vjscpUzy.js";
|
|
17
|
+
import "./openai-CT5fwbve.js";
|
|
18
|
+
import "./util-CUEt0Vum.js";
|
|
19
19
|
|
|
20
20
|
//#region src/providers/cloudflare-gateway.ts
|
|
21
21
|
/**
|
|
@@ -284,4 +284,4 @@ function createCloudflareGatewayProvider(providerPath, options = {}) {
|
|
|
284
284
|
|
|
285
285
|
//#endregion
|
|
286
286
|
export { createCloudflareGatewayProvider };
|
|
287
|
-
//# sourceMappingURL=cloudflare-gateway-
|
|
287
|
+
//# sourceMappingURL=cloudflare-gateway-D2_yi-Fh.js.map
|
|
@@ -3,17 +3,17 @@ import { b as getEnvString, i as logger_default } from "./logger-w8Ozp0Td.js";
|
|
|
3
3
|
import { t as invariant } from "./invariant-1pAf2CD1.js";
|
|
4
4
|
import "./esm-rDtG_2rg.js";
|
|
5
5
|
import "./pythonUtils-vMlk9Qp5.js";
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./util-
|
|
8
|
-
import "./fetch-
|
|
9
|
-
import "./cache-
|
|
6
|
+
import "./types-DMVjYLpx.js";
|
|
7
|
+
import "./util-DiCePfDu.js";
|
|
8
|
+
import "./fetch-18MuNu9i.js";
|
|
9
|
+
import "./cache-BLLayYEN.js";
|
|
10
10
|
import "./genaiTracer-Ce19n68P.js";
|
|
11
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
12
|
-
import "./transform-
|
|
13
|
-
import { t as AnthropicMessagesProvider } from "./messages-
|
|
14
|
-
import "./util-
|
|
11
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-C8Ei4f87.js";
|
|
12
|
+
import "./transform-DMaxQwDx.js";
|
|
13
|
+
import { t as AnthropicMessagesProvider } from "./messages-CDZYGNlS.js";
|
|
14
|
+
import "./util-mJ58qbbw.js";
|
|
15
15
|
import "./openai-Dz3surb_.js";
|
|
16
|
-
import "./util-
|
|
16
|
+
import "./util-Cl0zfT3V.js";
|
|
17
17
|
|
|
18
18
|
//#region src/providers/cloudflare-gateway.ts
|
|
19
19
|
/**
|
|
@@ -282,4 +282,4 @@ function createCloudflareGatewayProvider(providerPath, options = {}) {
|
|
|
282
282
|
|
|
283
283
|
//#endregion
|
|
284
284
|
export { createCloudflareGatewayProvider };
|
|
285
|
-
//# sourceMappingURL=cloudflare-gateway-
|
|
285
|
+
//# sourceMappingURL=cloudflare-gateway-_itGuXry.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { C as getEnvString, O as cliState_default, o as logger_default } from "./logger-BotXmWKW.js";
|
|
3
|
-
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-
|
|
4
|
-
import { n as withGenAISpan, t as getTraceparent } from "./genaiTracer-
|
|
3
|
+
import { i as resolvePackageEntryPoint, r as importModule } from "./esm-CYhseqj4.js";
|
|
4
|
+
import { n as withGenAISpan, t as getTraceparent } from "./genaiTracer-CqNnnXrE.js";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
import path from "path";
|
|
7
7
|
import dedent from "dedent";
|
|
@@ -646,4 +646,4 @@ var OpenAICodexSDKProvider = class OpenAICodexSDKProvider {
|
|
|
646
646
|
|
|
647
647
|
//#endregion
|
|
648
648
|
export { OpenAICodexSDKProvider };
|
|
649
|
-
//# sourceMappingURL=codex-sdk-
|
|
649
|
+
//# sourceMappingURL=codex-sdk-dSnGdgIp.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./chunk-DHDDz29n.js";
|
|
3
3
|
import { C as getEnvString } from "./logger-BotXmWKW.js";
|
|
4
|
-
import "./fetch-
|
|
5
|
-
import "./cloud-
|
|
6
|
-
import "./types-
|
|
7
|
-
import "./cache-
|
|
8
|
-
import "./util-
|
|
9
|
-
import "./esm-
|
|
10
|
-
import "./pythonUtils-
|
|
11
|
-
import "./genaiTracer-
|
|
12
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
13
|
-
import "./transform-
|
|
14
|
-
import "./openai-
|
|
15
|
-
import "./util-
|
|
16
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-
|
|
17
|
-
import { t as OpenAiImageProvider } from "./image-
|
|
4
|
+
import "./fetch-SRsE6Ctl.js";
|
|
5
|
+
import "./cloud-BMbRVJFw.js";
|
|
6
|
+
import "./types-t52w-XsS.js";
|
|
7
|
+
import "./cache-mIszOnuz.js";
|
|
8
|
+
import "./util-BSh4a_Q8.js";
|
|
9
|
+
import "./esm-CYhseqj4.js";
|
|
10
|
+
import "./pythonUtils-r1uBuA0n.js";
|
|
11
|
+
import "./genaiTracer-CqNnnXrE.js";
|
|
12
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-DIywASPG.js";
|
|
13
|
+
import "./transform-CoP2bJ7P.js";
|
|
14
|
+
import "./openai-CT5fwbve.js";
|
|
15
|
+
import "./util-CUEt0Vum.js";
|
|
16
|
+
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-BBJ6zmG3.js";
|
|
17
|
+
import { t as OpenAiImageProvider } from "./image-mhAGP07h.js";
|
|
18
18
|
|
|
19
19
|
//#region src/providers/cometapi.ts
|
|
20
20
|
/**
|
|
@@ -63,4 +63,4 @@ function createCometApiProvider(providerPath, options = {}) {
|
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
65
|
export { createCometApiProvider };
|
|
66
|
-
//# sourceMappingURL=cometapi-
|
|
66
|
+
//# sourceMappingURL=cometapi-B01btbfb.js.map
|
|
@@ -2,17 +2,17 @@ import "./chunk-FhC4c-0y.js";
|
|
|
2
2
|
import { b as getEnvString, i as logger_default } from "./logger-w8Ozp0Td.js";
|
|
3
3
|
import "./esm-rDtG_2rg.js";
|
|
4
4
|
import "./pythonUtils-vMlk9Qp5.js";
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./util-
|
|
7
|
-
import "./fetch-
|
|
8
|
-
import { o as getCache, s as isCacheEnabled } from "./cache-
|
|
5
|
+
import "./types-DMVjYLpx.js";
|
|
6
|
+
import "./util-DiCePfDu.js";
|
|
7
|
+
import "./fetch-18MuNu9i.js";
|
|
8
|
+
import { o as getCache, s as isCacheEnabled } from "./cache-BLLayYEN.js";
|
|
9
9
|
import "./genaiTracer-Ce19n68P.js";
|
|
10
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-
|
|
11
|
-
import "./transform-
|
|
10
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-C8Ei4f87.js";
|
|
11
|
+
import "./transform-DMaxQwDx.js";
|
|
12
12
|
import "./openai-Dz3surb_.js";
|
|
13
|
-
import "./util-
|
|
14
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-
|
|
15
|
-
import { t as OpenAiImageProvider } from "./image-
|
|
13
|
+
import "./util-Cl0zfT3V.js";
|
|
14
|
+
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-D9_MDlnd.js";
|
|
15
|
+
import { t as OpenAiImageProvider } from "./image-BiEVdpdP.js";
|
|
16
16
|
import fs from "fs";
|
|
17
17
|
import path from "path";
|
|
18
18
|
import dedent from "dedent";
|
|
@@ -210,4 +210,4 @@ function createCometApiProvider(providerPath, options = {}) {
|
|
|
210
210
|
|
|
211
211
|
//#endregion
|
|
212
212
|
export { createCometApiProvider, getCachedResponse as n, initializeAgenticCache as r, cacheResponse as t };
|
|
213
|
-
//# sourceMappingURL=cometapi-
|
|
213
|
+
//# sourceMappingURL=cometapi-ChAaRjg5.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
2
2
|
require('./esm-BQkx5roy.cjs');
|
|
3
3
|
require('./pythonUtils-DZ6EbdY4.cjs');
|
|
4
|
-
require('./types-
|
|
5
|
-
require('./util-
|
|
6
|
-
require('./fetch-
|
|
7
|
-
const require_cache = require('./cache-
|
|
4
|
+
require('./types-BIfttHrT.cjs');
|
|
5
|
+
require('./util-DUYOvxAy.cjs');
|
|
6
|
+
require('./fetch-ZMn_oemb.cjs');
|
|
7
|
+
const require_cache = require('./cache-7xULbvt3.cjs');
|
|
8
8
|
require('./genaiTracer-CQlpZkrp.cjs');
|
|
9
|
-
const require_chat = require('./chat-
|
|
10
|
-
require('./transform-
|
|
9
|
+
const require_chat = require('./chat-C4zqjObh.cjs');
|
|
10
|
+
require('./transform-ivxEY4f7.cjs');
|
|
11
11
|
require('./openai-Bigwjgo1.cjs');
|
|
12
|
-
require('./util-
|
|
13
|
-
const require_completion = require('./completion-
|
|
14
|
-
const require_image = require('./image-
|
|
12
|
+
require('./util-C08Kns6-.cjs');
|
|
13
|
+
const require_completion = require('./completion-DDyL3Cb2.cjs');
|
|
14
|
+
const require_image = require('./image-C3BjJUAU.cjs');
|
|
15
15
|
let fs = require("fs");
|
|
16
16
|
fs = require_logger.__toESM(fs);
|
|
17
17
|
let path = require("path");
|
|
@@ -216,4 +216,4 @@ exports.cacheResponse = cacheResponse;
|
|
|
216
216
|
exports.createCometApiProvider = createCometApiProvider;
|
|
217
217
|
exports.getCachedResponse = getCachedResponse;
|
|
218
218
|
exports.initializeAgenticCache = initializeAgenticCache;
|
|
219
|
-
//# sourceMappingURL=cometapi-
|
|
219
|
+
//# sourceMappingURL=cometapi-JbvOJSCO.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { C as getEnvString, S as getEnvInt, o as logger_default, x as getEnvFloat } from "./logger-BotXmWKW.js";
|
|
3
|
-
import { d as REQUEST_TIMEOUT_MS } from "./fetch-
|
|
4
|
-
import { a as fetchWithCache } from "./cache-
|
|
5
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
6
|
-
import { a as calculateOpenAICost, c as getTokenUsage, n as OPENAI_COMPLETION_MODELS, s as formatOpenAiError } from "./util-
|
|
3
|
+
import { d as REQUEST_TIMEOUT_MS } from "./fetch-SRsE6Ctl.js";
|
|
4
|
+
import { a as fetchWithCache } from "./cache-mIszOnuz.js";
|
|
5
|
+
import { t as OpenAiGenericProvider } from "./openai-CT5fwbve.js";
|
|
6
|
+
import { a as calculateOpenAICost, c as getTokenUsage, n as OPENAI_COMPLETION_MODELS, s as formatOpenAiError } from "./util-CUEt0Vum.js";
|
|
7
7
|
|
|
8
8
|
//#region src/providers/openai/embedding.ts
|
|
9
9
|
var OpenAiEmbeddingProvider = class extends OpenAiGenericProvider {
|
|
@@ -120,4 +120,4 @@ var OpenAiCompletionProvider = class OpenAiCompletionProvider extends OpenAiGene
|
|
|
120
120
|
|
|
121
121
|
//#endregion
|
|
122
122
|
export { OpenAiEmbeddingProvider as n, OpenAiCompletionProvider as t };
|
|
123
|
-
//# sourceMappingURL=completion-
|
|
123
|
+
//# sourceMappingURL=completion-BBJ6zmG3.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as getEnvString, i as logger_default, v as getEnvFloat, y as getEnvInt } from "./logger-w8Ozp0Td.js";
|
|
2
|
-
import { h as REQUEST_TIMEOUT_MS } from "./fetch-
|
|
3
|
-
import { a as fetchWithCache } from "./cache-
|
|
2
|
+
import { h as REQUEST_TIMEOUT_MS } from "./fetch-18MuNu9i.js";
|
|
3
|
+
import { a as fetchWithCache } from "./cache-BLLayYEN.js";
|
|
4
4
|
import { t as OpenAiGenericProvider } from "./openai-Dz3surb_.js";
|
|
5
|
-
import { a as calculateOpenAICost, c as getTokenUsage, n as OPENAI_COMPLETION_MODELS, s as formatOpenAiError } from "./util-
|
|
5
|
+
import { a as calculateOpenAICost, c as getTokenUsage, n as OPENAI_COMPLETION_MODELS, s as formatOpenAiError } from "./util-Cl0zfT3V.js";
|
|
6
6
|
|
|
7
7
|
//#region src/providers/openai/embedding.ts
|
|
8
8
|
var OpenAiEmbeddingProvider = class extends OpenAiGenericProvider {
|
|
@@ -119,4 +119,4 @@ var OpenAiCompletionProvider = class OpenAiCompletionProvider extends OpenAiGene
|
|
|
119
119
|
|
|
120
120
|
//#endregion
|
|
121
121
|
export { OpenAiEmbeddingProvider as n, OpenAiCompletionProvider as t };
|
|
122
|
-
//# sourceMappingURL=completion-
|
|
122
|
+
//# sourceMappingURL=completion-D9_MDlnd.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_logger = require('./logger-BdZ-IqBc.cjs');
|
|
2
|
-
const require_fetch = require('./fetch-
|
|
3
|
-
const require_cache = require('./cache-
|
|
2
|
+
const require_fetch = require('./fetch-ZMn_oemb.cjs');
|
|
3
|
+
const require_cache = require('./cache-7xULbvt3.cjs');
|
|
4
4
|
const require_openai = require('./openai-Bigwjgo1.cjs');
|
|
5
|
-
const require_util = require('./util-
|
|
5
|
+
const require_util = require('./util-C08Kns6-.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/providers/openai/embedding.ts
|
|
8
8
|
var OpenAiEmbeddingProvider = class extends require_openai.OpenAiGenericProvider {
|
|
@@ -130,4 +130,4 @@ Object.defineProperty(exports, 'OpenAiEmbeddingProvider', {
|
|
|
130
130
|
return OpenAiEmbeddingProvider;
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
//# sourceMappingURL=completion-
|
|
133
|
+
//# sourceMappingURL=completion-DDyL3Cb2.cjs.map
|