@opencode/core 0.0.0-dev-20502 → 0.0.0-dev-20503
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 +81 -81
- 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/{state-6dx8ajqs.js → file-mutation-03b168as.js} +9 -9
- package/dist/chunks/{state-9h4a5xab.js → file-mutation-03xyy9gs.js} +8 -8
- package/dist/chunks/{state-8sngcwq1.js → file-mutation-0bh8r4qe.js} +35 -35
- package/dist/chunks/{state-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{state-0vbcp93d.js → file-mutation-0vbcp93d.js} +2 -2
- package/dist/chunks/{state-q1bq5n4v.js → file-mutation-0wn236jq.js} +12 -12
- package/dist/chunks/{state-0bxg4b7b.js → file-mutation-14cybr47.js} +3 -3
- package/dist/chunks/{state-mf9rp0da.js → file-mutation-1a0w67hg.js} +10 -10
- package/dist/chunks/{state-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{state-wgramqyd.js → file-mutation-1gpac7dd.js} +11 -11
- package/dist/chunks/{state-t304atgw.js → file-mutation-1p0f53xs.js} +172 -172
- package/dist/chunks/{state-n8jxvm2h.js → file-mutation-1vcx5agm.js} +47 -47
- package/dist/chunks/{state-d858xzj7.js → file-mutation-1y283654.js} +4 -4
- package/dist/chunks/{state-azmj554m.js → file-mutation-283vt565.js} +21 -21
- package/dist/chunks/{state-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{state-5nd31jak.js → file-mutation-2ftrkget.js} +9 -9
- package/dist/chunks/{state-yqntvyew.js → file-mutation-2krkkzng.js} +35 -35
- package/dist/chunks/{state-6yy2nrsp.js → file-mutation-2y83zbxy.js} +20 -20
- package/dist/chunks/{state-tzfegwcm.js → file-mutation-2yx7qcbq.js} +14 -14
- package/dist/chunks/{state-qf049b19.js → file-mutation-32j3tk0m.js} +30 -30
- package/dist/chunks/{state-t6f500wt.js → file-mutation-34mqxceb.js} +18 -18
- package/dist/chunks/{state-f2tgmaa5.js → file-mutation-384cp3nk.js} +9 -9
- package/dist/chunks/{state-h2b79v29.js → file-mutation-3cegwx68.js} +2 -2
- package/dist/chunks/{state-nqndf85r.js → file-mutation-3d8bxjve.js} +23 -23
- package/dist/chunks/{state-73c1v7ws.js → file-mutation-3f7cc1vb.js} +10 -10
- package/dist/chunks/{state-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{state-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{state-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{state-zytnfd28.js → file-mutation-3tads3hq.js} +30 -30
- package/dist/chunks/{state-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{state-dmf0tg3n.js → file-mutation-3wd534dz.js} +25 -25
- package/dist/chunks/{state-cqxgxmhy.js → file-mutation-3wyjcsxj.js} +4 -4
- package/dist/chunks/{state-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{state-cb2298qb.js → file-mutation-40hhf25d.js} +17 -17
- package/dist/chunks/{state-8c1sptgz.js → file-mutation-48p0xart.js} +33 -33
- package/dist/chunks/{state-nhpep66j.js → file-mutation-4ghg5v1p.js} +23 -23
- package/dist/chunks/{state-2txgt396.js → file-mutation-4kdaq46n.js} +50 -50
- package/dist/chunks/{state-pqym5gsf.js → file-mutation-4krkq3fv.js} +6 -6
- package/dist/chunks/{state-4ts7tf6z.js → file-mutation-4ts7tf6z.js} +2 -2
- package/dist/chunks/{state-n9a0q8nq.js → file-mutation-4whbrktx.js} +18 -18
- package/dist/chunks/{state-82ax3vh0.js → file-mutation-53ryxxkw.js} +18 -18
- package/dist/chunks/{state-54ma36ye.js → file-mutation-54ma36ye.js} +1 -1
- package/dist/chunks/{state-1ygqh575.js → file-mutation-56gdpj1q.js} +9 -9
- package/dist/chunks/{state-1yap1j0z.js → file-mutation-5apd6674.js} +13 -13
- package/dist/chunks/{state-z8t1202s.js → file-mutation-5b2p38c7.js} +47 -47
- package/dist/chunks/{state-5d7h1caw.js → file-mutation-5c7jdcqd.js} +23 -23
- package/dist/chunks/{state-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{state-bp8hqz04.js → file-mutation-5eqgw8nb.js} +8 -8
- package/dist/chunks/{state-hrn7p0dv.js → file-mutation-5j7yc26e.js} +35 -35
- package/dist/chunks/{state-n8nanv1k.js → file-mutation-5sktg2nb.js} +13 -13
- package/dist/chunks/{state-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{state-cren2jfr.js → file-mutation-5t8k9hbq.js} +9 -9
- package/dist/chunks/{state-2bthm84s.js → file-mutation-5x058zpe.js} +57 -57
- package/dist/chunks/{state-2cntd9m5.js → file-mutation-61tnqj9c.js} +11 -11
- package/dist/chunks/{state-0mvxp7h8.js → file-mutation-621hzgfh.js} +34 -34
- package/dist/chunks/{state-xvew0b96.js → file-mutation-6483dnt3.js} +22 -22
- package/dist/chunks/{state-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{state-qpyzbkc5.js → file-mutation-6e4t62aa.js} +32 -32
- package/dist/chunks/{state-pm9q0v6k.js → file-mutation-6fj7rg4c.js} +39 -39
- package/dist/chunks/{state-mvfdckk2.js → file-mutation-6kg1vfnr.js} +8 -8
- package/dist/chunks/{state-tz1r4rmt.js → file-mutation-6s6aqmb9.js} +11 -11
- package/dist/chunks/{state-4kqs1p7e.js → file-mutation-6yg01ps7.js} +42 -42
- package/dist/chunks/{state-k1qrnqst.js → file-mutation-6ysrkrkr.js} +8 -8
- package/dist/chunks/{state-y7etkmrn.js → file-mutation-76r92777.js} +33 -33
- package/dist/chunks/{state-qnp5pb1d.js → file-mutation-7b8rsjb2.js} +16 -16
- package/dist/chunks/{state-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{state-43k6mxyp.js → file-mutation-7dfd4tpy.js} +28 -28
- package/dist/chunks/{state-2dafkw8j.js → file-mutation-7hx94mfk.js} +10 -10
- package/dist/chunks/{state-7fqwg69p.js → file-mutation-7sga5tfj.js} +6 -6
- package/dist/chunks/{state-1dvck2a7.js → file-mutation-84h8c373.js} +2 -2
- package/dist/chunks/{state-84txncab.js → file-mutation-84txncab.js} +1 -1
- package/dist/chunks/{state-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{state-hvvbh0a1.js → file-mutation-8kr2nk9s.js} +13 -13
- package/dist/chunks/{state-ss358qx3.js → file-mutation-8n9x2wf6.js} +3 -3
- package/dist/chunks/{state-cfsekr6v.js → file-mutation-8sze2n9a.js} +6 -6
- package/dist/chunks/{state-4xmcw5g1.js → file-mutation-8zecg49j.js} +5 -5
- package/dist/chunks/{state-pxhak851.js → file-mutation-954vm9zf.js} +6 -6
- package/dist/chunks/{state-vt7a2mk5.js → file-mutation-9cj6v09y.js} +10 -10
- package/dist/chunks/{state-qpnkeqbx.js → file-mutation-9dsxywjb.js} +9 -9
- package/dist/chunks/{state-m8qawmsc.js → file-mutation-9pms28ae.js} +32 -32
- package/dist/chunks/file-mutation-9sh4wc5j.js +18 -0
- package/dist/chunks/{state-emjdsf9h.js → file-mutation-9vepgddq.js} +16 -16
- package/dist/chunks/{state-p2yrhkbt.js → file-mutation-a0m6mwa9.js} +20 -20
- package/dist/chunks/{state-0dzb2fh1.js → file-mutation-a5nkqtq4.js} +24 -24
- package/dist/chunks/{state-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{state-zw2hpfmh.js → file-mutation-addxnjmp.js} +4 -4
- package/dist/chunks/{state-gqxhvq1m.js → file-mutation-aearsdrc.js} +11 -11
- package/dist/chunks/{state-xm5ch7ya.js → file-mutation-ah6xfmj6.js} +48 -48
- package/dist/chunks/{state-w8xd1cjb.js → file-mutation-aj7qh7fj.js} +29 -29
- package/dist/chunks/{state-8qyfkx8k.js → file-mutation-ajzsbz6h.js} +13 -13
- package/dist/chunks/{state-7j4r25vm.js → file-mutation-akm47gtx.js} +19 -19
- package/dist/chunks/{state-e1327jd3.js → file-mutation-awp6wegc.js} +16 -16
- package/dist/chunks/{state-hbyhqfhs.js → file-mutation-axs6pdy0.js} +5 -5
- package/dist/chunks/{state-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{state-sykc9y4a.js → file-mutation-b7v4cx43.js} +5 -5
- package/dist/chunks/{state-c276ajz9.js → file-mutation-b8r216kk.js} +8 -8
- package/dist/chunks/{state-dhx4zg22.js → file-mutation-bck2gesn.js} +3 -3
- package/dist/chunks/{state-b1etsjzr.js → file-mutation-bdeycrex.js} +20 -20
- package/dist/chunks/{state-b5gwpyg7.js → file-mutation-bpc56001.js} +24 -24
- package/dist/chunks/{state-00fpxpn5.js → file-mutation-bvb1wd89.js} +12 -12
- package/dist/chunks/{state-4et8za5p.js → file-mutation-bwqxw6t0.js} +12 -12
- package/dist/chunks/{state-cg1vask2.js → file-mutation-c4gkmjjm.js} +15 -15
- package/dist/chunks/{state-1spa2br4.js → file-mutation-c55h9b9c.js} +23 -23
- package/dist/chunks/{state-9wszy0je.js → file-mutation-cbvtcr2c.js} +10 -10
- package/dist/chunks/{state-28mma7dt.js → file-mutation-cj33ffch.js} +25 -25
- package/dist/chunks/{state-cmwkp3r5.js → file-mutation-cmwkp3r5.js} +1 -1
- package/dist/chunks/{state-bs8y318y.js → file-mutation-cn6yq4zj.js} +33 -33
- package/dist/chunks/{state-za2r5g4y.js → file-mutation-cqrykep0.js} +32 -32
- package/dist/chunks/{state-9qxc37cz.js → file-mutation-cshtx1th.js} +15 -15
- package/dist/chunks/{state-5axtk5nv.js → file-mutation-ctg52dyk.js} +14 -14
- package/dist/chunks/{state-tcay1cqt.js → file-mutation-d1mtykxg.js} +6 -6
- package/dist/chunks/{state-eg6cnjkw.js → file-mutation-d49kn6zd.js} +11 -11
- package/dist/chunks/{state-hv12hhzw.js → file-mutation-datbym9p.js} +34 -34
- package/dist/chunks/{state-44pdqs77.js → file-mutation-dbv05mm3.js} +4 -4
- package/dist/chunks/{state-dhmh7aw6.js → file-mutation-ddt2bs9e.js} +4 -4
- package/dist/chunks/{state-g0686x85.js → file-mutation-dg4kzjgv.js} +23 -23
- package/dist/chunks/{state-qmqgtz8f.js → file-mutation-djszqvmq.js} +9 -9
- package/dist/chunks/{state-qsjg5rnf.js → file-mutation-dktq002j.js} +13 -13
- package/dist/chunks/{state-dpkg50ah.js → file-mutation-dpkg50ah.js} +1 -1
- package/dist/chunks/{state-dc42k26b.js → file-mutation-dqbbafza.js} +9 -9
- package/dist/chunks/{state-a2mg75pg.js → file-mutation-dtv13hc7.js} +15 -15
- package/dist/chunks/file-mutation-dwvyxmfd.js +253 -0
- package/dist/chunks/{state-h3q04455.js → file-mutation-dz2srxaj.js} +13 -13
- package/dist/chunks/file-mutation-e4jqjrdf.js +507 -0
- package/dist/chunks/{state-pykgkb85.js → file-mutation-e4r65b0s.js} +27 -27
- package/dist/chunks/{state-wbfffxyw.js → file-mutation-e5th8n74.js} +32 -32
- package/dist/chunks/{state-952edfyj.js → file-mutation-e94kbae8.js} +13 -13
- package/dist/chunks/{state-hd48tzav.js → file-mutation-eaac52dn.js} +5 -5
- package/dist/chunks/{state-8958pznr.js → file-mutation-eb6by5fw.js} +19 -19
- package/dist/chunks/{state-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{state-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{state-tge9ftn1.js → file-mutation-ex7a17jg.js} +11 -11
- package/dist/chunks/{state-rd41a4h6.js → file-mutation-ezex4zz3.js} +18 -18
- package/dist/chunks/{state-e8vwfchq.js → file-mutation-f5qq0z73.js} +6 -6
- package/dist/chunks/{state-71az546q.js → file-mutation-f75zav2x.js} +2 -2
- package/dist/chunks/{state-vapy00qs.js → file-mutation-f9jr4tkt.js} +13 -13
- package/dist/chunks/{state-fk671aj4.js → file-mutation-fd1yny8f.js} +1 -1
- package/dist/chunks/{state-ay8gqnx6.js → file-mutation-fj2avv8b.js} +8 -8
- package/dist/chunks/{state-n37c4crj.js → file-mutation-fqcgpcra.js} +9 -9
- package/dist/chunks/{state-cmd29g7k.js → file-mutation-g2d7gbby.js} +28 -28
- package/dist/chunks/{state-2h54n0ee.js → file-mutation-g7cq406x.js} +22 -22
- package/dist/chunks/{state-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{state-m9b2qrsw.js → file-mutation-gfeycrp9.js} +15 -15
- package/dist/chunks/{state-zpbznynk.js → file-mutation-gmcpagzm.js} +11 -11
- package/dist/chunks/{state-1pcxnx7b.js → file-mutation-gnz26a86.js} +17 -17
- package/dist/chunks/{state-tx9w5tca.js → file-mutation-gs3s1a1g.js} +8 -8
- package/dist/chunks/{state-hktgrrj9.js → file-mutation-gthcz8z2.js} +7 -7
- package/dist/chunks/{state-pcnc1d95.js → file-mutation-gxd5h73n.js} +13 -13
- package/dist/chunks/{state-zyvj22ag.js → file-mutation-h23k3th1.js} +5 -5
- package/dist/chunks/{state-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{state-anzqh0py.js → file-mutation-hbz1qbx4.js} +11 -11
- package/dist/chunks/{state-14q94ps1.js → file-mutation-hf3dma57.js} +24 -24
- package/dist/chunks/{state-f5r29w5t.js → file-mutation-hhkvz8ms.js} +10 -10
- package/dist/chunks/{state-ap73x2p1.js → file-mutation-hjwd21e5.js} +4 -4
- package/dist/chunks/{state-eket8g0s.js → file-mutation-hmrtp4nr.js} +9 -9
- package/dist/chunks/{state-40prtpnq.js → file-mutation-hvpsxrjc.js} +44 -44
- package/dist/chunks/{state-nptr00se.js → file-mutation-j4gfp1rq.js} +12 -12
- package/dist/chunks/{state-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{state-4gpan3tv.js → file-mutation-j9kjg828.js} +24 -24
- package/dist/chunks/{state-vxhx592f.js → file-mutation-j9qk85cx.js} +11 -11
- package/dist/chunks/{state-nvvhg2y4.js → file-mutation-jd31x3zp.js} +35 -35
- package/dist/chunks/{state-zd77a6te.js → file-mutation-jfcrxy8b.js} +17 -17
- package/dist/chunks/{state-9e5bzkjp.js → file-mutation-kb9j3d72.js} +3 -3
- package/dist/chunks/{state-3a1njz6g.js → file-mutation-khp7n7hd.js} +33 -33
- package/dist/chunks/{state-cwjkr794.js → file-mutation-km6n45td.js} +19 -19
- package/dist/chunks/{state-m0kb4wyj.js → file-mutation-kmnvca5z.js} +33 -33
- package/dist/chunks/{state-63db42yp.js → file-mutation-kvycfk4x.js} +2 -2
- package/dist/chunks/{state-m3fdjcah.js → file-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{state-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{state-v9ndcyjw.js → file-mutation-mg9035r8.js} +25 -25
- package/dist/chunks/{state-wcrcred6.js → file-mutation-mjjtmnz0.js} +16 -16
- package/dist/chunks/{state-kvvk39gs.js → file-mutation-mjymc32g.js} +4 -4
- package/dist/chunks/{state-qy34gznv.js → file-mutation-mktej9kf.js} +10 -10
- package/dist/chunks/{state-cnc3hz65.js → file-mutation-mttyh05y.js} +37 -37
- package/dist/chunks/{state-v0gzbwpf.js → file-mutation-mvpaz0h1.js} +26 -26
- package/dist/chunks/{state-w51dn2qq.js → file-mutation-mysr5091.js} +18 -18
- package/dist/chunks/{state-f29mbr7f.js → file-mutation-n1n192bv.js} +4 -4
- package/dist/chunks/{state-rmbqsmkn.js → file-mutation-n77a2t5y.js} +11 -11
- package/dist/chunks/{state-dsepe0gs.js → file-mutation-n8k9q2ek.js} +43 -43
- package/dist/chunks/{state-krwkx5bh.js → file-mutation-ndxqta2r.js} +29 -29
- package/dist/chunks/{state-wmjfe5mb.js → file-mutation-nemrx4g2.js} +4 -4
- package/dist/chunks/{state-yptytea3.js → file-mutation-nhsw2qbx.js} +13 -13
- package/dist/chunks/{state-axk49psg.js → file-mutation-nr1r0tpc.js} +5 -5
- package/dist/chunks/{state-rk1r2hx8.js → file-mutation-ns3eape4.js} +1 -1
- package/dist/chunks/{state-jq6ka8n1.js → file-mutation-p0s7m4kr.js} +20 -20
- package/dist/chunks/{state-prpdjzp2.js → file-mutation-p0swatq2.js} +6 -6
- package/dist/chunks/{state-5jfs6fcr.js → file-mutation-p99m56c0.js} +87 -87
- package/dist/chunks/{state-p7h4szz7.js → file-mutation-pjdpct4h.js} +26 -26
- package/dist/chunks/{state-v8nq70zj.js → file-mutation-pjrca08j.js} +15 -15
- package/dist/chunks/{state-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{state-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{state-hqy2492m.js → file-mutation-pnygdsj8.js} +3 -3
- package/dist/chunks/{state-aern4wpy.js → file-mutation-pv7hrw8h.js} +32 -32
- package/dist/chunks/{state-epcwd8bb.js → file-mutation-pzkaeccr.js} +22 -22
- package/dist/chunks/{state-q0xm7vwc.js → file-mutation-q0xm7vwc.js} +2 -2
- package/dist/chunks/{state-gg5anxjq.js → file-mutation-q1a5cy3r.js} +25 -25
- package/dist/chunks/{state-mh0jem6y.js → file-mutation-q69z4fst.js} +5 -5
- package/dist/chunks/{state-qgn6gcr1.js → file-mutation-qgn6gcr1.js} +1 -1
- package/dist/chunks/{state-p8n712dk.js → file-mutation-qjcmz760.js} +21 -21
- package/dist/chunks/{state-dne93ghm.js → file-mutation-qjg9a86k.js} +39 -39
- package/dist/chunks/{state-pbfwh0cy.js → file-mutation-qm0v3jhh.js} +4 -4
- package/dist/chunks/{state-qnc92qwc.js → file-mutation-qnc92qwc.js} +1 -1
- package/dist/chunks/{state-hq7za0k9.js → file-mutation-qp4ctbap.js} +8 -8
- package/dist/chunks/{state-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{state-04gs4nsy.js → file-mutation-qx387k8b.js} +25 -25
- package/dist/chunks/{state-qxjc9qry.js → file-mutation-qxjc9qry.js} +3 -3
- package/dist/chunks/{state-hda4pa2y.js → file-mutation-qyp0jhqn.js} +4 -4
- package/dist/chunks/{state-tjdag02x.js → file-mutation-r3ymmbwh.js} +24 -24
- package/dist/chunks/{state-rrpq0de9.js → file-mutation-r44petzp.js} +12 -12
- package/dist/chunks/{state-73tb2d7t.js → file-mutation-r5x6zcsm.js} +3 -3
- package/dist/chunks/{state-mfjzh9b6.js → file-mutation-rbwyh6bm.js} +7 -7
- package/dist/chunks/{state-n4cfjzyv.js → file-mutation-rcp5zreg.js} +3 -3
- package/dist/chunks/{state-va19je8s.js → file-mutation-rdr2vy9c.js} +8 -8
- package/dist/chunks/{state-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{state-4weqm6mh.js → file-mutation-rfc8ewqs.js} +9 -9
- package/dist/chunks/{state-xsgk3b13.js → file-mutation-rghjtt8s.js} +9 -9
- package/dist/chunks/{state-ney4fyxz.js → file-mutation-rkmze0np.js} +3 -3
- package/dist/chunks/{state-qp3v07n2.js → file-mutation-rtathh62.js} +8 -8
- package/dist/chunks/{state-78e73m81.js → file-mutation-rvqbftg0.js} +5 -5
- package/dist/chunks/{state-pkqb68ka.js → file-mutation-rx9ava5n.js} +4 -4
- package/dist/chunks/{state-w6fcbyfn.js → file-mutation-s3cbap25.js} +74 -74
- package/dist/chunks/{state-jnys1re4.js → file-mutation-s3drh7ax.js} +22 -22
- package/dist/chunks/{state-wv396vej.js → file-mutation-s8d7rejh.js} +8 -8
- package/dist/chunks/{state-33acgdzk.js → file-mutation-sbe9zx21.js} +52 -52
- package/dist/chunks/{state-k70p9jzb.js → file-mutation-srq8z0b0.js} +9 -9
- package/dist/chunks/{state-y66k8ekt.js → file-mutation-szq02q56.js} +31 -31
- package/dist/chunks/{state-6mqqbwyk.js → file-mutation-tageetvg.js} +24 -24
- package/dist/chunks/{state-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{state-mpnk1jhk.js → file-mutation-tbk44sx2.js} +36 -36
- package/dist/chunks/{state-89znhe33.js → file-mutation-tcezcvh9.js} +4 -4
- package/dist/chunks/{state-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{state-wht45by2.js → file-mutation-tg9gdv00.js} +25 -25
- package/dist/chunks/{state-qcf958r1.js → file-mutation-tj9q9rgv.js} +15 -15
- package/dist/chunks/{state-je9b2prv.js → file-mutation-ttkjqnsm.js} +8 -8
- package/dist/chunks/{state-v0es1rhs.js → file-mutation-v0es1rhs.js} +2 -2
- package/dist/chunks/{state-kcvna0f0.js → file-mutation-v1evr0zq.js} +49 -49
- package/dist/chunks/{state-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{state-hys27yhn.js → file-mutation-vm6ygyff.js} +34 -34
- package/dist/chunks/{state-552zmxxp.js → file-mutation-vn3q6yb7.js} +3 -3
- package/dist/chunks/{state-28t7fsxc.js → file-mutation-vnnfhr52.js} +15 -15
- package/dist/chunks/{state-da0zeymm.js → file-mutation-vtrymep9.js} +1 -1
- package/dist/chunks/{state-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{state-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{state-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{state-7ysgmthn.js → file-mutation-wcmsdx6c.js} +16 -16
- package/dist/chunks/{state-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{state-qygbw77c.js → file-mutation-wecqtg5s.js} +5 -5
- package/dist/chunks/{state-y3gy1d3k.js → file-mutation-wexnxbcm.js} +11 -11
- package/dist/chunks/{state-1pxz8ven.js → file-mutation-wh6zw745.js} +5 -5
- package/dist/chunks/{state-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{state-p9mywqvn.js → file-mutation-x1z5qghx.js} +27 -27
- package/dist/chunks/{state-8wbxkt1z.js → file-mutation-x3gqap9d.js} +4 -4
- package/dist/chunks/{state-04qdqhm4.js → file-mutation-x5jxhyye.js} +85 -85
- package/dist/chunks/{state-tayvxp81.js → file-mutation-xca691zd.js} +8 -8
- package/dist/chunks/{state-8rn66pkq.js → file-mutation-xdyz12rq.js} +5 -5
- package/dist/chunks/{state-g5w8qwbj.js → file-mutation-xfkkasph.js} +4 -4
- package/dist/chunks/{state-xkntkrq7.js → file-mutation-xkntkrq7.js} +2 -2
- package/dist/chunks/{state-tps4458j.js → file-mutation-xsw82w62.js} +9 -9
- package/dist/chunks/{state-8v563t0s.js → file-mutation-xyq6fg0j.js} +11 -11
- package/dist/chunks/{state-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{state-vfjzkq6y.js → file-mutation-y5hhygam.js} +11 -11
- package/dist/chunks/{state-ahd542yp.js → file-mutation-y72zmemf.js} +8 -8
- package/dist/chunks/{state-s96dc5a8.js → file-mutation-y9zwf0zg.js} +31 -31
- package/dist/chunks/{state-bx0gyb4h.js → file-mutation-ygdna4kr.js} +5 -5
- package/dist/chunks/{state-1yd7h3h8.js → file-mutation-ygz1yfbt.js} +11 -11
- package/dist/chunks/{state-1acjjqhc.js → file-mutation-yp2x3t23.js} +4 -4
- package/dist/chunks/{state-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{state-j63cx0ne.js → file-mutation-yw99dmwz.js} +2 -2
- package/dist/chunks/{state-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{state-4mqwqfx5.js → file-mutation-z72z4m5h.js} +32 -32
- package/dist/chunks/{state-c8sjj9w2.js → file-mutation-z7frznw9.js} +4 -4
- package/dist/chunks/{state-wjpnyp9v.js → file-mutation-zds900bd.js} +24 -24
- package/dist/chunks/{state-8e34b0x6.js → file-mutation-zesh45jt.js} +11 -11
- package/dist/chunks/{state-0kxqejyt.js → file-mutation-zks4r0br.js} +22 -22
- package/dist/chunks/{state-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{state-zfm48e7p.js → file-mutation-zvn3dagb.js} +3 -3
- package/dist/chunks/file-mutation-zwthxbkp.js +26 -0
- package/dist/chunks/{state-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- 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 +83 -83
- package/dist/config/discovery.js +84 -84
- 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 +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 +118 -118
- 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 +117 -117
- 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 +85 -85
- 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 +218 -218
- package/dist/filesystem/protected.js +3 -3
- 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 +106 -106
- package/dist/form.js +84 -84
- 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 +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- 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 +105 -105
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- 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 +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +103 -103
- 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 +113 -113
- 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 +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 +1 -1
- 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 +4 -4
- 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 +95 -95
- 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 +342 -342
- 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 +7 -7
- 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 +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 +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +82 -82
- 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 +135 -135
- 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 +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +125 -125
- package/dist/session/projector.js +86 -86
- 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 +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- 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 +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 +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- 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 +209 -209
- 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 +9 -9
- package/dist/shell.js +132 -132
- 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 +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- 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 +118 -118
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +96 -96
- 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 +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 +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/state-1x11rq2a.js +0 -18
- package/dist/chunks/state-2q1gdtj5.js +0 -26
- package/dist/chunks/state-d0v57x60.js +0 -253
- package/dist/chunks/state-zks7ye7f.js +0 -507
- /package/dist/chunks/{state-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{state-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{state-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{state-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{state-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{state-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{state-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{state-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{state-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{state-34c7v6d4.js → file-mutation-34c7v6d4.js} +0 -0
- /package/dist/chunks/{state-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{state-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{state-3t0ybcrp.js → file-mutation-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{state-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{state-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{state-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{state-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{state-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{state-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{state-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{state-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{state-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{state-5qd3pb7m.js → file-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{state-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{state-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{state-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{state-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{state-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{state-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{state-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{state-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{state-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{state-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{state-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{state-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{state-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{state-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{state-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{state-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{state-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{state-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{state-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{state-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{state-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{state-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{state-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{state-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{state-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{state-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{state-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{state-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{state-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{state-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{state-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{state-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{state-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{state-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{state-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{state-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{state-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{state-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{state-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{state-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{state-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{state-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{state-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{state-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{state-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{state-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{state-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{state-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{state-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{state-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{state-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{state-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{state-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{state-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{state-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{state-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{state-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{state-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{state-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{state-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{state-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{state-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{state-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{state-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{state-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{state-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{state-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{state-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{state-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{state-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{state-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{state-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{state-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{state-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service81,
|
|
9
|
+
node85
|
|
10
|
+
} from "./file-mutation-r44petzp.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service79,
|
|
13
|
+
node83
|
|
14
|
+
} from "./file-mutation-2yx7qcbq.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID16,
|
|
27
|
+
Service: () => Service78,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node82,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID16 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service78 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service79;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID16.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service78.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node82 = makeLocationNode({
|
|
144
|
+
service: Service78,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node85, Global.node, node83]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer3 = Layer.succeed(
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service78, Service78.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service62, Service62.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error5({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID16, Error5, Service78, node82, noopLayer3, exports_snapshot2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID12
|
|
3
|
+
} from "./file-mutation-2krkkzng.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-p0swatq2.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
10
10
|
import { isArrayNonEmpty } from "effect/Array";
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Form } from "@opencode/schema/form";
|
|
13
|
-
var providerID =
|
|
13
|
+
var providerID = ID12.make("cloudflare-ai-gateway");
|
|
14
14
|
var accountIdField = Form.StringField.make({
|
|
15
15
|
type: "string",
|
|
16
16
|
key: "accountId",
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-mktej9kf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./file-mutation-7b8rsjb2.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID14,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Event19,
|
|
11
|
+
Service76
|
|
12
|
+
} from "./file-mutation-jd31x3zp.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-addxnjmp.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID13,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-mutation-76r92777.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
mergeOverlay2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-2krkkzng.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID11,
|
|
26
26
|
VariantID2,
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
Info21
|
|
28
|
+
} from "./file-mutation-kmnvca5z.js";
|
|
29
29
|
import {
|
|
30
30
|
success2,
|
|
31
31
|
error2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./file-mutation-pjvnvgmy.js";
|
|
33
33
|
|
|
34
34
|
// src/plugin/provider/chatgpt.ts
|
|
35
35
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -41,8 +41,8 @@ var issuer = "https://auth.openai.com";
|
|
|
41
41
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
42
|
var resource = "https://api.openai.com/v1";
|
|
43
43
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
-
var providerID =
|
|
45
|
-
var integrationID =
|
|
44
|
+
var providerID = ID12.openai;
|
|
45
|
+
var integrationID = ID13.make("openai");
|
|
46
46
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
47
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
48
|
var fallbackModels = new Set([
|
|
@@ -171,8 +171,8 @@ function listen(server) {
|
|
|
171
171
|
var ChatGPTPlugin2 = define({
|
|
172
172
|
id: "opencode.provider.chatgpt",
|
|
173
173
|
effect: Effect.fn(function* (ctx) {
|
|
174
|
-
const bus = yield*
|
|
175
|
-
const credentials = yield*
|
|
174
|
+
const bus = yield* Service82;
|
|
175
|
+
const credentials = yield* Service76;
|
|
176
176
|
const loading = Semaphore.makeUnsafe(1);
|
|
177
177
|
let chatgpt;
|
|
178
178
|
let available;
|
|
@@ -194,7 +194,7 @@ var ChatGPTPlugin2 = define({
|
|
|
194
194
|
yield* ctx.integration.transform((editor) => {
|
|
195
195
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
196
|
});
|
|
197
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
197
|
+
yield* Effect.forEach(yield* credentials.list(ID13.make("openai")), (entry) => {
|
|
198
198
|
const value = entry.value;
|
|
199
199
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
200
|
return Effect.void;
|
|
@@ -259,7 +259,7 @@ var ChatGPTPlugin2 = define({
|
|
|
259
259
|
});
|
|
260
260
|
const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
|
|
261
261
|
const connection = source;
|
|
262
|
-
const credential = connection?.type === "credential" ? (yield* credentials.get(
|
|
262
|
+
const credential = connection?.type === "credential" ? (yield* credentials.get(ID14.make(connection.id)))?.value : undefined;
|
|
263
263
|
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
264
|
return;
|
|
265
265
|
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
@@ -279,7 +279,7 @@ var ChatGPTPlugin2 = define({
|
|
|
279
279
|
}));
|
|
280
280
|
});
|
|
281
281
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
-
yield* bus.subscribe(
|
|
282
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
283
|
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
284
|
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
285
285
|
})
|
|
@@ -338,7 +338,7 @@ function deriveModels2(remote, existing) {
|
|
|
338
338
|
const found = byID.get(model.modelID);
|
|
339
339
|
return found ? [deriveModel(found, model)] : [];
|
|
340
340
|
}),
|
|
341
|
-
...remote.filter((model) => !known.has(
|
|
341
|
+
...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info21.default(ID12.openai, ID11.make(model.slug))))
|
|
342
342
|
];
|
|
343
343
|
}
|
|
344
344
|
function deriveModel(remote, previous) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-mktej9kf.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service76
|
|
7
|
+
} from "./file-mutation-jd31x3zp.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID13,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-mutation-76r92777.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID12,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-2krkkzng.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID12.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID13.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service76;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID13.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-mktej9kf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./file-mutation-7b8rsjb2.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./file-mutation-jd31x3zp.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID13,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-76r92777.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID12,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service74
|
|
22
|
+
} from "./file-mutation-2krkkzng.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID11,
|
|
25
|
+
Info21
|
|
26
|
+
} from "./file-mutation-kmnvca5z.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-pjvnvgmy.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/gitlab.ts
|
|
33
33
|
import os from "os";
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID12.gitlab;
|
|
39
|
+
var integrationID = ID13.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,8 +57,8 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
61
|
-
const bus = yield*
|
|
60
|
+
const providers = yield* Service74;
|
|
61
|
+
const bus = yield* Service82;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
64
64
|
const loaded = {};
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info21.default(providerID, ID11.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID12.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-tdstcens.js";
|
|
7
7
|
import {
|
|
8
8
|
contentFilterError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-h23k3th1.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/publish-llm-event.ts
|
|
12
12
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plugin34
|
|
3
|
+
} from "./file-mutation-rtathh62.js";
|
|
4
|
+
import {
|
|
5
|
+
Plugin35
|
|
6
|
+
} from "./file-mutation-dqbbafza.js";
|
|
7
|
+
import {
|
|
8
|
+
Plugin37
|
|
9
|
+
} from "./file-mutation-xsw82w62.js";
|
|
10
|
+
import {
|
|
11
|
+
Plugin40
|
|
12
|
+
} from "./file-mutation-fj2avv8b.js";
|
|
13
|
+
import {
|
|
14
|
+
Plugin36
|
|
15
|
+
} from "./file-mutation-9dsxywjb.js";
|
|
16
|
+
|
|
17
|
+
// src/plugin/websearch/index.ts
|
|
18
|
+
var WebSearchPlugins2 = [
|
|
19
|
+
Plugin34,
|
|
20
|
+
Plugin35,
|
|
21
|
+
Plugin37,
|
|
22
|
+
Plugin40,
|
|
23
|
+
Plugin36
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { WebSearchPlugins2 };
|
package/dist/codemode/catalog.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
render2,
|
|
3
3
|
update3,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
4
|
+
make14,
|
|
5
|
+
exports_instructions3
|
|
6
|
+
} from "../chunks/file-mutation-ajzsbz6h.js";
|
|
7
|
+
import"../chunks/file-mutation-3fc6dm20.js";
|
|
8
|
+
import"../chunks/file-mutation-s8d7rejh.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
exports_instructions3 as CodeModeInstructions,
|
|
11
|
+
make14 as make,
|
|
12
12
|
render2 as render,
|
|
13
13
|
update3 as update
|
|
14
14
|
};
|
package/dist/codemode/tool.js
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
create2,
|
|
3
3
|
catalog2,
|
|
4
4
|
exports_tool2
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/file-mutation-qxjc9qry.js";
|
|
6
|
+
import"../chunks/file-mutation-m3fdjcah.js";
|
|
7
|
+
import"../chunks/file-mutation-3w5fmr99.js";
|
|
8
8
|
export {
|
|
9
9
|
exports_tool2 as CodeModeTool,
|
|
10
10
|
catalog2 as catalog,
|