@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
|
@@ -1,83 +1,78 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ConfigurableShortcutHint,
|
|
4
|
-
OAuthService,
|
|
5
4
|
Select,
|
|
6
5
|
SelectMulti,
|
|
7
|
-
Spinner,
|
|
8
6
|
TextInput,
|
|
9
7
|
init_ConfigurableShortcutHint,
|
|
10
8
|
init_CustomSelect,
|
|
11
9
|
init_SelectMulti,
|
|
12
|
-
init_Spinner,
|
|
13
10
|
init_TextInput,
|
|
14
|
-
init_oauth,
|
|
15
11
|
init_useTerminalSize
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-hwfknpxv.js";
|
|
19
|
-
import"./chunk-4nspekjp.js";
|
|
12
|
+
} from "./chunk-ggq2y3tn.js";
|
|
13
|
+
import"./chunk-mcws22k3.js";
|
|
20
14
|
import"./chunk-jzthz1bx.js";
|
|
15
|
+
import"./chunk-mq94v5vn.js";
|
|
16
|
+
import"./chunk-hwfknpxv.js";
|
|
21
17
|
import"./chunk-1gx78081.js";
|
|
22
|
-
import"./chunk-qcnhb4cd.js";
|
|
23
|
-
import"./chunk-s7q42kp2.js";
|
|
24
|
-
import"./chunk-2gzv8nrw.js";
|
|
25
18
|
import"./chunk-ehtwnxpg.js";
|
|
26
|
-
import"./chunk-
|
|
27
|
-
import"./chunk-
|
|
19
|
+
import"./chunk-75qqeec8.js";
|
|
20
|
+
import"./chunk-hadww3nd.js";
|
|
21
|
+
import"./chunk-87xg6yb4.js";
|
|
22
|
+
import"./chunk-w5zezk61.js";
|
|
23
|
+
import"./chunk-2gzv8nrw.js";
|
|
24
|
+
import"./chunk-sdfvr9ps.js";
|
|
28
25
|
import"./chunk-cgfdkzhb.js";
|
|
29
|
-
import"./chunk-bxcfz5gy.js";
|
|
30
26
|
import {
|
|
31
27
|
init_useExitOnCtrlCDWithKeybindings,
|
|
32
28
|
useExitOnCtrlCDWithKeybindings
|
|
33
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-xswyz2es.js";
|
|
34
30
|
import"./chunk-j5bth84e.js";
|
|
35
|
-
import"./chunk-
|
|
31
|
+
import"./chunk-6696fngv.js";
|
|
32
|
+
import"./chunk-ps49ymvj.js";
|
|
36
33
|
import {
|
|
37
34
|
init_useKeybinding
|
|
38
35
|
} from "./chunk-68ffk5qa.js";
|
|
39
|
-
import"./chunk-
|
|
36
|
+
import"./chunk-g8183rkv.js";
|
|
37
|
+
import"./chunk-vnzgpyrz.js";
|
|
38
|
+
import"./chunk-7krg0dkt.js";
|
|
39
|
+
import"./chunk-4057dtxd.js";
|
|
40
40
|
import"./chunk-p7vkh4wx.js";
|
|
41
|
-
import"./chunk-
|
|
42
|
-
import"./chunk-
|
|
43
|
-
import"./chunk-
|
|
41
|
+
import"./chunk-6wzg2hpc.js";
|
|
42
|
+
import"./chunk-9g29z3dv.js";
|
|
43
|
+
import"./chunk-7tphrzjj.js";
|
|
44
|
+
import"./chunk-2vteceqh.js";
|
|
45
|
+
import"./chunk-xeb6075z.js";
|
|
46
|
+
import"./chunk-nrjtxhyr.js";
|
|
47
|
+
import"./chunk-v4t6dyyh.js";
|
|
48
|
+
import"./chunk-g5epkvz2.js";
|
|
44
49
|
import {
|
|
45
50
|
init_browser,
|
|
46
51
|
openBrowser
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import"./chunk-xwg327ys.js";
|
|
49
|
-
import"./chunk-xz655xxa.js";
|
|
50
|
-
import"./chunk-c11swzas.js";
|
|
51
|
-
import"./chunk-chsyvavm.js";
|
|
52
|
-
import"./chunk-5rv9c8yd.js";
|
|
52
|
+
} from "./chunk-bzatg35k.js";
|
|
53
53
|
import {
|
|
54
54
|
getAnthropicApiKey,
|
|
55
55
|
init_auth,
|
|
56
56
|
init_config,
|
|
57
57
|
init_stringUtils,
|
|
58
|
-
isAnthropicAuthEnabled,
|
|
59
58
|
plural,
|
|
60
|
-
saveGlobalConfig
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
import"./chunk-
|
|
64
|
-
import"./chunk-1ax1znzj.js";
|
|
59
|
+
saveGlobalConfig
|
|
60
|
+
} from "./chunk-rm9gb396.js";
|
|
61
|
+
import"./chunk-p4196wzm.js";
|
|
62
|
+
import"./chunk-cttezxcb.js";
|
|
65
63
|
import"./chunk-6nsd9606.js";
|
|
66
|
-
import"./chunk-
|
|
64
|
+
import"./chunk-rkv8bdtr.js";
|
|
67
65
|
import"./chunk-64c1avct.js";
|
|
68
|
-
import"./chunk-wha6v7za.js";
|
|
69
66
|
import"./chunk-8g5pe1gr.js";
|
|
70
|
-
import"./chunk-
|
|
71
|
-
import"./chunk-
|
|
72
|
-
import"./chunk-
|
|
73
|
-
import"./chunk-yvtzznds.js";
|
|
67
|
+
import"./chunk-4pbx3g7s.js";
|
|
68
|
+
import"./chunk-26wtxbdc.js";
|
|
69
|
+
import"./chunk-z6wm96eh.js";
|
|
74
70
|
import"./chunk-4jm600zv.js";
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
77
|
-
import"./chunk-nrtksr2p.js";
|
|
71
|
+
import"./chunk-1v01c96r.js";
|
|
72
|
+
import"./chunk-8b2y3x7a.js";
|
|
78
73
|
import"./chunk-3c25bcsw.js";
|
|
79
|
-
import"./chunk-
|
|
80
|
-
import"./chunk-
|
|
74
|
+
import"./chunk-cexw1jmv.js";
|
|
75
|
+
import"./chunk-j35mw64g.js";
|
|
81
76
|
import"./chunk-cdz5yb0r.js";
|
|
82
77
|
import {
|
|
83
78
|
Byline,
|
|
@@ -88,7 +83,6 @@ import {
|
|
|
88
83
|
ThemedText,
|
|
89
84
|
color,
|
|
90
85
|
init_src,
|
|
91
|
-
setClipboard,
|
|
92
86
|
useKeybinding,
|
|
93
87
|
useKeybindings,
|
|
94
88
|
useTerminalSize,
|
|
@@ -104,24 +98,24 @@ import {
|
|
|
104
98
|
init_analytics,
|
|
105
99
|
logEvent
|
|
106
100
|
} from "./chunk-x8d2ehd7.js";
|
|
107
|
-
import"./chunk-
|
|
101
|
+
import"./chunk-3e28fvn0.js";
|
|
108
102
|
import {
|
|
109
103
|
getGithubRepo,
|
|
110
104
|
init_git
|
|
111
|
-
} from "./chunk-
|
|
112
|
-
import"./chunk-
|
|
105
|
+
} from "./chunk-kjqyhxz7.js";
|
|
106
|
+
import"./chunk-4ayjwyqj.js";
|
|
113
107
|
import"./chunk-qnfx3qtx.js";
|
|
114
108
|
import {
|
|
115
109
|
execFileNoThrow,
|
|
116
110
|
init_execFileNoThrow
|
|
117
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-40s88wdg.js";
|
|
118
112
|
import {
|
|
119
113
|
init_log,
|
|
120
114
|
logError
|
|
121
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-5cxjxxx8.js";
|
|
122
116
|
import"./chunk-s8kj6ajy.js";
|
|
123
|
-
import"./chunk-
|
|
124
|
-
import"./chunk-
|
|
117
|
+
import"./chunk-qcrpqjya.js";
|
|
118
|
+
import"./chunk-skp5w8bq.js";
|
|
125
119
|
import {
|
|
126
120
|
execa,
|
|
127
121
|
init_execa
|
|
@@ -130,9 +124,9 @@ import {
|
|
|
130
124
|
figures_default,
|
|
131
125
|
init_figures
|
|
132
126
|
} from "./chunk-qajrkk97.js";
|
|
133
|
-
import"./chunk-
|
|
127
|
+
import"./chunk-pd2vy8hx.js";
|
|
128
|
+
import"./chunk-nsc89h0n.js";
|
|
134
129
|
import"./chunk-fbv4apne.js";
|
|
135
|
-
import"./chunk-jaaxk89e.js";
|
|
136
130
|
import"./chunk-k8vp0atq.js";
|
|
137
131
|
import"./chunk-vf612n57.js";
|
|
138
132
|
import"./chunk-07069jq1.js";
|
|
@@ -1152,329 +1146,6 @@ var init_InstallAppStep = __esm(() => {
|
|
|
1152
1146
|
jsx_dev_runtime9 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1153
1147
|
});
|
|
1154
1148
|
|
|
1155
|
-
// src/commands/install-github-app/OAuthFlowStep.tsx
|
|
1156
|
-
function OAuthFlowStep({
|
|
1157
|
-
onSuccess,
|
|
1158
|
-
onCancel
|
|
1159
|
-
}) {
|
|
1160
|
-
const [oauthStatus, setOAuthStatus] = import_react5.useState({
|
|
1161
|
-
state: "starting"
|
|
1162
|
-
});
|
|
1163
|
-
const [oauthService] = import_react5.useState(() => new OAuthService);
|
|
1164
|
-
const [pastedCode, setPastedCode] = import_react5.useState("");
|
|
1165
|
-
const [cursorOffset, setCursorOffset] = import_react5.useState(0);
|
|
1166
|
-
const [showPastePrompt, setShowPastePrompt] = import_react5.useState(false);
|
|
1167
|
-
const [urlCopied, setUrlCopied] = import_react5.useState(false);
|
|
1168
|
-
const timersRef = import_react5.useRef(new Set);
|
|
1169
|
-
const urlCopiedTimerRef = import_react5.useRef(undefined);
|
|
1170
|
-
const terminalSize = useTerminalSize();
|
|
1171
|
-
const textInputColumns = Math.max(50, terminalSize.columns - PASTE_HERE_MSG.length - 4);
|
|
1172
|
-
function handleKeyDown(e) {
|
|
1173
|
-
if (oauthStatus.state !== "error")
|
|
1174
|
-
return;
|
|
1175
|
-
e.preventDefault();
|
|
1176
|
-
if (e.key === "return" && oauthStatus.toRetry) {
|
|
1177
|
-
setPastedCode("");
|
|
1178
|
-
setCursorOffset(0);
|
|
1179
|
-
setOAuthStatus({
|
|
1180
|
-
state: "about_to_retry",
|
|
1181
|
-
nextState: oauthStatus.toRetry
|
|
1182
|
-
});
|
|
1183
|
-
} else {
|
|
1184
|
-
onCancel();
|
|
1185
|
-
}
|
|
1186
|
-
}
|
|
1187
|
-
async function handleSubmitCode(value, url) {
|
|
1188
|
-
try {
|
|
1189
|
-
const [authorizationCode, state] = value.split("#");
|
|
1190
|
-
if (!authorizationCode || !state) {
|
|
1191
|
-
setOAuthStatus({
|
|
1192
|
-
state: "error",
|
|
1193
|
-
message: "Invalid code. Please make sure the full code was copied",
|
|
1194
|
-
toRetry: { state: "waiting_for_login", url }
|
|
1195
|
-
});
|
|
1196
|
-
return;
|
|
1197
|
-
}
|
|
1198
|
-
logEvent("tengu_oauth_manual_entry", {});
|
|
1199
|
-
oauthService.handleManualAuthCodeInput({
|
|
1200
|
-
authorizationCode,
|
|
1201
|
-
state
|
|
1202
|
-
});
|
|
1203
|
-
} catch (err) {
|
|
1204
|
-
logError(err);
|
|
1205
|
-
setOAuthStatus({
|
|
1206
|
-
state: "error",
|
|
1207
|
-
message: err.message,
|
|
1208
|
-
toRetry: { state: "waiting_for_login", url }
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
const startOAuth = import_react5.useCallback(async () => {
|
|
1213
|
-
timersRef.current.forEach((timer) => clearTimeout(timer));
|
|
1214
|
-
timersRef.current.clear();
|
|
1215
|
-
try {
|
|
1216
|
-
const result = await oauthService.startOAuthFlow(async (url) => {
|
|
1217
|
-
setOAuthStatus({ state: "waiting_for_login", url });
|
|
1218
|
-
const timer = setTimeout(setShowPastePrompt, 3000, true);
|
|
1219
|
-
timersRef.current.add(timer);
|
|
1220
|
-
}, {
|
|
1221
|
-
loginWithClaudeAi: true,
|
|
1222
|
-
inferenceOnly: true,
|
|
1223
|
-
expiresIn: 365 * 24 * 60 * 60
|
|
1224
|
-
});
|
|
1225
|
-
setOAuthStatus({ state: "processing" });
|
|
1226
|
-
saveOAuthTokensIfNeeded(result);
|
|
1227
|
-
const timer1 = setTimeout((setOAuthStatus2, accessToken, onSuccess2, timersRef2) => {
|
|
1228
|
-
setOAuthStatus2({ state: "success", token: accessToken });
|
|
1229
|
-
const timer2 = setTimeout(onSuccess2, 1000, accessToken);
|
|
1230
|
-
timersRef2.current.add(timer2);
|
|
1231
|
-
}, 100, setOAuthStatus, result.accessToken, onSuccess, timersRef);
|
|
1232
|
-
timersRef.current.add(timer1);
|
|
1233
|
-
} catch (err) {
|
|
1234
|
-
const errorMessage = err.message;
|
|
1235
|
-
setOAuthStatus({
|
|
1236
|
-
state: "error",
|
|
1237
|
-
message: errorMessage,
|
|
1238
|
-
toRetry: { state: "starting" }
|
|
1239
|
-
});
|
|
1240
|
-
logError(err);
|
|
1241
|
-
logEvent("tengu_oauth_error", {
|
|
1242
|
-
error: errorMessage
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
}, [oauthService, onSuccess]);
|
|
1246
|
-
import_react5.useEffect(() => {
|
|
1247
|
-
if (oauthStatus.state === "starting") {
|
|
1248
|
-
startOAuth();
|
|
1249
|
-
}
|
|
1250
|
-
}, [oauthStatus.state, startOAuth]);
|
|
1251
|
-
import_react5.useEffect(() => {
|
|
1252
|
-
if (oauthStatus.state === "about_to_retry") {
|
|
1253
|
-
const timer = setTimeout((nextState, setShowPastePrompt2, setOAuthStatus2) => {
|
|
1254
|
-
setShowPastePrompt2(nextState.state === "waiting_for_login");
|
|
1255
|
-
setOAuthStatus2(nextState);
|
|
1256
|
-
}, 500, oauthStatus.nextState, setShowPastePrompt, setOAuthStatus);
|
|
1257
|
-
timersRef.current.add(timer);
|
|
1258
|
-
}
|
|
1259
|
-
}, [oauthStatus]);
|
|
1260
|
-
import_react5.useEffect(() => {
|
|
1261
|
-
if (pastedCode === "c" && oauthStatus.state === "waiting_for_login" && showPastePrompt && !urlCopied) {
|
|
1262
|
-
setClipboard(oauthStatus.url).then((raw) => {
|
|
1263
|
-
if (raw)
|
|
1264
|
-
process.stdout.write(raw);
|
|
1265
|
-
setUrlCopied(true);
|
|
1266
|
-
clearTimeout(urlCopiedTimerRef.current);
|
|
1267
|
-
urlCopiedTimerRef.current = setTimeout(setUrlCopied, 2000, false);
|
|
1268
|
-
});
|
|
1269
|
-
setPastedCode("");
|
|
1270
|
-
}
|
|
1271
|
-
}, [pastedCode, oauthStatus, showPastePrompt, urlCopied]);
|
|
1272
|
-
import_react5.useEffect(() => {
|
|
1273
|
-
const timers = timersRef.current;
|
|
1274
|
-
return () => {
|
|
1275
|
-
oauthService.cleanup();
|
|
1276
|
-
timers.forEach((timer) => clearTimeout(timer));
|
|
1277
|
-
timers.clear();
|
|
1278
|
-
clearTimeout(urlCopiedTimerRef.current);
|
|
1279
|
-
};
|
|
1280
|
-
}, [oauthService]);
|
|
1281
|
-
function renderStatusMessage() {
|
|
1282
|
-
switch (oauthStatus.state) {
|
|
1283
|
-
case "starting":
|
|
1284
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1285
|
-
children: [
|
|
1286
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
1287
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1288
|
-
children: "Starting authentication\u2026"
|
|
1289
|
-
}, undefined, false, undefined, this)
|
|
1290
|
-
]
|
|
1291
|
-
}, undefined, true, undefined, this);
|
|
1292
|
-
case "waiting_for_login":
|
|
1293
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1294
|
-
flexDirection: "column",
|
|
1295
|
-
gap: 1,
|
|
1296
|
-
children: [
|
|
1297
|
-
!showPastePrompt && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1298
|
-
children: [
|
|
1299
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
1300
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1301
|
-
children: "Opening browser to sign in with your Claude account\u2026"
|
|
1302
|
-
}, undefined, false, undefined, this)
|
|
1303
|
-
]
|
|
1304
|
-
}, undefined, true, undefined, this),
|
|
1305
|
-
showPastePrompt && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1306
|
-
children: [
|
|
1307
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1308
|
-
children: PASTE_HERE_MSG
|
|
1309
|
-
}, undefined, false, undefined, this),
|
|
1310
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(TextInput, {
|
|
1311
|
-
value: pastedCode,
|
|
1312
|
-
onChange: setPastedCode,
|
|
1313
|
-
onSubmit: (value) => handleSubmitCode(value, oauthStatus.url),
|
|
1314
|
-
cursorOffset,
|
|
1315
|
-
onChangeCursorOffset: setCursorOffset,
|
|
1316
|
-
columns: textInputColumns
|
|
1317
|
-
}, undefined, false, undefined, this)
|
|
1318
|
-
]
|
|
1319
|
-
}, undefined, true, undefined, this)
|
|
1320
|
-
]
|
|
1321
|
-
}, undefined, true, undefined, this);
|
|
1322
|
-
case "processing":
|
|
1323
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1324
|
-
children: [
|
|
1325
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
1326
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1327
|
-
children: "Processing authentication\u2026"
|
|
1328
|
-
}, undefined, false, undefined, this)
|
|
1329
|
-
]
|
|
1330
|
-
}, undefined, true, undefined, this);
|
|
1331
|
-
case "success":
|
|
1332
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1333
|
-
flexDirection: "column",
|
|
1334
|
-
gap: 1,
|
|
1335
|
-
children: [
|
|
1336
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1337
|
-
color: "success",
|
|
1338
|
-
children: "\u2713 Authentication token created successfully!"
|
|
1339
|
-
}, undefined, false, undefined, this),
|
|
1340
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1341
|
-
dimColor: true,
|
|
1342
|
-
children: "Using token for GitHub Actions setup\u2026"
|
|
1343
|
-
}, undefined, false, undefined, this)
|
|
1344
|
-
]
|
|
1345
|
-
}, undefined, true, undefined, this);
|
|
1346
|
-
case "error":
|
|
1347
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1348
|
-
flexDirection: "column",
|
|
1349
|
-
gap: 1,
|
|
1350
|
-
children: [
|
|
1351
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1352
|
-
color: "error",
|
|
1353
|
-
children: [
|
|
1354
|
-
"OAuth error: ",
|
|
1355
|
-
oauthStatus.message
|
|
1356
|
-
]
|
|
1357
|
-
}, undefined, true, undefined, this),
|
|
1358
|
-
oauthStatus.toRetry ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1359
|
-
dimColor: true,
|
|
1360
|
-
children: "Press Enter to try again, or any other key to cancel"
|
|
1361
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1362
|
-
dimColor: true,
|
|
1363
|
-
children: "Press any key to return to API key selection"
|
|
1364
|
-
}, undefined, false, undefined, this)
|
|
1365
|
-
]
|
|
1366
|
-
}, undefined, true, undefined, this);
|
|
1367
|
-
case "about_to_retry":
|
|
1368
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1369
|
-
flexDirection: "column",
|
|
1370
|
-
gap: 1,
|
|
1371
|
-
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1372
|
-
color: "permission",
|
|
1373
|
-
children: "Retrying\u2026"
|
|
1374
|
-
}, undefined, false, undefined, this)
|
|
1375
|
-
}, undefined, false, undefined, this);
|
|
1376
|
-
default:
|
|
1377
|
-
return null;
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1381
|
-
flexDirection: "column",
|
|
1382
|
-
gap: 1,
|
|
1383
|
-
tabIndex: 0,
|
|
1384
|
-
autoFocus: true,
|
|
1385
|
-
onKeyDown: handleKeyDown,
|
|
1386
|
-
children: [
|
|
1387
|
-
oauthStatus.state === "starting" && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1388
|
-
flexDirection: "column",
|
|
1389
|
-
gap: 1,
|
|
1390
|
-
paddingBottom: 1,
|
|
1391
|
-
children: [
|
|
1392
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1393
|
-
bold: true,
|
|
1394
|
-
children: "Create Authentication Token"
|
|
1395
|
-
}, undefined, false, undefined, this),
|
|
1396
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1397
|
-
dimColor: true,
|
|
1398
|
-
children: "Creating a long-lived token for GitHub Actions"
|
|
1399
|
-
}, undefined, false, undefined, this)
|
|
1400
|
-
]
|
|
1401
|
-
}, undefined, true, undefined, this),
|
|
1402
|
-
oauthStatus.state !== "success" && oauthStatus.state !== "starting" && oauthStatus.state !== "processing" && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1403
|
-
flexDirection: "column",
|
|
1404
|
-
gap: 1,
|
|
1405
|
-
paddingBottom: 1,
|
|
1406
|
-
children: [
|
|
1407
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1408
|
-
bold: true,
|
|
1409
|
-
children: "Create Authentication Token"
|
|
1410
|
-
}, undefined, false, undefined, this),
|
|
1411
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1412
|
-
dimColor: true,
|
|
1413
|
-
children: "Creating a long-lived token for GitHub Actions"
|
|
1414
|
-
}, undefined, false, undefined, this)
|
|
1415
|
-
]
|
|
1416
|
-
}, "header", true, undefined, this),
|
|
1417
|
-
oauthStatus.state === "waiting_for_login" && showPastePrompt && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1418
|
-
flexDirection: "column",
|
|
1419
|
-
gap: 1,
|
|
1420
|
-
paddingBottom: 1,
|
|
1421
|
-
children: [
|
|
1422
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1423
|
-
paddingX: 1,
|
|
1424
|
-
children: [
|
|
1425
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1426
|
-
dimColor: true,
|
|
1427
|
-
children: [
|
|
1428
|
-
"Browser didn't open? Use the url below to sign in",
|
|
1429
|
-
" "
|
|
1430
|
-
]
|
|
1431
|
-
}, undefined, true, undefined, this),
|
|
1432
|
-
urlCopied ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1433
|
-
color: "success",
|
|
1434
|
-
children: "(Copied!)"
|
|
1435
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1436
|
-
dimColor: true,
|
|
1437
|
-
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(KeyboardShortcutHint, {
|
|
1438
|
-
shortcut: "c",
|
|
1439
|
-
action: "copy",
|
|
1440
|
-
parens: true
|
|
1441
|
-
}, undefined, false, undefined, this)
|
|
1442
|
-
}, undefined, false, undefined, this)
|
|
1443
|
-
]
|
|
1444
|
-
}, undefined, true, undefined, this),
|
|
1445
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(Link, {
|
|
1446
|
-
url: oauthStatus.url,
|
|
1447
|
-
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1448
|
-
dimColor: true,
|
|
1449
|
-
children: oauthStatus.url
|
|
1450
|
-
}, undefined, false, undefined, this)
|
|
1451
|
-
}, undefined, false, undefined, this)
|
|
1452
|
-
]
|
|
1453
|
-
}, "urlToCopy", true, undefined, this),
|
|
1454
|
-
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1455
|
-
paddingLeft: 1,
|
|
1456
|
-
flexDirection: "column",
|
|
1457
|
-
gap: 1,
|
|
1458
|
-
children: renderStatusMessage()
|
|
1459
|
-
}, undefined, false, undefined, this)
|
|
1460
|
-
]
|
|
1461
|
-
}, undefined, true, undefined, this);
|
|
1462
|
-
}
|
|
1463
|
-
var import_react5, jsx_dev_runtime10, PASTE_HERE_MSG = "Paste code here if prompted > ";
|
|
1464
|
-
var init_OAuthFlowStep = __esm(() => {
|
|
1465
|
-
init_analytics();
|
|
1466
|
-
init_src();
|
|
1467
|
-
init_Spinner();
|
|
1468
|
-
init_TextInput();
|
|
1469
|
-
init_useTerminalSize();
|
|
1470
|
-
init_src();
|
|
1471
|
-
init_oauth();
|
|
1472
|
-
init_auth();
|
|
1473
|
-
init_log();
|
|
1474
|
-
import_react5 = __toESM(require_react(), 1);
|
|
1475
|
-
jsx_dev_runtime10 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1476
|
-
});
|
|
1477
|
-
|
|
1478
1149
|
// src/commands/install-github-app/SuccessStep.tsx
|
|
1479
1150
|
function SuccessStep({
|
|
1480
1151
|
secretExists,
|
|
@@ -1482,41 +1153,41 @@ function SuccessStep({
|
|
|
1482
1153
|
secretName,
|
|
1483
1154
|
skipWorkflow = false
|
|
1484
1155
|
}) {
|
|
1485
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(jsx_dev_runtime10.Fragment, {
|
|
1486
1157
|
children: [
|
|
1487
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1488
1159
|
flexDirection: "column",
|
|
1489
1160
|
borderStyle: "round",
|
|
1490
1161
|
paddingX: 1,
|
|
1491
1162
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1163
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1493
1164
|
flexDirection: "column",
|
|
1494
1165
|
marginBottom: 1,
|
|
1495
1166
|
children: [
|
|
1496
|
-
/* @__PURE__ */
|
|
1167
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1497
1168
|
bold: true,
|
|
1498
1169
|
children: "Install GitHub App"
|
|
1499
1170
|
}, undefined, false, undefined, this),
|
|
1500
|
-
/* @__PURE__ */
|
|
1171
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1501
1172
|
dimColor: true,
|
|
1502
1173
|
children: "Success"
|
|
1503
1174
|
}, undefined, false, undefined, this)
|
|
1504
1175
|
]
|
|
1505
1176
|
}, undefined, true, undefined, this),
|
|
1506
|
-
!skipWorkflow && /* @__PURE__ */
|
|
1177
|
+
!skipWorkflow && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1507
1178
|
color: "success",
|
|
1508
1179
|
children: "\u2713 GitHub Actions workflow created!"
|
|
1509
1180
|
}, undefined, false, undefined, this),
|
|
1510
|
-
secretExists && useExistingSecret && /* @__PURE__ */
|
|
1181
|
+
secretExists && useExistingSecret && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1511
1182
|
marginTop: 1,
|
|
1512
|
-
children: /* @__PURE__ */
|
|
1183
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1513
1184
|
color: "success",
|
|
1514
1185
|
children: "\u2713 Using existing ANTHROPIC_API_KEY secret"
|
|
1515
1186
|
}, undefined, false, undefined, this)
|
|
1516
1187
|
}, undefined, false, undefined, this),
|
|
1517
|
-
(!secretExists || !useExistingSecret) && /* @__PURE__ */
|
|
1188
|
+
(!secretExists || !useExistingSecret) && /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1518
1189
|
marginTop: 1,
|
|
1519
|
-
children: /* @__PURE__ */
|
|
1190
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1520
1191
|
color: "success",
|
|
1521
1192
|
children: [
|
|
1522
1193
|
"\u2713 API key saved as ",
|
|
@@ -1525,42 +1196,42 @@ function SuccessStep({
|
|
|
1525
1196
|
]
|
|
1526
1197
|
}, undefined, true, undefined, this)
|
|
1527
1198
|
}, undefined, false, undefined, this),
|
|
1528
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1529
1200
|
marginTop: 1,
|
|
1530
|
-
children: /* @__PURE__ */
|
|
1201
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1531
1202
|
children: "Next steps:"
|
|
1532
1203
|
}, undefined, false, undefined, this)
|
|
1533
1204
|
}, undefined, false, undefined, this),
|
|
1534
|
-
skipWorkflow ? /* @__PURE__ */
|
|
1205
|
+
skipWorkflow ? /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(jsx_dev_runtime10.Fragment, {
|
|
1535
1206
|
children: [
|
|
1536
|
-
/* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1537
1208
|
children: "1. Install the Claude GitHub App if you haven't already"
|
|
1538
1209
|
}, undefined, false, undefined, this),
|
|
1539
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1540
1211
|
children: "2. Your workflow file was kept unchanged"
|
|
1541
1212
|
}, undefined, false, undefined, this),
|
|
1542
|
-
/* @__PURE__ */
|
|
1213
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1543
1214
|
children: "3. API key is configured and ready to use"
|
|
1544
1215
|
}, undefined, false, undefined, this)
|
|
1545
1216
|
]
|
|
1546
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */
|
|
1217
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(jsx_dev_runtime10.Fragment, {
|
|
1547
1218
|
children: [
|
|
1548
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1549
1220
|
children: "1. A pre-filled PR page has been created"
|
|
1550
1221
|
}, undefined, false, undefined, this),
|
|
1551
|
-
/* @__PURE__ */
|
|
1222
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1552
1223
|
children: "2. Install the Claude GitHub App if you haven't already"
|
|
1553
1224
|
}, undefined, false, undefined, this),
|
|
1554
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1555
1226
|
children: "3. Merge the PR to enable Claude PR assistance"
|
|
1556
1227
|
}, undefined, false, undefined, this)
|
|
1557
1228
|
]
|
|
1558
1229
|
}, undefined, true, undefined, this)
|
|
1559
1230
|
]
|
|
1560
1231
|
}, undefined, true, undefined, this),
|
|
1561
|
-
/* @__PURE__ */
|
|
1232
|
+
/* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedBox_default, {
|
|
1562
1233
|
marginLeft: 3,
|
|
1563
|
-
children: /* @__PURE__ */
|
|
1234
|
+
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(ThemedText, {
|
|
1564
1235
|
dimColor: true,
|
|
1565
1236
|
children: "Press any key to exit"
|
|
1566
1237
|
}, undefined, false, undefined, this)
|
|
@@ -1568,10 +1239,10 @@ function SuccessStep({
|
|
|
1568
1239
|
]
|
|
1569
1240
|
}, undefined, true, undefined, this);
|
|
1570
1241
|
}
|
|
1571
|
-
var
|
|
1242
|
+
var jsx_dev_runtime10;
|
|
1572
1243
|
var init_SuccessStep = __esm(() => {
|
|
1573
1244
|
init_src();
|
|
1574
|
-
|
|
1245
|
+
jsx_dev_runtime10 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1575
1246
|
});
|
|
1576
1247
|
|
|
1577
1248
|
// src/commands/install-github-app/setupGitHubActions.ts
|
|
@@ -1797,46 +1468,46 @@ var init_setupGitHubActions = __esm(() => {
|
|
|
1797
1468
|
// src/commands/install-github-app/WarningsStep.tsx
|
|
1798
1469
|
function WarningsStep({ warnings, onContinue }) {
|
|
1799
1470
|
useKeybinding("confirm:yes", onContinue, { context: "Confirmation" });
|
|
1800
|
-
return /* @__PURE__ */
|
|
1801
|
-
children: /* @__PURE__ */
|
|
1471
|
+
return /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(jsx_dev_runtime11.Fragment, {
|
|
1472
|
+
children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1802
1473
|
flexDirection: "column",
|
|
1803
1474
|
borderStyle: "round",
|
|
1804
1475
|
paddingX: 1,
|
|
1805
1476
|
children: [
|
|
1806
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1807
1478
|
flexDirection: "column",
|
|
1808
1479
|
marginBottom: 1,
|
|
1809
1480
|
children: [
|
|
1810
|
-
/* @__PURE__ */
|
|
1481
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1811
1482
|
bold: true,
|
|
1812
1483
|
children: [
|
|
1813
1484
|
figures_default.warning,
|
|
1814
1485
|
" Setup Warnings"
|
|
1815
1486
|
]
|
|
1816
1487
|
}, undefined, true, undefined, this),
|
|
1817
|
-
/* @__PURE__ */
|
|
1488
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1818
1489
|
dimColor: true,
|
|
1819
1490
|
children: "We found some potential issues, but you can continue anyway"
|
|
1820
1491
|
}, undefined, false, undefined, this)
|
|
1821
1492
|
]
|
|
1822
1493
|
}, undefined, true, undefined, this),
|
|
1823
|
-
warnings.map((warning, index) => /* @__PURE__ */
|
|
1494
|
+
warnings.map((warning, index) => /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1824
1495
|
flexDirection: "column",
|
|
1825
1496
|
marginBottom: 1,
|
|
1826
1497
|
children: [
|
|
1827
|
-
/* @__PURE__ */
|
|
1498
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1828
1499
|
color: "warning",
|
|
1829
1500
|
bold: true,
|
|
1830
1501
|
children: warning.title
|
|
1831
1502
|
}, undefined, false, undefined, this),
|
|
1832
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1833
1504
|
children: warning.message
|
|
1834
1505
|
}, undefined, false, undefined, this),
|
|
1835
|
-
warning.instructions.length > 0 && /* @__PURE__ */
|
|
1506
|
+
warning.instructions.length > 0 && /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1836
1507
|
flexDirection: "column",
|
|
1837
1508
|
marginLeft: 2,
|
|
1838
1509
|
marginTop: 1,
|
|
1839
|
-
children: warning.instructions.map((instruction, i) => /* @__PURE__ */
|
|
1510
|
+
children: warning.instructions.map((instruction, i) => /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1840
1511
|
dimColor: true,
|
|
1841
1512
|
children: [
|
|
1842
1513
|
"\u2022 ",
|
|
@@ -1846,22 +1517,22 @@ function WarningsStep({ warnings, onContinue }) {
|
|
|
1846
1517
|
}, undefined, false, undefined, this)
|
|
1847
1518
|
]
|
|
1848
1519
|
}, index, true, undefined, this)),
|
|
1849
|
-
/* @__PURE__ */
|
|
1520
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1850
1521
|
marginTop: 1,
|
|
1851
|
-
children: /* @__PURE__ */
|
|
1522
|
+
children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1852
1523
|
bold: true,
|
|
1853
1524
|
color: "permission",
|
|
1854
1525
|
children: "Press Enter to continue anyway, or Ctrl+C to exit and fix issues"
|
|
1855
1526
|
}, undefined, false, undefined, this)
|
|
1856
1527
|
}, undefined, false, undefined, this),
|
|
1857
|
-
/* @__PURE__ */
|
|
1528
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedBox_default, {
|
|
1858
1529
|
marginTop: 1,
|
|
1859
|
-
children: /* @__PURE__ */
|
|
1530
|
+
children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1860
1531
|
dimColor: true,
|
|
1861
1532
|
children: [
|
|
1862
1533
|
"You can also try the manual setup steps if needed:",
|
|
1863
1534
|
" ",
|
|
1864
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ jsx_dev_runtime11.jsxDEV(ThemedText, {
|
|
1865
1536
|
color: "claude",
|
|
1866
1537
|
children: GITHUB_ACTION_SETUP_DOCS_URL
|
|
1867
1538
|
}, undefined, false, undefined, this)
|
|
@@ -1872,28 +1543,28 @@ function WarningsStep({ warnings, onContinue }) {
|
|
|
1872
1543
|
}, undefined, true, undefined, this)
|
|
1873
1544
|
}, undefined, false, undefined, this);
|
|
1874
1545
|
}
|
|
1875
|
-
var
|
|
1546
|
+
var jsx_dev_runtime11;
|
|
1876
1547
|
var init_WarningsStep = __esm(() => {
|
|
1877
1548
|
init_figures();
|
|
1878
1549
|
init_github_app();
|
|
1879
1550
|
init_src();
|
|
1880
1551
|
init_useKeybinding();
|
|
1881
|
-
|
|
1552
|
+
jsx_dev_runtime11 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1882
1553
|
});
|
|
1883
1554
|
|
|
1884
1555
|
// src/commands/install-github-app/install-github-app.tsx
|
|
1885
1556
|
function InstallGitHubApp(props) {
|
|
1886
|
-
const [existingApiKey] =
|
|
1887
|
-
const [state, setState] =
|
|
1557
|
+
const [existingApiKey] = import_react5.useState(() => getAnthropicApiKey());
|
|
1558
|
+
const [state, setState] = import_react5.useState({
|
|
1888
1559
|
...INITIAL_STATE,
|
|
1889
1560
|
useExistingKey: !!existingApiKey,
|
|
1890
|
-
selectedApiKeyOption: existingApiKey ? "existing" :
|
|
1561
|
+
selectedApiKeyOption: existingApiKey ? "existing" : "new"
|
|
1891
1562
|
});
|
|
1892
1563
|
useExitOnCtrlCDWithKeybindings();
|
|
1893
|
-
|
|
1564
|
+
import_react5.default.useEffect(() => {
|
|
1894
1565
|
logEvent("tengu_install_github_app_started", {});
|
|
1895
1566
|
}, []);
|
|
1896
|
-
const checkGitHubCLI =
|
|
1567
|
+
const checkGitHubCLI = import_react5.useCallback(async () => {
|
|
1897
1568
|
const warnings = [];
|
|
1898
1569
|
const ghVersionResult = await execa("gh --version", {
|
|
1899
1570
|
shell: true,
|
|
@@ -1968,12 +1639,12 @@ function InstallGitHubApp(props) {
|
|
|
1968
1639
|
step: warnings.length > 0 ? "warnings" : "choose-repo"
|
|
1969
1640
|
}));
|
|
1970
1641
|
}, []);
|
|
1971
|
-
|
|
1642
|
+
import_react5.default.useEffect(() => {
|
|
1972
1643
|
if (state.step === "check-gh") {
|
|
1973
1644
|
checkGitHubCLI();
|
|
1974
1645
|
}
|
|
1975
1646
|
}, [state.step, checkGitHubCLI]);
|
|
1976
|
-
const runSetupGitHubActions =
|
|
1647
|
+
const runSetupGitHubActions = import_react5.useCallback(async (apiKeyOrOAuthToken, secretName) => {
|
|
1977
1648
|
setState((prev) => ({
|
|
1978
1649
|
...prev,
|
|
1979
1650
|
step: "creating",
|
|
@@ -2289,13 +1960,13 @@ function InstallGitHubApp(props) {
|
|
|
2289
1960
|
const handleApiKeyOptionChange = (option) => {
|
|
2290
1961
|
setState((prev) => ({ ...prev, selectedApiKeyOption: option }));
|
|
2291
1962
|
};
|
|
2292
|
-
const handleCreateOAuthToken =
|
|
1963
|
+
const handleCreateOAuthToken = import_react5.useCallback(() => {
|
|
2293
1964
|
logEvent("tengu_install_github_app_step_completed", {
|
|
2294
1965
|
step: "api-key"
|
|
2295
1966
|
});
|
|
2296
1967
|
setState((prev) => ({ ...prev, step: "oauth-flow" }));
|
|
2297
1968
|
}, []);
|
|
2298
|
-
const handleOAuthSuccess =
|
|
1969
|
+
const handleOAuthSuccess = import_react5.useCallback((token) => {
|
|
2299
1970
|
logEvent("tengu_install_github_app_step_completed", {
|
|
2300
1971
|
step: "oauth-flow"
|
|
2301
1972
|
});
|
|
@@ -2308,7 +1979,7 @@ function InstallGitHubApp(props) {
|
|
|
2308
1979
|
}));
|
|
2309
1980
|
runSetupGitHubActions(token, "CLAUDE_CODE_OAUTH_TOKEN");
|
|
2310
1981
|
}, [runSetupGitHubActions]);
|
|
2311
|
-
const handleOAuthCancel =
|
|
1982
|
+
const handleOAuthCancel = import_react5.useCallback(() => {
|
|
2312
1983
|
setState((prev) => ({ ...prev, step: "api-key" }));
|
|
2313
1984
|
}, []);
|
|
2314
1985
|
const handleSecretNameChange = (value) => {
|
|
@@ -2361,14 +2032,14 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2361
2032
|
}
|
|
2362
2033
|
switch (state.step) {
|
|
2363
2034
|
case "check-gh":
|
|
2364
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(CheckGitHubStep, {}, undefined, false, undefined, this);
|
|
2365
2036
|
case "warnings":
|
|
2366
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(WarningsStep, {
|
|
2367
2038
|
warnings: state.warnings,
|
|
2368
2039
|
onContinue: handleSubmit
|
|
2369
2040
|
}, undefined, false, undefined, this);
|
|
2370
2041
|
case "choose-repo":
|
|
2371
|
-
return /* @__PURE__ */
|
|
2042
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ChooseRepoStep, {
|
|
2372
2043
|
currentRepo: state.currentRepo,
|
|
2373
2044
|
useCurrentRepo: state.useCurrentRepo,
|
|
2374
2045
|
repoUrl: state.selectedRepoName,
|
|
@@ -2377,17 +2048,17 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2377
2048
|
onSubmit: handleSubmit
|
|
2378
2049
|
}, undefined, false, undefined, this);
|
|
2379
2050
|
case "install-app":
|
|
2380
|
-
return /* @__PURE__ */
|
|
2051
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(InstallAppStep, {
|
|
2381
2052
|
repoUrl: state.selectedRepoName,
|
|
2382
2053
|
onSubmit: handleSubmit
|
|
2383
2054
|
}, undefined, false, undefined, this);
|
|
2384
2055
|
case "check-existing-workflow":
|
|
2385
|
-
return /* @__PURE__ */
|
|
2056
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ExistingWorkflowStep, {
|
|
2386
2057
|
repoName: state.selectedRepoName,
|
|
2387
2058
|
onSelectAction: handleWorkflowAction
|
|
2388
2059
|
}, undefined, false, undefined, this);
|
|
2389
2060
|
case "check-existing-secret":
|
|
2390
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(CheckExistingSecretStep, {
|
|
2391
2062
|
useExistingSecret: state.useExistingSecret,
|
|
2392
2063
|
secretName: state.secretName,
|
|
2393
2064
|
onToggleUseExistingSecret: handleToggleUseExistingSecret,
|
|
@@ -2395,19 +2066,19 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2395
2066
|
onSubmit: handleSubmit
|
|
2396
2067
|
}, undefined, false, undefined, this);
|
|
2397
2068
|
case "api-key":
|
|
2398
|
-
return /* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ApiKeyStep, {
|
|
2399
2070
|
existingApiKey,
|
|
2400
2071
|
useExistingKey: state.useExistingKey,
|
|
2401
2072
|
apiKeyOrOAuthToken: state.apiKeyOrOAuthToken,
|
|
2402
2073
|
onApiKeyChange: handleApiKeyChange,
|
|
2403
2074
|
onToggleUseExistingKey: handleToggleUseExistingKey,
|
|
2404
2075
|
onSubmit: handleSubmit,
|
|
2405
|
-
onCreateOAuthToken:
|
|
2076
|
+
onCreateOAuthToken: undefined,
|
|
2406
2077
|
selectedOption: state.selectedApiKeyOption,
|
|
2407
2078
|
onSelectOption: handleApiKeyOptionChange
|
|
2408
2079
|
}, undefined, false, undefined, this);
|
|
2409
2080
|
case "creating":
|
|
2410
|
-
return /* @__PURE__ */
|
|
2081
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(CreatingStep, {
|
|
2411
2082
|
currentWorkflowInstallStep: state.currentWorkflowInstallStep,
|
|
2412
2083
|
secretExists: state.secretExists,
|
|
2413
2084
|
useExistingSecret: state.useExistingSecret,
|
|
@@ -2416,11 +2087,11 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2416
2087
|
selectedWorkflows: state.selectedWorkflows
|
|
2417
2088
|
}, undefined, false, undefined, this);
|
|
2418
2089
|
case "success":
|
|
2419
|
-
return /* @__PURE__ */
|
|
2090
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ThemedBox_default, {
|
|
2420
2091
|
tabIndex: 0,
|
|
2421
2092
|
autoFocus: true,
|
|
2422
2093
|
onKeyDown: handleDismissKeyDown,
|
|
2423
|
-
children: /* @__PURE__ */
|
|
2094
|
+
children: /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(SuccessStep, {
|
|
2424
2095
|
secretExists: state.secretExists,
|
|
2425
2096
|
useExistingSecret: state.useExistingSecret,
|
|
2426
2097
|
secretName: state.secretName,
|
|
@@ -2428,18 +2099,18 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2428
2099
|
}, undefined, false, undefined, this)
|
|
2429
2100
|
}, undefined, false, undefined, this);
|
|
2430
2101
|
case "error":
|
|
2431
|
-
return /* @__PURE__ */
|
|
2102
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ThemedBox_default, {
|
|
2432
2103
|
tabIndex: 0,
|
|
2433
2104
|
autoFocus: true,
|
|
2434
2105
|
onKeyDown: handleDismissKeyDown,
|
|
2435
|
-
children: /* @__PURE__ */
|
|
2106
|
+
children: /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(ErrorStep, {
|
|
2436
2107
|
error: state.error,
|
|
2437
2108
|
errorReason: state.errorReason,
|
|
2438
2109
|
errorInstructions: state.errorInstructions
|
|
2439
2110
|
}, undefined, false, undefined, this)
|
|
2440
2111
|
}, undefined, false, undefined, this);
|
|
2441
2112
|
case "select-workflows":
|
|
2442
|
-
return /* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(WorkflowMultiselectDialog, {
|
|
2443
2114
|
defaultSelections: state.selectedWorkflows,
|
|
2444
2115
|
onSubmit: (selectedWorkflows) => {
|
|
2445
2116
|
logEvent("tengu_install_github_app_step_completed", {
|
|
@@ -2457,18 +2128,16 @@ For manual setup instructions, see: ${GITHUB_ACTION_SETUP_DOCS_URL}`);
|
|
|
2457
2128
|
}
|
|
2458
2129
|
}, undefined, false, undefined, this);
|
|
2459
2130
|
case "oauth-flow":
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
onCancel: handleOAuthCancel
|
|
2463
|
-
}, undefined, false, undefined, this);
|
|
2131
|
+
setState((prev) => ({ ...prev, step: "api-key" }));
|
|
2132
|
+
return null;
|
|
2464
2133
|
}
|
|
2465
2134
|
}
|
|
2466
2135
|
async function call(onDone) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2136
|
+
return /* @__PURE__ */ jsx_dev_runtime12.jsxDEV(InstallGitHubApp, {
|
|
2468
2137
|
onDone
|
|
2469
2138
|
}, undefined, false, undefined, this);
|
|
2470
2139
|
}
|
|
2471
|
-
var
|
|
2140
|
+
var import_react5, jsx_dev_runtime12, INITIAL_STATE;
|
|
2472
2141
|
var init_install_github_app = __esm(() => {
|
|
2473
2142
|
init_execa();
|
|
2474
2143
|
init_analytics();
|
|
@@ -2489,12 +2158,11 @@ var init_install_github_app = __esm(() => {
|
|
|
2489
2158
|
init_ErrorStep();
|
|
2490
2159
|
init_ExistingWorkflowStep();
|
|
2491
2160
|
init_InstallAppStep();
|
|
2492
|
-
init_OAuthFlowStep();
|
|
2493
2161
|
init_SuccessStep();
|
|
2494
2162
|
init_setupGitHubActions();
|
|
2495
2163
|
init_WarningsStep();
|
|
2496
|
-
|
|
2497
|
-
|
|
2164
|
+
import_react5 = __toESM(require_react(), 1);
|
|
2165
|
+
jsx_dev_runtime12 = __toESM(require_jsx_dev_runtime(), 1);
|
|
2498
2166
|
INITIAL_STATE = {
|
|
2499
2167
|
step: "check-gh",
|
|
2500
2168
|
selectedRepoName: "",
|