@opencode/core 0.0.0-dev-21517 → 0.0.0-dev-21528
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 +75 -75
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{location-activity-pp22040a.js → ripgrep-01mpbv93.js} +35 -35
- package/dist/chunks/{location-activity-5h6tfdbz.js → ripgrep-01shgzdc.js} +3 -3
- package/dist/chunks/{location-activity-02mvvr71.js → ripgrep-02mvvr71.js} +3 -3
- package/dist/chunks/{location-activity-6azzqc0z.js → ripgrep-02vamycj.js} +5 -5
- package/dist/chunks/{location-activity-034tev2y.js → ripgrep-034tev2y.js} +2 -2
- package/dist/chunks/{location-activity-92p7xx7n.js → ripgrep-059731j3.js} +5 -5
- package/dist/chunks/{location-activity-njhqdk9p.js → ripgrep-0jq9fyba.js} +9 -9
- package/dist/chunks/{location-activity-fcrkznn8.js → ripgrep-0jwsre1p.js} +5 -5
- package/dist/chunks/{location-activity-gs3gp2dw.js → ripgrep-0n64x4tw.js} +30 -30
- package/dist/chunks/{location-activity-6t960epn.js → ripgrep-0p01dw92.js} +13 -13
- package/dist/chunks/{location-activity-7ppyhzjx.js → ripgrep-0rhcgknv.js} +8 -8
- package/dist/chunks/{location-activity-0vbcp93d.js → ripgrep-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-activity-f54rk091.js → ripgrep-0vh2wh8r.js} +23 -23
- package/dist/chunks/{location-activity-1pkb9xf6.js → ripgrep-0z5rwn5b.js} +3 -3
- package/dist/chunks/{location-activity-e247ns4g.js → ripgrep-10c60s01.js} +41 -41
- package/dist/chunks/{location-activity-1ep2p91f.js → ripgrep-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-activity-bjx1sjef.js → ripgrep-1ffvrpkg.js} +6 -6
- package/dist/chunks/{location-activity-pzbyjs7h.js → ripgrep-1jbzqkv3.js} +8 -8
- package/dist/chunks/{location-activity-ykdjanh2.js → ripgrep-1jjmp4ry.js} +22 -22
- package/dist/chunks/{location-activity-djjr2x20.js → ripgrep-1kr28b9y.js} +11 -14
- package/dist/chunks/{location-activity-28c9dwea.js → ripgrep-1t3k43qg.js} +5 -5
- package/dist/chunks/{location-activity-fgdtfedm.js → ripgrep-1w3jgprt.js} +35 -35
- package/dist/chunks/{location-activity-gd1x13z4.js → ripgrep-1x7nm4pt.js} +11 -11
- package/dist/chunks/{location-activity-rbg9fbf6.js → ripgrep-252xprac.js} +34 -34
- package/dist/chunks/{location-activity-rz270s8p.js → ripgrep-2awrrk9p.js} +17 -17
- package/dist/chunks/{location-activity-0qmzksdr.js → ripgrep-2qn0jgtg.js} +51 -51
- package/dist/chunks/{location-activity-r2m716tb.js → ripgrep-2sejkfem.js} +9 -9
- package/dist/chunks/{location-activity-dqja8dw2.js → ripgrep-30exac31.js} +31 -31
- package/dist/chunks/{location-activity-537fk6rv.js → ripgrep-36n1s7v8.js} +21 -21
- package/dist/chunks/{location-activity-jhfd3768.js → ripgrep-3842yvza.js} +41 -41
- package/dist/chunks/{location-activity-bmbhqgdj.js → ripgrep-3dk8yxk5.js} +38 -39
- package/dist/chunks/{location-activity-1rtxx7gs.js → ripgrep-3epxp6vs.js} +21 -21
- package/dist/chunks/{location-activity-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-activity-3hwn7j4h.js → ripgrep-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-activity-9t9dtkqe.js → ripgrep-3n7ky5ef.js} +14 -14
- package/dist/chunks/{location-activity-y1bnj3c2.js → ripgrep-3qs99gjb.js} +26 -26
- package/dist/chunks/{location-activity-3tvqynh2.js → ripgrep-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-activity-90t6v735.js → ripgrep-3x7f1rzc.js} +9 -9
- package/dist/chunks/{location-activity-3zsf4n22.js → ripgrep-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-activity-nxk5tgz1.js → ripgrep-40dgfgpg.js} +22 -22
- package/dist/chunks/{location-activity-vbz8v6qj.js → ripgrep-41fykjt6.js} +9 -9
- package/dist/chunks/{location-activity-7y1sbygh.js → ripgrep-4314yh8e.js} +4 -4
- package/dist/chunks/{location-activity-7t5avhxh.js → ripgrep-4323h7yk.js} +9 -9
- package/dist/chunks/{location-activity-n8vdnqrc.js → ripgrep-47jkzegy.js} +5 -5
- package/dist/chunks/{location-activity-paeq8bm7.js → ripgrep-4pq9qanv.js} +32 -32
- package/dist/chunks/{location-activity-d5c0yphb.js → ripgrep-4rv5m1hd.js} +16 -16
- package/dist/chunks/{location-activity-dagxvrjx.js → ripgrep-51cc7nn0.js} +5 -5
- package/dist/chunks/{location-activity-tegs1ycp.js → ripgrep-51f5btjf.js} +6 -6
- package/dist/chunks/{location-activity-56cza17w.js → ripgrep-52cc258v.js} +12 -12
- package/dist/chunks/{location-activity-fd8vcgz6.js → ripgrep-52gmg6gk.js} +22 -22
- package/dist/chunks/{location-activity-5h58n3v7.js → ripgrep-5cvjwq3s.js} +24 -24
- package/dist/chunks/{location-activity-jtstryge.js → ripgrep-5czmpw7c.js} +4 -4
- package/dist/chunks/{location-activity-a9drt9e7.js → ripgrep-5dgwy7vk.js} +11 -11
- package/dist/chunks/{location-activity-z0ydvj27.js → ripgrep-5g57z1ma.js} +4 -4
- package/dist/chunks/{location-activity-5m9w47nd.js → ripgrep-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-activity-mpyev40f.js → ripgrep-5qsp4wg3.js} +9 -9
- package/dist/chunks/{location-activity-0bmgx1nz.js → ripgrep-5sk42kyx.js} +11 -11
- package/dist/chunks/{location-activity-2evmdc3g.js → ripgrep-5t2kw4pk.js} +17 -17
- package/dist/chunks/{location-activity-am1tmpj5.js → ripgrep-5w5a4wvv.js} +10 -10
- package/dist/chunks/{location-activity-zcjqesvk.js → ripgrep-644y02x9.js} +24 -24
- package/dist/chunks/{location-activity-6827pfxn.js → ripgrep-6827pfxn.js} +1 -1
- package/dist/chunks/{location-activity-jyx3vsn7.js → ripgrep-6bc70xnv.js} +1 -1
- package/dist/chunks/{location-activity-yeqk0rnt.js → ripgrep-6cg5s87t.js} +22 -22
- package/dist/chunks/{location-activity-h28sqj9e.js → ripgrep-6fx9ws93.js} +24 -24
- package/dist/chunks/{location-activity-4av8mw61.js → ripgrep-6nd0dxps.js} +37 -37
- package/dist/chunks/{location-activity-5ybyrtj9.js → ripgrep-6w56n6fk.js} +12 -12
- package/dist/chunks/{location-activity-6xb47vfp.js → ripgrep-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-activity-h92dknr7.js → ripgrep-6z448gwt.js} +17 -17
- package/dist/chunks/{location-activity-5cb9jvgc.js → ripgrep-6ze0vk8j.js} +9 -9
- package/dist/chunks/{location-activity-1r3g6d8r.js → ripgrep-71syg536.js} +20 -20
- package/dist/chunks/ripgrep-73kg42pk.js +26 -0
- package/dist/chunks/{location-activity-m3yk03ze.js → ripgrep-75qa566n.js} +14 -14
- package/dist/chunks/{location-activity-775gj3j1.js → ripgrep-775gj3j1.js} +2 -2
- package/dist/chunks/ripgrep-77w5wkn6.js +523 -0
- package/dist/chunks/{location-activity-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-activity-jj6wnavt.js → ripgrep-7gs737wr.js} +6 -6
- package/dist/chunks/{location-activity-nz7m2gc2.js → ripgrep-7gxjxwcg.js} +7 -7
- package/dist/chunks/{location-activity-ndmy5zdf.js → ripgrep-7n3ryd6m.js} +10 -10
- package/dist/chunks/{location-activity-j97xjg52.js → ripgrep-7r3p37an.js} +4 -4
- package/dist/chunks/{location-activity-13cf78z7.js → ripgrep-7s3x24kv.js} +24 -24
- package/dist/chunks/{location-activity-f9s3qxhk.js → ripgrep-82zcy4t3.js} +11 -11
- package/dist/chunks/{location-activity-84txncab.js → ripgrep-84txncab.js} +1 -1
- package/dist/chunks/{location-activity-yn3pj0yh.js → ripgrep-8b5ta5tp.js} +13 -13
- package/dist/chunks/{location-activity-tj1d5qjh.js → ripgrep-8hf7gczp.js} +21 -21
- package/dist/chunks/{location-activity-8m6m0r52.js → ripgrep-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-activity-8mywswrd.js → ripgrep-8mywswrd.js} +1 -1
- package/dist/chunks/{location-activity-cemgdj9d.js → ripgrep-8p6qz19e.js} +28 -28
- package/dist/chunks/{location-activity-x3y0w94c.js → ripgrep-8ra0dv5t.js} +14 -14
- package/dist/chunks/{location-activity-6pc27hjz.js → ripgrep-8sze2n9a.js} +2 -2
- package/dist/chunks/{location-activity-v13b12ef.js → ripgrep-942tz9ab.js} +4 -3
- package/dist/chunks/{location-activity-9996tgcy.js → ripgrep-98ann1j5.js} +50 -50
- package/dist/chunks/{location-activity-998yhzzq.js → ripgrep-998yhzzq.js} +3 -3
- package/dist/chunks/{location-activity-hjakaqqy.js → ripgrep-9g0nchv4.js} +11 -11
- package/dist/chunks/{location-activity-ds8w0hjc.js → ripgrep-9g0wqaaz.js} +23 -23
- package/dist/chunks/{location-activity-0tfy61zw.js → ripgrep-9gg87rr4.js} +16 -16
- package/dist/chunks/{location-activity-4n0ytgej.js → ripgrep-9qxkzfze.js} +18 -18
- package/dist/chunks/{location-activity-9wev2pgg.js → ripgrep-9wev2pgg.js} +1 -1
- package/dist/chunks/{location-activity-n0j76x42.js → ripgrep-a171qt9a.js} +4 -4
- package/dist/chunks/{location-activity-x69p0nft.js → ripgrep-a733a65v.js} +8 -8
- package/dist/chunks/{location-activity-2shtrhxh.js → ripgrep-a8nkje97.js} +11 -11
- package/dist/chunks/{location-activity-rbfexjrq.js → ripgrep-a9rqmse4.js} +19 -19
- package/dist/chunks/{location-activity-yxygda1x.js → ripgrep-afm8gjtq.js} +12 -12
- package/dist/chunks/{location-activity-a05vnbee.js → ripgrep-ak2q6qgs.js} +13 -13
- package/dist/chunks/{location-activity-b11a7tx7.js → ripgrep-b11a7tx7.js} +1 -1
- package/dist/chunks/{location-activity-zwkj30rw.js → ripgrep-b38r71wk.js} +15 -15
- package/dist/chunks/{location-activity-62skc2qf.js → ripgrep-b46x1qag.js} +20 -28
- package/dist/chunks/{location-activity-ngsdhqcd.js → ripgrep-b79mf2wv.js} +8 -8
- package/dist/chunks/{location-activity-bacj9t34.js → ripgrep-bacj9t34.js} +2 -2
- package/dist/chunks/{location-activity-bzeyqsqd.js → ripgrep-bzeyqsqd.js} +1 -1
- package/dist/chunks/{location-activity-er22t3x6.js → ripgrep-c00cthjb.js} +10 -10
- package/dist/chunks/{location-activity-jehyjhmh.js → ripgrep-c1gpv2mk.js} +14 -14
- package/dist/chunks/{location-activity-6fpm48m7.js → ripgrep-c1menwye.js} +44 -44
- package/dist/chunks/{location-activity-z3293m6q.js → ripgrep-cd921w3g.js} +2 -2
- package/dist/chunks/{location-activity-8gy1q646.js → ripgrep-cdd3neqk.js} +16 -16
- package/dist/chunks/{location-activity-01kf8yhn.js → ripgrep-cqqcamvx.js} +19 -19
- package/dist/chunks/{location-activity-v45697c8.js → ripgrep-cqz5yx1g.js} +5 -5
- package/dist/chunks/{location-activity-j9yyv4k7.js → ripgrep-crvmmsgx.js} +15 -15
- package/dist/chunks/{location-activity-3em0thmm.js → ripgrep-cvmnawzf.js} +8 -8
- package/dist/chunks/{location-activity-502kcfzs.js → ripgrep-d39q5djw.js} +50 -50
- package/dist/chunks/{location-activity-jshthe41.js → ripgrep-d4epdn84.js} +25 -25
- package/dist/chunks/ripgrep-ddq52evp.js +257 -0
- package/dist/chunks/{location-activity-mb0fhdf6.js → ripgrep-de70dmzp.js} +21 -21
- package/dist/chunks/{location-activity-2k71kv7p.js → ripgrep-dj68pnee.js} +4 -4
- package/dist/chunks/{location-activity-7w6118fp.js → ripgrep-dznbw734.js} +60 -60
- package/dist/chunks/{location-activity-e1eg6kc1.js → ripgrep-e1eg6kc1.js} +2 -2
- package/dist/chunks/{location-activity-eaj1djv9.js → ripgrep-eaj1djv9.js} +1 -1
- package/dist/chunks/{location-activity-eej6y6fw.js → ripgrep-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-activity-ef5x83kb.js → ripgrep-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-activity-7jpqzpd7.js → ripgrep-eft6wwca.js} +33 -33
- package/dist/chunks/{location-activity-p06yjkdd.js → ripgrep-ehzasdw1.js} +7 -7
- package/dist/chunks/{location-activity-3q6hmgvb.js → ripgrep-epbjas11.js} +27 -27
- package/dist/chunks/{location-activity-q8s8gt54.js → ripgrep-eya67jsr.js} +13 -13
- package/dist/chunks/{location-activity-41mvb394.js → ripgrep-f0n6e319.js} +14 -14
- package/dist/chunks/{location-activity-bft0aa8z.js → ripgrep-f0s1k55d.js} +7 -7
- package/dist/chunks/{location-activity-08bp9gk4.js → ripgrep-f6md5hft.js} +18 -18
- package/dist/chunks/{location-activity-fcy631f0.js → ripgrep-fcy631f0.js} +1 -1
- package/dist/chunks/{location-activity-fczg31pg.js → ripgrep-fja19q0n.js} +5 -5
- package/dist/chunks/{location-activity-fn9t717r.js → ripgrep-fn9t717r.js} +3 -3
- package/dist/chunks/{location-activity-1xy4vzvc.js → ripgrep-g75wcaan.js} +3 -3
- package/dist/chunks/{location-activity-51j3hrvc.js → ripgrep-g7hwtxxj.js} +14 -14
- package/dist/chunks/{location-activity-gd4qta3r.js → ripgrep-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-activity-14y67es9.js → ripgrep-gd6ja0kz.js} +11 -11
- package/dist/chunks/{location-activity-ey557bc7.js → ripgrep-gfvcc5jk.js} +32 -32
- package/dist/chunks/{location-activity-0tf9ya7d.js → ripgrep-gkymdc6s.js} +9 -9
- package/dist/chunks/{location-activity-azwe5p1w.js → ripgrep-gqtdsdt7.js} +4 -4
- package/dist/chunks/{location-activity-ry6831an.js → ripgrep-gr1f03ws.js} +9 -9
- package/dist/chunks/{location-activity-gk08jtek.js → ripgrep-gsy1tnq9.js} +22 -22
- package/dist/chunks/{location-activity-1g6m8tcr.js → ripgrep-gtrnswr7.js} +35 -35
- package/dist/chunks/{location-activity-mpmg7r7y.js → ripgrep-h0164j0a.js} +28 -41
- package/dist/chunks/{location-activity-p269hv07.js → ripgrep-h4542y1d.js} +42 -42
- package/dist/chunks/{location-activity-e4hyd2jn.js → ripgrep-h4bqh5zx.js} +1 -1
- package/dist/chunks/{location-activity-6xryydhb.js → ripgrep-h6pdp2g8.js} +13 -13
- package/dist/chunks/{location-activity-h6vf3j39.js → ripgrep-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-activity-gqg0rsq2.js → ripgrep-hbprad8z.js} +33 -33
- package/dist/chunks/{location-activity-hgz4x7wa.js → ripgrep-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-activity-4r98eeww.js → ripgrep-hh4ravdp.js} +2 -2
- package/dist/chunks/{location-activity-4bag1db2.js → ripgrep-hpwndzcc.js} +5 -5
- package/dist/chunks/{location-activity-05w7bww5.js → ripgrep-j2hyxy1e.js} +25 -25
- package/dist/chunks/{location-activity-knqarm1q.js → ripgrep-ja3v411g.js} +13 -13
- package/dist/chunks/{location-activity-17jwbhm2.js → ripgrep-jc1xwfbq.js} +29 -36
- package/dist/chunks/{location-activity-vfm45d2v.js → ripgrep-jpjpmxdq.js} +5 -5
- package/dist/chunks/{location-activity-jqh9b0xq.js → ripgrep-jqh9b0xq.js} +1 -1
- package/dist/chunks/{location-activity-nm268en7.js → ripgrep-jwm9r2mk.js} +20 -20
- package/dist/chunks/{location-activity-cx6bqw11.js → ripgrep-jy7marrj.js} +7 -7
- package/dist/chunks/{location-activity-yfzpe4zr.js → ripgrep-k06ywqkh.js} +19 -19
- package/dist/chunks/{location-activity-x0nw82cs.js → ripgrep-k35zjkf6.js} +32 -32
- package/dist/chunks/{location-activity-snzfrcy2.js → ripgrep-k6k9nh3f.js} +14 -14
- package/dist/chunks/{location-activity-6yaymdqw.js → ripgrep-knfx0005.js} +32 -32
- package/dist/chunks/{location-activity-7bjvrdsa.js → ripgrep-kvapg1n1.js} +13 -13
- package/dist/chunks/{location-activity-kwb1v3vj.js → ripgrep-kwb1v3vj.js} +1 -1
- package/dist/chunks/{location-activity-7p7zayqc.js → ripgrep-m58m10rk.js} +1 -1
- package/dist/chunks/{location-activity-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-activity-0h785e3w.js → ripgrep-mah98xap.js} +5 -5
- package/dist/chunks/{location-activity-maspj1v3.js → ripgrep-maspj1v3.js} +1 -1
- package/dist/chunks/{location-activity-7m71vrgm.js → ripgrep-mjsx87f0.js} +81 -81
- package/dist/chunks/{location-activity-nmj46b78.js → ripgrep-mqjjpdbh.js} +11 -11
- package/dist/chunks/{location-activity-5ppd002q.js → ripgrep-mqqhst8y.js} +4 -4
- package/dist/chunks/{location-activity-0mwht5j2.js → ripgrep-mw7fnh7a.js} +6 -6
- package/dist/chunks/{location-activity-ebc4hc03.js → ripgrep-n8c97awd.js} +12 -12
- package/dist/chunks/{location-activity-v210v162.js → ripgrep-nhe1x14z.js} +7 -7
- package/dist/chunks/{location-activity-xv4hnfey.js → ripgrep-nq7ffrj9.js} +4 -4
- package/dist/chunks/{location-activity-zw0jf4j9.js → ripgrep-nxeywbky.js} +12 -12
- package/dist/chunks/{location-activity-khmqacep.js → ripgrep-ny8edt06.js} +4 -4
- package/dist/chunks/{location-activity-vp15kmxq.js → ripgrep-p353fx2f.js} +91 -91
- package/dist/chunks/{location-activity-p37cw4rj.js → ripgrep-p37cw4rj.js} +1 -1
- package/dist/chunks/{location-activity-pc1v25hk.js → ripgrep-pc1v25hk.js} +1 -1
- package/dist/chunks/{location-activity-xns282hb.js → ripgrep-pdjnt312.js} +35 -61
- package/dist/chunks/{location-activity-qbk8jmg9.js → ripgrep-pf494cc8.js} +50 -50
- package/dist/chunks/{location-activity-wt7mczz9.js → ripgrep-pf4vj2x2.js} +21 -21
- package/dist/chunks/{location-activity-pjvnvgmy.js → ripgrep-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-activity-pknna89w.js → ripgrep-pknna89w.js} +1 -1
- package/dist/chunks/{location-activity-t6mbdjs5.js → ripgrep-pq7a6r0e.js} +66 -66
- package/dist/chunks/{location-activity-mnmsk3d0.js → ripgrep-q6s3sz9j.js} +38 -38
- package/dist/chunks/{location-activity-86zhaznv.js → ripgrep-q7x4taa7.js} +13 -13
- package/dist/chunks/{location-activity-0zkz45z3.js → ripgrep-qbvfc74m.js} +14 -14
- package/dist/chunks/{location-activity-cdtth5pq.js → ripgrep-qg4e8vdn.js} +28 -28
- package/dist/chunks/{location-activity-gp95sf5k.js → ripgrep-qger05k9.js} +11 -11
- package/dist/chunks/{location-activity-0tbd1f4q.js → ripgrep-qkhw7n0g.js} +29 -29
- package/dist/chunks/{location-activity-1gfxhtb5.js → ripgrep-qs8w2ksw.js} +20 -20
- package/dist/chunks/{location-activity-j17j0h0c.js → ripgrep-qsa492eb.js} +4 -4
- package/dist/chunks/{location-activity-qsdy395h.js → ripgrep-qsdy395h.js} +1 -1
- package/dist/chunks/{location-activity-bh8ad4py.js → ripgrep-r2610tc4.js} +15 -15
- package/dist/chunks/{location-activity-g9m76s7h.js → ripgrep-r4fxm0j1.js} +3 -3
- package/dist/chunks/{location-activity-r94pvvab.js → ripgrep-r94pvvab.js} +1 -1
- package/dist/chunks/{location-activity-stx7hq6g.js → ripgrep-rb2qm7yc.js} +15 -15
- package/dist/chunks/{location-activity-y9hbk2er.js → ripgrep-rcdfc04v.js} +11 -11
- package/dist/chunks/{location-activity-x2a7qa3g.js → ripgrep-rcwd9s5q.js} +21 -21
- package/dist/chunks/{location-activity-rdw6cm16.js → ripgrep-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-activity-b4bzws13.js → ripgrep-rew48swg.js} +13 -13
- package/dist/chunks/{location-activity-fn08h0vb.js → ripgrep-rk26gw9b.js} +35 -35
- package/dist/chunks/{location-activity-qa3qhgw8.js → ripgrep-ryr25ayn.js} +4 -4
- package/dist/chunks/{location-activity-kn9a3rt9.js → ripgrep-s247n0z7.js} +27 -27
- package/dist/chunks/{location-activity-801xp6nc.js → ripgrep-s7025g3c.js} +17 -17
- package/dist/chunks/{location-activity-sa6168g2.js → ripgrep-sa6168g2.js} +3 -3
- package/dist/chunks/{location-activity-jsz4j0f1.js → ripgrep-sb5w5fqd.js} +15 -15
- package/dist/chunks/{location-activity-4y59gdq5.js → ripgrep-srrvx50p.js} +22 -24
- package/dist/chunks/{location-activity-k31f5s50.js → ripgrep-ss64yk7e.js} +28 -28
- package/dist/chunks/{location-activity-qdz4w9cy.js → ripgrep-sye62zz8.js} +23 -23
- package/dist/chunks/{location-activity-syv4x271.js → ripgrep-syv4x271.js} +1 -1
- package/dist/chunks/{location-activity-4y06bmfc.js → ripgrep-t4jxebhw.js} +5 -5
- package/dist/chunks/{location-activity-tazgh4e4.js → ripgrep-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-activity-r6ph5k83.js → ripgrep-tc46500c.js} +16 -16
- package/dist/chunks/{location-activity-tcezcvh9.js → ripgrep-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-activity-tdstcens.js → ripgrep-tdstcens.js} +1 -1
- package/dist/chunks/{location-activity-5gzjtbzb.js → ripgrep-thjxzeng.js} +8 -8
- package/dist/chunks/{location-activity-pjpe8m1n.js → ripgrep-tppgbmaa.js} +11 -11
- package/dist/chunks/{location-activity-asfdzfp1.js → ripgrep-ttnk9ntm.js} +21 -21
- package/dist/chunks/{location-activity-tyytaxap.js → ripgrep-tyytaxap.js} +1 -1
- package/dist/chunks/{location-activity-v7p4zvkq.js → ripgrep-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-activity-ys29mwwj.js → ripgrep-v9fefnh7.js} +10 -10
- package/dist/chunks/{location-activity-veqvce7d.js → ripgrep-veqvce7d.js} +1 -1
- package/dist/chunks/{location-activity-1z0y9k0b.js → ripgrep-vewkg1sw.js} +15 -15
- package/dist/chunks/{location-activity-7xq5rfcp.js → ripgrep-vg6tgr51.js} +21 -21
- package/dist/chunks/{location-activity-kg1vtevg.js → ripgrep-vm4m688h.js} +4 -4
- package/dist/chunks/{location-activity-06f81zaa.js → ripgrep-vn93zb4z.js} +47 -47
- package/dist/chunks/{location-activity-k9jxnbe9.js → ripgrep-vp0mm0kc.js} +12 -12
- package/dist/chunks/{location-activity-1pev4fnm.js → ripgrep-vxg243jx.js} +4 -4
- package/dist/chunks/{location-activity-vzs5sf6e.js → ripgrep-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-activity-vzndzpkc.js → ripgrep-w1t606zy.js} +11 -11
- package/dist/chunks/{location-activity-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-activity-5mrq4sqf.js → ripgrep-w81ytvh4.js} +13 -30
- package/dist/chunks/{location-activity-wakvkjy4.js → ripgrep-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-activity-wd87259q.js → ripgrep-wd87259q.js} +1 -1
- package/dist/chunks/{location-activity-dj2wvysw.js → ripgrep-wf8m51n0.js} +45 -45
- package/dist/chunks/{location-activity-cg46d0x0.js → ripgrep-wfyym0nk.js} +14 -14
- package/dist/chunks/{location-activity-kjdm35cs.js → ripgrep-wh6zw745.js} +5 -5
- package/dist/chunks/{location-activity-kxhnmrdj.js → ripgrep-x1833xj2.js} +23 -23
- package/dist/chunks/{location-activity-xqh94nq7.js → ripgrep-x874k1t8.js} +13 -13
- package/dist/chunks/{location-activity-ejg29mxq.js → ripgrep-xemxb09e.js} +20 -20
- package/dist/chunks/{location-activity-ma65t0cg.js → ripgrep-xf5qsyy6.js} +36 -36
- package/dist/chunks/{location-activity-drwq78ky.js → ripgrep-xfkkasph.js} +4 -4
- package/dist/chunks/{location-activity-wa5fpxh1.js → ripgrep-xjchawe4.js} +11 -11
- package/dist/chunks/{location-activity-ef32jdqr.js → ripgrep-xkhk1g30.js} +11 -11
- package/dist/chunks/{location-activity-qkgtb9e9.js → ripgrep-xsbswz4w.js} +9 -9
- package/dist/chunks/{location-activity-xw9fg8fb.js → ripgrep-xw9fg8fb.js} +2 -2
- package/dist/chunks/{location-activity-xw6avn3p.js → ripgrep-xwkencv2.js} +12 -12
- package/dist/chunks/{location-activity-y1fvbwt7.js → ripgrep-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-activity-y71avatq.js → ripgrep-y71avatq.js} +1 -1
- package/dist/chunks/{location-activity-00x4qneg.js → ripgrep-y72zmemf.js} +8 -8
- package/dist/chunks/{location-activity-59jp7pd6.js → ripgrep-ygd2mcpa.js} +6 -6
- package/dist/chunks/{location-activity-d4mzham1.js → ripgrep-yk55vtb2.js} +21 -21
- package/dist/chunks/{location-activity-9sk1wf25.js → ripgrep-ywryrc1x.js} +4 -4
- package/dist/chunks/{location-activity-ydxzzmqj.js → ripgrep-z03qmy9y.js} +4 -4
- package/dist/chunks/{location-activity-z0bkrqjs.js → ripgrep-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-activity-z18fegx4.js → ripgrep-z18fegx4.js} +1 -1
- package/dist/chunks/{location-activity-1a140ev3.js → ripgrep-z37bqphs.js} +6 -6
- package/dist/chunks/{location-activity-dj5cvrpb.js → ripgrep-z4tnrsa6.js} +155 -155
- package/dist/chunks/{location-activity-2shfqszk.js → ripgrep-z7bf8532.js} +9 -9
- package/dist/chunks/{location-activity-a694798e.js → ripgrep-za6yq9hg.js} +5 -5
- package/dist/chunks/{location-activity-f73rjn58.js → ripgrep-zcrspsvn.js} +4 -4
- package/dist/chunks/{location-activity-faea9xsf.js → ripgrep-zdhd8t02.js} +12 -12
- package/dist/chunks/{location-activity-w7e41agf.js → ripgrep-zg0hshr1.js} +5 -5
- package/dist/chunks/{location-activity-8dnrzmmm.js → ripgrep-zh0x9fg3.js} +37 -41
- package/dist/chunks/{location-activity-v4zywrnk.js → ripgrep-zhbt7eq1.js} +6 -6
- package/dist/chunks/{location-activity-8qyyddbw.js → ripgrep-zj9sjr7a.js} +30 -30
- package/dist/chunks/{location-activity-zr2ceqn5.js → ripgrep-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-activity-ykfgt8p5.js → ripgrep-zvnbwra8.js} +13 -13
- package/dist/chunks/{location-activity-zxq2ej10.js → ripgrep-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-activity-8wbxkt1z.js → ripgrep-zy43x3f1.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +102 -102
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -17
- package/dist/filesystem.js +102 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +85 -85
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +159 -159
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +107 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -224
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +164 -164
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +97 -97
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +89 -89
- 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 +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/filesystem/search.d.ts +4 -8
- package/dist/types/filesystem/watcher.d.ts +6 -49
- package/dist/types/filesystem.d.ts +11 -13
- package/dist/types/permission/saved.d.ts +14 -22
- package/dist/types/permission.d.ts +14 -39
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/voice.js +88 -88
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +87 -87
- package/dist/worktree.js +90 -90
- package/package.json +8 -8
- package/dist/chunks/location-activity-4skwmgyb.js +0 -257
- package/dist/chunks/location-activity-d9k0s0cb.js +0 -523
- package/dist/chunks/location-activity-wfdkgkxy.js +0 -26
- /package/dist/chunks/{location-activity-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-activity-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-activity-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-activity-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-activity-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-activity-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-activity-2bv980vf.js → ripgrep-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-activity-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-activity-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-activity-3asan66x.js → ripgrep-3asan66x.js} +0 -0
- /package/dist/chunks/{location-activity-3t0ybcrp.js → ripgrep-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-activity-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-activity-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-activity-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-activity-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-activity-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-activity-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-activity-53557ph1.js → ripgrep-53557ph1.js} +0 -0
- /package/dist/chunks/{location-activity-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-activity-5fjb7ams.js → ripgrep-5fjb7ams.js} +0 -0
- /package/dist/chunks/{location-activity-5qd3pb7m.js → ripgrep-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-activity-6prwharc.js → ripgrep-6prwharc.js} +0 -0
- /package/dist/chunks/{location-activity-6q2bdcd1.js → ripgrep-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-activity-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-activity-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-activity-822emrt2.js → ripgrep-822emrt2.js} +0 -0
- /package/dist/chunks/{location-activity-84wd9syh.js → ripgrep-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-activity-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-activity-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-activity-8wj87zfr.js → ripgrep-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-activity-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-activity-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-activity-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-activity-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-activity-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-activity-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-activity-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-activity-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-activity-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-activity-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-activity-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-activity-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-activity-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-activity-dajrwvna.js → ripgrep-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-activity-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-activity-df08tz66.js → ripgrep-df08tz66.js} +0 -0
- /package/dist/chunks/{location-activity-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-activity-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-activity-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-activity-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-activity-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-activity-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-activity-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-activity-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-activity-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-activity-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-activity-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-activity-g86h250q.js → ripgrep-g86h250q.js} +0 -0
- /package/dist/chunks/{location-activity-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-activity-gftt206x.js → ripgrep-gftt206x.js} +0 -0
- /package/dist/chunks/{location-activity-hcxmzztb.js → ripgrep-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-activity-hk9envan.js → ripgrep-hk9envan.js} +0 -0
- /package/dist/chunks/{location-activity-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-activity-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-activity-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-activity-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-activity-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-activity-jze0r7bz.js → ripgrep-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-activity-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-activity-m18g726c.js → ripgrep-m18g726c.js} +0 -0
- /package/dist/chunks/{location-activity-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-activity-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-activity-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-activity-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-activity-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-activity-pkyv6v7h.js → ripgrep-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{location-activity-pt1ss6jy.js → ripgrep-pt1ss6jy.js} +0 -0
- /package/dist/chunks/{location-activity-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-activity-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-activity-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-activity-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-activity-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-activity-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-activity-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-activity-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-activity-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-activity-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-activity-ve7vex1e.js → ripgrep-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-activity-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-activity-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-activity-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-activity-wjj7prxr.js → ripgrep-wjj7prxr.js} +0 -0
- /package/dist/chunks/{location-activity-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-activity-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-activity-x61499pn.js → ripgrep-x61499pn.js} +0 -0
- /package/dist/chunks/{location-activity-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-activity-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-activity-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-activity-ym463w8f.js → ripgrep-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-activity-z5v4ffb3.js → ripgrep-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-activity-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
name16,
|
|
3
3
|
ps2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-40dgfgpg.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
9
|
match2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-y1fvbwt7.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/shell/parse.ts
|
|
16
16
|
var exports_parse = {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-82zcy4t3.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ripgrep-1ffvrpkg.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin22,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin22 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin13 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint5, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin13 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin22, exports_firecrawl };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/provider.ts
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info14,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info14 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info16 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info14, exports_provider2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-gqtdsdt7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./ripgrep-cdd3neqk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event14
|
|
10
|
+
} from "./ripgrep-252xprac.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID7,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./ripgrep-qkhw7n0g.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID6,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service64
|
|
20
|
+
} from "./ripgrep-hbprad8z.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID5
|
|
23
|
+
} from "./ripgrep-01mpbv93.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./ripgrep-9g0nchv4.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./ripgrep-82zcy4t3.js";
|
|
31
31
|
import {
|
|
32
32
|
ID15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./ripgrep-v9fefnh7.js";
|
|
34
34
|
import {
|
|
35
35
|
get4
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./ripgrep-r94pvvab.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { isRecord } from "@opencode/ai/utils/record";
|
|
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
66
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
67
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
68
68
|
var oauth = (app) => ({
|
|
69
|
-
integrationID:
|
|
69
|
+
integrationID: ID7.make("github-copilot"),
|
|
70
70
|
method: {
|
|
71
71
|
id: methodID,
|
|
72
72
|
type: "oauth",
|
|
@@ -164,8 +164,8 @@ var oauth = (app) => ({
|
|
|
164
164
|
var GithubCopilotPlugin2 = define({
|
|
165
165
|
id: "opencode.provider.github.copilot",
|
|
166
166
|
effect: Effect.fn(function* (ctx) {
|
|
167
|
-
const providers = yield*
|
|
168
|
-
const bus = yield*
|
|
167
|
+
const providers = yield* Service64;
|
|
168
|
+
const bus = yield* Service85;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
const loaded = {};
|
|
171
171
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -181,7 +181,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
184
|
-
const provider = yield* providers.get(
|
|
184
|
+
const provider = yield* providers.get(ID6.githubCopilot);
|
|
185
185
|
const remote = yield* Effect.tryPromise({
|
|
186
186
|
try: () => load3(url, {
|
|
187
187
|
...provider?.headers,
|
|
@@ -203,7 +203,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
203
203
|
editor.method.update(oauth(ctx.app));
|
|
204
204
|
});
|
|
205
205
|
yield* ctx.provider.transform((evt) => {
|
|
206
|
-
const item = evt.get(
|
|
206
|
+
const item = evt.get(ID6.githubCopilot);
|
|
207
207
|
if (!item)
|
|
208
208
|
return;
|
|
209
209
|
if (loaded.models) {
|
|
@@ -231,17 +231,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
yield* ctx.model.transform((models) => {
|
|
234
|
-
if (models.get(
|
|
235
|
-
models.update(
|
|
234
|
+
if (models.get(ID6.githubCopilot, ID5.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID6.githubCopilot, ID5.make("gpt-5-chat-latest"), (model) => {
|
|
236
236
|
model.enabled = false;
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID7.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
243
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
247
247
|
return;
|
|
@@ -250,7 +250,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
250
250
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
251
251
|
}));
|
|
252
252
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
254
254
|
return;
|
|
255
255
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
256
256
|
return;
|
|
@@ -260,9 +260,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
260
260
|
evt.headers["X-Interaction-Id"] = session ? get4(session) : evt.sessionID;
|
|
261
261
|
if (interaction !== "conversation-agent")
|
|
262
262
|
evt.headers["x-initiator"] = "agent";
|
|
263
|
-
}), { providerID:
|
|
263
|
+
}), { providerID: ID6.githubCopilot });
|
|
264
264
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
265
|
-
if (evt.model.providerID !==
|
|
265
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
266
266
|
return;
|
|
267
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
268
268
|
return;
|
|
@@ -277,9 +277,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
277
277
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
278
278
|
return;
|
|
279
279
|
}));
|
|
280
|
-
}), { providerID:
|
|
280
|
+
}), { providerID: ID6.githubCopilot });
|
|
281
281
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
282
|
-
if (evt.model.providerID !==
|
|
282
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
283
283
|
return;
|
|
284
284
|
const token = evt.request.headers.get("x-api-key");
|
|
285
285
|
if (!token)
|
|
@@ -287,9 +287,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
287
287
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
288
288
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
289
289
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
290
|
-
}), { providerID:
|
|
290
|
+
}), { providerID: ID6.githubCopilot });
|
|
291
291
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
292
|
-
if (evt.model.providerID !==
|
|
292
|
+
if (evt.model.providerID !== ID6.githubCopilot)
|
|
293
293
|
return;
|
|
294
294
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
295
295
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service46,
|
|
3
|
+
node48
|
|
4
|
+
} from "./ripgrep-sye62zz8.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
7
|
removed2,
|
|
8
8
|
make21,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-eaj1djv9.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions5 = {};
|
|
17
|
+
__export(exports_instructions5, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions5,
|
|
19
|
+
Service: () => Service39,
|
|
20
|
+
node: () => node42
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -61,11 +61,11 @@ var update = (previous, current) => {
|
|
|
61
61
|
`);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
class
|
|
64
|
+
class Service39 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
65
65
|
}
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const references = yield*
|
|
68
|
-
return
|
|
66
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
67
|
+
const references = yield* Service46;
|
|
68
|
+
return Service39.of({
|
|
69
69
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
70
70
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
71
71
|
name: reference.name,
|
|
@@ -85,6 +85,6 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
85
85
|
})
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
|
-
var
|
|
88
|
+
var node42 = makeLocationNode({ service: Service39, layer, deps: [node48] });
|
|
89
89
|
|
|
90
|
-
export {
|
|
90
|
+
export { Service39, node42, exports_instructions5 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID6
|
|
3
|
+
} from "./ripgrep-hbprad8z.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/amazon-bedrock.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -35,15 +35,15 @@ var AmazonBedrockPlugin2 = define({
|
|
|
35
35
|
})))).filter(Boolean).toSorted();
|
|
36
36
|
yield* ctx.integration.transform((editor) => {
|
|
37
37
|
editor.method.update({
|
|
38
|
-
integrationID:
|
|
38
|
+
integrationID: ID6.amazonBedrock,
|
|
39
39
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
40
40
|
});
|
|
41
41
|
editor.method.update({
|
|
42
|
-
integrationID:
|
|
42
|
+
integrationID: ID6.amazonBedrock,
|
|
43
43
|
method: { type: "key", label: "Bedrock API key" }
|
|
44
44
|
});
|
|
45
45
|
editor.method.update({
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID6.amazonBedrock,
|
|
47
47
|
method: {
|
|
48
48
|
id: "aws-profile",
|
|
49
49
|
type: "external",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service44,
|
|
10
|
+
node: () => node46
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service44 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node46 = LayerNode.unbound(Service44, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service44, node46, exports_service2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
llmClient2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-775gj3j1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service45,
|
|
6
|
+
node47
|
|
7
|
+
} from "./ripgrep-wf8m51n0.js";
|
|
8
8
|
import {
|
|
9
9
|
retry2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-fcy631f0.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/generate.ts
|
|
16
16
|
var exports_generate = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_generate, {
|
|
|
19
19
|
ModelSelectionError: () => ModelSelectionError2,
|
|
20
20
|
Service: () => Service14,
|
|
21
21
|
UnavailableError: () => UnavailableError2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer9,
|
|
23
23
|
node: () => node17
|
|
24
24
|
});
|
|
25
25
|
import { LLM, LLMClient } from "@opencode/ai";
|
|
@@ -39,9 +39,9 @@ class UnavailableError2 extends Schema.TaggedError()("Generate.UnavailableError"
|
|
|
39
39
|
|
|
40
40
|
class Service14 extends Context.Service()("@opencode/Generate") {
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var layer9 = Layer.effect(Service14, Effect.gen(function* () {
|
|
43
43
|
const llm = yield* LLMClient.Service;
|
|
44
|
-
const resolver = yield*
|
|
44
|
+
const resolver = yield* Service45;
|
|
45
45
|
const runText = Effect.fn("Generate.text")(function* (input) {
|
|
46
46
|
const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
|
|
47
47
|
"SessionRunnerModel.VariantUnavailableError",
|
|
@@ -75,8 +75,8 @@ var layer10 = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
75
75
|
}));
|
|
76
76
|
var node17 = makeLocationNode({
|
|
77
77
|
service: Service14,
|
|
78
|
-
layer:
|
|
79
|
-
deps: [
|
|
78
|
+
layer: layer9,
|
|
79
|
+
deps: [node47, llmClient2]
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
export { ModelSelectionError2, UnavailableError2, Service14,
|
|
82
|
+
export { ModelSelectionError2, UnavailableError2, Service14, layer9, node17, exports_generate };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-82zcy4t3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./ripgrep-cdd3neqk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event14
|
|
10
|
+
} from "./ripgrep-252xprac.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-gqtdsdt7.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID7,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./ripgrep-qkhw7n0g.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID6,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service64
|
|
22
|
+
} from "./ripgrep-hbprad8z.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID5,
|
|
25
|
+
Info16
|
|
26
|
+
} from "./ripgrep-01mpbv93.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./ripgrep-pjvnvgmy.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/gitlab.ts
|
|
33
33
|
import os from "os";
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID6.gitlab;
|
|
39
|
+
var integrationID = ID7.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,8 +57,8 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
61
|
-
const bus = yield*
|
|
60
|
+
const providers = yield* Service64;
|
|
61
|
+
const bus = yield* Service85;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
64
64
|
const loaded = {};
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info16.default(providerID, ID5.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID6.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./ripgrep-cdd3neqk.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event15,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID9,
|
|
20
|
+
Info: () => Info21,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError8,
|
|
24
24
|
Reply: () => Reply2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service67,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer25,
|
|
29
|
+
node: () => node70,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event15 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID9 = Form.ID;
|
|
39
|
+
var Info21 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply2 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID9
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID9
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID9
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID9,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,10 +79,10 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service67 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer25 = Layer.effect(Service67, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service85;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
@@ -90,7 +90,7 @@ var layer28 = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
90
90
|
});
|
|
91
91
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError8({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID9.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer28 = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service67.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node70 = makeLocationNode({ service: Service67, layer: layer25, deps: [node89] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID9, Info21, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError8, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service67, layer25, node70, validateAnswer2, validateFields2, exports_form, Event15 };
|