@caspian2026/agent-sdk 0.0.17 → 0.0.19
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-rsayw1er.js → chunk-0075f5sb.js} +4 -4
- package/dist/{chunk-91mjas8g.js → chunk-03jc62cq.js} +37 -37
- package/dist/{chunk-gg9xd4fg.js → chunk-0e495v4y.js} +37 -37
- package/dist/{chunk-sqq17sk1.js → chunk-0n4n14c1.js} +16 -16
- package/dist/{chunk-y6ktw609.js → chunk-0r04e4ap.js} +3 -3
- package/dist/{chunk-2avrzsjc.js → chunk-0r5bb9j4.js} +3 -3
- package/dist/{chunk-aejj9p9y.js → chunk-0rs4m3ya.js} +2 -2
- package/dist/{chunk-657y059h.js → chunk-0t81d427.js} +7 -7
- package/dist/{chunk-fmskgt7z.js → chunk-0zprysa2.js} +37 -37
- package/dist/{chunk-qtvgn3s8.js → chunk-110c7hek.js} +2 -2
- package/dist/{chunk-2tm611h9.js → chunk-1ae3nt9j.js} +2 -2
- package/dist/{chunk-asenzcq2.js → chunk-1cpeddhv.js} +3 -3
- package/dist/{chunk-k6phb848.js → chunk-1e1rjstz.js} +37 -37
- package/dist/{chunk-d43p2rb5.js → chunk-1fb0jqty.js} +40 -40
- package/dist/{chunk-gwa6cq9z.js → chunk-1hg8ktay.js} +38 -38
- package/dist/{chunk-43rp9zbk.js → chunk-1j0n05rf.js} +2 -2
- package/dist/{chunk-4vjk90k1.js → chunk-1pjgxfeq.js} +37 -37
- package/dist/{chunk-znvn165p.js → chunk-1ts9qapj.js} +8 -88
- package/dist/{chunk-4ek1jg1y.js → chunk-1vyfr81c.js} +1 -1
- package/dist/{chunk-9t6ktd1k.js → chunk-21jaw3mt.js} +3 -3
- package/dist/{chunk-mbz52548.js → chunk-2e8ybf05.js} +12 -12
- package/dist/{chunk-2513pwp1.js → chunk-2ewarpza.js} +38 -38
- package/dist/{chunk-a02gfq3p.js → chunk-2tb0e476.js} +49 -49
- package/dist/{chunk-3rkp3sz5.js → chunk-2vj1ta7d.js} +37 -37
- package/dist/{chunk-smzk57cp.js → chunk-302xme7e.js} +77 -77
- package/dist/{chunk-9byk15r9.js → chunk-36akc07b.js} +1 -1
- package/dist/{chunk-fs9z9s8r.js → chunk-3dx4h9pq.js} +38 -38
- package/dist/{chunk-s0hsrmwy.js → chunk-3f2ryn4p.js} +6 -6
- package/dist/{chunk-bw5mz10f.js → chunk-3jh2z27c.js} +37 -37
- package/dist/{chunk-nxq32bgn.js → chunk-3jp8zgek.js} +1 -1
- package/dist/{chunk-n9djcphd.js → chunk-3kf30xba.js} +40 -40
- package/dist/{chunk-fkttqetc.js → chunk-3t2pkmek.js} +12 -12
- package/dist/{chunk-dgpajvfn.js → chunk-3t7kecay.js} +41 -41
- package/dist/{chunk-kd5k97vr.js → chunk-3vy1jt9p.js} +6 -24
- package/dist/{chunk-a9xc584q.js → chunk-40gj4vgn.js} +4 -4
- package/dist/{chunk-2qn7yw4y.js → chunk-4ce75svs.js} +6 -6
- package/dist/{chunk-gq4ptzy4.js → chunk-4e708nwk.js} +13 -13
- package/dist/{chunk-jbv0d2xg.js → chunk-4k9d7gxv.js} +1 -1
- package/dist/{chunk-8r7w9p0a.js → chunk-4wx02mba.js} +4 -4
- package/dist/{chunk-8je2zjtd.js → chunk-4xwfsejb.js} +3 -3
- package/dist/{chunk-pp7jvb4r.js → chunk-5bs3xf11.js} +37 -37
- package/dist/{chunk-e86wz4cn.js → chunk-5c980jax.js} +13 -13
- package/dist/{chunk-ekra4eer.js → chunk-5cj7yfg1.js} +43 -47
- package/dist/{chunk-1a5w7wdt.js → chunk-5ekyhb1w.js} +3 -3
- package/dist/{chunk-aw0m31xk.js → chunk-5gjwp5bc.js} +49 -49
- package/dist/{chunk-2hys4sza.js → chunk-5h1wfdk2.js} +16 -22
- package/dist/{chunk-2apvtmkd.js → chunk-5h4berfm.js} +6 -6
- package/dist/{chunk-hqdwr6mz.js → chunk-5h5kx2jd.js} +1 -1
- package/dist/{chunk-nsc89h0n.js → chunk-5n1jc02d.js} +1 -7
- package/dist/{chunk-vf2h10sd.js → chunk-5xkp0tnb.js} +45 -45
- package/dist/{chunk-9an46bhy.js → chunk-64r16v22.js} +1 -1
- package/dist/{chunk-5c4wp3w4.js → chunk-65j4q40b.js} +38 -38
- package/dist/{chunk-kwkcmv5p.js → chunk-670trxyg.js} +12 -12
- package/dist/{chunk-cfvgegjj.js → chunk-6dngjwkh.js} +2 -2
- package/dist/{chunk-mkxevns0.js → chunk-6fes9049.js} +8 -8
- package/dist/{chunk-yre3pd7r.js → chunk-6g0hnb1k.js} +37 -37
- package/dist/{chunk-nv4kjacz.js → chunk-6mqmk16a.js} +37 -37
- package/dist/{chunk-djna15b0.js → chunk-6rvr3wwq.js} +18 -18
- package/dist/{chunk-mxbyk7t6.js → chunk-6s68m1dg.js} +4 -4
- package/dist/{chunk-9a31ybfa.js → chunk-7d24zw5w.js} +37 -37
- package/dist/{chunk-rtpe3390.js → chunk-7eb2qp91.js} +40 -40
- package/dist/{chunk-2jyvw1vd.js → chunk-7hfzfe98.js} +1 -1
- package/dist/{chunk-ptsfc26p.js → chunk-7m3a6kb8.js} +37 -37
- package/dist/{chunk-qdep4kw2.js → chunk-7n6tk7rw.js} +35 -329
- package/dist/{chunk-xtgp9ghb.js → chunk-7s3g2nbw.js} +4 -4
- package/dist/{chunk-3y62mv8j.js → chunk-7wg82yq4.js} +91 -91
- package/dist/{chunk-v5b8832x.js → chunk-7yp1ra14.js} +6 -6
- package/dist/{chunk-6wsv89mq.js → chunk-844zmnw6.js} +37 -37
- package/dist/{chunk-2jzpw1pf.js → chunk-8457y05z.js} +16 -16
- package/dist/{chunk-yt3s7a7d.js → chunk-89vrm4ae.js} +5 -5
- package/dist/{chunk-qgj6d6bt.js → chunk-8bxm9bv1.js} +40 -40
- package/dist/{chunk-5hnhres8.js → chunk-8svj497n.js} +13 -13
- package/dist/{chunk-2nya3j5t.js → chunk-8yhf030a.js} +1 -1
- package/dist/{chunk-s3kkjrfv.js → chunk-9ed7v1qq.js} +37 -37
- package/dist/{chunk-9wjzv2zh.js → chunk-9hd3p970.js} +38 -38
- package/dist/{chunk-x43vg58b.js → chunk-a1gwg4fx.js} +14 -14
- package/dist/{chunk-8prynz1t.js → chunk-a1s9n17m.js} +5 -5
- package/dist/{chunk-qmaadr70.js → chunk-a2hq2yt9.js} +5 -5
- package/dist/{chunk-b30kpz42.js → chunk-a2v77s0p.js} +2 -2
- package/dist/{chunk-g7qtsqk8.js → chunk-a5cj5yk1.js} +1 -1
- package/dist/{chunk-ex5sa7t7.js → chunk-a5ry85ct.js} +3 -3
- package/dist/{chunk-h9b9ht16.js → chunk-a6328ts5.js} +2 -2
- package/dist/{chunk-r0hb02pd.js → chunk-adtgferq.js} +37 -37
- package/dist/{chunk-q4yb6d56.js → chunk-ahxpxdqg.js} +38 -38
- package/dist/{chunk-21naew4m.js → chunk-ajrrg4t1.js} +40 -40
- package/dist/{chunk-mqp7z9ps.js → chunk-arhmkw0v.js} +37 -37
- package/dist/{chunk-bf8svqq3.js → chunk-b3q5g3x5.js} +1 -1
- package/dist/{chunk-ebb4ndzn.js → chunk-b9t57m67.js} +4 -4
- package/dist/{chunk-jtwdv23y.js → chunk-bamjc1k5.js} +3 -3
- package/dist/{chunk-7p9xptww.js → chunk-bbc9f5q9.js} +8 -8
- package/dist/{chunk-39dpcr2t.js → chunk-bdb81673.js} +5 -5
- package/dist/{chunk-eyys9mkd.js → chunk-bh5zqvyc.js} +9 -9
- package/dist/{chunk-58hjm1ne.js → chunk-bjwdqabf.js} +45 -45
- package/dist/{chunk-dptcxma2.js → chunk-bpkpy613.js} +15 -15
- package/dist/{chunk-h6bgcfma.js → chunk-brjd9zmk.js} +4 -4
- package/dist/{chunk-s3psdenh.js → chunk-brqy29g9.js} +42 -42
- package/dist/{chunk-h6j5rxdn.js → chunk-by2e46kd.js} +40 -40
- package/dist/{chunk-db92x7yq.js → chunk-byfawrfx.js} +2 -2
- package/dist/{chunk-9gn2ft16.js → chunk-c073acgz.js} +6 -6
- package/dist/{chunk-f8jcs6tg.js → chunk-c0vhnnct.js} +37 -37
- package/dist/{chunk-z208sasn.js → chunk-c2nnhgr2.js} +2 -2
- package/dist/{chunk-8zab6cnc.js → chunk-c33r7wby.js} +1 -1
- package/dist/{chunk-h3rtwnzt.js → chunk-cdef9v7b.js} +3 -3
- package/dist/{chunk-fys33rtr.js → chunk-cxrktb5g.js} +1 -1
- package/dist/{chunk-w1cr6e2m.js → chunk-czsjnagp.js} +45 -45
- package/dist/{chunk-1g2hzmxg.js → chunk-d4q90j1w.js} +37 -37
- package/dist/{chunk-95n507aj.js → chunk-d564dtpq.js} +46 -46
- package/dist/{chunk-ppg4t5xh.js → chunk-d5eckc42.js} +4 -4
- package/dist/{chunk-k1twwh0y.js → chunk-d6eym4sa.js} +38 -38
- package/dist/{chunk-wqdfck13.js → chunk-d9e7ndag.js} +18 -18
- package/dist/{chunk-78gp6h02.js → chunk-dfszv6kn.js} +3 -3
- package/dist/{chunk-qhsd552n.js → chunk-dfzkwynj.js} +4 -4
- package/dist/{chunk-259dwmj0.js → chunk-dhfag5m0.js} +3 -3
- package/dist/{chunk-bpkkmb3t.js → chunk-dmahh26f.js} +1 -1
- package/dist/{chunk-t5b0h3vc.js → chunk-dn00fcy7.js} +13 -13
- package/dist/{chunk-051893g4.js → chunk-dnb45dhp.js} +37 -37
- package/dist/{chunk-vdb0x2b1.js → chunk-drqk484j.js} +3 -3
- package/dist/{chunk-2h6f45jx.js → chunk-e0abab5b.js} +3 -3
- package/dist/{chunk-4abteewj.js → chunk-e2nwdr09.js} +39 -39
- package/dist/{chunk-h13p8gjr.js → chunk-e4vx828d.js} +39 -39
- package/dist/{chunk-6hcp4sg1.js → chunk-e83tfqyt.js} +2 -2
- package/dist/{chunk-vtxskzvg.js → chunk-e8s2e141.js} +4 -4
- package/dist/{chunk-qd5n2h9f.js → chunk-e9w9zc0g.js} +6 -6
- package/dist/{chunk-tck3hdyx.js → chunk-eady4fzn.js} +4 -4
- package/dist/{chunk-f4cdyvtw.js → chunk-eert2day.js} +7 -7
- package/dist/{chunk-7945akmc.js → chunk-eqj42wkk.js} +39 -39
- package/dist/{chunk-4kn0bv7t.js → chunk-f0eqte4j.js} +37 -37
- package/dist/{chunk-rd4zenqr.js → chunk-f3ychkjd.js} +2 -2
- package/dist/{chunk-8rxv26kq.js → chunk-f6xzr8q2.js} +37 -37
- package/dist/{chunk-tmjt0nae.js → chunk-f84vvk41.js} +1 -1
- package/dist/{chunk-j1y56wgn.js → chunk-f98yad99.js} +4 -4
- package/dist/{chunk-f0cegqn6.js → chunk-f9wnty9x.js} +2 -2
- package/dist/{chunk-a4vds27m.js → chunk-fcynwjpm.js} +1 -1
- package/dist/{chunk-zwb74jzn.js → chunk-fkr3tfcs.js} +4 -4
- package/dist/{chunk-bwtw1cbj.js → chunk-fqak69ft.js} +2 -2
- package/dist/{chunk-q41bvf6v.js → chunk-ft4dxnwq.js} +1 -1
- package/dist/{chunk-42yvj6c9.js → chunk-fvm8gehr.js} +4 -4
- package/dist/{chunk-ehth26yz.js → chunk-g0x0gksg.js} +38 -38
- package/dist/{chunk-yb6xww2x.js → chunk-gg55fns0.js} +1 -1
- package/dist/{chunk-tshdmv2w.js → chunk-ggg97179.js} +37 -37
- package/dist/{chunk-e35pgt01.js → chunk-gmdt7w5d.js} +8 -8
- package/dist/{chunk-7ep76qfm.js → chunk-gw9291xk.js} +15 -15
- package/dist/{chunk-vrqxgw5m.js → chunk-gy4se0z5.js} +38 -38
- package/dist/{chunk-eszdke28.js → chunk-gz1e8y1w.js} +6 -6
- package/dist/{chunk-t2k799pr.js → chunk-hav5hw2k.js} +37 -37
- package/dist/{chunk-sdewxnce.js → chunk-hca6b2e5.js} +39 -39
- package/dist/{chunk-2eej90p6.js → chunk-hgdxffqr.js} +2 -2
- package/dist/{chunk-5xt8w19j.js → chunk-hnwg3k83.js} +1 -1
- package/dist/{chunk-jq90nkv5.js → chunk-hpd100ja.js} +42 -42
- package/dist/{chunk-0fjwyhtj.js → chunk-hr9c2w99.js} +6 -6
- package/dist/{chunk-cg5c99ep.js → chunk-hszdxe8f.js} +39 -39
- package/dist/{chunk-27west95.js → chunk-hz31bs21.js} +14 -14
- package/dist/{chunk-3w1mwx08.js → chunk-j03zh8dy.js} +38 -38
- package/dist/{chunk-9n8ejz32.js → chunk-jqn60wdn.js} +10 -10
- package/dist/{chunk-9fwjt4yz.js → chunk-k2p273gs.js} +39 -39
- package/dist/{chunk-15b52eyc.js → chunk-k6bpr2zz.js} +37 -37
- package/dist/{chunk-70vkepg8.js → chunk-k737m0z6.js} +38 -38
- package/dist/{chunk-3axergr8.js → chunk-kc8am0nn.js} +37 -37
- package/dist/chunk-kde61fqf.js +148 -0
- package/dist/{chunk-24s7fatk.js → chunk-knbjqnc7.js} +13 -13
- package/dist/{chunk-a7fqavjt.js → chunk-ksq6zjys.js} +2 -2
- package/dist/{chunk-5vs3ff1s.js → chunk-kwp6116t.js} +39 -39
- package/dist/{chunk-etnkcek5.js → chunk-ky1z78ve.js} +4 -4
- package/dist/{chunk-9wk12yej.js → chunk-m2yqqry6.js} +124 -124
- package/dist/{chunk-4sje0bf1.js → chunk-m626yecd.js} +38 -38
- package/dist/{chunk-wkr4dfdy.js → chunk-m86p6rs2.js} +49 -49
- package/dist/{chunk-8rej6wm3.js → chunk-m8wxbjg3.js} +5 -5
- package/dist/{chunk-1h6cfybr.js → chunk-mccjtnrw.js} +6 -6
- package/dist/{chunk-bnsvb24z.js → chunk-mq451b1k.js} +46 -46
- package/dist/{chunk-y7j22cae.js → chunk-mys37bb4.js} +37 -37
- package/dist/{chunk-mc20h0hz.js → chunk-nc0ve25x.js} +4 -4
- package/dist/{chunk-zbcskteg.js → chunk-nc7kjfxk.js} +37 -37
- package/dist/{chunk-5vp228m5.js → chunk-ngc2r6jc.js} +1 -1
- package/dist/{chunk-h8e89948.js → chunk-nmgj86tt.js} +5 -5
- package/dist/{chunk-9gg6s3cy.js → chunk-nsbtda9y.js} +20 -20
- package/dist/{chunk-4a161abh.js → chunk-ntztbz5t.js} +37 -37
- package/dist/{chunk-9kfmsz9c.js → chunk-nzdz8raj.js} +37 -37
- package/dist/{chunk-zpnrabf3.js → chunk-p1sn36ax.js} +4 -4
- package/dist/{chunk-7vyk3hw8.js → chunk-p81gg65v.js} +1174 -2115
- package/dist/{chunk-kx0hwe45.js → chunk-pd0yqtm8.js} +49 -49
- package/dist/{chunk-agfhxmaa.js → chunk-pe3rkfp2.js} +5 -5
- package/dist/{chunk-5w1qhzz4.js → chunk-pgs47kqs.js} +37 -37
- package/dist/{chunk-j7ptfetg.js → chunk-pgtnj1mt.js} +2 -2
- package/dist/{chunk-y7kse1my.js → chunk-py5ytxp4.js} +3 -3
- package/dist/{chunk-ckx8wtr1.js → chunk-py7pm42n.js} +15 -15
- package/dist/{chunk-55hp1a77.js → chunk-pywnxth6.js} +11 -11
- package/dist/{chunk-8czap1q1.js → chunk-pzxz2an7.js} +38 -38
- package/dist/{chunk-6czt9g2e.js → chunk-q0kafg58.js} +37 -37
- package/dist/{chunk-9k9djanj.js → chunk-q3w82drt.js} +3 -3
- package/dist/{chunk-23wz5k4y.js → chunk-q9t2n7d1.js} +38 -38
- package/dist/{chunk-mn96ajge.js → chunk-qatqd4rk.js} +5 -5
- package/dist/{chunk-dbn2t9d3.js → chunk-qh5p43j4.js} +2 -2
- package/dist/{chunk-gb10zt66.js → chunk-qpaeatmf.js} +37 -37
- package/dist/{chunk-8y55mc4q.js → chunk-qs3g8f9e.js} +3 -3
- package/dist/{chunk-qqsx2bt3.js → chunk-qwa7xy95.js} +37 -37
- package/dist/{chunk-asyw8m24.js → chunk-qzf23s30.js} +3 -3
- package/dist/{chunk-kak9gmpj.js → chunk-readr4t2.js} +39 -39
- package/dist/{chunk-zhg8kpwc.js → chunk-rjsfkzty.js} +4 -4
- package/dist/{chunk-45fm4zby.js → chunk-rmbbmd3s.js} +2 -2
- package/dist/{chunk-gdf91cqn.js → chunk-rn7w9k0a.js} +15 -15
- package/dist/{chunk-76z3t4yx.js → chunk-rnajq3vk.js} +38 -38
- package/dist/{chunk-ejjp1fy1.js → chunk-rnxctq9p.js} +2 -2
- package/dist/{chunk-gce86k0n.js → chunk-rs4yayw6.js} +1 -1
- package/dist/{chunk-5te68ppz.js → chunk-rshp5b43.js} +3 -3
- package/dist/{chunk-5y062kpz.js → chunk-rtbar3a1.js} +37 -37
- package/dist/{chunk-9yx7bprj.js → chunk-rtbrh4ac.js} +43 -43
- package/dist/{chunk-v7x6e7q8.js → chunk-s6cxke3j.js} +38 -38
- package/dist/{chunk-0brj8e2v.js → chunk-s7x8ajv3.js} +6 -6
- package/dist/{chunk-c25z9zmd.js → chunk-s8gy4ky9.js} +1 -1
- package/dist/{chunk-5gstfj8s.js → chunk-sa1pvh58.js} +38 -38
- package/dist/{chunk-6w51dnv1.js → chunk-sgpmpn90.js} +3 -3
- package/dist/{chunk-xxahhkz2.js → chunk-sh02d2qn.js} +8 -8
- package/dist/{chunk-z3256h9w.js → chunk-sqckd5nx.js} +38 -38
- package/dist/{chunk-gh4p3f8a.js → chunk-srkc8pwp.js} +2 -2
- package/dist/{chunk-jkfx7ath.js → chunk-t04tpqda.js} +38 -38
- package/dist/{chunk-nbkqz0d4.js → chunk-t300xs2e.js} +7 -7
- package/dist/{chunk-c8c08thk.js → chunk-t3se5crr.js} +38 -38
- package/dist/{chunk-a6d2q415.js → chunk-t4khqff1.js} +2 -2
- package/dist/{chunk-z8jn2anc.js → chunk-t5jqejqk.js} +47 -47
- package/dist/{chunk-7m70vtrr.js → chunk-txn11vtv.js} +2 -2
- package/dist/{chunk-dkb536s8.js → chunk-tz9r44d9.js} +37 -38
- package/dist/{chunk-gcyvjv5p.js → chunk-v311af96.js} +41 -41
- package/dist/{chunk-a9jh9m0x.js → chunk-v4162e76.js} +4 -4
- package/dist/{chunk-dgedw862.js → chunk-v6qvcajp.js} +1 -1
- package/dist/{chunk-2k3y6fnp.js → chunk-v8kjswxt.js} +1 -1
- package/dist/{chunk-zz8edckw.js → chunk-v8twrmnw.js} +46 -46
- package/dist/{chunk-r4rq2pha.js → chunk-vc12yftf.js} +2 -2
- package/dist/{chunk-5czxcj6p.js → chunk-vffwxpad.js} +40 -40
- package/dist/{chunk-2hn291tc.js → chunk-vj9segre.js} +12 -12
- package/dist/{chunk-w28t9jy7.js → chunk-vkhrrvfq.js} +1 -1
- package/dist/{chunk-jm3fz4f6.js → chunk-vtjgsgyf.js} +37 -37
- package/dist/{chunk-wrtabh03.js → chunk-w022zpyz.js} +13 -13
- package/dist/{chunk-5enrfg13.js → chunk-w28zrffk.js} +46 -46
- package/dist/{chunk-qyn46zve.js → chunk-w2qjc4dy.js} +4 -4
- package/dist/{chunk-cg185b3s.js → chunk-w328d3yn.js} +17 -17
- package/dist/{chunk-6e84jw8j.js → chunk-w6m6trzq.js} +2 -2
- package/dist/{chunk-fdhbpqkt.js → chunk-wc67aegv.js} +1 -1
- package/dist/{chunk-0jrf7v9d.js → chunk-wn3zb71r.js} +38 -38
- package/dist/{chunk-87xg6yb4.js → chunk-x47h283a.js} +1 -1
- package/dist/{chunk-mc1710zs.js → chunk-xk89d6vy.js} +7 -7
- package/dist/{chunk-jj0an15g.js → chunk-xq0q4bky.js} +4 -4
- package/dist/{chunk-022vc8sm.js → chunk-xrb6mn8j.js} +39 -39
- package/dist/{chunk-ry1zs6qj.js → chunk-xtanrzac.js} +11 -11
- package/dist/{chunk-rxqxc55w.js → chunk-y6x9kgba.js} +4 -4
- package/dist/{chunk-kpr0q6sr.js → chunk-y9bhjjdz.js} +2 -2
- package/dist/{chunk-mgbkmje6.js → chunk-ypsecc1v.js} +38 -38
- package/dist/{chunk-c01dn3n0.js → chunk-yrr23vr1.js} +13 -13
- package/dist/{chunk-70kzargq.js → chunk-yvvgfb9f.js} +38 -38
- package/dist/{chunk-q0319vnk.js → chunk-ywhmg8xp.js} +6 -6
- package/dist/{chunk-srhztat5.js → chunk-z0pmdn8s.js} +2 -2
- package/dist/{chunk-cm115cnp.js → chunk-z2npjf0h.js} +63 -65
- package/dist/{chunk-5b319v1f.js → chunk-zt86q6j5.js} +38 -38
- package/dist/{chunk-dwyaks7s.js → chunk-zxh62ved.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/gateway/worker.js +5652 -8994
- package/package.json +1 -1
- package/dist/chunk-h89hre19.js +0 -2186
- package/dist/chunk-s573trd0.js +0 -148
|
@@ -5,72 +5,72 @@ import {
|
|
|
5
5
|
init_ToolSearchTool,
|
|
6
6
|
inputSchema,
|
|
7
7
|
outputSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-p81gg65v.js";
|
|
9
9
|
import"./chunk-mcws22k3.js";
|
|
10
10
|
import"./chunk-jzthz1bx.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-0rs4m3ya.js";
|
|
12
12
|
import"./chunk-hwfknpxv.js";
|
|
13
13
|
import"./chunk-1gx78081.js";
|
|
14
14
|
import"./chunk-ehtwnxpg.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-0r04e4ap.js";
|
|
16
|
+
import"./chunk-e8s2e141.js";
|
|
17
|
+
import"./chunk-x47h283a.js";
|
|
18
|
+
import"./chunk-7yp1ra14.js";
|
|
19
19
|
import"./chunk-2gzv8nrw.js";
|
|
20
|
-
import"./chunk-
|
|
20
|
+
import"./chunk-e0abab5b.js";
|
|
21
21
|
import"./chunk-cgfdkzhb.js";
|
|
22
|
-
import"./chunk-
|
|
22
|
+
import"./chunk-4k9d7gxv.js";
|
|
23
23
|
import"./chunk-j5bth84e.js";
|
|
24
|
-
import"./chunk-
|
|
25
|
-
import"./chunk-ps49ymvj.js";
|
|
24
|
+
import"./chunk-qatqd4rk.js";
|
|
26
25
|
import"./chunk-68ffk5qa.js";
|
|
27
|
-
import"./chunk-
|
|
28
|
-
import"./chunk-
|
|
29
|
-
import"./chunk-
|
|
30
|
-
import"./chunk-
|
|
26
|
+
import"./chunk-ps49ymvj.js";
|
|
27
|
+
import"./chunk-v4162e76.js";
|
|
28
|
+
import"./chunk-mccjtnrw.js";
|
|
29
|
+
import"./chunk-pgtnj1mt.js";
|
|
30
|
+
import"./chunk-ft4dxnwq.js";
|
|
31
31
|
import"./chunk-p7vkh4wx.js";
|
|
32
|
-
import"./chunk-
|
|
33
|
-
import"./chunk-
|
|
34
|
-
import"./chunk-
|
|
35
|
-
import"./chunk-
|
|
32
|
+
import"./chunk-y9bhjjdz.js";
|
|
33
|
+
import"./chunk-bdb81673.js";
|
|
34
|
+
import"./chunk-1j0n05rf.js";
|
|
35
|
+
import"./chunk-dfzkwynj.js";
|
|
36
36
|
import"./chunk-xeb6075z.js";
|
|
37
|
-
import"./chunk-
|
|
37
|
+
import"./chunk-fcynwjpm.js";
|
|
38
38
|
import"./chunk-v4t6dyyh.js";
|
|
39
|
-
import"./chunk-
|
|
40
|
-
import"./chunk-
|
|
41
|
-
import"./chunk-
|
|
42
|
-
import"./chunk-
|
|
43
|
-
import"./chunk-
|
|
39
|
+
import"./chunk-89vrm4ae.js";
|
|
40
|
+
import"./chunk-v8kjswxt.js";
|
|
41
|
+
import"./chunk-bbc9f5q9.js";
|
|
42
|
+
import"./chunk-rnxctq9p.js";
|
|
43
|
+
import"./chunk-f98yad99.js";
|
|
44
44
|
import"./chunk-6nsd9606.js";
|
|
45
45
|
import"./chunk-64c1avct.js";
|
|
46
46
|
import"./chunk-8g5pe1gr.js";
|
|
47
47
|
import"./chunk-4pbx3g7s.js";
|
|
48
48
|
import"./chunk-26wtxbdc.js";
|
|
49
|
-
import"./chunk-
|
|
49
|
+
import"./chunk-6dngjwkh.js";
|
|
50
50
|
import"./chunk-4jm600zv.js";
|
|
51
|
-
import"./chunk-
|
|
52
|
-
import"./chunk-
|
|
51
|
+
import"./chunk-s8gy4ky9.js";
|
|
52
|
+
import"./chunk-cxrktb5g.js";
|
|
53
53
|
import"./chunk-3c25bcsw.js";
|
|
54
|
-
import"./chunk-
|
|
55
|
-
import"./chunk-
|
|
54
|
+
import"./chunk-5ekyhb1w.js";
|
|
55
|
+
import"./chunk-fqak69ft.js";
|
|
56
56
|
import"./chunk-cdz5yb0r.js";
|
|
57
57
|
import"./chunk-c7jwbe76.js";
|
|
58
58
|
import"./chunk-0vkfrmqm.js";
|
|
59
59
|
import"./chunk-7sgtxrsc.js";
|
|
60
60
|
import"./chunk-0xjaqda8.js";
|
|
61
61
|
import"./chunk-x8d2ehd7.js";
|
|
62
|
-
import"./chunk-
|
|
63
|
-
import"./chunk-
|
|
64
|
-
import"./chunk-
|
|
62
|
+
import"./chunk-byfawrfx.js";
|
|
63
|
+
import"./chunk-3vy1jt9p.js";
|
|
64
|
+
import"./chunk-vkhrrvfq.js";
|
|
65
65
|
import"./chunk-qnfx3qtx.js";
|
|
66
|
-
import"./chunk-
|
|
66
|
+
import"./chunk-64r16v22.js";
|
|
67
67
|
import"./chunk-s8kj6ajy.js";
|
|
68
|
-
import"./chunk-
|
|
69
|
-
import"./chunk-
|
|
68
|
+
import"./chunk-8yhf030a.js";
|
|
69
|
+
import"./chunk-zxh62ved.js";
|
|
70
70
|
import"./chunk-5z28bqne.js";
|
|
71
71
|
import"./chunk-qajrkk97.js";
|
|
72
|
-
import"./chunk-
|
|
73
|
-
import"./chunk-
|
|
72
|
+
import"./chunk-gg55fns0.js";
|
|
73
|
+
import"./chunk-5n1jc02d.js";
|
|
74
74
|
import"./chunk-fbv4apne.js";
|
|
75
75
|
import"./chunk-k8vp0atq.js";
|
|
76
76
|
import"./chunk-vf612n57.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readLockContent,
|
|
17
17
|
withLock,
|
|
18
18
|
writeFileLines
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-eert2day.js";
|
|
20
20
|
import {
|
|
21
21
|
getUserBinDir,
|
|
22
22
|
getXDGCacheHome,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
envDynamic,
|
|
29
29
|
init_envDynamic
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-p81gg65v.js";
|
|
31
31
|
import {
|
|
32
32
|
gt,
|
|
33
33
|
gte,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getGlobalConfig,
|
|
38
38
|
init_config,
|
|
39
39
|
saveGlobalConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-bbc9f5q9.js";
|
|
41
41
|
import {
|
|
42
42
|
check,
|
|
43
43
|
init_lockfile,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
env,
|
|
52
52
|
init_env
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5ekyhb1w.js";
|
|
54
54
|
import {
|
|
55
55
|
init_analytics,
|
|
56
56
|
logEvent
|
|
@@ -58,103 +58,29 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
execFileNoThrowWithCwd,
|
|
60
60
|
init_execFileNoThrow
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-64r16v22.js";
|
|
62
62
|
import {
|
|
63
63
|
errorMessage,
|
|
64
64
|
getErrnoCode,
|
|
65
|
-
getFsImplementation,
|
|
66
65
|
init_cleanupRegistry,
|
|
67
66
|
init_debug,
|
|
68
67
|
init_errors,
|
|
69
|
-
init_fsOperations,
|
|
70
68
|
init_log,
|
|
71
|
-
init_slowOperations,
|
|
72
69
|
isENOENT,
|
|
73
|
-
jsonStringify,
|
|
74
70
|
logError,
|
|
75
71
|
logForDebugging,
|
|
76
72
|
registerCleanup,
|
|
77
|
-
toError
|
|
78
|
-
|
|
79
|
-
} from "./chunk-yb6xww2x.js";
|
|
73
|
+
toError
|
|
74
|
+
} from "./chunk-gg55fns0.js";
|
|
80
75
|
import {
|
|
81
76
|
init_envUtils,
|
|
82
77
|
isEnvTruthy
|
|
83
|
-
} from "./chunk-
|
|
84
|
-
import {
|
|
85
|
-
axios_default,
|
|
86
|
-
init_axios
|
|
87
|
-
} from "./chunk-55raexh7.js";
|
|
78
|
+
} from "./chunk-5n1jc02d.js";
|
|
88
79
|
import {
|
|
89
80
|
__esm
|
|
90
81
|
} from "./chunk-qp2qdcda.js";
|
|
91
82
|
|
|
92
83
|
// src/utils/nativeInstaller/download.ts
|
|
93
|
-
import { createHash } from "crypto";
|
|
94
|
-
import { chmod, writeFile } from "fs/promises";
|
|
95
|
-
import { join } from "path";
|
|
96
|
-
async function getLatestVersionFromArtifactory(tag = "latest") {
|
|
97
|
-
const startTime = Date.now();
|
|
98
|
-
const { stdout, code, stderr } = await execFileNoThrowWithCwd("npm", [
|
|
99
|
-
"view",
|
|
100
|
-
`${""}@${tag}`,
|
|
101
|
-
"version",
|
|
102
|
-
"--prefer-online",
|
|
103
|
-
"--registry",
|
|
104
|
-
ARTIFACTORY_REGISTRY_URL
|
|
105
|
-
], {
|
|
106
|
-
timeout: 30000,
|
|
107
|
-
preserveOutputOnError: true
|
|
108
|
-
});
|
|
109
|
-
const latencyMs = Date.now() - startTime;
|
|
110
|
-
if (code !== 0) {
|
|
111
|
-
logEvent("tengu_version_check_failure", {
|
|
112
|
-
latency_ms: latencyMs,
|
|
113
|
-
source_npm: true,
|
|
114
|
-
exit_code: code
|
|
115
|
-
});
|
|
116
|
-
const error = new Error(`npm view failed with code ${code}: ${stderr}`);
|
|
117
|
-
logError(error);
|
|
118
|
-
throw error;
|
|
119
|
-
}
|
|
120
|
-
logEvent("tengu_version_check_success", {
|
|
121
|
-
latency_ms: latencyMs,
|
|
122
|
-
source_npm: true
|
|
123
|
-
});
|
|
124
|
-
logForDebugging(`npm view ${""}@${tag} version: ${stdout}`);
|
|
125
|
-
const latestVersion = stdout.trim();
|
|
126
|
-
return latestVersion;
|
|
127
|
-
}
|
|
128
|
-
async function getLatestVersionFromBinaryRepo(channel = "latest", baseUrl, authConfig) {
|
|
129
|
-
const startTime = Date.now();
|
|
130
|
-
try {
|
|
131
|
-
const response = await axios_default.get(`${baseUrl}/${channel}`, {
|
|
132
|
-
timeout: 30000,
|
|
133
|
-
responseType: "text",
|
|
134
|
-
...authConfig
|
|
135
|
-
});
|
|
136
|
-
const latencyMs = Date.now() - startTime;
|
|
137
|
-
logEvent("tengu_version_check_success", {
|
|
138
|
-
latency_ms: latencyMs
|
|
139
|
-
});
|
|
140
|
-
return response.data.trim();
|
|
141
|
-
} catch (error) {
|
|
142
|
-
const latencyMs = Date.now() - startTime;
|
|
143
|
-
const errorMessage2 = error instanceof Error ? error.message : String(error);
|
|
144
|
-
let httpStatus;
|
|
145
|
-
if (axios_default.isAxiosError(error) && error.response) {
|
|
146
|
-
httpStatus = error.response.status;
|
|
147
|
-
}
|
|
148
|
-
logEvent("tengu_version_check_failure", {
|
|
149
|
-
latency_ms: latencyMs,
|
|
150
|
-
http_status: httpStatus,
|
|
151
|
-
is_timeout: errorMessage2.includes("timeout")
|
|
152
|
-
});
|
|
153
|
-
const fetchError = new Error(`Failed to fetch version from ${baseUrl}/${channel}: ${errorMessage2}`);
|
|
154
|
-
logError(fetchError);
|
|
155
|
-
throw fetchError;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
84
|
async function getLatestVersion(channelOrVersion) {
|
|
159
85
|
if (/^v?\d+\.\d+\.\d+(-\S+)?$/.test(channelOrVersion)) {
|
|
160
86
|
const normalized = channelOrVersion.startsWith("v") ? channelOrVersion.slice(1) : channelOrVersion;
|
|
@@ -167,238 +93,18 @@ async function getLatestVersion(channelOrVersion) {
|
|
|
167
93
|
if (channel !== "stable" && channel !== "latest") {
|
|
168
94
|
throw new Error(`Invalid channel: ${channelOrVersion}. Use 'stable' or 'latest'`);
|
|
169
95
|
}
|
|
170
|
-
|
|
171
|
-
const npmTag = channel === "stable" ? "stable" : "latest";
|
|
172
|
-
return getLatestVersionFromArtifactory(npmTag);
|
|
173
|
-
}
|
|
174
|
-
return getLatestVersionFromBinaryRepo(channel, GCS_BUCKET_URL);
|
|
175
|
-
}
|
|
176
|
-
async function downloadVersionFromArtifactory(version, stagingPath) {
|
|
177
|
-
const fs = getFsImplementation();
|
|
178
|
-
await fs.rm(stagingPath, { recursive: true, force: true });
|
|
179
|
-
const platform = getPlatform();
|
|
180
|
-
const platformPackageName = `${""}-${platform}`;
|
|
181
|
-
logForDebugging(`Fetching integrity hash for ${platformPackageName}@${version}`);
|
|
182
|
-
const {
|
|
183
|
-
stdout: integrityOutput,
|
|
184
|
-
code,
|
|
185
|
-
stderr
|
|
186
|
-
} = await execFileNoThrowWithCwd("npm", [
|
|
187
|
-
"view",
|
|
188
|
-
`${platformPackageName}@${version}`,
|
|
189
|
-
"dist.integrity",
|
|
190
|
-
"--registry",
|
|
191
|
-
ARTIFACTORY_REGISTRY_URL
|
|
192
|
-
], {
|
|
193
|
-
timeout: 30000,
|
|
194
|
-
preserveOutputOnError: true
|
|
195
|
-
});
|
|
196
|
-
if (code !== 0) {
|
|
197
|
-
throw new Error(`npm view integrity failed with code ${code}: ${stderr}`);
|
|
198
|
-
}
|
|
199
|
-
const integrity = integrityOutput.trim();
|
|
200
|
-
if (!integrity) {
|
|
201
|
-
throw new Error(`Failed to fetch integrity hash for ${platformPackageName}@${version}`);
|
|
202
|
-
}
|
|
203
|
-
logForDebugging(`Got integrity hash for ${platform}: ${integrity}`);
|
|
204
|
-
await fs.mkdir(stagingPath);
|
|
205
|
-
const packageJson = {
|
|
206
|
-
name: "claude-native-installer",
|
|
207
|
-
version: "0.0.1",
|
|
208
|
-
dependencies: {
|
|
209
|
-
[""]: version
|
|
210
|
-
}
|
|
211
|
-
};
|
|
212
|
-
const packageLock = {
|
|
213
|
-
name: "claude-native-installer",
|
|
214
|
-
version: "0.0.1",
|
|
215
|
-
lockfileVersion: 3,
|
|
216
|
-
requires: true,
|
|
217
|
-
packages: {
|
|
218
|
-
"": {
|
|
219
|
-
name: "claude-native-installer",
|
|
220
|
-
version: "0.0.1",
|
|
221
|
-
dependencies: {
|
|
222
|
-
[""]: version
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
[`node_modules/${""}`]: {
|
|
226
|
-
version,
|
|
227
|
-
optionalDependencies: {
|
|
228
|
-
[platformPackageName]: version
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
[`node_modules/${platformPackageName}`]: {
|
|
232
|
-
version,
|
|
233
|
-
integrity
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
writeFileSync_DEPRECATED(join(stagingPath, "package.json"), jsonStringify(packageJson, null, 2), { encoding: "utf8", flush: true });
|
|
238
|
-
writeFileSync_DEPRECATED(join(stagingPath, "package-lock.json"), jsonStringify(packageLock, null, 2), { encoding: "utf8", flush: true });
|
|
239
|
-
const result = await execFileNoThrowWithCwd("npm", ["ci", "--prefer-online", "--registry", ARTIFACTORY_REGISTRY_URL], {
|
|
240
|
-
timeout: 60000,
|
|
241
|
-
preserveOutputOnError: true,
|
|
242
|
-
cwd: stagingPath
|
|
243
|
-
});
|
|
244
|
-
if (result.code !== 0) {
|
|
245
|
-
throw new Error(`npm ci failed with code ${result.code}: ${result.stderr}`);
|
|
246
|
-
}
|
|
247
|
-
logForDebugging(`Successfully downloaded and verified ${""}@${version}`);
|
|
248
|
-
}
|
|
249
|
-
function getStallTimeoutMs() {
|
|
250
|
-
return Number(process.env.CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING) || DEFAULT_STALL_TIMEOUT_MS;
|
|
251
|
-
}
|
|
252
|
-
async function downloadAndVerifyBinary(binaryUrl, expectedChecksum, binaryPath, requestConfig = {}) {
|
|
253
|
-
let lastError;
|
|
254
|
-
for (let attempt = 1;attempt <= MAX_DOWNLOAD_RETRIES; attempt++) {
|
|
255
|
-
const controller = new AbortController;
|
|
256
|
-
let stallTimer;
|
|
257
|
-
const clearStallTimer = () => {
|
|
258
|
-
if (stallTimer) {
|
|
259
|
-
clearTimeout(stallTimer);
|
|
260
|
-
stallTimer = undefined;
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
const resetStallTimer = () => {
|
|
264
|
-
clearStallTimer();
|
|
265
|
-
stallTimer = setTimeout((c) => c.abort(), getStallTimeoutMs(), controller);
|
|
266
|
-
};
|
|
267
|
-
try {
|
|
268
|
-
resetStallTimer();
|
|
269
|
-
const response = await axios_default.get(binaryUrl, {
|
|
270
|
-
timeout: 5 * 60000,
|
|
271
|
-
responseType: "arraybuffer",
|
|
272
|
-
signal: controller.signal,
|
|
273
|
-
onDownloadProgress: () => {
|
|
274
|
-
resetStallTimer();
|
|
275
|
-
},
|
|
276
|
-
...requestConfig
|
|
277
|
-
});
|
|
278
|
-
clearStallTimer();
|
|
279
|
-
const hash = createHash("sha256");
|
|
280
|
-
hash.update(response.data);
|
|
281
|
-
const actualChecksum = hash.digest("hex");
|
|
282
|
-
if (actualChecksum !== expectedChecksum) {
|
|
283
|
-
throw new Error(`Checksum mismatch: expected ${expectedChecksum}, got ${actualChecksum}`);
|
|
284
|
-
}
|
|
285
|
-
await writeFile(binaryPath, Buffer.from(response.data));
|
|
286
|
-
await chmod(binaryPath, 493);
|
|
287
|
-
return;
|
|
288
|
-
} catch (error) {
|
|
289
|
-
clearStallTimer();
|
|
290
|
-
const isStallTimeout = axios_default.isCancel(error);
|
|
291
|
-
if (isStallTimeout) {
|
|
292
|
-
lastError = new StallTimeoutError;
|
|
293
|
-
} else {
|
|
294
|
-
lastError = toError(error);
|
|
295
|
-
}
|
|
296
|
-
if (isStallTimeout && attempt < MAX_DOWNLOAD_RETRIES) {
|
|
297
|
-
logForDebugging(`Download stalled on attempt ${attempt}/${MAX_DOWNLOAD_RETRIES}, retrying...`);
|
|
298
|
-
await sleep(1000);
|
|
299
|
-
continue;
|
|
300
|
-
}
|
|
301
|
-
throw lastError;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
throw lastError ?? new Error("Download failed after all retries");
|
|
305
|
-
}
|
|
306
|
-
async function downloadVersionFromBinaryRepo(version, stagingPath, baseUrl, authConfig) {
|
|
307
|
-
const fs = getFsImplementation();
|
|
308
|
-
await fs.rm(stagingPath, { recursive: true, force: true });
|
|
309
|
-
const platform = getPlatform();
|
|
310
|
-
const startTime = Date.now();
|
|
311
|
-
logEvent("tengu_binary_download_attempt", {});
|
|
312
|
-
let manifest;
|
|
313
|
-
try {
|
|
314
|
-
const manifestResponse = await axios_default.get(`${baseUrl}/${version}/manifest.json`, {
|
|
315
|
-
timeout: 1e4,
|
|
316
|
-
responseType: "json",
|
|
317
|
-
...authConfig
|
|
318
|
-
});
|
|
319
|
-
manifest = manifestResponse.data;
|
|
320
|
-
} catch (error) {
|
|
321
|
-
const latencyMs = Date.now() - startTime;
|
|
322
|
-
const errorMessage2 = error instanceof Error ? error.message : String(error);
|
|
323
|
-
let httpStatus;
|
|
324
|
-
if (axios_default.isAxiosError(error) && error.response) {
|
|
325
|
-
httpStatus = error.response.status;
|
|
326
|
-
}
|
|
327
|
-
logEvent("tengu_binary_manifest_fetch_failure", {
|
|
328
|
-
latency_ms: latencyMs,
|
|
329
|
-
http_status: httpStatus,
|
|
330
|
-
is_timeout: errorMessage2.includes("timeout")
|
|
331
|
-
});
|
|
332
|
-
logError(new Error(`Failed to fetch manifest from ${baseUrl}/${version}/manifest.json: ${errorMessage2}`));
|
|
333
|
-
throw error;
|
|
334
|
-
}
|
|
335
|
-
const platformInfo = manifest.platforms[platform];
|
|
336
|
-
if (!platformInfo) {
|
|
337
|
-
logEvent("tengu_binary_platform_not_found", {});
|
|
338
|
-
throw new Error(`Platform ${platform} not found in manifest for version ${version}`);
|
|
339
|
-
}
|
|
340
|
-
const expectedChecksum = platformInfo.checksum;
|
|
341
|
-
const binaryName = getBinaryName(platform);
|
|
342
|
-
const binaryUrl = `${baseUrl}/${version}/${platform}/${binaryName}`;
|
|
343
|
-
await fs.mkdir(stagingPath);
|
|
344
|
-
const binaryPath = join(stagingPath, binaryName);
|
|
345
|
-
try {
|
|
346
|
-
await downloadAndVerifyBinary(binaryUrl, expectedChecksum, binaryPath, authConfig || {});
|
|
347
|
-
const latencyMs = Date.now() - startTime;
|
|
348
|
-
logEvent("tengu_binary_download_success", {
|
|
349
|
-
latency_ms: latencyMs
|
|
350
|
-
});
|
|
351
|
-
} catch (error) {
|
|
352
|
-
const latencyMs = Date.now() - startTime;
|
|
353
|
-
const errorMessage2 = error instanceof Error ? error.message : String(error);
|
|
354
|
-
let httpStatus;
|
|
355
|
-
if (axios_default.isAxiosError(error) && error.response) {
|
|
356
|
-
httpStatus = error.response.status;
|
|
357
|
-
}
|
|
358
|
-
logEvent("tengu_binary_download_failure", {
|
|
359
|
-
latency_ms: latencyMs,
|
|
360
|
-
http_status: httpStatus,
|
|
361
|
-
is_timeout: errorMessage2.includes("timeout"),
|
|
362
|
-
is_checksum_mismatch: errorMessage2.includes("Checksum mismatch")
|
|
363
|
-
});
|
|
364
|
-
logError(new Error(`Failed to download binary from ${binaryUrl}: ${errorMessage2}`));
|
|
365
|
-
throw error;
|
|
366
|
-
}
|
|
96
|
+
throw new Error("Binary version check is disabled in this build (intranet deployment).");
|
|
367
97
|
}
|
|
368
98
|
async function downloadVersion(version, stagingPath) {
|
|
369
|
-
|
|
370
|
-
if (process.env.USER_TYPE === "ant") {
|
|
371
|
-
await downloadVersionFromArtifactory(version, stagingPath);
|
|
372
|
-
return "npm";
|
|
373
|
-
}
|
|
374
|
-
await downloadVersionFromBinaryRepo(version, stagingPath, GCS_BUCKET_URL);
|
|
375
|
-
return "binary";
|
|
99
|
+
throw new Error("Binary download is disabled in this build (intranet deployment).");
|
|
376
100
|
}
|
|
377
|
-
var
|
|
378
|
-
var init_download = __esm(() => {
|
|
379
|
-
init_axios();
|
|
380
|
-
init_analytics();
|
|
381
|
-
init_debug();
|
|
382
|
-
init_errors();
|
|
383
|
-
init_execFileNoThrow();
|
|
384
|
-
init_fsOperations();
|
|
385
|
-
init_log();
|
|
386
|
-
init_sleep();
|
|
387
|
-
init_slowOperations();
|
|
388
|
-
init_installer();
|
|
389
|
-
StallTimeoutError = class StallTimeoutError extends Error {
|
|
390
|
-
constructor() {
|
|
391
|
-
super("Download stalled: no data received for 60 seconds");
|
|
392
|
-
this.name = "StallTimeoutError";
|
|
393
|
-
}
|
|
394
|
-
};
|
|
395
|
-
});
|
|
101
|
+
var init_download = () => {};
|
|
396
102
|
|
|
397
103
|
// src/utils/nativeInstaller/installer.ts
|
|
398
104
|
import { constants as fsConstants } from "fs";
|
|
399
105
|
import {
|
|
400
106
|
access,
|
|
401
|
-
chmod
|
|
107
|
+
chmod,
|
|
402
108
|
copyFile,
|
|
403
109
|
lstat,
|
|
404
110
|
mkdir,
|
|
@@ -411,10 +117,10 @@ import {
|
|
|
411
117
|
stat,
|
|
412
118
|
symlink,
|
|
413
119
|
unlink,
|
|
414
|
-
writeFile
|
|
120
|
+
writeFile
|
|
415
121
|
} from "fs/promises";
|
|
416
122
|
import { homedir } from "os";
|
|
417
|
-
import { basename, delimiter, dirname, join
|
|
123
|
+
import { basename, delimiter, dirname, join, resolve } from "path";
|
|
418
124
|
function getPlatform() {
|
|
419
125
|
const os = env.platform;
|
|
420
126
|
const arch = process.arch === "x64" ? "x64" : process.arch === "arm64" ? "arm64" : null;
|
|
@@ -435,10 +141,10 @@ function getBaseDirectories() {
|
|
|
435
141
|
const platform = getPlatform();
|
|
436
142
|
const executableName = getBinaryName(platform);
|
|
437
143
|
return {
|
|
438
|
-
versions:
|
|
439
|
-
staging:
|
|
440
|
-
locks:
|
|
441
|
-
executable:
|
|
144
|
+
versions: join(getXDGDataHome(), "claude", "versions"),
|
|
145
|
+
staging: join(getXDGCacheHome(), "claude", "staging"),
|
|
146
|
+
locks: join(getXDGStateHome(), "claude", "locks"),
|
|
147
|
+
executable: join(getUserBinDir(), executableName)
|
|
442
148
|
};
|
|
443
149
|
}
|
|
444
150
|
async function isPossibleClaudeBinary(filePath) {
|
|
@@ -459,14 +165,14 @@ async function getVersionPaths(version) {
|
|
|
459
165
|
await Promise.all(dirsToCreate.map((dir) => mkdir(dir, { recursive: true })));
|
|
460
166
|
const executableParentDir = dirname(dirs.executable);
|
|
461
167
|
await mkdir(executableParentDir, { recursive: true });
|
|
462
|
-
const installPath =
|
|
168
|
+
const installPath = join(dirs.versions, version);
|
|
463
169
|
try {
|
|
464
170
|
await stat(installPath);
|
|
465
171
|
} catch {
|
|
466
|
-
await
|
|
172
|
+
await writeFile(installPath, "", { encoding: "utf8" });
|
|
467
173
|
}
|
|
468
174
|
return {
|
|
469
|
-
stagingPath:
|
|
175
|
+
stagingPath: join(dirs.staging, version),
|
|
470
176
|
installPath
|
|
471
177
|
};
|
|
472
178
|
}
|
|
@@ -555,7 +261,7 @@ async function atomicMoveToInstallPath(stagedBinaryPath, installPath) {
|
|
|
555
261
|
const tempInstallPath = `${installPath}.tmp.${process.pid}.${Date.now()}`;
|
|
556
262
|
try {
|
|
557
263
|
await copyFile(stagedBinaryPath, tempInstallPath);
|
|
558
|
-
await
|
|
264
|
+
await chmod(tempInstallPath, 493);
|
|
559
265
|
await rename(tempInstallPath, installPath);
|
|
560
266
|
logForDebugging(`Atomically installed binary to ${installPath}`);
|
|
561
267
|
} catch (error) {
|
|
@@ -567,7 +273,7 @@ async function atomicMoveToInstallPath(stagedBinaryPath, installPath) {
|
|
|
567
273
|
}
|
|
568
274
|
async function installVersionFromPackage(stagingPath, installPath) {
|
|
569
275
|
try {
|
|
570
|
-
const nodeModulesDir =
|
|
276
|
+
const nodeModulesDir = join(stagingPath, "node_modules", "@anthropic-ai");
|
|
571
277
|
const entries = await readdir(nodeModulesDir);
|
|
572
278
|
const nativePackage = entries.find((entry) => entry.startsWith("claude-cli-native-"));
|
|
573
279
|
if (!nativePackage) {
|
|
@@ -578,7 +284,7 @@ async function installVersionFromPackage(stagingPath, installPath) {
|
|
|
578
284
|
const error = new Error("Could not find platform-specific native package");
|
|
579
285
|
throw error;
|
|
580
286
|
}
|
|
581
|
-
const stagedBinaryPath =
|
|
287
|
+
const stagedBinaryPath = join(nodeModulesDir, nativePackage, "cli");
|
|
582
288
|
try {
|
|
583
289
|
await stat(stagedBinaryPath);
|
|
584
290
|
} catch {
|
|
@@ -608,7 +314,7 @@ async function installVersionFromBinary(stagingPath, installPath) {
|
|
|
608
314
|
try {
|
|
609
315
|
const platform = getPlatform();
|
|
610
316
|
const binaryName = getBinaryName(platform);
|
|
611
|
-
const stagedBinaryPath =
|
|
317
|
+
const stagedBinaryPath = join(stagingPath, binaryName);
|
|
612
318
|
try {
|
|
613
319
|
await stat(stagedBinaryPath);
|
|
614
320
|
} catch {
|
|
@@ -1008,7 +714,7 @@ async function getVersionFromSymlink(symlinkPath) {
|
|
|
1008
714
|
}
|
|
1009
715
|
function getLockFilePathFromVersionPath(dirs, versionPath) {
|
|
1010
716
|
const versionName = basename(versionPath);
|
|
1011
|
-
return
|
|
717
|
+
return join(dirs.locks, `${versionName}.lock`);
|
|
1012
718
|
}
|
|
1013
719
|
async function lockCurrentVersion() {
|
|
1014
720
|
const dirs = getBaseDirectories();
|
|
@@ -1102,7 +808,7 @@ async function cleanupOldVersions() {
|
|
|
1102
808
|
if (!/^claude\.exe\.old\.\d+$/.test(file))
|
|
1103
809
|
continue;
|
|
1104
810
|
try {
|
|
1105
|
-
await unlink(
|
|
811
|
+
await unlink(join(executableDir, file));
|
|
1106
812
|
cleanedCount++;
|
|
1107
813
|
} catch {}
|
|
1108
814
|
}
|
|
@@ -1119,7 +825,7 @@ async function cleanupOldVersions() {
|
|
|
1119
825
|
const stagingEntries = await readdir(dirs.staging);
|
|
1120
826
|
let stagingCleanedCount = 0;
|
|
1121
827
|
for (const entry of stagingEntries) {
|
|
1122
|
-
const stagingPath =
|
|
828
|
+
const stagingPath = join(dirs.staging, entry);
|
|
1123
829
|
try {
|
|
1124
830
|
const stats = await stat(stagingPath);
|
|
1125
831
|
if (stats.mtime.getTime() < oneHourAgo) {
|
|
@@ -1161,7 +867,7 @@ async function cleanupOldVersions() {
|
|
|
1161
867
|
const versionFiles = [];
|
|
1162
868
|
let tempFilesCleanedCount = 0;
|
|
1163
869
|
for (const entry of versionEntries) {
|
|
1164
|
-
const entryPath =
|
|
870
|
+
const entryPath = join(dirs.versions, entry);
|
|
1165
871
|
if (/\.tmp\.\d+\.\d+$/.test(entry)) {
|
|
1166
872
|
try {
|
|
1167
873
|
const stats = await stat(entryPath);
|
|
@@ -1329,9 +1035,9 @@ async function manualRemoveNpmPackage(packageName) {
|
|
|
1329
1035
|
}
|
|
1330
1036
|
}
|
|
1331
1037
|
if (getPlatform().startsWith("win32")) {
|
|
1332
|
-
const binCmd =
|
|
1333
|
-
const binPs1 =
|
|
1334
|
-
const binExe =
|
|
1038
|
+
const binCmd = join(globalPrefix, "claude.cmd");
|
|
1039
|
+
const binPs1 = join(globalPrefix, "claude.ps1");
|
|
1040
|
+
const binExe = join(globalPrefix, "claude");
|
|
1335
1041
|
if (await tryRemove(binCmd, "bin script")) {
|
|
1336
1042
|
manuallyRemoved = true;
|
|
1337
1043
|
}
|
|
@@ -1342,14 +1048,14 @@ async function manualRemoveNpmPackage(packageName) {
|
|
|
1342
1048
|
manuallyRemoved = true;
|
|
1343
1049
|
}
|
|
1344
1050
|
} else {
|
|
1345
|
-
const binSymlink =
|
|
1051
|
+
const binSymlink = join(globalPrefix, "bin", "claude");
|
|
1346
1052
|
if (await tryRemove(binSymlink, "bin symlink")) {
|
|
1347
1053
|
manuallyRemoved = true;
|
|
1348
1054
|
}
|
|
1349
1055
|
}
|
|
1350
1056
|
if (manuallyRemoved) {
|
|
1351
1057
|
logForDebugging(`Successfully removed ${packageName} manually`);
|
|
1352
|
-
const nodeModulesPath = getPlatform().startsWith("win32") ?
|
|
1058
|
+
const nodeModulesPath = getPlatform().startsWith("win32") ? join(globalPrefix, "node_modules", packageName) : join(globalPrefix, "lib", "node_modules", packageName);
|
|
1353
1059
|
return {
|
|
1354
1060
|
success: true,
|
|
1355
1061
|
warning: `${packageName} executables removed, but node_modules directory was left intact for safety. You may manually delete it later at: ${nodeModulesPath}`
|
|
@@ -1408,7 +1114,7 @@ async function cleanupNpmInstallations() {
|
|
|
1408
1114
|
errors.push(codePackageResult.error);
|
|
1409
1115
|
}
|
|
1410
1116
|
if ("") {}
|
|
1411
|
-
const localInstallDir =
|
|
1117
|
+
const localInstallDir = join(homedir(), ".claude", "local");
|
|
1412
1118
|
try {
|
|
1413
1119
|
await rm(localInstallDir, { recursive: true });
|
|
1414
1120
|
removed++;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
init_pluginOperations,
|
|
4
4
|
updatePluginOp
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-rjsfkzty.js";
|
|
6
6
|
import {
|
|
7
7
|
getDeclaredMarketplaces,
|
|
8
8
|
init_installedPluginsManager,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
loadKnownMarketplacesConfig,
|
|
14
14
|
parsePluginIdentifier,
|
|
15
15
|
refreshMarketplace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-p81gg65v.js";
|
|
17
17
|
import {
|
|
18
18
|
init_config,
|
|
19
19
|
init_schemas,
|
|
20
20
|
isMarketplaceAutoUpdate,
|
|
21
21
|
shouldSkipPluginAutoupdate
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-bbc9f5q9.js";
|
|
23
23
|
import {
|
|
24
24
|
errorMessage,
|
|
25
25
|
init_debug,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
init_log,
|
|
28
28
|
logError,
|
|
29
29
|
logForDebugging
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-gg55fns0.js";
|
|
31
31
|
import {
|
|
32
32
|
__esm
|
|
33
33
|
} from "./chunk-qp2qdcda.js";
|