@opencode/core 0.0.0-dev-21368 → 0.0.0-dev-21382
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/account/sql.js +1 -1
- package/dist/agent.js +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{schema-4a32pvx7.js → file-mutation-083bb7kr.js} +1 -1
- package/dist/chunks/{schema-48kw51zw.js → file-mutation-08rawchj.js} +3 -3
- package/dist/chunks/{schema-4teq5az6.js → file-mutation-0eymxkpr.js} +51 -51
- package/dist/chunks/{schema-yx0rmv9r.js → file-mutation-0fn2v7vk.js} +6 -6
- package/dist/chunks/{schema-vag86jwj.js → file-mutation-0nqg4kny.js} +9 -9
- package/dist/chunks/{schema-84kr3hab.js → file-mutation-0r2cw8fn.js} +8 -8
- package/dist/chunks/{schema-wg91gmf4.js → file-mutation-0ryx4cv5.js} +36 -36
- package/dist/chunks/{schema-0vbcp93d.js → file-mutation-0vbcp93d.js} +2 -2
- package/dist/chunks/{schema-d75x1326.js → file-mutation-0xz2mzgc.js} +26 -26
- package/dist/chunks/{schema-bzeyqsqd.js → file-mutation-1ep4rre3.js} +4 -4
- package/dist/chunks/{schema-9hhtrjbb.js → file-mutation-1f7m535t.js} +12 -12
- package/dist/chunks/{schema-j73na0aw.js → file-mutation-1rabqv72.js} +18 -18
- package/dist/chunks/{schema-1rmqtx3n.js → file-mutation-1rmqtx3n.js} +3 -3
- package/dist/chunks/{schema-74mhpw3w.js → file-mutation-21xx9xc6.js} +17 -17
- package/dist/chunks/{schema-mvg2napp.js → file-mutation-27p00kw8.js} +22 -22
- package/dist/chunks/{schema-e4771dax.js → file-mutation-2ccjc77m.js} +14 -14
- package/dist/chunks/{schema-42kfqa6a.js → file-mutation-2f26zb5h.js} +32 -32
- package/dist/chunks/file-mutation-2g1qnqk3.js +257 -0
- package/dist/chunks/{schema-7dqw4kz8.js → file-mutation-2k8khapm.js} +5 -5
- package/dist/chunks/{schema-47jkzegy.js → file-mutation-2k9fjx65.js} +5 -5
- package/dist/chunks/{schema-zdtbn3v6.js → file-mutation-2kjrre30.js} +20 -20
- package/dist/chunks/{schema-phse5vhf.js → file-mutation-2nb55xn8.js} +26 -26
- package/dist/chunks/{schema-xgmhetns.js → file-mutation-3179ttex.js} +14 -14
- package/dist/chunks/{schema-wcp8qb9k.js → file-mutation-322qbvpa.js} +18 -18
- package/dist/chunks/{schema-hp36aydz.js → file-mutation-3e2gnrvk.js} +24 -24
- package/dist/chunks/{schema-pcb8yjd0.js → file-mutation-3hefbbgh.js} +7 -7
- package/dist/chunks/{schema-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{schema-3hwn7j4h.js → file-mutation-3hwn7j4h.js} +2 -2
- package/dist/chunks/{schema-3cn8netw.js → file-mutation-3k72abas.js} +19 -19
- package/dist/chunks/{schema-zsep494j.js → file-mutation-3p8nb07v.js} +5 -5
- package/dist/chunks/{schema-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{schema-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{schema-ahdc3t4z.js → file-mutation-3xymvwyv.js} +8 -8
- package/dist/chunks/{schema-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{schema-ke8th4a0.js → file-mutation-49ma6pwq.js} +13 -13
- package/dist/chunks/{schema-1skh4z6z.js → file-mutation-4b4em5d4.js} +31 -31
- package/dist/chunks/{schema-1bs8104e.js → file-mutation-4f5ezzxr.js} +8 -8
- package/dist/chunks/{schema-jm1wa9nf.js → file-mutation-4fm3tq8e.js} +20 -20
- package/dist/chunks/{schema-c8bydgjz.js → file-mutation-4mwpykj0.js} +6 -6
- package/dist/chunks/{schema-1knv165j.js → file-mutation-4xfddg59.js} +26 -26
- package/dist/chunks/{schema-1ffg5m5z.js → file-mutation-4yb17086.js} +45 -45
- package/dist/chunks/{schema-54ma36ye.js → file-mutation-54ma36ye.js} +1 -1
- package/dist/chunks/{schema-7pest08f.js → file-mutation-56byzq03.js} +9 -9
- package/dist/chunks/{schema-rkpm4y6y.js → file-mutation-59b3s74c.js} +11 -11
- package/dist/chunks/{schema-sqmzwr9m.js → file-mutation-5e1pzs32.js} +9 -9
- package/dist/chunks/{schema-bnn3p74r.js → file-mutation-5e2h11rs.js} +4 -4
- package/dist/chunks/{schema-5g57z1ma.js → file-mutation-5g57z1ma.js} +1 -1
- package/dist/chunks/{schema-a110k9h9.js → file-mutation-5g9pfety.js} +21 -21
- package/dist/chunks/{schema-v4b1xa27.js → file-mutation-5gxex9x8.js} +11 -11
- package/dist/chunks/{schema-5m9w47nd.js → file-mutation-5m9w47nd.js} +1 -1
- package/dist/chunks/{schema-yr7e010d.js → file-mutation-5q7ksgvn.js} +10 -10
- package/dist/chunks/{schema-nqcscwec.js → file-mutation-5tew088c.js} +13 -13
- package/dist/chunks/{schema-6fkw3p3r.js → file-mutation-5tnh3egr.js} +4 -4
- package/dist/chunks/{schema-kp7tszm4.js → file-mutation-5xa5t8mt.js} +20 -20
- package/dist/chunks/{schema-ccz6qt78.js → file-mutation-5yc3gv1m.js} +13 -13
- package/dist/chunks/{schema-g754c8fk.js → file-mutation-5zbwkh3w.js} +6 -6
- package/dist/chunks/{schema-fw9jjgyr.js → file-mutation-6614sc7r.js} +19 -19
- package/dist/chunks/{schema-6827pfxn.js → file-mutation-6827pfxn.js} +1 -1
- package/dist/chunks/{schema-j05q090x.js → file-mutation-6gbkbwjk.js} +20 -20
- package/dist/chunks/{schema-2yjh3x6q.js → file-mutation-6k294dg0.js} +15 -15
- package/dist/chunks/{schema-4j8ys442.js → file-mutation-6p9h6rqd.js} +92 -92
- package/dist/chunks/{schema-6xb47vfp.js → file-mutation-6xb47vfp.js} +1 -1
- package/dist/chunks/{schema-qa1bwf9y.js → file-mutation-70ake3ft.js} +17 -17
- package/dist/chunks/{schema-j6ktnsbj.js → file-mutation-72vb8ye8.js} +12 -12
- package/dist/chunks/{schema-775gj3j1.js → file-mutation-775gj3j1.js} +2 -2
- package/dist/chunks/{schema-qhfwh6dg.js → file-mutation-7bm0e0dp.js} +34 -34
- package/dist/chunks/{schema-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/file-mutation-7fj5dwt0.js +18 -0
- package/dist/chunks/{schema-92zywa0s.js → file-mutation-7k4yx5jm.js} +11 -11
- package/dist/chunks/{schema-s15d9z4p.js → file-mutation-7q1btr1k.js} +27 -27
- package/dist/chunks/{schema-v20v5pjv.js → file-mutation-7rakk0e1.js} +33 -33
- package/dist/chunks/{schema-rhrxssrh.js → file-mutation-7tppg67e.js} +9 -9
- package/dist/chunks/{schema-84txncab.js → file-mutation-84txncab.js} +1 -1
- package/dist/chunks/{schema-p1p7f544.js → file-mutation-882c6a2f.js} +24 -24
- package/dist/chunks/{schema-rtka9wvf.js → file-mutation-89a6x4zk.js} +20 -20
- package/dist/chunks/{schema-3rtxz4nr.js → file-mutation-8aaqm6qj.js} +8 -8
- package/dist/chunks/{schema-pwjp0qa3.js → file-mutation-8b58bdns.js} +35 -35
- package/dist/chunks/{schema-dhsdmd8f.js → file-mutation-8f461wgz.js} +34 -34
- package/dist/chunks/{schema-bzwj8dcr.js → file-mutation-8g01qe2v.js} +29 -29
- package/dist/chunks/{schema-8m6m0r52.js → file-mutation-8m6m0r52.js} +1 -1
- package/dist/chunks/{schema-yr2aghkb.js → file-mutation-8m71mjfm.js} +5 -5
- package/dist/chunks/{schema-8mywswrd.js → file-mutation-8mywswrd.js} +1 -1
- package/dist/chunks/{schema-bbcbabsp.js → file-mutation-8rddq889.js} +21 -21
- package/dist/chunks/{schema-w1ej9fkt.js → file-mutation-8sq4gyz7.js} +7 -7
- package/dist/chunks/{schema-6pc27hjz.js → file-mutation-8sze2n9a.js} +2 -2
- package/dist/chunks/{schema-z9c610pw.js → file-mutation-8xxydye1.js} +13 -13
- package/dist/chunks/{schema-30846h32.js → file-mutation-92swnv4m.js} +8 -8
- package/dist/chunks/{schema-d8j0mxkc.js → file-mutation-92waa1rm.js} +7 -7
- package/dist/chunks/{schema-rw5jw54j.js → file-mutation-94apha83.js} +8 -8
- package/dist/chunks/{schema-at94sxth.js → file-mutation-94kdqvgb.js} +9 -9
- package/dist/chunks/{schema-2ae0q92z.js → file-mutation-967benbv.js} +11 -11
- package/dist/chunks/{schema-scvzwabm.js → file-mutation-9mnf2aaj.js} +11 -11
- package/dist/chunks/{schema-qx53j35n.js → file-mutation-9q2hdfp3.js} +24 -24
- package/dist/chunks/{schema-87n3rrnw.js → file-mutation-9qkvvyqp.js} +32 -32
- package/dist/chunks/{schema-f4g83bm7.js → file-mutation-9vkqjddw.js} +11 -11
- package/dist/chunks/{schema-ek59gnbm.js → file-mutation-9wqkfqmh.js} +70 -70
- package/dist/chunks/{schema-a20pjse5.js → file-mutation-a20pjse5.js} +3 -3
- package/dist/chunks/{schema-9nexcd99.js → file-mutation-a6gf0ppz.js} +3 -3
- package/dist/chunks/{schema-3gasgs0k.js → file-mutation-a9km70y1.js} +5 -5
- package/dist/chunks/{schema-st4zt39s.js → file-mutation-ac5hykxd.js} +21 -21
- package/dist/chunks/{schema-mxvxcxwy.js → file-mutation-addxnjmp.js} +4 -4
- package/dist/chunks/{schema-qt44r66w.js → file-mutation-anhf8h1n.js} +3 -3
- package/dist/chunks/{schema-z41ahr7v.js → file-mutation-av3f13xe.js} +11 -11
- package/dist/chunks/{schema-v5dkyp31.js → file-mutation-b27vhd2z.js} +4 -4
- package/dist/chunks/{schema-6fyhx42r.js → file-mutation-b4ragnr9.js} +23 -23
- package/dist/chunks/{schema-wp1sg2es.js → file-mutation-b6ag07rz.js} +4 -4
- package/dist/chunks/{schema-5t1axb3v.js → file-mutation-b8d7xm3m.js} +13 -13
- package/dist/chunks/{schema-44ak30pa.js → file-mutation-bgc5ggmx.js} +4 -4
- package/dist/chunks/{schema-tsftnbvm.js → file-mutation-brdz51fb.js} +8 -8
- package/dist/chunks/{schema-pv4s4nxr.js → file-mutation-bvefa49m.js} +18 -18
- package/dist/chunks/{schema-kwr2em0p.js → file-mutation-bwpes1j3.js} +22 -22
- package/dist/chunks/{schema-rqkmn7me.js → file-mutation-bz5hym84.js} +21 -21
- package/dist/chunks/{schema-c1fqxshp.js → file-mutation-c1fqxshp.js} +3 -3
- package/dist/chunks/{schema-d5t26v95.js → file-mutation-cafkpj5t.js} +22 -22
- package/dist/chunks/{schema-cefkz2r6.js → file-mutation-cefkz2r6.js} +4 -4
- package/dist/chunks/{schema-zzmpqpc3.js → file-mutation-cj2gcgr0.js} +10 -10
- package/dist/chunks/{schema-mccws065.js → file-mutation-cjj3vnjk.js} +2 -2
- package/dist/chunks/{schema-hz7aezfr.js → file-mutation-cmftrgtq.js} +33 -33
- package/dist/chunks/{schema-nwwgs0kh.js → file-mutation-cmkgjnh5.js} +10 -10
- package/dist/chunks/{schema-0dzgkxam.js → file-mutation-cpewaxbb.js} +36 -36
- package/dist/chunks/{schema-825jjjdc.js → file-mutation-ctkvxx28.js} +26 -26
- package/dist/chunks/{schema-2sejkfem.js → file-mutation-cwa6csj7.js} +9 -9
- package/dist/chunks/{schema-gwj3kssr.js → file-mutation-d06kvh6k.js} +54 -54
- package/dist/chunks/{schema-e9vvnvyx.js → file-mutation-d7q21r69.js} +9 -9
- package/dist/chunks/{schema-q6chj63a.js → file-mutation-d9a4qpg5.js} +32 -32
- package/dist/chunks/{schema-fzz4ftgm.js → file-mutation-dccm8yky.js} +14 -14
- package/dist/chunks/{schema-jxda656q.js → file-mutation-df9339xm.js} +13 -13
- package/dist/chunks/{schema-nf3p155y.js → file-mutation-dqj1zep9.js} +5 -5
- package/dist/chunks/{schema-5zscwwge.js → file-mutation-dr99d0ac.js} +3 -3
- package/dist/chunks/{schema-2bep3sk1.js → file-mutation-dtgy4jeb.js} +7 -7
- package/dist/chunks/{schema-gjkbr6zc.js → file-mutation-e27v7yqk.js} +13 -13
- package/dist/chunks/{schema-5qd3pb7m.js → file-mutation-e3qxr5gk.js} +2 -2
- package/dist/chunks/{schema-txyw6bh0.js → file-mutation-ea6pkrn3.js} +2 -2
- package/dist/chunks/{schema-r2z489rp.js → file-mutation-ed1g29hy.js} +3 -3
- package/dist/chunks/{schema-eej6y6fw.js → file-mutation-eej6y6fw.js} +2 -2
- package/dist/chunks/{schema-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{schema-6xkcg1y6.js → file-mutation-eftecqvh.js} +23 -23
- package/dist/chunks/{schema-kecqjjhm.js → file-mutation-eh6ej367.js} +5 -5
- package/dist/chunks/{schema-d0vc93hk.js → file-mutation-f0y10khq.js} +25 -25
- package/dist/chunks/{schema-htvezcsh.js → file-mutation-f8fzv2x1.js} +3 -3
- package/dist/chunks/{schema-5j21s5mr.js → file-mutation-fa4te4zq.js} +23 -23
- package/dist/chunks/{schema-rt2zj1s0.js → file-mutation-fcs05vrx.js} +24 -24
- package/dist/chunks/{schema-fcy631f0.js → file-mutation-fcy631f0.js} +1 -1
- package/dist/chunks/{schema-6pxm0met.js → file-mutation-g18yemqx.js} +45 -45
- package/dist/chunks/{schema-yhc4wv29.js → file-mutation-gc69w8x5.js} +50 -50
- package/dist/chunks/{schema-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{schema-4176b2yk.js → file-mutation-gdgy10dy.js} +32 -32
- package/dist/chunks/{schema-6kp05j0h.js → file-mutation-gk5p4syv.js} +18 -18
- package/dist/chunks/{schema-fyzv33qs.js → file-mutation-gkm6v4vd.js} +43 -43
- package/dist/chunks/{schema-4j4wwavy.js → file-mutation-gnhr360k.js} +14 -14
- package/dist/chunks/{schema-nysxgq6d.js → file-mutation-gqagkb1x.js} +11 -11
- package/dist/chunks/{schema-dzyrc88t.js → file-mutation-gtndzxs8.js} +6 -6
- package/dist/chunks/{schema-p4p2ts1j.js → file-mutation-h6mg8ssc.js} +11 -11
- package/dist/chunks/{schema-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{schema-fdms3n6w.js → file-mutation-h71w788e.js} +9 -9
- package/dist/chunks/{schema-8m22mfav.js → file-mutation-h7vxqxg2.js} +32 -32
- package/dist/chunks/{schema-v210v162.js → file-mutation-h8bq8y5a.js} +9 -9
- package/dist/chunks/{schema-tej7bjmy.js → file-mutation-hebc8qwk.js} +13 -13
- package/dist/chunks/{schema-hgz4x7wa.js → file-mutation-hgz4x7wa.js} +1 -1
- package/dist/chunks/{schema-h6cpwytq.js → file-mutation-hh1mvxn6.js} +55 -55
- package/dist/chunks/{schema-66fgvbn3.js → file-mutation-hry64yvt.js} +17 -17
- package/dist/chunks/{schema-arypdymn.js → file-mutation-hzm5xem3.js} +30 -30
- package/dist/chunks/{schema-q9cqhrsb.js → file-mutation-j228j2n8.js} +2 -2
- package/dist/chunks/{schema-j9w080ad.js → file-mutation-j8143y8a.js} +16 -16
- package/dist/chunks/{schema-w4q7m0eq.js → file-mutation-jh0cf3gy.js} +18 -18
- package/dist/chunks/{schema-xqj10vmz.js → file-mutation-jspydjgs.js} +9 -9
- package/dist/chunks/{schema-rvbf7bre.js → file-mutation-jws504fy.js} +15 -15
- package/dist/chunks/{schema-ycc3121e.js → file-mutation-k2r06wff.js} +4 -4
- package/dist/chunks/{schema-chsnhwb3.js → file-mutation-ke9g58qf.js} +13 -13
- package/dist/chunks/{schema-8ngzfdb0.js → file-mutation-kf0ydnx7.js} +15 -15
- package/dist/chunks/{schema-man2x1hw.js → file-mutation-khcab136.js} +21 -21
- package/dist/chunks/{schema-hq3c8me3.js → file-mutation-khmqacep.js} +4 -4
- package/dist/chunks/{schema-4xpgt2w9.js → file-mutation-kjdm35cs.js} +5 -5
- package/dist/chunks/{schema-81f7vt2z.js → file-mutation-kqv3x6rj.js} +9 -9
- package/dist/chunks/{schema-rp73s9pz.js → file-mutation-ktb21g4v.js} +15 -15
- package/dist/chunks/{schema-kwb1v3vj.js → file-mutation-kwb1v3vj.js} +1 -1
- package/dist/chunks/{schema-0vfyfqrd.js → file-mutation-kz7145yv.js} +6 -6
- package/dist/chunks/{schema-hhyv66vq.js → file-mutation-m1z5ek08.js} +5 -5
- package/dist/chunks/{schema-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{schema-maspj1v3.js → file-mutation-maspj1v3.js} +1 -1
- package/dist/chunks/{schema-n4s909p2.js → file-mutation-mhg37pmq.js} +47 -47
- package/dist/chunks/{schema-hcgx9r92.js → file-mutation-mrcqdzkn.js} +14 -14
- package/dist/chunks/{schema-rk5y8ke4.js → file-mutation-mrv22f7s.js} +15 -15
- package/dist/chunks/{schema-exevrqmg.js → file-mutation-mwahwpcs.js} +18 -18
- package/dist/chunks/{schema-8td2p5q2.js → file-mutation-n5sg9n8b.js} +34 -34
- package/dist/chunks/{schema-s1y79ssk.js → file-mutation-n7c99d35.js} +18 -18
- package/dist/chunks/{schema-ydbf29gx.js → file-mutation-nn5t8xjm.js} +47 -47
- package/dist/chunks/{schema-9n0pq0p1.js → file-mutation-nwsypg2h.js} +11 -11
- package/dist/chunks/{schema-p37cw4rj.js → file-mutation-p4mj4rdp.js} +8 -8
- package/dist/chunks/{schema-3q4zrqsz.js → file-mutation-phk9d88z.js} +45 -45
- package/dist/chunks/{schema-cc9fn44q.js → file-mutation-pjhesq7k.js} +11 -11
- package/dist/chunks/{schema-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{schema-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{schema-ghrfrbg4.js → file-mutation-pkpp0jng.js} +4 -4
- package/dist/chunks/{schema-r4mzk1xx.js → file-mutation-ps2trwbq.js} +3 -3
- package/dist/chunks/{schema-vwssb2rn.js → file-mutation-py2d2bhf.js} +4 -4
- package/dist/chunks/{schema-36gdk6sm.js → file-mutation-pzz5tmzm.js} +17 -17
- package/dist/chunks/{schema-ec5r24jz.js → file-mutation-q2j64v3h.js} +6 -6
- package/dist/chunks/{schema-7erbtyx3.js → file-mutation-qaf3te0r.js} +11 -11
- package/dist/chunks/{schema-yw7v3j12.js → file-mutation-qb9hezfc.js} +27 -27
- package/dist/chunks/{schema-qnc92qwc.js → file-mutation-qnc92qwc.js} +1 -1
- package/dist/chunks/{schema-4bgsdwgm.js → file-mutation-qnq8mqeg.js} +28 -28
- package/dist/chunks/{schema-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{schema-phq9g6aj.js → file-mutation-qxns1yyr.js} +19 -19
- package/dist/chunks/{schema-3f75xvkg.js → file-mutation-qz0pc5j5.js} +19 -19
- package/dist/chunks/{schema-4d3127hb.js → file-mutation-r5z9qnpm.js} +11 -11
- package/dist/chunks/{schema-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{schema-brgccpge.js → file-mutation-re4gtx8j.js} +25 -25
- package/dist/chunks/{schema-rert0e01.js → file-mutation-rert0e01.js} +2 -2
- package/dist/chunks/{schema-rj3eygr5.js → file-mutation-rj3eygr5.js} +2 -2
- package/dist/chunks/{schema-6w7d1qme.js → file-mutation-rp8hjwgz.js} +11 -11
- package/dist/chunks/{schema-dk1ym1bf.js → file-mutation-rpnfjj5z.js} +30 -30
- package/dist/chunks/{schema-csndn1v6.js → file-mutation-rqbas9ax.js} +19 -19
- package/dist/chunks/{schema-1f1kaem6.js → file-mutation-rqhevtjr.js} +14 -14
- package/dist/chunks/{schema-e5cghe60.js → file-mutation-rrb9pz5a.js} +1 -1
- package/dist/chunks/{schema-ejvnp2ks.js → file-mutation-s5qxm7c2.js} +11 -11
- package/dist/chunks/{schema-4459cj4r.js → file-mutation-s8yypaqy.js} +46 -46
- package/dist/chunks/{schema-sa8ekw3f.js → file-mutation-sa8ekw3f.js} +2 -2
- package/dist/chunks/{schema-rz6yywgf.js → file-mutation-sadarxxx.js} +35 -35
- package/dist/chunks/{schema-vh1fw6yt.js → file-mutation-sbr2r95b.js} +27 -27
- package/dist/chunks/{schema-syv4x271.js → file-mutation-syv4x271.js} +1 -1
- package/dist/chunks/{schema-xtpd89cm.js → file-mutation-szyc73at.js} +11 -11
- package/dist/chunks/{schema-ezc52dw2.js → file-mutation-t4bhgeye.js} +5 -5
- package/dist/chunks/{schema-t550f9t1.js → file-mutation-t550f9t1.js} +1 -1
- package/dist/chunks/{schema-js1t3555.js → file-mutation-t80p7bv8.js} +9 -9
- package/dist/chunks/{schema-hq279geq.js → file-mutation-ta0tc5c9.js} +26 -26
- package/dist/chunks/{schema-kcfh4jp8.js → file-mutation-taz2ghkg.js} +14 -14
- package/dist/chunks/{schema-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{schema-d858xzj7.js → file-mutation-tbmac1c7.js} +4 -4
- package/dist/chunks/{schema-89znhe33.js → file-mutation-tcezcvh9.js} +4 -4
- package/dist/chunks/{schema-75ytgrqn.js → file-mutation-td1fm6rg.js} +21 -21
- package/dist/chunks/{schema-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{schema-tm0kqsz3.js → file-mutation-tm0kqsz3.js} +1 -1
- package/dist/chunks/{schema-4c7g6ymp.js → file-mutation-ts412n3k.js} +37 -37
- package/dist/chunks/{schema-tyytaxap.js → file-mutation-tyytaxap.js} +1 -1
- package/dist/chunks/{schema-zqr7hr21.js → file-mutation-v08krjdw.js} +15 -15
- package/dist/chunks/{schema-v13b12ef.js → file-mutation-v13b12ef.js} +2 -2
- package/dist/chunks/file-mutation-v1yvzs5v.js +517 -0
- package/dist/chunks/{schema-v7p4zvkq.js → file-mutation-v7p4zvkq.js} +2 -2
- package/dist/chunks/{schema-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{schema-5mbpffke.js → file-mutation-vt9q9evw.js} +10 -10
- package/dist/chunks/{schema-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{schema-bygmh04z.js → file-mutation-w3g2sjny.js} +14 -14
- package/dist/chunks/{schema-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{schema-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{schema-hwq6p19n.js → file-mutation-wdasqx75.js} +4 -4
- package/dist/chunks/{schema-mcxxahwh.js → file-mutation-wnyvz4dk.js} +45 -45
- package/dist/chunks/{schema-g4wty43c.js → file-mutation-wpys2vyv.js} +5 -5
- package/dist/chunks/{schema-y89gydzy.js → file-mutation-wqabm0nw.js} +17 -17
- package/dist/chunks/{schema-a7scjn5s.js → file-mutation-ws0ez784.js} +16 -16
- package/dist/chunks/{schema-5gydnkt7.js → file-mutation-x0k3z69x.js} +16 -16
- package/dist/chunks/{schema-ttacmzh5.js → file-mutation-x5dktsa5.js} +23 -23
- package/dist/chunks/{schema-ma48de29.js → file-mutation-x6pyv2yz.js} +5 -5
- package/dist/chunks/{schema-7vx8fxzm.js → file-mutation-xcevffwp.js} +82 -82
- package/dist/chunks/{schema-drwq78ky.js → file-mutation-xfkkasph.js} +4 -4
- package/dist/chunks/{schema-tt8gc4fv.js → file-mutation-xfktpdj6.js} +6 -6
- package/dist/chunks/{schema-2znnk454.js → file-mutation-xgrstn99.js} +11 -11
- package/dist/chunks/{schema-80jay3zv.js → file-mutation-xmb5688y.js} +33 -33
- package/dist/chunks/{schema-33srfa0b.js → file-mutation-xp80041t.js} +10 -10
- package/dist/chunks/{schema-vz2w9rtp.js → file-mutation-xs3kgst9.js} +23 -23
- package/dist/chunks/{schema-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{schema-h9r6r1hy.js → file-mutation-y59fqsw4.js} +26 -26
- package/dist/chunks/{schema-y71avatq.js → file-mutation-y71avatq.js} +1 -1
- package/dist/chunks/{schema-bacj9t34.js → file-mutation-y7nndgyc.js} +9 -9
- package/dist/chunks/{schema-gwaz9r47.js → file-mutation-ydjhy7jp.js} +4 -4
- package/dist/chunks/{schema-xekvc3d8.js → file-mutation-ye93bcpk.js} +13 -13
- package/dist/chunks/{schema-remtvbha.js → file-mutation-yebssw6b.js} +3 -3
- package/dist/chunks/{schema-9zj7wbnh.js → file-mutation-yr4z1qtt.js} +44 -44
- package/dist/chunks/{schema-bjx1sjef.js → file-mutation-ywt8jp22.js} +9 -9
- package/dist/chunks/{schema-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{schema-gp3kkx05.js → file-mutation-z0hcq1xj.js} +28 -28
- package/dist/chunks/{schema-z18fegx4.js → file-mutation-z18fegx4.js} +1 -1
- package/dist/chunks/{schema-1323fv79.js → file-mutation-zak5s96v.js} +4 -4
- package/dist/chunks/{schema-n46s7c5f.js → file-mutation-zcepehk0.js} +5 -5
- package/dist/chunks/file-mutation-zcrrhp36.js +26 -0
- package/dist/chunks/{schema-embw8kgh.js → file-mutation-zcrspsvn.js} +4 -4
- package/dist/chunks/{schema-fvgp290g.js → file-mutation-zh98cvta.js} +8 -8
- package/dist/chunks/{schema-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{schema-hh0a7fvf.js → file-mutation-zr8t0btn.js} +189 -189
- package/dist/chunks/{schema-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/chunks/{schema-gjgye92n.js → file-mutation-zz19y5js.js} +17 -17
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +104 -104
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +155 -155
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -202
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/schema-1xy3bbfj.js +0 -517
- package/dist/chunks/schema-ebe1aw40.js +0 -257
- package/dist/chunks/schema-hktg20kd.js +0 -26
- package/dist/chunks/schema-vnkjks7b.js +0 -18
- /package/dist/chunks/{schema-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{schema-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{schema-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{schema-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{schema-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{schema-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{schema-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{schema-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{schema-2bv980vf.js → file-mutation-2bv980vf.js} +0 -0
- /package/dist/chunks/{schema-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{schema-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{schema-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{schema-3t0ybcrp.js → file-mutation-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{schema-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{schema-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{schema-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{schema-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{schema-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{schema-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{schema-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{schema-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{schema-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{schema-6q2bdcd1.js → file-mutation-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{schema-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{schema-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{schema-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{schema-84wd9syh.js → file-mutation-84wd9syh.js} +0 -0
- /package/dist/chunks/{schema-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{schema-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{schema-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{schema-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{schema-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{schema-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{schema-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{schema-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{schema-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{schema-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{schema-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{schema-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{schema-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{schema-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{schema-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{schema-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{schema-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{schema-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{schema-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{schema-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{schema-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{schema-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{schema-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{schema-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{schema-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{schema-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{schema-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{schema-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{schema-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{schema-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{schema-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{schema-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{schema-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{schema-hcxmzztb.js → file-mutation-hcxmzztb.js} +0 -0
- /package/dist/chunks/{schema-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{schema-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{schema-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{schema-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{schema-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{schema-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{schema-jze0r7bz.js → file-mutation-jze0r7bz.js} +0 -0
- /package/dist/chunks/{schema-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{schema-m18g726c.js → file-mutation-m18g726c.js} +0 -0
- /package/dist/chunks/{schema-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{schema-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{schema-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{schema-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{schema-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{schema-pkyv6v7h.js → file-mutation-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{schema-pyv0edze.js → file-mutation-pyv0edze.js} +0 -0
- /package/dist/chunks/{schema-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{schema-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{schema-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{schema-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{schema-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{schema-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{schema-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{schema-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{schema-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{schema-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{schema-ve7vex1e.js → file-mutation-ve7vex1e.js} +0 -0
- /package/dist/chunks/{schema-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{schema-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{schema-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{schema-wjj7prxr.js → file-mutation-wjj7prxr.js} +0 -0
- /package/dist/chunks/{schema-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{schema-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{schema-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{schema-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{schema-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{schema-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{schema-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{schema-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{schema-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-rpnfjj5z.js";
|
|
5
5
|
import {
|
|
6
6
|
mergeCapabilities2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-mutation-4b4em5d4.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service63
|
|
11
|
+
} from "./file-mutation-mhg37pmq.js";
|
|
12
12
|
import {
|
|
13
13
|
supports2,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
resolve4
|
|
15
|
+
} from "./file-mutation-kz7145yv.js";
|
|
16
16
|
import {
|
|
17
17
|
observe2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-qsdy395h.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/config/plugin/provider.ts
|
|
24
24
|
var exports_provider = {};
|
|
25
25
|
__export(exports_provider, {
|
|
26
26
|
ConfigProviderPlugin: () => exports_provider,
|
|
27
|
-
Plugin: () =>
|
|
27
|
+
Plugin: () => Plugin16
|
|
28
28
|
});
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Money } from "@opencode/schema/money";
|
|
31
31
|
import { Effect } from "effect";
|
|
32
|
-
var
|
|
32
|
+
var Plugin16 = define({
|
|
33
33
|
id: "opencode.config.provider",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
|
-
const config = yield*
|
|
35
|
+
const config = yield* Service63;
|
|
36
36
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
|
|
37
37
|
yield* ctx.integration.transform((integrations) => {
|
|
38
38
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -160,7 +160,7 @@ var Plugin50 = define({
|
|
|
160
160
|
models.update(providerID, id, (model) => {
|
|
161
161
|
if (config.capabilities?.reasoning !== undefined)
|
|
162
162
|
model.variants = [
|
|
163
|
-
...
|
|
163
|
+
...resolve4({ ...model, package: model.package ?? models.provider.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
|
|
164
164
|
];
|
|
165
165
|
if (config.variants !== undefined) {
|
|
166
166
|
model.variants ??= [];
|
|
@@ -196,7 +196,7 @@ var Plugin50 = define({
|
|
|
196
196
|
if (config.variants === undefined && config.capabilities?.reasoning === undefined && (!source?.base || repackaged))
|
|
197
197
|
models.update(providerID, id, (model) => {
|
|
198
198
|
model.variants = [
|
|
199
|
-
...
|
|
199
|
+
...resolve4({
|
|
200
200
|
...model,
|
|
201
201
|
package: model.package ?? models.provider.get(providerID)?.provider.package
|
|
202
202
|
})
|
|
@@ -211,4 +211,4 @@ function configuredProviders(entries) {
|
|
|
211
211
|
return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Plugin16, exports_provider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getViewSelectedFieldsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/select.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiFailedResponseHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-550bvhaj.js";
|
|
4
4
|
import {
|
|
5
5
|
convertToOpenAIResponsesInput2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-j5zkgpj8.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAIResponseFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-3asan66x.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareResponsesTools2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-x6pyv2yz.js";
|
|
13
13
|
|
|
14
14
|
// src/github-copilot/responses/openai-responses-language-model.ts
|
|
15
15
|
import {
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service63
|
|
7
|
+
} from "./file-mutation-mhg37pmq.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-hgz4x7wa.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service71
|
|
13
|
+
} from "./file-mutation-3e2gnrvk.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service61
|
|
16
|
+
} from "./file-mutation-ktb21g4v.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service56
|
|
19
|
+
} from "./file-mutation-hh1mvxn6.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service21,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-bvefa49m.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-mutation-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service49,
|
|
32
32
|
name16
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-mutation-mwahwpcs.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError7,
|
|
36
|
+
Service47
|
|
37
|
+
} from "./file-mutation-nn5t8xjm.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service27
|
|
40
|
+
} from "./file-mutation-6p9h6rqd.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./
|
|
42
|
+
scan2
|
|
43
|
+
} from "./file-mutation-dtgy4jeb.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input6,
|
|
53
|
+
Plugin: () => Plugin7,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name6
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name6 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input6 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin7 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service27;
|
|
124
|
+
const jobs = yield* Service61;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
128
|
-
const shell = yield*
|
|
129
|
-
const shellSelect = yield*
|
|
126
|
+
const environment = yield* Service71;
|
|
127
|
+
const access = yield* Service21;
|
|
128
|
+
const shell = yield* Service47;
|
|
129
|
+
const shellSelect = yield* Service49;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service56;
|
|
132
|
+
const config = yield* Service63;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -140,7 +140,7 @@ var Plugin30 = {
|
|
|
140
140
|
invocation.cwd = target.absolute;
|
|
141
141
|
const timeout = invocation.timeout;
|
|
142
142
|
const portable = latest2(yield* config.entries(), "experimental")?.portable_shell_scanner ?? (shellParserWasm.bash === "" || ctx.app.channel === "local" || ctx.app.channel === "dev");
|
|
143
|
-
const parsed = yield*
|
|
143
|
+
const parsed = yield* scan2(invocation.command, invocation.shell, target.absolute, { portable });
|
|
144
144
|
const directories = yield* Effect.forEach(parsed.directories, (directory) => access.resolve({
|
|
145
145
|
path: resolvePath2(target.absolute, directory),
|
|
146
146
|
kind: "directory"
|
|
@@ -148,7 +148,7 @@ var Plugin30 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name6,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin30 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name6,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input6,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -211,7 +211,7 @@ var Plugin30 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError7({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name6,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name6];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name16(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name6, DEFAULT_TIMEOUT_MS2, Input6, Plugin7, exports_shell };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./file-mutation-rpnfjj5z.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID13.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID13.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-py2d2bhf.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-addxnjmp.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event20
|
|
9
|
+
} from "./file-mutation-z0hcq1xj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID14
|
|
12
|
+
} from "./file-mutation-ta0tc5c9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID13,
|
|
15
|
+
Service78
|
|
16
|
+
} from "./file-mutation-rpnfjj5z.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
load2,
|
|
19
|
+
derive2
|
|
20
|
+
} from "./file-mutation-x5dktsa5.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
29
|
+
const providers = yield* Service78;
|
|
30
30
|
const bus = yield* Service85;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load2(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-yebssw6b.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-c1fqxshp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load4
|
|
12
|
+
} from "./file-mutation-nwsypg2h.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-ea6pkrn3.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
|
-
ListInput: () =>
|
|
24
|
-
Service: () =>
|
|
23
|
+
ListInput: () => ListInput5,
|
|
24
|
+
Service: () => Service58,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node60
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -51,13 +51,13 @@ var ListProjectInput = Schema.Struct({
|
|
|
51
51
|
subpath: RelativePath.pipe(Schema.optional)
|
|
52
52
|
});
|
|
53
53
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
54
|
-
var
|
|
54
|
+
var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class Service58 extends Context.Service()("@opencode/SessionStore") {
|
|
57
57
|
}
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
59
59
|
const { db } = yield* Service86;
|
|
60
|
-
return
|
|
60
|
+
return Service58.of({
|
|
61
61
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
62
62
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
63
63
|
return row ? fromRow2(row) : undefined;
|
|
@@ -101,7 +101,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
101
101
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
102
102
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
103
103
|
}),
|
|
104
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
104
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
|
|
105
105
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
106
106
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
107
107
|
return row ? {
|
|
@@ -128,6 +128,6 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
131
|
+
var node60 = makeGlobalNode({ service: Service58, layer, deps: [node90] });
|
|
132
132
|
|
|
133
|
-
export {
|
|
133
|
+
export { ListInput5, Service58, node60, exports_store };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service55
|
|
3
|
+
} from "./file-mutation-5e1pzs32.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service43
|
|
6
|
+
} from "./file-mutation-4mwpykj0.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-mutation-7fj5dwt0.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service60
|
|
15
|
+
} from "./file-mutation-92swnv4m.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-q2j64v3h.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service52
|
|
23
|
+
} from "./file-mutation-gk5p4syv.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service43;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service60;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service52;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service55;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-rpnfjj5z.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID12,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info21,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-4b4em5d4.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ModalModels: () =>
|
|
19
|
-
derive: () =>
|
|
20
|
-
get: () =>
|
|
21
|
-
load: () =>
|
|
16
|
+
var exports_models = {};
|
|
17
|
+
__export(exports_models, {
|
|
18
|
+
ModalModels: () => exports_models,
|
|
19
|
+
derive: () => derive2,
|
|
20
|
+
get: () => get2,
|
|
21
|
+
load: () => load2
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -54,10 +54,10 @@ var RemoteModel = Schema.Struct({
|
|
|
54
54
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
55
55
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
56
56
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
57
|
-
async function
|
|
58
|
-
return
|
|
57
|
+
async function get2(baseURL, apiKey, existing) {
|
|
58
|
+
return derive2(baseURL, await load2(baseURL, apiKey), existing);
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function load2(baseURL, apiKey) {
|
|
61
61
|
const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`
|
|
@@ -71,12 +71,12 @@ async function load3(baseURL, apiKey) {
|
|
|
71
71
|
return model ? [model] : [];
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function derive2(baseURL, remote, existing) {
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID12.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info21.make({
|
|
98
|
+
...Info21.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID12.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -144,4 +144,4 @@ function variants(remote) {
|
|
|
144
144
|
return [...seen.values()];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export {
|
|
147
|
+
export { get2, load2, derive2, exports_models };
|