promptfoo 0.121.3 → 0.121.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/{ListApp-Du7YVwj5.js → ListApp-DQkFNqE9.js} +1 -1
- package/dist/src/{accounts-Xatc0RYb.js → accounts-DdJ2pHMI.js} +5 -5
- package/dist/src/{accounts-B2XmGjty.js → accounts-DhMYUUbu.js} +5 -5
- package/dist/src/{accounts-BPyfpSeU.cjs → accounts-Dy17bs4D.cjs} +5 -5
- package/dist/src/{accounts-CFLK3mnD.js → accounts-F9d_5sMC.js} +6 -6
- package/dist/src/{agentic-utils-DAVsChuB.cjs → agentic-utils-BpX5b23w.cjs} +3 -3
- package/dist/src/{agentic-utils-DIYAAYE7.js → agentic-utils-P172hM8B.js} +3 -3
- package/dist/src/{agentic-utils-D8yXo5Lm.js → agentic-utils-qFlm6zes.js} +4 -4
- package/dist/src/{agentic-utils-36epdqwB.js → agentic-utils-w68v6_Dz.js} +3 -3
- package/dist/src/{agents-CLQ-P15P.js → agents-8FDnTriG.js} +6 -7
- package/dist/src/{agents-CAYbM7qD.cjs → agents-BahDpe5G.cjs} +34 -12
- package/dist/src/{agents-DSSTV4bv.js → agents-C-R_jfzI.js} +35 -13
- package/dist/src/{agents-wg3ohknq.js → agents-CgaMXvLM.js} +5 -7
- package/dist/src/{agents-BBWxKSM0.cjs → agents-D7-HGxUj.cjs} +5 -7
- package/dist/src/{agents-BBVJCIYr.js → agents-DJ35I3Nt.js} +35 -13
- package/dist/src/{agents-CgBniSlI.js → agents-aYPQLf8W.js} +5 -9
- package/dist/src/{agents-Bqgfdokm.js → agents-pQeBEXMm.js} +35 -14
- package/dist/src/{aimlapi-BwGC1TtS.js → aimlapi-BCq3MHeL.js} +8 -14
- package/dist/src/{aimlapi-MgSLdvy7.js → aimlapi-BD6J9oKt.js} +7 -14
- package/dist/src/{aimlapi-Bv8Fmc-b.cjs → aimlapi-qcK4OT55.cjs} +8 -15
- package/dist/src/{aimlapi-DaC3qZ-o.js → aimlapi-sgYnkE54.js} +7 -16
- package/dist/src/app/app/tsconfig.app.tsbuildinfo +1 -0
- package/dist/src/app/assets/Report-CQYFezYu.js +1 -0
- package/dist/src/app/assets/index-BXGkeMwh.css +1 -0
- package/dist/src/app/assets/index-BzJt18Jz.js +385 -0
- package/dist/src/app/assets/rolldown-runtime-COnpUsM8.js +1 -0
- package/dist/src/app/assets/scroll-timeline-D9IT_e8Z.js +1 -0
- package/dist/src/app/assets/sync-IjzpWrOE.js +4 -0
- package/dist/src/app/assets/vendor-charts-BNdH8TCw.js +36 -0
- package/dist/src/app/assets/vendor-markdown-Ch00wnNI.js +29 -0
- package/dist/src/app/assets/vendor-react-CVvmk1UB.js +9 -0
- package/dist/src/app/assets/vendor-utils-BnEYbx2Q.js +37 -0
- package/dist/src/app/index.html +7 -7
- package/dist/src/{audio-DjU9GswO.js → audio-B7izf48x.js} +4 -5
- package/dist/src/{audio-DVFjQ67_.cjs → audio-BQtNuYBj.cjs} +4 -4
- package/dist/src/{audio-Bn44pQxv.js → audio-COrn8rM6.js} +4 -4
- package/dist/src/{audio-DDA5WHdx.js → audio-DcVKoInv.js} +4 -4
- package/dist/src/{base-BboXIF_0.cjs → base-D-670DX8.cjs} +3 -3
- package/dist/src/{base-CqzQ4K8j.js → base-PYJvBE1i.js} +3 -3
- package/dist/src/{base-CKjwebIH.js → base-fZ9wgg50.js} +3 -3
- package/dist/src/{base-Cz2ZC_iA.js → base-yrI1Yal4.js} +3 -3
- package/dist/src/{blobs-BUWmKWzo.js → blobs-BCZavS8s.js} +4 -4
- package/dist/src/{blobs-B1JriOyi.js → blobs-BQWqnnvL.js} +4 -4
- package/dist/src/{blobs-DXTl6J3H.js → blobs-C-F78Kfn.js} +3 -3
- package/dist/src/{blobs-C6j0bvFz.cjs → blobs-D2FAd1Q5.cjs} +3 -3
- package/dist/src/cache-BIyPcp5v.cjs +376 -0
- package/dist/src/cache-C4Xb-hNb.js +310 -0
- package/dist/src/cache-Cr9oLMUa.js +3 -0
- package/dist/src/cache-D5NZmMiT.js +310 -0
- package/dist/src/cache-DbLsVWB2.cjs +3 -0
- package/dist/src/cache-mb7c8hbp.js +280 -0
- package/dist/src/{chat-DK1U-eZ-.js → chat-0bwXjVP0.js} +3 -13
- package/dist/src/{chat-BtIKkLKx.cjs → chat-BPXSW8Bv.cjs} +3 -13
- package/dist/src/{chat-B0iaWhoh.js → chat-BfPaS15_.js} +63 -37
- package/dist/src/{chat-CM8qWR3_.cjs → chat-CclRbxGf.cjs} +63 -37
- package/dist/src/{chat-BEwdgGEg.js → chat-Dr3DUQ0D.js} +63 -37
- package/dist/src/{chat-pxmiVpWe.js → chat-I9izLm49.js} +62 -36
- package/dist/src/{chat-B-52XYI1.js → chat-MKxMnZJZ.js} +3 -13
- package/dist/src/{chat-BE0qTA8e.js → chat-mW0ORo8G.js} +3 -14
- package/dist/src/{chatkit-Cx174XI3.cjs → chatkit-BoWoSgXl.cjs} +4 -4
- package/dist/src/{chatkit-BYGQlHlV.js → chatkit-CJnHRRMM.js} +4 -4
- package/dist/src/{chatkit-a2D6mY6s.js → chatkit-Cv6AhukM.js} +4 -4
- package/dist/src/{chatkit-_8eJqKcD.js → chatkit-zUIVoDos.js} +4 -4
- package/dist/src/{claude-agent-sdk-CMjh4LFH.js → claude-agent-sdk-BQNuLaAK.js} +19 -14
- package/dist/src/{claude-agent-sdk-8ddRp1L2.cjs → claude-agent-sdk-CPJo3dBQ.cjs} +21 -16
- package/dist/src/{claude-agent-sdk-HgbFioFw.js → claude-agent-sdk-Dtq_L-Sc.js} +20 -15
- package/dist/src/{claude-agent-sdk-Bq5EArsX.js → claude-agent-sdk-nfAIcxNf.js} +21 -17
- package/dist/src/{cloud-z8KZpUoa.js → cloud-DQZ5sVjW.js} +25 -13
- package/dist/src/cloud-Hphvo8kr.js +3 -0
- package/dist/src/{cloudflare-ai-Bbp26N0L.js → cloudflare-ai-BIB567w6.js} +5 -14
- package/dist/src/{cloudflare-ai-BGyXlpXJ.js → cloudflare-ai-DGLte7Py.js} +5 -14
- package/dist/src/{cloudflare-ai-C62x6MQG.cjs → cloudflare-ai-Dl3N9OVD.cjs} +6 -15
- package/dist/src/{cloudflare-ai-DdKP9TKT.js → cloudflare-ai-DlKr0rY7.js} +5 -15
- package/dist/src/{cloudflare-gateway-D-e9i1Sn.js → cloudflare-gateway-BDZrYydE.js} +4 -16
- package/dist/src/{cloudflare-gateway-Dx36ftqF.cjs → cloudflare-gateway-BYDp495F.cjs} +4 -15
- package/dist/src/{cloudflare-gateway-DXhtXDRb.js → cloudflare-gateway-CiIZHU0Q.js} +4 -15
- package/dist/src/{cloudflare-gateway-BwAaUgeW.js → cloudflare-gateway-DI1HNP5F.js} +4 -15
- package/dist/src/codex-sdk-BAmYE7qy.js +3 -0
- package/dist/src/codex-sdk-C2_M2pl_.cjs +1172 -0
- package/dist/src/codex-sdk-CErXn7qh.js +1165 -0
- package/dist/src/codex-sdk-CWEnH70W.cjs +2 -0
- package/dist/src/codex-sdk-CpqiOqDO.js +1164 -0
- package/dist/src/codex-sdk-Rtky3M4I.js +1165 -0
- package/dist/src/{cometapi-BDyV-NNm.js → cometapi-BUlt_ELa.js} +8 -15
- package/dist/src/{cometapi-hhL4TAh3.js → cometapi-CtJ-mS8R.js} +9 -15
- package/dist/src/{cometapi-sp7sJpBD.js → cometapi-DT-jlVCB.js} +8 -17
- package/dist/src/{cometapi-C3hOlM7-.cjs → cometapi-UVOryo4W.cjs} +9 -16
- package/dist/src/{completion-DlXUhj5c.cjs → completion-BozdoXba.cjs} +7 -62
- package/dist/src/{completion-BCimtq-h.js → completion-Dnxn7E-j.js} +8 -57
- package/dist/src/{completion-DCjv7RZ3.js → completion-HUe8wDhZ.js} +8 -57
- package/dist/src/{completion-DoYy49ti.js → completion-x0a_c2y1.js} +8 -57
- package/dist/src/{createHash-CTQmL3G2.js → createHash-4gFQpDDv.js} +3 -3
- package/dist/src/{createHash-BYwImsYv.cjs → createHash-B7KvgoOD.cjs} +4 -4
- package/dist/src/{createHash-Da8fMwqB.js → createHash-ChI45QR1.js} +3 -3
- package/dist/src/{createHash-DmPQkvBh.js → createHash-CwDVU5xr.js} +3 -3
- package/dist/src/{docker-FeBni2dw.js → docker-CQmlA2NU.js} +7 -14
- package/dist/src/{docker-CxCkwMzc.js → docker-ClnmCf1Z.js} +6 -14
- package/dist/src/{docker-DpguQj-w.js → docker-DCgsveLD.js} +6 -16
- package/dist/src/{docker-Cqj2-QVi.cjs → docker-DS4_Osau.cjs} +7 -15
- package/dist/src/embedding-D3xTseo7.js +59 -0
- package/dist/src/embedding-DD9wa3ae.js +58 -0
- package/dist/src/embedding-I45KG3o7.cjs +63 -0
- package/dist/src/embedding-nFbumxcv.js +58 -0
- package/dist/src/entrypoint.js +69 -6
- package/dist/src/{errors-P6ll7XSJ.js → errors-Cw810C93.js} +1 -1
- package/dist/src/{esm-SUNIX1x3.js → esm-C7PnfdF8.js} +15 -6
- package/dist/src/{esm-CipptfDu.cjs → esm-CtEPLdAj.cjs} +15 -6
- package/dist/src/{esm-CKWP3u_P.js → esm-Dh4dOLlt.js} +16 -7
- package/dist/src/{esm-7UIl0pPM.js → esm-tVgYPY-f.js} +27 -18
- package/dist/src/eval-CzJFfFO9.js +3 -0
- package/dist/src/{eval-BTqTn7lb.js → eval-u4UVafl6.js} +49 -20
- package/dist/src/{evalResult-BkIhRdTe.js → evalResult-Bgm9ZH31.js} +7 -7
- package/dist/src/{evalResult-DUDShQrm.js → evalResult-D3hVYFis.js} +7 -7
- package/dist/src/evalResult-D8MT9p0s.js +3 -0
- package/dist/src/evalResult-DElBuddX.js +2 -0
- package/dist/src/evalResult-Dvc-iucu.cjs +2 -0
- package/dist/src/{evalResult-DpARzUCb.cjs → evalResult-KZqXl4XP.cjs} +7 -7
- package/dist/src/evaluator-CVessDWe.js +3 -0
- package/dist/src/{evaluator-BcvOGaam.js → evaluator-IvuDYSvQ.js} +3178 -2102
- package/dist/src/{extractor-C8XwivI9.js → extractor-CAfTSraf.js} +6 -6
- package/dist/src/{extractor-CAZ2G3Kh.js → extractor-DNSeBVOJ.js} +6 -6
- package/dist/src/{extractor-D_wd8jxt.js → extractor-Dk6bRWkv.js} +6 -6
- package/dist/src/{extractor-DG3sSfXE.cjs → extractor-WVPOrH43.cjs} +6 -6
- package/dist/src/{fetch-BiYv2BZc.js → fetch-B0Z3Oe4k.js} +218 -55
- package/dist/src/{fetch-DoVRJZhJ.js → fetch-BEWnXrrG.js} +195 -45
- package/dist/src/fetch-C7bGKDlQ.js +3 -0
- package/dist/src/{fetch-BnR9wSnm.cjs → fetch-CJU5ELPa.cjs} +223 -48
- package/dist/src/{fetch-CVAtKnI3.js → fetch-Di00EQrc.js} +218 -55
- package/dist/src/{fileExtensions-Ds-foDzt.js → fileExtensions-AWa2ZML4.js} +1 -1
- package/dist/src/{fileExtensions-LcDYkU4v.js → fileExtensions-BArZuxsI.js} +1 -1
- package/dist/src/{formatDuration-DgBVMN65.js → formatDuration-DZzPsexs.js} +1 -1
- package/dist/src/{genaiTracer-70Z8BIuV.js → genaiTracer-COYDi-tC.js} +6 -2
- package/dist/src/{genaiTracer-C1rxGO8Q.js → genaiTracer-DWdZ28hY.js} +6 -2
- package/dist/src/{genaiTracer-D3fD9dNV.js → genaiTracer-XnrcgDCe.js} +6 -2
- package/dist/src/{genaiTracer-BfxrvSUb.cjs → genaiTracer-yRuxj9-L.cjs} +7 -3
- package/dist/src/golang/wrapper.go +1 -1
- package/dist/src/{graders-BElhu9ZY.cjs → graders--zknU_uk.cjs} +3772 -1302
- package/dist/src/graders-BOAzQEUe.cjs +2 -0
- package/dist/src/graders-D4BTsZdG2.js +3 -0
- package/dist/src/graders-DOJK1XpV.js +2 -0
- package/dist/src/graders-NAv9LcBn.js +2 -0
- package/dist/src/{graders-DG7mhg-b.js → graders-Zy3x0zqX.js} +5691 -3247
- package/dist/src/{graders-RjHF8VfG.js → graders-eIHhRqoC.js} +5683 -3239
- package/dist/src/{graders-BXAJ0sbS.js → graders-pvbReLLn.js} +5692 -3248
- package/dist/src/{image-6WQXK8m8.js → image-9302QVqR.js} +4 -4
- package/dist/src/{image-B8b6f36E.js → image-B5Mv-Z3h.js} +8 -8
- package/dist/src/{image-PoF6DN3x.js → image-DVz2RiMF.js} +8 -8
- package/dist/src/{image-fza3zuKs.cjs → image-De2FBmYV.cjs} +4 -4
- package/dist/src/{image-DO0RYnjH.js → image-dnoUgPrC.js} +4 -5
- package/dist/src/{image-CoxZp9PZ.js → image-qUpPvmNZ.js} +8 -8
- package/dist/src/{image-xNbw5ph2.js → image-u7-rKnYU.js} +4 -4
- package/dist/src/{image--F58eEIn.cjs → image-x6KqLQl4.cjs} +8 -8
- package/dist/src/index.cjs +3641 -2144
- package/dist/src/index.d.cts +2660 -20
- package/dist/src/index.d.ts +2660 -20
- package/dist/src/index.js +3649 -2152
- package/dist/src/{interactiveCheck-BnMYOjMu.js → interactiveCheck-CLERUB0c.js} +2 -2
- package/dist/src/{knowledgeBase-DqrLX8fy.cjs → knowledgeBase-Bpoe_nLu.cjs} +6 -8
- package/dist/src/{knowledgeBase-Bi7CmDbx.js → knowledgeBase-Dgc7CBWF.js} +6 -8
- package/dist/src/{knowledgeBase-DFRXPZl_.js → knowledgeBase-RhFPGWDc.js} +6 -8
- package/dist/src/{knowledgeBase-Ce3ofVan.js → knowledgeBase-lm9RXSAm.js} +6 -9
- package/dist/src/{litellm-CKiAxnoM.js → litellm-C2kqjxqp.js} +6 -14
- package/dist/src/{litellm-CnHI69aj.cjs → litellm-CoyI4IAl.cjs} +6 -15
- package/dist/src/{litellm-Tc294Jhj.js → litellm-DRjpcSa7.js} +5 -14
- package/dist/src/{litellm-Bo2gQXpo.js → litellm-p37R1dzQ.js} +5 -16
- package/dist/src/{logger-BnkjG2jt.js → logger-B88EkIn6.js} +40 -11
- package/dist/src/{logger-D5iKBpu_.cjs → logger-COuQb2xB.cjs} +51 -10
- package/dist/src/{logger-DO8_zM18.js → logger-Ct2S6Yx-.js} +40 -11
- package/dist/src/{logger-BcJBzSSA.js → logger-DksKw1Qc.js} +40 -11
- package/dist/src/{luma-ray-C9q8rdQe.js → luma-ray-B863CmuZ.js} +6 -10
- package/dist/src/{luma-ray-DP0QA9qn.js → luma-ray-BTTLtqQ8.js} +7 -10
- package/dist/src/{luma-ray-m9Ku2meV.cjs → luma-ray-BxVKaW2a.cjs} +6 -10
- package/dist/src/{luma-ray-0ehMPt5N.js → luma-ray-KgTCXrZC.js} +6 -12
- package/dist/src/main.d.ts +1 -26
- package/dist/src/main.js +985 -520
- package/dist/src/{messages-HJsyEh4o.cjs → messages-811uVVW5.cjs} +69 -19
- package/dist/src/{messages-Dy9QecMs.js → messages-BTQz42fn.js} +69 -19
- package/dist/src/{messages-biC_ex-p.js → messages-MYTQ2TWp.js} +69 -19
- package/dist/src/{messages-DJNo37Ko.js → messages-zWbkLLHz.js} +69 -19
- package/dist/src/{meteor-D-SotUw9.js → meteor-CU5UAE-H.js} +1 -1
- package/dist/src/{meteor-DLZZ3osF.cjs → meteor-Co1VQ1u5.cjs} +1 -1
- package/dist/src/{meteor-44VjEACX.js → meteor-DHdzY1Ss.js} +1 -1
- package/dist/src/{meteor-DUiCJRC-.js → meteor-DuAFv6gF.js} +1 -1
- package/dist/src/{modelslab-B5J-ZM5c.js → modelslab-D0erNWKe.js} +7 -10
- package/dist/src/{modelslab-BTOT8FUO.js → modelslab-DIq-6y7x.js} +7 -10
- package/dist/src/{modelslab-IQbNg-r7.cjs → modelslab-Dk1JAtVo.cjs} +7 -10
- package/dist/src/{modelslab-BI458moT.js → modelslab-wu9yi5GE.js} +7 -11
- package/dist/src/{nova-reel-BZ9y-Y5s.js → nova-reel-CCFRfeRb.js} +7 -10
- package/dist/src/{nova-reel-CE5etkv9.cjs → nova-reel-CrLXVKQf.cjs} +6 -10
- package/dist/src/{nova-reel-Xw1SXLpg.js → nova-reel-DQrm74ng.js} +6 -10
- package/dist/src/{nova-reel-DEeQlnOJ.js → nova-reel-gr11WG7f.js} +6 -12
- package/dist/src/{nova-sonic-Ogqf-csn.js → nova-sonic-BYdp-QLs.js} +5 -7
- package/dist/src/{nova-sonic-DXTLpi-r.js → nova-sonic-B_ZXcUJB.js} +4 -7
- package/dist/src/{nova-sonic-DWswpN1E.js → nova-sonic-TDgrlTk7.js} +4 -9
- package/dist/src/{nova-sonic-N0yCm0vb.cjs → nova-sonic-i5tUvXKn.cjs} +4 -7
- package/dist/src/{openai-BcB5KlTk.js → openai-DhVEmgeZ.js} +6 -3
- package/dist/src/{openai-BMcwgD5C.js → openai-Qsvz25mV.js} +6 -3
- package/dist/src/{openai-CoxGAQwn.cjs → openai-URNyItar.cjs} +6 -3
- package/dist/src/{openai-D6wITiVn.js → openai-iYtrXzOX.js} +6 -3
- package/dist/src/openclaw-CLWrW03k.js +1200 -0
- package/dist/src/openclaw-CnQ363Wi.js +1199 -0
- package/dist/src/openclaw-CwzlQSQX.js +1199 -0
- package/dist/src/openclaw-wX9rtfke.cjs +1205 -0
- package/dist/src/{opencode-sdk-CHCs7dEb.js → opencode-sdk-BUu5Nevv.js} +6 -8
- package/dist/src/{opencode-sdk-WWJhnbKr.cjs → opencode-sdk-BZ2idgYA.cjs} +6 -8
- package/dist/src/{opencode-sdk-DDxj4QqH.js → opencode-sdk-BxD8vXp_.js} +7 -8
- package/dist/src/{opencode-sdk-C71Z0ehR.js → opencode-sdk-GI2KaAXq.js} +6 -10
- package/dist/src/{otlpReceiver-CZL48YfC.js → otlpReceiver-B2z58l4e.js} +154 -98
- package/dist/src/{otlpReceiver-DHKqJlsz.cjs → otlpReceiver-BfcVq2Nq.cjs} +154 -98
- package/dist/src/{otlpReceiver-CavGAA6k.js → otlpReceiver-BntK801g.js} +154 -98
- package/dist/src/{otlpReceiver-C9KlUtxh.js → otlpReceiver-DmVulbhC.js} +154 -98
- package/dist/src/{providerRegistry-BkzVH5Ba.js → providerRegistry-Bvh8mv85.js} +2 -2
- package/dist/src/{providerRegistry-CUWki5mQ.js → providerRegistry-CPQ_CmVO.js} +2 -2
- package/dist/src/{providerRegistry-BTDgfV5h.cjs → providerRegistry-CQMdTmHP.cjs} +2 -2
- package/dist/src/{providerRegistry-B9lh-_tx.js → providerRegistry-CWoPjKFZ.js} +2 -2
- package/dist/src/{providers-CScd1wN6.cjs → providers-1eKkXBKp.cjs} +792 -556
- package/dist/src/{providers-Ch6Mr0gn.js → providers-BV_KMZje.js} +699 -493
- package/dist/src/providers-Bp4S-FvO.js +2 -0
- package/dist/src/providers-DV3ax9e_.cjs +3 -0
- package/dist/src/{providers-DvddrgxL.js → providers-Domz_llv.js} +707 -501
- package/dist/src/{providers-Cn73d5sr.js → providers-DruaQfwu.js} +704 -498
- package/dist/src/providers-iUt5fbAN.js +3 -0
- package/dist/src/providers-u9Enmfok.js +2 -0
- package/dist/src/python/persistent_wrapper.py +0 -5
- package/dist/src/{pythonUtils-Cpo0Ez1p.js → pythonUtils-C2UQ30Rz.js} +3 -3
- package/dist/src/{pythonUtils-Bzwbgpbg.js → pythonUtils-Cldx7huE.js} +3 -3
- package/dist/src/{pythonUtils-wIqk7zAf.js → pythonUtils-CnndUbW-.js} +3 -3
- package/dist/src/{pythonUtils-dAVigVK-.cjs → pythonUtils-tAJvvpS-.cjs} +3 -3
- package/dist/src/{quiverai-BeofbLVc.js → quiverai-CtWi6x_g.js} +4 -4
- package/dist/src/{quiverai-CcUhPIBg.cjs → quiverai-DFotyafY.cjs} +4 -4
- package/dist/src/{quiverai-DVSEqJiq.js → quiverai-DR0SnIQV.js} +4 -4
- package/dist/src/{quiverai-CCQn73lq.js → quiverai-aPPvXOgn.js} +4 -5
- package/dist/src/render-CH-62LbA.js +135 -0
- package/dist/src/render-CMEpfLaO.js +136 -0
- package/dist/src/{render-BHl6QVq9.js → render-CgVDrJmM.js} +2 -3
- package/dist/src/render-DHIZ6_k8.js +135 -0
- package/dist/src/render-DfQSFxGE.cjs +165 -0
- package/dist/src/{responses-CQb1Tj69.js → responses--OsX2aYW.js} +17 -12
- package/dist/src/{responses-mo0KQDbu.cjs → responses-Bi9vBuW_.cjs} +18 -13
- package/dist/src/{responses-CgNyTPsY.js → responses-C-flexAY.js} +18 -13
- package/dist/src/{responses-BKP_WYis.js → responses-DL9m8CyY.js} +18 -13
- package/dist/src/{rubyUtils-CGeUtCfW.cjs → rubyUtils-B6eljPuh.cjs} +3 -3
- package/dist/src/{rubyUtils-DECSbsfY.js → rubyUtils-CYSQEG4a.js} +3 -3
- package/dist/src/rubyUtils-D1L2d3jb.js +3 -0
- package/dist/src/rubyUtils-DUbq4tff.cjs +2 -0
- package/dist/src/{rubyUtils-PgU-gHmx.js → rubyUtils-DVLeA2jg.js} +3 -3
- package/dist/src/{rubyUtils-CiVfln3g.js → rubyUtils-DsGrTx8R.js} +3 -3
- package/dist/src/{sagemaker-CqeASYE5.js → sagemaker-BVkaG2-l.js} +14 -18
- package/dist/src/{sagemaker-CVv8W7so.js → sagemaker-BveBvuxm.js} +14 -18
- package/dist/src/{sagemaker-MUbD5V3v.js → sagemaker-D67yzMzs.js} +14 -19
- package/dist/src/{sagemaker-jiw1wQa-.cjs → sagemaker-XnfhheQv.cjs} +14 -18
- package/dist/src/{scanner-DVDeUz1r.js → scanner-1DqWi1Ej.js} +130 -35
- package/dist/src/server/golang/wrapper.go +1 -1
- package/dist/src/server/index.js +3596 -2098
- package/dist/src/server/python/persistent_wrapper.py +0 -5
- package/dist/src/{server-DZ9MtCn0.js → server-BNYztJkh.js} +128 -9
- package/dist/src/{server-Cns05F1j.js → server-BSB45Nt9.js} +127 -8
- package/dist/src/{server-CP9qKM40.js → server-D6Il2Sob.js} +126 -7
- package/dist/src/server-DCtHUqlp.js +3 -0
- package/dist/src/server-DaA2eR26.cjs +2 -0
- package/dist/src/{server-BtoCXeXI.cjs → server-Dx2TyCH2.cjs} +140 -6
- package/dist/src/{signal-C3ZTsUgi.js → signal-CE5G3a7x.js} +3 -3
- package/dist/src/{slack-94iG3T0s.cjs → slack-1Rhq0EoV.cjs} +2 -2
- package/dist/src/{slack-BR0HtO3K.js → slack-D5Wpy8LM.js} +2 -2
- package/dist/src/{slack-DCEV-vWP.js → slack-DDUe-5MC.js} +2 -2
- package/dist/src/{slack-2sdpGzbt.js → slack-acRb0IqQ.js} +2 -2
- package/dist/src/store-CWOSz6D_.cjs +2 -0
- package/dist/src/{store-P8OKm19S.js → store-CYEy5J2D.js} +3 -3
- package/dist/src/{store-CLyU7AtI.cjs → store-DAAyxcy6.cjs} +3 -3
- package/dist/src/store-DCDBhv7B.js +3 -0
- package/dist/src/{store-VB0GP46K.js → store-Dn9HUkdW.js} +3 -3
- package/dist/src/{store-Cj258DgL.js → store-M0b1WfYb.js} +3 -3
- package/dist/src/{tables-DmzvLbeZ.js → tables-C4CH3zRr.js} +3 -3
- package/dist/src/{tables-BEIFz2tM.js → tables-CsWou1Bx.js} +3 -3
- package/dist/src/{tables-kC7R5kiK.js → tables-DQ4WU5tX.js} +3 -3
- package/dist/src/{tables-BdZQEpRz.cjs → tables-DUfh1F7Z.cjs} +3 -3
- package/dist/src/telemetry-C1IqxcdW.js +3 -0
- package/dist/src/telemetry-C4ZEa_es.cjs +2 -0
- package/dist/src/{telemetry-BnH5VJAU.js → telemetry-CQPez_Jp.js} +4 -4
- package/dist/src/{telemetry-re627Lre.cjs → telemetry-Dsw_faFj.cjs} +4 -4
- package/dist/src/{telemetry-BugWqKiu.js → telemetry-Dvqxv3YC.js} +4 -4
- package/dist/src/{telemetry-DPXLd7UE.js → telemetry-dbaJ0E98.js} +4 -4
- package/dist/src/{text-CW1cyrwj.cjs → text-BVi-cLPJ.cjs} +1 -1
- package/dist/src/{text-B_UCRPp2.js → text-CZr46tp_.js} +1 -1
- package/dist/src/{text-TIv0QYnd.js → text-DHxdyQqT.js} +1 -1
- package/dist/src/{text-Db-Wt2u2.js → text-KvuD2Iko.js} +1 -1
- package/dist/src/{tokenUsageUtils-bVa1ga6f.cjs → tokenUsageUtils-Bb7DkZPz.cjs} +7 -3
- package/dist/src/{tokenUsageUtils-BDGe-iyI.js → tokenUsageUtils-C-bmyHoE.js} +7 -3
- package/dist/src/{tokenUsageUtils-DflFMjS0.js → tokenUsageUtils-CXrvO-wA.js} +7 -3
- package/dist/src/{transcription-BvtsrzRG.cjs → transcription-BvjmiYB1.cjs} +9 -13
- package/dist/src/{transcription-Hb3VnC4M.js → transcription-CJspiD2c.js} +8 -11
- package/dist/src/{transcription-CaMivnjG.js → transcription-DuWDupG7.js} +7 -11
- package/dist/src/{transcription-DOMMTu01.js → transcription-V2HaAmy2.js} +7 -13
- package/dist/src/{transform-BqPkNPYm.js → transform-Bbg6A8Jk.js} +4 -4
- package/dist/src/{transform-DrleutM3.js → transform-CG0ehZNG.js} +9 -8
- package/dist/src/{transform-0BwoBsvO.cjs → transform-CTeuTR3S.cjs} +16 -8
- package/dist/src/{transform-ZrG2dvlo.cjs → transform-CUnzlsbn.cjs} +4 -4
- package/dist/src/{transform-BzK09Q_9.js → transform-DYX1_Xnh.js} +5 -5
- package/dist/src/transform-DgKlRr73.cjs +2 -0
- package/dist/src/transform-M6ITAESf.js +3 -0
- package/dist/src/{transform-ljLYHEPh.js → transform-UN5UGu8U.js} +5 -5
- package/dist/src/{transform-B2-jIv68.js → transform-lQrDE1BQ.js} +8 -6
- package/dist/src/{transform-DyDAwEpE.js → transform-zDhMmzwX.js} +10 -7
- package/dist/src/{transformersAvailability-BGkzavwb.js → transformersAvailability-CcHusyhw.js} +1 -1
- package/dist/src/{transformersAvailability-DKoRtQLy.cjs → transformersAvailability-Cju9mHgR.cjs} +1 -1
- package/dist/src/{transformersAvailability-D6c6ROpT.js → transformersAvailability-DLlROWhg.js} +1 -1
- package/dist/src/{types-q8GXGF65.js → types-BGQDAP8i.js} +351 -22
- package/dist/src/{types-Cd3ygw8W.js → types-Bgh5SOn6.js} +352 -24
- package/dist/src/{types-D8cGDZbL.cjs → types-CeaeaZdP.cjs} +387 -22
- package/dist/src/{types-CIhFeUC4.js → types-Dm9JM6Vb.js} +362 -23
- package/dist/src/{util-vNmDL5DT.js → util-BYvQUPp7.js} +138 -36
- package/dist/src/{util-CuLo2pMR.cjs → util-Bxn8emtE.cjs} +14 -167
- package/dist/src/{util-BLvy9qfE.js → util-C8e5uydV.js} +18 -141
- package/dist/src/{util-DM2rTn_6.js → util-C9J8ahRn.js} +4 -4
- package/dist/src/{util-CFj4YKIn.cjs → util-CN3SrLT4.cjs} +4 -4
- package/dist/src/{util-BtoGs5Cb.js → util-D3q0WQ-0.js} +4 -4
- package/dist/src/{util-CgDCK4KI.js → util-D9TisOyk.js} +4 -4
- package/dist/src/{util-DMFeUvLz.js → util-DDs-7g6-.js} +138 -36
- package/dist/src/{util-DbVG-yZU.js → util-DvU2Pw8c.js} +138 -36
- package/dist/src/{util-Bm3E9jpK.js → util-DxWpWjhc.js} +12 -135
- package/dist/src/{util-CMMkIxfU.js → util-oGMLA7vc.js} +16 -139
- package/dist/src/{util--9u9UVCt.cjs → util-olYL5C6N.cjs} +143 -35
- package/dist/src/{utils-DKw8mrgr.cjs → utils-B05gLxER.cjs} +6 -4
- package/dist/src/{utils-DEuL4VNB.js → utils-BLJKfv0y.js} +6 -4
- package/dist/src/{utils-DOjD4dTC.js → utils-DJfvjyMj.js} +6 -4
- package/dist/src/{utils-CFxO9KGo.js → utils-hXtCYanr.js} +6 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +51 -42
- package/dist/src/app/assets/index-B6l9CVVb.js +0 -439
- package/dist/src/app/assets/index-DyZ0Ep37.css +0 -1
- package/dist/src/app/assets/scroll-timeline-BdJZVXlz.js +0 -1
- package/dist/src/app/assets/sync-CStkzc6u.js +0 -4
- package/dist/src/app/assets/vendor-charts-BnDWwBlI.js +0 -36
- package/dist/src/app/assets/vendor-markdown-Bz7N-ca6.js +0 -29
- package/dist/src/app/assets/vendor-react-AtKqiNEf.js +0 -4
- package/dist/src/app/assets/vendor-syntax-D06x6TQF.js +0 -2
- package/dist/src/app/assets/vendor-utils-BvMHZmO7.js +0 -37
- package/dist/src/cache-C5yFZ4gC.cjs +0 -816
- package/dist/src/cache-CaT5tPgo.js +0 -756
- package/dist/src/cache-CyCanoMu.js +0 -6
- package/dist/src/cache-DSqR6ezl.js +0 -726
- package/dist/src/cache-Df_QFDNu.cjs +0 -5
- package/dist/src/cache-HP0NP4k3.js +0 -756
- package/dist/src/cloud-DE3t1-ZI.js +0 -4
- package/dist/src/codex-sdk-BQEw16R_.js +0 -834
- package/dist/src/codex-sdk-C_07GuVS.js +0 -834
- package/dist/src/codex-sdk-DE5G18dx.js +0 -835
- package/dist/src/codex-sdk-ZLKfDjqP.cjs +0 -838
- package/dist/src/eval-7aEqoMs3.js +0 -15
- package/dist/src/evalResult-CYNHkk5A.js +0 -12
- package/dist/src/evalResult-CuvJeNiM.js +0 -10
- package/dist/src/evalResult-tGdilrWt.cjs +0 -10
- package/dist/src/evaluator-BBUqRhz1.js +0 -36
- package/dist/src/fetch-UWU706qb.js +0 -5
- package/dist/src/graders-BxfEguVY.js +0 -32
- package/dist/src/graders-CzVMbEnv.js +0 -34
- package/dist/src/graders-DjCXfj0l.cjs +0 -32
- package/dist/src/graders-kHzIWOKu.js +0 -32
- package/dist/src/openclaw-0Sv7AK3O.js +0 -580
- package/dist/src/openclaw-CXxbKgDH.cjs +0 -586
- package/dist/src/openclaw-D1FSCps-.js +0 -580
- package/dist/src/openclaw-D2ENvu7a.js +0 -582
- package/dist/src/providers-BSLEaIQG.js +0 -32
- package/dist/src/providers-D-FnDg8k.cjs +0 -31
- package/dist/src/providers-DEYiFVAo.js +0 -30
- package/dist/src/providers-sS2WI8YD.js +0 -30
- package/dist/src/rubyUtils-B1HXG4ej.cjs +0 -4
- package/dist/src/rubyUtils-Rt6pKA96.js +0 -5
- package/dist/src/server-B0Xh1Gx-.js +0 -7
- package/dist/src/server-DJTKu9IR.cjs +0 -5
- package/dist/src/store-C5u6MgC8.js +0 -6
- package/dist/src/store-CNHk-De4.cjs +0 -5
- package/dist/src/telemetry-Yig0Tino.js +0 -7
- package/dist/src/telemetry-p8Pwqm1i.cjs +0 -5
- package/dist/src/tokenUsageUtils-NYT-WKS6.js +0 -138
- package/dist/src/transform-ChNIpHz7.js +0 -6
- package/dist/src/transform-PtQ6rAE3.cjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { T as getEnvBool, s as logger } from "./logger-DksKw1Qc.js";
|
|
3
3
|
//#region src/ui/interactiveCheck.ts
|
|
4
4
|
/**
|
|
5
5
|
* Lightweight module for checking if interactive UI should be used.
|
|
@@ -56,4 +56,4 @@ function shouldUseInkUI() {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { shouldUseInkUI as n, canUseInteractiveUI as t };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=interactiveCheck-
|
|
59
|
+
//# sourceMappingURL=interactiveCheck-CLERUB0c.js.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
require("./
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
require("./
|
|
6
|
-
const require_telemetry = require("./telemetry-re627Lre.cjs");
|
|
7
|
-
const require_base = require("./base-BboXIF_0.cjs");
|
|
1
|
+
const require_logger = require("./logger-COuQb2xB.cjs");
|
|
2
|
+
const require_cache = require("./cache-BIyPcp5v.cjs");
|
|
3
|
+
const require_tokenUsageUtils = require("./tokenUsageUtils-Bb7DkZPz.cjs");
|
|
4
|
+
const require_telemetry = require("./telemetry-Dsw_faFj.cjs");
|
|
5
|
+
const require_base = require("./base-D-670DX8.cjs");
|
|
8
6
|
//#region src/providers/bedrock/knowledgeBase.ts
|
|
9
7
|
/**
|
|
10
8
|
* AWS Bedrock Knowledge Base provider for RAG (Retrieval Augmented Generation).
|
|
@@ -121,4 +119,4 @@ var AwsBedrockKnowledgeBaseProvider = class extends require_base.AwsBedrockGener
|
|
|
121
119
|
//#endregion
|
|
122
120
|
exports.AwsBedrockKnowledgeBaseProvider = AwsBedrockKnowledgeBaseProvider;
|
|
123
121
|
|
|
124
|
-
//# sourceMappingURL=knowledgeBase-
|
|
122
|
+
//# sourceMappingURL=knowledgeBase-Bpoe_nLu.cjs.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as telemetry } from "./telemetry-DPXLd7UE.js";
|
|
7
|
-
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-Cz2ZC_iA.js";
|
|
1
|
+
import { a as logger, w as getEnvInt } from "./logger-Ct2S6Yx-.js";
|
|
2
|
+
import { a as isCacheEnabled, i as getCache } from "./cache-D5NZmMiT.js";
|
|
3
|
+
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-C-bmyHoE.js";
|
|
4
|
+
import { t as telemetry } from "./telemetry-Dvqxv3YC.js";
|
|
5
|
+
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-PYJvBE1i.js";
|
|
8
6
|
//#region src/providers/bedrock/knowledgeBase.ts
|
|
9
7
|
/**
|
|
10
8
|
* AWS Bedrock Knowledge Base provider for RAG (Retrieval Augmented Generation).
|
|
@@ -121,4 +119,4 @@ var AwsBedrockKnowledgeBaseProvider = class extends AwsBedrockGenericProvider {
|
|
|
121
119
|
//#endregion
|
|
122
120
|
export { AwsBedrockKnowledgeBaseProvider };
|
|
123
121
|
|
|
124
|
-
//# sourceMappingURL=knowledgeBase-
|
|
122
|
+
//# sourceMappingURL=knowledgeBase-Dgc7CBWF.js.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import { t as telemetry } from "./telemetry-BugWqKiu.js";
|
|
7
|
-
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-CqzQ4K8j.js";
|
|
1
|
+
import { a as logger, w as getEnvInt } from "./logger-B88EkIn6.js";
|
|
2
|
+
import { a as isCacheEnabled, i as getCache } from "./cache-C4Xb-hNb.js";
|
|
3
|
+
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-C-bmyHoE.js";
|
|
4
|
+
import { n as telemetry } from "./telemetry-dbaJ0E98.js";
|
|
5
|
+
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-yrI1Yal4.js";
|
|
8
6
|
//#region src/providers/bedrock/knowledgeBase.ts
|
|
9
7
|
/**
|
|
10
8
|
* AWS Bedrock Knowledge Base provider for RAG (Retrieval Augmented Generation).
|
|
@@ -121,4 +119,4 @@ var AwsBedrockKnowledgeBaseProvider = class extends AwsBedrockGenericProvider {
|
|
|
121
119
|
//#endregion
|
|
122
120
|
export { AwsBedrockKnowledgeBaseProvider };
|
|
123
121
|
|
|
124
|
-
//# sourceMappingURL=knowledgeBase-
|
|
122
|
+
//# sourceMappingURL=knowledgeBase-RhFPGWDc.js.map
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import { r as
|
|
7
|
-
import { o as getCache, s as isCacheEnabled } from "./cache-DSqR6ezl.js";
|
|
8
|
-
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-DflFMjS0.js";
|
|
9
|
-
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-CKjwebIH.js";
|
|
2
|
+
import { D as getEnvInt, s as logger } from "./logger-DksKw1Qc.js";
|
|
3
|
+
import { r as telemetry } from "./telemetry-CQPez_Jp.js";
|
|
4
|
+
import { o as getCache, s as isCacheEnabled } from "./cache-mb7c8hbp.js";
|
|
5
|
+
import { a as createEmptyTokenUsage } from "./tokenUsageUtils-CXrvO-wA.js";
|
|
6
|
+
import { n as createBedrockRequestHandler, r as hasProxyEnv, t as AwsBedrockGenericProvider } from "./base-fZ9wgg50.js";
|
|
10
7
|
//#region src/providers/bedrock/knowledgeBase.ts
|
|
11
8
|
/**
|
|
12
9
|
* AWS Bedrock Knowledge Base provider for RAG (Retrieval Augmented Generation).
|
|
@@ -123,4 +120,4 @@ var AwsBedrockKnowledgeBaseProvider = class extends AwsBedrockGenericProvider {
|
|
|
123
120
|
//#endregion
|
|
124
121
|
export { AwsBedrockKnowledgeBaseProvider };
|
|
125
122
|
|
|
126
|
-
//# sourceMappingURL=knowledgeBase-
|
|
123
|
+
//# sourceMappingURL=knowledgeBase-lm9RXSAm.js.map
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./fetch-CVAtKnI3.js";
|
|
7
|
-
import "./cache-CaT5tPgo.js";
|
|
8
|
-
import "./genaiTracer-D3fD9dNV.js";
|
|
9
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-pxmiVpWe.js";
|
|
10
|
-
import "./transform-DyDAwEpE.js";
|
|
11
|
-
import "./openai-BcB5KlTk.js";
|
|
12
|
-
import "./util-CgDCK4KI.js";
|
|
13
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-DCjv7RZ3.js";
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { O as getEnvString } from "./logger-DksKw1Qc.js";
|
|
3
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-Dr3DUQ0D.js";
|
|
4
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-D3xTseo7.js";
|
|
5
|
+
import { t as OpenAiCompletionProvider } from "./completion-x0a_c2y1.js";
|
|
14
6
|
//#region src/providers/litellm.ts
|
|
15
7
|
/**
|
|
16
8
|
* Base class for LiteLLM providers that maintains LiteLLM identity
|
|
@@ -142,4 +134,4 @@ function createLiteLLMProvider(providerPath, options = {}) {
|
|
|
142
134
|
//#endregion
|
|
143
135
|
export { createLiteLLMProvider };
|
|
144
136
|
|
|
145
|
-
//# sourceMappingURL=litellm-
|
|
137
|
+
//# sourceMappingURL=litellm-C2kqjxqp.js.map
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
require("./
|
|
3
|
-
require("./
|
|
4
|
-
require("./
|
|
5
|
-
require("./util-CuLo2pMR.cjs");
|
|
6
|
-
require("./fetch-BnR9wSnm.cjs");
|
|
7
|
-
require("./cache-C5yFZ4gC.cjs");
|
|
8
|
-
require("./genaiTracer-BfxrvSUb.cjs");
|
|
9
|
-
const require_chat = require("./chat-CM8qWR3_.cjs");
|
|
10
|
-
require("./transform-0BwoBsvO.cjs");
|
|
11
|
-
require("./openai-CoxGAQwn.cjs");
|
|
12
|
-
require("./util-CFj4YKIn.cjs");
|
|
13
|
-
const require_completion = require("./completion-DlXUhj5c.cjs");
|
|
1
|
+
const require_logger = require("./logger-COuQb2xB.cjs");
|
|
2
|
+
const require_chat = require("./chat-CclRbxGf.cjs");
|
|
3
|
+
const require_embedding = require("./embedding-I45KG3o7.cjs");
|
|
4
|
+
const require_completion = require("./completion-BozdoXba.cjs");
|
|
14
5
|
//#region src/providers/litellm.ts
|
|
15
6
|
/**
|
|
16
7
|
* Base class for LiteLLM providers that maintains LiteLLM identity
|
|
@@ -76,7 +67,7 @@ var LiteLLMCompletionProvider = class extends LiteLLMProviderWrapper {
|
|
|
76
67
|
var LiteLLMEmbeddingProvider = class extends LiteLLMProviderWrapper {
|
|
77
68
|
embeddingProvider;
|
|
78
69
|
constructor(modelName, options) {
|
|
79
|
-
const provider = new
|
|
70
|
+
const provider = new require_embedding.OpenAiEmbeddingProvider(modelName, options);
|
|
80
71
|
super(provider, "embedding");
|
|
81
72
|
this.embeddingProvider = provider;
|
|
82
73
|
if (provider.getApiKey) this.getApiKey = provider.getApiKey.bind(provider);
|
|
@@ -142,4 +133,4 @@ function createLiteLLMProvider(providerPath, options = {}) {
|
|
|
142
133
|
//#endregion
|
|
143
134
|
exports.createLiteLLMProvider = createLiteLLMProvider;
|
|
144
135
|
|
|
145
|
-
//# sourceMappingURL=litellm-
|
|
136
|
+
//# sourceMappingURL=litellm-CoyI4IAl.cjs.map
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./cache-HP0NP4k3.js";
|
|
6
|
-
import "./genaiTracer-70Z8BIuV.js";
|
|
7
|
-
import "./pythonUtils-Bzwbgpbg.js";
|
|
8
|
-
import "./util-BLvy9qfE.js";
|
|
9
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-B0iaWhoh.js";
|
|
10
|
-
import "./transform-B2-jIv68.js";
|
|
11
|
-
import "./openai-D6wITiVn.js";
|
|
12
|
-
import "./util-BtoGs5Cb.js";
|
|
13
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-BCimtq-h.js";
|
|
1
|
+
import { T as getEnvString } from "./logger-B88EkIn6.js";
|
|
2
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-BfPaS15_.js";
|
|
3
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-DD9wa3ae.js";
|
|
4
|
+
import { t as OpenAiCompletionProvider } from "./completion-HUe8wDhZ.js";
|
|
14
5
|
//#region src/providers/litellm.ts
|
|
15
6
|
/**
|
|
16
7
|
* Base class for LiteLLM providers that maintains LiteLLM identity
|
|
@@ -142,4 +133,4 @@ function createLiteLLMProvider(providerPath, options = {}) {
|
|
|
142
133
|
//#endregion
|
|
143
134
|
export { createLiteLLMProvider };
|
|
144
135
|
|
|
145
|
-
//# sourceMappingURL=litellm-
|
|
136
|
+
//# sourceMappingURL=litellm-DRjpcSa7.js.map
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./types-CIhFeUC4.js";
|
|
6
|
-
import "./cache-DSqR6ezl.js";
|
|
7
|
-
import "./util-Bm3E9jpK.js";
|
|
8
|
-
import "./esm-7UIl0pPM.js";
|
|
9
|
-
import "./pythonUtils-wIqk7zAf.js";
|
|
10
|
-
import "./genaiTracer-C1rxGO8Q.js";
|
|
11
|
-
import { t as OpenAiChatCompletionProvider } from "./chat-BEwdgGEg.js";
|
|
12
|
-
import "./transform-DrleutM3.js";
|
|
13
|
-
import "./openai-BMcwgD5C.js";
|
|
14
|
-
import "./util-DM2rTn_6.js";
|
|
15
|
-
import { n as OpenAiEmbeddingProvider, t as OpenAiCompletionProvider } from "./completion-DoYy49ti.js";
|
|
1
|
+
import { T as getEnvString } from "./logger-Ct2S6Yx-.js";
|
|
2
|
+
import { t as OpenAiChatCompletionProvider } from "./chat-I9izLm49.js";
|
|
3
|
+
import { t as OpenAiEmbeddingProvider } from "./embedding-nFbumxcv.js";
|
|
4
|
+
import { t as OpenAiCompletionProvider } from "./completion-Dnxn7E-j.js";
|
|
16
5
|
//#region src/providers/litellm.ts
|
|
17
6
|
/**
|
|
18
7
|
* Base class for LiteLLM providers that maintains LiteLLM identity
|
|
@@ -144,4 +133,4 @@ function createLiteLLMProvider(providerPath, options = {}) {
|
|
|
144
133
|
//#endregion
|
|
145
134
|
export { createLiteLLMProvider };
|
|
146
135
|
|
|
147
|
-
//# sourceMappingURL=litellm-
|
|
136
|
+
//# sourceMappingURL=litellm-p37R1dzQ.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as invariant } from "./invariant-vgHWClmd.js";
|
|
2
2
|
import dotenv from "dotenv";
|
|
3
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
4
|
import fs from "fs";
|
|
4
5
|
import * as path$1 from "path";
|
|
5
6
|
import path from "path";
|
|
@@ -11,7 +12,26 @@ import addFormats from "ajv-formats";
|
|
|
11
12
|
import yaml from "js-yaml";
|
|
12
13
|
import safeStringify from "fast-safe-stringify";
|
|
13
14
|
//#region src/cliState.ts
|
|
14
|
-
const
|
|
15
|
+
const maxConcurrencyContext = new AsyncLocalStorage();
|
|
16
|
+
let globalMaxConcurrency;
|
|
17
|
+
const state = {
|
|
18
|
+
get maxConcurrency() {
|
|
19
|
+
const store = maxConcurrencyContext.getStore();
|
|
20
|
+
if (store) return store.maxConcurrency;
|
|
21
|
+
return globalMaxConcurrency;
|
|
22
|
+
},
|
|
23
|
+
set maxConcurrency(value) {
|
|
24
|
+
const store = maxConcurrencyContext.getStore();
|
|
25
|
+
if (store) {
|
|
26
|
+
store.maxConcurrency = value;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
globalMaxConcurrency = value;
|
|
30
|
+
},
|
|
31
|
+
withMaxConcurrency(maxConcurrency, fn) {
|
|
32
|
+
return maxConcurrencyContext.run({ maxConcurrency }, fn);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
15
35
|
//#endregion
|
|
16
36
|
//#region src/envars.ts
|
|
17
37
|
dotenv.config({ quiet: true });
|
|
@@ -141,6 +161,7 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
141
161
|
truncated[k] = truncateValue(v);
|
|
142
162
|
count++;
|
|
143
163
|
}
|
|
164
|
+
cache.delete(val);
|
|
144
165
|
return truncated;
|
|
145
166
|
}
|
|
146
167
|
return val;
|
|
@@ -159,13 +180,14 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
159
180
|
* @returns JSON string representation, or undefined if serialization fails
|
|
160
181
|
*/
|
|
161
182
|
function safeJsonStringify(value, prettyPrint = false) {
|
|
162
|
-
const
|
|
183
|
+
const ancestors = [];
|
|
163
184
|
const space = prettyPrint ? 2 : void 0;
|
|
164
185
|
try {
|
|
165
|
-
return JSON.stringify(value, (_key, val)
|
|
186
|
+
return JSON.stringify(value, function(_key, val) {
|
|
166
187
|
if (typeof val === "object" && val !== null) {
|
|
167
|
-
|
|
168
|
-
|
|
188
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
189
|
+
if (ancestors.includes(val)) return;
|
|
190
|
+
ancestors.push(val);
|
|
169
191
|
}
|
|
170
192
|
return val;
|
|
171
193
|
}, space) || void 0;
|
|
@@ -531,11 +553,18 @@ const LOG_LEVELS = {
|
|
|
531
553
|
debug: 3
|
|
532
554
|
};
|
|
533
555
|
let sourceMapSupportInitialized = false;
|
|
556
|
+
let sourceMapSupportInitializationPromise = null;
|
|
534
557
|
async function initializeSourceMapSupport() {
|
|
535
|
-
if (
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
558
|
+
if (sourceMapSupportInitialized) return;
|
|
559
|
+
sourceMapSupportInitializationPromise ??= (async () => {
|
|
560
|
+
try {
|
|
561
|
+
(await import("source-map-support")).install();
|
|
562
|
+
sourceMapSupportInitialized = true;
|
|
563
|
+
} catch {} finally {
|
|
564
|
+
sourceMapSupportInitializationPromise = null;
|
|
565
|
+
}
|
|
566
|
+
})();
|
|
567
|
+
await sourceMapSupportInitializationPromise;
|
|
539
568
|
}
|
|
540
569
|
/**
|
|
541
570
|
* Gets the caller location (filename and line number)
|
|
@@ -704,6 +733,6 @@ async function logRequestResponse(options) {
|
|
|
704
733
|
}
|
|
705
734
|
if (getEnvString("LOG_LEVEL", "info") === "debug") initializeSourceMapSupport();
|
|
706
735
|
//#endregion
|
|
707
|
-
export {
|
|
736
|
+
export { getEnvFloat as C, getMaxEvalTimeMs as D, getEvalTimeoutMs as E, isCI as O, getEnvBool as S, getEnvString as T, isValidJson as _, logger as a, summarizeEvaluateResultForLogging as b, REDACTED as c, normalizeFieldName as d, sanitizeObject as f, getAjv as g, extractJsonObjects as h, logRequestResponse as i, state as k, isSecretField as l, extractFirstJsonObject as m, globalLogCallback as n, setLogCallback as o, sanitizeUrl as p, isDebugEnabled as r, setLogLevel as s, getLogLevel as t, looksLikeSecret as u, orderKeys as v, getEnvInt as w, getConfigDirectoryPath as x, safeJsonStringify as y };
|
|
708
737
|
|
|
709
|
-
//# sourceMappingURL=logger-
|
|
738
|
+
//# sourceMappingURL=logger-B88EkIn6.js.map
|
|
@@ -36,6 +36,7 @@ let path = require("path");
|
|
|
36
36
|
path = __toESM(path);
|
|
37
37
|
let js_yaml = require("js-yaml");
|
|
38
38
|
js_yaml = __toESM(js_yaml);
|
|
39
|
+
let node_async_hooks = require("node:async_hooks");
|
|
39
40
|
let dotenv = require("dotenv");
|
|
40
41
|
dotenv = __toESM(dotenv);
|
|
41
42
|
let chalk = require("chalk");
|
|
@@ -51,7 +52,26 @@ ajv_formats = __toESM(ajv_formats);
|
|
|
51
52
|
let fast_safe_stringify = require("fast-safe-stringify");
|
|
52
53
|
fast_safe_stringify = __toESM(fast_safe_stringify);
|
|
53
54
|
//#region src/cliState.ts
|
|
54
|
-
const
|
|
55
|
+
const maxConcurrencyContext = new node_async_hooks.AsyncLocalStorage();
|
|
56
|
+
let globalMaxConcurrency;
|
|
57
|
+
const state = {
|
|
58
|
+
get maxConcurrency() {
|
|
59
|
+
const store = maxConcurrencyContext.getStore();
|
|
60
|
+
if (store) return store.maxConcurrency;
|
|
61
|
+
return globalMaxConcurrency;
|
|
62
|
+
},
|
|
63
|
+
set maxConcurrency(value) {
|
|
64
|
+
const store = maxConcurrencyContext.getStore();
|
|
65
|
+
if (store) {
|
|
66
|
+
store.maxConcurrency = value;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
globalMaxConcurrency = value;
|
|
70
|
+
},
|
|
71
|
+
withMaxConcurrency(maxConcurrency, fn) {
|
|
72
|
+
return maxConcurrencyContext.run({ maxConcurrency }, fn);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
55
75
|
//#endregion
|
|
56
76
|
//#region src/envars.ts
|
|
57
77
|
dotenv.default.config({ quiet: true });
|
|
@@ -181,6 +201,7 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
181
201
|
truncated[k] = truncateValue(v);
|
|
182
202
|
count++;
|
|
183
203
|
}
|
|
204
|
+
cache.delete(val);
|
|
184
205
|
return truncated;
|
|
185
206
|
}
|
|
186
207
|
return val;
|
|
@@ -199,13 +220,14 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
199
220
|
* @returns JSON string representation, or undefined if serialization fails
|
|
200
221
|
*/
|
|
201
222
|
function safeJsonStringify(value, prettyPrint = false) {
|
|
202
|
-
const
|
|
223
|
+
const ancestors = [];
|
|
203
224
|
const space = prettyPrint ? 2 : void 0;
|
|
204
225
|
try {
|
|
205
|
-
return JSON.stringify(value, (_key, val)
|
|
226
|
+
return JSON.stringify(value, function(_key, val) {
|
|
206
227
|
if (typeof val === "object" && val !== null) {
|
|
207
|
-
|
|
208
|
-
|
|
228
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
229
|
+
if (ancestors.includes(val)) return;
|
|
230
|
+
ancestors.push(val);
|
|
209
231
|
}
|
|
210
232
|
return val;
|
|
211
233
|
}, space) || void 0;
|
|
@@ -571,11 +593,18 @@ const LOG_LEVELS = {
|
|
|
571
593
|
debug: 3
|
|
572
594
|
};
|
|
573
595
|
let sourceMapSupportInitialized = false;
|
|
596
|
+
let sourceMapSupportInitializationPromise = null;
|
|
574
597
|
async function initializeSourceMapSupport() {
|
|
575
|
-
if (
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
598
|
+
if (sourceMapSupportInitialized) return;
|
|
599
|
+
sourceMapSupportInitializationPromise ??= (async () => {
|
|
600
|
+
try {
|
|
601
|
+
(await import("source-map-support")).install();
|
|
602
|
+
sourceMapSupportInitialized = true;
|
|
603
|
+
} catch {} finally {
|
|
604
|
+
sourceMapSupportInitializationPromise = null;
|
|
605
|
+
}
|
|
606
|
+
})();
|
|
607
|
+
await sourceMapSupportInitializationPromise;
|
|
579
608
|
}
|
|
580
609
|
/**
|
|
581
610
|
* Gets the caller location (filename and line number)
|
|
@@ -846,6 +875,12 @@ Object.defineProperty(exports, "isDebugEnabled", {
|
|
|
846
875
|
return isDebugEnabled;
|
|
847
876
|
}
|
|
848
877
|
});
|
|
878
|
+
Object.defineProperty(exports, "isSecretField", {
|
|
879
|
+
enumerable: true,
|
|
880
|
+
get: function() {
|
|
881
|
+
return isSecretField;
|
|
882
|
+
}
|
|
883
|
+
});
|
|
849
884
|
Object.defineProperty(exports, "isValidJson", {
|
|
850
885
|
enumerable: true,
|
|
851
886
|
get: function() {
|
|
@@ -864,6 +899,12 @@ Object.defineProperty(exports, "logger", {
|
|
|
864
899
|
return logger;
|
|
865
900
|
}
|
|
866
901
|
});
|
|
902
|
+
Object.defineProperty(exports, "looksLikeSecret", {
|
|
903
|
+
enumerable: true,
|
|
904
|
+
get: function() {
|
|
905
|
+
return looksLikeSecret;
|
|
906
|
+
}
|
|
907
|
+
});
|
|
867
908
|
Object.defineProperty(exports, "normalizeFieldName", {
|
|
868
909
|
enumerable: true,
|
|
869
910
|
get: function() {
|
|
@@ -919,4 +960,4 @@ Object.defineProperty(exports, "summarizeEvaluateResultForLogging", {
|
|
|
919
960
|
}
|
|
920
961
|
});
|
|
921
962
|
|
|
922
|
-
//# sourceMappingURL=logger-
|
|
963
|
+
//# sourceMappingURL=logger-COuQb2xB.cjs.map
|
|
@@ -3,6 +3,7 @@ import fs from "fs";
|
|
|
3
3
|
import * as path$1 from "path";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import yaml from "js-yaml";
|
|
6
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
7
|
import dotenv from "dotenv";
|
|
7
8
|
import chalk from "chalk";
|
|
8
9
|
import winston from "winston";
|
|
@@ -11,7 +12,26 @@ import Ajv from "ajv";
|
|
|
11
12
|
import addFormats from "ajv-formats";
|
|
12
13
|
import safeStringify from "fast-safe-stringify";
|
|
13
14
|
//#region src/cliState.ts
|
|
14
|
-
const
|
|
15
|
+
const maxConcurrencyContext = new AsyncLocalStorage();
|
|
16
|
+
let globalMaxConcurrency;
|
|
17
|
+
const state = {
|
|
18
|
+
get maxConcurrency() {
|
|
19
|
+
const store = maxConcurrencyContext.getStore();
|
|
20
|
+
if (store) return store.maxConcurrency;
|
|
21
|
+
return globalMaxConcurrency;
|
|
22
|
+
},
|
|
23
|
+
set maxConcurrency(value) {
|
|
24
|
+
const store = maxConcurrencyContext.getStore();
|
|
25
|
+
if (store) {
|
|
26
|
+
store.maxConcurrency = value;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
globalMaxConcurrency = value;
|
|
30
|
+
},
|
|
31
|
+
withMaxConcurrency(maxConcurrency, fn) {
|
|
32
|
+
return maxConcurrencyContext.run({ maxConcurrency }, fn);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
15
35
|
//#endregion
|
|
16
36
|
//#region src/envars.ts
|
|
17
37
|
dotenv.config({ quiet: true });
|
|
@@ -141,6 +161,7 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
141
161
|
truncated[k] = truncateValue(v);
|
|
142
162
|
count++;
|
|
143
163
|
}
|
|
164
|
+
cache.delete(val);
|
|
144
165
|
return truncated;
|
|
145
166
|
}
|
|
146
167
|
return val;
|
|
@@ -159,13 +180,14 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
159
180
|
* @returns JSON string representation, or undefined if serialization fails
|
|
160
181
|
*/
|
|
161
182
|
function safeJsonStringify(value, prettyPrint = false) {
|
|
162
|
-
const
|
|
183
|
+
const ancestors = [];
|
|
163
184
|
const space = prettyPrint ? 2 : void 0;
|
|
164
185
|
try {
|
|
165
|
-
return JSON.stringify(value, (_key, val)
|
|
186
|
+
return JSON.stringify(value, function(_key, val) {
|
|
166
187
|
if (typeof val === "object" && val !== null) {
|
|
167
|
-
|
|
168
|
-
|
|
188
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
189
|
+
if (ancestors.includes(val)) return;
|
|
190
|
+
ancestors.push(val);
|
|
169
191
|
}
|
|
170
192
|
return val;
|
|
171
193
|
}, space) || void 0;
|
|
@@ -531,11 +553,18 @@ const LOG_LEVELS = {
|
|
|
531
553
|
debug: 3
|
|
532
554
|
};
|
|
533
555
|
let sourceMapSupportInitialized = false;
|
|
556
|
+
let sourceMapSupportInitializationPromise = null;
|
|
534
557
|
async function initializeSourceMapSupport() {
|
|
535
|
-
if (
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
558
|
+
if (sourceMapSupportInitialized) return;
|
|
559
|
+
sourceMapSupportInitializationPromise ??= (async () => {
|
|
560
|
+
try {
|
|
561
|
+
(await import("source-map-support")).install();
|
|
562
|
+
sourceMapSupportInitialized = true;
|
|
563
|
+
} catch {} finally {
|
|
564
|
+
sourceMapSupportInitializationPromise = null;
|
|
565
|
+
}
|
|
566
|
+
})();
|
|
567
|
+
await sourceMapSupportInitializationPromise;
|
|
539
568
|
}
|
|
540
569
|
/**
|
|
541
570
|
* Gets the caller location (filename and line number)
|
|
@@ -704,6 +733,6 @@ async function logRequestResponse(options) {
|
|
|
704
733
|
}
|
|
705
734
|
if (getEnvString("LOG_LEVEL", "info") === "debug") initializeSourceMapSupport();
|
|
706
735
|
//#endregion
|
|
707
|
-
export {
|
|
736
|
+
export { getEnvFloat as C, getMaxEvalTimeMs as D, getEvalTimeoutMs as E, isCI as O, getEnvBool as S, getEnvString as T, isValidJson as _, logger as a, summarizeEvaluateResultForLogging as b, REDACTED as c, normalizeFieldName as d, sanitizeObject as f, getAjv as g, extractJsonObjects as h, logRequestResponse as i, state as k, isSecretField as l, extractFirstJsonObject as m, globalLogCallback as n, setLogCallback as o, sanitizeUrl as p, isDebugEnabled as r, setLogLevel as s, getLogLevel as t, looksLikeSecret as u, orderKeys as v, getEnvInt as w, getConfigDirectoryPath as x, safeJsonStringify as y };
|
|
708
737
|
|
|
709
|
-
//# sourceMappingURL=logger-
|
|
738
|
+
//# sourceMappingURL=logger-Ct2S6Yx-.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as invariant } from "./invariant-BtWWVVhl.js";
|
|
3
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
4
|
import dotenv from "dotenv";
|
|
4
5
|
import chalk from "chalk";
|
|
5
6
|
import fs from "fs";
|
|
@@ -12,7 +13,26 @@ import addFormats from "ajv-formats";
|
|
|
12
13
|
import yaml from "js-yaml";
|
|
13
14
|
import safeStringify from "fast-safe-stringify";
|
|
14
15
|
//#region src/cliState.ts
|
|
15
|
-
const
|
|
16
|
+
const maxConcurrencyContext = new AsyncLocalStorage();
|
|
17
|
+
let globalMaxConcurrency;
|
|
18
|
+
const state = {
|
|
19
|
+
get maxConcurrency() {
|
|
20
|
+
const store = maxConcurrencyContext.getStore();
|
|
21
|
+
if (store) return store.maxConcurrency;
|
|
22
|
+
return globalMaxConcurrency;
|
|
23
|
+
},
|
|
24
|
+
set maxConcurrency(value) {
|
|
25
|
+
const store = maxConcurrencyContext.getStore();
|
|
26
|
+
if (store) {
|
|
27
|
+
store.maxConcurrency = value;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
globalMaxConcurrency = value;
|
|
31
|
+
},
|
|
32
|
+
withMaxConcurrency(maxConcurrency, fn) {
|
|
33
|
+
return maxConcurrencyContext.run({ maxConcurrency }, fn);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
16
36
|
//#endregion
|
|
17
37
|
//#region src/envars.ts
|
|
18
38
|
dotenv.config({ quiet: true });
|
|
@@ -153,6 +173,7 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
153
173
|
truncated[k] = truncateValue(v);
|
|
154
174
|
count++;
|
|
155
175
|
}
|
|
176
|
+
cache.delete(val);
|
|
156
177
|
return truncated;
|
|
157
178
|
}
|
|
158
179
|
return val;
|
|
@@ -171,13 +192,14 @@ function safeJsonStringifyTruncated(value, prettyPrint = false) {
|
|
|
171
192
|
* @returns JSON string representation, or undefined if serialization fails
|
|
172
193
|
*/
|
|
173
194
|
function safeJsonStringify(value, prettyPrint = false) {
|
|
174
|
-
const
|
|
195
|
+
const ancestors = [];
|
|
175
196
|
const space = prettyPrint ? 2 : void 0;
|
|
176
197
|
try {
|
|
177
|
-
return JSON.stringify(value, (_key, val)
|
|
198
|
+
return JSON.stringify(value, function(_key, val) {
|
|
178
199
|
if (typeof val === "object" && val !== null) {
|
|
179
|
-
|
|
180
|
-
|
|
200
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) ancestors.pop();
|
|
201
|
+
if (ancestors.includes(val)) return;
|
|
202
|
+
ancestors.push(val);
|
|
181
203
|
}
|
|
182
204
|
return val;
|
|
183
205
|
}, space) || void 0;
|
|
@@ -580,15 +602,22 @@ const LOG_LEVELS = {
|
|
|
580
602
|
debug: 3
|
|
581
603
|
};
|
|
582
604
|
let sourceMapSupportInitialized = false;
|
|
605
|
+
let sourceMapSupportInitializationPromise = null;
|
|
583
606
|
let isLoggerShuttingDown = false;
|
|
584
607
|
function setLoggerShuttingDown(value) {
|
|
585
608
|
isLoggerShuttingDown = value;
|
|
586
609
|
}
|
|
587
610
|
async function initializeSourceMapSupport() {
|
|
588
|
-
if (
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
611
|
+
if (sourceMapSupportInitialized) return;
|
|
612
|
+
sourceMapSupportInitializationPromise ??= (async () => {
|
|
613
|
+
try {
|
|
614
|
+
(await import("source-map-support")).install();
|
|
615
|
+
sourceMapSupportInitialized = true;
|
|
616
|
+
} catch {} finally {
|
|
617
|
+
sourceMapSupportInitializationPromise = null;
|
|
618
|
+
}
|
|
619
|
+
})();
|
|
620
|
+
await sourceMapSupportInitializationPromise;
|
|
592
621
|
}
|
|
593
622
|
/**
|
|
594
623
|
* Gets the caller location (filename and line number)
|
|
@@ -849,6 +878,6 @@ async function closeLogger() {
|
|
|
849
878
|
}
|
|
850
879
|
if (getEnvString("LOG_LEVEL", "info") === "debug") initializeSourceMapSupport();
|
|
851
880
|
//#endregion
|
|
852
|
-
export {
|
|
881
|
+
export { getMaxEvalTimeMs as A, getConfigDirectoryPath as C, getEnvInt as D, getEnvFloat as E, isNonInteractive as M, state as N, getEnvString as O, summarizeEvaluateResultForLogging as S, getEnvBool as T, extractJsonObjects as _, isDebugEnabled as a, orderKeys as b, setLogCallback as c, isSecretField as d, looksLikeSecret as f, extractFirstJsonObject as g, sanitizeUrl as h, initializeRunLogging as i, isCI as j, getEvalTimeoutMs as k, setLogLevel as l, sanitizeObject as m, getLogLevel as n, logRequestResponse as o, normalizeFieldName as p, globalLogCallback as r, logger as s, closeLogger as t, REDACTED as u, getAjv as v, setConfigDirectoryPath as w, safeJsonStringify as x, isValidJson as y };
|
|
853
882
|
|
|
854
|
-
//# sourceMappingURL=logger-
|
|
883
|
+
//# sourceMappingURL=logger-DksKw1Qc.js.map
|