@caspian2026/agent-sdk 0.0.8 → 0.0.11
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-dtgh4te6.js → chunk-0ac6r0fw.js} +46 -45
- package/dist/{chunk-cfgha78n.js → chunk-0dm971mw.js} +2 -2
- package/dist/{chunk-0mej3p7q.js → chunk-0f5anjkb.js} +14 -14
- package/dist/{chunk-6g5qbbxk.js → chunk-0k9sft0s.js} +47 -46
- package/dist/chunk-0kgwksm1.js +57 -0
- package/dist/chunk-0vp3wfab.js +12 -0
- package/dist/{chunk-d9yghsfg.js → chunk-1etzkkxs.js} +1 -1
- package/dist/{chunk-a4npwxvb.js → chunk-1gz2wrhq.js} +46 -45
- package/dist/{chunk-25bwa70y.js → chunk-1pr4hr5x.js} +49 -48
- package/dist/{chunk-2f21meep.js → chunk-1v01c96r.js} +1 -1
- package/dist/{chunk-jvmybb06.js → chunk-1vhjn1j9.js} +46 -45
- package/dist/{chunk-69r3hm9b.js → chunk-1wr6ag3j.js} +13 -19
- package/dist/{chunk-83e71kz6.js → chunk-2072dpbx.js} +2 -2
- package/dist/{chunk-8hpq2659.js → chunk-24t2wjab.js} +1 -1
- package/dist/{chunk-q7e0106d.js → chunk-2589k4k0.js} +51 -56
- package/dist/{chunk-d7886r6a.js → chunk-26wtxbdc.js} +7774 -7774
- package/dist/{chunk-ahrhwpm9.js → chunk-28k13wc7.js} +2 -2
- package/dist/{chunk-vvjgdzhn.js → chunk-2cr43hzw.js} +55 -51
- package/dist/{chunk-mw1kpeg9.js → chunk-2sqhjnpn.js} +1909 -1377
- package/dist/chunk-2tfe2zs1.js +87 -0
- package/dist/{chunk-c11swzas.js → chunk-2vteceqh.js} +5 -5
- package/dist/{chunk-zmra45az.js → chunk-2z9rak9s.js} +47 -46
- package/dist/chunk-31bwdrm5.js +93 -0
- package/dist/{chunk-2xbyb015.js → chunk-38rkx4cj.js} +47 -46
- package/dist/{chunk-am3qcgzp.js → chunk-394djs3v.js} +56 -55
- package/dist/{chunk-15m49c67.js → chunk-3e28fvn0.js} +2 -2
- package/dist/{chunk-4hv90qcz.js → chunk-3mgywd32.js} +1 -1
- package/dist/{chunk-234668cb.js → chunk-3we6j8b4.js} +5 -5
- package/dist/{chunk-7rnqsng2.js → chunk-400r5gmq.js} +19 -19
- package/dist/{chunk-yc23zxmj.js → chunk-4057dtxd.js} +1 -1
- package/dist/{chunk-70eey1nh.js → chunk-40s88wdg.js} +2 -2
- package/dist/{chunk-8nfn89nz.js → chunk-41en0cc6.js} +9 -9
- package/dist/{chunk-t5vbqd9d.js → chunk-488spx13.js} +55 -54
- package/dist/{chunk-9v13f3gm.js → chunk-49bs7x5p.js} +558 -196
- package/dist/{chunk-0awwmrwr.js → chunk-4ayjwyqj.js} +2 -2
- package/dist/chunk-4d0g9n3q.js +92 -0
- package/dist/{chunk-denyma1s.js → chunk-4fh25m1z.js} +14 -12
- package/dist/chunk-4hgxxzdw.js +94 -0
- package/dist/{chunk-8g747a8x.js → chunk-4pbx3g7s.js} +1 -1
- package/dist/{chunk-fkhs3myp.js → chunk-4pj88fnc.js} +5 -3
- package/dist/{chunk-st73prx0.js → chunk-4re879ja.js} +47 -46
- package/dist/{chunk-pb92bj1h.js → chunk-50art2hr.js} +6 -6
- package/dist/{chunk-1nk93fqz.js → chunk-5cxjxxx8.js} +2 -7
- package/dist/{chunk-kek5v6ef.js → chunk-5pqq0nym.js} +3 -3
- package/dist/{chunk-nk82j7r2.js → chunk-6696fngv.js} +7 -7
- package/dist/{chunk-ya40p6vj.js → chunk-66dk94r4.js} +46 -45
- package/dist/{chunk-xrpstt41.js → chunk-67808qek.js} +4 -4
- package/dist/{chunk-zhk465tg.js → chunk-69841w77.js} +46 -45
- package/dist/{chunk-jgzxmtpf.js → chunk-6ebvysef.js} +52 -52
- package/dist/{chunk-bmbq6nt1.js → chunk-6wzg2hpc.js} +2 -2
- package/dist/{chunk-12k745vf.js → chunk-6zsxtysq.js} +3 -3
- package/dist/{chunk-qcnhb4cd.js → chunk-75qqeec8.js} +3 -3
- package/dist/{chunk-nvwwtq1w.js → chunk-765zdaq8.js} +49 -48
- package/dist/{chunk-zq6ezxh2.js → chunk-7ce8wn1f.js} +49 -45
- package/dist/{chunk-e7h4qxgw.js → chunk-7etkb4pr.js} +4 -4
- package/dist/{chunk-wha6v7za.js → chunk-7krg0dkt.js} +2 -2
- package/dist/{chunk-nqrc7pc4.js → chunk-7p2vw8qe.js} +29 -27
- package/dist/{chunk-q1ah9nbq.js → chunk-7t5ymv2m.js} +1 -1
- package/dist/{chunk-xz655xxa.js → chunk-7tphrzjj.js} +2 -2
- package/dist/{chunk-hzknr99c.js → chunk-83b2frat.js} +4 -4
- package/dist/{chunk-bxcfz5gy.js → chunk-87xg6yb4.js} +1 -1
- package/dist/{chunk-nrtksr2p.js → chunk-8b2y3x7a.js} +1 -1
- package/dist/{chunk-1cq2vrzq.js → chunk-8c907cv9.js} +4 -4
- package/dist/{chunk-88cekjja.js → chunk-8dzg4nr5.js} +47 -46
- package/dist/{chunk-2fxpd35d.js → chunk-8hn2xqjz.js} +2 -2
- package/dist/{chunk-3g1vqhyx.js → chunk-8kmna3cc.js} +17 -21
- package/dist/{chunk-1zhy5cbc.js → chunk-8r5eevap.js} +13 -13
- package/dist/{chunk-7n51wk9k.js → chunk-8vkv63c5.js} +2 -2
- package/dist/{chunk-268jd0rc.js → chunk-8w21adpe.js} +6 -4
- package/dist/{chunk-21gmrwhs.js → chunk-8w8d1k7b.js} +17 -21
- package/dist/{chunk-yzcjz0gg.js → chunk-90bqyqfd.js} +46 -45
- package/dist/{chunk-2xvc97x4.js → chunk-942yq6xx.js} +3 -3
- package/dist/{chunk-88xc4d7f.js → chunk-99ck62v1.js} +49 -48
- package/dist/chunk-9ewnsd7f.js +31 -0
- package/dist/{chunk-xwg327ys.js → chunk-9g29z3dv.js} +6 -6
- package/dist/{chunk-5a5w0ygx.js → chunk-9nj016rn.js} +2 -2
- package/dist/chunk-9nk34wee.js +441 -0
- package/dist/{chunk-2v4x8kaq.js → chunk-9z45660r.js} +51 -50
- package/dist/{chunk-s1tg295x.js → chunk-a3gq2vv4.js} +10 -8
- package/dist/{chunk-6p4cyhb3.js → chunk-a6d2q415.js} +2 -2
- package/dist/{chunk-0jtbeesf.js → chunk-akqsq8bn.js} +16 -20
- package/dist/{chunk-tff58196.js → chunk-aqq5qh2y.js} +48 -47
- package/dist/{chunk-dvcwahst.js → chunk-awdftfcf.js} +51 -50
- package/dist/{chunk-3zxswxtg.js → chunk-b3nkagky.js} +2 -2
- package/dist/{chunk-jgjqa49s.js → chunk-b56smerd.js} +3 -3
- package/dist/{chunk-enkdxqas.js → chunk-b5asw4tj.js} +6 -6
- package/dist/{chunk-1x0y4426.js → chunk-b8f5dz5b.js} +4 -4
- package/dist/{chunk-30smv00b.js → chunk-bayvqjm6.js} +47 -46
- package/dist/chunk-bgyb0z0p.js +96 -0
- package/dist/{chunk-3skj4gfg.js → chunk-bhabqhx1.js} +47 -46
- package/dist/{chunk-4140c8xy.js → chunk-bj85dnsy.js} +20 -24
- package/dist/{chunk-vdcm8hz6.js → chunk-bp4s0gry.js} +47 -46
- package/dist/{chunk-d00mfc1e.js → chunk-brng9f4q.js} +46 -45
- package/dist/{chunk-a3ws4gae.js → chunk-bvdzmdw4.js} +47 -46
- package/dist/{chunk-m87bhhqv.js → chunk-bzatg35k.js} +1 -1
- package/dist/{chunk-hxzt3r84.js → chunk-ca72efeb.js} +51 -50
- package/dist/{chunk-vajwapkf.js → chunk-cdact4jj.js} +17 -23
- package/dist/{chunk-s3hsqf80.js → chunk-cexw1jmv.js} +30 -81
- package/dist/chunk-cfyvkbe5.js +197 -0
- package/dist/{chunk-jj5wj46b.js → chunk-cjca0q27.js} +7 -7
- package/dist/{chunk-3hwa20vg.js → chunk-cs9aqzag.js} +49 -46
- package/dist/{chunk-1ax1znzj.js → chunk-cttezxcb.js} +24 -14
- package/dist/chunk-d2g976qe.js +1457 -0
- package/dist/{chunk-d6rypdxt.js → chunk-d7ws01qk.js} +1 -1
- package/dist/{chunk-xxw9a0bq.js → chunk-dhwr4fz4.js} +2 -2
- package/dist/{chunk-x2pvw7xw.js → chunk-dmyedkpw.js} +8 -8
- package/dist/{chunk-af868wet.js → chunk-dsqfe05n.js} +46 -45
- package/dist/{chunk-4r50c14n.js → chunk-e82vbky2.js} +46 -45
- package/dist/{chunk-vawgyev5.js → chunk-eba0b85f.js} +3 -3
- package/dist/{chunk-87e209aj.js → chunk-eqnfk1g0.js} +46 -45
- package/dist/chunk-erj5nc8b.js +92 -0
- package/dist/{chunk-ky39hkg1.js → chunk-eseq7djh.js} +9 -7
- package/dist/{chunk-vvsbvz2b.js → chunk-esrkw9v4.js} +2 -2
- package/dist/{chunk-jgpmpgx6.js → chunk-etdt1xz3.js} +1 -1
- package/dist/{chunk-w05jpkkr.js → chunk-ewbvcf88.js} +5 -9
- package/dist/chunk-ewhxddsa.js +445 -0
- package/dist/{chunk-jjh7m5sg.js → chunk-ey1pg5v8.js} +66 -77
- package/dist/{chunk-h02gcdx5.js → chunk-f1v8h236.js} +8 -8
- package/dist/chunk-f70fwxds.js +211 -0
- package/dist/{chunk-1dwvgrfc.js → chunk-f73trmvk.js} +46 -45
- package/dist/{chunk-xnv6kb39.js → chunk-fcww10dt.js} +22 -23
- package/dist/{chunk-15edybe0.js → chunk-fhprmgf4.js} +1 -1
- package/dist/{chunk-5awgsvrw.js → chunk-fnf4av18.js} +14 -6
- package/dist/{chunk-j4m8fd76.js → chunk-fy543pwf.js} +7 -11
- package/dist/chunk-fybanr7d.js +988 -0
- package/dist/chunk-g5epkvz2.js +331 -0
- package/dist/chunk-g5pe8dew.js +25 -0
- package/dist/chunk-g8183rkv.js +517 -0
- package/dist/{chunk-4g0nj78p.js → chunk-gbztsm42.js} +46 -45
- package/dist/{chunk-ga86yjm1.js → chunk-gdwdqewd.js} +3 -3
- package/dist/{chunk-kva79cra.js → chunk-ge57c9hg.js} +7 -5
- package/dist/{chunk-f2hbn5rk.js → chunk-ggq2y3tn.js} +100420 -57118
- package/dist/{chunk-w0gmf6bv.js → chunk-gpzkzg7v.js} +47 -46
- package/dist/{chunk-v0bykh19.js → chunk-gw1a82j8.js} +108 -102
- package/dist/chunk-gw1g065z.js +20 -0
- package/dist/{chunk-21jsjcfa.js → chunk-h4dnamt5.js} +46 -45
- package/dist/{chunk-hh3k5s1s.js → chunk-h5mkzk0z.js} +3 -3
- package/dist/chunk-h7dm24cc.js +108 -0
- package/dist/{chunk-wr3pd88n.js → chunk-hadww3nd.js} +40 -9
- package/dist/{chunk-8ywngxqt.js → chunk-hapvn84d.js} +10 -10
- package/dist/{chunk-gbte7d7h.js → chunk-hekf5s9q.js} +4 -2
- package/dist/{chunk-veap97he.js → chunk-hkgb5y9f.js} +46 -45
- package/dist/{chunk-23fkapww.js → chunk-hzceftr4.js} +2 -2
- package/dist/chunk-j2x6fp25.js +29 -0
- package/dist/{chunk-vsqwd13w.js → chunk-j30g8fd1.js} +17 -19
- package/dist/{chunk-yyf72f78.js → chunk-j35mw64g.js} +4 -2
- package/dist/{chunk-qq5d2s0d.js → chunk-j3awswy3.js} +46 -45
- package/dist/{chunk-dmqeqxfz.js → chunk-j513wqe9.js} +46 -45
- package/dist/{chunk-hya4c599.js → chunk-jkens34n.js} +46 -45
- package/dist/{chunk-s4zb3f1b.js → chunk-jperb6n2.js} +46 -45
- package/dist/{chunk-psnsve7m.js → chunk-jqmr6ag1.js} +49 -48
- package/dist/{chunk-q7jnesv8.js → chunk-jsj3fx0g.js} +5 -5
- package/dist/{chunk-w1sv7j01.js → chunk-jx6k8msx.js} +46 -45
- package/dist/{chunk-xw8pjerk.js → chunk-jyz65rfv.js} +48 -47
- package/dist/{chunk-1avzakfd.js → chunk-k5mckm5f.js} +3 -3
- package/dist/{chunk-zctfbr1v.js → chunk-k7cw1a8a.js} +1 -1
- package/dist/{chunk-m46xyqr6.js → chunk-k9z36r5q.js} +48 -47
- package/dist/{chunk-th4y838y.js → chunk-kamesdff.js} +51 -50
- package/dist/{chunk-y7we499r.js → chunk-kj4m0j4n.js} +8 -8
- package/dist/{chunk-tdbz9gbm.js → chunk-kjqyhxz7.js} +6 -6
- package/dist/{chunk-k0v0cz71.js → chunk-m25yfqc3.js} +46 -45
- package/dist/{chunk-4nspekjp.js → chunk-mcws22k3.js} +1 -28
- package/dist/chunk-mgpj5f7h.js +150 -0
- package/dist/{chunk-1ybvj5df.js → chunk-mmn62bh2.js} +47 -46
- package/dist/{chunk-jpc9zwsk.js → chunk-mq94v5vn.js} +3 -3
- package/dist/{chunk-a1bf2kh4.js → chunk-msvv7dpt.js} +46 -45
- package/dist/chunk-mtv83pq4.js +123 -0
- package/dist/chunk-n36xjgtj.js +95 -0
- package/dist/{chunk-twqzmqsn.js → chunk-n9d0gg9z.js} +31 -27
- package/dist/{chunk-cvm2tmwg.js → chunk-na63s9wn.js} +20 -24
- package/dist/{chunk-jtztm8f5.js → chunk-nebntwvd.js} +44 -43
- package/dist/{chunk-0ym2z0c7.js → chunk-nj02kck4.js} +1 -1
- package/dist/{chunk-5rv9c8yd.js → chunk-nrjtxhyr.js} +1 -1
- package/dist/{chunk-nqn45znr.js → chunk-ns7x6xam.js} +9 -9
- package/dist/{chunk-jaaxk89e.js → chunk-nsc89h0n.js} +2 -22
- package/dist/{chunk-gnj7tyj6.js → chunk-nv7vcqme.js} +49 -48
- package/dist/{chunk-z19sd3bt.js → chunk-p4196wzm.js} +5 -5
- package/dist/{chunk-as5rvw4n.js → chunk-pbeee2kp.js} +17 -21
- package/dist/{chunk-va8drjmv.js → chunk-pcbm66ch.js} +48 -47
- package/dist/{chunk-phd1qfpc.js → chunk-pd2vy8hx.js} +5 -5
- package/dist/chunk-pe3n0w2t.js +91 -0
- package/dist/{chunk-bd5sqj86.js → chunk-peh3mj19.js} +11 -11
- package/dist/{chunk-mk1y74w7.js → chunk-pepgckn4.js} +17 -21
- package/dist/{chunk-wqvr37xp.js → chunk-pm67yj46.js} +15 -31
- package/dist/{chunk-qyqpb15f.js → chunk-pp8nrx40.js} +205 -261
- package/dist/{chunk-nx7c354z.js → chunk-pq5290db.js} +46 -45
- package/dist/{chunk-w4yn8cq7.js → chunk-psm26hv7.js} +8 -8
- package/dist/{chunk-hwn8vetn.js → chunk-pwpk3gm6.js} +10 -10
- package/dist/chunk-pzp8fj0a.js +123 -0
- package/dist/{chunk-x94btg29.js → chunk-q1j8ebyf.js} +17 -21
- package/dist/{chunk-87scz097.js → chunk-q2fn2p7y.js} +46 -45
- package/dist/chunk-q347821k.js +99 -0
- package/dist/{chunk-23jzrwsw.js → chunk-q6tdxy8v.js} +5 -5
- package/dist/{chunk-byb2mn1c.js → chunk-qb88vpgy.js} +118 -450
- package/dist/{chunk-eenq3avg.js → chunk-qcrpqjya.js} +1 -1
- package/dist/chunk-qehbwde1.js +90 -0
- package/dist/{chunk-ck0ap688.js → chunk-qkczt8cr.js} +4 -4
- package/dist/{chunk-c3d2cnz5.js → chunk-qmmxwh8x.js} +7 -7
- package/dist/{chunk-1a6ez1mg.js → chunk-qxmm3jbn.js} +51 -49
- package/dist/{chunk-njxgct8f.js → chunk-qywk2c7m.js} +46 -45
- package/dist/{chunk-rkg741k3.js → chunk-qz0xdht6.js} +14 -14
- package/dist/chunk-r0dpeqg0.js +468 -0
- package/dist/{chunk-6ksdp40n.js → chunk-r0m970pk.js} +1 -1
- package/dist/{chunk-fape0yfp.js → chunk-r5bf0h0t.js} +46 -45
- package/dist/{chunk-jcwkgtbp.js → chunk-r7xpsch7.js} +52 -90
- package/dist/{chunk-z9n0183s.js → chunk-rfq9kmsy.js} +9 -9
- package/dist/{chunk-xp61y5ba.js → chunk-rkv8bdtr.js} +2 -2
- package/dist/{chunk-5cem2v7n.js → chunk-rkvwts6v.js} +5 -5
- package/dist/{chunk-1vnd9s2j.js → chunk-rm4c8zd9.js} +57 -66
- package/dist/{chunk-e7efcp3k.js → chunk-rm9gb396.js} +257 -2857
- package/dist/{chunk-0m9w9esf.js → chunk-s213xmp8.js} +46 -45
- package/dist/{chunk-c42pqnxx.js → chunk-s3s0611n.js} +1 -1
- package/dist/{chunk-qdnxk7d7.js → chunk-scrk9jbt.js} +29 -30
- package/dist/{chunk-wayfjcwt.js → chunk-sdfvr9ps.js} +4 -4
- package/dist/{chunk-7mqab3z7.js → chunk-skp5w8bq.js} +1 -1
- package/dist/{chunk-76j2e9vy.js → chunk-snxp8mxj.js} +2 -2
- package/dist/{chunk-ad3v6mzw.js → chunk-tgmettzd.js} +12 -12
- package/dist/{chunk-cdj51xbj.js → chunk-tj6hejny.js} +46 -45
- package/dist/chunk-tn0xnp8a.js +124 -0
- package/dist/chunk-tpn6rh31.js +62 -0
- package/dist/{chunk-qsc98gbe.js → chunk-tq4vws6e.js} +2 -2
- package/dist/{chunk-ydcsbj4t.js → chunk-tzzzbb9d.js} +11 -9
- package/dist/chunk-v3s93bzd.js +34 -0
- package/dist/{chunk-4cp6193g.js → chunk-v4t6dyyh.js} +2 -2
- package/dist/{chunk-xfkfh5sd.js → chunk-v6fcbmqz.js} +1808 -1643
- package/dist/{chunk-k7g9gcr9.js → chunk-vc59jf3q.js} +64 -58
- package/dist/{chunk-gdhz1652.js → chunk-vdk9b74d.js} +27 -30
- package/dist/{chunk-tvzr9c8a.js → chunk-vf9c1649.js} +46 -45
- package/dist/{chunk-naybw0p0.js → chunk-vgk0nymz.js} +8 -8
- package/dist/{chunk-jh965sa0.js → chunk-vgzpbh28.js} +47 -46
- package/dist/{chunk-q87kegxh.js → chunk-vhxrn87v.js} +49 -48
- package/dist/chunk-vnzgpyrz.js +1534 -0
- package/dist/{chunk-r6kaak61.js → chunk-vqh6cjfx.js} +16 -20
- package/dist/{chunk-wbbykfdd.js → chunk-vz3pa5n6.js} +1 -1
- package/dist/{chunk-pwqm47kn.js → chunk-w1h5z2sy.js} +46 -45
- package/dist/{chunk-rm2vtv77.js → chunk-w2vvxj1f.js} +22 -25
- package/dist/{chunk-s7q42kp2.js → chunk-w5zezk61.js} +9 -9
- package/dist/{chunk-vrjbc8ap.js → chunk-wa8yn2p0.js} +1 -1
- package/dist/{chunk-a3wczqrp.js → chunk-wahqac7c.js} +37 -41
- package/dist/{chunk-qvd3hbqs.js → chunk-wc0np2zw.js} +5 -5
- package/dist/{chunk-2j3v2dgk.js → chunk-wcpmtszh.js} +47 -46
- package/dist/{chunk-jxfp3g9b.js → chunk-wdzjtdye.js} +4 -4
- package/dist/{chunk-0g5cy3wj.js → chunk-wgk9sxk7.js} +4 -4
- package/dist/{chunk-rc9x0raa.js → chunk-wmbpjx7v.js} +56 -55
- package/dist/chunk-wrsy4y58.js +93 -0
- package/dist/{chunk-rtmh0v4c.js → chunk-wskkym13.js} +6 -6
- package/dist/{chunk-bm5rc541.js → chunk-wt6v1zbe.js} +5 -5
- package/dist/{chunk-37p5p94r.js → chunk-wyj3wpjv.js} +55 -54
- package/dist/chunk-x7fdwq3d.js +33 -0
- package/dist/{chunk-6t5zvnrg.js → chunk-xdg2rpj3.js} +48 -46
- package/dist/{chunk-chsyvavm.js → chunk-xeb6075z.js} +1 -1
- package/dist/{chunk-23q4jpn2.js → chunk-xemw9d52.js} +3 -3
- package/dist/{chunk-n7pnyq43.js → chunk-xhfmdq1y.js} +16 -0
- package/dist/{chunk-jmkn11my.js → chunk-xmdny0m1.js} +20 -20
- package/dist/chunk-xswyz2es.js +118 -0
- package/dist/{chunk-67a4147x.js → chunk-xv5a2xbe.js} +1 -1
- package/dist/{chunk-1dgdjrm1.js → chunk-xx709m24.js} +4 -4
- package/dist/{chunk-qn8z4r79.js → chunk-y024419t.js} +50 -48
- package/dist/{chunk-dbwmzvfj.js → chunk-y1ps26mz.js} +46 -45
- package/dist/{chunk-4m9df5ef.js → chunk-y2r5e6kv.js} +17 -21
- package/dist/{chunk-k1crm94z.js → chunk-y41svpxw.js} +46 -45
- package/dist/{chunk-qjyg1dv7.js → chunk-ygwcq4vd.js} +6 -10
- package/dist/{chunk-fk8crdnk.js → chunk-ykv414dd.js} +48 -46
- package/dist/{chunk-g5pgham9.js → chunk-ynkzfhs1.js} +20 -14
- package/dist/{chunk-gvrjgq1n.js → chunk-yrqx3p9k.js} +16 -20
- package/dist/{chunk-c9dmpdss.js → chunk-ys17e80d.js} +46 -45
- package/dist/{chunk-97wgdsab.js → chunk-z16txqz0.js} +3 -3
- package/dist/{chunk-yvtzznds.js → chunk-z6wm96eh.js} +2 -2
- package/dist/{chunk-8ybw2s0h.js → chunk-zbb7qd0v.js} +4 -4
- package/dist/{chunk-030rqd3a.js → chunk-zjxv5g2n.js} +54 -53
- package/dist/{chunk-425w66ka.js → chunk-zmwgp2sh.js} +4 -4
- package/dist/cli.js +8 -8
- package/dist/gateway/index.js +430 -0
- package/dist/gateway/worker.js +482687 -0
- package/package.json +1 -1
- package/dist/chunk-11cz07kz.js +0 -93
- package/dist/chunk-1pbtp2z2.js +0 -92
- package/dist/chunk-25y2dtzf.js +0 -91
- package/dist/chunk-3hyj0zpy.js +0 -95
- package/dist/chunk-4kqjjakw.js +0 -73
- package/dist/chunk-4zwqbg7s.js +0 -87
- package/dist/chunk-5be33wja.js +0 -120
- package/dist/chunk-70mgxhkz.js +0 -369
- package/dist/chunk-7gmk09cq.js +0 -116
- package/dist/chunk-8dprcdra.js +0 -92
- package/dist/chunk-8xwx1xtg.js +0 -120
- package/dist/chunk-a579wjd2.js +0 -436
- package/dist/chunk-axqk3mxk.js +0 -116
- package/dist/chunk-c0ckmxr1.js +0 -86
- package/dist/chunk-c6t24y8q.js +0 -94
- package/dist/chunk-cfv996bs.js +0 -22
- package/dist/chunk-e5t5eefc.js +0 -62
- package/dist/chunk-eyph0250.js +0 -88
- package/dist/chunk-f825x57v.js +0 -91
- package/dist/chunk-h9xx5bj6.js +0 -91
- package/dist/chunk-j1dg659r.js +0 -89
- package/dist/chunk-jk8seqkk.js +0 -90
- package/dist/chunk-jzg4nddc.js +0 -92
- package/dist/chunk-k5vy0s3c.js +0 -93
- package/dist/chunk-ke820fjw.js +0 -91
- package/dist/chunk-kyzd4p8z.js +0 -111
- package/dist/chunk-njrt3tac.js +0 -640
- package/dist/chunk-pavb6a7w.js +0 -516
- package/dist/chunk-q268gpa0.js +0 -145
- package/dist/chunk-qvh1w3t7.js +0 -157
- package/dist/chunk-qy1es4jj.js +0 -95
- package/dist/chunk-qz2x630m.js +0 -49145
- package/dist/chunk-tw48evtr.js +0 -40
- package/dist/chunk-w0gfctyc.js +0 -117
- package/dist/chunk-y0fhjxef.js +0 -276
- package/dist/chunk-y275vgmw.js +0 -654
- package/dist/chunk-zq7pmdas.js +0 -1003
package/dist/chunk-y275vgmw.js
DELETED
|
@@ -1,654 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
WelcomeV2
|
|
4
|
-
} from "./chunk-zctfbr1v.js";
|
|
5
|
-
import {
|
|
6
|
-
ApproveApiKey
|
|
7
|
-
} from "./chunk-ahrhwpm9.js";
|
|
8
|
-
import {
|
|
9
|
-
PressEnterToContinue,
|
|
10
|
-
init_PressEnterToContinue
|
|
11
|
-
} from "./chunk-qatfdxvd.js";
|
|
12
|
-
import {
|
|
13
|
-
ThemePicker,
|
|
14
|
-
init_ThemePicker
|
|
15
|
-
} from "./chunk-kva79cra.js";
|
|
16
|
-
import {
|
|
17
|
-
ConsoleOAuthFlow,
|
|
18
|
-
Select,
|
|
19
|
-
Spinner,
|
|
20
|
-
getSSLErrorHint,
|
|
21
|
-
init_ConsoleOAuthFlow,
|
|
22
|
-
init_Spinner,
|
|
23
|
-
init_errorUtils,
|
|
24
|
-
init_select
|
|
25
|
-
} from "./chunk-f2hbn5rk.js";
|
|
26
|
-
import"./chunk-jpc9zwsk.js";
|
|
27
|
-
import"./chunk-hwfknpxv.js";
|
|
28
|
-
import"./chunk-4nspekjp.js";
|
|
29
|
-
import"./chunk-jzthz1bx.js";
|
|
30
|
-
import"./chunk-1gx78081.js";
|
|
31
|
-
import"./chunk-qcnhb4cd.js";
|
|
32
|
-
import"./chunk-s7q42kp2.js";
|
|
33
|
-
import"./chunk-2gzv8nrw.js";
|
|
34
|
-
import"./chunk-ehtwnxpg.js";
|
|
35
|
-
import"./chunk-wr3pd88n.js";
|
|
36
|
-
import"./chunk-wayfjcwt.js";
|
|
37
|
-
import"./chunk-cgfdkzhb.js";
|
|
38
|
-
import"./chunk-bxcfz5gy.js";
|
|
39
|
-
import {
|
|
40
|
-
init_useExitOnCtrlCDWithKeybindings,
|
|
41
|
-
useExitOnCtrlCDWithKeybindings
|
|
42
|
-
} from "./chunk-y0fhjxef.js";
|
|
43
|
-
import"./chunk-j5bth84e.js";
|
|
44
|
-
import {
|
|
45
|
-
init_terminalSetup,
|
|
46
|
-
setupTerminal,
|
|
47
|
-
shouldOfferTerminalSetup
|
|
48
|
-
} from "./chunk-nk82j7r2.js";
|
|
49
|
-
import {
|
|
50
|
-
init_useKeybinding
|
|
51
|
-
} from "./chunk-68ffk5qa.js";
|
|
52
|
-
import"./chunk-ps49ymvj.js";
|
|
53
|
-
import"./chunk-p7vkh4wx.js";
|
|
54
|
-
import"./chunk-bmbq6nt1.js";
|
|
55
|
-
import"./chunk-yc23zxmj.js";
|
|
56
|
-
import"./chunk-njrt3tac.js";
|
|
57
|
-
import"./chunk-m87bhhqv.js";
|
|
58
|
-
import"./chunk-xwg327ys.js";
|
|
59
|
-
import"./chunk-xz655xxa.js";
|
|
60
|
-
import"./chunk-c11swzas.js";
|
|
61
|
-
import"./chunk-chsyvavm.js";
|
|
62
|
-
import"./chunk-5rv9c8yd.js";
|
|
63
|
-
import {
|
|
64
|
-
getCustomApiKeyStatus,
|
|
65
|
-
getUserAgent,
|
|
66
|
-
init_auth,
|
|
67
|
-
init_authPortable,
|
|
68
|
-
init_config,
|
|
69
|
-
init_http,
|
|
70
|
-
isAnthropicAuthEnabled,
|
|
71
|
-
normalizeApiKeyForConfig
|
|
72
|
-
} from "./chunk-e7efcp3k.js";
|
|
73
|
-
import"./chunk-z19sd3bt.js";
|
|
74
|
-
import"./chunk-1ax1znzj.js";
|
|
75
|
-
import"./chunk-6nsd9606.js";
|
|
76
|
-
import"./chunk-xp61y5ba.js";
|
|
77
|
-
import"./chunk-64c1avct.js";
|
|
78
|
-
import"./chunk-wha6v7za.js";
|
|
79
|
-
import"./chunk-8g5pe1gr.js";
|
|
80
|
-
import"./chunk-4cp6193g.js";
|
|
81
|
-
import"./chunk-8g747a8x.js";
|
|
82
|
-
import"./chunk-d7886r6a.js";
|
|
83
|
-
import"./chunk-yvtzznds.js";
|
|
84
|
-
import"./chunk-4jm600zv.js";
|
|
85
|
-
import"./chunk-qz2x630m.js";
|
|
86
|
-
import"./chunk-2f21meep.js";
|
|
87
|
-
import"./chunk-nrtksr2p.js";
|
|
88
|
-
import"./chunk-3c25bcsw.js";
|
|
89
|
-
import {
|
|
90
|
-
env,
|
|
91
|
-
getOauthConfig,
|
|
92
|
-
init_env,
|
|
93
|
-
init_oauth
|
|
94
|
-
} from "./chunk-s3hsqf80.js";
|
|
95
|
-
import"./chunk-yyf72f78.js";
|
|
96
|
-
import"./chunk-cdz5yb0r.js";
|
|
97
|
-
import {
|
|
98
|
-
Link,
|
|
99
|
-
Newline,
|
|
100
|
-
ThemedBox_default,
|
|
101
|
-
ThemedText,
|
|
102
|
-
init_src,
|
|
103
|
-
useKeybindings,
|
|
104
|
-
useTheme,
|
|
105
|
-
useTimeout
|
|
106
|
-
} from "./chunk-c7jwbe76.js";
|
|
107
|
-
import"./chunk-0vkfrmqm.js";
|
|
108
|
-
import {
|
|
109
|
-
require_jsx_dev_runtime,
|
|
110
|
-
require_react
|
|
111
|
-
} from "./chunk-7sgtxrsc.js";
|
|
112
|
-
import"./chunk-0xjaqda8.js";
|
|
113
|
-
import {
|
|
114
|
-
init_analytics,
|
|
115
|
-
logEvent
|
|
116
|
-
} from "./chunk-x8d2ehd7.js";
|
|
117
|
-
import"./chunk-15m49c67.js";
|
|
118
|
-
import"./chunk-tdbz9gbm.js";
|
|
119
|
-
import"./chunk-0awwmrwr.js";
|
|
120
|
-
import"./chunk-qnfx3qtx.js";
|
|
121
|
-
import"./chunk-70eey1nh.js";
|
|
122
|
-
import {
|
|
123
|
-
init_log,
|
|
124
|
-
logError
|
|
125
|
-
} from "./chunk-1nk93fqz.js";
|
|
126
|
-
import"./chunk-s8kj6ajy.js";
|
|
127
|
-
import"./chunk-eenq3avg.js";
|
|
128
|
-
import"./chunk-7mqab3z7.js";
|
|
129
|
-
import"./chunk-5z28bqne.js";
|
|
130
|
-
import"./chunk-qajrkk97.js";
|
|
131
|
-
import"./chunk-phd1qfpc.js";
|
|
132
|
-
import"./chunk-fbv4apne.js";
|
|
133
|
-
import {
|
|
134
|
-
init_envUtils,
|
|
135
|
-
isRunningOnHomespace
|
|
136
|
-
} from "./chunk-jaaxk89e.js";
|
|
137
|
-
import"./chunk-k8vp0atq.js";
|
|
138
|
-
import"./chunk-vf612n57.js";
|
|
139
|
-
import"./chunk-07069jq1.js";
|
|
140
|
-
import"./chunk-d4mdda98.js";
|
|
141
|
-
import {
|
|
142
|
-
axios_default,
|
|
143
|
-
init_axios
|
|
144
|
-
} from "./chunk-55raexh7.js";
|
|
145
|
-
import"./chunk-v9smspw2.js";
|
|
146
|
-
import"./chunk-v1kzp02e.js";
|
|
147
|
-
import"./chunk-7wm5s02e.js";
|
|
148
|
-
import"./chunk-b0kf00ff.js";
|
|
149
|
-
import"./chunk-netzwgv1.js";
|
|
150
|
-
import {
|
|
151
|
-
__toESM
|
|
152
|
-
} from "./chunk-qp2qdcda.js";
|
|
153
|
-
|
|
154
|
-
// src/components/Onboarding.tsx
|
|
155
|
-
init_analytics();
|
|
156
|
-
init_terminalSetup();
|
|
157
|
-
init_useExitOnCtrlCDWithKeybindings();
|
|
158
|
-
init_src();
|
|
159
|
-
init_useKeybinding();
|
|
160
|
-
init_auth();
|
|
161
|
-
init_authPortable();
|
|
162
|
-
init_config();
|
|
163
|
-
init_env();
|
|
164
|
-
init_envUtils();
|
|
165
|
-
var import_react4 = __toESM(require_react(), 1);
|
|
166
|
-
|
|
167
|
-
// src/utils/preflightChecks.tsx
|
|
168
|
-
init_axios();
|
|
169
|
-
init_analytics();
|
|
170
|
-
init_Spinner();
|
|
171
|
-
init_oauth();
|
|
172
|
-
var import_react = __toESM(require_react(), 1);
|
|
173
|
-
|
|
174
|
-
// src/hooks/useTimeout.ts
|
|
175
|
-
init_src();
|
|
176
|
-
|
|
177
|
-
// src/utils/preflightChecks.tsx
|
|
178
|
-
init_src();
|
|
179
|
-
init_errorUtils();
|
|
180
|
-
init_http();
|
|
181
|
-
init_log();
|
|
182
|
-
var jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
183
|
-
async function checkEndpoints() {
|
|
184
|
-
try {
|
|
185
|
-
const oauthConfig = getOauthConfig();
|
|
186
|
-
const tokenUrl = new URL(oauthConfig.TOKEN_URL);
|
|
187
|
-
const endpoints = [
|
|
188
|
-
`${oauthConfig.BASE_API_URL}/api/hello`,
|
|
189
|
-
`${tokenUrl.origin}/v1/oauth/hello`
|
|
190
|
-
];
|
|
191
|
-
const checkEndpoint = async (url) => {
|
|
192
|
-
try {
|
|
193
|
-
const response = await axios_default.get(url, {
|
|
194
|
-
headers: { "User-Agent": getUserAgent() }
|
|
195
|
-
});
|
|
196
|
-
if (response.status !== 200) {
|
|
197
|
-
const hostname = new URL(url).hostname;
|
|
198
|
-
return {
|
|
199
|
-
success: false,
|
|
200
|
-
error: `Failed to connect to ${hostname}: Status ${response.status}`
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
return { success: true };
|
|
204
|
-
} catch (error) {
|
|
205
|
-
const hostname = new URL(url).hostname;
|
|
206
|
-
const sslHint = getSSLErrorHint(error);
|
|
207
|
-
return {
|
|
208
|
-
success: false,
|
|
209
|
-
error: `Failed to connect to ${hostname}: ${error instanceof Error ? error.code || error.message : String(error)}`,
|
|
210
|
-
sslHint: sslHint ?? undefined
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
const results = await Promise.all(endpoints.map(checkEndpoint));
|
|
215
|
-
const failedResult = results.find((result) => !result.success);
|
|
216
|
-
if (failedResult) {
|
|
217
|
-
logEvent("tengu_preflight_check_failed", {
|
|
218
|
-
isConnectivityError: false,
|
|
219
|
-
hasErrorMessage: !!failedResult.error,
|
|
220
|
-
isSSLError: !!failedResult.sslHint
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
return failedResult || { success: true };
|
|
224
|
-
} catch (error) {
|
|
225
|
-
logError(error);
|
|
226
|
-
logEvent("tengu_preflight_check_failed", {
|
|
227
|
-
isConnectivityError: true
|
|
228
|
-
});
|
|
229
|
-
return {
|
|
230
|
-
success: false,
|
|
231
|
-
error: `Connectivity check error: ${error instanceof Error ? error.code || error.message : String(error)}`
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
function PreflightStep({
|
|
236
|
-
onSuccess
|
|
237
|
-
}) {
|
|
238
|
-
const [result, setResult] = import_react.useState(null);
|
|
239
|
-
const [isChecking, setIsChecking] = import_react.useState(true);
|
|
240
|
-
const showSpinner = useTimeout(1000) && isChecking;
|
|
241
|
-
import_react.useEffect(() => {
|
|
242
|
-
async function run() {
|
|
243
|
-
const checkResult = await checkEndpoints();
|
|
244
|
-
setResult(checkResult);
|
|
245
|
-
setIsChecking(false);
|
|
246
|
-
}
|
|
247
|
-
run();
|
|
248
|
-
}, []);
|
|
249
|
-
import_react.useEffect(() => {
|
|
250
|
-
if (result?.success) {
|
|
251
|
-
onSuccess();
|
|
252
|
-
} else if (result && !result.success) {
|
|
253
|
-
const timer = setTimeout(() => process.exit(1), 100);
|
|
254
|
-
return () => clearTimeout(timer);
|
|
255
|
-
}
|
|
256
|
-
}, [result, onSuccess]);
|
|
257
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
258
|
-
flexDirection: "column",
|
|
259
|
-
gap: 1,
|
|
260
|
-
paddingLeft: 1,
|
|
261
|
-
children: isChecking && showSpinner ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
262
|
-
paddingLeft: 1,
|
|
263
|
-
children: [
|
|
264
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
265
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
266
|
-
children: "Checking connectivity..."
|
|
267
|
-
}, undefined, false, undefined, this)
|
|
268
|
-
]
|
|
269
|
-
}, undefined, true, undefined, this) : !result?.success && !isChecking && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
270
|
-
flexDirection: "column",
|
|
271
|
-
gap: 1,
|
|
272
|
-
children: [
|
|
273
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
274
|
-
color: "error",
|
|
275
|
-
children: "Unable to connect to Anthropic services"
|
|
276
|
-
}, undefined, false, undefined, this),
|
|
277
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
278
|
-
color: "error",
|
|
279
|
-
children: result?.error
|
|
280
|
-
}, undefined, false, undefined, this),
|
|
281
|
-
result?.sslHint ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
282
|
-
flexDirection: "column",
|
|
283
|
-
gap: 1,
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
286
|
-
children: result.sslHint
|
|
287
|
-
}, undefined, false, undefined, this),
|
|
288
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
289
|
-
color: "suggestion",
|
|
290
|
-
children: "See https://code.claude.com/docs/en/network-config"
|
|
291
|
-
}, undefined, false, undefined, this)
|
|
292
|
-
]
|
|
293
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
294
|
-
flexDirection: "column",
|
|
295
|
-
gap: 1,
|
|
296
|
-
children: [
|
|
297
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
298
|
-
children: "Please check your internet connection and network settings."
|
|
299
|
-
}, undefined, false, undefined, this),
|
|
300
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
301
|
-
children: [
|
|
302
|
-
"Note: Claude Code might not be available in your country. Check supported countries at",
|
|
303
|
-
" ",
|
|
304
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
305
|
-
color: "suggestion",
|
|
306
|
-
children: "https://anthropic.com/supported-countries"
|
|
307
|
-
}, undefined, false, undefined, this)
|
|
308
|
-
]
|
|
309
|
-
}, undefined, true, undefined, this)
|
|
310
|
-
]
|
|
311
|
-
}, undefined, true, undefined, this)
|
|
312
|
-
]
|
|
313
|
-
}, undefined, true, undefined, this)
|
|
314
|
-
}, undefined, false, undefined, this);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
// src/components/Onboarding.tsx
|
|
318
|
-
init_ConsoleOAuthFlow();
|
|
319
|
-
init_select();
|
|
320
|
-
init_PressEnterToContinue();
|
|
321
|
-
init_ThemePicker();
|
|
322
|
-
|
|
323
|
-
// src/components/ui/OrderedList.tsx
|
|
324
|
-
init_src();
|
|
325
|
-
var import_react3 = __toESM(require_react(), 1);
|
|
326
|
-
|
|
327
|
-
// src/components/ui/OrderedListItem.tsx
|
|
328
|
-
init_src();
|
|
329
|
-
var import_react2 = __toESM(require_react(), 1);
|
|
330
|
-
var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
331
|
-
var OrderedListItemContext = import_react2.createContext({ marker: "" });
|
|
332
|
-
function OrderedListItem({
|
|
333
|
-
children
|
|
334
|
-
}) {
|
|
335
|
-
const { marker } = import_react2.useContext(OrderedListItemContext);
|
|
336
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
337
|
-
gap: 1,
|
|
338
|
-
children: [
|
|
339
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
340
|
-
dimColor: true,
|
|
341
|
-
children: marker
|
|
342
|
-
}, undefined, false, undefined, this),
|
|
343
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
344
|
-
flexDirection: "column",
|
|
345
|
-
children
|
|
346
|
-
}, undefined, false, undefined, this)
|
|
347
|
-
]
|
|
348
|
-
}, undefined, true, undefined, this);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// src/components/ui/OrderedList.tsx
|
|
352
|
-
var jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
353
|
-
var OrderedListContext = import_react3.createContext({ marker: "" });
|
|
354
|
-
function OrderedListComponent({ children }) {
|
|
355
|
-
const { marker: parentMarker } = import_react3.useContext(OrderedListContext);
|
|
356
|
-
let numberOfItems = 0;
|
|
357
|
-
for (const child of import_react3.default.Children.toArray(children)) {
|
|
358
|
-
if (!import_react3.isValidElement(child) || child.type !== OrderedListItem) {
|
|
359
|
-
continue;
|
|
360
|
-
}
|
|
361
|
-
numberOfItems++;
|
|
362
|
-
}
|
|
363
|
-
const maxMarkerWidth = String(numberOfItems).length;
|
|
364
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
365
|
-
flexDirection: "column",
|
|
366
|
-
children: import_react3.default.Children.map(children, (child, index) => {
|
|
367
|
-
if (!import_react3.isValidElement(child) || child.type !== OrderedListItem) {
|
|
368
|
-
return child;
|
|
369
|
-
}
|
|
370
|
-
const paddedMarker = `${String(index + 1).padStart(maxMarkerWidth)}.`;
|
|
371
|
-
const marker = `${parentMarker}${paddedMarker}`;
|
|
372
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(OrderedListContext.Provider, {
|
|
373
|
-
value: { marker },
|
|
374
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(OrderedListItemContext.Provider, {
|
|
375
|
-
value: { marker },
|
|
376
|
-
children: child
|
|
377
|
-
}, undefined, false, undefined, this)
|
|
378
|
-
}, undefined, false, undefined, this);
|
|
379
|
-
})
|
|
380
|
-
}, undefined, false, undefined, this);
|
|
381
|
-
}
|
|
382
|
-
OrderedListComponent.Item = OrderedListItem;
|
|
383
|
-
var OrderedList = OrderedListComponent;
|
|
384
|
-
|
|
385
|
-
// src/components/Onboarding.tsx
|
|
386
|
-
var jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
|
|
387
|
-
function Onboarding({ onDone }) {
|
|
388
|
-
const [currentStepIndex, setCurrentStepIndex] = import_react4.useState(0);
|
|
389
|
-
const [skipOAuth, setSkipOAuth] = import_react4.useState(false);
|
|
390
|
-
const [oauthEnabled] = import_react4.useState(() => isAnthropicAuthEnabled());
|
|
391
|
-
const [theme, setTheme] = useTheme();
|
|
392
|
-
import_react4.useEffect(() => {
|
|
393
|
-
logEvent("tengu_began_setup", {
|
|
394
|
-
oauthEnabled
|
|
395
|
-
});
|
|
396
|
-
}, [oauthEnabled]);
|
|
397
|
-
function goToNextStep() {
|
|
398
|
-
if (currentStepIndex < steps.length - 1) {
|
|
399
|
-
const nextIndex = currentStepIndex + 1;
|
|
400
|
-
setCurrentStepIndex(nextIndex);
|
|
401
|
-
logEvent("tengu_onboarding_step", {
|
|
402
|
-
oauthEnabled,
|
|
403
|
-
stepId: steps[nextIndex]?.id
|
|
404
|
-
});
|
|
405
|
-
} else {
|
|
406
|
-
onDone();
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
function handleThemeSelection(newTheme) {
|
|
410
|
-
setTheme(newTheme);
|
|
411
|
-
goToNextStep();
|
|
412
|
-
}
|
|
413
|
-
const exitState = useExitOnCtrlCDWithKeybindings();
|
|
414
|
-
const themeStep = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
415
|
-
marginX: 1,
|
|
416
|
-
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemePicker, {
|
|
417
|
-
onThemeSelect: handleThemeSelection,
|
|
418
|
-
showIntroText: true,
|
|
419
|
-
helpText: "To change this later, run /theme",
|
|
420
|
-
hideEscToCancel: true,
|
|
421
|
-
skipExitHandling: true
|
|
422
|
-
}, undefined, false, undefined, this)
|
|
423
|
-
}, undefined, false, undefined, this);
|
|
424
|
-
const securityStep = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
425
|
-
flexDirection: "column",
|
|
426
|
-
gap: 1,
|
|
427
|
-
paddingLeft: 1,
|
|
428
|
-
children: [
|
|
429
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
430
|
-
bold: true,
|
|
431
|
-
children: "Security notes:"
|
|
432
|
-
}, undefined, false, undefined, this),
|
|
433
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
434
|
-
flexDirection: "column",
|
|
435
|
-
width: 70,
|
|
436
|
-
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(OrderedList, {
|
|
437
|
-
children: [
|
|
438
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(OrderedList.Item, {
|
|
439
|
-
children: [
|
|
440
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
441
|
-
children: "Claude can make mistakes"
|
|
442
|
-
}, undefined, false, undefined, this),
|
|
443
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
444
|
-
dimColor: true,
|
|
445
|
-
wrap: "wrap",
|
|
446
|
-
children: [
|
|
447
|
-
"You should always review Claude's responses, especially when",
|
|
448
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
449
|
-
"running code.",
|
|
450
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Newline, {}, undefined, false, undefined, this)
|
|
451
|
-
]
|
|
452
|
-
}, undefined, true, undefined, this)
|
|
453
|
-
]
|
|
454
|
-
}, undefined, true, undefined, this),
|
|
455
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(OrderedList.Item, {
|
|
456
|
-
children: [
|
|
457
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
458
|
-
children: "Due to prompt injection risks, only use it with code you trust"
|
|
459
|
-
}, undefined, false, undefined, this),
|
|
460
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
461
|
-
dimColor: true,
|
|
462
|
-
wrap: "wrap",
|
|
463
|
-
children: [
|
|
464
|
-
"For more details see:",
|
|
465
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
466
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Link, {
|
|
467
|
-
url: "https://code.claude.com/docs/en/security"
|
|
468
|
-
}, undefined, false, undefined, this)
|
|
469
|
-
]
|
|
470
|
-
}, undefined, true, undefined, this)
|
|
471
|
-
]
|
|
472
|
-
}, undefined, true, undefined, this)
|
|
473
|
-
]
|
|
474
|
-
}, undefined, true, undefined, this)
|
|
475
|
-
}, undefined, false, undefined, this),
|
|
476
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(PressEnterToContinue, {}, undefined, false, undefined, this)
|
|
477
|
-
]
|
|
478
|
-
}, undefined, true, undefined, this);
|
|
479
|
-
const preflightStep = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(PreflightStep, {
|
|
480
|
-
onSuccess: goToNextStep
|
|
481
|
-
}, undefined, false, undefined, this);
|
|
482
|
-
const apiKeyNeedingApproval = import_react4.useMemo(() => {
|
|
483
|
-
if (!process.env.ANTHROPIC_API_KEY || isRunningOnHomespace()) {
|
|
484
|
-
return "";
|
|
485
|
-
}
|
|
486
|
-
const customApiKeyTruncated = normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY);
|
|
487
|
-
if (getCustomApiKeyStatus(customApiKeyTruncated) === "new") {
|
|
488
|
-
return customApiKeyTruncated;
|
|
489
|
-
}
|
|
490
|
-
}, []);
|
|
491
|
-
function handleApiKeyDone(approved) {
|
|
492
|
-
if (approved) {
|
|
493
|
-
setSkipOAuth(true);
|
|
494
|
-
}
|
|
495
|
-
goToNextStep();
|
|
496
|
-
}
|
|
497
|
-
const steps = [];
|
|
498
|
-
if (oauthEnabled) {
|
|
499
|
-
steps.push({ id: "preflight", component: preflightStep });
|
|
500
|
-
}
|
|
501
|
-
steps.push({ id: "theme", component: themeStep });
|
|
502
|
-
if (apiKeyNeedingApproval) {
|
|
503
|
-
steps.push({
|
|
504
|
-
id: "api-key",
|
|
505
|
-
component: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ApproveApiKey, {
|
|
506
|
-
customApiKeyTruncated: apiKeyNeedingApproval,
|
|
507
|
-
onDone: handleApiKeyDone
|
|
508
|
-
}, undefined, false, undefined, this)
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
if (oauthEnabled) {
|
|
512
|
-
steps.push({
|
|
513
|
-
id: "oauth",
|
|
514
|
-
component: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SkippableStep, {
|
|
515
|
-
skip: skipOAuth,
|
|
516
|
-
onSkip: goToNextStep,
|
|
517
|
-
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ConsoleOAuthFlow, {
|
|
518
|
-
onDone: goToNextStep
|
|
519
|
-
}, undefined, false, undefined, this)
|
|
520
|
-
}, undefined, false, undefined, this)
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
steps.push({ id: "security", component: securityStep });
|
|
524
|
-
if (shouldOfferTerminalSetup()) {
|
|
525
|
-
steps.push({
|
|
526
|
-
id: "terminal-setup",
|
|
527
|
-
component: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
528
|
-
flexDirection: "column",
|
|
529
|
-
gap: 1,
|
|
530
|
-
paddingLeft: 1,
|
|
531
|
-
children: [
|
|
532
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
533
|
-
bold: true,
|
|
534
|
-
children: "Use Claude Code's terminal setup?"
|
|
535
|
-
}, undefined, false, undefined, this),
|
|
536
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
537
|
-
flexDirection: "column",
|
|
538
|
-
width: 70,
|
|
539
|
-
gap: 1,
|
|
540
|
-
children: [
|
|
541
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
542
|
-
children: [
|
|
543
|
-
"For the optimal coding experience, enable the recommended settings",
|
|
544
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
545
|
-
"for your terminal:",
|
|
546
|
-
" ",
|
|
547
|
-
env.terminal === "Apple_Terminal" ? "Option+Enter for newlines and visual bell" : "Shift+Enter for newlines"
|
|
548
|
-
]
|
|
549
|
-
}, undefined, true, undefined, this),
|
|
550
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Select, {
|
|
551
|
-
options: [
|
|
552
|
-
{
|
|
553
|
-
label: "Yes, use recommended settings",
|
|
554
|
-
value: "install"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
label: "No, maybe later with /terminal-setup",
|
|
558
|
-
value: "no"
|
|
559
|
-
}
|
|
560
|
-
],
|
|
561
|
-
onChange: (value) => {
|
|
562
|
-
if (value === "install") {
|
|
563
|
-
setupTerminal(theme).catch(() => {}).finally(goToNextStep);
|
|
564
|
-
} else {
|
|
565
|
-
goToNextStep();
|
|
566
|
-
}
|
|
567
|
-
},
|
|
568
|
-
onCancel: () => goToNextStep()
|
|
569
|
-
}, undefined, false, undefined, this),
|
|
570
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
571
|
-
dimColor: true,
|
|
572
|
-
children: exitState.pending ? /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(jsx_dev_runtime4.Fragment, {
|
|
573
|
-
children: [
|
|
574
|
-
"Press ",
|
|
575
|
-
exitState.keyName,
|
|
576
|
-
" again to exit"
|
|
577
|
-
]
|
|
578
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(jsx_dev_runtime4.Fragment, {
|
|
579
|
-
children: "Enter to confirm \xB7 Esc to skip"
|
|
580
|
-
}, undefined, false, undefined, this)
|
|
581
|
-
}, undefined, false, undefined, this)
|
|
582
|
-
]
|
|
583
|
-
}, undefined, true, undefined, this)
|
|
584
|
-
]
|
|
585
|
-
}, undefined, true, undefined, this)
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
const currentStep = steps[currentStepIndex];
|
|
589
|
-
const handleSecurityContinue = import_react4.useCallback(() => {
|
|
590
|
-
if (currentStepIndex === steps.length - 1) {
|
|
591
|
-
onDone();
|
|
592
|
-
} else {
|
|
593
|
-
goToNextStep();
|
|
594
|
-
}
|
|
595
|
-
}, [currentStepIndex, steps.length, oauthEnabled, onDone]);
|
|
596
|
-
const handleTerminalSetupSkip = import_react4.useCallback(() => {
|
|
597
|
-
goToNextStep();
|
|
598
|
-
}, [currentStepIndex, steps.length, oauthEnabled, onDone]);
|
|
599
|
-
useKeybindings({
|
|
600
|
-
"confirm:yes": handleSecurityContinue
|
|
601
|
-
}, {
|
|
602
|
-
context: "Confirmation",
|
|
603
|
-
isActive: currentStep?.id === "security"
|
|
604
|
-
});
|
|
605
|
-
useKeybindings({
|
|
606
|
-
"confirm:no": handleTerminalSetupSkip
|
|
607
|
-
}, {
|
|
608
|
-
context: "Confirmation",
|
|
609
|
-
isActive: currentStep?.id === "terminal-setup"
|
|
610
|
-
});
|
|
611
|
-
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
612
|
-
flexDirection: "column",
|
|
613
|
-
children: [
|
|
614
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(WelcomeV2, {}, undefined, false, undefined, this),
|
|
615
|
-
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
616
|
-
flexDirection: "column",
|
|
617
|
-
marginTop: 1,
|
|
618
|
-
children: [
|
|
619
|
-
currentStep?.component,
|
|
620
|
-
exitState.pending && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
621
|
-
padding: 1,
|
|
622
|
-
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
623
|
-
dimColor: true,
|
|
624
|
-
children: [
|
|
625
|
-
"Press ",
|
|
626
|
-
exitState.keyName,
|
|
627
|
-
" again to exit"
|
|
628
|
-
]
|
|
629
|
-
}, undefined, true, undefined, this)
|
|
630
|
-
}, undefined, false, undefined, this)
|
|
631
|
-
]
|
|
632
|
-
}, undefined, true, undefined, this)
|
|
633
|
-
]
|
|
634
|
-
}, undefined, true, undefined, this);
|
|
635
|
-
}
|
|
636
|
-
function SkippableStep({
|
|
637
|
-
skip,
|
|
638
|
-
onSkip,
|
|
639
|
-
children
|
|
640
|
-
}) {
|
|
641
|
-
import_react4.useEffect(() => {
|
|
642
|
-
if (skip) {
|
|
643
|
-
onSkip();
|
|
644
|
-
}
|
|
645
|
-
}, [skip, onSkip]);
|
|
646
|
-
if (skip) {
|
|
647
|
-
return null;
|
|
648
|
-
}
|
|
649
|
-
return children;
|
|
650
|
-
}
|
|
651
|
-
export {
|
|
652
|
-
SkippableStep,
|
|
653
|
-
Onboarding
|
|
654
|
-
};
|