@caspian2026/agent-sdk 0.0.9 → 0.0.12
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/dist/{chunk-c5zkrd7r.js → chunk-00d76x8k.js} +35 -37
- package/dist/{chunk-j0gke393.js → chunk-0b7gfh40.js} +34 -36
- package/dist/{chunk-4myad919.js → chunk-0q7109wh.js} +37 -39
- package/dist/{chunk-c4d52460.js → chunk-0rb968t3.js} +4 -4
- package/dist/{chunk-wkt2q02c.js → chunk-0wy4ckdx.js} +6 -8
- package/dist/{chunk-jwpp2bq2.js → chunk-0z0jnhy4.js} +77 -81
- package/dist/{chunk-hg6fwhj1.js → chunk-11snnhy9.js} +1 -1
- package/dist/{chunk-w6mcmmt5.js → chunk-12s5j5ga.js} +8 -10
- package/dist/chunk-17zbq30e.js +148 -0
- package/dist/{chunk-t3gmfcy7.js → chunk-1a245sn2.js} +39 -42
- package/dist/{chunk-cexw1jmv.js → chunk-1a5w7wdt.js} +2 -2
- package/dist/{chunk-5mrc0ps5.js → chunk-1aq0n033.js} +19 -23
- package/dist/{chunk-0txtpamh.js → chunk-1pee6gwp.js} +22 -24
- package/dist/{chunk-wm1zm5xj.js → chunk-1t59zkwn.js} +2 -2
- package/dist/{chunk-zqbnw3n2.js → chunk-20ka896x.js} +40 -42
- package/dist/{chunk-qqs58ywv.js → chunk-28za36s8.js} +3 -3
- package/dist/{chunk-1nhnn2rg.js → chunk-2apvtmkd.js} +5 -7
- package/dist/{chunk-83b2frat.js → chunk-2avrzsjc.js} +2 -2
- package/dist/{chunk-hqjdgc6c.js → chunk-2b42fj9k.js} +2 -2
- package/dist/{chunk-r7684mmh.js → chunk-2h4bj7qw.js} +3 -3
- package/dist/{chunk-sdfvr9ps.js → chunk-2h6f45jx.js} +5 -7
- package/dist/{chunk-bzatg35k.js → chunk-2k3y6fnp.js} +1 -1
- package/dist/{chunk-qcrpqjya.js → chunk-2nya3j5t.js} +1 -1
- package/dist/{chunk-9ewnsd7f.js → chunk-2tm611h9.js} +2 -2
- package/dist/{chunk-q14wrksq.js → chunk-337ft6zr.js} +36 -38
- package/dist/{chunk-y32em34x.js → chunk-35ezdbnv.js} +16 -18
- package/dist/{chunk-0gpem3pk.js → chunk-3hmgf3wg.js} +34 -36
- package/dist/{chunk-f4tdn7yr.js → chunk-3s0dfr99.js} +34 -36
- package/dist/{chunk-ev7h351p.js → chunk-43n91ybe.js} +6 -8
- package/dist/{chunk-snxp8mxj.js → chunk-45fm4zby.js} +2 -2
- package/dist/{chunk-xw99fqv1.js → chunk-46k21cp2.js} +4 -4
- package/dist/{chunk-6cfcqjty.js → chunk-496a2dj9.js} +38 -40
- package/dist/{chunk-wgd4n1q7.js → chunk-4ch0yj7k.js} +7 -9
- package/dist/{chunk-9z9teq7p.js → chunk-4s4vgf9j.js} +35 -37
- package/dist/{chunk-wxkrq9eb.js → chunk-4xes6pr4.js} +34 -36
- package/dist/{chunk-v6hbqcmr.js → chunk-4zx71gjb.js} +17 -19
- package/dist/{chunk-35nft36d.js → chunk-51p97n3a.js} +113 -117
- package/dist/{chunk-b6prbsae.js → chunk-542phb5x.js} +10 -14
- package/dist/{chunk-k8jpbz31.js → chunk-57190x8z.js} +14 -16
- package/dist/{chunk-ec6ga5ey.js → chunk-5enwkx00.js} +39 -41
- package/dist/{chunk-xffb3dsw.js → chunk-5hz3rcv3.js} +1 -1
- package/dist/{chunk-tj7v47cp.js → chunk-5pa7rye9.js} +1 -1
- package/dist/{chunk-fesvrjhd.js → chunk-5r10r06a.js} +8 -10
- package/dist/{chunk-hae34yd0.js → chunk-5rezzje2.js} +6 -8
- package/dist/{chunk-wg47eg7y.js → chunk-5vktw684.js} +34 -36
- package/dist/{chunk-2072dpbx.js → chunk-5vp228m5.js} +4 -6
- package/dist/{chunk-p9ny0p2a.js → chunk-5yvg4h4w.js} +14 -16
- package/dist/{chunk-frm7mphm.js → chunk-60q5gfv2.js} +9 -11
- package/dist/{chunk-dmyedkpw.js → chunk-657y059h.js} +6 -7
- package/dist/{chunk-84cdy41j.js → chunk-6af6k8cg.js} +6 -8
- package/dist/{chunk-vmp5rk8q.js → chunk-6e48t2eg.js} +6 -6
- package/dist/{chunk-dhwr4fz4.js → chunk-6e84jw8j.js} +1 -1
- package/dist/{chunk-qxjhw1dt.js → chunk-6f02d6a7.js} +17 -19
- package/dist/{chunk-f4v7t54y.js → chunk-6f3v6q11.js} +7 -8
- package/dist/{chunk-ef2m4xyz.js → chunk-6hd3qses.js} +34 -36
- package/dist/{chunk-5m3m7hr5.js → chunk-6jbmp7cc.js} +4 -4
- package/dist/{chunk-r6nnp8mj.js → chunk-6jh4ktef.js} +34 -36
- package/dist/{chunk-1efrnkxx.js → chunk-6pjsqs43.js} +8 -8
- package/dist/{chunk-dexkgxt4.js → chunk-6prf7w2a.js} +6 -8
- package/dist/{chunk-jxp2j9t5.js → chunk-6vn3qve2.js} +34 -36
- package/dist/{chunk-z16txqz0.js → chunk-6w51dnv1.js} +2 -2
- package/dist/{chunk-2m32xn94.js → chunk-73fcxjts.js} +12 -14
- package/dist/{chunk-g597bz1j.js → chunk-786fba9z.js} +35 -37
- package/dist/{chunk-x3jthbjq.js → chunk-7bn9x3a4.js} +35 -37
- package/dist/{chunk-ay5fvc2r.js → chunk-7dzf0vyg.js} +35 -37
- package/dist/{chunk-azv68vk1.js → chunk-7nzbvx9e.js} +2 -2
- package/dist/{chunk-1kmwf4vn.js → chunk-7we9b3rw.js} +12 -14
- package/dist/{chunk-rn1s097c.js → chunk-8a0rxq4x.js} +34 -36
- package/dist/{chunk-grqhgr2b.js → chunk-8d3kntdb.js} +3 -3
- package/dist/{chunk-t9eeyrkn.js → chunk-8qqf4fqb.js} +38 -41
- package/dist/{chunk-7etkb4pr.js → chunk-8y55mc4q.js} +2 -3
- package/dist/{chunk-frwznxnf.js → chunk-918zn0bw.js} +3 -3
- package/dist/{chunk-pfarypfq.js → chunk-92jgn98p.js} +36 -38
- package/dist/{chunk-jgvmjwnx.js → chunk-93hfvyd0.js} +34 -36
- package/dist/{chunk-be77bcs8.js → chunk-956kn4jm.js} +37 -39
- package/dist/{chunk-b547q41s.js → chunk-95tfr5nc.js} +35 -37
- package/dist/{chunk-ftsdm7y7.js → chunk-99kjyjqv.js} +42 -44
- package/dist/{chunk-40s88wdg.js → chunk-9an46bhy.js} +3 -5
- package/dist/{chunk-h4xfadhf.js → chunk-9cjqv8ks.js} +1 -1
- package/dist/{chunk-xvk90wpt.js → chunk-9t6ktd1k.js} +2 -2
- package/dist/{chunk-xtdm6ejq.js → chunk-a1e7apvj.js} +4 -4
- package/dist/{chunk-txgbs4hp.js → chunk-a3tsmh82.js} +39 -42
- package/dist/{chunk-ckh4f9ry.js → chunk-a4f2eabx.js} +13 -15
- package/dist/{chunk-nrjtxhyr.js → chunk-a4vds27m.js} +1 -1
- package/dist/{chunk-jtgyzqbq.js → chunk-a7fqavjt.js} +5 -7
- package/dist/{chunk-3npsy4c4.js → chunk-a9b8mvnf.js} +34 -36
- package/dist/{chunk-jsj3fx0g.js → chunk-agfhxmaa.js} +4 -4
- package/dist/{chunk-hrhp26d7.js → chunk-arr63gs7.js} +43 -45
- package/dist/{chunk-q4f1g9y6.js → chunk-atm8mys9.js} +10 -10
- package/dist/{chunk-q8hxwh48.js → chunk-ay73qdn7.js} +1 -1
- package/dist/{chunk-ayx9aq2k.js → chunk-b4e2yxzs.js} +35 -37
- package/dist/{chunk-3pzwd6qq.js → chunk-bas84mgf.js} +1 -1
- package/dist/{chunk-dj7d67ya.js → chunk-bf0apkzz.js} +1 -1
- package/dist/{chunk-e7ag583m.js → chunk-bh3mqd1n.js} +35 -37
- package/dist/{chunk-8jy18nx9.js → chunk-bngbc1q9.js} +1 -1
- package/dist/{chunk-j35mw64g.js → chunk-bwtw1cbj.js} +1 -1
- package/dist/{chunk-1v01c96r.js → chunk-c25z9zmd.js} +1 -1
- package/dist/{chunk-qkp4ygnk.js → chunk-c95dbdzk.js} +2 -2
- package/dist/{chunk-04pw5akr.js → chunk-cdqb8pyj.js} +15 -17
- package/dist/{chunk-0v89r445.js → chunk-cejztqqp.js} +12 -14
- package/dist/{chunk-z6wm96eh.js → chunk-cfvgegjj.js} +2 -2
- package/dist/{chunk-1hqb50ne.js → chunk-cgc5028n.js} +6 -8
- package/dist/{chunk-t1s91wrk.js → chunk-cj7gh4sc.js} +1 -1
- package/dist/{chunk-djfq8ws0.js → chunk-cmb7rm1k.js} +46 -48
- package/dist/{chunk-wtpgjmjd.js → chunk-cmqt0dnf.js} +35 -37
- package/dist/{chunk-dngfdsm9.js → chunk-cnvck8hk.js} +90 -92
- package/dist/{chunk-jksf0ax9.js → chunk-cp1y5wek.js} +38 -42
- package/dist/{chunk-mewywsar.js → chunk-cscffe8t.js} +34 -36
- package/dist/{chunk-1yfc1d48.js → chunk-d4n334px.js} +34 -36
- package/dist/{chunk-gzj94jgg.js → chunk-d6pdfssm.js} +34 -36
- package/dist/{chunk-t1pygy19.js → chunk-d7grzg31.js} +35 -37
- package/dist/{chunk-3e28fvn0.js → chunk-db92x7yq.js} +2 -2
- package/dist/{chunk-vbtm9g57.js → chunk-dm7fhe2p.js} +1 -1
- package/dist/{chunk-2vbash3m.js → chunk-dpg9k0qm.js} +6 -8
- package/dist/{chunk-skp5w8bq.js → chunk-dwyaks7s.js} +1 -1
- package/dist/{chunk-d8z7pyrb.js → chunk-e114ax4f.js} +35 -37
- package/dist/{chunk-sh2v9ywv.js → chunk-egj7sq93.js} +2 -2
- package/dist/{chunk-vk3nb2xe.js → chunk-ej46x3p8.js} +35 -37
- package/dist/{chunk-p4196wzm.js → chunk-ejjp1fy1.js} +4 -6
- package/dist/{chunk-b5asw4tj.js → chunk-eszdke28.js} +5 -5
- package/dist/{chunk-psm26hv7.js → chunk-etnkcek5.js} +8 -12
- package/dist/{chunk-qz0xdht6.js → chunk-eyys9mkd.js} +8 -9
- package/dist/{chunk-hparkfvt.js → chunk-ez7x0ev9.js} +42 -44
- package/dist/{chunk-r5nd93kc.js → chunk-f52xxv34.js} +1 -1
- package/dist/{chunk-rhvn1rqs.js → chunk-f7y0axm3.js} +2 -2
- package/dist/{chunk-c6hsz5ey.js → chunk-f81crq64.js} +13 -15
- package/dist/{chunk-trvc6jh7.js → chunk-fhfbj1pd.js} +37 -39
- package/dist/{chunk-3fn3ysvs.js → chunk-fn9xfcx2.js} +35 -37
- package/dist/{chunk-8b2y3x7a.js → chunk-fys33rtr.js} +1 -1
- package/dist/{chunk-9byfzaeq.js → chunk-g3pgn9a9.js} +34 -36
- package/dist/{chunk-zyjkg76f.js → chunk-g5jyxbsc.js} +6 -6
- package/dist/{chunk-9957ffjc.js → chunk-g96611rv.js} +2 -2
- package/dist/{chunk-msxggy37.js → chunk-gh9qnfb8.js} +15 -17
- package/dist/{chunk-jwwpfq76.js → chunk-ghs0pvtp.js} +36 -38
- package/dist/{chunk-bf03a1w7.js → chunk-gyrcpcs5.js} +36 -38
- package/dist/{chunk-b56smerd.js → chunk-h3rtwnzt.js} +2 -2
- package/dist/{chunk-q6tdxy8v.js → chunk-h6bgcfma.js} +3 -4
- package/dist/{chunk-1vp22nex.js → chunk-h7s9yqgb.js} +1 -1
- package/dist/{chunk-g5pe8dew.js → chunk-h8e89948.js} +4 -5
- package/dist/{chunk-hg45r671.js → chunk-hcpahckc.js} +2 -2
- package/dist/{chunk-wa0xgm6m.js → chunk-hgm8d1ke.js} +10 -14
- package/dist/{chunk-xgbd6ec5.js → chunk-hm6aeakn.js} +35 -37
- package/dist/{chunk-v3s93bzd.js → chunk-hqdwr6mz.js} +1 -1
- package/dist/{chunk-5zcygjb2.js → chunk-hy3ye51v.js} +34 -36
- package/dist/{chunk-njw0haha.js → chunk-hy74wncp.js} +9 -9
- package/dist/{chunk-7hrmxpha.js → chunk-j1y56wgn.js} +25 -19
- package/dist/{chunk-7krg0dkt.js → chunk-j7ptfetg.js} +1 -1
- package/dist/{chunk-g78fetxa.js → chunk-j8bapw4n.js} +34 -36
- package/dist/{chunk-93vwm44t.js → chunk-ja513x2h.js} +162 -166
- package/dist/{chunk-rpsqtvkx.js → chunk-ja9h4h89.js} +34 -36
- package/dist/{chunk-rmpaj37q.js → chunk-jbrktexr.js} +38 -40
- package/dist/{chunk-xswyz2es.js → chunk-jbv0d2xg.js} +1 -1
- package/dist/{chunk-x2bnzvd6.js → chunk-jry93mfk.js} +34 -36
- package/dist/{chunk-y5wfy524.js → chunk-jvwbz0zr.js} +37 -39
- package/dist/{chunk-bjdknxqn.js → chunk-kbdaeekj.js} +34 -36
- package/dist/{chunk-kjqyhxz7.js → chunk-kd5k97vr.js} +6 -8
- package/dist/{chunk-szzff973.js → chunk-kj3w1t4e.js} +4 -4
- package/dist/{chunk-6wzg2hpc.js → chunk-kpr0q6sr.js} +1 -1
- package/dist/{chunk-8ckwc9k8.js → chunk-kweh7zc3.js} +34 -36
- package/dist/{chunk-j99ms5ep.js → chunk-kxjfdqf8.js} +4 -6
- package/dist/{chunk-pddf0719.js → chunk-m6w05wvy.js} +37 -39
- package/dist/{chunk-ecbh4n6q.js → chunk-m799k476.js} +37 -40
- package/dist/{chunk-rygxwjtc.js → chunk-m9jet1d8.js} +35 -37
- package/dist/{chunk-ratnrv9v.js → chunk-mg0an997.js} +3 -3
- package/dist/{chunk-1hqvvvrt.js → chunk-mgg5a735.js} +43 -45
- package/dist/{chunk-2y8x7xt7.js → chunk-mqqq51yf.js} +2 -2
- package/dist/{chunk-44t1xk05.js → chunk-mtb0aeh7.js} +34 -36
- package/dist/{chunk-2yxqz99n.js → chunk-mv2g25hg.js} +7 -9
- package/dist/{chunk-4vtvwg7e.js → chunk-nasq48jf.js} +42 -44
- package/dist/{chunk-vtmxgm1m.js → chunk-nazmv0yc.js} +5 -7
- package/dist/{chunk-9wf3fc4t.js → chunk-nczt1pg8.js} +2 -2
- package/dist/{chunk-22mfb6bp.js → chunk-njm3ynry.js} +14 -16
- package/dist/{chunk-r3ehjkj5.js → chunk-nqd47stn.js} +46 -48
- package/dist/{chunk-35z2vxep.js → chunk-nwj6zx84.js} +37 -39
- package/dist/{chunk-rnxpvm3m.js → chunk-p10431ea.js} +1 -1
- package/dist/{chunk-65q3hqkw.js → chunk-p546k5vf.js} +12 -14
- package/dist/{chunk-thenr6b3.js → chunk-p6ayjcy6.js} +7 -7
- package/dist/{chunk-w3gnkyfc.js → chunk-p7t9gxz7.js} +38 -40
- package/dist/{chunk-ttyfhx12.js → chunk-pbejmtc5.js} +96 -66
- package/dist/{chunk-xhn4ptjn.js → chunk-pcv6hjxt.js} +42 -45
- package/dist/{chunk-67wms97m.js → chunk-pn1gzpw4.js} +15 -17
- package/dist/{chunk-ecv9kbtk.js → chunk-pzhgwt85.js} +4 -4
- package/dist/{chunk-hb1gr101.js → chunk-q0dfe2ma.js} +5 -7
- package/dist/{chunk-thmtkfgj.js → chunk-q1tan6f7.js} +6 -8
- package/dist/{chunk-rx4mcfg1.js → chunk-q2795dh5.js} +43 -45
- package/dist/{chunk-zxywawr7.js → chunk-q3b963kf.js} +1 -1
- package/dist/{chunk-b89ese8r.js → chunk-q3jf7cv8.js} +34 -36
- package/dist/{chunk-04h360ha.js → chunk-qb786rmk.js} +17 -19
- package/dist/{chunk-pwpk3gm6.js → chunk-qd5n2h9f.js} +5 -7
- package/dist/{chunk-sjpqw47t.js → chunk-qgzma8ky.js} +3 -3
- package/dist/{chunk-2vteceqh.js → chunk-qhsd552n.js} +4 -4
- package/dist/{chunk-9w114071.js → chunk-r328sk36.js} +5 -5
- package/dist/{chunk-hgmhngje.js → chunk-r7xxhzs2.js} +4 -4
- package/dist/{chunk-ty1cyqr7.js → chunk-r8q566z2.js} +37 -39
- package/dist/{chunk-7skyagc2.js → chunk-rbq4mcw7.js} +2 -2
- package/dist/{chunk-jj4zs4gr.js → chunk-rj6htvwb.js} +34 -36
- package/dist/{chunk-1gaw18rz.js → chunk-rxmv911f.js} +35 -37
- package/dist/{chunk-dt3epnwj.js → chunk-sa6bbzsy.js} +11 -13
- package/dist/{chunk-vajsk9ya.js → chunk-sfsy9bm0.js} +12 -14
- package/dist/{chunk-vw5jzpcm.js → chunk-skr9v618.js} +7 -9
- package/dist/{chunk-v4wba09w.js → chunk-t1xq3fhc.js} +37 -39
- package/dist/{chunk-42a0nyrq.js → chunk-t2ng3ptk.js} +35 -37
- package/dist/{chunk-jqfrz5g9.js → chunk-t47pgtvn.js} +17 -19
- package/dist/{chunk-vyz3v0qx.js → chunk-t5thxbgd.js} +5 -5
- package/dist/{chunk-1486qzk5.js → chunk-t6b35end.js} +3 -3
- package/dist/{chunk-rjq5nf1c.js → chunk-t74h1vfr.js} +11 -13
- package/dist/{chunk-tpk67mjc.js → chunk-t83k78sc.js} +3 -3
- package/dist/{chunk-7cje7scj.js → chunk-tbw0dr1x.js} +7 -9
- package/dist/{chunk-v0tgjdx0.js → chunk-tcjxkf7r.js} +11 -13
- package/dist/{chunk-ya9dxex0.js → chunk-te8afx2m.js} +36 -38
- package/dist/{chunk-k7cw1a8a.js → chunk-tmjt0nae.js} +1 -1
- package/dist/{chunk-jjz3hs34.js → chunk-tw8tg8kd.js} +47 -49
- package/dist/{chunk-hzbr9543.js → chunk-v2ah6nmr.js} +4 -4
- package/dist/{chunk-5tw3gj5z.js → chunk-v3215haz.js} +35 -37
- package/dist/{chunk-xcrzgyce.js → chunk-v3edramj.js} +34 -36
- package/dist/{chunk-w3782jck.js → chunk-v9dqk91p.js} +38 -41
- package/dist/{chunk-h3vyya5n.js → chunk-vg83d3zq.js} +13 -15
- package/dist/{chunk-kxrrtr3p.js → chunk-vpqp1mq8.js} +1 -1
- package/dist/{chunk-ecvy1ng2.js → chunk-vq3sw69a.js} +36 -38
- package/dist/{chunk-qctsv1d7.js → chunk-vwtdaw6w.js} +13 -17
- package/dist/{chunk-4ayjwyqj.js → chunk-w28t9jy7.js} +2 -4
- package/dist/{chunk-xs7zsmzk.js → chunk-w7w8t8tn.js} +36 -39
- package/dist/{chunk-gkn3jgqn.js → chunk-w96856xh.js} +46 -48
- package/dist/{chunk-54wn2jdr.js → chunk-w9v6bd0p.js} +2 -2
- package/dist/{chunk-ssb4wba6.js → chunk-wb53cfxb.js} +12 -14
- package/dist/{chunk-mmhkcj7c.js → chunk-wejkerqs.js} +46 -49
- package/dist/{chunk-h61d4awv.js → chunk-wnvvmh04.js} +36 -38
- package/dist/{chunk-etbb3dss.js → chunk-wz575naw.js} +37 -39
- package/dist/{chunk-1hx5g6qy.js → chunk-x5yc4663.js} +4 -4
- package/dist/{chunk-ey0n4emm.js → chunk-x8webzs9.js} +34 -36
- package/dist/{chunk-s19b0bc7.js → chunk-xdzhs9yv.js} +34 -36
- package/dist/{chunk-dz6zxh89.js → chunk-xe3c1vqh.js} +36 -39
- package/dist/{chunk-3e4r5pmc.js → chunk-xe49p33m.js} +4 -6
- package/dist/{chunk-rz94yg8c.js → chunk-xkpb3hbc.js} +4 -6
- package/dist/{chunk-6hs0cptm.js → chunk-xmv9n004.js} +42 -45
- package/dist/{chunk-72qa16xm.js → chunk-xnyztq9h.js} +36 -38
- package/dist/{chunk-v5g8nf5h.js → chunk-xr05z50c.js} +10 -14
- package/dist/{chunk-rfq9kmsy.js → chunk-xxahhkz2.js} +7 -8
- package/dist/{chunk-rfbbcx5s.js → chunk-y3qrx3ys.js} +34 -36
- package/dist/{chunk-tf859h88.js → chunk-y5nttq3d.js} +13 -16
- package/dist/{chunk-grqkx44z.js → chunk-y8thpqv0.js} +35 -37
- package/dist/{chunk-2nrarbza.js → chunk-y93z1mpf.js} +34 -36
- package/dist/{chunk-pd2vy8hx.js → chunk-yb6xww2x.js} +525 -56
- package/dist/{chunk-1nvcmzj1.js → chunk-ycc8yj76.js} +46 -48
- package/dist/{chunk-m70n19dz.js → chunk-yg11waka.js} +36 -38
- package/dist/{chunk-ghwvqhx9.js → chunk-ynytwr1a.js} +35 -37
- package/dist/{chunk-cay13mxk.js → chunk-ys8cwzed.js} +4 -4
- package/dist/{chunk-cr1dv2js.js → chunk-z3xh5n00.js} +36 -39
- package/dist/{chunk-vmbht6ec.js → chunk-zjnpfrg7.js} +6 -6
- package/dist/{chunk-p791ydbm.js → chunk-zs8gxf6g.js} +4 -4
- package/dist/{chunk-zcgprbyy.js → chunk-zzadbnpy.js} +20 -22
- package/dist/cli.js +7 -7
- package/dist/gateway/index.js +131 -27
- package/dist/gateway/worker.js +1664 -1188
- package/package.json +1 -1
- package/dist/chunk-5cxjxxx8.js +0 -352
- package/dist/chunk-7cdy4aj6.js +0 -150
- package/dist/chunk-rkv8bdtr.js +0 -125
|
@@ -44,6 +44,8 @@ import {
|
|
|
44
44
|
isArray_default,
|
|
45
45
|
isBuffer_default,
|
|
46
46
|
keys_default,
|
|
47
|
+
setLastAPIRequest,
|
|
48
|
+
setLastAPIRequestMessages,
|
|
47
49
|
stubArray_default
|
|
48
50
|
} from "./chunk-k8vp0atq.js";
|
|
49
51
|
import {
|
|
@@ -70,6 +72,7 @@ import {
|
|
|
70
72
|
__callDispose,
|
|
71
73
|
__esm,
|
|
72
74
|
__export,
|
|
75
|
+
__require,
|
|
73
76
|
__using
|
|
74
77
|
} from "./chunk-qp2qdcda.js";
|
|
75
78
|
|
|
@@ -4534,6 +4537,71 @@ var init_errors2 = __esm(() => {
|
|
|
4534
4537
|
};
|
|
4535
4538
|
});
|
|
4536
4539
|
|
|
4540
|
+
// src/constants/xml.ts
|
|
4541
|
+
var COMMAND_NAME_TAG = "command-name", COMMAND_MESSAGE_TAG = "command-message", COMMAND_ARGS_TAG = "command-args", BASH_INPUT_TAG = "bash-input", BASH_STDOUT_TAG = "bash-stdout", BASH_STDERR_TAG = "bash-stderr", LOCAL_COMMAND_STDOUT_TAG = "local-command-stdout", LOCAL_COMMAND_STDERR_TAG = "local-command-stderr", LOCAL_COMMAND_CAVEAT_TAG = "local-command-caveat", TERMINAL_OUTPUT_TAGS, TICK_TAG = "tick", TASK_NOTIFICATION_TAG = "task-notification", TASK_ID_TAG = "task-id", TOOL_USE_ID_TAG = "tool-use-id", TASK_TYPE_TAG = "task-type", OUTPUT_FILE_TAG = "output-file", STATUS_TAG = "status", SUMMARY_TAG = "summary", WORKTREE_TAG = "worktree", WORKTREE_PATH_TAG = "worktreePath", WORKTREE_BRANCH_TAG = "worktreeBranch", REMOTE_REVIEW_TAG = "remote-review", REMOTE_REVIEW_PROGRESS_TAG = "remote-review-progress", TEAMMATE_MESSAGE_TAG = "teammate-message", CHANNEL_TAG = "channel", FORK_BOILERPLATE_TAG = "fork-boilerplate", FORK_DIRECTIVE_PREFIX = "Your directive: ", COMMON_HELP_ARGS, COMMON_INFO_ARGS;
|
|
4542
|
+
var init_xml = __esm(() => {
|
|
4543
|
+
TERMINAL_OUTPUT_TAGS = [
|
|
4544
|
+
BASH_INPUT_TAG,
|
|
4545
|
+
BASH_STDOUT_TAG,
|
|
4546
|
+
BASH_STDERR_TAG,
|
|
4547
|
+
LOCAL_COMMAND_STDOUT_TAG,
|
|
4548
|
+
LOCAL_COMMAND_STDERR_TAG,
|
|
4549
|
+
LOCAL_COMMAND_CAVEAT_TAG
|
|
4550
|
+
];
|
|
4551
|
+
COMMON_HELP_ARGS = ["help", "-h", "--help"];
|
|
4552
|
+
COMMON_INFO_ARGS = [
|
|
4553
|
+
"list",
|
|
4554
|
+
"show",
|
|
4555
|
+
"display",
|
|
4556
|
+
"current",
|
|
4557
|
+
"view",
|
|
4558
|
+
"get",
|
|
4559
|
+
"check",
|
|
4560
|
+
"describe",
|
|
4561
|
+
"print",
|
|
4562
|
+
"version",
|
|
4563
|
+
"about",
|
|
4564
|
+
"status",
|
|
4565
|
+
"?"
|
|
4566
|
+
];
|
|
4567
|
+
});
|
|
4568
|
+
|
|
4569
|
+
// src/types/logs.ts
|
|
4570
|
+
function sortLogs(logs) {
|
|
4571
|
+
return logs.sort((a, b) => {
|
|
4572
|
+
const modifiedDiff = b.modified.getTime() - a.modified.getTime();
|
|
4573
|
+
if (modifiedDiff !== 0) {
|
|
4574
|
+
return modifiedDiff;
|
|
4575
|
+
}
|
|
4576
|
+
return b.created.getTime() - a.created.getTime();
|
|
4577
|
+
});
|
|
4578
|
+
}
|
|
4579
|
+
var init_logs = () => {};
|
|
4580
|
+
|
|
4581
|
+
// src/utils/privacyLevel.ts
|
|
4582
|
+
function getPrivacyLevel() {
|
|
4583
|
+
if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
|
|
4584
|
+
return "essential-traffic";
|
|
4585
|
+
}
|
|
4586
|
+
if (process.env.DISABLE_TELEMETRY) {
|
|
4587
|
+
return "no-telemetry";
|
|
4588
|
+
}
|
|
4589
|
+
return "default";
|
|
4590
|
+
}
|
|
4591
|
+
function isEssentialTrafficOnly() {
|
|
4592
|
+
return getPrivacyLevel() === "essential-traffic";
|
|
4593
|
+
}
|
|
4594
|
+
function isTelemetryDisabled() {
|
|
4595
|
+
return getPrivacyLevel() !== "default";
|
|
4596
|
+
}
|
|
4597
|
+
function getEssentialTrafficOnlyReason() {
|
|
4598
|
+
if (process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) {
|
|
4599
|
+
return "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC";
|
|
4600
|
+
}
|
|
4601
|
+
return null;
|
|
4602
|
+
}
|
|
4603
|
+
var init_privacyLevel = () => {};
|
|
4604
|
+
|
|
4537
4605
|
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js
|
|
4538
4606
|
function arrayEach(array, iteratee) {
|
|
4539
4607
|
var index = -1, length = array == null ? 0 : array.length;
|
|
@@ -5167,6 +5235,377 @@ var init_debugFilter = __esm(() => {
|
|
|
5167
5235
|
});
|
|
5168
5236
|
});
|
|
5169
5237
|
|
|
5238
|
+
// node_modules/.bun/is-safe-filename@0.1.1/node_modules/is-safe-filename/index.js
|
|
5239
|
+
function isSafeFilename(filename) {
|
|
5240
|
+
if (typeof filename !== "string") {
|
|
5241
|
+
return false;
|
|
5242
|
+
}
|
|
5243
|
+
const trimmed = filename.trim();
|
|
5244
|
+
return trimmed !== "" && trimmed !== "." && trimmed !== ".." && !filename.includes("/") && !filename.includes("\\") && !filename.includes("\x00");
|
|
5245
|
+
}
|
|
5246
|
+
function assertSafeFilename(filename) {
|
|
5247
|
+
if (typeof filename !== "string") {
|
|
5248
|
+
throw new TypeError("Expected a string");
|
|
5249
|
+
}
|
|
5250
|
+
if (!isSafeFilename(filename)) {
|
|
5251
|
+
throw new Error(`Unsafe filename: ${JSON.stringify(filename)}`);
|
|
5252
|
+
}
|
|
5253
|
+
}
|
|
5254
|
+
var unsafeFilenameFixtures;
|
|
5255
|
+
var init_is_safe_filename = __esm(() => {
|
|
5256
|
+
unsafeFilenameFixtures = Object.freeze([
|
|
5257
|
+
"",
|
|
5258
|
+
" ",
|
|
5259
|
+
".",
|
|
5260
|
+
"..",
|
|
5261
|
+
" .",
|
|
5262
|
+
". ",
|
|
5263
|
+
" ..",
|
|
5264
|
+
".. ",
|
|
5265
|
+
"../",
|
|
5266
|
+
"../foo",
|
|
5267
|
+
"foo/../bar",
|
|
5268
|
+
"foo/bar",
|
|
5269
|
+
"foo\\bar",
|
|
5270
|
+
"foo\x00bar"
|
|
5271
|
+
]);
|
|
5272
|
+
});
|
|
5273
|
+
|
|
5274
|
+
// node_modules/.bun/env-paths@4.0.0/node_modules/env-paths/index.js
|
|
5275
|
+
import path2 from "path";
|
|
5276
|
+
import os from "os";
|
|
5277
|
+
import process2 from "process";
|
|
5278
|
+
function envPaths(name, { suffix = "nodejs" } = {}) {
|
|
5279
|
+
assertSafeFilename(name);
|
|
5280
|
+
if (suffix) {
|
|
5281
|
+
name += `-${suffix}`;
|
|
5282
|
+
}
|
|
5283
|
+
assertSafeFilename(name);
|
|
5284
|
+
if (process2.platform === "darwin") {
|
|
5285
|
+
return macos(name);
|
|
5286
|
+
}
|
|
5287
|
+
if (process2.platform === "win32") {
|
|
5288
|
+
return windows(name);
|
|
5289
|
+
}
|
|
5290
|
+
return linux(name);
|
|
5291
|
+
}
|
|
5292
|
+
var homedir, tmpdir, env, macos = (name) => {
|
|
5293
|
+
const library = path2.join(homedir, "Library");
|
|
5294
|
+
return {
|
|
5295
|
+
data: path2.join(library, "Application Support", name),
|
|
5296
|
+
config: path2.join(library, "Preferences", name),
|
|
5297
|
+
cache: path2.join(library, "Caches", name),
|
|
5298
|
+
log: path2.join(library, "Logs", name),
|
|
5299
|
+
temp: path2.join(tmpdir, name)
|
|
5300
|
+
};
|
|
5301
|
+
}, windows = (name) => {
|
|
5302
|
+
const appData = env.APPDATA || path2.join(homedir, "AppData", "Roaming");
|
|
5303
|
+
const localAppData = env.LOCALAPPDATA || path2.join(homedir, "AppData", "Local");
|
|
5304
|
+
return {
|
|
5305
|
+
data: path2.join(localAppData, name, "Data"),
|
|
5306
|
+
config: path2.join(appData, name, "Config"),
|
|
5307
|
+
cache: path2.join(localAppData, name, "Cache"),
|
|
5308
|
+
log: path2.join(localAppData, name, "Log"),
|
|
5309
|
+
temp: path2.join(tmpdir, name)
|
|
5310
|
+
};
|
|
5311
|
+
}, linux = (name) => {
|
|
5312
|
+
const username = path2.basename(homedir);
|
|
5313
|
+
return {
|
|
5314
|
+
data: path2.join(env.XDG_DATA_HOME || path2.join(homedir, ".local", "share"), name),
|
|
5315
|
+
config: path2.join(env.XDG_CONFIG_HOME || path2.join(homedir, ".config"), name),
|
|
5316
|
+
cache: path2.join(env.XDG_CACHE_HOME || path2.join(homedir, ".cache"), name),
|
|
5317
|
+
log: path2.join(env.XDG_STATE_HOME || path2.join(homedir, ".local", "state"), name),
|
|
5318
|
+
temp: path2.join(tmpdir, username, name)
|
|
5319
|
+
};
|
|
5320
|
+
};
|
|
5321
|
+
var init_env_paths = __esm(() => {
|
|
5322
|
+
init_is_safe_filename();
|
|
5323
|
+
homedir = os.homedir();
|
|
5324
|
+
tmpdir = os.tmpdir();
|
|
5325
|
+
({ env } = process2);
|
|
5326
|
+
});
|
|
5327
|
+
|
|
5328
|
+
// src/utils/hash.ts
|
|
5329
|
+
function djb2Hash(str) {
|
|
5330
|
+
let hash = 0;
|
|
5331
|
+
for (let i = 0;i < str.length; i++) {
|
|
5332
|
+
hash = (hash << 5) - hash + str.charCodeAt(i) | 0;
|
|
5333
|
+
}
|
|
5334
|
+
return hash;
|
|
5335
|
+
}
|
|
5336
|
+
function hashContent(content) {
|
|
5337
|
+
if (typeof Bun !== "undefined") {
|
|
5338
|
+
return Bun.hash(content).toString();
|
|
5339
|
+
}
|
|
5340
|
+
const crypto = __require("crypto");
|
|
5341
|
+
return crypto.createHash("sha256").update(content).digest("hex");
|
|
5342
|
+
}
|
|
5343
|
+
function hashPair(a, b) {
|
|
5344
|
+
if (typeof Bun !== "undefined") {
|
|
5345
|
+
return Bun.hash(b, Bun.hash(a)).toString();
|
|
5346
|
+
}
|
|
5347
|
+
const crypto = __require("crypto");
|
|
5348
|
+
return crypto.createHash("sha256").update(a).update("\x00").update(b).digest("hex");
|
|
5349
|
+
}
|
|
5350
|
+
var init_hash = () => {};
|
|
5351
|
+
|
|
5352
|
+
// src/utils/cachePaths.ts
|
|
5353
|
+
import { join } from "path";
|
|
5354
|
+
function sanitizePath(name) {
|
|
5355
|
+
const sanitized = name.replace(/[^a-zA-Z0-9]/g, "-");
|
|
5356
|
+
if (sanitized.length <= MAX_SANITIZED_LENGTH) {
|
|
5357
|
+
return sanitized;
|
|
5358
|
+
}
|
|
5359
|
+
return `${sanitized.slice(0, MAX_SANITIZED_LENGTH)}-${Math.abs(djb2Hash(name)).toString(36)}`;
|
|
5360
|
+
}
|
|
5361
|
+
function getProjectDir(cwd) {
|
|
5362
|
+
return sanitizePath(cwd);
|
|
5363
|
+
}
|
|
5364
|
+
var paths, MAX_SANITIZED_LENGTH = 200, CACHE_PATHS;
|
|
5365
|
+
var init_cachePaths = __esm(() => {
|
|
5366
|
+
init_env_paths();
|
|
5367
|
+
init_fsOperations();
|
|
5368
|
+
init_hash();
|
|
5369
|
+
paths = envPaths("claude-cli");
|
|
5370
|
+
CACHE_PATHS = {
|
|
5371
|
+
baseLogs: () => join(paths.cache, getProjectDir(getFsImplementation().cwd())),
|
|
5372
|
+
errors: () => join(paths.cache, getProjectDir(getFsImplementation().cwd()), "errors"),
|
|
5373
|
+
messages: () => join(paths.cache, getProjectDir(getFsImplementation().cwd()), "messages"),
|
|
5374
|
+
mcpLogs: (serverName) => join(paths.cache, getProjectDir(getFsImplementation().cwd()), `mcp-logs-${sanitizePath(serverName)}`)
|
|
5375
|
+
};
|
|
5376
|
+
});
|
|
5377
|
+
|
|
5378
|
+
// src/utils/displayTags.ts
|
|
5379
|
+
function stripDisplayTags(text) {
|
|
5380
|
+
const result = text.replace(XML_TAG_BLOCK_PATTERN, "").trim();
|
|
5381
|
+
return result || text;
|
|
5382
|
+
}
|
|
5383
|
+
function stripDisplayTagsAllowEmpty(text) {
|
|
5384
|
+
return text.replace(XML_TAG_BLOCK_PATTERN, "").trim();
|
|
5385
|
+
}
|
|
5386
|
+
function stripIdeContextTags(text) {
|
|
5387
|
+
return text.replace(IDE_CONTEXT_TAGS_PATTERN, "").trim();
|
|
5388
|
+
}
|
|
5389
|
+
var XML_TAG_BLOCK_PATTERN, IDE_CONTEXT_TAGS_PATTERN;
|
|
5390
|
+
var init_displayTags = __esm(() => {
|
|
5391
|
+
XML_TAG_BLOCK_PATTERN = /<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;
|
|
5392
|
+
IDE_CONTEXT_TAGS_PATTERN = /<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;
|
|
5393
|
+
});
|
|
5394
|
+
|
|
5395
|
+
// src/utils/log.ts
|
|
5396
|
+
function getLogDisplayTitle(log, defaultTitle) {
|
|
5397
|
+
const isAutonomousPrompt = log.firstPrompt?.startsWith(`<${TICK_TAG}>`);
|
|
5398
|
+
const strippedFirstPrompt = log.firstPrompt ? stripDisplayTagsAllowEmpty(log.firstPrompt) : "";
|
|
5399
|
+
const useFirstPrompt = strippedFirstPrompt && !isAutonomousPrompt;
|
|
5400
|
+
const title = log.agentName || log.customTitle || log.summary || (useFirstPrompt ? strippedFirstPrompt : undefined) || defaultTitle || (isAutonomousPrompt ? "Autonomous session" : undefined) || (log.sessionId ? log.sessionId.slice(0, 8) : "") || "";
|
|
5401
|
+
return stripDisplayTags(title).trim();
|
|
5402
|
+
}
|
|
5403
|
+
function dateToFilename(date) {
|
|
5404
|
+
return date.toISOString().replace(/[:.]/g, "-");
|
|
5405
|
+
}
|
|
5406
|
+
function addToInMemoryErrorLog(errorInfo) {
|
|
5407
|
+
if (inMemoryErrorLog.length >= MAX_IN_MEMORY_ERRORS) {
|
|
5408
|
+
inMemoryErrorLog.shift();
|
|
5409
|
+
}
|
|
5410
|
+
inMemoryErrorLog.push(errorInfo);
|
|
5411
|
+
}
|
|
5412
|
+
function attachErrorLogSink(newSink) {
|
|
5413
|
+
if (errorLogSink !== null) {
|
|
5414
|
+
return;
|
|
5415
|
+
}
|
|
5416
|
+
errorLogSink = newSink;
|
|
5417
|
+
if (errorQueue.length > 0) {
|
|
5418
|
+
const queuedEvents = [...errorQueue];
|
|
5419
|
+
errorQueue.length = 0;
|
|
5420
|
+
for (const event of queuedEvents) {
|
|
5421
|
+
switch (event.type) {
|
|
5422
|
+
case "error":
|
|
5423
|
+
errorLogSink.logError(event.error);
|
|
5424
|
+
break;
|
|
5425
|
+
case "mcpError":
|
|
5426
|
+
errorLogSink.logMCPError(event.serverName, event.error);
|
|
5427
|
+
break;
|
|
5428
|
+
case "mcpDebug":
|
|
5429
|
+
errorLogSink.logMCPDebug(event.serverName, event.message);
|
|
5430
|
+
break;
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5434
|
+
}
|
|
5435
|
+
function logError(error2) {
|
|
5436
|
+
const err = toError(error2);
|
|
5437
|
+
if (false) {}
|
|
5438
|
+
try {
|
|
5439
|
+
if (process.env.DISABLE_ERROR_REPORTING || isEssentialTrafficOnly()) {
|
|
5440
|
+
return;
|
|
5441
|
+
}
|
|
5442
|
+
const errorStr = err.stack || err.message;
|
|
5443
|
+
const errorInfo = {
|
|
5444
|
+
error: errorStr,
|
|
5445
|
+
timestamp: new Date().toISOString()
|
|
5446
|
+
};
|
|
5447
|
+
addToInMemoryErrorLog(errorInfo);
|
|
5448
|
+
if (errorLogSink === null) {
|
|
5449
|
+
errorQueue.push({ type: "error", error: err });
|
|
5450
|
+
return;
|
|
5451
|
+
}
|
|
5452
|
+
errorLogSink.logError(err);
|
|
5453
|
+
} catch {}
|
|
5454
|
+
}
|
|
5455
|
+
function getInMemoryErrors() {
|
|
5456
|
+
return [...inMemoryErrorLog];
|
|
5457
|
+
}
|
|
5458
|
+
function logMCPError(serverName, error2) {
|
|
5459
|
+
try {
|
|
5460
|
+
if (errorLogSink === null) {
|
|
5461
|
+
errorQueue.push({ type: "mcpError", serverName, error: error2 });
|
|
5462
|
+
return;
|
|
5463
|
+
}
|
|
5464
|
+
errorLogSink.logMCPError(serverName, error2);
|
|
5465
|
+
} catch {}
|
|
5466
|
+
}
|
|
5467
|
+
function logMCPDebug(serverName, message) {
|
|
5468
|
+
try {
|
|
5469
|
+
if (errorLogSink === null) {
|
|
5470
|
+
errorQueue.push({ type: "mcpDebug", serverName, message });
|
|
5471
|
+
return;
|
|
5472
|
+
}
|
|
5473
|
+
errorLogSink.logMCPDebug(serverName, message);
|
|
5474
|
+
} catch {}
|
|
5475
|
+
}
|
|
5476
|
+
function captureAPIRequest(params, querySource) {
|
|
5477
|
+
if (!querySource || !querySource.startsWith("repl_main_thread")) {
|
|
5478
|
+
return;
|
|
5479
|
+
}
|
|
5480
|
+
const { messages, ...paramsWithoutMessages } = params;
|
|
5481
|
+
setLastAPIRequest(paramsWithoutMessages);
|
|
5482
|
+
setLastAPIRequestMessages(process.env.USER_TYPE === "ant" ? messages : null);
|
|
5483
|
+
}
|
|
5484
|
+
var MAX_IN_MEMORY_ERRORS = 100, inMemoryErrorLog, errorQueue, errorLogSink = null, isHardFailMode;
|
|
5485
|
+
var init_log2 = __esm(() => {
|
|
5486
|
+
init_memoize();
|
|
5487
|
+
init_state();
|
|
5488
|
+
init_xml();
|
|
5489
|
+
init_logs();
|
|
5490
|
+
init_cachePaths();
|
|
5491
|
+
init_displayTags();
|
|
5492
|
+
init_errors2();
|
|
5493
|
+
init_privacyLevel();
|
|
5494
|
+
init_slowOperations();
|
|
5495
|
+
inMemoryErrorLog = [];
|
|
5496
|
+
errorQueue = [];
|
|
5497
|
+
isHardFailMode = memoize_default(() => {
|
|
5498
|
+
return process.argv.includes("--hard-fail");
|
|
5499
|
+
});
|
|
5500
|
+
});
|
|
5501
|
+
|
|
5502
|
+
// src/utils/platform.ts
|
|
5503
|
+
import { readdir, readFile } from "fs/promises";
|
|
5504
|
+
import { release as osRelease } from "os";
|
|
5505
|
+
async function detectVcs(dir) {
|
|
5506
|
+
const detected = new Set;
|
|
5507
|
+
if (process.env.P4PORT) {
|
|
5508
|
+
detected.add("perforce");
|
|
5509
|
+
}
|
|
5510
|
+
try {
|
|
5511
|
+
const targetDir = dir ?? getFsImplementation().cwd();
|
|
5512
|
+
const entries = new Set(await readdir(targetDir));
|
|
5513
|
+
for (const [marker, vcs] of VCS_MARKERS) {
|
|
5514
|
+
if (entries.has(marker)) {
|
|
5515
|
+
detected.add(vcs);
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
} catch {}
|
|
5519
|
+
return [...detected];
|
|
5520
|
+
}
|
|
5521
|
+
var SUPPORTED_PLATFORMS, getPlatform, getWslVersion, getLinuxDistroInfo, VCS_MARKERS;
|
|
5522
|
+
var init_platform = __esm(() => {
|
|
5523
|
+
init_memoize();
|
|
5524
|
+
init_fsOperations();
|
|
5525
|
+
init_log2();
|
|
5526
|
+
SUPPORTED_PLATFORMS = ["macos", "wsl"];
|
|
5527
|
+
getPlatform = memoize_default(() => {
|
|
5528
|
+
try {
|
|
5529
|
+
if (process.platform === "darwin") {
|
|
5530
|
+
return "macos";
|
|
5531
|
+
}
|
|
5532
|
+
if (process.platform === "win32") {
|
|
5533
|
+
return "windows";
|
|
5534
|
+
}
|
|
5535
|
+
if (process.platform === "linux") {
|
|
5536
|
+
try {
|
|
5537
|
+
const procVersion = getFsImplementation().readFileSync("/proc/version", { encoding: "utf8" });
|
|
5538
|
+
if (procVersion.toLowerCase().includes("microsoft") || procVersion.toLowerCase().includes("wsl")) {
|
|
5539
|
+
return "wsl";
|
|
5540
|
+
}
|
|
5541
|
+
} catch (error2) {
|
|
5542
|
+
logError(error2);
|
|
5543
|
+
}
|
|
5544
|
+
return "linux";
|
|
5545
|
+
}
|
|
5546
|
+
return "unknown";
|
|
5547
|
+
} catch (error2) {
|
|
5548
|
+
logError(error2);
|
|
5549
|
+
return "unknown";
|
|
5550
|
+
}
|
|
5551
|
+
});
|
|
5552
|
+
getWslVersion = memoize_default(() => {
|
|
5553
|
+
if (process.platform !== "linux") {
|
|
5554
|
+
return;
|
|
5555
|
+
}
|
|
5556
|
+
try {
|
|
5557
|
+
const procVersion = getFsImplementation().readFileSync("/proc/version", {
|
|
5558
|
+
encoding: "utf8"
|
|
5559
|
+
});
|
|
5560
|
+
const wslVersionMatch = procVersion.match(/WSL(\d+)/i);
|
|
5561
|
+
if (wslVersionMatch && wslVersionMatch[1]) {
|
|
5562
|
+
return wslVersionMatch[1];
|
|
5563
|
+
}
|
|
5564
|
+
if (procVersion.toLowerCase().includes("microsoft")) {
|
|
5565
|
+
return "1";
|
|
5566
|
+
}
|
|
5567
|
+
return;
|
|
5568
|
+
} catch (error2) {
|
|
5569
|
+
logError(error2);
|
|
5570
|
+
return;
|
|
5571
|
+
}
|
|
5572
|
+
});
|
|
5573
|
+
getLinuxDistroInfo = memoize_default(async () => {
|
|
5574
|
+
if (process.platform !== "linux") {
|
|
5575
|
+
return;
|
|
5576
|
+
}
|
|
5577
|
+
const result = {
|
|
5578
|
+
linuxKernel: osRelease()
|
|
5579
|
+
};
|
|
5580
|
+
try {
|
|
5581
|
+
const content = await readFile("/etc/os-release", "utf8");
|
|
5582
|
+
for (const line of content.split(`
|
|
5583
|
+
`)) {
|
|
5584
|
+
const match = line.match(/^(ID|VERSION_ID)=(.*)$/);
|
|
5585
|
+
if (match && match[1] && match[2]) {
|
|
5586
|
+
const value = match[2].replace(/^"|"$/g, "");
|
|
5587
|
+
if (match[1] === "ID") {
|
|
5588
|
+
result.linuxDistroId = value;
|
|
5589
|
+
} else {
|
|
5590
|
+
result.linuxDistroVersion = value;
|
|
5591
|
+
}
|
|
5592
|
+
}
|
|
5593
|
+
}
|
|
5594
|
+
} catch {}
|
|
5595
|
+
return result;
|
|
5596
|
+
});
|
|
5597
|
+
VCS_MARKERS = [
|
|
5598
|
+
[".git", "git"],
|
|
5599
|
+
[".hg", "mercurial"],
|
|
5600
|
+
[".svn", "svn"],
|
|
5601
|
+
[".p4config", "perforce"],
|
|
5602
|
+
["$tf", "tfs"],
|
|
5603
|
+
[".tfvc", "tfs"],
|
|
5604
|
+
[".jj", "jujutsu"],
|
|
5605
|
+
[".sl", "sapling"]
|
|
5606
|
+
];
|
|
5607
|
+
});
|
|
5608
|
+
|
|
5170
5609
|
// src/utils/fsOperations.ts
|
|
5171
5610
|
import * as fs from "fs";
|
|
5172
5611
|
import {
|
|
@@ -5180,8 +5619,37 @@ import {
|
|
|
5180
5619
|
stat as statPromise,
|
|
5181
5620
|
unlink as unlinkPromise
|
|
5182
5621
|
} from "fs/promises";
|
|
5183
|
-
import { homedir } from "os";
|
|
5622
|
+
import { homedir as homedir2 } from "os";
|
|
5184
5623
|
import * as nodePath from "path";
|
|
5624
|
+
function countReplacementChars(s) {
|
|
5625
|
+
let count = 0;
|
|
5626
|
+
for (let i = 0;i < s.length; i++) {
|
|
5627
|
+
if (s.charCodeAt(i) === 65533)
|
|
5628
|
+
count++;
|
|
5629
|
+
}
|
|
5630
|
+
return count;
|
|
5631
|
+
}
|
|
5632
|
+
function decodeBuffer(buffer, length) {
|
|
5633
|
+
const slice = buffer.subarray(0, length);
|
|
5634
|
+
if (getPlatform() !== "windows") {
|
|
5635
|
+
return slice.toString("utf8");
|
|
5636
|
+
}
|
|
5637
|
+
const utf8Str = slice.toString("utf8");
|
|
5638
|
+
const utf8Bad = countReplacementChars(utf8Str);
|
|
5639
|
+
if (utf8Bad < 3) {
|
|
5640
|
+
return utf8Str;
|
|
5641
|
+
}
|
|
5642
|
+
try {
|
|
5643
|
+
if (!gbkDecoder) {
|
|
5644
|
+
gbkDecoder = new TextDecoder("gbk");
|
|
5645
|
+
}
|
|
5646
|
+
const gbkStr = gbkDecoder.decode(slice);
|
|
5647
|
+
const gbkBad = countReplacementChars(gbkStr);
|
|
5648
|
+
return gbkBad < utf8Bad ? gbkStr : utf8Str;
|
|
5649
|
+
} catch {
|
|
5650
|
+
return utf8Str;
|
|
5651
|
+
}
|
|
5652
|
+
}
|
|
5185
5653
|
function safeResolvePath(fs2, filePath) {
|
|
5186
5654
|
if (filePath.startsWith("//") || filePath.startsWith("\\\\")) {
|
|
5187
5655
|
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
@@ -5242,20 +5710,20 @@ function resolveDeepestExistingAncestorSync(fs2, absolutePath) {
|
|
|
5242
5710
|
return;
|
|
5243
5711
|
}
|
|
5244
5712
|
function getPathsForPermissionCheck(inputPath) {
|
|
5245
|
-
let
|
|
5246
|
-
if (
|
|
5247
|
-
|
|
5248
|
-
} else if (
|
|
5249
|
-
|
|
5713
|
+
let path3 = inputPath;
|
|
5714
|
+
if (path3 === "~") {
|
|
5715
|
+
path3 = homedir2().normalize("NFC");
|
|
5716
|
+
} else if (path3.startsWith("~/")) {
|
|
5717
|
+
path3 = nodePath.join(homedir2().normalize("NFC"), path3.slice(2));
|
|
5250
5718
|
}
|
|
5251
5719
|
const pathSet = new Set;
|
|
5252
5720
|
const fsImpl = getFsImplementation();
|
|
5253
|
-
pathSet.add(
|
|
5254
|
-
if (
|
|
5721
|
+
pathSet.add(path3);
|
|
5722
|
+
if (path3.startsWith("//") || path3.startsWith("\\\\")) {
|
|
5255
5723
|
return Array.from(pathSet);
|
|
5256
5724
|
}
|
|
5257
5725
|
try {
|
|
5258
|
-
let currentPath =
|
|
5726
|
+
let currentPath = path3;
|
|
5259
5727
|
const visited = new Set;
|
|
5260
5728
|
const maxDepth = 40;
|
|
5261
5729
|
for (let depth = 0;depth < maxDepth; depth++) {
|
|
@@ -5264,8 +5732,8 @@ function getPathsForPermissionCheck(inputPath) {
|
|
|
5264
5732
|
}
|
|
5265
5733
|
visited.add(currentPath);
|
|
5266
5734
|
if (!fsImpl.existsSync(currentPath)) {
|
|
5267
|
-
if (currentPath ===
|
|
5268
|
-
const resolved = resolveDeepestExistingAncestorSync(fsImpl,
|
|
5735
|
+
if (currentPath === path3) {
|
|
5736
|
+
const resolved = resolveDeepestExistingAncestorSync(fsImpl, path3);
|
|
5269
5737
|
if (resolved !== undefined) {
|
|
5270
5738
|
pathSet.add(resolved);
|
|
5271
5739
|
}
|
|
@@ -5285,8 +5753,8 @@ function getPathsForPermissionCheck(inputPath) {
|
|
|
5285
5753
|
currentPath = absoluteTarget;
|
|
5286
5754
|
}
|
|
5287
5755
|
} catch {}
|
|
5288
|
-
const { resolvedPath, isSymlink } = safeResolvePath(fsImpl,
|
|
5289
|
-
if (isSymlink && resolvedPath !==
|
|
5756
|
+
const { resolvedPath, isSymlink } = safeResolvePath(fsImpl, path3);
|
|
5757
|
+
if (isSymlink && resolvedPath !== path3) {
|
|
5290
5758
|
pathSet.add(resolvedPath);
|
|
5291
5759
|
}
|
|
5292
5760
|
return Array.from(pathSet);
|
|
@@ -5294,10 +5762,10 @@ function getPathsForPermissionCheck(inputPath) {
|
|
|
5294
5762
|
function getFsImplementation() {
|
|
5295
5763
|
return activeFs;
|
|
5296
5764
|
}
|
|
5297
|
-
async function readFileRange(
|
|
5765
|
+
async function readFileRange(path3, offset, maxBytes) {
|
|
5298
5766
|
let __stack = [];
|
|
5299
5767
|
try {
|
|
5300
|
-
const fh = __using(__stack, await open(
|
|
5768
|
+
const fh = __using(__stack, await open(path3, "r"), 1);
|
|
5301
5769
|
const size = (await fh.stat()).size;
|
|
5302
5770
|
if (size <= offset) {
|
|
5303
5771
|
return null;
|
|
@@ -5313,7 +5781,7 @@ async function readFileRange(path2, offset, maxBytes) {
|
|
|
5313
5781
|
totalRead += bytesRead;
|
|
5314
5782
|
}
|
|
5315
5783
|
return {
|
|
5316
|
-
content: buffer
|
|
5784
|
+
content: decodeBuffer(buffer, totalRead),
|
|
5317
5785
|
bytesRead: totalRead,
|
|
5318
5786
|
bytesTotal: size
|
|
5319
5787
|
};
|
|
@@ -5324,10 +5792,10 @@ async function readFileRange(path2, offset, maxBytes) {
|
|
|
5324
5792
|
_promise && await _promise;
|
|
5325
5793
|
}
|
|
5326
5794
|
}
|
|
5327
|
-
async function tailFile(
|
|
5795
|
+
async function tailFile(path3, maxBytes) {
|
|
5328
5796
|
let __stack = [];
|
|
5329
5797
|
try {
|
|
5330
|
-
const fh = __using(__stack, await open(
|
|
5798
|
+
const fh = __using(__stack, await open(path3, "r"), 1);
|
|
5331
5799
|
const size = (await fh.stat()).size;
|
|
5332
5800
|
if (size === 0) {
|
|
5333
5801
|
return { content: "", bytesRead: 0, bytesTotal: 0 };
|
|
@@ -5344,7 +5812,7 @@ async function tailFile(path2, maxBytes) {
|
|
|
5344
5812
|
totalRead += bytesRead;
|
|
5345
5813
|
}
|
|
5346
5814
|
return {
|
|
5347
|
-
content: buffer
|
|
5815
|
+
content: decodeBuffer(buffer, totalRead),
|
|
5348
5816
|
bytesRead: totalRead,
|
|
5349
5817
|
bytesTotal: size
|
|
5350
5818
|
};
|
|
@@ -5355,9 +5823,9 @@ async function tailFile(path2, maxBytes) {
|
|
|
5355
5823
|
_promise && await _promise;
|
|
5356
5824
|
}
|
|
5357
5825
|
}
|
|
5358
|
-
async function* readLinesReverse(
|
|
5826
|
+
async function* readLinesReverse(path3) {
|
|
5359
5827
|
const CHUNK_SIZE = 1024 * 4;
|
|
5360
|
-
const fileHandle = await open(
|
|
5828
|
+
const fileHandle = await open(path3, "r");
|
|
5361
5829
|
try {
|
|
5362
5830
|
const stats = await fileHandle.stat();
|
|
5363
5831
|
let position = stats.size;
|
|
@@ -5393,9 +5861,10 @@ async function* readLinesReverse(path2) {
|
|
|
5393
5861
|
await fileHandle.close();
|
|
5394
5862
|
}
|
|
5395
5863
|
}
|
|
5396
|
-
var NodeFsOperations, activeFs;
|
|
5864
|
+
var gbkDecoder = null, NodeFsOperations, activeFs;
|
|
5397
5865
|
var init_fsOperations = __esm(() => {
|
|
5398
5866
|
init_errors2();
|
|
5867
|
+
init_platform();
|
|
5399
5868
|
init_slowOperations();
|
|
5400
5869
|
NodeFsOperations = {
|
|
5401
5870
|
cwd() {
|
|
@@ -5505,13 +5974,13 @@ var init_fsOperations = __esm(() => {
|
|
|
5505
5974
|
__callDispose(__stack, _err, _hasErr);
|
|
5506
5975
|
}
|
|
5507
5976
|
},
|
|
5508
|
-
appendFileSync(
|
|
5977
|
+
appendFileSync(path3, data, options) {
|
|
5509
5978
|
let __stack = [];
|
|
5510
5979
|
try {
|
|
5511
|
-
const _ = __using(__stack, slowLogging`fs.appendFileSync(${
|
|
5980
|
+
const _ = __using(__stack, slowLogging`fs.appendFileSync(${path3}, ${data.length} chars)`, 0);
|
|
5512
5981
|
if (options?.mode !== undefined) {
|
|
5513
5982
|
try {
|
|
5514
|
-
const fd = fs.openSync(
|
|
5983
|
+
const fd = fs.openSync(path3, "ax", options.mode);
|
|
5515
5984
|
try {
|
|
5516
5985
|
fs.appendFileSync(fd, data);
|
|
5517
5986
|
} finally {
|
|
@@ -5523,7 +5992,7 @@ var init_fsOperations = __esm(() => {
|
|
|
5523
5992
|
throw e;
|
|
5524
5993
|
}
|
|
5525
5994
|
}
|
|
5526
|
-
fs.appendFileSync(
|
|
5995
|
+
fs.appendFileSync(path3, data);
|
|
5527
5996
|
} catch (_catch) {
|
|
5528
5997
|
var _err = _catch, _hasErr = 1;
|
|
5529
5998
|
} finally {
|
|
@@ -5541,11 +6010,11 @@ var init_fsOperations = __esm(() => {
|
|
|
5541
6010
|
__callDispose(__stack, _err, _hasErr);
|
|
5542
6011
|
}
|
|
5543
6012
|
},
|
|
5544
|
-
unlinkSync(
|
|
6013
|
+
unlinkSync(path3) {
|
|
5545
6014
|
let __stack = [];
|
|
5546
6015
|
try {
|
|
5547
|
-
const _ = __using(__stack, slowLogging`fs.unlinkSync(${
|
|
5548
|
-
fs.unlinkSync(
|
|
6016
|
+
const _ = __using(__stack, slowLogging`fs.unlinkSync(${path3})`, 0);
|
|
6017
|
+
fs.unlinkSync(path3);
|
|
5549
6018
|
} catch (_catch) {
|
|
5550
6019
|
var _err = _catch, _hasErr = 1;
|
|
5551
6020
|
} finally {
|
|
@@ -5563,44 +6032,44 @@ var init_fsOperations = __esm(() => {
|
|
|
5563
6032
|
__callDispose(__stack, _err, _hasErr);
|
|
5564
6033
|
}
|
|
5565
6034
|
},
|
|
5566
|
-
linkSync(target,
|
|
6035
|
+
linkSync(target, path3) {
|
|
5567
6036
|
let __stack = [];
|
|
5568
6037
|
try {
|
|
5569
|
-
const _ = __using(__stack, slowLogging`fs.linkSync(${target} \u2192 ${
|
|
5570
|
-
fs.linkSync(target,
|
|
6038
|
+
const _ = __using(__stack, slowLogging`fs.linkSync(${target} \u2192 ${path3})`, 0);
|
|
6039
|
+
fs.linkSync(target, path3);
|
|
5571
6040
|
} catch (_catch) {
|
|
5572
6041
|
var _err = _catch, _hasErr = 1;
|
|
5573
6042
|
} finally {
|
|
5574
6043
|
__callDispose(__stack, _err, _hasErr);
|
|
5575
6044
|
}
|
|
5576
6045
|
},
|
|
5577
|
-
symlinkSync(target,
|
|
6046
|
+
symlinkSync(target, path3, type) {
|
|
5578
6047
|
let __stack = [];
|
|
5579
6048
|
try {
|
|
5580
|
-
const _ = __using(__stack, slowLogging`fs.symlinkSync(${target} \u2192 ${
|
|
5581
|
-
fs.symlinkSync(target,
|
|
6049
|
+
const _ = __using(__stack, slowLogging`fs.symlinkSync(${target} \u2192 ${path3})`, 0);
|
|
6050
|
+
fs.symlinkSync(target, path3, type);
|
|
5582
6051
|
} catch (_catch) {
|
|
5583
6052
|
var _err = _catch, _hasErr = 1;
|
|
5584
6053
|
} finally {
|
|
5585
6054
|
__callDispose(__stack, _err, _hasErr);
|
|
5586
6055
|
}
|
|
5587
6056
|
},
|
|
5588
|
-
readlinkSync(
|
|
6057
|
+
readlinkSync(path3) {
|
|
5589
6058
|
let __stack = [];
|
|
5590
6059
|
try {
|
|
5591
|
-
const _ = __using(__stack, slowLogging`fs.readlinkSync(${
|
|
5592
|
-
return fs.readlinkSync(
|
|
6060
|
+
const _ = __using(__stack, slowLogging`fs.readlinkSync(${path3})`, 0);
|
|
6061
|
+
return fs.readlinkSync(path3);
|
|
5593
6062
|
} catch (_catch) {
|
|
5594
6063
|
var _err = _catch, _hasErr = 1;
|
|
5595
6064
|
} finally {
|
|
5596
6065
|
__callDispose(__stack, _err, _hasErr);
|
|
5597
6066
|
}
|
|
5598
6067
|
},
|
|
5599
|
-
realpathSync(
|
|
6068
|
+
realpathSync(path3) {
|
|
5600
6069
|
let __stack = [];
|
|
5601
6070
|
try {
|
|
5602
|
-
const _ = __using(__stack, slowLogging`fs.realpathSync(${
|
|
5603
|
-
return fs.realpathSync(
|
|
6071
|
+
const _ = __using(__stack, slowLogging`fs.realpathSync(${path3})`, 0);
|
|
6072
|
+
return fs.realpathSync(path3).normalize("NFC");
|
|
5604
6073
|
} catch (_catch) {
|
|
5605
6074
|
var _err = _catch, _hasErr = 1;
|
|
5606
6075
|
} finally {
|
|
@@ -5674,19 +6143,19 @@ var init_fsOperations = __esm(() => {
|
|
|
5674
6143
|
__callDispose(__stack, _err, _hasErr);
|
|
5675
6144
|
}
|
|
5676
6145
|
},
|
|
5677
|
-
rmSync(
|
|
6146
|
+
rmSync(path3, options) {
|
|
5678
6147
|
let __stack = [];
|
|
5679
6148
|
try {
|
|
5680
|
-
const _ = __using(__stack, slowLogging`fs.rmSync(${
|
|
5681
|
-
fs.rmSync(
|
|
6149
|
+
const _ = __using(__stack, slowLogging`fs.rmSync(${path3})`, 0);
|
|
6150
|
+
fs.rmSync(path3, options);
|
|
5682
6151
|
} catch (_catch) {
|
|
5683
6152
|
var _err = _catch, _hasErr = 1;
|
|
5684
6153
|
} finally {
|
|
5685
6154
|
__callDispose(__stack, _err, _hasErr);
|
|
5686
6155
|
}
|
|
5687
6156
|
},
|
|
5688
|
-
createWriteStream(
|
|
5689
|
-
return fs.createWriteStream(
|
|
6157
|
+
createWriteStream(path3) {
|
|
6158
|
+
return fs.createWriteStream(path3);
|
|
5690
6159
|
},
|
|
5691
6160
|
async readFileBytes(fsPath, maxBytes) {
|
|
5692
6161
|
if (maxBytes === undefined) {
|
|
@@ -5715,7 +6184,7 @@ var init_fsOperations = __esm(() => {
|
|
|
5715
6184
|
|
|
5716
6185
|
// src/utils/debug.ts
|
|
5717
6186
|
import { appendFile, mkdir, symlink, unlink } from "fs/promises";
|
|
5718
|
-
import { dirname as dirname2, join as
|
|
6187
|
+
import { dirname as dirname2, join as join3 } from "path";
|
|
5719
6188
|
function enableDebugLogging() {
|
|
5720
6189
|
const wasActive = isDebugMode() || process.env.USER_TYPE === "ant";
|
|
5721
6190
|
runtimeDebugEnabled = true;
|
|
@@ -5736,11 +6205,11 @@ function shouldLogDebugMessage(message) {
|
|
|
5736
6205
|
function setHasFormattedOutput(value) {
|
|
5737
6206
|
hasFormattedOutput = value;
|
|
5738
6207
|
}
|
|
5739
|
-
async function appendAsync(needMkdir, dir,
|
|
6208
|
+
async function appendAsync(needMkdir, dir, path3, content) {
|
|
5740
6209
|
if (needMkdir) {
|
|
5741
6210
|
await mkdir(dir, { recursive: true }).catch(() => {});
|
|
5742
6211
|
}
|
|
5743
|
-
await appendFile(
|
|
6212
|
+
await appendFile(path3, content);
|
|
5744
6213
|
updateLatestDebugLogSymlink();
|
|
5745
6214
|
}
|
|
5746
6215
|
function noop2() {}
|
|
@@ -5749,8 +6218,8 @@ function getDebugWriter() {
|
|
|
5749
6218
|
let ensuredDir = null;
|
|
5750
6219
|
debugWriter = createBufferedWriter({
|
|
5751
6220
|
writeFn: (content) => {
|
|
5752
|
-
const
|
|
5753
|
-
const dir = dirname2(
|
|
6221
|
+
const path3 = getDebugLogPath();
|
|
6222
|
+
const dir = dirname2(path3);
|
|
5754
6223
|
const needMkdir = ensuredDir !== dir;
|
|
5755
6224
|
ensuredDir = dir;
|
|
5756
6225
|
if (isDebugMode()) {
|
|
@@ -5759,11 +6228,11 @@ function getDebugWriter() {
|
|
|
5759
6228
|
getFsImplementation().mkdirSync(dir);
|
|
5760
6229
|
} catch {}
|
|
5761
6230
|
}
|
|
5762
|
-
getFsImplementation().appendFileSync(
|
|
6231
|
+
getFsImplementation().appendFileSync(path3, content);
|
|
5763
6232
|
updateLatestDebugLogSymlink();
|
|
5764
6233
|
return;
|
|
5765
6234
|
}
|
|
5766
|
-
pendingWrite = pendingWrite.then(appendAsync.bind(null, needMkdir, dir,
|
|
6235
|
+
pendingWrite = pendingWrite.then(appendAsync.bind(null, needMkdir, dir, path3, content)).catch(noop2);
|
|
5767
6236
|
},
|
|
5768
6237
|
flushIntervalMs: 1000,
|
|
5769
6238
|
maxBufferSize: 100,
|
|
@@ -5799,7 +6268,7 @@ function logForDebugging(message, { level } = {
|
|
|
5799
6268
|
getDebugWriter().write(output);
|
|
5800
6269
|
}
|
|
5801
6270
|
function getDebugLogPath() {
|
|
5802
|
-
return getDebugFilePath() ?? process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ??
|
|
6271
|
+
return getDebugFilePath() ?? process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ?? join3(getClaudeConfigHomeDir(), "debug", `${getSessionId()}.txt`);
|
|
5803
6272
|
}
|
|
5804
6273
|
function logAntError(context, error2) {
|
|
5805
6274
|
if (process.env.USER_TYPE !== "ant") {
|
|
@@ -5868,7 +6337,7 @@ var init_debug = __esm(() => {
|
|
|
5868
6337
|
try {
|
|
5869
6338
|
const debugLogPath = getDebugLogPath();
|
|
5870
6339
|
const debugLogsDir = dirname2(debugLogPath);
|
|
5871
|
-
const latestSymlinkPath =
|
|
6340
|
+
const latestSymlinkPath = join3(debugLogsDir, "latest");
|
|
5872
6341
|
await unlink(latestSymlinkPath).catch(() => {});
|
|
5873
6342
|
await symlink(debugLogPath, latestSymlinkPath);
|
|
5874
6343
|
} catch {}
|
|
@@ -5968,4 +6437,4 @@ var init_slowOperations = __esm(() => {
|
|
|
5968
6437
|
slowLogging = slowLoggingExternal;
|
|
5969
6438
|
});
|
|
5970
6439
|
|
|
5971
|
-
export { createBufferedWriter, init_bufferedWriter, registerCleanup, runCleanupFunctions, init_cleanupRegistry, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, AuthenticationError, NotFoundError, init_error2 as init_error, Anthropic, init_sdk, ClaudeError, MalformedCommandError, AbortError, isAbortError2 as isAbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, hasExactErrorMessage, toError, errorMessage, getErrnoCode, isENOENT, getErrnoPath, isFsInaccessible, classifyAxiosError, init_errors2 as init_errors, _defineProperty_default, init__defineProperty, _baseAssignValue_default, init__baseAssignValue, _assignValue_default, init__assignValue, _copyObject_default, init__copyObject, keysIn_default, init_keysIn, _cloneBuffer_default, init__cloneBuffer, _copyArray_default, init__copyArray, _getPrototype_default, init__getPrototype, _getAllKeysIn_default, init__getAllKeysIn, _cloneTypedArray_default, init__cloneTypedArray, _initCloneObject_default, init__initCloneObject, _baseClone_default, init__baseClone, cloneDeep_default, init_cloneDeep, slowLogging, jsonStringify, jsonParse, clone, writeFileSync_DEPRECATED, init_slowOperations, safeResolvePath, isDuplicatePath, getPathsForPermissionCheck, getFsImplementation, readFileRange, tailFile, readLinesReverse, init_fsOperations, isDebugMode, enableDebugLogging, isDebugToStdErr, setHasFormattedOutput, logForDebugging, getDebugLogPath, logAntError, init_debug };
|
|
6440
|
+
export { createBufferedWriter, init_bufferedWriter, registerCleanup, runCleanupFunctions, init_cleanupRegistry, APIError, APIUserAbortError, APIConnectionError, APIConnectionTimeoutError, AuthenticationError, NotFoundError, init_error2 as init_error, Anthropic, init_sdk, ClaudeError, MalformedCommandError, AbortError, isAbortError2 as isAbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, hasExactErrorMessage, toError, errorMessage, getErrnoCode, isENOENT, getErrnoPath, isFsInaccessible, classifyAxiosError, init_errors2 as init_errors, COMMAND_NAME_TAG, COMMAND_MESSAGE_TAG, COMMAND_ARGS_TAG, BASH_INPUT_TAG, BASH_STDOUT_TAG, BASH_STDERR_TAG, LOCAL_COMMAND_STDOUT_TAG, LOCAL_COMMAND_STDERR_TAG, LOCAL_COMMAND_CAVEAT_TAG, TERMINAL_OUTPUT_TAGS, TICK_TAG, TASK_NOTIFICATION_TAG, TASK_ID_TAG, TOOL_USE_ID_TAG, TASK_TYPE_TAG, OUTPUT_FILE_TAG, STATUS_TAG, SUMMARY_TAG, WORKTREE_TAG, WORKTREE_PATH_TAG, WORKTREE_BRANCH_TAG, REMOTE_REVIEW_TAG, REMOTE_REVIEW_PROGRESS_TAG, TEAMMATE_MESSAGE_TAG, CHANNEL_TAG, FORK_BOILERPLATE_TAG, FORK_DIRECTIVE_PREFIX, COMMON_HELP_ARGS, COMMON_INFO_ARGS, init_xml, sortLogs, init_logs, djb2Hash, hashContent, hashPair, init_hash, CACHE_PATHS, init_cachePaths, stripDisplayTags, stripIdeContextTags, init_displayTags, isEssentialTrafficOnly, isTelemetryDisabled, getEssentialTrafficOnlyReason, init_privacyLevel, _defineProperty_default, init__defineProperty, _baseAssignValue_default, init__baseAssignValue, _assignValue_default, init__assignValue, _copyObject_default, init__copyObject, keysIn_default, init_keysIn, _cloneBuffer_default, init__cloneBuffer, _copyArray_default, init__copyArray, _getPrototype_default, init__getPrototype, _getAllKeysIn_default, init__getAllKeysIn, _cloneTypedArray_default, init__cloneTypedArray, _initCloneObject_default, init__initCloneObject, _baseClone_default, init__baseClone, cloneDeep_default, init_cloneDeep, slowLogging, jsonStringify, jsonParse, clone, writeFileSync_DEPRECATED, init_slowOperations, getLogDisplayTitle, dateToFilename, attachErrorLogSink, logError, getInMemoryErrors, logMCPError, logMCPDebug, captureAPIRequest, init_log2 as init_log, SUPPORTED_PLATFORMS, getPlatform, getWslVersion, getLinuxDistroInfo, detectVcs, init_platform, safeResolvePath, isDuplicatePath, getPathsForPermissionCheck, getFsImplementation, readFileRange, tailFile, readLinesReverse, init_fsOperations, isDebugMode, enableDebugLogging, isDebugToStdErr, setHasFormattedOutput, logForDebugging, getDebugLogPath, logAntError, init_debug };
|