jialing-code 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-ata64rnb.js → chunk-02z1b3pn.js} +1 -1
- package/dist/{chunk-yjbxnshv.js → chunk-031788by.js} +5 -5
- package/dist/{chunk-63r6wx91.js → chunk-03bw81yf.js} +1 -1
- package/dist/{chunk-a9qyv65k.js → chunk-06bja8ne.js} +5 -5
- package/dist/{chunk-5amndp82.js → chunk-072ddspk.js} +15 -15
- package/dist/{chunk-9x7v2172.js → chunk-07nwaffm.js} +26 -26
- package/dist/{chunk-fnp4masn.js → chunk-086g9x56.js} +20 -20
- package/dist/{chunk-vds1kh8j.js → chunk-097hawk8.js} +19 -19
- package/dist/{chunk-4kh3yeqx.js → chunk-0mgw2mkr.js} +11 -11
- package/dist/{chunk-t1nnzjgg.js → chunk-0n4e5as3.js} +2 -2
- package/dist/{chunk-sakgp0hv.js → chunk-0pft9pn6.js} +23 -23
- package/dist/{chunk-7ngmattt.js → chunk-0qc1fc2k.js} +1 -1
- package/dist/{chunk-gvm0fdsh.js → chunk-14k25g8v.js} +2 -2
- package/dist/{chunk-ermy23fb.js → chunk-181z55tq.js} +2 -2
- package/dist/{chunk-dz8c7ac9.js → chunk-1b379t1d.js} +21 -21
- package/dist/{chunk-6mhseqjj.js → chunk-1be31ygd.js} +22 -22
- package/dist/{chunk-a5y3eyz5.js → chunk-1cr92538.js} +21 -21
- package/dist/{chunk-bqac4egk.js → chunk-1fr94msa.js} +30 -30
- package/dist/{chunk-a2dn46wv.js → chunk-1fx2tx6h.js} +17 -17
- package/dist/chunk-1gn0rpnx.js +520 -0
- package/dist/{chunk-2v3gb9q9.js → chunk-1h2fx4jh.js} +20 -20
- package/dist/{chunk-v9fghq77.js → chunk-1kn1wpac.js} +19 -19
- package/dist/{chunk-88r7kwgj.js → chunk-1m23ntdh.js} +5 -5
- package/dist/{chunk-qaxe3dpf.js → chunk-1s97s4ph.js} +22 -22
- package/dist/{chunk-y997ehrm.js → chunk-20xxnafe.js} +1 -1
- package/dist/chunk-238g70xa.js +1 -1
- package/dist/{chunk-805fhkfh.js → chunk-262grp9b.js} +8 -8
- package/dist/{chunk-kngg2gwm.js → chunk-28rcy2gj.js} +1 -1
- package/dist/{chunk-81p4y0bn.js → chunk-2dr6hn84.js} +1 -1
- package/dist/{chunk-kfyzz478.js → chunk-2gzn4gqd.js} +2 -2
- package/dist/{chunk-twp2r2kv.js → chunk-30em25sf.js} +19 -19
- package/dist/{chunk-yngfgr86.js → chunk-32rswx3m.js} +21 -21
- package/dist/{chunk-56023raw.js → chunk-33kcjr4h.js} +5 -5
- package/dist/{chunk-beasb0nx.js → chunk-3ch9v9pn.js} +1 -1
- package/dist/{chunk-30ph3f30.js → chunk-3jqcfxvn.js} +19 -19
- package/dist/{chunk-45vaghh5.js → chunk-3k1rmhrx.js} +1 -1
- package/dist/{chunk-0x9qknab.js → chunk-3nx113vz.js} +4 -4
- package/dist/{chunk-81ws594a.js → chunk-3v06mpfr.js} +21 -21
- package/dist/{chunk-smn5vb6h.js → chunk-3zt93n2c.js} +3 -3
- package/dist/{chunk-0075f2cp.js → chunk-41rt5mh4.js} +34 -34
- package/dist/{chunk-edjd6aay.js → chunk-4j7nyfpc.js} +4 -4
- package/dist/{chunk-q81jx1tq.js → chunk-4kjzfhxg.js} +1 -1
- package/dist/{chunk-2sw1xam9.js → chunk-4n8sx5c3.js} +1 -1
- package/dist/{chunk-vqmt61b9.js → chunk-4pjnsy3k.js} +2 -2
- package/dist/{chunk-rwzecjae.js → chunk-4sz598aa.js} +2 -2
- package/dist/{chunk-mkejwh4t.js → chunk-4t0xhy3r.js} +2 -2
- package/dist/{chunk-v8vvng6s.js → chunk-50hr08bk.js} +2 -2
- package/dist/{chunk-vj7kfkq8.js → chunk-5301z37j.js} +19 -19
- package/dist/{chunk-vrz7t3m3.js → chunk-54jz0km1.js} +2 -2
- package/dist/{chunk-ax7zym86.js → chunk-56njrn1z.js} +3 -3
- package/dist/{chunk-gf5emw83.js → chunk-59dpn7fv.js} +19 -19
- package/dist/{chunk-pws7ev16.js → chunk-5a2rjqdy.js} +71 -71
- package/dist/{chunk-qy1khncb.js → chunk-5hbh3kwn.js} +19 -19
- package/dist/{chunk-s4na264a.js → chunk-5r7etvhs.js} +31 -31
- package/dist/{chunk-7myhm62f.js → chunk-62t9vfqg.js} +6 -6
- package/dist/{chunk-cg0jpq62.js → chunk-652zfd3a.js} +2 -2
- package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
- package/dist/{chunk-34hcgenn.js → chunk-6aq7r6nc.js} +7 -7
- package/dist/{chunk-8ngxagxq.js → chunk-6dg3q1hp.js} +2 -2
- package/dist/{chunk-99jaqs39.js → chunk-6qkn51pk.js} +67 -67
- package/dist/{chunk-9x8twfez.js → chunk-6qmg0m5g.js} +4 -4
- package/dist/{chunk-7avwb240.js → chunk-6vr901fq.js} +19 -19
- package/dist/{chunk-1f8qyd76.js → chunk-747zns6f.js} +1 -1
- package/dist/{chunk-vz91cg4d.js → chunk-78cr36p2.js} +3 -3
- package/dist/{chunk-4aq18dqj.js → chunk-7ajt63qh.js} +3 -3
- package/dist/{chunk-wzzkfc78.js → chunk-7amfr2jf.js} +20 -20
- package/dist/{chunk-w47s3z9n.js → chunk-7e317cze.js} +19 -19
- package/dist/{chunk-ns43hctb.js → chunk-7hty0jss.js} +126 -126
- package/dist/{chunk-g8m0wvdc.js → chunk-7rs175z8.js} +4 -4
- package/dist/{chunk-7mshd4dn.js → chunk-7swnjjn7.js} +3 -3
- package/dist/{chunk-arnfrwch.js → chunk-7vfm0xfd.js} +19 -19
- package/dist/{chunk-ezzk3tv2.js → chunk-7w6rst8f.js} +20 -20
- package/dist/{chunk-mtn242d4.js → chunk-81gfg8jy.js} +10 -10
- package/dist/{chunk-hgykfm6j.js → chunk-860154cx.js} +5 -5
- package/dist/{chunk-eyvbyykf.js → chunk-8gjn4sbb.js} +4 -4
- package/dist/{chunk-4znkew0r.js → chunk-8sbxch29.js} +2 -2
- package/dist/{chunk-vfvrhgnb.js → chunk-8tzzfcsa.js} +1 -1
- package/dist/{chunk-6awawe40.js → chunk-8xzg6h3j.js} +21 -21
- package/dist/{chunk-g0jf6sfg.js → chunk-90pf9gvq.js} +2 -2
- package/dist/{chunk-qcp1rqa3.js → chunk-92thh3p0.js} +19 -19
- package/dist/{chunk-d4ngz00v.js → chunk-92zmn0a6.js} +3 -3
- package/dist/{chunk-50x2s0et.js → chunk-9ca62r8z.js} +1 -1
- package/dist/{chunk-3tg459j3.js → chunk-9ejrwq3z.js} +29 -29
- package/dist/{chunk-m5zf9bw5.js → chunk-9qpn6hae.js} +19 -19
- package/dist/{chunk-9k9csnwm.js → chunk-9s4j4sac.js} +1 -1
- package/dist/{chunk-0tq0t8cy.js → chunk-9sx9dze6.js} +2 -2
- package/dist/{chunk-88f5mtzd.js → chunk-a24semgp.js} +3 -3
- package/dist/{chunk-cwc598m7.js → chunk-adshf2sx.js} +1 -1
- package/dist/{chunk-naz430bp.js → chunk-aez1vf7x.js} +1 -1
- package/dist/{chunk-25jnakkp.js → chunk-agn7z12w.js} +2 -2
- package/dist/{chunk-retj134p.js → chunk-ahz95r72.js} +3 -3
- package/dist/{chunk-fqsz6czc.js → chunk-aq93vd90.js} +20 -20
- package/dist/{chunk-ggsah27z.js → chunk-b1ds13bq.js} +2 -2
- package/dist/{chunk-jdaj6c1y.js → chunk-b1q6dnnv.js} +3 -3
- package/dist/{chunk-afa8mqr6.js → chunk-b29zrnj2.js} +9 -9
- package/dist/{chunk-7qsg8rxa.js → chunk-b59b3zt1.js} +19 -19
- package/dist/{chunk-wfyekc43.js → chunk-ber1sywh.js} +37 -37
- package/dist/{chunk-pbrhz0zr.js → chunk-bfk94hgz.js} +8 -8
- package/dist/{chunk-azgz7kj9.js → chunk-bpjs9d4j.js} +5 -5
- package/dist/{chunk-ma3x20kw.js → chunk-bqkdehpp.js} +21 -21
- package/dist/{chunk-nbxwkcdx.js → chunk-bsw2fns5.js} +1 -1
- package/dist/{chunk-dsa9xjjf.js → chunk-bwb80cn2.js} +19 -19
- package/dist/{chunk-yxtg7hb4.js → chunk-bwbcg5b9.js} +19 -19
- package/dist/{chunk-hx97zx00.js → chunk-bzkfmwya.js} +21 -21
- package/dist/{chunk-6zw9fhgb.js → chunk-c0kejbeq.js} +12 -12
- package/dist/{chunk-s2j9j3za.js → chunk-c3z1v42j.js} +26 -26
- package/dist/{chunk-8bpnmdwy.js → chunk-c78frw9g.js} +19 -19
- package/dist/{chunk-9ngf8pgm.js → chunk-c8ypg0mh.js} +2 -2
- package/dist/{chunk-zghr5m9p.js → chunk-cbbyx6n2.js} +19 -19
- package/dist/{chunk-zs0nsz55.js → chunk-cbtth3ym.js} +21 -21
- package/dist/{chunk-4z0jsrqg.js → chunk-ckjkssec.js} +4 -4
- package/dist/{chunk-nza9k8za.js → chunk-cmrkv32b.js} +1 -1
- package/dist/{chunk-mk8se770.js → chunk-cvxtkjkc.js} +1 -1
- package/dist/{chunk-g5ewvwm4.js → chunk-cyr7bhz2.js} +19 -19
- package/dist/{chunk-abyyn6a6.js → chunk-d1bm9z6a.js} +20 -20
- package/dist/{chunk-s1dkb5bt.js → chunk-d3n5tfj4.js} +2 -2
- package/dist/{chunk-vs0mqxyh.js → chunk-d9qv6jpq.js} +19 -19
- package/dist/{chunk-ve1arjj1.js → chunk-dfnq1rfs.js} +4 -4
- package/dist/{chunk-h6qn8f8r.js → chunk-dfqhcsh5.js} +24 -24
- package/dist/{chunk-mkppcek9.js → chunk-dgmnvyws.js} +2 -2
- package/dist/{chunk-nqv2289a.js → chunk-dxtyff9n.js} +31 -31
- package/dist/{chunk-ddsbv19g.js → chunk-e7tj013a.js} +21 -21
- package/dist/{chunk-n1erf6kh.js → chunk-e9c2adyz.js} +4 -4
- package/dist/{chunk-j39kvn3t.js → chunk-eej4bp0c.js} +1 -1
- package/dist/{chunk-bdk37qrh.js → chunk-ek8wpfrj.js} +2 -2
- package/dist/{chunk-rgrrzhdc.js → chunk-enyx4b92.js} +19 -19
- package/dist/{chunk-16wz3n4d.js → chunk-eswy620e.js} +27 -27
- package/dist/{chunk-t1kjwayh.js → chunk-evjqd93x.js} +1 -1
- package/dist/{chunk-rznp0dpc.js → chunk-ex9tna6e.js} +7 -7
- package/dist/{chunk-7yc77fk5.js → chunk-exstp2k7.js} +22 -22
- package/dist/{chunk-dnfrfckt.js → chunk-f2ff2h9f.js} +19 -19
- package/dist/{chunk-5m0k300f.js → chunk-f6zy4237.js} +19 -19
- package/dist/{chunk-75th4717.js → chunk-f70eftd0.js} +8 -8
- package/dist/{chunk-mjgzabrq.js → chunk-f88hxn0j.js} +3 -3
- package/dist/{chunk-8b7sanvy.js → chunk-fa75rbn6.js} +105 -105
- package/dist/{chunk-qck6h0wt.js → chunk-fbnzd3gm.js} +26 -26
- package/dist/{chunk-fzsnz1c1.js → chunk-fc265e9d.js} +3 -3
- package/dist/{chunk-xawkt0vb.js → chunk-ffef066z.js} +9 -9
- package/dist/{chunk-4xa5vb3k.js → chunk-fgrejvwf.js} +20 -20
- package/dist/{chunk-a22sayzp.js → chunk-fnqxrsdx.js} +5 -5
- package/dist/{chunk-q6gnh4ah.js → chunk-ftyc1q0e.js} +1 -1
- package/dist/{chunk-zarvadh6.js → chunk-fyh51eqe.js} +23 -23
- package/dist/{chunk-axcawgnh.js → chunk-g62km359.js} +19 -19
- package/dist/{chunk-mtc4xsdt.js → chunk-ga3gskwm.js} +9 -9
- package/dist/{chunk-prrc78fb.js → chunk-gch4b79b.js} +4 -4
- package/dist/{chunk-ssnhwa9x.js → chunk-gkqg7gs9.js} +21 -21
- package/dist/{chunk-xbnm9rkh.js → chunk-grc9z5xr.js} +21 -21
- package/dist/{chunk-yckrj4xa.js → chunk-gv4m2gxr.js} +3 -3
- package/dist/chunk-h24tmagd.js +288 -0
- package/dist/{chunk-wn23dsvz.js → chunk-h5wczxf1.js} +20 -20
- package/dist/{chunk-pjvbzaec.js → chunk-h6yer4qf.js} +20 -20
- package/dist/{chunk-1n0hpzk0.js → chunk-hfde3n4j.js} +1 -1
- package/dist/{chunk-jftd4jq5.js → chunk-hg0bg5my.js} +9 -9
- package/dist/{chunk-e7jm6wma.js → chunk-hgnamrze.js} +19 -19
- package/dist/{chunk-p5c99m9b.js → chunk-hm841025.js} +19 -19
- package/dist/{chunk-dk034366.js → chunk-hn1abxh7.js} +1 -1
- package/dist/{chunk-b42z3vcp.js → chunk-hpqct0tf.js} +20 -20
- package/dist/{chunk-6rwwyg8a.js → chunk-hsjevfb8.js} +2 -2
- package/dist/{chunk-yt2p98e2.js → chunk-hvd3afep.js} +4 -4
- package/dist/{chunk-0df13h9j.js → chunk-j0d7xvd3.js} +2 -2
- package/dist/{chunk-28kjej5h.js → chunk-j4bp05yt.js} +20 -20
- package/dist/{chunk-z4999enw.js → chunk-j9raymz5.js} +1 -1
- package/dist/{chunk-2vvsa7zx.js → chunk-jeryqw17.js} +4 -4
- package/dist/{chunk-stp454a0.js → chunk-jjr34vvp.js} +72 -72
- package/dist/{chunk-fzmej48h.js → chunk-jtzfvmpm.js} +6 -6
- package/dist/{chunk-s8t8k03a.js → chunk-k5htedvy.js} +20 -20
- package/dist/{chunk-5grt1vzg.js → chunk-k9gwdvb9.js} +20 -20
- package/dist/{chunk-tsjzpp08.js → chunk-kagj666q.js} +2 -2
- package/dist/{chunk-w2cd3yey.js → chunk-ken87ahf.js} +19 -19
- package/dist/{chunk-dd6hbkbh.js → chunk-kphrphgs.js} +30 -30
- package/dist/{chunk-08pnv54s.js → chunk-kqceh190.js} +20 -20
- package/dist/{chunk-8f7qzrny.js → chunk-kr9pqhkf.js} +3 -3
- package/dist/{chunk-01wpsh7j.js → chunk-krt6dqhg.js} +3 -3
- package/dist/{chunk-paa4s0kr.js → chunk-m283zt5c.js} +1 -1
- package/dist/{chunk-7nz9y5rg.js → chunk-mbqh2yps.js} +1 -1
- package/dist/{chunk-ret810dw.js → chunk-mjwwnnmz.js} +2 -2
- package/dist/{chunk-ghpn0v77.js → chunk-mnmc8ryb.js} +2 -2
- package/dist/{chunk-xbs6fh0f.js → chunk-mqjwssrg.js} +20 -20
- package/dist/{chunk-0denq6ed.js → chunk-mrgpzw1c.js} +4 -4
- package/dist/{chunk-ecs7vx1t.js → chunk-n0gst0hx.js} +2 -2
- package/dist/{chunk-jsbpm1gz.js → chunk-n3weyy07.js} +3 -3
- package/dist/{chunk-7rprvf1j.js → chunk-n4k8qt5x.js} +21 -21
- package/dist/{chunk-1eapde8a.js → chunk-n58eyfnk.js} +1 -1
- package/dist/{chunk-rzszqp82.js → chunk-n7ht1jgh.js} +7 -7
- package/dist/{chunk-90nq6xd1.js → chunk-n9cdw0t2.js} +6 -6
- package/dist/{chunk-29cwt6jb.js → chunk-nkv7b4c1.js} +2 -2
- package/dist/{chunk-2qrd6yp9.js → chunk-ns01axvd.js} +6 -6
- package/dist/{chunk-z0b2vb24.js → chunk-nwechpvj.js} +8 -8
- package/dist/{chunk-bfm0tndy.js → chunk-nxy0ak70.js} +1 -1
- package/dist/{chunk-3250nkp6.js → chunk-nygwv3e0.js} +2 -2
- package/dist/{chunk-w4herm6y.js → chunk-p2bnzwpg.js} +19 -19
- package/dist/{chunk-3q30a3zk.js → chunk-p6qe2s74.js} +3 -3
- package/dist/{chunk-tj8xm5w4.js → chunk-p7bh3myb.js} +1 -1
- package/dist/{chunk-khmv9t7x.js → chunk-pbbnbask.js} +19 -19
- package/dist/{chunk-1np0s1kg.js → chunk-pbz4mh16.js} +22 -22
- package/dist/{chunk-21xf0kt1.js → chunk-pdrck5s2.js} +20 -20
- package/dist/{chunk-1en23sch.js → chunk-pmtt6pn2.js} +20 -20
- package/dist/{chunk-4mncmt3x.js → chunk-pnt2g5ky.js} +1 -1
- package/dist/{chunk-3ej58kpx.js → chunk-ppxk89xc.js} +2 -2
- package/dist/{chunk-fk1p6hg8.js → chunk-pq86snxv.js} +2 -2
- package/dist/{chunk-bmpjjnzy.js → chunk-pr18v6ak.js} +11 -11
- package/dist/{chunk-rm3ffqcw.js → chunk-psznjajk.js} +1 -1
- package/dist/{chunk-etrqmsd9.js → chunk-pt7kj47q.js} +3 -3
- package/dist/{chunk-qjmp704z.js → chunk-pty52c4r.js} +30 -30
- package/dist/{chunk-5fb3575x.js → chunk-pwrfamqw.js} +7 -7
- package/dist/{chunk-wyk10vg9.js → chunk-pydnv5x0.js} +19 -19
- package/dist/{chunk-2jp9nsdp.js → chunk-q4vv960q.js} +2 -2
- package/dist/{chunk-62kerh04.js → chunk-q92kb7r0.js} +1 -1
- package/dist/{chunk-s0gn15e9.js → chunk-qcf8d15r.js} +14 -14
- package/dist/{chunk-x1py9f9c.js → chunk-qmgv76hv.js} +19 -19
- package/dist/{chunk-ve6z2jpt.js → chunk-qnqye0zx.js} +2 -2
- package/dist/{chunk-zpa0vdjz.js → chunk-qp0zqyjb.js} +1 -1
- package/dist/{chunk-0nsn2zhh.js → chunk-qtfwypee.js} +1 -1
- package/dist/{chunk-jtg8hmdm.js → chunk-qzs01jxs.js} +49 -49
- package/dist/{chunk-26qhf7e9.js → chunk-r2m08ts5.js} +20 -20
- package/dist/{chunk-bany6evx.js → chunk-r7g0svnt.js} +3 -3
- package/dist/{chunk-asq59013.js → chunk-rbejmsh8.js} +19 -19
- package/dist/{chunk-t6ngea93.js → chunk-rd5dg1rc.js} +27 -27
- package/dist/{chunk-m7krfc0f.js → chunk-rn36ndw0.js} +2 -2
- package/dist/{chunk-2j1w3ra2.js → chunk-rpqh4scm.js} +2 -2
- package/dist/{chunk-7n5feteg.js → chunk-rqfvxp58.js} +2 -2
- package/dist/{chunk-0v1wh5st.js → chunk-rzan1d2k.js} +3 -3
- package/dist/{chunk-34xcbwk4.js → chunk-s58dhett.js} +1 -1
- package/dist/{chunk-sah01pch.js → chunk-s5cetm1d.js} +4 -4
- package/dist/{chunk-kfrd38n5.js → chunk-s7w9ap3w.js} +1 -1
- package/dist/{chunk-4ba796se.js → chunk-s9dx9n0b.js} +7 -7
- package/dist/{chunk-vkcyyv1m.js → chunk-sggzs6ea.js} +2 -2
- package/dist/{chunk-3zgwa2cg.js → chunk-skv8zmwe.js} +2 -2
- package/dist/{chunk-3zf06a84.js → chunk-smkp5pcr.js} +1 -496
- package/dist/{chunk-e3m9k9s2.js → chunk-smvfhzf9.js} +8 -8
- package/dist/{chunk-h6sefwzz.js → chunk-sn71b1c8.js} +4 -4
- package/dist/{chunk-544r356p.js → chunk-t1ejvknt.js} +2 -2
- package/dist/{chunk-qrg0z423.js → chunk-t1yvxj9j.js} +5 -5
- package/dist/{chunk-m8x440q1.js → chunk-tata7sds.js} +36 -36
- package/dist/{chunk-mtft2935.js → chunk-tc4m252m.js} +1 -1
- package/dist/{chunk-advwxc45.js → chunk-tchbf2v2.js} +11 -11
- package/dist/{chunk-avyperdk.js → chunk-tcz4wcpw.js} +1 -1
- package/dist/{chunk-25na7w1p.js → chunk-tds898pw.js} +30 -30
- package/dist/{chunk-62krayk4.js → chunk-tjpmxbtq.js} +19 -19
- package/dist/{chunk-4xx1xxz5.js → chunk-tz654p4e.js} +23 -23
- package/dist/{chunk-bzqmdtkq.js → chunk-v3an7b8a.js} +2 -2
- package/dist/{chunk-gsz4dh3y.js → chunk-v3n4x4ct.js} +24 -24
- package/dist/{chunk-92jtdg1s.js → chunk-v5d730s6.js} +12 -12
- package/dist/{chunk-5vt6zszr.js → chunk-v8ffgdn9.js} +3 -3
- package/dist/{chunk-4hprnnc7.js → chunk-ved8k6kt.js} +4 -4
- package/dist/{chunk-c6e8pzfj.js → chunk-vhcn23yr.js} +22 -22
- package/dist/{chunk-56t1vwab.js → chunk-vr7gccmp.js} +26 -26
- package/dist/{chunk-t37xd00m.js → chunk-vsc4gb0y.js} +23 -23
- package/dist/{chunk-64czcyt6.js → chunk-vt94dr8w.js} +7 -7
- package/dist/{chunk-4h6ddgk1.js → chunk-w6swvsba.js} +1 -1
- package/dist/{chunk-xm63b5y7.js → chunk-wedz8vxt.js} +20 -20
- package/dist/{chunk-14a25hz8.js → chunk-wgx7skx7.js} +21 -21
- package/dist/{chunk-6g62sjpf.js → chunk-whegaby0.js} +2 -2
- package/dist/{chunk-nga09bbb.js → chunk-wk25xctw.js} +4 -4
- package/dist/{chunk-njex1zeh.js → chunk-wvbr8qez.js} +3 -3
- package/dist/{chunk-89hry9r4.js → chunk-x399k93v.js} +19 -19
- package/dist/{chunk-m7an4m5k.js → chunk-x9tm8c89.js} +5 -5
- package/dist/{chunk-1ese82pp.js → chunk-xa6s2erk.js} +3 -3
- package/dist/{chunk-kk8k8xy8.js → chunk-xd1cbnjb.js} +4 -4
- package/dist/{chunk-54ema2zp.js → chunk-xgkykb2m.js} +19 -19
- package/dist/{chunk-fwtse19g.js → chunk-xj217d6e.js} +2 -2
- package/dist/{chunk-7rs8vdyh.js → chunk-xmc5cgmx.js} +24 -24
- package/dist/{chunk-ph9s3kqd.js → chunk-xq2fxvfj.js} +9 -9
- package/dist/{chunk-qrmscbnv.js → chunk-xvtrj770.js} +23 -23
- package/dist/{chunk-8bscgnhn.js → chunk-y0xj4tsk.js} +25 -25
- package/dist/{chunk-j0jqcc3m.js → chunk-y1jznj8g.js} +19 -19
- package/dist/{chunk-8re0q9x3.js → chunk-y7zr2b92.js} +23 -23
- package/dist/{chunk-4j7rq8ky.js → chunk-yb63yg9d.js} +2 -2
- package/dist/{chunk-gr8hqeqn.js → chunk-ydtqd0bf.js} +4 -4
- package/dist/{chunk-jcawvx14.js → chunk-yhzrmdhy.js} +22 -22
- package/dist/{chunk-dz7aaq55.js → chunk-ysx4yzqy.js} +20 -20
- package/dist/{chunk-ms4fqzr4.js → chunk-yxc2q80a.js} +20 -20
- package/dist/{chunk-9mc7rfpj.js → chunk-yxtjb36k.js} +19 -19
- package/dist/{chunk-dktedz99.js → chunk-yzh1fqkt.js} +3 -3
- package/dist/{chunk-0s7prsxw.js → chunk-zc59ke8a.js} +13 -13
- package/dist/{chunk-eejkxzh0.js → chunk-zhhdhw6s.js} +20 -20
- package/dist/{chunk-fntqhe3b.js → chunk-zwajhen4.js} +19 -19
- package/dist/{chunk-hkss7xmp.js → chunk-zwcy5tyk.js} +19 -19
- package/dist/cli.js +32 -16
- package/package.json +1 -1
- package/dist/{chunk-vest0y6x.js → chunk-6h6kzvyd.js} +3 -3
- package/dist/{chunk-27xc1csx.js → chunk-dggvswz1.js} +3 -3
- package/dist/{chunk-6exxdk1p.js → chunk-djh0hzs3.js} +9 -9
- package/dist/{chunk-dv1wfr85.js → chunk-fezchwvs.js} +3 -3
- package/dist/{chunk-zsfxha74.js → chunk-kb4y637z.js} +3 -3
- package/dist/{chunk-m2mcpbhk.js → chunk-pcy0sqby.js} +3 -3
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
registerFileReadListener,
|
|
13
13
|
registerPostSamplingHook,
|
|
14
14
|
runAgent
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7hty0jss.js";
|
|
16
16
|
import {
|
|
17
17
|
cloneFileStateCache,
|
|
18
18
|
init_fileStateCache
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
init_sequential,
|
|
22
22
|
sequential
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-0mgw2mkr.js";
|
|
24
24
|
import {
|
|
25
25
|
getFsImplementation,
|
|
26
26
|
init_errors,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
getOAuthHeaders,
|
|
4
4
|
init_api,
|
|
5
5
|
prepareApiRequest
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-tcz4wcpw.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfig,
|
|
9
9
|
getOauthAccountInfo,
|
|
10
10
|
init_auth,
|
|
11
11
|
init_config1 as init_config,
|
|
12
12
|
saveGlobalConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-0mgw2mkr.js";
|
|
14
14
|
import {
|
|
15
15
|
getOauthConfig,
|
|
16
16
|
init_oauth
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
getBridgeBaseUrlOverride,
|
|
6
6
|
getBridgeTokenOverride,
|
|
7
7
|
init_bridgeConfig
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import"./chunk-
|
|
8
|
+
} from "./chunk-p7bh3myb.js";
|
|
9
|
+
import"./chunk-0mgw2mkr.js";
|
|
10
10
|
import"./chunk-e3g8q4cn.js";
|
|
11
11
|
import"./chunk-z1yfevvp.js";
|
|
12
12
|
import"./chunk-ctw5jwcd.js";
|
|
@@ -21,7 +21,7 @@ import"./chunk-w2z5pqd3.js";
|
|
|
21
21
|
import"./chunk-7ymfj7m3.js";
|
|
22
22
|
import"./chunk-f5ma3nh5.js";
|
|
23
23
|
import"./chunk-v1kzp02e.js";
|
|
24
|
-
import"./chunk-
|
|
24
|
+
import"./chunk-n58eyfnk.js";
|
|
25
25
|
import"./chunk-p2816w9z.js";
|
|
26
26
|
import"./chunk-1rvz0433.js";
|
|
27
27
|
import"./chunk-cdz5yb0r.js";
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
notifyPermissionModeChanged,
|
|
8
8
|
notifySessionMetadataChanged
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-aez1vf7x.js";
|
|
10
10
|
import {
|
|
11
11
|
init_syncCache,
|
|
12
12
|
isRemoteManagedSettingsEligible
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7hty0jss.js";
|
|
14
14
|
import {
|
|
15
15
|
clearApiKeyHelperCache,
|
|
16
16
|
clearAwsCredentialsCache,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
saveGlobalConfig,
|
|
29
29
|
toExternalPermissionMode,
|
|
30
30
|
updateSettingsForSource
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-0mgw2mkr.js";
|
|
32
32
|
import {
|
|
33
33
|
clearCACertsCache,
|
|
34
34
|
clearMTLSCache,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
init_caCerts,
|
|
38
38
|
init_mtls,
|
|
39
39
|
init_proxy
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-n58eyfnk.js";
|
|
41
41
|
import {
|
|
42
42
|
init_log,
|
|
43
43
|
logError
|
|
@@ -18,23 +18,20 @@ import {
|
|
|
18
18
|
require_dist_cjs8 as require_dist_cjs20,
|
|
19
19
|
require_dist_cjs9 as require_dist_cjs21,
|
|
20
20
|
require_protocols
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-djh0hzs3.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist_cjs as require_dist_cjs13,
|
|
24
24
|
require_dist_cjs2 as require_dist_cjs17
|
|
25
25
|
} from "./chunk-n7ttdtk0.js";
|
|
26
|
+
import {
|
|
27
|
+
require_dist_cjs as require_dist_cjs8
|
|
28
|
+
} from "./chunk-2k995y2x.js";
|
|
26
29
|
import {
|
|
27
30
|
require_httpAuthSchemes
|
|
28
31
|
} from "./chunk-wzpdet3m.js";
|
|
29
32
|
import {
|
|
30
33
|
require_dist_cjs as require_dist_cjs9
|
|
31
34
|
} from "./chunk-p2d5nh3g.js";
|
|
32
|
-
import {
|
|
33
|
-
require_dist_cjs as require_dist_cjs3
|
|
34
|
-
} from "./chunk-jzmz18nn.js";
|
|
35
|
-
import {
|
|
36
|
-
require_dist_cjs as require_dist_cjs8
|
|
37
|
-
} from "./chunk-2k995y2x.js";
|
|
38
35
|
import {
|
|
39
36
|
require_dist_cjs as require_dist_cjs6,
|
|
40
37
|
require_dist_cjs4 as require_dist_cjs7,
|
|
@@ -50,6 +47,9 @@ import {
|
|
|
50
47
|
import {
|
|
51
48
|
require_dist_cjs
|
|
52
49
|
} from "./chunk-30rst83v.js";
|
|
50
|
+
import {
|
|
51
|
+
require_dist_cjs as require_dist_cjs3
|
|
52
|
+
} from "./chunk-jzmz18nn.js";
|
|
53
53
|
import {
|
|
54
54
|
require_dist_cjs as require_dist_cjs4
|
|
55
55
|
} from "./chunk-j2k4p94p.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
saveCurrentProjectConfig,
|
|
34
34
|
saveGlobalConfig,
|
|
35
35
|
shouldSkipPluginAutoupdate
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-0mgw2mkr.js";
|
|
37
37
|
import"./chunk-e3g8q4cn.js";
|
|
38
38
|
import"./chunk-z1yfevvp.js";
|
|
39
39
|
import"./chunk-ctw5jwcd.js";
|
|
@@ -48,7 +48,7 @@ import"./chunk-w2z5pqd3.js";
|
|
|
48
48
|
import"./chunk-7ymfj7m3.js";
|
|
49
49
|
import"./chunk-f5ma3nh5.js";
|
|
50
50
|
import"./chunk-v1kzp02e.js";
|
|
51
|
-
import"./chunk-
|
|
51
|
+
import"./chunk-n58eyfnk.js";
|
|
52
52
|
import"./chunk-p2816w9z.js";
|
|
53
53
|
import"./chunk-1rvz0433.js";
|
|
54
54
|
import"./chunk-cdz5yb0r.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
init_config1 as init_config,
|
|
8
8
|
saveGlobalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-0mgw2mkr.js";
|
|
10
10
|
import"./chunk-e3g8q4cn.js";
|
|
11
11
|
import"./chunk-z1yfevvp.js";
|
|
12
12
|
import"./chunk-ctw5jwcd.js";
|
|
@@ -21,7 +21,7 @@ import"./chunk-w2z5pqd3.js";
|
|
|
21
21
|
import"./chunk-7ymfj7m3.js";
|
|
22
22
|
import"./chunk-f5ma3nh5.js";
|
|
23
23
|
import"./chunk-v1kzp02e.js";
|
|
24
|
-
import"./chunk-
|
|
24
|
+
import"./chunk-n58eyfnk.js";
|
|
25
25
|
import"./chunk-p2816w9z.js";
|
|
26
26
|
import"./chunk-1rvz0433.js";
|
|
27
27
|
import"./chunk-cdz5yb0r.js";
|
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getProxyFetchOptions,
|
|
4
|
-
init_proxy
|
|
5
|
-
} from "./chunk-1eapde8a.js";
|
|
6
|
-
import"./chunk-nxsh6de2.js";
|
|
7
|
-
import"./chunk-fbv4apne.js";
|
|
8
|
-
import"./chunk-3r24h7t6.js";
|
|
9
|
-
import"./chunk-qqfa0dqg.js";
|
|
10
|
-
import"./chunk-hqmz36b3.js";
|
|
11
|
-
import"./chunk-4g3v8y12.js";
|
|
12
|
-
import"./chunk-7739pg2c.js";
|
|
13
|
-
import"./chunk-xszk7n10.js";
|
|
14
|
-
import"./chunk-sdj9b9wh.js";
|
|
15
2
|
import {
|
|
16
3
|
__esm
|
|
17
4
|
} from "./chunk-qp2qdcda.js";
|
|
@@ -349,486 +336,4 @@ var init_providerRegistry = __esm(() => {
|
|
|
349
336
|
};
|
|
350
337
|
});
|
|
351
338
|
|
|
352
|
-
|
|
353
|
-
import { createHash } from "crypto";
|
|
354
|
-
function getOpenAIConfig() {
|
|
355
|
-
const resolved = resolveProvider();
|
|
356
|
-
if (resolved) {
|
|
357
|
-
const { config } = resolved;
|
|
358
|
-
return {
|
|
359
|
-
apiKey: resolveAPIKey(config),
|
|
360
|
-
baseURL: process.env.OPENAI_BASE_URL || config.baseURL,
|
|
361
|
-
model: process.env.OPENAI_MODEL || config.defaultModel
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
return {
|
|
365
|
-
apiKey: process.env.OPENAI_API_KEY || "",
|
|
366
|
-
baseURL: process.env.OPENAI_BASE_URL || "https://api.openai.com/v1",
|
|
367
|
-
model: process.env.OPENAI_MODEL || "gpt-4o"
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
function convertMessages(system, messages) {
|
|
371
|
-
const result = [];
|
|
372
|
-
if (system) {
|
|
373
|
-
let sysText = "";
|
|
374
|
-
if (typeof system === "string") {
|
|
375
|
-
sysText = system;
|
|
376
|
-
} else if (Array.isArray(system)) {
|
|
377
|
-
sysText = system.map((b) => typeof b === "string" ? b : b?.text || "").filter(Boolean).join(`
|
|
378
|
-
`);
|
|
379
|
-
}
|
|
380
|
-
if (sysText) {
|
|
381
|
-
const maxLen = 8000;
|
|
382
|
-
if (sysText.length > maxLen) {
|
|
383
|
-
sysText = sysText.slice(0, maxLen) + `
|
|
384
|
-
|
|
385
|
-
[System prompt truncated]`;
|
|
386
|
-
}
|
|
387
|
-
result.push({ role: "system", content: sysText });
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
for (const msg of messages) {
|
|
391
|
-
const m = msg;
|
|
392
|
-
if (!m || !m.role)
|
|
393
|
-
continue;
|
|
394
|
-
if (typeof m.content === "string") {
|
|
395
|
-
result.push({ role: m.role === "assistant" ? "assistant" : "user", content: m.content });
|
|
396
|
-
continue;
|
|
397
|
-
}
|
|
398
|
-
if (!Array.isArray(m.content))
|
|
399
|
-
continue;
|
|
400
|
-
if (m.role === "assistant") {
|
|
401
|
-
const textParts = [];
|
|
402
|
-
const toolCalls = [];
|
|
403
|
-
for (const block of m.content) {
|
|
404
|
-
if (!block)
|
|
405
|
-
continue;
|
|
406
|
-
if (block.type === "text" && block.text) {
|
|
407
|
-
textParts.push(block.text);
|
|
408
|
-
} else if (block.type === "tool_use") {
|
|
409
|
-
toolCalls.push({
|
|
410
|
-
id: block.id || `toolu_${Date.now()}`,
|
|
411
|
-
type: "function",
|
|
412
|
-
function: {
|
|
413
|
-
name: block.name,
|
|
414
|
-
arguments: typeof block.input === "string" ? block.input : JSON.stringify(block.input || {})
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
const assistantMsg = { role: "assistant" };
|
|
420
|
-
const text = textParts.join(`
|
|
421
|
-
`);
|
|
422
|
-
if (text)
|
|
423
|
-
assistantMsg.content = text;
|
|
424
|
-
else if (toolCalls.length > 0)
|
|
425
|
-
assistantMsg.content = null;
|
|
426
|
-
if (toolCalls.length > 0)
|
|
427
|
-
assistantMsg.tool_calls = toolCalls;
|
|
428
|
-
if (text || toolCalls.length > 0)
|
|
429
|
-
result.push(assistantMsg);
|
|
430
|
-
} else {
|
|
431
|
-
const textParts = [];
|
|
432
|
-
const toolResults = [];
|
|
433
|
-
for (const block of m.content) {
|
|
434
|
-
if (!block)
|
|
435
|
-
continue;
|
|
436
|
-
if (typeof block === "string") {
|
|
437
|
-
textParts.push(block);
|
|
438
|
-
} else if (block.type === "text") {
|
|
439
|
-
textParts.push(block.text || "");
|
|
440
|
-
} else if (block.type === "tool_result") {
|
|
441
|
-
const resultContent = typeof block.content === "string" ? block.content : Array.isArray(block.content) ? block.content.map((c) => c.text || JSON.stringify(c) || "").join(`
|
|
442
|
-
`) : JSON.stringify(block.content || "");
|
|
443
|
-
toolResults.push({
|
|
444
|
-
tool_call_id: block.tool_use_id || "unknown",
|
|
445
|
-
content: block.is_error ? `[ERROR] ${resultContent}` : resultContent
|
|
446
|
-
});
|
|
447
|
-
} else if (block.type === "image") {
|
|
448
|
-
textParts.push("[Image content]");
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
for (const tr of toolResults) {
|
|
452
|
-
result.push({
|
|
453
|
-
role: "tool",
|
|
454
|
-
tool_call_id: tr.tool_call_id,
|
|
455
|
-
content: tr.content
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
const text = textParts.join(`
|
|
459
|
-
`).trim();
|
|
460
|
-
if (text) {
|
|
461
|
-
result.push({ role: "user", content: text });
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
return result;
|
|
466
|
-
}
|
|
467
|
-
function convertTools(tools) {
|
|
468
|
-
if (!tools || tools.length === 0)
|
|
469
|
-
return;
|
|
470
|
-
const filtered = tools.filter((tool) => {
|
|
471
|
-
if (SKIP_TOOLS.has(tool.name))
|
|
472
|
-
return false;
|
|
473
|
-
if (TIER1_TOOLS.has(tool.name))
|
|
474
|
-
return true;
|
|
475
|
-
if (TIER2_TOOLS.has(tool.name))
|
|
476
|
-
return true;
|
|
477
|
-
if (tool.name?.startsWith("mcp__"))
|
|
478
|
-
return true;
|
|
479
|
-
return false;
|
|
480
|
-
});
|
|
481
|
-
if (filtered.length === 0)
|
|
482
|
-
return;
|
|
483
|
-
return filtered.map((tool) => ({
|
|
484
|
-
type: "function",
|
|
485
|
-
function: {
|
|
486
|
-
name: tool.name,
|
|
487
|
-
description: (tool.description || "").slice(0, 800),
|
|
488
|
-
parameters: tool.input_schema || {}
|
|
489
|
-
}
|
|
490
|
-
}));
|
|
491
|
-
}
|
|
492
|
-
async function* openaiStreamToAnthropicEvents(response, model) {
|
|
493
|
-
yield {
|
|
494
|
-
type: "message_start",
|
|
495
|
-
message: {
|
|
496
|
-
id: `msg_openai_${Date.now()}`,
|
|
497
|
-
type: "message",
|
|
498
|
-
role: "assistant",
|
|
499
|
-
content: [],
|
|
500
|
-
model,
|
|
501
|
-
stop_reason: null,
|
|
502
|
-
stop_sequence: null,
|
|
503
|
-
usage: { input_tokens: 0, output_tokens: 0 }
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
let textBlockStarted = false;
|
|
507
|
-
let textBlockIndex = 0;
|
|
508
|
-
let toolCallBlocks = new Map;
|
|
509
|
-
let thinkingBlockStarted = false;
|
|
510
|
-
let thinkingBlockIndex = -1;
|
|
511
|
-
let nextBlockIndex = 0;
|
|
512
|
-
let outputTokens = 0;
|
|
513
|
-
let inputTokens = 0;
|
|
514
|
-
let hasToolCalls = false;
|
|
515
|
-
const reader = response.body?.getReader();
|
|
516
|
-
if (!reader)
|
|
517
|
-
return;
|
|
518
|
-
const decoder = new TextDecoder;
|
|
519
|
-
let buffer = "";
|
|
520
|
-
try {
|
|
521
|
-
while (true) {
|
|
522
|
-
const { done, value } = await reader.read();
|
|
523
|
-
if (done)
|
|
524
|
-
break;
|
|
525
|
-
buffer += decoder.decode(value, { stream: true });
|
|
526
|
-
const lines = buffer.split(`
|
|
527
|
-
`);
|
|
528
|
-
buffer = lines.pop() || "";
|
|
529
|
-
for (const line of lines) {
|
|
530
|
-
const trimmed = line.trim();
|
|
531
|
-
if (!trimmed || trimmed === "data: [DONE]")
|
|
532
|
-
continue;
|
|
533
|
-
if (!trimmed.startsWith("data: "))
|
|
534
|
-
continue;
|
|
535
|
-
let chunk;
|
|
536
|
-
try {
|
|
537
|
-
chunk = JSON.parse(trimmed.slice(6));
|
|
538
|
-
} catch {
|
|
539
|
-
continue;
|
|
540
|
-
}
|
|
541
|
-
if (chunk.usage) {
|
|
542
|
-
inputTokens = chunk.usage.prompt_tokens || 0;
|
|
543
|
-
outputTokens = chunk.usage.completion_tokens || 0;
|
|
544
|
-
}
|
|
545
|
-
for (const choice of chunk.choices) {
|
|
546
|
-
const delta = choice.delta;
|
|
547
|
-
const thinkingText = delta.reasoning_content || delta.reasoning;
|
|
548
|
-
if (thinkingText) {
|
|
549
|
-
if (!thinkingBlockStarted) {
|
|
550
|
-
thinkingBlockIndex = nextBlockIndex++;
|
|
551
|
-
thinkingBlockStarted = true;
|
|
552
|
-
yield {
|
|
553
|
-
type: "content_block_start",
|
|
554
|
-
index: thinkingBlockIndex,
|
|
555
|
-
content_block: { type: "thinking", thinking: "", signature: "" }
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
yield {
|
|
559
|
-
type: "content_block_delta",
|
|
560
|
-
index: thinkingBlockIndex,
|
|
561
|
-
delta: { type: "thinking_delta", thinking: thinkingText }
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
if (delta.content && delta.content.length > 0) {
|
|
565
|
-
if (thinkingBlockStarted && !textBlockStarted) {
|
|
566
|
-
yield {
|
|
567
|
-
type: "content_block_stop",
|
|
568
|
-
index: thinkingBlockIndex
|
|
569
|
-
};
|
|
570
|
-
thinkingBlockStarted = false;
|
|
571
|
-
}
|
|
572
|
-
if (!textBlockStarted) {
|
|
573
|
-
textBlockIndex = nextBlockIndex++;
|
|
574
|
-
textBlockStarted = true;
|
|
575
|
-
yield {
|
|
576
|
-
type: "content_block_start",
|
|
577
|
-
index: textBlockIndex,
|
|
578
|
-
content_block: { type: "text", text: "" }
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
yield {
|
|
582
|
-
type: "content_block_delta",
|
|
583
|
-
index: textBlockIndex,
|
|
584
|
-
delta: { type: "text_delta", text: delta.content }
|
|
585
|
-
};
|
|
586
|
-
outputTokens++;
|
|
587
|
-
}
|
|
588
|
-
if (delta.tool_calls) {
|
|
589
|
-
for (const tc of delta.tool_calls) {
|
|
590
|
-
if (!toolCallBlocks.has(tc.index)) {
|
|
591
|
-
if (textBlockStarted) {
|
|
592
|
-
yield { type: "content_block_stop", index: textBlockIndex };
|
|
593
|
-
textBlockStarted = false;
|
|
594
|
-
}
|
|
595
|
-
if (thinkingBlockStarted) {
|
|
596
|
-
yield { type: "content_block_stop", index: thinkingBlockIndex };
|
|
597
|
-
thinkingBlockStarted = false;
|
|
598
|
-
}
|
|
599
|
-
const blockIdx = nextBlockIndex++;
|
|
600
|
-
const toolId = tc.id || `toolu_openai_${Date.now()}_${tc.index}`;
|
|
601
|
-
const toolName = tc.function?.name || "";
|
|
602
|
-
toolCallBlocks.set(tc.index, { id: toolId, name: toolName, argsBuf: "", blockIndex: blockIdx });
|
|
603
|
-
yield {
|
|
604
|
-
type: "content_block_start",
|
|
605
|
-
index: blockIdx,
|
|
606
|
-
content_block: {
|
|
607
|
-
type: "tool_use",
|
|
608
|
-
id: toolId,
|
|
609
|
-
name: toolName,
|
|
610
|
-
input: {}
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
}
|
|
614
|
-
const block = toolCallBlocks.get(tc.index);
|
|
615
|
-
if (tc.function?.arguments) {
|
|
616
|
-
block.argsBuf += tc.function.arguments;
|
|
617
|
-
yield {
|
|
618
|
-
type: "content_block_delta",
|
|
619
|
-
index: block.blockIndex,
|
|
620
|
-
delta: {
|
|
621
|
-
type: "input_json_delta",
|
|
622
|
-
partial_json: tc.function.arguments
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
if (choice.finish_reason) {
|
|
629
|
-
if (thinkingBlockStarted) {
|
|
630
|
-
yield { type: "content_block_stop", index: thinkingBlockIndex };
|
|
631
|
-
thinkingBlockStarted = false;
|
|
632
|
-
}
|
|
633
|
-
if (textBlockStarted) {
|
|
634
|
-
yield { type: "content_block_stop", index: textBlockIndex };
|
|
635
|
-
textBlockStarted = false;
|
|
636
|
-
}
|
|
637
|
-
for (const [, tcBlock] of toolCallBlocks) {
|
|
638
|
-
yield { type: "content_block_stop", index: tcBlock.blockIndex };
|
|
639
|
-
}
|
|
640
|
-
if (choice.finish_reason === "tool_calls") {
|
|
641
|
-
hasToolCalls = true;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
} finally {
|
|
648
|
-
reader.releaseLock();
|
|
649
|
-
}
|
|
650
|
-
yield {
|
|
651
|
-
type: "message_delta",
|
|
652
|
-
delta: { stop_reason: hasToolCalls ? "tool_use" : "end_turn", stop_sequence: null },
|
|
653
|
-
usage: { output_tokens: outputTokens }
|
|
654
|
-
};
|
|
655
|
-
yield {
|
|
656
|
-
type: "message_stop"
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
function hashKey(key) {
|
|
660
|
-
return createHash("sha256").update(key).digest("hex");
|
|
661
|
-
}
|
|
662
|
-
function verifyOllamaLicense() {
|
|
663
|
-
const userSetBaseURL = process.env.OPENAI_BASE_URL;
|
|
664
|
-
const userSetProvider = process.env.PROVIDER;
|
|
665
|
-
if (userSetBaseURL)
|
|
666
|
-
return;
|
|
667
|
-
if (userSetProvider && userSetProvider.toLowerCase() !== "ollama")
|
|
668
|
-
return;
|
|
669
|
-
if (process.env.OPENAI_API_KEY || process.env.OLLAMA_API_KEY)
|
|
670
|
-
return;
|
|
671
|
-
const config = getOpenAIConfig();
|
|
672
|
-
const isBuiltinOllama = config.baseURL.includes("218.201.19.105:11434") || config.baseURL.includes("localhost:11434") || config.baseURL.includes("127.0.0.1:11434");
|
|
673
|
-
if (!isBuiltinOllama)
|
|
674
|
-
return;
|
|
675
|
-
const licenseKey = process.env.JIALING_LICENSE_KEY?.trim();
|
|
676
|
-
if (!licenseKey) {
|
|
677
|
-
throw new Error(`
|
|
678
|
-
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
679
|
-
` + `\u2551 \u5609\u9675\u6C5F-code Ollama \u672C\u5730\u6A21\u5F0F\u9700\u8981\u6388\u6743\u5BC6\u94A5 \u2551
|
|
680
|
-
` + `\u2551 \u2551
|
|
681
|
-
` + `\u2551 \u8BF7\u8BBE\u7F6E\u73AF\u5883\u53D8\u91CF: \u2551
|
|
682
|
-
` + `\u2551 export JIALING_LICENSE_KEY="\u4F60\u7684\u5BC6\u94A5" \u2551
|
|
683
|
-
` + `\u2551 \u2551
|
|
684
|
-
` + `\u2551 \u83B7\u53D6\u5BC6\u94A5\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458 \u2551
|
|
685
|
-
` + `\u2551 \u2551
|
|
686
|
-
` + `\u2551 \u4F7F\u7528\u5176\u4ED6\u5927\u6A21\u578B\u5382\u5546\u4E0D\u53D7\u6B64\u9650\u5236: \u2551
|
|
687
|
-
` + `\u2551 export DEEPSEEK_API_KEY=sk-xxx (DeepSeek) \u2551
|
|
688
|
-
` + `\u2551 export OPENAI_API_KEY=sk-xxx (OpenAI) \u2551
|
|
689
|
-
` + `\u2551 export QWEN_API_KEY=sk-xxx (\u901A\u4E49\u5343\u95EE) \u2551
|
|
690
|
-
` + `\u2551 ... \u652F\u6301 22+ \u5382\u5546\uFF0C\u8BE6\u89C1\u6587\u6863 \u2551
|
|
691
|
-
` + `\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
692
|
-
`);
|
|
693
|
-
}
|
|
694
|
-
if (!OLLAMA_LICENSE_HASHES.has(hashKey(licenseKey))) {
|
|
695
|
-
throw new Error(`
|
|
696
|
-
[\u5609\u9675\u6C5F-code] \u5BC6\u94A5\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5 JIALING_LICENSE_KEY \u662F\u5426\u6B63\u786E\u3002
|
|
697
|
-
`);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
function createOpenAIAdapterClient(options) {
|
|
701
|
-
verifyOllamaLicense();
|
|
702
|
-
const config = getOpenAIConfig();
|
|
703
|
-
const client = {
|
|
704
|
-
beta: {
|
|
705
|
-
messages: {
|
|
706
|
-
create: (params, requestOptions) => {
|
|
707
|
-
const doFetch = async () => {
|
|
708
|
-
const model = params.model || config.model;
|
|
709
|
-
const openaiMessages = convertMessages(params.system, params.messages);
|
|
710
|
-
const openaiTools = convertTools(params.tools || []);
|
|
711
|
-
const isOllama = config.baseURL.includes("localhost:11434") || config.baseURL.includes("127.0.0.1:11434") || config.baseURL.includes("218.201.19.105:11434") || process.env.PROVIDER === "ollama";
|
|
712
|
-
const body = {
|
|
713
|
-
model,
|
|
714
|
-
messages: openaiMessages,
|
|
715
|
-
stream: true,
|
|
716
|
-
...!isOllama && { stream_options: { include_usage: true } },
|
|
717
|
-
max_tokens: params.max_tokens || 16384
|
|
718
|
-
};
|
|
719
|
-
if (params.temperature !== undefined) {
|
|
720
|
-
body.temperature = params.temperature;
|
|
721
|
-
}
|
|
722
|
-
if (openaiTools && openaiTools.length > 0) {
|
|
723
|
-
body.tools = openaiTools;
|
|
724
|
-
}
|
|
725
|
-
const fetchOptions = getProxyFetchOptions({ forAnthropicAPI: false }) || {};
|
|
726
|
-
const url = `${config.baseURL.replace(/\/+$/, "")}/chat/completions`;
|
|
727
|
-
const headers = {
|
|
728
|
-
"Content-Type": "application/json",
|
|
729
|
-
...process.env.OPENAI_CUSTOM_HEADERS ? parseCustomHeaders(process.env.OPENAI_CUSTOM_HEADERS) : {}
|
|
730
|
-
};
|
|
731
|
-
if (config.apiKey && config.apiKey !== "ollama") {
|
|
732
|
-
headers["Authorization"] = `Bearer ${config.apiKey}`;
|
|
733
|
-
}
|
|
734
|
-
const response = await fetch(url, {
|
|
735
|
-
method: "POST",
|
|
736
|
-
headers,
|
|
737
|
-
body: JSON.stringify(body),
|
|
738
|
-
signal: requestOptions?.signal,
|
|
739
|
-
...fetchOptions
|
|
740
|
-
});
|
|
741
|
-
if (!response.ok) {
|
|
742
|
-
const errorText = await response.text().catch(() => "Unknown error");
|
|
743
|
-
throw new Error(`OpenAI API error (${response.status}): ${errorText}`);
|
|
744
|
-
}
|
|
745
|
-
const stream = openaiStreamToAnthropicEvents(response, model);
|
|
746
|
-
return { stream, response };
|
|
747
|
-
};
|
|
748
|
-
const resultPromise = doFetch();
|
|
749
|
-
return {
|
|
750
|
-
withResponse: () => resultPromise.then(({ stream, response }) => ({
|
|
751
|
-
data: stream,
|
|
752
|
-
response,
|
|
753
|
-
request_id: response.headers.get("x-request-id") || `openai-${Date.now()}`
|
|
754
|
-
})),
|
|
755
|
-
then: (resolve, reject) => resultPromise.then(({ stream }) => stream).then(resolve, reject)
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
messages: {
|
|
761
|
-
create: async () => {
|
|
762
|
-
throw new Error("Use beta.messages.create for OpenAI adapter");
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
};
|
|
766
|
-
return client;
|
|
767
|
-
}
|
|
768
|
-
function parseCustomHeaders(headerStr) {
|
|
769
|
-
const headers = {};
|
|
770
|
-
for (const line of headerStr.split(/\n|\r\n/)) {
|
|
771
|
-
const idx = line.indexOf(":");
|
|
772
|
-
if (idx === -1)
|
|
773
|
-
continue;
|
|
774
|
-
const name = line.slice(0, idx).trim();
|
|
775
|
-
const value = line.slice(idx + 1).trim();
|
|
776
|
-
if (name)
|
|
777
|
-
headers[name] = value;
|
|
778
|
-
}
|
|
779
|
-
return headers;
|
|
780
|
-
}
|
|
781
|
-
var TIER1_TOOLS, TIER2_TOOLS, SKIP_TOOLS, OLLAMA_LICENSE_HASHES;
|
|
782
|
-
var init_openaiAdapter = __esm(() => {
|
|
783
|
-
init_proxy();
|
|
784
|
-
init_providerRegistry();
|
|
785
|
-
TIER1_TOOLS = new Set([
|
|
786
|
-
"Bash",
|
|
787
|
-
"Read",
|
|
788
|
-
"Write",
|
|
789
|
-
"Edit",
|
|
790
|
-
"Glob",
|
|
791
|
-
"Grep"
|
|
792
|
-
]);
|
|
793
|
-
TIER2_TOOLS = new Set([
|
|
794
|
-
"WebFetch",
|
|
795
|
-
"WebSearch",
|
|
796
|
-
"NotebookEdit",
|
|
797
|
-
"Agent"
|
|
798
|
-
]);
|
|
799
|
-
SKIP_TOOLS = new Set([
|
|
800
|
-
"EnterPlanMode",
|
|
801
|
-
"ExitPlanMode",
|
|
802
|
-
"EnterWorktree",
|
|
803
|
-
"ExitWorktree",
|
|
804
|
-
"TodoWrite",
|
|
805
|
-
"Brief",
|
|
806
|
-
"TaskOutput",
|
|
807
|
-
"TaskStop",
|
|
808
|
-
"TaskCreate",
|
|
809
|
-
"TaskGet",
|
|
810
|
-
"TaskUpdate",
|
|
811
|
-
"TaskList",
|
|
812
|
-
"TeamCreate",
|
|
813
|
-
"TeamDelete",
|
|
814
|
-
"ToolSearch",
|
|
815
|
-
"SendMessage",
|
|
816
|
-
"AskUserQuestion",
|
|
817
|
-
"Skill",
|
|
818
|
-
"ListMcpResources",
|
|
819
|
-
"ReadMcpResource",
|
|
820
|
-
"SyntheticOutput",
|
|
821
|
-
"CronCreate",
|
|
822
|
-
"CronDelete",
|
|
823
|
-
"CronList"
|
|
824
|
-
]);
|
|
825
|
-
OLLAMA_LICENSE_HASHES = new Set([
|
|
826
|
-
"2352f11c7b38404b2ab5a135b3c429199a5a0ff7c04349c9179b3f58265f6b3a"
|
|
827
|
-
]);
|
|
828
|
-
});
|
|
829
|
-
init_openaiAdapter();
|
|
830
|
-
|
|
831
|
-
export {
|
|
832
|
-
getOpenAIConfig,
|
|
833
|
-
createOpenAIAdapterClient
|
|
834
|
-
};
|
|
339
|
+
export { PROVIDER_REGISTRY, resolveProvider, resolveAPIKey, init_providerRegistry };
|