@qitqode/qitqode-android-arm64 0.1.23 → 0.1.24
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/bundle/{chunk-9zg3y89v.js → chunk-02txthqv.js} +2 -2
- package/bundle/{chunk-q1472d56.js → chunk-0ae5q6ck.js} +2 -2
- package/bundle/chunk-0bvde0cx.js +2 -0
- package/bundle/chunk-0kbxnazj.js +2 -0
- package/bundle/{chunk-ax9yyznf.js → chunk-0pbt75ev.js} +1 -1
- package/bundle/{chunk-8hh5ejmr.js → chunk-0pvbk8ks.js} +2 -2
- package/bundle/{chunk-9jjjzmvn.js → chunk-0rtshz2r.js} +1 -1
- package/bundle/{chunk-8e2wwdgb.js → chunk-0w0jfzb4.js} +1 -1
- package/bundle/{chunk-9y65kbcf.js → chunk-0w4v0fbs.js} +2 -2
- package/bundle/{chunk-fzzze6zd.js → chunk-0z3z0gk1.js} +2 -2
- package/bundle/{chunk-ypff4a5n.js → chunk-17ggas8k.js} +1 -1
- package/bundle/chunk-19z5q33z.js +2 -0
- package/bundle/chunk-1a0wnwna.js +2 -0
- package/bundle/{chunk-3cpqdake.js → chunk-1d64dywx.js} +2 -2
- package/bundle/chunk-1ddm2wxv.js +2 -0
- package/bundle/chunk-1fk4vsmc.js +2 -0
- package/bundle/{chunk-m8tfv36b.js → chunk-1fnmkm0z.js} +2 -2
- package/bundle/chunk-1j2f9nd5.js +2 -0
- package/bundle/{chunk-b2k9yafd.js → chunk-1jh5p5qw.js} +2 -2
- package/bundle/{chunk-0136n3jt.js → chunk-1jsywey3.js} +1 -1
- package/bundle/{chunk-29hmwttd.js → chunk-1p34bx7c.js} +2 -2
- package/bundle/{chunk-m34zrf70.js → chunk-1xyn0sp2.js} +2 -2
- package/bundle/{chunk-g6gs7cc6.js → chunk-1y9t7nxn.js} +1 -1
- package/bundle/{chunk-zx90w4mt.js → chunk-21ejqv4v.js} +1 -1
- package/bundle/chunk-23geekk5.js +3 -0
- package/bundle/chunk-27s736an.js +2 -0
- package/bundle/{chunk-y68fp4kt.js → chunk-2eardzxs.js} +1 -1
- package/bundle/{chunk-jvkqvgae.js → chunk-2gxjjqfx.js} +1 -1
- package/bundle/chunk-2j17xrzj.js +2 -0
- package/bundle/{chunk-dq1wprmb.js → chunk-2mmspnr3.js} +1 -1
- package/bundle/{chunk-m8njvpb8.js → chunk-2qcndbxv.js} +1 -1
- package/bundle/{chunk-z65snfyw.js → chunk-2wp1w8cy.js} +1 -1
- package/bundle/{chunk-agx5m1ev.js → chunk-2y8qz8te.js} +1 -1
- package/bundle/{chunk-9n6f9n1c.js → chunk-2z6fzwyc.js} +2 -2
- package/bundle/chunk-2zca3nak.js +2 -0
- package/bundle/chunk-2zcvcfq4.js +2 -0
- package/bundle/chunk-38hwkfj5.js +2 -0
- package/bundle/chunk-3afqxvsn.js +2 -0
- package/bundle/chunk-3avc1ppg.js +7 -0
- package/bundle/{chunk-yccm7cfm.js → chunk-3nhqd8wg.js} +3 -3
- package/bundle/{chunk-hqv0s6sw.js → chunk-3tdqsm5c.js} +1 -1
- package/bundle/{chunk-0vhsc0yh.js → chunk-3tkp27x7.js} +2 -2
- package/bundle/chunk-3v4vtah1.js +2 -0
- package/bundle/{chunk-cwkdc1cc.js → chunk-3vbtra1j.js} +1 -1
- package/bundle/{chunk-b54t7ycj.js → chunk-3wzqs241.js} +1 -1
- package/bundle/chunk-3ypk0j2f.js +2 -0
- package/bundle/{chunk-jazpapb9.js → chunk-3z1y040p.js} +2 -2
- package/bundle/{chunk-3w60y2x5.js → chunk-453wpzg6.js} +1 -1
- package/bundle/chunk-4aykrj51.js +9 -0
- package/bundle/{chunk-ejy5404v.js → chunk-4d1a547n.js} +1 -1
- package/bundle/chunk-4dtbmqmq.js +2 -0
- package/bundle/{chunk-7pr4jxkn.js → chunk-4k149ews.js} +1 -1
- package/bundle/{chunk-hyr049cr.js → chunk-4kse3awh.js} +1 -1
- package/bundle/chunk-4q9w2yve.js +5 -0
- package/bundle/{chunk-1gg4c0pq.js → chunk-4tn69nqs.js} +1 -1
- package/bundle/chunk-4zjb6rps.js +2 -0
- package/bundle/{chunk-px15ev1g.js → chunk-58enbars.js} +2 -2
- package/bundle/{chunk-07szgr15.js → chunk-5h2hcp46.js} +1 -1
- package/bundle/chunk-5hkcjgwh.js +2 -0
- package/bundle/{chunk-7b69jj5g.js → chunk-5kmfnkzv.js} +1 -1
- package/bundle/{chunk-hvcdemxe.js → chunk-5rkmhzq0.js} +2 -2
- package/bundle/chunk-5snrz263.js +2 -0
- package/bundle/{chunk-erh9y0sx.js → chunk-5y8efy5b.js} +1 -1
- package/bundle/chunk-653c0mxr.js +11 -0
- package/bundle/chunk-6av7hrrk.js +7 -0
- package/bundle/chunk-6bswn7w5.js +2 -0
- package/bundle/{chunk-sgq94p3x.js → chunk-6dxaty1v.js} +1 -1
- package/bundle/chunk-6epghftw.js +2 -0
- package/bundle/{chunk-a3te67a5.js → chunk-6g3m7yxf.js} +2 -2
- package/bundle/{chunk-5x19yah0.js → chunk-6j0365q3.js} +2 -2
- package/bundle/chunk-6jjhxh8p.js +2 -0
- package/bundle/{chunk-101y7ce2.js → chunk-6mscvf6y.js} +1 -1
- package/bundle/{chunk-mj7rk4xs.js → chunk-6nhje520.js} +1 -1
- package/bundle/{chunk-5wr5gpaa.js → chunk-6sdh1q7g.js} +1 -1
- package/bundle/{chunk-bwvjft74.js → chunk-6szvs3k9.js} +1 -1
- package/bundle/chunk-6ws7xyc5.js +2 -0
- package/bundle/{chunk-n889mwgv.js → chunk-78bajmqm.js} +1 -1
- package/bundle/{chunk-3wzpdvpg.js → chunk-7a6p7dfx.js} +1 -1
- package/bundle/{chunk-kfdqfha0.js → chunk-7dckfame.js} +1 -1
- package/bundle/chunk-7g28zhar.js +2 -0
- package/bundle/{chunk-w6t1qmeg.js → chunk-7gczzccz.js} +1 -1
- package/bundle/{chunk-2wcwbp3t.js → chunk-7mhffm9f.js} +199 -198
- package/bundle/{chunk-7bxe5s20.js → chunk-7tgm8wp5.js} +1 -1
- package/bundle/chunk-7v02b2ms.js +2 -0
- package/bundle/chunk-7vmp2034.js +2 -0
- package/bundle/chunk-7wxrypkr.js +2 -0
- package/bundle/{chunk-576zfh1s.js → chunk-7y3y3j51.js} +2 -2
- package/bundle/{chunk-vay29sqp.js → chunk-7yf15a3a.js} +1 -1
- package/bundle/{chunk-qzd0q1jg.js → chunk-82gs5cmn.js} +1 -1
- package/bundle/{chunk-wf2mj6de.js → chunk-84gnbzky.js} +1 -1
- package/bundle/{chunk-3xf7q4ww.js → chunk-8651hq0k.js} +1 -1
- package/bundle/{chunk-g8zrn0at.js → chunk-8717htya.js} +1 -1
- package/bundle/{chunk-b8z4hgq0.js → chunk-8ace31r2.js} +1 -1
- package/bundle/{chunk-2e9a9brg.js → chunk-8cr7ks31.js} +1 -1
- package/bundle/{chunk-3ne6j2h5.js → chunk-8h9r6c8g.js} +2 -2
- package/bundle/chunk-8kk9gvdy.js +2 -0
- package/bundle/{chunk-haw1jzwb.js → chunk-8pe047p0.js} +1 -1
- package/bundle/{chunk-22tf95dw.js → chunk-8r79zf3y.js} +2 -2
- package/bundle/chunk-8ygpp4y3.js +2 -0
- package/bundle/chunk-95q60g1p.js +2 -0
- package/bundle/{chunk-5d18fd4p.js → chunk-9798jffg.js} +1 -1
- package/bundle/{chunk-r0sjwtfc.js → chunk-99n6czag.js} +2 -2
- package/bundle/{chunk-bwgnmy92.js → chunk-9easaxy7.js} +1 -1
- package/bundle/{chunk-wk11xsdh.js → chunk-9f7y0dj0.js} +1 -1
- package/bundle/{chunk-799c17nk.js → chunk-9jf67xb0.js} +2 -2
- package/bundle/chunk-9mjbenja.js +2 -0
- package/bundle/{chunk-381j1hqf.js → chunk-9nx8hm57.js} +1 -1
- package/bundle/{chunk-bqeyh2gx.js → chunk-9pe4agdz.js} +2 -2
- package/bundle/{chunk-k0v37hc6.js → chunk-9rqrm9y8.js} +1 -1
- package/bundle/{chunk-qx9j6nz1.js → chunk-9sy9ws1w.js} +1 -1
- package/bundle/{chunk-62yja34m.js → chunk-9vcw33dv.js} +1 -1
- package/bundle/chunk-9vn1gy8h.js +2 -0
- package/bundle/{chunk-wmmck56g.js → chunk-9xvctnjr.js} +1 -1
- package/bundle/{chunk-apv1v4tk.js → chunk-a5zjrwqy.js} +2 -2
- package/bundle/{chunk-jj7wrfty.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-m3gsrb1x.js → chunk-ac202abt.js} +1 -1
- package/bundle/{chunk-brrtcqrc.js → chunk-agdfqncf.js} +2 -2
- package/bundle/chunk-ajp3f08k.js +2 -0
- package/bundle/{chunk-y0qaz8db.js → chunk-am73j1bt.js} +1 -1
- package/bundle/{chunk-2es79khv.js → chunk-apq38bt4.js} +3 -3
- package/bundle/chunk-aptkpdkc.js +2 -0
- package/bundle/{chunk-7n994qss.js → chunk-b643cra9.js} +211 -211
- package/bundle/{chunk-2e76kpa6.js → chunk-b6m4yyww.js} +1 -1
- package/bundle/{chunk-v1hvnq7y.js → chunk-b8ag61vj.js} +1 -1
- package/bundle/{chunk-k0arcqnt.js → chunk-bas6x25m.js} +2 -2
- package/bundle/{chunk-q6x5bmc3.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/{chunk-fp5mvrrx.js → chunk-bf146hz2.js} +2 -2
- package/bundle/{chunk-s7sksztt.js → chunk-bky5a42k.js} +2 -2
- package/bundle/chunk-bry94ar5.js +2 -0
- package/bundle/chunk-btzyvqkf.js +2 -0
- package/bundle/{chunk-hs8qwx4n.js → chunk-c31k8yh0.js} +1 -1
- package/bundle/chunk-c94pjdfh.js +2 -0
- package/bundle/chunk-cct9ds5c.js +2 -0
- package/bundle/{chunk-3j6nrrva.js → chunk-cesrhm09.js} +1 -1
- package/bundle/{chunk-mwjhyj53.js → chunk-cvchztkc.js} +1 -1
- package/bundle/{chunk-12cd1yj9.js → chunk-cy2586rv.js} +1 -1
- package/bundle/chunk-czn535v0.js +2 -0
- package/bundle/chunk-d56zc21w.js +3 -0
- package/bundle/chunk-d7wd5hz1.js +2 -0
- package/bundle/chunk-d86cmjrp.js +2 -0
- package/bundle/{chunk-t86vj45b.js → chunk-dann9gfq.js} +1 -1
- package/bundle/{chunk-nb0gc3sx.js → chunk-dcx8hjbs.js} +1 -1
- package/bundle/{chunk-p33fchnf.js → chunk-dgzyn27r.js} +1 -1
- package/bundle/{chunk-shav33fq.js → chunk-dkm7x8rj.js} +2 -2
- package/bundle/chunk-dkv2mg97.js +3 -0
- package/bundle/chunk-dnq65xvn.js +2 -0
- package/bundle/chunk-dpqv8rtn.js +2 -0
- package/bundle/chunk-e346x00p.js +10 -0
- package/bundle/chunk-e9mh7s3z.js +2 -0
- package/bundle/{chunk-26m5yn5d.js → chunk-ebjhggdw.js} +1 -1
- package/bundle/{chunk-ntfh16rj.js → chunk-ecwz9nhs.js} +2 -2
- package/bundle/{chunk-jge74hh4.js → chunk-edvcz2gd.js} +1 -1
- package/bundle/chunk-ek2y5f6g.js +2 -0
- package/bundle/{chunk-dsny9dh8.js → chunk-ep8zn49w.js} +2 -2
- package/bundle/chunk-epdsay73.js +2 -0
- package/bundle/{chunk-y3qf1kg9.js → chunk-evqxvhdb.js} +1 -1
- package/bundle/{chunk-58w4dhb6.js → chunk-ewyk4py6.js} +1 -1
- package/bundle/{chunk-scb48j07.js → chunk-f3kjp838.js} +2 -2
- package/bundle/{chunk-3w9k7yxx.js → chunk-f819a7ec.js} +1 -1
- package/bundle/chunk-f89gntcy.js +3 -0
- package/bundle/{chunk-eqed7tvt.js → chunk-fdezde1z.js} +1 -1
- package/bundle/chunk-ffnsn7tv.js +2 -0
- package/bundle/{chunk-7tb9fjvq.js → chunk-fhng5her.js} +2 -2
- package/bundle/chunk-fkezc7ew.js +2 -0
- package/bundle/{chunk-88kt6qmd.js → chunk-fkvccmgk.js} +2 -2
- package/bundle/{chunk-k5294ajv.js → chunk-fm4xa6yx.js} +2 -2
- package/bundle/{chunk-fhjpfzjc.js → chunk-frdc3ysq.js} +1 -1
- package/bundle/chunk-fsxddgj0.js +2 -0
- package/bundle/{chunk-kbhby60s.js → chunk-ftk58wxe.js} +1 -1
- package/bundle/{chunk-shxny9x9.js → chunk-g0v9g37f.js} +1 -1
- package/bundle/{chunk-afpwjn78.js → chunk-g7vkkmsk.js} +3 -3
- package/bundle/chunk-gbcsfg6v.js +2 -0
- package/bundle/{chunk-y2h0adg5.js → chunk-gc9q0x8z.js} +3 -3
- package/bundle/{chunk-s75chpxq.js → chunk-gen6f3dn.js} +2 -2
- package/bundle/{chunk-1eg8mr1q.js → chunk-gf4ek7rv.js} +1 -1
- package/bundle/{chunk-1w8b88y5.js → chunk-gff87y4n.js} +1 -1
- package/bundle/chunk-gfmz85hp.js +2 -0
- package/bundle/chunk-gk63k4t6.js +2 -0
- package/bundle/{chunk-g7742sqm.js → chunk-gn7xgd4c.js} +1 -1
- package/bundle/{chunk-6j07cgna.js → chunk-gn9p1d50.js} +1 -1
- package/bundle/{chunk-yyarzhw3.js → chunk-gvzfffr4.js} +1 -1
- package/bundle/{chunk-zeh3mjgp.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/{chunk-vxc5q0wk.js → chunk-hbnr0j7h.js} +2 -2
- package/bundle/chunk-hg563h5r.js +3 -0
- package/bundle/{chunk-8k4mkrdw.js → chunk-hg9nk090.js} +1 -1
- package/bundle/{chunk-gjsaw7wm.js → chunk-hh3w51wp.js} +2 -2
- package/bundle/{chunk-naq602da.js → chunk-hh4c02fh.js} +1 -1
- package/bundle/{chunk-k1ht1sjr.js → chunk-hh9a709t.js} +1 -1
- package/bundle/{chunk-7tthc48p.js → chunk-hjbks7r9.js} +1 -1
- package/bundle/{chunk-ky840wjj.js → chunk-hqg5qbxk.js} +1 -1
- package/bundle/{chunk-0svy8w30.js → chunk-hv4nhx6q.js} +2 -2
- package/bundle/{chunk-26mt118z.js → chunk-hxgb0y1w.js} +1 -1
- package/bundle/chunk-j0vf8s12.js +2 -0
- package/bundle/chunk-j1a64ade.js +3 -0
- package/bundle/chunk-j1bxt69x.js +2 -0
- package/bundle/{chunk-t42kh492.js → chunk-j1veq3zr.js} +2 -2
- package/bundle/{chunk-c38ppnm8.js → chunk-jbd9k041.js} +2 -2
- package/bundle/chunk-jcem8s30.js +2 -0
- package/bundle/{chunk-z1hd38wp.js → chunk-jegn6jc3.js} +2 -2
- package/bundle/chunk-jjwjb9w0.js +3 -0
- package/bundle/{chunk-87pzwjjj.js → chunk-jmjg8d8a.js} +4 -4
- package/bundle/chunk-jpham2a3.js +2 -0
- package/bundle/{chunk-jq6y56m5.js → chunk-jpygkh1c.js} +1 -1
- package/bundle/{chunk-rwanncah.js → chunk-jr8qcf99.js} +2 -2
- package/bundle/{chunk-rmmyjyr9.js → chunk-jr9xnvjq.js} +1 -1
- package/bundle/{chunk-t66hycva.js → chunk-jz3aav8a.js} +2 -2
- package/bundle/chunk-jzkymnr5.js +2 -0
- package/bundle/chunk-k0qtwnhb.js +2 -0
- package/bundle/{chunk-bkaprkf6.js → chunk-k16hzy2q.js} +1 -1
- package/bundle/chunk-k2rsky7z.js +2 -0
- package/bundle/{chunk-an5sr6gw.js → chunk-k9d927xe.js} +1 -1
- package/bundle/{chunk-cz8nnm2a.js → chunk-k9g77a02.js} +1 -1
- package/bundle/{chunk-sjqgmp12.js → chunk-kaeyhw2n.js} +2 -2
- package/bundle/{chunk-kpkbyek5.js → chunk-kc3hpmr2.js} +2 -2
- package/bundle/chunk-kcetcysa.js +2 -0
- package/bundle/chunk-kjfc5v3s.js +2 -0
- package/bundle/chunk-kkvb2c2z.js +8 -0
- package/bundle/chunk-km2ayfyf.js +2 -0
- package/bundle/chunk-knrh89eb.js +2 -0
- package/bundle/{chunk-g0vzdt58.js → chunk-kr0fsqas.js} +1 -1
- package/bundle/chunk-ksqfjawv.js +2 -0
- package/bundle/{chunk-863s0tqa.js → chunk-ktmazmas.js} +2 -2
- package/bundle/{chunk-c4x99ayd.js → chunk-m8djypsy.js} +1 -1
- package/bundle/{chunk-qr2ave8f.js → chunk-mj24ntn9.js} +1 -1
- package/bundle/chunk-mjhb1q0n.js +3 -0
- package/bundle/{chunk-c546xxjk.js → chunk-ms1fd6h4.js} +1 -1
- package/bundle/chunk-mxcger73.js +2 -0
- package/bundle/{chunk-tfpwfczs.js → chunk-n1chdwrs.js} +1 -1
- package/bundle/{chunk-mt8btwrv.js → chunk-najzfhb2.js} +1 -1
- package/bundle/chunk-nazkrkeb.js +2 -0
- package/bundle/chunk-nk01s49e.js +2 -0
- package/bundle/{chunk-9tq5yt3t.js → chunk-ns0pswww.js} +1 -1
- package/bundle/chunk-ns8b7rx1.js +2 -0
- package/bundle/chunk-ny6vpkx2.js +2 -0
- package/bundle/{chunk-qkn4039t.js → chunk-p4hpr8d7.js} +1 -1
- package/bundle/{chunk-n1m5qdf5.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-q1nvfmrm.js → chunk-pb7rnkke.js} +1 -1
- package/bundle/{chunk-70gfpkxv.js → chunk-pfhp78cr.js} +1 -1
- package/bundle/{chunk-y2r3zker.js → chunk-ps543k72.js} +1 -1
- package/bundle/{chunk-w9vv1whr.js → chunk-pv8jcpnf.js} +1 -1
- package/bundle/{chunk-9yaw0hbp.js → chunk-pyq01301.js} +1 -1
- package/bundle/chunk-q0dd3ak6.js +3 -0
- package/bundle/chunk-q2s057bm.js +2 -0
- package/bundle/{chunk-2qy760rf.js → chunk-q3x4x2tq.js} +1 -1
- package/bundle/chunk-q5cqg2c0.js +28 -0
- package/bundle/{chunk-kktcccep.js → chunk-q6fbyvpq.js} +1 -1
- package/bundle/chunk-qk2wnp2x.js +2 -0
- package/bundle/{chunk-05badzhy.js → chunk-qw2hgs5b.js} +2 -2
- package/bundle/{chunk-5dpev64z.js → chunk-qywwj58s.js} +2 -2
- package/bundle/chunk-r012q335.js +3 -0
- package/bundle/{chunk-5vyper2h.js → chunk-r3yqe7x0.js} +1 -1
- package/bundle/{chunk-xqzbcs8x.js → chunk-r48g0kaq.js} +2 -2
- package/bundle/{chunk-22vvjp4g.js → chunk-r7xp0xcn.js} +2 -2
- package/bundle/chunk-rbdjbgkb.js +2 -0
- package/bundle/{chunk-m81z3zgm.js → chunk-rvvfs9ps.js} +2 -2
- package/bundle/chunk-rxjprhgh.js +2 -0
- package/bundle/chunk-s3w9bmze.js +2 -0
- package/bundle/chunk-s3zste1a.js +2 -0
- package/bundle/{chunk-f958hsha.js → chunk-s9amvacw.js} +2 -2
- package/bundle/chunk-sbt7qmwm.js +3 -0
- package/bundle/chunk-sf6h44pb.js +2 -0
- package/bundle/{chunk-kn9skc0g.js → chunk-sgtgvzv6.js} +1 -1
- package/bundle/chunk-sgvzxs7m.js +2 -0
- package/bundle/{chunk-ac69b9tm.js → chunk-sjrmhd3e.js} +1 -1
- package/bundle/chunk-sp9bndyh.js +2 -0
- package/bundle/{chunk-7m4camry.js → chunk-spm1yy6w.js} +1 -1
- package/bundle/{chunk-xtj5qqsw.js → chunk-srf73nm4.js} +1 -1
- package/bundle/{chunk-fnect0ny.js → chunk-sswbfqcq.js} +1 -1
- package/bundle/{chunk-zzdbrxkh.js → chunk-t488d66k.js} +1 -1
- package/bundle/{chunk-w6zgm4vn.js → chunk-t6w96xq2.js} +1 -1
- package/bundle/{chunk-xjr0xy58.js → chunk-te1zfpzv.js} +1 -1
- package/bundle/{chunk-mwbcmvmh.js → chunk-tk3bve0x.js} +2 -2
- package/bundle/chunk-tsn1jkr7.js +2 -0
- package/bundle/{chunk-dn1jryxz.js → chunk-tzc4jkzg.js} +1 -1
- package/bundle/{chunk-kdr6nxmk.js → chunk-v2kyarwz.js} +2 -2
- package/bundle/{chunk-mg03szpz.js → chunk-v7r9np94.js} +1 -1
- package/bundle/{chunk-my0kzcby.js → chunk-va4davgy.js} +317 -297
- package/bundle/{chunk-febbrhev.js → chunk-vavrczqm.js} +1 -1
- package/bundle/{chunk-hk1ha5fj.js → chunk-ve5gb789.js} +2 -2
- package/bundle/{chunk-ar1by07g.js → chunk-vf1r5ckp.js} +1 -1
- package/bundle/{chunk-hnzs3ywg.js → chunk-vftqwdpg.js} +1 -1
- package/bundle/chunk-vg4styg5.js +2 -0
- package/bundle/chunk-vh09hhcs.js +2 -0
- package/bundle/chunk-vhktpm0n.js +2 -0
- package/bundle/{chunk-36c2avm4.js → chunk-vvypb02q.js} +1 -1
- package/bundle/{chunk-g6tw5dvr.js → chunk-vzjcmwry.js} +2 -2
- package/bundle/{chunk-fvwys8ej.js → chunk-w1atxyz0.js} +1 -1
- package/bundle/{chunk-44amvtcs.js → chunk-w7p2x973.js} +2 -2
- package/bundle/{chunk-ecczet3b.js → chunk-wa2ce2sg.js} +2 -2
- package/bundle/{chunk-24r5h0fx.js → chunk-wf09j72q.js} +2 -2
- package/bundle/{chunk-w8r4gjea.js → chunk-wfnk2vsd.js} +1 -1
- package/bundle/{chunk-1vx26nt2.js → chunk-wj6aq50n.js} +1 -1
- package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
- package/bundle/{chunk-cbfjjbfd.js → chunk-wmw2gne9.js} +2 -2
- package/bundle/chunk-wtp0yvqw.js +2 -0
- package/bundle/{chunk-g7g3zm4v.js → chunk-x6z2b63w.js} +1 -1
- package/bundle/{chunk-g5g9r3v5.js → chunk-xccs5c50.js} +1 -1
- package/bundle/{chunk-2adsn1ca.js → chunk-xj73j10a.js} +1 -1
- package/bundle/chunk-xmzs7q66.js +2 -0
- package/bundle/chunk-xv80476w.js +2 -0
- package/bundle/{chunk-gz8x3915.js → chunk-xv8gnkh5.js} +1 -1
- package/bundle/{chunk-g2ec45xj.js → chunk-y1srca0c.js} +2 -2
- package/bundle/{chunk-gzse9pab.js → chunk-y2jmtfdh.js} +2 -2
- package/bundle/{chunk-c7dt464m.js → chunk-y3n31nnx.js} +2 -2
- package/bundle/{chunk-2qj66wf5.js → chunk-ygj1cy0n.js} +1 -1
- package/bundle/{chunk-k3pvgwgc.js → chunk-yh174jhg.js} +2 -2
- package/bundle/chunk-yjvr0et1.js +2 -0
- package/bundle/{chunk-63pvqy8n.js → chunk-yz7rqzby.js} +3 -3
- package/bundle/{chunk-w32tj884.js → chunk-yzdty5t9.js} +2 -2
- package/bundle/{chunk-yffkcska.js → chunk-zavtsfxz.js} +1 -1
- package/bundle/{chunk-y62tnk9q.js → chunk-zeh481tm.js} +2 -2
- package/bundle/{chunk-cn7nnjsf.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/{chunk-tydvpy1s.js → chunk-zk8n8hnh.js} +2 -2
- package/bundle/{chunk-agyxa9nj.js → chunk-zp2ffbc2.js} +2 -2
- package/bundle/chunk-zx3kcfkj.js +2 -0
- package/bundle/index.js +4 -4
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-1by6y9tm.js +0 -2
- package/bundle/chunk-1gjh45v5.js +0 -9
- package/bundle/chunk-1p7wqmxp.js +0 -2
- package/bundle/chunk-1v47v7vm.js +0 -3
- package/bundle/chunk-21hnx8rx.js +0 -24
- package/bundle/chunk-22pvftx8.js +0 -2
- package/bundle/chunk-2bce1njy.js +0 -2
- package/bundle/chunk-338hbnza.js +0 -11
- package/bundle/chunk-3gsvbfqz.js +0 -2
- package/bundle/chunk-3sem578c.js +0 -3
- package/bundle/chunk-3vgnqaem.js +0 -2
- package/bundle/chunk-3xrhxyz9.js +0 -2
- package/bundle/chunk-3zdyrnvp.js +0 -2
- package/bundle/chunk-4nhbgva1.js +0 -2
- package/bundle/chunk-5ch23jj3.js +0 -2
- package/bundle/chunk-5hzkd9te.js +0 -2
- package/bundle/chunk-5vwhfa42.js +0 -2
- package/bundle/chunk-662x3gq6.js +0 -2
- package/bundle/chunk-6an0pk19.js +0 -2
- package/bundle/chunk-6ybqwnp7.js +0 -2
- package/bundle/chunk-7365jzj1.js +0 -2
- package/bundle/chunk-7amvpgng.js +0 -2
- package/bundle/chunk-7dcz5ytp.js +0 -2
- package/bundle/chunk-7h7bwjmm.js +0 -2
- package/bundle/chunk-7vk5fhhv.js +0 -2
- package/bundle/chunk-7vqw9wge.js +0 -2
- package/bundle/chunk-7vxk5t11.js +0 -2
- package/bundle/chunk-83fm5xcn.js +0 -2
- package/bundle/chunk-8b644ae2.js +0 -2
- package/bundle/chunk-av2q0ffj.js +0 -2
- package/bundle/chunk-avk3wfch.js +0 -7
- package/bundle/chunk-azna4wdf.js +0 -2
- package/bundle/chunk-b192q4m0.js +0 -2
- package/bundle/chunk-bh46627y.js +0 -2
- package/bundle/chunk-c267ggx2.js +0 -2
- package/bundle/chunk-c6kxegws.js +0 -2
- package/bundle/chunk-cek3cfz4.js +0 -2
- package/bundle/chunk-ete0y35c.js +0 -2
- package/bundle/chunk-f1mmzzsn.js +0 -2
- package/bundle/chunk-f66cvq2q.js +0 -2
- package/bundle/chunk-fd1vbz1f.js +0 -3
- package/bundle/chunk-fq4v97xn.js +0 -2
- package/bundle/chunk-fw1f6br4.js +0 -2
- package/bundle/chunk-g3pb8rad.js +0 -2
- package/bundle/chunk-gc1yetqd.js +0 -2
- package/bundle/chunk-gtckkn15.js +0 -2
- package/bundle/chunk-gtzreftf.js +0 -2
- package/bundle/chunk-hg7kfd0t.js +0 -3
- package/bundle/chunk-j5vahbw1.js +0 -2
- package/bundle/chunk-jek1cnfk.js +0 -3
- package/bundle/chunk-jevrajsx.js +0 -2
- package/bundle/chunk-jzdks7bv.js +0 -2
- package/bundle/chunk-k1e7w7w5.js +0 -2
- package/bundle/chunk-k33xx2z9.js +0 -2
- package/bundle/chunk-k6vf6vq6.js +0 -2
- package/bundle/chunk-kn391hb2.js +0 -2
- package/bundle/chunk-knmba0q6.js +0 -2
- package/bundle/chunk-knnemqfm.js +0 -3
- package/bundle/chunk-kx4b39v6.js +0 -2
- package/bundle/chunk-mah572rs.js +0 -2
- package/bundle/chunk-mg6nwfw3.js +0 -2
- package/bundle/chunk-pdgrang4.js +0 -2
- package/bundle/chunk-r3q82hz3.js +0 -2
- package/bundle/chunk-r4ygs0jv.js +0 -2
- package/bundle/chunk-r6xhxvjv.js +0 -2
- package/bundle/chunk-r79mz5kd.js +0 -5
- package/bundle/chunk-r99pnfra.js +0 -2
- package/bundle/chunk-rjjgnvdk.js +0 -2
- package/bundle/chunk-rq4xdyst.js +0 -2
- package/bundle/chunk-rsd3v7cg.js +0 -2
- package/bundle/chunk-rxsgbdv0.js +0 -2
- package/bundle/chunk-s4x1jhj3.js +0 -2
- package/bundle/chunk-sx760d9d.js +0 -2
- package/bundle/chunk-tmjd3evp.js +0 -8
- package/bundle/chunk-tp1d856p.js +0 -2
- package/bundle/chunk-tpxs00p5.js +0 -2
- package/bundle/chunk-tqk12r89.js +0 -2
- package/bundle/chunk-tycgrqgq.js +0 -2
- package/bundle/chunk-tz8qhbk9.js +0 -3
- package/bundle/chunk-v1y3pbfv.js +0 -2
- package/bundle/chunk-v32cyrg2.js +0 -2
- package/bundle/chunk-v7pypmvk.js +0 -2
- package/bundle/chunk-vbqyddy8.js +0 -2
- package/bundle/chunk-vgx86f2r.js +0 -2
- package/bundle/chunk-w0jvqdez.js +0 -2
- package/bundle/chunk-w79yek40.js +0 -2
- package/bundle/chunk-w7nxsfbd.js +0 -3
- package/bundle/chunk-wcea06cr.js +0 -2
- package/bundle/chunk-wcx4bbvn.js +0 -2
- package/bundle/chunk-wdw183vh.js +0 -2
- package/bundle/chunk-wqd3svh6.js +0 -2
- package/bundle/chunk-wqe5spdq.js +0 -2
- package/bundle/chunk-wqww2byk.js +0 -2
- package/bundle/chunk-wybd806z.js +0 -2
- package/bundle/chunk-x1vb00hr.js +0 -2
- package/bundle/chunk-xafh07r3.js +0 -2
- package/bundle/chunk-xgzjcsad.js +0 -2
- package/bundle/chunk-xn0xhd0w.js +0 -3
- package/bundle/chunk-xnbfy5jy.js +0 -2
- package/bundle/chunk-xxed39zx.js +0 -3
- package/bundle/chunk-y6pzag4n.js +0 -2
- package/bundle/chunk-y7w6fjwt.js +0 -2
- package/bundle/chunk-yr4evt94.js +0 -7
- package/bundle/chunk-z195gv71.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{zd as W$}from"./chunk-xqzbcs8x.js";import{Bd as j$}from"./chunk-t66hycva.js";import{Od as A$}from"./chunk-wmmck56g.js";import{Lf as J$}from"./chunk-9zg3y89v.js";import{Zf as Z$}from"./chunk-g6tw5dvr.js";import"./chunk-5x19yah0.js";import"./chunk-576zfh1s.js";import"./chunk-1gjh45v5.js";import"./chunk-w7nxsfbd.js";import"./chunk-nfg7nt13.js";import"./chunk-863s0tqa.js";import"./chunk-5dpev64z.js";import{gh as hD,qh as MD}from"./chunk-my0kzcby.js";import"./chunk-1v47v7vm.js";import{Bh as X$}from"./chunk-tmjd3evp.js";import"./chunk-q6x5bmc3.js";import"./chunk-n1m5qdf5.js";import"./chunk-zeh3mjgp.js";import"./chunk-ntfh16rj.js";import"./chunk-tz8qhbk9.js";import"./chunk-hvcdemxe.js";import{Uk as _$,Vk as U,Xk as G$,_j as sD,ek as k,fk as P}from"./chunk-2wcwbp3t.js";import"./chunk-3sem578c.js";import"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import"./chunk-c4x99ayd.js";import"./chunk-44amvtcs.js";import"./chunk-cbfjjbfd.js";import"./chunk-c7dt464m.js";import"./chunk-jazpapb9.js";import{qp as Y$}from"./chunk-knnemqfm.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-7tb9fjvq.js";import"./chunk-fp5mvrrx.js";import{Nq as f$}from"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-w32tj884.js";import"./chunk-29hmwttd.js";import"./chunk-2qy760rf.js";import"./chunk-kfdqfha0.js";import"./chunk-t42kh492.js";import"./chunk-8hh5ejmr.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-vxc5q0wk.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-k33xx2z9.js";import{Is as Q$,at as w$,ot as H}from"./chunk-tydvpy1s.js";import{It as kD}from"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import{Eu as D}from"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-bqeyh2gx.js";import"./chunk-kpkbyek5.js";import{pP as ow}from"./chunk-naq602da.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
|
|
2
|
+
import{Ad as W$}from"./chunk-r48g0kaq.js";import{Cd as j$}from"./chunk-jz3aav8a.js";import{Pd as A$}from"./chunk-9xvctnjr.js";import{Mf as J$}from"./chunk-02txthqv.js";import{_f as Z$}from"./chunk-vzjcmwry.js";import"./chunk-6j0365q3.js";import"./chunk-7y3y3j51.js";import"./chunk-4aykrj51.js";import"./chunk-sbt7qmwm.js";import"./chunk-nfg7nt13.js";import"./chunk-ktmazmas.js";import"./chunk-qywwj58s.js";import{ih as hD,sh as MD}from"./chunk-va4davgy.js";import"./chunk-hg563h5r.js";import"./chunk-j1a64ade.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-ecwz9nhs.js";import"./chunk-5rkmhzq0.js";import{$j as P,Sk as _$,Tk as U,Uj as sD,Vk as G$,_j as k}from"./chunk-7mhffm9f.js";import"./chunk-r012q335.js";import"./chunk-0z3z0gk1.js";import"./chunk-g7vkkmsk.js";import"./chunk-m8djypsy.js";import"./chunk-w7p2x973.js";import"./chunk-wmw2gne9.js";import"./chunk-y3n31nnx.js";import"./chunk-3z1y040p.js";import{mp as X$,pp as Y$}from"./chunk-kkvb2c2z.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-fhng5her.js";import"./chunk-dkv2mg97.js";import"./chunk-bf146hz2.js";import{Yq as f$}from"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import"./chunk-yzdty5t9.js";import"./chunk-1p34bx7c.js";import"./chunk-q3x4x2tq.js";import"./chunk-7dckfame.js";import"./chunk-j1veq3zr.js";import"./chunk-0pvbk8ks.js";import"./chunk-tk3bve0x.js";import"./chunk-0w4v0fbs.js";import"./chunk-wf09j72q.js";import"./chunk-hbnr0j7h.js";import"./chunk-ep8zn49w.js";import"./chunk-f3kjp838.js";import"./chunk-tsn1jkr7.js";import{Ts as Q$,lt as w$,zt as H}from"./chunk-zk8n8hnh.js";import{Tt as kD}from"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import{Pu as D}from"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import"./chunk-dkm7x8rj.js";import"./chunk-9pe4agdz.js";import"./chunk-kc3hpmr2.js";import{AP as ow}from"./chunk-hh4c02fh.js";var O={authenticate:"authenticate",initialize:"initialize",session_cancel:"session/cancel",session_close:"session/close",session_fork:"session/fork",session_list:"session/list",session_load:"session/load",session_new:"session/new",session_prompt:"session/prompt",session_resume:"session/resume",session_set_config_option:"session/set_config_option",session_set_mode:"session/set_mode",session_set_model:"session/set_model"},F={fs_read_text_file:"fs/read_text_file",fs_write_text_file:"fs/write_text_file",session_request_permission:"session/request_permission",session_update:"session/update",terminal_create:"terminal/create",terminal_kill:"terminal/kill",terminal_output:"terminal/output",terminal_release:"terminal/release",terminal_wait_for_exit:"terminal/wait_for_exit"};var K$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminal:D.boolean().optional().default(!1)}),B$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),label:D.string().nullish(),name:D.string(),optional:D.boolean().optional().default(!1),secret:D.boolean().optional().default(!0)}),O$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),name:D.string()}),N$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:D.string(),link:D.string().nullish(),name:D.string(),vars:D.array(B$)}),F$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),description:D.string().nullish(),env:D.record(D.string(),D.string()).optional(),id:D.string(),name:D.string()}),L$=D.union([N$.and(D.object({type:D.literal("env_var")})),F$.and(D.object({type:D.literal("terminal")})),O$]),n=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),methodId:D.string()}),x$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),V$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),blob:D.string(),mimeType:D.string().nullish(),uri:D.string()}),H$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),P$=D.object({amount:D.number(),currency:D.string()}),k$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),T$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),newText:D.string(),oldText:D.string().nullish(),path:D.string()}),vD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),U$=D.union([D.literal(-32700),D.literal(-32600),D.literal(-32601),D.literal(-32602),D.literal(-32603),D.literal(-32800),D.literal(-32000),D.literal(-32002),D.number().int().min(-2147483648,{message:"Invalid value: Expected int32 to be >= -2147483648"}).max(2147483647,{message:"Invalid value: Expected int32 to be <= 2147483647"})]),ID=D.object({code:U$,data:D.unknown().optional(),message:D.string()}),qD=D.unknown(),SD=D.unknown(),RD=D.unknown(),b$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),readTextFile:D.boolean().optional().default(!1),writeTextFile:D.boolean().optional().default(!1)}),h$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),auth:K$.optional().default({terminal:!1}),fs:b$.optional().default({readTextFile:!1,writeTextFile:!1}),terminal:D.boolean().optional().default(!1)}),cD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),value:D.string()}),uD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),name:D.string(),title:D.string().nullish(),version:D.string()}),M$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),t=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cursor:D.string().nullish(),cwd:D.string().nullish()}),C$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),http:D.boolean().optional().default(!1),sse:D.boolean().optional().default(!1)}),E$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),v$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),headers:D.array(cD),name:D.string(),url:D.string()}),I$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()),command:D.string(),env:D.array(vD),name:D.string()}),I=D.union([E$.and(D.object({type:D.literal("http")})),v$.and(D.object({type:D.literal("sse")})),I$]),o=D.string(),q$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),modelId:o,name:D.string()}),r=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I)}),gD=D.string(),S$=D.union([D.literal("allow_once"),D.literal("allow_always"),D.literal("reject_once"),D.literal("reject_always")]),R$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),kind:S$,name:D.string(),optionId:gD}),c$=D.union([D.literal("high"),D.literal("medium"),D.literal("low")]),u$=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed")]),g$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),priority:c$,status:u$}),l$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),entries:D.array(g$)}),d$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audio:D.boolean().optional().default(!1),embeddedContext:D.boolean().optional().default(!1),image:D.boolean().optional().default(!1)}),lD=D.number().int().gte(0).lte(65535),z=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),clientCapabilities:h$.optional().default({auth:{terminal:!1},fs:{readTextFile:!1,writeTextFile:!1},terminal:!1}),clientInfo:uD.nullish(),protocolVersion:lD}),i$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string()}),m$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),T=D.union([D.number(),D.string()]).nullable(),sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),requestId:T}),p$=D.enum(["assistant","user"]),E=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),audience:D.array(p$).nullish(),lastModified:D.string().nullish(),priority:D.number().nullish()}),n$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string()}),t$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),data:D.string(),mimeType:D.string(),uri:D.string().nullish()}),o$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),description:D.string().nullish(),mimeType:D.string().nullish(),name:D.string(),size:D.number().nullish(),title:D.string().nullish(),uri:D.string()}),r$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),optionId:gD}),z$=D.union([D.object({outcome:D.literal("cancelled")}),r$.and(D.object({outcome:D.literal("selected")}))]),a$=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),outcome:z$}),s$=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),e$=D.object({currentValue:D.boolean()}),Dw=D.string(),dD=D.string(),$w=D.union([D.literal("mode"),D.literal("model"),D.literal("thought_level"),D.string()]),a=D.string(),iD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),name:D.string(),value:a}),ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),group:Dw,name:D.string(),options:D.array(iD)}),Qw=D.union([D.array(iD),D.array(ww)]),fw=D.object({currentValue:a,options:Qw}),M=D.intersection(D.union([fw.and(D.object({type:D.literal("select")})),e$.and(D.object({type:D.literal("boolean")}))]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),category:$w.nullish(),description:D.string().nullish(),id:dD,name:D.string()})),_w=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),Gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),N=D.string(),s=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),ew=D.object({method:D.string(),params:D.union([s,qD]).nullish()}),e=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N}),DD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),args:D.array(D.string()).optional(),command:D.string(),cwd:D.string().nullish(),env:D.array(vD).optional(),outputByteLimit:D.number().nullish(),sessionId:N}),$D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),wD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),QD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I),sessionId:N}),fD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),limit:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string(),sessionId:N}),_D=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),GD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),mcpServers:D.array(I).optional(),sessionId:N}),Jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cwd:D.string(),sessionId:N,title:D.string().nullish(),updatedAt:D.string().nullish()}),Xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),nextCursor:D.string().nullish(),sessions:D.array(Jw)}),Yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),title:D.string().nullish(),updatedAt:D.string().nullish()}),Zw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),q=D.string(),jw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),currentModeId:q}),Aw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string().nullish(),id:q,name:D.string()}),S=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModes:D.array(Aw),currentModeId:q}),R=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableModels:D.array(q$),currentModelId:o}),Ww=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),yw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish(),sessionId:N}),Bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M).nullish(),models:R.nullish(),modes:S.nullish()}),Ow=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Nw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),close:s$.nullish(),fork:Gw.nullish(),list:Zw.nullish(),resume:Ow.nullish()}),Fw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),loadSession:D.boolean().optional().default(!1),mcpCapabilities:C$.optional().default({http:!1,sse:!1}),promptCapabilities:d$.optional().default({audio:!1,embeddedContext:!1,image:!1}),sessionCapabilities:Nw.optional().default({})}),Lw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),agentCapabilities:Fw.optional().default({loadSession:!1,mcpCapabilities:{http:!1,sse:!1},promptCapabilities:{audio:!1,embeddedContext:!1,image:!1},sessionCapabilities:{}}),agentInfo:uD.nullish(),authMethods:D.array(L$).optional().default([]),protocolVersion:lD}),JD=D.intersection(D.union([D.object({type:D.literal("boolean"),value:D.boolean()}),D.object({value:a})]),D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configId:dD,sessionId:N})),xw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),configOptions:D.array(M)}),XD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modeId:q,sessionId:N}),Vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),YD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),modelId:o,sessionId:N}),Hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),Pw=D.union([D.literal("end_turn"),D.literal("max_tokens"),D.literal("max_turn_requests"),D.literal("refusal"),D.literal("cancelled")]),kw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),terminalId:D.string()}),Tw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),ZD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),Uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitStatus:Tw.nullish(),output:D.string(),truncated:D.boolean()}),bw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),text:D.string()}),hw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),mimeType:D.string().nullish(),text:D.string(),uri:D.string()}),Mw=D.union([hw,V$]),Cw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),annotations:E.nullish(),resource:Mw}),jD=D.union([bw.and(D.object({type:D.literal("text")})),t$.and(D.object({type:D.literal("image")})),n$.and(D.object({type:D.literal("audio")})),o$.and(D.object({type:D.literal("resource_link")})),Cw.and(D.object({type:D.literal("resource")}))]),Ew=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD}),p=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:jD,messageId:D.string().nullish()}),AD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),messageId:D.string().nullish(),prompt:D.array(jD),sessionId:N}),DQ=D.object({id:T,method:D.string(),params:D.union([z,n,r,QD,t,$D,GD,e,XD,JD,AD,YD,SD]).nullish()}),mD=D.union([Ew.and(D.object({type:D.literal("content")})),T$.and(D.object({type:D.literal("diff")})),kw.and(D.object({type:D.literal("terminal")}))]),pD=D.string(),nD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),line:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),path:D.string()}),tD=D.union([D.literal("pending"),D.literal("in_progress"),D.literal("completed"),D.literal("failed")]),oD=D.union([D.literal("read"),D.literal("edit"),D.literal("delete"),D.literal("move"),D.literal("search"),D.literal("execute"),D.literal("think"),D.literal("fetch"),D.literal("switch_mode"),D.literal("other")]),vw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).optional(),kind:oD.optional(),locations:D.array(nD).optional(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.optional(),title:D.string(),toolCallId:pD}),rD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.array(mD).nullish(),kind:oD.nullish(),locations:D.array(nD).nullish(),rawInput:D.unknown().optional(),rawOutput:D.unknown().optional(),status:tD.nullish(),title:D.string().nullish(),toolCallId:pD}),WD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),options:D.array(R$),sessionId:N,toolCall:rD}),Iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),hint:D.string()}),qw=Iw,Sw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),description:D.string(),input:qw.nullish(),name:D.string()}),Rw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),availableCommands:D.array(Sw)}),cw=D.object({cachedReadTokens:D.number().nullish(),cachedWriteTokens:D.number().nullish(),inputTokens:D.number(),outputTokens:D.number(),thoughtTokens:D.number().nullish(),totalTokens:D.number()}),uw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),stopReason:Pw,usage:cw.nullish(),userMessageId:D.string().nullish()}),$Q=D.union([D.object({id:T,result:D.union([Lw,x$,Kw,yw,Xw,Ww,Bw,H$,Vw,xw,uw,Hw,RD])}),D.object({error:ID,id:T})]),gw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),cost:P$.nullish(),size:D.number(),used:D.number()}),lw=D.union([p.and(D.object({sessionUpdate:D.literal("user_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_message_chunk")})),p.and(D.object({sessionUpdate:D.literal("agent_thought_chunk")})),vw.and(D.object({sessionUpdate:D.literal("tool_call")})),rD.and(D.object({sessionUpdate:D.literal("tool_call_update")})),l$.and(D.object({sessionUpdate:D.literal("plan")})),Rw.and(D.object({sessionUpdate:D.literal("available_commands_update")})),jw.and(D.object({sessionUpdate:D.literal("current_mode_update")})),_w.and(D.object({sessionUpdate:D.literal("config_option_update")})),Yw.and(D.object({sessionUpdate:D.literal("session_info_update")})),gw.and(D.object({sessionUpdate:D.literal("usage_update")}))]),yD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,update:lw}),wQ=D.object({method:D.string(),params:D.union([yD,qD]).nullish()}),KD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),sessionId:N,terminalId:D.string()}),dw=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),exitCode:D.number().int().gte(0).max(4294967295,{message:"Invalid value: Expected uint32 to be <= 4294967295"}).nullish(),signal:D.string().nullish()}),BD=D.object({_meta:D.record(D.string(),D.unknown()).nullish(),content:D.string(),path:D.string(),sessionId:N}),QQ=D.object({id:T,method:D.string(),params:D.union([BD,fD,WD,DD,ZD,_D,KD,wD,SD]).nullish()}),iw=D.object({_meta:D.record(D.string(),D.unknown()).nullish()}),fQ=D.union([D.object({id:T,result:D.union([iw,i$,a$,k$,Uw,m$,dw,M$,RD])}),D.object({error:ID,id:T})]);function zD($,Q){let w=new TextEncoder,f=new TextDecoder,X=new ReadableStream({async start(_){let J="",j=Q.getReader();try{while(!0){let{value:B,done:Y}=await j.read();if(Y)break;if(!B)continue;J+=f.decode(B,{stream:!0});let Z=J.split(`
|
|
3
3
|
`);J=Z.pop()||"";for(let A of Z){let y=A.trim();if(y)try{let W=JSON.parse(y);_.enqueue(W)}catch(W){console.error("Failed to parse JSON message:",y,W)}}}}finally{j.releaseLock(),_.close()}}}),G=new WritableStream({async write(_){let J=JSON.stringify(_)+`
|
|
4
4
|
`,j=$.getWriter();try{await j.write(w.encode(J))}finally{j.releaseLock()}}});return{readable:X,writable:G}}class OD{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case O.initialize:{let J=z.parse(_);return w.initialize(J)}case O.session_new:{let J=r.parse(_);return w.newSession(J)}case O.session_load:{if(!w.loadSession)throw K.methodNotFound(G);let J=QD.parse(_);return w.loadSession(J)}case O.session_list:{if(!w.listSessions)throw K.methodNotFound(G);let J=t.parse(_);return w.listSessions(J)}case O.session_fork:{if(!w.unstable_forkSession)throw K.methodNotFound(G);let J=$D.parse(_);return w.unstable_forkSession(J)}case O.session_resume:{if(!w.unstable_resumeSession)throw K.methodNotFound(G);let J=GD.parse(_);return w.unstable_resumeSession(J)}case O.session_close:{if(!w.unstable_closeSession)throw K.methodNotFound(G);let J=e.parse(_);return w.unstable_closeSession(J)}case O.session_set_mode:{if(!w.setSessionMode)throw K.methodNotFound(G);let J=XD.parse(_);return await w.setSessionMode(J)??{}}case O.authenticate:{let J=n.parse(_);return await w.authenticate(J)??{}}case O.session_prompt:{let J=AD.parse(_);return w.prompt(J)}case O.session_set_model:{if(!w.unstable_setSessionModel)throw K.methodNotFound(G);let J=YD.parse(_);return await w.unstable_setSessionModel(J)??{}}case O.session_set_config_option:{if(!w.setSessionConfigOption)throw K.methodNotFound(G);let J=JD.parse(_);return w.setSessionConfigOption(J)}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case O.session_cancel:{let J=s.parse(_);return w.cancel(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async sessionUpdate($){return await this.#D.sendNotification(F.session_update,$)}async requestPermission($){return await this.#D.sendRequest(F.session_request_permission,$)}async readTextFile($){return await this.#D.sendRequest(F.fs_read_text_file,$)}async writeTextFile($){return await this.#D.sendRequest(F.fs_write_text_file,$)??{}}async createTerminal($){let Q=await this.#D.sendRequest(F.terminal_create,$);return new aD(Q.terminalId,$.sessionId,this.#D)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class aD{id;#D;#$;constructor($,Q,w){this.id=$,this.#D=Q,this.#$=w}async currentOutput(){return await this.#$.sendRequest(F.terminal_output,{sessionId:this.#D,terminalId:this.id})}async waitForExit(){return await this.#$.sendRequest(F.terminal_wait_for_exit,{sessionId:this.#D,terminalId:this.id})}async kill(){return await this.#$.sendRequest(F.terminal_kill,{sessionId:this.#D,terminalId:this.id})??{}}async release(){return await this.#$.sendRequest(F.terminal_release,{sessionId:this.#D,terminalId:this.id})??{}}async[Symbol.asyncDispose](){await this.release()}}class pw{#D;constructor($,Q){let w=$(this),f=async(G,_)=>{switch(G){case F.fs_write_text_file:{let J=BD.parse(_);return w.writeTextFile?.(J)}case F.fs_read_text_file:{let J=fD.parse(_);return w.readTextFile?.(J)}case F.session_request_permission:{let J=WD.parse(_);return w.requestPermission(J)}case F.terminal_create:{let J=DD.parse(_);return w.createTerminal?.(J)}case F.terminal_output:{let J=ZD.parse(_);return w.terminalOutput?.(J)}case F.terminal_release:{let J=_D.parse(_);return await w.releaseTerminal?.(J)??{}}case F.terminal_wait_for_exit:{let J=KD.parse(_);return w.waitForTerminalExit?.(J)}case F.terminal_kill:{let J=wD.parse(_);return await w.killTerminal?.(J)??{}}default:if(w.extMethod)return w.extMethod(G,_);throw K.methodNotFound(G)}},X=async(G,_)=>{switch(G){case F.session_update:{let J=yD.parse(_);return w.sessionUpdate(J)}default:if(w.extNotification)return w.extNotification(G,_);throw K.methodNotFound(G)}};this.#D=new ND(f,X,Q)}async initialize($){return await this.#D.sendRequest(O.initialize,$)}async newSession($){return await this.#D.sendRequest(O.session_new,$)}async loadSession($){return await this.#D.sendRequest(O.session_load,$)??{}}async unstable_forkSession($){return await this.#D.sendRequest(O.session_fork,$)}async listSessions($){return await this.#D.sendRequest(O.session_list,$)}async unstable_resumeSession($){return await this.#D.sendRequest(O.session_resume,$)}async unstable_closeSession($){return await this.#D.sendRequest(O.session_close,$)}async setSessionMode($){return await this.#D.sendRequest(O.session_set_mode,$)??{}}async unstable_setSessionModel($){return await this.#D.sendRequest(O.session_set_model,$)??{}}async setSessionConfigOption($){return await this.#D.sendRequest(O.session_set_config_option,$)}async authenticate($){return await this.#D.sendRequest(O.authenticate,$)??{}}async prompt($){return await this.#D.sendRequest(O.session_prompt,$)}async cancel($){return await this.#D.sendNotification(O.session_cancel,$)}async extMethod($,Q){return await this.#D.sendRequest($,Q)}async extNotification($,Q){return await this.#D.sendNotification($,Q)}get signal(){return this.#D.signal}get closed(){return this.#D.closed}}class ND{#D=new Map;#$=0;#G;#J;#Q;#f=Promise.resolve();#_=new AbortController;#X;constructor($,Q,w){this.#G=$,this.#J=Q,this.#Q=w,this.#X=new Promise((f)=>{this.#_.signal.addEventListener("abort",()=>f())}),this.#Y()}get signal(){return this.#_.signal}get closed(){return this.#X}async#Y(){let $=this.#Q.readable.getReader();try{while(!0){let{value:Q,done:w}=await $.read();if(w)break;if(!Q)continue;try{this.#Z(Q)}catch(f){if(console.error("Unexpected error during message processing:",Q,f),"id"in Q&&Q.id!==void 0)this.#w({jsonrpc:"2.0",id:Q.id,error:{code:-32700,message:"Parse error"}})}}}finally{$.releaseLock(),this.#_.abort()}}async#Z($){if("method"in $&&"id"in $){let Q=await this.#j($.method,$.params);if("error"in Q)console.error("Error handling request",$,Q.error);await this.#w({jsonrpc:"2.0",id:$.id,...Q})}else if("method"in $){let Q=await this.#A($.method,$.params);if("error"in Q)console.error("Error handling notification",$,Q.error)}else if("id"in $)this.#W($);else console.error("Invalid message",{message:$})}async#j($,Q){try{return{result:await this.#G($,Q)??null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}async#A($,Q){try{return await this.#J($,Q),{result:null}}catch(w){if(w instanceof K)return w.toResult();if(w instanceof D.ZodError)return K.invalidParams(w.format()).toResult();let f;if(w instanceof Error)f=w.message;else if(typeof w==="object"&&w!=null&&"message"in w&&typeof w.message==="string")f=w.message;try{return K.internalError(f?JSON.parse(f):{}).toResult()}catch{return K.internalError({details:f}).toResult()}}}#W($){let Q=this.#D.get($.id);if(Q){if("result"in $)Q.resolve($.result);else if("error"in $)Q.reject($.error);this.#D.delete($.id)}else console.error("Got response to unknown request",$.id)}async sendRequest($,Q){let w=this.#$++,f=new Promise((X,G)=>{this.#D.set(w,{resolve:X,reject:G})});return await this.#w({jsonrpc:"2.0",id:w,method:$,params:Q}),f}async sendNotification($,Q){await this.#w({jsonrpc:"2.0",method:$,params:Q})}async#w($){return this.#f=this.#f.then(async()=>{let Q=this.#Q.writable.getWriter();try{await Q.write($)}finally{Q.releaseLock()}}).catch((Q)=>{console.error("ACP write error:",Q)}),this.#f}}class K extends Error{code;data;constructor($,Q,w){super(Q);this.code=$,this.name="RequestError",this.data=w}static parseError($,Q){return new K(-32700,`Parse error${Q?`: ${Q}`:""}`,$)}static invalidRequest($,Q){return new K(-32600,`Invalid request${Q?`: ${Q}`:""}`,$)}static methodNotFound($){return new K(-32601,`"Method not found": ${$}`,{method:$})}static invalidParams($,Q){return new K(-32602,`Invalid params${Q?`: ${Q}`:""}`,$)}static internalError($,Q){return new K(-32603,`Internal error${Q?`: ${Q}`:""}`,$)}static authRequired($,Q){return new K(-32000,`Authentication required${Q?`: ${Q}`:""}`,$)}static resourceNotFound($){return new K(-32002,`Resource not found${$?`: ${$}`:""}`,$&&{uri:$})}toResult(){return{error:{code:this.code,message:this.message,data:this.data}}}toErrorResponse(){return{code:this.code,message:this.message,data:this.data}}}var v={};ow(v,{init:()=>zw,Agent:()=>CD,ACP:()=>v});var FD=H.create({service:"acp-session-manager"});class LD{sessions=new Map;sdk;constructor($){this.sdk=$}tryGet($){return this.sessions.get($)}async create($,Q,w){let X=(await this.sdk.session.create({directory:$},{throwOnError:!0}).then((J)=>J.data)).id,_={id:X,cwd:$,mcpServers:Q,createdAt:new Date,model:w};return FD.info("creating_session",{state:_}),this.sessions.set(X,_),_}async load($,Q,w,f){let X=await this.sdk.session.get({sessionID:$,directory:Q},{throwOnError:!0}).then((J)=>J.data),G=f,_={id:$,cwd:Q,mcpServers:w,createdAt:new Date(X.time.created),model:G};return FD.info("loading_session",{state:_}),this.sessions.set($,_),_}get($){let Q=this.sessions.get($);if(!Q)throw FD.error("session not found",{sessionId:$}),K.invalidParams(JSON.stringify({error:`Session not found: ${$}`}));return Q}getModel($){return this.get($).model}setModel($,Q){let w=this.get($);return w.model=Q,this.sessions.set($,w),w}getVariant($){return this.get($).variant}setVariant($,Q){let w=this.get($);return w.variant=Q,this.sessions.set($,w),w}setMode($,Q){let w=this.get($);return w.modeId=Q,this.sessions.set($,w),w}}import{pathToFileURL as c}from"url";var nw=H.create({service:"acp-message-translator"}),tw="default";function b($){switch($.toLocaleLowerCase()){case"bash":return"execute";case"webfetch":return"fetch";case"edit":case"patch":case"write":return"edit";case"grep":case"glob":case"context7_resolve_library_id":case"context7_get_library_docs":return"search";case"read":return"read";default:return"other"}}function u($,Q){switch($.toLocaleLowerCase()){case"read":case"edit":case"write":return Q.filePath?[{path:Q.filePath}]:[];case"glob":case"grep":return Q.path?[{path:Q.path}]:[];case"bash":return[];default:return[]}}function g($){try{if($.startsWith("file://")){let Q=$.slice(7),w=Q.split("/").pop()||Q;return{type:"file",url:$,filename:w,mime:"text/plain"}}if($.startsWith("zed://")){let w=new URL($).searchParams.get("path");if(w){let f=w.split("/").pop()||w;return{type:"file",url:c(w).href,filename:f,mime:"text/plain"}}}return{type:"text",text:$}}catch{return{type:"text",text:$}}}function eD($,Q){let w=sD($,Q);if(w===!1){nw.error("Failed to apply unified diff (context mismatch)");return}return w}function xD($){if($.tool!=="bash")return;if(!("metadata"in $.state)||!$.state.metadata||typeof $.state.metadata!=="object")return;let Q=$.state.metadata.output;if(typeof Q!=="string")return;return Q}function l($){return[...$].sort((Q,w)=>{let f=Q.name.toLowerCase(),X=w.name.toLowerCase();if(f<X)return-1;if(f>X)return 1;return 0})}function VD($,Q){let w=$.find((X)=>X.id===Q.providerID);if(!w)return[];let f=w.models[Q.modelID];if(!f?.variants)return[];return Object.keys(f.variants)}function D$($,Q={}){let w=Q.includeVariants??!1;return $.flatMap((f)=>{let X=Object.values(f.models);return U.sort(X).flatMap((_)=>{let J={modelId:`${f.id}/${_.id}`,name:`${f.name}/${_.name}`};if(!w||!_.variants)return[J];let B=Object.keys(_.variants).filter((Y)=>Y!==tw).map((Y)=>({modelId:`${f.id}/${_.id}/${Y}`,name:`${f.name}/${_.name} (${Y})`}));return[J,...B]})})}function d($,Q,w,f){let X=`${$.providerID}/${$.modelID}`;if(!f||!Q||!w.includes(Q))return X;return`${X}/${Q}`}function HD($){return{opencode:{modelId:`${$.model.providerID}/${$.model.modelID}`,variant:$.variant??null,availableVariants:$.availableVariants}}}function PD($,Q){let w=U.parseModel($),f=Q.find((G)=>G.id===w.providerID);if(!f)return{model:w,variant:void 0};if(f.models[w.modelID])return{model:w,variant:void 0};let X=w.modelID.split("/");if(X.length>1){let G=X[X.length-1],_=X.slice(0,-1).join("/"),J=f.models[_];if(J?.variants&&G in J.variants)return{model:{providerID:w.providerID,modelID:P.make(_)},variant:G}}return{model:w,variant:void 0}}function i($){let Q=[{id:"model",name:"Model",category:"model",type:"select",currentValue:$.currentModelId,options:$.availableModels.map((w)=>({value:w.modelId,name:w.name}))}];if($.modes)Q.push({id:"mode",name:"Session Mode",category:"mode",type:"select",currentValue:$.modes.currentModeId,options:$.modes.availableModes.map((w)=>({value:w.id,name:w.name,...w.description?{description:w.description}:{}}))});return Q}var $$=H.create({service:"acp-permissions"});class TD{connection;sdk;sessionManager;permissionQueues=new Map;permissionOptions=[{optionId:"once",kind:"allow_once",name:"Allow once"},{optionId:"always",kind:"allow_always",name:"Always allow"},{optionId:"reject",kind:"reject_once",name:"Reject"}];constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w}handle($){let Q=this.sessionManager.tryGet($.sessionID);if(!Q)return;let f=(this.permissionQueues.get($.sessionID)??Promise.resolve()).then(async()=>{let X=Q.cwd,G=await this.connection.requestPermission({sessionId:$.sessionID,toolCall:{toolCallId:$.tool?.callID??$.id,status:"pending",title:$.permission,rawInput:$.metadata,kind:b($.permission),locations:u($.permission,$.metadata??{})},options:this.permissionOptions}).catch(async(_)=>{$$.error("failed to request permission from ACP",{error:_,permissionID:$.id,sessionID:$.sessionID}),await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return});if(!G)return;if(G.outcome.outcome!=="selected"){await this.sdk.permission.reply({requestID:$.id,reply:"reject",directory:X});return}if(G.outcome.optionId!=="reject"&&$.permission=="edit"){let _=$.metadata||{},J=typeof _.filepath==="string"?_.filepath:"",j=typeof _.diff==="string"?_.diff:"",B=await kD.exists(J)?await kD.readText(J):"",Y=eD(B,j);if(Y)this.connection.writeTextFile({sessionId:Q.id,path:J,content:Y})}await this.sdk.permission.reply({requestID:$.id,reply:G.outcome.optionId,directory:X})}).catch((X)=>{$$.error("failed to handle permission",{error:X,permissionID:$.id})}).finally(()=>{if(this.permissionQueues.get($.sessionID)===f)this.permissionQueues.delete($.sessionID)});this.permissionQueues.set($.sessionID,f)}}var L=H.create({service:"acp-event-bridge"});class UD{connection;sdk;sessionManager;eventAbort=new AbortController;eventStarted=!1;bashSnapshots=new Map;toolStarts=new Set;permissionHandler;constructor($,Q,w){this.connection=$;this.sdk=Q;this.sessionManager=w;this.permissionHandler=new TD($,Q,w)}start(){if(this.eventStarted)return;this.eventStarted=!0,this.runEventSubscription().catch(($)=>{if(this.eventAbort.signal.aborted)return;L.error("event subscription failed",{error:$})})}stop(){this.eventAbort.abort()}async runEventSubscription(){while(!0){if(this.eventAbort.signal.aborted)return;let $=await this.sdk.global.event({signal:this.eventAbort.signal,sseMaxRetryAttempts:0});for await(let Q of $.stream){if(this.eventAbort.signal.aborted)return;let w=Q?.payload;if(!w)continue;await this.handleEvent(w).catch((f)=>{L.error("failed to handle event",{error:f,type:w.type})})}if(this.eventAbort.signal.aborted)return;await new Promise((Q)=>{let w=()=>{clearTimeout(f),this.eventAbort.signal.removeEventListener("abort",w),Q()},f=setTimeout(w,1000);if(this.eventAbort.signal.addEventListener("abort",w,{once:!0}),this.eventAbort.signal.aborted)w()})}}async handleEvent($){switch($.type){case"permission.asked":{this.permissionHandler.handle($.properties);return}case"message.part.updated":{L.info("message part updated",{event:$.properties});let w=$.properties.part,f=this.sessionManager.tryGet(w.sessionID);if(!f)return;let X=f.id;if(w.type==="tool")switch(await this.toolStart(X,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);return;case"running":{let G=xD(w),_=[];if(G){let J=w$.fast(G);if(w.tool==="bash"){if(this.bashSnapshots.get(w.callID)===J){await this.sendToolInProgress(X,w,w.state,[]);return}this.bashSnapshots.set(w.callID,J)}_.push({type:"content",content:{type:"text",text:G}})}await this.sendToolInProgress(X,w,w.state,_);return}case"completed":await this.sendToolCompleted(X,w,w.state);return;case"error":await this.sendToolError(X,w,w.state);return}if(w.type!=="text"&&w.type!=="file")return;return}case"message.part.delta":{let Q=$.properties,w=this.sessionManager.tryGet(Q.sessionID);if(!w)return;let f=w.id,X=await this.sdk.session.message({sessionID:Q.sessionID,messageID:Q.messageID,directory:w.cwd},{throwOnError:!0}).then((_)=>_.data).catch((_)=>{L.error("unexpected error when fetching message",{error:_});return});if(!X||X.info.role!=="assistant")return;let G=X.parts.find((_)=>_.id===Q.partID);if(!G)return;if(G.type==="text"&&Q.field==="text"&&G.ignored!==!0){await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_message_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send text delta to ACP",{error:_})});return}if(G.type==="reasoning"&&Q.field==="text")await this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"agent_thought_chunk",messageId:Q.messageID,content:{type:"text",text:Q.delta}}}).catch((_)=>{L.error("failed to send reasoning delta to ACP",{error:_})});return}}}async sendToolInProgress($,Q,w,f){await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"in_progress",kind:b(Q.tool),title:Q.tool,locations:u(Q.tool,w.input),rawInput:w.input,...f.length>0&&{content:f}}}).catch((X)=>{L.error("failed to send tool in_progress to ACP",{error:X})})}async sendToolCompleted($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID);let f=b(Q.tool),X=[{type:"content",content:{type:"text",text:w.output}}];if(f==="edit"){let G=w.input,_=typeof G.filePath==="string"?G.filePath:"",J=typeof G.oldString==="string"?G.oldString:"",j=typeof G.newString==="string"?G.newString:typeof G.content==="string"?G.content:"";X.push({type:"diff",path:_,oldText:J,newText:j})}await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"completed",kind:f,content:X,title:w.title,rawInput:w.input,rawOutput:{output:w.output,metadata:w.metadata}}}).catch((G)=>{L.error("failed to send tool completed to ACP",{error:G})})}async sendToolError($,Q,w){this.toolStarts.delete(Q.callID),this.bashSnapshots.delete(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call_update",toolCallId:Q.callID,status:"failed",kind:b(Q.tool),title:Q.tool,rawInput:w.input,content:[{type:"content",content:{type:"text",text:w.error}}],rawOutput:{error:w.error,metadata:w.metadata}}}).catch((f)=>{L.error("failed to send tool error to ACP",{error:f})})}async toolStart($,Q){if(this.toolStarts.has(Q.callID))return;this.toolStarts.add(Q.callID),await this.connection.sessionUpdate({sessionId:$,update:{sessionUpdate:"tool_call",toolCallId:Q.callID,title:Q.tool,kind:b(Q.tool),status:"pending",locations:[],rawInput:{}}}).catch((w)=>{L.error("failed to send tool pending to ACP",{error:w})})}async processMessage($){if(L.debug("process message",$),$.info.role!=="assistant"&&$.info.role!=="user")return;let Q=$.info.sessionID;for(let w of $.parts)if(w.type==="tool")switch(await this.toolStart(Q,w),w.state.status){case"pending":this.bashSnapshots.delete(w.callID);break;case"running":{let f=xD(w),X=[];if(f)X.push({type:"content",content:{type:"text",text:f}});await this.sendToolInProgress(Q,w,w.state,X);break}case"completed":await this.sendToolCompleted(Q,w,w.state);break;case"error":await this.sendToolError(Q,w,w.state);break}else if(w.type==="text"){if(w.text){let f=w.synthetic?["assistant"]:w.ignored?["user"]:void 0;await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:$.info.role==="user"?"user_message_chunk":"agent_message_chunk",messageId:$.info.id,content:{type:"text",text:w.text,...f&&{annotations:{audience:f}}}}}).catch((X)=>{L.error("failed to send text to ACP",{error:X})})}}else if(w.type==="file"){let f=w.url,X=w.filename??"file",G=w.mime||"application/octet-stream",_=$.info.role==="user"?"user_message_chunk":"agent_message_chunk";if(f.startsWith("file://"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource_link",uri:f,name:X,mimeType:G}}}).catch((J)=>{L.error("failed to send resource_link to ACP",{error:J})});else if(f.startsWith("data:")){let J=f.match(/^data:([^;]+);base64,(.*)$/),j=J?.[1],B=J?.[2]??"",Y=j||G;if(Y.startsWith("image/"))await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"image",mimeType:Y,data:B,uri:c(X).href}}}).catch((Z)=>{L.error("failed to send image to ACP",{error:Z})});else{let Z=Y.startsWith("text/")||Y==="application/json",A=c(X).href,y=Z?{uri:A,mimeType:Y,text:Buffer.from(B,"base64").toString("utf-8")}:{uri:A,mimeType:Y,blob:B};await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:_,messageId:$.info.id,content:{type:"resource",resource:y}}}).catch((W)=>{L.error("failed to send resource to ACP",{error:W})})}}}else if(w.type==="reasoning"){if(w.text)await this.connection.sessionUpdate({sessionId:Q,update:{sessionUpdate:"agent_thought_chunk",messageId:$.info.id,content:{type:"text",text:w.text}}}).catch((f)=>{L.error("failed to send reasoning to ACP",{error:f})})}}}var V=H.create({service:"acp-agent"});async function rw($,Q,w,f){return(await $.config.providers({directory:f}).then((J)=>J.data?.providers??[]).catch((J)=>{return V.error("failed to get providers for context limit",{error:J}),[]})).find((J)=>J.id===Q)?.models[w]?.limit.context??null}async function bD($,Q,w,f){let X=await Q.session.messages({sessionID:w,directory:f,agent_id:"main"},{throwOnError:!0}).then((Z)=>Z.data).catch((Z)=>{V.error("failed to fetch messages for usage update",{error:Z});return});if(!X)return;let G=X.filter((Z)=>Z.info.role==="assistant"),_=G[G.length-1];if(!_)return;let J=_.info;if(!J.providerID||!J.modelID)return;let j=await rw(Q,k.make(J.providerID),P.make(J.modelID),f);if(!j)return;let B=J.tokens.input+(J.tokens.cache?.read??0),Y=G.reduce((Z,A)=>Z+A.info.cost,0);await $.sessionUpdate({sessionId:w,update:{sessionUpdate:"usage_update",used:B,size:j,cost:{amount:Y,currency:"USD"}}}).catch((Z)=>{V.error("failed to send usage update",{error:Z})})}async function zw({sdk:$}){return{create:(Q,w)=>{return new CD(Q,w)}}}class CD{connection;config;sdk;sessionManager;eventBridge;constructor($,Q){this.connection=$,this.config=Q,this.sdk=Q.sdk,this.sessionManager=new LD(this.sdk),this.eventBridge=new UD($,this.sdk,this.sessionManager),this.eventBridge.start()}async initialize($){V.info("initialize",{protocolVersion:$.protocolVersion});let Q={description:"Run `qitqode auth login` in the terminal",name:"Login with qitqode",id:"qitqode-login"};if($.clientCapabilities?._meta?.["terminal-auth"]===!0)Q._meta={"terminal-auth":{command:"qitqode",args:["auth","login"],label:"QitQode Login"}};return{protocolVersion:1,agentCapabilities:{loadSession:!0,mcpCapabilities:{http:!0,sse:!0},promptCapabilities:{embeddedContext:!0,image:!0},sessionCapabilities:{fork:{},list:{},resume:{}}},authMethods:[Q],agentInfo:{name:"QitQode",version:Q$}}}async authenticate($){throw Error("Authentication not implemented")}rethrowSessionError($){let Q=G$.fromError($,{providerID:k.make(this.config.defaultModel?.providerID??"unknown")});if(f$.isInstance(Q))throw K.authRequired();throw $}fetchSessionMessages($,Q){return this.sdk.session.messages({sessionID:$,directory:Q,agent_id:"main"},{throwOnError:!0}).then((w)=>w.data).catch((w)=>{V.error("unexpected error when fetching message",{error:w});return})}loadSessionProviders($){return this.sdk.config.providers({directory:$},{throwOnError:!0}).then((Q)=>Q.data.providers)}async newSession($){let Q=$.cwd;try{let w=await h(this.config,Q),X=(await this.sessionManager.create($.cwd,$.mcpServers,w)).id;V.info("creating_session",{sessionId:X,mcpServers:$.mcpServers.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:X});return{sessionId:X,configOptions:G.configOptions,models:G.models,modes:G.modes,_meta:G._meta}}catch(w){this.rethrowSessionError(w)}}async loadSession($){let{cwd:Q,sessionId:w}=$;try{let f=await h(this.config,Q);await this.sessionManager.load(w,$.cwd,$.mcpServers,f),V.info("load_session",{sessionId:w,mcpServers:$.mcpServers.length});let X=await this.loadSessionMode({cwd:Q,mcpServers:$.mcpServers,sessionId:w}),G=await this.fetchSessionMessages(w,Q),_=G?.findLast((J)=>J.info.role==="user")?.info;if(_?.role==="user"){if(X.models.currentModelId=`${_.model.providerID}/${_.model.modelID}`,this.sessionManager.setModel(w,{providerID:k.make(_.model.providerID),modelID:P.make(_.model.modelID)}),X.modes?.availableModes.some((J)=>J.id===_.agent))X.modes.currentModeId=_.agent,this.sessionManager.setMode(w,_.agent);X.configOptions=i({currentModelId:X.models.currentModelId,availableModels:X.models.availableModels,modes:X.modes})}return await this.replayMessagesAndSendUsage(G,w,Q),X}catch(f){this.rethrowSessionError(f)}}async listSessions($){try{let w=await this.sdk.session.list({directory:$.cwd??void 0,roots:!0},{throwOnError:!0}).then((Z)=>Z.data??[]),f=$.cursor?Number($.cursor):void 0,X=w.toSorted((Z,A)=>A.time.updated-Z.time.updated),G=f?X.filter((Z)=>Z.time.updated<f):X,_=G.slice(0,100),J=_.map((Z)=>({sessionId:Z.id,cwd:Z.directory,title:Z.title,updatedAt:new Date(Z.time.updated).toISOString()})),j=_[_.length-1],B=G.length>100&&j?String(j.time.updated):void 0,Y={sessions:J};if(B)Y.nextCursor=B;return Y}catch(Q){this.rethrowSessionError(Q)}}async unstable_forkSession($){let Q=$.cwd,w=$.mcpServers??[];try{let f=await h(this.config,Q),X=await this.sdk.session.fork({sessionID:$.sessionId,directory:Q},{throwOnError:!0}).then((j)=>j.data);if(!X)throw Error("Fork session returned no data");let G=X.id;await this.sessionManager.load(G,Q,w,f),V.info("fork_session",{sessionId:G,mcpServers:w.length});let _=await this.loadSessionMode({cwd:Q,mcpServers:w,sessionId:G}),J=await this.fetchSessionMessages(G,Q);return await this.replayMessagesAndSendUsage(J,G,Q),_}catch(f){this.rethrowSessionError(f)}}async unstable_resumeSession($){let{cwd:Q,sessionId:w}=$,f=$.mcpServers??[];try{let X=await h(this.config,Q);await this.sessionManager.load(w,Q,f,X),V.info("resume_session",{sessionId:w,mcpServers:f.length});let G=await this.loadSessionMode({cwd:Q,mcpServers:f,sessionId:w});return await bD(this.connection,this.sdk,w,Q),G}catch(X){this.rethrowSessionError(X)}}async loadAvailableModes($){return(await this.config.sdk.app.agents({directory:$},{throwOnError:!0}).then((w)=>w.data)).filter((w)=>w.mode!=="subagent"&&!w.hidden).map((w)=>({id:w.name,name:w.name,description:w.description}))}async resolveModeState($,Q){let w=await this.loadAvailableModes($),f=this.sessionManager.get(Q).modeId||await(async()=>{if(!w.length)return;let X=await MD.runPromise(hD.Service.use((_)=>_.defaultAgent())),G=w.find((_)=>_.name===X)?.id??w[0].id;return this.sessionManager.setMode(Q,G),G})();return{availableModes:w,currentModeId:f}}async replayMessagesAndSendUsage($,Q,w){for(let f of $??[])V.debug("replay message",f),await this.eventBridge.processMessage(f);await bD(this.connection,this.sdk,Q,w)}async resolveModelsAndModes($){let Q=VD($.entries,$.model);$.onVariants?.(Q);let w=D$($.entries,{includeVariants:!0}),f=await this.resolveModeState($.directory,$.sessionId),X=f.currentModeId?{availableModes:f.availableModes,currentModeId:f.currentModeId}:void 0;return{availableVariants:Q,availableModels:w,modes:X}}async loadSessionMode($){let Q=$.cwd,w=await h(this.config,Q),f=$.sessionId,X=await this.sdk.config.providers({directory:Q}).then((W)=>W.data.providers),G=l(X),_=this.sessionManager.getVariant(f),{availableVariants:J,availableModels:j,modes:B}=await this.resolveModelsAndModes({entries:G,model:w,directory:Q,sessionId:f,onVariants:(W)=>{if(_&&!W.includes(_))this.sessionManager.setVariant(f,void 0)}}),Z=(await this.config.sdk.command.list({directory:Q},{throwOnError:!0}).then((W)=>W.data)).map((W)=>({name:W.name,description:W.description??""}));if(!new Set(Z.map((W)=>W.name)).has("compact"))Z.push({name:"compact",description:"summarize the session to reduce context"});let y={};for(let W of $.mcpServers)if("type"in W)y[W.name]={url:W.url,headers:W.headers.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{}),type:"remote"};else y[W.name]={type:"local",command:[W.command,...W.args],environment:W.env.reduce((x,{name:C,value:m})=>{return x[C]=m,x},{})};return await Promise.all(Object.entries(y).map(async([W,x])=>{await this.sdk.mcp.add({directory:Q,name:W,config:x},{throwOnError:!0}).catch((C)=>{V.error("failed to add mcp server",{name:W,error:C})})})),setTimeout(()=>{this.connection.sessionUpdate({sessionId:f,update:{sessionUpdate:"available_commands_update",availableCommands:Z}})},0),{sessionId:f,models:{currentModelId:d(w,_,J,!0),availableModels:j},modes:B,configOptions:i({currentModelId:d(w,_,J,!0),availableModels:j,modes:B}),_meta:HD({model:w,variant:this.sessionManager.getVariant(f),availableVariants:J})}}async unstable_setSessionModel($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=PD($.modelId,w);this.sessionManager.setModel(Q.id,f.model),this.sessionManager.setVariant(Q.id,f.variant);let X=l(w),G=VD(X,f.model);return{_meta:HD({model:f.model,variant:f.variant,availableVariants:G})}}async setSessionMode($){let Q=this.sessionManager.get($.sessionId);if(!(await this.loadAvailableModes(Q.cwd)).some((f)=>f.id===$.modeId))throw Error(`Agent not found: ${$.modeId}`);this.sessionManager.setMode($.sessionId,$.modeId)}async setSessionConfigOption($){let Q=this.sessionManager.get($.sessionId),w=await this.loadSessionProviders(Q.cwd),f=l(w);if($.configId==="model"){if(typeof $.value!=="string")throw K.invalidParams("model value must be a string");let Y=PD($.value,w);this.sessionManager.setModel(Q.id,Y.model),this.sessionManager.setVariant(Q.id,Y.variant)}else if($.configId==="mode"){if(typeof $.value!=="string")throw K.invalidParams("mode value must be a string");if(!(await this.loadAvailableModes(Q.cwd)).some((Z)=>Z.id===$.value))throw K.invalidParams(JSON.stringify({error:`Mode not found: ${$.value}`}));this.sessionManager.setMode(Q.id,$.value)}else throw K.invalidParams(JSON.stringify({error:`Unknown config option: ${$.configId}`}));let X=this.sessionManager.get(Q.id),G=X.model??await h(this.config,Q.cwd),{availableVariants:_,availableModels:J,modes:j}=await this.resolveModelsAndModes({entries:f,model:G,directory:Q.cwd,sessionId:Q.id}),B=d(G,X.variant,_,!0);return{configOptions:i({currentModelId:B,availableModels:J,modes:j})}}async prompt($){let Q=$.sessionId,w=this.sessionManager.get(Q),f=w.cwd,X=w.model,G=X??await h(this.config,f);if(!X)this.sessionManager.setModel(w.id,G);let _=w.modeId??await MD.runPromise(hD.Service.use((A)=>A.defaultAgent())),J=[];for(let A of $.prompt)switch(A.type){case"text":{let y=A.annotations?.audience,W=y?.length===1&&y[0]==="assistant",x=y?.length===1&&y[0]==="user";J.push({type:"text",text:A.text,...W&&{synthetic:!0},...x&&{ignored:!0}});break}case"image":{let y=g(A.uri??""),W=y.type==="file"?y.filename:"image";if(A.data)J.push({type:"file",url:`data:${A.mimeType};base64,${A.data}`,filename:W,mime:A.mimeType});else if(A.uri&&A.uri.startsWith("http:"))J.push({type:"file",url:A.uri,filename:W,mime:A.mimeType});break}case"resource_link":{let y=g(A.uri);if(A.name&&y.type==="file")y.filename=A.name;J.push(y);break}case"resource":{let y=A.resource;if("text"in y&&y.text)J.push({type:"text",text:y.text});else if("blob"in y&&y.blob&&y.mimeType){let W=g(y.uri??""),x=W.type==="file"?W.filename:"file";J.push({type:"file",url:`data:${y.mimeType};base64,${y.blob}`,filename:x,mime:y.mimeType})}break}default:break}V.info("parts",{parts:J});let j=(()=>{let A=J.filter((x)=>x.type==="text").map((x)=>x.text).join("").trim();if(!A.startsWith("/"))return;let[y,...W]=A.slice(1).split(/\s+/);return{name:y,args:W.join(" ").trim()}})(),B=(A)=>({totalTokens:A.tokens.input+A.tokens.output+A.tokens.reasoning+(A.tokens.cache?.read??0)+(A.tokens.cache?.write??0),inputTokens:A.tokens.input,outputTokens:A.tokens.output,thoughtTokens:A.tokens.reasoning||void 0,cachedReadTokens:A.tokens.cache?.read||void 0,cachedWriteTokens:A.tokens.cache?.write||void 0}),Y,Z=!1;if(!j)Z=!0,Y=(await this.sdk.session.prompt({sessionID:Q,model:{providerID:G.providerID,modelID:G.modelID},variant:this.sessionManager.getVariant(Q),parts:J,agent:_,directory:f})).data?.info;else{let A=await this.config.sdk.command.list({directory:f},{throwOnError:!0}).then((y)=>y.data.find((W)=>W.name===j.name));if(A)Z=!0,Y=(await this.sdk.session.command({sessionID:Q,command:A.name,arguments:j.args,model:G.providerID+"/"+G.modelID,agent:_,directory:f})).data?.info;else switch(j.name){case"compact":await this.config.sdk.session.summarize({sessionID:Q,directory:f,providerID:G.providerID,modelID:G.modelID},{throwOnError:!0});break}}return await bD(this.connection,this.sdk,Q,f),{stopReason:"end_turn",...Z?{usage:Y?B(Y):void 0}:{},_meta:{}}}async cancel($){let Q=this.sessionManager.get($.sessionId);await this.config.sdk.session.abort({sessionID:$.sessionId,directory:Q.cwd},{throwOnError:!0})}}async function h($,Q){let{sdk:w,defaultModel:f}=$;if(f)return f;let X=Q??process.cwd(),G=await w.config.get({directory:X},{throwOnError:!0}).then((Y)=>{let Z=Y.data;if(!Z||!Z.model)return;return U.parseModel(Z.model)}).catch((Y)=>{V.error("failed to load user config for default model",{error:Y});return}),_=await w.config.providers({directory:X},{throwOnError:!0}).then((Y)=>Y.data?.providers??[]).catch((Y)=>{return V.error("failed to list providers for default model",{error:Y}),[]});if(G&&_.length){let Y=_.find((Z)=>Z.id===G.providerID);if(Y&&Y.models[G.modelID])return G}if(G&&!_.length)return G;let J=_.find((Y)=>Y.id==="opencode");if(J){if(J.models["big-pickle"])return{providerID:k.opencode,modelID:P.make("big-pickle")};let[Y]=U.sort(Object.values(J.models));if(Y)return{providerID:k.make(Y.providerID),modelID:P.make(Y.id)}}for(let Y of["default","fast","economical","power"]){let Z=_$[Y];if(!Z)continue;if(_.find((y)=>y.id===Z.providerID)?.models[Z.modelID])return{providerID:k.make(Z.providerID),modelID:P.make(Z.modelID)}}let j=_.flatMap((Y)=>Object.values(Y.models)),[B]=U.sort(j);if(B)return{providerID:k.make(B.providerID),modelID:P.make(B.id)};if(G)return G;return{providerID:k.opencode,modelID:P.make("big-pickle")}}var ED=H.create({service:"acp-command"}),sQ=A$({command:"acp",describe:"start ACP (Agent Client Protocol) server",builder:($)=>{return J$($).option("cwd",{describe:"working directory",type:"string",default:process.cwd()})},handler:async($)=>{if(process.env.QITQODE_CLIENT="acp",process.env.QITQODE_KEY)ED.info("Using QITQODE_KEY for authentication.");else if(!await Y$())ED.warn("No QitQode credential found. AI features will not work until you sign in (`qitqode auth login`) or set QITQODE_KEY.");await j$(process.cwd(),async()=>{let Q=await W$($),w=await Z$.listen(Q),f=X$({baseUrl:`http://${w.hostname}:${w.port}`}),X=new WritableStream({write(j){return new Promise((B,Y)=>{process.stdout.write(j,(Z)=>{if(Z)Y(Z);else B()})})}}),G=new ReadableStream({start(j){process.stdin.on("data",(B)=>{j.enqueue(new Uint8Array(B))}),process.stdin.on("end",()=>j.close()),process.stdin.on("error",(B)=>j.error(B))}}),_=zD(X,G),J=await v.init({sdk:f});new OD((j)=>{return J.create(j,{sdk:f})},_),ED.info("setup connection"),process.stdin.resume(),await new Promise((j,B)=>{process.stdin.on("end",j),process.stdin.on("error",B)})})}});export{sQ as AcpCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-hh4c02fh.js";var e={"ui.sessionReview.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u5909\u66F4","ui.sessionReview.title.lastTurn":"\u524D\u56DE\u30BF\u30FC\u30F3\u306E\u5909\u66F4","ui.sessionReview.diffStyle.unified":"Unified","ui.sessionReview.diffStyle.split":"Split","ui.sessionReview.openFile":"\u30D5\u30A1\u30A4\u30EB\u3092\u958B\u304F","ui.sessionReview.selection.line":"{{line}} \u884C\u76EE","ui.sessionReview.selection.lines":"{{start}}-{{end}} \u884C\u76EE","ui.sessionReview.expandAll":"\u3059\u3079\u3066\u5C55\u958B","ui.sessionReview.collapseAll":"\u3059\u3079\u3066\u6298\u308A\u305F\u305F\u3080","ui.sessionReview.change.added":"\u8FFD\u52A0","ui.sessionReview.change.removed":"\u524A\u9664","ui.sessionReview.change.modified":"\u5909\u66F4","ui.sessionReview.image.loading":"\u8AAD\u307F\u8FBC\u307F\u4E2D...","ui.sessionReview.image.placeholder":"\u753B\u50CF","ui.sessionReview.largeDiff.title":"\u5DEE\u5206\u304C\u5927\u304D\u3059\u304E\u3066\u8868\u793A\u3067\u304D\u307E\u305B\u3093","ui.sessionReview.largeDiff.meta":"\u4E0A\u9650: {{limit}} \u5909\u66F4\u884C\u3002\u73FE\u5728: {{current}} \u5909\u66F4\u884C\u3002","ui.sessionReview.largeDiff.renderAnyway":"\u305D\u308C\u3067\u3082\u8868\u793A\u3059\u308B","ui.fileMedia.kind.image":"\u753B\u50CF","ui.fileMedia.kind.audio":"\u97F3\u58F0","ui.fileMedia.state.removed":"{{kind}}\u306F\u524A\u9664\u3055\u308C\u307E\u3057\u305F","ui.fileMedia.state.loading":"{{kind}}\u3092\u8AAD\u307F\u8FBC\u3093\u3067\u3044\u307E\u3059...","ui.fileMedia.state.error":"{{kind}}\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F","ui.fileMedia.state.unavailable":"{{kind}}\u306F\u8868\u793A\u3067\u304D\u307E\u305B\u3093","ui.fileMedia.binary.title":"\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB","ui.fileMedia.binary.description.path":"{{path}} \u306F\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB\u306E\u305F\u3081\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3002","ui.fileMedia.binary.description.default":"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB\u306E\u305F\u3081\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3002","ui.lineComment.label.prefix":"","ui.lineComment.label.suffix":"\u3078\u306E\u30B3\u30E1\u30F3\u30C8","ui.lineComment.editorLabel.prefix":"","ui.lineComment.editorLabel.suffix":"\u3078\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u4F5C\u6210\u4E2D","ui.lineComment.placeholder":"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0","ui.lineComment.submit":"\u30B3\u30E1\u30F3\u30C8","ui.sessionTurn.steps.show":"\u30B9\u30C6\u30C3\u30D7\u3092\u8868\u793A","ui.sessionTurn.steps.hide":"\u30B9\u30C6\u30C3\u30D7\u3092\u96A0\u3059","ui.sessionTurn.summary.response":"\u5FDC\u7B54","ui.sessionTurn.diff.showMore":"\u3055\u3089\u306B\u5909\u66F4\u3092\u8868\u793A ({{count}})","ui.sessionTurn.retry.retrying":"\u518D\u8A66\u884C\u4E2D","ui.sessionTurn.retry.inSeconds":"{{seconds}}\u79D2\u5F8C","ui.sessionTurn.retry.attempt":"{{attempt}}\u56DE\u76EE","ui.sessionTurn.retry.attemptLine":"{{line}} - {{attempt}}\u56DE\u76EE","ui.sessionTurn.retry.geminiHot":"gemini \u304C\u6DF7\u96D1\u3057\u3066\u3044\u307E\u3059","ui.sessionTurn.error.freeUsageExceeded":"\u7121\u6599\u4F7F\u7528\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F","ui.sessionTurn.error.addQredits":"\u30AF\u30EC\u30B8\u30C3\u30C8\u3092\u8FFD\u52A0","ui.sessionTurn.status.delegating":"\u4F5C\u696D\u3092\u59D4\u4EFB\u4E2D","ui.sessionTurn.status.planning":"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u3092\u8A08\u753B\u4E2D","ui.sessionTurn.status.gatheringContext":"\u63A2\u7D22\u4E2D","ui.sessionTurn.status.gatheredContext":"\u63A2\u7D22\u6E08\u307F","ui.sessionTurn.status.searchingCodebase":"\u30B3\u30FC\u30C9\u30D9\u30FC\u30B9\u3092\u691C\u7D22\u4E2D","ui.sessionTurn.status.searchingWeb":"\u30A6\u30A7\u30D6\u3092\u691C\u7D22\u4E2D","ui.sessionTurn.status.makingEdits":"\u7DE8\u96C6\u3092\u5B9F\u884C\u4E2D","ui.sessionTurn.status.runningCommands":"\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u4E2D","ui.sessionTurn.status.thinking":"\u601D\u8003\u4E2D","ui.sessionTurn.status.thinkingWithTopic":"\u601D\u8003\u4E2D - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u8003\u3048\u3092\u307E\u3068\u3081\u3066\u3044\u307E\u3059","ui.sessionTurn.status.consideringNextSteps":"\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u3092\u691C\u8A0E\u4E2D","ui.messagePart.questions.dismissed":"\u8CEA\u554F\u3092\u30B9\u30AD\u30C3\u30D7\u3057\u307E\u3057\u305F","ui.messagePart.compaction":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5727\u7E2E\u3057\u307E\u3057\u305F","ui.messagePart.context.read.one":"{{count}} \u4EF6\u306E\u8AAD\u307F\u53D6\u308A","ui.messagePart.context.read.other":"{{count}} \u4EF6\u306E\u8AAD\u307F\u53D6\u308A","ui.messagePart.context.search.one":"{{count}} \u4EF6\u306E\u691C\u7D22","ui.messagePart.context.search.other":"{{count}} \u4EF6\u306E\u691C\u7D22","ui.messagePart.context.list.one":"{{count}} \u4EF6\u306E\u30EA\u30B9\u30C8","ui.messagePart.context.list.other":"{{count}} \u4EF6\u306E\u30EA\u30B9\u30C8","ui.messagePart.diagnostic.error":"\u30A8\u30E9\u30FC","ui.messagePart.title.edit":"\u7DE8\u96C6","ui.messagePart.title.write":"\u4F5C\u6210","ui.messagePart.option.typeOwnAnswer":"\u81EA\u5206\u306E\u56DE\u7B54\u3092\u5165\u529B","ui.messagePart.review.title":"\u56DE\u7B54\u3092\u78BA\u8A8D","ui.list.loading":"\u8AAD\u307F\u8FBC\u307F\u4E2D","ui.list.empty":"\u7D50\u679C\u306A\u3057","ui.list.clearFilter":"\u30D5\u30A3\u30EB\u30BF\u30FC\u3092\u30AF\u30EA\u30A2","ui.list.emptyWithFilter.prefix":"\u6B21\u306E\u691C\u7D22\u7D50\u679C\u306F\u3042\u308A\u307E\u305B\u3093: ","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\u65B0\u3057\u3044\u30E1\u30C3\u30BB\u30FC\u30B8","ui.textField.copyToClipboard":"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC","ui.textField.copyLink":"\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC","ui.textField.copied":"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F","ui.imagePreview.alt":"\u753B\u50CF\u30D7\u30EC\u30D3\u30E5\u30FC","ui.scrollView.ariaLabel":"\u30B9\u30AF\u30ED\u30FC\u30EB\u53EF\u80FD\u306A\u30B3\u30F3\u30C6\u30F3\u30C4","ui.tool.read":"\u8AAD\u307F\u8FBC\u307F","ui.tool.loaded":"\u8AAD\u307F\u8FBC\u307F\u6E08\u307F","ui.tool.list":"\u30EA\u30B9\u30C8","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"Web\u691C\u7D22","ui.tool.codesearch":"\u30B3\u30FC\u30C9\u691C\u7D22","ui.tool.shell":"Shell","ui.tool.patch":"Patch","ui.tool.todos":"Todo","ui.tool.todos.read":"Todo\u8AAD\u307F\u8FBC\u307F","ui.tool.questions":"\u8CEA\u554F","ui.tool.agent":"{{type}}\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8","ui.tool.agent.default":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8","ui.common.file.one":"\u30D5\u30A1\u30A4\u30EB","ui.common.file.other":"\u30D5\u30A1\u30A4\u30EB","ui.common.question.one":"\u8CEA\u554F","ui.common.question.other":"\u8CEA\u554F","ui.common.add":"\u8FFD\u52A0","ui.common.back":"\u623B\u308B","ui.common.cancel":"\u30AD\u30E3\u30F3\u30BB\u30EB","ui.common.confirm":"\u78BA\u8A8D","ui.common.dismiss":"\u9589\u3058\u308B","ui.common.close":"\u9589\u3058\u308B","ui.common.next":"\u6B21\u3078","ui.common.submit":"\u9001\u4FE1","ui.permission.deny":"\u62D2\u5426","ui.permission.allowAlways":"\u5E38\u306B\u8A31\u53EF","ui.permission.allowOnce":"\u4ECA\u56DE\u306E\u307F\u8A31\u53EF","ui.message.expand":"\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u5C55\u958B","ui.message.collapse":"\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u6298\u308A\u305F\u305F\u3080","ui.message.copy":"\u30B3\u30D4\u30FC","ui.message.copyMessage":"\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u30B3\u30D4\u30FC","ui.message.forkMessage":"\u65B0\u3057\u3044\u30BB\u30C3\u30B7\u30E7\u30F3\u306B\u30D5\u30A9\u30FC\u30AF","ui.message.revertMessage":"\u3053\u306E\u6642\u70B9\u307E\u3067\u30EA\u30BB\u30C3\u30C8","ui.message.copyResponse":"\u5FDC\u7B54\u3092\u30B3\u30D4\u30FC","ui.message.copied":"\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\uFF01","ui.message.interrupted":"\u4E2D\u65AD","ui.message.queued":"\u5F85\u6A5F\u4E2D","ui.message.attachment.alt":"\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB","ui.patch.action.deleted":"\u524A\u9664\u6E08\u307F","ui.patch.action.created":"\u4F5C\u6210\u6E08\u307F","ui.patch.action.moved":"\u79FB\u52D5\u6E08\u307F","ui.patch.action.patched":"\u30D1\u30C3\u30C1\u9069\u7528\u6E08\u307F","ui.question.subtitle.answered":"{{count}}\u4EF6\u56DE\u7B54\u6E08\u307F","ui.question.answer.none":"(\u56DE\u7B54\u306A\u3057)","ui.question.review.notAnswered":"(\u672A\u56DE\u7B54)","ui.question.multiHint":"\u8A72\u5F53\u3059\u308B\u3082\u306E\u3092\u3059\u3079\u3066\u9078\u629E","ui.question.singleHint":"1 \u3064\u9078\u629E","ui.question.custom.placeholder":"\u56DE\u7B54\u3092\u5165\u529B...","ui.fileSearch.placeholder":"\u691C\u7D22","ui.fileSearch.previousMatch":"\u524D\u306E\u4E00\u81F4","ui.fileSearch.nextMatch":"\u6B21\u306E\u4E00\u81F4","ui.fileSearch.close":"\u691C\u7D22\u3092\u9589\u3058\u308B","ui.tool.task":"\u30BF\u30B9\u30AF","ui.tool.skill":"\u30B9\u30AD\u30EB","ui.basicTool.called":"`{{tool}}` \u3092\u547C\u3073\u51FA\u3057\u307E\u3057\u305F","ui.toolErrorCard.failed":"\u5931\u6557","ui.toolErrorCard.copyError":"\u30A8\u30E9\u30FC\u3092\u30B3\u30D4\u30FC","ui.message.duration.seconds":"{{count}}\u79D2","ui.message.duration.minutesSeconds":"{{minutes}}\u5206 {{seconds}}\u79D2"};export{e as dict};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{qe as _w}from"./chunk-f958hsha.js";import{re as Mw,ue as Aw}from"./chunk-q1472d56.js";import{ve as Ww}from"./chunk-m34zrf70.js";import{we as Iw,xe as hw,ye as fw}from"./chunk-yccm7cfm.js";import{ze as Pw}from"./chunk-88kt6qmd.js";import{rf as kw,sf as Uw,tf as Jw,uf as Hw,vf as bw}from"./chunk-c38ppnm8.js";import{oP as $w}from"./chunk-naq602da.js";var zj=$w((Dw)=>{var jj=Mw(),m={CrtSignerV4:null},wj="X-Amz-S3session-Token",Mj=wj.toLowerCase();class xj extends jj.SignatureV4{async signWithCredentials(j,w,x){let E=Dj(w);j.headers[Mj]=w.sessionToken;let B=this;return yj(B,E),B.signRequest(j,x??{})}async presignWithCredentials(j,w,x){let E=Dj(w);return delete j.headers[Mj],j.headers[wj]=w.sessionToken,j.query=j.query??{},j.query[wj]=w.sessionToken,yj(this,E),this.presign(j,x)}}function Dj(j){return{accessKeyId:j.accessKeyId,secretAccessKey:j.secretAccessKey,expiration:j.expiration}}function yj(j,w){let x=j.credentialProvider;j.credentialProvider=()=>{return j.credentialProvider=x,Promise.resolve(w)}}class Lj{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof m.CrtSignerV4==="function")return"crt";else if(typeof jj.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(j){this.sigv4Signer=new xj(j),this.signerOptions=j}async sign(j,w={}){if(w.signingRegion==="*")return this.getSigv4aSigner().sign(j,w);return this.sigv4Signer.sign(j,w)}async signWithCredentials(j,w,x={}){if(x.signingRegion==="*"){let E=this.getSigv4aSigner(),B=m.CrtSignerV4;if(B&&E instanceof B)return E.signWithCredentials(j,w,x);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(j,w,x)}async presign(j,w={}){if(w.signingRegion==="*"){let x=this.getSigv4aSigner(),E=m.CrtSignerV4;if(E&&x instanceof E)return x.presign(j,w);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(j,w)}async presignWithCredentials(j,w,x={}){if(x.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(j,w,x)}getSigv4aSigner(){if(!this.sigv4aSigner){let j=m.CrtSignerV4,w=jj.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!j&&!w)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(j&&typeof j==="function")this.sigv4aSigner=new j({...this.signerOptions,signingAlgorithm:1});else if(w&&typeof w==="function")this.sigv4aSigner=new w({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!w||typeof w!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new w({...this.signerOptions})}}return this.sigv4aSigner}}Dw.SignatureV4MultiRegion=Lj;Dw.SignatureV4SignWithCredentials=xj;Dw.signatureV4CrtContainer=m});var Y=fw(),S=hw(),Z=Uw(),$=Jw(),b=Hw(),d=Pw(),c=Iw(),Gj=kw(),H=_w(),_j=zj(),O=bw(),kj=Ww(),vw=Aw(),T="ref",h=-1,q=!0,Uj="isSet",Wj="PartitionResult",C="booleanEquals",Q="stringEquals",Bj="getAttr",Jj="us-east-1",Hj="sigv4",bj="sts",Pj="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ij={[T]:"Endpoint"},X={[T]:"Region"},Ej={[T]:Wj},R={},hj=[X],fj={conditions:[[Uj,[Ij]],[Uj,hj],["aws.partition",hj,Wj],[C,[{[T]:"UseFIPS"},q]],[C,[{[T]:"UseDualStack"},q]],[Q,[X,"aws-global"]],[C,[{[T]:"UseGlobalEndpoint"},q]],[Q,[X,"eu-central-1"]],[C,[{fn:Bj,argv:[Ej,"supportsDualStack"]},q]],[C,[{fn:Bj,argv:[Ej,"supportsFIPS"]},q]],[Q,[X,"ap-south-1"]],[Q,[X,"eu-north-1"]],[Q,[X,"eu-west-1"]],[Q,[X,"eu-west-2"]],[Q,[X,"eu-west-3"]],[Q,[X,"sa-east-1"]],[Q,[X,Jj]],[Q,[X,"us-east-2"]],[Q,[X,"us-west-2"]],[Q,[X,"us-west-1"]],[Q,[X,"ca-central-1"]],[Q,[X,"ap-southeast-1"]],[Q,[X,"ap-northeast-1"]],[Q,[X,"ap-southeast-2"]],[Q,[{fn:Bj,argv:[Ej,"name"]},"aws-us-gov"]]],results:[[h],["https://sts.amazonaws.com",{authSchemes:[{name:Hj,signingName:bj,signingRegion:Jj}]}],[Pj,{authSchemes:[{name:Hj,signingName:bj,signingRegion:"{Region}"}]}],[h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ij,R],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",R],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",R],[h,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"DualStack is enabled but this partition does not support DualStack"],[Pj,R],[h,"Invalid Configuration: Missing Region"]]},Vw=2,F=1e8,Rw=new Int32Array([-1,1,-1,0,30,3,1,4,F+14,2,5,F+14,3,25,6,4,24,7,5,F+1,8,6,9,F+13,7,F+1,10,10,F+1,11,11,F+1,12,12,F+1,13,13,F+1,14,14,F+1,15,15,F+1,16,16,F+1,17,17,F+1,18,18,F+1,19,19,F+1,20,20,F+1,21,21,F+1,22,22,F+1,23,23,F+1,F+2,8,F+11,F+12,4,28,26,9,27,F+10,24,F+8,F+9,8,29,F+7,9,F+6,F+7,3,F+3,31,4,F+4,F+5]),Ow=b.BinaryDecisionDiagram.from(Rw,Vw,fj.conditions,fj.results),Tw=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Aj=(j,w={})=>{return Tw.get(j,()=>b.decideEndpoint(Ow,{endpointParams:j,logger:w.logger}))};b.customEndpointFunctions.aws=Y.awsEndpointFunctions;var mw=(j)=>async(w,x,E)=>{if(!E)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let B=await j(w,x,E),N=Z.getSmithyContext(x)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!N)throw Error(`getEndpointParameterInstructions() is not defined on '${x.commandName}'`);let G=await b.resolveParams(E,{getEndpointParameterInstructions:N},w);return Object.assign(B,G)},qw=async(j,w,x)=>{return{operation:Z.getSmithyContext(w).operation,region:await Z.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Cw=mw(qw);function vj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Fj(j){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Vj(j){return{schemeId:"smithy.api#noAuth"}}var Sw=(j,w,x)=>{return(B)=>{let G=j(B).properties?.authSchemes;if(!G)return w(B);let M=[];for(let z of G){let{name:D,properties:k={},...I}=z,U=D.toLowerCase();if(D!==U)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${D}' to '${U}'`);let L;if(U==="sigv4a"){L="aws.auth#sigv4a";let s=G.find((e)=>{let $j=e.name.toLowerCase();return $j!=="sigv4a"&&$j.startsWith("sigv4")});if(_j.SignatureV4MultiRegion.sigv4aDependency()==="none"&&s)continue}else if(U.startsWith("sigv4"))L="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${U}'`);let V=x[L];if(!V)throw Error(`Could not find HttpAuthOption create function for '${L}'`);let J=V(B);J.schemeId=L,J.signingProperties={...J.signingProperties||{},...I,...k},M.push(J)}return M}},cw=(j)=>{let w=[];switch(j.operation){case"AssumeRoleWithWebIdentity":{w.push(Vj()),w.push(Fj(j));break}default:w.push(vj(j)),w.push(Fj(j))}return w},uw=Sw(Aj,cw,{"aws.auth#sigv4":vj,"aws.auth#sigv4a":Fj,"smithy.api#noAuth":Vj}),dw=(j)=>{let w=H.resolveAwsSdkSigV4Config(j),x=H.resolveAwsSdkSigV4AConfig(w);return Object.assign(x,{authSchemePreference:Z.normalizeProvider(j.authSchemePreference??[])})},pw=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,useGlobalEndpoint:j.useGlobalEndpoint??!1,defaultSigningName:"sts"})},Rj={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},lw="3.997.14",gw={version:lw};class y extends Z.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,y.prototype)}}class p extends y{name="ExpiredTokenException";$fault="client";constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,p.prototype)}}class l extends y{name="MalformedPolicyDocumentException";$fault="client";constructor(j){super({name:"MalformedPolicyDocumentException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype)}}class g extends y{name="PackedPolicyTooLargeException";$fault="client";constructor(j){super({name:"PackedPolicyTooLargeException",$fault:"client",...j});Object.setPrototypeOf(this,g.prototype)}}class a extends y{name="RegionDisabledException";$fault="client";constructor(j){super({name:"RegionDisabledException",$fault:"client",...j});Object.setPrototypeOf(this,a.prototype)}}class r extends y{name="IDPRejectedClaimException";$fault="client";constructor(j){super({name:"IDPRejectedClaimException",$fault:"client",...j});Object.setPrototypeOf(this,r.prototype)}}class o extends y{name="InvalidIdentityTokenException";$fault="client";constructor(j){super({name:"InvalidIdentityTokenException",$fault:"client",...j});Object.setPrototypeOf(this,o.prototype)}}class n extends y{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(j){super({name:"IDPCommunicationErrorException",$fault:"client",...j});Object.setPrototypeOf(this,n.prototype)}}var aw="Arn",rw="AccessKeyId",ow="AssumeRole",nw="AssumedRoleId",iw="AssumeRoleRequest",tw="AssumeRoleResponse",Kj="AssumedRoleUser",sw="AssumeRoleWithWebIdentity",ew="AssumeRoleWithWebIdentityRequest",jx="AssumeRoleWithWebIdentityResponse",wx="Audience",Nj="Credentials",xx="ContextAssertion",Oj="DurationSeconds",Bx="Expiration",Ex="ExternalId",Fx="ExpiredTokenException",Gx="IDPCommunicationErrorException",Kx="IDPRejectedClaimException",Nx="InvalidIdentityTokenException",Qx="Key",Xx="MalformedPolicyDocumentException",Tj="Policy",mj="PolicyArns",Yx="ProviderArn",Zx="ProvidedContexts",$x="ProvidedContextsListType",Mx="ProvidedContext",Dx="PolicyDescriptorType",yx="ProviderId",qj="PackedPolicySize",Lx="PackedPolicyTooLargeException",zx="Provider",Cj="RoleArn",kx="RegionDisabledException",Sj="RoleSessionName",Ux="SecretAccessKey",Jx="SubjectFromWebIdentityToken",Qj="SourceIdentity",Hx="SerialNumber",bx="SessionToken",Px="Tags",Ix="TokenCode",hx="TransitiveTagKeys",fx="Tag",_x="Value",Wx="WebIdentityToken",Ax="arn",vx="accessKeySecretType",f="awsQueryError",_="client",Vx="clientTokenType",W="error",A="httpError",v="message",Rx="policyDescriptorListType",cj="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ox="tagListType",K="com.amazonaws.sts",uj=Gj.TypeRegistry.for(cj),dj=[-3,cj,"STSServiceException",0,[],[]];uj.registerError(dj,y);var P=Gj.TypeRegistry.for(K),pj=[-3,K,Fx,{[f]:["ExpiredTokenException",400],[W]:_,[A]:400},[v],[0]];P.registerError(pj,p);var lj=[-3,K,Gx,{[f]:["IDPCommunicationError",400],[W]:_,[A]:400},[v],[0]];P.registerError(lj,n);var gj=[-3,K,Kx,{[f]:["IDPRejectedClaim",403],[W]:_,[A]:403},[v],[0]];P.registerError(gj,r);var aj=[-3,K,Nx,{[f]:["InvalidIdentityToken",400],[W]:_,[A]:400},[v],[0]];P.registerError(aj,o);var rj=[-3,K,Xx,{[f]:["MalformedPolicyDocument",400],[W]:_,[A]:400},[v],[0]];P.registerError(rj,l);var oj=[-3,K,Lx,{[f]:["PackedPolicyTooLarge",400],[W]:_,[A]:400},[v],[0]];P.registerError(oj,g);var nj=[-3,K,kx,{[f]:["RegionDisabledException",403],[W]:_,[A]:403},[v],[0]];P.registerError(nj,a);var ij=[uj,P],Tx=[0,K,vx,8,0],mx=[0,K,Vx,8,0],Xj=[3,K,Kj,0,[nw,aw],[0,0],2],tj=[3,K,iw,0,[Cj,Sj,mj,Tj,Oj,Px,hx,Ex,Hx,Ix,Qj,Zx],[0,0,()=>Ew,0,1,()=>Cx,64,0,0,0,0,()=>qx],2],sj=[3,K,tw,0,[Nj,Kj,qj,Qj],[[()=>Yj,0],()=>Xj,1,0]],ej=[3,K,ew,0,[Cj,Sj,Wx,yx,mj,Tj,Oj],[0,0,[()=>mx,0],0,()=>Ew,0,1],3],jw=[3,K,jx,0,[Nj,Jx,Kj,qj,zx,wx,Qj],[[()=>Yj,0],0,()=>Xj,1,0,0,0]],Yj=[3,K,Nj,0,[rw,Ux,bx,Bx],[0,[()=>Tx,0],0,4],4],ww=[3,K,Dx,0,[Ax],[0]],xw=[3,K,Mx,0,[Yx,xx],[0,0]],Bw=[3,K,fx,0,[Qx,_x],[0,0],2],Ew=[1,K,Rx,0,()=>ww],qx=[1,K,$x,0,()=>xw],Cx=[1,K,Ox,0,()=>Bw],Fw=[9,K,ow,0,()=>tj,()=>sj],Gw=[9,K,sw,0,()=>ej,()=>jw],Sx=(j)=>{return{apiVersion:"2011-06-15",base64Decoder:j?.base64Decoder??O.fromBase64,base64Encoder:j?.base64Encoder??O.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??Aj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??uw,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],logger:j?.logger??new Z.NoOpLogger,protocol:j?.protocol??vw.AwsQueryProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:ij,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:j?.serviceId??"STS",signerConstructor:j?.signerConstructor??_j.SignatureV4MultiRegion,urlParser:j?.urlParser??d.parseUrl,utf8Decoder:j?.utf8Decoder??O.fromUtf8,utf8Encoder:j?.utf8Encoder??O.toUtf8}},cx=(j)=>{Z.emitWarningIfUnsupportedVersion(process.version);let w=$.resolveDefaultsModeConfig(j),x=()=>w().then(Z.loadConfigsForDefaultMode),E=Sx(j);Y.emitWarningIfUnsupportedVersion(process.version);let B={profile:j?.profile,logger:E.logger};return{...E,...j,runtime:"node",defaultsMode:w,authSchemePreference:j?.authSchemePreference??$.loadConfig(H.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,B),bodyLengthChecker:j?.bodyLengthChecker??O.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Y.createDefaultUserAgentProvider({serviceId:E.serviceId,clientVersion:gw.version}),httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4")||(async(G)=>await j.credentialDefaultProvider(G?.__config||{})()),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(N)=>N.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],maxAttempts:j?.maxAttempts??$.loadConfig(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??$.loadConfig($.NODE_REGION_CONFIG_OPTIONS,{...$.NODE_REGION_CONFIG_FILE_OPTIONS,...B}),requestHandler:kj.NodeHttpHandler.create(j?.requestHandler??x),retryMode:j?.retryMode??$.loadConfig({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await x()).retryMode||c.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??O.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:j?.sigv4aSigningRegionSet??$.loadConfig(H.NODE_SIGV4A_CONFIG_OPTIONS,B),streamCollector:j?.streamCollector??kj.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??$.loadConfig($.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,B),useFipsEndpoint:j?.useFipsEndpoint??$.loadConfig($.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,B),userAgentAppId:j?.userAgentAppId??$.loadConfig(Y.NODE_APP_ID_CONFIG_OPTIONS,B)}},ux=(j)=>{let{httpAuthSchemes:w,httpAuthSchemeProvider:x,credentials:E}=j;return{setHttpAuthScheme(B){let N=w.findIndex((G)=>G.schemeId===B.schemeId);if(N===-1)w.push(B);else w.splice(N,1,B)},httpAuthSchemes(){return w},setHttpAuthSchemeProvider(B){x=B},httpAuthSchemeProvider(){return x},setCredentials(B){E=B},credentials(){return E}}},dx=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},px=(j,w)=>{let x=Object.assign(Y.getAwsRegionExtensionConfiguration(j),Z.getDefaultExtensionConfiguration(j),d.getHttpHandlerExtensionConfiguration(j),ux(j));return w.forEach((E)=>E.configure(x)),Object.assign(j,Y.resolveAwsRegionExtensionConfiguration(x),Z.resolveDefaultRuntimeConfig(x),d.resolveHttpHandlerRuntimeConfig(x),dx(x))};class u extends Z.Client{config;constructor(...[j]){let w=cx(j||{});super(w);this.initConfig=w;let x=pw(w),E=Y.resolveUserAgentConfig(x),B=c.resolveRetryConfig(E),N=$.resolveRegionConfig(B),G=Y.resolveHostHeaderConfig(N),M=b.resolveEndpointConfig(G),z=dw(M),D=px(z,j?.extensions||[]);this.config=D,this.middlewareStack.use(Gj.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Y.getUserAgentPlugin(this.config)),this.middlewareStack.use(c.getRetryPlugin(this.config)),this.middlewareStack.use(d.getContentLengthPlugin(this.config)),this.middlewareStack.use(Y.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Y.getLoggerPlugin(this.config)),this.middlewareStack.use(Y.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(S.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Cw,identityProviderConfigProvider:async(k)=>new S.DefaultIdentityProviderConfig({"aws.auth#sigv4":k.credentials,"aws.auth#sigv4a":k.credentials})})),this.middlewareStack.use(S.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class i extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Fw).build(){}class t extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Gw).build(){}var lx={AssumeRoleCommand:i,AssumeRoleWithWebIdentityCommand:t};class Zj extends u{}Z.createAggregatedClient(lx,Zj);var Kw=(j)=>{if(typeof j?.Arn==="string"){let w=j.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Nw=async(j,w,x,E={})=>{let B=typeof j==="function"?await j():j,N=typeof w==="function"?await w():w,G="",M=B??N??(G=await Y.stsRegionDefaultResolver(E)());return x?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${B} (credential provider clientConfig)`,`${N} (contextual client)`,`${G} (STS default: AWS_REGION, profile region, or us-east-1)`),M},gx=(j,w)=>{let x,E;return async(B,N)=>{if(E=B,!x){let{logger:k=j?.parentClientConfig?.logger,profile:I=j?.parentClientConfig?.profile,region:U,requestHandler:L=j?.parentClientConfig?.requestHandler,credentialProviderLogger:V,userAgentAppId:J=j?.parentClientConfig?.userAgentAppId}=j,s=await Nw(U,j?.parentClientConfig?.region,V,{logger:k,profile:I}),e=!Qw(L);x=new w({...j,userAgentAppId:J,profile:I,credentialDefaultProvider:()=>async()=>E,region:s,requestHandler:e?L:void 0,logger:k})}let{Credentials:G,AssumedRoleUser:M}=await x.send(new i(N));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${N.RoleArn}`);let z=Kw(M),D={accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...z&&{accountId:z}};return Y.setCredentialFeature(D,"CREDENTIALS_STS_ASSUME_ROLE","i"),D}},ax=(j,w)=>{let x;return async(E)=>{if(!x){let{logger:z=j?.parentClientConfig?.logger,profile:D=j?.parentClientConfig?.profile,region:k,requestHandler:I=j?.parentClientConfig?.requestHandler,credentialProviderLogger:U,userAgentAppId:L=j?.parentClientConfig?.userAgentAppId}=j,V=await Nw(k,j?.parentClientConfig?.region,U,{logger:z,profile:D}),J=!Qw(I);x=new w({...j,userAgentAppId:L,profile:D,region:V,requestHandler:J?I:void 0,logger:z})}let{Credentials:B,AssumedRoleUser:N}=await x.send(new t(E));if(!B||!B.AccessKeyId||!B.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${E.RoleArn}`);let G=Kw(N),M={accessKeyId:B.AccessKeyId,secretAccessKey:B.SecretAccessKey,sessionToken:B.SessionToken,expiration:B.Expiration,...B.CredentialScope&&{credentialScope:B.CredentialScope},...G&&{accountId:G}};if(G)Y.setCredentialFeature(M,"RESOLVED_ACCOUNT_ID","T");return Y.setCredentialFeature(M,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),M}},Qw=(j)=>{return j?.metadata?.handlerProtocol==="h2"},Xw=(j,w)=>{if(!w)return j;else return class extends j{constructor(E){super(E);for(let B of w)this.middlewareStack.use(B)}}},Yw=(j={},w)=>gx(j,Xw(u,w)),Zw=(j={},w)=>ax(j,Xw(u,w)),rx=(j)=>(w)=>j({roleAssumer:Yw(w),roleAssumerWithWebIdentity:Zw(w),...w});var{Command:ox,Client:nx}=Z,ix=Fw,tx=i,sx=tj,ex=sj,jB=Gw,wB=t,xB=ej,BB=jw,EB=Xj,FB=Yj,GB=p,KB=pj,NB=n,QB=lj,XB=r,YB=gj,ZB=o,$B=aj,MB=l,DB=rj,yB=g,LB=oj,zB=ww,kB=xw,UB=a,JB=nj,HB=Zj,bB=u,PB=y,IB=dj,hB=Bw,fB=rx,_B=ij,WB=Yw,AB=Zw;export{AB as getDefaultRoleAssumerWithWebIdentity,WB as getDefaultRoleAssumer,_B as errorTypeRegistries,fB as decorateDefaultCredentialProvider,nx as __Client,hB as Tag$,IB as STSServiceException$,PB as STSServiceException,bB as STSClient,HB as STS,JB as RegionDisabledException$,UB as RegionDisabledException,kB as ProvidedContext$,zB as PolicyDescriptorType$,LB as PackedPolicyTooLargeException$,yB as PackedPolicyTooLargeException,DB as MalformedPolicyDocumentException$,MB as MalformedPolicyDocumentException,$B as InvalidIdentityTokenException$,ZB as InvalidIdentityTokenException,YB as IDPRejectedClaimException$,XB as IDPRejectedClaimException,QB as IDPCommunicationErrorException$,NB as IDPCommunicationErrorException,KB as ExpiredTokenException$,GB as ExpiredTokenException,FB as Credentials$,EB as AssumedRoleUser$,BB as AssumeRoleWithWebIdentityResponse$,xB as AssumeRoleWithWebIdentityRequest$,wB as AssumeRoleWithWebIdentityCommand,jB as AssumeRoleWithWebIdentity$,ex as AssumeRoleResponse$,sx as AssumeRoleRequest$,tx as AssumeRoleCommand,ix as AssumeRole$,ox as $Command};export default {get getDefaultRoleAssumerWithWebIdentity(){return AB},get getDefaultRoleAssumer(){return WB},get errorTypeRegistries(){return _B},get decorateDefaultCredentialProvider(){return fB},get __Client(){return nx},get Tag$(){return hB},get STSServiceException$(){return IB},get STSServiceException(){return PB},get STSClient(){return bB},get STS(){return HB},get RegionDisabledException$(){return JB},get RegionDisabledException(){return UB},get ProvidedContext$(){return kB},get PolicyDescriptorType$(){return zB},get PackedPolicyTooLargeException$(){return LB},get PackedPolicyTooLargeException(){return yB},get MalformedPolicyDocumentException$(){return DB},get MalformedPolicyDocumentException(){return MB},get InvalidIdentityTokenException$(){return $B},get InvalidIdentityTokenException(){return ZB},get IDPRejectedClaimException$(){return YB},get IDPRejectedClaimException(){return XB},get IDPCommunicationErrorException$(){return QB},get IDPCommunicationErrorException(){return NB},get ExpiredTokenException$(){return KB},get ExpiredTokenException(){return GB},get Credentials$(){return FB},get AssumedRoleUser$(){return EB},get AssumeRoleWithWebIdentityResponse$(){return BB},get AssumeRoleWithWebIdentityRequest$(){return xB},get AssumeRoleWithWebIdentityCommand(){return wB},get AssumeRoleWithWebIdentity$(){return jB},get AssumeRoleResponse$(){return ex},get AssumeRoleRequest$(){return sx},get AssumeRoleCommand(){return tx},get AssumeRole$(){return ix},get $Command(){return ox}};
|
|
2
|
+
import{re as _w}from"./chunk-s9amvacw.js";import{se as Mw,ve as Aw}from"./chunk-0ae5q6ck.js";import{we as Ww}from"./chunk-1xyn0sp2.js";import{xe as Iw,ye as hw,ze as fw}from"./chunk-3nhqd8wg.js";import{Ae as Pw}from"./chunk-fkvccmgk.js";import{sf as kw,tf as Uw,uf as Jw,vf as Hw,wf as bw}from"./chunk-jbd9k041.js";import{zP as $w}from"./chunk-hh4c02fh.js";var zj=$w((Dw)=>{var jj=Mw(),m={CrtSignerV4:null},wj="X-Amz-S3session-Token",Mj=wj.toLowerCase();class xj extends jj.SignatureV4{async signWithCredentials(j,w,x){let E=Dj(w);j.headers[Mj]=w.sessionToken;let B=this;return yj(B,E),B.signRequest(j,x??{})}async presignWithCredentials(j,w,x){let E=Dj(w);return delete j.headers[Mj],j.headers[wj]=w.sessionToken,j.query=j.query??{},j.query[wj]=w.sessionToken,yj(this,E),this.presign(j,x)}}function Dj(j){return{accessKeyId:j.accessKeyId,secretAccessKey:j.secretAccessKey,expiration:j.expiration}}function yj(j,w){let x=j.credentialProvider;j.credentialProvider=()=>{return j.credentialProvider=x,Promise.resolve(w)}}class Lj{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof m.CrtSignerV4==="function")return"crt";else if(typeof jj.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(j){this.sigv4Signer=new xj(j),this.signerOptions=j}async sign(j,w={}){if(w.signingRegion==="*")return this.getSigv4aSigner().sign(j,w);return this.sigv4Signer.sign(j,w)}async signWithCredentials(j,w,x={}){if(x.signingRegion==="*"){let E=this.getSigv4aSigner(),B=m.CrtSignerV4;if(B&&E instanceof B)return E.signWithCredentials(j,w,x);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(j,w,x)}async presign(j,w={}){if(w.signingRegion==="*"){let x=this.getSigv4aSigner(),E=m.CrtSignerV4;if(E&&x instanceof E)return x.presign(j,w);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(j,w)}async presignWithCredentials(j,w,x={}){if(x.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(j,w,x)}getSigv4aSigner(){if(!this.sigv4aSigner){let j=m.CrtSignerV4,w=jj.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!j&&!w)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(j&&typeof j==="function")this.sigv4aSigner=new j({...this.signerOptions,signingAlgorithm:1});else if(w&&typeof w==="function")this.sigv4aSigner=new w({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!w||typeof w!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new w({...this.signerOptions})}}return this.sigv4aSigner}}Dw.SignatureV4MultiRegion=Lj;Dw.SignatureV4SignWithCredentials=xj;Dw.signatureV4CrtContainer=m});var Y=fw(),S=hw(),Z=Uw(),$=Jw(),b=Hw(),d=Pw(),c=Iw(),Gj=kw(),H=_w(),_j=zj(),O=bw(),kj=Ww(),vw=Aw(),T="ref",h=-1,q=!0,Uj="isSet",Wj="PartitionResult",C="booleanEquals",Q="stringEquals",Bj="getAttr",Jj="us-east-1",Hj="sigv4",bj="sts",Pj="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ij={[T]:"Endpoint"},X={[T]:"Region"},Ej={[T]:Wj},R={},hj=[X],fj={conditions:[[Uj,[Ij]],[Uj,hj],["aws.partition",hj,Wj],[C,[{[T]:"UseFIPS"},q]],[C,[{[T]:"UseDualStack"},q]],[Q,[X,"aws-global"]],[C,[{[T]:"UseGlobalEndpoint"},q]],[Q,[X,"eu-central-1"]],[C,[{fn:Bj,argv:[Ej,"supportsDualStack"]},q]],[C,[{fn:Bj,argv:[Ej,"supportsFIPS"]},q]],[Q,[X,"ap-south-1"]],[Q,[X,"eu-north-1"]],[Q,[X,"eu-west-1"]],[Q,[X,"eu-west-2"]],[Q,[X,"eu-west-3"]],[Q,[X,"sa-east-1"]],[Q,[X,Jj]],[Q,[X,"us-east-2"]],[Q,[X,"us-west-2"]],[Q,[X,"us-west-1"]],[Q,[X,"ca-central-1"]],[Q,[X,"ap-southeast-1"]],[Q,[X,"ap-northeast-1"]],[Q,[X,"ap-southeast-2"]],[Q,[{fn:Bj,argv:[Ej,"name"]},"aws-us-gov"]]],results:[[h],["https://sts.amazonaws.com",{authSchemes:[{name:Hj,signingName:bj,signingRegion:Jj}]}],[Pj,{authSchemes:[{name:Hj,signingName:bj,signingRegion:"{Region}"}]}],[h,"Invalid Configuration: FIPS and custom endpoint are not supported"],[h,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ij,R],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",R],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",R],[h,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",R],[h,"DualStack is enabled but this partition does not support DualStack"],[Pj,R],[h,"Invalid Configuration: Missing Region"]]},Vw=2,F=1e8,Rw=new Int32Array([-1,1,-1,0,30,3,1,4,F+14,2,5,F+14,3,25,6,4,24,7,5,F+1,8,6,9,F+13,7,F+1,10,10,F+1,11,11,F+1,12,12,F+1,13,13,F+1,14,14,F+1,15,15,F+1,16,16,F+1,17,17,F+1,18,18,F+1,19,19,F+1,20,20,F+1,21,21,F+1,22,22,F+1,23,23,F+1,F+2,8,F+11,F+12,4,28,26,9,27,F+10,24,F+8,F+9,8,29,F+7,9,F+6,F+7,3,F+3,31,4,F+4,F+5]),Ow=b.BinaryDecisionDiagram.from(Rw,Vw,fj.conditions,fj.results),Tw=new b.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Aj=(j,w={})=>{return Tw.get(j,()=>b.decideEndpoint(Ow,{endpointParams:j,logger:w.logger}))};b.customEndpointFunctions.aws=Y.awsEndpointFunctions;var mw=(j)=>async(w,x,E)=>{if(!E)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let B=await j(w,x,E),N=Z.getSmithyContext(x)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!N)throw Error(`getEndpointParameterInstructions() is not defined on '${x.commandName}'`);let G=await b.resolveParams(E,{getEndpointParameterInstructions:N},w);return Object.assign(B,G)},qw=async(j,w,x)=>{return{operation:Z.getSmithyContext(w).operation,region:await Z.normalizeProvider(j.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},Cw=mw(qw);function vj(j){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Fj(j){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:j.region},propertiesExtractor:(w,x)=>({signingProperties:{config:w,context:x}})}}function Vj(j){return{schemeId:"smithy.api#noAuth"}}var Sw=(j,w,x)=>{return(B)=>{let G=j(B).properties?.authSchemes;if(!G)return w(B);let M=[];for(let z of G){let{name:D,properties:k={},...I}=z,U=D.toLowerCase();if(D!==U)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${D}' to '${U}'`);let L;if(U==="sigv4a"){L="aws.auth#sigv4a";let s=G.find((e)=>{let $j=e.name.toLowerCase();return $j!=="sigv4a"&&$j.startsWith("sigv4")});if(_j.SignatureV4MultiRegion.sigv4aDependency()==="none"&&s)continue}else if(U.startsWith("sigv4"))L="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${U}'`);let V=x[L];if(!V)throw Error(`Could not find HttpAuthOption create function for '${L}'`);let J=V(B);J.schemeId=L,J.signingProperties={...J.signingProperties||{},...I,...k},M.push(J)}return M}},cw=(j)=>{let w=[];switch(j.operation){case"AssumeRoleWithWebIdentity":{w.push(Vj()),w.push(Fj(j));break}default:w.push(vj(j)),w.push(Fj(j))}return w},uw=Sw(Aj,cw,{"aws.auth#sigv4":vj,"aws.auth#sigv4a":Fj,"smithy.api#noAuth":Vj}),dw=(j)=>{let w=H.resolveAwsSdkSigV4Config(j),x=H.resolveAwsSdkSigV4AConfig(w);return Object.assign(x,{authSchemePreference:Z.normalizeProvider(j.authSchemePreference??[])})},pw=(j)=>{return Object.assign(j,{useDualstackEndpoint:j.useDualstackEndpoint??!1,useFipsEndpoint:j.useFipsEndpoint??!1,useGlobalEndpoint:j.useGlobalEndpoint??!1,defaultSigningName:"sts"})},Rj={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},lw="3.997.14",gw={version:lw};class y extends Z.ServiceException{constructor(j){super(j);Object.setPrototypeOf(this,y.prototype)}}class p extends y{name="ExpiredTokenException";$fault="client";constructor(j){super({name:"ExpiredTokenException",$fault:"client",...j});Object.setPrototypeOf(this,p.prototype)}}class l extends y{name="MalformedPolicyDocumentException";$fault="client";constructor(j){super({name:"MalformedPolicyDocumentException",$fault:"client",...j});Object.setPrototypeOf(this,l.prototype)}}class g extends y{name="PackedPolicyTooLargeException";$fault="client";constructor(j){super({name:"PackedPolicyTooLargeException",$fault:"client",...j});Object.setPrototypeOf(this,g.prototype)}}class a extends y{name="RegionDisabledException";$fault="client";constructor(j){super({name:"RegionDisabledException",$fault:"client",...j});Object.setPrototypeOf(this,a.prototype)}}class r extends y{name="IDPRejectedClaimException";$fault="client";constructor(j){super({name:"IDPRejectedClaimException",$fault:"client",...j});Object.setPrototypeOf(this,r.prototype)}}class o extends y{name="InvalidIdentityTokenException";$fault="client";constructor(j){super({name:"InvalidIdentityTokenException",$fault:"client",...j});Object.setPrototypeOf(this,o.prototype)}}class n extends y{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(j){super({name:"IDPCommunicationErrorException",$fault:"client",...j});Object.setPrototypeOf(this,n.prototype)}}var aw="Arn",rw="AccessKeyId",ow="AssumeRole",nw="AssumedRoleId",iw="AssumeRoleRequest",tw="AssumeRoleResponse",Kj="AssumedRoleUser",sw="AssumeRoleWithWebIdentity",ew="AssumeRoleWithWebIdentityRequest",jx="AssumeRoleWithWebIdentityResponse",wx="Audience",Nj="Credentials",xx="ContextAssertion",Oj="DurationSeconds",Bx="Expiration",Ex="ExternalId",Fx="ExpiredTokenException",Gx="IDPCommunicationErrorException",Kx="IDPRejectedClaimException",Nx="InvalidIdentityTokenException",Qx="Key",Xx="MalformedPolicyDocumentException",Tj="Policy",mj="PolicyArns",Yx="ProviderArn",Zx="ProvidedContexts",$x="ProvidedContextsListType",Mx="ProvidedContext",Dx="PolicyDescriptorType",yx="ProviderId",qj="PackedPolicySize",Lx="PackedPolicyTooLargeException",zx="Provider",Cj="RoleArn",kx="RegionDisabledException",Sj="RoleSessionName",Ux="SecretAccessKey",Jx="SubjectFromWebIdentityToken",Qj="SourceIdentity",Hx="SerialNumber",bx="SessionToken",Px="Tags",Ix="TokenCode",hx="TransitiveTagKeys",fx="Tag",_x="Value",Wx="WebIdentityToken",Ax="arn",vx="accessKeySecretType",f="awsQueryError",_="client",Vx="clientTokenType",W="error",A="httpError",v="message",Rx="policyDescriptorListType",cj="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ox="tagListType",K="com.amazonaws.sts",uj=Gj.TypeRegistry.for(cj),dj=[-3,cj,"STSServiceException",0,[],[]];uj.registerError(dj,y);var P=Gj.TypeRegistry.for(K),pj=[-3,K,Fx,{[f]:["ExpiredTokenException",400],[W]:_,[A]:400},[v],[0]];P.registerError(pj,p);var lj=[-3,K,Gx,{[f]:["IDPCommunicationError",400],[W]:_,[A]:400},[v],[0]];P.registerError(lj,n);var gj=[-3,K,Kx,{[f]:["IDPRejectedClaim",403],[W]:_,[A]:403},[v],[0]];P.registerError(gj,r);var aj=[-3,K,Nx,{[f]:["InvalidIdentityToken",400],[W]:_,[A]:400},[v],[0]];P.registerError(aj,o);var rj=[-3,K,Xx,{[f]:["MalformedPolicyDocument",400],[W]:_,[A]:400},[v],[0]];P.registerError(rj,l);var oj=[-3,K,Lx,{[f]:["PackedPolicyTooLarge",400],[W]:_,[A]:400},[v],[0]];P.registerError(oj,g);var nj=[-3,K,kx,{[f]:["RegionDisabledException",403],[W]:_,[A]:403},[v],[0]];P.registerError(nj,a);var ij=[uj,P],Tx=[0,K,vx,8,0],mx=[0,K,Vx,8,0],Xj=[3,K,Kj,0,[nw,aw],[0,0],2],tj=[3,K,iw,0,[Cj,Sj,mj,Tj,Oj,Px,hx,Ex,Hx,Ix,Qj,Zx],[0,0,()=>Ew,0,1,()=>Cx,64,0,0,0,0,()=>qx],2],sj=[3,K,tw,0,[Nj,Kj,qj,Qj],[[()=>Yj,0],()=>Xj,1,0]],ej=[3,K,ew,0,[Cj,Sj,Wx,yx,mj,Tj,Oj],[0,0,[()=>mx,0],0,()=>Ew,0,1],3],jw=[3,K,jx,0,[Nj,Jx,Kj,qj,zx,wx,Qj],[[()=>Yj,0],0,()=>Xj,1,0,0,0]],Yj=[3,K,Nj,0,[rw,Ux,bx,Bx],[0,[()=>Tx,0],0,4],4],ww=[3,K,Dx,0,[Ax],[0]],xw=[3,K,Mx,0,[Yx,xx],[0,0]],Bw=[3,K,fx,0,[Qx,_x],[0,0],2],Ew=[1,K,Rx,0,()=>ww],qx=[1,K,$x,0,()=>xw],Cx=[1,K,Ox,0,()=>Bw],Fw=[9,K,ow,0,()=>tj,()=>sj],Gw=[9,K,sw,0,()=>ej,()=>jw],Sx=(j)=>{return{apiVersion:"2011-06-15",base64Decoder:j?.base64Decoder??O.fromBase64,base64Encoder:j?.base64Encoder??O.toBase64,disableHostPrefix:j?.disableHostPrefix??!1,endpointProvider:j?.endpointProvider??Aj,extensions:j?.extensions??[],httpAuthSchemeProvider:j?.httpAuthSchemeProvider??uw,httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],logger:j?.logger??new Z.NoOpLogger,protocol:j?.protocol??vw.AwsQueryProtocol,protocolSettings:j?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:ij,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:j?.serviceId??"STS",signerConstructor:j?.signerConstructor??_j.SignatureV4MultiRegion,urlParser:j?.urlParser??d.parseUrl,utf8Decoder:j?.utf8Decoder??O.fromUtf8,utf8Encoder:j?.utf8Encoder??O.toUtf8}},cx=(j)=>{Z.emitWarningIfUnsupportedVersion(process.version);let w=$.resolveDefaultsModeConfig(j),x=()=>w().then(Z.loadConfigsForDefaultMode),E=Sx(j);Y.emitWarningIfUnsupportedVersion(process.version);let B={profile:j?.profile,logger:E.logger};return{...E,...j,runtime:"node",defaultsMode:w,authSchemePreference:j?.authSchemePreference??$.loadConfig(H.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,B),bodyLengthChecker:j?.bodyLengthChecker??O.calculateBodyLength,defaultUserAgentProvider:j?.defaultUserAgentProvider??Y.createDefaultUserAgentProvider({serviceId:E.serviceId,clientVersion:gw.version}),httpAuthSchemes:j?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4")||(async(G)=>await j.credentialDefaultProvider(G?.__config||{})()),signer:new H.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(N)=>N.getIdentityProvider("aws.auth#sigv4a"),signer:new H.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(N)=>N.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new S.NoAuthSigner}],maxAttempts:j?.maxAttempts??$.loadConfig(c.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,j),region:j?.region??$.loadConfig($.NODE_REGION_CONFIG_OPTIONS,{...$.NODE_REGION_CONFIG_FILE_OPTIONS,...B}),requestHandler:kj.NodeHttpHandler.create(j?.requestHandler??x),retryMode:j?.retryMode??$.loadConfig({...c.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await x()).retryMode||c.DEFAULT_RETRY_MODE},j),sha256:j?.sha256??O.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:j?.sigv4aSigningRegionSet??$.loadConfig(H.NODE_SIGV4A_CONFIG_OPTIONS,B),streamCollector:j?.streamCollector??kj.streamCollector,useDualstackEndpoint:j?.useDualstackEndpoint??$.loadConfig($.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,B),useFipsEndpoint:j?.useFipsEndpoint??$.loadConfig($.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,B),userAgentAppId:j?.userAgentAppId??$.loadConfig(Y.NODE_APP_ID_CONFIG_OPTIONS,B)}},ux=(j)=>{let{httpAuthSchemes:w,httpAuthSchemeProvider:x,credentials:E}=j;return{setHttpAuthScheme(B){let N=w.findIndex((G)=>G.schemeId===B.schemeId);if(N===-1)w.push(B);else w.splice(N,1,B)},httpAuthSchemes(){return w},setHttpAuthSchemeProvider(B){x=B},httpAuthSchemeProvider(){return x},setCredentials(B){E=B},credentials(){return E}}},dx=(j)=>{return{httpAuthSchemes:j.httpAuthSchemes(),httpAuthSchemeProvider:j.httpAuthSchemeProvider(),credentials:j.credentials()}},px=(j,w)=>{let x=Object.assign(Y.getAwsRegionExtensionConfiguration(j),Z.getDefaultExtensionConfiguration(j),d.getHttpHandlerExtensionConfiguration(j),ux(j));return w.forEach((E)=>E.configure(x)),Object.assign(j,Y.resolveAwsRegionExtensionConfiguration(x),Z.resolveDefaultRuntimeConfig(x),d.resolveHttpHandlerRuntimeConfig(x),dx(x))};class u extends Z.Client{config;constructor(...[j]){let w=cx(j||{});super(w);this.initConfig=w;let x=pw(w),E=Y.resolveUserAgentConfig(x),B=c.resolveRetryConfig(E),N=$.resolveRegionConfig(B),G=Y.resolveHostHeaderConfig(N),M=b.resolveEndpointConfig(G),z=dw(M),D=px(z,j?.extensions||[]);this.config=D,this.middlewareStack.use(Gj.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Y.getUserAgentPlugin(this.config)),this.middlewareStack.use(c.getRetryPlugin(this.config)),this.middlewareStack.use(d.getContentLengthPlugin(this.config)),this.middlewareStack.use(Y.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Y.getLoggerPlugin(this.config)),this.middlewareStack.use(Y.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(S.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Cw,identityProviderConfigProvider:async(k)=>new S.DefaultIdentityProviderConfig({"aws.auth#sigv4":k.credentials,"aws.auth#sigv4a":k.credentials})})),this.middlewareStack.use(S.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class i extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Fw).build(){}class t extends Z.Command.classBuilder().ep(Rj).m(function(j,w,x,E){return[b.getEndpointPlugin(x,j.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Gw).build(){}var lx={AssumeRoleCommand:i,AssumeRoleWithWebIdentityCommand:t};class Zj extends u{}Z.createAggregatedClient(lx,Zj);var Kw=(j)=>{if(typeof j?.Arn==="string"){let w=j.Arn.split(":");if(w.length>4&&w[4]!=="")return w[4]}return},Nw=async(j,w,x,E={})=>{let B=typeof j==="function"?await j():j,N=typeof w==="function"?await w():w,G="",M=B??N??(G=await Y.stsRegionDefaultResolver(E)());return x?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${B} (credential provider clientConfig)`,`${N} (contextual client)`,`${G} (STS default: AWS_REGION, profile region, or us-east-1)`),M},gx=(j,w)=>{let x,E;return async(B,N)=>{if(E=B,!x){let{logger:k=j?.parentClientConfig?.logger,profile:I=j?.parentClientConfig?.profile,region:U,requestHandler:L=j?.parentClientConfig?.requestHandler,credentialProviderLogger:V,userAgentAppId:J=j?.parentClientConfig?.userAgentAppId}=j,s=await Nw(U,j?.parentClientConfig?.region,V,{logger:k,profile:I}),e=!Qw(L);x=new w({...j,userAgentAppId:J,profile:I,credentialDefaultProvider:()=>async()=>E,region:s,requestHandler:e?L:void 0,logger:k})}let{Credentials:G,AssumedRoleUser:M}=await x.send(new i(N));if(!G||!G.AccessKeyId||!G.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${N.RoleArn}`);let z=Kw(M),D={accessKeyId:G.AccessKeyId,secretAccessKey:G.SecretAccessKey,sessionToken:G.SessionToken,expiration:G.Expiration,...G.CredentialScope&&{credentialScope:G.CredentialScope},...z&&{accountId:z}};return Y.setCredentialFeature(D,"CREDENTIALS_STS_ASSUME_ROLE","i"),D}},ax=(j,w)=>{let x;return async(E)=>{if(!x){let{logger:z=j?.parentClientConfig?.logger,profile:D=j?.parentClientConfig?.profile,region:k,requestHandler:I=j?.parentClientConfig?.requestHandler,credentialProviderLogger:U,userAgentAppId:L=j?.parentClientConfig?.userAgentAppId}=j,V=await Nw(k,j?.parentClientConfig?.region,U,{logger:z,profile:D}),J=!Qw(I);x=new w({...j,userAgentAppId:L,profile:D,region:V,requestHandler:J?I:void 0,logger:z})}let{Credentials:B,AssumedRoleUser:N}=await x.send(new t(E));if(!B||!B.AccessKeyId||!B.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${E.RoleArn}`);let G=Kw(N),M={accessKeyId:B.AccessKeyId,secretAccessKey:B.SecretAccessKey,sessionToken:B.SessionToken,expiration:B.Expiration,...B.CredentialScope&&{credentialScope:B.CredentialScope},...G&&{accountId:G}};if(G)Y.setCredentialFeature(M,"RESOLVED_ACCOUNT_ID","T");return Y.setCredentialFeature(M,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),M}},Qw=(j)=>{return j?.metadata?.handlerProtocol==="h2"},Xw=(j,w)=>{if(!w)return j;else return class extends j{constructor(E){super(E);for(let B of w)this.middlewareStack.use(B)}}},Yw=(j={},w)=>gx(j,Xw(u,w)),Zw=(j={},w)=>ax(j,Xw(u,w)),rx=(j)=>(w)=>j({roleAssumer:Yw(w),roleAssumerWithWebIdentity:Zw(w),...w});var{Command:ox,Client:nx}=Z,ix=Fw,tx=i,sx=tj,ex=sj,jB=Gw,wB=t,xB=ej,BB=jw,EB=Xj,FB=Yj,GB=p,KB=pj,NB=n,QB=lj,XB=r,YB=gj,ZB=o,$B=aj,MB=l,DB=rj,yB=g,LB=oj,zB=ww,kB=xw,UB=a,JB=nj,HB=Zj,bB=u,PB=y,IB=dj,hB=Bw,fB=rx,_B=ij,WB=Yw,AB=Zw;export{AB as getDefaultRoleAssumerWithWebIdentity,WB as getDefaultRoleAssumer,_B as errorTypeRegistries,fB as decorateDefaultCredentialProvider,nx as __Client,hB as Tag$,IB as STSServiceException$,PB as STSServiceException,bB as STSClient,HB as STS,JB as RegionDisabledException$,UB as RegionDisabledException,kB as ProvidedContext$,zB as PolicyDescriptorType$,LB as PackedPolicyTooLargeException$,yB as PackedPolicyTooLargeException,DB as MalformedPolicyDocumentException$,MB as MalformedPolicyDocumentException,$B as InvalidIdentityTokenException$,ZB as InvalidIdentityTokenException,YB as IDPRejectedClaimException$,XB as IDPRejectedClaimException,QB as IDPCommunicationErrorException$,NB as IDPCommunicationErrorException,KB as ExpiredTokenException$,GB as ExpiredTokenException,FB as Credentials$,EB as AssumedRoleUser$,BB as AssumeRoleWithWebIdentityResponse$,xB as AssumeRoleWithWebIdentityRequest$,wB as AssumeRoleWithWebIdentityCommand,jB as AssumeRoleWithWebIdentity$,ex as AssumeRoleResponse$,sx as AssumeRoleRequest$,tx as AssumeRoleCommand,ix as AssumeRole$,ox as $Command};export default {get getDefaultRoleAssumerWithWebIdentity(){return AB},get getDefaultRoleAssumer(){return WB},get errorTypeRegistries(){return _B},get decorateDefaultCredentialProvider(){return fB},get __Client(){return nx},get Tag$(){return hB},get STSServiceException$(){return IB},get STSServiceException(){return PB},get STSClient(){return bB},get STS(){return HB},get RegionDisabledException$(){return JB},get RegionDisabledException(){return UB},get ProvidedContext$(){return kB},get PolicyDescriptorType$(){return zB},get PackedPolicyTooLargeException$(){return LB},get PackedPolicyTooLargeException(){return yB},get MalformedPolicyDocumentException$(){return DB},get MalformedPolicyDocumentException(){return MB},get InvalidIdentityTokenException$(){return $B},get InvalidIdentityTokenException(){return ZB},get IDPRejectedClaimException$(){return YB},get IDPRejectedClaimException(){return XB},get IDPCommunicationErrorException$(){return QB},get IDPCommunicationErrorException(){return NB},get ExpiredTokenException$(){return KB},get ExpiredTokenException(){return GB},get Credentials$(){return FB},get AssumedRoleUser$(){return EB},get AssumeRoleWithWebIdentityResponse$(){return BB},get AssumeRoleWithWebIdentityRequest$(){return xB},get AssumeRoleWithWebIdentityCommand(){return wB},get AssumeRoleWithWebIdentity$(){return jB},get AssumeRoleResponse$(){return ex},get AssumeRoleRequest$(){return sx},get AssumeRoleCommand(){return tx},get AssumeRole$(){return ix},get $Command(){return ox}};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{xp as q}from"./chunk-kkvb2c2z.js";class z extends Error{cause;constructor(j,x){super(j);this.name="QreditChargeError",this.cause=x}}async function B(j){return q(j)}function C(j){return Number.isInteger(j)?String(j):j.toFixed(2)}
|
|
3
|
+
export{z as E,B as F,C as G};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{mf as h}from"./chunk-y2jmtfdh.js";import"./chunk-bf146hz2.js";import"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-hh4c02fh.js";var v=(q)=>{return h({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...q||{}})},x=v();export{x as unified,v as createUnified};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-fd1vbz1f.js";import"./chunk-naq602da.js";var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":'Pregunta lo que quieras... "{{example}}"',"tui.prompt.placeholder.shell":'Ejecuta un comando... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab para aceptar)","tui.home.placeholder.example.todo":"Corregir un TODO en el c\xF3digo","tui.home.placeholder.example.stack":"\xBFCu\xE1l es el stack t\xE9cnico del proyecto?","tui.home.placeholder.example.tests":"Arreglar las pruebas fallidas","tui.home.agreement.prefix":"Al usar QitQode, aceptas nuestros ","tui.home.agreement.terms":"T\xE9rminos de servicio","tui.home.agreement.separator":" y la ","tui.home.agreement.privacy":"Pol\xEDtica de privacidad","tui.home.agreement.suffix":"","tui.prompt.hint.attach_file":"adjuntar archivo","tui.prompt.hint.subagent":"subagente","tui.prompt.hint.commands":"comandos","tui.prompt.hint.switch_mode":"cambiar modo","tui.prompt.hint.settings":"ajustes","tui.tips.label":"Sugerencia","tui.tips.plain_terminal":"Recomendamos usar iTerm o la terminal de VS Code","tui.tips.attach_file":"Escribe {highlight}@{/highlight} seguido del nombre de archivo para buscar de forma difusa y adjuntar archivos","tui.tips.shell_prefix":"Empieza un mensaje con {highlight}!{/highlight} para ejecutar comandos del shell directamente (p. ej., {highlight}!ls -la{/highlight})","tui.tips.tab_agent":"Pulsa {highlight}Tab{/highlight} o {highlight}Shift+Tab{/highlight} para alternar entre los agentes Build, Plan y Compose","tui.tips.theme_mode":"Ejecuta {highlight}/dark{/highlight} para el modo oscuro o {highlight}/light{/highlight} para el modo claro","tui.tips.doc":"Ejecuta {highlight}/doc{/highlight} para abrir la documentaci\xF3n de usuario","tui.tips.undo":"Usa {highlight}/undo{/highlight} para revertir el \xFAltimo mensaje y los cambios en archivos","tui.tips.redo":"Usa {highlight}/redo{/highlight} para restaurar mensajes y cambios deshechos previamente","tui.tips.drag_drop":"Arrastra y suelta im\xE1genes o PDF en el terminal para a\xF1adirlos como contexto","tui.tips.paste_image":"Pulsa {highlight}Ctrl+V{/highlight} para pegar im\xE1genes desde el portapapeles en la entrada","tui.tips.editor":"Pulsa {highlight}Ctrl+X E{/highlight} o {highlight}/editor{/highlight} para componer mensajes en tu editor externo","tui.tips.init":"Ejecuta {highlight}/init{/highlight} para autogenerar reglas del proyecto a partir de tu c\xF3digo","tui.tips.models":"Ejecuta {highlight}/models{/highlight} o {highlight}Ctrl+X M{/highlight} para cambiar entre los modelos disponibles","tui.tips.theme":'Bloquea el modo de tema frente al fondo de tu terminal \u2014 abre la paleta de comandos ({highlight}Ctrl+P{/highlight}) y busca "lock"',"tui.tips.new_session":"Pulsa {highlight}Ctrl+X N{/highlight} o {highlight}/new{/highlight} para iniciar una nueva sesi\xF3n","tui.tips.sessions":"Usa {highlight}/sessions{/highlight} o {highlight}Ctrl+X L{/highlight} para listar y continuar conversaciones anteriores","tui.tips.compact":"Ejecuta {highlight}/compact{/highlight} para resumir sesiones largas cerca del l\xEDmite de contexto","tui.tips.export":"Pulsa {highlight}Ctrl+X X{/highlight} o {highlight}/export{/highlight} para guardar la conversaci\xF3n como Markdown","tui.tips.copy_last":"Pulsa {highlight}Ctrl+X Y{/highlight} para copiar el \xFAltimo mensaje del asistente al portapapeles","tui.tips.command_palette":"Pulsa {highlight}Ctrl+P{/highlight} para ver todas las acciones y comandos disponibles","tui.tips.leader":"La tecla l\xEDder es {highlight}Ctrl+X{/highlight}; comb\xEDnala con otras teclas para acciones r\xE1pidas","tui.tips.f2":"Pulsa {highlight}F2{/highlight} para alternar r\xE1pidamente entre los modelos usados recientemente","tui.tips.sidebar":"Pulsa {highlight}Ctrl+X B{/highlight} para mostrar/ocultar la barra lateral","tui.tips.history":"Usa {highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} para navegar por el historial de la conversaci\xF3n","tui.tips.jump_first":"Pulsa {highlight}Ctrl+G{/highlight} o {highlight}Home{/highlight} para ir al inicio de la conversaci\xF3n","tui.tips.jump_last":"Pulsa {highlight}Ctrl+Alt+G{/highlight} o {highlight}End{/highlight} para ir al mensaje m\xE1s reciente","tui.tips.newline":"Pulsa {highlight}Shift+Enter{/highlight} o {highlight}Ctrl+J{/highlight} para a\xF1adir saltos de l\xEDnea en la entrada","tui.tips.clear_input":"Pulsa {highlight}Ctrl+C{/highlight} mientras escribes para vaciar el campo de entrada","tui.tips.escape":"Pulsa {highlight}Escape{/highlight} para detener la respuesta de la IA en curso","tui.tips.plan_agent":"Cambia al agente {highlight}Plan{/highlight} para obtener sugerencias sin aplicar cambios reales","tui.tips.subagent":"Usa {highlight}@agent-name{/highlight} en las indicaciones para invocar subagentes especializados","tui.tips.cycle_sessions":"Pulsa {highlight}Ctrl+X Right/Left{/highlight} para alternar entre sesiones padre e hija","tui.tips.config_files":"Crea {highlight}qitqode.json{/highlight} para la configuraci\xF3n del servidor y {highlight}tui.json{/highlight} para la TUI","tui.tips.global_config":"Coloca la configuraci\xF3n de TUI en {highlight}~/.config/qitqode/tui.json{/highlight} como configuraci\xF3n global","tui.tips.schema":"A\xF1ade {highlight}$schema{/highlight} a tu configuraci\xF3n para autocompletado en el editor","tui.tips.default_model":"Configura {highlight}model{/highlight} en la config para definir tu modelo por defecto","tui.tips.keybinds":"Sobrescribe cualquier atajo en {highlight}tui.json{/highlight} mediante la secci\xF3n {highlight}keybinds{/highlight}","tui.tips.disable_keybind":"Establece un atajo en {highlight}none{/highlight} para deshabilitarlo por completo","tui.tips.mcp_config":"Configura servidores MCP locales o remotos en la secci\xF3n {highlight}mcp{/highlight}","tui.tips.mcp_oauth":"QitQode gestiona autom\xE1ticamente OAuth para servidores MCP remotos que requieran autenticaci\xF3n","tui.tips.custom_command":"A\xF1ade archivos {highlight}.md{/highlight} en {highlight}.qitqode/command/{/highlight} para definir indicaciones personalizadas reutilizables","tui.tips.command_args":"Usa {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} en comandos personalizados para entradas din\xE1micas","tui.tips.command_backticks":"Usa comillas invertidas en los comandos para inyectar la salida del shell (p. ej. {highlight}`git status`{/highlight})","tui.tips.custom_agent":"A\xF1ade archivos {highlight}.md{/highlight} en {highlight}.qitqode/agent/{/highlight} para personajes de IA especializados","tui.tips.agent_perms":"Configura por agente los permisos de las herramientas {highlight}edit{/highlight}, {highlight}bash{/highlight} y {highlight}webfetch{/highlight}","tui.tips.bash_allow":'Usa patrones como {highlight}"git *": "allow"{/highlight} para permisos de bash m\xE1s finos',"tui.tips.bash_deny":'Define {highlight}"rm -rf *": "deny"{/highlight} para bloquear comandos destructivos',"tui.tips.bash_ask":'Configura {highlight}"git push": "ask"{/highlight} para exigir confirmaci\xF3n antes de hacer push',"tui.tips.formatter":"QitQode formatea archivos autom\xE1ticamente con prettier, gofmt, ruff y m\xE1s","tui.tips.disable_formatter":'Define {highlight}"formatter": false{/highlight} en la config para desactivar el formato autom\xE1tico',"tui.tips.custom_formatter":"Define comandos de formateo personalizados por extensi\xF3n de archivo en la configuraci\xF3n","tui.tips.lsp":"QitQode usa servidores LSP para an\xE1lisis inteligente de c\xF3digo","tui.tips.custom_tool":"Crea archivos {highlight}.ts{/highlight} en {highlight}.qitqode/tools/{/highlight} para definir nuevas herramientas LLM","tui.tips.tool_scripts":"Las definiciones de herramientas pueden invocar scripts en Python, Go, etc.","tui.tips.plugins":"A\xF1ade archivos {highlight}.ts{/highlight} en {highlight}.qitqode/plugin/{/highlight} para enganchar eventos","tui.tips.plugin_notify":"Usa plugins para enviar notificaciones del sistema cuando termine una sesi\xF3n","tui.tips.plugin_protect":"Crea un plugin que impida a QitQode leer archivos sensibles","tui.tips.run":"Usa {highlight}qitqode run{/highlight} para scripting no interactivo","tui.tips.continue":"Usa {highlight}qitqode --continue{/highlight} para retomar la \xFAltima sesi\xF3n","tui.tips.attach_cli":"Usa {highlight}qitqode run -f file.ts{/highlight} para adjuntar archivos v\xEDa CLI","tui.tips.format_json":"Usa {highlight}--format json{/highlight} para obtener salida legible por m\xE1quina en scripts","tui.tips.auth_list":"Ejecuta {highlight}qitqode auth status{/highlight} para ver tu estado de inicio de sesi\xF3n actual","tui.tips.agent_create":"Ejecuta {highlight}qitqode agent create{/highlight} para crear un agente con asistente guiado","tui.tips.theme_system":'Usa {highlight}"theme": "system"{/highlight} para seguir los colores de tu terminal',"tui.tips.theme_files":"Crea archivos JSON de tema en el directorio {highlight}.qitqode/themes/{/highlight}","tui.tips.theme_variants":"Los temas admiten variantes claras/oscuras para ambos modos","tui.tips.theme_ansi":"Referencia colores ANSI 0-255 en temas personalizados","tui.tips.env_var":"Usa la sintaxis {highlight}{env:VAR_NAME}{/highlight} para referenciar variables de entorno en la config","tui.tips.file_var":"Usa {highlight}{file:path}{/highlight} para incluir el contenido de un archivo en valores de la config","tui.tips.instructions":"Usa {highlight}instructions{/highlight} en la config para cargar archivos de reglas adicionales","tui.tips.temperature":"Ajusta la {highlight}temperature{/highlight} del agente desde 0.0 (enfocado) hasta 1.0 (creativo)","tui.tips.steps":"Configura {highlight}steps{/highlight} para limitar las iteraciones ag\xE9nticas por petici\xF3n","tui.tips.disable_tool":'Define {highlight}"tools": {"bash": false}{/highlight} para deshabilitar herramientas concretas',"tui.tips.disable_mcp_tools":'Define {highlight}"mcp_*": false{/highlight} para deshabilitar todas las herramientas de un servidor MCP',"tui.tips.tool_override":"Sobrescribe la configuraci\xF3n global de herramientas en cada agente","tui.tips.doom_loop":"El permiso {highlight}doom_loop{/highlight} previene bucles infinitos de llamadas a herramientas","tui.tips.external_dir":"El permiso {highlight}external_directory{/highlight} protege archivos fuera del proyecto","tui.tips.debug_config":"Ejecuta {highlight}qitqode debug config{/highlight} para diagnosticar problemas de configuraci\xF3n","tui.tips.print_logs":"Usa la opci\xF3n {highlight}--print-logs{/highlight} para ver logs detallados en stderr","tui.tips.timeline":"Pulsa {highlight}Ctrl+X G{/highlight} o {highlight}/timeline{/highlight} para saltar a un mensaje concreto","tui.tips.toggle_code":"Pulsa {highlight}Ctrl+X H{/highlight} para alternar la visibilidad de los bloques de c\xF3digo","tui.tips.status":"Pulsa {highlight}Ctrl+X S{/highlight} o {highlight}/status{/highlight} para ver el estado del sistema","tui.tips.scroll_accel":"Activa {highlight}scroll_acceleration{/highlight} en {highlight}tui.json{/highlight} para un desplazamiento suave","tui.tips.agents_md":"Sube el {highlight}AGENTS.md{/highlight} de tu proyecto a Git para compartirlo con el equipo","tui.tips.review":"Usa {highlight}/review{/highlight} para revisar cambios sin commit, ramas o PR","tui.tips.help":"Ejecuta {highlight}/help{/highlight} o {highlight}Ctrl+X H{/highlight} para abrir el di\xE1logo de ayuda","tui.tips.rename":"Usa {highlight}/rename{/highlight} para renombrar la sesi\xF3n actual","tui.tips.suspend.unix":"Pulsa {highlight}Ctrl+Z{/highlight} para suspender el terminal y volver al shell","tui.tips.suspend.win":"Pulsa {highlight}Ctrl+Z{/highlight} para deshacer cambios en la entrada","tui.command.palette.title":"Comandos","tui.command.palette.suggested":"Sugeridos","tui.command.category.session":"Sesi\xF3n","tui.command.category.agent":"Agente","tui.command.category.provider":"Proveedor","tui.command.category.system":"Sistema","tui.command.category.prompt":"Entrada","tui.command.category.internal":"Interno","tui.command.category.external":"Externo","tui.slash.init.description":"configuraci\xF3n guiada de AGENTS.md","tui.slash.review.description":"revisar cambios [commit|branch|pr], por defecto sin confirmar","tui.slash.dream.description":"consolidar manualmente la memoria del proyecto desde archivos memory y la trayectoria en bruto","tui.slash.distill.description":"encontrar flujos repetidos en el trabajo reciente y empaquetarlos en skills, subagentes o comandos","tui.slash.goal.description":"definir un objetivo con condici\xF3n de parada; se ejecuta hasta que un juez confirme. /goal clear para abortar","tui.slash.deep-research.description":"informe de investigaci\xF3n profunda multi-fuente y verificado (ejecuta el workflow deep-research)","tui.command.language.switch.title":"Cambiar idioma","tui.command.language.switch.description":"Cambiar el idioma de la interfaz","tui.command.language.dialog.title":"Cambiar idioma","tui.language.auto":"Auto (sistema)","tui.language.current":"Actual","tui.command.session.list.title":"Cambiar sesi\xF3n","tui.command.session.new.title":"Nueva sesi\xF3n","tui.command.workflow.list.title":"Flujos de trabajo","tui.command.model.list.title":"Cambiar modelo","tui.command.model.cycle_recent.title":"Ciclo de modelos","tui.command.model.cycle_recent_reverse.title":"Ciclo de modelos (inverso)","tui.command.model.cycle_favorite.title":"Ciclo de favoritos","tui.command.model.cycle_favorite_reverse.title":"Ciclo de favoritos (inverso)","tui.command.agent.list.title":"Cambiar agente","tui.command.mcp.list.title":"Alternar MCP","tui.command.never_ask.title_on":"Sin preguntas: ACTIVADO (auto-decidir, permisos excluidos) \u2014 clic para desactivar","tui.command.never_ask.title_off":"Sin preguntas: DESACTIVADO \u2014 clic para activar (auto-decidir, permisos excluidos)","tui.command.never_ask.toast_on":"Sin preguntas ACTIVADO \u2014 no te preguntar\xE9; elegir\xE9 la mejor opci\xF3n yo mismo hasta que lo desactives (/never-ask). Las solicitudes de permiso siguen requiriendo tu aprobaci\xF3n.","tui.command.never_ask.toast_off":"Sin preguntas DESACTIVADO \u2014 volver\xE9 a preguntarte en los puntos de decisi\xF3n.","tui.command.agent.cycle.title":"Ciclo de agentes","tui.command.variant.cycle.title":"Ciclo de variantes","tui.command.variant.list.title":"Cambiar variante de modelo","tui.command.agent.cycle.reverse.title":"Ciclo de agentes (inverso)","tui.command.provider.login.title":"Iniciar sesi\xF3n","tui.command.provider.logout.title":"Cerrar sesi\xF3n","tui.command.console.org.switch.title":"Cambiar de organizaci\xF3n","tui.command.qitqode.status.title":"Ver estado","tui.command.theme.switch.title":"Cambiar tema","tui.command.theme.switch_mode.to_light":"Cambiar a modo claro","tui.command.theme.switch_mode.to_dark":"Cambiar a modo oscuro","tui.command.theme.mode.unlock":"Desbloquear modo del tema","tui.command.theme.mode.lock":"Bloquear modo del tema","tui.command.help.show.title":"Ayuda","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"Accesibilidad: activa o desactiva animaciones y sonido desde la lista de comandos. Variables de entorno: NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND.","tui.dialog.help.announcements":"Anuncios: en modo accesible, elige el nivel de detalle de los anuncios para lectores de pantalla (silencioso, normal, detallado) desde la lista de comandos o con QITQODE_TUI_ANNOUNCEMENTS. Los errores siempre se anuncian.","tui.dialog.help.dialog_keys":"Di\xE1logos: todos los di\xE1logos funcionan solo con el teclado \u2014 Esc cierra, Tab o las flechas mueven el foco, Enter o Espacio activan el control enfocado.","tui.command.app.announcements.cycle":"Anuncios: {{level}} (selecciona para cambiar)","tui.announcements.level.quiet":"silencioso","tui.announcements.level.normal":"normal","tui.announcements.level.verbose":"detallado","tui.app.terminal_too_small":"Terminal demasiado peque\xF1a ({{width}}x{{height}}). Ampl\xEDala al menos a 40x8.","tui.dialog.help.command_list":"Pulsa {{keybind}} para ver todas las acciones y comandos disponibles en cualquier contexto.","tui.dialog.help.ok":"Aceptar","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 desplazar \xB7 ReP\xE1g/AvP\xE1g p\xE1gina \xB7 esc cerrar","tui.dialog.ok":"Aceptar","tui.dialog.confirm.cancel":"Cancelar","tui.dialog.confirm.confirm":"Confirmar","tui.dialog.agreement.title":"T\xE9rminos y privacidad","tui.dialog.agreement.message":"Rev\xEDsalos y acepta para continuar.","tui.dialog.agreement.confirm":"Aceptar y continuar","tui.command.docs.terms.title":"Ver los t\xE9rminos de servicio","tui.command.docs.privacy.title":"Ver la pol\xEDtica de privacidad","tui.command.consent.revoke.title":"Revocar el acuerdo de modelo gratuito","tui.consent.revoked":"Acuerdo de modelo gratuito revocado: se te pedir\xE1 aceptarlo de nuevo","tui.dialog.select.placeholder":"Buscar","tui.dialog.select.no_results":"No se encontraron resultados","tui.dialog.prompt.placeholder":"Introduce texto","tui.dialog.prompt.busy":"Trabajando...","tui.dialog.prompt.processing":"procesando...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"enviar","tui.dialog.export.title":"Opciones de exportaci\xF3n","tui.dialog.export.filename":"Nombre de archivo:","tui.dialog.export.filename_placeholder":"Introduce el nombre de archivo","tui.dialog.export.include_thinking":"Incluir razonamiento","tui.dialog.export.include_tool_details":"Incluir detalles de herramientas","tui.dialog.export.include_assistant_metadata":"Incluir metadatos del asistente","tui.dialog.export.open_without_saving":"Abrir sin guardar","tui.dialog.export.hint.toggle_prefix":"Pulsa","tui.dialog.export.hint.toggle_action":"para alternar","tui.dialog.export.hint.confirm_action":"para confirmar","tui.dialog.export.hint.options_action":"para opciones","tui.toast.copied_to_clipboard":"Copiado al portapapeles","tui.toast.instructions_loaded":"Cargado {{files}}","tui.toast.update_available.title":"Actualizaci\xF3n disponible","tui.toast.update_available.confirm":"La nueva versi\xF3n v{{version}} est\xE1 disponible. \xBFDesea actualizar ahora?","tui.toast.update_available.updating":"Actualizando a v{{version}}...","tui.toast.update_available.failed":"La actualizaci\xF3n fall\xF3","tui.toast.update_available.success":"Se actualiz\xF3 a QitQode v{{version}}. Por favor reinicie la aplicaci\xF3n.","tui.toast.updated.title":"Actualizado autom\xE1ticamente","tui.toast.updated.message":"Parche aplicado autom\xE1ticamente: v{{version}}. Reinicie para usar la nueva versi\xF3n. Desactive con autoupdate: false en la configuraci\xF3n.","tui.sidebar.instructions":"Instrucciones","tui.sidebar.cwd":"Directorio de trabajo","tui.toast.unknown_error":"Ha ocurrido un error desconocido","tui.command.docs.open.title":"Abrir documentaci\xF3n","tui.command.app.exit.title":"Salir de la aplicaci\xF3n","tui.command.app.debug.title":"Alternar panel de depuraci\xF3n","tui.command.app.console.title":"Alternar consola","tui.command.app.heap_snapshot.title":"Exportar snapshot del heap","tui.command.terminal.suspend.title":"Suspender terminal","tui.command.terminal.title.disable":"Deshabilitar t\xEDtulo del terminal","tui.command.terminal.title.enable":"Habilitar t\xEDtulo del terminal","tui.command.app.toggle.animations.disable":"Deshabilitar animaciones","tui.command.app.toggle.animations.enable":"Habilitar animaciones","tui.command.app.toggle.diffwrap.disable":"Deshabilitar ajuste de diff","tui.command.app.toggle.diffwrap.enable":"Habilitar ajuste de diff","tui.command.app.toggle.sound.disable":"Desactivar sonido","tui.command.app.toggle.sound.enable":"Activar sonido","tui.command.logout.toast":"Sesi\xF3n cerrada","tui.command.session.share.title":"Compartir sesi\xF3n","tui.command.session.share.copy_link":"Copiar enlace para compartir","tui.command.session.rename.title":"Renombrar sesi\xF3n","tui.command.session.timeline.title":"Saltar a un mensaje","tui.command.session.fork.title":"Bifurcar sesi\xF3n","tui.command.session.compact.title":"Compactar sesi\xF3n","tui.command.session.unshare.title":"Dejar de compartir","tui.command.session.undo.title":"Deshacer mensaje anterior","tui.command.session.redo.title":"Rehacer","tui.command.session.sidebar.show":"Mostrar barra lateral","tui.command.session.sidebar.hide":"Ocultar barra lateral","tui.command.session.conceal.disable":"Deshabilitar ocultaci\xF3n de c\xF3digo","tui.command.session.conceal.enable":"Habilitar ocultaci\xF3n de c\xF3digo","tui.command.session.timestamps.show":"Mostrar marcas de tiempo","tui.command.session.timestamps.hide":"Ocultar marcas de tiempo","tui.command.session.thinking.expand":"Expandir razonamiento","tui.command.session.thinking.collapse":"Colapsar razonamiento","tui.command.session.tool_details.show":"Mostrar detalles de herramientas","tui.command.session.tool_details.hide":"Ocultar detalles de herramientas","tui.command.session.scrollbar.toggle":"Alternar barra de desplazamiento","tui.command.session.generic_tool_output.show":"Mostrar salida de herramienta gen\xE9rica","tui.command.session.generic_tool_output.hide":"Ocultar salida de herramienta gen\xE9rica","tui.command.session.page_up.title":"P\xE1gina anterior","tui.command.session.page_down.title":"P\xE1gina siguiente","tui.command.session.line_up.title":"L\xEDnea arriba","tui.command.session.line_down.title":"L\xEDnea abajo","tui.command.session.half_page_up.title":"Media p\xE1gina arriba","tui.command.session.half_page_down.title":"Media p\xE1gina abajo","tui.command.session.first.title":"Primer mensaje","tui.command.session.last.title":"\xDAltimo mensaje","tui.command.session.last_user.title":"Ir al \xFAltimo mensaje del usuario","tui.command.session.message_next.title":"Mensaje siguiente","tui.command.session.message_previous.title":"Mensaje anterior","tui.command.messages.copy.title":"Copiar \xFAltimo mensaje del asistente","tui.command.session.copy.title":"Copiar transcripci\xF3n de la sesi\xF3n","tui.command.session.export.title":"Exportar transcripci\xF3n","tui.command.session.child_first.title":"Ir a la sesi\xF3n hija","tui.command.session.parent.title":"Ir a la sesi\xF3n padre","tui.command.session.child_next.title":"Sesi\xF3n hija siguiente","tui.command.session.child_previous.title":"Sesi\xF3n hija anterior","tui.command.prompt.clear.title":"Vaciar entrada","tui.command.prompt.submit.title":"Enviar prompt","tui.command.prompt.paste.title":"Pegar","tui.command.session.interrupt.title":"Interrumpir sesi\xF3n","tui.command.prompt.editor.title":"Abrir editor","tui.command.prompt.skills.title":"Habilidades","tui.command.voice.toggle.title":"Alternar entrada de voz","tui.command.voice.toggle.title_on":"Entrada de voz: activada \u2014 clic para desactivar","tui.command.voice.toggle.title_off":"Entrada de voz: desactivada \u2014 clic para activar","tui.voice.enabled":"Entrada de voz activada (chino/ingl\xE9s) \u2014 clic en [Voice] para grabar","tui.voice.disabled":"Entrada de voz deshabilitada","tui.voice.send.enabled":'Env\xEDo por voz habilitado \u2014 di\u300C\u53D1\u9001\u300Do "send it" para enviar',"tui.voice.send.disabled":"Env\xEDo por voz deshabilitado","tui.command.voice.send.title":"Alternar env\xEDo por voz","tui.command.voice.send.title_on":"Env\xEDo por voz: activado \u2014 clic para desactivar","tui.command.voice.send.title_off":"Env\xEDo por voz: desactivado \u2014 clic para activar","tui.voice.control.enabled":"Control de voz habilitado \u2014 usa modelo multimodal para edici\xF3n inteligente (m\xE1s lento)","tui.voice.control.disabled":"Control de voz deshabilitado \u2014 usa transcripci\xF3n ASR r\xE1pida","tui.command.voice.control.title":"Alternar control de voz (multimodal)","tui.command.voice.control.title_on":"Control de voz: activado (multimodal) \u2014 clic para desactivar","tui.command.voice.control.title_off":"Control de voz: desactivado (ASR r\xE1pido) \u2014 clic para activar","tui.voice.error.no_auth":"Usa /connect para conectar tu cuenta QitQode, o configura voice.asr_model para otro proveedor","tui.voice.error.no_auth_provider":'El proveedor de voz "{{provider}}" no est\xE1 autenticado, revisa su apiKey',"tui.voice.error.provider_not_found":'Proveedor "{{provider}}" no disponible \u2014 /connect para autenticarte, o declara models en la config para endpoints personalizados',"tui.voice.error.no_url":'El proveedor "{{provider}}" no tiene baseURL configurada \u2014 configura options.baseURL',"tui.voice.error.no_device":"No se encontr\xF3 micr\xF3fono/dispositivo de audio \u2014 verifica la configuraci\xF3n de audio del sistema","tui.voice.error.recorder_failed":"Error de grabaci\xF3n","tui.voice.error.no_recorder":"No se encontr\xF3 herramienta de grabaci\xF3n, instala sox","tui.voice.error.too_short":"Grabaci\xF3n demasiado corta","tui.voice.error.network":"La transcripci\xF3n fall\xF3, verifica tu red","tui.voice.error.empty_send":"No hay contenido para enviar","tui.voice.error.unknown_agent":'Agente "{{name}}" no encontrado',"tui.command.prompt.stash.title":"Guardar prompt","tui.command.prompt.stash.pop.title":"Recuperar prompt","tui.command.prompt.stash.list.title":"Lista de prompts guardados","tui.command.tips.toggle.show":"Mostrar sugerencias","tui.command.tips.toggle.hide":"Ocultar sugerencias","tui.command.plugins.list.title":"Plugins","tui.command.plugins.install.title":"Instalar plugin","tui.question.plan_enter.question":"\xBFDesea cambiar al modo plan para una planificaci\xF3n estructurada?","tui.question.plan_enter.header":"Entrar al plan","tui.question.plan_enter.option.0.label":"S\xED","tui.question.plan_enter.option.0.description":"Cambiar al agente plan para planificaci\xF3n de solo lectura","tui.question.plan_enter.option.1.label":"No","tui.question.plan_enter.option.1.description":"Permanecer en el modo actual","tui.question.plan_exit.question":"El plan en {{plan}} est\xE1 completo. \xBFDesea cambiar al agente build para comenzar la implementaci\xF3n?","tui.question.plan_exit.header":"Salir del plan","tui.question.plan_exit.option.0.label":"S\xED","tui.question.plan_exit.option.0.description":"Cambiar al agente build y comenzar la implementaci\xF3n del plan","tui.question.plan_exit.option.1.label":"No","tui.question.plan_exit.option.1.description":"Permanecer con el agente plan para seguir refinando","tui.session.badge.auto":"Auto","trust.title":"Accediendo al espacio de trabajo:","trust.safety_check":"Verificaci\xF3n r\xE1pida: \xBFEs este un proyecto que creaste o en el que conf\xEDas? (Tu propio c\xF3digo, un proyecto open source conocido o trabajo de tu equipo). Si no, t\xF3mate un momento para revisar el contenido de esta carpeta.","trust.capabilities":"QitQode podr\xE1 leer, editar y ejecutar archivos aqu\xED.","trust.plugin_warn":"Si existen plugins maliciosos en este directorio, pueden ejecutar c\xF3digo arbitrario, leer, modificar o exfiltrar tus archivos.","trust.option.yes":"S\xED, conf\xEDo en esta carpeta","trust.option.no":"No, salir","trust.dangerous.title_home":"ADVERTENCIA: Est\xE1s a punto de abrir tu DIRECTORIO PERSONAL.","trust.dangerous.title_root":"ADVERTENCIA: Est\xE1s a punto de abrir la RA\xCDZ DEL SISTEMA DE ARCHIVOS.","trust.dangerous.body_home":"El modelo tendr\xE1 acceso a TODOS tus archivos personales \u2014 claves SSH, credenciales, perfiles del navegador y todo lo dem\xE1s en tu carpeta personal.","trust.dangerous.body_root":"El modelo tendr\xE1 acceso a TODO el sistema de archivos \u2014 archivos del sistema, datos de todos los usuarios, credenciales y todo en esta m\xE1quina.","trust.dangerous.advice_home":"A menos que tengas una raz\xF3n muy espec\xEDfica, NO conf\xEDes en todo tu directorio personal.","trust.dangerous.advice_root":"A menos que tengas una raz\xF3n muy espec\xEDfica, NO conf\xEDes en la ra\xEDz del sistema de archivos.","trust.dangerous.option.yes":"Entiendo los riesgos, confiar solo esta sesi\xF3n","trust.dangerous.option.no":"Salir (recomendado)"};export{f as dict};
|
|
2
|
+
import"./chunk-23geekk5.js";import"./chunk-hh4c02fh.js";var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":'Pregunta lo que quieras... "{{example}}"',"tui.prompt.placeholder.shell":'Ejecuta un comando... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab para aceptar)","tui.home.placeholder.example.todo":"Corregir un TODO en el c\xF3digo","tui.home.placeholder.example.stack":"\xBFCu\xE1l es el stack t\xE9cnico del proyecto?","tui.home.placeholder.example.tests":"Arreglar las pruebas fallidas","tui.home.agreement.prefix":"Al usar QitQode, aceptas nuestros ","tui.home.agreement.terms":"T\xE9rminos de servicio","tui.home.agreement.separator":" y la ","tui.home.agreement.privacy":"Pol\xEDtica de privacidad","tui.home.agreement.suffix":"","tui.prompt.hint.attach_file":"adjuntar archivo","tui.prompt.hint.subagent":"subagente","tui.prompt.hint.commands":"comandos","tui.prompt.hint.switch_mode":"cambiar modo","tui.prompt.hint.settings":"ajustes","tui.tips.label":"Sugerencia","tui.tips.plain_terminal":"Recomendamos usar iTerm o la terminal de VS Code","tui.tips.attach_file":"Escribe {highlight}@{/highlight} seguido del nombre de archivo para buscar de forma difusa y adjuntar archivos","tui.tips.shell_prefix":"Empieza un mensaje con {highlight}!{/highlight} para ejecutar comandos del shell directamente (p. ej., {highlight}!ls -la{/highlight})","tui.tips.tab_agent":"Pulsa {highlight}Tab{/highlight} o {highlight}Shift+Tab{/highlight} para alternar entre los agentes Build, Plan y Compose","tui.tips.theme_mode":"Ejecuta {highlight}/dark{/highlight} para el modo oscuro o {highlight}/light{/highlight} para el modo claro","tui.tips.doc":"Ejecuta {highlight}/doc{/highlight} para abrir la documentaci\xF3n de usuario","tui.tips.undo":"Usa {highlight}/undo{/highlight} para revertir el \xFAltimo mensaje y los cambios en archivos","tui.tips.redo":"Usa {highlight}/redo{/highlight} para restaurar mensajes y cambios deshechos previamente","tui.tips.drag_drop":"Arrastra y suelta im\xE1genes o PDF en el terminal para a\xF1adirlos como contexto","tui.tips.paste_image":"Pulsa {highlight}Ctrl+V{/highlight} para pegar im\xE1genes desde el portapapeles en la entrada","tui.tips.editor":"Pulsa {highlight}Ctrl+X E{/highlight} o {highlight}/editor{/highlight} para componer mensajes en tu editor externo","tui.tips.init":"Ejecuta {highlight}/init{/highlight} para autogenerar reglas del proyecto a partir de tu c\xF3digo","tui.tips.models":"Ejecuta {highlight}/models{/highlight} o {highlight}Ctrl+X M{/highlight} para cambiar entre los modelos disponibles","tui.tips.theme":'Bloquea el modo de tema frente al fondo de tu terminal \u2014 abre la paleta de comandos ({highlight}Ctrl+P{/highlight}) y busca "lock"',"tui.tips.new_session":"Pulsa {highlight}Ctrl+X N{/highlight} o {highlight}/new{/highlight} para iniciar una nueva sesi\xF3n","tui.tips.sessions":"Usa {highlight}/sessions{/highlight} o {highlight}Ctrl+X L{/highlight} para listar y continuar conversaciones anteriores","tui.tips.compact":"Ejecuta {highlight}/compact{/highlight} para resumir sesiones largas cerca del l\xEDmite de contexto","tui.tips.export":"Pulsa {highlight}Ctrl+X X{/highlight} o {highlight}/export{/highlight} para guardar la conversaci\xF3n como Markdown","tui.tips.copy_last":"Pulsa {highlight}Ctrl+X Y{/highlight} para copiar el \xFAltimo mensaje del asistente al portapapeles","tui.tips.command_palette":"Pulsa {highlight}Ctrl+P{/highlight} para ver todas las acciones y comandos disponibles","tui.tips.leader":"La tecla l\xEDder es {highlight}Ctrl+X{/highlight}; comb\xEDnala con otras teclas para acciones r\xE1pidas","tui.tips.f2":"Pulsa {highlight}F2{/highlight} para alternar r\xE1pidamente entre los modelos usados recientemente","tui.tips.sidebar":"Pulsa {highlight}Ctrl+X B{/highlight} para mostrar/ocultar la barra lateral","tui.tips.history":"Usa {highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} para navegar por el historial de la conversaci\xF3n","tui.tips.jump_first":"Pulsa {highlight}Ctrl+G{/highlight} o {highlight}Home{/highlight} para ir al inicio de la conversaci\xF3n","tui.tips.jump_last":"Pulsa {highlight}Ctrl+Alt+G{/highlight} o {highlight}End{/highlight} para ir al mensaje m\xE1s reciente","tui.tips.newline":"Pulsa {highlight}Shift+Enter{/highlight} o {highlight}Ctrl+J{/highlight} para a\xF1adir saltos de l\xEDnea en la entrada","tui.tips.clear_input":"Pulsa {highlight}Ctrl+C{/highlight} mientras escribes para vaciar el campo de entrada","tui.tips.escape":"Pulsa {highlight}Escape{/highlight} para detener la respuesta de la IA en curso","tui.tips.plan_agent":"Cambia al agente {highlight}Plan{/highlight} para obtener sugerencias sin aplicar cambios reales","tui.tips.subagent":"Usa {highlight}@agent-name{/highlight} en las indicaciones para invocar subagentes especializados","tui.tips.cycle_sessions":"Pulsa {highlight}Ctrl+X Right/Left{/highlight} para alternar entre sesiones padre e hija","tui.tips.config_files":"Crea {highlight}qitqode.json{/highlight} para la configuraci\xF3n del servidor y {highlight}tui.json{/highlight} para la TUI","tui.tips.global_config":"Coloca la configuraci\xF3n de TUI en {highlight}~/.config/qitqode/tui.json{/highlight} como configuraci\xF3n global","tui.tips.schema":"A\xF1ade {highlight}$schema{/highlight} a tu configuraci\xF3n para autocompletado en el editor","tui.tips.default_model":"Configura {highlight}model{/highlight} en la config para definir tu modelo por defecto","tui.tips.keybinds":"Sobrescribe cualquier atajo en {highlight}tui.json{/highlight} mediante la secci\xF3n {highlight}keybinds{/highlight}","tui.tips.disable_keybind":"Establece un atajo en {highlight}none{/highlight} para deshabilitarlo por completo","tui.tips.mcp_config":"Configura servidores MCP locales o remotos en la secci\xF3n {highlight}mcp{/highlight}","tui.tips.mcp_oauth":"QitQode gestiona autom\xE1ticamente OAuth para servidores MCP remotos que requieran autenticaci\xF3n","tui.tips.custom_command":"A\xF1ade archivos {highlight}.md{/highlight} en {highlight}.qitqode/command/{/highlight} para definir indicaciones personalizadas reutilizables","tui.tips.command_args":"Usa {highlight}$ARGUMENTS{/highlight}, {highlight}$1{/highlight}, {highlight}$2{/highlight} en comandos personalizados para entradas din\xE1micas","tui.tips.command_backticks":"Usa comillas invertidas en los comandos para inyectar la salida del shell (p. ej. {highlight}`git status`{/highlight})","tui.tips.custom_agent":"A\xF1ade archivos {highlight}.md{/highlight} en {highlight}.qitqode/agent/{/highlight} para personajes de IA especializados","tui.tips.agent_perms":"Configura por agente los permisos de las herramientas {highlight}edit{/highlight}, {highlight}bash{/highlight} y {highlight}webfetch{/highlight}","tui.tips.bash_allow":'Usa patrones como {highlight}"git *": "allow"{/highlight} para permisos de bash m\xE1s finos',"tui.tips.bash_deny":'Define {highlight}"rm -rf *": "deny"{/highlight} para bloquear comandos destructivos',"tui.tips.bash_ask":'Configura {highlight}"git push": "ask"{/highlight} para exigir confirmaci\xF3n antes de hacer push',"tui.tips.formatter":"QitQode formatea archivos autom\xE1ticamente con prettier, gofmt, ruff y m\xE1s","tui.tips.disable_formatter":'Define {highlight}"formatter": false{/highlight} en la config para desactivar el formato autom\xE1tico',"tui.tips.custom_formatter":"Define comandos de formateo personalizados por extensi\xF3n de archivo en la configuraci\xF3n","tui.tips.lsp":"QitQode usa servidores LSP para an\xE1lisis inteligente de c\xF3digo","tui.tips.custom_tool":"Crea archivos {highlight}.ts{/highlight} en {highlight}.qitqode/tools/{/highlight} para definir nuevas herramientas LLM","tui.tips.tool_scripts":"Las definiciones de herramientas pueden invocar scripts en Python, Go, etc.","tui.tips.plugins":"A\xF1ade archivos {highlight}.ts{/highlight} en {highlight}.qitqode/plugin/{/highlight} para enganchar eventos","tui.tips.plugin_notify":"Usa plugins para enviar notificaciones del sistema cuando termine una sesi\xF3n","tui.tips.plugin_protect":"Crea un plugin que impida a QitQode leer archivos sensibles","tui.tips.run":"Usa {highlight}qitqode run{/highlight} para scripting no interactivo","tui.tips.continue":"Usa {highlight}qitqode --continue{/highlight} para retomar la \xFAltima sesi\xF3n","tui.tips.attach_cli":"Usa {highlight}qitqode run -f file.ts{/highlight} para adjuntar archivos v\xEDa CLI","tui.tips.format_json":"Usa {highlight}--format json{/highlight} para obtener salida legible por m\xE1quina en scripts","tui.tips.auth_list":"Ejecuta {highlight}qitqode auth status{/highlight} para ver tu estado de inicio de sesi\xF3n actual","tui.tips.agent_create":"Ejecuta {highlight}qitqode agent create{/highlight} para crear un agente con asistente guiado","tui.tips.theme_system":'Usa {highlight}"theme": "system"{/highlight} para seguir los colores de tu terminal',"tui.tips.theme_files":"Crea archivos JSON de tema en el directorio {highlight}.qitqode/themes/{/highlight}","tui.tips.theme_variants":"Los temas admiten variantes claras/oscuras para ambos modos","tui.tips.theme_ansi":"Referencia colores ANSI 0-255 en temas personalizados","tui.tips.env_var":"Usa la sintaxis {highlight}{env:VAR_NAME}{/highlight} para referenciar variables de entorno en la config","tui.tips.file_var":"Usa {highlight}{file:path}{/highlight} para incluir el contenido de un archivo en valores de la config","tui.tips.instructions":"Usa {highlight}instructions{/highlight} en la config para cargar archivos de reglas adicionales","tui.tips.temperature":"Ajusta la {highlight}temperature{/highlight} del agente desde 0.0 (enfocado) hasta 1.0 (creativo)","tui.tips.steps":"Configura {highlight}steps{/highlight} para limitar las iteraciones ag\xE9nticas por petici\xF3n","tui.tips.disable_tool":'Define {highlight}"tools": {"bash": false}{/highlight} para deshabilitar herramientas concretas',"tui.tips.disable_mcp_tools":'Define {highlight}"mcp_*": false{/highlight} para deshabilitar todas las herramientas de un servidor MCP',"tui.tips.tool_override":"Sobrescribe la configuraci\xF3n global de herramientas en cada agente","tui.tips.doom_loop":"El permiso {highlight}doom_loop{/highlight} previene bucles infinitos de llamadas a herramientas","tui.tips.external_dir":"El permiso {highlight}external_directory{/highlight} protege archivos fuera del proyecto","tui.tips.debug_config":"Ejecuta {highlight}qitqode debug config{/highlight} para diagnosticar problemas de configuraci\xF3n","tui.tips.print_logs":"Usa la opci\xF3n {highlight}--print-logs{/highlight} para ver logs detallados en stderr","tui.tips.timeline":"Pulsa {highlight}Ctrl+X G{/highlight} o {highlight}/timeline{/highlight} para saltar a un mensaje concreto","tui.tips.toggle_code":"Pulsa {highlight}Ctrl+X H{/highlight} para alternar la visibilidad de los bloques de c\xF3digo","tui.tips.status":"Pulsa {highlight}Ctrl+X S{/highlight} o {highlight}/status{/highlight} para ver el estado del sistema","tui.tips.scroll_accel":"Activa {highlight}scroll_acceleration{/highlight} en {highlight}tui.json{/highlight} para un desplazamiento suave","tui.tips.agents_md":"Sube el {highlight}AGENTS.md{/highlight} de tu proyecto a Git para compartirlo con el equipo","tui.tips.review":"Usa {highlight}/review{/highlight} para revisar cambios sin commit, ramas o PR","tui.tips.help":"Ejecuta {highlight}/help{/highlight} o {highlight}Ctrl+X H{/highlight} para abrir el di\xE1logo de ayuda","tui.tips.rename":"Usa {highlight}/rename{/highlight} para renombrar la sesi\xF3n actual","tui.tips.suspend.unix":"Pulsa {highlight}Ctrl+Z{/highlight} para suspender el terminal y volver al shell","tui.tips.suspend.win":"Pulsa {highlight}Ctrl+Z{/highlight} para deshacer cambios en la entrada","tui.command.palette.title":"Comandos","tui.command.palette.suggested":"Sugeridos","tui.command.category.session":"Sesi\xF3n","tui.command.category.agent":"Agente","tui.command.category.provider":"Proveedor","tui.command.category.system":"Sistema","tui.command.category.prompt":"Entrada","tui.command.category.internal":"Interno","tui.command.category.external":"Externo","tui.slash.init.description":"configuraci\xF3n guiada de AGENTS.md","tui.slash.review.description":"revisar cambios [commit|branch|pr], por defecto sin confirmar","tui.slash.dream.description":"consolidar manualmente la memoria del proyecto desde archivos memory y la trayectoria en bruto","tui.slash.distill.description":"encontrar flujos repetidos en el trabajo reciente y empaquetarlos en skills, subagentes o comandos","tui.slash.goal.description":"definir un objetivo con condici\xF3n de parada; se ejecuta hasta que un juez confirme. /goal clear para abortar","tui.slash.deep-research.description":"informe de investigaci\xF3n profunda multi-fuente y verificado (ejecuta el workflow deep-research)","tui.command.language.switch.title":"Cambiar idioma","tui.command.language.switch.description":"Cambiar el idioma de la interfaz","tui.command.language.dialog.title":"Cambiar idioma","tui.language.auto":"Auto (sistema)","tui.language.current":"Actual","tui.command.session.list.title":"Cambiar sesi\xF3n","tui.command.session.new.title":"Nueva sesi\xF3n","tui.command.workflow.list.title":"Flujos de trabajo","tui.command.model.list.title":"Cambiar modelo","tui.command.model.cycle_recent.title":"Ciclo de modelos","tui.command.model.cycle_recent_reverse.title":"Ciclo de modelos (inverso)","tui.command.model.cycle_favorite.title":"Ciclo de favoritos","tui.command.model.cycle_favorite_reverse.title":"Ciclo de favoritos (inverso)","tui.command.agent.list.title":"Cambiar agente","tui.command.mcp.list.title":"Alternar MCP","tui.command.never_ask.title_on":"Sin preguntas: ACTIVADO (auto-decidir, permisos excluidos) \u2014 clic para desactivar","tui.command.never_ask.title_off":"Sin preguntas: DESACTIVADO \u2014 clic para activar (auto-decidir, permisos excluidos)","tui.command.never_ask.toast_on":"Sin preguntas ACTIVADO \u2014 no te preguntar\xE9; elegir\xE9 la mejor opci\xF3n yo mismo hasta que lo desactives (/never-ask). Las solicitudes de permiso siguen requiriendo tu aprobaci\xF3n.","tui.command.never_ask.toast_off":"Sin preguntas DESACTIVADO \u2014 volver\xE9 a preguntarte en los puntos de decisi\xF3n.","tui.command.agent.cycle.title":"Ciclo de agentes","tui.command.variant.cycle.title":"Ciclo de variantes","tui.command.variant.list.title":"Cambiar variante de modelo","tui.command.agent.cycle.reverse.title":"Ciclo de agentes (inverso)","tui.command.provider.login.title":"Iniciar sesi\xF3n","tui.command.provider.logout.title":"Cerrar sesi\xF3n","tui.command.console.org.switch.title":"Cambiar de organizaci\xF3n","tui.command.qitqode.status.title":"Ver estado","tui.command.theme.switch.title":"Cambiar tema","tui.command.theme.switch_mode.to_light":"Cambiar a modo claro","tui.command.theme.switch_mode.to_dark":"Cambiar a modo oscuro","tui.command.theme.mode.unlock":"Desbloquear modo del tema","tui.command.theme.mode.lock":"Bloquear modo del tema","tui.command.help.show.title":"Ayuda","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"Accesibilidad: activa o desactiva animaciones y sonido desde la lista de comandos. Variables de entorno: NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND.","tui.dialog.help.announcements":"Anuncios: en modo accesible, elige el nivel de detalle de los anuncios para lectores de pantalla (silencioso, normal, detallado) desde la lista de comandos o con QITQODE_TUI_ANNOUNCEMENTS. Los errores siempre se anuncian.","tui.dialog.help.dialog_keys":"Di\xE1logos: todos los di\xE1logos funcionan solo con el teclado \u2014 Esc cierra, Tab o las flechas mueven el foco, Enter o Espacio activan el control enfocado.","tui.command.app.announcements.cycle":"Anuncios: {{level}} (selecciona para cambiar)","tui.announcements.level.quiet":"silencioso","tui.announcements.level.normal":"normal","tui.announcements.level.verbose":"detallado","tui.app.terminal_too_small":"Terminal demasiado peque\xF1a ({{width}}x{{height}}). Ampl\xEDala al menos a 40x8.","tui.dialog.help.command_list":"Pulsa {{keybind}} para ver todas las acciones y comandos disponibles en cualquier contexto.","tui.dialog.help.ok":"Aceptar","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 desplazar \xB7 ReP\xE1g/AvP\xE1g p\xE1gina \xB7 esc cerrar","tui.dialog.ok":"Aceptar","tui.dialog.confirm.cancel":"Cancelar","tui.dialog.confirm.confirm":"Confirmar","tui.dialog.agreement.title":"T\xE9rminos y privacidad","tui.dialog.agreement.message":"Rev\xEDsalos y acepta para continuar.","tui.dialog.agreement.confirm":"Aceptar y continuar","tui.command.docs.terms.title":"Ver los t\xE9rminos de servicio","tui.command.docs.privacy.title":"Ver la pol\xEDtica de privacidad","tui.command.consent.revoke.title":"Revocar el acuerdo de modelo gratuito","tui.consent.revoked":"Acuerdo de modelo gratuito revocado: se te pedir\xE1 aceptarlo de nuevo","tui.dialog.select.placeholder":"Buscar","tui.dialog.select.no_results":"No se encontraron resultados","tui.dialog.prompt.placeholder":"Introduce texto","tui.dialog.prompt.busy":"Trabajando...","tui.dialog.prompt.processing":"procesando...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"enviar","tui.dialog.export.title":"Opciones de exportaci\xF3n","tui.dialog.export.filename":"Nombre de archivo:","tui.dialog.export.filename_placeholder":"Introduce el nombre de archivo","tui.dialog.export.include_thinking":"Incluir razonamiento","tui.dialog.export.include_tool_details":"Incluir detalles de herramientas","tui.dialog.export.include_assistant_metadata":"Incluir metadatos del asistente","tui.dialog.export.open_without_saving":"Abrir sin guardar","tui.dialog.export.hint.toggle_prefix":"Pulsa","tui.dialog.export.hint.toggle_action":"para alternar","tui.dialog.export.hint.confirm_action":"para confirmar","tui.dialog.export.hint.options_action":"para opciones","tui.toast.copied_to_clipboard":"Copiado al portapapeles","tui.toast.instructions_loaded":"Cargado {{files}}","tui.toast.update_available.title":"Actualizaci\xF3n disponible","tui.toast.update_available.confirm":"La nueva versi\xF3n v{{version}} est\xE1 disponible. \xBFDesea actualizar ahora?","tui.toast.update_available.updating":"Actualizando a v{{version}}...","tui.toast.update_available.failed":"La actualizaci\xF3n fall\xF3","tui.toast.update_available.success":"Se actualiz\xF3 a QitQode v{{version}}. Por favor reinicie la aplicaci\xF3n.","tui.toast.updated.title":"Actualizado autom\xE1ticamente","tui.toast.updated.message":"Parche aplicado autom\xE1ticamente: v{{version}}. Reinicie para usar la nueva versi\xF3n. Desactive con autoupdate: false en la configuraci\xF3n.","tui.sidebar.instructions":"Instrucciones","tui.sidebar.cwd":"Directorio de trabajo","tui.toast.unknown_error":"Ha ocurrido un error desconocido","tui.command.docs.open.title":"Abrir documentaci\xF3n","tui.command.app.exit.title":"Salir de la aplicaci\xF3n","tui.command.app.debug.title":"Alternar panel de depuraci\xF3n","tui.command.app.console.title":"Alternar consola","tui.command.app.heap_snapshot.title":"Exportar snapshot del heap","tui.command.terminal.suspend.title":"Suspender terminal","tui.command.terminal.title.disable":"Deshabilitar t\xEDtulo del terminal","tui.command.terminal.title.enable":"Habilitar t\xEDtulo del terminal","tui.command.app.toggle.animations.disable":"Deshabilitar animaciones","tui.command.app.toggle.animations.enable":"Habilitar animaciones","tui.command.app.toggle.diffwrap.disable":"Deshabilitar ajuste de diff","tui.command.app.toggle.diffwrap.enable":"Habilitar ajuste de diff","tui.command.app.toggle.sound.disable":"Desactivar sonido","tui.command.app.toggle.sound.enable":"Activar sonido","tui.command.logout.toast":"Sesi\xF3n cerrada","tui.command.session.share.title":"Compartir sesi\xF3n","tui.command.session.share.copy_link":"Copiar enlace para compartir","tui.command.session.rename.title":"Renombrar sesi\xF3n","tui.command.session.timeline.title":"Saltar a un mensaje","tui.command.session.fork.title":"Bifurcar sesi\xF3n","tui.command.session.compact.title":"Compactar sesi\xF3n","tui.command.session.unshare.title":"Dejar de compartir","tui.command.session.undo.title":"Deshacer mensaje anterior","tui.command.session.redo.title":"Rehacer","tui.command.session.sidebar.show":"Mostrar barra lateral","tui.command.session.sidebar.hide":"Ocultar barra lateral","tui.command.session.conceal.disable":"Deshabilitar ocultaci\xF3n de c\xF3digo","tui.command.session.conceal.enable":"Habilitar ocultaci\xF3n de c\xF3digo","tui.command.session.timestamps.show":"Mostrar marcas de tiempo","tui.command.session.timestamps.hide":"Ocultar marcas de tiempo","tui.command.session.thinking.expand":"Expandir razonamiento","tui.command.session.thinking.collapse":"Colapsar razonamiento","tui.command.session.tool_details.show":"Mostrar detalles de herramientas","tui.command.session.tool_details.hide":"Ocultar detalles de herramientas","tui.command.session.scrollbar.toggle":"Alternar barra de desplazamiento","tui.command.session.generic_tool_output.show":"Mostrar salida de herramienta gen\xE9rica","tui.command.session.generic_tool_output.hide":"Ocultar salida de herramienta gen\xE9rica","tui.command.session.page_up.title":"P\xE1gina anterior","tui.command.session.page_down.title":"P\xE1gina siguiente","tui.command.session.line_up.title":"L\xEDnea arriba","tui.command.session.line_down.title":"L\xEDnea abajo","tui.command.session.half_page_up.title":"Media p\xE1gina arriba","tui.command.session.half_page_down.title":"Media p\xE1gina abajo","tui.command.session.first.title":"Primer mensaje","tui.command.session.last.title":"\xDAltimo mensaje","tui.command.session.last_user.title":"Ir al \xFAltimo mensaje del usuario","tui.command.session.message_next.title":"Mensaje siguiente","tui.command.session.message_previous.title":"Mensaje anterior","tui.command.messages.copy.title":"Copiar \xFAltimo mensaje del asistente","tui.command.session.copy.title":"Copiar transcripci\xF3n de la sesi\xF3n","tui.command.session.export.title":"Exportar transcripci\xF3n","tui.command.session.child_first.title":"Ir a la sesi\xF3n hija","tui.command.session.parent.title":"Ir a la sesi\xF3n padre","tui.command.session.child_next.title":"Sesi\xF3n hija siguiente","tui.command.session.child_previous.title":"Sesi\xF3n hija anterior","tui.command.prompt.clear.title":"Vaciar entrada","tui.command.prompt.submit.title":"Enviar prompt","tui.command.prompt.paste.title":"Pegar","tui.command.session.interrupt.title":"Interrumpir sesi\xF3n","tui.command.prompt.editor.title":"Abrir editor","tui.command.prompt.skills.title":"Habilidades","tui.command.voice.toggle.title":"Alternar entrada de voz","tui.command.voice.toggle.title_on":"Entrada de voz: activada \u2014 clic para desactivar","tui.command.voice.toggle.title_off":"Entrada de voz: desactivada \u2014 clic para activar","tui.voice.enabled":"Entrada de voz activada (chino/ingl\xE9s) \u2014 clic en [Voice] para grabar","tui.voice.disabled":"Entrada de voz deshabilitada","tui.voice.send.enabled":'Env\xEDo por voz habilitado \u2014 di\u300C\u53D1\u9001\u300Do "send it" para enviar',"tui.voice.send.disabled":"Env\xEDo por voz deshabilitado","tui.command.voice.send.title":"Alternar env\xEDo por voz","tui.command.voice.send.title_on":"Env\xEDo por voz: activado \u2014 clic para desactivar","tui.command.voice.send.title_off":"Env\xEDo por voz: desactivado \u2014 clic para activar","tui.voice.control.enabled":"Control de voz habilitado \u2014 usa modelo multimodal para edici\xF3n inteligente (m\xE1s lento)","tui.voice.control.disabled":"Control de voz deshabilitado \u2014 usa transcripci\xF3n ASR r\xE1pida","tui.command.voice.control.title":"Alternar control de voz (multimodal)","tui.command.voice.control.title_on":"Control de voz: activado (multimodal) \u2014 clic para desactivar","tui.command.voice.control.title_off":"Control de voz: desactivado (ASR r\xE1pido) \u2014 clic para activar","tui.voice.error.no_auth":"Usa /connect para conectar tu cuenta QitQode, o configura voice.asr_model para otro proveedor","tui.voice.error.no_auth_provider":'El proveedor de voz "{{provider}}" no est\xE1 autenticado, revisa su apiKey',"tui.voice.error.provider_not_found":'Proveedor "{{provider}}" no disponible \u2014 /connect para autenticarte, o declara models en la config para endpoints personalizados',"tui.voice.error.no_url":'El proveedor "{{provider}}" no tiene baseURL configurada \u2014 configura options.baseURL',"tui.voice.error.no_device":"No se encontr\xF3 micr\xF3fono/dispositivo de audio \u2014 verifica la configuraci\xF3n de audio del sistema","tui.voice.error.recorder_failed":"Error de grabaci\xF3n","tui.voice.error.no_recorder":"No se encontr\xF3 herramienta de grabaci\xF3n, instala sox","tui.voice.error.too_short":"Grabaci\xF3n demasiado corta","tui.voice.error.network":"La transcripci\xF3n fall\xF3, verifica tu red","tui.voice.error.empty_send":"No hay contenido para enviar","tui.voice.error.unknown_agent":'Agente "{{name}}" no encontrado',"tui.command.prompt.stash.title":"Guardar prompt","tui.command.prompt.stash.pop.title":"Recuperar prompt","tui.command.prompt.stash.list.title":"Lista de prompts guardados","tui.command.tips.toggle.show":"Mostrar sugerencias","tui.command.tips.toggle.hide":"Ocultar sugerencias","tui.command.plugins.list.title":"Plugins","tui.command.plugins.install.title":"Instalar plugin","tui.question.plan_enter.question":"\xBFDesea cambiar al modo plan para una planificaci\xF3n estructurada?","tui.question.plan_enter.header":"Entrar al plan","tui.question.plan_enter.option.0.label":"S\xED","tui.question.plan_enter.option.0.description":"Cambiar al agente plan para planificaci\xF3n de solo lectura","tui.question.plan_enter.option.1.label":"No","tui.question.plan_enter.option.1.description":"Permanecer en el modo actual","tui.question.plan_exit.question":"El plan en {{plan}} est\xE1 completo. \xBFDesea cambiar al agente build para comenzar la implementaci\xF3n?","tui.question.plan_exit.header":"Salir del plan","tui.question.plan_exit.option.0.label":"S\xED","tui.question.plan_exit.option.0.description":"Cambiar al agente build y comenzar la implementaci\xF3n del plan","tui.question.plan_exit.option.1.label":"No","tui.question.plan_exit.option.1.description":"Permanecer con el agente plan para seguir refinando","tui.session.badge.auto":"Auto","trust.title":"Accediendo al espacio de trabajo:","trust.safety_check":"Verificaci\xF3n r\xE1pida: \xBFEs este un proyecto que creaste o en el que conf\xEDas? (Tu propio c\xF3digo, un proyecto open source conocido o trabajo de tu equipo). Si no, t\xF3mate un momento para revisar el contenido de esta carpeta.","trust.capabilities":"QitQode podr\xE1 leer, editar y ejecutar archivos aqu\xED.","trust.plugin_warn":"Si existen plugins maliciosos en este directorio, pueden ejecutar c\xF3digo arbitrario, leer, modificar o exfiltrar tus archivos.","trust.option.yes":"S\xED, conf\xEDo en esta carpeta","trust.option.no":"No, salir","trust.dangerous.title_home":"ADVERTENCIA: Est\xE1s a punto de abrir tu DIRECTORIO PERSONAL.","trust.dangerous.title_root":"ADVERTENCIA: Est\xE1s a punto de abrir la RA\xCDZ DEL SISTEMA DE ARCHIVOS.","trust.dangerous.body_home":"El modelo tendr\xE1 acceso a TODOS tus archivos personales \u2014 claves SSH, credenciales, perfiles del navegador y todo lo dem\xE1s en tu carpeta personal.","trust.dangerous.body_root":"El modelo tendr\xE1 acceso a TODO el sistema de archivos \u2014 archivos del sistema, datos de todos los usuarios, credenciales y todo en esta m\xE1quina.","trust.dangerous.advice_home":"A menos que tengas una raz\xF3n muy espec\xEDfica, NO conf\xEDes en todo tu directorio personal.","trust.dangerous.advice_root":"A menos que tengas una raz\xF3n muy espec\xEDfica, NO conf\xEDes en la ra\xEDz del sistema de archivos.","trust.dangerous.option.yes":"Entiendo los riesgos, confiar solo esta sesi\xF3n","trust.dangerous.option.no":"Salir (recomendado)"};export{f as dict};
|