@opencode/core 0.0.0-dev-19326 → 0.0.0-dev-19330
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 +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +67 -67
- package/dist/catalog.js +83 -83
- package/dist/chunks/{config-27q3k98w.js → location-activity-00f20zf4.js} +9 -9
- package/dist/chunks/{config-pztqrn0p.js → location-activity-0497ksa9.js} +11 -11
- package/dist/chunks/{config-qzyzax4f.js → location-activity-05wpa151.js} +11 -11
- package/dist/chunks/{config-paegk39x.js → location-activity-06dxphr1.js} +4 -4
- package/dist/chunks/{config-js9tnhwr.js → location-activity-0am50czs.js} +15 -15
- package/dist/chunks/{config-sys0fgg0.js → location-activity-0c79hv9f.js} +12 -12
- package/dist/chunks/{config-a6mbpaxv.js → location-activity-0cszr9kg.js} +35 -35
- package/dist/chunks/{config-qz49fwgp.js → location-activity-0ft9cg2j.js} +6 -6
- package/dist/chunks/{config-sm6x67bg.js → location-activity-0hmq9z03.js} +74 -74
- package/dist/chunks/{config-0paq2nw3.js → location-activity-0paq2nw3.js} +1 -1
- package/dist/chunks/{config-s7xtjryh.js → location-activity-0pyqcms3.js} +1 -1
- package/dist/chunks/{config-0q0f95c6.js → location-activity-0q0f95c6.js} +1 -1
- package/dist/chunks/{config-ycsq97p8.js → location-activity-0qmha5zk.js} +22 -22
- package/dist/chunks/{config-3ps341yf.js → location-activity-0s9awcrs.js} +27 -27
- package/dist/chunks/{config-a2vkvq8c.js → location-activity-0vwwr30m.js} +20 -20
- package/dist/chunks/{config-n1n4h8c9.js → location-activity-0zhrf345.js} +47 -47
- package/dist/chunks/location-activity-149w5zet.js +22 -0
- package/dist/chunks/{config-77hyqjn8.js → location-activity-1652xqcx.js} +21 -21
- package/dist/chunks/{config-xhkkqpm4.js → location-activity-18tcpe9k.js} +15 -15
- package/dist/chunks/{config-1dazxqgg.js → location-activity-1dazxqgg.js} +2 -2
- package/dist/chunks/{config-1dfhrqqs.js → location-activity-1dfhrqqs.js} +2 -2
- package/dist/chunks/{config-jefma2gq.js → location-activity-1e9w7pgh.js} +10 -10
- package/dist/chunks/{config-tayfb0c8.js → location-activity-1g24xets.js} +31 -31
- package/dist/chunks/{config-rzpkkh53.js → location-activity-1samygjq.js} +27 -27
- package/dist/chunks/{config-21r38tys.js → location-activity-21r38tys.js} +1 -1
- package/dist/chunks/{config-72vjph7r.js → location-activity-23xphr86.js} +37 -37
- package/dist/chunks/{config-6h73sxmp.js → location-activity-2402vzrj.js} +5 -5
- package/dist/chunks/{config-qh3g5vy3.js → location-activity-29nbyn82.js} +11 -11
- package/dist/chunks/{config-2a5m3afh.js → location-activity-2a5m3afh.js} +1 -1
- package/dist/chunks/{config-m86bnw2c.js → location-activity-2bt6bea8.js} +9 -9
- package/dist/chunks/{config-y1xxajfh.js → location-activity-2e71sbh5.js} +18 -18
- package/dist/chunks/{config-cdfjc51s.js → location-activity-2e7rtwyx.js} +28 -28
- package/dist/chunks/{config-tn5yj8k7.js → location-activity-2hmh5vmw.js} +3 -3
- package/dist/chunks/{config-m8zqamnv.js → location-activity-2wkyhmzr.js} +14 -14
- package/dist/chunks/{config-qa8kzgyn.js → location-activity-33nsbzwg.js} +21 -21
- package/dist/chunks/{config-1ygqh575.js → location-activity-33w4ejhs.js} +6 -6
- package/dist/chunks/{config-njmpc6zs.js → location-activity-34h0dv3g.js} +9 -9
- package/dist/chunks/{config-ag9w8cw1.js → location-activity-3cfzdc8e.js} +5 -5
- package/dist/chunks/{config-3fc6dm20.js → location-activity-3fc6dm20.js} +1 -1
- package/dist/chunks/{config-3hepkmqq.js → location-activity-3hepkmqq.js} +1 -1
- package/dist/chunks/{config-j3nfxkmh.js → location-activity-3hqtk823.js} +14 -14
- package/dist/chunks/{config-jdqkc47c.js → location-activity-3ptm6a7y.js} +39 -39
- package/dist/chunks/{config-3smtnn6g.js → location-activity-3smtnn6g.js} +1 -1
- package/dist/chunks/{config-3tvqynh2.js → location-activity-3tvqynh2.js} +1 -1
- package/dist/chunks/{config-x1xcpfha.js → location-activity-485fr60v.js} +11 -11
- package/dist/chunks/{config-eeke5b1b.js → location-activity-4f9vv8ck.js} +4 -4
- package/dist/chunks/{config-4kzv7xnq.js → location-activity-4zp43xrx.js} +12 -12
- package/dist/chunks/{config-hcz3zddy.js → location-activity-510m7gjw.js} +5 -5
- package/dist/chunks/{config-6f6emysg.js → location-activity-53kjy3y5.js} +30 -30
- package/dist/chunks/{config-hhgar3wg.js → location-activity-58hd73zb.js} +17 -17
- package/dist/chunks/{config-1657v3ya.js → location-activity-5d1w27cr.js} +13 -13
- package/dist/chunks/{config-5daktx2q.js → location-activity-5daktx2q.js} +1 -1
- package/dist/chunks/{config-8cmk2yrh.js → location-activity-5dbhyfh5.js} +2 -2
- package/dist/chunks/{config-yckmmtqy.js → location-activity-5p3vx5sm.js} +23 -23
- package/dist/chunks/{config-rzdsnkcx.js → location-activity-5prptrdc.js} +9 -9
- package/dist/chunks/{config-5t3nmthw.js → location-activity-5t3nmthw.js} +2 -2
- package/dist/chunks/{config-pkkn2rmb.js → location-activity-619p0910.js} +15 -15
- package/dist/chunks/{config-ae18dp5m.js → location-activity-668vkket.js} +15 -15
- package/dist/chunks/{config-669tq793.js → location-activity-669tq793.js} +1 -1
- package/dist/chunks/{config-qn5k0834.js → location-activity-6bnmqb6k.js} +35 -35
- package/dist/chunks/{config-fq03nfpt.js → location-activity-6g19atcy.js} +4 -4
- package/dist/chunks/{config-tsvnnaee.js → location-activity-6h56xjmh.js} +9 -9
- package/dist/chunks/{config-6msgmcgs.js → location-activity-6msgmcgs.js} +1 -1
- package/dist/chunks/{config-p0cja4mf.js → location-activity-6qw5vjfk.js} +5 -5
- package/dist/chunks/{config-aswydtf6.js → location-activity-6xxpa75t.js} +30 -30
- package/dist/chunks/{config-jw0bnz0n.js → location-activity-70qzk4th.js} +59 -59
- package/dist/chunks/{config-71q4at8m.js → location-activity-71q4at8m.js} +1 -1
- package/dist/chunks/{config-y8jrhqey.js → location-activity-79pjmq3q.js} +27 -27
- package/dist/chunks/{config-7bmhse3q.js → location-activity-7bmhse3q.js} +1 -1
- package/dist/chunks/{config-avakt016.js → location-activity-7ekk9vqv.js} +15 -15
- package/dist/chunks/{config-aw657cyw.js → location-activity-7gqmcxqn.js} +17 -17
- package/dist/chunks/{config-d605brer.js → location-activity-7qx6xbsy.js} +20 -20
- package/dist/chunks/{config-2f04pwep.js → location-activity-7w99qc9d.js} +3 -3
- package/dist/chunks/{config-bty8pd59.js → location-activity-84bsvm5t.js} +41 -41
- package/dist/chunks/{config-c43swxyx.js → location-activity-877n57ye.js} +6 -6
- package/dist/chunks/{config-h44tzz0d.js → location-activity-8bndv5p6.js} +21 -21
- package/dist/chunks/{config-8d7r5vzw.js → location-activity-8d7r5vzw.js} +1 -1
- package/dist/chunks/{config-wy9ptrhe.js → location-activity-8dcepf6f.js} +39 -35
- package/dist/chunks/{config-8p4f9s12.js → location-activity-8p4f9s12.js} +2 -2
- package/dist/chunks/{config-pv3gegc9.js → location-activity-8p5j7zj3.js} +13 -13
- package/dist/chunks/{config-8kw6wws5.js → location-activity-95095s4h.js} +159 -159
- package/dist/chunks/{config-5wxd9yx9.js → location-activity-981t3mdn.js} +10 -10
- package/dist/chunks/{config-vzrz8rh7.js → location-activity-98q4xykc.js} +4 -4
- package/dist/chunks/{config-njtrxhve.js → location-activity-9cxfnq9r.js} +24 -24
- package/dist/chunks/{config-cs6ph7bb.js → location-activity-9gsj2qz3.js} +29 -29
- package/dist/chunks/{config-x0511brf.js → location-activity-9h41vc4j.js} +4 -4
- package/dist/chunks/{config-qw7k9z72.js → location-activity-9nwkdhka.js} +16 -16
- package/dist/chunks/{config-9qn3qky1.js → location-activity-9p3b3m98.js} +8 -8
- package/dist/chunks/{config-qpvszq3c.js → location-activity-9zwwab0g.js} +11 -11
- package/dist/chunks/{config-a1bz86dw.js → location-activity-a1bz86dw.js} +3 -3
- package/dist/chunks/{config-n5w420h3.js → location-activity-a1p4vb2r.js} +24 -24
- package/dist/chunks/{config-9m00pm0q.js → location-activity-a315rf88.js} +24 -24
- package/dist/chunks/{config-5b85kcdj.js → location-activity-a3svfmdb.js} +3 -3
- package/dist/chunks/{config-t12g5sta.js → location-activity-aa93vgnw.js} +6 -6
- package/dist/chunks/{config-aaet6srn.js → location-activity-aaet6srn.js} +2 -2
- package/dist/chunks/{config-710w2ech.js → location-activity-abkdt1xb.js} +1 -1
- package/dist/chunks/{config-a5ashrgz.js → location-activity-acp3msh0.js} +18 -18
- package/dist/chunks/{config-d9ktfn67.js → location-activity-am8tsrcr.js} +23 -23
- package/dist/chunks/{config-8sghyhzw.js → location-activity-at5vefz0.js} +8 -8
- package/dist/chunks/{config-4w87xhbp.js → location-activity-b36fe2p1.js} +9 -9
- package/dist/chunks/{config-fyjrpq2n.js → location-activity-b40gkt47.js} +5 -5
- package/dist/chunks/{config-b6gygkdw.js → location-activity-b6gygkdw.js} +2 -2
- package/dist/chunks/{config-09d0879q.js → location-activity-bj03g548.js} +26 -26
- package/dist/chunks/{config-ncydacn5.js → location-activity-bsty87tr.js} +15 -15
- package/dist/chunks/{config-k9msfnd5.js → location-activity-bv2vzyjb.js} +15 -15
- package/dist/chunks/{config-zerdtc7d.js → location-activity-bv56xrks.js} +6 -6
- package/dist/chunks/{config-8gq3smt3.js → location-activity-bwwc286a.js} +13 -13
- package/dist/chunks/{config-m1tpde6x.js → location-activity-byp738j4.js} +26 -26
- package/dist/chunks/{config-ffx4mq6v.js → location-activity-cd4mc13g.js} +1 -1
- package/dist/chunks/{config-xjc405nr.js → location-activity-ceknry8z.js} +11 -11
- package/dist/chunks/{config-cfpkc3c9.js → location-activity-cfpkc3c9.js} +2 -2
- package/dist/chunks/{config-j5t0v273.js → location-activity-cj9r5bqh.js} +23 -23
- package/dist/chunks/{config-jvf3yq6v.js → location-activity-ckf8nxjz.js} +4 -4
- package/dist/chunks/{config-gmzg7h0g.js → location-activity-cw0r7et3.js} +10 -10
- package/dist/chunks/{config-mhz3pcww.js → location-activity-d1dkfxg7.js} +6 -6
- package/dist/chunks/{config-23srbqd1.js → location-activity-d36y1n73.js} +12 -12
- package/dist/chunks/{config-w79zsp0s.js → location-activity-d50f2zf5.js} +1 -1
- package/dist/chunks/{config-agn6xsk2.js → location-activity-dc6eja9t.js} +10 -10
- package/dist/chunks/{config-7wpfh6mv.js → location-activity-de9an370.js} +7 -7
- package/dist/chunks/{config-ze5v0a14.js → location-activity-dgmwn8ez.js} +8 -8
- package/dist/chunks/{config-2h6dm58y.js → location-activity-dgvw86mt.js} +1 -1
- package/dist/chunks/{config-ytmtmg8c.js → location-activity-dwne6842.js} +22 -22
- package/dist/chunks/{config-j5208yae.js → location-activity-dwvzh0g2.js} +6 -6
- package/dist/chunks/location-activity-dxj72tfx.js +18 -0
- package/dist/chunks/{config-6c3m5f2h.js → location-activity-dz2q359h.js} +39 -39
- package/dist/chunks/{config-k6zar0y3.js → location-activity-e0v5n9ne.js} +43 -43
- package/dist/chunks/{config-t366rswz.js → location-activity-e4jpexjw.js} +4 -4
- package/dist/chunks/{config-rmxfyypy.js → location-activity-ecrvsvsk.js} +9 -9
- package/dist/chunks/{config-a76rpznm.js → location-activity-egbmcsph.js} +14 -14
- package/dist/chunks/{config-h7vqmq4a.js → location-activity-eh1pcsjb.js} +7 -7
- package/dist/chunks/{config-eq1pz5kg.js → location-activity-eq1pz5kg.js} +1 -1
- package/dist/chunks/{config-etq0c3wd.js → location-activity-etq0c3wd.js} +1 -1
- package/dist/chunks/{config-64gy2aef.js → location-activity-eycpnzjg.js} +43 -43
- package/dist/chunks/{config-a4r18kjz.js → location-activity-f353nd08.js} +2 -2
- package/dist/chunks/{config-qj8eh1ht.js → location-activity-f3ngv102.js} +4 -4
- package/dist/chunks/{config-f828m53h.js → location-activity-f828m53h.js} +2 -2
- package/dist/chunks/{config-2vw323ye.js → location-activity-fa2wwn61.js} +20 -20
- package/dist/chunks/{config-fcrkznn8.js → location-activity-fcrkznn8.js} +1 -1
- package/dist/chunks/{config-g2cy8dr6.js → location-activity-fdtp2wf3.js} +7 -7
- package/dist/chunks/{config-16ka791j.js → location-activity-fhs65364.js} +24 -24
- package/dist/chunks/{config-3jhh6dbq.js → location-activity-fpyfed09.js} +11 -11
- package/dist/chunks/{config-fxbjtjnd.js → location-activity-fxbjtjnd.js} +1 -1
- package/dist/chunks/{config-fm2qvscf.js → location-activity-g8d3gcyj.js} +7 -7
- package/dist/chunks/{config-gf6d3hm7.js → location-activity-gbjvyt3k.js} +8 -8
- package/dist/chunks/{config-gd4qta3r.js → location-activity-gd4qta3r.js} +1 -1
- package/dist/chunks/{config-70fmpgwx.js → location-activity-gdvy27x1.js} +4 -4
- package/dist/chunks/{config-t9e6e84n.js → location-activity-gf4qtxm6.js} +1 -1
- package/dist/chunks/{config-q7wajf8z.js → location-activity-gn2hfjap.js} +8 -8
- package/dist/chunks/{config-750qgww0.js → location-activity-gtc8mr18.js} +15 -15
- package/dist/chunks/{config-gv6a8nnw.js → location-activity-gv6a8nnw.js} +2 -2
- package/dist/chunks/{config-h03wrkyp.js → location-activity-h03wrkyp.js} +2 -2
- package/dist/chunks/location-activity-h6t14gd3.js +247 -0
- package/dist/chunks/{config-h6vf3j39.js → location-activity-h6vf3j39.js} +1 -1
- package/dist/chunks/{config-z3q09gkz.js → location-activity-h9ga1ge5.js} +17 -17
- package/dist/chunks/{config-kch7s5fg.js → location-activity-hc5d99fx.js} +19 -19
- package/dist/chunks/{config-7bvkr4r5.js → location-activity-hdthj1pw.js} +8 -8
- package/dist/chunks/{config-bha4atvq.js → location-activity-hfdr1yjj.js} +4 -4
- package/dist/chunks/{config-0ss0418f.js → location-activity-hfp5e0xj.js} +20 -20
- package/dist/chunks/{config-hjt4xg1x.js → location-activity-hjt4xg1x.js} +1 -1
- package/dist/chunks/{config-y8m4913b.js → location-activity-hn3xa3dk.js} +29 -29
- package/dist/chunks/{config-6h3kda3t.js → location-activity-hpbmbdf7.js} +6 -6
- package/dist/chunks/{config-j56e64zr.js → location-activity-j56e64zr.js} +1 -1
- package/dist/chunks/{config-6nwx2zxy.js → location-activity-j64b2rvs.js} +20 -20
- package/dist/chunks/{config-kq5zg6vn.js → location-activity-j8fz178q.js} +3 -3
- package/dist/chunks/{config-jzg51yg2.js → location-activity-jj2xzqjb.js} +8 -8
- package/dist/chunks/{config-5z63511r.js → location-activity-jjme25zq.js} +9 -9
- package/dist/chunks/{config-saxdmq1r.js → location-activity-jmhp4gmw.js} +4 -4
- package/dist/chunks/{config-569tr4pc.js → location-activity-jng4mfhm.js} +4 -4
- package/dist/chunks/{config-fa0cr6zp.js → location-activity-k8r06fnw.js} +3 -3
- package/dist/chunks/{config-az8cwyq3.js → location-activity-kcj82695.js} +36 -36
- package/dist/chunks/{config-bcgkk1hh.js → location-activity-kdatbnvm.js} +25 -25
- package/dist/chunks/{config-kg06axw8.js → location-activity-kg06axw8.js} +1 -1
- package/dist/chunks/{config-ppvatkm2.js → location-activity-m236hrjd.js} +32 -32
- package/dist/chunks/{config-arvcqt8y.js → location-activity-m8380jhx.js} +4 -4
- package/dist/chunks/{config-m9w0rfyh.js → location-activity-m9w0rfyh.js} +1 -1
- package/dist/chunks/{config-mkcjrzeh.js → location-activity-mkcjrzeh.js} +1 -1
- package/dist/chunks/{config-qvq50n5y.js → location-activity-mnh0vx2w.js} +54 -54
- package/dist/chunks/{config-kjsr3m9q.js → location-activity-n58ca790.js} +7 -7
- package/dist/chunks/{config-yfs0d73w.js → location-activity-n6nkqb20.js} +71 -71
- package/dist/chunks/{config-2h688s1b.js → location-activity-n8qb34cr.js} +3 -3
- package/dist/chunks/{config-edyamwfh.js → location-activity-nen8x078.js} +10 -10
- package/dist/chunks/{config-zxgnc9zk.js → location-activity-ng5shs3s.js} +1 -1
- package/dist/chunks/{config-ek30kmvs.js → location-activity-nja9bkfb.js} +44 -44
- package/dist/chunks/{config-m536chkd.js → location-activity-nn9aqccp.js} +11 -11
- package/dist/chunks/{config-6m1eqfa8.js → location-activity-p6dcdz3m.js} +9 -9
- package/dist/chunks/{config-nv66vt51.js → location-activity-pd39f5tk.js} +21 -21
- package/dist/chunks/{config-417t6bcw.js → location-activity-pd8j40z7.js} +29 -29
- package/dist/chunks/{config-sdtja0vv.js → location-activity-pgtpbewx.js} +5 -5
- package/dist/chunks/{config-81swgkk7.js → location-activity-pjmw00w1.js} +5 -5
- package/dist/chunks/{config-pjvnvgmy.js → location-activity-pjvnvgmy.js} +1 -1
- package/dist/chunks/{config-pknna89w.js → location-activity-pknna89w.js} +1 -1
- package/dist/chunks/{config-b0nvwstj.js → location-activity-q22pnneb.js} +15 -15
- package/dist/chunks/location-activity-q60e8njt.js +462 -0
- package/dist/chunks/{config-vrmbk9b3.js → location-activity-qcg9a552.js} +12 -12
- package/dist/chunks/{config-jt79ytas.js → location-activity-qkgzjb32.js} +14 -14
- package/dist/chunks/{config-7z5tcpnz.js → location-activity-qm96ajr0.js} +5 -5
- package/dist/chunks/{config-1p5m71zp.js → location-activity-qnjcxb0m.js} +10 -10
- package/dist/chunks/{config-qsdy395h.js → location-activity-qsdy395h.js} +1 -1
- package/dist/chunks/{config-a0d0vtpt.js → location-activity-qy5sngnc.js} +37 -37
- package/dist/chunks/{config-es83e26n.js → location-activity-r3ayd6w3.js} +10 -10
- package/dist/chunks/{config-2ns57ds1.js → location-activity-r3q6xw1r.js} +11 -11
- package/dist/chunks/{config-vptjw3ks.js → location-activity-r3tz3zq2.js} +18 -18
- package/dist/chunks/{config-yp2x3t23.js → location-activity-r8xr0va3.js} +4 -4
- package/dist/chunks/{config-46k8jh69.js → location-activity-rfhrg7g7.js} +6 -6
- package/dist/chunks/{config-dr3kpc4j.js → location-activity-rfz3en0a.js} +3 -3
- package/dist/chunks/{config-3rhrbxnc.js → location-activity-rh5zw0jp.js} +33 -33
- package/dist/chunks/{config-k0wscy4g.js → location-activity-rs15fxf6.js} +23 -23
- package/dist/chunks/{config-9eec6gj3.js → location-activity-rxm1qnn2.js} +8 -8
- package/dist/chunks/{config-c0hqkr96.js → location-activity-rxmwyzz4.js} +15 -15
- package/dist/chunks/{config-9cc1d2dv.js → location-activity-s4anq1bw.js} +6 -6
- package/dist/chunks/{config-eaj1djv9.js → location-activity-s8d7rejh.js} +6 -6
- package/dist/chunks/{config-d2aac7k2.js → location-activity-s8zy8myc.js} +5 -5
- package/dist/chunks/{config-h1r3fqyy.js → location-activity-sce7xpgb.js} +22 -22
- package/dist/chunks/{config-brxdqda1.js → location-activity-seg26mwq.js} +71 -24
- package/dist/chunks/{config-8g9ddwam.js → location-activity-sh98rtbk.js} +29 -29
- package/dist/chunks/{config-y6a6ax70.js → location-activity-smchzwkn.js} +5 -5
- package/dist/chunks/{config-5kptn8c0.js → location-activity-t0x5rdq8.js} +9 -9
- package/dist/chunks/{config-g5h2gn6b.js → location-activity-t1yg1137.js} +38 -38
- package/dist/chunks/{config-tazgh4e4.js → location-activity-tazgh4e4.js} +1 -1
- package/dist/chunks/{config-tcezcvh9.js → location-activity-tcezcvh9.js} +1 -1
- package/dist/chunks/{config-tdstcens.js → location-activity-tdstcens.js} +1 -1
- package/dist/chunks/{config-595h6ds1.js → location-activity-tjsdcqyt.js} +11 -11
- package/dist/chunks/{config-rr1nvx41.js → location-activity-tncft832.js} +15 -15
- package/dist/chunks/{config-8h5hgdex.js → location-activity-tp7vyv4a.js} +17 -17
- package/dist/chunks/{config-tvtrv512.js → location-activity-tvtrv512.js} +1 -1
- package/dist/chunks/{config-p72z5xx6.js → location-activity-v68haqbh.js} +2 -2
- package/dist/chunks/{config-nct1ykg9.js → location-activity-vcxwbwjh.js} +29 -29
- package/dist/chunks/{config-veqvce7d.js → location-activity-veqvce7d.js} +1 -1
- package/dist/chunks/{config-ebk4es1x.js → location-activity-vgphp585.js} +26 -26
- package/dist/chunks/{config-an7cqtb7.js → location-activity-vncycja5.js} +4 -4
- package/dist/chunks/{config-hwe7x4em.js → location-activity-vpt56g2a.js} +6 -6
- package/dist/chunks/{config-7xasq64h.js → location-activity-vq8rtrms.js} +19 -19
- package/dist/chunks/{config-6t1wqbey.js → location-activity-vtebjkew.js} +46 -46
- package/dist/chunks/{config-6x6kmq59.js → location-activity-vvjxbj47.js} +24 -24
- package/dist/chunks/{config-3bzdj17n.js → location-activity-vw1h02em.js} +25 -25
- package/dist/chunks/{config-8qk9tw02.js → location-activity-vyqtz9n7.js} +1 -1
- package/dist/chunks/{config-vzcthcp8.js → location-activity-vzcthcp8.js} +1 -1
- package/dist/chunks/{config-wmnhw0x1.js → location-activity-w32xxmd2.js} +28 -28
- package/dist/chunks/{config-w3wsvvr9.js → location-activity-w3wsvvr9.js} +1 -1
- package/dist/chunks/{config-cmwkp3r5.js → location-activity-w4zny49r.js} +8 -8
- package/dist/chunks/{config-0ke0pmzz.js → location-activity-wd0ddvkj.js} +18 -18
- package/dist/chunks/{config-wd87259q.js → location-activity-wd87259q.js} +1 -1
- package/dist/chunks/{config-0855v69s.js → location-activity-wm3rc210.js} +21 -21
- package/dist/chunks/{config-x1ezjp6w.js → location-activity-x1ezjp6w.js} +1 -1
- package/dist/chunks/{config-2je79byv.js → location-activity-x3grgfpj.js} +11 -11
- package/dist/chunks/{config-x43y2vfs.js → location-activity-x43y2vfs.js} +2 -2
- package/dist/chunks/{config-exhy6fht.js → location-activity-xc781az4.js} +8 -8
- package/dist/chunks/{config-8ddxx89t.js → location-activity-xe11czv3.js} +10 -10
- package/dist/chunks/{config-0996nyz8.js → location-activity-xhmq8qgk.js} +9 -9
- package/dist/chunks/{config-h6bavb35.js → location-activity-xjrpkc8a.js} +8 -8
- package/dist/chunks/{config-9qrewpmc.js → location-activity-xp98jq9g.js} +18 -18
- package/dist/chunks/{config-d7dy7kyk.js → location-activity-xrr1yfdp.js} +6 -6
- package/dist/chunks/{config-1pdyq1wn.js → location-activity-xw0htbjs.js} +6 -6
- package/dist/chunks/location-activity-xw6d38cq.js +123 -0
- package/dist/chunks/{config-5zqnyxe9.js → location-activity-xzqdnbh0.js} +33 -33
- package/dist/chunks/{config-y1fvbwt7.js → location-activity-y1fvbwt7.js} +1 -1
- package/dist/chunks/{config-wtkq24h6.js → location-activity-y27wsbdv.js} +16 -16
- package/dist/chunks/{config-y71avatq.js → location-activity-y71avatq.js} +1 -1
- package/dist/chunks/{config-nzdya8zy.js → location-activity-y87csaqz.js} +24 -24
- package/dist/chunks/{config-a1vyps7d.js → location-activity-ybgsz2m9.js} +11 -11
- package/dist/chunks/{config-3r916n3t.js → location-activity-yhj4pxny.js} +6 -6
- package/dist/chunks/{config-1kpn8rme.js → location-activity-ymzx956b.js} +13 -13
- package/dist/chunks/{config-yrhqyw5v.js → location-activity-yrhqyw5v.js} +1 -1
- package/dist/chunks/{config-yrznvahk.js → location-activity-yrznvahk.js} +2 -2
- package/dist/chunks/{config-a9ab9jmj.js → location-activity-yww5gzhe.js} +5 -5
- package/dist/chunks/{config-z0bkrqjs.js → location-activity-z0bkrqjs.js} +1 -1
- package/dist/chunks/{config-qy2rkr1m.js → location-activity-z41yc5h3.js} +13 -13
- package/dist/chunks/{config-z63w68vq.js → location-activity-z63w68vq.js} +2 -2
- package/dist/chunks/{config-b1fgh70n.js → location-activity-z8en5arr.js} +14 -14
- package/dist/chunks/{config-tqkm9jbq.js → location-activity-z9etfqg7.js} +11 -11
- package/dist/chunks/{config-k7d0894y.js → location-activity-zbq8qxyz.js} +6 -6
- package/dist/chunks/{config-zeh9ct20.js → location-activity-zeh9ct20.js} +2 -2
- package/dist/chunks/{config-hgyqvasf.js → location-activity-zewdp3hz.js} +11 -11
- package/dist/chunks/{config-46x4mgr1.js → location-activity-zfznrpx1.js} +4 -4
- package/dist/chunks/{config-z2qbjhyn.js → location-activity-zk8c4w5t.js} +5 -5
- package/dist/chunks/{config-xaqy8fp9.js → location-activity-zkr733dn.js} +22 -22
- package/dist/chunks/{config-zr2ceqn5.js → location-activity-zr2ceqn5.js} +1 -1
- package/dist/chunks/{config-zxq2ej10.js → location-activity-zxq2ej10.js} +1 -1
- package/dist/chunks/{config-1bmavh6p.js → location-activity-zy8699xy.js} +7 -7
- package/dist/chunks/{config-ave3hafy.js → location-activity-zz0mse0v.js} +18 -18
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +115 -115
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +112 -112
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- 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 +117 -117
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -361
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +68 -68
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- 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 +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +96 -96
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +82 -82
- package/dist/generate.js +87 -87
- package/dist/git.js +7 -7
- 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 +3 -3
- 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/id/id.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 +353 -352
- package/dist/instruction-discovery.js +77 -77
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -84
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +128 -128
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +350 -349
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +97 -97
- package/dist/mcp/instructions.js +120 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +8 -8
- package/dist/models-dev.js +86 -86
- 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 +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +97 -97
- package/dist/plugin/command.js +94 -94
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- 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 +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +79 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -0
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -342
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +79 -79
- package/dist/provider.js +7 -7
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +86 -86
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +143 -143
- 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 +213 -213
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +146 -146
- 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 +75 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +122 -122
- package/dist/session/projector.js +82 -82
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +108 -108
- package/dist/session/runner/step.js +121 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- 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 +1 -1
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +209 -209
- package/dist/session/usage.js +1 -1
- package/dist/session.js +207 -207
- 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 +11 -11
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +86 -86
- 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 +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/plugin/provider/poe.d.ts +2 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +83 -83
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- 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 +5 -5
- package/dist/worktree/refresh.js +342 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +87 -87
- package/package.json +8 -8
- package/dist/chunks/config-9sh4wc5j.js +0 -18
- package/dist/chunks/config-fnbgnbzv.js +0 -462
- package/dist/chunks/config-x0r8f7ss.js +0 -22
- package/dist/chunks/config-xr5bxs3t.js +0 -247
- /package/dist/chunks/{config-0mesazry.js → location-activity-0mesazry.js} +0 -0
- /package/dist/chunks/{config-0qkdqm5v.js → location-activity-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{config-0zkw76rk.js → location-activity-0zkw76rk.js} +0 -0
- /package/dist/chunks/{config-17cy0kzp.js → location-activity-17cy0kzp.js} +0 -0
- /package/dist/chunks/{config-1cnp2v09.js → location-activity-1cnp2v09.js} +0 -0
- /package/dist/chunks/{config-1kg9ymc8.js → location-activity-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{config-2710q6r3.js → location-activity-2710q6r3.js} +0 -0
- /package/dist/chunks/{config-2axfhc9x.js → location-activity-2axfhc9x.js} +0 -0
- /package/dist/chunks/{config-2c3vjs8z.js → location-activity-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{config-359p4xyc.js → location-activity-359p4xyc.js} +0 -0
- /package/dist/chunks/{config-3asan66x.js → location-activity-3asan66x.js} +0 -0
- /package/dist/chunks/{config-3v8g72cx.js → location-activity-3v8g72cx.js} +0 -0
- /package/dist/chunks/{config-3w5fmr99.js → location-activity-3w5fmr99.js} +0 -0
- /package/dist/chunks/{config-3wcehsnq.js → location-activity-3wcehsnq.js} +0 -0
- /package/dist/chunks/{config-43n2bw4t.js → location-activity-43n2bw4t.js} +0 -0
- /package/dist/chunks/{config-4knz6hnm.js → location-activity-4knz6hnm.js} +0 -0
- /package/dist/chunks/{config-4y7fprxs.js → location-activity-4y7fprxs.js} +0 -0
- /package/dist/chunks/{config-53557ph1.js → location-activity-53557ph1.js} +0 -0
- /package/dist/chunks/{config-550bvhaj.js → location-activity-550bvhaj.js} +0 -0
- /package/dist/chunks/{config-6prwharc.js → location-activity-6prwharc.js} +0 -0
- /package/dist/chunks/{config-7akdwqpd.js → location-activity-7akdwqpd.js} +0 -0
- /package/dist/chunks/{config-7m9af43g.js → location-activity-7m9af43g.js} +0 -0
- /package/dist/chunks/{config-822emrt2.js → location-activity-822emrt2.js} +0 -0
- /package/dist/chunks/{config-88xbtdfr.js → location-activity-88xbtdfr.js} +0 -0
- /package/dist/chunks/{config-8n3pysct.js → location-activity-8n3pysct.js} +0 -0
- /package/dist/chunks/{config-922hggd3.js → location-activity-922hggd3.js} +0 -0
- /package/dist/chunks/{config-9a4afbnw.js → location-activity-9a4afbnw.js} +0 -0
- /package/dist/chunks/{config-9rqn6x4v.js → location-activity-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{config-a1tpkmh4.js → location-activity-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{config-a6k6eb26.js → location-activity-a6k6eb26.js} +0 -0
- /package/dist/chunks/{config-af5trqkr.js → location-activity-af5trqkr.js} +0 -0
- /package/dist/chunks/{config-afrmfg78.js → location-activity-afrmfg78.js} +0 -0
- /package/dist/chunks/{config-aqzs7mqg.js → location-activity-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{config-atq7p7m5.js → location-activity-atq7p7m5.js} +0 -0
- /package/dist/chunks/{config-bkyjaxrp.js → location-activity-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{config-bmr6ed5q.js → location-activity-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{config-cf4snx6d.js → location-activity-cf4snx6d.js} +0 -0
- /package/dist/chunks/{config-cvy3z8tj.js → location-activity-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{config-d9fn303g.js → location-activity-d9fn303g.js} +0 -0
- /package/dist/chunks/{config-d9jj8t3e.js → location-activity-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{config-dajrwvna.js → location-activity-dajrwvna.js} +0 -0
- /package/dist/chunks/{config-dap0rakb.js → location-activity-dap0rakb.js} +0 -0
- /package/dist/chunks/{config-df08tz66.js → location-activity-df08tz66.js} +0 -0
- /package/dist/chunks/{config-dy18nga0.js → location-activity-dy18nga0.js} +0 -0
- /package/dist/chunks/{config-e5kj55wp.js → location-activity-e5kj55wp.js} +0 -0
- /package/dist/chunks/{config-e73j6tqm.js → location-activity-e73j6tqm.js} +0 -0
- /package/dist/chunks/{config-ec1grn59.js → location-activity-ec1grn59.js} +0 -0
- /package/dist/chunks/{config-eh3zwz77.js → location-activity-eh3zwz77.js} +0 -0
- /package/dist/chunks/{config-emrn6kk6.js → location-activity-emrn6kk6.js} +0 -0
- /package/dist/chunks/{config-f0mxakyp.js → location-activity-f0mxakyp.js} +0 -0
- /package/dist/chunks/{config-f6n9ztr4.js → location-activity-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{config-faypxj3z.js → location-activity-faypxj3z.js} +0 -0
- /package/dist/chunks/{config-fd410y7t.js → location-activity-fd410y7t.js} +0 -0
- /package/dist/chunks/{config-fxgpk5d8.js → location-activity-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{config-g4wezp1m.js → location-activity-g4wezp1m.js} +0 -0
- /package/dist/chunks/{config-g86h250q.js → location-activity-g86h250q.js} +0 -0
- /package/dist/chunks/{config-gebd4c9n.js → location-activity-gebd4c9n.js} +0 -0
- /package/dist/chunks/{config-gftt206x.js → location-activity-gftt206x.js} +0 -0
- /package/dist/chunks/{config-hjbc5kem.js → location-activity-hjbc5kem.js} +0 -0
- /package/dist/chunks/{config-hk9envan.js → location-activity-hk9envan.js} +0 -0
- /package/dist/chunks/{config-hrnqkpcd.js → location-activity-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{config-j2ntwpah.js → location-activity-j2ntwpah.js} +0 -0
- /package/dist/chunks/{config-j5zkgpj8.js → location-activity-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{config-jr7sbwjy.js → location-activity-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{config-jwfs4k6c.js → location-activity-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{config-jzg6c2d5.js → location-activity-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{config-mp448xyj.js → location-activity-mp448xyj.js} +0 -0
- /package/dist/chunks/{config-msx8hqn2.js → location-activity-msx8hqn2.js} +0 -0
- /package/dist/chunks/{config-n05xt0ee.js → location-activity-n05xt0ee.js} +0 -0
- /package/dist/chunks/{config-n3j8tn72.js → location-activity-n3j8tn72.js} +0 -0
- /package/dist/chunks/{config-njntx4h6.js → location-activity-njntx4h6.js} +0 -0
- /package/dist/chunks/{config-paphc93g.js → location-activity-paphc93g.js} +0 -0
- /package/dist/chunks/{config-q3sfg36h.js → location-activity-q3sfg36h.js} +0 -0
- /package/dist/chunks/{config-q74kybfr.js → location-activity-q74kybfr.js} +0 -0
- /package/dist/chunks/{config-qaymkmh1.js → location-activity-qaymkmh1.js} +0 -0
- /package/dist/chunks/{config-qb87gjwd.js → location-activity-qb87gjwd.js} +0 -0
- /package/dist/chunks/{config-qfa1cgps.js → location-activity-qfa1cgps.js} +0 -0
- /package/dist/chunks/{config-qrg20bc0.js → location-activity-qrg20bc0.js} +0 -0
- /package/dist/chunks/{config-rcb2kzg1.js → location-activity-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{config-sdp7kfr6.js → location-activity-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{config-sk3qaz4a.js → location-activity-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{config-ssg3fenm.js → location-activity-ssg3fenm.js} +0 -0
- /package/dist/chunks/{config-twg0f83k.js → location-activity-twg0f83k.js} +0 -0
- /package/dist/chunks/{config-w803qqfp.js → location-activity-w803qqfp.js} +0 -0
- /package/dist/chunks/{config-wer8tq1h.js → location-activity-wer8tq1h.js} +0 -0
- /package/dist/chunks/{config-wtztk69x.js → location-activity-wtztk69x.js} +0 -0
- /package/dist/chunks/{config-x0ckcb58.js → location-activity-x0ckcb58.js} +0 -0
- /package/dist/chunks/{config-x61499pn.js → location-activity-x61499pn.js} +0 -0
- /package/dist/chunks/{config-y44na4kk.js → location-activity-y44na4kk.js} +0 -0
- /package/dist/chunks/{config-y8cydn3q.js → location-activity-y8cydn3q.js} +0 -0
- /package/dist/chunks/{config-ygaqb7jw.js → location-activity-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{config-ym463w8f.js → location-activity-ym463w8f.js} +0 -0
- /package/dist/chunks/{config-z9919s4g.js → location-activity-z9919s4g.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service60
|
|
3
|
+
} from "./location-activity-mnh0vx2w.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-activity-a1tpkmh4.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-activity-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input4,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin5,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description2,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name4
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name4 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description2 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input4 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input10 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input4.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin5 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service60;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name4,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description2,
|
|
104
|
+
input: Input4,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin42 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name4,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name4, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description2, Input4, Plugin5, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-0497ksa9.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin17,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint5
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint5 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin17 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin6 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin6 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin17, exports_tavily };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-kg06axw8.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-activity-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
14
|
Options: () => Options7,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service43,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured7,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
|
-
list: () =>
|
|
21
|
+
list: () => list3,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name15,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node47,
|
|
25
25
|
ps: () => ps2,
|
|
26
26
|
resolve: () => resolve2
|
|
27
27
|
});
|
|
@@ -47,7 +47,7 @@ var Options7 = Schema.Struct({
|
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service43 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -184,11 +184,11 @@ resolve2.reset = () => {
|
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
187
|
-
async function
|
|
187
|
+
async function list3(options, bin) {
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,15 +199,15 @@ var layer = (options) => Layer.effect(Service57, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service43.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
205
|
resolve: (input) => Effect.sync(() => resolve2(input, state.get().shell, options, global.bin))
|
|
206
206
|
});
|
|
207
207
|
}));
|
|
208
|
-
function
|
|
209
|
-
return makeLocationNode({ service:
|
|
208
|
+
function configured7(options) {
|
|
209
|
+
return makeLocationNode({ service: Service43, layer: layer(options), deps: [Global.node] });
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var node47 = configured7();
|
|
212
212
|
|
|
213
|
-
export { Options7,
|
|
213
|
+
export { Options7, Service43, gitbash2, name15, login2, ps2, args2, environment2, resolve2, list3, configured7, node47, exports_select };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make17,
|
|
14
|
+
node: () => node58,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make17 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node58 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error4, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error4, ProviderNotFound2, make17, RegistryService2, registry2, registryNode2, node58, exports_driver };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key3,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key3 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,14 +36,14 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key3
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make21, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/mcp.ts
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info11,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info11 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info11, exports_mcp5 };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-activity-j8fz178q.js";
|
|
5
5
|
import {
|
|
6
6
|
Service79,
|
|
7
7
|
node84
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-activity-m8380jhx.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-activity-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-activity-0q0f95c6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
23
|
Event: () => Event16,
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
24
|
+
ID: () => ID13,
|
|
25
|
+
Info: () => Info27,
|
|
26
|
+
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service70,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node75
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID13 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
41
|
var Event16 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info27 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID13,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service70 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service80).db;
|
|
55
55
|
const bus = yield* Service79;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info27({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service70.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info27({
|
|
80
|
+
id: ID13.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -193,6 +193,6 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node75 = makeGlobalNode({ service: Service70, layer, deps: [node85, node84] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID13, OAuth3, Key4, Value2, Event16, Info27, Service70, node75, exports_credential };
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-m8380jhx.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
6
|
Event16
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-activity-sce7xpgb.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID11,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-activity-w32xxmd2.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID16,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-activity-9p3b3m98.js";
|
|
17
|
+
import {
|
|
18
|
+
ID15,
|
|
19
|
+
Input14,
|
|
20
|
+
Response2
|
|
21
|
+
} from "./location-activity-vw1h02em.js";
|
|
17
22
|
|
|
18
23
|
// src/plugin/provider/opencode.ts
|
|
19
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
20
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
|
-
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
26
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
22
27
|
import { ConfigProvider } from "@opencode/schema/config/provider";
|
|
23
28
|
import { Money } from "@opencode/schema/money";
|
|
24
29
|
var defaultServer = "https://opencode.ai/console";
|
|
25
30
|
var clientID = "opencode-cli";
|
|
26
31
|
var methodID = MethodID2.make("device");
|
|
27
|
-
var RemoteResponse = Schema.Struct({
|
|
32
|
+
var RemoteResponse = Schema.Struct({
|
|
33
|
+
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
|
+
websearch: Schema.Struct({
|
|
35
|
+
providerID: ID15
|
|
36
|
+
}).pipe(Schema.optional)
|
|
37
|
+
});
|
|
28
38
|
var Device = Schema.Struct({
|
|
29
39
|
device_code: Schema.String,
|
|
30
40
|
user_code: Schema.String,
|
|
@@ -43,7 +53,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
43
53
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
44
54
|
function oauth(http) {
|
|
45
55
|
return {
|
|
46
|
-
integrationID:
|
|
56
|
+
integrationID: ID11.make("opencode"),
|
|
47
57
|
method: {
|
|
48
58
|
id: methodID,
|
|
49
59
|
type: "oauth",
|
|
@@ -69,8 +79,7 @@ function oauth(http) {
|
|
|
69
79
|
};
|
|
70
80
|
}),
|
|
71
81
|
refresh: (credential) => Effect.gen(function* () {
|
|
72
|
-
const
|
|
73
|
-
const token = yield* post(http, `${server}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
|
|
82
|
+
const token = yield* post(http, `${serverUrl(credential)}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
|
|
74
83
|
return {
|
|
75
84
|
...credential,
|
|
76
85
|
access: token.access_token,
|
|
@@ -87,14 +96,14 @@ var OpencodePlugin2 = define({
|
|
|
87
96
|
const bus = yield* Service79;
|
|
88
97
|
const http = yield* HttpClient.HttpClient;
|
|
89
98
|
const loading = Semaphore.makeUnsafe(1);
|
|
90
|
-
let snapshot = {
|
|
99
|
+
let snapshot = { config: undefined, connection: undefined };
|
|
91
100
|
const load = Effect.fn("OpencodePlugin.load")(function* () {
|
|
92
101
|
const connection = yield* ctx.integration.connection.active("opencode");
|
|
93
102
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
94
103
|
return;
|
|
95
104
|
})) : undefined;
|
|
96
|
-
const
|
|
97
|
-
return {
|
|
105
|
+
const config = credential ? yield* fetchConfig(http, credential).pipe(Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(undefined)))) : undefined;
|
|
106
|
+
return { config, connection };
|
|
98
107
|
});
|
|
99
108
|
yield* ctx.integration.transform((editor) => {
|
|
100
109
|
editor.update("opencode", (integration) => {
|
|
@@ -105,12 +114,12 @@ var OpencodePlugin2 = define({
|
|
|
105
114
|
});
|
|
106
115
|
snapshot = yield* load();
|
|
107
116
|
yield* ctx.catalog.transform((catalog) => {
|
|
108
|
-
for (const [providerID, item] of Object.entries(snapshot.providers ?? {})) {
|
|
117
|
+
for (const [providerID, item] of Object.entries(snapshot.config?.providers ?? {})) {
|
|
109
118
|
const source = catalog.provider.get(item.canonical ?? providerID);
|
|
110
119
|
catalog.provider.update(providerID, (provider) => {
|
|
111
120
|
if (source && source.provider !== provider)
|
|
112
121
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
113
|
-
provider.integrationID =
|
|
122
|
+
provider.integrationID = ID11.make("opencode");
|
|
114
123
|
if (item.canonical !== undefined)
|
|
115
124
|
provider.canonical = item.canonical;
|
|
116
125
|
if (item.name !== undefined)
|
|
@@ -173,10 +182,10 @@ var OpencodePlugin2 = define({
|
|
|
173
182
|
});
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
|
-
const item = catalog.provider.get(
|
|
185
|
+
const item = catalog.provider.get(ID16.opencode);
|
|
177
186
|
if (!item)
|
|
178
187
|
return;
|
|
179
|
-
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.
|
|
188
|
+
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
180
189
|
catalog.provider.update(item.provider.id, (provider) => {
|
|
181
190
|
if (!hasKey) {
|
|
182
191
|
provider.activation = "enabled";
|
|
@@ -193,26 +202,64 @@ var OpencodePlugin2 = define({
|
|
|
193
202
|
});
|
|
194
203
|
}
|
|
195
204
|
});
|
|
205
|
+
yield* ctx.websearch.transform((editor) => {
|
|
206
|
+
const descriptor = snapshot.config?.websearch;
|
|
207
|
+
const connection = snapshot.connection;
|
|
208
|
+
if (!descriptor || !connection)
|
|
209
|
+
return;
|
|
210
|
+
editor.add({
|
|
211
|
+
id: descriptor.providerID,
|
|
212
|
+
name: "OpenCode Web Search",
|
|
213
|
+
execute: (input) => Effect.gen(function* () {
|
|
214
|
+
const active = yield* ctx.integration.connection.active("opencode");
|
|
215
|
+
if (!active || (connection.type === "credential" ? active.type !== "credential" || active.id !== connection.id : active.type !== "env" || active.name !== connection.name)) {
|
|
216
|
+
return yield* Effect.fail(new Error("OpenCode Console connection changed"));
|
|
217
|
+
}
|
|
218
|
+
const credential = yield* ctx.integration.connection.resolve(active);
|
|
219
|
+
if (!credential)
|
|
220
|
+
return yield* Effect.fail(new Error("OpenCode Console is not connected"));
|
|
221
|
+
const metadata = credential.metadata;
|
|
222
|
+
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
223
|
+
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
224
|
+
const server = yield* normalizeServer(serverUrl(credential));
|
|
225
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
226
|
+
query: input.query,
|
|
227
|
+
providerID: descriptor.providerID
|
|
228
|
+
}));
|
|
229
|
+
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.flatMap(HttpClientResponse.schemaBodyJson(Response2)), Effect.scoped, Effect.timeoutOrElse({
|
|
230
|
+
duration: Duration.seconds(25),
|
|
231
|
+
orElse: () => Effect.fail(new Error("OpenCode web search request timed out"))
|
|
232
|
+
}));
|
|
233
|
+
if (response.providerID !== descriptor.providerID) {
|
|
234
|
+
return yield* Effect.fail(new Error(`OpenCode web search returned provider ${response.providerID} instead of ${descriptor.providerID}`));
|
|
235
|
+
}
|
|
236
|
+
return response.results;
|
|
237
|
+
})
|
|
238
|
+
});
|
|
239
|
+
editor.default.set(descriptor.providerID);
|
|
240
|
+
});
|
|
196
241
|
const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
|
|
197
242
|
snapshot = next;
|
|
198
|
-
yield* ctx.catalog.reload();
|
|
243
|
+
yield* Effect.all([ctx.catalog.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
199
244
|
});
|
|
200
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
201
|
-
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
246
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID11.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
202
247
|
yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
203
248
|
})
|
|
204
249
|
});
|
|
205
|
-
function
|
|
250
|
+
function fetchConfig(http, value) {
|
|
206
251
|
const metadata = value.metadata;
|
|
207
|
-
const server = typeof metadata?.server === "string" ? metadata.server : defaultServer;
|
|
208
252
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
209
253
|
const token = value.type === "oauth" ? value.access : value.key;
|
|
210
|
-
return http.execute(HttpClientRequest.get(`${
|
|
254
|
+
return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}))).pipe(Effect.flatMap((response) => {
|
|
211
255
|
if (response.status === 404)
|
|
212
256
|
return Effect.undefined;
|
|
213
|
-
return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse))
|
|
257
|
+
return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
|
|
214
258
|
}));
|
|
215
259
|
}
|
|
260
|
+
function serverUrl(value) {
|
|
261
|
+
return typeof value.metadata?.server === "string" ? value.metadata.server : defaultServer;
|
|
262
|
+
}
|
|
216
263
|
function withoutCredentials(body) {
|
|
217
264
|
return body && Object.fromEntries(Object.entries(body).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
|
|
218
265
|
}
|