@qitqode/qitqode-android-arm64 0.1.22 → 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-18xhxdsh.js → chunk-02txthqv.js} +2 -2
- package/bundle/{chunk-t4c0zy2s.js → chunk-0ae5q6ck.js} +2 -2
- package/bundle/chunk-0bvde0cx.js +2 -0
- package/bundle/chunk-0kbxnazj.js +2 -0
- package/bundle/{chunk-n68xjm4p.js → chunk-0pbt75ev.js} +1 -1
- package/bundle/{chunk-hmm1m733.js → chunk-0pvbk8ks.js} +2 -2
- package/bundle/{chunk-j6cpsxva.js → chunk-0rtshz2r.js} +1 -1
- package/bundle/{chunk-mbkw9s6e.js → chunk-0w0jfzb4.js} +1 -1
- package/bundle/{chunk-qq9pvscd.js → chunk-0w4v0fbs.js} +2 -2
- package/bundle/{chunk-jee9y4t0.js → chunk-0z3z0gk1.js} +2 -2
- package/bundle/{chunk-mr7ya5kc.js → chunk-17ggas8k.js} +1 -1
- package/bundle/chunk-19z5q33z.js +2 -0
- package/bundle/chunk-1a0wnwna.js +2 -0
- package/bundle/{chunk-y2tnzn1y.js → chunk-1d64dywx.js} +2 -2
- package/bundle/chunk-1ddm2wxv.js +2 -0
- package/bundle/chunk-1fk4vsmc.js +2 -0
- package/bundle/{chunk-x4c8drpe.js → chunk-1fnmkm0z.js} +2 -2
- package/bundle/chunk-1j2f9nd5.js +2 -0
- package/bundle/{chunk-b5x3zghc.js → chunk-1jh5p5qw.js} +2 -2
- package/bundle/{chunk-mbmc1mg0.js → chunk-1jsywey3.js} +1 -1
- package/bundle/{chunk-t2n6fmpy.js → chunk-1p34bx7c.js} +2 -2
- package/bundle/{chunk-7yw60h8j.js → chunk-1xyn0sp2.js} +2 -2
- package/bundle/{chunk-yy91rm3y.js → chunk-1y9t7nxn.js} +1 -1
- package/bundle/{chunk-h99n5rv7.js → chunk-21ejqv4v.js} +1 -1
- package/bundle/chunk-23geekk5.js +3 -0
- package/bundle/chunk-27s736an.js +2 -0
- package/bundle/{chunk-4qegdkss.js → chunk-2eardzxs.js} +1 -1
- package/bundle/{chunk-6emme4kp.js → chunk-2gxjjqfx.js} +1 -1
- package/bundle/chunk-2j17xrzj.js +2 -0
- package/bundle/{chunk-s4epqtge.js → chunk-2mmspnr3.js} +1 -1
- package/bundle/{chunk-30233h8f.js → chunk-2qcndbxv.js} +1 -1
- package/bundle/{chunk-8rcpj28e.js → chunk-2wp1w8cy.js} +1 -1
- package/bundle/{chunk-6r4gn18m.js → chunk-2y8qz8te.js} +1 -1
- package/bundle/{chunk-8r4xs1q9.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-a2ty2e0g.js → chunk-3nhqd8wg.js} +3 -3
- package/bundle/{chunk-jfy6bfvv.js → chunk-3tdqsm5c.js} +1 -1
- package/bundle/{chunk-c88rh38d.js → chunk-3tkp27x7.js} +2 -2
- package/bundle/chunk-3v4vtah1.js +2 -0
- package/bundle/{chunk-x8w2xgx6.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-tq258v8s.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-qryeqw9s.js → chunk-4d1a547n.js} +1 -1
- package/bundle/chunk-4dtbmqmq.js +2 -0
- package/bundle/{chunk-s1mx3bkw.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-cx0z3mm3.js → chunk-4tn69nqs.js} +1 -1
- package/bundle/chunk-4zjb6rps.js +2 -0
- package/bundle/{chunk-cpkega70.js → chunk-58enbars.js} +2 -2
- package/bundle/{chunk-p64fb4rm.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-k19zvbzh.js → chunk-5rkmhzq0.js} +2 -2
- package/bundle/chunk-5snrz263.js +2 -0
- package/bundle/{chunk-ht1hqsaa.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-fgtyrvan.js → chunk-6dxaty1v.js} +1 -1
- package/bundle/chunk-6epghftw.js +2 -0
- package/bundle/{chunk-bbznk59q.js → chunk-6g3m7yxf.js} +2 -2
- package/bundle/{chunk-xjdxyeja.js → chunk-6j0365q3.js} +2 -2
- package/bundle/chunk-6jjhxh8p.js +2 -0
- package/bundle/{chunk-y0fxwgrv.js → chunk-6mscvf6y.js} +1 -1
- package/bundle/{chunk-30p5pm3w.js → chunk-6nhje520.js} +1 -1
- package/bundle/{chunk-bjw39da9.js → chunk-6sdh1q7g.js} +1 -1
- package/bundle/{chunk-1eqcgkyq.js → chunk-6szvs3k9.js} +1 -1
- package/bundle/chunk-6ws7xyc5.js +2 -0
- package/bundle/{chunk-1d6ret10.js → chunk-78bajmqm.js} +1 -1
- package/bundle/{chunk-xtjsfqam.js → chunk-7a6p7dfx.js} +1 -1
- package/bundle/{chunk-ng85b73s.js → chunk-7dckfame.js} +1 -1
- package/bundle/chunk-7g28zhar.js +2 -0
- package/bundle/{chunk-8t1whx0k.js → chunk-7gczzccz.js} +1 -1
- package/bundle/chunk-7mhffm9f.js +800 -0
- package/bundle/{chunk-68jsyydc.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-1zb95qfx.js → chunk-7y3y3j51.js} +2 -2
- package/bundle/{chunk-mgp034y0.js → chunk-7yf15a3a.js} +1 -1
- package/bundle/{chunk-bwyf1bvf.js → chunk-82gs5cmn.js} +1 -1
- package/bundle/{chunk-hkmx6w54.js → chunk-84gnbzky.js} +1 -1
- package/bundle/{chunk-fyd31m33.js → chunk-8651hq0k.js} +1 -1
- package/bundle/{chunk-ymv05pbt.js → chunk-8717htya.js} +1 -1
- package/bundle/{chunk-fjtq8164.js → chunk-8ace31r2.js} +1 -1
- package/bundle/{chunk-7276th89.js → chunk-8cr7ks31.js} +1 -1
- package/bundle/{chunk-9g05wsae.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-j2k4wxsk.js → chunk-8r79zf3y.js} +2 -2
- package/bundle/chunk-8ygpp4y3.js +2 -0
- package/bundle/chunk-95q60g1p.js +2 -0
- package/bundle/{chunk-rvz05kxy.js → chunk-9798jffg.js} +1 -1
- package/bundle/{chunk-7hx0pza2.js → chunk-99n6czag.js} +2 -2
- package/bundle/{chunk-m79gd4yt.js → chunk-9easaxy7.js} +1 -1
- package/bundle/{chunk-jyh2g13j.js → chunk-9f7y0dj0.js} +1 -1
- package/bundle/{chunk-x1dfc7qd.js → chunk-9jf67xb0.js} +2 -2
- package/bundle/chunk-9mjbenja.js +2 -0
- package/bundle/{chunk-9fdv5d8a.js → chunk-9nx8hm57.js} +1 -1
- package/bundle/{chunk-0ddhkapd.js → chunk-9pe4agdz.js} +2 -2
- package/bundle/{chunk-f72j5yx8.js → chunk-9rqrm9y8.js} +1 -1
- package/bundle/{chunk-mqt5qh3t.js → chunk-9sy9ws1w.js} +1 -1
- package/bundle/{chunk-zfw873yt.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-2p6w3w8f.js → chunk-a5zjrwqy.js} +2 -2
- package/bundle/{chunk-jj7wrfty.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-pcctf3gs.js → chunk-ac202abt.js} +1 -1
- package/bundle/{chunk-tcp31yv0.js → chunk-agdfqncf.js} +2 -2
- package/bundle/chunk-ajp3f08k.js +2 -0
- package/bundle/{chunk-7w01dxp9.js → chunk-am73j1bt.js} +1 -1
- package/bundle/{chunk-ne8ftsv3.js → chunk-apq38bt4.js} +3 -3
- package/bundle/chunk-aptkpdkc.js +2 -0
- package/bundle/{chunk-vpp88hhd.js → chunk-b643cra9.js} +229 -229
- package/bundle/{chunk-6hkv9411.js → chunk-b6m4yyww.js} +1 -1
- package/bundle/{chunk-rry321tn.js → chunk-b8ag61vj.js} +1 -1
- package/bundle/{chunk-hzexvrnj.js → chunk-bas6x25m.js} +2 -2
- package/bundle/{chunk-q6x5bmc3.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/{chunk-t7v8wzr9.js → chunk-bf146hz2.js} +2 -2
- package/bundle/{chunk-pkdk0ppc.js → chunk-bky5a42k.js} +2 -2
- package/bundle/chunk-bry94ar5.js +2 -0
- package/bundle/chunk-btzyvqkf.js +2 -0
- package/bundle/{chunk-xce77xex.js → chunk-c31k8yh0.js} +1 -1
- package/bundle/chunk-c94pjdfh.js +2 -0
- package/bundle/chunk-cct9ds5c.js +2 -0
- package/bundle/chunk-cesrhm09.js +4 -0
- package/bundle/{chunk-pqyds00j.js → chunk-cvchztkc.js} +1 -1
- package/bundle/{chunk-x6gzygc3.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-1kje2a6g.js → chunk-dann9gfq.js} +1 -1
- package/bundle/{chunk-fssgbz70.js → chunk-dcx8hjbs.js} +1 -1
- package/bundle/{chunk-x4b0ywbs.js → chunk-dgzyn27r.js} +1 -1
- package/bundle/{chunk-meaa7wrs.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-kywg73qz.js → chunk-ebjhggdw.js} +1 -1
- package/bundle/{chunk-prrrw8t8.js → chunk-ecwz9nhs.js} +2 -2
- package/bundle/{chunk-m9bc5csy.js → chunk-edvcz2gd.js} +1 -1
- package/bundle/chunk-ek2y5f6g.js +2 -0
- package/bundle/{chunk-dhvwrrqx.js → chunk-ep8zn49w.js} +2 -2
- package/bundle/chunk-epdsay73.js +2 -0
- package/bundle/{chunk-adgrn60n.js → chunk-evqxvhdb.js} +1 -1
- package/bundle/{chunk-n1wawwry.js → chunk-ewyk4py6.js} +1 -1
- package/bundle/{chunk-56cty7nr.js → chunk-f3kjp838.js} +2 -2
- package/bundle/{chunk-c9afcdba.js → chunk-f819a7ec.js} +1 -1
- package/bundle/chunk-f89gntcy.js +3 -0
- package/bundle/{chunk-qwf258sw.js → chunk-fdezde1z.js} +1 -1
- package/bundle/chunk-ffnsn7tv.js +2 -0
- package/bundle/{chunk-98nh88th.js → chunk-fhng5her.js} +2 -2
- package/bundle/chunk-fkezc7ew.js +2 -0
- package/bundle/{chunk-78wt9ad8.js → chunk-fkvccmgk.js} +2 -2
- package/bundle/{chunk-1123xk5a.js → chunk-fm4xa6yx.js} +2 -2
- package/bundle/{chunk-j1kqhxnq.js → chunk-frdc3ysq.js} +1 -1
- package/bundle/chunk-fsxddgj0.js +2 -0
- package/bundle/{chunk-ah9cm91p.js → chunk-ftk58wxe.js} +1 -1
- package/bundle/{chunk-zz192a31.js → chunk-g0v9g37f.js} +1 -1
- package/bundle/{chunk-50aznc8e.js → chunk-g7vkkmsk.js} +3 -3
- package/bundle/chunk-gbcsfg6v.js +2 -0
- package/bundle/{chunk-s6qdtfty.js → chunk-gc9q0x8z.js} +3 -3
- package/bundle/{chunk-ntmn6epc.js → chunk-gen6f3dn.js} +2 -2
- package/bundle/{chunk-fkdbba26.js → chunk-gf4ek7rv.js} +1 -1
- package/bundle/{chunk-ee5r4h0v.js → chunk-gff87y4n.js} +1 -1
- package/bundle/chunk-gfmz85hp.js +2 -0
- package/bundle/chunk-gk63k4t6.js +2 -0
- package/bundle/{chunk-b3x13ndd.js → chunk-gn7xgd4c.js} +1 -1
- package/bundle/{chunk-4gfryje2.js → chunk-gn9p1d50.js} +1 -1
- package/bundle/{chunk-b1t8d1s8.js → chunk-gvzfffr4.js} +1 -1
- package/bundle/{chunk-zeh3mjgp.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/{chunk-r8ddb02d.js → chunk-hbnr0j7h.js} +2 -2
- package/bundle/chunk-hg563h5r.js +3 -0
- package/bundle/{chunk-y3x5m3e8.js → chunk-hg9nk090.js} +1 -1
- package/bundle/{chunk-67wvdfs5.js → chunk-hh3w51wp.js} +2 -2
- package/bundle/{chunk-fa03gsff.js → chunk-hh4c02fh.js} +1 -1
- package/bundle/{chunk-5z8gpy3x.js → chunk-hh9a709t.js} +1 -1
- package/bundle/{chunk-dgsg31vm.js → chunk-hjbks7r9.js} +1 -1
- package/bundle/{chunk-qafcfb4x.js → chunk-hqg5qbxk.js} +1 -1
- package/bundle/{chunk-jtbf88gw.js → chunk-hv4nhx6q.js} +2 -2
- package/bundle/{chunk-n4spe0sv.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-351wfvhp.js → chunk-j1veq3zr.js} +2 -2
- package/bundle/{chunk-60dxyp37.js → chunk-jbd9k041.js} +2 -2
- package/bundle/chunk-jcem8s30.js +2 -0
- package/bundle/{chunk-v9sfzkg5.js → chunk-jegn6jc3.js} +2 -2
- package/bundle/chunk-jjwjb9w0.js +3 -0
- package/bundle/{chunk-3degq6rv.js → chunk-jmjg8d8a.js} +4 -4
- package/bundle/chunk-jpham2a3.js +2 -0
- package/bundle/{chunk-rpy4rgmm.js → chunk-jpygkh1c.js} +1 -1
- package/bundle/{chunk-n39gqxkz.js → chunk-jr8qcf99.js} +2 -2
- package/bundle/{chunk-9hrpcnt8.js → chunk-jr9xnvjq.js} +1 -1
- package/bundle/{chunk-07b36w5g.js → chunk-jz3aav8a.js} +2 -2
- package/bundle/chunk-jzkymnr5.js +2 -0
- package/bundle/chunk-k0qtwnhb.js +2 -0
- package/bundle/{chunk-6w15nfph.js → chunk-k16hzy2q.js} +1 -1
- package/bundle/chunk-k2rsky7z.js +2 -0
- package/bundle/{chunk-61ndvjmm.js → chunk-k9d927xe.js} +1 -1
- package/bundle/{chunk-jrwfx6d8.js → chunk-k9g77a02.js} +1 -1
- package/bundle/{chunk-t1f7jeat.js → chunk-kaeyhw2n.js} +2 -2
- package/bundle/{chunk-gvj8qg7x.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-8wzc27e3.js → chunk-kr0fsqas.js} +1 -1
- package/bundle/chunk-ksqfjawv.js +2 -0
- package/bundle/{chunk-awdpkgxf.js → chunk-ktmazmas.js} +2 -2
- package/bundle/{chunk-c4x99ayd.js → chunk-m8djypsy.js} +1 -1
- package/bundle/{chunk-10qkxzhh.js → chunk-mj24ntn9.js} +1 -1
- package/bundle/chunk-mjhb1q0n.js +3 -0
- package/bundle/{chunk-4xpfmpjf.js → chunk-ms1fd6h4.js} +1 -1
- package/bundle/chunk-mxcger73.js +2 -0
- package/bundle/{chunk-fzhgxcej.js → chunk-n1chdwrs.js} +1 -1
- package/bundle/{chunk-jatba8z8.js → chunk-najzfhb2.js} +1 -1
- package/bundle/chunk-nazkrkeb.js +2 -0
- package/bundle/chunk-nk01s49e.js +2 -0
- package/bundle/{chunk-pp44xnd7.js → chunk-ns0pswww.js} +1 -1
- package/bundle/chunk-ns8b7rx1.js +2 -0
- package/bundle/chunk-ny6vpkx2.js +2 -0
- package/bundle/{chunk-0vw5a7m9.js → chunk-p4hpr8d7.js} +1 -1
- package/bundle/{chunk-n1m5qdf5.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-f8xnn26j.js → chunk-pb7rnkke.js} +1 -1
- package/bundle/{chunk-4se8cbmb.js → chunk-pfhp78cr.js} +1 -1
- package/bundle/{chunk-y2r3zker.js → chunk-ps543k72.js} +1 -1
- package/bundle/chunk-pv8jcpnf.js +2 -0
- package/bundle/{chunk-vqxyph4q.js → chunk-pyq01301.js} +1 -1
- package/bundle/chunk-q0dd3ak6.js +3 -0
- package/bundle/chunk-q2s057bm.js +2 -0
- package/bundle/{chunk-x1naayst.js → chunk-q3x4x2tq.js} +1 -1
- package/bundle/chunk-q5cqg2c0.js +28 -0
- package/bundle/{chunk-msqx5bb0.js → chunk-q6fbyvpq.js} +1 -1
- package/bundle/chunk-qk2wnp2x.js +2 -0
- package/bundle/{chunk-wm3b050v.js → chunk-qw2hgs5b.js} +2 -2
- package/bundle/{chunk-8x6x3g16.js → chunk-qywwj58s.js} +2 -2
- package/bundle/chunk-r012q335.js +3 -0
- package/bundle/{chunk-gzwcj7c9.js → chunk-r3yqe7x0.js} +1 -1
- package/bundle/{chunk-2epf5806.js → chunk-r48g0kaq.js} +2 -2
- package/bundle/{chunk-hrnx60em.js → chunk-r7xp0xcn.js} +2 -2
- package/bundle/chunk-rbdjbgkb.js +2 -0
- package/bundle/{chunk-a3a9bbk7.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-bdzgtazc.js → chunk-s9amvacw.js} +2 -2
- package/bundle/chunk-sbt7qmwm.js +3 -0
- package/bundle/chunk-sf6h44pb.js +2 -0
- package/bundle/{chunk-aznbvrbm.js → chunk-sgtgvzv6.js} +1 -1
- package/bundle/chunk-sgvzxs7m.js +2 -0
- package/bundle/{chunk-h7rxnbf0.js → chunk-sjrmhd3e.js} +1 -1
- package/bundle/chunk-sp9bndyh.js +2 -0
- package/bundle/{chunk-ck65rcxb.js → chunk-spm1yy6w.js} +1 -1
- package/bundle/{chunk-h6htvj2y.js → chunk-srf73nm4.js} +1 -1
- package/bundle/{chunk-c2w3bqsa.js → chunk-sswbfqcq.js} +1 -1
- package/bundle/{chunk-er5q8nhp.js → chunk-t488d66k.js} +1 -1
- package/bundle/{chunk-aftpj9fe.js → chunk-t6w96xq2.js} +1 -1
- package/bundle/{chunk-t8365msg.js → chunk-te1zfpzv.js} +1 -1
- package/bundle/{chunk-2bxy8zm1.js → chunk-tk3bve0x.js} +2 -2
- package/bundle/chunk-tsn1jkr7.js +2 -0
- package/bundle/{chunk-z9b0ydw1.js → chunk-tzc4jkzg.js} +1 -1
- package/bundle/{chunk-01gtn79f.js → chunk-v2kyarwz.js} +2 -2
- package/bundle/{chunk-0qmaxpkv.js → chunk-v7r9np94.js} +1 -1
- package/bundle/{chunk-0jv8r99k.js → chunk-va4davgy.js} +317 -297
- package/bundle/{chunk-2bbvvh0d.js → chunk-vavrczqm.js} +1 -1
- package/bundle/{chunk-43xq4p51.js → chunk-ve5gb789.js} +2 -2
- package/bundle/{chunk-n9gzj085.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-5a80qybt.js → chunk-vvypb02q.js} +1 -1
- package/bundle/{chunk-h5wh2d49.js → chunk-vzjcmwry.js} +2 -2
- package/bundle/{chunk-6nhgkw5r.js → chunk-w1atxyz0.js} +1 -1
- package/bundle/{chunk-73d0dy03.js → chunk-w7p2x973.js} +2 -2
- package/bundle/{chunk-db7hykjs.js → chunk-wa2ce2sg.js} +2 -2
- package/bundle/{chunk-3nc9wy1m.js → chunk-wf09j72q.js} +2 -2
- package/bundle/{chunk-wfb9dwmc.js → chunk-wfnk2vsd.js} +1 -1
- package/bundle/{chunk-zt8kghd2.js → chunk-wj6aq50n.js} +1 -1
- package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
- package/bundle/{chunk-ha5qct06.js → chunk-wmw2gne9.js} +2 -2
- package/bundle/chunk-wtp0yvqw.js +2 -0
- package/bundle/{chunk-btjcs9ee.js → chunk-x6z2b63w.js} +1 -1
- package/bundle/{chunk-3xbtg0hn.js → chunk-xccs5c50.js} +1 -1
- package/bundle/{chunk-abc7ccfd.js → chunk-xj73j10a.js} +1 -1
- package/bundle/chunk-xmzs7q66.js +2 -0
- package/bundle/chunk-xv80476w.js +2 -0
- package/bundle/{chunk-tepesp0b.js → chunk-xv8gnkh5.js} +1 -1
- package/bundle/{chunk-hf0gny5t.js → chunk-y1srca0c.js} +2 -2
- package/bundle/{chunk-zy0zn8yx.js → chunk-y2jmtfdh.js} +2 -2
- package/bundle/{chunk-w8xaw2dv.js → chunk-y3n31nnx.js} +2 -2
- package/bundle/{chunk-6v4mhtha.js → chunk-ygj1cy0n.js} +1 -1
- package/bundle/{chunk-496rb1e4.js → chunk-yh174jhg.js} +2 -2
- package/bundle/chunk-yjvr0et1.js +2 -0
- package/bundle/{chunk-h9ftcgs2.js → chunk-yz7rqzby.js} +3 -3
- package/bundle/{chunk-2qy62cv4.js → chunk-yzdty5t9.js} +2 -2
- package/bundle/{chunk-5mrjxapq.js → chunk-zavtsfxz.js} +1 -1
- package/bundle/{chunk-h725tttx.js → chunk-zeh481tm.js} +2 -2
- package/bundle/{chunk-cn7nnjsf.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/{chunk-p20ft5mj.js → chunk-zk8n8hnh.js} +2 -2
- package/bundle/{chunk-en7nxqvn.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-04ezvjjf.js +0 -2
- package/bundle/chunk-0msr85tj.js +0 -2
- package/bundle/chunk-0qrpg3n8.js +0 -2
- package/bundle/chunk-0w8ztgmg.js +0 -2
- package/bundle/chunk-0y2nwncb.js +0 -2
- package/bundle/chunk-0zh8tykf.js +0 -2
- package/bundle/chunk-21z1vfgm.js +0 -2
- package/bundle/chunk-2ec8msmq.js +0 -2
- package/bundle/chunk-2n5m61m9.js +0 -2
- package/bundle/chunk-362z696e.js +0 -2
- package/bundle/chunk-367rm03h.js +0 -2
- package/bundle/chunk-3f6t3wde.js +0 -799
- package/bundle/chunk-40vz0fhv.js +0 -3
- package/bundle/chunk-43k17qzb.js +0 -2
- package/bundle/chunk-4r574drd.js +0 -2
- package/bundle/chunk-6c2xn1ab.js +0 -2
- package/bundle/chunk-6pe3xzkk.js +0 -11
- package/bundle/chunk-6rak9ez9.js +0 -2
- package/bundle/chunk-71dbq1d0.js +0 -2
- package/bundle/chunk-73r1zvgw.js +0 -2
- package/bundle/chunk-7az1bpy8.js +0 -2
- package/bundle/chunk-7bm1t462.js +0 -2
- package/bundle/chunk-7nq8126b.js +0 -2
- package/bundle/chunk-80a0d0js.js +0 -2
- package/bundle/chunk-9ac4h2d9.js +0 -2
- package/bundle/chunk-9zp746aj.js +0 -2
- package/bundle/chunk-a0vpemkf.js +0 -2
- package/bundle/chunk-anqjy235.js +0 -7
- package/bundle/chunk-atjzxp7b.js +0 -2
- package/bundle/chunk-ax4f4fbm.js +0 -2
- package/bundle/chunk-aybmm0jf.js +0 -2
- package/bundle/chunk-b2scgkye.js +0 -2
- package/bundle/chunk-b5h8vd5n.js +0 -3
- package/bundle/chunk-bbpze4hq.js +0 -2
- package/bundle/chunk-bn6mg34g.js +0 -7
- package/bundle/chunk-c6wrjyep.js +0 -2
- package/bundle/chunk-cckshvkb.js +0 -9
- package/bundle/chunk-ce3c03mh.js +0 -2
- package/bundle/chunk-cm31dbwq.js +0 -2
- package/bundle/chunk-cqaw6hka.js +0 -2
- package/bundle/chunk-cxbkhs5y.js +0 -2
- package/bundle/chunk-d9vs6zd0.js +0 -2
- package/bundle/chunk-dcyzpkww.js +0 -2
- package/bundle/chunk-dj3rct8v.js +0 -2
- package/bundle/chunk-djcsvcby.js +0 -5
- package/bundle/chunk-ds162xgb.js +0 -3
- package/bundle/chunk-e1zv873k.js +0 -2
- package/bundle/chunk-eb0ksh4x.js +0 -2
- package/bundle/chunk-efxshjyz.js +0 -2
- package/bundle/chunk-enry018j.js +0 -2
- package/bundle/chunk-f03yje8k.js +0 -3
- package/bundle/chunk-fd1vbz1f.js +0 -3
- package/bundle/chunk-fydd2nmw.js +0 -2
- package/bundle/chunk-g2bw2qf5.js +0 -2
- package/bundle/chunk-h9a4zzr4.js +0 -2
- package/bundle/chunk-hkqcpdmt.js +0 -3
- package/bundle/chunk-jx3kvzka.js +0 -2
- package/bundle/chunk-k6eyc1wv.js +0 -8
- package/bundle/chunk-k9m536te.js +0 -2
- package/bundle/chunk-khkv9s5c.js +0 -2
- package/bundle/chunk-kv58j3yk.js +0 -2
- package/bundle/chunk-m3sr6xdg.js +0 -2
- package/bundle/chunk-mmyhzhzt.js +0 -2
- package/bundle/chunk-mt8zem33.js +0 -24
- package/bundle/chunk-mw60bmaf.js +0 -2
- package/bundle/chunk-nk42gy65.js +0 -2
- package/bundle/chunk-ps8xnz0h.js +0 -2
- package/bundle/chunk-pvn4dz8e.js +0 -2
- package/bundle/chunk-pw3tnt2j.js +0 -2
- package/bundle/chunk-pzajshbc.js +0 -2
- package/bundle/chunk-q2weasmk.js +0 -2
- package/bundle/chunk-qe8zp79w.js +0 -2
- package/bundle/chunk-qvcnvqvf.js +0 -2
- package/bundle/chunk-qxrjbw22.js +0 -2
- package/bundle/chunk-qy9s3nmy.js +0 -2
- package/bundle/chunk-r0zsgad8.js +0 -4
- package/bundle/chunk-r4hkkcj4.js +0 -2
- package/bundle/chunk-r50kjthp.js +0 -2
- package/bundle/chunk-rbrkvj3x.js +0 -2
- package/bundle/chunk-rhgfyvth.js +0 -2
- package/bundle/chunk-rjdpw6at.js +0 -2
- package/bundle/chunk-s6c5c940.js +0 -2
- package/bundle/chunk-s79zd152.js +0 -2
- package/bundle/chunk-skjx57kv.js +0 -2
- package/bundle/chunk-ssfgge5z.js +0 -2
- package/bundle/chunk-t813v629.js +0 -2
- package/bundle/chunk-tdqbsbyb.js +0 -2
- package/bundle/chunk-th189x63.js +0 -3
- package/bundle/chunk-thbjhgw0.js +0 -2
- package/bundle/chunk-tk6gjy9d.js +0 -3
- package/bundle/chunk-tsfpkwvr.js +0 -2
- package/bundle/chunk-tz8qhbk9.js +0 -3
- package/bundle/chunk-v07wtbmt.js +0 -2
- package/bundle/chunk-v6kenrks.js +0 -2
- package/bundle/chunk-v7dfqwxx.js +0 -2
- package/bundle/chunk-vf7hhxsa.js +0 -2
- package/bundle/chunk-vmhq6cyz.js +0 -2
- package/bundle/chunk-vvs87e61.js +0 -2
- package/bundle/chunk-w6z123g2.js +0 -2
- package/bundle/chunk-wg0849tq.js +0 -2
- package/bundle/chunk-xa0f5g9z.js +0 -2
- package/bundle/chunk-xj0ba60b.js +0 -2
- package/bundle/chunk-xtfcdgwe.js +0 -2
- package/bundle/chunk-xz7dccwp.js +0 -2
- package/bundle/chunk-ye6j8k26.js +0 -2
- package/bundle/chunk-zbvf09bm.js +0 -3
- package/bundle/chunk-zmqmccbc.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{$j as f,Hj as s,Mj as e,Nj as j,Oj as v,_j as u}from"./chunk-7mhffm9f.js";import{Dl as D,Hl as b,Il as a,Jl as t,ul as r,vl as C,wl as k,xl as m}from"./chunk-0z3z0gk1.js";import{an as x,bn as q,dn as n,en as o,gn as K,in as c,pn as i}from"./chunk-m8djypsy.js";import{pt as O_,zt as Q_}from"./chunk-zk8n8hnh.js";import{Ot as d,Tt as g}from"./chunk-1jh5p5qw.js";import{AP as S_}from"./chunk-hh4c02fh.js";var l={};S_(l,{run:()=>h_,encodeDir:()=>k_,ClaudeImport:()=>l});import E_ from"path";import W_ from"path";import{access as X_,readFile as Y_}from"fs/promises";var G=n("external_import",{source:q().$type().notNull(),source_key:q().notNull(),session_id:q().$type().notNull(),source_path:q().notNull(),source_mtime:x().notNull(),time_imported:x().notNull(),message_ids:q({mode:"json"}).$type()},(N)=>[o({columns:[N.source,N.source_key]})]);function Z_(){return{scanned:0,imported:0,resynced:0,skipped:0,errors:[]}}async function L_(N){if(!N||!await g.exists(N))return{id:b.global,worktree:N||"/",vcs:null};if(!await a(N))return{id:b.global,worktree:N,vcs:null};return{id:await t(N),worktree:N,vcs:"git"}}function __(N){return N.split(`
|
|
3
3
|
`).map((_)=>_.trim()).filter(Boolean).flatMap((_)=>{try{return[JSON.parse(_)]}catch{return[]}})}function N_(N){let _=N.find((H)=>H.trim()&&!H.trim().startsWith("<"));if(!_)return;return _.trim().replace(/\s+/g," ").slice(0,100)}function R_(N,_){return D.use((H)=>H.select().from(G).where(c(K(G.source,N),K(G.source_key,_))).get())}function G_(N,_){if(!_)return{existing:void 0,existingUpdated:void 0};let H=_,O=D.use((Z)=>Z.select({updated:C.time_updated}).from(C).where(K(C.id,H.session_id)).get());if(!O)return D.use((Z)=>Z.delete(G).where(c(K(G.source,N),K(G.source_key,H.source_key))).run()),{existing:void 0,existingUpdated:void 0};return{existing:_,existingUpdated:O.updated}}function J_(N,_,H,O){N.insert(r).values({id:_.id,worktree:_.worktree,vcs:_.vcs,sandboxes:[],time_created:H,time_updated:O}).onConflictDoNothing().run()}function K_(N,_,H){if(_.message_ids?.length)for(let O=0;O<_.message_ids.length;O+=500)N.delete(k).where(i(k.id,_.message_ids.slice(O,O+500))).run();else N.delete(k).where(K(k.session_id,H)).run()}function A_(N,_,H){N.update(C).set({project_id:H.projectId,directory:H.directory,version:H.version,time_updated:Math.max(H.existingUpdated??0,H.timeUpdated)}).where(K(C.id,_)).run()}function $_(N){return async(_)=>F_({...N,force:_?.force})}async function F_(N){let _=Z_();if(!await X_(N.root).then(()=>!0).catch(()=>!1))return _;let H=await d.scan(N.pattern,{cwd:N.root,absolute:!0});for(let O of H){_.scanned++;try{let Z=W_.basename(O,".jsonl"),A=await g.statAsync(O);if(!A){_.skipped++;continue}let F=Math.floor(Number(A.mtimeMs)),Y=R_(N.source,Z);if(Y&&Y.source_mtime===F&&!N.force){_.skipped++;continue}let S=G_(N.source,Y);Y=S.existing;let T=S.existingUpdated,Q=Y?Y.session_id:e.descending(),V=N.parse(await Y_(O,"utf-8"),Q);if(!V||V.messages.length===0){_.skipped++;continue}let E=await L_(V.cwd),U=Date.now(),X=V.messages.map(($)=>$.info.id);if(D.transaction(($)=>{if(J_($,E,V.timeCreated,V.timeUpdated),Y)K_($,Y,Q),A_($,Q,{projectId:E.id,directory:V.cwd,version:V.version,existingUpdated:T,timeUpdated:V.timeUpdated});else $.insert(C).values({id:Q,project_id:E.id,slug:s.create(),directory:V.cwd,title:V.title,version:V.version,time_created:V.timeCreated,time_updated:V.timeUpdated}).run();for(let L of V.messages){let{id:B,sessionID:I,agentID:w,...z}=L.info;$.insert(k).values({id:B,session_id:Q,agent_id:"main",time_created:L.info.time.created,data:z}).onConflictDoUpdate({target:k.id,set:{data:z}}).run();for(let J of L.parts){let{id:y,sessionID:p,messageID:P,...h}=J.part;$.insert(m).values({id:y,message_id:L.info.id,session_id:Q,time_created:J.time,data:h}).onConflictDoUpdate({target:m.id,set:{data:h}}).run()}}$.insert(G).values({source:N.source,source_key:Z,session_id:Q,source_path:O,source_mtime:F,time_imported:U,message_ids:X}).onConflictDoUpdate({target:[G.source,G.source_key],set:{session_id:Q,source_path:O,source_mtime:F,time_imported:U,message_ids:X}}).run()}),Y)_.resynced++;else _.imported++}catch(Z){_.errors.push(`${O}: ${Z}`)}}if(_.imported+_.resynced>0||_.errors.length>0)N.log.info(N.logMessage,{..._,errors:_.errors.length});return _}var B_=Q_.create({service:"claude-import"});function k_(N){return N.replace(/[^a-zA-Z0-9]/g,"-")}function z_(N){if(!N)return{providerID:u.anthropic,modelID:f.make("unknown")};let _=N.indexOf("/");if(_===-1)return{providerID:u.anthropic,modelID:f.make(N)};return{providerID:u.make(N.slice(0,_)),modelID:f.make(N.slice(_+1))}}function H_(N){let _=N??{};return{input:_.input_tokens??0,output:_.output_tokens??0,reasoning:0,cache:{read:_.cache_read_input_tokens??0,write:_.cache_creation_input_tokens??0}}}function C_(N){if(typeof N==="string")return N;if(Array.isArray(N))return N.map((_)=>_&&typeof _==="object"&&("type"in _)&&_.type==="text"?_.text:JSON.stringify(_)).join(`
|
|
4
4
|
`);return N==null?"":JSON.stringify(N)}function U_(N,_){let H=__(N);if(H.length===0)return;let O,Z,A,F=0,Y,S=[],T=new Map,Q=null,V=null,E=z_(void 0),U=()=>{if(Q)S.push(Q);Q=null};for(let X of H){if(X.type!=="user"&&X.type!=="assistant")continue;let $=X.timestamp?Date.parse(X.timestamp):Date.now();if(!O&&X.cwd)O=X.cwd;if(!Z&&X.version)Z=X.version;if(A===void 0)A=$;F=Math.max(F,$);let L=X.message;if(!L)continue;if(X.type==="user"){let z=L.content,J=typeof z==="string"?[]:Array.isArray(z)?z:[];for(let W of J.filter((R)=>R?.type==="tool_result")){let R=T.get(W.tool_use_id);if(!R)continue;let M=C_(W.content);R.part.state=W.is_error?{status:"error",input:R.part.state.input??{},error:M,time:{start:R.start,end:$}}:{status:"completed",input:R.part.state.input??{},output:M,title:R.part.tool,metadata:{},time:{start:R.start,end:$}}}let y=typeof z==="string"?z.trim()?[z]:[]:J.filter((W)=>W?.type==="text"&&typeof W.text==="string"&&W.text.trim()).map((W)=>W.text),p=J.filter((W)=>W?.type==="image"&&W.source);if(y.length===0&&p.length===0)continue;U();let P=j.ascending(),h=[];for(let W of y)h.push({part:{id:v.ascending(),sessionID:_,messageID:P,type:"text",text:W},time:$});for(let W of p){let R=W.source.media_type??"image/png",M=W.source.type==="base64"?`data:${R};base64,${W.source.data}`:W.source.url??"";if(M)h.push({part:{id:v.ascending(),sessionID:_,messageID:P,type:"file",mime:R,url:M},time:$})}let V_={id:P,sessionID:_,role:"user",agent:"main",time:{created:$},model:{providerID:E.providerID,modelID:E.modelID}};if(S.push({info:V_,parts:h}),V=P,!Y)Y=N_(y);continue}let B=z_(L.model);if(E=B,!V){let z=j.ascending();S.push({info:{id:z,sessionID:_,role:"user",agent:"main",time:{created:$},model:{providerID:B.providerID,modelID:B.modelID}},parts:[]}),V=z}if(!Q||Q.info.role!=="assistant"||Q.info.parentID!==V)U(),Q={info:{id:j.ascending(),sessionID:_,role:"assistant",time:{created:$,completed:$},parentID:V,modelID:B.modelID,providerID:B.providerID,mode:"build",agent:"main",path:{cwd:O??X.cwd??"",root:O??X.cwd??""},cost:0,tokens:H_(L.usage)},parts:[]};let I=Q.info;I.time.completed=$,I.tokens=H_(L.usage);let w=Q.info.id;for(let z of Array.isArray(L.content)?L.content:[])if(z?.type==="thinking"||z?.type==="reasoning")Q.parts.push({part:{id:v.ascending(),sessionID:_,messageID:w,type:"reasoning",text:z.thinking??z.text??"",time:{start:$,end:$}},time:$});else if(z?.type==="text"&&typeof z.text==="string")Q.parts.push({part:{id:v.ascending(),sessionID:_,messageID:w,type:"text",text:z.text},time:$});else if(z?.type==="tool_use"){let J={id:v.ascending(),sessionID:_,messageID:w,type:"tool",callID:z.id,tool:z.name,state:{status:"pending",input:z.input??{},raw:JSON.stringify(z.input??{})}};Q.parts.push({part:J,time:$}),T.set(z.id,{part:J,start:$})}}return U(),{cwd:O??"",version:Z??"claude-code",title:Y??"Claude Code session",timeCreated:A??Date.now(),timeUpdated:F||A||Date.now(),messages:S}}var h_=$_({source:"cc",root:E_.join(O_.Path.home,".claude","projects"),pattern:"*/*.jsonl",log:B_,logMessage:"claude import",parse:U_});
|
|
5
|
-
export{G as
|
|
5
|
+
export{G as $f,Z_ as ag,L_ as bg,__ as cg,N_ as dg,R_ as eg,G_ as fg,J_ as gg,K_ as hg,A_ as ig,$_ as jg,k_ as kg,h_ as lg,l as mg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{cl as a}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"./chunk-kkvb2c2z.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-fhng5her.js";import"./chunk-dkv2mg97.js";import"./chunk-bf146hz2.js";import"./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-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"./chunk-zk8n8hnh.js";import"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import"./chunk-dkm7x8rj.js";import"./chunk-kc3hpmr2.js";import"./chunk-hh4c02fh.js";export{a as Session};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{wP as D}from"./chunk-99n6czag.js";import{xP as C}from"./chunk-kc3hpmr2.js";import{CP as B,zP as z}from"./chunk-hh4c02fh.js";var H=z((v)=>{Object.defineProperty(v,"__esModule",{value:!0});v.getMachineId=void 0;var E=B("fs"),F=D(),q=C();async function G(){try{return(await E.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(k){q.diag.debug(`error reading machine id: ${k}`)}try{return(await(0,F.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(k){q.diag.debug(`error reading machine id: ${k}`)}return}v.getMachineId=G});export default H();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{De as E,Le as O,Me as b,Pe as k,Se as M,Te as W,Xe as F,Ye as S,af as T,bf as _,cf as H,ef as C}from"./chunk-x4c8drpe.js";import{Nq as I,Oq as R,Qq as P}from"./chunk-er5q8nhp.js";import"./chunk-cqtkxwd8.js";import"./chunk-h6htvj2y.js";import{Cu as j}from"./chunk-hrnx60em.js";import"./chunk-bbznk59q.js";import"./chunk-fa03gsff.js";var u=j.object({thinking:j.object({type:j.enum(["enabled","disabled"]).optional(),tokenBudget:j.number().optional()}).optional()}),d=j.object({message:j.string()}),w=T({errorSchema:d,errorToMessage:(z)=>z.message});function c({tools:z,toolChoice:X}){z=(z==null?void 0:z.length)?z:void 0;let Y=[];if(z==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Y};let $=[];for(let J of z)if(J.type==="provider")Y.push({type:"unsupported",feature:`provider-defined tool ${J.id}`});else $.push({type:"function",function:{name:J.name,description:J.description,parameters:J.inputSchema}});if(X==null)return{tools:$,toolChoice:void 0,toolWarnings:Y};let D=X.type;switch(D){case"auto":return{tools:$,toolChoice:void 0,toolWarnings:Y};case"none":return{tools:$,toolChoice:"NONE",toolWarnings:Y};case"required":return{tools:$,toolChoice:"REQUIRED",toolWarnings:Y};case"tool":return{tools:$.filter((J)=>J.function.name===X.toolName),toolChoice:"REQUIRED",toolWarnings:Y};default:throw new P({functionality:`tool choice type: ${D}`})}}function y(z){if(z==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let{input_tokens:X,output_tokens:Y}=z;return{inputTokens:{total:X,noCache:X,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:Y,text:Y,reasoning:void 0},raw:z}}function p(z){let X=[],Y=[],$=[];for(let{role:D,content:J}of z)switch(D){case"system":{X.push({role:"system",content:J});break}case"user":{X.push({role:"user",content:J.map((Q)=>{var B;switch(Q.type){case"text":return Q.text;case"file":{let G;if(typeof Q.data==="string")G=Q.data;else if(Q.data instanceof Uint8Array){if(!(((B=Q.mediaType)==null?void 0:B.startsWith("text/"))||Q.mediaType==="application/json"))throw new P({functionality:`document media type: ${Q.mediaType}`,message:`Media type '${Q.mediaType}' is not supported. Supported media types are: text/* and application/json.`});G=new TextDecoder().decode(Q.data)}else throw new P({functionality:"File URL data",message:"URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue."});return Y.push({data:{text:G,title:Q.filename}}),""}}}).join("")});break}case"assistant":{let Q="",B=[];for(let G of J)switch(G.type){case"text":{Q+=G.text;break}case"tool-call":{B.push({id:G.toolCallId,type:"function",function:{name:G.toolName,arguments:JSON.stringify(G.input)}});break}}X.push({role:"assistant",content:B.length>0?void 0:Q,tool_calls:B.length>0?B:void 0,tool_plan:void 0});break}case"tool":{X.push(...J.filter((Q)=>Q.type!=="tool-approval-response").map((Q)=>{var B;let G=Q.output,K;switch(G.type){case"text":case"error-text":K=G.value;break;case"execution-denied":K=(B=G.reason)!=null?B:"Tool execution denied.";break;case"content":case"json":case"error-json":K=JSON.stringify(G.value);break}return{role:"tool",content:K,tool_call_id:Q.toolCallId}}));break}default:throw Error(`Unsupported role: ${D}`)}return{messages:X,documents:Y,warnings:$}}function f(z){switch(z){case"COMPLETE":case"STOP_SEQUENCE":return"stop";case"MAX_TOKENS":return"length";case"ERROR":return"error";case"TOOL_CALL":return"tool-calls";default:return"other"}}var i=class{constructor(z,X){this.specificationVersion="v3",this.supportedUrls={},this.modelId=z,this.config=X}get provider(){return this.config.provider}async getArgs({prompt:z,maxOutputTokens:X,temperature:Y,topP:$,topK:D,frequencyPenalty:J,presencePenalty:Q,stopSequences:B,responseFormat:G,seed:K,tools:U,toolChoice:N,providerOptions:q}){var Z,L;let A=(Z=await F({provider:"cohere",providerOptions:q,schema:u}))!=null?Z:{},{messages:V,documents:x,warnings:h}=p(z),{tools:v,toolChoice:m,toolWarnings:g}=c({tools:U,toolChoice:N});return{args:{model:this.modelId,frequency_penalty:J,presence_penalty:Q,max_tokens:X,temperature:Y,p:$,k:D,seed:K,stop_sequences:B,response_format:(G==null?void 0:G.type)==="json"?{type:"json_object",json_schema:G.schema}:void 0,messages:V,tools:v,tool_choice:m,...x.length>0&&{documents:x},...A.thinking&&{thinking:{type:(L=A.thinking.type)!=null?L:"enabled",token_budget:A.thinking.tokenBudget}}},warnings:[...g,...h]}}async doGenerate(z){var X,Y,$,D,J,Q,B;let{args:G,warnings:K}=await this.getArgs(z),{responseHeaders:U,value:N,rawValue:q}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:G,failedResponseHandler:w,successfulResponseHandler:H(a),abortSignal:z.abortSignal,fetch:this.config.fetch}),Z=[];for(let L of(X=N.message.content)!=null?X:[]){if(L.type==="text"&&L.text.length>0){Z.push({type:"text",text:L.text});continue}if(L.type==="thinking"&&L.thinking.length>0){Z.push({type:"reasoning",text:L.thinking});continue}}for(let L of(Y=N.message.citations)!=null?Y:[])Z.push({type:"source",sourceType:"document",id:this.config.generateId(),mediaType:"text/plain",title:((D=($=L.sources[0])==null?void 0:$.document)==null?void 0:D.title)||"Document",providerMetadata:{cohere:{start:L.start,end:L.end,text:L.text,sources:L.sources,...L.type&&{citationType:L.type}}}});for(let L of(J=N.message.tool_calls)!=null?J:[])Z.push({type:"tool-call",toolCallId:L.id,toolName:L.function.name,input:L.function.arguments.replace(/^null$/,"{}")});return{content:Z,finishReason:{unified:f(N.finish_reason),raw:(Q=N.finish_reason)!=null?Q:void 0},usage:y(N.usage.tokens),request:{body:G},response:{id:(B=N.generation_id)!=null?B:void 0,headers:U,body:q},warnings:K}}async doStream(z){let{args:X,warnings:Y}=await this.getArgs(z),{responseHeaders:$,value:D}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:{...X,stream:!0},failedResponseHandler:w,successfulResponseHandler:_(s),abortSignal:z.abortSignal,fetch:this.config.fetch}),J={unified:"other",raw:void 0},Q=void 0,B=null,G=!1;return{stream:D.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:Y})},transform(K,U){var N,q;if(z.includeRawChunks)U.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){J={unified:"error",raw:void 0},U.enqueue({type:"error",error:K.error});return}let Z=K.value;switch(Z.type){case"content-start":{if(Z.delta.message.content.type==="thinking"){U.enqueue({type:"reasoning-start",id:String(Z.index)}),G=!0;return}U.enqueue({type:"text-start",id:String(Z.index)});return}case"content-delta":{if("thinking"in Z.delta.message.content){U.enqueue({type:"reasoning-delta",id:String(Z.index),delta:Z.delta.message.content.thinking});return}U.enqueue({type:"text-delta",id:String(Z.index),delta:Z.delta.message.content.text});return}case"content-end":{if(G){U.enqueue({type:"reasoning-end",id:String(Z.index)}),G=!1;return}U.enqueue({type:"text-end",id:String(Z.index)});return}case"tool-call-start":{let A=Z.delta.message.tool_calls.id,V=Z.delta.message.tool_calls.function.name,x=Z.delta.message.tool_calls.function.arguments;if(B={id:A,name:V,arguments:x,hasFinished:!1},U.enqueue({type:"tool-input-start",id:A,toolName:V}),x.length>0)U.enqueue({type:"tool-input-delta",id:A,delta:x});return}case"tool-call-delta":{if(B&&!B.hasFinished){let A=Z.delta.message.tool_calls.function.arguments;B.arguments+=A,U.enqueue({type:"tool-input-delta",id:B.id,delta:A})}return}case"tool-call-end":{if(B&&!B.hasFinished)U.enqueue({type:"tool-input-end",id:B.id}),U.enqueue({type:"tool-call",toolCallId:B.id,toolName:B.name,input:JSON.stringify(JSON.parse(((N=B.arguments)==null?void 0:N.trim())||"{}"))}),B.hasFinished=!0,B=null;return}case"message-start":{U.enqueue({type:"response-metadata",id:(q=Z.id)!=null?q:void 0});return}case"message-end":{J={unified:f(Z.delta.finish_reason),raw:Z.delta.finish_reason},Q=Z.delta.usage.tokens;return}default:return}},flush(K){K.enqueue({type:"finish",finishReason:J,usage:y(Q)})}})),request:{body:{...X,stream:!0}},response:{headers:$}}}},a=j.object({generation_id:j.string().nullish(),message:j.object({role:j.string(),content:j.array(j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])).nullish(),tool_plan:j.string().nullish(),tool_calls:j.array(j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})).nullish(),citations:j.array(j.object({start:j.number(),end:j.number(),text:j.string(),sources:j.array(j.object({type:j.string().optional(),id:j.string().optional(),document:j.object({id:j.string().optional(),text:j.string(),title:j.string()})})),type:j.string().optional()})).nullish()}),finish_reason:j.string(),usage:j.object({billed_units:j.object({input_tokens:j.number(),output_tokens:j.number()}),tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})}),s=j.discriminatedUnion("type",[j.object({type:j.literal("citation-start")}),j.object({type:j.literal("citation-end")}),j.object({type:j.literal("content-start"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])})})}),j.object({type:j.literal("content-delta"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({text:j.string()}),j.object({thinking:j.string()})])})})}),j.object({type:j.literal("content-end"),index:j.number()}),j.object({type:j.literal("message-start"),id:j.string().nullish()}),j.object({type:j.literal("message-end"),delta:j.object({finish_reason:j.string(),usage:j.object({tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})})}),j.object({type:j.literal("tool-plan-delta"),delta:j.object({message:j.object({tool_plan:j.string()})})}),j.object({type:j.literal("tool-call-start"),delta:j.object({message:j.object({tool_calls:j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-delta"),delta:j.object({message:j.object({tool_calls:j.object({function:j.object({arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-end")})]),r=j.object({inputType:j.enum(["search_document","search_query","classification","clustering"]).optional(),truncate:j.enum(["NONE","START","END"]).optional(),outputDimension:j.union([j.literal(256),j.literal(512),j.literal(1024),j.literal(1536)]).optional()}),l=class{constructor(z,X){this.specificationVersion="v3",this.maxEmbeddingsPerCall=96,this.supportsParallelCalls=!0,this.modelId=z,this.config=X}get provider(){return this.config.provider}async doEmbed({values:z,headers:X,abortSignal:Y,providerOptions:$}){var D;let J=await F({provider:"cohere",providerOptions:$,schema:r});if(z.length>this.maxEmbeddingsPerCall)throw new R({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:z});let{responseHeaders:Q,value:B,rawValue:G}=await S({url:`${this.config.baseURL}/embed`,headers:E(this.config.headers(),X),body:{model:this.modelId,embedding_types:["float"],texts:z,input_type:(D=J==null?void 0:J.inputType)!=null?D:"search_query",truncate:J==null?void 0:J.truncate,output_dimension:J==null?void 0:J.outputDimension},failedResponseHandler:w,successfulResponseHandler:H(n),abortSignal:Y,fetch:this.config.fetch});return{warnings:[],embeddings:B.embeddings.float,usage:{tokens:B.meta.billed_units.input_tokens},response:{headers:Q,body:G}}}},n=j.object({embeddings:j.object({float:j.array(j.array(j.number()))}),meta:j.object({billed_units:j.object({input_tokens:j.number()})})}),t=M(()=>W(j.object({id:j.string().nullish(),results:j.array(j.object({index:j.number(),relevance_score:j.number()})),meta:j.any()}))),e=M(()=>W(j.object({maxTokensPerDoc:j.number().optional(),priority:j.number().optional()}))),o=class{constructor(z,X){this.specificationVersion="v3",this.modelId=z,this.config=X}get provider(){return this.config.provider}async doRerank({documents:z,headers:X,query:Y,topN:$,abortSignal:D,providerOptions:J}){var Q;let B=await F({provider:"cohere",providerOptions:J,schema:e}),G=[];if(z.type==="object")G.push({type:"compatibility",feature:"object documents",details:"Object documents are converted to strings."});let{responseHeaders:K,value:U,rawValue:N}=await S({url:`${this.config.baseURL}/rerank`,headers:E(this.config.headers(),X),body:{model:this.modelId,query:Y,documents:z.type==="text"?z.values:z.values.map((q)=>JSON.stringify(q)),top_n:$,max_tokens_per_doc:B==null?void 0:B.maxTokensPerDoc,priority:B==null?void 0:B.priority},failedResponseHandler:w,successfulResponseHandler:H(t),abortSignal:D,fetch:this.config.fetch});return{ranking:U.results.map((q)=>({index:q.index,relevanceScore:q.relevance_score})),warnings:G,response:{id:(Q=U.id)!=null?Q:void 0,headers:K,body:N}}}},jj="3.0.27";function zj(z={}){var X;let Y=(X=C(z.baseURL))!=null?X:"https://api.cohere.com/v2",$=()=>b({Authorization:`Bearer ${k({apiKey:z.apiKey,environmentVariableName:"COHERE_API_KEY",description:"Cohere"})}`,...z.headers},`ai-sdk/cohere/${jj}`),D=(G)=>{var K;return new i(G,{provider:"cohere.chat",baseURL:Y,headers:$,fetch:z.fetch,generateId:(K=z.generateId)!=null?K:O})},J=(G)=>new l(G,{provider:"cohere.textEmbedding",baseURL:Y,headers:$,fetch:z.fetch}),Q=(G)=>new o(G,{provider:"cohere.reranking",baseURL:Y,headers:$,fetch:z.fetch}),B=function(G){if(new.target)throw Error("The Cohere model function cannot be called with the new keyword.");return D(G)};return B.specificationVersion="v3",B.languageModel=D,B.embedding=J,B.embeddingModel=J,B.textEmbedding=J,B.textEmbeddingModel=J,B.reranking=Q,B.rerankingModel=Q,B.imageModel=(G)=>{throw new I({modelId:G,modelType:"imageModel"})},B}var Fj=zj();export{zj as createCohere,Fj as cohere,jj as VERSION};
|
|
2
|
+
import{Ee as E,Me as O,Ne as b,Qe as k,Te as M,Ue as W,Ye as F,Ze as S,bf as T,cf as _,df as H,ff as C}from"./chunk-1fnmkm0z.js";import{$q as R,_q as I,br as P}from"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import{Pu as j}from"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-hh4c02fh.js";var u=j.object({thinking:j.object({type:j.enum(["enabled","disabled"]).optional(),tokenBudget:j.number().optional()}).optional()}),d=j.object({message:j.string()}),w=T({errorSchema:d,errorToMessage:(z)=>z.message});function c({tools:z,toolChoice:X}){z=(z==null?void 0:z.length)?z:void 0;let Y=[];if(z==null)return{tools:void 0,toolChoice:void 0,toolWarnings:Y};let $=[];for(let J of z)if(J.type==="provider")Y.push({type:"unsupported",feature:`provider-defined tool ${J.id}`});else $.push({type:"function",function:{name:J.name,description:J.description,parameters:J.inputSchema}});if(X==null)return{tools:$,toolChoice:void 0,toolWarnings:Y};let D=X.type;switch(D){case"auto":return{tools:$,toolChoice:void 0,toolWarnings:Y};case"none":return{tools:$,toolChoice:"NONE",toolWarnings:Y};case"required":return{tools:$,toolChoice:"REQUIRED",toolWarnings:Y};case"tool":return{tools:$.filter((J)=>J.function.name===X.toolName),toolChoice:"REQUIRED",toolWarnings:Y};default:throw new P({functionality:`tool choice type: ${D}`})}}function y(z){if(z==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let{input_tokens:X,output_tokens:Y}=z;return{inputTokens:{total:X,noCache:X,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:Y,text:Y,reasoning:void 0},raw:z}}function p(z){let X=[],Y=[],$=[];for(let{role:D,content:J}of z)switch(D){case"system":{X.push({role:"system",content:J});break}case"user":{X.push({role:"user",content:J.map((Q)=>{var B;switch(Q.type){case"text":return Q.text;case"file":{let G;if(typeof Q.data==="string")G=Q.data;else if(Q.data instanceof Uint8Array){if(!(((B=Q.mediaType)==null?void 0:B.startsWith("text/"))||Q.mediaType==="application/json"))throw new P({functionality:`document media type: ${Q.mediaType}`,message:`Media type '${Q.mediaType}' is not supported. Supported media types are: text/* and application/json.`});G=new TextDecoder().decode(Q.data)}else throw new P({functionality:"File URL data",message:"URLs should be downloaded by the AI SDK and not reach this point. This indicates a configuration issue."});return Y.push({data:{text:G,title:Q.filename}}),""}}}).join("")});break}case"assistant":{let Q="",B=[];for(let G of J)switch(G.type){case"text":{Q+=G.text;break}case"tool-call":{B.push({id:G.toolCallId,type:"function",function:{name:G.toolName,arguments:JSON.stringify(G.input)}});break}}X.push({role:"assistant",content:B.length>0?void 0:Q,tool_calls:B.length>0?B:void 0,tool_plan:void 0});break}case"tool":{X.push(...J.filter((Q)=>Q.type!=="tool-approval-response").map((Q)=>{var B;let G=Q.output,K;switch(G.type){case"text":case"error-text":K=G.value;break;case"execution-denied":K=(B=G.reason)!=null?B:"Tool execution denied.";break;case"content":case"json":case"error-json":K=JSON.stringify(G.value);break}return{role:"tool",content:K,tool_call_id:Q.toolCallId}}));break}default:throw Error(`Unsupported role: ${D}`)}return{messages:X,documents:Y,warnings:$}}function f(z){switch(z){case"COMPLETE":case"STOP_SEQUENCE":return"stop";case"MAX_TOKENS":return"length";case"ERROR":return"error";case"TOOL_CALL":return"tool-calls";default:return"other"}}var i=class{constructor(z,X){this.specificationVersion="v3",this.supportedUrls={},this.modelId=z,this.config=X}get provider(){return this.config.provider}async getArgs({prompt:z,maxOutputTokens:X,temperature:Y,topP:$,topK:D,frequencyPenalty:J,presencePenalty:Q,stopSequences:B,responseFormat:G,seed:K,tools:U,toolChoice:N,providerOptions:q}){var Z,L;let A=(Z=await F({provider:"cohere",providerOptions:q,schema:u}))!=null?Z:{},{messages:V,documents:x,warnings:h}=p(z),{tools:v,toolChoice:m,toolWarnings:g}=c({tools:U,toolChoice:N});return{args:{model:this.modelId,frequency_penalty:J,presence_penalty:Q,max_tokens:X,temperature:Y,p:$,k:D,seed:K,stop_sequences:B,response_format:(G==null?void 0:G.type)==="json"?{type:"json_object",json_schema:G.schema}:void 0,messages:V,tools:v,tool_choice:m,...x.length>0&&{documents:x},...A.thinking&&{thinking:{type:(L=A.thinking.type)!=null?L:"enabled",token_budget:A.thinking.tokenBudget}}},warnings:[...g,...h]}}async doGenerate(z){var X,Y,$,D,J,Q,B;let{args:G,warnings:K}=await this.getArgs(z),{responseHeaders:U,value:N,rawValue:q}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:G,failedResponseHandler:w,successfulResponseHandler:H(a),abortSignal:z.abortSignal,fetch:this.config.fetch}),Z=[];for(let L of(X=N.message.content)!=null?X:[]){if(L.type==="text"&&L.text.length>0){Z.push({type:"text",text:L.text});continue}if(L.type==="thinking"&&L.thinking.length>0){Z.push({type:"reasoning",text:L.thinking});continue}}for(let L of(Y=N.message.citations)!=null?Y:[])Z.push({type:"source",sourceType:"document",id:this.config.generateId(),mediaType:"text/plain",title:((D=($=L.sources[0])==null?void 0:$.document)==null?void 0:D.title)||"Document",providerMetadata:{cohere:{start:L.start,end:L.end,text:L.text,sources:L.sources,...L.type&&{citationType:L.type}}}});for(let L of(J=N.message.tool_calls)!=null?J:[])Z.push({type:"tool-call",toolCallId:L.id,toolName:L.function.name,input:L.function.arguments.replace(/^null$/,"{}")});return{content:Z,finishReason:{unified:f(N.finish_reason),raw:(Q=N.finish_reason)!=null?Q:void 0},usage:y(N.usage.tokens),request:{body:G},response:{id:(B=N.generation_id)!=null?B:void 0,headers:U,body:q},warnings:K}}async doStream(z){let{args:X,warnings:Y}=await this.getArgs(z),{responseHeaders:$,value:D}=await S({url:`${this.config.baseURL}/chat`,headers:E(this.config.headers(),z.headers),body:{...X,stream:!0},failedResponseHandler:w,successfulResponseHandler:_(s),abortSignal:z.abortSignal,fetch:this.config.fetch}),J={unified:"other",raw:void 0},Q=void 0,B=null,G=!1;return{stream:D.pipeThrough(new TransformStream({start(K){K.enqueue({type:"stream-start",warnings:Y})},transform(K,U){var N,q;if(z.includeRawChunks)U.enqueue({type:"raw",rawValue:K.rawValue});if(!K.success){J={unified:"error",raw:void 0},U.enqueue({type:"error",error:K.error});return}let Z=K.value;switch(Z.type){case"content-start":{if(Z.delta.message.content.type==="thinking"){U.enqueue({type:"reasoning-start",id:String(Z.index)}),G=!0;return}U.enqueue({type:"text-start",id:String(Z.index)});return}case"content-delta":{if("thinking"in Z.delta.message.content){U.enqueue({type:"reasoning-delta",id:String(Z.index),delta:Z.delta.message.content.thinking});return}U.enqueue({type:"text-delta",id:String(Z.index),delta:Z.delta.message.content.text});return}case"content-end":{if(G){U.enqueue({type:"reasoning-end",id:String(Z.index)}),G=!1;return}U.enqueue({type:"text-end",id:String(Z.index)});return}case"tool-call-start":{let A=Z.delta.message.tool_calls.id,V=Z.delta.message.tool_calls.function.name,x=Z.delta.message.tool_calls.function.arguments;if(B={id:A,name:V,arguments:x,hasFinished:!1},U.enqueue({type:"tool-input-start",id:A,toolName:V}),x.length>0)U.enqueue({type:"tool-input-delta",id:A,delta:x});return}case"tool-call-delta":{if(B&&!B.hasFinished){let A=Z.delta.message.tool_calls.function.arguments;B.arguments+=A,U.enqueue({type:"tool-input-delta",id:B.id,delta:A})}return}case"tool-call-end":{if(B&&!B.hasFinished)U.enqueue({type:"tool-input-end",id:B.id}),U.enqueue({type:"tool-call",toolCallId:B.id,toolName:B.name,input:JSON.stringify(JSON.parse(((N=B.arguments)==null?void 0:N.trim())||"{}"))}),B.hasFinished=!0,B=null;return}case"message-start":{U.enqueue({type:"response-metadata",id:(q=Z.id)!=null?q:void 0});return}case"message-end":{J={unified:f(Z.delta.finish_reason),raw:Z.delta.finish_reason},Q=Z.delta.usage.tokens;return}default:return}},flush(K){K.enqueue({type:"finish",finishReason:J,usage:y(Q)})}})),request:{body:{...X,stream:!0}},response:{headers:$}}}},a=j.object({generation_id:j.string().nullish(),message:j.object({role:j.string(),content:j.array(j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])).nullish(),tool_plan:j.string().nullish(),tool_calls:j.array(j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})).nullish(),citations:j.array(j.object({start:j.number(),end:j.number(),text:j.string(),sources:j.array(j.object({type:j.string().optional(),id:j.string().optional(),document:j.object({id:j.string().optional(),text:j.string(),title:j.string()})})),type:j.string().optional()})).nullish()}),finish_reason:j.string(),usage:j.object({billed_units:j.object({input_tokens:j.number(),output_tokens:j.number()}),tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})}),s=j.discriminatedUnion("type",[j.object({type:j.literal("citation-start")}),j.object({type:j.literal("citation-end")}),j.object({type:j.literal("content-start"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({type:j.literal("text"),text:j.string()}),j.object({type:j.literal("thinking"),thinking:j.string()})])})})}),j.object({type:j.literal("content-delta"),index:j.number(),delta:j.object({message:j.object({content:j.union([j.object({text:j.string()}),j.object({thinking:j.string()})])})})}),j.object({type:j.literal("content-end"),index:j.number()}),j.object({type:j.literal("message-start"),id:j.string().nullish()}),j.object({type:j.literal("message-end"),delta:j.object({finish_reason:j.string(),usage:j.object({tokens:j.object({input_tokens:j.number(),output_tokens:j.number()})})})}),j.object({type:j.literal("tool-plan-delta"),delta:j.object({message:j.object({tool_plan:j.string()})})}),j.object({type:j.literal("tool-call-start"),delta:j.object({message:j.object({tool_calls:j.object({id:j.string(),type:j.literal("function"),function:j.object({name:j.string(),arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-delta"),delta:j.object({message:j.object({tool_calls:j.object({function:j.object({arguments:j.string()})})})})}),j.object({type:j.literal("tool-call-end")})]),r=j.object({inputType:j.enum(["search_document","search_query","classification","clustering"]).optional(),truncate:j.enum(["NONE","START","END"]).optional(),outputDimension:j.union([j.literal(256),j.literal(512),j.literal(1024),j.literal(1536)]).optional()}),l=class{constructor(z,X){this.specificationVersion="v3",this.maxEmbeddingsPerCall=96,this.supportsParallelCalls=!0,this.modelId=z,this.config=X}get provider(){return this.config.provider}async doEmbed({values:z,headers:X,abortSignal:Y,providerOptions:$}){var D;let J=await F({provider:"cohere",providerOptions:$,schema:r});if(z.length>this.maxEmbeddingsPerCall)throw new R({provider:this.provider,modelId:this.modelId,maxEmbeddingsPerCall:this.maxEmbeddingsPerCall,values:z});let{responseHeaders:Q,value:B,rawValue:G}=await S({url:`${this.config.baseURL}/embed`,headers:E(this.config.headers(),X),body:{model:this.modelId,embedding_types:["float"],texts:z,input_type:(D=J==null?void 0:J.inputType)!=null?D:"search_query",truncate:J==null?void 0:J.truncate,output_dimension:J==null?void 0:J.outputDimension},failedResponseHandler:w,successfulResponseHandler:H(n),abortSignal:Y,fetch:this.config.fetch});return{warnings:[],embeddings:B.embeddings.float,usage:{tokens:B.meta.billed_units.input_tokens},response:{headers:Q,body:G}}}},n=j.object({embeddings:j.object({float:j.array(j.array(j.number()))}),meta:j.object({billed_units:j.object({input_tokens:j.number()})})}),t=M(()=>W(j.object({id:j.string().nullish(),results:j.array(j.object({index:j.number(),relevance_score:j.number()})),meta:j.any()}))),e=M(()=>W(j.object({maxTokensPerDoc:j.number().optional(),priority:j.number().optional()}))),o=class{constructor(z,X){this.specificationVersion="v3",this.modelId=z,this.config=X}get provider(){return this.config.provider}async doRerank({documents:z,headers:X,query:Y,topN:$,abortSignal:D,providerOptions:J}){var Q;let B=await F({provider:"cohere",providerOptions:J,schema:e}),G=[];if(z.type==="object")G.push({type:"compatibility",feature:"object documents",details:"Object documents are converted to strings."});let{responseHeaders:K,value:U,rawValue:N}=await S({url:`${this.config.baseURL}/rerank`,headers:E(this.config.headers(),X),body:{model:this.modelId,query:Y,documents:z.type==="text"?z.values:z.values.map((q)=>JSON.stringify(q)),top_n:$,max_tokens_per_doc:B==null?void 0:B.maxTokensPerDoc,priority:B==null?void 0:B.priority},failedResponseHandler:w,successfulResponseHandler:H(t),abortSignal:D,fetch:this.config.fetch});return{ranking:U.results.map((q)=>({index:q.index,relevanceScore:q.relevance_score})),warnings:G,response:{id:(Q=U.id)!=null?Q:void 0,headers:K,body:N}}}},jj="3.0.27";function zj(z={}){var X;let Y=(X=C(z.baseURL))!=null?X:"https://api.cohere.com/v2",$=()=>b({Authorization:`Bearer ${k({apiKey:z.apiKey,environmentVariableName:"COHERE_API_KEY",description:"Cohere"})}`,...z.headers},`ai-sdk/cohere/${jj}`),D=(G)=>{var K;return new i(G,{provider:"cohere.chat",baseURL:Y,headers:$,fetch:z.fetch,generateId:(K=z.generateId)!=null?K:O})},J=(G)=>new l(G,{provider:"cohere.textEmbedding",baseURL:Y,headers:$,fetch:z.fetch}),Q=(G)=>new o(G,{provider:"cohere.reranking",baseURL:Y,headers:$,fetch:z.fetch}),B=function(G){if(new.target)throw Error("The Cohere model function cannot be called with the new keyword.");return D(G)};return B.specificationVersion="v3",B.languageModel=D,B.embedding=J,B.embeddingModel=J,B.textEmbedding=J,B.textEmbeddingModel=J,B.reranking=Q,B.rerankingModel=Q,B.imageModel=(G)=>{throw new I({modelId:G,modelType:"imageModel"})},B}var Fj=zj();export{zj as createCohere,Fj as cohere,jj as VERSION};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-fa03gsff.js";var e={"ui.sessionReview.title":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0441\u0435\u0441\u0441\u0438\u0438","ui.sessionReview.title.lastTurn":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u0445\u043E\u0434\u0430","ui.sessionReview.diffStyle.unified":"\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0439","ui.sessionReview.diffStyle.split":"\u0420\u0430\u0437\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u0439","ui.sessionReview.openFile":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B","ui.sessionReview.selection.line":"\u0441\u0442\u0440\u043E\u043A\u0430 {{line}}","ui.sessionReview.selection.lines":"\u0441\u0442\u0440\u043E\u043A\u0438 {{start}}-{{end}}","ui.sessionReview.expandAll":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0451","ui.sessionReview.collapseAll":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0451","ui.sessionReview.change.added":"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E","ui.sessionReview.change.removed":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E","ui.sessionReview.change.modified":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ui.sessionReview.image.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...","ui.sessionReview.image.placeholder":"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","ui.sessionReview.largeDiff.title":"Diff \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","ui.sessionReview.largeDiff.meta":"\u041B\u0438\u043C\u0438\u0442: {{limit}} \u0438\u0437\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u043E\u043A. \u0422\u0435\u043A\u0443\u0449\u0438\u0439: {{current}} \u0438\u0437\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u043E\u043A.","ui.sessionReview.largeDiff.renderAnyway":"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0432\u0441\u0451 \u0440\u0430\u0432\u043D\u043E","ui.fileMedia.kind.image":"\u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","ui.fileMedia.kind.audio":"\u0430\u0443\u0434\u0438\u043E","ui.fileMedia.state.removed":"{{kind}} \u0443\u0434\u0430\u043B\u0435\u043D\u043E","ui.fileMedia.state.loading":"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F {{kind}}...","ui.fileMedia.state.error":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E","ui.fileMedia.binary.title":"\u0411\u0438\u043D\u0430\u0440\u043D\u044B\u0439 \u0444\u0430\u0439\u043B","ui.fileMedia.binary.description.path":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C {{path}}, \u0442\u0430\u043A \u043A\u0430\u043A \u044D\u0442\u043E \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0439 \u0444\u0430\u0439\u043B.","ui.fileMedia.binary.description.default":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B, \u0442\u0430\u043A \u043A\u0430\u043A \u043E\u043D \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0439.","ui.lineComment.label.prefix":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439 \u043A ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435: ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439","ui.lineComment.submit":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.sessionTurn.steps.show":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0448\u0430\u0433\u0438","ui.sessionTurn.steps.hide":"\u0421\u043A\u0440\u044B\u0442\u044C \u0448\u0430\u0433\u0438","ui.sessionTurn.summary.response":"\u041E\u0442\u0432\u0435\u0442","ui.sessionTurn.diff.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439 ({{count}})","ui.sessionTurn.retry.retrying":"\u043F\u043E\u0432\u0442\u043E\u0440","ui.sessionTurn.retry.inSeconds":"\u0447\u0435\u0440\u0435\u0437 {{seconds}}\u0441","ui.sessionTurn.retry.attempt":"\u043F\u043E\u043F\u044B\u0442\u043A\u0430 \u2116{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - \u043F\u043E\u043F\u044B\u0442\u043A\u0430 \u2116{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D","ui.sessionTurn.error.freeUsageExceeded":"\u041B\u0438\u043C\u0438\u0442 \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0435\u043D","ui.sessionTurn.error.addQredits":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u044B","ui.sessionTurn.status.delegating":"\u0414\u0435\u043B\u0435\u0433\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0442\u044B","ui.sessionTurn.status.planning":"\u041F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u0448\u0430\u0433\u043E\u0432","ui.sessionTurn.status.gatheringContext":"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435","ui.sessionTurn.status.gatheredContext":"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u043E","ui.sessionTurn.status.searchingCodebase":"\u041F\u043E\u0438\u0441\u043A \u0432 \u043A\u043E\u0434\u043E\u0432\u043E\u0439 \u0431\u0430\u0437\u0435","ui.sessionTurn.status.searchingWeb":"\u041F\u043E\u0438\u0441\u043A \u0432 \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0435","ui.sessionTurn.status.makingEdits":"\u0412\u043D\u0435\u0441\u0435\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439","ui.sessionTurn.status.runningCommands":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434","ui.sessionTurn.status.thinking":"\u0420\u0430\u0437\u043C\u044B\u0448\u043B\u0435\u043D\u0438\u0435","ui.sessionTurn.status.thinkingWithTopic":"\u0420\u0430\u0437\u043C\u044B\u0448\u043B\u0435\u043D\u0438\u0435 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u0421\u0431\u043E\u0440 \u043C\u044B\u0441\u043B\u0435\u0439","ui.sessionTurn.status.consideringNextSteps":"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u0448\u0430\u0433\u043E\u0432","ui.messagePart.questions.dismissed":"\u0412\u043E\u043F\u0440\u043E\u0441\u044B \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u044B","ui.messagePart.compaction":"\u0421\u0435\u0441\u0441\u0438\u044F \u0441\u0436\u0430\u0442\u0430","ui.messagePart.context.read.one":"{{count}} \u0447\u0442\u0435\u043D\u0438\u0435","ui.messagePart.context.read.other":"{{count}} \u0447\u0442\u0435\u043D\u0438\u0439","ui.messagePart.context.search.one":"{{count}} \u043F\u043E\u0438\u0441\u043A","ui.messagePart.context.search.other":"{{count}} \u043F\u043E\u0438\u0441\u043A\u043E\u0432","ui.messagePart.context.list.one":"{{count}} \u0441\u043F\u0438\u0441\u043E\u043A","ui.messagePart.context.list.other":"{{count}} \u0441\u043F\u0438\u0441\u043A\u043E\u0432","ui.messagePart.diagnostic.error":"\u041E\u0448\u0438\u0431\u043A\u0430","ui.messagePart.title.edit":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.messagePart.title.write":"\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u044C","ui.messagePart.option.typeOwnAnswer":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u043E\u0442\u0432\u0435\u0442","ui.messagePart.review.title":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0432\u0430\u0448\u0438 \u043E\u0442\u0432\u0435\u0442\u044B","ui.list.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","ui.list.empty":"\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432","ui.list.clearFilter":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440","ui.list.emptyWithFilter.prefix":"\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u0434\u043B\u044F","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\u041D\u043E\u0432\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.textField.copyToClipboard":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430","ui.textField.copyLink":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443","ui.textField.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","ui.imagePreview.alt":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","ui.scrollView.ariaLabel":"\u043F\u0440\u043E\u043A\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442","ui.tool.read":"\u0427\u0442\u0435\u043D\u0438\u0435","ui.tool.loaded":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E","ui.tool.list":"\u0421\u043F\u0438\u0441\u043E\u043A","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"\u0412\u0435\u0431-\u043F\u043E\u0438\u0441\u043A","ui.tool.codesearch":"\u041F\u043E\u0438\u0441\u043A \u043A\u043E\u0434\u0430","ui.tool.shell":"\u041E\u0431\u043E\u043B\u043E\u0447\u043A\u0430","ui.tool.patch":"\u041F\u0430\u0442\u0447","ui.tool.todos":"\u0417\u0430\u0434\u0430\u0447\u0438","ui.tool.todos.read":"\u0427\u0438\u0442\u0430\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0438","ui.tool.questions":"\u0412\u043E\u043F\u0440\u043E\u0441\u044B","ui.tool.agent":"\u0410\u0433\u0435\u043D\u0442 {{type}}","ui.tool.agent.default":"\u0410\u0433\u0435\u043D\u0442","ui.common.file.one":"\u0444\u0430\u0439\u043B","ui.common.file.other":"\u0444\u0430\u0439\u043B\u043E\u0432","ui.common.question.one":"\u0432\u043E\u043F\u0440\u043E\u0441","ui.common.question.other":"\u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432","ui.common.add":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C","ui.common.back":"\u041D\u0430\u0437\u0430\u0434","ui.common.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","ui.common.confirm":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C","ui.common.dismiss":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ui.common.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ui.common.next":"\u0414\u0430\u043B\u0435\u0435","ui.common.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","ui.permission.deny":"\u0417\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C","ui.permission.allowAlways":"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0432\u0441\u0435\u0433\u0434\u0430","ui.permission.allowOnce":"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437","ui.message.expand":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.collapse":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.copy":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.message.copyMessage":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.forkMessage":"\u041E\u0442\u0432\u0435\u0442\u0432\u0438\u0442\u044C \u0432 \u043D\u043E\u0432\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E","ui.message.revertMessage":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u043E \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u043C\u0435\u043D\u0442\u0430","ui.message.copyResponse":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442","ui.message.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E!","ui.message.interrupted":"\u041F\u0440\u0435\u0440\u0432\u0430\u043D\u043E","ui.message.queued":"\u0412 \u043E\u0447\u0435\u0440\u0435\u0434\u0438","ui.message.attachment.alt":"\u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0435","ui.patch.action.deleted":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E","ui.patch.action.created":"\u0421\u043E\u0437\u0434\u0430\u043D\u043E","ui.patch.action.moved":"\u041F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u043E","ui.patch.action.patched":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ui.question.subtitle.answered":"{{count}} \u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E","ui.question.answer.none":"(\u043D\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u0430)","ui.question.review.notAnswered":"(\u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E)","ui.question.multiHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0435","ui.question.singleHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0434\u0438\u043D \u043E\u0442\u0432\u0435\u0442","ui.question.custom.placeholder":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442...","ui.fileSearch.placeholder":"\u041D\u0430\u0439\u0442\u0438","ui.fileSearch.previousMatch":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435","ui.fileSearch.nextMatch":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435","ui.fileSearch.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u0438\u0441\u043A","ui.tool.task":"\u0417\u0430\u0434\u0430\u0447\u0430","ui.tool.skill":"\u041D\u0430\u0432\u044B\u043A","ui.basicTool.called":"\u0412\u044B\u0437\u0432\u0430\u043D `{{tool}}`","ui.toolErrorCard.failed":"\u041E\u0448\u0438\u0431\u043A\u0430","ui.toolErrorCard.copyError":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0443","ui.message.duration.seconds":"{{count}}\u0441","ui.message.duration.minutesSeconds":"{{minutes}}\u043C {{seconds}}\u0441"};export{e as dict};
|
|
2
|
+
import"./chunk-hh4c02fh.js";var e={"ui.sessionReview.title":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0441\u0435\u0441\u0441\u0438\u0438","ui.sessionReview.title.lastTurn":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u0445\u043E\u0434\u0430","ui.sessionReview.diffStyle.unified":"\u041E\u0431\u044A\u0435\u0434\u0438\u043D\u0451\u043D\u043D\u044B\u0439","ui.sessionReview.diffStyle.split":"\u0420\u0430\u0437\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u0439","ui.sessionReview.openFile":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0444\u0430\u0439\u043B","ui.sessionReview.selection.line":"\u0441\u0442\u0440\u043E\u043A\u0430 {{line}}","ui.sessionReview.selection.lines":"\u0441\u0442\u0440\u043E\u043A\u0438 {{start}}-{{end}}","ui.sessionReview.expandAll":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0451","ui.sessionReview.collapseAll":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0441\u0451","ui.sessionReview.change.added":"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E","ui.sessionReview.change.removed":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E","ui.sessionReview.change.modified":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ui.sessionReview.image.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...","ui.sessionReview.image.placeholder":"\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","ui.sessionReview.largeDiff.title":"Diff \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0434\u043B\u044F \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","ui.sessionReview.largeDiff.meta":"\u041B\u0438\u043C\u0438\u0442: {{limit}} \u0438\u0437\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u043E\u043A. \u0422\u0435\u043A\u0443\u0449\u0438\u0439: {{current}} \u0438\u0437\u043C\u0435\u043D\u0451\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u043E\u043A.","ui.sessionReview.largeDiff.renderAnyway":"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0432\u0441\u0451 \u0440\u0430\u0432\u043D\u043E","ui.fileMedia.kind.image":"\u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","ui.fileMedia.kind.audio":"\u0430\u0443\u0434\u0438\u043E","ui.fileMedia.state.removed":"{{kind}} \u0443\u0434\u0430\u043B\u0435\u043D\u043E","ui.fileMedia.state.loading":"\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F {{kind}}...","ui.fileMedia.state.error":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C {{kind}}","ui.fileMedia.state.unavailable":"{{kind}} \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E","ui.fileMedia.binary.title":"\u0411\u0438\u043D\u0430\u0440\u043D\u044B\u0439 \u0444\u0430\u0439\u043B","ui.fileMedia.binary.description.path":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C {{path}}, \u0442\u0430\u043A \u043A\u0430\u043A \u044D\u0442\u043E \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0439 \u0444\u0430\u0439\u043B.","ui.fileMedia.binary.description.default":"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u044D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B, \u0442\u0430\u043A \u043A\u0430\u043A \u043E\u043D \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0439.","ui.lineComment.label.prefix":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439 \u043A ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435: ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439","ui.lineComment.submit":"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.sessionTurn.steps.show":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0448\u0430\u0433\u0438","ui.sessionTurn.steps.hide":"\u0421\u043A\u0440\u044B\u0442\u044C \u0448\u0430\u0433\u0438","ui.sessionTurn.summary.response":"\u041E\u0442\u0432\u0435\u0442","ui.sessionTurn.diff.showMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439 ({{count}})","ui.sessionTurn.retry.retrying":"\u043F\u043E\u0432\u0442\u043E\u0440","ui.sessionTurn.retry.inSeconds":"\u0447\u0435\u0440\u0435\u0437 {{seconds}}\u0441","ui.sessionTurn.retry.attempt":"\u043F\u043E\u043F\u044B\u0442\u043A\u0430 \u2116{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - \u043F\u043E\u043F\u044B\u0442\u043A\u0430 \u2116{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D","ui.sessionTurn.error.freeUsageExceeded":"\u041B\u0438\u043C\u0438\u0442 \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0435\u043D","ui.sessionTurn.error.addQredits":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u044B","ui.sessionTurn.status.delegating":"\u0414\u0435\u043B\u0435\u0433\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0442\u044B","ui.sessionTurn.status.planning":"\u041F\u043B\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u0448\u0430\u0433\u043E\u0432","ui.sessionTurn.status.gatheringContext":"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435","ui.sessionTurn.status.gatheredContext":"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u043E","ui.sessionTurn.status.searchingCodebase":"\u041F\u043E\u0438\u0441\u043A \u0432 \u043A\u043E\u0434\u043E\u0432\u043E\u0439 \u0431\u0430\u0437\u0435","ui.sessionTurn.status.searchingWeb":"\u041F\u043E\u0438\u0441\u043A \u0432 \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0435","ui.sessionTurn.status.makingEdits":"\u0412\u043D\u0435\u0441\u0435\u043D\u0438\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439","ui.sessionTurn.status.runningCommands":"\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043A\u043E\u043C\u0430\u043D\u0434","ui.sessionTurn.status.thinking":"\u0420\u0430\u0437\u043C\u044B\u0448\u043B\u0435\u043D\u0438\u0435","ui.sessionTurn.status.thinkingWithTopic":"\u0420\u0430\u0437\u043C\u044B\u0448\u043B\u0435\u043D\u0438\u0435 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u0421\u0431\u043E\u0440 \u043C\u044B\u0441\u043B\u0435\u0439","ui.sessionTurn.status.consideringNextSteps":"\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0435\u043D\u0438\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0445 \u0448\u0430\u0433\u043E\u0432","ui.messagePart.questions.dismissed":"\u0412\u043E\u043F\u0440\u043E\u0441\u044B \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u044B","ui.messagePart.compaction":"\u0421\u0435\u0441\u0441\u0438\u044F \u0441\u0436\u0430\u0442\u0430","ui.messagePart.context.read.one":"{{count}} \u0447\u0442\u0435\u043D\u0438\u0435","ui.messagePart.context.read.other":"{{count}} \u0447\u0442\u0435\u043D\u0438\u0439","ui.messagePart.context.search.one":"{{count}} \u043F\u043E\u0438\u0441\u043A","ui.messagePart.context.search.other":"{{count}} \u043F\u043E\u0438\u0441\u043A\u043E\u0432","ui.messagePart.context.list.one":"{{count}} \u0441\u043F\u0438\u0441\u043E\u043A","ui.messagePart.context.list.other":"{{count}} \u0441\u043F\u0438\u0441\u043A\u043E\u0432","ui.messagePart.diagnostic.error":"\u041E\u0448\u0438\u0431\u043A\u0430","ui.messagePart.title.edit":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.messagePart.title.write":"\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u044C","ui.messagePart.option.typeOwnAnswer":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u043E\u0442\u0432\u0435\u0442","ui.messagePart.review.title":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0432\u0430\u0448\u0438 \u043E\u0442\u0432\u0435\u0442\u044B","ui.list.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430","ui.list.empty":"\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432","ui.list.clearFilter":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440","ui.list.emptyWithFilter.prefix":"\u041D\u0435\u0442 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u0434\u043B\u044F","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\u041D\u043E\u0432\u043E\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.textField.copyToClipboard":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430","ui.textField.copyLink":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443","ui.textField.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","ui.imagePreview.alt":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","ui.scrollView.ariaLabel":"\u043F\u0440\u043E\u043A\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442","ui.tool.read":"\u0427\u0442\u0435\u043D\u0438\u0435","ui.tool.loaded":"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043E","ui.tool.list":"\u0421\u043F\u0438\u0441\u043E\u043A","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"\u0412\u0435\u0431-\u043F\u043E\u0438\u0441\u043A","ui.tool.codesearch":"\u041F\u043E\u0438\u0441\u043A \u043A\u043E\u0434\u0430","ui.tool.shell":"\u041E\u0431\u043E\u043B\u043E\u0447\u043A\u0430","ui.tool.patch":"\u041F\u0430\u0442\u0447","ui.tool.todos":"\u0417\u0430\u0434\u0430\u0447\u0438","ui.tool.todos.read":"\u0427\u0438\u0442\u0430\u0442\u044C \u0437\u0430\u0434\u0430\u0447\u0438","ui.tool.questions":"\u0412\u043E\u043F\u0440\u043E\u0441\u044B","ui.tool.agent":"\u0410\u0433\u0435\u043D\u0442 {{type}}","ui.tool.agent.default":"\u0410\u0433\u0435\u043D\u0442","ui.common.file.one":"\u0444\u0430\u0439\u043B","ui.common.file.other":"\u0444\u0430\u0439\u043B\u043E\u0432","ui.common.question.one":"\u0432\u043E\u043F\u0440\u043E\u0441","ui.common.question.other":"\u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432","ui.common.add":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C","ui.common.back":"\u041D\u0430\u0437\u0430\u0434","ui.common.cancel":"\u041E\u0442\u043C\u0435\u043D\u0430","ui.common.confirm":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C","ui.common.dismiss":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ui.common.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","ui.common.next":"\u0414\u0430\u043B\u0435\u0435","ui.common.submit":"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C","ui.permission.deny":"\u0417\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C","ui.permission.allowAlways":"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u0432\u0441\u0435\u0433\u0434\u0430","ui.permission.allowOnce":"\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437","ui.message.expand":"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.collapse":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.copy":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C","ui.message.copyMessage":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435","ui.message.forkMessage":"\u041E\u0442\u0432\u0435\u0442\u0432\u0438\u0442\u044C \u0432 \u043D\u043E\u0432\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E","ui.message.revertMessage":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u043E \u044D\u0442\u043E\u0433\u043E \u043C\u043E\u043C\u0435\u043D\u0442\u0430","ui.message.copyResponse":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442","ui.message.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E!","ui.message.interrupted":"\u041F\u0440\u0435\u0440\u0432\u0430\u043D\u043E","ui.message.queued":"\u0412 \u043E\u0447\u0435\u0440\u0435\u0434\u0438","ui.message.attachment.alt":"\u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0435","ui.patch.action.deleted":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E","ui.patch.action.created":"\u0421\u043E\u0437\u0434\u0430\u043D\u043E","ui.patch.action.moved":"\u041F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u043E","ui.patch.action.patched":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u043E","ui.question.subtitle.answered":"{{count}} \u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E","ui.question.answer.none":"(\u043D\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u0430)","ui.question.review.notAnswered":"(\u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0435\u043D\u043E)","ui.question.multiHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0435","ui.question.singleHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0434\u0438\u043D \u043E\u0442\u0432\u0435\u0442","ui.question.custom.placeholder":"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442...","ui.fileSearch.placeholder":"\u041D\u0430\u0439\u0442\u0438","ui.fileSearch.previousMatch":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435","ui.fileSearch.nextMatch":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435","ui.fileSearch.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u0438\u0441\u043A","ui.tool.task":"\u0417\u0430\u0434\u0430\u0447\u0430","ui.tool.skill":"\u041D\u0430\u0432\u044B\u043A","ui.basicTool.called":"\u0412\u044B\u0437\u0432\u0430\u043D `{{tool}}`","ui.toolErrorCard.failed":"\u041E\u0448\u0438\u0431\u043A\u0430","ui.toolErrorCard.copyError":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0443","ui.message.duration.seconds":"{{count}}\u0441","ui.message.duration.minutesSeconds":"{{minutes}}\u043C {{seconds}}\u0441"};export{e as dict};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{xP as T}from"./chunk-kc3hpmr2.js";import{CP as J,zP as G}from"./chunk-hh4c02fh.js";var K=G((Q)=>{Object.defineProperty(Q,"__esModule",{value:!0});Q.AbstractAsyncHooksContextManager=void 0;var b=J("events"),f=["addListener","on","once","prependListener","prependOnceListener"];class P{bind(q,j){if(j instanceof b.EventEmitter)return this._bindEventEmitter(q,j);if(typeof j==="function")return this._bindFunction(q,j);return j}_bindFunction(q,j){let z=this,w=function(...B){return z.with(q,()=>j.apply(this,B))};return Object.defineProperty(w,"length",{enumerable:!1,configurable:!0,writable:!1,value:j.length}),w}_bindEventEmitter(q,j){if(this._getPatchMap(j)!==void 0)return j;if(this._createPatchMap(j),f.forEach((w)=>{if(j[w]===void 0)return;j[w]=this._patchAddListener(j,j[w],q)}),typeof j.removeListener==="function")j.removeListener=this._patchRemoveListener(j,j.removeListener);if(typeof j.off==="function")j.off=this._patchRemoveListener(j,j.off);if(typeof j.removeAllListeners==="function")j.removeAllListeners=this._patchRemoveAllListeners(j,j.removeAllListeners);return j}_patchRemoveListener(q,j){let z=this;return function(w,B){let D=z._getPatchMap(q)?.[w];if(D===void 0)return j.call(this,w,B);let E=D.get(B);return j.call(this,w,E||B)}}_patchRemoveAllListeners(q,j){let z=this;return function(w){let B=z._getPatchMap(q);if(B!==void 0){if(arguments.length===0)z._createPatchMap(q);else if(B[w]!==void 0)delete B[w]}return j.apply(this,arguments)}}_patchAddListener(q,j,z){let w=this;return function(B,D){if(w._wrapped)return j.call(this,B,D);let E=w._getPatchMap(q);if(E===void 0)E=w._createPatchMap(q);let F=E[B];if(F===void 0)F=new WeakMap,E[B]=F;let O=w.bind(z,D);F.set(D,O),w._wrapped=!0;try{return j.call(this,B,O)}finally{w._wrapped=!1}}}_createPatchMap(q){let j=Object.create(null);return q[this._kOtListeners]=j,j}_getPatchMap(q){return q[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}Q.AbstractAsyncHooksContextManager=P});var Y=G((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.AsyncHooksContextManager=void 0;var u=T(),L=J("async_hooks"),N=K();class U extends N.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=L.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??u.ROOT_CONTEXT}with(q,j,z,...w){this._enterContext(q);try{return j.call(z,...w)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(q,j){if(j==="TIMERWRAP")return;let z=this._stack[this._stack.length-1];if(z!==void 0)this._contexts.set(q,z)}_destroy(q){this._contexts.delete(q)}_before(q){let j=this._contexts.get(q);if(j!==void 0)this._enterContext(j)}_after(){this._exitContext()}_enterContext(q){this._stack.push(q)}_exitContext(){this._stack.pop()}}V.AsyncHooksContextManager=U});var S=G(($)=>{Object.defineProperty($,"__esModule",{value:!0});$.AsyncLocalStorageContextManager=void 0;var H=T(),k=J("async_hooks"),_=K();class Z extends _.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new k.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??H.ROOT_CONTEXT}with(q,j,z,...w){let B=z==null?j:j.bind(z);return this._asyncLocalStorage.run(q,B,...w)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}$.AsyncLocalStorageContextManager=Z});var h=G((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.AsyncLocalStorageContextManager=I.AsyncHooksContextManager=void 0;var C=Y();Object.defineProperty(I,"AsyncHooksContextManager",{enumerable:!0,get:function(){return C.AsyncHooksContextManager}});var y=S();Object.defineProperty(I,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return y.AsyncLocalStorageContextManager}})});export default h();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-hh4c02fh.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{nf as Lh}from"./chunk-zeh481tm.js";import{of as Mt}from"./chunk-1d64dywx.js";import"./chunk-yh174jhg.js";import{wf as eh}from"./chunk-jbd9k041.js";import{xf as hh,zf as gt}from"./chunk-3tkp27x7.js";import{Aq as v,Bq as r,Hq as E,Iq as k,Kq as _,Nq as th,Oq as Ct,Pp as Y,Tp as vt,Vp as lt,Wp as bt,dq as _t,gq as Lt,hq as ft,iq as wt,nq as jt,oq as o,qq as St,sq as dt,tq as et,vq as pt,xq as ot}from"./chunk-bf146hz2.js";import{$q as kt,Sq as rt,br as I}from"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import{Pu as h}from"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import{yP as ut}from"./chunk-hh4c02fh.js";var Ft=ut(Mt(),1);var J=ut(eh(),1);class ht{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776000||t<-9223372036854776000)throw Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let s=new Uint8Array(8);for(let a=7,y=Math.abs(Math.round(t));a>-1&&y>0;a--,y/=256)s[a]=y;if(t<0)Qt(s);return new ht(s)}valueOf(){let t=this.bytes.slice(0),s=t[0]&128;if(s)Qt(t);return parseInt(J.toHex(t),16)*(s?-1:1)}toString(){return String(this.valueOf())}}function Qt(t){for(let s=0;s<8;s++)t[s]^=255;for(let s=7;s>-1;s--)if(t[s]++,t[s]!==0)break}class Ut{toUtf8;fromUtf8;constructor(t,s){this.toUtf8=t,this.fromUtf8=s}format(t){let s=[];for(let w of Object.keys(t)){let f=this.fromUtf8(w);s.push(Uint8Array.from([f.byteLength]),f,this.formatHeaderValue(t[w]))}let a=new Uint8Array(s.reduce((w,f)=>w+f.byteLength,0)),y=0;for(let w of s)a.set(w,y),y+=w.byteLength;return a}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,t.value,!1),new Uint8Array(s.buffer);case"integer":let a=new DataView(new ArrayBuffer(5));return a.setUint8(0,4),a.setInt32(1,t.value,!1),new Uint8Array(a.buffer);case"long":let y=new Uint8Array(9);return y[0]=5,y.set(t.value.bytes,1),y;case"binary":let w=new DataView(new ArrayBuffer(3+t.value.byteLength));w.setUint8(0,6),w.setUint16(1,t.value.byteLength,!1);let f=new Uint8Array(w.buffer);return f.set(t.value,3),f;case"string":let S=this.fromUtf8(t.value),g=new DataView(new ArrayBuffer(3+S.byteLength));g.setUint8(0,7),g.setUint16(1,S.byteLength,!1);let c=new Uint8Array(g.buffer);return c.set(S,3),c;case"timestamp":let T=new Uint8Array(9);return T[0]=8,T.set(ht.fromNumber(t.value.valueOf()).bytes,1),T;case"uuid":if(!Gh.test(t.value))throw Error(`Invalid UUID received: ${t.value}`);let N=new Uint8Array(17);return N[0]=9,N.set(J.fromHex(t.value.replace(/\-/g,"")),1),N}}parse(t){let s={},a=0;while(a<t.byteLength){let y=t.getUint8(a++),w=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+a,y));switch(a+=y,t.getUint8(a++)){case 0:s[w]={type:Zt,value:!0};break;case 1:s[w]={type:Zt,value:!1};break;case 2:s[w]={type:gh,value:t.getInt8(a++)};break;case 3:s[w]={type:Ah,value:t.getInt16(a,!1)},a+=2;break;case 4:s[w]={type:mh,value:t.getInt32(a,!1)},a+=4;break;case 5:s[w]={type:Uh,value:new ht(new Uint8Array(t.buffer,t.byteOffset+a,8))},a+=8;break;case 6:let f=t.getUint16(a,!1);a+=2,s[w]={type:zh,value:new Uint8Array(t.buffer,t.byteOffset+a,f)},a+=f;break;case 7:let S=t.getUint16(a,!1);a+=2,s[w]={type:Nh,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+a,S))},a+=S;break;case 8:s[w]={type:Th,value:new Date(new ht(new Uint8Array(t.buffer,t.byteOffset+a,8)).valueOf())},a+=8;break;case 9:let g=new Uint8Array(t.buffer,t.byteOffset+a,16);a+=16,s[w]={type:$h,value:`${J.toHex(g.subarray(0,4))}-${J.toHex(g.subarray(4,6))}-${J.toHex(g.subarray(6,8))}-${J.toHex(g.subarray(8,10))}-${J.toHex(g.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return s}}var xt;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(xt||(xt={}));var Zt="boolean",gh="byte",Ah="short",mh="integer",Uh="long",zh="binary",Nh="string",Th="timestamp",$h="uuid",Gh=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;var Dt=ut(Mt(),1),Vt=4,l=Vt*2,p=4,Xh=l+p*2;function qt({byteLength:t,byteOffset:s,buffer:a}){if(t<Xh)throw Error("Provided message too short to accommodate event stream message overhead");let y=new DataView(a,s,t),w=y.getUint32(0,!1);if(t!==w)throw Error("Reported message length does not match received message length");let f=y.getUint32(Vt,!1),S=y.getUint32(l,!1),g=y.getUint32(t-p,!1),c=new Dt.Crc32().update(new Uint8Array(a,s,l));if(S!==c.digest())throw Error(`The prelude checksum specified in the message (${S}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(a,s+l,t-(l+p))),g!==c.digest())throw Error(`The message checksum (${c.digest()}) did not match the expected value of ${g}`);return{headers:new DataView(a,s+l+p,f),body:new Uint8Array(a,s+l+p+f,w-f-(l+p+p))}}class zt{headerMarshaller;messageBuffer;isEndOfStream;constructor(t,s){this.headerMarshaller=new Ut(t,s),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){let t=this.messageBuffer.pop(),s=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return s}}}getAvailableMessages(){let t=this.messageBuffer;this.messageBuffer=[];let s=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return s}}}encode({headers:t,body:s}){let a=this.headerMarshaller.format(t),y=a.byteLength+s.byteLength+16,w=new Uint8Array(y),f=new DataView(w.buffer,w.byteOffset,w.byteLength),S=new Ft.Crc32;return f.setUint32(0,y,!1),f.setUint32(4,a.byteLength,!1),f.setUint32(8,S.update(w.subarray(0,8)).digest(),!1),w.set(a,12),w.set(s,a.byteLength+12),f.setUint32(y-4,S.update(w.subarray(8,y-4)).digest(),!1),w}decode(t){let{headers:s,body:a}=qt(t);return{headers:this.headerMarshaller.parse(s),body:a}}formatHeaders(t){return this.headerMarshaller.format(t)}}var At=ut(Lh(),1);var Tt=new TextEncoder,bh={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},jh=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]);class $t{constructor({method:t,url:s,headers:a,body:y,accessKeyId:w,secretAccessKey:f,sessionToken:S,service:g,region:c,cache:T,datetime:N,signQuery:j,appendSessionToken:e,allHeaders:A,singleEncode:m}){if(s==null)throw TypeError("url is a required option");if(w==null)throw TypeError("accessKeyId is a required option");if(f==null)throw TypeError("secretAccessKey is a required option");this.method=t||(y?"POST":"GET"),this.url=new URL(s),this.headers=new Headers(a||{}),this.body=y,this.accessKeyId=w,this.secretAccessKey=f,this.sessionToken=S;let $,i;if(!g||!c)[$,i]=Ch(this.url,this.headers);if(this.service=g||$||"",this.region=c||i||"us-east-1",this.cache=T||new Map,this.datetime=N||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=j,this.appendSessionToken=e||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256"))this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let H=this.signQuery?this.url.searchParams:this.headers;if(H.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken)H.set("X-Amz-Security-Token",this.sessionToken);if(this.signableHeaders=["host",...this.headers.keys()].filter((u)=>A||!jh.has(u)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map((u)=>u+":"+(u==="host"?this.url.host:(this.headers.get(u)||"").replace(/\s+/g," "))).join(`
|
|
3
3
|
`),this.credentialString=[this.datetime.slice(0,8),this.region,this.service,"aws4_request"].join("/"),this.signQuery){if(this.service==="s3"&&!H.has("X-Amz-Expires"))H.set("X-Amz-Expires","86400");H.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),H.set("X-Amz-Credential",this.accessKeyId+"/"+this.credentialString),H.set("X-Amz-SignedHeaders",this.signedHeaders)}if(this.service==="s3")try{this.encodedPath=decodeURIComponent(this.url.pathname.replace(/\+/g," "))}catch(u){this.encodedPath=this.url.pathname}else this.encodedPath=this.url.pathname.replace(/\/+/g,"/");if(!m)this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/");this.encodedPath=Yt(this.encodedPath);let C=new Set;this.encodedSearch=[...this.url.searchParams].filter(([u])=>{if(!u)return!1;if(this.service==="s3"){if(C.has(u))return!1;C.add(u)}return!0}).map((u)=>u.map((X)=>Yt(encodeURIComponent(X)))).sort(([u,X],[L,W])=>u<L?-1:u>L?1:X<W?-1:X>W?1:0).map((u)=>u.join("=")).join("&")}async sign(){if(this.signQuery){if(this.url.searchParams.set("X-Amz-Signature",await this.signature()),this.sessionToken&&this.appendSessionToken)this.url.searchParams.set("X-Amz-Security-Token",this.sessionToken)}else this.headers.set("Authorization",await this.authHeader());return{method:this.method,url:this.url,headers:this.headers,body:this.body}}async authHeader(){return["AWS4-HMAC-SHA256 Credential="+this.accessKeyId+"/"+this.credentialString,"SignedHeaders="+this.signedHeaders,"Signature="+await this.signature()].join(", ")}async signature(){let t=this.datetime.slice(0,8),s=[this.secretAccessKey,t,this.region,this.service].join(),a=this.cache.get(s);if(!a){let y=await at("AWS4"+this.secretAccessKey,t),w=await at(y,this.region),f=await at(w,this.service);a=await at(f,"aws4_request"),this.cache.set(s,a)}return Nt(await at(a,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,Nt(await Pt(await this.canonicalString()))].join(`
|
|
4
4
|
`)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
|
|
5
5
|
`,this.signedHeaders,await this.hexBodyHash()].join(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import x from"crypto";function B(q=43){let w=x.randomBytes(q);return z(w)}function C(q){let w=x.createHash("sha256").update(q).digest();return z(w)}function z(q){return q.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}
|
|
3
|
-
export{B as
|
|
3
|
+
export{B as pr,C as qr};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ig as a}from"./chunk-qywwj58s.js";import{Zg as t,sh as c}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"./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"./chunk-kkvb2c2z.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-fhng5her.js";import"./chunk-dkv2mg97.js";import"./chunk-bf146hz2.js";import"./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"./chunk-zk8n8hnh.js";import"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import{Vt as i}from"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import"./chunk-dkm7x8rj.js";import"./chunk-9pe4agdz.js";import"./chunk-kc3hpmr2.js";import"./chunk-hh4c02fh.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-hh4c02fh.js";var e={"ui.sessionReview.title":"Cambios de la sesi\xF3n","ui.sessionReview.title.lastTurn":"Cambios del \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"l\xEDnea {{line}}","ui.sessionReview.selection.lines":"l\xEDneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"A\xF1adido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"L\xEDmite: {{limit}} l\xEDneas modificadas. Actual: {{current}} l\xEDneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"A\xF1adir comentario","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar m\xE1s cambios ({{count}})","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"L\xEDmite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"A\xF1adir cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de c\xF3digo","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesi\xF3n compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} b\xFAsqueda","ui.messagePart.context.search.other":"{{count}} b\xFAsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"B\xFAsqueda web","ui.tool.codesearch":"B\xFAsqueda de c\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"A\xF1adir","ui.common.back":"Atr\xE1s","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesi\xF3n","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"\xA1Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar b\xFAsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Fall\xF3","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
|