@opencode/core 0.0.0-dev-20524 → 0.0.0-dev-20526
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 +79 -79
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{location-9ff0w96a.js → mime-0c6yq8cp.js} +11 -11
- package/dist/chunks/{location-0paq2nw3.js → mime-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-wgwhfkbb.js → mime-0pdhpgys.js} +9 -9
- package/dist/chunks/{location-gj71zhbs.js → mime-0r3c1bmw.js} +5 -5
- package/dist/chunks/{location-1z8f34et.js → mime-0t3vddyb.js} +35 -35
- package/dist/chunks/{location-ajhd3z57.js → mime-0th6fty1.js} +11 -11
- package/dist/chunks/{location-0vbcp93d.js → mime-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-fd6ys4ef.js → mime-0zgyafam.js} +8 -8
- package/dist/chunks/{location-ms3jqqqf.js → mime-108bw82g.js} +42 -42
- package/dist/chunks/{location-d79sqymb.js → mime-15t5vs8z.js} +9 -9
- package/dist/chunks/{location-4zmtjtds.js → mime-16nrxpzh.js} +22 -22
- package/dist/chunks/{location-1wtt5xjz.js → mime-16p8624c.js} +13 -13
- package/dist/chunks/{location-rhraev7y.js → mime-1acjjqhc.js} +4 -4
- package/dist/chunks/{location-n3kq2dxg.js → mime-1d9m2a5b.js} +21 -21
- package/dist/chunks/{location-1dazxqgg.js → mime-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-1dvck2a7.js → mime-1dvck2a7.js} +2 -2
- package/dist/chunks/{location-yqkgc340.js → mime-20cs2f2v.js} +13 -13
- package/dist/chunks/{location-2a5m3afh.js → mime-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-nqrfg00y.js → mime-2g40h5tz.js} +5 -5
- package/dist/chunks/{location-0g9bh3xt.js → mime-2g8e9x92.js} +4 -4
- package/dist/chunks/{location-wr1eej9h.js → mime-2h7ysm63.js} +3 -3
- package/dist/chunks/{location-pfkmmn9w.js → mime-2hy5grvm.js} +35 -35
- package/dist/chunks/{location-7dqw4kz8.js → mime-2k8khapm.js} +5 -5
- package/dist/chunks/{location-qrrr3p9w.js → mime-2q2r0hje.js} +31 -31
- package/dist/chunks/{location-dwenb9k0.js → mime-2xdd25f7.js} +24 -24
- package/dist/chunks/{location-z1443vyh.js → mime-3a1zngsq.js} +5 -5
- package/dist/chunks/{location-e6ef6n62.js → mime-3eb0edj5.js} +41 -41
- package/dist/chunks/{location-636dm4w1.js → mime-3eg14x28.js} +14 -14
- package/dist/chunks/{location-z0aj456m.js → mime-3ewed21c.js} +4 -4
- package/dist/chunks/{location-3fc6dm20.js → mime-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-0ehkg06n.js → mime-3g92af4t.js} +30 -30
- package/dist/chunks/{location-3hepkmqq.js → mime-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-2qwkx9g6.js → mime-3n1988wa.js} +9 -9
- package/dist/chunks/{location-3smtnn6g.js → mime-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → mime-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-ap12zef0.js → mime-3v3z8g8b.js} +46 -46
- package/dist/chunks/{location-7y82cyha.js → mime-3y2j8cb3.js} +22 -22
- package/dist/chunks/{location-3zsf4n22.js → mime-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-w6ftey9k.js → mime-43aqaj6z.js} +16 -16
- package/dist/chunks/{location-a28a4nf5.js → mime-4a0vena2.js} +15 -15
- package/dist/chunks/{location-psyghn60.js → mime-4dkxmh69.js} +3 -3
- package/dist/chunks/{location-rx4c2z1d.js → mime-4rskew4a.js} +25 -25
- package/dist/chunks/{location-4ts7tf6z.js → mime-4ts7tf6z.js} +2 -2
- package/dist/chunks/mime-4v7qdvcn.js +18 -0
- package/dist/chunks/{location-9m2qa8s4.js → mime-4vc0ehpv.js} +27 -27
- package/dist/chunks/{location-gnwsk10c.js → mime-4wdayzmh.js} +16 -16
- package/dist/chunks/{location-6xsxbhd8.js → mime-4wv1d4kf.js} +11 -11
- package/dist/chunks/{location-bw9zjykr.js → mime-51f5btjf.js} +6 -6
- package/dist/chunks/{location-tm7bvtyg.js → mime-523e74da.js} +13 -13
- package/dist/chunks/{location-54ma36ye.js → mime-54ma36ye.js} +1 -1
- package/dist/chunks/{location-33w4ejhs.js → mime-56gdpj1q.js} +6 -6
- package/dist/chunks/{location-4xpgt2w9.js → mime-57myy5jh.js} +5 -5
- package/dist/chunks/{location-cwa6csj7.js → mime-5d607bsg.js} +9 -9
- package/dist/chunks/{location-5daktx2q.js → mime-5daktx2q.js} +1 -1
- package/dist/chunks/{location-4v2wjxb9.js → mime-5g1wsd0f.js} +9 -9
- package/dist/chunks/{location-gccjnz6h.js → mime-5pyjqqve.js} +2 -2
- package/dist/chunks/{location-67a0sc12.js → mime-5rgss48q.js} +8 -8
- package/dist/chunks/{location-66fqs2ya.js → mime-5rnnm2b5.js} +9 -9
- package/dist/chunks/{location-5t3nmthw.js → mime-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-b2k62zq4.js → mime-5x7bbgzr.js} +15 -15
- package/dist/chunks/{location-6t32vnd6.js → mime-5z44n1zm.js} +10 -10
- package/dist/chunks/{location-7rdt2je6.js → mime-613axv8y.js} +27 -27
- package/dist/chunks/{location-3am4x91f.js → mime-618j7cty.js} +30 -30
- package/dist/chunks/{location-9w42hdr1.js → mime-63jk1vmm.js} +21 -21
- package/dist/chunks/{location-hzm7e63r.js → mime-65rtbs6q.js} +31 -31
- package/dist/chunks/{location-669tq793.js → mime-669tq793.js} +1 -1
- package/dist/chunks/{location-wh2htdx5.js → mime-68t36xwj.js} +22 -22
- package/dist/chunks/{location-d0sddd9t.js → mime-69ejy697.js} +18 -18
- package/dist/chunks/{location-ht20w0bm.js → mime-6azy7pm5.js} +17 -17
- package/dist/chunks/{location-dktchxzp.js → mime-6pbfkrn8.js} +9 -9
- package/dist/chunks/{location-g4et1qt7.js → mime-6pm4tc4k.js} +3 -3
- package/dist/chunks/{location-f5gy8qwh.js → mime-6ysrkrkr.js} +8 -8
- package/dist/chunks/{location-71az546q.js → mime-71az546q.js} +2 -2
- package/dist/chunks/{location-ht2vmafg.js → mime-71c2tdcf.js} +14 -14
- package/dist/chunks/{location-agam1dvb.js → mime-71t26km0.js} +11 -11
- package/dist/chunks/{location-d39pa2qm.js → mime-787mccs8.js} +24 -24
- package/dist/chunks/{location-7bmhse3q.js → mime-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-726nj29k.js → mime-7v89zxnz.js} +30 -30
- package/dist/chunks/{location-bwwx913g.js → mime-7x3zazyt.js} +17 -17
- package/dist/chunks/{location-84txncab.js → mime-84txncab.js} +1 -1
- package/dist/chunks/{location-m5fmzmxa.js → mime-8654st4n.js} +12 -12
- package/dist/chunks/{location-n3zff3hk.js → mime-86vxxqtm.js} +6 -6
- package/dist/chunks/{location-97ywwqre.js → mime-86zp6h1p.js} +13 -13
- package/dist/chunks/{location-ma8dv7tn.js → mime-898dwsbb.js} +8 -8
- package/dist/chunks/{location-amm0z9fx.js → mime-89p27cv2.js} +15 -15
- package/dist/chunks/{location-xcst2118.js → mime-8ccws1rf.js} +28 -28
- package/dist/chunks/{location-8d7r5vzw.js → mime-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-htjw9qza.js → mime-8qh6anns.js} +6 -6
- package/dist/chunks/{location-sdm6ehx7.js → mime-8t32jfb4.js} +16 -16
- package/dist/chunks/{location-pdq7zx76.js → mime-8ybym829.js} +10 -10
- package/dist/chunks/{location-aw2g9fp0.js → mime-8z6q4zg3.js} +1 -1
- package/dist/chunks/{location-gakk3ey9.js → mime-90b8eqf4.js} +11 -11
- package/dist/chunks/{location-9be5v5fz.js → mime-92dck0g3.js} +17 -17
- package/dist/chunks/{location-r8aax1cg.js → mime-944pe8w2.js} +8 -8
- package/dist/chunks/{location-em3h5ktn.js → mime-96ctqc5x.js} +4 -4
- package/dist/chunks/{location-jqskptrr.js → mime-98rkmnx4.js} +3 -3
- package/dist/chunks/{location-9e5bzkjp.js → mime-9e5bzkjp.js} +3 -3
- package/dist/chunks/{location-z6z545q9.js → mime-9mpafgh5.js} +46 -46
- package/dist/chunks/{location-47pbmbvq.js → mime-9n437wmn.js} +40 -40
- package/dist/chunks/{location-89136qfr.js → mime-9shrky9m.js} +22 -22
- package/dist/chunks/{location-qwpeqn3j.js → mime-9t111gh9.js} +3 -3
- package/dist/chunks/{location-4e8vs6eh.js → mime-9y0w708y.js} +8 -8
- package/dist/chunks/{location-4x2d6zk6.js → mime-9y5n1c4v.js} +23 -23
- package/dist/chunks/{location-xjthv5h5.js → mime-a2wvdp5g.js} +15 -15
- package/dist/chunks/{location-4ag0xmg6.js → mime-a7v9wceq.js} +12 -12
- package/dist/chunks/{location-kanq2qcn.js → mime-a9qg49ta.js} +14 -14
- package/dist/chunks/{location-aaet6srn.js → mime-aaet6srn.js} +2 -2
- package/dist/chunks/{location-fvcnt3t4.js → mime-ab66fk0a.js} +1 -1
- package/dist/chunks/{location-tzpqvdng.js → mime-abg70evd.js} +7 -7
- package/dist/chunks/{location-6maatk71.js → mime-ac8xbrkv.js} +41 -41
- package/dist/chunks/{location-addxnjmp.js → mime-addxnjmp.js} +1 -1
- package/dist/chunks/{location-vqgj6vfx.js → mime-ag0cyztb.js} +13 -13
- package/dist/chunks/{location-wb6g3839.js → mime-aj015p4r.js} +6 -6
- package/dist/chunks/{location-mkderzf3.js → mime-apmtag91.js} +35 -35
- package/dist/chunks/{location-6bgcwd53.js → mime-awmqyyvb.js} +37 -37
- package/dist/chunks/{location-k8hpw67k.js → mime-axs6pdy0.js} +5 -5
- package/dist/chunks/{location-scgrse2b.js → mime-b3f8fkhc.js} +5 -5
- package/dist/chunks/{location-0sesqsvn.js → mime-b5nk4gnq.js} +6 -6
- package/dist/chunks/{location-b6gygkdw.js → mime-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-wk3dfdmh.js → mime-bhg4bmfs.js} +10 -10
- package/dist/chunks/{location-9zhh23v8.js → mime-bsprd9wx.js} +3 -3
- package/dist/chunks/{location-nb85r331.js → mime-bwkkkbxh.js} +11 -11
- package/dist/chunks/{location-er3ye3qa.js → mime-c5tpfa0r.js} +15 -15
- package/dist/chunks/{location-9s14hbtr.js → mime-c83dc2pg.js} +13 -13
- package/dist/chunks/{location-t5saaaxp.js → mime-cegsa1ts.js} +39 -39
- package/dist/chunks/{location-py3kkmfq.js → mime-cfsekr6v.js} +2 -2
- package/dist/chunks/{location-69h1251q.js → mime-ckbnwpw7.js} +11 -11
- package/dist/chunks/{location-vbtjb3bz.js → mime-d47gva27.js} +8 -8
- package/dist/chunks/{location-gp96s3k1.js → mime-d4ttvd2m.js} +31 -31
- package/dist/chunks/{location-dxc4ayrt.js → mime-dhda0sfg.js} +15 -15
- package/dist/chunks/{location-y7dx63g1.js → mime-dk6462jd.js} +16 -16
- package/dist/chunks/{location-0b1net69.js → mime-dk90hdkx.js} +8 -8
- package/dist/chunks/{location-dpkg50ah.js → mime-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-ns15zm60.js → mime-e0vtkr8g.js} +6 -6
- package/dist/chunks/{location-ybsbay28.js → mime-e3yr13n7.js} +22 -22
- package/dist/chunks/{location-xy5gggj8.js → mime-e4t8r070.js} +15 -15
- package/dist/chunks/{location-bn6j2djw.js → mime-e76pw870.js} +32 -32
- package/dist/chunks/{location-ss70ch0k.js → mime-ec5havvq.js} +5 -5
- package/dist/chunks/{location-pmv361z8.js → mime-eeg0gr3a.js} +30 -30
- package/dist/chunks/{location-3dcfmx41.js → mime-ef0w8kcj.js} +23 -23
- package/dist/chunks/{location-ef5x83kb.js → mime-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-73tb2d7t.js → mime-eq1pz5kg.js} +3 -3
- package/dist/chunks/{location-p28awedh.js → mime-eqn2j9ra.js} +21 -21
- package/dist/chunks/{location-etq0c3wd.js → mime-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-pghs4qq9.js → mime-eyasq7v2.js} +18 -18
- package/dist/chunks/{location-5yzzbxa7.js → mime-eys57y9b.js} +8 -8
- package/dist/chunks/{location-np07ctdw.js → mime-ffhkx1j7.js} +5 -5
- package/dist/chunks/{location-5pnewhce.js → mime-fjq9394b.js} +29 -29
- package/dist/chunks/{location-gbjeyn0t.js → mime-fm03cyjv.js} +15 -15
- package/dist/chunks/{location-w8bcfg26.js → mime-fy5c28xk.js} +23 -23
- package/dist/chunks/{location-1f1tf6tc.js → mime-g2b71yqp.js} +18 -18
- package/dist/chunks/{location-xfkkasph.js → mime-g5w8qwbj.js} +4 -4
- package/dist/chunks/mime-g7w798jn.js +26 -0
- package/dist/chunks/{location-w255jkmj.js → mime-g8gztt5b.js} +41 -41
- package/dist/chunks/{location-fasbsk8t.js → mime-gc6269q7.js} +20 -20
- package/dist/chunks/{location-gd4qta3r.js → mime-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-ymhgr8h4.js → mime-grrv6e2y.js} +11 -11
- package/dist/chunks/{location-h2b79v29.js → mime-h2b79v29.js} +2 -2
- package/dist/chunks/mime-h2ckq0fq.js +253 -0
- package/dist/chunks/{location-h6vf3j39.js → mime-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-c7bcgwck.js → mime-hc47jsp6.js} +75 -75
- package/dist/chunks/{location-kh9sx4kg.js → mime-hpfvhvya.js} +8 -8
- package/dist/chunks/{location-8x661jfs.js → mime-hsnr0pdx.js} +21 -21
- package/dist/chunks/{location-j56e64zr.js → mime-j56e64zr.js} +1 -1
- package/dist/chunks/{location-adjgd6nn.js → mime-jfgsppse.js} +16 -16
- package/dist/chunks/{location-g7j3mj99.js → mime-jgdpgqgj.js} +4 -4
- package/dist/chunks/{location-72n52cxe.js → mime-jpr19x4b.js} +14 -14
- package/dist/chunks/{location-ykk9be0k.js → mime-jt46dgte.js} +18 -18
- package/dist/chunks/{location-4b027wpp.js → mime-jvnht3j4.js} +76 -76
- package/dist/chunks/{location-jtchp687.js → mime-k8v4d5hq.js} +22 -22
- package/dist/chunks/{location-r9w3djhf.js → mime-kdq8v965.js} +9 -9
- package/dist/chunks/{location-efsmb0h4.js → mime-kphdywnf.js} +16 -16
- package/dist/chunks/{location-70bshhhx.js → mime-ktzfshgy.js} +8 -8
- package/dist/chunks/{location-ha10f5ag.js → mime-kwy4nt5m.js} +22 -22
- package/dist/chunks/{location-m3fdjcah.js → mime-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-8gcqp34a.js → mime-m4k0yg9x.js} +4 -4
- package/dist/chunks/{location-4405jfbf.js → mime-m54tfmvb.js} +13 -13
- package/dist/chunks/{location-53r5d07r.js → mime-m6d4j3h9.js} +4 -4
- package/dist/chunks/{location-mfq58xys.js → mime-m7ydhh7t.js} +7 -7
- package/dist/chunks/{location-m9w0rfyh.js → mime-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-a8bn8zg0.js → mime-magykp64.js} +4 -4
- package/dist/chunks/{location-d6jdpt9s.js → mime-mbmw6p79.js} +22 -22
- package/dist/chunks/{location-rz7hjw9a.js → mime-me85bt6d.js} +4 -4
- package/dist/chunks/{location-xk5qmycy.js → mime-mgz7mky6.js} +36 -36
- package/dist/chunks/{location-t0kkw9j8.js → mime-mz8gnksm.js} +3 -3
- package/dist/chunks/{location-mfns49dk.js → mime-n1hw437h.js} +11 -11
- package/dist/chunks/{location-zsr4wwhv.js → mime-n1n192bv.js} +4 -4
- package/dist/chunks/{location-g31erja1.js → mime-n8sna2wb.js} +9 -9
- package/dist/chunks/{location-am9fw9ch.js → mime-n9hpjtfs.js} +30 -30
- package/dist/chunks/{location-vmtrkad0.js → mime-njq320dc.js} +10 -10
- package/dist/chunks/{location-dvqjns4f.js → mime-nq3cpa63.js} +27 -27
- package/dist/chunks/{location-ncnm8wen.js → mime-ns3eape4.js} +1 -1
- package/dist/chunks/{location-qjhbzp1x.js → mime-nz3b0w12.js} +11 -11
- package/dist/chunks/{location-fa7rx1rj.js → mime-p0jxbjmq.js} +11 -11
- package/dist/chunks/{location-krdch7pj.js → mime-p558d1j2.js} +8 -8
- package/dist/chunks/{location-pjvnvgmy.js → mime-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → mime-pknna89w.js} +1 -1
- package/dist/chunks/{location-j87v20fg.js → mime-pyq30meh.js} +5 -5
- package/dist/chunks/{location-q0xm7vwc.js → mime-q0xm7vwc.js} +2 -2
- package/dist/chunks/{location-0d1d2768.js → mime-q3e7ejxm.js} +29 -29
- package/dist/chunks/{location-vxp3kcg3.js → mime-q4fmv0xv.js} +5 -5
- package/dist/chunks/{location-4xmdng9e.js → mime-q7q1dj79.js} +12 -12
- package/dist/chunks/{location-kryy92pc.js → mime-qdhzfkrq.js} +33 -33
- package/dist/chunks/{location-2xvr5rzx.js → mime-qeayp8bq.js} +5 -5
- package/dist/chunks/{location-trcdmqx3.js → mime-qfxvgh06.js} +10 -10
- package/dist/chunks/{location-1956heqa.js → mime-qm7jrdpz.js} +5 -5
- package/dist/chunks/{location-qnc92qwc.js → mime-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-50w664pd.js → mime-qrdpeksr.js} +22 -22
- package/dist/chunks/{location-qsdy395h.js → mime-qsdy395h.js} +1 -1
- package/dist/chunks/{location-xyafkbt0.js → mime-qxjc9qry.js} +3 -3
- package/dist/chunks/{location-rfnzz8gp.js → mime-qztw7pyw.js} +13 -13
- package/dist/chunks/{location-rrpq0de9.js → mime-r44petzp.js} +12 -12
- package/dist/chunks/{location-rdw6cm16.js → mime-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-s8d7rejh.js → mime-rhjbct0v.js} +4 -4
- package/dist/chunks/{location-73beahz8.js → mime-rjm2fn4k.js} +6 -6
- package/dist/chunks/{location-51jr6g9e.js → mime-rjt2bsyt.js} +18 -18
- package/dist/chunks/{location-j4vxd5gc.js → mime-rnp3p4gd.js} +28 -28
- package/dist/chunks/{location-fqb2p7cx.js → mime-ryr25ayn.js} +4 -4
- package/dist/chunks/{location-z4ggt3ag.js → mime-s08q7c06.js} +20 -20
- package/dist/chunks/{location-zfs8ae4p.js → mime-s0b7t9fd.js} +4 -4
- package/dist/chunks/mime-s0xt187s.js +507 -0
- package/dist/chunks/{location-qknp1kwt.js → mime-s3d46ba8.js} +20 -20
- package/dist/chunks/{location-13xr13rz.js → mime-s4kq9h0g.js} +24 -24
- package/dist/chunks/{location-x1xn1kyr.js → mime-s5666wwp.js} +21 -21
- package/dist/chunks/{location-pg7b5kmm.js → mime-sd7az2cx.js} +4 -4
- package/dist/chunks/{location-5sn2jfj9.js → mime-sesb8crn.js} +24 -24
- package/dist/chunks/{location-03g2y37q.js → mime-sfgte76k.js} +11 -11
- package/dist/chunks/{location-29waf03z.js → mime-shh3msea.js} +3 -3
- package/dist/chunks/{location-4p2rvbap.js → mime-spvja0zg.js} +15 -15
- package/dist/chunks/{location-0hp6n8qm.js → mime-sq5xvr65.js} +87 -87
- package/dist/chunks/{location-dmq45pp6.js → mime-sy2k7xk8.js} +47 -47
- package/dist/chunks/{location-wbavqyay.js → mime-t74a4f50.js} +4 -4
- package/dist/chunks/{location-tazgh4e4.js → mime-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → mime-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-tdstcens.js → mime-tdstcens.js} +1 -1
- package/dist/chunks/{location-kdnkv6vg.js → mime-tt3ha5ks.js} +24 -24
- package/dist/chunks/{location-v0es1rhs.js → mime-v0es1rhs.js} +2 -2
- package/dist/chunks/{location-c6t0g6n9.js → mime-vapg3z9n.js} +3 -3
- package/dist/chunks/{location-ses0sfa7.js → mime-vd4e7scs.js} +6 -6
- package/dist/chunks/{location-h4ckqw4f.js → mime-vdn23gb8.js} +8 -8
- package/dist/chunks/{location-veqvce7d.js → mime-veqvce7d.js} +1 -1
- package/dist/chunks/{location-mpa2g5zd.js → mime-vj8yzvgx.js} +32 -32
- package/dist/chunks/{location-hmp1x13k.js → mime-vks5txr6.js} +2 -2
- package/dist/chunks/{location-58072hz9.js → mime-vx3jgdek.js} +3 -3
- package/dist/chunks/{location-vzcthcp8.js → mime-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-vzs5sf6e.js → mime-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-3q2mb5aa.js → mime-w16xktph.js} +148 -148
- package/dist/chunks/{location-w3wsvvr9.js → mime-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → mime-wd87259q.js} +1 -1
- package/dist/chunks/{location-txa3gs2n.js → mime-wnm2730d.js} +24 -24
- package/dist/chunks/{location-tqwy6r45.js → mime-wnw44jfj.js} +3 -3
- package/dist/chunks/{location-ryxsgh7t.js → mime-ww52myg8.js} +14 -14
- package/dist/chunks/{location-5e34y3kq.js → mime-wyja02d2.js} +29 -29
- package/dist/chunks/{location-x1ezjp6w.js → mime-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-rkj7dp5f.js → mime-x339f5qa.js} +12 -12
- package/dist/chunks/{location-0d2m1esc.js → mime-xdb2at9q.js} +18 -18
- package/dist/chunks/{location-jdjpygpn.js → mime-xgp0qdrr.js} +1 -1
- package/dist/chunks/{location-xkntkrq7.js → mime-xkntkrq7.js} +2 -2
- package/dist/chunks/{location-9cfz2ss6.js → mime-xnyz6zyr.js} +18 -18
- package/dist/chunks/{location-nz9vh4f0.js → mime-xxkch54m.js} +48 -48
- package/dist/chunks/{location-3sqv75dt.js → mime-xztw10wv.js} +10 -10
- package/dist/chunks/{location-y1fvbwt7.js → mime-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-vsya7gwe.js → mime-y5pysmm8.js} +5 -5
- package/dist/chunks/{location-ve85v3xb.js → mime-y5rf7nzv.js} +4 -4
- package/dist/chunks/{location-sfyepjcn.js → mime-y6w2b009.js} +10 -10
- package/dist/chunks/{location-5c2c9fqf.js → mime-y968wptn.js} +20 -20
- package/dist/chunks/{location-ac3w4tg1.js → mime-ygz1yfbt.js} +11 -11
- package/dist/chunks/{location-yrhqyw5v.js → mime-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-y3tn1ts5.js → mime-yxj72d5f.js} +37 -37
- package/dist/chunks/{location-z0bkrqjs.js → mime-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-9refcsmz.js → mime-z1p8jhdj.js} +26 -26
- package/dist/chunks/{location-z72ax6ks.js → mime-zbfa0p50.js} +9 -9
- package/dist/chunks/{location-zee1rnkq.js → mime-zcrspsvn.js} +4 -4
- package/dist/chunks/{location-435mrn8p.js → mime-zgyaz76r.js} +32 -32
- package/dist/chunks/{location-7z9jfkyh.js → mime-zr0r55n7.js} +11 -11
- package/dist/chunks/{location-zr2ceqn5.js → mime-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-zxq2ej10.js → mime-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-hznqgj95.js → mime-zz8ge4b6.js} +6 -6
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- 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 +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- 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 +102 -102
- package/dist/config/plugin/skill.js +137 -137
- 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 +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +73 -73
- package/dist/database/database.js +70 -70
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- 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 +93 -93
- 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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +70 -70
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- 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 +91 -91
- 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 +355 -355
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +77 -77
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +75 -75
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +98 -98
- package/dist/models-dev.js +95 -95
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- 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/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +76 -76
- 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 +344 -344
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +218 -218
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +125 -125
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +201 -201
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +205 -205
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- 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 +126 -126
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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 +5 -5
- 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 +92 -92
- package/dist/v1/config/permission.js +3 -3
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/location-619r8v3y.js +0 -18
- package/dist/chunks/location-drek8w4c.js +0 -253
- package/dist/chunks/location-h5vnjv2h.js +0 -507
- package/dist/chunks/location-qf4hcvb6.js +0 -26
- /package/dist/chunks/{location-0qkdqm5v.js → mime-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → mime-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → mime-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → mime-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → mime-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → mime-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → mime-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → mime-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → mime-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-34c7v6d4.js → mime-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → mime-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → mime-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3t0ybcrp.js → mime-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → mime-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → mime-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → mime-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → mime-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → mime-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → mime-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → mime-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → mime-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → mime-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-5qd3pb7m.js → mime-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → mime-6prwharc.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → mime-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → mime-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → mime-822emrt2.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → mime-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → mime-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → mime-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → mime-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → mime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → mime-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → mime-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → mime-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → mime-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → mime-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → mime-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → mime-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → mime-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → mime-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → mime-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → mime-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → mime-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → mime-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → mime-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → mime-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → mime-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → mime-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → mime-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → mime-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → mime-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → mime-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → mime-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → mime-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → mime-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → mime-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → mime-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → mime-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → mime-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → mime-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hjbc5kem.js → mime-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → mime-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → mime-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → mime-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → mime-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → mime-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → mime-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → mime-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → mime-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → mime-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → mime-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → mime-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → mime-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → mime-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → mime-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → mime-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → mime-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → mime-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → mime-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → mime-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → mime-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → mime-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → mime-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → mime-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → mime-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → mime-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → mime-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → mime-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → mime-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → mime-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → mime-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → mime-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → mime-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → mime-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → mime-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → mime-z9919s4g.js} +0 -0
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-xztw10wv.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./mime-jfgsppse.js";
|
|
7
7
|
import {
|
|
8
8
|
ID15,
|
|
9
9
|
OAuth3,
|
|
10
10
|
Event19,
|
|
11
11
|
Service77
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-4wv1d4kf.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-addxnjmp.js";
|
|
16
16
|
import {
|
|
17
17
|
ID14,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./mime-5z44n1zm.js";
|
|
20
20
|
import {
|
|
21
21
|
which2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./mime-qaymkmh1.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID13,
|
|
25
|
+
Service75
|
|
26
|
+
} from "./mime-s4kq9h0g.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
ID12
|
|
29
|
+
} from "./mime-wyja02d2.js";
|
|
30
30
|
import {
|
|
31
31
|
iife2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./mime-1kg9ymc8.js";
|
|
33
33
|
import {
|
|
34
34
|
configuredSettings2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./mime-zz8ge4b6.js";
|
|
36
36
|
|
|
37
37
|
// src/plugin/provider/azure.ts
|
|
38
38
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -67,18 +67,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
67
67
|
}));
|
|
68
68
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
69
69
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
70
|
-
function
|
|
70
|
+
function make5(endpoints = {
|
|
71
71
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
72
72
|
management: "https://management.azure.com"
|
|
73
73
|
}) {
|
|
74
74
|
return define({
|
|
75
75
|
id: "opencode.provider.azure",
|
|
76
76
|
effect: Effect.fn(function* (ctx) {
|
|
77
|
-
const configured = yield* configuredSettings2(
|
|
77
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
78
78
|
const processes = yield* AppProcess.Service;
|
|
79
|
-
const bus = yield*
|
|
79
|
+
const bus = yield* Service82;
|
|
80
80
|
const credentials = yield* Service77;
|
|
81
|
-
const providers = yield*
|
|
81
|
+
const providers = yield* Service75;
|
|
82
82
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
83
83
|
const tokens = new Map;
|
|
84
84
|
const resourceIDs = new Map;
|
|
@@ -116,13 +116,13 @@ function make4(endpoints = {
|
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.integration.transform((editor) => {
|
|
118
118
|
editor.method.update({
|
|
119
|
-
integrationID:
|
|
119
|
+
integrationID: ID13.azure,
|
|
120
120
|
method: { type: "key", label: "API key", form: form() }
|
|
121
121
|
});
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "oauth",
|
|
@@ -152,7 +152,7 @@ function make4(endpoints = {
|
|
|
152
152
|
});
|
|
153
153
|
});
|
|
154
154
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
155
|
-
const connection = yield* ctx.integration.connection.active(
|
|
155
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
156
156
|
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
157
157
|
return { connection, resource: credentialResource(stored?.value) };
|
|
158
158
|
});
|
|
@@ -192,7 +192,7 @@ function make4(endpoints = {
|
|
|
192
192
|
}));
|
|
193
193
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
194
194
|
const connection = loaded.connection;
|
|
195
|
-
const settings = (yield* providers.get(
|
|
195
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
196
196
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
197
197
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
198
198
|
if (loaded.connection !== connection)
|
|
@@ -214,11 +214,11 @@ function make4(endpoints = {
|
|
|
214
214
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
215
215
|
if (!found)
|
|
216
216
|
return;
|
|
217
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
217
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
218
218
|
return;
|
|
219
219
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
220
220
|
return;
|
|
221
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
221
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
222
222
|
id.toLowerCase(),
|
|
223
223
|
id
|
|
224
224
|
]));
|
|
@@ -231,11 +231,11 @@ function make4(endpoints = {
|
|
|
231
231
|
yield* ctx.model.reload();
|
|
232
232
|
});
|
|
233
233
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
234
|
-
const resourceFor = (provider) => provider.id ===
|
|
234
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
235
235
|
Object.assign(loaded, yield* load());
|
|
236
236
|
yield* ctx.provider.transform((evt) => {
|
|
237
237
|
for (const item of evt.list()) {
|
|
238
|
-
if (item.provider.id !==
|
|
238
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
239
239
|
continue;
|
|
240
240
|
const resourceName = resourceFor(item.provider);
|
|
241
241
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -250,7 +250,7 @@ function make4(endpoints = {
|
|
|
250
250
|
};
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const item = evt.get(
|
|
253
|
+
const item = evt.get(ID13.azure);
|
|
254
254
|
if (!item)
|
|
255
255
|
return;
|
|
256
256
|
evt.add({
|
|
@@ -261,7 +261,7 @@ function make4(endpoints = {
|
|
|
261
261
|
});
|
|
262
262
|
yield* ctx.model.transform((models) => {
|
|
263
263
|
for (const item of models.provider.list()) {
|
|
264
|
-
if (item.provider.id !==
|
|
264
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
265
265
|
continue;
|
|
266
266
|
const resourceName = resourceFor(item.provider);
|
|
267
267
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -273,20 +273,20 @@ function make4(endpoints = {
|
|
|
273
273
|
}
|
|
274
274
|
if (!loaded.deployments)
|
|
275
275
|
return;
|
|
276
|
-
const catalog = models.list(
|
|
276
|
+
const catalog = models.list(ID13.azure);
|
|
277
277
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
278
278
|
for (const model of catalog) {
|
|
279
279
|
if (!deployed.has(model.id))
|
|
280
|
-
models.remove(
|
|
280
|
+
models.remove(ID13.azure, model.id);
|
|
281
281
|
}
|
|
282
282
|
for (const [id, model] of deployed) {
|
|
283
|
-
models.update(
|
|
283
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
287
287
|
yield* refresh().pipe(Effect.forkScoped);
|
|
288
288
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
289
|
-
const connection = yield* ctx.integration.connection.active(
|
|
289
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
290
290
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
291
291
|
return;
|
|
292
292
|
})) : undefined;
|
|
@@ -298,7 +298,7 @@ function make4(endpoints = {
|
|
|
298
298
|
return `Bearer ${current.access}`;
|
|
299
299
|
});
|
|
300
300
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
301
|
-
if (evt.model.providerID !==
|
|
301
|
+
if (evt.model.providerID !== ID13.azure)
|
|
302
302
|
return;
|
|
303
303
|
const authorization = yield* bearer(evt.request.url);
|
|
304
304
|
if (!authorization)
|
|
@@ -307,9 +307,9 @@ function make4(endpoints = {
|
|
|
307
307
|
evt.request.headers.delete("x-api-key");
|
|
308
308
|
evt.request.headers.set("authorization", authorization);
|
|
309
309
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
310
|
-
}), { providerID:
|
|
310
|
+
}), { providerID: ID13.azure });
|
|
311
311
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
312
|
-
if (evt.model.providerID !==
|
|
312
|
+
if (evt.model.providerID !== ID13.azure)
|
|
313
313
|
return;
|
|
314
314
|
const authorization = yield* bearer(evt.url);
|
|
315
315
|
if (!authorization)
|
|
@@ -318,11 +318,11 @@ function make4(endpoints = {
|
|
|
318
318
|
delete evt.headers["x-api-key"];
|
|
319
319
|
evt.headers.authorization = authorization;
|
|
320
320
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
321
|
-
}), { providerID:
|
|
321
|
+
}), { providerID: ID13.azure });
|
|
322
322
|
})
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
var AzurePlugin2 =
|
|
325
|
+
var AzurePlugin2 = make5();
|
|
326
326
|
function resolveResourceName(settings, fallback) {
|
|
327
327
|
const configured = settings?.resourceName;
|
|
328
328
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -352,11 +352,11 @@ function deployedModels(deployments, catalog) {
|
|
|
352
352
|
const model = catalogModel(models, deployment);
|
|
353
353
|
if (!model)
|
|
354
354
|
return [];
|
|
355
|
-
const id =
|
|
355
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
356
356
|
const info = {
|
|
357
357
|
...structuredClone(model),
|
|
358
358
|
id,
|
|
359
|
-
modelID:
|
|
359
|
+
modelID: ID12.make(deployment.name),
|
|
360
360
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
361
361
|
};
|
|
362
362
|
return [[id, info]];
|
|
@@ -378,4 +378,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
378
378
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
export {
|
|
381
|
+
export { make5, AzurePlugin2 };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service78
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-vd4e7scs.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service61
|
|
6
|
+
} from "./mime-9mpafgh5.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service25
|
|
14
|
+
} from "./mime-hsnr0pdx.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./mime-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input12,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin14,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description5,
|
|
27
|
+
name: () => name12
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name12 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description5 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input12 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin14 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
52
|
+
const permission = yield* Service61;
|
|
53
53
|
const forms = yield* Service78;
|
|
54
|
-
const websearch = yield*
|
|
54
|
+
const websearch = yield* Service25;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name12,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description5,
|
|
59
|
+
input: Input12,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name12,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name12];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name12, NO_RESULTS2, description5, Input12, Plugin14, exports_websearch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-m7ydhh7t.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-xgp0qdrr.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/hooks.ts
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service65,
|
|
10
|
+
node: () => node68
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service65 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service65.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node68 = makeLocationNode({ service: Service65, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service65, node68, exports_hooks };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service82,
|
|
4
|
+
node86
|
|
5
|
+
} from "./mime-jfgsppse.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service69,
|
|
8
|
+
node73
|
|
9
|
+
} from "./mime-ag0cyztb.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./mime-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event13,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service57,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node60,
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service57 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event13 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -56,7 +56,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
56
56
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
57
57
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var resolve3 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
60
60
|
const manifest = yield* inspect2(input.origin);
|
|
61
61
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
62
62
|
});
|
|
@@ -75,10 +75,10 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
81
|
-
const bus = yield*
|
|
80
|
+
const kv = yield* Service69;
|
|
81
|
+
const bus = yield* Service82;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
84
84
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event13.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service57.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event13.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event13.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node60 = makeGlobalNode({ service: Service57, layer, deps: [httpClient, node73, node86] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service57, Event13, inspect2, resolve3, node60, exports_wellknown };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service45,
|
|
3
|
+
node47
|
|
4
|
+
} from "./mime-fjq9394b.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make20,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./mime-rhjbct0v.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./mime-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
16
|
var exports_instructions5 = {};
|
|
17
17
|
__export(exports_instructions5, {
|
|
18
18
|
ReferenceInstructions: () => exports_instructions5,
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
19
|
+
Service: () => Service36,
|
|
20
|
+
node: () => node39
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,18 +57,18 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service36 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service45;
|
|
64
|
+
return Service36.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
68
68
|
path: reference.path,
|
|
69
69
|
description: reference.description
|
|
70
70
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
71
|
-
return
|
|
71
|
+
return make20({
|
|
72
72
|
key: Key3.make("core/reference-guidance"),
|
|
73
73
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
74
74
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node39 = makeLocationNode({ service: Service36, layer, deps: [node47] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service36, node39, exports_instructions5 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./mime-s4kq9h0g.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID12,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info21,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./mime-wyja02d2.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./mime-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
16
|
var exports_models2 = {};
|
|
@@ -22,7 +22,7 @@ __export(exports_models2, {
|
|
|
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))
|
|
@@ -75,8 +75,8 @@ function derive3(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,
|