@opencode/core 0.0.0-dev-19567 → 0.0.0-dev-19568
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/agent.js +67 -67
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +53 -53
- package/dist/catalog.js +67 -67
- package/dist/chunks/{filesystem-bccb6npm.js → filesystem-06dxphr1.js} +3 -3
- package/dist/chunks/{filesystem-ehhvb1z1.js → filesystem-0b51tgne.js} +23 -23
- package/dist/chunks/{filesystem-f8652x2w.js → filesystem-0ezsa6vy.js} +40 -40
- package/dist/chunks/{filesystem-vncd6x2p.js → filesystem-0jsm5b6f.js} +18 -18
- package/dist/chunks/{filesystem-zdzb03tf.js → filesystem-0yf7gmgh.js} +1 -1
- package/dist/chunks/{filesystem-j8yes9fb.js → filesystem-0z4swx6k.js} +13 -13
- package/dist/chunks/{filesystem-f2n192rq.js → filesystem-1acjjqhc.js} +3 -3
- package/dist/chunks/{filesystem-k5734w4a.js → filesystem-1b5k9ny0.js} +8 -8
- package/dist/chunks/{filesystem-078gytam.js → filesystem-1q26ypmg.js} +14 -14
- package/dist/chunks/{filesystem-1s6ef6er.js → filesystem-1xzg4q7f.js} +7 -7
- package/dist/chunks/{filesystem-6rx9j4b0.js → filesystem-27fbez5x.js} +6 -6
- package/dist/chunks/{filesystem-6y0dpk3y.js → filesystem-298asx42.js} +25 -25
- package/dist/chunks/{filesystem-xn99z6n2.js → filesystem-2ah6ycde.js} +24 -24
- package/dist/chunks/{filesystem-t6xgqy70.js → filesystem-2b6sywcb.js} +10 -10
- package/dist/chunks/{filesystem-ywkfy99j.js → filesystem-2bt6bea8.js} +7 -7
- package/dist/chunks/{filesystem-vkxpz7g2.js → filesystem-2tfmgkzg.js} +2 -2
- package/dist/chunks/{filesystem-56gdpj1q.js → filesystem-33w4ejhs.js} +4 -4
- package/dist/chunks/{filesystem-9m209nhj.js → filesystem-3723sw29.js} +4 -4
- package/dist/chunks/{filesystem-caw866h7.js → filesystem-3bxse654.js} +9 -9
- package/dist/chunks/{filesystem-041s7t4d.js → filesystem-3e73f7fn.js} +18 -18
- package/dist/chunks/{filesystem-jjt6g8ec.js → filesystem-3p9h8pr0.js} +10 -10
- package/dist/chunks/{filesystem-vwedqk8m.js → filesystem-4as8h3gg.js} +13 -13
- package/dist/chunks/{filesystem-ekjywdh4.js → filesystem-4f8bfcxm.js} +10 -10
- package/dist/chunks/{filesystem-nh937vtg.js → filesystem-4f92c8s9.js} +16 -16
- package/dist/chunks/{filesystem-bezn74c1.js → filesystem-4fbncvv5.js} +6 -6
- package/dist/chunks/{filesystem-175mk5tz.js → filesystem-4mwvkeyx.js} +10 -10
- package/dist/chunks/{filesystem-9ftserdy.js → filesystem-4p7x74p9.js} +9 -9
- package/dist/chunks/{filesystem-439y12vh.js → filesystem-4skj9pjn.js} +2 -2
- package/dist/chunks/{filesystem-vsp1fds9.js → filesystem-50mzsvk4.js} +20 -20
- package/dist/chunks/{filesystem-ppf6v6e1.js → filesystem-5762gc32.js} +33 -33
- package/dist/chunks/{filesystem-ayp6cqfq.js → filesystem-57v6fmny.js} +15 -15
- package/dist/chunks/{filesystem-a1bz86dw.js → filesystem-5c4hm403.js} +1 -1
- package/dist/chunks/{filesystem-abe16e6q.js → filesystem-5ctrep3m.js} +9 -9
- package/dist/chunks/{filesystem-ytapak9r.js → filesystem-5m7h1hre.js} +14 -14
- package/dist/chunks/{filesystem-pmr4s4kc.js → filesystem-5q02cxx3.js} +3 -3
- package/dist/chunks/{filesystem-mgjabrz5.js → filesystem-5rjrjdee.js} +4 -4
- package/dist/chunks/{filesystem-5c91nd8t.js → filesystem-5whwrpxa.js} +8 -8
- package/dist/chunks/{filesystem-qgn6gcr1.js → filesystem-607tc6va.js} +4 -4
- package/dist/chunks/{filesystem-eyeb23k4.js → filesystem-631045jg.js} +28 -28
- package/dist/chunks/{filesystem-gqrjg9m0.js → filesystem-64ddj6v7.js} +1 -1
- package/dist/chunks/{filesystem-7qj23typ.js → filesystem-696tvegr.js} +27 -27
- package/dist/chunks/{filesystem-khbvvr7x.js → filesystem-6gwpwpyd.js} +22 -22
- package/dist/chunks/{filesystem-r1kfjs52.js → filesystem-6gypj2re.js} +23 -23
- package/dist/chunks/{filesystem-7n5ebxvb.js → filesystem-6j4fq2cq.js} +9 -9
- package/dist/chunks/filesystem-6kdq0pjd.js +4 -0
- package/dist/chunks/{filesystem-ssnweha5.js → filesystem-6kkxyhkv.js} +3 -3
- package/dist/chunks/{filesystem-gg8vxy2p.js → filesystem-6qxnajbz.js} +23 -23
- package/dist/chunks/{filesystem-mgp1xb0f.js → filesystem-6zp4xm1r.js} +22 -22
- package/dist/chunks/{filesystem-23279rje.js → filesystem-703jyx7f.js} +7 -7
- package/dist/chunks/{filesystem-w105trey.js → filesystem-7061gxvt.js} +23 -23
- package/dist/chunks/{filesystem-ecrg2nqv.js → filesystem-72jmdy6r.js} +19 -19
- package/dist/chunks/{filesystem-q8qk0cpb.js → filesystem-75va9qk2.js} +9 -9
- package/dist/chunks/{filesystem-3c1tgrea.js → filesystem-7bnzk546.js} +5 -5
- package/dist/chunks/{filesystem-ad7xdf9r.js → filesystem-7krdaasy.js} +5 -5
- package/dist/chunks/{filesystem-yya0sae6.js → filesystem-7nwp8zja.js} +9 -9
- package/dist/chunks/{filesystem-wj45sndb.js → filesystem-7pqa36gv.js} +11 -11
- package/dist/chunks/{filesystem-dhwr7h25.js → filesystem-7rrn560x.js} +9 -9
- package/dist/chunks/{filesystem-4frkg54w.js → filesystem-81swgkk7.js} +7 -7
- package/dist/chunks/{filesystem-av1zmrck.js → filesystem-84r56gr5.js} +1 -1
- package/dist/chunks/{filesystem-5et2ke9z.js → filesystem-85c4hbm5.js} +22 -22
- package/dist/chunks/{filesystem-55yqmepc.js → filesystem-8aabwx5n.js} +17 -17
- package/dist/chunks/{filesystem-jacaeees.js → filesystem-8akv9m9x.js} +15 -15
- package/dist/chunks/{filesystem-958js9br.js → filesystem-8et7pj57.js} +12 -12
- package/dist/chunks/{filesystem-hef24fn2.js → filesystem-8m5v51r2.js} +40 -40
- package/dist/chunks/{filesystem-ptytrkeg.js → filesystem-9104srmq.js} +16 -16
- package/dist/chunks/{filesystem-krhdd13z.js → filesystem-975yhv65.js} +17 -17
- package/dist/chunks/{filesystem-cf3tj770.js → filesystem-9c1k5ss1.js} +8 -8
- package/dist/chunks/{filesystem-tmz07czs.js → filesystem-9d82za01.js} +18 -18
- package/dist/chunks/{filesystem-zxnzg6kz.js → filesystem-9j5jfgtr.js} +22 -22
- package/dist/chunks/{filesystem-x159k7tn.js → filesystem-9qpqmwv0.js} +9 -9
- package/dist/chunks/{filesystem-dywhtpsx.js → filesystem-9s312kc4.js} +7 -7
- package/dist/chunks/{filesystem-p815bw41.js → filesystem-9v1c99ce.js} +75 -75
- package/dist/chunks/{filesystem-z46ew2vq.js → filesystem-a2hw0sqp.js} +45 -45
- package/dist/chunks/{filesystem-1ndypj5r.js → filesystem-a3r4dcrj.js} +1 -1
- package/dist/chunks/{filesystem-27ekamt2.js → filesystem-akfg16cj.js} +1 -1
- package/dist/chunks/{filesystem-9fvhjrgf.js → filesystem-arpbwta6.js} +22 -22
- package/dist/chunks/{filesystem-bv2jx7pw.js → filesystem-b1tz6w3s.js} +28 -28
- package/dist/chunks/{filesystem-b8mjdg95.js → filesystem-b762qnyw.js} +30 -30
- package/dist/chunks/{filesystem-yatbfktz.js → filesystem-bjbm878y.js} +4 -4
- package/dist/chunks/{filesystem-6xgghmbk.js → filesystem-bp0xbca5.js} +39 -39
- package/dist/chunks/{filesystem-yxc59d7f.js → filesystem-bs4q3tqg.js} +5 -5
- package/dist/chunks/{filesystem-v84z85pp.js → filesystem-c8266qxr.js} +11 -11
- package/dist/chunks/{filesystem-57gxc5pf.js → filesystem-cerc8atz.js} +16 -16
- package/dist/chunks/{filesystem-79h9wc7p.js → filesystem-cpcnfgyy.js} +27 -27
- package/dist/chunks/{filesystem-w2yvy5y9.js → filesystem-d979a45b.js} +4 -4
- package/dist/chunks/{filesystem-eraanh1f.js → filesystem-da6kr1wx.js} +5 -5
- package/dist/chunks/{filesystem-dkvg49fw.js → filesystem-dn7swrv3.js} +29 -29
- package/dist/chunks/{filesystem-y71avatq.js → filesystem-dpkg50ah.js} +3 -3
- package/dist/chunks/{filesystem-41k02yvh.js → filesystem-dq26kvy6.js} +16 -16
- package/dist/chunks/{filesystem-6bckx01s.js → filesystem-dzhcmde1.js} +5 -5
- package/dist/chunks/{filesystem-77xgrpmb.js → filesystem-e0tp7zzd.js} +21 -21
- package/dist/chunks/{filesystem-12v07r08.js → filesystem-e7tx2v0e.js} +8 -8
- package/dist/chunks/{filesystem-4jjph5sa.js → filesystem-e99qm4q4.js} +7 -7
- package/dist/chunks/{filesystem-0gdmqesm.js → filesystem-eaj1djv9.js} +7 -7
- package/dist/chunks/{filesystem-ntkt8hfw.js → filesystem-eb2yma87.js} +8 -8
- package/dist/chunks/{filesystem-sgm801mv.js → filesystem-eb4y5yy0.js} +25 -25
- package/dist/chunks/{filesystem-kh4cqp9s.js → filesystem-ecd1f3mq.js} +4 -4
- package/dist/chunks/{filesystem-2qxnj2tc.js → filesystem-ecfkvkmx.js} +10 -10
- package/dist/chunks/{filesystem-eh1r3epm.js → filesystem-ee5p72rr.js} +3 -3
- package/dist/chunks/{filesystem-kk05wj6g.js → filesystem-efttx8x1.js} +5 -5
- package/dist/chunks/{filesystem-2da2wngq.js → filesystem-epn31rr5.js} +6 -6
- package/dist/chunks/{filesystem-gx8gn256.js → filesystem-erhcz2jb.js} +25 -25
- package/dist/chunks/{filesystem-h85jpfa0.js → filesystem-es5dr4fw.js} +7 -7
- package/dist/chunks/{filesystem-8z6dw92s.js → filesystem-ethbh4z7.js} +16 -16
- package/dist/chunks/{filesystem-2f0bjgcj.js → filesystem-evbgk2k8.js} +3 -3
- package/dist/chunks/{filesystem-65tvvp9r.js → filesystem-ez02qrbp.js} +1 -1
- package/dist/chunks/{filesystem-6fatt4mk.js → filesystem-f7ehr2sm.js} +8 -8
- package/dist/chunks/{filesystem-kkdq4gv9.js → filesystem-fc5gyn3k.js} +8 -8
- package/dist/chunks/{filesystem-4xwhw091.js → filesystem-fgsjaxv0.js} +2 -2
- package/dist/chunks/{filesystem-9v4y56cw.js → filesystem-fm98w790.js} +8 -8
- package/dist/chunks/{filesystem-v36j07s8.js → filesystem-fpnq3hwf.js} +12 -12
- package/dist/chunks/{filesystem-trwj2ymr.js → filesystem-fsma24dd.js} +4 -4
- package/dist/chunks/{filesystem-ysg8hvve.js → filesystem-ftyr94h4.js} +28 -28
- package/dist/chunks/{filesystem-kjc7y5he.js → filesystem-fyvhdr9h.js} +7 -7
- package/dist/chunks/{filesystem-rzj44daq.js → filesystem-ga5yzwkb.js} +15 -15
- package/dist/chunks/{filesystem-q9sh34kg.js → filesystem-gb4851xq.js} +29 -29
- package/dist/chunks/{filesystem-k394pqej.js → filesystem-gea7vc3h.js} +4 -4
- package/dist/chunks/{filesystem-qm7jrdpz.js → filesystem-gft05b0a.js} +7 -7
- package/dist/chunks/{filesystem-n8dshb08.js → filesystem-h0vwgry8.js} +11 -11
- package/dist/chunks/{filesystem-6b0jwvmt.js → filesystem-haa1g6we.js} +27 -27
- package/dist/chunks/{filesystem-f828m53h.js → filesystem-hdnk95c8.js} +1 -1
- package/dist/chunks/{filesystem-f8rh72t3.js → filesystem-hfk3zaat.js} +9 -9
- package/dist/chunks/{filesystem-nhy5jxhy.js → filesystem-hjt4xg1x.js} +3 -3
- package/dist/chunks/{filesystem-sk6yq7gh.js → filesystem-jexxy024.js} +3 -3
- package/dist/chunks/{filesystem-r7yb2281.js → filesystem-jjf0vtdq.js} +10 -10
- package/dist/chunks/{filesystem-87c2hcfn.js → filesystem-jxn345vr.js} +16 -16
- package/dist/chunks/{filesystem-4xhf45yx.js → filesystem-k1j6gk9a.js} +6 -6
- package/dist/chunks/{filesystem-0z4fxwj8.js → filesystem-k2qtg38n.js} +27 -27
- package/dist/chunks/{filesystem-se105tye.js → filesystem-k6z5z3xm.js} +4 -4
- package/dist/chunks/{filesystem-4b4yfk1e.js → filesystem-ka7bdmkm.js} +41 -41
- package/dist/chunks/{filesystem-6a2hk3n2.js → filesystem-kdsged9e.js} +8 -8
- package/dist/chunks/{filesystem-4j9ew2rr.js → filesystem-kfs8rg3h.js} +1 -1
- package/dist/chunks/{filesystem-5wvv95xm.js → filesystem-ky7as88a.js} +19 -19
- package/dist/chunks/{filesystem-cfpkc3c9.js → filesystem-m0jqrx5p.js} +1 -1
- package/dist/chunks/{filesystem-45vv7gab.js → filesystem-m87kjwf8.js} +9 -9
- package/dist/chunks/{filesystem-1bbkgx8g.js → filesystem-mhkvc446.js} +2 -2
- package/dist/chunks/{filesystem-aycy0v5g.js → filesystem-mmgf1rqt.js} +10 -10
- package/dist/chunks/{filesystem-y88ze32q.js → filesystem-mrjzwcm0.js} +9 -9
- package/dist/chunks/{filesystem-dsqq6j4y.js → filesystem-mtd6x72z.js} +5 -5
- package/dist/chunks/{filesystem-nnwnj3kt.js → filesystem-myekw2gp.js} +10 -10
- package/dist/chunks/{filesystem-v5eees2g.js → filesystem-mz2wz6jn.js} +19 -19
- package/dist/chunks/{filesystem-rv6e4z41.js → filesystem-mzhavs24.js} +35 -35
- package/dist/chunks/{filesystem-axc3cb0n.js → filesystem-n7ghmjtx.js} +7 -7
- package/dist/chunks/{filesystem-zzzpg4zy.js → filesystem-n8v6jt5n.js} +11 -11
- package/dist/chunks/{filesystem-w9s2bh3f.js → filesystem-nbvvbhgb.js} +74 -74
- package/dist/chunks/{filesystem-jaqemzyz.js → filesystem-nhj3pk2g.js} +16 -16
- package/dist/chunks/{filesystem-p6hxwm8v.js → filesystem-nm2epvtw.js} +22 -22
- package/dist/chunks/{filesystem-hwma07pt.js → filesystem-nrtb1m71.js} +13 -13
- package/dist/chunks/{filesystem-wyzh7da2.js → filesystem-p0hmzt3n.js} +7 -7
- package/dist/chunks/{filesystem-zf0cgqdy.js → filesystem-p0ydpdje.js} +1 -1
- package/dist/chunks/{filesystem-gacr8fx6.js → filesystem-p5w9prz9.js} +24 -24
- package/dist/chunks/{filesystem-4fy5a9h5.js → filesystem-p6j6tyky.js} +17 -17
- package/dist/chunks/{filesystem-j935v87r.js → filesystem-paphc93g.js} +2 -2
- package/dist/chunks/{filesystem-th2mpfrx.js → filesystem-pbky73a2.js} +3 -3
- package/dist/chunks/{filesystem-p44d8wdy.js → filesystem-pecb0brz.js} +3 -3
- package/dist/chunks/{filesystem-zjyfgt6w.js → filesystem-pge2bfmc.js} +18 -18
- package/dist/chunks/{filesystem-0300fd29.js → filesystem-px514bpm.js} +19 -19
- package/dist/chunks/{filesystem-1x11rq2a.js → filesystem-q509s3k3.js} +4 -4
- package/dist/chunks/{filesystem-4zqmmk7v.js → filesystem-qen1jmg8.js} +32 -32
- package/dist/chunks/{filesystem-wbkyxrgf.js → filesystem-qjnxxf51.js} +3 -3
- package/dist/chunks/{filesystem-bkfa2z39.js → filesystem-re9amv7g.js} +163 -163
- package/dist/chunks/{filesystem-hr4rc9dq.js → filesystem-rfp29srv.js} +23 -23
- package/dist/chunks/{filesystem-xvkeykba.js → filesystem-rgrjgzhx.js} +18 -18
- package/dist/chunks/{filesystem-jay4nmce.js → filesystem-rgyfsfc5.js} +32 -32
- package/dist/chunks/filesystem-rh7ezj45.js +26 -0
- package/dist/chunks/{filesystem-87bjq7d8.js → filesystem-rk9hj1v7.js} +47 -47
- package/dist/chunks/{filesystem-x6aajhkr.js → filesystem-rnfn6xxq.js} +21 -21
- package/dist/chunks/{filesystem-gb7ervf3.js → filesystem-rph3zd4r.js} +5 -5
- package/dist/chunks/{filesystem-ndaapn5x.js → filesystem-rr25vpab.js} +8 -8
- package/dist/chunks/{filesystem-a9pdx8gz.js → filesystem-rvzfv4w1.js} +7 -7
- package/dist/chunks/{filesystem-a4kfj0a0.js → filesystem-rxdk16p3.js} +17 -17
- package/dist/chunks/{filesystem-ahnqppdj.js → filesystem-rxjvbk8n.js} +1 -1
- package/dist/chunks/{filesystem-jhvzetwt.js → filesystem-s9q5j7ef.js} +39 -39
- package/dist/chunks/{filesystem-r8dnm4fk.js → filesystem-sf0gthgt.js} +11 -11
- package/dist/chunks/{filesystem-25jf9b0a.js → filesystem-t000jqpf.js} +17 -17
- package/dist/chunks/{filesystem-6ck2t1rv.js → filesystem-t0x5rdq8.js} +7 -7
- package/dist/chunks/{filesystem-cj0ynpdk.js → filesystem-t15xvjkv.js} +16 -16
- package/dist/chunks/{filesystem-12v7y99v.js → filesystem-t7nbeyr2.js} +12 -12
- package/dist/chunks/{filesystem-g9mjxn54.js → filesystem-tdk2wfqj.js} +8 -8
- package/dist/chunks/{filesystem-h39eyz0q.js → filesystem-thcje0ms.js} +16 -16
- package/dist/chunks/{filesystem-88bvrjqm.js → filesystem-tj8y1zy0.js} +14 -14
- package/dist/chunks/{filesystem-1g7epwpd.js → filesystem-tkmwgdpd.js} +3 -3
- package/dist/chunks/{filesystem-0c4e0yvv.js → filesystem-tm94zk3c.js} +29 -29
- package/dist/chunks/{filesystem-gthqyac3.js → filesystem-tryb73nk.js} +3 -3
- package/dist/chunks/{filesystem-ey1y6cx4.js → filesystem-tv2fxbte.js} +7 -7
- package/dist/chunks/{filesystem-tpw6cwsb.js → filesystem-v4hmzr0r.js} +7 -7
- package/dist/chunks/{filesystem-c0msvw2j.js → filesystem-v7t6t3ee.js} +20 -20
- package/dist/chunks/filesystem-v8z7968n.js +247 -0
- package/dist/chunks/{filesystem-t1waf9zt.js → filesystem-vcybtvp5.js} +7 -7
- package/dist/chunks/{filesystem-m142jtgy.js → filesystem-vd431jt0.js} +10 -10
- package/dist/chunks/{filesystem-nkvjcq56.js → filesystem-vjstzn3j.js} +12 -12
- package/dist/chunks/{filesystem-gzxx6bgm.js → filesystem-vm9edkyf.js} +14 -14
- package/dist/chunks/{filesystem-em33emqj.js → filesystem-vywwb7xw.js} +1 -1
- package/dist/chunks/{filesystem-dsyn576s.js → filesystem-vz4k8wbp.js} +2 -2
- package/dist/chunks/{filesystem-wh1jz8sn.js → filesystem-w2w9rvzr.js} +44 -44
- package/dist/chunks/{filesystem-d7swqpa7.js → filesystem-w7cks01r.js} +16 -16
- package/dist/chunks/{filesystem-cqk3ba3b.js → filesystem-wbcpzrvz.js} +4 -4
- package/dist/chunks/{filesystem-pwxjd99w.js → filesystem-wcft5t0g.js} +17 -17
- package/dist/chunks/{filesystem-9grmh3gg.js → filesystem-wcy83pfm.js} +12 -12
- package/dist/chunks/{filesystem-sqhed6c7.js → filesystem-wprd8xj9.js} +16 -16
- package/dist/chunks/{filesystem-f0q97ex4.js → filesystem-wqntmd11.js} +6 -6
- package/dist/chunks/{filesystem-qwwrayhn.js → filesystem-x1cde7tm.js} +10 -10
- package/dist/chunks/{filesystem-n2g8w3nt.js → filesystem-x6h9ntm8.js} +25 -25
- package/dist/chunks/{filesystem-0vag3j8x.js → filesystem-xb3nqwnp.js} +60 -60
- package/dist/chunks/{filesystem-kqn78m91.js → filesystem-xb7w47hd.js} +9 -9
- package/dist/chunks/{filesystem-kzs1nj2w.js → filesystem-xbv0k4ba.js} +38 -38
- package/dist/chunks/{filesystem-w28ya9nv.js → filesystem-xez80017.js} +17 -17
- package/dist/chunks/{filesystem-rdfsynn7.js → filesystem-xg954myy.js} +5 -5
- package/dist/chunks/{filesystem-37jfsww8.js → filesystem-xrr0m7w9.js} +15 -15
- package/dist/chunks/{filesystem-18e56dsp.js → filesystem-xwwz9aqf.js} +3 -3
- package/dist/chunks/{filesystem-8czw5t31.js → filesystem-xxj3pgp3.js} +1 -1
- package/dist/chunks/{filesystem-yy6wawb8.js → filesystem-y3xz725g.js} +24 -24
- package/dist/chunks/{filesystem-nmedgzjr.js → filesystem-y45wrhxb.js} +6 -6
- package/dist/chunks/{filesystem-z2erpwqc.js → filesystem-y80z5qnm.js} +16 -16
- package/dist/chunks/{filesystem-2w43xsrz.js → filesystem-y9mn02hf.js} +10 -10
- package/dist/chunks/{filesystem-2ctqm5ex.js → filesystem-yawef6kw.js} +1 -1
- package/dist/chunks/{filesystem-qxe1e9q5.js → filesystem-ypz4327q.js} +3 -3
- package/dist/chunks/{filesystem-av40d20f.js → filesystem-yqtqx2tb.js} +1 -1
- package/dist/chunks/{filesystem-ks78zxsa.js → filesystem-yrr26vyh.js} +27 -27
- package/dist/chunks/{filesystem-60qw2sva.js → filesystem-yrz8q0k0.js} +5 -5
- package/dist/chunks/{filesystem-s4enseaf.js → filesystem-yrznvahk.js} +1 -1
- package/dist/chunks/{filesystem-bm5ycmby.js → filesystem-yvrn8c55.js} +9 -9
- package/dist/chunks/{filesystem-5y27wggs.js → filesystem-yx6mkdzk.js} +48 -48
- package/dist/chunks/{filesystem-8jt463w9.js → filesystem-z2708axn.js} +27 -27
- package/dist/chunks/{filesystem-29x78va6.js → filesystem-z63w68vq.js} +4 -4
- package/dist/chunks/{filesystem-rnm8ebdw.js → filesystem-zb3fmyt6.js} +300 -300
- package/dist/chunks/{filesystem-cdt344wa.js → filesystem-zdx06d9s.js} +32 -32
- package/dist/chunks/{filesystem-f8gcejx1.js → filesystem-zqngs88h.js} +12 -12
- package/dist/chunks/{filesystem-9ewzbff8.js → filesystem-zshj55xc.js} +23 -23
- package/dist/chunks/{filesystem-hn57h045.js → filesystem-zvt5dnpc.js} +3 -3
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +67 -67
- package/dist/config/discovery.js +61 -61
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +95 -95
- package/dist/config/plugin/command.js +180 -180
- package/dist/config/plugin/compaction.js +133 -133
- package/dist/config/plugin/compatibility.js +111 -111
- package/dist/config/plugin/formatter.js +94 -94
- package/dist/config/plugin/image.js +93 -93
- package/dist/config/plugin/instruction.js +68 -68
- package/dist/config/plugin/location-watcher.js +93 -93
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +92 -92
- package/dist/config/plugin/provider.js +91 -91
- package/dist/config/plugin/reference.js +94 -94
- package/dist/config/plugin/shell.js +95 -95
- package/dist/config/plugin/skill-file.js +77 -77
- package/dist/config/plugin/skill.js +114 -114
- package/dist/config/plugin/snapshot.js +93 -93
- package/dist/config/plugin/source.js +95 -95
- package/dist/config/plugin/tool-output.js +95 -95
- package/dist/config/plugin/websearch.js +93 -93
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config/variable.js +2 -2
- package/dist/config.js +98 -98
- package/dist/credential.js +67 -67
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +35 -35
- package/dist/database/migration.js +36 -36
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +242 -242
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +68 -68
- package/dist/environment/index.js +70 -70
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +80 -80
- package/dist/file-mutation.js +69 -69
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +190 -190
- package/dist/filesystem/search.js +77 -77
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +76 -76
- package/dist/form.js +68 -68
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +75 -75
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +313 -313
- package/dist/instruction-discovery.js +68 -68
- package/dist/instructions/builtins.js +66 -66
- package/dist/instructions/index.js +5 -5
- package/dist/integration.js +70 -70
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +59 -59
- package/dist/location-mutation.js +35 -35
- package/dist/location-service-map.js +65 -65
- package/dist/location-services.js +310 -310
- package/dist/location.js +68 -68
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +95 -95
- package/dist/mcp/stdio.js +65 -65
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +70 -70
- package/dist/model.js +8 -8
- package/dist/models-dev.js +70 -70
- package/dist/permission/saved.js +65 -65
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +87 -87
- package/dist/persistent-pty/index.js +68 -68
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +76 -76
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +183 -183
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +285 -285
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +59 -59
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +78 -78
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +95 -95
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +95 -95
- package/dist/plugin/provider/cloudflare-workers-ai.js +95 -95
- package/dist/plugin/provider/configured.js +93 -93
- package/dist/plugin/provider/digitalocean.js +62 -62
- package/dist/plugin/provider/github-copilot.js +64 -64
- 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 +60 -60
- package/dist/plugin/provider/lmstudio.js +96 -96
- package/dist/plugin/provider/modal.js +63 -63
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +96 -96
- package/dist/plugin/provider/openai.js +63 -63
- package/dist/plugin/provider/opencode.js +62 -62
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +95 -95
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +96 -96
- package/dist/plugin/provider/xai.js +61 -61
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +129 -129
- package/dist/plugin/sdk.js +58 -58
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +112 -112
- package/dist/plugin/supervisor.js +302 -302
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +65 -65
- package/dist/plugin/vcs/hg.js +65 -65
- package/dist/plugin/warming.js +91 -91
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +194 -194
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +69 -69
- package/dist/provider.js +5 -5
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +74 -74
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +68 -68
- package/dist/repository-cache.js +61 -61
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +65 -65
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +105 -105
- package/dist/session/context.js +120 -120
- package/dist/session/diff.js +66 -66
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +121 -121
- package/dist/session/execution.js +103 -103
- package/dist/session/generate.js +121 -121
- package/dist/session/history.js +11 -11
- package/dist/session/inbox.js +68 -68
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +62 -62
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +74 -74
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +106 -106
- package/dist/session/projector.js +65 -65
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +67 -67
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +193 -193
- package/dist/session/runner/model.js +70 -70
- package/dist/session/runner/retry.js +91 -91
- package/dist/session/runner/step.js +98 -98
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +142 -142
- package/dist/session/shell.js +105 -105
- package/dist/session/skill.js +79 -79
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +68 -68
- package/dist/session/subagent-job.js +176 -176
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +123 -123
- package/dist/session/to-session-error.js +88 -88
- package/dist/session/transfer.js +118 -118
- package/dist/session.js +178 -178
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +106 -106
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +88 -88
- package/dist/snapshot.js +68 -68
- package/dist/tool/mcp.js +92 -92
- package/dist/tool/plugin/edit.js +91 -91
- package/dist/tool/plugin/glob.js +91 -91
- package/dist/tool/plugin/grep.js +95 -95
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +93 -93
- package/dist/tool/plugin/question.js +79 -79
- package/dist/tool/plugin/read.js +96 -96
- package/dist/tool/plugin/shell.js +184 -184
- package/dist/tool/plugin/skill.js +89 -89
- package/dist/tool/plugin/subagent.js +179 -179
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +90 -90
- package/dist/tool/plugin/write.js +91 -91
- package/dist/tool/read-filesystem.js +71 -71
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +3 -3
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +68 -68
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +58 -58
- package/dist/wellknown.js +61 -61
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +64 -64
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +301 -301
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/filesystem-0mesazry.js +0 -4
- package/dist/chunks/filesystem-cfbhz4sy.js +0 -26
- package/dist/chunks/filesystem-kshn8saw.js +0 -247
- /package/dist/chunks/{filesystem-kay20y4r.js → filesystem-4v46yx8e.js} +0 -0
- /package/dist/chunks/{filesystem-0dfv01xh.js → filesystem-5nrew705.js} +0 -0
- /package/dist/chunks/{filesystem-8p4f9s12.js → filesystem-dj2t23y0.js} +0 -0
- /package/dist/chunks/{filesystem-rwdrjh9g.js → filesystem-nyr44rzh.js} +0 -0
- /package/dist/chunks/{filesystem-mrrn9raq.js → filesystem-yzpfgjrz.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./filesystem-
|
|
2
|
+
Service49
|
|
3
|
+
} from "./filesystem-vm9edkyf.js";
|
|
4
4
|
import {
|
|
5
5
|
Service17
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-nbvvbhgb.js";
|
|
7
7
|
import {
|
|
8
8
|
text2,
|
|
9
9
|
deliver2
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
var exports_subagent_job = {};
|
|
17
17
|
__export(exports_subagent_job, {
|
|
18
18
|
SubagentJob: () => exports_subagent_job,
|
|
19
|
-
make: () =>
|
|
19
|
+
make: () => make10
|
|
20
20
|
});
|
|
21
21
|
import { Effect, Scope } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var make10 = Effect.gen(function* () {
|
|
23
23
|
const sessions = yield* Service17;
|
|
24
|
-
const jobs = yield*
|
|
24
|
+
const jobs = yield* Service49;
|
|
25
25
|
const scope = yield* Scope.Scope;
|
|
26
26
|
const notifications = new Set;
|
|
27
27
|
const notify = Effect.fn("SubagentJob.notify")(function* (recovery, startedAt) {
|
|
@@ -58,4 +58,4 @@ var make9 = Effect.gen(function* () {
|
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { make10, exports_subagent_job };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./filesystem-
|
|
4
|
+
} from "./filesystem-7pqa36gv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./filesystem-
|
|
6
|
+
Service32
|
|
7
|
+
} from "./filesystem-8m5v51r2.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./filesystem-
|
|
10
|
+
} from "./filesystem-p0hmzt3n.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/lmstudio.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -31,12 +31,12 @@ var RemoteModel = Schema.Struct({
|
|
|
31
31
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
32
32
|
var discovery = new Map;
|
|
33
33
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
34
|
-
function
|
|
34
|
+
function make4(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
35
35
|
return define({
|
|
36
36
|
id: "opencode.provider.lmstudio",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
38
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service32;
|
|
40
40
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
41
41
|
const loaded = { models: [], hash: "[]" };
|
|
42
42
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ function make5(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
63
63
|
});
|
|
64
64
|
for (const item of loaded.models) {
|
|
65
65
|
catalog.model.update(providerID, item.key, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID13.make(item.key);
|
|
67
67
|
model.name = item.display_name || item.key;
|
|
68
68
|
model.family = item.architecture ? Family2.make(item.architecture) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -125,7 +125,7 @@ function make5(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
var LMStudioPlugin2 =
|
|
128
|
+
var LMStudioPlugin2 = make4();
|
|
129
129
|
function configured(entries, origin) {
|
|
130
130
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
131
131
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -142,4 +142,4 @@ function configured(entries, origin) {
|
|
|
142
142
|
return { baseURL, apiKey, endpoint: url.toString() };
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export {
|
|
145
|
+
export { make4, LMStudioPlugin2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./filesystem-
|
|
2
|
+
Service32
|
|
3
|
+
} from "./filesystem-8m5v51r2.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./filesystem-
|
|
5
|
+
Service28
|
|
6
|
+
} from "./filesystem-a2hw0sqp.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./filesystem-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp2 = {};
|
|
13
|
+
__export(exports_mcp2, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
+
Plugin: () => Plugin35,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin35 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service32;
|
|
28
|
+
const mcp = yield* Service28;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin35, register2, exports_mcp2 };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
ascending2
|
|
3
3
|
} from "./filesystem-tvtrv512.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./filesystem-
|
|
5
|
+
Service61,
|
|
6
|
+
node65
|
|
7
|
+
} from "./filesystem-rr25vpab.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionMessage2
|
|
10
10
|
} from "./filesystem-gftt206x.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./filesystem-
|
|
13
|
+
} from "./filesystem-jexxy024.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
var exports_job = {};
|
|
20
20
|
__export(exports_job, {
|
|
21
21
|
Job: () => exports_job,
|
|
22
|
-
Service: () =>
|
|
23
|
-
make: () =>
|
|
24
|
-
node: () =>
|
|
22
|
+
Service: () => Service49,
|
|
23
|
+
make: () => make19,
|
|
24
|
+
node: () => node53
|
|
25
25
|
});
|
|
26
26
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
27
27
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -50,7 +50,7 @@ var Background = Schema.Struct({
|
|
|
50
50
|
var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
51
51
|
var backgroundPrefix = "job.background/";
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service49 extends Context.Service()("@opencode/Job") {
|
|
54
54
|
}
|
|
55
55
|
function snapshot(job) {
|
|
56
56
|
return {
|
|
@@ -77,8 +77,8 @@ function decrementSession(input, sessionID) {
|
|
|
77
77
|
next.set(sessionID, count - 1);
|
|
78
78
|
return next;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
const kv = yield*
|
|
80
|
+
var make19 = Effect.gen(function* () {
|
|
81
|
+
const kv = yield* Service61;
|
|
82
82
|
const state = {
|
|
83
83
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
84
84
|
scope: yield* Scope.Scope
|
|
@@ -307,7 +307,7 @@ var make17 = Effect.gen(function* () {
|
|
|
307
307
|
return recovered;
|
|
308
308
|
}).pipe(Effect.withSpan("Job.pendingBackground"));
|
|
309
309
|
const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => kv.remove(`${backgroundPrefix}${notificationID}`));
|
|
310
|
-
return
|
|
310
|
+
return Service49.of({
|
|
311
311
|
get,
|
|
312
312
|
start,
|
|
313
313
|
wait,
|
|
@@ -319,7 +319,7 @@ var make17 = Effect.gen(function* () {
|
|
|
319
319
|
completeBackground
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
|
-
var layer = Layer.effect(
|
|
323
|
-
var
|
|
322
|
+
var layer = Layer.effect(Service49, make19);
|
|
323
|
+
var node53 = makeGlobalNode({ service: Service49, layer, deps: [node65] });
|
|
324
324
|
|
|
325
|
-
export {
|
|
325
|
+
export { Service49, make19, node53, exports_job };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./filesystem-
|
|
4
|
+
} from "./filesystem-fgsjaxv0.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
8
|
} from "./filesystem-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./filesystem-
|
|
11
|
+
} from "./filesystem-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
6
|
nativeSettings2,
|
|
7
7
|
mergeOverlay2,
|
|
8
8
|
mergeHeaders2
|
|
9
|
-
} from "./filesystem-
|
|
9
|
+
} from "./filesystem-xg954myy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./filesystem-
|
|
11
|
+
Service73,
|
|
12
|
+
node78
|
|
13
|
+
} from "./filesystem-mmgf1rqt.js";
|
|
14
14
|
import {
|
|
15
15
|
map2
|
|
16
|
-
} from "./filesystem-
|
|
16
|
+
} from "./filesystem-vywwb7xw.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
ID13,
|
|
19
19
|
VariantID2,
|
|
20
|
-
|
|
21
|
-
} from "./filesystem-
|
|
20
|
+
Ref3
|
|
21
|
+
} from "./filesystem-7pqa36gv.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./filesystem-
|
|
23
|
+
ID6,
|
|
24
|
+
Service51,
|
|
25
|
+
node55
|
|
26
|
+
} from "./filesystem-b1tz6w3s.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./filesystem-
|
|
28
|
+
Service50,
|
|
29
|
+
node54
|
|
30
|
+
} from "./filesystem-zshj55xc.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -39,15 +39,15 @@ __export(exports_model_resolver, {
|
|
|
39
39
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
40
40
|
ModelInitializationError: () => ModelInitializationError3,
|
|
41
41
|
ModelResolver: () => exports_model_resolver,
|
|
42
|
-
Service: () =>
|
|
42
|
+
Service: () => Service48,
|
|
43
43
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
44
44
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
45
45
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
46
46
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
47
47
|
fromCatalogModel: () => fromCatalogModel2,
|
|
48
48
|
hasPackage: () => hasPackage2,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
layer: () => layer20,
|
|
50
|
+
node: () => node52,
|
|
51
51
|
resolveModel: () => resolveModel2,
|
|
52
52
|
withVariant: () => withVariant2
|
|
53
53
|
});
|
|
@@ -57,8 +57,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
57
57
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
58
58
|
import { Npm } from "@opencode/util/npm";
|
|
59
59
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
60
|
-
providerID:
|
|
61
|
-
modelID:
|
|
60
|
+
providerID: ID15,
|
|
61
|
+
modelID: ID13,
|
|
62
62
|
variant: VariantID2
|
|
63
63
|
}) {
|
|
64
64
|
get message() {
|
|
@@ -67,8 +67,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
70
|
-
providerID:
|
|
71
|
-
modelID:
|
|
70
|
+
providerID: ID15,
|
|
71
|
+
modelID: ID13,
|
|
72
72
|
package: Schema.String
|
|
73
73
|
}) {
|
|
74
74
|
get message() {
|
|
@@ -78,8 +78,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
78
78
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
79
79
|
|
|
80
80
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
81
|
-
providerID:
|
|
82
|
-
modelID:
|
|
81
|
+
providerID: ID15,
|
|
82
|
+
modelID: ID13,
|
|
83
83
|
package: Schema.String,
|
|
84
84
|
detail: Schema.String
|
|
85
85
|
}) {
|
|
@@ -89,8 +89,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
92
|
-
providerID:
|
|
93
|
-
modelID:
|
|
92
|
+
providerID: ID15,
|
|
93
|
+
modelID: ID13,
|
|
94
94
|
package: Schema.String,
|
|
95
95
|
phase: InitializationPhase2,
|
|
96
96
|
detail: Schema.String
|
|
@@ -101,8 +101,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
104
|
-
providerID:
|
|
105
|
-
modelID:
|
|
104
|
+
providerID: ID15,
|
|
105
|
+
modelID: ID13,
|
|
106
106
|
variables: Schema.Array(Schema.String)
|
|
107
107
|
}) {
|
|
108
108
|
get message() {
|
|
@@ -111,8 +111,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
114
|
-
providerID:
|
|
115
|
-
modelID:
|
|
114
|
+
providerID: ID15,
|
|
115
|
+
modelID: ID13,
|
|
116
116
|
route: Schema.String
|
|
117
117
|
}) {
|
|
118
118
|
get message() {
|
|
@@ -120,7 +120,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
class
|
|
123
|
+
class Service48 extends Context.Service()("@opencode/ModelResolver") {
|
|
124
124
|
}
|
|
125
125
|
var withVariant2 = (model, variantID) => {
|
|
126
126
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -268,14 +268,14 @@ var causeMessage = (cause) => {
|
|
|
268
268
|
};
|
|
269
269
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
270
270
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
271
|
-
var
|
|
272
|
-
const catalog = yield*
|
|
273
|
-
const integrations = yield*
|
|
271
|
+
var layer20 = Layer.effect(Service48, Effect.gen(function* () {
|
|
272
|
+
const catalog = yield* Service50;
|
|
273
|
+
const integrations = yield* Service51;
|
|
274
274
|
const npm = yield* Npm.Service;
|
|
275
|
-
const aisdk = yield*
|
|
275
|
+
const aisdk = yield* Service73;
|
|
276
276
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
277
277
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
278
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
278
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID6.make(selected.providerID));
|
|
279
279
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
280
280
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
281
281
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -285,7 +285,7 @@ var layer24 = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
285
285
|
const runtime = provider?.activation === "enabled" && credential === undefined && !hasConfiguredAuth(runtimeInfo) && usesAPIKeyAuth(runtimeInfo.package) ? LanguageModel.update(model, { route: model.route.with({ auth: Auth.none }) }) : model;
|
|
286
286
|
return {
|
|
287
287
|
model: runtime,
|
|
288
|
-
ref:
|
|
288
|
+
ref: Ref3.make({
|
|
289
289
|
id: selected.id,
|
|
290
290
|
providerID: selected.providerID,
|
|
291
291
|
...variant === undefined ? {} : { variant }
|
|
@@ -297,7 +297,7 @@ var layer24 = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
297
297
|
websocket: selected.websocket ?? false
|
|
298
298
|
};
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service48.of({
|
|
301
301
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
302
302
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
303
303
|
if (!selected)
|
|
@@ -314,10 +314,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
314
314
|
const name = packageName2(packageName);
|
|
315
315
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
service:
|
|
319
|
-
layer:
|
|
320
|
-
deps: [
|
|
317
|
+
var node52 = makeLocationNode({
|
|
318
|
+
service: Service48,
|
|
319
|
+
layer: layer20,
|
|
320
|
+
deps: [node54, node55, Npm.node, node78]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
323
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service48, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer20, node52, exports_model_resolver };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-vz4k8wbp.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./filesystem-
|
|
6
|
+
Event12
|
|
7
|
+
} from "./filesystem-cpcnfgyy.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID6,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./filesystem-
|
|
11
|
+
} from "./filesystem-b1tz6w3s.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID15,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./filesystem-
|
|
16
|
+
} from "./filesystem-xg954myy.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ID3,
|
|
19
|
+
Input13,
|
|
20
20
|
Response2
|
|
21
|
-
} from "./filesystem-
|
|
21
|
+
} from "./filesystem-6gypj2re.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
|
|
|
32
32
|
var RemoteResponse = Schema.Struct({
|
|
33
33
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
34
|
websearch: Schema.Struct({
|
|
35
|
-
providerID:
|
|
35
|
+
providerID: ID3
|
|
36
36
|
}).pipe(Schema.optional)
|
|
37
37
|
});
|
|
38
38
|
var Device = Schema.Struct({
|
|
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
54
54
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
55
55
|
function oauth(http) {
|
|
56
56
|
return {
|
|
57
|
-
integrationID:
|
|
57
|
+
integrationID: ID6.make("opencode"),
|
|
58
58
|
method: {
|
|
59
59
|
id: methodID,
|
|
60
60
|
type: "oauth",
|
|
@@ -125,7 +125,7 @@ var OpencodePlugin2 = define({
|
|
|
125
125
|
catalog.provider.update(providerID, (provider) => {
|
|
126
126
|
if (source && source.provider !== provider)
|
|
127
127
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
128
|
-
provider.integrationID =
|
|
128
|
+
provider.integrationID = ID6.make("opencode");
|
|
129
129
|
if (item.canonical !== undefined)
|
|
130
130
|
provider.canonical = item.canonical;
|
|
131
131
|
if (item.name !== undefined)
|
|
@@ -188,7 +188,7 @@ var OpencodePlugin2 = define({
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
const item = catalog.provider.get(
|
|
191
|
+
const item = catalog.provider.get(ID15.opencode);
|
|
192
192
|
if (!item)
|
|
193
193
|
return;
|
|
194
194
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -228,7 +228,7 @@ var OpencodePlugin2 = define({
|
|
|
228
228
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
229
229
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
230
230
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
231
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
231
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
232
232
|
query: input.query,
|
|
233
233
|
providerID: descriptor.providerID
|
|
234
234
|
}));
|
|
@@ -249,7 +249,7 @@ var OpencodePlugin2 = define({
|
|
|
249
249
|
yield* Effect.all([ctx.catalog.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
250
250
|
});
|
|
251
251
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
252
|
-
yield* bus.subscribe(
|
|
252
|
+
yield* bus.subscribe(Event12.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID6.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
253
253
|
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);
|
|
254
254
|
})
|
|
255
255
|
});
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2,
|
|
4
4
|
UserInterruptedError2
|
|
5
|
-
} from "./filesystem-
|
|
5
|
+
} from "./filesystem-dzhcmde1.js";
|
|
6
6
|
import {
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./filesystem-
|
|
8
|
+
} from "./filesystem-rk9hj1v7.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./filesystem-
|
|
11
|
+
} from "./filesystem-b1tz6w3s.js";
|
|
12
12
|
import {
|
|
13
13
|
ModelNotSelectedError2,
|
|
14
14
|
ModelUnavailableError2,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ModelInitializationError2,
|
|
19
19
|
UnresolvedProviderVariablesError2,
|
|
20
20
|
UnsupportedCompactionError2
|
|
21
|
-
} from "./filesystem-
|
|
21
|
+
} from "./filesystem-t7nbeyr2.js";
|
|
22
22
|
|
|
23
23
|
// src/session/to-session-error.ts
|
|
24
24
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service79,
|
|
4
4
|
node84
|
|
5
|
-
} from "./filesystem-
|
|
5
|
+
} from "./filesystem-vz4k8wbp.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./filesystem-
|
|
7
|
+
Service61,
|
|
8
|
+
node65
|
|
9
|
+
} from "./filesystem-rr25vpab.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -16,13 +16,13 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event15,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service59,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node63,
|
|
26
26
|
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service59 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event15 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -75,9 +75,9 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service61;
|
|
81
81
|
const bus = yield* Service79;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event15.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service59.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event15.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event15.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node63 = makeGlobalNode({ service: Service59, layer, deps: [httpClient, node65, node84] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service59, Event15, inspect2, resolve2, node63, exports_wellknown };
|