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
|
@@ -4,34 +4,34 @@ import {
|
|
|
4
4
|
getSecureSocketPath,
|
|
5
5
|
getSocketDir,
|
|
6
6
|
init_common
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-nb32de90.js";
|
|
8
8
|
import {
|
|
9
9
|
init_lazySchema,
|
|
10
10
|
lazySchema
|
|
11
11
|
} from "./chunk-64c1avct.js";
|
|
12
|
-
import"./chunk-
|
|
12
|
+
import"./chunk-rcz0e093.js";
|
|
13
13
|
import"./chunk-3c25bcsw.js";
|
|
14
14
|
import {
|
|
15
15
|
exports_external
|
|
16
16
|
} from "./chunk-d7886r6a.js";
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
17
|
+
import"./chunk-9d7dhwhn.js";
|
|
18
|
+
import"./chunk-znv3atvc.js";
|
|
19
|
+
import"./chunk-2cyjtt9z.js";
|
|
20
20
|
import"./chunk-8tnsngw2.js";
|
|
21
|
-
import"./chunk-
|
|
22
|
-
import"./chunk-
|
|
21
|
+
import"./chunk-x313wqn1.js";
|
|
22
|
+
import"./chunk-e4c9nm5e.js";
|
|
23
23
|
import"./chunk-5z28bqne.js";
|
|
24
24
|
import"./chunk-qajrkk97.js";
|
|
25
25
|
import {
|
|
26
26
|
init_slowOperations,
|
|
27
27
|
jsonParse,
|
|
28
28
|
jsonStringify
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-wb2sg18w.js";
|
|
30
30
|
import"./chunk-fbv4apne.js";
|
|
31
|
-
import"./chunk-
|
|
31
|
+
import"./chunk-wmgyt01k.js";
|
|
32
32
|
import"./chunk-50dgek10.js";
|
|
33
33
|
import"./chunk-7wm5s02e.js";
|
|
34
|
-
import"./chunk-
|
|
34
|
+
import"./chunk-jg5ac2fy.js";
|
|
35
35
|
import"./chunk-hxhwzgnn.js";
|
|
36
36
|
import"./chunk-qx8z601m.js";
|
|
37
37
|
import"./chunk-cgm6758j.js";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
} from "./chunk-ae76ded0.js";
|
|
5
5
|
import {
|
|
6
6
|
getPollIntervalConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-m48b7sj9.js";
|
|
8
8
|
import {
|
|
9
9
|
buildCCRv2SdkUrl,
|
|
10
10
|
buildSdkUrl,
|
|
11
11
|
decodeWorkSecret,
|
|
12
12
|
registerWorker,
|
|
13
13
|
sameSessionId
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ywf3v9s7.js";
|
|
15
15
|
import {
|
|
16
16
|
createTokenRefreshScheduler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-tzed1ttg.js";
|
|
18
18
|
import {
|
|
19
19
|
getBootstrapArgs,
|
|
20
20
|
getScriptPath,
|
|
21
21
|
init_cliLaunch
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-hhd42y3a.js";
|
|
23
23
|
import {
|
|
24
24
|
$toString,
|
|
25
25
|
init_server
|
|
@@ -45,15 +45,15 @@ import {
|
|
|
45
45
|
timestamp,
|
|
46
46
|
validateBridgeId,
|
|
47
47
|
wrapWithOsc8Link
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-abcmnpw1.js";
|
|
49
49
|
import {
|
|
50
50
|
init_rcDebugLog,
|
|
51
51
|
rcLog
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4c843krn.js";
|
|
53
53
|
import {
|
|
54
54
|
getTrustedDeviceToken,
|
|
55
55
|
init_trustedDevice
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-h4cqgnfp.js";
|
|
57
57
|
import {
|
|
58
58
|
BRIDGE_LOGIN_ERROR,
|
|
59
59
|
DEFAULT_SESSION_TIMEOUT_MS,
|
|
@@ -66,11 +66,11 @@ import {
|
|
|
66
66
|
init_sessionIdCompat,
|
|
67
67
|
toCompatSessionId,
|
|
68
68
|
toInfraSessionId
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-tngbfggd.js";
|
|
70
70
|
import {
|
|
71
71
|
init_datadog,
|
|
72
72
|
shutdownDatadog
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-dh52jprq.js";
|
|
74
74
|
import {
|
|
75
75
|
BRIDGE_FAILED_INDICATOR,
|
|
76
76
|
BRIDGE_READY_INDICATOR,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
init_firstPartyEventLogger,
|
|
81
81
|
init_growthbook,
|
|
82
82
|
shutdown1PEventLogging
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-1dh9y2g9.js";
|
|
84
84
|
import {
|
|
85
85
|
init_sleep,
|
|
86
86
|
sleep
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
formatDuration,
|
|
90
90
|
init_format,
|
|
91
91
|
truncateToWidth
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-0s5rp3xp.js";
|
|
93
93
|
import {
|
|
94
94
|
init_source,
|
|
95
95
|
init_src,
|
|
@@ -104,11 +104,11 @@ import {
|
|
|
104
104
|
import {
|
|
105
105
|
init_diagLogs,
|
|
106
106
|
logForDiagnosticsNoPII
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-e80zc1av.js";
|
|
108
108
|
import {
|
|
109
109
|
init_log,
|
|
110
110
|
logError
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-2cyjtt9z.js";
|
|
112
112
|
import {
|
|
113
113
|
errorMessage,
|
|
114
114
|
init_debug,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
jsonParse,
|
|
118
118
|
jsonStringify,
|
|
119
119
|
logForDebugging
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-wb2sg18w.js";
|
|
121
121
|
import {
|
|
122
122
|
init_envUtils,
|
|
123
123
|
isEnvTruthy,
|
|
@@ -1355,7 +1355,7 @@ async function runBridgeLoop(config, environmentId, environmentSecret, api, spaw
|
|
|
1355
1355
|
const title = deriveSessionTitle(text);
|
|
1356
1356
|
logger.setSessionTitle(compatSessionId, title);
|
|
1357
1357
|
logForDebugging(`[bridge:title] derived title for ${compatSessionId}: ${title}`);
|
|
1358
|
-
import("./chunk-
|
|
1358
|
+
import("./chunk-8ktgxh4r.js").then(({ updateBridgeSessionTitle }) => updateBridgeSessionTitle(compatSessionId, title, {
|
|
1359
1359
|
baseUrl: config.apiBaseUrl
|
|
1360
1360
|
})).catch((err) => logForDebugging(`[bridge:title] failed to update title for ${compatSessionId}: ${err}`, { level: "error" }));
|
|
1361
1361
|
}
|
|
@@ -1620,7 +1620,7 @@ async function runBridgeLoop(config, environmentId, environmentSecret, api, spaw
|
|
|
1620
1620
|
} catch (err) {
|
|
1621
1621
|
logger.logVerbose(`Failed to deregister environment: ${errorMessage(err)}`);
|
|
1622
1622
|
}
|
|
1623
|
-
const { clearBridgePointer } = await import("./chunk-
|
|
1623
|
+
const { clearBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
1624
1624
|
await clearBridgePointer(config.dir);
|
|
1625
1625
|
logger.logVerbose("Environment offline.");
|
|
1626
1626
|
}
|
|
@@ -1884,7 +1884,7 @@ function deriveSessionTitle(text) {
|
|
|
1884
1884
|
return truncateToWidth(flat, TITLE_MAX_LEN);
|
|
1885
1885
|
}
|
|
1886
1886
|
async function fetchSessionTitle(compatSessionId, baseUrl) {
|
|
1887
|
-
const { getBridgeSession } = await import("./chunk-
|
|
1887
|
+
const { getBridgeSession } = await import("./chunk-8ktgxh4r.js");
|
|
1888
1888
|
const session = await getBridgeSession(compatSessionId, { baseUrl });
|
|
1889
1889
|
return session?.title || undefined;
|
|
1890
1890
|
}
|
|
@@ -1923,9 +1923,9 @@ async function bridgeMain(args) {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
const dir = resolve(".");
|
|
1926
|
-
const { enableConfigs, checkHasTrustDialogAccepted } = await import("./chunk-
|
|
1926
|
+
const { enableConfigs, checkHasTrustDialogAccepted } = await import("./chunk-3sag2vww.js");
|
|
1927
1927
|
enableConfigs();
|
|
1928
|
-
const { initSinks } = await import("./chunk-
|
|
1928
|
+
const { initSinks } = await import("./chunk-zvgv14qd.js");
|
|
1929
1929
|
initSinks();
|
|
1930
1930
|
const multiSessionEnabled = await isMultiSessionSpawnEnabled();
|
|
1931
1931
|
if (usedMultiSessionFeature && !multiSessionEnabled) {
|
|
@@ -1941,15 +1941,15 @@ async function bridgeMain(args) {
|
|
|
1941
1941
|
console.error("Error: Multi-session Remote Control is not enabled for your account yet.");
|
|
1942
1942
|
process.exit(1);
|
|
1943
1943
|
}
|
|
1944
|
-
const { setOriginalCwd, setCwdState } = await import("./chunk-
|
|
1944
|
+
const { setOriginalCwd, setCwdState } = await import("./chunk-h6pgm1qp.js");
|
|
1945
1945
|
setOriginalCwd(dir);
|
|
1946
1946
|
setCwdState(dir);
|
|
1947
1947
|
if (!checkHasTrustDialogAccepted()) {
|
|
1948
1948
|
console.error(`Error: Workspace not trusted. Please run \`claude\` in ${dir} first to review and accept the workspace trust dialog.`);
|
|
1949
1949
|
process.exit(1);
|
|
1950
1950
|
}
|
|
1951
|
-
const { clearOAuthTokenCache, checkAndRefreshOAuthTokenIfNeeded } = await import("./chunk-
|
|
1952
|
-
const { getBridgeAccessToken, getBridgeBaseUrl } = await import("./chunk-
|
|
1951
|
+
const { clearOAuthTokenCache, checkAndRefreshOAuthTokenIfNeeded } = await import("./chunk-v7e85mv1.js");
|
|
1952
|
+
const { getBridgeAccessToken, getBridgeBaseUrl } = await import("./chunk-2501y0qn.js");
|
|
1953
1953
|
const bridgeToken = getBridgeAccessToken();
|
|
1954
1954
|
if (!bridgeToken) {
|
|
1955
1955
|
console.error(BRIDGE_LOGIN_ERROR);
|
|
@@ -1960,7 +1960,7 @@ async function bridgeMain(args) {
|
|
|
1960
1960
|
saveGlobalConfig,
|
|
1961
1961
|
getCurrentProjectConfig,
|
|
1962
1962
|
saveCurrentProjectConfig
|
|
1963
|
-
} = await import("./chunk-
|
|
1963
|
+
} = await import("./chunk-3sag2vww.js");
|
|
1964
1964
|
if (!getGlobalConfig().remoteDialogSeen) {
|
|
1965
1965
|
const readline = await import("readline");
|
|
1966
1966
|
const rl = readline.createInterface({
|
|
@@ -1987,7 +1987,7 @@ You can disconnect remote access anytime by running /remote-control again.
|
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
1989
|
if (continueSession) {
|
|
1990
|
-
const { readBridgePointerAcrossWorktrees } = await import("./chunk-
|
|
1990
|
+
const { readBridgePointerAcrossWorktrees } = await import("./chunk-bvr12bqd.js");
|
|
1991
1991
|
const found = await readBridgePointerAcrossWorktrees(dir);
|
|
1992
1992
|
if (!found) {
|
|
1993
1993
|
console.error(`Error: No recent session found in this directory or its worktrees. Run \`claude remote-control\` to start a new one.`);
|
|
@@ -2007,8 +2007,8 @@ You can disconnect remote access anytime by running /remote-control again.
|
|
|
2007
2007
|
process.exit(1);
|
|
2008
2008
|
}
|
|
2009
2009
|
const sessionIngressUrl = process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL || baseUrl;
|
|
2010
|
-
const { getBranch, getRemoteUrl, findGitRoot } = await import("./chunk-
|
|
2011
|
-
const { hasWorktreeCreateHook } = await import("./chunk-
|
|
2010
|
+
const { getBranch, getRemoteUrl, findGitRoot } = await import("./chunk-906fcbs0.js");
|
|
2011
|
+
const { hasWorktreeCreateHook } = await import("./chunk-a8ea1qyx.js");
|
|
2012
2012
|
const worktreeAvailable = hasWorktreeCreateHook() || findGitRoot(dir) !== null;
|
|
2013
2013
|
let savedSpawnMode = multiSessionEnabled ? getCurrentProjectConfig().remoteControlSpawnMode : undefined;
|
|
2014
2014
|
if (savedSpawnMode === "worktree" && !worktreeAvailable) {
|
|
@@ -2068,7 +2068,7 @@ Spawn mode for this project:
|
|
|
2068
2068
|
const maxSessions = spawnMode === "single-session" ? 1 : parsedCapacity ?? SPAWN_SESSIONS_DEFAULT;
|
|
2069
2069
|
const preCreateSession = parsedCreateSessionInDir ?? true;
|
|
2070
2070
|
if (!resumeSessionId) {
|
|
2071
|
-
const { clearBridgePointer } = await import("./chunk-
|
|
2071
|
+
const { clearBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
2072
2072
|
await clearBridgePointer(dir);
|
|
2073
2073
|
}
|
|
2074
2074
|
if (spawnMode === "worktree" && !worktreeAvailable) {
|
|
@@ -2079,7 +2079,7 @@ Spawn mode for this project:
|
|
|
2079
2079
|
const gitRepoUrl = await getRemoteUrl();
|
|
2080
2080
|
const machineName = hostname();
|
|
2081
2081
|
const bridgeId = randomUUID();
|
|
2082
|
-
const { handleOAuth401Error } = await import("./chunk-
|
|
2082
|
+
const { handleOAuth401Error } = await import("./chunk-v7e85mv1.js");
|
|
2083
2083
|
const api = createBridgeApiClient({
|
|
2084
2084
|
baseUrl,
|
|
2085
2085
|
getAccessToken: getBridgeAccessToken,
|
|
@@ -2098,14 +2098,14 @@ Spawn mode for this project:
|
|
|
2098
2098
|
}
|
|
2099
2099
|
await checkAndRefreshOAuthTokenIfNeeded();
|
|
2100
2100
|
clearOAuthTokenCache();
|
|
2101
|
-
const { getBridgeSession } = await import("./chunk-
|
|
2101
|
+
const { getBridgeSession } = await import("./chunk-8ktgxh4r.js");
|
|
2102
2102
|
const session = await getBridgeSession(resumeSessionId, {
|
|
2103
2103
|
baseUrl,
|
|
2104
2104
|
getAccessToken: getBridgeAccessToken
|
|
2105
2105
|
});
|
|
2106
2106
|
if (!session) {
|
|
2107
2107
|
if (resumePointerDir) {
|
|
2108
|
-
const { clearBridgePointer } = await import("./chunk-
|
|
2108
|
+
const { clearBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
2109
2109
|
await clearBridgePointer(resumePointerDir);
|
|
2110
2110
|
}
|
|
2111
2111
|
console.error(`Error: Session ${resumeSessionId} not found. It may have been archived or expired, or your login may have lapsed (run \`claude /login\`).`);
|
|
@@ -2113,7 +2113,7 @@ Spawn mode for this project:
|
|
|
2113
2113
|
}
|
|
2114
2114
|
if (!session.environment_id) {
|
|
2115
2115
|
if (resumePointerDir) {
|
|
2116
|
-
const { clearBridgePointer } = await import("./chunk-
|
|
2116
|
+
const { clearBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
2117
2117
|
await clearBridgePointer(resumePointerDir);
|
|
2118
2118
|
}
|
|
2119
2119
|
console.error(`Error: Session ${resumeSessionId} has no environment_id. It may never have been attached to a bridge.`);
|
|
@@ -2182,7 +2182,7 @@ Spawn mode for this project:
|
|
|
2182
2182
|
const err = lastReconnectErr;
|
|
2183
2183
|
const isFatal = err instanceof BridgeFatalError;
|
|
2184
2184
|
if (resumePointerDir && isFatal) {
|
|
2185
|
-
const { clearBridgePointer } = await import("./chunk-
|
|
2185
|
+
const { clearBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
2186
2186
|
await clearBridgePointer(resumePointerDir);
|
|
2187
2187
|
}
|
|
2188
2188
|
console.error(isFatal ? `Error: ${errorMessage(err)}` : `Error: Failed to reconnect session ${resumeSessionId}: ${errorMessage(err)}
|
|
@@ -2227,7 +2227,7 @@ The session may still be resumable \u2014 try running the same command again.`);
|
|
|
2227
2227
|
}
|
|
2228
2228
|
});
|
|
2229
2229
|
const logger = createBridgeLogger({ verbose });
|
|
2230
|
-
const { parseGitHubRepository } = await import("./chunk-
|
|
2230
|
+
const { parseGitHubRepository } = await import("./chunk-vekca08b.js");
|
|
2231
2231
|
const ownerRepo = gitRepoUrl ? parseGitHubRepository(gitRepoUrl) : null;
|
|
2232
2232
|
const repoName = ownerRepo ? ownerRepo.split("/").pop() : basename(dir);
|
|
2233
2233
|
logger.setRepoInfo(repoName, branch);
|
|
@@ -2281,7 +2281,7 @@ The session may still be resumable \u2014 try running the same command again.`);
|
|
|
2281
2281
|
process.on("SIGTERM", onSigterm);
|
|
2282
2282
|
let initialSessionId = effectiveResumeSessionId ? effectiveResumeSessionId : null;
|
|
2283
2283
|
if (preCreateSession && !effectiveResumeSessionId) {
|
|
2284
|
-
const { createBridgeSession } = await import("./chunk-
|
|
2284
|
+
const { createBridgeSession } = await import("./chunk-8ktgxh4r.js");
|
|
2285
2285
|
try {
|
|
2286
2286
|
initialSessionId = await createBridgeSession({
|
|
2287
2287
|
environmentId,
|
|
@@ -2303,7 +2303,7 @@ The session may still be resumable \u2014 try running the same command again.`);
|
|
|
2303
2303
|
}
|
|
2304
2304
|
let pointerRefreshTimer = null;
|
|
2305
2305
|
if (initialSessionId && spawnMode === "single-session") {
|
|
2306
|
-
const { writeBridgePointer } = await import("./chunk-
|
|
2306
|
+
const { writeBridgePointer } = await import("./chunk-bvr12bqd.js");
|
|
2307
2307
|
const pointerPayload = {
|
|
2308
2308
|
sessionId: initialSessionId,
|
|
2309
2309
|
environmentId,
|
|
@@ -2343,12 +2343,12 @@ class BridgeHeadlessPermanentError extends Error {
|
|
|
2343
2343
|
async function runBridgeHeadless(opts, signal) {
|
|
2344
2344
|
const { dir, log } = opts;
|
|
2345
2345
|
process.chdir(dir);
|
|
2346
|
-
const { setOriginalCwd, setCwdState } = await import("./chunk-
|
|
2346
|
+
const { setOriginalCwd, setCwdState } = await import("./chunk-h6pgm1qp.js");
|
|
2347
2347
|
setOriginalCwd(dir);
|
|
2348
2348
|
setCwdState(dir);
|
|
2349
|
-
const { enableConfigs, checkHasTrustDialogAccepted } = await import("./chunk-
|
|
2349
|
+
const { enableConfigs, checkHasTrustDialogAccepted } = await import("./chunk-3sag2vww.js");
|
|
2350
2350
|
enableConfigs();
|
|
2351
|
-
const { initSinks } = await import("./chunk-
|
|
2351
|
+
const { initSinks } = await import("./chunk-zvgv14qd.js");
|
|
2352
2352
|
initSinks();
|
|
2353
2353
|
if (!checkHasTrustDialogAccepted()) {
|
|
2354
2354
|
throw new BridgeHeadlessPermanentError(`Workspace not trusted: ${dir}. Run \`claude\` in that directory first to accept the trust dialog.`);
|
|
@@ -2356,14 +2356,14 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
2356
2356
|
if (!opts.getAccessToken()) {
|
|
2357
2357
|
throw new Error(BRIDGE_LOGIN_ERROR);
|
|
2358
2358
|
}
|
|
2359
|
-
const { getBridgeBaseUrl } = await import("./chunk-
|
|
2359
|
+
const { getBridgeBaseUrl } = await import("./chunk-2501y0qn.js");
|
|
2360
2360
|
const baseUrl = getBridgeBaseUrl();
|
|
2361
2361
|
if (baseUrl.startsWith("http://") && !baseUrl.includes("localhost") && !baseUrl.includes("127.0.0.1")) {
|
|
2362
2362
|
throw new BridgeHeadlessPermanentError("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");
|
|
2363
2363
|
}
|
|
2364
2364
|
const sessionIngressUrl = process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL || baseUrl;
|
|
2365
|
-
const { getBranch, getRemoteUrl, findGitRoot } = await import("./chunk-
|
|
2366
|
-
const { hasWorktreeCreateHook } = await import("./chunk-
|
|
2365
|
+
const { getBranch, getRemoteUrl, findGitRoot } = await import("./chunk-906fcbs0.js");
|
|
2366
|
+
const { hasWorktreeCreateHook } = await import("./chunk-a8ea1qyx.js");
|
|
2367
2367
|
if (opts.spawnMode === "worktree") {
|
|
2368
2368
|
const worktreeAvailable = hasWorktreeCreateHook() || findGitRoot(dir) !== null;
|
|
2369
2369
|
if (!worktreeAvailable) {
|
|
@@ -2420,7 +2420,7 @@ async function runBridgeHeadless(opts, signal) {
|
|
|
2420
2420
|
logger.printBanner(config, environmentId);
|
|
2421
2421
|
let initialSessionId;
|
|
2422
2422
|
if (opts.createSessionOnStart) {
|
|
2423
|
-
const { createBridgeSession } = await import("./chunk-
|
|
2423
|
+
const { createBridgeSession } = await import("./chunk-8ktgxh4r.js");
|
|
2424
2424
|
try {
|
|
2425
2425
|
const sid = await createBridgeSession({
|
|
2426
2426
|
environmentId,
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
getClaudeConfigHomeDir,
|
|
4
|
+
init_envUtils
|
|
5
|
+
} from "./chunk-hxhwzgnn.js";
|
|
6
|
+
import {
|
|
7
|
+
__esm
|
|
8
|
+
} from "./chunk-qp2qdcda.js";
|
|
9
|
+
|
|
10
|
+
// src/services/skillLearning/projectContext.ts
|
|
11
|
+
import { execFileSync } from "child_process";
|
|
12
|
+
import { createHash } from "crypto";
|
|
13
|
+
import {
|
|
14
|
+
existsSync,
|
|
15
|
+
mkdirSync,
|
|
16
|
+
readFileSync,
|
|
17
|
+
realpathSync,
|
|
18
|
+
writeFileSync
|
|
19
|
+
} from "fs";
|
|
20
|
+
import { basename, join, resolve } from "path";
|
|
21
|
+
function getSkillLearningRootDir() {
|
|
22
|
+
return join(getClaudeConfigHomeDir(), "skill-learning");
|
|
23
|
+
}
|
|
24
|
+
function getProjectsRegistryPath() {
|
|
25
|
+
return join(getSkillLearningRootDir(), "projects.json");
|
|
26
|
+
}
|
|
27
|
+
function getProjectStorageDir(projectId) {
|
|
28
|
+
if (projectId === GLOBAL_PROJECT_ID) {
|
|
29
|
+
return join(getSkillLearningRootDir(), "global");
|
|
30
|
+
}
|
|
31
|
+
return join(getSkillLearningRootDir(), "projects", projectId);
|
|
32
|
+
}
|
|
33
|
+
function getProjectContextPath(projectId) {
|
|
34
|
+
return join(getProjectStorageDir(projectId), "project.json");
|
|
35
|
+
}
|
|
36
|
+
function resolveProjectContext(cwd = process.cwd()) {
|
|
37
|
+
const cached = contextCache.get(cwd);
|
|
38
|
+
if (cached) {
|
|
39
|
+
const now = Date.now();
|
|
40
|
+
if (now - lastPersistAt > PERSIST_INTERVAL_MS) {
|
|
41
|
+
lastPersistAt = now;
|
|
42
|
+
persistProjectContext(cached);
|
|
43
|
+
}
|
|
44
|
+
return cached;
|
|
45
|
+
}
|
|
46
|
+
const resolved = resolveContext(cwd);
|
|
47
|
+
contextCache.set(cwd, resolved);
|
|
48
|
+
persistProjectContext(resolved);
|
|
49
|
+
lastPersistAt = Date.now();
|
|
50
|
+
return resolved;
|
|
51
|
+
}
|
|
52
|
+
function resetProjectContextCacheForTest() {
|
|
53
|
+
contextCache.clear();
|
|
54
|
+
lastPersistAt = 0;
|
|
55
|
+
}
|
|
56
|
+
function listKnownProjects() {
|
|
57
|
+
const registry = readProjectsRegistry(getProjectsRegistryPath());
|
|
58
|
+
return Object.values(registry.projects).sort((a, b) => a.projectName.localeCompare(b.projectName));
|
|
59
|
+
}
|
|
60
|
+
function resolveContext(cwd) {
|
|
61
|
+
const envProjectDir = process.env.CLAUDE_PROJECT_DIR?.trim();
|
|
62
|
+
if (envProjectDir) {
|
|
63
|
+
const projectRoot = normalizePath(envProjectDir);
|
|
64
|
+
return buildContext({
|
|
65
|
+
source: "claude_project_dir",
|
|
66
|
+
scope: "project",
|
|
67
|
+
cwd,
|
|
68
|
+
projectRoot,
|
|
69
|
+
identity: `claude-project-dir:${projectRoot}`,
|
|
70
|
+
projectName: basename(projectRoot) || "project"
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const gitRemote = git(["remote", "get-url", "origin"], cwd);
|
|
74
|
+
if (gitRemote) {
|
|
75
|
+
const projectRoot = git(["rev-parse", "--show-toplevel"], cwd);
|
|
76
|
+
const normalizedRemote = normalizeGitRemote(gitRemote);
|
|
77
|
+
return buildContext({
|
|
78
|
+
source: "git_remote",
|
|
79
|
+
scope: "project",
|
|
80
|
+
cwd,
|
|
81
|
+
projectRoot: projectRoot ? normalizePath(projectRoot) : normalizePath(cwd),
|
|
82
|
+
gitRemote: normalizedRemote,
|
|
83
|
+
identity: `git-remote:${normalizedRemote}`,
|
|
84
|
+
projectName: projectNameFromRemote(normalizedRemote)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
const gitRoot = git(["rev-parse", "--show-toplevel"], cwd);
|
|
88
|
+
if (gitRoot) {
|
|
89
|
+
const projectRoot = normalizePath(gitRoot);
|
|
90
|
+
return buildContext({
|
|
91
|
+
source: "git_root",
|
|
92
|
+
scope: "project",
|
|
93
|
+
cwd,
|
|
94
|
+
projectRoot,
|
|
95
|
+
identity: `git-root:${projectRoot}`,
|
|
96
|
+
projectName: basename(projectRoot) || "project"
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return buildContext({
|
|
100
|
+
source: "global",
|
|
101
|
+
scope: "global",
|
|
102
|
+
cwd,
|
|
103
|
+
projectRoot: undefined,
|
|
104
|
+
identity: "global",
|
|
105
|
+
projectName: GLOBAL_PROJECT_NAME
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function buildContext(input) {
|
|
109
|
+
const projectId = input.scope === "global" ? GLOBAL_PROJECT_ID : stableProjectId(input.identity);
|
|
110
|
+
return {
|
|
111
|
+
projectId,
|
|
112
|
+
projectName: input.projectName,
|
|
113
|
+
scope: input.scope,
|
|
114
|
+
source: input.source,
|
|
115
|
+
cwd: normalizePath(input.cwd),
|
|
116
|
+
projectRoot: input.projectRoot,
|
|
117
|
+
gitRemote: input.gitRemote,
|
|
118
|
+
storageDir: getProjectStorageDir(projectId)
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function persistProjectContext(context) {
|
|
122
|
+
const now = new Date().toISOString();
|
|
123
|
+
const registryPath = getProjectsRegistryPath();
|
|
124
|
+
const registry = readProjectsRegistry(registryPath);
|
|
125
|
+
const existing = registry.projects[context.projectId];
|
|
126
|
+
const record = {
|
|
127
|
+
...context,
|
|
128
|
+
firstSeenAt: existing?.firstSeenAt ?? now,
|
|
129
|
+
lastSeenAt: now
|
|
130
|
+
};
|
|
131
|
+
registry.projects[context.projectId] = record;
|
|
132
|
+
registry.updatedAt = now;
|
|
133
|
+
mkdirSync(context.storageDir, { recursive: true });
|
|
134
|
+
mkdirSync(getSkillLearningRootDir(), { recursive: true });
|
|
135
|
+
writeJson(registryPath, registry);
|
|
136
|
+
writeJson(getProjectContextPath(context.projectId), record);
|
|
137
|
+
}
|
|
138
|
+
function readProjectsRegistry(path) {
|
|
139
|
+
if (!existsSync(path)) {
|
|
140
|
+
return {
|
|
141
|
+
version: REGISTRY_VERSION,
|
|
142
|
+
updatedAt: new Date(0).toISOString(),
|
|
143
|
+
projects: {}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
try {
|
|
147
|
+
const parsed = JSON.parse(readFileSync(path, "utf8"));
|
|
148
|
+
if (parsed.version === REGISTRY_VERSION && typeof parsed.projects === "object" && parsed.projects) {
|
|
149
|
+
return {
|
|
150
|
+
version: REGISTRY_VERSION,
|
|
151
|
+
updatedAt: typeof parsed.updatedAt === "string" ? parsed.updatedAt : new Date(0).toISOString(),
|
|
152
|
+
projects: parsed.projects
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
} catch {}
|
|
156
|
+
return {
|
|
157
|
+
version: REGISTRY_VERSION,
|
|
158
|
+
updatedAt: new Date(0).toISOString(),
|
|
159
|
+
projects: {}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function writeJson(path, value) {
|
|
163
|
+
writeFileSync(path, `${JSON.stringify(value, null, 2)}
|
|
164
|
+
`, "utf8");
|
|
165
|
+
}
|
|
166
|
+
function git(args, cwd) {
|
|
167
|
+
try {
|
|
168
|
+
const output = execFileSync("git", ["-C", cwd, ...args], {
|
|
169
|
+
encoding: "utf8",
|
|
170
|
+
stdio: ["ignore", "pipe", "ignore"]
|
|
171
|
+
});
|
|
172
|
+
const trimmed = output.trim();
|
|
173
|
+
return trimmed ? trimmed : null;
|
|
174
|
+
} catch {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function normalizePath(path) {
|
|
179
|
+
const resolved = resolve(path);
|
|
180
|
+
try {
|
|
181
|
+
return realpathSync.native(resolved).normalize("NFC");
|
|
182
|
+
} catch {
|
|
183
|
+
return resolved.normalize("NFC");
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function normalizeGitRemote(remote) {
|
|
187
|
+
let normalized = remote.trim().replace(/\\/g, "/");
|
|
188
|
+
normalized = normalized.replace(/\.git$/i, "");
|
|
189
|
+
normalized = normalized.replace(/\/+$/g, "");
|
|
190
|
+
return normalized.toLowerCase();
|
|
191
|
+
}
|
|
192
|
+
function projectNameFromRemote(remote) {
|
|
193
|
+
const match = remote.match(/[:/]([^/:]+?)(?:\.git)?$/);
|
|
194
|
+
return match?.[1] || "project";
|
|
195
|
+
}
|
|
196
|
+
function stableProjectId(identity) {
|
|
197
|
+
const hash = createHash("sha256").update(identity).digest("hex").slice(0, 16);
|
|
198
|
+
return `project-${hash}`;
|
|
199
|
+
}
|
|
200
|
+
var REGISTRY_VERSION = 1, GLOBAL_PROJECT_ID = "global", GLOBAL_PROJECT_NAME = "Global", contextCache, PERSIST_INTERVAL_MS, lastPersistAt = 0;
|
|
201
|
+
var init_projectContext = __esm(() => {
|
|
202
|
+
init_envUtils();
|
|
203
|
+
contextCache = new Map;
|
|
204
|
+
PERSIST_INTERVAL_MS = 5 * 60 * 1000;
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
export { getSkillLearningRootDir, getProjectsRegistryPath, getProjectStorageDir, getProjectContextPath, resolveProjectContext, resetProjectContextCacheForTest, listKnownProjects, init_projectContext };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
__esm
|
|
4
|
+
} from "./chunk-qp2qdcda.js";
|
|
5
|
+
|
|
6
|
+
// src/services/compact/cachedMicrocompact.ts
|
|
7
|
+
function isCachedMicrocompactEnabled() {
|
|
8
|
+
return process.env.CLAUDE_CACHED_MICROCOMPACT === "1";
|
|
9
|
+
}
|
|
10
|
+
function isModelSupportedForCacheEditing(model) {
|
|
11
|
+
return /claude-[a-z]+-4[-\d]/.test(model);
|
|
12
|
+
}
|
|
13
|
+
function getCachedMCConfig() {
|
|
14
|
+
return { triggerThreshold: TRIGGER_THRESHOLD, keepRecent: KEEP_RECENT };
|
|
15
|
+
}
|
|
16
|
+
function createCachedMCState() {
|
|
17
|
+
return {
|
|
18
|
+
registeredTools: new Set,
|
|
19
|
+
toolOrder: [],
|
|
20
|
+
deletedRefs: new Set,
|
|
21
|
+
pinnedEdits: [],
|
|
22
|
+
toolsSentToAPI: false
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function markToolsSentToAPI(state) {
|
|
26
|
+
state.toolsSentToAPI = true;
|
|
27
|
+
}
|
|
28
|
+
function resetCachedMCState(state) {
|
|
29
|
+
state.registeredTools.clear();
|
|
30
|
+
state.toolOrder = [];
|
|
31
|
+
state.deletedRefs.clear();
|
|
32
|
+
state.pinnedEdits = [];
|
|
33
|
+
state.toolsSentToAPI = false;
|
|
34
|
+
}
|
|
35
|
+
function registerToolResult(state, toolId) {
|
|
36
|
+
if (!state.registeredTools.has(toolId)) {
|
|
37
|
+
state.registeredTools.add(toolId);
|
|
38
|
+
state.toolOrder.push(toolId);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function registerToolMessage(state, groupIds) {
|
|
42
|
+
for (const id of groupIds) {
|
|
43
|
+
registerToolResult(state, id);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function getToolResultsToDelete(state) {
|
|
47
|
+
const { triggerThreshold, keepRecent } = getCachedMCConfig();
|
|
48
|
+
const active = state.toolOrder.filter((id) => !state.deletedRefs.has(id));
|
|
49
|
+
if (active.length <= triggerThreshold)
|
|
50
|
+
return [];
|
|
51
|
+
const toDelete = active.slice(0, active.length - keepRecent);
|
|
52
|
+
return toDelete;
|
|
53
|
+
}
|
|
54
|
+
function createCacheEditsBlock(state, toolIds) {
|
|
55
|
+
if (toolIds.length === 0)
|
|
56
|
+
return null;
|
|
57
|
+
return {
|
|
58
|
+
type: "cache_edits",
|
|
59
|
+
edits: toolIds.map((id) => ({
|
|
60
|
+
type: "delete_tool_result",
|
|
61
|
+
tool_use_id: id
|
|
62
|
+
}))
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
var TRIGGER_THRESHOLD = 10, KEEP_RECENT = 5;
|
|
66
|
+
var init_cachedMicrocompact = () => {};
|
|
67
|
+
init_cachedMicrocompact();
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
resetCachedMCState,
|
|
71
|
+
registerToolResult,
|
|
72
|
+
registerToolMessage,
|
|
73
|
+
markToolsSentToAPI,
|
|
74
|
+
isModelSupportedForCacheEditing,
|
|
75
|
+
isCachedMicrocompactEnabled,
|
|
76
|
+
getToolResultsToDelete,
|
|
77
|
+
getCachedMCConfig,
|
|
78
|
+
createCachedMCState,
|
|
79
|
+
createCacheEditsBlock
|
|
80
|
+
};
|