@jdi-code/claude-code 1.0.3 → 1.2.0
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 +104 -369
- package/dist/{chunk-4t7n5hfg.js → chunk-0318ehfm.js} +8 -8
- package/dist/chunk-050fe4m3.js +68 -0
- package/dist/chunk-06v69x0b.js +127 -0
- package/dist/chunk-07069jq1.js +30 -0
- package/dist/chunk-0c9xpqm8.js +106 -0
- package/dist/chunk-0hxxwcs1.js +107 -0
- package/dist/chunk-0nsb3kxz.js +440 -0
- package/dist/{chunk-1cbn5kxf.js → chunk-0rpb2bdp.js} +3 -2
- package/dist/{chunk-vykgfhrb.js → chunk-0svbkpfn.js} +5 -5
- package/dist/chunk-0vg07894.js +121 -0
- package/dist/{chunk-e4vsvf0r.js → chunk-0zefjhrg.js} +4 -4
- package/dist/chunk-0zfmj5y2.js +106 -0
- package/dist/{chunk-czkshaff.js → chunk-107p04a0.js} +13 -11
- package/dist/{chunk-z4dm354d.js → chunk-13f30tg0.js} +1 -1
- package/dist/{chunk-44fpr6jq.js → chunk-168xb8v1.js} +4 -2
- package/dist/{chunk-0w63x62y.js → chunk-181q7ysj.js} +79 -63
- package/dist/{chunk-6mapphaq.js → chunk-18jc5efa.js} +8 -8
- package/dist/chunk-19j7nkpy.js +133 -0
- package/dist/chunk-1c2qp0ks.js +33068 -0
- package/dist/{chunk-0e1xsncc.js → chunk-1cwdhk7a.js} +1 -1
- package/dist/{chunk-7m2nd8da.js → chunk-1erfksyp.js} +6 -9
- package/dist/{chunk-rs45skes.js → chunk-1h1tc4mw.js} +13 -10
- package/dist/{chunk-91rcbmch.js → chunk-1rngm3yy.js} +155 -184
- package/dist/{chunk-3gqdqmzb.js → chunk-1vthytca.js} +16 -12
- package/dist/{chunk-xe6z85xc.js → chunk-1xbs4yb6.js} +19 -16
- package/dist/chunk-1xj1yz5n.js +109 -0
- package/dist/chunk-21mfpnva.js +85 -0
- package/dist/chunk-2361j94t.js +1811 -0
- package/dist/chunk-238g70xa.js +1 -1
- package/dist/chunk-250f5ce1.js +108 -0
- package/dist/{chunk-8yx1trkj.js → chunk-29r4exv2.js} +105 -211
- package/dist/chunk-2a8yf5ct.js +72 -0
- package/dist/{chunk-h3fqb66h.js → chunk-2bnerkhs.js} +110 -135
- package/dist/{chunk-0nt9md2b.js → chunk-2cctz9ww.js} +101 -8
- package/dist/chunk-2fwze72g.js +24 -0
- package/dist/{chunk-h3qa8f5w.js → chunk-2jvpw0q1.js} +229 -363
- package/dist/{chunk-9wm5e9e9.js → chunk-2mj88mnr.js} +42 -31
- package/dist/chunk-2q0schcc.js +133 -0
- package/dist/{chunk-r66hz8j6.js → chunk-2qp2hc02.js} +14 -12
- package/dist/chunk-2t0xa4dt.js +145 -0
- package/dist/chunk-2tzxsnha.js +360 -0
- package/dist/chunk-2v8cya3p.js +54 -0
- package/dist/chunk-2w00z1ct.js +105 -0
- package/dist/{chunk-2md1yavs.js → chunk-2wpfdv2t.js} +43 -32
- package/dist/chunk-2xcr3eqt.js +65 -0
- package/dist/chunk-30bpz5m2.js +34 -0
- package/dist/{chunk-hrzerbfw.js → chunk-36b2q5fg.js} +14 -14
- package/dist/{chunk-edg1yhec.js → chunk-3aady5e2.js} +2 -2
- package/dist/chunk-3ewzhjyb.js +207 -0
- package/dist/{chunk-z47tm067.js → chunk-3kpptrnz.js} +54 -47
- package/dist/{chunk-yd3av9a3.js → chunk-3na967x3.js} +2 -2
- package/dist/chunk-3nk79af8.js +8 -0
- package/dist/{chunk-z0cm9r7f.js → chunk-3r66czp1.js} +10 -10
- package/dist/{chunk-rnjbczcy.js → chunk-3y3qasy6.js} +13 -11
- package/dist/{chunk-nxsh6de2.js → chunk-404qm8xt.js} +16 -12
- package/dist/{chunk-mhqthgdg.js → chunk-41grdp0q.js} +5 -5
- package/dist/chunk-4cp6193g.js +9076 -0
- package/dist/chunk-4g18phg9.js +2535 -0
- package/dist/{chunk-6n2qgm9v.js → chunk-4hv90qcz.js} +1 -1
- package/dist/chunk-4jkfzf6g.js +81 -0
- package/dist/{chunk-5frcqxsv.js → chunk-4m6k7588.js} +127117 -138842
- package/dist/chunk-4nspekjp.js +69 -0
- package/dist/chunk-4x29t96w.js +119 -0
- package/dist/{chunk-40b8p5em.js → chunk-585cb3h6.js} +14 -12
- package/dist/{chunk-5dbar61y.js → chunk-59qz55py.js} +77 -61
- package/dist/chunk-5bta6qne.js +1030 -0
- package/dist/chunk-5dmczs66.js +123 -0
- package/dist/{chunk-9e2kqv5g.js → chunk-5pevjsyw.js} +3 -10
- package/dist/{chunk-5ndexvh1.js → chunk-5py41v61.js} +10226 -16961
- package/dist/{chunk-d5e75scx.js → chunk-5q2gm8dt.js} +5 -5
- package/dist/{chunk-893mewv4.js → chunk-5rpyh7nn.js} +1 -1
- package/dist/{chunk-hx2tr4ep.js → chunk-5z28bqne.js} +34 -475
- package/dist/chunk-5zzwydag.js +1170 -0
- package/dist/{chunk-4tyxyfsv.js → chunk-61gm3j90.js} +2 -2
- package/dist/chunk-64c1avct.js +13 -0
- package/dist/chunk-64hks9ax.js +456 -0
- package/dist/{chunk-bw9a5v0b.js → chunk-64m7ax9d.js} +4 -4
- package/dist/{chunk-cha1tdry.js → chunk-66hjztcb.js} +1 -1
- package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
- package/dist/chunk-69v14ada.js +76 -0
- package/dist/chunk-6eahnbxj.js +101 -0
- package/dist/chunk-6eg4c33n.js +196 -0
- package/dist/chunk-6fjfwj7q.js +214 -0
- package/dist/{chunk-70qb5sds.js → chunk-6kwwke3r.js} +2 -2
- package/dist/chunk-6m0pc6py.js +311 -0
- package/dist/chunk-6mpw9h55.js +1071 -0
- package/dist/{chunk-v1mgv1et.js → chunk-6p4cyhb3.js} +4 -3
- package/dist/chunk-6r1dx518.js +111 -0
- package/dist/{chunk-1n1xqxv5.js → chunk-713bh4cd.js} +1072 -1736
- package/dist/{chunk-nstbdz07.js → chunk-7246q965.js} +85 -69
- package/dist/{chunk-w6q6a1qj.js → chunk-74mdk2e7.js} +564 -864
- package/dist/{chunk-77czbpcq.js → chunk-76pa90ge.js} +104 -90
- package/dist/chunk-77nkh0x1.js +82 -0
- package/dist/chunk-7bsbnzpm.js +65 -0
- package/dist/chunk-7r3v46aq.js +167 -0
- package/dist/chunk-7vf8s593.js +235 -0
- package/dist/chunk-7x6ng8fp.js +64 -0
- package/dist/chunk-7xy990yb.js +81 -0
- package/dist/chunk-7xyswgjh.js +8 -0
- package/dist/chunk-80p18mf8.js +228 -0
- package/dist/{chunk-dv1wfr85.js → chunk-8225arm6.js} +5 -4
- package/dist/{chunk-vdbes184.js → chunk-82rh5hpz.js} +70 -10
- package/dist/chunk-84nf3k34.js +73 -0
- package/dist/chunk-85v0yx5b.js +106 -0
- package/dist/{chunk-x5j50p5x.js → chunk-86f4vq6n.js} +5 -5
- package/dist/{chunk-e5ga3s0y.js → chunk-86vec0h6.js} +148 -421
- package/dist/chunk-8az1n4zt.js +110 -0
- package/dist/{chunk-ctw5jwcd.js → chunk-8bwqtasa.js} +10 -10
- package/dist/chunk-8c9jtmsm.js +100 -0
- package/dist/{chunk-fqc5mcw7.js → chunk-8ca80ew2.js} +9 -9
- package/dist/chunk-8g5pe1gr.js +37 -0
- package/dist/{chunk-g0j0t6qk.js → chunk-8g747a8x.js} +1 -1
- package/dist/{chunk-3vzs2gbq.js → chunk-8gxztyqd.js} +4 -4
- package/dist/{chunk-45kxdsp8.js → chunk-8h6sdj66.js} +13 -10
- package/dist/{chunk-s8amjdwf.js → chunk-8ht15c7w.js} +7 -7
- package/dist/{chunk-ywxd4qw4.js → chunk-8mm8b6dd.js} +2 -5
- package/dist/{chunk-sdj9b9wh.js → chunk-8pn8tvgg.js} +9 -154
- package/dist/{chunk-pxrffn0w.js → chunk-8vnxjgz9.js} +11 -5
- package/dist/chunk-9525p9tg.js +401 -0
- package/dist/{chunk-y47cg3kz.js → chunk-9a0rsdre.js} +17 -13
- package/dist/chunk-9a2pa53f.js +308 -0
- package/dist/chunk-9es2dav7.js +507 -0
- package/dist/chunk-9pq45ycx.js +217 -0
- package/dist/chunk-9qwkw406.js +121 -0
- package/dist/chunk-9rf1x0z9.js +109 -0
- package/dist/{chunk-ghmbr193.js → chunk-9rvqx05m.js} +9 -9
- package/dist/{chunk-dchkdhzs.js → chunk-9sd3tz3p.js} +91 -75
- package/dist/chunk-9x5zgy22.js +12 -0
- package/dist/{chunk-q6b51yc5.js → chunk-9z4vq44b.js} +3 -3
- package/dist/chunk-a136cvvz.js +27 -0
- package/dist/{chunk-8hq5kk3y.js → chunk-a4twdmhf.js} +3 -2
- package/dist/{chunk-d18z9pna.js → chunk-a7rhvq9b.js} +2 -2
- package/dist/{chunk-pmjqdasm.js → chunk-a8jbqb9f.js} +2313 -4199
- package/dist/chunk-a9xhsth1.js +1068 -0
- package/dist/{chunk-kd63fbhw.js → chunk-achjqrhd.js} +81 -65
- package/dist/{chunk-67kbbt9h.js → chunk-af2vfhm4.js} +42 -31
- package/dist/{chunk-js8rvgs1.js → chunk-ahn9tgz7.js} +3 -3
- package/dist/chunk-ajets2e9.js +103 -0
- package/dist/chunk-akxywws0.js +79 -0
- package/dist/{chunk-meefz2g4.js → chunk-aqvgkvsq.js} +7 -7
- package/dist/{chunk-r6b58y3x.js → chunk-ase86y73.js} +1 -3
- package/dist/{chunk-hjhc4cpt.js → chunk-awb4vc41.js} +2 -2
- package/dist/{chunk-1jrcb7cs.js → chunk-b0mt3wzx.js} +37 -82
- package/dist/chunk-b4zy6y92.js +105 -0
- package/dist/{chunk-ax83mpvw.js → chunk-b65yxs9e.js} +26 -26
- package/dist/{chunk-wzx6mmft.js → chunk-b7b39zx2.js} +120 -118
- package/dist/{chunk-8bedvdm1.js → chunk-b81hd3m6.js} +1 -1
- package/dist/chunk-bbr7mwpv.js +117 -0
- package/dist/{chunk-1a61g8t2.js → chunk-bdzqt6gy.js} +83 -64
- package/dist/chunk-bkm0zms8.js +110 -0
- package/dist/{chunk-0vvej174.js → chunk-bs8r4665.js} +5 -5
- package/dist/{chunk-xvc4gp3x.js → chunk-bszdmr4k.js} +24 -24
- package/dist/{chunk-8ngxagxq.js → chunk-bt64sq5y.js} +4 -3
- package/dist/chunk-bvcpr8qa.js +909 -0
- package/dist/chunk-bx811wk6.js +118 -0
- package/dist/{chunk-3be7ka25.js → chunk-bxcfz5gy.js} +1 -1
- package/dist/{chunk-77g09znh.js → chunk-byv2p9hn.js} +22 -16
- package/dist/{chunk-wbkahkdc.js → chunk-c03am3es.js} +8 -6
- package/dist/chunk-c1x69s30.js +116 -0
- package/dist/chunk-c5vkve4j.js +68 -0
- package/dist/chunk-c6sjhj89.js +1284 -0
- package/dist/chunk-cb0wxajw.js +142 -0
- package/dist/{chunk-vyc0rjyx.js → chunk-cbrt5vsb.js} +1 -1
- package/dist/{chunk-4kxr1pwz.js → chunk-cgmy7r62.js} +30 -17
- package/dist/chunk-chsyvavm.js +3435 -0
- package/dist/{chunk-z72st5c8.js → chunk-cmsknj6n.js} +4774 -3386
- package/dist/{chunk-cdz5yb0r.js → chunk-crmjpsqe.js} +13 -2
- package/dist/chunk-cs039fnj.js +123 -0
- package/dist/{chunk-e7393td6.js → chunk-cznf6k4g.js} +13 -9
- package/dist/{chunk-fw49pe3p.js → chunk-cztjpxq4.js} +6 -6
- package/dist/{chunk-n8sjmqba.js → chunk-d0n93ge4.js} +141 -100
- package/dist/{chunk-spde0bf5.js → chunk-d14ygn80.js} +3 -3
- package/dist/chunk-d4mdda98.js +94 -0
- package/dist/chunk-d5qggsbm.js +137 -0
- package/dist/{chunk-55wgxwa9.js → chunk-d7886r6a.js} +6928 -6935
- package/dist/{chunk-eh8h36nt.js → chunk-d9gxtzmz.js} +42 -31
- package/dist/{chunk-xk66xrkk.js → chunk-da312cj9.js} +54 -72
- package/dist/{chunk-j287ctwr.js → chunk-df19zqjj.js} +77 -61
- package/dist/chunk-dm3n2qgd.js +24 -0
- package/dist/{chunk-m21hvkn4.js → chunk-dncgrfdt.js} +2 -2
- package/dist/{chunk-0nz8sqg4.js → chunk-dq3rw4b5.js} +1294 -873
- package/dist/{chunk-ey03t39w.js → chunk-dw1f4b7e.js} +257 -194
- package/dist/chunk-dx1jrvdz.js +339 -0
- package/dist/{chunk-0ragr30c.js → chunk-dxeadbxq.js} +12 -12
- package/dist/{chunk-gdp8wgnd.js → chunk-e8b9gcwf.js} +88 -72
- package/dist/chunk-e9k5a3cy.js +409 -0
- package/dist/chunk-e9mer45h.js +64 -0
- package/dist/{chunk-5qbwrz8m.js → chunk-ea2f7wt3.js} +13 -13
- package/dist/chunk-eak7m65m.js +1182 -0
- package/dist/chunk-ebhgmeyk.js +245 -0
- package/dist/chunk-eg93k7ac.js +117 -0
- package/dist/{chunk-jgv78tv0.js → chunk-ej1yvp43.js} +8 -8
- package/dist/chunk-ekr8pwpv.js +1408 -0
- package/dist/{chunk-m4edbpcz.js → chunk-epg124e3.js} +117 -143
- package/dist/chunk-eyqnj23w.js +5368 -0
- package/dist/chunk-f2bvkxbw.js +267 -0
- package/dist/chunk-f537x96t.js +295 -0
- package/dist/chunk-f6wdmebb.js +108 -0
- package/dist/chunk-feyzykye.js +10 -0
- package/dist/{chunk-ep47dy22.js → chunk-fj3ywwqv.js} +7 -7
- package/dist/{chunk-9gttd1xq.js → chunk-fjv7p1kc.js} +4 -4
- package/dist/{chunk-1rnkpxy4.js → chunk-fpe5nywt.js} +10 -115
- package/dist/chunk-fvpgrg19.js +434 -0
- package/dist/{chunk-9xmsmn93.js → chunk-fvqrkmtn.js} +5 -5
- package/dist/{chunk-6g62sjpf.js → chunk-fz0ch109.js} +4 -3
- package/dist/{chunk-5xz7ts0k.js → chunk-g0vh71q6.js} +188 -339
- package/dist/chunk-g1gtvtv8.js +384 -0
- package/dist/chunk-g5g9wm20.js +66 -0
- package/dist/{chunk-v399mzxk.js → chunk-g63tgj4f.js} +2 -2
- package/dist/{chunk-kkkneeg1.js → chunk-gay98970.js} +21 -16
- package/dist/chunk-gey7mwcw.js +36 -0
- package/dist/{chunk-w5ctjgmx.js → chunk-gtyh1yd1.js} +2 -2
- package/dist/{chunk-tjaqa99q.js → chunk-gx8016vp.js} +3 -3
- package/dist/{chunk-f2mhrmww.js → chunk-h0rbjg6x.js} +1 -8
- package/dist/{chunk-7z8j9qfn.js → chunk-h1mr3371.js} +3 -3
- package/dist/chunk-h2yxyeq4.js +132 -0
- package/dist/{chunk-qqfa0dqg.js → chunk-h4b85amj.js} +20 -32
- package/dist/chunk-h707k8xq.js +64 -0
- package/dist/{chunk-3z6rf0m3.js → chunk-h7rcjx8d.js} +5 -5
- package/dist/chunk-hch5yeq8.js +121 -0
- package/dist/{chunk-4anyx5bv.js → chunk-hd4azb7x.js} +5 -5
- package/dist/chunk-hjnbg9qw.js +32 -0
- package/dist/{chunk-e2yv57c2.js → chunk-hk9mmkba.js} +8 -8
- package/dist/{chunk-f1rrxxcf.js → chunk-hs9w0p45.js} +7 -131
- package/dist/{chunk-9f7xza5r.js → chunk-htaan7k0.js} +11 -11
- package/dist/chunk-htg84hvs.js +300 -0
- package/dist/chunk-hvyr6p4r.js +433 -0
- package/dist/chunk-j0r5vkvw.js +267 -0
- package/dist/{chunk-9gbamk79.js → chunk-j5bth84e.js} +5 -1
- package/dist/{chunk-vratq94g.js → chunk-j9gxwbe3.js} +1 -1
- package/dist/{chunk-3r24h7t6.js → chunk-jaaxk89e.js} +1 -1
- package/dist/chunk-je7jake4.js +3584 -0
- package/dist/chunk-jeqhpyxr.js +126 -0
- package/dist/chunk-jngf0nar.js +135 -0
- package/dist/chunk-jqjbc5ef.js +795 -0
- package/dist/{chunk-xf4wsjdm.js → chunk-jwrmmv7j.js} +9 -7
- package/dist/{chunk-j9wpkwjj.js → chunk-jwyzy83k.js} +6 -6
- package/dist/chunk-jz8v9sn3.js +228 -0
- package/dist/{chunk-bqfnp99q.js → chunk-k3s4yk22.js} +1 -1
- package/dist/chunk-k5c09bzv.js +443 -0
- package/dist/chunk-kbktwsms.js +372 -0
- package/dist/chunk-ke0hn0xr.js +260 -0
- package/dist/chunk-kehe7a71.js +41 -0
- package/dist/{chunk-1xkekb9y.js → chunk-kfd89dsd.js} +5 -3
- package/dist/chunk-ktjjb0k9.js +104 -0
- package/dist/{chunk-b74ht3xj.js → chunk-kxgcshx1.js} +78 -62
- package/dist/chunk-kz2fpejx.js +651 -0
- package/dist/{chunk-zvbpaaa1.js → chunk-kz3ctzg3.js} +110 -115
- package/dist/{chunk-72p24c9k.js → chunk-m268mm4c.js} +127 -188
- package/dist/{chunk-jafes477.js → chunk-m2bcpk8j.js} +4 -3
- package/dist/{chunk-4qv4z794.js → chunk-m32mdkts.js} +42 -31
- package/dist/chunk-m74w3187.js +164 -0
- package/dist/chunk-m7s7j422.js +166 -0
- package/dist/chunk-majhpxx5.js +594 -0
- package/dist/{chunk-q6av622g.js → chunk-mdk3xgya.js} +17 -13
- package/dist/{chunk-8bw3ft0x.js → chunk-mfcbez9a.js} +4 -4
- package/dist/{chunk-df6bwb4a.js → chunk-mj6w3ttg.js} +2 -2
- package/dist/{chunk-drrw55jr.js → chunk-mk6kj3q2.js} +1336 -2840
- package/dist/{chunk-vqr58rfh.js → chunk-mky388t4.js} +27 -67
- package/dist/chunk-mn61mk4v.js +351 -0
- package/dist/chunk-mx28h61f.js +1147 -0
- package/dist/chunk-my57sgky.js +883 -0
- package/dist/{chunk-k48thqgp.js → chunk-myk8saf6.js} +95 -190
- package/dist/chunk-n2zdmx4g.js +66 -0
- package/dist/{chunk-720qpv6d.js → chunk-n833arxq.js} +79 -63
- package/dist/{chunk-w2z5pqd3.js → chunk-n9ktjngj.js} +6 -6
- package/dist/{chunk-2tw2ve8h.js → chunk-nb2ntesh.js} +14 -10
- package/dist/{chunk-y18mc4m4.js → chunk-nbqv8ref.js} +10 -10
- package/dist/{chunk-74v9z7z4.js → chunk-nd4rncgd.js} +3 -13
- package/dist/chunk-nda50ze4.js +341 -0
- package/dist/{chunk-gb2q3nvc.js → chunk-nea2sah6.js} +5 -5
- package/dist/{chunk-t36rb2a8.js → chunk-nefsxetf.js} +294 -500
- package/dist/chunk-netzwgv1.js +154 -0
- package/dist/chunk-nfk9e540.js +107 -0
- package/dist/{chunk-xszk7n10.js → chunk-nh3cd07f.js} +1 -1
- package/dist/chunk-njq2hmjy.js +270 -0
- package/dist/chunk-nn5j7h8a.js +156 -0
- package/dist/{chunk-6fjab2dp.js → chunk-nrvkwzmq.js} +2 -2
- package/dist/chunk-nsextsmp.js +360 -0
- package/dist/{chunk-amhzxqj4.js → chunk-nt90fta7.js} +5 -5
- package/dist/{chunk-qbx1rq4f.js → chunk-p6sqbnqb.js} +193 -327
- package/dist/chunk-p8c23zr7.js +61 -0
- package/dist/chunk-p8enbwjk.js +183 -0
- package/dist/chunk-p8yggvgf.js +436 -0
- package/dist/{chunk-96awg5tc.js → chunk-pcfhe19b.js} +80 -17
- package/dist/{chunk-sfq65q9w.js → chunk-pgv9sa3a.js} +10 -14
- package/dist/chunk-ppwjyveh.js +8 -0
- package/dist/chunk-ppxvfp6m.js +424 -0
- package/dist/{chunk-zsfxha74.js → chunk-pshjyzq4.js} +8 -7
- package/dist/{chunk-35x3tjnr.js → chunk-pwr83fyy.js} +14 -8
- package/dist/chunk-q1976kze.js +473 -0
- package/dist/chunk-q387p8pp.js +943 -0
- package/dist/{chunk-b6av9ny9.js → chunk-q3ffkhnp.js} +132 -20
- package/dist/{chunk-w7wgpqcp.js → chunk-q50q8mc5.js} +7 -7
- package/dist/{chunk-e5pntxye.js → chunk-q7tpyeb3.js} +6 -4
- package/dist/{chunk-7ymfj7m3.js → chunk-q82r31er.js} +1 -1
- package/dist/chunk-qajrkk97.js +298 -0
- package/dist/chunk-qdazcrd7.js +362 -0
- package/dist/chunk-qhwvhgty.js +61 -0
- package/dist/{chunk-455a8z6g.js → chunk-qqk0kvsw.js} +138 -98
- package/dist/chunk-qqya1xyt.js +513 -0
- package/dist/{chunk-mzdwvbb0.js → chunk-qs6wypj1.js} +2 -2
- package/dist/chunk-qtahf5s5.js +113 -0
- package/dist/{chunk-tj79kfmn.js → chunk-qv9phqbv.js} +7 -7
- package/dist/{chunk-r5k04v8g.js → chunk-qyygv221.js} +13 -9
- package/dist/{chunk-zfc67eqj.js → chunk-r34f6vwc.js} +4 -4
- package/dist/{chunk-nerv0jvx.js → chunk-r59rgjxq.js} +1 -1
- package/dist/{chunk-7sb5axvf.js → chunk-r7j395t6.js} +2 -2
- package/dist/chunk-rb31sqzm.js +106 -0
- package/dist/{chunk-twsxz9ph.js → chunk-rbwy1qmm.js} +42 -31
- package/dist/{chunk-99t8enmg.js → chunk-re3crc6t.js} +10 -7
- package/dist/chunk-rhw4ayb1.js +6851 -0
- package/dist/{chunk-h6wtwdk0.js → chunk-rm31ynek.js} +8 -8
- package/dist/{chunk-eqrh0yjm.js → chunk-rr4e4axp.js} +2 -2
- package/dist/{chunk-neh2frnn.js → chunk-rs8304k5.js} +6 -6
- package/dist/{chunk-gax0fcbx.js → chunk-s1s8qfdh.js} +5 -5
- package/dist/{chunk-src9fqj8.js → chunk-s2483y2h.js} +3 -3
- package/dist/chunk-s2nhzjmt.js +113 -0
- package/dist/{chunk-7jma9mhn.js → chunk-sfhws681.js} +77 -61
- package/dist/{chunk-e3g8q4cn.js → chunk-sg66v252.js} +10 -8
- package/dist/{chunk-vp25xhav.js → chunk-szyt0xvf.js} +69 -78
- package/dist/{chunk-v7455ztd.js → chunk-t7j91et3.js} +86 -67
- package/dist/{chunk-mt25echc.js → chunk-tezak8rx.js} +1 -1
- package/dist/chunk-tf1p9trz.js +190 -0
- package/dist/{chunk-05gxvwvf.js → chunk-tm82sqkr.js} +96 -79
- package/dist/chunk-tpjetyb0.js +106 -0
- package/dist/chunk-trxvrrac.js +149 -0
- package/dist/chunk-tv9pcdnz.js +51 -0
- package/dist/{chunk-e5tfw9f7.js → chunk-twh7pzm8.js} +248 -307
- package/dist/{chunk-1x2wb3tc.js → chunk-txfvkh0w.js} +8 -8
- package/dist/chunk-var1et7e.js +66 -0
- package/dist/{chunk-se7v9emp.js → chunk-vbhvx4ma.js} +12 -10
- package/dist/{chunk-hqmz36b3.js → chunk-vf612n57.js} +21 -101
- package/dist/{chunk-3sdp7ds7.js → chunk-vfcty2ga.js} +10 -10
- package/dist/chunk-vhhyv8z8.js +147 -0
- package/dist/{chunk-48z7dgy1.js → chunk-vjcxs86z.js} +3 -3
- package/dist/{chunk-k5bpc8d5.js → chunk-vmnf3h9c.js} +43 -32
- package/dist/{chunk-fpjeh2em.js → chunk-vr7wmmyn.js} +17 -13
- package/dist/{chunk-9ewmqkgb.js → chunk-vxp2mhqy.js} +8 -8
- package/dist/{chunk-d238zp4m.js → chunk-w4gwnrwa.js} +2 -2
- package/dist/{chunk-jhsywyw8.js → chunk-wahkzh83.js} +9 -9
- package/dist/chunk-wdd4en5q.js +117 -0
- package/dist/{chunk-gm2m2yba.js → chunk-wgfnd174.js} +43 -32
- package/dist/chunk-wk1jw4dm.js +139 -0
- package/dist/chunk-wnpjc8hg.js +1018 -0
- package/dist/chunk-wv1t041q.js +151 -0
- package/dist/chunk-wvtmrmaj.js +130 -0
- package/dist/chunk-wyavftcj.js +103 -0
- package/dist/{chunk-4589pec2.js → chunk-x2dp18yj.js} +18 -46
- package/dist/{chunk-fj4hkg6k.js → chunk-x474ybns.js} +79 -110
- package/dist/chunk-x67cvhb8.js +134 -0
- package/dist/chunk-x6r4v44b.js +8 -0
- package/dist/{chunk-s0xfxkys.js → chunk-xk9pxqqx.js} +6 -6
- package/dist/{chunk-m06q12hg.js → chunk-xkt36p6r.js} +1 -1
- package/dist/{chunk-g653q217.js → chunk-xnav6j8h.js} +62 -374
- package/dist/chunk-xrjb0zyc.js +146 -0
- package/dist/chunk-xv3era3s.js +8 -0
- package/dist/{chunk-p7g7pf3f.js → chunk-y3r7v9pq.js} +4 -4
- package/dist/{chunk-3sagmdbp.js → chunk-y4szkj7r.js} +80 -64
- package/dist/{chunk-7d2700y8.js → chunk-y8syxjw1.js} +24 -54
- package/dist/chunk-y98z50mm.js +158 -0
- package/dist/chunk-ycrfxq10.js +123 -0
- package/dist/{chunk-8440dz44.js → chunk-yfjzdc0q.js} +9 -9
- package/dist/{chunk-cejskpky.js → chunk-ygf7pmmr.js} +145 -153
- package/dist/chunk-yha3z3ab.js +259 -0
- package/dist/chunk-ym5r3jnk.js +2007 -0
- package/dist/{chunk-28r6z9br.js → chunk-ys2gtqb0.js} +1 -3
- package/dist/{chunk-rzgtgtaf.js → chunk-ytg2n0dd.js} +7 -7
- package/dist/{chunk-q5hb65kq.js → chunk-ytzw9kw1.js} +78 -62
- package/dist/chunk-yzx3mhfd.js +110 -0
- package/dist/chunk-z1bs6d7k.js +24 -0
- package/dist/{chunk-6h9zcxaa.js → chunk-z1mvcq39.js} +4 -4
- package/dist/{chunk-gbq6jz9a.js → chunk-z3qhctbk.js} +134 -170
- package/dist/chunk-z9jn3442.js +146 -0
- package/dist/{chunk-5q7c8vt9.js → chunk-zbsz51qa.js} +41 -32
- package/dist/{chunk-n1erf6kh.js → chunk-ze6zvkg6.js} +5 -5
- package/dist/{chunk-t0rgmccj.js → chunk-zejm280k.js} +1 -1
- package/dist/{chunk-gfkppe34.js → chunk-zf47p99b.js} +10 -10
- package/dist/{chunk-53nbpp47.js → chunk-zhtrjznv.js} +557 -1502
- package/dist/{chunk-das977za.js → chunk-zq6tz1zv.js} +61 -100
- package/dist/chunk-zrw9gm80.js +264 -0
- package/dist/chunk-zseb1639.js +37 -0
- package/dist/{chunk-spqaamnc.js → chunk-zsgha506.js} +2 -2
- package/dist/chunk-zst7b4sp.js +2840 -0
- package/dist/{chunk-0xn1zr3e.js → chunk-zxkzzpgd.js} +145 -121
- package/dist/{chunk-g3t0act8.js → chunk-zzm33q8x.js} +1 -1
- package/dist/cli.js +20 -117
- package/dist/download-ripgrep.js +24821 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/package.json +22 -14
- package/scripts/download-ripgrep.ts +335 -0
- package/scripts/postinstall.cjs +319 -0
- package/dist/chunk-0gemty6d.js +0 -70
- package/dist/chunk-0pjw8y9z.js +0 -2833
- package/dist/chunk-1c8z1b5v.js +0 -16
- package/dist/chunk-1ebedmba.js +0 -90
- package/dist/chunk-1rvz0433.js +0 -722
- package/dist/chunk-1wfb8e3m.js +0 -107
- package/dist/chunk-2qjywwq4.js +0 -3445
- package/dist/chunk-2y659zbj.js +0 -103
- package/dist/chunk-41md7gny.js +0 -91
- package/dist/chunk-45m062tx.js +0 -2058
- package/dist/chunk-4br37gsw.js +0 -107
- package/dist/chunk-4nfrc6sq.js +0 -2431
- package/dist/chunk-4pdedeb4.js +0 -2644
- package/dist/chunk-4wzyhqbt.js +0 -444
- package/dist/chunk-4zsw4fhp.js +0 -67
- package/dist/chunk-52wv09zw.js +0 -102
- package/dist/chunk-55sfqnz4.js +0 -1921
- package/dist/chunk-5cd9cptq.js +0 -110
- package/dist/chunk-5dbk24zg.js +0 -890
- package/dist/chunk-5tfppbkq.js +0 -55
- package/dist/chunk-60xyrp86.js +0 -117
- package/dist/chunk-6deqb0mc.js +0 -376
- package/dist/chunk-6kpbgc5w.js +0 -23
- package/dist/chunk-6ndpfxcn.js +0 -222
- package/dist/chunk-7nvpa5ex.js +0 -123
- package/dist/chunk-7va8tw32.js +0 -128
- package/dist/chunk-7z3tkgec.js +0 -66
- package/dist/chunk-8e8set87.js +0 -281
- package/dist/chunk-8fg1egbv.js +0 -107
- package/dist/chunk-8thd6sgk.js +0 -106
- package/dist/chunk-8ytkb7k9.js +0 -84
- package/dist/chunk-9s5nkgsg.js +0 -699
- package/dist/chunk-9wce9hrc.js +0 -1015
- package/dist/chunk-9y91z69v.js +0 -44
- package/dist/chunk-ae76ded0.js +0 -30
- package/dist/chunk-b0eez8w0.js +0 -169
- package/dist/chunk-b57sb1dw.js +0 -642
- package/dist/chunk-bg3mt9bm.js +0 -28
- package/dist/chunk-bhdt6k7w.js +0 -15
- package/dist/chunk-bm1qb16p.js +0 -17
- package/dist/chunk-bsbmmfyt.js +0 -17
- package/dist/chunk-c7q12yes.js +0 -269
- package/dist/chunk-cv6y320h.js +0 -299
- package/dist/chunk-cvy3vntc.js +0 -65
- package/dist/chunk-cy2hswr1.js +0 -15
- package/dist/chunk-d5d398m4.js +0 -184
- package/dist/chunk-d7q4zp2z.js +0 -89
- package/dist/chunk-dnk519qv.js +0 -94
- package/dist/chunk-dqqde43e.js +0 -93
- package/dist/chunk-dy4ayw0p.js +0 -522
- package/dist/chunk-e4ak3jfc.js +0 -1154
- package/dist/chunk-e64spn53.js +0 -283
- package/dist/chunk-e8pk14j0.js +0 -527
- package/dist/chunk-eashsrsv.js +0 -88
- package/dist/chunk-eb90vwvr.js +0 -152
- package/dist/chunk-ese2g7hc.js +0 -92
- package/dist/chunk-et4jnyb5.js +0 -713
- package/dist/chunk-fdy0651p.js +0 -212
- package/dist/chunk-frsyts9j.js +0 -1170
- package/dist/chunk-ft2jssz4.js +0 -424
- package/dist/chunk-g41hzcy2.js +0 -101
- package/dist/chunk-g8dr8vvj.js +0 -111
- package/dist/chunk-gj71pd83.js +0 -5395
- package/dist/chunk-gjdwtdch.js +0 -154
- package/dist/chunk-gyj242zr.js +0 -20
- package/dist/chunk-hr719wjg.js +0 -144
- package/dist/chunk-hs8ph4p8.js +0 -8
- package/dist/chunk-j7gpr82p.js +0 -105
- package/dist/chunk-jczedp5x.js +0 -91
- package/dist/chunk-jd0t67a6.js +0 -259
- package/dist/chunk-jgyp3mzg.js +0 -1318
- package/dist/chunk-jq1kp9yy.js +0 -90
- package/dist/chunk-jskhn7bz.js +0 -71
- package/dist/chunk-k5aas9d3.js +0 -6108
- package/dist/chunk-k8jcy7mj.js +0 -48
- package/dist/chunk-ka22ccvm.js +0 -1581
- package/dist/chunk-ka6jav10.js +0 -91
- package/dist/chunk-kq6j096k.js +0 -538
- package/dist/chunk-kqd0e3xj.js +0 -463
- package/dist/chunk-kqjrsah4.js +0 -85
- package/dist/chunk-m390jta5.js +0 -114
- package/dist/chunk-m44a9yfj.js +0 -90
- package/dist/chunk-m5c8ng6v.js +0 -328
- package/dist/chunk-meag7bbe.js +0 -89
- package/dist/chunk-mnsrmwn8.js +0 -604
- package/dist/chunk-mzj4mtye.js +0 -115
- package/dist/chunk-mzy911jq.js +0 -128
- package/dist/chunk-n0fwapk6.js +0 -347
- package/dist/chunk-nt0mgsh6.js +0 -496
- package/dist/chunk-nwcfrws3.js +0 -273
- package/dist/chunk-pa2xksyb.js +0 -57
- package/dist/chunk-pnhs96g8.js +0 -140
- package/dist/chunk-ps4c75j7.js +0 -105
- package/dist/chunk-q0yg73za.js +0 -490
- package/dist/chunk-q5by3da6.js +0 -8
- package/dist/chunk-qbmhde47.js +0 -92
- package/dist/chunk-qp3dw7b4.js +0 -100
- package/dist/chunk-qt0b9x2w.js +0 -42
- package/dist/chunk-qxe98jgk.js +0 -584
- package/dist/chunk-r7n42k56.js +0 -756
- package/dist/chunk-radsjrmv.js +0 -55
- package/dist/chunk-rckj9gd1.js +0 -55
- package/dist/chunk-rn4kqfvd.js +0 -99
- package/dist/chunk-rngmdt2v.js +0 -97
- package/dist/chunk-rs5e0520.js +0 -87
- package/dist/chunk-s274nv8k.js +0 -8
- package/dist/chunk-s7t2e2tw.js +0 -1493
- package/dist/chunk-sbbt0ct3.js +0 -90
- package/dist/chunk-t0mnk0qp.js +0 -105
- package/dist/chunk-t1qmy36p.js +0 -94
- package/dist/chunk-tdy66rf9.js +0 -116
- package/dist/chunk-tf40vqky.js +0 -70
- package/dist/chunk-tmcxeatp.js +0 -116
- package/dist/chunk-v3gm2day.js +0 -8
- package/dist/chunk-v496te8v.js +0 -192
- package/dist/chunk-vd2hwk8d.js +0 -61
- package/dist/chunk-vdsmt7v0.js +0 -998
- package/dist/chunk-vf3qxte3.js +0 -93
- package/dist/chunk-vfqe1jqj.js +0 -643
- package/dist/chunk-vk3270s6.js +0 -119
- package/dist/chunk-vsr9mbnq.js +0 -195
- package/dist/chunk-w18zryr9.js +0 -348
- package/dist/chunk-wdxcgk6m.js +0 -196
- package/dist/chunk-wef07p3j.js +0 -131
- package/dist/chunk-wf4q1xj3.js +0 -62
- package/dist/chunk-wjq4zq3t.js +0 -162
- package/dist/chunk-wp4hc4n7.js +0 -133
- package/dist/chunk-x0rjttct.js +0 -420
- package/dist/chunk-xdw5dv00.js +0 -8
- package/dist/chunk-xm8fv5c9.js +0 -469
- package/dist/chunk-xq5ztz4g.js +0 -130
- package/dist/chunk-xvcdtezw.js +0 -401
- package/dist/chunk-y7njq3z3.js +0 -1866
- package/dist/chunk-ycxwftfh.js +0 -97
- package/dist/chunk-yn38f69a.js +0 -105
- package/dist/chunk-yp5kc8hq.js +0 -372
- package/dist/chunk-z09n2krq.js +0 -752
- package/dist/chunk-zerg8qwf.js +0 -96
- package/dist/{chunk-p452k1xp.js → chunk-57s5mr32.js} +9 -9
- package/dist/{chunk-27xc1csx.js → chunk-dggvswz1.js} +3 -3
- package/dist/{chunk-zxzwfa0b.js → chunk-pbyq1tm3.js} +3 -3
|
@@ -7,17 +7,20 @@ import {
|
|
|
7
7
|
readJSONLFile,
|
|
8
8
|
safeParseJSON,
|
|
9
9
|
stripBOM
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-sg66v252.js";
|
|
11
11
|
import {
|
|
12
12
|
expandPath,
|
|
13
13
|
init_path,
|
|
14
14
|
normalizePathForConfigKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-8bwqtasa.js";
|
|
16
|
+
import {
|
|
17
|
+
sanitizePath
|
|
18
|
+
} from "./chunk-j9gxwbe3.js";
|
|
16
19
|
import {
|
|
17
20
|
getAWSClientProxyConfig,
|
|
18
21
|
getProxyFetchOptions,
|
|
19
22
|
init_proxy
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-cztjpxq4.js";
|
|
21
24
|
import {
|
|
22
25
|
count,
|
|
23
26
|
getAgentId,
|
|
@@ -30,36 +33,43 @@ import {
|
|
|
30
33
|
lock,
|
|
31
34
|
lockSync,
|
|
32
35
|
uniq
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import {
|
|
35
|
-
sanitizePath
|
|
36
|
-
} from "./chunk-vratq94g.js";
|
|
36
|
+
} from "./chunk-1cwdhk7a.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
EXTERNAL_PERMISSION_MODES,
|
|
43
|
-
PERMISSION_MODES,
|
|
44
|
-
init_permissions
|
|
45
|
-
} from "./chunk-6kpbgc5w.js";
|
|
38
|
+
init_lazySchema,
|
|
39
|
+
lazySchema
|
|
40
|
+
} from "./chunk-64c1avct.js";
|
|
46
41
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
42
|
+
init_sleep,
|
|
43
|
+
sleep
|
|
44
|
+
} from "./chunk-8g5pe1gr.js";
|
|
50
45
|
import {
|
|
51
46
|
detectVcs,
|
|
52
47
|
getLinuxDistroInfo,
|
|
53
48
|
getPlatform,
|
|
54
49
|
getWslVersion,
|
|
55
50
|
init_platform
|
|
56
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-gx8016vp.js";
|
|
52
|
+
import {
|
|
53
|
+
init_v4,
|
|
54
|
+
v4_default
|
|
55
|
+
} from "./chunk-8g747a8x.js";
|
|
57
56
|
import {
|
|
58
57
|
exports_external,
|
|
59
|
-
init_lazySchema,
|
|
60
|
-
lazySchema,
|
|
61
58
|
toJSONSchema
|
|
62
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-d7886r6a.js";
|
|
60
|
+
import {
|
|
61
|
+
require_src as require_src2,
|
|
62
|
+
require_src1 as require_src3,
|
|
63
|
+
require_src2 as require_src4
|
|
64
|
+
} from "./chunk-f5ma3nh5.js";
|
|
65
|
+
import {
|
|
66
|
+
exports_common,
|
|
67
|
+
init_common
|
|
68
|
+
} from "./chunk-tv9pcdnz.js";
|
|
69
|
+
import {
|
|
70
|
+
init_normalization,
|
|
71
|
+
normalizeNameForMCP
|
|
72
|
+
} from "./chunk-3c25bcsw.js";
|
|
63
73
|
import {
|
|
64
74
|
JETBRAINS_IDES,
|
|
65
75
|
env,
|
|
@@ -68,7 +78,7 @@ import {
|
|
|
68
78
|
init_bundledMode,
|
|
69
79
|
init_env,
|
|
70
80
|
isInBundledMode
|
|
71
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-n9ktjngj.js";
|
|
72
82
|
import {
|
|
73
83
|
ALL_OAUTH_SCOPES,
|
|
74
84
|
CLAUDE_AI_INFERENCE_SCOPE,
|
|
@@ -77,24 +87,23 @@ import {
|
|
|
77
87
|
OAUTH_BETA_HEADER,
|
|
78
88
|
getOauthConfig,
|
|
79
89
|
init_oauth
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import {
|
|
82
|
-
require_src as require_src2,
|
|
83
|
-
require_src1 as require_src3,
|
|
84
|
-
require_src2 as require_src4
|
|
85
|
-
} from "./chunk-f5ma3nh5.js";
|
|
90
|
+
} from "./chunk-q82r31er.js";
|
|
86
91
|
import {
|
|
87
92
|
require_src
|
|
88
93
|
} from "./chunk-p2816w9z.js";
|
|
89
94
|
import {
|
|
90
95
|
init_startupProfiler,
|
|
91
96
|
profileCheckpoint
|
|
92
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-64hks9ax.js";
|
|
98
|
+
import {
|
|
99
|
+
init_source,
|
|
100
|
+
source_default
|
|
101
|
+
} from "./chunk-cmsknj6n.js";
|
|
93
102
|
import {
|
|
94
103
|
init_analytics,
|
|
95
104
|
logEvent,
|
|
96
105
|
stripProtoFields
|
|
97
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-h0rbjg6x.js";
|
|
98
107
|
import {
|
|
99
108
|
dirIsInGitRepo,
|
|
100
109
|
findCanonicalGitRoot,
|
|
@@ -102,21 +111,22 @@ import {
|
|
|
102
111
|
init_diagLogs,
|
|
103
112
|
init_git,
|
|
104
113
|
logForDiagnosticsNoPII
|
|
105
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-36b2q5fg.js";
|
|
106
115
|
import {
|
|
107
116
|
init_memoize as init_memoize2,
|
|
108
117
|
memoizeWithTTLAsync
|
|
109
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-a7rhvq9b.js";
|
|
110
119
|
import {
|
|
111
120
|
execFileNoThrow,
|
|
112
121
|
execFileNoThrowWithCwd,
|
|
113
122
|
execSyncWithDefaults_DEPRECATED,
|
|
114
|
-
execa,
|
|
115
|
-
execaSync,
|
|
116
123
|
init_execFileNoThrow,
|
|
117
|
-
init_execFileNoThrowPortable
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
init_execFileNoThrowPortable
|
|
125
|
+
} from "./chunk-m74w3187.js";
|
|
126
|
+
import {
|
|
127
|
+
getCwd,
|
|
128
|
+
init_cwd
|
|
129
|
+
} from "./chunk-b81hd3m6.js";
|
|
120
130
|
import {
|
|
121
131
|
getEssentialTrafficOnlyReason,
|
|
122
132
|
init_log,
|
|
@@ -124,11 +134,12 @@ import {
|
|
|
124
134
|
isEssentialTrafficOnly,
|
|
125
135
|
isTelemetryDisabled,
|
|
126
136
|
logError
|
|
127
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-y3r7v9pq.js";
|
|
128
138
|
import {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
139
|
+
execa,
|
|
140
|
+
execaSync,
|
|
141
|
+
init_execa
|
|
142
|
+
} from "./chunk-5z28bqne.js";
|
|
132
143
|
import {
|
|
133
144
|
ConfigParseError,
|
|
134
145
|
_assignValue_default,
|
|
@@ -174,7 +185,7 @@ import {
|
|
|
174
185
|
safeResolvePath,
|
|
175
186
|
toError,
|
|
176
187
|
writeFileSync_DEPRECATED
|
|
177
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-404qm8xt.js";
|
|
178
189
|
import {
|
|
179
190
|
getAWSRegion,
|
|
180
191
|
getClaudeConfigHomeDir,
|
|
@@ -184,7 +195,7 @@ import {
|
|
|
184
195
|
isEnvDefinedFalsy,
|
|
185
196
|
isEnvTruthy,
|
|
186
197
|
isRunningOnHomespace
|
|
187
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-jaaxk89e.js";
|
|
188
199
|
import {
|
|
189
200
|
_Stack_default,
|
|
190
201
|
_arrayMap_default,
|
|
@@ -231,7 +242,6 @@ import {
|
|
|
231
242
|
init_isArray,
|
|
232
243
|
init_isArrayLike,
|
|
233
244
|
init_isBuffer,
|
|
234
|
-
init_isObjectLike,
|
|
235
245
|
init_isTypedArray,
|
|
236
246
|
init_settingsCache,
|
|
237
247
|
init_signal,
|
|
@@ -240,7 +250,6 @@ import {
|
|
|
240
250
|
isArrayLike_default,
|
|
241
251
|
isArray_default,
|
|
242
252
|
isBuffer_default,
|
|
243
|
-
isObjectLike_default,
|
|
244
253
|
isTypedArray_default,
|
|
245
254
|
preferThirdPartyAuthentication,
|
|
246
255
|
resetSettingsCache,
|
|
@@ -251,19 +260,25 @@ import {
|
|
|
251
260
|
setModelStrings,
|
|
252
261
|
setOauthTokenFromFd,
|
|
253
262
|
setSessionSettingsCache
|
|
254
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-h4b85amj.js";
|
|
264
|
+
import {
|
|
265
|
+
init_isObjectLike,
|
|
266
|
+
isObjectLike_default
|
|
267
|
+
} from "./chunk-07069jq1.js";
|
|
255
268
|
import {
|
|
256
|
-
_baseGetTag_default,
|
|
257
269
|
eq_default,
|
|
258
|
-
init__baseGetTag,
|
|
259
270
|
init_eq,
|
|
260
271
|
init_isFunction,
|
|
261
|
-
init_isObject,
|
|
262
272
|
init_memoize,
|
|
263
273
|
isFunction_default,
|
|
264
|
-
isObject_default,
|
|
265
274
|
memoize_default
|
|
266
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-vf612n57.js";
|
|
276
|
+
import {
|
|
277
|
+
_baseGetTag_default,
|
|
278
|
+
init__baseGetTag,
|
|
279
|
+
init_isObject,
|
|
280
|
+
isObject_default
|
|
281
|
+
} from "./chunk-d4mdda98.js";
|
|
267
282
|
import {
|
|
268
283
|
init_sdk
|
|
269
284
|
} from "./chunk-4g3v8y12.js";
|
|
@@ -273,510 +288,16 @@ import {
|
|
|
273
288
|
import {
|
|
274
289
|
axios_default,
|
|
275
290
|
init_axios
|
|
276
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-nh3cd07f.js";
|
|
277
292
|
import {
|
|
293
|
+
__commonJS,
|
|
278
294
|
__esm,
|
|
279
295
|
__export,
|
|
280
296
|
__require,
|
|
297
|
+
__toCommonJS,
|
|
281
298
|
__toESM
|
|
282
299
|
} from "./chunk-qp2qdcda.js";
|
|
283
300
|
|
|
284
|
-
// node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
285
|
-
function assembleStyles() {
|
|
286
|
-
const codes = new Map;
|
|
287
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
288
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
289
|
-
styles[styleName] = {
|
|
290
|
-
open: `\x1B[${style[0]}m`,
|
|
291
|
-
close: `\x1B[${style[1]}m`
|
|
292
|
-
};
|
|
293
|
-
group[styleName] = styles[styleName];
|
|
294
|
-
codes.set(style[0], style[1]);
|
|
295
|
-
}
|
|
296
|
-
Object.defineProperty(styles, groupName, {
|
|
297
|
-
value: group,
|
|
298
|
-
enumerable: false
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
Object.defineProperty(styles, "codes", {
|
|
302
|
-
value: codes,
|
|
303
|
-
enumerable: false
|
|
304
|
-
});
|
|
305
|
-
styles.color.close = "\x1B[39m";
|
|
306
|
-
styles.bgColor.close = "\x1B[49m";
|
|
307
|
-
styles.color.ansi = wrapAnsi16();
|
|
308
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
309
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
310
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
311
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
312
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
313
|
-
Object.defineProperties(styles, {
|
|
314
|
-
rgbToAnsi256: {
|
|
315
|
-
value(red, green, blue) {
|
|
316
|
-
if (red === green && green === blue) {
|
|
317
|
-
if (red < 8) {
|
|
318
|
-
return 16;
|
|
319
|
-
}
|
|
320
|
-
if (red > 248) {
|
|
321
|
-
return 231;
|
|
322
|
-
}
|
|
323
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
324
|
-
}
|
|
325
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
326
|
-
},
|
|
327
|
-
enumerable: false
|
|
328
|
-
},
|
|
329
|
-
hexToRgb: {
|
|
330
|
-
value(hex) {
|
|
331
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
332
|
-
if (!matches) {
|
|
333
|
-
return [0, 0, 0];
|
|
334
|
-
}
|
|
335
|
-
let [colorString] = matches;
|
|
336
|
-
if (colorString.length === 3) {
|
|
337
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
338
|
-
}
|
|
339
|
-
const integer = Number.parseInt(colorString, 16);
|
|
340
|
-
return [
|
|
341
|
-
integer >> 16 & 255,
|
|
342
|
-
integer >> 8 & 255,
|
|
343
|
-
integer & 255
|
|
344
|
-
];
|
|
345
|
-
},
|
|
346
|
-
enumerable: false
|
|
347
|
-
},
|
|
348
|
-
hexToAnsi256: {
|
|
349
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
350
|
-
enumerable: false
|
|
351
|
-
},
|
|
352
|
-
ansi256ToAnsi: {
|
|
353
|
-
value(code) {
|
|
354
|
-
if (code < 8) {
|
|
355
|
-
return 30 + code;
|
|
356
|
-
}
|
|
357
|
-
if (code < 16) {
|
|
358
|
-
return 90 + (code - 8);
|
|
359
|
-
}
|
|
360
|
-
let red;
|
|
361
|
-
let green;
|
|
362
|
-
let blue;
|
|
363
|
-
if (code >= 232) {
|
|
364
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
365
|
-
green = red;
|
|
366
|
-
blue = red;
|
|
367
|
-
} else {
|
|
368
|
-
code -= 16;
|
|
369
|
-
const remainder = code % 36;
|
|
370
|
-
red = Math.floor(code / 36) / 5;
|
|
371
|
-
green = Math.floor(remainder / 6) / 5;
|
|
372
|
-
blue = remainder % 6 / 5;
|
|
373
|
-
}
|
|
374
|
-
const value = Math.max(red, green, blue) * 2;
|
|
375
|
-
if (value === 0) {
|
|
376
|
-
return 30;
|
|
377
|
-
}
|
|
378
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
379
|
-
if (value === 2) {
|
|
380
|
-
result += 60;
|
|
381
|
-
}
|
|
382
|
-
return result;
|
|
383
|
-
},
|
|
384
|
-
enumerable: false
|
|
385
|
-
},
|
|
386
|
-
rgbToAnsi: {
|
|
387
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
388
|
-
enumerable: false
|
|
389
|
-
},
|
|
390
|
-
hexToAnsi: {
|
|
391
|
-
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
392
|
-
enumerable: false
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
return styles;
|
|
396
|
-
}
|
|
397
|
-
var ANSI_BACKGROUND_OFFSET = 10, wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`, wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
398
|
-
var init_ansi_styles = __esm(() => {
|
|
399
|
-
styles = {
|
|
400
|
-
modifier: {
|
|
401
|
-
reset: [0, 0],
|
|
402
|
-
bold: [1, 22],
|
|
403
|
-
dim: [2, 22],
|
|
404
|
-
italic: [3, 23],
|
|
405
|
-
underline: [4, 24],
|
|
406
|
-
overline: [53, 55],
|
|
407
|
-
inverse: [7, 27],
|
|
408
|
-
hidden: [8, 28],
|
|
409
|
-
strikethrough: [9, 29]
|
|
410
|
-
},
|
|
411
|
-
color: {
|
|
412
|
-
black: [30, 39],
|
|
413
|
-
red: [31, 39],
|
|
414
|
-
green: [32, 39],
|
|
415
|
-
yellow: [33, 39],
|
|
416
|
-
blue: [34, 39],
|
|
417
|
-
magenta: [35, 39],
|
|
418
|
-
cyan: [36, 39],
|
|
419
|
-
white: [37, 39],
|
|
420
|
-
blackBright: [90, 39],
|
|
421
|
-
gray: [90, 39],
|
|
422
|
-
grey: [90, 39],
|
|
423
|
-
redBright: [91, 39],
|
|
424
|
-
greenBright: [92, 39],
|
|
425
|
-
yellowBright: [93, 39],
|
|
426
|
-
blueBright: [94, 39],
|
|
427
|
-
magentaBright: [95, 39],
|
|
428
|
-
cyanBright: [96, 39],
|
|
429
|
-
whiteBright: [97, 39]
|
|
430
|
-
},
|
|
431
|
-
bgColor: {
|
|
432
|
-
bgBlack: [40, 49],
|
|
433
|
-
bgRed: [41, 49],
|
|
434
|
-
bgGreen: [42, 49],
|
|
435
|
-
bgYellow: [43, 49],
|
|
436
|
-
bgBlue: [44, 49],
|
|
437
|
-
bgMagenta: [45, 49],
|
|
438
|
-
bgCyan: [46, 49],
|
|
439
|
-
bgWhite: [47, 49],
|
|
440
|
-
bgBlackBright: [100, 49],
|
|
441
|
-
bgGray: [100, 49],
|
|
442
|
-
bgGrey: [100, 49],
|
|
443
|
-
bgRedBright: [101, 49],
|
|
444
|
-
bgGreenBright: [102, 49],
|
|
445
|
-
bgYellowBright: [103, 49],
|
|
446
|
-
bgBlueBright: [104, 49],
|
|
447
|
-
bgMagentaBright: [105, 49],
|
|
448
|
-
bgCyanBright: [106, 49],
|
|
449
|
-
bgWhiteBright: [107, 49]
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
modifierNames = Object.keys(styles.modifier);
|
|
453
|
-
foregroundColorNames = Object.keys(styles.color);
|
|
454
|
-
backgroundColorNames = Object.keys(styles.bgColor);
|
|
455
|
-
colorNames = [...foregroundColorNames, ...backgroundColorNames];
|
|
456
|
-
ansiStyles = assembleStyles();
|
|
457
|
-
ansi_styles_default = ansiStyles;
|
|
458
|
-
});
|
|
459
|
-
|
|
460
|
-
// node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
|
|
461
|
-
import process2 from "process";
|
|
462
|
-
import os from "os";
|
|
463
|
-
import tty from "tty";
|
|
464
|
-
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process2.argv) {
|
|
465
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
466
|
-
const position = argv.indexOf(prefix + flag);
|
|
467
|
-
const terminatorPosition = argv.indexOf("--");
|
|
468
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
469
|
-
}
|
|
470
|
-
function envForceColor() {
|
|
471
|
-
if ("FORCE_COLOR" in env2) {
|
|
472
|
-
if (env2.FORCE_COLOR === "true") {
|
|
473
|
-
return 1;
|
|
474
|
-
}
|
|
475
|
-
if (env2.FORCE_COLOR === "false") {
|
|
476
|
-
return 0;
|
|
477
|
-
}
|
|
478
|
-
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
function translateLevel(level) {
|
|
482
|
-
if (level === 0) {
|
|
483
|
-
return false;
|
|
484
|
-
}
|
|
485
|
-
return {
|
|
486
|
-
level,
|
|
487
|
-
hasBasic: true,
|
|
488
|
-
has256: level >= 2,
|
|
489
|
-
has16m: level >= 3
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
493
|
-
const noFlagForceColor = envForceColor();
|
|
494
|
-
if (noFlagForceColor !== undefined) {
|
|
495
|
-
flagForceColor = noFlagForceColor;
|
|
496
|
-
}
|
|
497
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
498
|
-
if (forceColor === 0) {
|
|
499
|
-
return 0;
|
|
500
|
-
}
|
|
501
|
-
if (sniffFlags) {
|
|
502
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
503
|
-
return 3;
|
|
504
|
-
}
|
|
505
|
-
if (hasFlag("color=256")) {
|
|
506
|
-
return 2;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
510
|
-
return 1;
|
|
511
|
-
}
|
|
512
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
513
|
-
return 0;
|
|
514
|
-
}
|
|
515
|
-
const min = forceColor || 0;
|
|
516
|
-
if (env2.TERM === "dumb") {
|
|
517
|
-
return min;
|
|
518
|
-
}
|
|
519
|
-
if (process2.platform === "win32") {
|
|
520
|
-
const osRelease = os.release().split(".");
|
|
521
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
522
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
523
|
-
}
|
|
524
|
-
return 1;
|
|
525
|
-
}
|
|
526
|
-
if ("CI" in env2) {
|
|
527
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env2))) {
|
|
528
|
-
return 3;
|
|
529
|
-
}
|
|
530
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env2)) || env2.CI_NAME === "codeship") {
|
|
531
|
-
return 1;
|
|
532
|
-
}
|
|
533
|
-
return min;
|
|
534
|
-
}
|
|
535
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
536
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
537
|
-
}
|
|
538
|
-
if (env2.COLORTERM === "truecolor") {
|
|
539
|
-
return 3;
|
|
540
|
-
}
|
|
541
|
-
if (env2.TERM === "xterm-kitty") {
|
|
542
|
-
return 3;
|
|
543
|
-
}
|
|
544
|
-
if (env2.TERM === "xterm-ghostty") {
|
|
545
|
-
return 3;
|
|
546
|
-
}
|
|
547
|
-
if (env2.TERM === "wezterm") {
|
|
548
|
-
return 3;
|
|
549
|
-
}
|
|
550
|
-
if ("TERM_PROGRAM" in env2) {
|
|
551
|
-
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
552
|
-
switch (env2.TERM_PROGRAM) {
|
|
553
|
-
case "iTerm.app": {
|
|
554
|
-
return version >= 3 ? 3 : 2;
|
|
555
|
-
}
|
|
556
|
-
case "Apple_Terminal": {
|
|
557
|
-
return 2;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
562
|
-
return 2;
|
|
563
|
-
}
|
|
564
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
565
|
-
return 1;
|
|
566
|
-
}
|
|
567
|
-
if ("COLORTERM" in env2) {
|
|
568
|
-
return 1;
|
|
569
|
-
}
|
|
570
|
-
return min;
|
|
571
|
-
}
|
|
572
|
-
function createSupportsColor(stream, options = {}) {
|
|
573
|
-
const level = _supportsColor(stream, {
|
|
574
|
-
streamIsTTY: stream && stream.isTTY,
|
|
575
|
-
...options
|
|
576
|
-
});
|
|
577
|
-
return translateLevel(level);
|
|
578
|
-
}
|
|
579
|
-
var env2, flagForceColor, supportsColor, supports_color_default;
|
|
580
|
-
var init_supports_color = __esm(() => {
|
|
581
|
-
({ env: env2 } = process2);
|
|
582
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
583
|
-
flagForceColor = 0;
|
|
584
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
585
|
-
flagForceColor = 1;
|
|
586
|
-
}
|
|
587
|
-
supportsColor = {
|
|
588
|
-
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
589
|
-
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
590
|
-
};
|
|
591
|
-
supports_color_default = supportsColor;
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
// node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
595
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
596
|
-
let index = string.indexOf(substring);
|
|
597
|
-
if (index === -1) {
|
|
598
|
-
return string;
|
|
599
|
-
}
|
|
600
|
-
const substringLength = substring.length;
|
|
601
|
-
let endIndex = 0;
|
|
602
|
-
let returnValue = "";
|
|
603
|
-
do {
|
|
604
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
605
|
-
endIndex = index + substringLength;
|
|
606
|
-
index = string.indexOf(substring, endIndex);
|
|
607
|
-
} while (index !== -1);
|
|
608
|
-
returnValue += string.slice(endIndex);
|
|
609
|
-
return returnValue;
|
|
610
|
-
}
|
|
611
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
612
|
-
let endIndex = 0;
|
|
613
|
-
let returnValue = "";
|
|
614
|
-
do {
|
|
615
|
-
const gotCR = string[index - 1] === "\r";
|
|
616
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r
|
|
617
|
-
` : `
|
|
618
|
-
`) + postfix;
|
|
619
|
-
endIndex = index + 1;
|
|
620
|
-
index = string.indexOf(`
|
|
621
|
-
`, endIndex);
|
|
622
|
-
} while (index !== -1);
|
|
623
|
-
returnValue += string.slice(endIndex);
|
|
624
|
-
return returnValue;
|
|
625
|
-
}
|
|
626
|
-
var init_utilities = () => {};
|
|
627
|
-
|
|
628
|
-
// node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
629
|
-
class Chalk {
|
|
630
|
-
constructor(options) {
|
|
631
|
-
return chalkFactory(options);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
function createChalk(options) {
|
|
635
|
-
return chalkFactory(options);
|
|
636
|
-
}
|
|
637
|
-
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions = (object, options = {}) => {
|
|
638
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
639
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
640
|
-
}
|
|
641
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
642
|
-
object.level = options.level === undefined ? colorLevel : options.level;
|
|
643
|
-
}, chalkFactory = (options) => {
|
|
644
|
-
const chalk = (...strings) => strings.join(" ");
|
|
645
|
-
applyOptions(chalk, options);
|
|
646
|
-
Object.setPrototypeOf(chalk, createChalk.prototype);
|
|
647
|
-
return chalk;
|
|
648
|
-
}, getModelAnsi = (model, level, type, ...arguments_) => {
|
|
649
|
-
if (model === "rgb") {
|
|
650
|
-
if (level === "ansi16m") {
|
|
651
|
-
return ansi_styles_default[type].ansi16m(...arguments_);
|
|
652
|
-
}
|
|
653
|
-
if (level === "ansi256") {
|
|
654
|
-
return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
|
|
655
|
-
}
|
|
656
|
-
return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
|
|
657
|
-
}
|
|
658
|
-
if (model === "hex") {
|
|
659
|
-
return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
|
|
660
|
-
}
|
|
661
|
-
return ansi_styles_default[type][model](...arguments_);
|
|
662
|
-
}, usedModels, proto, createStyler = (open, close, parent) => {
|
|
663
|
-
let openAll;
|
|
664
|
-
let closeAll;
|
|
665
|
-
if (parent === undefined) {
|
|
666
|
-
openAll = open;
|
|
667
|
-
closeAll = close;
|
|
668
|
-
} else {
|
|
669
|
-
openAll = parent.openAll + open;
|
|
670
|
-
closeAll = close + parent.closeAll;
|
|
671
|
-
}
|
|
672
|
-
return {
|
|
673
|
-
open,
|
|
674
|
-
close,
|
|
675
|
-
openAll,
|
|
676
|
-
closeAll,
|
|
677
|
-
parent
|
|
678
|
-
};
|
|
679
|
-
}, createBuilder = (self, _styler, _isEmpty) => {
|
|
680
|
-
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
681
|
-
Object.setPrototypeOf(builder, proto);
|
|
682
|
-
builder[GENERATOR] = self;
|
|
683
|
-
builder[STYLER] = _styler;
|
|
684
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
685
|
-
return builder;
|
|
686
|
-
}, applyStyle = (self, string) => {
|
|
687
|
-
if (self.level <= 0 || !string) {
|
|
688
|
-
return self[IS_EMPTY] ? "" : string;
|
|
689
|
-
}
|
|
690
|
-
let styler = self[STYLER];
|
|
691
|
-
if (styler === undefined) {
|
|
692
|
-
return string;
|
|
693
|
-
}
|
|
694
|
-
const { openAll, closeAll } = styler;
|
|
695
|
-
if (string.includes("\x1B")) {
|
|
696
|
-
while (styler !== undefined) {
|
|
697
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
698
|
-
styler = styler.parent;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
const lfIndex = string.indexOf(`
|
|
702
|
-
`);
|
|
703
|
-
if (lfIndex !== -1) {
|
|
704
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
705
|
-
}
|
|
706
|
-
return openAll + string + closeAll;
|
|
707
|
-
}, chalk, chalkStderr, source_default;
|
|
708
|
-
var init_source = __esm(() => {
|
|
709
|
-
init_ansi_styles();
|
|
710
|
-
init_supports_color();
|
|
711
|
-
init_utilities();
|
|
712
|
-
({ stdout: stdoutColor, stderr: stderrColor } = supports_color_default);
|
|
713
|
-
GENERATOR = Symbol("GENERATOR");
|
|
714
|
-
STYLER = Symbol("STYLER");
|
|
715
|
-
IS_EMPTY = Symbol("IS_EMPTY");
|
|
716
|
-
levelMapping = [
|
|
717
|
-
"ansi",
|
|
718
|
-
"ansi",
|
|
719
|
-
"ansi256",
|
|
720
|
-
"ansi16m"
|
|
721
|
-
];
|
|
722
|
-
styles2 = Object.create(null);
|
|
723
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
724
|
-
for (const [styleName, style] of Object.entries(ansi_styles_default)) {
|
|
725
|
-
styles2[styleName] = {
|
|
726
|
-
get() {
|
|
727
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
728
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
729
|
-
return builder;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
styles2.visible = {
|
|
734
|
-
get() {
|
|
735
|
-
const builder = createBuilder(this, this[STYLER], true);
|
|
736
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
737
|
-
return builder;
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
usedModels = ["rgb", "hex", "ansi256"];
|
|
741
|
-
for (const model of usedModels) {
|
|
742
|
-
styles2[model] = {
|
|
743
|
-
get() {
|
|
744
|
-
const { level } = this;
|
|
745
|
-
return function(...arguments_) {
|
|
746
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
|
|
747
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
752
|
-
styles2[bgModel] = {
|
|
753
|
-
get() {
|
|
754
|
-
const { level } = this;
|
|
755
|
-
return function(...arguments_) {
|
|
756
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
757
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
758
|
-
};
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
proto = Object.defineProperties(() => {}, {
|
|
763
|
-
...styles2,
|
|
764
|
-
level: {
|
|
765
|
-
enumerable: true,
|
|
766
|
-
get() {
|
|
767
|
-
return this[GENERATOR].level;
|
|
768
|
-
},
|
|
769
|
-
set(level) {
|
|
770
|
-
this[GENERATOR].level = level;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
Object.defineProperties(createChalk.prototype, styles2);
|
|
775
|
-
chalk = createChalk();
|
|
776
|
-
chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
777
|
-
source_default = chalk;
|
|
778
|
-
});
|
|
779
|
-
|
|
780
301
|
// src/utils/sequential.ts
|
|
781
302
|
function sequential(fn) {
|
|
782
303
|
const queue = [];
|
|
@@ -865,11 +386,11 @@ function isPlainObject(value) {
|
|
|
865
386
|
if (!isObjectLike_default(value) || _baseGetTag_default(value) != objectTag) {
|
|
866
387
|
return false;
|
|
867
388
|
}
|
|
868
|
-
var
|
|
869
|
-
if (
|
|
389
|
+
var proto = _getPrototype_default(value);
|
|
390
|
+
if (proto === null) {
|
|
870
391
|
return true;
|
|
871
392
|
}
|
|
872
|
-
var Ctor = hasOwnProperty.call(
|
|
393
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
873
394
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
874
395
|
}
|
|
875
396
|
var objectTag = "[object Object]", funcProto, objectProto, funcToString, hasOwnProperty, objectCtorString, isPlainObject_default;
|
|
@@ -4265,6 +3786,9 @@ var init_lodash = __esm(() => {
|
|
|
4265
3786
|
|
|
4266
3787
|
// src/constants/keys.ts
|
|
4267
3788
|
function getGrowthBookClientKey() {
|
|
3789
|
+
const adapterKey = process.env.CLAUDE_GB_ADAPTER_KEY;
|
|
3790
|
+
if (adapterKey)
|
|
3791
|
+
return adapterKey;
|
|
4268
3792
|
return process.env.USER_TYPE === "ant" ? isEnvTruthy(process.env.ENABLE_GROWTHBOOK_DEV) ? "sdk-yZQvlplybuXjYh6L" : "sdk-xRVcrliHIlrg4og4" : "sdk-zAZezfDKGoZuXXKe";
|
|
4269
3793
|
}
|
|
4270
3794
|
var init_keys = __esm(() => {
|
|
@@ -4369,6 +3893,12 @@ function isAutoMemoryEnabled() {
|
|
|
4369
3893
|
}
|
|
4370
3894
|
return true;
|
|
4371
3895
|
}
|
|
3896
|
+
function isExtractModeActive() {
|
|
3897
|
+
if (!getFeatureValue_CACHED_MAY_BE_STALE("tengu_passport_quail", false)) {
|
|
3898
|
+
return false;
|
|
3899
|
+
}
|
|
3900
|
+
return !getIsNonInteractiveSession() || getFeatureValue_CACHED_MAY_BE_STALE("tengu_slate_thimble", false);
|
|
3901
|
+
}
|
|
4372
3902
|
function getMemoryBaseDir() {
|
|
4373
3903
|
if (process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR) {
|
|
4374
3904
|
return process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR;
|
|
@@ -5096,6 +4626,9 @@ function getAutoUpdaterDisabledReason() {
|
|
|
5096
4626
|
if (true) {
|
|
5097
4627
|
return { type: "development" };
|
|
5098
4628
|
}
|
|
4629
|
+
if (!isEnvTruthy(process.env.ENABLE_AUTOUPDATER)) {
|
|
4630
|
+
return { type: "config" };
|
|
4631
|
+
}
|
|
5099
4632
|
if (isEnvTruthy(process.env.DISABLE_AUTOUPDATER)) {
|
|
5100
4633
|
return { type: "env", envVar: "DISABLE_AUTOUPDATER" };
|
|
5101
4634
|
}
|
|
@@ -5266,7 +4799,7 @@ var init_config = __esm(() => {
|
|
|
5266
4799
|
|
|
5267
4800
|
// src/utils/userAgent.ts
|
|
5268
4801
|
function getClaudeCodeUserAgent() {
|
|
5269
|
-
return `claude-code/${
|
|
4802
|
+
return `claude-code/${"2.1.888"}`;
|
|
5270
4803
|
}
|
|
5271
4804
|
var init_userAgent = () => {};
|
|
5272
4805
|
|
|
@@ -5289,7 +4822,7 @@ function getUserAgent() {
|
|
|
5289
4822
|
const clientApp = process.env.CLAUDE_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}` : "";
|
|
5290
4823
|
const workload = getWorkload();
|
|
5291
4824
|
const workloadSuffix = workload ? `, workload/${workload}` : "";
|
|
5292
|
-
return `claude-cli/${
|
|
4825
|
+
return `claude-cli/${"2.1.888"} (${process.env.USER_TYPE}, ${process.env.CLAUDE_CODE_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix})`;
|
|
5293
4826
|
}
|
|
5294
4827
|
function getMCPUserAgent() {
|
|
5295
4828
|
const parts = [];
|
|
@@ -5303,7 +4836,7 @@ function getMCPUserAgent() {
|
|
|
5303
4836
|
parts.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);
|
|
5304
4837
|
}
|
|
5305
4838
|
const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
|
|
5306
|
-
return `claude-code/${
|
|
4839
|
+
return `claude-code/${"2.1.888"}${suffix}`;
|
|
5307
4840
|
}
|
|
5308
4841
|
function getWebFetchUserAgent() {
|
|
5309
4842
|
return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`;
|
|
@@ -5442,7 +4975,7 @@ var init_user = __esm(() => {
|
|
|
5442
4975
|
deviceId,
|
|
5443
4976
|
sessionId: getSessionId(),
|
|
5444
4977
|
email: getEmail(),
|
|
5445
|
-
appVersion:
|
|
4978
|
+
appVersion: "2.1.888",
|
|
5446
4979
|
platform: getHostPlatformForAnalytics(),
|
|
5447
4980
|
organizationUuid,
|
|
5448
4981
|
accountUuid,
|
|
@@ -5472,9 +5005,11 @@ var init_user = __esm(() => {
|
|
|
5472
5005
|
});
|
|
5473
5006
|
});
|
|
5474
5007
|
|
|
5475
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5476
|
-
var
|
|
5477
|
-
|
|
5008
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.js
|
|
5009
|
+
var require_LogRecord = __commonJS((exports) => {
|
|
5010
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5011
|
+
exports.SeverityNumber = undefined;
|
|
5012
|
+
var SeverityNumber;
|
|
5478
5013
|
(function(SeverityNumber2) {
|
|
5479
5014
|
SeverityNumber2[SeverityNumber2["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
5480
5015
|
SeverityNumber2[SeverityNumber2["TRACE"] = 1] = "TRACE";
|
|
@@ -5501,134 +5036,165 @@ var init_LogRecord = __esm(() => {
|
|
|
5501
5036
|
SeverityNumber2[SeverityNumber2["FATAL2"] = 22] = "FATAL2";
|
|
5502
5037
|
SeverityNumber2[SeverityNumber2["FATAL3"] = 23] = "FATAL3";
|
|
5503
5038
|
SeverityNumber2[SeverityNumber2["FATAL4"] = 24] = "FATAL4";
|
|
5504
|
-
})(SeverityNumber || (SeverityNumber = {}));
|
|
5039
|
+
})(SeverityNumber = exports.SeverityNumber || (exports.SeverityNumber = {}));
|
|
5505
5040
|
});
|
|
5506
5041
|
|
|
5507
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
var NOOP_LOGGER;
|
|
5512
|
-
var init_NoopLogger = __esm(() => {
|
|
5513
|
-
NOOP_LOGGER = new NoopLogger;
|
|
5514
|
-
});
|
|
5042
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/NoopLogger.js
|
|
5043
|
+
var require_NoopLogger = __commonJS((exports) => {
|
|
5044
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5045
|
+
exports.NOOP_LOGGER = exports.NoopLogger = undefined;
|
|
5515
5046
|
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
var init_global_utils = __esm(() => {
|
|
5522
|
-
GLOBAL_LOGS_API_KEY = Symbol.for("io.opentelemetry.js.api.logs");
|
|
5523
|
-
_global = globalThis;
|
|
5047
|
+
class NoopLogger {
|
|
5048
|
+
emit(_logRecord) {}
|
|
5049
|
+
}
|
|
5050
|
+
exports.NoopLogger = NoopLogger;
|
|
5051
|
+
exports.NOOP_LOGGER = new NoopLogger;
|
|
5524
5052
|
});
|
|
5525
5053
|
|
|
5526
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5054
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/internal/global-utils.js
|
|
5055
|
+
var require_global_utils = __commonJS((exports) => {
|
|
5056
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5057
|
+
exports.API_BACKWARDS_COMPATIBILITY_VERSION = exports.makeGetter = exports._global = exports.GLOBAL_LOGS_API_KEY = undefined;
|
|
5058
|
+
exports.GLOBAL_LOGS_API_KEY = Symbol.for("io.opentelemetry.js.api.logs");
|
|
5059
|
+
exports._global = globalThis;
|
|
5060
|
+
function makeGetter(requiredVersion, instance, fallback) {
|
|
5061
|
+
return (version) => version === requiredVersion ? instance : fallback;
|
|
5530
5062
|
}
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
var init_NoopLoggerProvider = __esm(() => {
|
|
5534
|
-
init_NoopLogger();
|
|
5535
|
-
NOOP_LOGGER_PROVIDER = new NoopLoggerProvider;
|
|
5063
|
+
exports.makeGetter = makeGetter;
|
|
5064
|
+
exports.API_BACKWARDS_COMPATIBILITY_VERSION = 1;
|
|
5536
5065
|
});
|
|
5537
5066
|
|
|
5538
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5067
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/NoopLoggerProvider.js
|
|
5068
|
+
var require_NoopLoggerProvider = __commonJS((exports) => {
|
|
5069
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5070
|
+
exports.NOOP_LOGGER_PROVIDER = exports.NoopLoggerProvider = undefined;
|
|
5071
|
+
var NoopLogger_1 = require_NoopLogger();
|
|
5072
|
+
|
|
5073
|
+
class NoopLoggerProvider {
|
|
5074
|
+
getLogger(_name, _version, _options) {
|
|
5075
|
+
return new NoopLogger_1.NoopLogger;
|
|
5076
|
+
}
|
|
5548
5077
|
}
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5078
|
+
exports.NoopLoggerProvider = NoopLoggerProvider;
|
|
5079
|
+
exports.NOOP_LOGGER_PROVIDER = new NoopLoggerProvider;
|
|
5080
|
+
});
|
|
5081
|
+
|
|
5082
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/ProxyLogger.js
|
|
5083
|
+
var require_ProxyLogger = __commonJS((exports) => {
|
|
5084
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5085
|
+
exports.ProxyLogger = undefined;
|
|
5086
|
+
var NoopLogger_1 = require_NoopLogger();
|
|
5087
|
+
|
|
5088
|
+
class ProxyLogger {
|
|
5089
|
+
constructor(provider, name, version, options) {
|
|
5090
|
+
this._provider = provider;
|
|
5091
|
+
this.name = name;
|
|
5092
|
+
this.version = version;
|
|
5093
|
+
this.options = options;
|
|
5552
5094
|
}
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5095
|
+
emit(logRecord) {
|
|
5096
|
+
this._getLogger().emit(logRecord);
|
|
5097
|
+
}
|
|
5098
|
+
_getLogger() {
|
|
5099
|
+
if (this._delegate) {
|
|
5100
|
+
return this._delegate;
|
|
5101
|
+
}
|
|
5102
|
+
const logger = this._provider._getDelegateLogger(this.name, this.version, this.options);
|
|
5103
|
+
if (!logger) {
|
|
5104
|
+
return NoopLogger_1.NOOP_LOGGER;
|
|
5105
|
+
}
|
|
5106
|
+
this._delegate = logger;
|
|
5107
|
+
return this._delegate;
|
|
5556
5108
|
}
|
|
5557
|
-
this._delegate = logger;
|
|
5558
|
-
return this._delegate;
|
|
5559
5109
|
}
|
|
5560
|
-
|
|
5561
|
-
var init_ProxyLogger = __esm(() => {
|
|
5562
|
-
init_NoopLogger();
|
|
5110
|
+
exports.ProxyLogger = ProxyLogger;
|
|
5563
5111
|
});
|
|
5564
5112
|
|
|
5565
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5113
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/ProxyLoggerProvider.js
|
|
5114
|
+
var require_ProxyLoggerProvider = __commonJS((exports) => {
|
|
5115
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5116
|
+
exports.ProxyLoggerProvider = undefined;
|
|
5117
|
+
var NoopLoggerProvider_1 = require_NoopLoggerProvider();
|
|
5118
|
+
var ProxyLogger_1 = require_ProxyLogger();
|
|
5119
|
+
|
|
5120
|
+
class ProxyLoggerProvider {
|
|
5121
|
+
getLogger(name, version, options) {
|
|
5122
|
+
var _a;
|
|
5123
|
+
return (_a = this._getDelegateLogger(name, version, options)) !== null && _a !== undefined ? _a : new ProxyLogger_1.ProxyLogger(this, name, version, options);
|
|
5124
|
+
}
|
|
5125
|
+
_getDelegate() {
|
|
5126
|
+
var _a;
|
|
5127
|
+
return (_a = this._delegate) !== null && _a !== undefined ? _a : NoopLoggerProvider_1.NOOP_LOGGER_PROVIDER;
|
|
5128
|
+
}
|
|
5129
|
+
_setDelegate(delegate) {
|
|
5130
|
+
this._delegate = delegate;
|
|
5131
|
+
}
|
|
5132
|
+
_getDelegateLogger(name, version, options) {
|
|
5133
|
+
var _a;
|
|
5134
|
+
return (_a = this._delegate) === null || _a === undefined ? undefined : _a.getLogger(name, version, options);
|
|
5135
|
+
}
|
|
5581
5136
|
}
|
|
5582
|
-
|
|
5583
|
-
var init_ProxyLoggerProvider = __esm(() => {
|
|
5584
|
-
init_NoopLoggerProvider();
|
|
5585
|
-
init_ProxyLogger();
|
|
5137
|
+
exports.ProxyLoggerProvider = ProxyLoggerProvider;
|
|
5586
5138
|
});
|
|
5587
5139
|
|
|
5588
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5140
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/api/logs.js
|
|
5141
|
+
var require_logs = __commonJS((exports) => {
|
|
5142
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5143
|
+
exports.LogsAPI = undefined;
|
|
5144
|
+
var global_utils_1 = require_global_utils();
|
|
5145
|
+
var NoopLoggerProvider_1 = require_NoopLoggerProvider();
|
|
5146
|
+
var ProxyLoggerProvider_1 = require_ProxyLoggerProvider();
|
|
5147
|
+
|
|
5148
|
+
class LogsAPI {
|
|
5149
|
+
constructor() {
|
|
5150
|
+
this._proxyLoggerProvider = new ProxyLoggerProvider_1.ProxyLoggerProvider;
|
|
5596
5151
|
}
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
return this.
|
|
5152
|
+
static getInstance() {
|
|
5153
|
+
if (!this._instance) {
|
|
5154
|
+
this._instance = new LogsAPI;
|
|
5155
|
+
}
|
|
5156
|
+
return this._instance;
|
|
5157
|
+
}
|
|
5158
|
+
setGlobalLoggerProvider(provider) {
|
|
5159
|
+
if (global_utils_1._global[global_utils_1.GLOBAL_LOGS_API_KEY]) {
|
|
5160
|
+
return this.getLoggerProvider();
|
|
5161
|
+
}
|
|
5162
|
+
global_utils_1._global[global_utils_1.GLOBAL_LOGS_API_KEY] = (0, global_utils_1.makeGetter)(global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION, provider, NoopLoggerProvider_1.NOOP_LOGGER_PROVIDER);
|
|
5163
|
+
this._proxyLoggerProvider._setDelegate(provider);
|
|
5164
|
+
return provider;
|
|
5165
|
+
}
|
|
5166
|
+
getLoggerProvider() {
|
|
5167
|
+
var _a, _b;
|
|
5168
|
+
return (_b = (_a = global_utils_1._global[global_utils_1.GLOBAL_LOGS_API_KEY]) === null || _a === undefined ? undefined : _a.call(global_utils_1._global, global_utils_1.API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== undefined ? _b : this._proxyLoggerProvider;
|
|
5169
|
+
}
|
|
5170
|
+
getLogger(name, version, options) {
|
|
5171
|
+
return this.getLoggerProvider().getLogger(name, version, options);
|
|
5172
|
+
}
|
|
5173
|
+
disable() {
|
|
5174
|
+
delete global_utils_1._global[global_utils_1.GLOBAL_LOGS_API_KEY];
|
|
5175
|
+
this._proxyLoggerProvider = new ProxyLoggerProvider_1.ProxyLoggerProvider;
|
|
5602
5176
|
}
|
|
5603
|
-
_global[GLOBAL_LOGS_API_KEY] = makeGetter(API_BACKWARDS_COMPATIBILITY_VERSION, provider, NOOP_LOGGER_PROVIDER);
|
|
5604
|
-
this._proxyLoggerProvider._setDelegate(provider);
|
|
5605
|
-
return provider;
|
|
5606
|
-
}
|
|
5607
|
-
getLoggerProvider() {
|
|
5608
|
-
var _a, _b;
|
|
5609
|
-
return (_b = (_a = _global[GLOBAL_LOGS_API_KEY]) === null || _a === undefined ? undefined : _a.call(_global, API_BACKWARDS_COMPATIBILITY_VERSION)) !== null && _b !== undefined ? _b : this._proxyLoggerProvider;
|
|
5610
|
-
}
|
|
5611
|
-
getLogger(name, version, options) {
|
|
5612
|
-
return this.getLoggerProvider().getLogger(name, version, options);
|
|
5613
|
-
}
|
|
5614
|
-
disable() {
|
|
5615
|
-
delete _global[GLOBAL_LOGS_API_KEY];
|
|
5616
|
-
this._proxyLoggerProvider = new ProxyLoggerProvider;
|
|
5617
5177
|
}
|
|
5618
|
-
|
|
5619
|
-
var init_logs = __esm(() => {
|
|
5620
|
-
init_global_utils();
|
|
5621
|
-
init_NoopLoggerProvider();
|
|
5622
|
-
init_ProxyLoggerProvider();
|
|
5178
|
+
exports.LogsAPI = LogsAPI;
|
|
5623
5179
|
});
|
|
5624
5180
|
|
|
5625
|
-
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/
|
|
5626
|
-
var
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5181
|
+
// node_modules/.bun/@opentelemetry+api-logs@0.214.0/node_modules/@opentelemetry/api-logs/build/src/index.js
|
|
5182
|
+
var require_src5 = __commonJS((exports) => {
|
|
5183
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5184
|
+
exports.logs = exports.NoopLogger = exports.NOOP_LOGGER = exports.SeverityNumber = undefined;
|
|
5185
|
+
var LogRecord_1 = require_LogRecord();
|
|
5186
|
+
Object.defineProperty(exports, "SeverityNumber", { enumerable: true, get: function() {
|
|
5187
|
+
return LogRecord_1.SeverityNumber;
|
|
5188
|
+
} });
|
|
5189
|
+
var NoopLogger_1 = require_NoopLogger();
|
|
5190
|
+
Object.defineProperty(exports, "NOOP_LOGGER", { enumerable: true, get: function() {
|
|
5191
|
+
return NoopLogger_1.NOOP_LOGGER;
|
|
5192
|
+
} });
|
|
5193
|
+
Object.defineProperty(exports, "NoopLogger", { enumerable: true, get: function() {
|
|
5194
|
+
return NoopLogger_1.NoopLogger;
|
|
5195
|
+
} });
|
|
5196
|
+
var logs_1 = require_logs();
|
|
5197
|
+
exports.logs = logs_1.LogsAPI.getInstance();
|
|
5632
5198
|
});
|
|
5633
5199
|
|
|
5634
5200
|
// node_modules/.bun/@opentelemetry+sdk-logs@0.214.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-logs/build/esm/utils/validation.js
|
|
@@ -5890,8 +5456,8 @@ class Logger {
|
|
|
5890
5456
|
emit(logRecord) {
|
|
5891
5457
|
const loggerConfig = this._loggerConfig;
|
|
5892
5458
|
const currentContext = logRecord.context || import_api.context.active();
|
|
5893
|
-
const recordSeverity = logRecord.severityNumber ?? SeverityNumber.UNSPECIFIED;
|
|
5894
|
-
if (recordSeverity !== SeverityNumber.UNSPECIFIED && recordSeverity < loggerConfig.minimumSeverity) {
|
|
5459
|
+
const recordSeverity = logRecord.severityNumber ?? import_api_logs.SeverityNumber.UNSPECIFIED;
|
|
5460
|
+
if (recordSeverity !== import_api_logs.SeverityNumber.UNSPECIFIED && recordSeverity < loggerConfig.minimumSeverity) {
|
|
5895
5461
|
return;
|
|
5896
5462
|
}
|
|
5897
5463
|
if (loggerConfig.traceBased) {
|
|
@@ -5911,10 +5477,10 @@ class Logger {
|
|
|
5911
5477
|
logRecordInstance._makeReadonly();
|
|
5912
5478
|
}
|
|
5913
5479
|
}
|
|
5914
|
-
var import_api;
|
|
5480
|
+
var import_api_logs, import_api;
|
|
5915
5481
|
var init_Logger = __esm(() => {
|
|
5916
|
-
init_esm2();
|
|
5917
5482
|
init_LogRecordImpl();
|
|
5483
|
+
import_api_logs = __toESM(require_src5(), 1);
|
|
5918
5484
|
import_api = __toESM(require_src(), 1);
|
|
5919
5485
|
});
|
|
5920
5486
|
|
|
@@ -5995,17 +5561,17 @@ class LoggerProviderSharedState {
|
|
|
5995
5561
|
return config;
|
|
5996
5562
|
}
|
|
5997
5563
|
}
|
|
5998
|
-
var DEFAULT_LOGGER_CONFIG, DEFAULT_LOGGER_CONFIGURATOR = () => ({
|
|
5564
|
+
var import_api_logs2, DEFAULT_LOGGER_CONFIG, DEFAULT_LOGGER_CONFIGURATOR = () => ({
|
|
5999
5565
|
...DEFAULT_LOGGER_CONFIG
|
|
6000
5566
|
});
|
|
6001
5567
|
var init_LoggerProviderSharedState = __esm(() => {
|
|
6002
|
-
init_esm2();
|
|
6003
5568
|
init_NoopLogRecordProcessor();
|
|
6004
5569
|
init_MultiLogRecordProcessor();
|
|
6005
5570
|
init_utils();
|
|
5571
|
+
import_api_logs2 = __toESM(require_src5(), 1);
|
|
6006
5572
|
DEFAULT_LOGGER_CONFIG = {
|
|
6007
5573
|
disabled: false,
|
|
6008
|
-
minimumSeverity: SeverityNumber.UNSPECIFIED,
|
|
5574
|
+
minimumSeverity: import_api_logs2.SeverityNumber.UNSPECIFIED,
|
|
6009
5575
|
traceBased: false
|
|
6010
5576
|
};
|
|
6011
5577
|
});
|
|
@@ -6031,7 +5597,7 @@ class LoggerProvider {
|
|
|
6031
5597
|
getLogger(name, version, options) {
|
|
6032
5598
|
if (this._shutdownOnce.isCalled) {
|
|
6033
5599
|
import_api2.diag.warn("A shutdown LoggerProvider cannot provide a Logger");
|
|
6034
|
-
return NOOP_LOGGER;
|
|
5600
|
+
return import_api_logs3.NOOP_LOGGER;
|
|
6035
5601
|
}
|
|
6036
5602
|
if (!name) {
|
|
6037
5603
|
import_api2.diag.warn("Logger requested without instrumentation scope name.");
|
|
@@ -6061,20 +5627,20 @@ class LoggerProvider {
|
|
|
6061
5627
|
return this._sharedState.activeProcessor.shutdown();
|
|
6062
5628
|
}
|
|
6063
5629
|
}
|
|
6064
|
-
var import_api2, import_resources, import_core5, DEFAULT_LOGGER_NAME = "unknown";
|
|
5630
|
+
var import_api2, import_api_logs3, import_resources, import_core5, DEFAULT_LOGGER_NAME = "unknown";
|
|
6065
5631
|
var init_LoggerProvider = __esm(() => {
|
|
6066
|
-
init_esm2();
|
|
6067
5632
|
init_Logger();
|
|
6068
5633
|
init_LoggerProviderSharedState();
|
|
6069
5634
|
import_api2 = __toESM(require_src(), 1);
|
|
5635
|
+
import_api_logs3 = __toESM(require_src5(), 1);
|
|
6070
5636
|
import_resources = __toESM(require_src4(), 1);
|
|
6071
5637
|
import_core5 = __toESM(require_src3(), 1);
|
|
6072
5638
|
});
|
|
6073
5639
|
|
|
6074
5640
|
// node_modules/.bun/@opentelemetry+sdk-logs@0.214.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-logs/build/esm/export/ConsoleLogRecordExporter.js
|
|
6075
5641
|
class ConsoleLogRecordExporter {
|
|
6076
|
-
export(
|
|
6077
|
-
this._sendLogRecords(
|
|
5642
|
+
export(logs, resultCallback) {
|
|
5643
|
+
this._sendLogRecords(logs, resultCallback);
|
|
6078
5644
|
}
|
|
6079
5645
|
shutdown() {
|
|
6080
5646
|
return Promise.resolve();
|
|
@@ -6255,7 +5821,7 @@ var init_platform2 = __esm(() => {
|
|
|
6255
5821
|
});
|
|
6256
5822
|
|
|
6257
5823
|
// node_modules/.bun/@opentelemetry+sdk-logs@0.214.0+e40b0dfdd726a224/node_modules/@opentelemetry/sdk-logs/build/esm/index.js
|
|
6258
|
-
var
|
|
5824
|
+
var init_esm2 = __esm(() => {
|
|
6259
5825
|
init_LoggerProvider();
|
|
6260
5826
|
init_ConsoleLogRecordExporter();
|
|
6261
5827
|
init_platform2();
|
|
@@ -7001,37 +6567,6 @@ var init_growthbook_experiment_event = __esm(() => {
|
|
|
7001
6567
|
};
|
|
7002
6568
|
});
|
|
7003
6569
|
|
|
7004
|
-
// src/utils/sleep.ts
|
|
7005
|
-
function sleep(ms, signal, opts) {
|
|
7006
|
-
return new Promise((resolve2, reject) => {
|
|
7007
|
-
if (signal?.aborted) {
|
|
7008
|
-
if (opts?.throwOnAbort || opts?.abortError) {
|
|
7009
|
-
reject(opts.abortError?.() ?? new Error("aborted"));
|
|
7010
|
-
} else {
|
|
7011
|
-
resolve2();
|
|
7012
|
-
}
|
|
7013
|
-
return;
|
|
7014
|
-
}
|
|
7015
|
-
const timer = setTimeout((signal2, onAbort2, resolve3) => {
|
|
7016
|
-
signal2?.removeEventListener("abort", onAbort2);
|
|
7017
|
-
resolve3();
|
|
7018
|
-
}, ms, signal, onAbort, resolve2);
|
|
7019
|
-
function onAbort() {
|
|
7020
|
-
clearTimeout(timer);
|
|
7021
|
-
if (opts?.throwOnAbort || opts?.abortError) {
|
|
7022
|
-
reject(opts.abortError?.() ?? new Error("aborted"));
|
|
7023
|
-
} else {
|
|
7024
|
-
resolve2();
|
|
7025
|
-
}
|
|
7026
|
-
}
|
|
7027
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
7028
|
-
if (opts?.unref) {
|
|
7029
|
-
timer.unref();
|
|
7030
|
-
}
|
|
7031
|
-
});
|
|
7032
|
-
}
|
|
7033
|
-
var init_sleep = () => {};
|
|
7034
|
-
|
|
7035
6570
|
// src/utils/genericProcessUtils.ts
|
|
7036
6571
|
function isProcessRunning(pid) {
|
|
7037
6572
|
if (pid <= 1)
|
|
@@ -7210,7 +6745,7 @@ var init_envDynamic = __esm(() => {
|
|
|
7210
6745
|
});
|
|
7211
6746
|
|
|
7212
6747
|
// src/constants/betas.ts
|
|
7213
|
-
var CLAUDE_CODE_20250219_BETA_HEADER = "claude-code-20250219", INTERLEAVED_THINKING_BETA_HEADER = "interleaved-thinking-2025-05-14", CONTEXT_1M_BETA_HEADER = "context-1m-2025-08-07", CONTEXT_MANAGEMENT_BETA_HEADER = "context-management-2025-06-27", STRUCTURED_OUTPUTS_BETA_HEADER = "structured-outputs-2025-12-15", WEB_SEARCH_BETA_HEADER = "web-search-2025-03-05", TOOL_SEARCH_BETA_HEADER_1P = "advanced-tool-use-2025-11-20", TOOL_SEARCH_BETA_HEADER_3P = "tool-search-tool-2025-10-19", EFFORT_BETA_HEADER = "effort-2025-11-24", TASK_BUDGETS_BETA_HEADER = "task-budgets-2026-03-13", PROMPT_CACHING_SCOPE_BETA_HEADER = "prompt-caching-scope-2026-01-05", FAST_MODE_BETA_HEADER = "fast-mode-2026-02-01", REDACT_THINKING_BETA_HEADER = "redact-thinking-2026-02-12", TOKEN_EFFICIENT_TOOLS_BETA_HEADER = "token-efficient-tools-2026-03-28",
|
|
6748
|
+
var CLAUDE_CODE_20250219_BETA_HEADER = "claude-code-20250219", INTERLEAVED_THINKING_BETA_HEADER = "interleaved-thinking-2025-05-14", CONTEXT_1M_BETA_HEADER = "context-1m-2025-08-07", CONTEXT_MANAGEMENT_BETA_HEADER = "context-management-2025-06-27", STRUCTURED_OUTPUTS_BETA_HEADER = "structured-outputs-2025-12-15", WEB_SEARCH_BETA_HEADER = "web-search-2025-03-05", TOOL_SEARCH_BETA_HEADER_1P = "advanced-tool-use-2025-11-20", TOOL_SEARCH_BETA_HEADER_3P = "tool-search-tool-2025-10-19", EFFORT_BETA_HEADER = "effort-2025-11-24", TASK_BUDGETS_BETA_HEADER = "task-budgets-2026-03-13", PROMPT_CACHING_SCOPE_BETA_HEADER = "prompt-caching-scope-2026-01-05", FAST_MODE_BETA_HEADER = "fast-mode-2026-02-01", REDACT_THINKING_BETA_HEADER = "redact-thinking-2026-02-12", TOKEN_EFFICIENT_TOOLS_BETA_HEADER = "token-efficient-tools-2026-03-28", AFK_MODE_BETA_HEADER = "", CLI_INTERNAL_BETA_HEADER, ADVISOR_BETA_HEADER = "advisor-tool-2026-03-01", BEDROCK_EXTRA_PARAMS_HEADERS, VERTEX_COUNT_TOKENS_ALLOWED_BETAS;
|
|
7214
6749
|
var init_betas = __esm(() => {
|
|
7215
6750
|
CLI_INTERNAL_BETA_HEADER = process.env.USER_TYPE === "ant" ? "cli-internal-2026-02-09" : "";
|
|
7216
6751
|
BEDROCK_EXTRA_PARAMS_HEADERS = new Set([
|
|
@@ -7225,9 +6760,55 @@ var init_betas = __esm(() => {
|
|
|
7225
6760
|
]);
|
|
7226
6761
|
});
|
|
7227
6762
|
|
|
6763
|
+
// src/utils/model/antModels.ts
|
|
6764
|
+
function getAntModelOverrideConfig() {
|
|
6765
|
+
if (process.env.USER_TYPE !== "ant") {
|
|
6766
|
+
return null;
|
|
6767
|
+
}
|
|
6768
|
+
return getFeatureValue_CACHED_MAY_BE_STALE("tengu_ant_model_override", null);
|
|
6769
|
+
}
|
|
6770
|
+
function getAntModels() {
|
|
6771
|
+
if (process.env.USER_TYPE !== "ant") {
|
|
6772
|
+
return [];
|
|
6773
|
+
}
|
|
6774
|
+
return getAntModelOverrideConfig()?.antModels ?? [];
|
|
6775
|
+
}
|
|
6776
|
+
function resolveAntModel(model) {
|
|
6777
|
+
if (process.env.USER_TYPE !== "ant") {
|
|
6778
|
+
return;
|
|
6779
|
+
}
|
|
6780
|
+
if (model === undefined) {
|
|
6781
|
+
return;
|
|
6782
|
+
}
|
|
6783
|
+
const lower = model.toLowerCase();
|
|
6784
|
+
return getAntModels().find((m) => m.alias === model || lower.includes(m.model.toLowerCase()));
|
|
6785
|
+
}
|
|
6786
|
+
var init_antModels = __esm(() => {
|
|
6787
|
+
init_growthbook();
|
|
6788
|
+
});
|
|
6789
|
+
|
|
7228
6790
|
// src/utils/model/providers.ts
|
|
7229
6791
|
function getAPIProvider() {
|
|
7230
|
-
|
|
6792
|
+
const modelType = getInitialSettings().modelType;
|
|
6793
|
+
if (modelType === "openai")
|
|
6794
|
+
return "openai";
|
|
6795
|
+
if (modelType === "gemini")
|
|
6796
|
+
return "gemini";
|
|
6797
|
+
if (modelType === "grok")
|
|
6798
|
+
return "grok";
|
|
6799
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK))
|
|
6800
|
+
return "bedrock";
|
|
6801
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX))
|
|
6802
|
+
return "vertex";
|
|
6803
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY))
|
|
6804
|
+
return "foundry";
|
|
6805
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_OPENAI))
|
|
6806
|
+
return "openai";
|
|
6807
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_GEMINI))
|
|
6808
|
+
return "gemini";
|
|
6809
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_GROK))
|
|
6810
|
+
return "grok";
|
|
6811
|
+
return "firstParty";
|
|
7231
6812
|
}
|
|
7232
6813
|
function getAPIProviderForStatsig() {
|
|
7233
6814
|
return getAPIProvider();
|
|
@@ -7249,6 +6830,7 @@ function isFirstPartyAnthropicBaseUrl() {
|
|
|
7249
6830
|
}
|
|
7250
6831
|
}
|
|
7251
6832
|
var init_providers = __esm(() => {
|
|
6833
|
+
init_settings2();
|
|
7252
6834
|
init_envUtils();
|
|
7253
6835
|
});
|
|
7254
6836
|
|
|
@@ -7572,77 +7154,88 @@ var init_configs = __esm(() => {
|
|
|
7572
7154
|
bedrock: "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
|
7573
7155
|
vertex: "claude-3-7-sonnet@20250219",
|
|
7574
7156
|
foundry: "claude-3-7-sonnet",
|
|
7575
|
-
openai: "claude-3-7-sonnet-20250219"
|
|
7157
|
+
openai: "claude-3-7-sonnet-20250219",
|
|
7158
|
+
gemini: "claude-3-7-sonnet-20250219"
|
|
7576
7159
|
};
|
|
7577
7160
|
CLAUDE_3_5_V2_SONNET_CONFIG = {
|
|
7578
7161
|
firstParty: "claude-3-5-sonnet-20241022",
|
|
7579
7162
|
bedrock: "anthropic.claude-3-5-sonnet-20241022-v2:0",
|
|
7580
7163
|
vertex: "claude-3-5-sonnet-v2@20241022",
|
|
7581
7164
|
foundry: "claude-3-5-sonnet",
|
|
7582
|
-
openai: "claude-3-5-sonnet-20241022"
|
|
7165
|
+
openai: "claude-3-5-sonnet-20241022",
|
|
7166
|
+
gemini: "claude-3-5-sonnet-20241022"
|
|
7583
7167
|
};
|
|
7584
7168
|
CLAUDE_3_5_HAIKU_CONFIG = {
|
|
7585
7169
|
firstParty: "claude-3-5-haiku-20241022",
|
|
7586
7170
|
bedrock: "us.anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
7587
7171
|
vertex: "claude-3-5-haiku@20241022",
|
|
7588
7172
|
foundry: "claude-3-5-haiku",
|
|
7589
|
-
openai: "claude-3-5-haiku-20241022"
|
|
7173
|
+
openai: "claude-3-5-haiku-20241022",
|
|
7174
|
+
gemini: "claude-3-5-haiku-20241022"
|
|
7590
7175
|
};
|
|
7591
7176
|
CLAUDE_HAIKU_4_5_CONFIG = {
|
|
7592
7177
|
firstParty: "claude-haiku-4-5-20251001",
|
|
7593
7178
|
bedrock: "us.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
7594
7179
|
vertex: "claude-haiku-4-5@20251001",
|
|
7595
7180
|
foundry: "claude-haiku-4-5",
|
|
7596
|
-
openai: "claude-haiku-4-5-20251001"
|
|
7181
|
+
openai: "claude-haiku-4-5-20251001",
|
|
7182
|
+
gemini: "claude-haiku-4-5-20251001"
|
|
7597
7183
|
};
|
|
7598
7184
|
CLAUDE_SONNET_4_CONFIG = {
|
|
7599
7185
|
firstParty: "claude-sonnet-4-20250514",
|
|
7600
7186
|
bedrock: "us.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
7601
7187
|
vertex: "claude-sonnet-4@20250514",
|
|
7602
7188
|
foundry: "claude-sonnet-4",
|
|
7603
|
-
openai: "claude-sonnet-4-20250514"
|
|
7189
|
+
openai: "claude-sonnet-4-20250514",
|
|
7190
|
+
gemini: "claude-sonnet-4-20250514"
|
|
7604
7191
|
};
|
|
7605
7192
|
CLAUDE_SONNET_4_5_CONFIG = {
|
|
7606
7193
|
firstParty: "claude-sonnet-4-5-20250929",
|
|
7607
7194
|
bedrock: "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
7608
7195
|
vertex: "claude-sonnet-4-5@20250929",
|
|
7609
7196
|
foundry: "claude-sonnet-4-5",
|
|
7610
|
-
openai: "claude-sonnet-4-5-20250929"
|
|
7197
|
+
openai: "claude-sonnet-4-5-20250929",
|
|
7198
|
+
gemini: "claude-sonnet-4-5-20250929"
|
|
7611
7199
|
};
|
|
7612
7200
|
CLAUDE_OPUS_4_CONFIG = {
|
|
7613
7201
|
firstParty: "claude-opus-4-20250514",
|
|
7614
7202
|
bedrock: "us.anthropic.claude-opus-4-20250514-v1:0",
|
|
7615
7203
|
vertex: "claude-opus-4@20250514",
|
|
7616
7204
|
foundry: "claude-opus-4",
|
|
7617
|
-
openai: "claude-opus-4-20250514"
|
|
7205
|
+
openai: "claude-opus-4-20250514",
|
|
7206
|
+
gemini: "claude-opus-4-20250514"
|
|
7618
7207
|
};
|
|
7619
7208
|
CLAUDE_OPUS_4_1_CONFIG = {
|
|
7620
7209
|
firstParty: "claude-opus-4-1-20250805",
|
|
7621
7210
|
bedrock: "us.anthropic.claude-opus-4-1-20250805-v1:0",
|
|
7622
7211
|
vertex: "claude-opus-4-1@20250805",
|
|
7623
7212
|
foundry: "claude-opus-4-1",
|
|
7624
|
-
openai: "claude-opus-4-1-20250805"
|
|
7213
|
+
openai: "claude-opus-4-1-20250805",
|
|
7214
|
+
gemini: "claude-opus-4-1-20250805"
|
|
7625
7215
|
};
|
|
7626
7216
|
CLAUDE_OPUS_4_5_CONFIG = {
|
|
7627
7217
|
firstParty: "claude-opus-4-5-20251101",
|
|
7628
7218
|
bedrock: "us.anthropic.claude-opus-4-5-20251101-v1:0",
|
|
7629
7219
|
vertex: "claude-opus-4-5@20251101",
|
|
7630
7220
|
foundry: "claude-opus-4-5",
|
|
7631
|
-
openai: "claude-opus-4-5-20251101"
|
|
7221
|
+
openai: "claude-opus-4-5-20251101",
|
|
7222
|
+
gemini: "claude-opus-4-5-20251101"
|
|
7632
7223
|
};
|
|
7633
7224
|
CLAUDE_OPUS_4_6_CONFIG = {
|
|
7634
7225
|
firstParty: "claude-opus-4-6",
|
|
7635
7226
|
bedrock: "us.anthropic.claude-opus-4-6-v1",
|
|
7636
7227
|
vertex: "claude-opus-4-6",
|
|
7637
7228
|
foundry: "claude-opus-4-6",
|
|
7638
|
-
openai: "claude-opus-4-6"
|
|
7229
|
+
openai: "claude-opus-4-6",
|
|
7230
|
+
gemini: "claude-opus-4-6"
|
|
7639
7231
|
};
|
|
7640
7232
|
CLAUDE_SONNET_4_6_CONFIG = {
|
|
7641
7233
|
firstParty: "claude-sonnet-4-6",
|
|
7642
7234
|
bedrock: "us.anthropic.claude-sonnet-4-6",
|
|
7643
7235
|
vertex: "claude-sonnet-4-6",
|
|
7644
7236
|
foundry: "claude-sonnet-4-6",
|
|
7645
|
-
openai: "claude-sonnet-4-6"
|
|
7237
|
+
openai: "claude-sonnet-4-6",
|
|
7238
|
+
gemini: "claude-sonnet-4-6"
|
|
7646
7239
|
};
|
|
7647
7240
|
ALL_MODEL_CONFIGS = {
|
|
7648
7241
|
haiku35: CLAUDE_3_5_HAIKU_CONFIG,
|
|
@@ -7770,16 +7363,10 @@ var init_modelCost = __esm(() => {
|
|
|
7770
7363
|
});
|
|
7771
7364
|
|
|
7772
7365
|
// src/constants/figures.ts
|
|
7773
|
-
var BLACK_CIRCLE, TEARDROP_ASTERISK = "\u273B", UP_ARROW = "\u2191", DOWN_ARROW = "\u2193", LIGHTNING_BOLT = "\u21AF", EFFORT_LOW = "\u25CB", EFFORT_MEDIUM = "\u25D0", EFFORT_HIGH = "\u25CF", EFFORT_MAX = "\u25C9", PAUSE_ICON = "\u23F8", REFRESH_ARROW = "\u21BB", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", BLOCKQUOTE_BAR = "\u258E",
|
|
7366
|
+
var BLACK_CIRCLE, BULLET_OPERATOR = "\u2219", TEARDROP_ASTERISK = "\u273B", UP_ARROW = "\u2191", DOWN_ARROW = "\u2193", LIGHTNING_BOLT = "\u21AF", EFFORT_LOW = "\u25CB", EFFORT_MEDIUM = "\u25D0", EFFORT_HIGH = "\u25CF", EFFORT_MAX = "\u25C9", PLAY_ICON = "\u25B6", PAUSE_ICON = "\u23F8", REFRESH_ARROW = "\u21BB", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", FLAG_ICON = "\u2691", BLOCKQUOTE_BAR = "\u258E", BRIDGE_READY_INDICATOR = "\xB7\u2714\uFE0E\xB7", BRIDGE_FAILED_INDICATOR = "\xD7";
|
|
7774
7367
|
var init_figures = __esm(() => {
|
|
7775
7368
|
init_env();
|
|
7776
7369
|
BLACK_CIRCLE = env.platform === "darwin" ? "\u23FA" : "\u25CF";
|
|
7777
|
-
BRIDGE_SPINNER_FRAMES = [
|
|
7778
|
-
"\xB7|\xB7",
|
|
7779
|
-
"\xB7/\xB7",
|
|
7780
|
-
"\xB7\u2014\xB7",
|
|
7781
|
-
"\xB7\\\xB7"
|
|
7782
|
-
];
|
|
7783
7370
|
});
|
|
7784
7371
|
|
|
7785
7372
|
// src/utils/model/aliases.ts
|
|
@@ -8012,17 +7599,15 @@ var init_stringUtils = __esm(() => {
|
|
|
8012
7599
|
});
|
|
8013
7600
|
|
|
8014
7601
|
// src/utils/model/model.ts
|
|
8015
|
-
function isOpenAIProvider() {
|
|
8016
|
-
return getAPIProvider() === "openai";
|
|
8017
|
-
}
|
|
8018
|
-
function getDefaultOpenAIMainModel() {
|
|
8019
|
-
return DEFAULT_OPENAI_MAIN_MODEL;
|
|
8020
|
-
}
|
|
8021
|
-
function getDefaultOpenAISmallFastModel() {
|
|
8022
|
-
return DEFAULT_OPENAI_SMALL_FAST_MODEL;
|
|
8023
|
-
}
|
|
8024
7602
|
function getSmallFastModel() {
|
|
8025
|
-
|
|
7603
|
+
const provider = getAPIProvider();
|
|
7604
|
+
if (provider === "openai" && process.env.OPENAI_SMALL_FAST_MODEL) {
|
|
7605
|
+
return process.env.OPENAI_SMALL_FAST_MODEL;
|
|
7606
|
+
}
|
|
7607
|
+
if (provider === "gemini" && process.env.GEMINI_SMALL_FAST_MODEL) {
|
|
7608
|
+
return process.env.GEMINI_SMALL_FAST_MODEL;
|
|
7609
|
+
}
|
|
7610
|
+
return process.env.ANTHROPIC_SMALL_FAST_MODEL || getDefaultHaikuModel();
|
|
8026
7611
|
}
|
|
8027
7612
|
function isNonCustomOpusModel(model) {
|
|
8028
7613
|
return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46;
|
|
@@ -8034,7 +7619,7 @@ function getUserSpecifiedModelSetting() {
|
|
|
8034
7619
|
specifiedModel = modelOverride;
|
|
8035
7620
|
} else {
|
|
8036
7621
|
const settings = getSettings_DEPRECATED() || {};
|
|
8037
|
-
specifiedModel = process.env.
|
|
7622
|
+
specifiedModel = process.env.ANTHROPIC_MODEL || settings.model || undefined;
|
|
8038
7623
|
}
|
|
8039
7624
|
if (specifiedModel && !isModelAllowed(specifiedModel)) {
|
|
8040
7625
|
return;
|
|
@@ -8052,36 +7637,48 @@ function getBestModel() {
|
|
|
8052
7637
|
return getDefaultOpusModel();
|
|
8053
7638
|
}
|
|
8054
7639
|
function getDefaultOpusModel() {
|
|
7640
|
+
const provider = getAPIProvider();
|
|
7641
|
+
if (provider === "openai" && process.env.OPENAI_DEFAULT_OPUS_MODEL) {
|
|
7642
|
+
return process.env.OPENAI_DEFAULT_OPUS_MODEL;
|
|
7643
|
+
}
|
|
7644
|
+
if (provider === "gemini" && process.env.GEMINI_DEFAULT_OPUS_MODEL) {
|
|
7645
|
+
return process.env.GEMINI_DEFAULT_OPUS_MODEL;
|
|
7646
|
+
}
|
|
8055
7647
|
if (process.env.ANTHROPIC_DEFAULT_OPUS_MODEL) {
|
|
8056
7648
|
return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;
|
|
8057
7649
|
}
|
|
8058
|
-
if (
|
|
8059
|
-
return getDefaultOpenAIMainModel();
|
|
8060
|
-
}
|
|
8061
|
-
if (getAPIProvider() !== "firstParty") {
|
|
7650
|
+
if (provider !== "firstParty") {
|
|
8062
7651
|
return getModelStrings2().opus46;
|
|
8063
7652
|
}
|
|
8064
7653
|
return getModelStrings2().opus46;
|
|
8065
7654
|
}
|
|
8066
7655
|
function getDefaultSonnetModel() {
|
|
7656
|
+
const provider = getAPIProvider();
|
|
7657
|
+
if (provider === "openai" && process.env.OPENAI_DEFAULT_SONNET_MODEL) {
|
|
7658
|
+
return process.env.OPENAI_DEFAULT_SONNET_MODEL;
|
|
7659
|
+
}
|
|
7660
|
+
if (provider === "gemini" && process.env.GEMINI_DEFAULT_SONNET_MODEL) {
|
|
7661
|
+
return process.env.GEMINI_DEFAULT_SONNET_MODEL;
|
|
7662
|
+
}
|
|
8067
7663
|
if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
|
|
8068
7664
|
return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;
|
|
8069
7665
|
}
|
|
8070
|
-
if (
|
|
8071
|
-
return getDefaultOpenAIMainModel();
|
|
8072
|
-
}
|
|
8073
|
-
if (getAPIProvider() !== "firstParty") {
|
|
7666
|
+
if (provider !== "firstParty") {
|
|
8074
7667
|
return getModelStrings2().sonnet45;
|
|
8075
7668
|
}
|
|
8076
7669
|
return getModelStrings2().sonnet46;
|
|
8077
7670
|
}
|
|
8078
7671
|
function getDefaultHaikuModel() {
|
|
7672
|
+
const provider = getAPIProvider();
|
|
7673
|
+
if (provider === "openai" && process.env.OPENAI_DEFAULT_HAIKU_MODEL) {
|
|
7674
|
+
return process.env.OPENAI_DEFAULT_HAIKU_MODEL;
|
|
7675
|
+
}
|
|
7676
|
+
if (provider === "gemini" && process.env.GEMINI_DEFAULT_HAIKU_MODEL) {
|
|
7677
|
+
return process.env.GEMINI_DEFAULT_HAIKU_MODEL;
|
|
7678
|
+
}
|
|
8079
7679
|
if (process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL) {
|
|
8080
7680
|
return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;
|
|
8081
7681
|
}
|
|
8082
|
-
if (isOpenAIProvider()) {
|
|
8083
|
-
return getDefaultOpenAISmallFastModel();
|
|
8084
|
-
}
|
|
8085
7682
|
return getModelStrings2().haiku45;
|
|
8086
7683
|
}
|
|
8087
7684
|
function getRuntimeMainLoopModel(params) {
|
|
@@ -8095,9 +7692,6 @@ function getRuntimeMainLoopModel(params) {
|
|
|
8095
7692
|
return mainLoopModel;
|
|
8096
7693
|
}
|
|
8097
7694
|
function getDefaultMainLoopModelSetting() {
|
|
8098
|
-
if (isOpenAIProvider()) {
|
|
8099
|
-
return getDefaultSonnetModel();
|
|
8100
|
-
}
|
|
8101
7695
|
if (process.env.USER_TYPE === "ant") {
|
|
8102
7696
|
return getAntModelOverrideConfig()?.defaultModel ?? getDefaultOpusModel() + "[1m]";
|
|
8103
7697
|
}
|
|
@@ -8382,9 +7976,10 @@ function getMarketingNameForModel(modelId) {
|
|
|
8382
7976
|
function normalizeModelStringForAPI(model) {
|
|
8383
7977
|
return model.replace(/\[(1|2)m\]/gi, "");
|
|
8384
7978
|
}
|
|
8385
|
-
var
|
|
7979
|
+
var LEGACY_OPUS_FIRSTPARTY;
|
|
8386
7980
|
var init_model = __esm(() => {
|
|
8387
7981
|
init_state();
|
|
7982
|
+
init_antModels();
|
|
8388
7983
|
init_auth2();
|
|
8389
7984
|
init_context();
|
|
8390
7985
|
init_envUtils();
|
|
@@ -8404,670 +7999,6 @@ var init_model = __esm(() => {
|
|
|
8404
7999
|
];
|
|
8405
8000
|
});
|
|
8406
8001
|
|
|
8407
|
-
// src/services/api/openaiCompat.ts
|
|
8408
|
-
function isOpenAIProviderEnabled() {
|
|
8409
|
-
return isTruthy(process.env.CLAUDE_CODE_USE_OPENAI) || !!process.env.OPENAI_BASE_URL && !!process.env.OPENAI_API_KEY;
|
|
8410
|
-
}
|
|
8411
|
-
function getOpenAIBaseURL() {
|
|
8412
|
-
return process.env.ANTHROPIC_BASE_URL || process.env.OPENAI_BASE_URL || DEFAULT_OPENAI_BASE_URL;
|
|
8413
|
-
}
|
|
8414
|
-
function getOpenAIAPIKey() {
|
|
8415
|
-
return process.env.ANTHROPIC_AUTH_TOKEN || process.env.ANTHROPIC_API_KEY || process.env.OPENAI_API_KEY;
|
|
8416
|
-
}
|
|
8417
|
-
function buildOpenAIChatRequest(request) {
|
|
8418
|
-
const messages = [];
|
|
8419
|
-
const systemText = normalizeSystemPrompt(request.system);
|
|
8420
|
-
if (systemText) {
|
|
8421
|
-
messages.push({
|
|
8422
|
-
role: "system",
|
|
8423
|
-
content: systemText
|
|
8424
|
-
});
|
|
8425
|
-
}
|
|
8426
|
-
for (const message of request.messages) {
|
|
8427
|
-
if (message.role === "assistant") {
|
|
8428
|
-
messages.push(...mapAssistantMessageToOpenAI(message.content));
|
|
8429
|
-
continue;
|
|
8430
|
-
}
|
|
8431
|
-
messages.push(...mapUserMessageToOpenAI(message.content));
|
|
8432
|
-
}
|
|
8433
|
-
return {
|
|
8434
|
-
model: request.model,
|
|
8435
|
-
messages,
|
|
8436
|
-
...request.max_tokens !== undefined && {
|
|
8437
|
-
max_tokens: request.max_tokens
|
|
8438
|
-
},
|
|
8439
|
-
...request.stop_sequences?.length ? { stop: request.stop_sequences } : {},
|
|
8440
|
-
...request.temperature !== undefined && {
|
|
8441
|
-
temperature: request.temperature
|
|
8442
|
-
},
|
|
8443
|
-
...request.top_p !== undefined && { top_p: request.top_p },
|
|
8444
|
-
...request.tools?.length && {
|
|
8445
|
-
tools: request.tools.map((tool) => ({
|
|
8446
|
-
type: "function",
|
|
8447
|
-
function: {
|
|
8448
|
-
name: tool.name,
|
|
8449
|
-
...tool.description ? { description: tool.description } : {},
|
|
8450
|
-
...tool.input_schema ? { parameters: tool.input_schema } : {}
|
|
8451
|
-
}
|
|
8452
|
-
}))
|
|
8453
|
-
},
|
|
8454
|
-
...request.tool_choice && {
|
|
8455
|
-
tool_choice: mapAnthropicToolChoiceToOpenAI(request.tool_choice)
|
|
8456
|
-
},
|
|
8457
|
-
...request.stream ? {
|
|
8458
|
-
stream: true,
|
|
8459
|
-
stream_options: {
|
|
8460
|
-
include_usage: true
|
|
8461
|
-
}
|
|
8462
|
-
} : {}
|
|
8463
|
-
};
|
|
8464
|
-
}
|
|
8465
|
-
function mapOpenAIResponseToAnthropicMessage(response, requestedModel) {
|
|
8466
|
-
const choice = response.choices?.[0];
|
|
8467
|
-
const message = choice?.message ?? {};
|
|
8468
|
-
const contentBlocks = [];
|
|
8469
|
-
const textContent = normalizeOpenAIContentToText(message.content);
|
|
8470
|
-
if (textContent) {
|
|
8471
|
-
contentBlocks.push({
|
|
8472
|
-
type: "text",
|
|
8473
|
-
text: textContent
|
|
8474
|
-
});
|
|
8475
|
-
}
|
|
8476
|
-
for (const toolCall of message.tool_calls ?? []) {
|
|
8477
|
-
contentBlocks.push({
|
|
8478
|
-
type: "tool_use",
|
|
8479
|
-
id: toolCall.id,
|
|
8480
|
-
name: toolCall.function.name,
|
|
8481
|
-
input: safeJsonParse(toolCall.function.arguments)
|
|
8482
|
-
});
|
|
8483
|
-
}
|
|
8484
|
-
return {
|
|
8485
|
-
id: response.id || `openai-${Date.now()}`,
|
|
8486
|
-
type: "message",
|
|
8487
|
-
role: "assistant",
|
|
8488
|
-
model: requestedModel,
|
|
8489
|
-
content: contentBlocks,
|
|
8490
|
-
stop_reason: mapFinishReason(choice?.finish_reason),
|
|
8491
|
-
stop_sequence: null,
|
|
8492
|
-
usage: {
|
|
8493
|
-
input_tokens: response.usage?.prompt_tokens ?? 0,
|
|
8494
|
-
output_tokens: response.usage?.completion_tokens ?? 0
|
|
8495
|
-
}
|
|
8496
|
-
};
|
|
8497
|
-
}
|
|
8498
|
-
|
|
8499
|
-
class OpenAIStreamTranslator {
|
|
8500
|
-
messageId;
|
|
8501
|
-
requestedModel;
|
|
8502
|
-
blocks = [];
|
|
8503
|
-
toolStates = new Map;
|
|
8504
|
-
activeTextBlock = null;
|
|
8505
|
-
emittedMessageStart = false;
|
|
8506
|
-
latestUsage = {};
|
|
8507
|
-
finishReason = null;
|
|
8508
|
-
constructor(requestedModel, messageId) {
|
|
8509
|
-
this.requestedModel = requestedModel;
|
|
8510
|
-
this.messageId = messageId || `openai-stream-${Date.now()}`;
|
|
8511
|
-
}
|
|
8512
|
-
pushChunk(chunk) {
|
|
8513
|
-
const events = [];
|
|
8514
|
-
if (!this.emittedMessageStart) {
|
|
8515
|
-
events.push(this.createMessageStartEvent(chunk.id));
|
|
8516
|
-
this.emittedMessageStart = true;
|
|
8517
|
-
}
|
|
8518
|
-
const choice = chunk.choices?.[0];
|
|
8519
|
-
const delta = choice?.delta;
|
|
8520
|
-
if (chunk.usage) {
|
|
8521
|
-
this.latestUsage = chunk.usage;
|
|
8522
|
-
}
|
|
8523
|
-
if (delta?.content) {
|
|
8524
|
-
const block = this.ensureTextBlock(events);
|
|
8525
|
-
events.push({
|
|
8526
|
-
type: "content_block_delta",
|
|
8527
|
-
index: block.index,
|
|
8528
|
-
delta: {
|
|
8529
|
-
type: "text_delta",
|
|
8530
|
-
text: delta.content
|
|
8531
|
-
}
|
|
8532
|
-
});
|
|
8533
|
-
}
|
|
8534
|
-
for (const toolCall of delta?.tool_calls ?? []) {
|
|
8535
|
-
const toolState = this.ensureToolState(toolCall, events);
|
|
8536
|
-
const partialArguments = toolCall.function?.arguments ?? "";
|
|
8537
|
-
if (partialArguments) {
|
|
8538
|
-
toolState.jsonBuffer += partialArguments;
|
|
8539
|
-
events.push({
|
|
8540
|
-
type: "content_block_delta",
|
|
8541
|
-
index: toolState.block.index,
|
|
8542
|
-
delta: {
|
|
8543
|
-
type: "input_json_delta",
|
|
8544
|
-
partial_json: partialArguments
|
|
8545
|
-
}
|
|
8546
|
-
});
|
|
8547
|
-
}
|
|
8548
|
-
}
|
|
8549
|
-
if (choice?.finish_reason) {
|
|
8550
|
-
this.finishReason = choice.finish_reason;
|
|
8551
|
-
}
|
|
8552
|
-
return events;
|
|
8553
|
-
}
|
|
8554
|
-
finish(usageOverride) {
|
|
8555
|
-
const events = [];
|
|
8556
|
-
const usage = usageOverride || this.latestUsage;
|
|
8557
|
-
for (const block of this.blocks) {
|
|
8558
|
-
if (!block.closed) {
|
|
8559
|
-
events.push({
|
|
8560
|
-
type: "content_block_stop",
|
|
8561
|
-
index: block.index
|
|
8562
|
-
});
|
|
8563
|
-
block.closed = true;
|
|
8564
|
-
}
|
|
8565
|
-
}
|
|
8566
|
-
events.push({
|
|
8567
|
-
type: "message_delta",
|
|
8568
|
-
delta: {
|
|
8569
|
-
stop_reason: mapFinishReason(this.finishReason),
|
|
8570
|
-
stop_sequence: null
|
|
8571
|
-
},
|
|
8572
|
-
usage: {
|
|
8573
|
-
...usage.prompt_tokens !== undefined && {
|
|
8574
|
-
input_tokens: usage.prompt_tokens
|
|
8575
|
-
},
|
|
8576
|
-
output_tokens: usage.completion_tokens ?? 0
|
|
8577
|
-
}
|
|
8578
|
-
});
|
|
8579
|
-
events.push({
|
|
8580
|
-
type: "message_stop"
|
|
8581
|
-
});
|
|
8582
|
-
return events;
|
|
8583
|
-
}
|
|
8584
|
-
createMessageStartEvent(messageId) {
|
|
8585
|
-
return {
|
|
8586
|
-
type: "message_start",
|
|
8587
|
-
message: {
|
|
8588
|
-
id: messageId || this.messageId,
|
|
8589
|
-
type: "message",
|
|
8590
|
-
role: "assistant",
|
|
8591
|
-
model: this.requestedModel,
|
|
8592
|
-
content: [],
|
|
8593
|
-
stop_reason: null,
|
|
8594
|
-
stop_sequence: null,
|
|
8595
|
-
usage: {
|
|
8596
|
-
input_tokens: 0,
|
|
8597
|
-
output_tokens: 0
|
|
8598
|
-
}
|
|
8599
|
-
}
|
|
8600
|
-
};
|
|
8601
|
-
}
|
|
8602
|
-
ensureTextBlock(events) {
|
|
8603
|
-
if (this.activeTextBlock && !this.activeTextBlock.closed) {
|
|
8604
|
-
return this.activeTextBlock;
|
|
8605
|
-
}
|
|
8606
|
-
const block = {
|
|
8607
|
-
index: this.blocks.length,
|
|
8608
|
-
kind: "text",
|
|
8609
|
-
closed: false
|
|
8610
|
-
};
|
|
8611
|
-
this.blocks.push(block);
|
|
8612
|
-
this.activeTextBlock = block;
|
|
8613
|
-
events.push({
|
|
8614
|
-
type: "content_block_start",
|
|
8615
|
-
index: block.index,
|
|
8616
|
-
content_block: {
|
|
8617
|
-
type: "text",
|
|
8618
|
-
text: ""
|
|
8619
|
-
}
|
|
8620
|
-
});
|
|
8621
|
-
return block;
|
|
8622
|
-
}
|
|
8623
|
-
ensureToolState(toolCall, events) {
|
|
8624
|
-
const toolIndex = toolCall.index ?? 0;
|
|
8625
|
-
const existing = this.toolStates.get(toolIndex);
|
|
8626
|
-
if (existing) {
|
|
8627
|
-
if (toolCall.id)
|
|
8628
|
-
existing.id = toolCall.id;
|
|
8629
|
-
if (toolCall.function?.name)
|
|
8630
|
-
existing.name = toolCall.function.name;
|
|
8631
|
-
return existing;
|
|
8632
|
-
}
|
|
8633
|
-
const block = {
|
|
8634
|
-
index: this.blocks.length,
|
|
8635
|
-
kind: "tool_use",
|
|
8636
|
-
closed: false
|
|
8637
|
-
};
|
|
8638
|
-
const state = {
|
|
8639
|
-
block,
|
|
8640
|
-
id: toolCall.id || `tool-call-${toolIndex}`,
|
|
8641
|
-
index: toolIndex,
|
|
8642
|
-
jsonBuffer: "",
|
|
8643
|
-
name: toolCall.function?.name || "unknown"
|
|
8644
|
-
};
|
|
8645
|
-
this.blocks.push(block);
|
|
8646
|
-
this.toolStates.set(toolIndex, state);
|
|
8647
|
-
this.activeTextBlock = null;
|
|
8648
|
-
events.push({
|
|
8649
|
-
type: "content_block_start",
|
|
8650
|
-
index: block.index,
|
|
8651
|
-
content_block: {
|
|
8652
|
-
type: "tool_use",
|
|
8653
|
-
id: state.id,
|
|
8654
|
-
name: state.name,
|
|
8655
|
-
input: {}
|
|
8656
|
-
}
|
|
8657
|
-
});
|
|
8658
|
-
return state;
|
|
8659
|
-
}
|
|
8660
|
-
}
|
|
8661
|
-
function createOpenAICompatibleFetch(fetchOverride) {
|
|
8662
|
-
return async (input, init) => {
|
|
8663
|
-
const url = input instanceof Request ? input.url : String(input);
|
|
8664
|
-
const pathname = safeGetPathname(url);
|
|
8665
|
-
if (pathname !== "/v1/messages" && pathname !== "/v1/messages/count_tokens") {
|
|
8666
|
-
const innerFetch = fetchOverride ?? globalThis.fetch;
|
|
8667
|
-
return innerFetch(input, init);
|
|
8668
|
-
}
|
|
8669
|
-
const request = await parseAnthropicRequestBody(input, init);
|
|
8670
|
-
if (pathname === "/v1/messages/count_tokens") {
|
|
8671
|
-
return createJsonResponse({
|
|
8672
|
-
input_tokens: estimateInputTokens(request)
|
|
8673
|
-
});
|
|
8674
|
-
}
|
|
8675
|
-
const openAIRequest = buildOpenAIChatRequest(request);
|
|
8676
|
-
const response = await dispatchOpenAIRequest(openAIRequest, init, fetchOverride);
|
|
8677
|
-
if (!response.ok) {
|
|
8678
|
-
return rewriteOpenAIErrorResponse(response);
|
|
8679
|
-
}
|
|
8680
|
-
if (openAIRequest.stream) {
|
|
8681
|
-
return transformOpenAIStreamResponse(response, request.model);
|
|
8682
|
-
}
|
|
8683
|
-
const payload = await response.json();
|
|
8684
|
-
return createJsonResponse(mapOpenAIResponseToAnthropicMessage(payload, request.model), response);
|
|
8685
|
-
};
|
|
8686
|
-
}
|
|
8687
|
-
async function dispatchOpenAIRequest(request, init, fetchOverride) {
|
|
8688
|
-
const fetchImpl = fetchOverride ?? globalThis.fetch;
|
|
8689
|
-
const headers = new Headers(init?.headers);
|
|
8690
|
-
const apiKey = getOpenAIAPIKey();
|
|
8691
|
-
headers.set("Content-Type", "application/json");
|
|
8692
|
-
headers.delete("anthropic-version");
|
|
8693
|
-
headers.delete("anthropic-beta");
|
|
8694
|
-
headers.delete("x-api-key");
|
|
8695
|
-
if (apiKey && !headers.has("Authorization")) {
|
|
8696
|
-
headers.set("Authorization", `Bearer ${apiKey}`);
|
|
8697
|
-
}
|
|
8698
|
-
const targetUrl = buildOpenAIChatCompletionsURL(getOpenAIBaseURL());
|
|
8699
|
-
logForDebugging(`[OpenAI compat] dispatch ${targetUrl} auth=${headers.has("Authorization")} keySource=${apiKey ? "present" : "missing"}`);
|
|
8700
|
-
return fetchImpl(targetUrl, {
|
|
8701
|
-
...init,
|
|
8702
|
-
method: "POST",
|
|
8703
|
-
headers,
|
|
8704
|
-
body: JSON.stringify(request)
|
|
8705
|
-
});
|
|
8706
|
-
}
|
|
8707
|
-
async function rewriteOpenAIErrorResponse(response) {
|
|
8708
|
-
let message = response.statusText || "OpenAI-compatible request failed";
|
|
8709
|
-
let type = "invalid_request_error";
|
|
8710
|
-
try {
|
|
8711
|
-
const payload = await response.json();
|
|
8712
|
-
const error = payload.error;
|
|
8713
|
-
if (error?.message) {
|
|
8714
|
-
message = error.message;
|
|
8715
|
-
}
|
|
8716
|
-
if (error?.type) {
|
|
8717
|
-
type = error.type;
|
|
8718
|
-
}
|
|
8719
|
-
} catch {}
|
|
8720
|
-
return new Response(JSON.stringify({
|
|
8721
|
-
type: "error",
|
|
8722
|
-
error: {
|
|
8723
|
-
type,
|
|
8724
|
-
message
|
|
8725
|
-
}
|
|
8726
|
-
}), {
|
|
8727
|
-
status: response.status,
|
|
8728
|
-
headers: cloneResponseHeaders(response, "application/json")
|
|
8729
|
-
});
|
|
8730
|
-
}
|
|
8731
|
-
async function transformOpenAIStreamResponse(response, requestedModel) {
|
|
8732
|
-
const translator = new OpenAIStreamTranslator(requestedModel);
|
|
8733
|
-
const encoder = new TextEncoder;
|
|
8734
|
-
const stream = new ReadableStream({
|
|
8735
|
-
async start(controller) {
|
|
8736
|
-
try {
|
|
8737
|
-
for await (const payload of iterateOpenAIStreamPayloads(response.body)) {
|
|
8738
|
-
for (const event of translator.pushChunk(payload)) {
|
|
8739
|
-
controller.enqueue(encoder.encode(toAnthropicSSE(event)));
|
|
8740
|
-
}
|
|
8741
|
-
}
|
|
8742
|
-
for (const event of translator.finish()) {
|
|
8743
|
-
controller.enqueue(encoder.encode(toAnthropicSSE(event)));
|
|
8744
|
-
}
|
|
8745
|
-
controller.close();
|
|
8746
|
-
} catch (error) {
|
|
8747
|
-
controller.error(error);
|
|
8748
|
-
}
|
|
8749
|
-
}
|
|
8750
|
-
});
|
|
8751
|
-
return new Response(stream, {
|
|
8752
|
-
status: response.status,
|
|
8753
|
-
headers: cloneResponseHeaders(response, "text/event-stream")
|
|
8754
|
-
});
|
|
8755
|
-
}
|
|
8756
|
-
async function parseAnthropicRequestBody(input, init) {
|
|
8757
|
-
const rawBody = typeof init?.body === "string" ? init.body : input instanceof Request ? await input.clone().text() : "";
|
|
8758
|
-
return JSON.parse(rawBody);
|
|
8759
|
-
}
|
|
8760
|
-
async function* iterateOpenAIStreamPayloads(body) {
|
|
8761
|
-
if (!body) {
|
|
8762
|
-
return;
|
|
8763
|
-
}
|
|
8764
|
-
const reader = body.getReader();
|
|
8765
|
-
const decoder = new TextDecoder;
|
|
8766
|
-
let buffer = "";
|
|
8767
|
-
while (true) {
|
|
8768
|
-
const { done, value } = await reader.read();
|
|
8769
|
-
if (done) {
|
|
8770
|
-
break;
|
|
8771
|
-
}
|
|
8772
|
-
buffer += decoder.decode(value, { stream: true });
|
|
8773
|
-
while (true) {
|
|
8774
|
-
const boundaryIndex = buffer.indexOf(`
|
|
8775
|
-
|
|
8776
|
-
`);
|
|
8777
|
-
if (boundaryIndex === -1) {
|
|
8778
|
-
break;
|
|
8779
|
-
}
|
|
8780
|
-
const rawEvent = buffer.slice(0, boundaryIndex);
|
|
8781
|
-
buffer = buffer.slice(boundaryIndex + 2);
|
|
8782
|
-
const payload = parseOpenAISSEEvent(rawEvent);
|
|
8783
|
-
if (payload === "[DONE]") {
|
|
8784
|
-
return;
|
|
8785
|
-
}
|
|
8786
|
-
if (payload) {
|
|
8787
|
-
yield JSON.parse(payload);
|
|
8788
|
-
}
|
|
8789
|
-
}
|
|
8790
|
-
}
|
|
8791
|
-
const trailingPayload = parseOpenAISSEEvent(buffer);
|
|
8792
|
-
if (trailingPayload && trailingPayload !== "[DONE]") {
|
|
8793
|
-
yield JSON.parse(trailingPayload);
|
|
8794
|
-
}
|
|
8795
|
-
}
|
|
8796
|
-
function parseOpenAISSEEvent(rawEvent) {
|
|
8797
|
-
const dataLines = rawEvent.split(/\r?\n/).filter((line) => line.startsWith("data:")).map((line) => line.slice(5).trim());
|
|
8798
|
-
if (dataLines.length === 0) {
|
|
8799
|
-
return null;
|
|
8800
|
-
}
|
|
8801
|
-
return dataLines.join(`
|
|
8802
|
-
`);
|
|
8803
|
-
}
|
|
8804
|
-
function toAnthropicSSE(event) {
|
|
8805
|
-
return `event: ${event.type}
|
|
8806
|
-
data: ${JSON.stringify(event)}
|
|
8807
|
-
|
|
8808
|
-
`;
|
|
8809
|
-
}
|
|
8810
|
-
function normalizeSystemPrompt(system) {
|
|
8811
|
-
if (!system) {
|
|
8812
|
-
return "";
|
|
8813
|
-
}
|
|
8814
|
-
if (typeof system === "string") {
|
|
8815
|
-
return system;
|
|
8816
|
-
}
|
|
8817
|
-
return system.map((block) => {
|
|
8818
|
-
if (block.type === "text" && typeof block.text === "string") {
|
|
8819
|
-
return block.text;
|
|
8820
|
-
}
|
|
8821
|
-
return "";
|
|
8822
|
-
}).filter(Boolean).join(`
|
|
8823
|
-
|
|
8824
|
-
`);
|
|
8825
|
-
}
|
|
8826
|
-
function mapAssistantMessageToOpenAI(content) {
|
|
8827
|
-
if (typeof content === "string") {
|
|
8828
|
-
return [
|
|
8829
|
-
{
|
|
8830
|
-
role: "assistant",
|
|
8831
|
-
content
|
|
8832
|
-
}
|
|
8833
|
-
];
|
|
8834
|
-
}
|
|
8835
|
-
const textParts = [];
|
|
8836
|
-
const toolCalls = [];
|
|
8837
|
-
for (const block of content) {
|
|
8838
|
-
if (block.type === "text" && typeof block.text === "string") {
|
|
8839
|
-
textParts.push(block.text);
|
|
8840
|
-
continue;
|
|
8841
|
-
}
|
|
8842
|
-
if (block.type === "tool_use") {
|
|
8843
|
-
toolCalls.push({
|
|
8844
|
-
id: String(block.id),
|
|
8845
|
-
type: "function",
|
|
8846
|
-
function: {
|
|
8847
|
-
name: String(block.name),
|
|
8848
|
-
arguments: JSON.stringify(block.input ?? {})
|
|
8849
|
-
}
|
|
8850
|
-
});
|
|
8851
|
-
continue;
|
|
8852
|
-
}
|
|
8853
|
-
}
|
|
8854
|
-
return [
|
|
8855
|
-
{
|
|
8856
|
-
role: "assistant",
|
|
8857
|
-
...textParts.length ? { content: textParts.join(`
|
|
8858
|
-
`) } : { content: "" },
|
|
8859
|
-
...toolCalls.length ? { tool_calls: toolCalls } : {}
|
|
8860
|
-
}
|
|
8861
|
-
];
|
|
8862
|
-
}
|
|
8863
|
-
function mapUserMessageToOpenAI(content) {
|
|
8864
|
-
if (typeof content === "string") {
|
|
8865
|
-
return [
|
|
8866
|
-
{
|
|
8867
|
-
role: "user",
|
|
8868
|
-
content
|
|
8869
|
-
}
|
|
8870
|
-
];
|
|
8871
|
-
}
|
|
8872
|
-
const output = [];
|
|
8873
|
-
let bufferedUserContent = [];
|
|
8874
|
-
const flushUserText = () => {
|
|
8875
|
-
if (bufferedUserContent.length === 0) {
|
|
8876
|
-
return;
|
|
8877
|
-
}
|
|
8878
|
-
output.push({
|
|
8879
|
-
role: "user",
|
|
8880
|
-
content: normalizeUserContentForOpenAI(bufferedUserContent)
|
|
8881
|
-
});
|
|
8882
|
-
bufferedUserContent = [];
|
|
8883
|
-
};
|
|
8884
|
-
for (const block of content) {
|
|
8885
|
-
if (block.type === "tool_result") {
|
|
8886
|
-
flushUserText();
|
|
8887
|
-
output.push({
|
|
8888
|
-
role: "tool",
|
|
8889
|
-
tool_call_id: String(block.tool_use_id),
|
|
8890
|
-
content: normalizeToolResultContent(block.content)
|
|
8891
|
-
});
|
|
8892
|
-
continue;
|
|
8893
|
-
}
|
|
8894
|
-
bufferedUserContent.push(...normalizeBlockToOpenAIUserContent(block));
|
|
8895
|
-
}
|
|
8896
|
-
flushUserText();
|
|
8897
|
-
return output;
|
|
8898
|
-
}
|
|
8899
|
-
function normalizeBlockToOpenAIUserContent(block) {
|
|
8900
|
-
if (block.type === "text" && typeof block.text === "string") {
|
|
8901
|
-
return [
|
|
8902
|
-
{
|
|
8903
|
-
type: "text",
|
|
8904
|
-
text: block.text
|
|
8905
|
-
}
|
|
8906
|
-
];
|
|
8907
|
-
}
|
|
8908
|
-
if (block.type === "image") {
|
|
8909
|
-
const imageUrl = normalizeImageSourceToOpenAIUrl(block.source);
|
|
8910
|
-
if (imageUrl) {
|
|
8911
|
-
return [
|
|
8912
|
-
{
|
|
8913
|
-
type: "image_url",
|
|
8914
|
-
image_url: {
|
|
8915
|
-
url: imageUrl
|
|
8916
|
-
}
|
|
8917
|
-
}
|
|
8918
|
-
];
|
|
8919
|
-
}
|
|
8920
|
-
return [
|
|
8921
|
-
{
|
|
8922
|
-
type: "text",
|
|
8923
|
-
text: "[image omitted by OpenAI compatibility adapter]"
|
|
8924
|
-
}
|
|
8925
|
-
];
|
|
8926
|
-
}
|
|
8927
|
-
return [
|
|
8928
|
-
{
|
|
8929
|
-
type: "text",
|
|
8930
|
-
text: JSON.stringify(block)
|
|
8931
|
-
}
|
|
8932
|
-
];
|
|
8933
|
-
}
|
|
8934
|
-
function normalizeImageSourceToOpenAIUrl(source) {
|
|
8935
|
-
if (!source || typeof source !== "object") {
|
|
8936
|
-
return null;
|
|
8937
|
-
}
|
|
8938
|
-
if ("type" in source && source.type === "base64" && "media_type" in source && typeof source.media_type === "string" && "data" in source && typeof source.data === "string") {
|
|
8939
|
-
return `data:${source.media_type};base64,${source.data}`;
|
|
8940
|
-
}
|
|
8941
|
-
if ("type" in source && source.type === "url" && "url" in source && typeof source.url === "string") {
|
|
8942
|
-
return source.url;
|
|
8943
|
-
}
|
|
8944
|
-
return null;
|
|
8945
|
-
}
|
|
8946
|
-
function normalizeUserContentForOpenAI(content) {
|
|
8947
|
-
if (content.every((part) => part.type === "text")) {
|
|
8948
|
-
return content.map((part) => part.text).join(`
|
|
8949
|
-
`);
|
|
8950
|
-
}
|
|
8951
|
-
return content;
|
|
8952
|
-
}
|
|
8953
|
-
function mapAnthropicToolChoiceToOpenAI(toolChoice) {
|
|
8954
|
-
switch (toolChoice.type) {
|
|
8955
|
-
case "auto":
|
|
8956
|
-
return "auto";
|
|
8957
|
-
case "none":
|
|
8958
|
-
return "none";
|
|
8959
|
-
case "any":
|
|
8960
|
-
return "required";
|
|
8961
|
-
case "tool":
|
|
8962
|
-
return {
|
|
8963
|
-
type: "function",
|
|
8964
|
-
function: {
|
|
8965
|
-
name: toolChoice.name
|
|
8966
|
-
}
|
|
8967
|
-
};
|
|
8968
|
-
}
|
|
8969
|
-
}
|
|
8970
|
-
function normalizeToolResultContent(content) {
|
|
8971
|
-
if (typeof content === "string") {
|
|
8972
|
-
return content;
|
|
8973
|
-
}
|
|
8974
|
-
if (Array.isArray(content)) {
|
|
8975
|
-
return content.map((item) => {
|
|
8976
|
-
if (typeof item === "string") {
|
|
8977
|
-
return item;
|
|
8978
|
-
}
|
|
8979
|
-
if (typeof item === "object" && item !== null && "type" in item && item.type === "text" && typeof item.text === "string") {
|
|
8980
|
-
return item.text;
|
|
8981
|
-
}
|
|
8982
|
-
return JSON.stringify(item);
|
|
8983
|
-
}).join(`
|
|
8984
|
-
`);
|
|
8985
|
-
}
|
|
8986
|
-
return JSON.stringify(content);
|
|
8987
|
-
}
|
|
8988
|
-
function normalizeOpenAIContentToText(content) {
|
|
8989
|
-
if (!content) {
|
|
8990
|
-
return "";
|
|
8991
|
-
}
|
|
8992
|
-
if (typeof content === "string") {
|
|
8993
|
-
return content;
|
|
8994
|
-
}
|
|
8995
|
-
return content.map((part) => {
|
|
8996
|
-
if (typeof part.text === "string") {
|
|
8997
|
-
return part.text;
|
|
8998
|
-
}
|
|
8999
|
-
return "";
|
|
9000
|
-
}).filter(Boolean).join(`
|
|
9001
|
-
`);
|
|
9002
|
-
}
|
|
9003
|
-
function mapFinishReason(reason) {
|
|
9004
|
-
switch (reason) {
|
|
9005
|
-
case "length":
|
|
9006
|
-
return "max_tokens";
|
|
9007
|
-
case "tool_calls":
|
|
9008
|
-
return "tool_use";
|
|
9009
|
-
case "stop":
|
|
9010
|
-
case "content_filter":
|
|
9011
|
-
return "end_turn";
|
|
9012
|
-
default:
|
|
9013
|
-
return "end_turn";
|
|
9014
|
-
}
|
|
9015
|
-
}
|
|
9016
|
-
function safeJsonParse(raw) {
|
|
9017
|
-
try {
|
|
9018
|
-
return JSON.parse(raw);
|
|
9019
|
-
} catch {
|
|
9020
|
-
return raw ? { raw } : {};
|
|
9021
|
-
}
|
|
9022
|
-
}
|
|
9023
|
-
function estimateInputTokens(request) {
|
|
9024
|
-
return Math.max(1, Math.round(JSON.stringify(request).length / 4));
|
|
9025
|
-
}
|
|
9026
|
-
function createJsonResponse(payload, sourceResponse) {
|
|
9027
|
-
return new Response(JSON.stringify(payload), {
|
|
9028
|
-
status: sourceResponse?.status ?? 200,
|
|
9029
|
-
headers: cloneResponseHeaders(sourceResponse, "application/json")
|
|
9030
|
-
});
|
|
9031
|
-
}
|
|
9032
|
-
function cloneResponseHeaders(response, contentType) {
|
|
9033
|
-
const headers = new Headers(response?.headers);
|
|
9034
|
-
headers.set("content-type", contentType);
|
|
9035
|
-
return headers;
|
|
9036
|
-
}
|
|
9037
|
-
function buildOpenAIChatCompletionsURL(baseUrl) {
|
|
9038
|
-
const url = new URL(baseUrl);
|
|
9039
|
-
let pathname = url.pathname.replace(/\/+$/, "");
|
|
9040
|
-
if (!pathname) {
|
|
9041
|
-
pathname = "/v1";
|
|
9042
|
-
}
|
|
9043
|
-
if (pathname.endsWith("/chat/completions")) {
|
|
9044
|
-
url.pathname = pathname;
|
|
9045
|
-
return url.toString();
|
|
9046
|
-
}
|
|
9047
|
-
if (!pathname.endsWith("/v1")) {
|
|
9048
|
-
pathname = `${pathname}/v1`;
|
|
9049
|
-
}
|
|
9050
|
-
url.pathname = `${pathname}/chat/completions`;
|
|
9051
|
-
return url.toString();
|
|
9052
|
-
}
|
|
9053
|
-
function safeGetPathname(url) {
|
|
9054
|
-
try {
|
|
9055
|
-
return new URL(url).pathname;
|
|
9056
|
-
} catch {
|
|
9057
|
-
return url;
|
|
9058
|
-
}
|
|
9059
|
-
}
|
|
9060
|
-
function isTruthy(value) {
|
|
9061
|
-
if (!value) {
|
|
9062
|
-
return false;
|
|
9063
|
-
}
|
|
9064
|
-
return ["1", "true", "yes", "on"].includes(value.toLowerCase().trim());
|
|
9065
|
-
}
|
|
9066
|
-
var DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
|
|
9067
|
-
var init_openaiCompat = __esm(() => {
|
|
9068
|
-
init_debug();
|
|
9069
|
-
});
|
|
9070
|
-
|
|
9071
8002
|
// src/services/api/client.ts
|
|
9072
8003
|
import { randomUUID } from "crypto";
|
|
9073
8004
|
function createStderrLogger() {
|
|
@@ -9106,11 +8037,10 @@ async function getAnthropicClient({
|
|
|
9106
8037
|
logForDebugging("[API:auth] OAuth token check starting");
|
|
9107
8038
|
await checkAndRefreshOAuthTokenIfNeeded();
|
|
9108
8039
|
logForDebugging("[API:auth] OAuth token check complete");
|
|
9109
|
-
if (!isClaudeAISubscriber()
|
|
8040
|
+
if (!isClaudeAISubscriber()) {
|
|
9110
8041
|
await configureApiKeyHeaders(defaultHeaders, getIsNonInteractiveSession());
|
|
9111
8042
|
}
|
|
9112
|
-
const
|
|
9113
|
-
const resolvedFetch = isOpenAIProviderEnabled() ? createOpenAICompatibleFetch(baseFetch) : baseFetch;
|
|
8043
|
+
const resolvedFetch = buildFetch(fetchOverride, source);
|
|
9114
8044
|
const ARGS = {
|
|
9115
8045
|
defaultHeaders,
|
|
9116
8046
|
maxRetries,
|
|
@@ -9124,7 +8054,7 @@ async function getAnthropicClient({
|
|
|
9124
8054
|
}
|
|
9125
8055
|
};
|
|
9126
8056
|
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)) {
|
|
9127
|
-
const { AnthropicBedrock } = await import("./chunk-
|
|
8057
|
+
const { AnthropicBedrock } = await import("./chunk-dxeadbxq.js");
|
|
9128
8058
|
const awsRegion = model === getSmallFastModel() && process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION ? process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION : getAWSRegion();
|
|
9129
8059
|
const bedrockArgs = {
|
|
9130
8060
|
...ARGS,
|
|
@@ -9160,7 +8090,7 @@ async function getAnthropicClient({
|
|
|
9160
8090
|
const {
|
|
9161
8091
|
DefaultAzureCredential: AzureCredential,
|
|
9162
8092
|
getBearerTokenProvider
|
|
9163
|
-
} = await import("./chunk-
|
|
8093
|
+
} = await import("./chunk-pshjyzq4.js");
|
|
9164
8094
|
azureADTokenProvider = getBearerTokenProvider(new AzureCredential, "https://cognitiveservices.azure.com/.default");
|
|
9165
8095
|
}
|
|
9166
8096
|
}
|
|
@@ -9176,8 +8106,8 @@ async function getAnthropicClient({
|
|
|
9176
8106
|
await refreshGcpCredentialsIfNeeded();
|
|
9177
8107
|
}
|
|
9178
8108
|
const [{ AnthropicVertex }, { GoogleAuth }] = await Promise.all([
|
|
9179
|
-
import("./chunk-
|
|
9180
|
-
import("./chunk-
|
|
8109
|
+
import("./chunk-8225arm6.js"),
|
|
8110
|
+
import("./chunk-tezak8rx.js").then((m)=>__toESM(m.default,1))
|
|
9181
8111
|
]);
|
|
9182
8112
|
const hasProjectEnvVar = process.env["GCLOUD_PROJECT"] || process.env["GOOGLE_CLOUD_PROJECT"] || process.env["gcloud_project"] || process.env["google_cloud_project"];
|
|
9183
8113
|
const hasKeyFile = process.env["GOOGLE_APPLICATION_CREDENTIALS"] || process.env["google_application_credentials"];
|
|
@@ -9262,7 +8192,6 @@ var init_client = __esm(() => {
|
|
|
9262
8192
|
init_oauth();
|
|
9263
8193
|
init_debug();
|
|
9264
8194
|
init_envUtils();
|
|
9265
|
-
init_openaiCompat();
|
|
9266
8195
|
});
|
|
9267
8196
|
|
|
9268
8197
|
// src/utils/model/modelCapabilities.ts
|
|
@@ -9498,15 +8427,16 @@ var init_context = __esm(() => {
|
|
|
9498
8427
|
init_config();
|
|
9499
8428
|
init_envUtils();
|
|
9500
8429
|
init_model();
|
|
8430
|
+
init_antModels();
|
|
9501
8431
|
init_modelCapabilities();
|
|
9502
8432
|
});
|
|
9503
8433
|
|
|
9504
8434
|
// src/utils/model/modelSupportOverrides.ts
|
|
9505
|
-
var
|
|
8435
|
+
var ANTHROPIC_TIERS, OPENAI_TIERS, get3PModelCapabilityOverride;
|
|
9506
8436
|
var init_modelSupportOverrides = __esm(() => {
|
|
9507
8437
|
init_memoize();
|
|
9508
8438
|
init_providers();
|
|
9509
|
-
|
|
8439
|
+
ANTHROPIC_TIERS = [
|
|
9510
8440
|
{
|
|
9511
8441
|
modelEnvVar: "ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
9512
8442
|
capabilitiesEnvVar: "ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"
|
|
@@ -9520,12 +8450,27 @@ var init_modelSupportOverrides = __esm(() => {
|
|
|
9520
8450
|
capabilitiesEnvVar: "ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"
|
|
9521
8451
|
}
|
|
9522
8452
|
];
|
|
8453
|
+
OPENAI_TIERS = [
|
|
8454
|
+
{
|
|
8455
|
+
modelEnvVar: "OPENAI_DEFAULT_OPUS_MODEL",
|
|
8456
|
+
capabilitiesEnvVar: "OPENAI_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"
|
|
8457
|
+
},
|
|
8458
|
+
{
|
|
8459
|
+
modelEnvVar: "OPENAI_DEFAULT_SONNET_MODEL",
|
|
8460
|
+
capabilitiesEnvVar: "OPENAI_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"
|
|
8461
|
+
},
|
|
8462
|
+
{
|
|
8463
|
+
modelEnvVar: "OPENAI_DEFAULT_HAIKU_MODEL",
|
|
8464
|
+
capabilitiesEnvVar: "OPENAI_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"
|
|
8465
|
+
}
|
|
8466
|
+
];
|
|
9523
8467
|
get3PModelCapabilityOverride = memoize_default((model, capability) => {
|
|
9524
8468
|
if (getAPIProvider() === "firstParty") {
|
|
9525
8469
|
return;
|
|
9526
8470
|
}
|
|
9527
8471
|
const m = model.toLowerCase();
|
|
9528
|
-
|
|
8472
|
+
const tiers = getAPIProvider() === "openai" ? OPENAI_TIERS : ANTHROPIC_TIERS;
|
|
8473
|
+
for (const tier of tiers) {
|
|
9529
8474
|
const pinned = process.env[tier.modelEnvVar];
|
|
9530
8475
|
const capabilities = process.env[tier.capabilitiesEnvVar];
|
|
9531
8476
|
if (!pinned || capabilities === undefined)
|
|
@@ -9681,9 +8626,6 @@ var init_betas2 = __esm(() => {
|
|
|
9681
8626
|
if (includeFirstPartyOnlyBetas && modelSupportsISP(model) && !getIsNonInteractiveSession() && getInitialSettings().showThinkingSummaries !== true) {
|
|
9682
8627
|
betaHeaders.push(REDACT_THINKING_BETA_HEADER);
|
|
9683
8628
|
}
|
|
9684
|
-
if (SUMMARIZE_CONNECTOR_TEXT_BETA_HEADER && process.env.USER_TYPE === "ant" && includeFirstPartyOnlyBetas && !isEnvDefinedFalsy(process.env.USE_CONNECTOR_TEXT_SUMMARIZATION) && (isEnvTruthy(process.env.USE_CONNECTOR_TEXT_SUMMARIZATION) || getFeatureValue_CACHED_MAY_BE_STALE("tengu_slate_prism", false))) {
|
|
9685
|
-
betaHeaders.push(SUMMARIZE_CONNECTOR_TEXT_BETA_HEADER);
|
|
9686
|
-
}
|
|
9687
8629
|
const antOptedIntoToolClearing = isEnvTruthy(process.env.USE_API_CONTEXT_MANAGEMENT) && process.env.USER_TYPE === "ant";
|
|
9688
8630
|
const thinkingPreservationEnabled = modelSupportsContextManagement(model);
|
|
9689
8631
|
if (shouldIncludeFirstPartyOnlyBetas() && (antOptedIntoToolClearing || thinkingPreservationEnabled)) {
|
|
@@ -10084,7 +9026,7 @@ function to1PEventFormat(metadata, userMetadata, additionalMetadata = {}) {
|
|
|
10084
9026
|
observerMode,
|
|
10085
9027
|
...coreFields
|
|
10086
9028
|
} = metadata;
|
|
10087
|
-
const
|
|
9029
|
+
const env2 = {
|
|
10088
9030
|
platform: envContext.platform,
|
|
10089
9031
|
platform_raw: envContext.platformRaw,
|
|
10090
9032
|
arch: envContext.arch,
|
|
@@ -10106,47 +9048,47 @@ function to1PEventFormat(metadata, userMetadata, additionalMetadata = {}) {
|
|
|
10106
9048
|
deployment_environment: envContext.deploymentEnvironment
|
|
10107
9049
|
};
|
|
10108
9050
|
if (envContext.remoteEnvironmentType) {
|
|
10109
|
-
|
|
9051
|
+
env2.remote_environment_type = envContext.remoteEnvironmentType;
|
|
10110
9052
|
}
|
|
10111
9053
|
if (false) {}
|
|
10112
9054
|
if (envContext.claudeCodeContainerId) {
|
|
10113
|
-
|
|
9055
|
+
env2.claude_code_container_id = envContext.claudeCodeContainerId;
|
|
10114
9056
|
}
|
|
10115
9057
|
if (envContext.claudeCodeRemoteSessionId) {
|
|
10116
|
-
|
|
9058
|
+
env2.claude_code_remote_session_id = envContext.claudeCodeRemoteSessionId;
|
|
10117
9059
|
}
|
|
10118
9060
|
if (envContext.tags) {
|
|
10119
|
-
|
|
9061
|
+
env2.tags = envContext.tags.split(",").map((t) => t.trim()).filter(Boolean);
|
|
10120
9062
|
}
|
|
10121
9063
|
if (envContext.githubEventName) {
|
|
10122
|
-
|
|
9064
|
+
env2.github_event_name = envContext.githubEventName;
|
|
10123
9065
|
}
|
|
10124
9066
|
if (envContext.githubActionsRunnerEnvironment) {
|
|
10125
|
-
|
|
9067
|
+
env2.github_actions_runner_environment = envContext.githubActionsRunnerEnvironment;
|
|
10126
9068
|
}
|
|
10127
9069
|
if (envContext.githubActionsRunnerOs) {
|
|
10128
|
-
|
|
9070
|
+
env2.github_actions_runner_os = envContext.githubActionsRunnerOs;
|
|
10129
9071
|
}
|
|
10130
9072
|
if (envContext.githubActionRef) {
|
|
10131
|
-
|
|
9073
|
+
env2.github_action_ref = envContext.githubActionRef;
|
|
10132
9074
|
}
|
|
10133
9075
|
if (envContext.wslVersion) {
|
|
10134
|
-
|
|
9076
|
+
env2.wsl_version = envContext.wslVersion;
|
|
10135
9077
|
}
|
|
10136
9078
|
if (envContext.linuxDistroId) {
|
|
10137
|
-
|
|
9079
|
+
env2.linux_distro_id = envContext.linuxDistroId;
|
|
10138
9080
|
}
|
|
10139
9081
|
if (envContext.linuxDistroVersion) {
|
|
10140
|
-
|
|
9082
|
+
env2.linux_distro_version = envContext.linuxDistroVersion;
|
|
10141
9083
|
}
|
|
10142
9084
|
if (envContext.linuxKernel) {
|
|
10143
|
-
|
|
9085
|
+
env2.linux_kernel = envContext.linuxKernel;
|
|
10144
9086
|
}
|
|
10145
9087
|
if (envContext.vcs) {
|
|
10146
|
-
|
|
9088
|
+
env2.vcs = envContext.vcs;
|
|
10147
9089
|
}
|
|
10148
9090
|
if (envContext.versionBase) {
|
|
10149
|
-
|
|
9091
|
+
env2.version_base = envContext.versionBase;
|
|
10150
9092
|
}
|
|
10151
9093
|
const core = {
|
|
10152
9094
|
session_id: coreFields.sessionId,
|
|
@@ -10187,7 +9129,7 @@ function to1PEventFormat(metadata, userMetadata, additionalMetadata = {}) {
|
|
|
10187
9129
|
}
|
|
10188
9130
|
if (userMetadata.githubActionsMetadata) {
|
|
10189
9131
|
const ghMeta = userMetadata.githubActionsMetadata;
|
|
10190
|
-
|
|
9132
|
+
env2.github_actions_metadata = {
|
|
10191
9133
|
actor_id: ghMeta.actorId,
|
|
10192
9134
|
repository_id: ghMeta.repositoryId,
|
|
10193
9135
|
repository_owner_id: ghMeta.repositoryOwnerId
|
|
@@ -10201,7 +9143,7 @@ function to1PEventFormat(metadata, userMetadata, additionalMetadata = {}) {
|
|
|
10201
9143
|
};
|
|
10202
9144
|
}
|
|
10203
9145
|
return {
|
|
10204
|
-
env:
|
|
9146
|
+
env: env2,
|
|
10205
9147
|
...processMetrics && {
|
|
10206
9148
|
process: Buffer.from(jsonStringify(processMetrics)).toString("base64")
|
|
10207
9149
|
},
|
|
@@ -10232,7 +9174,9 @@ var init_metadata = __esm(() => {
|
|
|
10232
9174
|
init_agentContext();
|
|
10233
9175
|
init_slowOperations();
|
|
10234
9176
|
init_teammate();
|
|
10235
|
-
BUILTIN_MCP_SERVER_NAMES = new Set([
|
|
9177
|
+
BUILTIN_MCP_SERVER_NAMES = new Set([
|
|
9178
|
+
(init_common(), __toCommonJS(exports_common)).COMPUTER_USE_MCP_SERVER_NAME
|
|
9179
|
+
]);
|
|
10236
9180
|
TOOL_INPUT_MAX_JSON_CHARS = 4 * 1024;
|
|
10237
9181
|
FILE_COMMANDS = new Set([
|
|
10238
9182
|
"rm",
|
|
@@ -10256,7 +9200,7 @@ var init_metadata = __esm(() => {
|
|
|
10256
9200
|
COMPOUND_OPERATOR_REGEX = /\s*(?:&&|\|\||[;|])\s*/;
|
|
10257
9201
|
WHITESPACE_REGEX = /\s+/;
|
|
10258
9202
|
getVersionBase = memoize_default(() => {
|
|
10259
|
-
const match =
|
|
9203
|
+
const match = "2.1.888".match(/^\d+\.\d+\.\d+(?:-[a-z]+)?/);
|
|
10260
9204
|
return match ? match[0] : undefined;
|
|
10261
9205
|
});
|
|
10262
9206
|
buildEnvContext = memoize_default(async () => {
|
|
@@ -10296,9 +9240,9 @@ var init_metadata = __esm(() => {
|
|
|
10296
9240
|
isGithubAction: isEnvTruthy(process.env.GITHUB_ACTIONS),
|
|
10297
9241
|
isClaudeCodeAction: isEnvTruthy(process.env.CLAUDE_CODE_ACTION),
|
|
10298
9242
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
10299
|
-
version:
|
|
9243
|
+
version: "2.1.888",
|
|
10300
9244
|
versionBase: getVersionBase(),
|
|
10301
|
-
buildTime:
|
|
9245
|
+
buildTime: "2026-04-07T06:28:51.621Z",
|
|
10302
9246
|
deploymentEnvironment: env.detectDeploymentEnvironment(),
|
|
10303
9247
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
10304
9248
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -10451,7 +9395,7 @@ class FirstPartyEventLoggingExporter {
|
|
|
10451
9395
|
}
|
|
10452
9396
|
}
|
|
10453
9397
|
}
|
|
10454
|
-
async export(
|
|
9398
|
+
async export(logs, resultCallback) {
|
|
10455
9399
|
if (this.isShutdown) {
|
|
10456
9400
|
if (process.env.USER_TYPE === "ant") {
|
|
10457
9401
|
logForDebugging("1P event logging export failed: Exporter has been shutdown");
|
|
@@ -10462,7 +9406,7 @@ class FirstPartyEventLoggingExporter {
|
|
|
10462
9406
|
});
|
|
10463
9407
|
return;
|
|
10464
9408
|
}
|
|
10465
|
-
const exportPromise = this.doExport(
|
|
9409
|
+
const exportPromise = this.doExport(logs, resultCallback);
|
|
10466
9410
|
this.pendingExports.push(exportPromise);
|
|
10467
9411
|
exportPromise.finally(() => {
|
|
10468
9412
|
const index2 = this.pendingExports.indexOf(exportPromise);
|
|
@@ -10471,9 +9415,9 @@ class FirstPartyEventLoggingExporter {
|
|
|
10471
9415
|
}
|
|
10472
9416
|
});
|
|
10473
9417
|
}
|
|
10474
|
-
async doExport(
|
|
9418
|
+
async doExport(logs, resultCallback) {
|
|
10475
9419
|
try {
|
|
10476
|
-
const eventLogs =
|
|
9420
|
+
const eventLogs = logs.filter((log) => log.instrumentationScope?.name === "com.anthropic.claude_code.events");
|
|
10477
9421
|
if (eventLogs.length === 0) {
|
|
10478
9422
|
resultCallback({ code: import_core8.ExportResultCode.SUCCESS });
|
|
10479
9423
|
return;
|
|
@@ -10675,9 +9619,9 @@ class FirstPartyEventLoggingExporter {
|
|
|
10675
9619
|
const [seconds, nanoseconds] = hrTime;
|
|
10676
9620
|
return new Date(seconds * 1000 + nanoseconds / 1e6);
|
|
10677
9621
|
}
|
|
10678
|
-
transformLogsToEvents(
|
|
9622
|
+
transformLogsToEvents(logs) {
|
|
10679
9623
|
const events = [];
|
|
10680
|
-
for (const log of
|
|
9624
|
+
for (const log of logs) {
|
|
10681
9625
|
const attributes = log.attributes || {};
|
|
10682
9626
|
if (attributes.event_type === "GrowthbookExperimentEvent") {
|
|
10683
9627
|
const timestamp = this.hrTimeToDate(log.hrTime);
|
|
@@ -10957,7 +9901,7 @@ function initialize1PEventLogging() {
|
|
|
10957
9901
|
const platform = getPlatform();
|
|
10958
9902
|
const attributes = {
|
|
10959
9903
|
[import_semantic_conventions2.ATTR_SERVICE_NAME]: "claude-code",
|
|
10960
|
-
[import_semantic_conventions2.ATTR_SERVICE_VERSION]:
|
|
9904
|
+
[import_semantic_conventions2.ATTR_SERVICE_VERSION]: "2.1.888"
|
|
10961
9905
|
};
|
|
10962
9906
|
if (platform === "wsl") {
|
|
10963
9907
|
const wslVersion = getWslVersion();
|
|
@@ -10984,7 +9928,7 @@ function initialize1PEventLogging() {
|
|
|
10984
9928
|
})
|
|
10985
9929
|
]
|
|
10986
9930
|
});
|
|
10987
|
-
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events",
|
|
9931
|
+
firstPartyEventLogger = firstPartyEventLoggerProvider.getLogger("com.anthropic.claude_code.events", "2.1.888");
|
|
10988
9932
|
}
|
|
10989
9933
|
async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
10990
9934
|
if (!is1PEventLoggingEnabled() || !firstPartyEventLoggerProvider) {
|
|
@@ -11016,7 +9960,7 @@ async function reinitialize1PEventLoggingIfConfigChanged() {
|
|
|
11016
9960
|
}
|
|
11017
9961
|
var import_resources2, import_semantic_conventions2, EVENT_SAMPLING_CONFIG_NAME = "tengu_event_sampling_config", BATCH_CONFIG_NAME = "tengu_1p_event_batch_config", firstPartyEventLogger = null, firstPartyEventLoggerProvider = null, lastBatchConfig = null, DEFAULT_LOGS_EXPORT_INTERVAL_MS = 1e4, DEFAULT_MAX_EXPORT_BATCH_SIZE = 200, DEFAULT_MAX_QUEUE_SIZE = 8192;
|
|
11018
9962
|
var init_firstPartyEventLogger = __esm(() => {
|
|
11019
|
-
|
|
9963
|
+
init_esm2();
|
|
11020
9964
|
init_lodash();
|
|
11021
9965
|
init_config();
|
|
11022
9966
|
init_debug();
|
|
@@ -11208,7 +10152,16 @@ function syncRemoteEvalToDisk() {
|
|
|
11208
10152
|
cachedGrowthBookFeatures: fresh
|
|
11209
10153
|
}));
|
|
11210
10154
|
}
|
|
10155
|
+
function getLocalGateDefault(feature) {
|
|
10156
|
+
if (process.env.CLAUDE_CODE_DISABLE_LOCAL_GATES) {
|
|
10157
|
+
return;
|
|
10158
|
+
}
|
|
10159
|
+
return LOCAL_GATE_DEFAULTS[feature];
|
|
10160
|
+
}
|
|
11211
10161
|
function isGrowthBookEnabled() {
|
|
10162
|
+
if (process.env.CLAUDE_GB_ADAPTER_URL && process.env.CLAUDE_GB_ADAPTER_KEY) {
|
|
10163
|
+
return true;
|
|
10164
|
+
}
|
|
11212
10165
|
return is1PEventLoggingEnabled();
|
|
11213
10166
|
}
|
|
11214
10167
|
function getApiBaseUrlHost() {
|
|
@@ -11261,11 +10214,13 @@ async function getFeatureValueInternal(feature, defaultValue, logExposure) {
|
|
|
11261
10214
|
return configOverrides[feature];
|
|
11262
10215
|
}
|
|
11263
10216
|
if (!isGrowthBookEnabled()) {
|
|
11264
|
-
|
|
10217
|
+
const localDefault = getLocalGateDefault(feature);
|
|
10218
|
+
return localDefault !== undefined ? localDefault : defaultValue;
|
|
11265
10219
|
}
|
|
11266
10220
|
const growthBookClient = await initializeGrowthBook();
|
|
11267
10221
|
if (!growthBookClient) {
|
|
11268
|
-
|
|
10222
|
+
const localDefault = getLocalGateDefault(feature);
|
|
10223
|
+
return localDefault !== undefined ? localDefault : defaultValue;
|
|
11269
10224
|
}
|
|
11270
10225
|
let result;
|
|
11271
10226
|
if (remoteEvalFeatureValues.has(feature)) {
|
|
@@ -11294,7 +10249,8 @@ function getFeatureValue_CACHED_MAY_BE_STALE(feature, defaultValue) {
|
|
|
11294
10249
|
return configOverrides[feature];
|
|
11295
10250
|
}
|
|
11296
10251
|
if (!isGrowthBookEnabled()) {
|
|
11297
|
-
|
|
10252
|
+
const localDefault2 = getLocalGateDefault(feature);
|
|
10253
|
+
return localDefault2 !== undefined ? localDefault2 : defaultValue;
|
|
11298
10254
|
}
|
|
11299
10255
|
if (experimentDataByFeature.has(feature)) {
|
|
11300
10256
|
logExposureForFeature(feature);
|
|
@@ -11306,10 +10262,12 @@ function getFeatureValue_CACHED_MAY_BE_STALE(feature, defaultValue) {
|
|
|
11306
10262
|
}
|
|
11307
10263
|
try {
|
|
11308
10264
|
const cached = getGlobalConfig().cachedGrowthBookFeatures?.[feature];
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
}
|
|
10265
|
+
if (cached !== undefined) {
|
|
10266
|
+
return cached;
|
|
10267
|
+
}
|
|
10268
|
+
} catch {}
|
|
10269
|
+
const localDefault = getLocalGateDefault(feature);
|
|
10270
|
+
return localDefault !== undefined ? localDefault : defaultValue;
|
|
11313
10271
|
}
|
|
11314
10272
|
function getFeatureValue_CACHED_WITH_REFRESH(feature, defaultValue, _refreshIntervalMs) {
|
|
11315
10273
|
return getFeatureValue_CACHED_MAY_BE_STALE(feature, defaultValue);
|
|
@@ -11324,19 +10282,27 @@ function checkStatsigFeatureGate_CACHED_MAY_BE_STALE(gate) {
|
|
|
11324
10282
|
return Boolean(configOverrides[gate]);
|
|
11325
10283
|
}
|
|
11326
10284
|
if (!isGrowthBookEnabled()) {
|
|
11327
|
-
|
|
10285
|
+
const localDefault2 = getLocalGateDefault(gate);
|
|
10286
|
+
return localDefault2 !== undefined ? Boolean(localDefault2) : false;
|
|
11328
10287
|
}
|
|
11329
10288
|
if (experimentDataByFeature.has(gate)) {
|
|
11330
10289
|
logExposureForFeature(gate);
|
|
11331
10290
|
} else {
|
|
11332
10291
|
pendingExposures.add(gate);
|
|
11333
10292
|
}
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
10293
|
+
try {
|
|
10294
|
+
const config = getGlobalConfig();
|
|
10295
|
+
const gbCached = config.cachedGrowthBookFeatures?.[gate];
|
|
10296
|
+
if (gbCached !== undefined) {
|
|
10297
|
+
return Boolean(gbCached);
|
|
10298
|
+
}
|
|
10299
|
+
const statsigCached = config.cachedStatsigGates?.[gate];
|
|
10300
|
+
if (statsigCached !== undefined) {
|
|
10301
|
+
return statsigCached;
|
|
10302
|
+
}
|
|
10303
|
+
} catch {}
|
|
10304
|
+
const localDefault = getLocalGateDefault(gate);
|
|
10305
|
+
return localDefault !== undefined ? Boolean(localDefault) : false;
|
|
11340
10306
|
}
|
|
11341
10307
|
async function checkSecurityRestrictionGate(gate) {
|
|
11342
10308
|
const overrides = getEnvOverrides();
|
|
@@ -11374,7 +10340,8 @@ async function checkGate_CACHED_OR_BLOCKING(gate) {
|
|
|
11374
10340
|
return Boolean(configOverrides[gate]);
|
|
11375
10341
|
}
|
|
11376
10342
|
if (!isGrowthBookEnabled()) {
|
|
11377
|
-
|
|
10343
|
+
const localDefault = getLocalGateDefault(gate);
|
|
10344
|
+
return localDefault !== undefined ? Boolean(localDefault) : false;
|
|
11378
10345
|
}
|
|
11379
10346
|
const cached = getGlobalConfig().cachedGrowthBookFeatures?.[gate];
|
|
11380
10347
|
if (cached === true) {
|
|
@@ -11497,7 +10464,7 @@ async function getDynamicConfig_BLOCKS_ON_INIT(configName, defaultValue) {
|
|
|
11497
10464
|
function getDynamicConfig_CACHED_MAY_BE_STALE(configName, defaultValue) {
|
|
11498
10465
|
return getFeatureValue_CACHED_MAY_BE_STALE(configName, defaultValue);
|
|
11499
10466
|
}
|
|
11500
|
-
var client = null, currentBeforeExitHandler = null, currentExitHandler = null, clientCreatedWithAuth = false, experimentDataByFeature, remoteEvalFeatureValues, pendingExposures, loggedExposures, reinitializingPromise = null, refreshed, envOverrides = null, envOverridesParsed = false, getGrowthBookClient, initializeGrowthBook, GROWTHBOOK_REFRESH_INTERVAL_MS, refreshInterval = null, beforeExitListener = null;
|
|
10467
|
+
var client = null, currentBeforeExitHandler = null, currentExitHandler = null, clientCreatedWithAuth = false, experimentDataByFeature, remoteEvalFeatureValues, pendingExposures, loggedExposures, reinitializingPromise = null, refreshed, envOverrides = null, envOverridesParsed = false, LOCAL_GATE_DEFAULTS, getGrowthBookClient, initializeGrowthBook, GROWTHBOOK_REFRESH_INTERVAL_MS, refreshInterval = null, beforeExitListener = null;
|
|
11501
10468
|
var init_growthbook = __esm(() => {
|
|
11502
10469
|
init_esm();
|
|
11503
10470
|
init_lodash();
|
|
@@ -11517,26 +10484,61 @@ var init_growthbook = __esm(() => {
|
|
|
11517
10484
|
pendingExposures = new Set;
|
|
11518
10485
|
loggedExposures = new Set;
|
|
11519
10486
|
refreshed = createSignal();
|
|
10487
|
+
LOCAL_GATE_DEFAULTS = {
|
|
10488
|
+
tengu_keybinding_customization_release: true,
|
|
10489
|
+
tengu_streaming_tool_execution2: true,
|
|
10490
|
+
tengu_kairos_cron: true,
|
|
10491
|
+
tengu_amber_json_tools: true,
|
|
10492
|
+
tengu_immediate_model_command: true,
|
|
10493
|
+
tengu_basalt_3kr: true,
|
|
10494
|
+
tengu_pebble_leaf_prune: true,
|
|
10495
|
+
tengu_chair_sermon: true,
|
|
10496
|
+
tengu_lodestone_enabled: true,
|
|
10497
|
+
tengu_auto_background_agents: true,
|
|
10498
|
+
tengu_fgts: true,
|
|
10499
|
+
tengu_session_memory: true,
|
|
10500
|
+
tengu_passport_quail: true,
|
|
10501
|
+
tengu_moth_copse: true,
|
|
10502
|
+
tengu_coral_fern: true,
|
|
10503
|
+
tengu_chomp_inflection: true,
|
|
10504
|
+
tengu_hive_evidence: true,
|
|
10505
|
+
tengu_kairos_brief: true,
|
|
10506
|
+
tengu_kairos_brief_config: { enable_slash_command: true },
|
|
10507
|
+
tengu_sedge_lantern: true,
|
|
10508
|
+
tengu_onyx_plover: { enabled: true },
|
|
10509
|
+
tengu_willow_mode: "dialog",
|
|
10510
|
+
tengu_turtle_carbon: true,
|
|
10511
|
+
tengu_amber_stoat: true,
|
|
10512
|
+
tengu_amber_flint: true,
|
|
10513
|
+
tengu_slim_subagent_claudemd: true,
|
|
10514
|
+
tengu_birch_trellis: true,
|
|
10515
|
+
tengu_collage_kaleidoscope: true,
|
|
10516
|
+
tengu_compact_cache_prefix: true,
|
|
10517
|
+
tengu_kairos_cron_durable: true,
|
|
10518
|
+
tengu_attribution_header: true,
|
|
10519
|
+
tengu_slate_prism: true
|
|
10520
|
+
};
|
|
11520
10521
|
getGrowthBookClient = memoize_default(() => {
|
|
11521
10522
|
if (!isGrowthBookEnabled()) {
|
|
11522
10523
|
return null;
|
|
11523
10524
|
}
|
|
11524
10525
|
const attributes = getUserAttributes();
|
|
11525
10526
|
const clientKey = getGrowthBookClientKey();
|
|
10527
|
+
const baseUrl = process.env.CLAUDE_GB_ADAPTER_URL || (process.env.USER_TYPE === "ant" ? process.env.CLAUDE_CODE_GB_BASE_URL || "https://api.anthropic.com/" : "https://api.anthropic.com/");
|
|
10528
|
+
const isAdapterMode = !!(process.env.CLAUDE_GB_ADAPTER_URL && process.env.CLAUDE_GB_ADAPTER_KEY);
|
|
11526
10529
|
if (process.env.USER_TYPE === "ant") {
|
|
11527
10530
|
logForDebugging(`GrowthBook: Creating client with clientKey=${clientKey}, attributes: ${jsonStringify(attributes)}`);
|
|
11528
10531
|
}
|
|
11529
|
-
const baseUrl = process.env.USER_TYPE === "ant" ? process.env.CLAUDE_CODE_GB_BASE_URL || "https://api.anthropic.com/" : "https://api.anthropic.com/";
|
|
11530
10532
|
const hasTrust = checkHasTrustDialogAccepted() || getSessionTrustAccepted() || getIsNonInteractiveSession();
|
|
11531
10533
|
const authHeaders = hasTrust ? getAuthHeaders() : { headers: {}, error: "trust not established" };
|
|
11532
|
-
const hasAuth = !authHeaders.error;
|
|
10534
|
+
const hasAuth = isAdapterMode || !authHeaders.error;
|
|
11533
10535
|
clientCreatedWithAuth = hasAuth;
|
|
11534
10536
|
const thisClient = new GrowthBook({
|
|
11535
10537
|
apiHost: baseUrl,
|
|
11536
10538
|
clientKey,
|
|
11537
10539
|
attributes,
|
|
11538
|
-
remoteEval:
|
|
11539
|
-
cacheKeyAttributes: ["id", "organizationUUID"],
|
|
10540
|
+
remoteEval: !isAdapterMode,
|
|
10541
|
+
...!isAdapterMode ? { cacheKeyAttributes: ["id", "organizationUUID"] } : {},
|
|
11540
10542
|
...authHeaders.error ? {} : { apiHostRequestHeaders: authHeaders.headers },
|
|
11541
10543
|
...process.env.USER_TYPE === "ant" ? {
|
|
11542
10544
|
log: (msg, ctx) => {
|
|
@@ -11556,7 +10558,7 @@ var init_growthbook = __esm(() => {
|
|
|
11556
10558
|
return;
|
|
11557
10559
|
}
|
|
11558
10560
|
if (process.env.USER_TYPE === "ant") {
|
|
11559
|
-
logForDebugging(`GrowthBook initialized
|
|
10561
|
+
logForDebugging(`GrowthBook initialized, source: ${result.source}, success: ${result.success}`);
|
|
11560
10562
|
}
|
|
11561
10563
|
const hadFeatures = await processRemoteEvalPayload(thisClient);
|
|
11562
10564
|
if (client !== thisClient)
|
|
@@ -12230,6 +11232,23 @@ var init_sandboxTypes = __esm(() => {
|
|
|
12230
11232
|
}).passthrough());
|
|
12231
11233
|
});
|
|
12232
11234
|
|
|
11235
|
+
// src/types/permissions.ts
|
|
11236
|
+
var EXTERNAL_PERMISSION_MODES, INTERNAL_PERMISSION_MODES, PERMISSION_MODES;
|
|
11237
|
+
var init_permissions = __esm(() => {
|
|
11238
|
+
EXTERNAL_PERMISSION_MODES = [
|
|
11239
|
+
"acceptEdits",
|
|
11240
|
+
"bypassPermissions",
|
|
11241
|
+
"default",
|
|
11242
|
+
"dontAsk",
|
|
11243
|
+
"plan"
|
|
11244
|
+
];
|
|
11245
|
+
INTERNAL_PERMISSION_MODES = [
|
|
11246
|
+
...EXTERNAL_PERMISSION_MODES,
|
|
11247
|
+
...[]
|
|
11248
|
+
];
|
|
11249
|
+
PERMISSION_MODES = INTERNAL_PERMISSION_MODES;
|
|
11250
|
+
});
|
|
11251
|
+
|
|
12233
11252
|
// src/utils/permissions/PermissionMode.ts
|
|
12234
11253
|
function isExternalPermissionMode(mode) {
|
|
12235
11254
|
if (process.env.USER_TYPE !== "ant") {
|
|
@@ -12896,6 +11915,34 @@ var TASK_STOP_TOOL_NAME = "TaskStop", DESCRIPTION = `
|
|
|
12896
11915
|
`;
|
|
12897
11916
|
var init_prompt = () => {};
|
|
12898
11917
|
|
|
11918
|
+
// src/tools/BriefTool/prompt.ts
|
|
11919
|
+
var exports_prompt = {};
|
|
11920
|
+
__export(exports_prompt, {
|
|
11921
|
+
LEGACY_BRIEF_TOOL_NAME: () => LEGACY_BRIEF_TOOL_NAME,
|
|
11922
|
+
DESCRIPTION: () => DESCRIPTION2,
|
|
11923
|
+
BRIEF_TOOL_PROMPT: () => BRIEF_TOOL_PROMPT,
|
|
11924
|
+
BRIEF_TOOL_NAME: () => BRIEF_TOOL_NAME,
|
|
11925
|
+
BRIEF_PROACTIVE_SECTION: () => BRIEF_PROACTIVE_SECTION
|
|
11926
|
+
});
|
|
11927
|
+
var BRIEF_TOOL_NAME = "SendUserMessage", LEGACY_BRIEF_TOOL_NAME = "Brief", DESCRIPTION2 = "Send a message to the user", BRIEF_TOOL_PROMPT = `Send a message the user will read. Text outside this tool is visible in the detail view, but most won't open it \u2014 the answer lives here.
|
|
11928
|
+
|
|
11929
|
+
\`message\` supports markdown. \`attachments\` takes file paths (absolute or cwd-relative) for images, diffs, logs.
|
|
11930
|
+
|
|
11931
|
+
\`status\` labels intent: 'normal' when replying to what they just asked; 'proactive' when you're initiating \u2014 a scheduled task finished, a blocker surfaced during background work, you need input on something they haven't asked about. Set it honestly; downstream routing uses it.`, BRIEF_PROACTIVE_SECTION;
|
|
11932
|
+
var init_prompt2 = __esm(() => {
|
|
11933
|
+
BRIEF_PROACTIVE_SECTION = `## Talking to the user
|
|
11934
|
+
|
|
11935
|
+
${BRIEF_TOOL_NAME} is where your replies go. Text outside it is visible if the user expands the detail view, but most won't \u2014 assume unread. Anything you want them to actually see goes through ${BRIEF_TOOL_NAME}. The failure mode: the real answer lives in plain text while ${BRIEF_TOOL_NAME} just says "done!" \u2014 they see "done!" and miss everything.
|
|
11936
|
+
|
|
11937
|
+
So: every time the user says something, the reply they actually read comes through ${BRIEF_TOOL_NAME}. Even for "hi". Even for "thanks".
|
|
11938
|
+
|
|
11939
|
+
If you can answer right away, send the answer. If you need to go look \u2014 run a command, read files, check something \u2014 ack first in one line ("On it \u2014 checking the test output"), then work, then send the result. Without the ack they're staring at a spinner.
|
|
11940
|
+
|
|
11941
|
+
For longer work: ack \u2192 work \u2192 result. Between those, send a checkpoint when something useful happened \u2014 a decision you made, a surprise you hit, a phase boundary. Skip the filler ("running tests...") \u2014 a checkpoint earns its place by carrying information.
|
|
11942
|
+
|
|
11943
|
+
Keep messages tight \u2014 the decision, the file:line, the PR number. Second person always ("your config"), never third.`;
|
|
11944
|
+
});
|
|
11945
|
+
|
|
12899
11946
|
// src/utils/permissions/permissionRuleParser.ts
|
|
12900
11947
|
function normalizeLegacyToolName(name) {
|
|
12901
11948
|
return LEGACY_TOOL_NAME_ALIASES[name] ?? name;
|
|
@@ -12976,17 +12023,18 @@ function findLastUnescapedChar(str, char) {
|
|
|
12976
12023
|
}
|
|
12977
12024
|
return -1;
|
|
12978
12025
|
}
|
|
12979
|
-
var LEGACY_TOOL_NAME_ALIASES;
|
|
12026
|
+
var BRIEF_TOOL_NAME2, LEGACY_TOOL_NAME_ALIASES;
|
|
12980
12027
|
var init_permissionRuleParser = __esm(() => {
|
|
12981
12028
|
init_constants2();
|
|
12982
12029
|
init_constants3();
|
|
12983
12030
|
init_prompt();
|
|
12031
|
+
BRIEF_TOOL_NAME2 = (init_prompt2(), __toCommonJS(exports_prompt)).BRIEF_TOOL_NAME;
|
|
12984
12032
|
LEGACY_TOOL_NAME_ALIASES = {
|
|
12985
12033
|
Task: AGENT_TOOL_NAME,
|
|
12986
12034
|
KillShell: TASK_STOP_TOOL_NAME,
|
|
12987
12035
|
AgentOutputTool: TASK_OUTPUT_TOOL_NAME,
|
|
12988
12036
|
BashOutputTool: TASK_OUTPUT_TOOL_NAME,
|
|
12989
|
-
...{}
|
|
12037
|
+
...BRIEF_TOOL_NAME2 ? { Brief: BRIEF_TOOL_NAME2 } : {}
|
|
12990
12038
|
};
|
|
12991
12039
|
});
|
|
12992
12040
|
|
|
@@ -13322,6 +12370,7 @@ var init_types2 = __esm(() => {
|
|
|
13322
12370
|
includeCoAuthoredBy: exports_external.boolean().optional().describe("Deprecated: Use attribution instead. " + "Whether to include Claude's co-authored by attribution in commits and PRs (defaults to true)"),
|
|
13323
12371
|
includeGitInstructions: exports_external.boolean().optional().describe("Include built-in commit and PR workflow instructions in Claude's system prompt (default: true)"),
|
|
13324
12372
|
permissions: PermissionsSchema().optional().describe("Tool usage permissions configuration"),
|
|
12373
|
+
modelType: exports_external.enum(["anthropic", "openai", "gemini", "grok"]).optional().describe('API provider type. "anthropic" uses the Anthropic API (default), "openai" uses the OpenAI Chat Completions API, "gemini" uses the Gemini API, and "grok" uses the xAI Grok API (OpenAI-compatible). ' + 'When set to "openai", configure OPENAI_API_KEY, OPENAI_BASE_URL, and OPENAI_MODEL. When set to "gemini", configure GEMINI_API_KEY and optional GEMINI_BASE_URL. When set to "grok", configure GROK_API_KEY (or XAI_API_KEY), optional GROK_BASE_URL, GROK_MODEL, and GROK_MODEL_MAP.'),
|
|
13325
12374
|
model: exports_external.string().optional().describe("Override the default model used by Claude Code"),
|
|
13326
12375
|
availableModels: exports_external.array(exports_external.string()).optional().describe("Allowlist of models that users can select. " + 'Accepts family aliases ("opus" allows any opus version), ' + 'version prefixes ("opus-4-5" allows only that version), ' + "and full model IDs. " + "If undefined, all models are available. If empty array, only the default model is available. " + "Typically set in managed settings by enterprise administrators."),
|
|
13327
12376
|
modelOverrides: exports_external.record(exports_external.string(), exports_external.string()).optional().describe('Override mapping from Anthropic model ID (e.g. "claude-opus-4-6") to provider-specific ' + "model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by " + "enterprise administrators."),
|
|
@@ -13409,21 +12458,27 @@ var init_types2 = __esm(() => {
|
|
|
13409
12458
|
defaultEnvironmentId: exports_external.string().optional().describe("Default environment ID to use for remote sessions")
|
|
13410
12459
|
}).optional().describe("Remote session configuration"),
|
|
13411
12460
|
autoUpdatesChannel: exports_external.enum(["latest", "stable"]).optional().describe("Release channel for auto-updates (latest or stable)"),
|
|
13412
|
-
...{
|
|
12461
|
+
...{
|
|
12462
|
+
disableDeepLinkRegistration: exports_external.enum(["disable"]).optional().describe("Prevent claude-cli:// protocol handler registration with the OS")
|
|
12463
|
+
},
|
|
13413
12464
|
minimumVersion: exports_external.string().optional().describe("Minimum version to stay on - prevents downgrades when switching to stable channel"),
|
|
13414
12465
|
plansDirectory: exports_external.string().optional().describe("Custom directory for plan files, relative to project root. " + "If not set, defaults to ~/.claude/plans/"),
|
|
13415
12466
|
...process.env.USER_TYPE === "ant" ? {
|
|
13416
12467
|
classifierPermissionsEnabled: exports_external.boolean().optional().describe("Enable AI-based classification for Bash(prompt:...) permission rules")
|
|
13417
12468
|
} : {},
|
|
13418
12469
|
...{},
|
|
13419
|
-
...{
|
|
12470
|
+
...{
|
|
12471
|
+
voiceEnabled: exports_external.boolean().optional().describe("Enable voice mode (hold-to-talk dictation)")
|
|
12472
|
+
},
|
|
13420
12473
|
...{},
|
|
13421
12474
|
channelsEnabled: exports_external.boolean().optional().describe("Teams/Enterprise opt-in for channel notifications (MCP servers with the " + "claude/channel capability pushing inbound messages). Default off. " + "Set true to allow; users then select servers via --channels."),
|
|
13422
12475
|
allowedChannelPlugins: exports_external.array(exports_external.object({
|
|
13423
12476
|
marketplace: exports_external.string(),
|
|
13424
12477
|
plugin: exports_external.string()
|
|
13425
12478
|
})).optional().describe("Teams/Enterprise allowlist of channel plugins. When set, " + "replaces the default Anthropic allowlist \u2014 admins decide which " + "plugins may push inbound messages. Undefined falls back to the default. " + "Requires channelsEnabled: true."),
|
|
13426
|
-
...{
|
|
12479
|
+
...{
|
|
12480
|
+
defaultView: exports_external.enum(["chat", "transcript"]).optional().describe("Default transcript view: chat (SendUserMessage checkpoints only) or transcript (full)")
|
|
12481
|
+
},
|
|
13427
12482
|
prefersReducedMotion: exports_external.boolean().optional().describe("Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)"),
|
|
13428
12483
|
autoMemoryEnabled: exports_external.boolean().optional().describe("Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory."),
|
|
13429
12484
|
autoMemoryDirectory: exports_external.string().optional().describe("Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .claude/settings.json) for security. When unset, defaults to ~/.claude/projects/<sanitized-cwd>/memory/."),
|
|
@@ -14470,7 +13525,7 @@ function findFirstMatch(profiles, substring) {
|
|
|
14470
13525
|
return profiles.find((p) => p.includes(substring)) ?? null;
|
|
14471
13526
|
}
|
|
14472
13527
|
async function createBedrockClient() {
|
|
14473
|
-
const { BedrockClient } = await import("./chunk-
|
|
13528
|
+
const { BedrockClient } = await import("./chunk-3r66czp1.js");
|
|
14474
13529
|
const region = getAWSRegion();
|
|
14475
13530
|
const skipAuth = isEnvTruthy(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH);
|
|
14476
13531
|
const clientConfig = {
|
|
@@ -14504,7 +13559,7 @@ async function createBedrockClient() {
|
|
|
14504
13559
|
return new BedrockClient(clientConfig);
|
|
14505
13560
|
}
|
|
14506
13561
|
async function createBedrockRuntimeClient() {
|
|
14507
|
-
const { BedrockRuntimeClient } = await import("./chunk-
|
|
13562
|
+
const { BedrockRuntimeClient } = await import("./chunk-8ht15c7w.js");
|
|
14508
13563
|
const region = getAWSRegion();
|
|
14509
13564
|
const skipAuth = isEnvTruthy(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH);
|
|
14510
13565
|
const clientConfig = {
|
|
@@ -14579,7 +13634,7 @@ var init_bedrock = __esm(() => {
|
|
|
14579
13634
|
getBedrockInferenceProfiles = memoize_default(async function() {
|
|
14580
13635
|
const [client2, { ListInferenceProfilesCommand }] = await Promise.all([
|
|
14581
13636
|
createBedrockClient(),
|
|
14582
|
-
import("./chunk-
|
|
13637
|
+
import("./chunk-3r66czp1.js")
|
|
14583
13638
|
]);
|
|
14584
13639
|
const allProfiles = [];
|
|
14585
13640
|
let nextToken;
|
|
@@ -14605,7 +13660,7 @@ var init_bedrock = __esm(() => {
|
|
|
14605
13660
|
try {
|
|
14606
13661
|
const [client2, { GetInferenceProfileCommand }] = await Promise.all([
|
|
14607
13662
|
createBedrockClient(),
|
|
14608
|
-
import("./chunk-
|
|
13663
|
+
import("./chunk-3r66czp1.js")
|
|
14609
13664
|
]);
|
|
14610
13665
|
const command = new GetInferenceProfileCommand({
|
|
14611
13666
|
inferenceProfileIdentifier: profileId
|
|
@@ -15103,13 +14158,13 @@ function isValidAwsStsOutput(obj) {
|
|
|
15103
14158
|
return typeof credentials.AccessKeyId === "string" && typeof credentials.SecretAccessKey === "string" && typeof credentials.SessionToken === "string" && credentials.AccessKeyId.length > 0 && credentials.SecretAccessKey.length > 0 && credentials.SessionToken.length > 0;
|
|
15104
14159
|
}
|
|
15105
14160
|
async function checkStsCallerIdentity() {
|
|
15106
|
-
const { STSClient, GetCallerIdentityCommand } = await import("./chunk-
|
|
14161
|
+
const { STSClient, GetCallerIdentityCommand } = await import("./chunk-wahkzh83.js");
|
|
15107
14162
|
await new STSClient().send(new GetCallerIdentityCommand({}));
|
|
15108
14163
|
}
|
|
15109
14164
|
async function clearAwsIniCache() {
|
|
15110
14165
|
try {
|
|
15111
14166
|
logForDebugging("Clearing AWS credential provider cache");
|
|
15112
|
-
const { fromIni } = await import("./chunk-
|
|
14167
|
+
const { fromIni } = await import("./chunk-bszdmr4k.js");
|
|
15113
14168
|
const iniProvider = fromIni({ ignoreCache: true });
|
|
15114
14169
|
await iniProvider();
|
|
15115
14170
|
logForDebugging("AWS credential provider cache refreshed");
|
|
@@ -15584,8 +14639,8 @@ function isAnthropicAuthEnabled() {
|
|
|
15584
14639
|
if (process.env.ANTHROPIC_UNIX_SOCKET) {
|
|
15585
14640
|
return !!process.env.CLAUDE_CODE_OAUTH_TOKEN;
|
|
15586
14641
|
}
|
|
15587
|
-
const is3P = isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) || isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) || isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY);
|
|
15588
14642
|
const settings = getSettings_DEPRECATED() || {};
|
|
14643
|
+
const is3P = isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) || isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) || isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) || settings.modelType === "openai" || settings.modelType === "gemini" || !!process.env.OPENAI_BASE_URL || !!process.env.GEMINI_BASE_URL;
|
|
15589
14644
|
const apiKeyHelper = settings.apiKeyHelper;
|
|
15590
14645
|
const hasExternalAuthToken = process.env.ANTHROPIC_AUTH_TOKEN || apiKeyHelper || process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR;
|
|
15591
14646
|
const { source: apiKeySource } = getAnthropicApiKeyWithSource({
|
|
@@ -15836,7 +14891,7 @@ async function _executeApiKeyHelper(isNonInteractiveSession) {
|
|
|
15836
14891
|
if (isApiKeyHelperFromProjectOrLocalSettings()) {
|
|
15837
14892
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
15838
14893
|
if (!hasTrust && !isNonInteractiveSession) {
|
|
15839
|
-
const error = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${
|
|
14894
|
+
const error = new Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${""}.`);
|
|
15840
14895
|
logAntError("apiKeyHelper invoked before trust check", error);
|
|
15841
14896
|
logEvent("tengu_apiKeyHelper_missing_trust11", {});
|
|
15842
14897
|
return null;
|
|
@@ -15880,7 +14935,7 @@ async function runAwsAuthRefresh() {
|
|
|
15880
14935
|
if (isAwsAuthRefreshFromProjectSettings()) {
|
|
15881
14936
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
15882
14937
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
15883
|
-
const error = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${
|
|
14938
|
+
const error = new Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${""}.`);
|
|
15884
14939
|
logAntError("awsAuthRefresh invoked before trust check", error);
|
|
15885
14940
|
logEvent("tengu_awsAuthRefresh_missing_trust", {});
|
|
15886
14941
|
return false;
|
|
@@ -15940,7 +14995,7 @@ async function getAwsCredsFromCredentialExport() {
|
|
|
15940
14995
|
if (isAwsCredentialExportFromProjectSettings()) {
|
|
15941
14996
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
15942
14997
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
15943
|
-
const error = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${
|
|
14998
|
+
const error = new Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${""}.`);
|
|
15944
14999
|
logAntError("awsCredentialExport invoked before trust check", error);
|
|
15945
15000
|
logEvent("tengu_awsCredentialExport_missing_trust", {});
|
|
15946
15001
|
return null;
|
|
@@ -16000,7 +15055,7 @@ function isGcpAuthRefreshFromProjectSettings() {
|
|
|
16000
15055
|
}
|
|
16001
15056
|
async function checkGcpCredentialsValid() {
|
|
16002
15057
|
try {
|
|
16003
|
-
const { GoogleAuth } = await import("./chunk-
|
|
15058
|
+
const { GoogleAuth } = await import("./chunk-tezak8rx.js").then((m)=>__toESM(m.default,1));
|
|
16004
15059
|
const auth = new GoogleAuth({
|
|
16005
15060
|
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
|
|
16006
15061
|
});
|
|
@@ -16025,7 +15080,7 @@ async function runGcpAuthRefresh() {
|
|
|
16025
15080
|
if (isGcpAuthRefreshFromProjectSettings()) {
|
|
16026
15081
|
const hasTrust = checkHasTrustDialogAccepted();
|
|
16027
15082
|
if (!hasTrust && !getIsNonInteractiveSession()) {
|
|
16028
|
-
const error = new Error(
|
|
15083
|
+
const error = new Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in .");
|
|
16029
15084
|
logAntError("gcpAuthRefresh invoked before trust check", error);
|
|
16030
15085
|
logEvent("tengu_gcpAuthRefresh_missing_trust", {});
|
|
16031
15086
|
return false;
|
|
@@ -17052,4 +16107,4 @@ var init_client2 = __esm(() => {
|
|
|
17052
16107
|
init_getOauthProfile();
|
|
17053
16108
|
});
|
|
17054
16109
|
|
|
17055
|
-
export { _baseSet_default, init__baseSet, pickBy_default, init_pickBy, isEqual_default, init_isEqual, init_lodash, Chalk, source_default, init_source, sequential, init_sequential, _baseFor_default, init__baseFor, isPlainObject_default, init_isPlainObject, _overRest_default, init__overRest, _setToString_default, init__setToString, detectEncodingForResolvedPath, readFileSyncWithMetadata, readFileSync, init_fileRead, setSessionCache, resetSyncCache, setEligibility, getSettingsPath, getRemoteManagedSettingsSyncFromCache, init_syncCacheState, pathExists, MAX_OUTPUT_SIZE, readFileSafe, getFileModificationTime, getFileModificationTimeAsync, writeTextContent, detectFileEncoding, detectLineEndings, convertLeadingTabsToSpaces, getDisplayPath, findSimilarFile, FILE_NOT_FOUND_CWD_NOTE, suggestPathUnderCwd, isCompactLinePrefixEnabled, addLineNumbers, stripLineNumberPrefix, isDirEmpty, readFileSyncCached, getDesktopPath, isFileWithinReadSizeLimit, normalizePathForComparison, pathsEqual, init_file, isPathGitignored, init_gitignore, SETTING_SOURCES, getSettingSourceName, getSourceDisplayName, getSettingSourceDisplayNameLowercase, getSettingSourceDisplayNameCapitalized, parseSettingSourcesFlag, getEnabledSettingSources, isSettingSourceEnabled, SOURCES, init_constants, consumeInternalWrite, clearInternalWrites, init_internalWrites, getManagedFilePath, getManagedSettingsDropInDir, init_managedPath, BLACK_CIRCLE, TEARDROP_ASTERISK, UP_ARROW, DOWN_ARROW, LIGHTNING_BOLT, EFFORT_LOW, EFFORT_MEDIUM, EFFORT_HIGH, EFFORT_MAX, REFRESH_ARROW, DIAMOND_OPEN, DIAMOND_FILLED, REFERENCE_MARK, BLOCKQUOTE_BAR, BRIDGE_SPINNER_FRAMES, BRIDGE_READY_INDICATOR, BRIDGE_FAILED_INDICATOR, init_figures, permissionModeSchema, externalPermissionModeSchema, isExternalPermissionMode, toExternalPermissionMode, permissionModeFromString, permissionModeTitle, isDefaultMode, permissionModeSymbol, getModeColor, init_PermissionMode, HOOK_EVENTS, init_agentSdkTypes, DEFAULT_HOOK_SHELL, init_shellProvider, HooksSchema, ALLOWED_OFFICIAL_MARKETPLACE_NAMES, isMarketplaceAutoUpdate, validateOfficialNameSource, PluginHooksSchema, LspServerConfigSchema, PluginManifestSchema, isLocalPluginSource, isLocalMarketplaceSource, PluginMarketplaceEntrySchema, PluginMarketplaceSchema, PluginIdSchema, InstalledPluginsFileSchemaV1, InstalledPluginsFileSchemaV2, KnownMarketplacesFileSchema, init_schemas, mcpInfoFromString, getMcpPrefix, buildMcpToolName, getToolNameForPermissionCheck, getMcpDisplayName, extractMcpToolDisplayName, init_mcpStringUtils, AGENT_TOOL_NAME, LEGACY_AGENT_TOOL_NAME, VERIFICATION_AGENT_TYPE, ONE_SHOT_BUILTIN_AGENT_TYPES, init_constants2 as init_constants1, TASK_OUTPUT_TOOL_NAME, init_constants3 as init_constants2, TASK_STOP_TOOL_NAME, DESCRIPTION, init_prompt, normalizeLegacyToolName, getLegacyToolNames, permissionRuleValueFromString, permissionRuleValueToString, init_permissionRuleParser, escapeRegExp, capitalize, plural, firstLineOf, countCharInString, normalizeFullWidthDigits, normalizeFullWidthSpace, safeJoinLines, EndTruncatingAccumulator, truncateToLines, init_stringUtils, CUSTOMIZATION_SURFACES, SettingsSchema, isMcpServerNameEntry, isMcpServerCommandEntry, isMcpServerUrlEntry, init_types2 as init_types, validateSettingsFileContent, init_validation2 as init_validation, startMdmRawRead, init_rawRead, ensureMdmSettingsLoaded, getMdmSettings, getHkcuSettings, setMdmSettingsCache, refreshMdmSettings, init_settings, getManagedFileSettingsPresence, parseSettingsFile, getSettingsRootPathForSource, getSettingsFilePathForSource, getRelativeSettingsFilePathForSource, getSettingsForSource, getPolicySettingsOrigin, updateSettingsForSource, getManagedSettingsKeysForLogging, getInitialSettings, getSettings_DEPRECATED, getSettingsWithSources, getSettingsWithErrors, hasSkipDangerousModePermissionPrompt, hasAutoModeOptIn, rawSettingsContainsKey, init_settings2 as init_settings1, createBedrockRuntimeClient, getInferenceProfileBackingModel, isFoundationModel, getBedrockRegionPrefix, applyBedrockRegionPrefix, init_bedrock, CLAUDE_OPUS_4_6_CONFIG, ALL_MODEL_CONFIGS, init_configs, getAPIProvider, getAPIProviderForStatsig, isFirstPartyAnthropicBaseUrl, init_providers, getModelStrings2 as getModelStrings, ensureModelStringsInitialized, init_modelStrings, hasConsoleBillingAccess, hasClaudeAiBillingAccess, init_billing, getMockHeaderless429Message, getMockHeaders, applyMockHeaders, shouldProcessMockLimits, isMockFastModeRateLimitScenario, checkMockFastModeRateLimit, init_mockRateLimits, getOauthProfileFromApiKey, getOauthProfileFromOauthToken, init_getOauthProfile, shouldUseClaudeAIAuth, parseScopes, buildAuthUrl, exchangeCodeForTokens, refreshOAuthToken, fetchAndStoreUserRoles, createAndStoreApiKey, isOAuthTokenExpired, fetchProfileInfo, getOrganizationUUID, populateOAuthAccountInfoIfNeeded, storeOAuthAccountInfo, init_client2 as init_client, CCR_SESSION_INGRESS_TOKEN_PATH, maybePersistTokenForSubprocesses, readTokenFromWellKnownFile, init_authFileDescriptor, clearKeychainCache, init_macOsKeychainHelpers, normalizeApiKeyForConfig, init_authPortable, isAwsCredentialsProviderError, init_aws, AwsAuthStatusManager, init_awsAuthStatusManager, CONTEXT_1M_BETA_HEADER, CONTEXT_MANAGEMENT_BETA_HEADER, STRUCTURED_OUTPUTS_BETA_HEADER, EFFORT_BETA_HEADER, TASK_BUDGETS_BETA_HEADER, PROMPT_CACHING_SCOPE_BETA_HEADER, FAST_MODE_BETA_HEADER, REDACT_THINKING_BETA_HEADER, AFK_MODE_BETA_HEADER, ADVISOR_BETA_HEADER, VERTEX_COUNT_TOKENS_ALLOWED_BETAS, init_betas, isFastModeEnabled, isFastModeAvailable, getFastModeUnavailableReason, FAST_MODE_MODEL_DISPLAY, getFastModeModel, getInitialFastModeSetting, isFastModeSupportedByModel, onCooldownTriggered, onCooldownExpired, getFastModeRuntimeState, triggerFastModeCooldown, clearFastModeCooldown, handleFastModeRejectedByAPI, onFastModeOverageRejection, handleFastModeOverageRejection, isFastModeCooldown, getFastModeState, onOrgFastModeChanged, resolveFastModeStatusFromCache, prefetchFastModeStatus, init_fastMode, COST_TIER_3_15, COST_HAIKU_35, COST_HAIKU_45, getOpus46CostTier, MODEL_COSTS, calculateUSDCost, formatModelPricing, init_modelCost, MODEL_ALIASES, init_aliases, isModelAllowed, init_modelAllowlist, getSmallFastModel, isNonCustomOpusModel, getUserSpecifiedModelSetting, getMainLoopModel, getBestModel, getDefaultOpusModel, getDefaultSonnetModel, getDefaultHaikuModel, getRuntimeMainLoopModel, getDefaultMainLoopModelSetting, getDefaultMainLoopModel, firstPartyNameToCanonical, getCanonicalName, getClaudeAiUserDefaultModelDescription, renderDefaultModelSetting, getOpus46PricingSuffix, isOpus1mMergeEnabled, renderModelSetting, getPublicModelDisplayName, renderModelName, getPublicModelName, parseUserSpecifiedModel, resolveSkillModelOverride, isLegacyModelRemapEnabled, modelDisplayString, getMarketingNameForModel, normalizeModelStringForAPI, init_model, getAnthropicClient, CLIENT_REQUEST_ID_HEADER, init_client as init_client1, refreshModelCapabilities, init_modelCapabilities, COMPACT_MAX_OUTPUT_TOKENS, CAPPED_DEFAULT_MAX_TOKENS, ESCALATED_MAX_TOKENS, is1mContextDisabled, has1mContext, getContextWindowForModel, getSonnet1mExpTreatmentEnabled, calculateContextPercentages, getModelMaxOutputTokens, getMaxThinkingTokensForModel, init_context, get3PModelCapabilityOverride, init_modelSupportOverrides, filterAllowedSdkBetas, modelSupportsStructuredOutputs, modelSupportsAutoMode, getToolSearchBetaHeader, shouldIncludeFirstPartyOnlyBetas, shouldUseGlobalCacheScope, getModelBetas, getBedrockExtraBodyParamsBetas, getMergedBetas, clearBetasCaches, init_betas2 as init_betas1, isMacOsKeychainLocked, init_macOsKeychainStorage, getSecureStorage, init_secureStorage, startKeychainPrefetch, ensureKeychainPrefetchCompleted, init_keychainPrefetch, sleep, init_sleep, getToolSchemaCache, clearToolSchemaCache, init_toolSchemaCache, isAnthropicAuthEnabled, getAuthTokenSource, getAnthropicApiKey, hasAnthropicApiKeyAuth, getAnthropicApiKeyWithSource, getConfiguredApiKeyHelper, isAwsAuthRefreshFromProjectSettings, isAwsCredentialExportFromProjectSettings, calculateApiKeyHelperTTL, getApiKeyHelperElapsedMs, getApiKeyFromApiKeyHelper, getApiKeyFromApiKeyHelperCached, clearApiKeyHelperCache, prefetchApiKeyFromApiKeyHelperIfSafe, refreshAwsAuth, refreshAndGetAwsCredentials, clearAwsCredentialsCache, isGcpAuthRefreshFromProjectSettings, checkGcpCredentialsValid, refreshGcpAuth, refreshGcpCredentialsIfNeeded, clearGcpCredentialsCache, prefetchGcpCredentialsIfSafe, prefetchAwsCredentialsAndBedRockInfoIfSafe, getApiKeyFromConfigOrMacOSKeychain, saveApiKey, isCustomApiKeyApproved, removeApiKey, saveOAuthTokensIfNeeded, getClaudeAIOAuthTokens, clearOAuthTokenCache, handleOAuth401Error, getClaudeAIOAuthTokensAsync, checkAndRefreshOAuthTokenIfNeeded, isClaudeAISubscriber, hasProfileScope, is1PApiCustomer, getOauthAccountInfo, isOverageProvisioningAllowed, hasOpusAccess, getSubscriptionType, isMaxSubscriber, isTeamSubscriber, isTeamPremiumSubscriber, isEnterpriseSubscriber, isProSubscriber, getRateLimitTier, getSubscriptionName, isUsing3PServices, isOtelHeadersHelperFromProjectOrLocalSettings, getOtelHeadersFromHelper, isConsumerSubscriber, getAccountInformation, validateForceLoginOrg, exports_auth, init_auth2 as init_auth, getClaudeCodeUserAgent, init_userAgent, WORKLOAD_CRON, getWorkload, runWithWorkload, init_workloadContext, getUserAgent, getMCPUserAgent, getWebFetchUserAgent, getAuthHeaders, withOAuth401Retry, init_http, initUser, resetUserCache, getGitEmail, init_user, logs, init_esm2 as init_esm, LoggerProvider, ConsoleLogRecordExporter, BatchLogRecordProcessor, init_esm3 as init_esm1, isAnalyticsDisabled, isFeedbackSurveyDisabled, init_config2 as init_config, isProcessRunning, getAncestorPidsAsync, getProcessCommand, init_genericProcessUtils, initJetBrainsDetection, envDynamic, init_envDynamic, prefetchOfficialMcpUrls, init_officialRegistry, isAgentSwarmsEnabled, init_agentSwarmsEnabled, getAgentContext, runWithAgentContext, getSubagentLogName, consumeInvokingRequestId, init_agentContext, sanitizeToolNameForAnalytics, isToolDetailsLoggingEnabled, mcpToolDetailsForAnalytics, extractMcpToolDetails, extractSkillName, extractToolInputForTelemetry, getFileExtensionForAnalytics, getFileExtensionsFromBashCommand, getEventMetadata, init_metadata, isSinkKilled, init_sinkKillswitch, getEventSamplingConfig, shouldSampleEvent, shutdown1PEventLogging, is1PEventLoggingEnabled, logEventTo1P, logGrowthBookExperimentTo1P, initialize1PEventLogging, reinitialize1PEventLoggingIfConfigChanged, init_firstPartyEventLogger, onGrowthBookRefresh, hasGrowthBookEnvOverride, getAllGrowthBookFeatures, getGrowthBookConfigOverrides, setGrowthBookConfigOverride, clearGrowthBookConfigOverrides, getApiBaseUrlHost, initializeGrowthBook, getFeatureValue_DEPRECATED, getFeatureValue_CACHED_MAY_BE_STALE, getFeatureValue_CACHED_WITH_REFRESH, checkStatsigFeatureGate_CACHED_MAY_BE_STALE, checkSecurityRestrictionGate, checkGate_CACHED_OR_BLOCKING, refreshGrowthBookAfterAuthChange, resetGrowthBook, refreshGrowthBookFeatures, setupPeriodicGrowthBookRefresh, stopPeriodicGrowthBookRefresh, getDynamicConfig_BLOCKS_ON_INIT, getDynamicConfig_CACHED_MAY_BE_STALE, init_growthbook, isAutoMemoryEnabled, getMemoryBaseDir, hasAutoMemPathOverride, getAutoMemPath, getAutoMemEntrypoint, isAutoMemPath, init_paths, NOTIFICATION_CHANNELS, EDITOR_MODES, TEAMMATE_MODES, init_configConstants, DEFAULT_GLOBAL_CONFIG, GLOBAL_CONFIG_KEYS, isGlobalConfigKey, PROJECT_CONFIG_KEYS, resetTrustDialogAcceptedCacheForTesting, checkHasTrustDialogAccepted, isPathTrusted, isProjectConfigKey, saveGlobalConfig, getGlobalConfigWriteCount, CONFIG_WRITE_DISPLAY_THRESHOLD, getGlobalConfig, getRemoteControlAtStartup, getCustomApiKeyStatus, enableConfigs, getProjectPathForConfig, getCurrentProjectConfig, saveCurrentProjectConfig, isAutoUpdaterDisabled, shouldSkipPluginAutoupdate, formatAutoUpdaterDisabledReason, getAutoUpdaterDisabledReason, getOrCreateUserID, recordFirstStartTime, getMemoryPath, getManagedClaudeRulesDir, getUserClaudeRulesDir, _getConfigForTesting, _wouldLoseAuthStateForTesting, _setGlobalConfigCacheForTesting, init_config as init_config1 };
|
|
16110
|
+
export { _baseSet_default, init__baseSet, pickBy_default, init_pickBy, isEqual_default, init_isEqual, init_lodash, sequential, init_sequential, _baseFor_default, init__baseFor, isPlainObject_default, init_isPlainObject, _overRest_default, init__overRest, _setToString_default, init__setToString, detectEncodingForResolvedPath, readFileSyncWithMetadata, readFileSync, init_fileRead, setSessionCache, resetSyncCache, setEligibility, getSettingsPath, getRemoteManagedSettingsSyncFromCache, init_syncCacheState, pathExists, MAX_OUTPUT_SIZE, readFileSafe, getFileModificationTime, getFileModificationTimeAsync, writeTextContent, detectFileEncoding, detectLineEndings, convertLeadingTabsToSpaces, getDisplayPath, findSimilarFile, FILE_NOT_FOUND_CWD_NOTE, suggestPathUnderCwd, isCompactLinePrefixEnabled, addLineNumbers, stripLineNumberPrefix, isDirEmpty, readFileSyncCached, getDesktopPath, isFileWithinReadSizeLimit, normalizePathForComparison, pathsEqual, init_file, isPathGitignored, init_gitignore, SETTING_SOURCES, getSettingSourceName, getSourceDisplayName, getSettingSourceDisplayNameLowercase, getSettingSourceDisplayNameCapitalized, parseSettingSourcesFlag, getEnabledSettingSources, isSettingSourceEnabled, SOURCES, init_constants, consumeInternalWrite, clearInternalWrites, init_internalWrites, getManagedFilePath, getManagedSettingsDropInDir, init_managedPath, BLACK_CIRCLE, BULLET_OPERATOR, TEARDROP_ASTERISK, UP_ARROW, DOWN_ARROW, LIGHTNING_BOLT, EFFORT_LOW, EFFORT_MEDIUM, EFFORT_HIGH, EFFORT_MAX, PLAY_ICON, PAUSE_ICON, REFRESH_ARROW, DIAMOND_OPEN, DIAMOND_FILLED, REFERENCE_MARK, FLAG_ICON, BLOCKQUOTE_BAR, BRIDGE_READY_INDICATOR, BRIDGE_FAILED_INDICATOR, init_figures, EXTERNAL_PERMISSION_MODES, PERMISSION_MODES, init_permissions, permissionModeSchema, externalPermissionModeSchema, isExternalPermissionMode, toExternalPermissionMode, permissionModeFromString, permissionModeTitle, isDefaultMode, permissionModeSymbol, getModeColor, init_PermissionMode, HOOK_EVENTS, init_agentSdkTypes, DEFAULT_HOOK_SHELL, init_shellProvider, HooksSchema, ALLOWED_OFFICIAL_MARKETPLACE_NAMES, isMarketplaceAutoUpdate, validateOfficialNameSource, PluginHooksSchema, LspServerConfigSchema, PluginManifestSchema, isLocalPluginSource, isLocalMarketplaceSource, PluginMarketplaceEntrySchema, PluginMarketplaceSchema, PluginIdSchema, InstalledPluginsFileSchemaV1, InstalledPluginsFileSchemaV2, KnownMarketplacesFileSchema, init_schemas, mcpInfoFromString, getMcpPrefix, buildMcpToolName, getToolNameForPermissionCheck, getMcpDisplayName, extractMcpToolDisplayName, init_mcpStringUtils, AGENT_TOOL_NAME, LEGACY_AGENT_TOOL_NAME, VERIFICATION_AGENT_TYPE, ONE_SHOT_BUILTIN_AGENT_TYPES, init_constants2 as init_constants1, TASK_OUTPUT_TOOL_NAME, init_constants3 as init_constants2, TASK_STOP_TOOL_NAME, DESCRIPTION, init_prompt, BRIEF_TOOL_NAME, LEGACY_BRIEF_TOOL_NAME, DESCRIPTION2 as DESCRIPTION1, BRIEF_TOOL_PROMPT, exports_prompt, init_prompt2 as init_prompt1, normalizeLegacyToolName, getLegacyToolNames, permissionRuleValueFromString, permissionRuleValueToString, init_permissionRuleParser, escapeRegExp, capitalize, plural, firstLineOf, countCharInString, normalizeFullWidthDigits, normalizeFullWidthSpace, safeJoinLines, EndTruncatingAccumulator, truncateToLines, init_stringUtils, CUSTOMIZATION_SURFACES, SettingsSchema, isMcpServerNameEntry, isMcpServerCommandEntry, isMcpServerUrlEntry, init_types2 as init_types, validateSettingsFileContent, init_validation2 as init_validation, startMdmRawRead, init_rawRead, ensureMdmSettingsLoaded, getMdmSettings, getHkcuSettings, setMdmSettingsCache, refreshMdmSettings, init_settings, getManagedFileSettingsPresence, parseSettingsFile, getSettingsRootPathForSource, getSettingsFilePathForSource, getRelativeSettingsFilePathForSource, getSettingsForSource, getPolicySettingsOrigin, updateSettingsForSource, getManagedSettingsKeysForLogging, getInitialSettings, getSettings_DEPRECATED, getSettingsWithSources, getSettingsWithErrors, hasSkipDangerousModePermissionPrompt, hasAutoModeOptIn, rawSettingsContainsKey, init_settings2 as init_settings1, createBedrockRuntimeClient, getInferenceProfileBackingModel, isFoundationModel, getBedrockRegionPrefix, applyBedrockRegionPrefix, init_bedrock, CLAUDE_OPUS_4_6_CONFIG, ALL_MODEL_CONFIGS, init_configs, getAPIProvider, getAPIProviderForStatsig, isFirstPartyAnthropicBaseUrl, init_providers, getModelStrings2 as getModelStrings, ensureModelStringsInitialized, init_modelStrings, hasConsoleBillingAccess, hasClaudeAiBillingAccess, init_billing, getMockHeaderless429Message, getMockHeaders, applyMockHeaders, shouldProcessMockLimits, isMockFastModeRateLimitScenario, checkMockFastModeRateLimit, init_mockRateLimits, getOauthProfileFromApiKey, getOauthProfileFromOauthToken, init_getOauthProfile, shouldUseClaudeAIAuth, parseScopes, buildAuthUrl, exchangeCodeForTokens, refreshOAuthToken, fetchAndStoreUserRoles, createAndStoreApiKey, isOAuthTokenExpired, fetchProfileInfo, getOrganizationUUID, populateOAuthAccountInfoIfNeeded, storeOAuthAccountInfo, init_client2 as init_client, CCR_SESSION_INGRESS_TOKEN_PATH, maybePersistTokenForSubprocesses, readTokenFromWellKnownFile, init_authFileDescriptor, clearKeychainCache, init_macOsKeychainHelpers, normalizeApiKeyForConfig, init_authPortable, isAwsCredentialsProviderError, init_aws, AwsAuthStatusManager, init_awsAuthStatusManager, CONTEXT_1M_BETA_HEADER, CONTEXT_MANAGEMENT_BETA_HEADER, STRUCTURED_OUTPUTS_BETA_HEADER, EFFORT_BETA_HEADER, TASK_BUDGETS_BETA_HEADER, PROMPT_CACHING_SCOPE_BETA_HEADER, FAST_MODE_BETA_HEADER, REDACT_THINKING_BETA_HEADER, AFK_MODE_BETA_HEADER, ADVISOR_BETA_HEADER, VERTEX_COUNT_TOKENS_ALLOWED_BETAS, init_betas, getAntModelOverrideConfig, getAntModels, resolveAntModel, init_antModels, isFastModeEnabled, isFastModeAvailable, getFastModeUnavailableReason, FAST_MODE_MODEL_DISPLAY, getFastModeModel, getInitialFastModeSetting, isFastModeSupportedByModel, onCooldownTriggered, onCooldownExpired, getFastModeRuntimeState, triggerFastModeCooldown, clearFastModeCooldown, handleFastModeRejectedByAPI, onFastModeOverageRejection, handleFastModeOverageRejection, isFastModeCooldown, getFastModeState, onOrgFastModeChanged, resolveFastModeStatusFromCache, prefetchFastModeStatus, init_fastMode, COST_TIER_3_15, COST_HAIKU_35, COST_HAIKU_45, getOpus46CostTier, MODEL_COSTS, calculateUSDCost, formatModelPricing, init_modelCost, MODEL_ALIASES, init_aliases, isModelAllowed, init_modelAllowlist, getSmallFastModel, isNonCustomOpusModel, getUserSpecifiedModelSetting, getMainLoopModel, getBestModel, getDefaultOpusModel, getDefaultSonnetModel, getDefaultHaikuModel, getRuntimeMainLoopModel, getDefaultMainLoopModelSetting, getDefaultMainLoopModel, firstPartyNameToCanonical, getCanonicalName, getClaudeAiUserDefaultModelDescription, renderDefaultModelSetting, getOpus46PricingSuffix, isOpus1mMergeEnabled, renderModelSetting, getPublicModelDisplayName, renderModelName, getPublicModelName, parseUserSpecifiedModel, resolveSkillModelOverride, isLegacyModelRemapEnabled, modelDisplayString, getMarketingNameForModel, normalizeModelStringForAPI, init_model, getAnthropicClient, CLIENT_REQUEST_ID_HEADER, init_client as init_client1, refreshModelCapabilities, init_modelCapabilities, COMPACT_MAX_OUTPUT_TOKENS, CAPPED_DEFAULT_MAX_TOKENS, ESCALATED_MAX_TOKENS, is1mContextDisabled, has1mContext, getContextWindowForModel, getSonnet1mExpTreatmentEnabled, calculateContextPercentages, getModelMaxOutputTokens, getMaxThinkingTokensForModel, init_context, get3PModelCapabilityOverride, init_modelSupportOverrides, filterAllowedSdkBetas, modelSupportsStructuredOutputs, modelSupportsAutoMode, getToolSearchBetaHeader, shouldIncludeFirstPartyOnlyBetas, shouldUseGlobalCacheScope, getModelBetas, getBedrockExtraBodyParamsBetas, getMergedBetas, clearBetasCaches, init_betas2 as init_betas1, isMacOsKeychainLocked, init_macOsKeychainStorage, getSecureStorage, init_secureStorage, startKeychainPrefetch, ensureKeychainPrefetchCompleted, init_keychainPrefetch, getToolSchemaCache, clearToolSchemaCache, init_toolSchemaCache, isAnthropicAuthEnabled, getAuthTokenSource, getAnthropicApiKey, hasAnthropicApiKeyAuth, getAnthropicApiKeyWithSource, getConfiguredApiKeyHelper, isAwsAuthRefreshFromProjectSettings, isAwsCredentialExportFromProjectSettings, calculateApiKeyHelperTTL, getApiKeyHelperElapsedMs, getApiKeyFromApiKeyHelper, getApiKeyFromApiKeyHelperCached, clearApiKeyHelperCache, prefetchApiKeyFromApiKeyHelperIfSafe, refreshAwsAuth, refreshAndGetAwsCredentials, clearAwsCredentialsCache, isGcpAuthRefreshFromProjectSettings, checkGcpCredentialsValid, refreshGcpAuth, refreshGcpCredentialsIfNeeded, clearGcpCredentialsCache, prefetchGcpCredentialsIfSafe, prefetchAwsCredentialsAndBedRockInfoIfSafe, getApiKeyFromConfigOrMacOSKeychain, saveApiKey, isCustomApiKeyApproved, removeApiKey, saveOAuthTokensIfNeeded, getClaudeAIOAuthTokens, clearOAuthTokenCache, handleOAuth401Error, getClaudeAIOAuthTokensAsync, checkAndRefreshOAuthTokenIfNeeded, isClaudeAISubscriber, hasProfileScope, is1PApiCustomer, getOauthAccountInfo, isOverageProvisioningAllowed, hasOpusAccess, getSubscriptionType, isMaxSubscriber, isTeamSubscriber, isTeamPremiumSubscriber, isEnterpriseSubscriber, isProSubscriber, getRateLimitTier, getSubscriptionName, isUsing3PServices, isOtelHeadersHelperFromProjectOrLocalSettings, getOtelHeadersFromHelper, isConsumerSubscriber, getAccountInformation, validateForceLoginOrg, exports_auth, init_auth2 as init_auth, getClaudeCodeUserAgent, init_userAgent, WORKLOAD_CRON, getWorkload, runWithWorkload, init_workloadContext, getUserAgent, getMCPUserAgent, getWebFetchUserAgent, getAuthHeaders, withOAuth401Retry, init_http, initUser, resetUserCache, getGitEmail, init_user, require_src5 as require_src, LoggerProvider, ConsoleLogRecordExporter, BatchLogRecordProcessor, init_esm2 as init_esm, isAnalyticsDisabled, isFeedbackSurveyDisabled, init_config2 as init_config, isProcessRunning, getAncestorPidsAsync, getProcessCommand, init_genericProcessUtils, initJetBrainsDetection, envDynamic, init_envDynamic, prefetchOfficialMcpUrls, init_officialRegistry, isAgentSwarmsEnabled, init_agentSwarmsEnabled, getAgentContext, runWithAgentContext, getSubagentLogName, consumeInvokingRequestId, init_agentContext, sanitizeToolNameForAnalytics, isToolDetailsLoggingEnabled, mcpToolDetailsForAnalytics, extractMcpToolDetails, extractSkillName, extractToolInputForTelemetry, getFileExtensionForAnalytics, getFileExtensionsFromBashCommand, getEventMetadata, init_metadata, isSinkKilled, init_sinkKillswitch, getEventSamplingConfig, shouldSampleEvent, shutdown1PEventLogging, is1PEventLoggingEnabled, logEventTo1P, logGrowthBookExperimentTo1P, initialize1PEventLogging, reinitialize1PEventLoggingIfConfigChanged, init_firstPartyEventLogger, onGrowthBookRefresh, hasGrowthBookEnvOverride, getAllGrowthBookFeatures, getGrowthBookConfigOverrides, setGrowthBookConfigOverride, clearGrowthBookConfigOverrides, getApiBaseUrlHost, initializeGrowthBook, getFeatureValue_DEPRECATED, getFeatureValue_CACHED_MAY_BE_STALE, getFeatureValue_CACHED_WITH_REFRESH, checkStatsigFeatureGate_CACHED_MAY_BE_STALE, checkSecurityRestrictionGate, checkGate_CACHED_OR_BLOCKING, refreshGrowthBookAfterAuthChange, resetGrowthBook, refreshGrowthBookFeatures, setupPeriodicGrowthBookRefresh, stopPeriodicGrowthBookRefresh, getDynamicConfig_BLOCKS_ON_INIT, getDynamicConfig_CACHED_MAY_BE_STALE, init_growthbook, isAutoMemoryEnabled, isExtractModeActive, getMemoryBaseDir, hasAutoMemPathOverride, getAutoMemPath, getAutoMemEntrypoint, isAutoMemPath, init_paths, NOTIFICATION_CHANNELS, EDITOR_MODES, TEAMMATE_MODES, init_configConstants, DEFAULT_GLOBAL_CONFIG, GLOBAL_CONFIG_KEYS, isGlobalConfigKey, PROJECT_CONFIG_KEYS, resetTrustDialogAcceptedCacheForTesting, checkHasTrustDialogAccepted, isPathTrusted, isProjectConfigKey, saveGlobalConfig, getGlobalConfigWriteCount, CONFIG_WRITE_DISPLAY_THRESHOLD, getGlobalConfig, getRemoteControlAtStartup, getCustomApiKeyStatus, enableConfigs, getProjectPathForConfig, getCurrentProjectConfig, saveCurrentProjectConfig, isAutoUpdaterDisabled, shouldSkipPluginAutoupdate, formatAutoUpdaterDisabledReason, getAutoUpdaterDisabledReason, getOrCreateUserID, recordFirstStartTime, getMemoryPath, getManagedClaudeRulesDir, getUserClaudeRulesDir, _getConfigForTesting, _wouldLoseAuthStateForTesting, _setGlobalConfigCacheForTesting, init_config as init_config1 };
|