@opencode/core 2.1.4 → 2.2.0
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 +89 -85
- package/dist/aisdk-native.js +97 -91
- package/dist/aisdk.js +103 -97
- package/dist/app.js +7 -7
- package/dist/bus.js +79 -75
- package/dist/chunks/{location-xyswfhq2.js → tool-012mq190.js} +33 -33
- package/dist/chunks/{location-80cqk4v7.js → tool-02nh8ewm.js} +18 -14
- package/dist/chunks/{location-034tev2y.js → tool-034tev2y.js} +2 -2
- package/dist/chunks/{location-9b28cy4d.js → tool-09bv4atg.js} +13 -7
- package/dist/chunks/{location-jdcya02q.js → tool-0a2sm9cp.js} +18 -18
- package/dist/chunks/{location-2jq4ff38.js → tool-0ahs07zn.js} +4 -4
- package/dist/chunks/{location-ytsgm675.js → tool-0fhbvqtr.js} +9 -9
- package/dist/chunks/{location-3y1df9hb.js → tool-0t332zg2.js} +6 -6
- package/dist/chunks/{location-8jztxfpf.js → tool-11hfp36g.js} +4 -4
- package/dist/chunks/tool-12cx84te.js +224 -0
- package/dist/chunks/{location-6pe7vn7p.js → tool-14kcwm24.js} +15 -15
- package/dist/chunks/{location-jw4xm41e.js → tool-18s0c7mk.js} +13 -13
- package/dist/chunks/{location-2ggqsqg3.js → tool-19y1mz66.js} +7 -7
- package/dist/chunks/{location-jz6d5c41.js → tool-1b236rmr.js} +206 -156
- package/dist/chunks/{location-gnkrmvzs.js → tool-1dvrssaw.js} +6 -4
- package/dist/chunks/{location-1ep2p91f.js → tool-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-5fjb7ams.js → tool-1jakw16s.js} +2 -2
- package/dist/chunks/{location-cp65cvxr.js → tool-1px95g66.js} +13 -13
- package/dist/chunks/{location-vxybbfew.js → tool-1qb2fn2e.js} +12 -12
- package/dist/chunks/{location-y9awcm76.js → tool-1vpe07px.js} +78 -23
- package/dist/chunks/{location-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-vd3b3yk9.js → tool-204s3925.js} +13 -2
- package/dist/chunks/{location-wxy5qeqz.js → tool-27c23e33.js} +15 -15
- package/dist/chunks/{location-rttdb5jp.js → tool-28pnz6dy.js} +33 -33
- package/dist/chunks/tool-2esqe60t.js +252 -0
- package/dist/chunks/{location-997dsrmm.js → tool-2jrrfqe1.js} +17 -7
- package/dist/chunks/{location-cxat4xx2.js → tool-2nkqvy4a.js} +29 -29
- package/dist/chunks/{location-rkvk32bt.js → tool-2qgpse07.js} +16 -16
- package/dist/chunks/{location-aft2va8r.js → tool-2xw2f3vf.js} +11 -11
- package/dist/chunks/{location-c34bh8hr.js → tool-30wtetgq.js} +49 -44
- package/dist/chunks/{location-yx8gesms.js → tool-39j6yt37.js} +10 -10
- package/dist/chunks/{location-09wmedhs.js → tool-39tkfg3g.js} +9 -9
- package/dist/chunks/{location-2bymr7vt.js → tool-3ewwa9eq.js} +28 -28
- package/dist/chunks/{location-x3w3gr0t.js → tool-3f13jy3s.js} +30 -30
- package/dist/chunks/{location-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-4v3515yy.js → tool-3jy1f5rc.js} +66 -49
- package/dist/chunks/{location-2n0y9ar2.js → tool-3k7t0q4z.js} +15 -15
- package/dist/chunks/{location-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-dvpv1qqw.js → tool-3nr2yc9a.js} +5 -5
- package/dist/chunks/{location-p184mqc5.js → tool-3t4066nw.js} +17 -17
- package/dist/chunks/{location-239z01gj.js → tool-41sh1bbt.js} +8 -6
- package/dist/chunks/{location-fjnhz8nn.js → tool-47cq5kqw.js} +4 -4
- package/dist/chunks/{location-2ahfrs74.js → tool-4czcg6bs.js} +16 -16
- package/dist/chunks/{location-9zetw7am.js → tool-4jw80zew.js} +77 -77
- package/dist/chunks/{location-pkyv6v7h.js → tool-4m86bj6y.js} +24 -15
- package/dist/chunks/{location-ddwaa558.js → tool-4pw98qd4.js} +4 -4
- package/dist/chunks/{location-2z1j29yd.js → tool-4pyp9zr9.js} +19 -3
- package/dist/chunks/{location-7vd4enbp.js → tool-4t7jqkaw.js} +15 -15
- package/dist/chunks/{location-4v008n1t.js → tool-4v008n1t.js} +1 -1
- package/dist/chunks/{location-4y92vxjf.js → tool-4zsrmah6.js} +51 -51
- package/dist/chunks/{location-j6sw43tq.js → tool-5858b97a.js} +15 -15
- package/dist/chunks/{location-2s6r54qs.js → tool-5887ft1y.js} +7 -7
- package/dist/chunks/{location-et9e0jv5.js → tool-5dme8x4x.js} +11 -11
- package/dist/chunks/{location-86439gfw.js → tool-5fgj30xe.js} +30 -30
- package/dist/chunks/{location-q89bkvf2.js → tool-5k0vn9gs.js} +2 -2
- package/dist/chunks/{location-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-dgj49q4q.js → tool-5n6snyjt.js} +52 -36
- package/dist/chunks/tool-5w3e23ze.js +16 -0
- package/dist/chunks/{location-89c7n5pz.js → tool-5wtqv2es.js} +5 -5
- package/dist/chunks/{location-bjhzkqyk.js → tool-61ennm6n.js} +4 -4
- package/dist/chunks/{location-9s6wb0ev.js → tool-67cvb3ht.js} +9 -9
- package/dist/chunks/{location-6b66j3w1.js → tool-6adqbtbr.js} +43 -32
- package/dist/chunks/tool-6bshxcsx.js +18 -0
- package/dist/chunks/{location-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-830bkp7y.js → tool-6h9hqrxp.js} +26 -24
- package/dist/chunks/{location-37d4mgj3.js → tool-6jehphsq.js} +36 -36
- package/dist/chunks/{location-1bmrwaa5.js → tool-6mmkz41v.js} +16 -16
- package/dist/chunks/{location-eggkdbge.js → tool-6qtsf31h.js} +3 -3
- package/dist/chunks/{location-txg5xg0c.js → tool-6rfxa98r.js} +33 -33
- package/dist/chunks/{location-rjnacbrz.js → tool-6twykydk.js} +9 -9
- package/dist/chunks/{location-s9ty2h8k.js → tool-6wz31r82.js} +11 -11
- package/dist/chunks/{location-xr94g6d3.js → tool-7467kx48.js} +64 -45
- package/dist/chunks/{location-0hpjzkz5.js → tool-752zwhsj.js} +20 -14
- package/dist/chunks/{location-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-nah043kf.js → tool-770pw0s1.js} +4 -4
- package/dist/chunks/{location-mh30raav.js → tool-780q7vq9.js} +9 -7
- package/dist/chunks/{location-sk6vvdwr.js → tool-78kz22ny.js} +19 -19
- package/dist/chunks/{location-kp4ctdbn.js → tool-798y36pp.js} +51 -31
- package/dist/chunks/{location-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-584rjm98.js → tool-7f02p6s5.js} +1 -1
- package/dist/chunks/{location-1xwgv2nq.js → tool-7gm95e0b.js} +6 -6
- package/dist/chunks/{location-4bvc8sjz.js → tool-7harcha2.js} +2 -2
- package/dist/chunks/{location-ckr4b3py.js → tool-7hsh0za6.js} +48 -48
- package/dist/chunks/{location-pt3agb94.js → tool-7mwfr1ya.js} +14 -14
- package/dist/chunks/{location-7bgh3hsv.js → tool-7tjh76vn.js} +28 -9
- package/dist/chunks/{location-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-5qebhevh.js → tool-88degkwg.js} +48 -23
- package/dist/chunks/{location-2cjxs9ry.js → tool-8cvc109z.js} +23 -23
- package/dist/chunks/{location-3yy2vhmn.js → tool-8d9gtfa7.js} +30 -23
- package/dist/chunks/tool-8e0gbf5j.js +537 -0
- package/dist/chunks/{location-81va5nb7.js → tool-8feq5yxx.js} +19 -19
- package/dist/chunks/tool-8jkecmvj.js +111 -0
- package/dist/chunks/{location-a5h3ke48.js → tool-8rk0v0nw.js} +33 -33
- package/dist/chunks/{location-ptcpq2hv.js → tool-8t8mrqrh.js} +6 -6
- package/dist/chunks/{location-afmnpta1.js → tool-8wc2fpae.js} +5 -5
- package/dist/chunks/{location-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-g7esga4v.js → tool-8y4jps98.js} +7 -7
- package/dist/chunks/{location-maspj1v3.js → tool-90zstvax.js} +44 -8
- package/dist/chunks/{location-j8pg8rcr.js → tool-94as0g8p.js} +61 -41
- package/dist/chunks/{location-633qbm06.js → tool-9e6q8a6s.js} +14 -14
- package/dist/chunks/{location-3mgb105e.js → tool-9f3sjfep.js} +9 -9
- package/dist/chunks/{location-ytvhabzn.js → tool-9kqcsae8.js} +22 -16
- package/dist/chunks/{location-s2pfznc4.js → tool-9nkjg9qd.js} +6 -6
- package/dist/chunks/{location-1y0wdj51.js → tool-9q8g9sv8.js} +9 -9
- package/dist/chunks/{location-t6dn99ca.js → tool-9t5cp16p.js} +27 -22
- package/dist/chunks/{location-9dxz0jcc.js → tool-9taxa3wa.js} +15 -12
- package/dist/chunks/{location-8vjz6zkc.js → tool-a35byqw0.js} +28 -28
- package/dist/chunks/{location-dg6zbqet.js → tool-agmw1zcy.js} +61 -61
- package/dist/chunks/tool-asd4mxps.js +26 -0
- package/dist/chunks/{location-ayjs7tqn.js → tool-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-7jrmq8v4.js → tool-ayv543vf.js} +23 -23
- package/dist/chunks/{location-scdee33y.js → tool-b08y6na7.js} +2 -2
- package/dist/chunks/{location-b6vsg801.js → tool-b6vsg801.js} +2 -2
- package/dist/chunks/{location-m9ga4zyy.js → tool-b7286km2.js} +6 -6
- package/dist/chunks/{location-0pm6fm3r.js → tool-bavxd7np.js} +91 -67
- package/dist/chunks/{location-wjj7prxr.js → tool-beh6qq61.js} +11 -0
- package/dist/chunks/{location-b29mbqx6.js → tool-bgs9y14h.js} +5 -5
- package/dist/chunks/{location-v6h5bgwd.js → tool-bk7xq8bh.js} +8 -8
- package/dist/chunks/{location-bstexjd6.js → tool-bstexjd6.js} +1 -1
- package/dist/chunks/{location-xy22cvcr.js → tool-c065g2ca.js} +67 -51
- package/dist/chunks/{location-wedh6qfb.js → tool-c1y12bqd.js} +35 -37
- package/dist/chunks/{location-z06f5xk1.js → tool-c347jtgq.js} +29 -29
- package/dist/chunks/{location-6p8ga3wk.js → tool-cnga39w3.js} +17 -17
- package/dist/chunks/{location-n1ryh798.js → tool-cnh9xgcw.js} +46 -44
- package/dist/chunks/tool-cqv5kn06.js +13 -0
- package/dist/chunks/{location-m5nnd4yj.js → tool-cwq9059v.js} +19 -17
- package/dist/chunks/{location-b0mv4wxm.js → tool-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-rxz7t1tx.js → tool-d3qmtx3n.js} +71 -39
- package/dist/chunks/{location-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-2h6s5afk.js → tool-d893c1qn.js} +13 -13
- package/dist/chunks/{location-7th4r57j.js → tool-d9hg8633.js} +17 -17
- package/dist/chunks/{location-x6zjgj80.js → tool-ds82yrjj.js} +35 -22
- package/dist/chunks/{location-j113cymg.js → tool-dt77769w.js} +2 -2
- package/dist/chunks/{location-d5m0d1jd.js → tool-dtfj6qhp.js} +121 -94
- package/dist/chunks/{location-dqc1xg2h.js → tool-dvbyh3pq.js} +51 -48
- package/dist/chunks/{location-ye1xrrbs.js → tool-dwxkhmt2.js} +18 -20
- package/dist/chunks/tool-e07q2w5p.js +83 -0
- package/dist/chunks/{location-ky7vvs7w.js → tool-e4vy1v26.js} +87 -35
- package/dist/chunks/{location-e834z07m.js → tool-e834z07m.js} +1 -1
- package/dist/chunks/{location-0928y98p.js → tool-edkh5za3.js} +3 -3
- package/dist/chunks/{location-nm4377q9.js → tool-ewr5k9wg.js} +5 -5
- package/dist/chunks/{location-snh71vez.js → tool-f1kzydc9.js} +30 -29
- package/dist/chunks/{location-bm60t44w.js → tool-f449218g.js} +3 -3
- package/dist/chunks/{location-k6wybhe4.js → tool-f68rfrfr.js} +33 -36
- package/dist/chunks/{location-h8rac0eh.js → tool-f8jj8vg7.js} +12 -12
- package/dist/chunks/{location-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
- package/dist/chunks/tool-fkpq3x5p.js +36 -0
- package/dist/chunks/{location-eh71ek0g.js → tool-g2pxrbdf.js} +90 -77
- package/dist/chunks/{location-v0ajt838.js → tool-g3b4788n.js} +33 -21
- package/dist/chunks/{location-rkdfvdar.js → tool-ge4qdnbb.js} +28 -25
- package/dist/chunks/{location-998yhzzq.js → tool-gg8p9cgs.js} +24 -18
- package/dist/chunks/{location-w00s5rdr.js → tool-gjasn01h.js} +4 -4
- package/dist/chunks/{location-w67r90k6.js → tool-gn0hevf2.js} +13 -13
- package/dist/chunks/{location-fcfxs1zj.js → tool-gtqjgkpw.js} +3 -3
- package/dist/chunks/{location-v0h1q5gr.js → tool-h0ya90rh.js} +23 -19
- package/dist/chunks/{location-p894etz3.js → tool-h8wtbm19.js} +49 -49
- package/dist/chunks/{location-c3cfh5w6.js → tool-hdfrs5mg.js} +5 -5
- package/dist/chunks/{location-6pjqjmy2.js → tool-hpg1pkwy.js} +2 -2
- package/dist/chunks/{location-7hk3fzbx.js → tool-hs9cwcgs.js} +30 -30
- package/dist/chunks/{location-t09yj0zj.js → tool-hy05jz59.js} +4 -4
- package/dist/chunks/{location-y2hbnz15.js → tool-j04c4e1z.js} +25 -25
- package/dist/chunks/{location-5ysrq0ad.js → tool-j3xa31ke.js} +17 -17
- package/dist/chunks/{location-jbt1xm3n.js → tool-j56qcejd.js} +324 -330
- package/dist/chunks/tool-j775gmwt.js +171 -0
- package/dist/chunks/{location-91rj84md.js → tool-jfaecv01.js} +2 -2
- package/dist/chunks/{location-3043t2hd.js → tool-jhz9911s.js} +46 -31
- package/dist/chunks/{location-tx9vmxa7.js → tool-jsqg4353.js} +14 -14
- package/dist/chunks/{location-8bf8d73q.js → tool-jszqqvxf.js} +9 -9
- package/dist/chunks/{location-g5h9c0rr.js → tool-jtnps1zs.js} +2 -2
- package/dist/chunks/tool-jwr30sdr.js +13 -0
- package/dist/chunks/{location-vqpjc3nz.js → tool-jz5b6eqf.js} +32 -26
- package/dist/chunks/{location-6z79x2sm.js → tool-k66e5v3s.js} +13 -13
- package/dist/chunks/{location-k814nvkf.js → tool-k814nvkf.js} +1 -1
- package/dist/chunks/{location-8c8xwrnt.js → tool-kcw9vyak.js} +14 -14
- package/dist/chunks/{location-fphnwtmq.js → tool-kh9rt25c.js} +8 -8
- package/dist/chunks/{location-005psrwt.js → tool-ks0qaf84.js} +23 -21
- package/dist/chunks/{location-raq1s93x.js → tool-ks473cwm.js} +22 -22
- package/dist/chunks/tool-kt3bjfbg.js +26 -0
- package/dist/chunks/{location-ran0pwn3.js → tool-kzvqqj4g.js} +24 -24
- package/dist/chunks/{location-m1714858.js → tool-m1714858.js} +1 -1
- package/dist/chunks/{location-zakhs7qb.js → tool-m89ew3ks.js} +30 -30
- package/dist/chunks/{location-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-7jg3h9xc.js → tool-maq43m3m.js} +10 -10
- package/dist/chunks/{location-2brc2rvy.js → tool-mpvgefqy.js} +4 -4
- package/dist/chunks/tool-mrzap57y.js +295 -0
- package/dist/chunks/{location-42hxtx4a.js → tool-mvzrjhep.js} +2 -2
- package/dist/chunks/{location-1dqke238.js → tool-n0w6tq5t.js} +8 -8
- package/dist/chunks/{location-5qd3pb7m.js → tool-ncqqe42p.js} +2 -2
- package/dist/chunks/{location-t35vpv8z.js → tool-nfga29bv.js} +31 -30
- package/dist/chunks/{location-nfdwtzhc.js → tool-nfk1y8jw.js} +29 -29
- package/dist/chunks/{location-z24fzt3x.js → tool-nfq3amnp.js} +31 -30
- package/dist/chunks/{location-t9sf4w0m.js → tool-nh9ma6fe.js} +11 -11
- package/dist/chunks/{location-4kb4jvb8.js → tool-nn3qjkhj.js} +24 -24
- package/dist/chunks/{location-9p7ryr2b.js → tool-nq0efya9.js} +7 -7
- package/dist/chunks/{location-axe3mf62.js → tool-nvxqht09.js} +3 -3
- package/dist/chunks/{location-hyvp8sn8.js → tool-nyw2x12k.js} +1 -1
- package/dist/chunks/{location-hqgpx30z.js → tool-nz89qvcx.js} +34 -32
- package/dist/chunks/{location-p015t6z3.js → tool-p015t6z3.js} +2 -2
- package/dist/chunks/{location-hgn7fvrd.js → tool-p56gnsnx.js} +31 -31
- package/dist/chunks/tool-p71gwv9c.js +153 -0
- package/dist/chunks/{location-1yq9hg58.js → tool-p7vhpwh8.js} +5 -5
- package/dist/chunks/{location-nes0ks30.js → tool-p84syj9g.js} +31 -29
- package/dist/chunks/{location-zkgq49d1.js → tool-pbbktnbz.js} +6 -6
- package/dist/chunks/{location-nbvb24gq.js → tool-pbwrhxm9.js} +22 -22
- package/dist/chunks/{location-e6ke8dsh.js → tool-pckyv4f2.js} +36 -36
- package/dist/chunks/{location-2satw072.js → tool-pfnzsr07.js} +22 -22
- package/dist/chunks/{location-kjb4x69f.js → tool-pfstxkm2.js} +1 -1
- package/dist/chunks/tool-pjtyf8t7.js +133 -0
- package/dist/chunks/{location-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{location-a7hcemwv.js → tool-pnwsrq7c.js} +11 -11
- package/dist/chunks/tool-prq7xxp2.js +37 -0
- package/dist/chunks/{location-fqzd2d2r.js → tool-pvzzwdfq.js} +14 -14
- package/dist/chunks/{location-qbgwvbz8.js → tool-q2z4k2x9.js} +12 -12
- package/dist/chunks/{location-4jbtvrw1.js → tool-q63v4kjv.js} +21 -16
- package/dist/chunks/{location-hfkcnh3h.js → tool-qakjdagf.js} +42 -32
- package/dist/chunks/{location-xewrm1yq.js → tool-qcsk8x8g.js} +119 -69
- package/dist/chunks/{location-r20swzxr.js → tool-qhfm6m5r.js} +27 -25
- package/dist/chunks/tool-qp7r0hxv.js +120 -0
- package/dist/chunks/{location-jh9pmtvm.js → tool-r023m38x.js} +16 -16
- package/dist/chunks/{location-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
- package/dist/chunks/{location-4fspmagn.js → tool-r0yvbzfa.js} +75 -60
- package/dist/chunks/{location-f7ma11rg.js → tool-r2z94j39.js} +6 -6
- package/dist/chunks/{location-tw8zr1ps.js → tool-r542h3bh.js} +5 -2
- package/dist/chunks/{location-fjngd7fj.js → tool-r850md5t.js} +11 -11
- package/dist/chunks/{location-tseqrb92.js → tool-r8dwygj6.js} +55 -55
- package/dist/chunks/{location-0gbb59p9.js → tool-r9zrswe1.js} +9 -9
- package/dist/chunks/{location-kmzgegqq.js → tool-ra6js1h8.js} +8 -8
- package/dist/chunks/{location-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-rgyfs092.js → tool-rbhebfmq.js} +6 -6
- package/dist/chunks/{location-xzb17nsd.js → tool-rgmk1r1t.js} +62 -27
- package/dist/chunks/{location-nb3nrvbh.js → tool-rjf5h5f7.js} +8 -8
- package/dist/chunks/{location-5nankzt7.js → tool-rr19gkj4.js} +13 -13
- package/dist/chunks/{location-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-x2adk3yy.js → tool-rvy8xhsv.js} +33 -32
- package/dist/chunks/{location-v3q8ezdd.js → tool-rzh929cz.js} +13 -13
- package/dist/chunks/{location-q55b1wrz.js → tool-s6jj6eh0.js} +15 -15
- package/dist/chunks/{location-3sfq932m.js → tool-s9zns2yk.js} +23 -30
- package/dist/chunks/tool-sa3fpqfw.js +46 -0
- package/dist/chunks/{location-qbm0r1ap.js → tool-sa46y2cf.js} +10 -8
- package/dist/chunks/{location-nte6bvsd.js → tool-sbj9xhv5.js} +79 -53
- package/dist/chunks/{location-ke7vzy3f.js → tool-sc5azq8x.js} +77 -45
- package/dist/chunks/{location-z359x3zf.js → tool-spqj5yby.js} +27 -27
- package/dist/chunks/{location-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-d2887f8n.js → tool-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-3j92816q.js → tool-st7p3hwb.js} +2 -2
- package/dist/chunks/{location-zkg84ctx.js → tool-svcy3p9a.js} +4 -2
- package/dist/chunks/{location-jznc3yn3.js → tool-sw5vdw2h.js} +8 -8
- package/dist/chunks/{location-g3avwj86.js → tool-sws77t7f.js} +11 -11
- package/dist/chunks/{location-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-b259twyp.js → tool-tt79p4vp.js} +21 -21
- package/dist/chunks/tool-twcztz12.js +479 -0
- package/dist/chunks/{location-twv2r8f4.js → tool-twssxy5n.js} +2 -2
- package/dist/chunks/{location-v2r1d0zg.js → tool-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-dxbw252c.js → tool-v6njdshh.js} +21 -21
- package/dist/chunks/{location-j2cjg2qt.js → tool-v91xp2c8.js} +20 -20
- package/dist/chunks/{location-q1rqw855.js → tool-vacfhfey.js} +10 -10
- package/dist/chunks/{location-pc1v25hk.js → tool-vb80j1wh.js} +4 -4
- package/dist/chunks/{location-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{location-s56jz2hb.js → tool-vmx0pqdh.js} +28 -29
- package/dist/chunks/{location-c8666r4c.js → tool-vsqvcqta.js} +7 -7
- package/dist/chunks/{location-3e8nvsz7.js → tool-vvj7j8xf.js} +3 -3
- package/dist/chunks/{location-b46dzrwk.js → tool-vvqzd10p.js} +42 -42
- package/dist/chunks/{location-k732j073.js → tool-vycsk1c7.js} +8 -8
- package/dist/chunks/{location-1qtv120j.js → tool-w08h028t.js} +9 -9
- package/dist/chunks/{location-40za9wsf.js → tool-w2eysc6j.js} +9 -9
- package/dist/chunks/{location-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-30bn4rx3.js → tool-w9z9y32t.js} +21 -21
- package/dist/chunks/{location-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{location-n0p0277s.js → tool-wnhgecwx.js} +35 -4
- package/dist/chunks/{location-w687dnns.js → tool-wr3re1en.js} +4 -4
- package/dist/chunks/tool-wz464gjx.js +42 -0
- package/dist/chunks/{location-wf8nwwfn.js → tool-x75vegnr.js} +9 -9
- package/dist/chunks/{location-m0gv7qej.js → tool-xasx590j.js} +14 -14
- package/dist/chunks/{location-mjey6v08.js → tool-xhrs65th.js} +7 -7
- package/dist/chunks/{location-qyx1nkkd.js → tool-xpx0z35b.js} +19 -19
- package/dist/chunks/{location-37c15ztt.js → tool-xqxzn5yn.js} +14 -14
- package/dist/chunks/{location-jneg3k74.js → tool-xt0z8zst.js} +6 -6
- package/dist/chunks/{location-r1s8qxhz.js → tool-xw4ev616.js} +8 -8
- package/dist/chunks/{location-4c6ksw65.js → tool-y420wvgt.js} +39 -39
- package/dist/chunks/{location-2d2g0mpf.js → tool-y5kjjy07.js} +33 -33
- package/dist/chunks/{location-3wef9mrz.js → tool-y7287ygs.js} +8 -8
- package/dist/chunks/tool-yara3q77.js +132 -0
- package/dist/chunks/{location-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-9ypen6gf.js → tool-ycd18cxa.js} +6 -6
- package/dist/chunks/{location-kb4gstwj.js → tool-ymky0t0b.js} +5 -5
- package/dist/chunks/{location-ght5gt7k.js → tool-yqsmg75a.js} +63 -29
- package/dist/chunks/{location-e45fk36t.js → tool-yqveydy6.js} +4 -4
- package/dist/chunks/{location-6qtdkhme.js → tool-yxjvbhxs.js} +4 -4
- package/dist/chunks/{location-r3083m8p.js → tool-yytcp89d.js} +28 -28
- package/dist/chunks/{location-b93307df.js → tool-yzaa036j.js} +32 -32
- package/dist/chunks/{location-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-z38nccrw.js → tool-z38nccrw.js} +1 -1
- package/dist/chunks/{location-9mrr08ev.js → tool-zdkwz0rs.js} +5 -8
- package/dist/chunks/tool-zfjx7vmh.js +257 -0
- package/dist/chunks/{location-4xvmh7wp.js → tool-zgkm4kzm.js} +3 -3
- package/dist/chunks/{location-hwqvnpa6.js → tool-zw3yjf62.js} +13 -13
- package/dist/chunks/{location-s1t9wfqz.js → tool-zyqv3h6k.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -85
- package/dist/config/discovery.js +90 -84
- package/dist/config/integration.js +14 -0
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +109 -103
- package/dist/config/plugin/agent.js +123 -118
- package/dist/config/plugin/command.js +221 -214
- package/dist/config/plugin/compaction.js +162 -155
- package/dist/config/plugin/compatibility.js +142 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -117
- package/dist/config/plugin/image.js +121 -116
- package/dist/config/plugin/instruction.js +121 -116
- package/dist/config/plugin/location-watcher.js +119 -114
- package/dist/config/plugin/mcp.js +130 -125
- package/dist/config/plugin/policy.js +123 -117
- package/dist/config/plugin/provider.js +124 -116
- package/dist/config/plugin/reference.js +123 -118
- package/dist/config/plugin/shell.js +123 -118
- package/dist/config/plugin/skill-file.js +138 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +143 -136
- package/dist/config/plugin/snapshot.js +121 -116
- package/dist/config/plugin/source.js +124 -119
- package/dist/config/plugin/tool-output.js +122 -117
- package/dist/config/plugin/websearch.js +122 -117
- package/dist/config/plugin/worktree.js +123 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -119
- package/dist/console-access.js +12 -0
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -79
- package/dist/database/database.js +78 -74
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- 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/20261024002554_session_allowance.js +6 -0
- package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
- package/dist/database/migration/20261025123711_blob.js +6 -0
- package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
- package/dist/database/migration.gen.js +55 -51
- package/dist/database/migration.js +57 -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 +98 -92
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +386 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -1
- package/dist/environment/index.js +106 -98
- 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 +80 -76
- package/dist/file-access.js +148 -106
- package/dist/file-mutation.js +102 -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/file-watch.js +221 -0
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +232 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +110 -104
- package/dist/form.js +80 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -89
- package/dist/generate.js +125 -111
- package/dist/git.js +13 -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 +101 -95
- 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-normalize.js +12 -0
- package/dist/image/photon-worker.js +19 -0
- package/dist/image/photon.js +125 -79
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -361
- package/dist/instruction-discovery.js +90 -86
- package/dist/instructions/builtins.js +95 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -87
- package/dist/job.js +84 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -75
- package/dist/location-activity.js +168 -163
- package/dist/location-lifecycle.js +142 -109
- package/dist/location-service-map.js +94 -88
- package/dist/location-services.js +370 -358
- package/dist/location.js +97 -91
- package/dist/managed-policy.js +11 -10
- package/dist/mcp/client.js +125 -95
- package/dist/mcp/index.js +115 -109
- package/dist/mcp/instructions.js +164 -136
- package/dist/mcp/oauth.js +84 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -95
- package/dist/model-resolver.js +109 -103
- package/dist/model-retry.js +4 -2
- package/dist/model.js +112 -104
- package/dist/models-dev/v1.js +8 -0
- package/dist/models-dev.js +120 -111
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +94 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -77
- package/dist/plugin/agent.js +82 -78
- package/dist/plugin/command.js +110 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -220
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -98
- package/dist/plugin/module.js +123 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +138 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -92
- package/dist/plugin/provider/azure.js +121 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -97
- package/dist/plugin/provider/gitlab.js +101 -95
- package/dist/plugin/provider/google-vertex.js +118 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -80
- package/dist/plugin/provider/lmstudio.js +130 -125
- package/dist/plugin/provider/local.js +127 -122
- package/dist/plugin/provider/modal.js +100 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -125
- package/dist/plugin/provider/openai-context-caps.js +98 -92
- package/dist/plugin/provider/openai.js +121 -116
- package/dist/plugin/provider/opencode-legacy.js +119 -0
- package/dist/plugin/provider/opencode.js +127 -103
- package/dist/plugin/provider/openrouter.js +99 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -115
- package/dist/plugin/provider/vercel.js +98 -92
- package/dist/plugin/provider/vllm.js +130 -125
- package/dist/plugin/provider/xai.js +99 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -171
- package/dist/plugin/sdk.js +82 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +362 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -88
- package/dist/plugin/vcs/hg.js +94 -88
- package/dist/plugin/verbosity.js +101 -95
- package/dist/plugin/warming.js +119 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -227
- package/dist/project/icon.js +14 -0
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -88
- package/dist/provider.js +103 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -93
- package/dist/reference/instructions.js +94 -89
- package/dist/reference.js +98 -93
- package/dist/repository-cache.js +88 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -99
- package/dist/rpc.js +96 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +157 -0
- package/dist/session/command.js +80 -76
- package/dist/session/compaction.js +158 -132
- package/dist/session/context.js +184 -160
- package/dist/session/diff.js +96 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -224
- package/dist/session/execution.js +154 -130
- package/dist/session/generate.js +190 -166
- package/dist/session/history.js +134 -14
- package/dist/session/inbox.js +144 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +153 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +156 -132
- package/dist/session/projector.js +134 -91
- package/dist/session/prompt.js +140 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -102
- package/dist/session/runner/publish-llm-event.js +141 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -128
- package/dist/session/runner/to-llm-message.js +128 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -165
- package/dist/session/shell.js +135 -130
- package/dist/session/skill.js +139 -105
- package/dist/session/sql.js +10 -8
- package/dist/session/stats.js +81 -77
- package/dist/session/store.js +133 -87
- package/dist/session/stored.js +23 -0
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +192 -168
- package/dist/session/to-session-error.js +140 -114
- package/dist/session/transfer.js +230 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +225 -218
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -109
- package/dist/skill.js +150 -116
- package/dist/snapshot.js +101 -95
- package/dist/state.js +3 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +163 -135
- package/dist/tool/plugin/edit.js +156 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +156 -122
- package/dist/tool/plugin/grep.js +160 -126
- package/dist/tool/plugin/mcp-resource.js +154 -126
- package/dist/tool/plugin/opencode.js +153 -111
- package/dist/tool/plugin/patch.js +158 -124
- package/dist/tool/plugin/question.js +136 -103
- package/dist/tool/plugin/read.js +161 -127
- package/dist/tool/plugin/shell.js +224 -217
- package/dist/tool/plugin/skill.js +149 -115
- package/dist/tool/plugin/subagent.js +220 -213
- package/dist/tool/plugin/todo.js +145 -138
- package/dist/tool/plugin/webfetch.js +149 -115
- package/dist/tool/plugin/websearch.js +147 -116
- package/dist/tool/plugin/write.js +156 -122
- package/dist/tool/read-filesystem.js +106 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/aisdk.d.ts +1 -1
- package/dist/types/config/integration.d.ts +81 -0
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/config/plugin/provider.d.ts +8 -0
- package/dist/types/config.d.ts +8 -1
- package/dist/types/console-access.d.ts +7 -0
- package/dist/types/credential.d.ts +2 -0
- package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
- package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
- package/dist/types/effect/app-node-platform.d.ts +3 -2
- package/dist/types/environment/files.d.ts +2 -0
- package/dist/types/environment/index.d.ts +1 -1
- package/dist/types/file-access.d.ts +3 -3
- package/dist/types/filesystem/fff.d.ts +1 -0
- package/dist/types/filesystem/file-watch.d.ts +33 -0
- package/dist/types/filesystem/search.d.ts +3 -0
- package/dist/types/generate.d.ts +39 -7
- package/dist/types/git.d.ts +17 -2
- package/dist/types/image/photon-normalize.d.ts +28 -0
- package/dist/types/image/photon-worker.d.ts +12 -0
- package/dist/types/image/photon.d.ts +14 -4
- package/dist/types/instance/service.d.ts +2 -0
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +2 -0
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +8 -1
- package/dist/types/model-retry.d.ts +3 -1
- package/dist/types/model.d.ts +28 -1
- package/dist/types/models-dev/v1.d.ts +3 -0
- package/dist/types/models-dev.d.ts +3 -3
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/plugin/internal.d.ts +2 -3
- package/dist/types/plugin/module.d.ts +10 -0
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
- package/dist/types/plugin/provider/modal.d.ts +1 -1
- package/dist/types/plugin/provider/openai.d.ts +1 -1
- package/dist/types/plugin/provider/opencode-legacy.d.ts +69 -0
- package/dist/types/plugin/provider/opencode.d.ts +2 -2
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/service.d.ts +12 -0
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/project/icon.d.ts +26 -0
- package/dist/types/project.d.ts +3 -2
- package/dist/types/provider.d.ts +33 -3
- package/dist/types/ripgrep/binary.d.ts +1 -0
- package/dist/types/rpc.d.ts +2 -0
- package/dist/types/session/blob.d.ts +2687 -0
- package/dist/types/session/compaction.d.ts +13 -10
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +2078 -23
- package/dist/types/session/inbox.d.ts +73 -114
- package/dist/types/session/instruction-entry.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +2 -2
- package/dist/types/session/prompt.d.ts +6 -2
- package/dist/types/session/recent-text.d.ts +2 -1
- package/dist/types/session/runner/index.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +1 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
- package/dist/types/session/runner/retry.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +2 -2
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/schema.d.ts +4 -0
- package/dist/types/session/sql.d.ts +196 -122
- package/dist/types/session/store.d.ts +7 -0
- package/dist/types/session/stored.d.ts +462 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +4 -0
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +9 -0
- package/dist/types/state.d.ts +6 -0
- package/dist/types/tool/plugin/edit.d.ts +2 -1
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/patch.d.ts +2 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/types/tool/plugin/write.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/usage-limits.d.ts +103 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/types/v1/config/mcp.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +2 -0
- package/dist/types/vcs.d.ts +3 -2
- package/dist/types/voice.d.ts +3 -31
- package/dist/types/wellknown/plugin.d.ts +1 -1
- package/dist/usage-limits.js +100 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -94
- package/dist/v1/config/permission.js +7 -7
- 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 +101 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +99 -91
- package/dist/voice.js +94 -90
- package/dist/websearch.js +88 -84
- package/dist/wellknown/plugin.js +82 -78
- package/dist/wellknown.js +87 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -91
- package/dist/worktree.js +104 -98
- package/package.json +10 -9
- package/dist/chunks/location-00ve6mdn.js +0 -18
- package/dist/chunks/location-8230236v.js +0 -257
- package/dist/chunks/location-akfw3dm8.js +0 -321
- package/dist/chunks/location-ef5x83kb.js +0 -15
- package/dist/chunks/location-gb9gmc0j.js +0 -39
- package/dist/chunks/location-hzsp1kxy.js +0 -107
- package/dist/chunks/location-khh5ttga.js +0 -26
- package/dist/chunks/location-mx81xwtn.js +0 -82
- package/dist/chunks/location-z1f2n5q4.js +0 -621
- package/dist/chunks/location-zfwjf24c.js +0 -219
- /package/dist/chunks/{location-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → tool-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → tool-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a058387c.js → tool-a058387c.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → tool-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
normalizeContent2,
|
|
5
5
|
normalizedName2,
|
|
6
6
|
effectiveName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-1jakw16s.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
catalog2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-zgkm4kzm.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-204s3925.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service73,
|
|
17
|
+
node76
|
|
18
|
+
} from "./tool-w08h028t.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service72,
|
|
21
|
+
node75
|
|
22
|
+
} from "./tool-bk7xq8bh.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./tool-z38nccrw.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./tool-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/tool.ts
|
|
31
31
|
var exports_tool = {};
|
|
@@ -35,13 +35,13 @@ __export(exports_tool, {
|
|
|
35
35
|
Error: () => Error5,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service71,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node74
|
|
42
42
|
});
|
|
43
43
|
import { CallID as CallID2, Content as Content3, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
|
-
import { ToolDefinition } from "@opencode/ai";
|
|
44
|
+
import { ToolDefinition } from "@opencode/ai/effect";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
47
47
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service71 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service72;
|
|
58
|
+
const image = yield* Service73;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -131,6 +131,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
131
131
|
name: "tool",
|
|
132
132
|
initial: () => ({
|
|
133
133
|
tools: new Map,
|
|
134
|
+
definitions: new Map,
|
|
134
135
|
namespaces: new Map,
|
|
135
136
|
errors: []
|
|
136
137
|
}),
|
|
@@ -146,13 +147,19 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
146
147
|
editor.namespaces.set(namespace.name, { ...namespace });
|
|
147
148
|
},
|
|
148
149
|
add: (tool) => {
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
151
|
-
editor.errors.push({
|
|
150
|
+
const registered = register(tool);
|
|
151
|
+
if (Result.isFailure(registered)) {
|
|
152
|
+
editor.errors.push({
|
|
153
|
+
kind: "tool",
|
|
154
|
+
name: tool.name,
|
|
155
|
+
namespace: tool.options?.namespace,
|
|
156
|
+
error: registered.failure
|
|
157
|
+
});
|
|
152
158
|
return;
|
|
153
159
|
}
|
|
154
160
|
const id = effectiveName2(tool);
|
|
155
161
|
editor.tools.set(id, { ...tool, id, options: tool.options && { ...tool.options } });
|
|
162
|
+
editor.definitions.set(id, registered.success);
|
|
156
163
|
},
|
|
157
164
|
update: (id, update) => {
|
|
158
165
|
const current = editor.tools.get(id);
|
|
@@ -164,15 +171,22 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
164
171
|
tool.id = id;
|
|
165
172
|
if (tool.options?.namespace !== current.options?.namespace)
|
|
166
173
|
tool.options = { ...tool.options, namespace: current.options?.namespace };
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
editor.errors.push({
|
|
174
|
+
const registered = register(tool);
|
|
175
|
+
if (Result.isFailure(registered)) {
|
|
176
|
+
editor.errors.push({
|
|
177
|
+
kind: "tool",
|
|
178
|
+
name: tool.name,
|
|
179
|
+
namespace: tool.options?.namespace,
|
|
180
|
+
error: registered.failure
|
|
181
|
+
});
|
|
170
182
|
return;
|
|
171
183
|
}
|
|
172
184
|
editor.tools.set(id, tool);
|
|
185
|
+
editor.definitions.set(id, registered.success);
|
|
173
186
|
},
|
|
174
187
|
remove: (id) => {
|
|
175
188
|
editor.tools.delete(id);
|
|
189
|
+
editor.definitions.delete(id);
|
|
176
190
|
}
|
|
177
191
|
}),
|
|
178
192
|
notify: (value) => {
|
|
@@ -184,7 +198,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
184
198
|
}), { discard: true });
|
|
185
199
|
}
|
|
186
200
|
});
|
|
187
|
-
return
|
|
201
|
+
return Service71.of({
|
|
188
202
|
transform: state.transform,
|
|
189
203
|
reload: state.reload,
|
|
190
204
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -197,21 +211,28 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
197
211
|
continue;
|
|
198
212
|
active.set(name, tool);
|
|
199
213
|
}
|
|
200
|
-
const
|
|
214
|
+
const codeModeEnabled = !whollyDisabled("execute", rules);
|
|
215
|
+
const direct = codeModeEnabled ? new Map(Array.from(active).filter(([, tool]) => tool.options?.codemode === false)) : active;
|
|
201
216
|
const codeModeTools = new Map(Array.from(active).filter(([, tool]) => tool.options?.codemode !== false));
|
|
202
217
|
const names = Array.from(codeModeTools.keys()).join("\x00");
|
|
203
|
-
const codeModeEnabled = !whollyDisabled("execute", rules);
|
|
204
218
|
const cached = catalog?.data === data && catalog.names === names ? catalog : undefined;
|
|
205
219
|
const codeModeInventory = cached?.inventory ?? { tools: codeModeTools, namespaces: data.namespaces };
|
|
206
220
|
const codeModeTool = codeModeEnabled ? create2(codeModeInventory, (name, tool, input, context) => beforeExecute(name, input, context).pipe(Effect.flatMap((event) => executeTool(tool, name, event.input, context)))) : undefined;
|
|
207
221
|
const codeModeCatalog = !codeModeEnabled ? undefined : cached?.value ?? catalog2(codeModeInventory);
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
const codeModeDefinition = codeModeTool && (cached?.definition ?? definition2(codeModeTool));
|
|
223
|
+
if (codeModeCatalog && codeModeDefinition)
|
|
224
|
+
catalog = {
|
|
225
|
+
data,
|
|
226
|
+
names,
|
|
227
|
+
inventory: codeModeInventory,
|
|
228
|
+
value: codeModeCatalog,
|
|
229
|
+
definition: codeModeDefinition
|
|
230
|
+
};
|
|
210
231
|
return {
|
|
211
232
|
...codeModeCatalog === undefined ? {} : { codeModeCatalog },
|
|
212
233
|
definitions: [
|
|
213
|
-
...Array.from(direct).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([
|
|
214
|
-
...
|
|
234
|
+
...Array.from(direct).sort(([left], [right]) => left < right ? -1 : left > right ? 1 : 0).map(([name]) => data.definitions.get(name)),
|
|
235
|
+
...codeModeDefinition ? [codeModeDefinition] : []
|
|
215
236
|
],
|
|
216
237
|
execute: Effect.fnUntraced(function* (input) {
|
|
217
238
|
const context = {
|
|
@@ -249,34 +270,33 @@ function schemaMakeError(error) {
|
|
|
249
270
|
return formatSchemaIssue(error.cause);
|
|
250
271
|
return error instanceof Error ? error.message : String(error);
|
|
251
272
|
}
|
|
252
|
-
function
|
|
273
|
+
function register(tool) {
|
|
253
274
|
const namespace = tool.options?.namespace;
|
|
254
275
|
if (namespace !== undefined) {
|
|
255
276
|
const error = namespaceError(namespace);
|
|
256
277
|
if (error)
|
|
257
|
-
return error;
|
|
278
|
+
return Result.fail(error);
|
|
258
279
|
}
|
|
259
280
|
const name = normalizedName2(tool);
|
|
260
281
|
if (!/^[A-Za-z0-9_-]+$/.test(name))
|
|
261
|
-
return new RegistrationError2({ name, message: `Invalid tool name: ${name}` });
|
|
282
|
+
return Result.fail(new RegistrationError2({ name, message: `Invalid tool name: ${name}` }));
|
|
262
283
|
const id = effectiveName2(tool);
|
|
263
284
|
if (tool.options?.codemode === false && id === "execute")
|
|
264
|
-
return new RegistrationError2({ name: id, message: 'Tool name "execute" is reserved for CodeMode' });
|
|
265
|
-
|
|
285
|
+
return Result.fail(new RegistrationError2({ name: id, message: 'Tool name "execute" is reserved for CodeMode' }));
|
|
286
|
+
return Result.try({
|
|
266
287
|
try: () => ToolDefinition.make(definition2(tool)),
|
|
267
288
|
catch: (error) => new RegistrationError2({ name: id, message: `Invalid tool definition ${id}: ${schemaMakeError(error)}` })
|
|
268
289
|
});
|
|
269
|
-
return Result.isFailure(result) ? result.failure : undefined;
|
|
270
290
|
}
|
|
271
291
|
function namespaceError(name) {
|
|
272
292
|
if (name.split(".").every((segment) => /^[A-Za-z0-9_-]+$/.test(segment)))
|
|
273
293
|
return;
|
|
274
294
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
275
295
|
}
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
296
|
+
var node74 = makeLocationNode({
|
|
297
|
+
service: Service71,
|
|
278
298
|
layer,
|
|
279
|
-
deps: [
|
|
299
|
+
deps: [node75, node76]
|
|
280
300
|
});
|
|
281
301
|
|
|
282
|
-
export { RegistrationError2,
|
|
302
|
+
export { RegistrationError2, Service71, node74, exports_tool, CallID2, Content3, Error5, FileContent3, TextContent2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service69
|
|
3
|
+
} from "./tool-3jy1f5rc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service40
|
|
6
|
+
} from "./tool-30wtetgq.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp = {};
|
|
13
|
+
__export(exports_mcp, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp,
|
|
15
|
+
Plugin: () => Plugin26,
|
|
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 Plugin26 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
yield* register2(ctx.event.subscribe());
|
|
23
|
+
yield* register2(ctx.event.subscribe({ types: ["config.updated"] }));
|
|
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* Service69;
|
|
28
|
+
const mcp = yield* Service40;
|
|
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 { Plugin26, register2, exports_mcp };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service10,
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service10 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service10.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node12 = makeLocationNode({ service: Service10, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service10, node12, exports_location_watcher_policy };
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Document2
|
|
3
|
+
} from "./tool-e07q2w5p.js";
|
|
1
4
|
import {
|
|
2
5
|
match2
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./tool-z38nccrw.js";
|
|
4
7
|
import {
|
|
5
8
|
__export
|
|
6
|
-
} from "./
|
|
9
|
+
} from "./tool-9rqn6x4v.js";
|
|
7
10
|
|
|
8
11
|
// src/managed-policy.ts
|
|
9
12
|
var exports_managed_policy = {};
|
|
10
13
|
__export(exports_managed_policy, {
|
|
11
14
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
15
|
+
Service: () => Service18,
|
|
13
16
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
16
|
-
statements: () =>
|
|
17
|
+
layer: () => layer10,
|
|
18
|
+
node: () => node20,
|
|
19
|
+
statements: () => statements3
|
|
17
20
|
});
|
|
18
21
|
import { isDeepStrictEqual } from "node:util";
|
|
19
22
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
23
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
24
|
|
|
22
|
-
class
|
|
25
|
+
class Service18 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
26
|
}
|
|
24
|
-
var
|
|
27
|
+
var layer10 = Layer.effect(Service18, Effect.gen(function* () {
|
|
25
28
|
const changes = yield* PubSub.unbounded();
|
|
26
29
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
30
|
+
return Service18.of({
|
|
28
31
|
changes: () => Stream.fromPubSub(changes),
|
|
29
32
|
current: () => state.current,
|
|
30
33
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,18 +39,21 @@ var layer12 = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
36
39
|
})
|
|
37
40
|
});
|
|
38
41
|
}));
|
|
39
|
-
var
|
|
40
|
-
function
|
|
42
|
+
var node20 = makeGlobalNode({ service: Service18, layer: layer10, deps: [] });
|
|
43
|
+
function statements3(entries, organization) {
|
|
41
44
|
return [
|
|
42
|
-
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({
|
|
43
|
-
...organization.statements.map((policy) => ({
|
|
45
|
+
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => (entry.info.policies ?? []).map((policy) => ({
|
|
44
46
|
...policy,
|
|
45
|
-
message:
|
|
46
|
-
}))
|
|
47
|
+
message: entry instanceof Document2 ? blocked(entry.organization) : "Blocked by configuration policy"
|
|
48
|
+
}))),
|
|
49
|
+
...organization.statements.map((policy) => ({ ...policy, message: blocked(organization.organization) }))
|
|
47
50
|
];
|
|
48
51
|
}
|
|
52
|
+
function blocked(organization) {
|
|
53
|
+
return organization ? `Blocked by ${organization}'s policy` : "Blocked by your organization's policy";
|
|
54
|
+
}
|
|
49
55
|
function decision2(policies, action, resource) {
|
|
50
56
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
export {
|
|
59
|
+
export { Service18, layer10, node20, statements3, decision2, exports_managed_policy };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-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: () => Service45,
|
|
10
|
+
node: () => node47
|
|
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 Service45 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node47 = LayerNode.unbound(Service45, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service45, node47, exports_service2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
|
-
var
|
|
7
|
-
__export(
|
|
6
|
+
var exports_permission2 = {};
|
|
7
|
+
__export(exports_permission2, {
|
|
8
8
|
Action: () => Action2,
|
|
9
|
-
ConfigPermissionV1: () =>
|
|
9
|
+
ConfigPermissionV1: () => exports_permission2,
|
|
10
10
|
Entries: () => Entries2,
|
|
11
|
-
Info: () =>
|
|
11
|
+
Info: () => Info19,
|
|
12
12
|
Object: () => Object2,
|
|
13
|
-
Rule: () =>
|
|
13
|
+
Rule: () => Rule3
|
|
14
14
|
});
|
|
15
15
|
import { Schema, SchemaGetter } from "effect";
|
|
16
16
|
var Action2 = Schema.Literals(["ask", "allow", "deny"]).annotate({ identifier: "PermissionActionConfig" });
|
|
@@ -19,13 +19,13 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
|
|
|
19
19
|
encode: SchemaGetter.transform((entries) => globalThis.Object.fromEntries(entries))
|
|
20
20
|
}));
|
|
21
21
|
var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
22
|
-
var
|
|
22
|
+
var Rule3 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
23
23
|
var actionOnly = new Set(["question", "websearch", "doom_loop"]);
|
|
24
|
-
var
|
|
24
|
+
var Info19 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule3), {
|
|
25
25
|
decode: SchemaGetter.transform((input) => typeof input === "string" ? { "*": input } : input),
|
|
26
26
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
27
27
|
})).check(Schema.makeFilter((rules) => rules.every(([key, rule]) => !actionOnly.has(key) || typeof rule === "string"), {
|
|
28
28
|
expected: "question, websearch, and doom_loop to be ask, allow, or deny"
|
|
29
29
|
})).annotate({ identifier: "PermissionConfig" });
|
|
30
30
|
|
|
31
|
-
export { Action2, Entries2, Object2,
|
|
31
|
+
export { Action2, Entries2, Object2, Rule3, Info19, exports_permission2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9q8g9sv8.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info18
|
|
9
|
+
} from "./tool-pnwsrq7c.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info20
|
|
12
|
+
} from "./tool-0ahs07zn.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info21
|
|
15
|
+
} from "./tool-09bv4atg.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-p7vhpwh8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info17
|
|
21
|
+
} from "./tool-8wc2fpae.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./tool-1dvrssaw.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./tool-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
38
38
|
__export(exports_normalize, {
|
|
39
39
|
ConfigNormalize: () => exports_normalize,
|
|
40
|
-
normalize: () =>
|
|
40
|
+
normalize: () => normalize3
|
|
41
41
|
});
|
|
42
42
|
import { isDeepStrictEqual } from "node:util";
|
|
43
|
-
import { isRecord } from "@opencode/
|
|
43
|
+
import { isRecord } from "@opencode/util/record";
|
|
44
44
|
import { Option, Schema } from "effect";
|
|
45
45
|
import { Info } from "@opencode/schema/config";
|
|
46
46
|
import { ConfigAgent } from "@opencode/schema/config/agent";
|
|
@@ -69,7 +69,7 @@ var unsupportedExperimental = [
|
|
|
69
69
|
var unsupportedProvider = ["id", "whitelist", "blacklist"];
|
|
70
70
|
var unsupportedModel = ["release_date", "attachment", "reasoning", "temperature", "experimental"];
|
|
71
71
|
var LegacyAutoupdate = Schema.Literals([true, false, "notify"]);
|
|
72
|
-
function
|
|
72
|
+
function normalize3(input) {
|
|
73
73
|
if (!isRecord(input))
|
|
74
74
|
return {
|
|
75
75
|
type: "rejected",
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info20, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info18, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info18, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info21, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -337,6 +337,11 @@ function normalizeExperimental(input, encoded, diagnostics) {
|
|
|
337
337
|
if (value !== undefined)
|
|
338
338
|
result.background_compaction = value;
|
|
339
339
|
}
|
|
340
|
+
if (own(experimental, "media_blob")) {
|
|
341
|
+
const value = decodeEncoded(ConfigExperimental.Info.fields.media_blob, experimental.media_blob, ["experimental", "media_blob"], diagnostics);
|
|
342
|
+
if (value !== undefined)
|
|
343
|
+
result.media_blob = value;
|
|
344
|
+
}
|
|
340
345
|
if (own(experimental, "subagent_depth")) {
|
|
341
346
|
const value = decodeEncoded(ConfigExperimental.Info.fields.subagent_depth, experimental.subagent_depth, ["experimental", "subagent_depth"], diagnostics);
|
|
342
347
|
if (value !== undefined)
|
|
@@ -440,7 +445,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
440
445
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
441
446
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
442
447
|
return [];
|
|
443
|
-
const provider = decodeValue(
|
|
448
|
+
const provider = decodeValue(Info17, raw, path, diagnostics);
|
|
444
449
|
if (provider === undefined)
|
|
445
450
|
return [];
|
|
446
451
|
const destination = providerID2(name);
|
|
@@ -649,4 +654,4 @@ function setOwn(value, key, item) {
|
|
|
649
654
|
Object.defineProperty(value, key, { value: item, enumerable: true, configurable: true, writable: true });
|
|
650
655
|
}
|
|
651
656
|
|
|
652
|
-
export {
|
|
657
|
+
export { normalize3, exports_normalize };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Ref5
|
|
3
|
+
} from "./tool-j3xa31ke.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service65,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node68,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service65 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service65, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node68 = LayerNode.unbound(Service65, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service65;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -39,10 +39,13 @@ var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
|
39
39
|
yield* Effect.logInfo("location services reloaded", { count: refs.length });
|
|
40
40
|
});
|
|
41
41
|
function canonical3(ref) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const flavor = process.platform === "win32" && !ref.directory.startsWith("/") ? path.win32 : path.posix;
|
|
43
|
+
const normalized = flavor.normalize(ref.directory);
|
|
44
|
+
const trailing = normalized.endsWith(flavor.sep) && normalized.length > flavor.parse(normalized).root.length;
|
|
45
|
+
return Ref5.make({
|
|
46
|
+
directory: AbsolutePath.make(trailing ? normalized.slice(0, -1) : normalized),
|
|
44
47
|
workspaceID: ref.workspaceID
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
export {
|
|
51
|
+
export { Service65, node68, reload2, canonical3, exports_location_service_map };
|