claude-code-best 1.8.0 → 1.9.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 +30 -29
- package/dist/{chunk-hph307n4.js → chunk-03v6skhg.js} +26 -26
- package/dist/{chunk-vank0acb.js → chunk-040fs3bs.js} +3 -3
- package/dist/chunk-04tm5tgb.js +129 -0
- package/dist/{chunk-ewfnr2kc.js → chunk-07t4kz2e.js} +63 -56
- package/dist/{chunk-dmsneaaq.js → chunk-0bmy4kjm.js} +1 -1
- package/dist/{chunk-07hme8g1.js → chunk-0j5m6c68.js} +3 -3
- package/dist/{chunk-8rvn67de.js → chunk-0rbwrjqk.js} +66 -59
- package/dist/{chunk-c0fka9kt.js → chunk-0rd853rs.js} +63 -56
- package/dist/{chunk-ec9bfefg.js → chunk-0rjgkz6a.js} +3 -3
- package/dist/{chunk-t3jsc3b4.js → chunk-0rjxhydk.js} +65 -58
- package/dist/{chunk-k3h49w53.js → chunk-0s5rp3xp.js} +2 -2
- package/dist/{chunk-bgc5qnd6.js → chunk-0sz4ykc8.js} +19 -12
- package/dist/chunk-0v61f8bw.js +28 -0
- package/dist/{chunk-8wn7137w.js → chunk-0xbnw7e9.js} +2 -2
- package/dist/{chunk-26naqvnf.js → chunk-11q4j70f.js} +5 -5
- package/dist/{chunk-6b6pv595.js → chunk-12yhesm9.js} +2 -2
- package/dist/chunk-19sabysw.js +122 -0
- package/dist/{chunk-qszmebqw.js → chunk-1bn94cge.js} +2 -2
- package/dist/chunk-1cmzf5f7.js +37 -0
- package/dist/{chunk-za24x8e6.js → chunk-1dh9y2g9.js} +306 -151
- package/dist/{chunk-ns5ckn0j.js → chunk-1fexraxj.js} +1 -1
- package/dist/{chunk-r87w8r5v.js → chunk-1mrw14pd.js} +7 -7
- package/dist/chunk-1qzt23et.js +8 -0
- package/dist/chunk-1z9bmera.js +8 -0
- package/dist/{chunk-20tkh843.js → chunk-221qh3ba.js} +63 -56
- package/dist/{chunk-x4azk52n.js → chunk-2501y0qn.js} +21 -21
- package/dist/{chunk-tkwtc12m.js → chunk-26bxxwf6.js} +4 -4
- package/dist/{chunk-jwa7qf81.js → chunk-27hsrkpd.js} +4 -4
- package/dist/{chunk-ab8ddz4h.js → chunk-2by46aay.js} +9 -9
- package/dist/{chunk-jgdm5p7t.js → chunk-2cyjtt9z.js} +2 -2
- package/dist/{chunk-enq2chfq.js → chunk-2e6jz0ej.js} +3 -3
- package/dist/{chunk-7vp42apg.js → chunk-2nvs8639.js} +64 -57
- package/dist/{chunk-n9p0ss91.js → chunk-2pr8dmkw.js} +1565 -749
- package/dist/{chunk-yspxy3e8.js → chunk-2q1gcvk9.js} +10 -10
- package/dist/{chunk-0y082g7m.js → chunk-2q7ww4pa.js} +42 -42
- package/dist/chunk-2qg5ewk3.js +207 -0
- package/dist/chunk-2t26mfb1.js +80 -0
- package/dist/{chunk-x916qx2c.js → chunk-2wa6knad.js} +64 -57
- package/dist/chunk-2xcczxbp.js +128 -0
- package/dist/{chunk-y3f0q1yz.js → chunk-2y22jqr5.js} +9 -9
- package/dist/chunk-37c07frr.js +94 -0
- package/dist/{chunk-2f1k60ye.js → chunk-399dvtfq.js} +159 -59
- package/dist/chunk-3f8xw8t7.js +26 -0
- package/dist/{chunk-wm3yj6z2.js → chunk-3g9nhh30.js} +2 -2
- package/dist/chunk-3gbmfs3p.js +140 -0
- package/dist/{chunk-nwg30c8d.js → chunk-3gttavbe.js} +34 -44
- package/dist/chunk-3pk2fc73.js +514 -0
- package/dist/{chunk-p90f2nc9.js → chunk-3sag2vww.js} +20 -20
- package/dist/{chunk-7v0fvjcw.js → chunk-3skmxk2y.js} +63 -56
- package/dist/{chunk-caey4y8f.js → chunk-3t4w9ysv.js} +11 -11
- package/dist/{chunk-c81hswwd.js → chunk-3wt9ytsw.js} +6 -6
- package/dist/{chunk-03geymck.js → chunk-3ymerb20.js} +64 -57
- package/dist/{chunk-r4v9t688.js → chunk-3z4dcst0.js} +22 -22
- package/dist/{chunk-krrxrzr4.js → chunk-40n35nr8.js} +63 -56
- package/dist/{chunk-7d11053z.js → chunk-42176dsb.js} +2 -2
- package/dist/{chunk-z3q0mr1s.js → chunk-434mgf3p.js} +63 -56
- package/dist/{chunk-cfxan8nc.js → chunk-48ef3q17.js} +65 -58
- package/dist/{chunk-7rzk7d37.js → chunk-4c843krn.js} +25 -9
- package/dist/chunk-4f3pde4x.js +583 -0
- package/dist/{chunk-s17095ng.js → chunk-4h87abvn.js} +22 -22
- package/dist/chunk-4k37jfk7.js +342 -0
- package/dist/{chunk-brjsspt6.js → chunk-4qzt1dqf.js} +21 -21
- package/dist/{chunk-sckpstmv.js → chunk-5175g5we.js} +64 -57
- package/dist/{chunk-x9w1bv4a.js → chunk-59m2hkn3.js} +5 -5
- package/dist/{chunk-4bkr7cdb.js → chunk-5k004pfz.js} +21 -21
- package/dist/chunk-5q9cm9at.js +195 -0
- package/dist/{chunk-b3v7tk69.js → chunk-5w9eevss.js} +1 -1
- package/dist/{chunk-t5ywz5f9.js → chunk-5wsx54ya.js} +66 -59
- package/dist/{chunk-4fghnb4h.js → chunk-64m2p0fr.js} +1 -1
- package/dist/{chunk-05dy61pz.js → chunk-67f16jpf.js} +14 -25
- package/dist/chunk-6c6kdarp.js +226 -0
- package/dist/{chunk-jkpnx6d7.js → chunk-6f8rdjpr.js} +2 -2
- package/dist/{chunk-rf16rpg8.js → chunk-6h2zne6a.js} +14 -8
- package/dist/{chunk-qgvhan2t.js → chunk-6mb3gprt.js} +63 -56
- package/dist/chunk-6phbkzpx.js +347 -0
- package/dist/{chunk-mp9vfdcd.js → chunk-6q7v03rd.js} +1 -1
- package/dist/{chunk-sbzpht0c.js → chunk-6veqdcnr.js} +1 -1
- package/dist/{chunk-7bsrkxhf.js → chunk-6xnyvynx.js} +63 -56
- package/dist/{chunk-8atss5rz.js → chunk-70ftrmj8.js} +7 -7
- package/dist/{chunk-2baftj07.js → chunk-73bv553k.js} +71 -64
- package/dist/{chunk-x9jtstht.js → chunk-73yp3q0h.js} +18 -16
- package/dist/{chunk-1kq0x8dz.js → chunk-75hd7k1p.js} +14 -10
- package/dist/{chunk-pzrjj7h0.js → chunk-79bf1qvf.js} +5 -5
- package/dist/{chunk-pm491jb5.js → chunk-7at6y3z2.js} +3 -3
- package/dist/chunk-7dv9n7ge.js +91 -0
- package/dist/{chunk-47jk53ef.js → chunk-7f2k1ddn.js} +2 -2
- package/dist/{chunk-3y5jpqdf.js → chunk-7j7fbmf2.js} +8 -8
- package/dist/{chunk-wgcj2cgs.js → chunk-7jx306p8.js} +20 -20
- package/dist/{chunk-fgs4axa8.js → chunk-7mer0e9z.js} +20 -20
- package/dist/{chunk-yancgz33.js → chunk-7napdtem.js} +22 -22
- package/dist/{chunk-hzam3v9n.js → chunk-816j64jc.js} +5 -5
- package/dist/{chunk-dvw8byhq.js → chunk-8450evyk.js} +1 -1
- package/dist/{chunk-9f3x4r07.js → chunk-899vev03.js} +6 -6
- package/dist/{chunk-5e8w9mhp.js → chunk-8ktgxh4r.js} +5 -5
- package/dist/{chunk-6as82hge.js → chunk-8kzqyyjd.js} +1 -1
- package/dist/{chunk-ebhvnagj.js → chunk-8qraqb46.js} +2 -2
- package/dist/{chunk-h7cp4wy3.js → chunk-8rpvgrmr.js} +64 -57
- package/dist/{chunk-awhw6wp5.js → chunk-8scfbgn7.js} +137 -92
- package/dist/chunk-8vwc039q.js +94 -0
- package/dist/{chunk-8qrr3jhc.js → chunk-906fcbs0.js} +10 -10
- package/dist/{chunk-r6hgmetw.js → chunk-91xvmecy.js} +20 -20
- package/dist/{chunk-j65n711w.js → chunk-94w3b0ds.js} +3 -3
- package/dist/{chunk-temejnge.js → chunk-968vbp44.js} +4 -4
- package/dist/chunk-98n19k9z.js +136 -0
- package/dist/chunk-99qkqkb3.js +126 -0
- package/dist/{chunk-vyhzvqzc.js → chunk-9b41k3g2.js} +4 -4
- package/dist/{chunk-y6jp6ajk.js → chunk-9cg1cswh.js} +64 -57
- package/dist/{chunk-24dgse44.js → chunk-9d7dhwhn.js} +3 -3
- package/dist/chunk-9h87btmg.js +123 -0
- package/dist/{chunk-5gvt170a.js → chunk-9mvk4gyw.js} +1 -1
- package/dist/{chunk-3x9ewb0c.js → chunk-9nqj2261.js} +2 -2
- package/dist/{chunk-mt1zbwpm.js → chunk-9q44k0j3.js} +21 -21
- package/dist/{chunk-vn6fxqtx.js → chunk-9qa0wks3.js} +64 -57
- package/dist/chunk-9qfgk3ey.js +203 -0
- package/dist/{chunk-svkdak63.js → chunk-9s6wjjgc.js} +6 -6
- package/dist/{chunk-3rdscn7v.js → chunk-9sezj2s0.js} +10 -10
- package/dist/chunk-9sq8hkpk.js +8 -0
- package/dist/{chunk-pstn17ps.js → chunk-9txcrk0d.js} +69 -62
- package/dist/{chunk-pzzr97ff.js → chunk-9w4zt45w.js} +22 -22
- package/dist/{chunk-jvq0h0fq.js → chunk-9wm27ekn.js} +3 -3
- package/dist/{chunk-2x9v6ryw.js → chunk-9z8x61ch.js} +5 -3
- package/dist/{chunk-e1awvmbq.js → chunk-a0kvb5h1.js} +6 -6
- package/dist/{chunk-zzwvnewd.js → chunk-a1gr9gv9.js} +11 -11
- package/dist/{chunk-7w71dt0w.js → chunk-a2yz9sk4.js} +19 -4
- package/dist/{chunk-kh3eed6x.js → chunk-a6a879pe.js} +6 -6
- package/dist/{chunk-h724wqmb.js → chunk-a8ea1qyx.js} +63 -56
- package/dist/chunk-ab9h55e7.js +27 -0
- package/dist/{chunk-m2akjkdt.js → chunk-abcmnpw1.js} +6118 -2774
- package/dist/{chunk-rqf8xzbe.js → chunk-acad1ptb.js} +1 -1
- package/dist/chunk-aggcq5pt.js +13 -0
- package/dist/{chunk-tqgr4vfr.js → chunk-apefr3y8.js} +32 -32
- package/dist/{chunk-8g20wmye.js → chunk-argtwy1f.js} +5 -5
- package/dist/{chunk-evqj01ne.js → chunk-as6qggjr.js} +66 -59
- package/dist/{chunk-rfk6dz01.js → chunk-avv2r6q3.js} +6 -6
- package/dist/{chunk-v0bnnvkk.js → chunk-awxdzm87.js} +63 -56
- package/dist/chunk-azs4mq8s.js +185 -0
- package/dist/{chunk-8axk7tcz.js → chunk-b1tg76s0.js} +26 -26
- package/dist/chunk-b2meyyfn.js +126 -0
- package/dist/{chunk-6g935wma.js → chunk-b34nmtsh.js} +3 -3
- package/dist/chunk-b52gqznc.js +41 -0
- package/dist/{chunk-jejc5yrq.js → chunk-b607fyhm.js} +21 -21
- package/dist/{chunk-05qw4srn.js → chunk-bbnnxn7n.js} +63 -56
- package/dist/{chunk-1aaad6af.js → chunk-bc7vdtyx.js} +2 -2
- package/dist/{chunk-pj7pgttc.js → chunk-bd8h3bdx.js} +63 -56
- package/dist/{chunk-stfjvnbc.js → chunk-bedpg2b2.js} +19 -96
- package/dist/{chunk-zzn4hdgx.js → chunk-bftqj0aq.js} +64 -57
- package/dist/{chunk-17h7bnca.js → chunk-bn35xrzj.js} +7 -7
- package/dist/{chunk-tegg6r4t.js → chunk-bn99g0q6.js} +1 -1
- package/dist/{chunk-3hvpadv2.js → chunk-bqt5ykf8.js} +21 -21
- package/dist/{chunk-954x38qh.js → chunk-bvr12bqd.js} +3 -3
- package/dist/chunk-c12prd7j.js +127 -0
- package/dist/{chunk-ck7414y9.js → chunk-c14fx8xd.js} +63 -56
- package/dist/{chunk-v292vhrx.js → chunk-c26ntdxv.js} +5 -5
- package/dist/chunk-c2tvdak4.js +358 -0
- package/dist/chunk-c5mmqz6b.js +128 -0
- package/dist/chunk-cbd6s6et.js +9 -0
- package/dist/{chunk-vx7zv6zh.js → chunk-cfken2zf.js} +23 -23
- package/dist/chunk-cgzktn8a.js +395 -0
- package/dist/{chunk-1dhedd9z.js → chunk-ch9wpxam.js} +1 -1
- package/dist/{chunk-scphhw12.js → chunk-ck4dd7vx.js} +63 -56
- package/dist/{chunk-fnm8y1x0.js → chunk-cpzppa0f.js} +63 -56
- package/dist/chunk-crchz5q8.js +13 -0
- package/dist/{chunk-f5gd73ce.js → chunk-cs8wascn.js} +71 -64
- package/dist/chunk-cxscz76t.js +66 -0
- package/dist/{chunk-01nytp91.js → chunk-d31ye749.js} +68 -61
- package/dist/{chunk-6d0241ac.js → chunk-d47prfzj.js} +1 -1
- package/dist/{chunk-ambd2vf1.js → chunk-dawa9vdn.js} +7 -7
- package/dist/{chunk-abay4sak.js → chunk-dh52jprq.js} +2 -2
- package/dist/{chunk-4dxhrqgq.js → chunk-dj6r3bps.js} +78 -71
- package/dist/{chunk-gs1a03e2.js → chunk-djf6xgmk.js} +22 -22
- package/dist/chunk-drmhxxar.js +300 -0
- package/dist/{chunk-8eg4phfy.js → chunk-dsk2j7pz.js} +1 -1
- package/dist/{chunk-dgx7p003.js → chunk-dtk2406w.js} +63 -56
- package/dist/{chunk-z9fjyp10.js → chunk-dxdkze8z.js} +15 -14
- package/dist/{chunk-vfdax1q6.js → chunk-e2spk4fe.js} +2 -2
- package/dist/{chunk-bt94xn5q.js → chunk-e39hng3w.js} +1 -1
- package/dist/{chunk-2bn3rfrp.js → chunk-e4c9nm5e.js} +1 -1
- package/dist/{chunk-qkvakhx1.js → chunk-e732zxst.js} +20 -20
- package/dist/{chunk-a6aj70ts.js → chunk-e80zc1av.js} +8 -8
- package/dist/{chunk-a9576ng3.js → chunk-e8fna1ag.js} +65 -58
- package/dist/{chunk-8xa1kfya.js → chunk-ed7z1w7p.js} +10 -10
- package/dist/chunk-edqtm6y0.js +61 -0
- package/dist/chunk-ee1b0rvz.js +10 -0
- package/dist/{chunk-ns0rmh2k.js → chunk-emm7j4dk.js} +5 -5
- package/dist/{chunk-r0qx6xgc.js → chunk-enqry8t5.js} +9 -7
- package/dist/{chunk-yfmhhwwv.js → chunk-epznxrz2.js} +12 -12
- package/dist/{chunk-g99ezjcy.js → chunk-eq23h0x8.js} +22 -22
- package/dist/chunk-ermsg80f.js +127 -0
- package/dist/{chunk-nxfhyxc3.js → chunk-erszn6r3.js} +4 -4
- package/dist/chunk-ewmc9tav.js +128 -0
- package/dist/{chunk-9bmbzk2f.js → chunk-ezkmsnpd.js} +8 -8
- package/dist/chunk-f054mssm.js +12 -0
- package/dist/{chunk-r95z8zvj.js → chunk-f19hg379.js} +21 -21
- package/dist/{chunk-c25j8jpy.js → chunk-f2anq8fp.js} +3 -3
- package/dist/{chunk-bp5dhef8.js → chunk-f2k7vxg3.js} +10 -10
- package/dist/{chunk-9bp8584t.js → chunk-f8bpjk0x.js} +4 -4
- package/dist/{chunk-0s98x7qr.js → chunk-f98xrwe6.js} +63 -56
- package/dist/{chunk-v25hrcrp.js → chunk-fbx3sd2f.js} +72 -65
- package/dist/{chunk-rhfz4rps.js → chunk-fgzywhh2.js} +5 -5
- package/dist/{chunk-v50v1jf1.js → chunk-fjeaknmt.js} +21 -21
- package/dist/chunk-fjs4cp8b.js +155 -0
- package/dist/{chunk-zs52hzg8.js → chunk-fxtm8zfx.js} +21 -21
- package/dist/{chunk-54yfbyzj.js → chunk-fynce2x1.js} +73 -66
- package/dist/{chunk-by6f5f3f.js → chunk-g1fmphn5.js} +1 -1
- package/dist/{chunk-2qnmyxpy.js → chunk-g4jdxw9z.js} +8 -8
- package/dist/{chunk-kw10fbe0.js → chunk-g5fyyzw4.js} +5 -5
- package/dist/{chunk-xrcw33a6.js → chunk-g5snnfpz.js} +4 -4
- package/dist/chunk-g6ywkjpj.js +329 -0
- package/dist/chunk-gc3k4c71.js +120 -0
- package/dist/{chunk-av4xr370.js → chunk-gdrmj2pf.js} +24 -24
- package/dist/{chunk-4kx5dzdv.js → chunk-gxndbg0a.js} +1 -1
- package/dist/{chunk-27831wht.js → chunk-gz475s6y.js} +63 -56
- package/dist/{chunk-x8zkjhy7.js → chunk-gzvzgq26.js} +439 -176
- package/dist/{chunk-53dgvm3n.js → chunk-h0njsaxa.js} +8 -31
- package/dist/{chunk-nha86vac.js → chunk-h10sdaft.js} +64 -57
- package/dist/{chunk-eg0tc9yh.js → chunk-h4cqgnfp.js} +3 -3
- package/dist/{chunk-s67f3vd9.js → chunk-h5rhq3n7.js} +76 -59
- package/dist/{chunk-m1tjr9xq.js → chunk-h6pgm1qp.js} +1 -1
- package/dist/chunk-hewjtf7t.js +132 -0
- package/dist/{chunk-63aa365z.js → chunk-hfdnqzhf.js} +8 -8
- package/dist/{chunk-f4dvpkzw.js → chunk-hhd42y3a.js} +1 -1
- package/dist/{chunk-gvf59kpk.js → chunk-hmw06fge.js} +63 -56
- package/dist/{chunk-n0vth4gp.js → chunk-hprabxne.js} +1 -1
- package/dist/{chunk-nxdnby53.js → chunk-hstsssnj.js} +2 -2
- package/dist/chunk-j13svjky.js +158 -0
- package/dist/{chunk-vj7ngjnf.js → chunk-j2x5124d.js} +20 -20
- package/dist/chunk-j3k55b0k.js +212 -0
- package/dist/{chunk-7neqf4fa.js → chunk-j71hj7yz.js} +71 -64
- package/dist/{chunk-3wpgtpw3.js → chunk-j7dxyxhv.js} +63 -56
- package/dist/{chunk-pdy0cbps.js → chunk-j7xbftdd.js} +5 -5
- package/dist/{chunk-7wncxt8v.js → chunk-jars2pn8.js} +63 -56
- package/dist/{chunk-ex16f66z.js → chunk-je44d8pc.js} +64 -57
- package/dist/{chunk-y744f40h.js → chunk-jgyee51y.js} +64 -57
- package/dist/{chunk-2q0frcxq.js → chunk-jk6e2bjt.js} +66 -59
- package/dist/chunk-jkcqv906.js +128 -0
- package/dist/{chunk-4pkgv0q4.js → chunk-jrkdr66k.js} +64 -57
- package/dist/{chunk-v5m176px.js → chunk-jxvms2k5.js} +64 -57
- package/dist/{chunk-y8gcjqaj.js → chunk-jzjdkfvb.js} +21 -21
- package/dist/{chunk-fry0p30d.js → chunk-k1809z0z.js} +4 -4
- package/dist/{chunk-n5r7zefs.js → chunk-k2qry3j2.js} +3 -3
- package/dist/{chunk-gbm9xcsb.js → chunk-kaxc456a.js} +4 -4
- package/dist/{chunk-xq5m3waj.js → chunk-kh0tbb1f.js} +10 -10
- package/dist/{chunk-4w14tqd3.js → chunk-km555nmz.js} +2 -2
- package/dist/{chunk-0kce2wqf.js → chunk-kmaj89bz.js} +64 -57
- package/dist/chunk-ktvcgnpw.js +46 -0
- package/dist/{chunk-zcg5wkge.js → chunk-kty5fqkx.js} +4 -4
- package/dist/{chunk-vwmpfzsk.js → chunk-kywppkmb.js} +71 -64
- package/dist/chunk-kzj2w83g.js +325 -0
- package/dist/{chunk-qe3qr56q.js → chunk-m0avdb0h.js} +1 -1
- package/dist/chunk-m0zh7g06.js +13 -0
- package/dist/{chunk-b9sss8kt.js → chunk-m1gvrag8.js} +64 -57
- package/dist/{chunk-5n5wyzrh.js → chunk-m2r25bw1.js} +4 -4
- package/dist/{chunk-5xg0d983.js → chunk-m2rv6qz8.js} +20 -20
- package/dist/{chunk-0a04ntky.js → chunk-m3rvjxa4.js} +1 -1
- package/dist/{chunk-21mz4040.js → chunk-m48b7sj9.js} +1 -1
- package/dist/{chunk-bpww9jrc.js → chunk-m7w3r8n8.js} +63 -56
- package/dist/{chunk-dgmtm4rb.js → chunk-mbvn8gy2.js} +65 -58
- package/dist/chunk-mdnqgywy.js +32 -0
- package/dist/{chunk-834b4cwr.js → chunk-mdnt1rvx.js} +63 -56
- package/dist/chunk-mepq00y1.js +337 -0
- package/dist/chunk-mfhds0dp.js +415 -0
- package/dist/{chunk-zr8jx1me.js → chunk-mja6394w.js} +9 -9
- package/dist/{chunk-tq51n13h.js → chunk-mrp3wcy6.js} +63 -56
- package/dist/{chunk-53atcfc2.js → chunk-mxx4msjb.js} +63 -56
- package/dist/chunk-n014czx3.js +15 -0
- package/dist/{chunk-bn09p6rp.js → chunk-n0pqx4rz.js} +6 -6
- package/dist/chunk-n3gzjpvg.js +8 -0
- package/dist/{chunk-fmmhgjh2.js → chunk-n4h54170.js} +63 -56
- package/dist/{chunk-dqrma4xg.js → chunk-n5by3h0t.js} +76 -69
- package/dist/chunk-na5yxjbp.js +133 -0
- package/dist/{chunk-vvj9yfd6.js → chunk-nb32de90.js} +4 -4
- package/dist/{chunk-qd98rbkk.js → chunk-ndgftsr1.js} +1 -1
- package/dist/{chunk-nxffmvqq.js → chunk-nez23dsn.js} +28 -28
- package/dist/{chunk-n4pdrqfe.js → chunk-nj1wee9b.js} +21 -21
- package/dist/{chunk-6383ssyr.js → chunk-nkn6kceq.js} +4 -4
- package/dist/{chunk-36ah0k4v.js → chunk-nnhq3697.js} +64 -57
- package/dist/chunk-nntvxnk2.js +340 -0
- package/dist/chunk-nq0kyezp.js +433 -0
- package/dist/chunk-nrwhfe5y.js +105 -0
- package/dist/{chunk-81cq3ykn.js → chunk-nt7b1z5t.js} +1 -1
- package/dist/{chunk-vyxrqq2j.js → chunk-ntdnzp2z.js} +2 -2
- package/dist/{chunk-d86k6nna.js → chunk-ntr44dvp.js} +74 -67
- package/dist/chunk-nyq4jqm1.js +243 -0
- package/dist/{chunk-xxxpcn1s.js → chunk-p3g3f2ee.js} +84 -56
- package/dist/{chunk-2k162dz0.js → chunk-p5q62vjn.js} +64 -57
- package/dist/{chunk-ncyvjn2t.js → chunk-p8xpvkpy.js} +66 -59
- package/dist/{chunk-csye4xzg.js → chunk-pmn7jtsg.js} +63 -56
- package/dist/chunk-pr5a5xz1.js +124 -0
- package/dist/chunk-q2aas6kq.js +84 -0
- package/dist/{chunk-xm7k6jjc.js → chunk-q2dp7byy.js} +21 -21
- package/dist/{chunk-96kvtp4a.js → chunk-q48y3fcp.js} +63 -56
- package/dist/{chunk-kegv11w9.js → chunk-q9ekcqx7.js} +3 -3
- package/dist/chunk-qazvrdfx.js +8 -0
- package/dist/{chunk-mmtadzv4.js → chunk-qb9gk8qg.js} +3 -3
- package/dist/{chunk-6fffsyn1.js → chunk-qftvk54y.js} +2 -2
- package/dist/{chunk-xpsbj53r.js → chunk-qpsmedbj.js} +64 -57
- package/dist/{chunk-xne41nbg.js → chunk-qqvksktb.js} +68 -61
- package/dist/{chunk-14x4cnsh.js → chunk-qvmhwtbg.js} +2 -2
- package/dist/{chunk-gygm08n5.js → chunk-qvr1mfc2.js} +3 -3
- package/dist/{chunk-snkw3ez3.js → chunk-qxbjdz91.js} +69 -62
- package/dist/{chunk-hnwtdfn5.js → chunk-qz8h7c7e.js} +63 -56
- package/dist/{chunk-byxmnqrn.js → chunk-r446v6sq.js} +63 -56
- package/dist/{chunk-j9zd0zgk.js → chunk-r5657hwh.js} +6 -6
- package/dist/{chunk-cbb17erf.js → chunk-r98v6fmq.js} +2 -2
- package/dist/{chunk-v7kbh63p.js → chunk-ratjpqg8.js} +4 -4
- package/dist/{chunk-5r3s9p8x.js → chunk-rcqxbkjs.js} +22 -22
- package/dist/{chunk-ctr3c1sg.js → chunk-rcz0e093.js} +2 -2
- package/dist/{chunk-vmxyzqbq.js → chunk-rdbr0mc5.js} +3 -3
- package/dist/chunk-rebyeaz6.js +226 -0
- package/dist/{chunk-mdp7t6vc.js → chunk-rfn63r2s.js} +63 -56
- package/dist/chunk-rhjvcccz.js +196 -0
- package/dist/chunk-rq3fz6cv.js +125 -0
- package/dist/chunk-rqb52zr0.js +273 -0
- package/dist/{chunk-9mhk46zc.js → chunk-rramscv8.js} +65 -58
- package/dist/{chunk-7yazhrsr.js → chunk-rveecpyh.js} +13 -18
- package/dist/{chunk-8e7f9zht.js → chunk-s3nkbr4p.js} +6 -6
- package/dist/{chunk-mt5d325t.js → chunk-s4pvw5c2.js} +63 -56
- package/dist/{chunk-91aqhy8m.js → chunk-s55ghchb.js} +23 -23
- package/dist/{chunk-xfffg80w.js → chunk-s5wv4tve.js} +69 -62
- package/dist/{chunk-p4ejm62w.js → chunk-sadtb3z5.js} +63 -56
- package/dist/{chunk-kz1tx7rz.js → chunk-sc2j6qsx.js} +64 -57
- package/dist/{chunk-b0yyp8et.js → chunk-sd3b922y.js} +41 -5
- package/dist/{chunk-sa4v49yg.js → chunk-sdcwxxk6.js} +5 -5
- package/dist/chunk-sggasjjn.js +126 -0
- package/dist/{chunk-2v5ts0xs.js → chunk-sgnff472.js} +6 -6
- package/dist/chunk-sje53cwz.js +160 -0
- package/dist/{chunk-2d5783fd.js → chunk-sjhn7p5w.js} +9 -9
- package/dist/{chunk-7hqaeswx.js → chunk-skhb9mm3.js} +47 -47
- package/dist/chunk-smh1p2qy.js +138 -0
- package/dist/chunk-smp65jya.js +152 -0
- package/dist/{chunk-c5x53d8e.js → chunk-ss0vfwwq.js} +21 -21
- package/dist/chunk-ssxnpnp2.js +185 -0
- package/dist/{chunk-q4g44zhy.js → chunk-stvp7mm8.js} +67 -60
- package/dist/{chunk-cr287xgs.js → chunk-swasj01d.js} +22 -22
- package/dist/{chunk-4wvqsj82.js → chunk-sxkyxfc7.js} +1 -1
- package/dist/chunk-t27st4f6.js +11 -0
- package/dist/{chunk-h0jkyyzh.js → chunk-t33p3qh3.js} +2 -2
- package/dist/{chunk-sqr28nxr.js → chunk-t5am82j3.js} +21 -21
- package/dist/{chunk-650dg84f.js → chunk-t688crr3.js} +3 -3
- package/dist/chunk-t719e8eh.js +124 -0
- package/dist/{chunk-1g7vd9aw.js → chunk-tamranmv.js} +4 -4
- package/dist/chunk-tbh4w7g6.js +37 -0
- package/dist/{chunk-w6qq17bh.js → chunk-td06pg4k.js} +63 -56
- package/dist/{chunk-jv6b8825.js → chunk-tepcfjv9.js} +64 -57
- package/dist/{chunk-nfzczzpa.js → chunk-tgtshatc.js} +3 -3
- package/dist/{chunk-jyh5er8z.js → chunk-tm5bfdg7.js} +15 -15
- package/dist/{chunk-zwmrhef7.js → chunk-tngbfggd.js} +1 -1
- package/dist/{chunk-vrbvz6r8.js → chunk-tw9bcrhb.js} +1 -1
- package/dist/chunk-twea87k4.js +126 -0
- package/dist/{chunk-jw9r1vhk.js → chunk-tzed1ttg.js} +2 -2
- package/dist/{chunk-kzws79kx.js → chunk-v077s2dh.js} +63 -56
- package/dist/{chunk-ye565wnz.js → chunk-v07sn7tg.js} +4 -4
- package/dist/{chunk-0k1jmtw9.js → chunk-v5j77ftw.js} +2 -2
- package/dist/{chunk-f8jqr9gf.js → chunk-v70rt7ew.js} +63 -56
- package/dist/{chunk-sdw97qke.js → chunk-v7e85mv1.js} +20 -20
- package/dist/{chunk-h6xd4mkp.js → chunk-v83yjxgx.js} +4 -4
- package/dist/{chunk-r61twape.js → chunk-v8ak17j1.js} +107 -335
- package/dist/{chunk-0w5zb7ey.js → chunk-v91nx80s.js} +22 -22
- package/dist/{chunk-e41z7j8n.js → chunk-v9qatj12.js} +6 -6
- package/dist/{chunk-r9mvmqa3.js → chunk-vaq7mmkt.js} +63 -56
- package/dist/{chunk-438syzcr.js → chunk-vekca08b.js} +11 -11
- package/dist/{chunk-6rxwptex.js → chunk-vg98anv2.js} +1 -1
- package/dist/{chunk-ja87byad.js → chunk-vjy07dp5.js} +72 -65
- package/dist/{chunk-q90p1xq1.js → chunk-vp20ty7y.js} +1 -1
- package/dist/{chunk-9d00ms93.js → chunk-vpt9jxht.js} +3 -3
- package/dist/{chunk-b343wb80.js → chunk-vvsd3vs8.js} +63 -56
- package/dist/chunk-vxgc30h6.js +19 -0
- package/dist/{chunk-e3ddewwa.js → chunk-vxzmjwjs.js} +63 -56
- package/dist/{chunk-36qqb2zz.js → chunk-w6jz347g.js} +63 -56
- package/dist/{chunk-0nh980p8.js → chunk-w710jpa2.js} +2 -2
- package/dist/{chunk-paycanhw.js → chunk-w7ej2zrf.js} +2 -2
- package/dist/{chunk-vjdmt4qp.js → chunk-warzed1x.js} +22 -22
- package/dist/{chunk-edk6reza.js → chunk-wb2sg18w.js} +2 -2
- package/dist/{chunk-4qd05az9.js → chunk-we1n5raj.js} +7 -7
- package/dist/chunk-wf3yck87.js +21 -0
- package/dist/{chunk-etym3r9d.js → chunk-wf8acset.js} +3 -3
- package/dist/{chunk-2q0zzmty.js → chunk-wghswqwp.js} +27 -27
- package/dist/{chunk-gzp6rza1.js → chunk-wmgyt01k.js} +216 -1
- package/dist/chunk-wmh6v3e7.js +132 -0
- package/dist/chunk-wmpmafbc.js +138 -0
- package/dist/{chunk-1sf59qt5.js → chunk-wnf4vwkm.js} +64 -57
- package/dist/{chunk-ynv1bpe8.js → chunk-wt20bb12.js} +22 -22
- package/dist/{chunk-ap8sbteg.js → chunk-ww3p4y9a.js} +20 -12
- package/dist/{chunk-03r5j0h7.js → chunk-x1zesdka.js} +6 -6
- package/dist/{chunk-wx6n79wt.js → chunk-x313wqn1.js} +1 -1
- package/dist/{chunk-hy4eg9rh.js → chunk-x4xsq1s2.js} +2 -2
- package/dist/{chunk-9b6rk8qk.js → chunk-x5r688hj.js} +4 -4
- package/dist/chunk-x6f0ext2.js +514 -0
- package/dist/chunk-x6pa9me9.js +39 -0
- package/dist/{chunk-w4efvhba.js → chunk-xbaknws2.js} +3 -3
- package/dist/{chunk-xpwd9a6t.js → chunk-xhf4qr1n.js} +7 -7
- package/dist/{chunk-0c1px70b.js → chunk-xjbajnc0.js} +64 -57
- package/dist/chunk-xjccz51k.js +129 -0
- package/dist/{chunk-4djqhsnj.js → chunk-xk0tvbw1.js} +2 -2
- package/dist/{chunk-4h8wztdg.js → chunk-xqjc4jt5.js} +64 -57
- package/dist/{chunk-rm1mheme.js → chunk-xsdh0nhd.js} +9 -9
- package/dist/{chunk-4r4gn0cf.js → chunk-xsmg4rrh.js} +4 -4
- package/dist/chunk-y5tdbxz4.js +127 -0
- package/dist/{chunk-hdwtr2yf.js → chunk-y8pkn3xy.js} +5 -5
- package/dist/chunk-yashkw24.js +372 -0
- package/dist/{chunk-fta35khb.js → chunk-yezeptjf.js} +11 -11
- package/dist/{chunk-hr3btr8b.js → chunk-yhb095v3.js} +3 -3
- package/dist/{chunk-zhvtmajx.js → chunk-ynqybr2d.js} +64 -57
- package/dist/{chunk-pqerscs4.js → chunk-yrbx096r.js} +5 -5
- package/dist/{chunk-1b80pdn0.js → chunk-ytp8h1aw.js} +70 -60
- package/dist/{chunk-fzzjx191.js → chunk-ywf3v9s7.js} +1 -1
- package/dist/{chunk-v1k15ae4.js → chunk-yz7f0ahp.js} +1 -1
- package/dist/{chunk-n3w4a8jc.js → chunk-z1wsxdyq.js} +4 -4
- package/dist/{chunk-bvnbzqq1.js → chunk-z4phzs0c.js} +63 -56
- package/dist/{chunk-e8cewnpa.js → chunk-z5nfm6fz.js} +71 -64
- package/dist/{chunk-vcxp7ehh.js → chunk-z6j1ne1h.js} +69 -62
- package/dist/{chunk-jrzv14mz.js → chunk-z7k46hmy.js} +126 -115
- package/dist/chunk-zbcnvk19.js +38 -0
- package/dist/{chunk-p34f6v8t.js → chunk-zgaxdsmh.js} +65 -56
- package/dist/chunk-zjv8t5t3.js +942 -0
- package/dist/chunk-zjvshnv0.js +131 -0
- package/dist/{chunk-t6j072kk.js → chunk-zmrhj53d.js} +21 -21
- package/dist/{chunk-tv74hgw9.js → chunk-znv3atvc.js} +1 -1
- package/dist/chunk-zsr1mhby.js +126 -0
- package/dist/{chunk-2kdh2xhm.js → chunk-zvgv14qd.js} +25 -25
- package/dist/{chunk-egwsh2d3.js → chunk-zvh8p8b8.js} +6 -6
- package/dist/chunk-zyptmnvp.js +125 -0
- package/dist/cli.js +34 -34
- package/package.json +7 -2
- package/dist/chunk-0786r5qj.js +0 -26
- package/dist/chunk-18xdwe7f.js +0 -113
- package/dist/chunk-2mvp0yy0.js +0 -121
- package/dist/chunk-47te6zef.js +0 -119
- package/dist/chunk-83hfzbx3.js +0 -10
- package/dist/chunk-8ae0tf0x.js +0 -122
- package/dist/chunk-9fmj81q2.js +0 -118
- package/dist/chunk-advqggab.js +0 -121
- package/dist/chunk-bxwwcaqc.js +0 -129
- package/dist/chunk-cwfhgrw5.js +0 -122
- package/dist/chunk-dpvkw784.js +0 -117
- package/dist/chunk-dyy28gfx.js +0 -119
- package/dist/chunk-ec97t249.js +0 -120
- package/dist/chunk-fdetpw6s.js +0 -116
- package/dist/chunk-feyzykye.js +0 -10
- package/dist/chunk-kftpvpke.js +0 -115
- package/dist/chunk-mkn9qtyx.js +0 -120
- package/dist/chunk-msq3sm15.js +0 -117
- package/dist/chunk-pdk7x283.js +0 -131
- package/dist/chunk-pfhv31s6.js +0 -121
- package/dist/chunk-pkbsek0t.js +0 -118
- package/dist/chunk-qhcn44e1.js +0 -119
- package/dist/chunk-qsnfsw09.js +0 -119
- package/dist/chunk-stbkte9e.js +0 -184
- package/dist/chunk-szj5wvdy.js +0 -28
- package/dist/chunk-y9zmxrg1.js +0 -57
- package/dist/chunk-zaqjcmpr.js +0 -119
- package/dist/chunk-zg2vvytp.js +0 -121
- package/dist/{chunk-z0csm2zq.js → chunk-jg5ac2fy.js} +394 -394
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
readJSONLFile,
|
|
8
8
|
safeParseJSON,
|
|
9
9
|
stripBOM
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-0rjgkz6a.js";
|
|
11
11
|
import {
|
|
12
12
|
expandPath,
|
|
13
13
|
init_path,
|
|
14
14
|
normalizePathForConfigKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-nkn6kceq.js";
|
|
16
16
|
import {
|
|
17
17
|
count,
|
|
18
18
|
getAgentId,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
getAWSClientProxyConfig,
|
|
31
31
|
getProxyFetchOptions,
|
|
32
32
|
init_proxy
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-tw9bcrhb.js";
|
|
34
34
|
import {
|
|
35
35
|
sanitizePath
|
|
36
36
|
} from "./chunk-7hmy36fh.js";
|
|
@@ -53,11 +53,11 @@ import {
|
|
|
53
53
|
getPlatform,
|
|
54
54
|
getWslVersion,
|
|
55
55
|
init_platform
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-rcz0e093.js";
|
|
57
57
|
import {
|
|
58
58
|
getAncestorCommandsAsync,
|
|
59
59
|
init_genericProcessUtils
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ndgftsr1.js";
|
|
61
61
|
import {
|
|
62
62
|
require_src as require_src2,
|
|
63
63
|
require_src1 as require_src3,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
import {
|
|
67
67
|
exports_common,
|
|
68
68
|
init_common
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-6veqdcnr.js";
|
|
70
70
|
import {
|
|
71
71
|
init_normalization,
|
|
72
72
|
normalizeNameForMCP
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
getGlobalClaudeFile,
|
|
78
78
|
getHostPlatformForAnalytics,
|
|
79
79
|
init_env
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-bc7vdtyx.js";
|
|
81
81
|
import {
|
|
82
82
|
init_bundledMode,
|
|
83
83
|
isInBundledMode
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
init_startupProfiler,
|
|
107
107
|
profileCheckpoint
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-0s5rp3xp.js";
|
|
109
109
|
import {
|
|
110
110
|
init_source,
|
|
111
111
|
source_default
|
|
@@ -122,22 +122,22 @@ import {
|
|
|
122
122
|
init_diagLogs,
|
|
123
123
|
init_git,
|
|
124
124
|
logForDiagnosticsNoPII
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-e80zc1av.js";
|
|
126
126
|
import {
|
|
127
127
|
init_memoize as init_memoize2,
|
|
128
128
|
memoizeWithTTLAsync
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-ntdnzp2z.js";
|
|
130
130
|
import {
|
|
131
131
|
execFileNoThrow,
|
|
132
132
|
execFileNoThrowWithCwd,
|
|
133
133
|
execSyncWithDefaults_DEPRECATED,
|
|
134
134
|
init_execFileNoThrow,
|
|
135
135
|
init_execFileNoThrowPortable
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-9d7dhwhn.js";
|
|
137
137
|
import {
|
|
138
138
|
getCwd,
|
|
139
139
|
init_cwd
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-znv3atvc.js";
|
|
141
141
|
import {
|
|
142
142
|
getEssentialTrafficOnlyReason,
|
|
143
143
|
init_log,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
isEssentialTrafficOnly,
|
|
146
146
|
isTelemetryDisabled,
|
|
147
147
|
logError
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-2cyjtt9z.js";
|
|
149
149
|
import {
|
|
150
150
|
execa,
|
|
151
151
|
execaSync,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
safeResolvePath,
|
|
197
197
|
toError,
|
|
198
198
|
writeFileSync_DEPRECATED
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-wb2sg18w.js";
|
|
200
200
|
import {
|
|
201
201
|
_Stack_default,
|
|
202
202
|
_arrayMap_default,
|
|
@@ -261,7 +261,7 @@ import {
|
|
|
261
261
|
setModelStrings,
|
|
262
262
|
setOauthTokenFromFd,
|
|
263
263
|
setSessionSettingsCache
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-wmgyt01k.js";
|
|
265
265
|
import {
|
|
266
266
|
init_isObjectLike,
|
|
267
267
|
isObjectLike_default
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
import {
|
|
270
270
|
Anthropic,
|
|
271
271
|
init_sdk
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-jg5ac2fy.js";
|
|
273
273
|
import {
|
|
274
274
|
getAWSRegion,
|
|
275
275
|
getClaudeConfigHomeDir,
|
|
@@ -4012,10 +4012,158 @@ var init_configConstants = __esm(() => {
|
|
|
4012
4012
|
TEAMMATE_MODES = ["auto", "tmux", "in-process"];
|
|
4013
4013
|
});
|
|
4014
4014
|
|
|
4015
|
+
// src/memdir/teamMemPaths.ts
|
|
4016
|
+
var exports_teamMemPaths = {};
|
|
4017
|
+
__export(exports_teamMemPaths, {
|
|
4018
|
+
validateTeamMemWritePath: () => validateTeamMemWritePath,
|
|
4019
|
+
validateTeamMemKey: () => validateTeamMemKey,
|
|
4020
|
+
isTeamMemoryEnabled: () => isTeamMemoryEnabled,
|
|
4021
|
+
isTeamMemPath: () => isTeamMemPath,
|
|
4022
|
+
isTeamMemFile: () => isTeamMemFile,
|
|
4023
|
+
getTeamMemPath: () => getTeamMemPath,
|
|
4024
|
+
getTeamMemEntrypoint: () => getTeamMemEntrypoint,
|
|
4025
|
+
PathTraversalError: () => PathTraversalError
|
|
4026
|
+
});
|
|
4027
|
+
import { lstat, realpath } from "fs/promises";
|
|
4028
|
+
import { dirname, join as join4, resolve, sep as sep2 } from "path";
|
|
4029
|
+
function sanitizePathKey(key) {
|
|
4030
|
+
if (key.includes("\x00")) {
|
|
4031
|
+
throw new PathTraversalError(`Null byte in path key: "${key}"`);
|
|
4032
|
+
}
|
|
4033
|
+
let decoded;
|
|
4034
|
+
try {
|
|
4035
|
+
decoded = decodeURIComponent(key);
|
|
4036
|
+
} catch {
|
|
4037
|
+
decoded = key;
|
|
4038
|
+
}
|
|
4039
|
+
if (decoded !== key && (decoded.includes("..") || decoded.includes("/"))) {
|
|
4040
|
+
throw new PathTraversalError(`URL-encoded traversal in path key: "${key}"`);
|
|
4041
|
+
}
|
|
4042
|
+
const normalized = key.normalize("NFKC");
|
|
4043
|
+
if (normalized !== key && (normalized.includes("..") || normalized.includes("/") || normalized.includes("\\") || normalized.includes("\x00"))) {
|
|
4044
|
+
throw new PathTraversalError(`Unicode-normalized traversal in path key: "${key}"`);
|
|
4045
|
+
}
|
|
4046
|
+
if (key.includes("\\")) {
|
|
4047
|
+
throw new PathTraversalError(`Backslash in path key: "${key}"`);
|
|
4048
|
+
}
|
|
4049
|
+
if (key.startsWith("/")) {
|
|
4050
|
+
throw new PathTraversalError(`Absolute path key: "${key}"`);
|
|
4051
|
+
}
|
|
4052
|
+
return key;
|
|
4053
|
+
}
|
|
4054
|
+
function isTeamMemoryEnabled() {
|
|
4055
|
+
if (!isAutoMemoryEnabled()) {
|
|
4056
|
+
return false;
|
|
4057
|
+
}
|
|
4058
|
+
return getFeatureValue_CACHED_MAY_BE_STALE("tengu_herring_clock", false);
|
|
4059
|
+
}
|
|
4060
|
+
function getTeamMemPath() {
|
|
4061
|
+
return (join4(getAutoMemPath(), "team") + sep2).normalize("NFC");
|
|
4062
|
+
}
|
|
4063
|
+
function getTeamMemEntrypoint() {
|
|
4064
|
+
return join4(getAutoMemPath(), "team", "MEMORY.md");
|
|
4065
|
+
}
|
|
4066
|
+
async function realpathDeepestExisting(absolutePath) {
|
|
4067
|
+
const tail = [];
|
|
4068
|
+
let current = absolutePath;
|
|
4069
|
+
for (let parent = dirname(current);current !== parent; parent = dirname(current)) {
|
|
4070
|
+
try {
|
|
4071
|
+
const realCurrent = await realpath(current);
|
|
4072
|
+
return tail.length === 0 ? realCurrent : join4(realCurrent, ...tail.reverse());
|
|
4073
|
+
} catch (e) {
|
|
4074
|
+
const code = getErrnoCode(e);
|
|
4075
|
+
if (code === "ENOENT") {
|
|
4076
|
+
try {
|
|
4077
|
+
const st = await lstat(current);
|
|
4078
|
+
if (st.isSymbolicLink()) {
|
|
4079
|
+
throw new PathTraversalError(`Dangling symlink detected (target does not exist): "${current}"`);
|
|
4080
|
+
}
|
|
4081
|
+
} catch (lstatErr) {
|
|
4082
|
+
if (lstatErr instanceof PathTraversalError) {
|
|
4083
|
+
throw lstatErr;
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
} else if (code === "ELOOP") {
|
|
4087
|
+
throw new PathTraversalError(`Symlink loop detected in path: "${current}"`);
|
|
4088
|
+
} else if (code !== "ENOTDIR" && code !== "ENAMETOOLONG") {
|
|
4089
|
+
throw new PathTraversalError(`Cannot verify path containment (${code}): "${current}"`);
|
|
4090
|
+
}
|
|
4091
|
+
tail.push(current.slice(parent.length + sep2.length));
|
|
4092
|
+
current = parent;
|
|
4093
|
+
}
|
|
4094
|
+
}
|
|
4095
|
+
return absolutePath;
|
|
4096
|
+
}
|
|
4097
|
+
async function isRealPathWithinTeamDir(realCandidate) {
|
|
4098
|
+
let realTeamDir;
|
|
4099
|
+
try {
|
|
4100
|
+
realTeamDir = await realpath(getTeamMemPath().replace(/[/\\]+$/, ""));
|
|
4101
|
+
} catch (e) {
|
|
4102
|
+
const code = getErrnoCode(e);
|
|
4103
|
+
if (code === "ENOENT" || code === "ENOTDIR") {
|
|
4104
|
+
return true;
|
|
4105
|
+
}
|
|
4106
|
+
return false;
|
|
4107
|
+
}
|
|
4108
|
+
if (realCandidate === realTeamDir) {
|
|
4109
|
+
return true;
|
|
4110
|
+
}
|
|
4111
|
+
return realCandidate.startsWith(realTeamDir + sep2);
|
|
4112
|
+
}
|
|
4113
|
+
function isTeamMemPath(filePath) {
|
|
4114
|
+
const resolvedPath = resolve(filePath);
|
|
4115
|
+
const teamDir = getTeamMemPath();
|
|
4116
|
+
return resolvedPath.startsWith(teamDir);
|
|
4117
|
+
}
|
|
4118
|
+
async function validateTeamMemWritePath(filePath) {
|
|
4119
|
+
if (filePath.includes("\x00")) {
|
|
4120
|
+
throw new PathTraversalError(`Null byte in path: "${filePath}"`);
|
|
4121
|
+
}
|
|
4122
|
+
const resolvedPath = resolve(filePath);
|
|
4123
|
+
const teamDir = getTeamMemPath();
|
|
4124
|
+
if (!resolvedPath.startsWith(teamDir)) {
|
|
4125
|
+
throw new PathTraversalError(`Path escapes team memory directory: "${filePath}"`);
|
|
4126
|
+
}
|
|
4127
|
+
const realPath = await realpathDeepestExisting(resolvedPath);
|
|
4128
|
+
if (!await isRealPathWithinTeamDir(realPath)) {
|
|
4129
|
+
throw new PathTraversalError(`Path escapes team memory directory via symlink: "${filePath}"`);
|
|
4130
|
+
}
|
|
4131
|
+
return resolvedPath;
|
|
4132
|
+
}
|
|
4133
|
+
async function validateTeamMemKey(relativeKey) {
|
|
4134
|
+
sanitizePathKey(relativeKey);
|
|
4135
|
+
const teamDir = getTeamMemPath();
|
|
4136
|
+
const fullPath = join4(teamDir, relativeKey);
|
|
4137
|
+
const resolvedPath = resolve(fullPath);
|
|
4138
|
+
if (!resolvedPath.startsWith(teamDir)) {
|
|
4139
|
+
throw new PathTraversalError(`Key escapes team memory directory: "${relativeKey}"`);
|
|
4140
|
+
}
|
|
4141
|
+
const realPath = await realpathDeepestExisting(resolvedPath);
|
|
4142
|
+
if (!await isRealPathWithinTeamDir(realPath)) {
|
|
4143
|
+
throw new PathTraversalError(`Key escapes team memory directory via symlink: "${relativeKey}"`);
|
|
4144
|
+
}
|
|
4145
|
+
return resolvedPath;
|
|
4146
|
+
}
|
|
4147
|
+
function isTeamMemFile(filePath) {
|
|
4148
|
+
return isTeamMemoryEnabled() && isTeamMemPath(filePath);
|
|
4149
|
+
}
|
|
4150
|
+
var PathTraversalError;
|
|
4151
|
+
var init_teamMemPaths = __esm(() => {
|
|
4152
|
+
init_growthbook();
|
|
4153
|
+
init_errors();
|
|
4154
|
+
init_paths();
|
|
4155
|
+
PathTraversalError = class PathTraversalError extends Error {
|
|
4156
|
+
constructor(message) {
|
|
4157
|
+
super(message);
|
|
4158
|
+
this.name = "PathTraversalError";
|
|
4159
|
+
}
|
|
4160
|
+
};
|
|
4161
|
+
});
|
|
4162
|
+
|
|
4015
4163
|
// src/utils/config.ts
|
|
4016
4164
|
import { randomBytes } from "crypto";
|
|
4017
4165
|
import { unwatchFile, watchFile } from "fs";
|
|
4018
|
-
import { basename, dirname, join as
|
|
4166
|
+
import { basename, dirname as dirname2, join as join5, resolve as resolve2 } from "path";
|
|
4019
4167
|
function createDefaultGlobalConfig() {
|
|
4020
4168
|
return {
|
|
4021
4169
|
numStartups: 0,
|
|
@@ -4080,7 +4228,7 @@ function computeTrustDialogAccepted() {
|
|
|
4080
4228
|
if (pathConfig?.hasTrustDialogAccepted) {
|
|
4081
4229
|
return true;
|
|
4082
4230
|
}
|
|
4083
|
-
const parentPath = normalizePathForConfigKey(
|
|
4231
|
+
const parentPath = normalizePathForConfigKey(resolve2(currentPath, ".."));
|
|
4084
4232
|
if (parentPath === currentPath) {
|
|
4085
4233
|
break;
|
|
4086
4234
|
}
|
|
@@ -4090,11 +4238,11 @@ function computeTrustDialogAccepted() {
|
|
|
4090
4238
|
}
|
|
4091
4239
|
function isPathTrusted(dir) {
|
|
4092
4240
|
const config = getGlobalConfig();
|
|
4093
|
-
let currentPath = normalizePathForConfigKey(
|
|
4241
|
+
let currentPath = normalizePathForConfigKey(resolve2(dir));
|
|
4094
4242
|
while (true) {
|
|
4095
4243
|
if (config.projects?.[currentPath]?.hasTrustDialogAccepted)
|
|
4096
4244
|
return true;
|
|
4097
|
-
const parentPath = normalizePathForConfigKey(
|
|
4245
|
+
const parentPath = normalizePathForConfigKey(resolve2(currentPath, ".."));
|
|
4098
4246
|
if (parentPath === currentPath)
|
|
4099
4247
|
return false;
|
|
4100
4248
|
currentPath = parentPath;
|
|
@@ -4290,7 +4438,7 @@ function getCustomApiKeyStatus(truncatedApiKey) {
|
|
|
4290
4438
|
return "new";
|
|
4291
4439
|
}
|
|
4292
4440
|
function saveConfig(file, config, defaultConfig) {
|
|
4293
|
-
const dir =
|
|
4441
|
+
const dir = dirname2(file);
|
|
4294
4442
|
const fs = getFsImplementation();
|
|
4295
4443
|
fs.mkdirSync(dir);
|
|
4296
4444
|
const filteredConfig = pickBy_default(config, (value, key) => jsonStringify(value) !== jsonStringify(defaultConfig[key]));
|
|
@@ -4304,7 +4452,7 @@ function saveConfig(file, config, defaultConfig) {
|
|
|
4304
4452
|
}
|
|
4305
4453
|
function saveConfigWithLock(file, createDefault, mergeFn) {
|
|
4306
4454
|
const defaultConfig = createDefault();
|
|
4307
|
-
const dir =
|
|
4455
|
+
const dir = dirname2(file);
|
|
4308
4456
|
const fs = getFsImplementation();
|
|
4309
4457
|
fs.mkdirSync(dir);
|
|
4310
4458
|
let release;
|
|
@@ -4370,14 +4518,14 @@ function saveConfigWithLock(file, createDefault, mergeFn) {
|
|
|
4370
4518
|
const mostRecentTimestamp = mostRecentBackup ? Number(mostRecentBackup.split(".backup.").pop()) : 0;
|
|
4371
4519
|
const shouldCreateBackup = Number.isNaN(mostRecentTimestamp) || Date.now() - mostRecentTimestamp >= MIN_BACKUP_INTERVAL_MS;
|
|
4372
4520
|
if (shouldCreateBackup) {
|
|
4373
|
-
const backupPath =
|
|
4521
|
+
const backupPath = join5(backupDir, `${fileBase}.backup.${Date.now()}`);
|
|
4374
4522
|
fs.copyFileSync(file, backupPath);
|
|
4375
4523
|
}
|
|
4376
4524
|
const MAX_BACKUPS = 5;
|
|
4377
4525
|
const backupsForCleanup = shouldCreateBackup ? fs.readdirStringSync(backupDir).filter((f) => f.startsWith(`${fileBase}.backup.`)).sort().reverse() : existingBackups;
|
|
4378
4526
|
for (const oldBackup of backupsForCleanup.slice(MAX_BACKUPS)) {
|
|
4379
4527
|
try {
|
|
4380
|
-
fs.unlinkSync(
|
|
4528
|
+
fs.unlinkSync(join5(backupDir, oldBackup));
|
|
4381
4529
|
} catch {}
|
|
4382
4530
|
}
|
|
4383
4531
|
} catch (e) {
|
|
@@ -4415,7 +4563,7 @@ function enableConfigs() {
|
|
|
4415
4563
|
});
|
|
4416
4564
|
}
|
|
4417
4565
|
function getConfigBackupDir() {
|
|
4418
|
-
return
|
|
4566
|
+
return join5(getClaudeConfigHomeDir(), "backups");
|
|
4419
4567
|
}
|
|
4420
4568
|
function findMostRecentBackup(file) {
|
|
4421
4569
|
const fs = getFsImplementation();
|
|
@@ -4425,15 +4573,15 @@ function findMostRecentBackup(file) {
|
|
|
4425
4573
|
const backups = fs.readdirStringSync(backupDir).filter((f) => f.startsWith(`${fileBase}.backup.`)).sort();
|
|
4426
4574
|
const mostRecent = backups.at(-1);
|
|
4427
4575
|
if (mostRecent) {
|
|
4428
|
-
return
|
|
4576
|
+
return join5(backupDir, mostRecent);
|
|
4429
4577
|
}
|
|
4430
4578
|
} catch {}
|
|
4431
|
-
const fileDir =
|
|
4579
|
+
const fileDir = dirname2(file);
|
|
4432
4580
|
try {
|
|
4433
4581
|
const backups = fs.readdirStringSync(fileDir).filter((f) => f.startsWith(`${fileBase}.backup.`)).sort();
|
|
4434
4582
|
const mostRecent = backups.at(-1);
|
|
4435
4583
|
if (mostRecent) {
|
|
4436
|
-
return
|
|
4584
|
+
return join5(fileDir, mostRecent);
|
|
4437
4585
|
}
|
|
4438
4586
|
const legacyBackup = `${file}.backup`;
|
|
4439
4587
|
try {
|
|
@@ -4516,7 +4664,7 @@ Claude configuration file at ${file} is corrupted: ${error.message}
|
|
|
4516
4664
|
const currentContent = fs.readFileSync(file, { encoding: "utf-8" });
|
|
4517
4665
|
for (const backup of existingCorruptedBackups) {
|
|
4518
4666
|
try {
|
|
4519
|
-
const backupContent = fs.readFileSync(
|
|
4667
|
+
const backupContent = fs.readFileSync(join5(corruptedBackupDir, backup), { encoding: "utf-8" });
|
|
4520
4668
|
if (currentContent === backupContent) {
|
|
4521
4669
|
alreadyBackedUp = true;
|
|
4522
4670
|
break;
|
|
@@ -4524,7 +4672,7 @@ Claude configuration file at ${file} is corrupted: ${error.message}
|
|
|
4524
4672
|
} catch {}
|
|
4525
4673
|
}
|
|
4526
4674
|
if (!alreadyBackedUp) {
|
|
4527
|
-
corruptedBackupPath =
|
|
4675
|
+
corruptedBackupPath = join5(corruptedBackupDir, `${fileBase}.corrupted.${Date.now()}`);
|
|
4528
4676
|
try {
|
|
4529
4677
|
fs.copyFileSync(file, corruptedBackupPath);
|
|
4530
4678
|
logForDebugging(`Corrupted config backed up to: ${corruptedBackupPath}`, {
|
|
@@ -4674,30 +4822,32 @@ function getMemoryPath(memoryType) {
|
|
|
4674
4822
|
const cwd = getOriginalCwd();
|
|
4675
4823
|
switch (memoryType) {
|
|
4676
4824
|
case "User":
|
|
4677
|
-
return
|
|
4825
|
+
return join5(getClaudeConfigHomeDir(), "CLAUDE.md");
|
|
4678
4826
|
case "Local":
|
|
4679
|
-
return
|
|
4827
|
+
return join5(cwd, "CLAUDE.local.md");
|
|
4680
4828
|
case "Project":
|
|
4681
|
-
return
|
|
4829
|
+
return join5(cwd, "CLAUDE.md");
|
|
4682
4830
|
case "Managed":
|
|
4683
|
-
return
|
|
4831
|
+
return join5(getManagedFilePath(), "CLAUDE.md");
|
|
4684
4832
|
case "AutoMem":
|
|
4685
4833
|
return getAutoMemEntrypoint();
|
|
4686
4834
|
}
|
|
4687
|
-
if (
|
|
4835
|
+
if (true) {
|
|
4836
|
+
return teamMemPaths.getTeamMemEntrypoint();
|
|
4837
|
+
}
|
|
4688
4838
|
return "";
|
|
4689
4839
|
}
|
|
4690
4840
|
function getManagedClaudeRulesDir() {
|
|
4691
|
-
return
|
|
4841
|
+
return join5(getManagedFilePath(), ".claude", "rules");
|
|
4692
4842
|
}
|
|
4693
4843
|
function getUserClaudeRulesDir() {
|
|
4694
|
-
return
|
|
4844
|
+
return join5(getClaudeConfigHomeDir(), "rules");
|
|
4695
4845
|
}
|
|
4696
4846
|
function _setGlobalConfigCacheForTesting(config) {
|
|
4697
4847
|
globalConfigCache.config = config;
|
|
4698
4848
|
globalConfigCache.mtime = config ? Date.now() : 0;
|
|
4699
4849
|
}
|
|
4700
|
-
var insideGetConfig = false, DEFAULT_PROJECT_CONFIG, DEFAULT_GLOBAL_CONFIG, GLOBAL_CONFIG_KEYS, PROJECT_CONFIG_KEYS, _trustAccepted = false, TEST_GLOBAL_CONFIG_FOR_TESTING, TEST_PROJECT_CONFIG_FOR_TESTING, globalConfigCache, lastReadFileStats = null, configCacheHits = 0, configCacheMisses = 0, globalConfigWriteCount = 0, CONFIG_WRITE_DISPLAY_THRESHOLD = 20, CONFIG_FRESHNESS_POLL_MS = 1000, freshnessWatcherStarted = false, configReadingAllowed = false, getProjectPathForConfig, _getConfigForTesting, _wouldLoseAuthStateForTesting;
|
|
4850
|
+
var teamMemPaths, insideGetConfig = false, DEFAULT_PROJECT_CONFIG, DEFAULT_GLOBAL_CONFIG, GLOBAL_CONFIG_KEYS, PROJECT_CONFIG_KEYS, _trustAccepted = false, TEST_GLOBAL_CONFIG_FOR_TESTING, TEST_PROJECT_CONFIG_FOR_TESTING, globalConfigCache, lastReadFileStats = null, configCacheHits = 0, configCacheMisses = 0, globalConfigWriteCount = 0, CONFIG_WRITE_DISPLAY_THRESHOLD = 20, CONFIG_FRESHNESS_POLL_MS = 1000, freshnessWatcherStarted = false, configReadingAllowed = false, getProjectPathForConfig, _getConfigForTesting, _wouldLoseAuthStateForTesting;
|
|
4701
4851
|
var init_config = __esm(() => {
|
|
4702
4852
|
init_memoize();
|
|
4703
4853
|
init_pickBy();
|
|
@@ -4723,6 +4873,7 @@ var init_config = __esm(() => {
|
|
|
4723
4873
|
init_managedPath();
|
|
4724
4874
|
init_slowOperations();
|
|
4725
4875
|
init_configConstants();
|
|
4876
|
+
teamMemPaths = (init_teamMemPaths(), __toCommonJS(exports_teamMemPaths));
|
|
4726
4877
|
DEFAULT_PROJECT_CONFIG = {
|
|
4727
4878
|
allowedTools: [],
|
|
4728
4879
|
mcpContextUris: [],
|
|
@@ -4800,7 +4951,7 @@ var init_config = __esm(() => {
|
|
|
4800
4951
|
if (gitRoot) {
|
|
4801
4952
|
return normalizePathForConfigKey(gitRoot);
|
|
4802
4953
|
}
|
|
4803
|
-
return normalizePathForConfigKey(
|
|
4954
|
+
return normalizePathForConfigKey(resolve2(originalCwd));
|
|
4804
4955
|
});
|
|
4805
4956
|
_getConfigForTesting = getConfig;
|
|
4806
4957
|
_wouldLoseAuthStateForTesting = wouldLoseAuthState;
|
|
@@ -5636,8 +5787,8 @@ class Deferred {
|
|
|
5636
5787
|
_resolve;
|
|
5637
5788
|
_reject;
|
|
5638
5789
|
constructor() {
|
|
5639
|
-
this._promise = new Promise((
|
|
5640
|
-
this._resolve =
|
|
5790
|
+
this._promise = new Promise((resolve3, reject) => {
|
|
5791
|
+
this._resolve = resolve3;
|
|
5641
5792
|
this._reject = reject;
|
|
5642
5793
|
});
|
|
5643
5794
|
}
|
|
@@ -5687,9 +5838,9 @@ var init_callback = __esm(() => {
|
|
|
5687
5838
|
|
|
5688
5839
|
// node_modules/.bun/@opentelemetry+core@2.7.0+e40b0dfdd726a224/node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
5689
5840
|
function _export(exporter, arg) {
|
|
5690
|
-
return new Promise((
|
|
5841
|
+
return new Promise((resolve3) => {
|
|
5691
5842
|
import_api8.context.with(suppressTracing(import_api8.context.active()), () => {
|
|
5692
|
-
exporter.export(arg,
|
|
5843
|
+
exporter.export(arg, resolve3);
|
|
5693
5844
|
});
|
|
5694
5845
|
});
|
|
5695
5846
|
}
|
|
@@ -6773,14 +6924,14 @@ class BatchLogRecordProcessorBase {
|
|
|
6773
6924
|
this._maybeStartTimer();
|
|
6774
6925
|
}
|
|
6775
6926
|
_flushAll() {
|
|
6776
|
-
return new Promise((
|
|
6927
|
+
return new Promise((resolve3, reject) => {
|
|
6777
6928
|
const promises = [];
|
|
6778
6929
|
const batchCount = Math.ceil(this._finishedLogRecords.length / this._maxExportBatchSize);
|
|
6779
6930
|
for (let i = 0;i < batchCount; i++) {
|
|
6780
6931
|
promises.push(this._flushOneBatch());
|
|
6781
6932
|
}
|
|
6782
6933
|
Promise.all(promises).then(() => {
|
|
6783
|
-
|
|
6934
|
+
resolve3();
|
|
6784
6935
|
}).catch(reject);
|
|
6785
6936
|
});
|
|
6786
6937
|
}
|
|
@@ -7886,7 +8037,7 @@ function isFastModeSupportedByModel(modelSetting) {
|
|
|
7886
8037
|
}
|
|
7887
8038
|
const model = modelSetting ?? getDefaultMainLoopModelSetting();
|
|
7888
8039
|
const parsedModel = parseUserSpecifiedModel(model);
|
|
7889
|
-
return parsedModel.toLowerCase().includes("opus-4-6");
|
|
8040
|
+
return parsedModel.toLowerCase().includes("opus-4-7") || parsedModel.toLowerCase().includes("opus-4-6");
|
|
7890
8041
|
}
|
|
7891
8042
|
function getFastModeRuntimeState() {
|
|
7892
8043
|
if (runtimeState.status === "cooldown" && Date.now() >= runtimeState.resetAt) {
|
|
@@ -8082,7 +8233,7 @@ async function prefetchFastModeStatus() {
|
|
|
8082
8233
|
inflightPrefetch = doFetch();
|
|
8083
8234
|
return inflightPrefetch;
|
|
8084
8235
|
}
|
|
8085
|
-
var FAST_MODE_MODEL_DISPLAY = "Opus 4.
|
|
8236
|
+
var FAST_MODE_MODEL_DISPLAY = "Opus 4.7", runtimeState, hasLoggedCooldownExpiry = false, cooldownTriggered, cooldownExpired, onCooldownTriggered, onCooldownExpired, overageRejection, onFastModeOverageRejection, orgStatus, orgFastModeChange, onOrgFastModeChanged, PREFETCH_MIN_INTERVAL_MS = 30000, lastPrefetchAt = 0, inflightPrefetch = null;
|
|
8086
8237
|
var init_fastMode = __esm(() => {
|
|
8087
8238
|
init_axios();
|
|
8088
8239
|
init_oauth();
|
|
@@ -8112,7 +8263,7 @@ var init_fastMode = __esm(() => {
|
|
|
8112
8263
|
});
|
|
8113
8264
|
|
|
8114
8265
|
// src/utils/model/configs.ts
|
|
8115
|
-
var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
|
|
8266
|
+
var CLAUDE_3_7_SONNET_CONFIG, CLAUDE_3_5_V2_SONNET_CONFIG, CLAUDE_3_5_HAIKU_CONFIG, CLAUDE_HAIKU_4_5_CONFIG, CLAUDE_SONNET_4_CONFIG, CLAUDE_SONNET_4_5_CONFIG, CLAUDE_OPUS_4_CONFIG, CLAUDE_OPUS_4_1_CONFIG, CLAUDE_OPUS_4_5_CONFIG, CLAUDE_OPUS_4_6_CONFIG, CLAUDE_OPUS_4_7_CONFIG, CLAUDE_SONNET_4_6_CONFIG, ALL_MODEL_CONFIGS, CANONICAL_MODEL_IDS, CANONICAL_ID_TO_KEY;
|
|
8116
8267
|
var init_configs = __esm(() => {
|
|
8117
8268
|
CLAUDE_3_7_SONNET_CONFIG = {
|
|
8118
8269
|
firstParty: "claude-3-7-sonnet-20250219",
|
|
@@ -8204,6 +8355,15 @@ var init_configs = __esm(() => {
|
|
|
8204
8355
|
gemini: "claude-opus-4-6",
|
|
8205
8356
|
grok: "claude-opus-4-6"
|
|
8206
8357
|
};
|
|
8358
|
+
CLAUDE_OPUS_4_7_CONFIG = {
|
|
8359
|
+
firstParty: "claude-opus-4-7",
|
|
8360
|
+
bedrock: "us.anthropic.claude-opus-4-7-v1",
|
|
8361
|
+
vertex: "claude-opus-4-7",
|
|
8362
|
+
foundry: "claude-opus-4-7",
|
|
8363
|
+
openai: "claude-opus-4-7",
|
|
8364
|
+
gemini: "claude-opus-4-7",
|
|
8365
|
+
grok: "claude-opus-4-7"
|
|
8366
|
+
};
|
|
8207
8367
|
CLAUDE_SONNET_4_6_CONFIG = {
|
|
8208
8368
|
firstParty: "claude-sonnet-4-6",
|
|
8209
8369
|
bedrock: "us.anthropic.claude-sonnet-4-6",
|
|
@@ -8224,7 +8384,8 @@ var init_configs = __esm(() => {
|
|
|
8224
8384
|
opus40: CLAUDE_OPUS_4_CONFIG,
|
|
8225
8385
|
opus41: CLAUDE_OPUS_4_1_CONFIG,
|
|
8226
8386
|
opus45: CLAUDE_OPUS_4_5_CONFIG,
|
|
8227
|
-
opus46: CLAUDE_OPUS_4_6_CONFIG
|
|
8387
|
+
opus46: CLAUDE_OPUS_4_6_CONFIG,
|
|
8388
|
+
opus47: CLAUDE_OPUS_4_7_CONFIG
|
|
8228
8389
|
};
|
|
8229
8390
|
CANONICAL_MODEL_IDS = Object.values(ALL_MODEL_CONFIGS).map((c) => c.firstParty);
|
|
8230
8391
|
CANONICAL_ID_TO_KEY = Object.fromEntries(Object.entries(ALL_MODEL_CONFIGS).map(([key, cfg]) => [cfg.firstParty, key]));
|
|
@@ -8348,7 +8509,7 @@ var init_modelCost = __esm(() => {
|
|
|
8348
8509
|
});
|
|
8349
8510
|
|
|
8350
8511
|
// src/constants/figures.ts
|
|
8351
|
-
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", CHANNEL_ARROW = "\u2190", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", FLAG_ICON = "\u2691", BLOCKQUOTE_BAR = "\u258E", BRIDGE_SPINNER_FRAMES, BRIDGE_READY_INDICATOR = "\xB7\u2714\uFE0E\xB7", BRIDGE_FAILED_INDICATOR = "\xD7";
|
|
8512
|
+
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_XHIGH = "\u29BF", EFFORT_MAX = "\u25C9", PLAY_ICON = "\u25B6", PAUSE_ICON = "\u23F8", REFRESH_ARROW = "\u21BB", CHANNEL_ARROW = "\u2190", DIAMOND_OPEN = "\u25C7", DIAMOND_FILLED = "\u25C6", REFERENCE_MARK = "\u203B", FLAG_ICON = "\u2691", BLOCKQUOTE_BAR = "\u258E", BRIDGE_SPINNER_FRAMES, BRIDGE_READY_INDICATOR = "\xB7\u2714\uFE0E\xB7", BRIDGE_FAILED_INDICATOR = "\xD7";
|
|
8352
8513
|
var init_figures = __esm(() => {
|
|
8353
8514
|
init_env();
|
|
8354
8515
|
BLACK_CIRCLE = env.platform === "darwin" ? "\u23FA" : "\u25CF";
|
|
@@ -8601,7 +8762,7 @@ function getSmallFastModel() {
|
|
|
8601
8762
|
return process.env.ANTHROPIC_SMALL_FAST_MODEL || getDefaultHaikuModel();
|
|
8602
8763
|
}
|
|
8603
8764
|
function isNonCustomOpusModel(model) {
|
|
8604
|
-
return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46;
|
|
8765
|
+
return model === getModelStrings2().opus40 || model === getModelStrings2().opus41 || model === getModelStrings2().opus45 || model === getModelStrings2().opus46 || model === getModelStrings2().opus47;
|
|
8605
8766
|
}
|
|
8606
8767
|
function getUserSpecifiedModelSetting() {
|
|
8607
8768
|
let specifiedModel;
|
|
@@ -8638,14 +8799,10 @@ function getDefaultOpusModel() {
|
|
|
8638
8799
|
if (process.env.ANTHROPIC_DEFAULT_OPUS_MODEL) {
|
|
8639
8800
|
return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;
|
|
8640
8801
|
}
|
|
8641
|
-
const userSpecifiedOpus = getUserSpecifiedModelSetting();
|
|
8642
|
-
if (userSpecifiedOpus) {
|
|
8643
|
-
return parseUserSpecifiedModel(userSpecifiedOpus);
|
|
8644
|
-
}
|
|
8645
8802
|
if (provider !== "firstParty") {
|
|
8646
|
-
return getModelStrings2().
|
|
8803
|
+
return getModelStrings2().opus47;
|
|
8647
8804
|
}
|
|
8648
|
-
return getModelStrings2().
|
|
8805
|
+
return getModelStrings2().opus47;
|
|
8649
8806
|
}
|
|
8650
8807
|
function getDefaultSonnetModel() {
|
|
8651
8808
|
const provider = getAPIProvider();
|
|
@@ -8658,10 +8815,6 @@ function getDefaultSonnetModel() {
|
|
|
8658
8815
|
if (process.env.ANTHROPIC_DEFAULT_SONNET_MODEL) {
|
|
8659
8816
|
return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;
|
|
8660
8817
|
}
|
|
8661
|
-
const userSpecified = getUserSpecifiedModelSetting();
|
|
8662
|
-
if (userSpecified) {
|
|
8663
|
-
return parseUserSpecifiedModel(userSpecified);
|
|
8664
|
-
}
|
|
8665
8818
|
if (provider !== "firstParty") {
|
|
8666
8819
|
return getModelStrings2().sonnet45;
|
|
8667
8820
|
}
|
|
@@ -8678,10 +8831,6 @@ function getDefaultHaikuModel() {
|
|
|
8678
8831
|
if (process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL) {
|
|
8679
8832
|
return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;
|
|
8680
8833
|
}
|
|
8681
|
-
const userSpecifiedHaiku = getUserSpecifiedModelSetting();
|
|
8682
|
-
if (userSpecifiedHaiku) {
|
|
8683
|
-
return parseUserSpecifiedModel(userSpecifiedHaiku);
|
|
8684
|
-
}
|
|
8685
8834
|
return getModelStrings2().haiku45;
|
|
8686
8835
|
}
|
|
8687
8836
|
function getRuntimeMainLoopModel(params) {
|
|
@@ -8711,6 +8860,9 @@ function getDefaultMainLoopModel() {
|
|
|
8711
8860
|
}
|
|
8712
8861
|
function firstPartyNameToCanonical(name) {
|
|
8713
8862
|
name = name.toLowerCase();
|
|
8863
|
+
if (name.includes("claude-opus-4-7")) {
|
|
8864
|
+
return "claude-opus-4-7";
|
|
8865
|
+
}
|
|
8714
8866
|
if (name.includes("claude-opus-4-6")) {
|
|
8715
8867
|
return "claude-opus-4-6";
|
|
8716
8868
|
}
|
|
@@ -8765,19 +8917,19 @@ function getCanonicalName(fullModelName) {
|
|
|
8765
8917
|
function getClaudeAiUserDefaultModelDescription(fastMode = false) {
|
|
8766
8918
|
if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
|
|
8767
8919
|
if (isOpus1mMergeEnabled()) {
|
|
8768
|
-
return `Opus 4.
|
|
8920
|
+
return `Opus 4.7 with 1M context \xB7 Most capable for complex work${fastMode ? getOpusPricingSuffix(true) : ""}`;
|
|
8769
8921
|
}
|
|
8770
|
-
return `Opus 4.
|
|
8922
|
+
return `Opus 4.7 \xB7 Most capable for complex work${fastMode ? getOpusPricingSuffix(true) : ""}`;
|
|
8771
8923
|
}
|
|
8772
8924
|
return "Sonnet 4.6 \xB7 Best for everyday tasks";
|
|
8773
8925
|
}
|
|
8774
8926
|
function renderDefaultModelSetting(setting) {
|
|
8775
8927
|
if (setting === "opusplan") {
|
|
8776
|
-
return "Opus 4.
|
|
8928
|
+
return "Opus 4.7 in plan mode, else Sonnet 4.6";
|
|
8777
8929
|
}
|
|
8778
8930
|
return renderModelName(parseUserSpecifiedModel(setting));
|
|
8779
8931
|
}
|
|
8780
|
-
function
|
|
8932
|
+
function getOpusPricingSuffix(fastMode) {
|
|
8781
8933
|
if (getAPIProvider() !== "firstParty")
|
|
8782
8934
|
return "";
|
|
8783
8935
|
const pricing = formatModelPricing(getOpus46CostTier(fastMode));
|
|
@@ -8804,6 +8956,10 @@ function renderModelSetting(setting) {
|
|
|
8804
8956
|
}
|
|
8805
8957
|
function getPublicModelDisplayName(model) {
|
|
8806
8958
|
switch (model) {
|
|
8959
|
+
case getModelStrings2().opus47:
|
|
8960
|
+
return "Opus 4.7";
|
|
8961
|
+
case getModelStrings2().opus47 + "[1m]":
|
|
8962
|
+
return "Opus 4.7 (1M context)";
|
|
8807
8963
|
case getModelStrings2().opus46:
|
|
8808
8964
|
return "Opus 4.6";
|
|
8809
8965
|
case getModelStrings2().opus46 + "[1m]":
|
|
@@ -8941,6 +9097,9 @@ function getMarketingNameForModel(modelId) {
|
|
|
8941
9097
|
}
|
|
8942
9098
|
const has1m = modelId.toLowerCase().includes("[1m]");
|
|
8943
9099
|
const canonical = getCanonicalName(modelId);
|
|
9100
|
+
if (canonical.includes("claude-opus-4-7")) {
|
|
9101
|
+
return has1m ? "Opus 4.7 (with 1M context)" : "Opus 4.7";
|
|
9102
|
+
}
|
|
8944
9103
|
if (canonical.includes("claude-opus-4-6")) {
|
|
8945
9104
|
return has1m ? "Opus 4.6 (with 1M context)" : "Opus 4.6";
|
|
8946
9105
|
}
|
|
@@ -9057,7 +9216,7 @@ async function getAnthropicClient({
|
|
|
9057
9216
|
}
|
|
9058
9217
|
};
|
|
9059
9218
|
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)) {
|
|
9060
|
-
const {
|
|
9219
|
+
const { BedrockClient } = await import("./chunk-sd3b922y.js");
|
|
9061
9220
|
const awsRegion = model === getSmallFastModel() && process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION ? process.env.ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION : getAWSRegion();
|
|
9062
9221
|
const bedrockArgs = {
|
|
9063
9222
|
...ARGS,
|
|
@@ -9081,7 +9240,7 @@ async function getAnthropicClient({
|
|
|
9081
9240
|
bedrockArgs.awsSessionToken = cachedCredentials.sessionToken;
|
|
9082
9241
|
}
|
|
9083
9242
|
}
|
|
9084
|
-
return new
|
|
9243
|
+
return new BedrockClient(bedrockArgs);
|
|
9085
9244
|
}
|
|
9086
9245
|
if (isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)) {
|
|
9087
9246
|
const { AnthropicFoundry } = await import("./chunk-r9e0q1sn.js");
|
|
@@ -9200,16 +9359,14 @@ var init_client = __esm(() => {
|
|
|
9200
9359
|
// src/utils/model/modelCapabilities.ts
|
|
9201
9360
|
import { readFileSync as readFileSync2 } from "fs";
|
|
9202
9361
|
import { mkdir, writeFile } from "fs/promises";
|
|
9203
|
-
import { join as
|
|
9362
|
+
import { join as join6 } from "path";
|
|
9204
9363
|
function getCacheDir() {
|
|
9205
|
-
return
|
|
9364
|
+
return join6(getClaudeConfigHomeDir(), "cache");
|
|
9206
9365
|
}
|
|
9207
9366
|
function getCachePath() {
|
|
9208
|
-
return
|
|
9367
|
+
return join6(getCacheDir(), "model-capabilities.json");
|
|
9209
9368
|
}
|
|
9210
9369
|
function isModelCapabilitiesEligible() {
|
|
9211
|
-
if (process.env.USER_TYPE !== "ant")
|
|
9212
|
-
return false;
|
|
9213
9370
|
if (getAPIProvider() !== "firstParty")
|
|
9214
9371
|
return false;
|
|
9215
9372
|
if (!isFirstPartyAnthropicBaseUrl())
|
|
@@ -9314,7 +9471,7 @@ function modelSupports1M(model) {
|
|
|
9314
9471
|
return false;
|
|
9315
9472
|
}
|
|
9316
9473
|
const canonical = getCanonicalName(model);
|
|
9317
|
-
return canonical.includes("claude-sonnet-4") || canonical.includes("opus-4-6");
|
|
9474
|
+
return canonical.includes("claude-sonnet-4") || canonical.includes("opus-4-6") || canonical.includes("opus-4-7");
|
|
9318
9475
|
}
|
|
9319
9476
|
function getContextWindowForModel(model, betas) {
|
|
9320
9477
|
if (process.env.USER_TYPE === "ant" && process.env.CLAUDE_CODE_MAX_CONTEXT_TOKENS) {
|
|
@@ -9386,7 +9543,10 @@ function getModelMaxOutputTokens(model) {
|
|
|
9386
9543
|
}
|
|
9387
9544
|
}
|
|
9388
9545
|
const m = getCanonicalName(model);
|
|
9389
|
-
if (m.includes("opus-4-
|
|
9546
|
+
if (m.includes("opus-4-7")) {
|
|
9547
|
+
defaultTokens = 64000;
|
|
9548
|
+
upperLimit = 128000;
|
|
9549
|
+
} else if (m.includes("opus-4-6")) {
|
|
9390
9550
|
defaultTokens = 64000;
|
|
9391
9551
|
upperLimit = 128000;
|
|
9392
9552
|
} else if (m.includes("sonnet-4-6")) {
|
|
@@ -9552,7 +9712,7 @@ function modelSupportsStructuredOutputs(model) {
|
|
|
9552
9712
|
if (provider !== "firstParty" && provider !== "foundry") {
|
|
9553
9713
|
return false;
|
|
9554
9714
|
}
|
|
9555
|
-
return canonical.includes("claude-sonnet-4-6") || canonical.includes("claude-sonnet-4-5") || canonical.includes("claude-opus-4-1") || canonical.includes("claude-opus-4-5") || canonical.includes("claude-opus-4-6") || canonical.includes("claude-haiku-4-5");
|
|
9715
|
+
return canonical.includes("claude-sonnet-4-6") || canonical.includes("claude-sonnet-4-5") || canonical.includes("claude-opus-4-1") || canonical.includes("claude-opus-4-5") || canonical.includes("claude-opus-4-6") || canonical.includes("claude-opus-4-7") || canonical.includes("claude-haiku-4-5");
|
|
9556
9716
|
}
|
|
9557
9717
|
function modelSupportsAutoMode(model) {
|
|
9558
9718
|
if (true) {
|
|
@@ -9572,7 +9732,7 @@ function modelSupportsAutoMode(model) {
|
|
|
9572
9732
|
return false;
|
|
9573
9733
|
return true;
|
|
9574
9734
|
}
|
|
9575
|
-
return /^claude-(opus|sonnet)-4-
|
|
9735
|
+
return /^claude-(opus|sonnet)-4-[67]/.test(m);
|
|
9576
9736
|
}
|
|
9577
9737
|
return false;
|
|
9578
9738
|
}
|
|
@@ -9650,9 +9810,9 @@ var init_betas2 = __esm(() => {
|
|
|
9650
9810
|
if (includeFirstPartyOnlyBetas && modelSupportsISP(model) && !getIsNonInteractiveSession() && getInitialSettings().showThinkingSummaries !== true) {
|
|
9651
9811
|
betaHeaders.push(REDACT_THINKING_BETA_HEADER);
|
|
9652
9812
|
}
|
|
9653
|
-
const
|
|
9813
|
+
const toolClearingOptIn = isEnvTruthy(process.env.USE_API_CONTEXT_MANAGEMENT) || modelSupportsContextManagement(model);
|
|
9654
9814
|
const thinkingPreservationEnabled = modelSupportsContextManagement(model);
|
|
9655
|
-
if (shouldIncludeFirstPartyOnlyBetas() && (
|
|
9815
|
+
if (shouldIncludeFirstPartyOnlyBetas() && (toolClearingOptIn || thinkingPreservationEnabled)) {
|
|
9656
9816
|
betaHeaders.push(CONTEXT_MANAGEMENT_BETA_HEADER);
|
|
9657
9817
|
}
|
|
9658
9818
|
const strictToolsEnabled = checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_tool_pear");
|
|
@@ -9701,23 +9861,13 @@ var init_officialRegistry = __esm(() => {
|
|
|
9701
9861
|
});
|
|
9702
9862
|
|
|
9703
9863
|
// src/utils/agentSwarmsEnabled.ts
|
|
9704
|
-
function isAgentTeamsFlagSet() {
|
|
9705
|
-
return process.argv.includes("--agent-teams");
|
|
9706
|
-
}
|
|
9707
9864
|
function isAgentSwarmsEnabled() {
|
|
9708
|
-
if (process.env.
|
|
9709
|
-
return true;
|
|
9710
|
-
}
|
|
9711
|
-
if (!isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS) && !isAgentTeamsFlagSet()) {
|
|
9712
|
-
return false;
|
|
9713
|
-
}
|
|
9714
|
-
if (!getFeatureValue_CACHED_MAY_BE_STALE("tengu_amber_flint", true)) {
|
|
9865
|
+
if (isEnvTruthy(process.env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS_DISABLED)) {
|
|
9715
9866
|
return false;
|
|
9716
9867
|
}
|
|
9717
9868
|
return true;
|
|
9718
9869
|
}
|
|
9719
9870
|
var init_agentSwarmsEnabled = __esm(() => {
|
|
9720
|
-
init_growthbook();
|
|
9721
9871
|
init_envUtils();
|
|
9722
9872
|
});
|
|
9723
9873
|
|
|
@@ -10233,7 +10383,7 @@ var init_metadata = __esm(() => {
|
|
|
10233
10383
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
10234
10384
|
version: "2.1.888",
|
|
10235
10385
|
versionBase: getVersionBase(),
|
|
10236
|
-
buildTime: "2026-04-
|
|
10386
|
+
buildTime: "2026-04-23T11:53:23.938Z",
|
|
10237
10387
|
deploymentEnvironment: env.detectDeploymentEnvironment(),
|
|
10238
10388
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
10239
10389
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -10886,7 +11036,7 @@ function initialize1PEventLogging() {
|
|
|
10886
11036
|
const batchConfig = getBatchConfig();
|
|
10887
11037
|
lastBatchConfig = batchConfig;
|
|
10888
11038
|
profileCheckpoint("1p_event_after_growthbook_config");
|
|
10889
|
-
const scheduledDelayMillis = batchConfig.scheduledDelayMillis || parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL || DEFAULT_LOGS_EXPORT_INTERVAL_MS.toString());
|
|
11039
|
+
const scheduledDelayMillis = batchConfig.scheduledDelayMillis || parseInt(process.env.OTEL_LOGS_EXPORT_INTERVAL || DEFAULT_LOGS_EXPORT_INTERVAL_MS.toString(), 10);
|
|
10890
11040
|
const maxExportBatchSize = batchConfig.maxExportBatchSize || DEFAULT_MAX_EXPORT_BATCH_SIZE;
|
|
10891
11041
|
const maxQueueSize = batchConfig.maxQueueSize || DEFAULT_MAX_QUEUE_SIZE;
|
|
10892
11042
|
const platform3 = getPlatform();
|
|
@@ -11511,7 +11661,9 @@ var init_growthbook = __esm(() => {
|
|
|
11511
11661
|
tengu_kairos_assistant: true,
|
|
11512
11662
|
tengu_kairos_cron_durable: true,
|
|
11513
11663
|
tengu_attribution_header: true,
|
|
11514
|
-
tengu_slate_prism: true
|
|
11664
|
+
tengu_slate_prism: true,
|
|
11665
|
+
tengu_review_bughunter_config: { enabled: true },
|
|
11666
|
+
tengu_ccr_bundle_seed_enabled: true
|
|
11515
11667
|
};
|
|
11516
11668
|
getGrowthBookClient = memoize_default(() => {
|
|
11517
11669
|
if (!isGrowthBookEnabled()) {
|
|
@@ -11672,18 +11824,18 @@ var init_fileReadCache = __esm(() => {
|
|
|
11672
11824
|
|
|
11673
11825
|
// src/utils/file.ts
|
|
11674
11826
|
import { chmodSync, writeFileSync as fsWriteFileSync } from "fs";
|
|
11675
|
-
import { realpath, stat as stat2 } from "fs/promises";
|
|
11827
|
+
import { realpath as realpath2, stat as stat2 } from "fs/promises";
|
|
11676
11828
|
import { homedir as homedir2 } from "os";
|
|
11677
11829
|
import {
|
|
11678
11830
|
basename as basename2,
|
|
11679
|
-
dirname as
|
|
11831
|
+
dirname as dirname3,
|
|
11680
11832
|
extname as extname2,
|
|
11681
11833
|
isAbsolute as isAbsolute2,
|
|
11682
|
-
join as
|
|
11834
|
+
join as join8,
|
|
11683
11835
|
normalize as normalize2,
|
|
11684
11836
|
relative,
|
|
11685
|
-
resolve as
|
|
11686
|
-
sep as
|
|
11837
|
+
resolve as resolve3,
|
|
11838
|
+
sep as sep3
|
|
11687
11839
|
} from "path";
|
|
11688
11840
|
async function pathExists(path2) {
|
|
11689
11841
|
try {
|
|
@@ -11765,7 +11917,7 @@ function getDisplayPath(filePath) {
|
|
|
11765
11917
|
return relativePath;
|
|
11766
11918
|
}
|
|
11767
11919
|
const homeDir = homedir2();
|
|
11768
|
-
if (filePath.startsWith(homeDir +
|
|
11920
|
+
if (filePath.startsWith(homeDir + sep3)) {
|
|
11769
11921
|
return "~" + filePath.slice(homeDir.length);
|
|
11770
11922
|
}
|
|
11771
11923
|
return filePath;
|
|
@@ -11773,10 +11925,10 @@ function getDisplayPath(filePath) {
|
|
|
11773
11925
|
function findSimilarFile(filePath) {
|
|
11774
11926
|
const fs = getFsImplementation();
|
|
11775
11927
|
try {
|
|
11776
|
-
const dir =
|
|
11928
|
+
const dir = dirname3(filePath);
|
|
11777
11929
|
const fileBaseName = basename2(filePath, extname2(filePath));
|
|
11778
11930
|
const files = fs.readdirSync(dir);
|
|
11779
|
-
const similarFiles = files.filter((file) => basename2(file.name, extname2(file.name)) === fileBaseName &&
|
|
11931
|
+
const similarFiles = files.filter((file) => basename2(file.name, extname2(file.name)) === fileBaseName && join8(dir, file.name) !== filePath);
|
|
11780
11932
|
const firstMatch = similarFiles[0];
|
|
11781
11933
|
if (firstMatch) {
|
|
11782
11934
|
return firstMatch.name;
|
|
@@ -11791,18 +11943,18 @@ function findSimilarFile(filePath) {
|
|
|
11791
11943
|
}
|
|
11792
11944
|
async function suggestPathUnderCwd(requestedPath) {
|
|
11793
11945
|
const cwd = getCwd();
|
|
11794
|
-
const cwdParent =
|
|
11946
|
+
const cwdParent = dirname3(cwd);
|
|
11795
11947
|
let resolvedPath = requestedPath;
|
|
11796
11948
|
try {
|
|
11797
|
-
const resolvedDir = await
|
|
11798
|
-
resolvedPath =
|
|
11949
|
+
const resolvedDir = await realpath2(dirname3(requestedPath));
|
|
11950
|
+
resolvedPath = join8(resolvedDir, basename2(requestedPath));
|
|
11799
11951
|
} catch {}
|
|
11800
|
-
const cwdParentPrefix = cwdParent ===
|
|
11801
|
-
if (!resolvedPath.startsWith(cwdParentPrefix) || resolvedPath.startsWith(cwd +
|
|
11952
|
+
const cwdParentPrefix = cwdParent === sep3 ? sep3 : cwdParent + sep3;
|
|
11953
|
+
if (!resolvedPath.startsWith(cwdParentPrefix) || resolvedPath.startsWith(cwd + sep3) || resolvedPath === cwd) {
|
|
11802
11954
|
return;
|
|
11803
11955
|
}
|
|
11804
11956
|
const relFromParent = relative(cwdParent, resolvedPath);
|
|
11805
|
-
const correctedPath =
|
|
11957
|
+
const correctedPath = join8(cwd, relFromParent);
|
|
11806
11958
|
try {
|
|
11807
11959
|
await stat2(correctedPath);
|
|
11808
11960
|
return correctedPath;
|
|
@@ -11854,7 +12006,7 @@ function writeFileSyncAndFlush_DEPRECATED(filePath, content, options = { encodin
|
|
|
11854
12006
|
let targetPath = filePath;
|
|
11855
12007
|
try {
|
|
11856
12008
|
const linkTarget = fs.readlinkSync(filePath);
|
|
11857
|
-
targetPath = isAbsolute2(linkTarget) ? linkTarget :
|
|
12009
|
+
targetPath = isAbsolute2(linkTarget) ? linkTarget : resolve3(dirname3(filePath), linkTarget);
|
|
11858
12010
|
logForDebugging(`Writing through symlink: ${filePath} -> ${targetPath}`);
|
|
11859
12011
|
} catch {}
|
|
11860
12012
|
const tempPath = `${targetPath}.tmp.${process.pid}.${Date.now()}`;
|
|
@@ -11922,7 +12074,7 @@ function getDesktopPath() {
|
|
|
11922
12074
|
const platform3 = getPlatform();
|
|
11923
12075
|
const homeDir = homedir2();
|
|
11924
12076
|
if (platform3 === "macos") {
|
|
11925
|
-
return
|
|
12077
|
+
return join8(homeDir, "Desktop");
|
|
11926
12078
|
}
|
|
11927
12079
|
if (platform3 === "windows") {
|
|
11928
12080
|
const windowsHome = process.env.USERPROFILE ? process.env.USERPROFILE.replace(/\\/g, "/") : null;
|
|
@@ -11940,7 +12092,7 @@ function getDesktopPath() {
|
|
|
11940
12092
|
if (user.name === "Public" || user.name === "Default" || user.name === "Default User" || user.name === "All Users") {
|
|
11941
12093
|
continue;
|
|
11942
12094
|
}
|
|
11943
|
-
const potentialDesktopPath =
|
|
12095
|
+
const potentialDesktopPath = join8(usersDir, user.name, "Desktop");
|
|
11944
12096
|
if (getFsImplementation().existsSync(potentialDesktopPath)) {
|
|
11945
12097
|
return potentialDesktopPath;
|
|
11946
12098
|
}
|
|
@@ -11949,7 +12101,7 @@ function getDesktopPath() {
|
|
|
11949
12101
|
logError(error);
|
|
11950
12102
|
}
|
|
11951
12103
|
}
|
|
11952
|
-
const desktopPath =
|
|
12104
|
+
const desktopPath = join8(homeDir, "Desktop");
|
|
11953
12105
|
if (getFsImplementation().existsSync(desktopPath)) {
|
|
11954
12106
|
return desktopPath;
|
|
11955
12107
|
}
|
|
@@ -11993,7 +12145,7 @@ var init_file = __esm(() => {
|
|
|
11993
12145
|
// src/utils/git/gitignore.ts
|
|
11994
12146
|
import { appendFile as appendFile2, mkdir as mkdir3, readFile, writeFile as writeFile3 } from "fs/promises";
|
|
11995
12147
|
import { homedir as homedir3 } from "os";
|
|
11996
|
-
import { dirname as
|
|
12148
|
+
import { dirname as dirname4, join as join9 } from "path";
|
|
11997
12149
|
async function isPathGitignored(filePath, cwd) {
|
|
11998
12150
|
const { code } = await execFileNoThrowWithCwd("git", ["check-ignore", filePath], {
|
|
11999
12151
|
preserveOutputOnError: false,
|
|
@@ -12002,7 +12154,7 @@ async function isPathGitignored(filePath, cwd) {
|
|
|
12002
12154
|
return code === 0;
|
|
12003
12155
|
}
|
|
12004
12156
|
function getGlobalGitignorePath() {
|
|
12005
|
-
return
|
|
12157
|
+
return join9(homedir3(), ".config", "git", "ignore");
|
|
12006
12158
|
}
|
|
12007
12159
|
async function addFileGlobRuleToGitignore(filename, cwd = getCwd()) {
|
|
12008
12160
|
try {
|
|
@@ -12015,7 +12167,7 @@ async function addFileGlobRuleToGitignore(filename, cwd = getCwd()) {
|
|
|
12015
12167
|
return;
|
|
12016
12168
|
}
|
|
12017
12169
|
const globalGitignorePath = getGlobalGitignorePath();
|
|
12018
|
-
const configGitDir =
|
|
12170
|
+
const configGitDir = dirname4(globalGitignorePath);
|
|
12019
12171
|
await mkdir3(configGitDir, { recursive: true });
|
|
12020
12172
|
try {
|
|
12021
12173
|
const content = await readFile(globalGitignorePath, { encoding: "utf-8" });
|
|
@@ -13421,7 +13573,7 @@ var init_types2 = __esm(() => {
|
|
|
13421
13573
|
syntaxHighlightingDisabled: exports_external.boolean().optional().describe("Whether to disable syntax highlighting in diffs"),
|
|
13422
13574
|
terminalTitleFromRename: exports_external.boolean().optional().describe("Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles."),
|
|
13423
13575
|
alwaysThinkingEnabled: exports_external.boolean().optional().describe("When false, thinking is disabled. When absent or true, thinking is " + "enabled automatically for supported models."),
|
|
13424
|
-
effortLevel: exports_external.enum(process.env.USER_TYPE === "ant" ? ["low", "medium", "high", "max"] : ["low", "medium", "high"]).optional().catch(undefined).describe("Persisted effort level for supported models."),
|
|
13576
|
+
effortLevel: exports_external.enum(process.env.USER_TYPE === "ant" ? ["low", "medium", "high", "xhigh", "max"] : ["low", "medium", "high", "xhigh"]).optional().catch(undefined).describe("Persisted effort level for supported models."),
|
|
13425
13577
|
advisorModel: exports_external.string().optional().describe("Advisor model for the server-side advisor tool."),
|
|
13426
13578
|
fastMode: exports_external.boolean().optional().describe("When true, fast mode is enabled. When absent or false, fast mode is off."),
|
|
13427
13579
|
fastModePerSessionOptIn: exports_external.boolean().optional().describe("When true, fast mode does not persist across sessions. Each session starts with fast mode off."),
|
|
@@ -13782,7 +13934,7 @@ var init_validation2 = __esm(() => {
|
|
|
13782
13934
|
|
|
13783
13935
|
// src/utils/settings/mdm/constants.ts
|
|
13784
13936
|
import { homedir as homedir4, userInfo } from "os";
|
|
13785
|
-
import { join as
|
|
13937
|
+
import { join as join10 } from "path";
|
|
13786
13938
|
function getMacOSPlistPaths() {
|
|
13787
13939
|
let username = "";
|
|
13788
13940
|
try {
|
|
@@ -13801,7 +13953,7 @@ function getMacOSPlistPaths() {
|
|
|
13801
13953
|
});
|
|
13802
13954
|
if (process.env.USER_TYPE === "ant") {
|
|
13803
13955
|
paths.push({
|
|
13804
|
-
path:
|
|
13956
|
+
path: join10(homedir4(), "Library", "Preferences", `${MACOS_PREFERENCE_DOMAIN}.plist`),
|
|
13805
13957
|
label: "user preferences (ant-only)"
|
|
13806
13958
|
});
|
|
13807
13959
|
}
|
|
@@ -13816,9 +13968,9 @@ var init_constants5 = __esm(() => {
|
|
|
13816
13968
|
import { execFile } from "child_process";
|
|
13817
13969
|
import { existsSync } from "fs";
|
|
13818
13970
|
function execFilePromise(cmd, args) {
|
|
13819
|
-
return new Promise((
|
|
13971
|
+
return new Promise((resolve4) => {
|
|
13820
13972
|
execFile(cmd, args, { encoding: "utf-8", timeout: MDM_SUBPROCESS_TIMEOUT_MS }, (err, stdout) => {
|
|
13821
|
-
|
|
13973
|
+
resolve4({ stdout: stdout ?? "", code: err ? 1 : 0 });
|
|
13822
13974
|
});
|
|
13823
13975
|
});
|
|
13824
13976
|
}
|
|
@@ -13881,7 +14033,7 @@ var init_rawRead = __esm(() => {
|
|
|
13881
14033
|
});
|
|
13882
14034
|
|
|
13883
14035
|
// src/utils/settings/mdm/settings.ts
|
|
13884
|
-
import { join as
|
|
14036
|
+
import { join as join11 } from "path";
|
|
13885
14037
|
function startMdmSettingsLoad() {
|
|
13886
14038
|
if (mdmLoadPromise)
|
|
13887
14039
|
return;
|
|
@@ -13983,7 +14135,7 @@ function consumeRawReadResult(raw) {
|
|
|
13983
14135
|
}
|
|
13984
14136
|
function hasManagedSettingsFile() {
|
|
13985
14137
|
try {
|
|
13986
|
-
const filePath =
|
|
14138
|
+
const filePath = join11(getManagedFilePath(), "managed-settings.json");
|
|
13987
14139
|
const content = readFileSync(filePath);
|
|
13988
14140
|
const data = safeParseJSON(content, false);
|
|
13989
14141
|
if (data && typeof data === "object" && Object.keys(data).length > 0) {
|
|
@@ -13998,7 +14150,7 @@ function hasManagedSettingsFile() {
|
|
|
13998
14150
|
continue;
|
|
13999
14151
|
}
|
|
14000
14152
|
try {
|
|
14001
|
-
const content = readFileSync(
|
|
14153
|
+
const content = readFileSync(join11(dropInDir, d.name));
|
|
14002
14154
|
const data = safeParseJSON(content, false);
|
|
14003
14155
|
if (data && typeof data === "object" && Object.keys(data).length > 0) {
|
|
14004
14156
|
return true;
|
|
@@ -14025,9 +14177,9 @@ var init_settings = __esm(() => {
|
|
|
14025
14177
|
});
|
|
14026
14178
|
|
|
14027
14179
|
// src/utils/settings/settings.ts
|
|
14028
|
-
import { dirname as
|
|
14180
|
+
import { dirname as dirname5, join as join12, resolve as resolve4 } from "path";
|
|
14029
14181
|
function getManagedSettingsFilePath() {
|
|
14030
|
-
return
|
|
14182
|
+
return join12(getManagedFilePath(), "managed-settings.json");
|
|
14031
14183
|
}
|
|
14032
14184
|
function loadManagedFileSettings() {
|
|
14033
14185
|
const errors = [];
|
|
@@ -14043,7 +14195,7 @@ function loadManagedFileSettings() {
|
|
|
14043
14195
|
try {
|
|
14044
14196
|
const entries = getFsImplementation().readdirSync(dropInDir).filter((d) => (d.isFile() || d.isSymbolicLink()) && d.name.endsWith(".json") && !d.name.startsWith(".")).map((d) => d.name).sort();
|
|
14045
14197
|
for (const name of entries) {
|
|
14046
|
-
const { settings: settings2, errors: fileErrors } = parseSettingsFile(
|
|
14198
|
+
const { settings: settings2, errors: fileErrors } = parseSettingsFile(join12(dropInDir, name));
|
|
14047
14199
|
errors.push(...fileErrors);
|
|
14048
14200
|
if (settings2 && Object.keys(settings2).length > 0) {
|
|
14049
14201
|
merged = mergeWith_default(merged, settings2, settingsMergeCustomizer);
|
|
@@ -14113,15 +14265,15 @@ function parseSettingsFileUncached(path2) {
|
|
|
14113
14265
|
function getSettingsRootPathForSource(source) {
|
|
14114
14266
|
switch (source) {
|
|
14115
14267
|
case "userSettings":
|
|
14116
|
-
return
|
|
14268
|
+
return resolve4(getClaudeConfigHomeDir());
|
|
14117
14269
|
case "policySettings":
|
|
14118
14270
|
case "projectSettings":
|
|
14119
14271
|
case "localSettings": {
|
|
14120
|
-
return
|
|
14272
|
+
return resolve4(getOriginalCwd());
|
|
14121
14273
|
}
|
|
14122
14274
|
case "flagSettings": {
|
|
14123
14275
|
const path2 = getFlagSettingsPath();
|
|
14124
|
-
return path2 ?
|
|
14276
|
+
return path2 ? dirname5(resolve4(path2)) : resolve4(getOriginalCwd());
|
|
14125
14277
|
}
|
|
14126
14278
|
}
|
|
14127
14279
|
}
|
|
@@ -14134,10 +14286,10 @@ function getUserSettingsFilePath() {
|
|
|
14134
14286
|
function getSettingsFilePathForSource(source) {
|
|
14135
14287
|
switch (source) {
|
|
14136
14288
|
case "userSettings":
|
|
14137
|
-
return
|
|
14289
|
+
return join12(getSettingsRootPathForSource(source), getUserSettingsFilePath());
|
|
14138
14290
|
case "projectSettings":
|
|
14139
14291
|
case "localSettings": {
|
|
14140
|
-
return
|
|
14292
|
+
return join12(getSettingsRootPathForSource(source), getRelativeSettingsFilePathForSource(source));
|
|
14141
14293
|
}
|
|
14142
14294
|
case "policySettings":
|
|
14143
14295
|
return getManagedSettingsFilePath();
|
|
@@ -14149,9 +14301,9 @@ function getSettingsFilePathForSource(source) {
|
|
|
14149
14301
|
function getRelativeSettingsFilePathForSource(source) {
|
|
14150
14302
|
switch (source) {
|
|
14151
14303
|
case "projectSettings":
|
|
14152
|
-
return
|
|
14304
|
+
return join12(".claude", "settings.json");
|
|
14153
14305
|
case "localSettings":
|
|
14154
|
-
return
|
|
14306
|
+
return join12(".claude", "settings.local.json");
|
|
14155
14307
|
}
|
|
14156
14308
|
}
|
|
14157
14309
|
function getSettingsForSource(source) {
|
|
@@ -14223,7 +14375,7 @@ function updateSettingsForSource(source, settings) {
|
|
|
14223
14375
|
return { error: null };
|
|
14224
14376
|
}
|
|
14225
14377
|
try {
|
|
14226
|
-
getFsImplementation().mkdirSync(
|
|
14378
|
+
getFsImplementation().mkdirSync(dirname5(filePath));
|
|
14227
14379
|
let existingSettings = getSettingsForSourceUncached(source);
|
|
14228
14380
|
if (!existingSettings) {
|
|
14229
14381
|
let content = null;
|
|
@@ -14405,7 +14557,7 @@ function loadSettingsFromDisk() {
|
|
|
14405
14557
|
}
|
|
14406
14558
|
const filePath = getSettingsFilePathForSource(source);
|
|
14407
14559
|
if (filePath) {
|
|
14408
|
-
const resolvedPath =
|
|
14560
|
+
const resolvedPath = resolve4(filePath);
|
|
14409
14561
|
if (!seenFiles.has(resolvedPath)) {
|
|
14410
14562
|
seenFiles.add(resolvedPath);
|
|
14411
14563
|
const { settings, errors } = parseSettingsFile(filePath);
|
|
@@ -14469,6 +14621,9 @@ function getSettingsWithErrors() {
|
|
|
14469
14621
|
function hasSkipDangerousModePermissionPrompt() {
|
|
14470
14622
|
return !!(getSettingsForSource("userSettings")?.skipDangerousModePermissionPrompt || getSettingsForSource("localSettings")?.skipDangerousModePermissionPrompt || getSettingsForSource("flagSettings")?.skipDangerousModePermissionPrompt || getSettingsForSource("policySettings")?.skipDangerousModePermissionPrompt);
|
|
14471
14623
|
}
|
|
14624
|
+
function hasAutoModeOptIn() {
|
|
14625
|
+
return true;
|
|
14626
|
+
}
|
|
14472
14627
|
function getUseAutoModeDuringPlan() {
|
|
14473
14628
|
if (true) {
|
|
14474
14629
|
return getSettingsForSource("policySettings")?.useAutoModeDuringPlan !== false && getSettingsForSource("flagSettings")?.useAutoModeDuringPlan !== false && getSettingsForSource("userSettings")?.useAutoModeDuringPlan !== false && getSettingsForSource("localSettings")?.useAutoModeDuringPlan !== false;
|
|
@@ -15482,11 +15637,11 @@ var init_macOsKeychainStorage = __esm(() => {
|
|
|
15482
15637
|
|
|
15483
15638
|
// src/utils/secureStorage/plainTextStorage.ts
|
|
15484
15639
|
import { chmodSync as chmodSync2 } from "fs";
|
|
15485
|
-
import { join as
|
|
15640
|
+
import { join as join13 } from "path";
|
|
15486
15641
|
function getStoragePath() {
|
|
15487
15642
|
const storageDir = getClaudeConfigHomeDir();
|
|
15488
15643
|
const storageFileName = ".credentials.json";
|
|
15489
|
-
return { storageDir, storagePath:
|
|
15644
|
+
return { storageDir, storagePath: join13(storageDir, storageFileName) };
|
|
15490
15645
|
}
|
|
15491
15646
|
var plainTextStorage;
|
|
15492
15647
|
var init_plainTextStorage = __esm(() => {
|
|
@@ -15574,9 +15729,9 @@ var init_secureStorage = __esm(() => {
|
|
|
15574
15729
|
// src/utils/secureStorage/keychainPrefetch.ts
|
|
15575
15730
|
import { execFile as execFile2 } from "child_process";
|
|
15576
15731
|
function spawnSecurity(serviceName2) {
|
|
15577
|
-
return new Promise((
|
|
15732
|
+
return new Promise((resolve5) => {
|
|
15578
15733
|
execFile2("security", ["find-generic-password", "-a", getUsername(), "-w", "-s", serviceName2], { encoding: "utf-8", timeout: KEYCHAIN_PREFETCH_TIMEOUT_MS }, (err, stdout) => {
|
|
15579
|
-
|
|
15734
|
+
resolve5({
|
|
15580
15735
|
stdout: err ? null : stdout?.trim() || null,
|
|
15581
15736
|
timedOut: Boolean(err && "killed" in err && err.killed)
|
|
15582
15737
|
});
|
|
@@ -15683,7 +15838,7 @@ __export(exports_auth, {
|
|
|
15683
15838
|
});
|
|
15684
15839
|
import { exec } from "child_process";
|
|
15685
15840
|
import { mkdir as mkdir4, stat as stat3 } from "fs/promises";
|
|
15686
|
-
import { join as
|
|
15841
|
+
import { join as join14 } from "path";
|
|
15687
15842
|
function isManagedOAuthContext() {
|
|
15688
15843
|
return isEnvTruthy(process.env.CLAUDE_CODE_REMOTE) || process.env.CLAUDE_CODE_ENTRYPOINT === "claude-desktop";
|
|
15689
15844
|
}
|
|
@@ -16008,7 +16163,7 @@ function refreshAwsAuth(awsAuthRefresh) {
|
|
|
16008
16163
|
logForDebugging("Running AWS auth refresh command");
|
|
16009
16164
|
const authStatusManager = AwsAuthStatusManager.getInstance();
|
|
16010
16165
|
authStatusManager.startAuthentication();
|
|
16011
|
-
return new Promise((
|
|
16166
|
+
return new Promise((resolve5) => {
|
|
16012
16167
|
const refreshProc = exec(awsAuthRefresh, {
|
|
16013
16168
|
timeout: AWS_AUTH_REFRESH_TIMEOUT_MS
|
|
16014
16169
|
});
|
|
@@ -16030,13 +16185,13 @@ function refreshAwsAuth(awsAuthRefresh) {
|
|
|
16030
16185
|
if (code === 0) {
|
|
16031
16186
|
logForDebugging("AWS auth refresh completed successfully");
|
|
16032
16187
|
authStatusManager.endAuthentication(true);
|
|
16033
|
-
|
|
16188
|
+
resolve5(true);
|
|
16034
16189
|
} else {
|
|
16035
16190
|
const timedOut = signal === "SIGTERM";
|
|
16036
16191
|
const message = timedOut ? source_default.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal.") : source_default.red("Error running awsAuthRefresh (in settings or ~/.claude.json):");
|
|
16037
16192
|
console.error(message);
|
|
16038
16193
|
authStatusManager.endAuthentication(false);
|
|
16039
|
-
|
|
16194
|
+
resolve5(false);
|
|
16040
16195
|
}
|
|
16041
16196
|
});
|
|
16042
16197
|
});
|
|
@@ -16154,7 +16309,7 @@ function refreshGcpAuth(gcpAuthRefresh) {
|
|
|
16154
16309
|
logForDebugging("Running GCP auth refresh command");
|
|
16155
16310
|
const authStatusManager = AwsAuthStatusManager.getInstance();
|
|
16156
16311
|
authStatusManager.startAuthentication();
|
|
16157
|
-
return new Promise((
|
|
16312
|
+
return new Promise((resolve5) => {
|
|
16158
16313
|
const refreshProc = exec(gcpAuthRefresh, {
|
|
16159
16314
|
timeout: GCP_AUTH_REFRESH_TIMEOUT_MS
|
|
16160
16315
|
});
|
|
@@ -16176,13 +16331,13 @@ function refreshGcpAuth(gcpAuthRefresh) {
|
|
|
16176
16331
|
if (code === 0) {
|
|
16177
16332
|
logForDebugging("GCP auth refresh completed successfully");
|
|
16178
16333
|
authStatusManager.endAuthentication(true);
|
|
16179
|
-
|
|
16334
|
+
resolve5(true);
|
|
16180
16335
|
} else {
|
|
16181
16336
|
const timedOut = signal === "SIGTERM";
|
|
16182
16337
|
const message = timedOut ? source_default.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal.") : source_default.red("Error running gcpAuthRefresh (in settings or ~/.claude.json):");
|
|
16183
16338
|
console.error(message);
|
|
16184
16339
|
authStatusManager.endAuthentication(false);
|
|
16185
|
-
|
|
16340
|
+
resolve5(false);
|
|
16186
16341
|
}
|
|
16187
16342
|
});
|
|
16188
16343
|
});
|
|
@@ -16334,7 +16489,7 @@ function clearOAuthTokenCache() {
|
|
|
16334
16489
|
}
|
|
16335
16490
|
async function invalidateOAuthCacheIfDiskChanged() {
|
|
16336
16491
|
try {
|
|
16337
|
-
const { mtimeMs } = await stat3(
|
|
16492
|
+
const { mtimeMs } = await stat3(join14(getClaudeConfigHomeDir(), ".credentials.json"));
|
|
16338
16493
|
if (mtimeMs !== lastCredentialsMtimeMs) {
|
|
16339
16494
|
lastCredentialsMtimeMs = mtimeMs;
|
|
16340
16495
|
clearOAuthTokenCache();
|
|
@@ -16587,7 +16742,7 @@ function getOtelHeadersFromHelper() {
|
|
|
16587
16742
|
if (!otelHeadersHelper) {
|
|
16588
16743
|
return {};
|
|
16589
16744
|
}
|
|
16590
|
-
const debounceMs = parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS || DEFAULT_OTEL_HEADERS_DEBOUNCE_MS.toString());
|
|
16745
|
+
const debounceMs = parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS || DEFAULT_OTEL_HEADERS_DEBOUNCE_MS.toString(), 10);
|
|
16591
16746
|
if (cachedOtelHeaders && Date.now() - cachedOtelHeadersTimestamp < debounceMs) {
|
|
16592
16747
|
return cachedOtelHeaders;
|
|
16593
16748
|
}
|
|
@@ -17161,4 +17316,4 @@ var init_client2 = __esm(() => {
|
|
|
17161
17316
|
init_getOauthProfile();
|
|
17162
17317
|
});
|
|
17163
17318
|
|
|
17164
|
-
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_constants2 as 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, CHANNEL_ARROW, DIAMOND_OPEN, DIAMOND_FILLED, REFERENCE_MARK, FLAG_ICON, 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_constants3 as init_constants1, TASK_OUTPUT_TOOL_NAME, init_constants4 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, getUseAutoModeDuringPlan, getAutoModeConfig, rawSettingsContainsKey, init_settings2 as init_settings1, createBedrockRuntimeClient, getInferenceProfileBackingModel, isFoundationModel, getBedrockRegionPrefix, applyBedrockRegionPrefix, init_bedrock, CLAUDE_OPUS_4_6_CONFIG, 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, calculateCostFromTokens, 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, getCoreUserData, getGitEmail, init_user, suppressTracing, isTracingSuppressed, W3CBaggagePropagator, sanitizeAttributes, isAttributeValue, globalErrorHandler, getNumberFromEnv, getStringFromEnv, SDK_INFO, otperformance, millisToHrTime, hrTime, hrTimeDuration, hrTimeToMilliseconds, hrTimeToMicroseconds, isTimeInputHrTime, isTimeInput, addHrTimes, ExportResultCode, TraceState, RPCType, setRPCMetadata, getRPCMetadata, merge, BindOnceFuture, internal, init_esm2 as init_esm, envDetector, hostDetector, osDetector, resourceFromAttributes, defaultResource, init_esm3 as init_esm1, require_src5 as require_src, LoggerProvider, ConsoleLogRecordExporter, BatchLogRecordProcessor, init_esm4 as init_esm2, isAnalyticsDisabled, isFeedbackSurveyDisabled, init_config2 as init_config, initJetBrainsDetection, envDynamic, init_envDynamic, 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 };
|
|
17319
|
+
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_constants2 as 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_XHIGH, EFFORT_MAX, PLAY_ICON, PAUSE_ICON, REFRESH_ARROW, CHANNEL_ARROW, DIAMOND_OPEN, DIAMOND_FILLED, REFERENCE_MARK, FLAG_ICON, 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_constants3 as init_constants1, TASK_OUTPUT_TOOL_NAME, init_constants4 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, getUseAutoModeDuringPlan, getAutoModeConfig, rawSettingsContainsKey, init_settings2 as init_settings1, createBedrockRuntimeClient, getInferenceProfileBackingModel, isFoundationModel, getBedrockRegionPrefix, applyBedrockRegionPrefix, init_bedrock, CLAUDE_OPUS_4_6_CONFIG, 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, calculateCostFromTokens, 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, getOpusPricingSuffix, 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, getCoreUserData, getGitEmail, init_user, suppressTracing, isTracingSuppressed, W3CBaggagePropagator, sanitizeAttributes, isAttributeValue, globalErrorHandler, getNumberFromEnv, getStringFromEnv, SDK_INFO, otperformance, millisToHrTime, hrTime, hrTimeDuration, hrTimeToMilliseconds, hrTimeToMicroseconds, isTimeInputHrTime, isTimeInput, addHrTimes, ExportResultCode, TraceState, RPCType, setRPCMetadata, getRPCMetadata, merge, BindOnceFuture, internal, init_esm2 as init_esm, envDetector, hostDetector, osDetector, resourceFromAttributes, defaultResource, init_esm3 as init_esm1, require_src5 as require_src, LoggerProvider, ConsoleLogRecordExporter, BatchLogRecordProcessor, init_esm4 as init_esm2, isAnalyticsDisabled, isFeedbackSurveyDisabled, init_config2 as init_config, initJetBrainsDetection, envDynamic, init_envDynamic, 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, PathTraversalError, isTeamMemoryEnabled, getTeamMemPath, validateTeamMemKey, isTeamMemFile, exports_teamMemPaths, init_teamMemPaths, 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 };
|