@opencode/core 0.0.0-dev-20633 → 0.0.0-dev-20635
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +69 -69
- package/dist/chunks/{repository-cache-6kqdj38p.js → snapshot-01wy2qek.js} +34 -34
- package/dist/chunks/{repository-cache-gsggkbsb.js → snapshot-06w4bmrz.js} +16 -16
- package/dist/chunks/{repository-cache-43h714sb.js → snapshot-0byq2k6w.js} +26 -26
- package/dist/chunks/{repository-cache-q0xm7vwc.js → snapshot-0j77ygfz.js} +6 -6
- package/dist/chunks/{repository-cache-0paq2nw3.js → snapshot-0paq2nw3.js} +1 -1
- package/dist/chunks/{repository-cache-za3jhw35.js → snapshot-0sx48w9z.js} +9 -9
- package/dist/chunks/{repository-cache-tn65e0xg.js → snapshot-0td4cz49.js} +3 -3
- package/dist/chunks/{repository-cache-0vbcp93d.js → snapshot-0vbcp93d.js} +2 -2
- package/dist/chunks/{repository-cache-4kagh904.js → snapshot-13d5j3xz.js} +5 -5
- package/dist/chunks/{repository-cache-1dazxqgg.js → snapshot-1dazxqgg.js} +2 -2
- package/dist/chunks/{repository-cache-1dvck2a7.js → snapshot-1dvck2a7.js} +2 -2
- package/dist/chunks/{repository-cache-qykpeme4.js → snapshot-1e8vqbs5.js} +16 -16
- package/dist/chunks/{repository-cache-r6vweynn.js → snapshot-1gp9qjqr.js} +7 -7
- package/dist/chunks/{repository-cache-g9kkm8kt.js → snapshot-1qe672pv.js} +4 -4
- package/dist/chunks/{repository-cache-y16p1w2y.js → snapshot-1rh4yqvv.js} +9 -9
- package/dist/chunks/{repository-cache-jj9x1ggj.js → snapshot-1rpkqfbc.js} +1 -1
- package/dist/chunks/{repository-cache-3vk8kg3r.js → snapshot-1wcts50h.js} +18 -18
- package/dist/chunks/{repository-cache-33w4ejhs.js → snapshot-1ygqh575.js} +6 -6
- package/dist/chunks/{repository-cache-0farmcce.js → snapshot-1zjs6h3e.js} +26 -26
- package/dist/chunks/{repository-cache-rek1mgnt.js → snapshot-24p06p9j.js} +15 -15
- package/dist/chunks/{repository-cache-2a5m3afh.js → snapshot-2a5m3afh.js} +1 -1
- package/dist/chunks/{repository-cache-83nfeprs.js → snapshot-2cbph903.js} +11 -11
- package/dist/chunks/{repository-cache-4ts7tf6z.js → snapshot-2ccvkpx1.js} +2 -2
- package/dist/chunks/{repository-cache-1gzs4dwb.js → snapshot-2gybq4dr.js} +3 -3
- package/dist/chunks/{repository-cache-2k8khapm.js → snapshot-2k8khapm.js} +1 -1
- package/dist/chunks/{repository-cache-mjymc32g.js → snapshot-2pnhn36q.js} +21 -21
- package/dist/chunks/{repository-cache-hx274pq4.js → snapshot-2qdat27r.js} +20 -20
- package/dist/chunks/{repository-cache-zyfwwvzs.js → snapshot-30pz7tss.js} +4 -4
- package/dist/chunks/{repository-cache-2awp3nqz.js → snapshot-30rd5yfg.js} +22 -22
- package/dist/chunks/{repository-cache-1qp08ady.js → snapshot-34c0j3ep.js} +15 -15
- package/dist/chunks/{repository-cache-zx0w556f.js → snapshot-38kf5rm2.js} +24 -24
- package/dist/chunks/{repository-cache-b52f6b20.js → snapshot-3f6key9q.js} +52 -52
- package/dist/chunks/{repository-cache-3fc6dm20.js → snapshot-3fc6dm20.js} +1 -1
- package/dist/chunks/{repository-cache-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-cache-3smtnn6g.js → snapshot-3smtnn6g.js} +1 -1
- package/dist/chunks/{repository-cache-3tvqynh2.js → snapshot-3tvqynh2.js} +1 -1
- package/dist/chunks/{repository-cache-3zsf4n22.js → snapshot-3zsf4n22.js} +1 -1
- package/dist/chunks/{repository-cache-ezbj1fpr.js → snapshot-45gfdbj6.js} +18 -18
- package/dist/chunks/{repository-cache-gmg4efnw.js → snapshot-490jtnz7.js} +18 -18
- package/dist/chunks/snapshot-4ajnt9eg.js +253 -0
- package/dist/chunks/{repository-cache-3z4h39tf.js → snapshot-4c9vz95h.js} +8 -8
- package/dist/chunks/{repository-cache-nppwm206.js → snapshot-4j3g2wcv.js} +4 -4
- package/dist/chunks/{repository-cache-fnd80x7n.js → snapshot-4jfgyrzt.js} +71 -71
- package/dist/chunks/{repository-cache-eqkxs06z.js → snapshot-4mwpykj0.js} +6 -6
- package/dist/chunks/{repository-cache-dcksech5.js → snapshot-4qedgxnx.js} +6 -6
- package/dist/chunks/{repository-cache-vfjhn2wd.js → snapshot-4v7ngy20.js} +4 -4
- package/dist/chunks/snapshot-4v7qdvcn.js +18 -0
- package/dist/chunks/{repository-cache-1gpb38yh.js → snapshot-4zwmvgkw.js} +9 -9
- package/dist/chunks/{repository-cache-srfsq8py.js → snapshot-50h1eett.js} +3 -3
- package/dist/chunks/{repository-cache-54ma36ye.js → snapshot-54ma36ye.js} +1 -1
- package/dist/chunks/{repository-cache-txeasv02.js → snapshot-55m8fdgd.js} +20 -20
- package/dist/chunks/{repository-cache-nfrd3k8n.js → snapshot-55mrs20k.js} +9 -9
- package/dist/chunks/{repository-cache-my4zabxr.js → snapshot-58072hz9.js} +3 -3
- package/dist/chunks/{repository-cache-wtmfszvm.js → snapshot-5b6yg4p8.js} +14 -14
- package/dist/chunks/{repository-cache-5daktx2q.js → snapshot-5daktx2q.js} +1 -1
- package/dist/chunks/{repository-cache-5m9w47nd.js → snapshot-5m9w47nd.js} +1 -1
- package/dist/chunks/{repository-cache-ckbnwpw7.js → snapshot-5ngaw42y.js} +11 -11
- package/dist/chunks/{repository-cache-w4xn84ph.js → snapshot-5s00wypw.js} +2 -2
- package/dist/chunks/{repository-cache-5t3nmthw.js → snapshot-5t3nmthw.js} +2 -2
- package/dist/chunks/{repository-cache-3pv863bm.js → snapshot-5vmvc5he.js} +12 -12
- package/dist/chunks/{repository-cache-75jaekcr.js → snapshot-606e7s57.js} +11 -11
- package/dist/chunks/{repository-cache-8qf1wa8e.js → snapshot-6j7y2wwk.js} +13 -13
- package/dist/chunks/{repository-cache-asmhed6t.js → snapshot-6rxkb1t6.js} +8 -8
- package/dist/chunks/{repository-cache-6xb47vfp.js → snapshot-6xb47vfp.js} +1 -1
- package/dist/chunks/{repository-cache-2fxj49dy.js → snapshot-6xkm719f.js} +30 -30
- package/dist/chunks/{repository-cache-ngmk5s4j.js → snapshot-6ym8qnhr.js} +12 -12
- package/dist/chunks/{repository-cache-71az546q.js → snapshot-71az546q.js} +2 -2
- package/dist/chunks/{repository-cache-6j80gscp.js → snapshot-79zv7g62.js} +13 -13
- package/dist/chunks/{repository-cache-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-cache-4ybhn1pz.js → snapshot-7c7sv9k2.js} +17 -17
- package/dist/chunks/{repository-cache-akqawhrq.js → snapshot-7nnpek7x.js} +8 -8
- package/dist/chunks/{repository-cache-0yq98qfb.js → snapshot-7ta4bv20.js} +27 -27
- package/dist/chunks/{repository-cache-her3d2s9.js → snapshot-7zt2q3h7.js} +16 -16
- package/dist/chunks/{repository-cache-prf0q3vs.js → snapshot-809mkkbx.js} +18 -18
- package/dist/chunks/{repository-cache-wc9dc547.js → snapshot-82cr96wn.js} +20 -20
- package/dist/chunks/{repository-cache-w1eejvng.js → snapshot-84txncab.js} +5 -5
- package/dist/chunks/{repository-cache-7ac9g4dc.js → snapshot-84zqq0g0.js} +24 -24
- package/dist/chunks/{repository-cache-b3y77xh2.js → snapshot-8bvzxqk6.js} +39 -39
- package/dist/chunks/{repository-cache-8d7r5vzw.js → snapshot-8d7r5vzw.js} +1 -1
- package/dist/chunks/{repository-cache-eeaf82dq.js → snapshot-8s1fj8xg.js} +8 -8
- package/dist/chunks/{repository-cache-8t879spr.js → snapshot-8sf9g9bn.js} +43 -43
- package/dist/chunks/{repository-cache-vs93n2a0.js → snapshot-8t2r0pt2.js} +43 -43
- package/dist/chunks/{repository-cache-nd0qz9vn.js → snapshot-8t7k386x.js} +13 -13
- package/dist/chunks/{repository-cache-qarnpraq.js → snapshot-914tbbjm.js} +9 -9
- package/dist/chunks/{repository-cache-da75awh4.js → snapshot-98a7fcd2.js} +11 -11
- package/dist/chunks/{repository-cache-9e5bzkjp.js → snapshot-9e5bzkjp.js} +3 -3
- package/dist/chunks/{repository-cache-ejq34man.js → snapshot-9ftsng1y.js} +17 -17
- package/dist/chunks/{repository-cache-dv1qgsyq.js → snapshot-9hn6k4tm.js} +4 -4
- package/dist/chunks/{repository-cache-dt79rr6p.js → snapshot-9pz2n9rd.js} +12 -12
- package/dist/chunks/{repository-cache-b2p5j8y6.js → snapshot-9smjc29v.js} +36 -36
- package/dist/chunks/{repository-cache-vd2wkccw.js → snapshot-9syttpxn.js} +33 -33
- package/dist/chunks/{repository-cache-66hfmvvk.js → snapshot-9ts1yjxr.js} +11 -11
- package/dist/chunks/{repository-cache-0r8xnjkd.js → snapshot-9xw1zsfh.js} +8 -8
- package/dist/chunks/{repository-cache-xgyqszzh.js → snapshot-9z1jz1fd.js} +5 -5
- package/dist/chunks/{repository-cache-73tb2d7t.js → snapshot-a1gpj94z.js} +3 -3
- package/dist/chunks/{repository-cache-stp9c87e.js → snapshot-a3a3tq5e.js} +13 -13
- package/dist/chunks/{repository-cache-cb70s9dt.js → snapshot-a8kks0d9.js} +8 -8
- package/dist/chunks/{repository-cache-aaet6srn.js → snapshot-aaet6srn.js} +2 -2
- package/dist/chunks/{repository-cache-x661k3y3.js → snapshot-addxnjmp.js} +4 -4
- package/dist/chunks/{repository-cache-jqc99esa.js → snapshot-ambwxayc.js} +5 -5
- package/dist/chunks/{repository-cache-qt205g8k.js → snapshot-ams72g5c.js} +11 -11
- package/dist/chunks/{repository-cache-zsm13mz3.js → snapshot-ansmabqy.js} +24 -24
- package/dist/chunks/{repository-cache-gdw97pah.js → snapshot-azzye172.js} +5 -5
- package/dist/chunks/{repository-cache-qygbw77c.js → snapshot-b3f8fkhc.js} +5 -5
- package/dist/chunks/{repository-cache-b6gygkdw.js → snapshot-b6gygkdw.js} +2 -2
- package/dist/chunks/{repository-cache-fw8t8h2a.js → snapshot-b72deqvz.js} +48 -48
- package/dist/chunks/{repository-cache-5a1tjkyz.js → snapshot-bf8bbf38.js} +21 -21
- package/dist/chunks/{repository-cache-pv84kftf.js → snapshot-bh23es7j.js} +21 -21
- package/dist/chunks/{repository-cache-0314bnyz.js → snapshot-bq1xg9wr.js} +15 -15
- package/dist/chunks/{repository-cache-e3f83rfj.js → snapshot-bs0her6n.js} +12 -12
- package/dist/chunks/{repository-cache-g2g6h4y2.js → snapshot-c60ns7m9.js} +11 -11
- package/dist/chunks/{repository-cache-7pjv26c7.js → snapshot-cb7caa3e.js} +1 -1
- package/dist/chunks/{repository-cache-cfsekr6v.js → snapshot-cfsekr6v.js} +2 -2
- package/dist/chunks/{repository-cache-e3f0xn9m.js → snapshot-ckqv7ffe.js} +25 -25
- package/dist/chunks/{repository-cache-z8g4t8bg.js → snapshot-cm9hswnw.js} +25 -25
- package/dist/chunks/{repository-cache-adws6758.js → snapshot-d19e4dwh.js} +4 -4
- package/dist/chunks/{repository-cache-w9p55wnq.js → snapshot-dchsmdq5.js} +13 -13
- package/dist/chunks/{repository-cache-g6tpd3f3.js → snapshot-dh7acrtn.js} +10 -10
- package/dist/chunks/{repository-cache-cwa6csj7.js → snapshot-djszqvmq.js} +9 -9
- package/dist/chunks/{repository-cache-xkntkrq7.js → snapshot-dmqcgk4z.js} +5 -5
- package/dist/chunks/{repository-cache-w33r0n2z.js → snapshot-dxdqybfr.js} +14 -14
- package/dist/chunks/{repository-cache-sy2a3hb1.js → snapshot-dzfez6bd.js} +18 -18
- package/dist/chunks/{repository-cache-380yy1tx.js → snapshot-e1kg5xcc.js} +152 -152
- package/dist/chunks/{repository-cache-5qd3pb7m.js → snapshot-e3qxr5gk.js} +2 -2
- package/dist/chunks/{repository-cache-k0cbva3z.js → snapshot-easr7c7j.js} +21 -21
- package/dist/chunks/{repository-cache-8ef36zg1.js → snapshot-ebmvv24b.js} +18 -18
- package/dist/chunks/{repository-cache-9wt051s7.js → snapshot-ebpfwzpf.js} +85 -85
- package/dist/chunks/{repository-cache-gmbhe8g5.js → snapshot-ef3dmj4g.js} +7 -7
- package/dist/chunks/{repository-cache-ef5x83kb.js → snapshot-ef5x83kb.js} +1 -1
- package/dist/chunks/{repository-cache-zsqegwh4.js → snapshot-egn78er9.js} +8 -8
- package/dist/chunks/{repository-cache-q9ekeea5.js → snapshot-ejcmw1aa.js} +17 -17
- package/dist/chunks/snapshot-ejwvf004.js +507 -0
- package/dist/chunks/{repository-cache-e72ekma6.js → snapshot-emmbmbyr.js} +1 -1
- package/dist/chunks/{repository-cache-etq0c3wd.js → snapshot-etq0c3wd.js} +1 -1
- package/dist/chunks/{repository-cache-reg6q42h.js → snapshot-f62qkzqr.js} +5 -5
- package/dist/chunks/{repository-cache-y1t2hwwz.js → snapshot-f92frnky.js} +2 -2
- package/dist/chunks/{repository-cache-hhvkpmqw.js → snapshot-fdqb3sd9.js} +30 -30
- package/dist/chunks/{repository-cache-s93md6f8.js → snapshot-fe8gwfr5.js} +11 -11
- package/dist/chunks/{repository-cache-ed81rq57.js → snapshot-fex70s02.js} +4 -4
- package/dist/chunks/{repository-cache-s0xttw3k.js → snapshot-fqq9xsk7.js} +22 -22
- package/dist/chunks/{repository-cache-f7rj482f.js → snapshot-fw2v9256.js} +8 -8
- package/dist/chunks/{repository-cache-g5w8qwbj.js → snapshot-g5w8qwbj.js} +1 -1
- package/dist/chunks/{repository-cache-drnf6xwf.js → snapshot-gccjnz6h.js} +2 -2
- package/dist/chunks/{repository-cache-gd4qta3r.js → snapshot-gd4qta3r.js} +1 -1
- package/dist/chunks/{repository-cache-a27z7shm.js → snapshot-gz41n4pb.js} +42 -42
- package/dist/chunks/{repository-cache-h2b79v29.js → snapshot-h2b79v29.js} +2 -2
- package/dist/chunks/{repository-cache-67fkg7q1.js → snapshot-h33t1xt5.js} +8 -8
- package/dist/chunks/{repository-cache-h6vf3j39.js → snapshot-h6vf3j39.js} +1 -1
- package/dist/chunks/{repository-cache-yrcj3v3g.js → snapshot-h9wp8z5w.js} +4 -4
- package/dist/chunks/{repository-cache-27rbdjmf.js → snapshot-hee39r59.js} +42 -42
- package/dist/chunks/{repository-cache-e8qvsypq.js → snapshot-hfnn6h40.js} +16 -16
- package/dist/chunks/{repository-cache-hbrg1y73.js → snapshot-hw2n9bc3.js} +8 -8
- package/dist/chunks/{repository-cache-vx0crfcw.js → snapshot-hxek7tcc.js} +3 -3
- package/dist/chunks/{repository-cache-qssqgjzh.js → snapshot-j238m2wq.js} +1 -1
- package/dist/chunks/{repository-cache-syb2vrbv.js → snapshot-j4gcvdzz.js} +21 -21
- package/dist/chunks/{repository-cache-j56e64zr.js → snapshot-j56e64zr.js} +1 -1
- package/dist/chunks/{repository-cache-8bpbh7v7.js → snapshot-j739v9j7.js} +11 -11
- package/dist/chunks/{repository-cache-ec2p6e73.js → snapshot-jkhhterb.js} +35 -35
- package/dist/chunks/{repository-cache-trq2ab9q.js → snapshot-jn7tmx4p.js} +10 -10
- package/dist/chunks/{repository-cache-q0dea8a4.js → snapshot-k3a0as7r.js} +5 -5
- package/dist/chunks/{repository-cache-gh5z95q3.js → snapshot-k70p9jzb.js} +9 -9
- package/dist/chunks/{repository-cache-qaxybd8b.js → snapshot-k808h248.js} +26 -26
- package/dist/chunks/{repository-cache-q17z9dx8.js → snapshot-kbj2dgab.js} +5 -5
- package/dist/chunks/{repository-cache-1s3jpj7n.js → snapshot-kc2whj5y.js} +17 -17
- package/dist/chunks/{repository-cache-9mvydfy5.js → snapshot-kdarkz0k.js} +13 -13
- package/dist/chunks/{repository-cache-pjtd6ph8.js → snapshot-kks5n0mm.js} +32 -32
- package/dist/chunks/{repository-cache-rs4nb2xx.js → snapshot-kkya6hqm.js} +9 -9
- package/dist/chunks/{repository-cache-bwtwpct7.js → snapshot-kmfd25t4.js} +3 -3
- package/dist/chunks/{repository-cache-z45tr6e4.js → snapshot-kpt54jka.js} +22 -22
- package/dist/chunks/{repository-cache-m3fdjcah.js → snapshot-m3fdjcah.js} +1 -1
- package/dist/chunks/{repository-cache-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-cache-ychejvqa.js → snapshot-mgsp47xb.js} +9 -9
- package/dist/chunks/{repository-cache-hacqhjnc.js → snapshot-mpqann26.js} +18 -18
- package/dist/chunks/{repository-cache-sbf3786x.js → snapshot-ms0e1w2a.js} +24 -24
- package/dist/chunks/{repository-cache-pfc6dryh.js → snapshot-mxxxa8pc.js} +26 -26
- package/dist/chunks/{repository-cache-b674v2dg.js → snapshot-n8vdnqrc.js} +5 -5
- package/dist/chunks/{repository-cache-n9yzr3f2.js → snapshot-njmzpw5k.js} +16 -16
- package/dist/chunks/{repository-cache-rd3ygx5h.js → snapshot-nnfq7fft.js} +25 -25
- package/dist/chunks/{repository-cache-gcqqjazk.js → snapshot-nt7v8mep.js} +30 -30
- package/dist/chunks/{repository-cache-dpkg50ah.js → snapshot-nxm207yx.js} +4 -4
- package/dist/chunks/{repository-cache-4725dwfb.js → snapshot-p1np5d7s.js} +9 -9
- package/dist/chunks/{repository-cache-dx2074w2.js → snapshot-p47p3x6n.js} +13 -13
- package/dist/chunks/{repository-cache-hpmqkzac.js → snapshot-p4kgtw5x.js} +12 -12
- package/dist/chunks/{repository-cache-p983wz9k.js → snapshot-p9jn0jc6.js} +6 -6
- package/dist/chunks/{repository-cache-ctpb9bd3.js → snapshot-pbgrrt8q.js} +5 -5
- package/dist/chunks/{repository-cache-j3600rrf.js → snapshot-pevdf72a.js} +10 -10
- package/dist/chunks/{repository-cache-h697gncw.js → snapshot-phm1sawz.js} +21 -21
- package/dist/chunks/{repository-cache-pjvnvgmy.js → snapshot-pjvnvgmy.js} +1 -1
- package/dist/chunks/{repository-cache-pknna89w.js → snapshot-pknna89w.js} +1 -1
- package/dist/chunks/{repository-cache-9ybrg23s.js → snapshot-pnrzkzcv.js} +11 -11
- package/dist/chunks/{repository-cache-bdqa6k4n.js → snapshot-pp9frasb.js} +7 -7
- package/dist/chunks/{repository-cache-vf6jcqzn.js → snapshot-pzaq0q3h.js} +14 -14
- package/dist/chunks/{repository-cache-vd4xatwq.js → snapshot-q8a356d0.js} +17 -17
- package/dist/chunks/{repository-cache-7sbkp4xb.js → snapshot-qa3qhgw8.js} +4 -4
- package/dist/chunks/{repository-cache-x1yb4nr2.js → snapshot-qd87qnby.js} +24 -24
- package/dist/chunks/{repository-cache-d7ddzgsf.js → snapshot-qg56zsrf.js} +11 -11
- package/dist/chunks/{repository-cache-p85401z6.js → snapshot-qhz5c7yg.js} +13 -13
- package/dist/chunks/{repository-cache-g01j4dtk.js → snapshot-qkrx527r.js} +25 -25
- package/dist/chunks/{repository-cache-3vgk5qpr.js → snapshot-qn7mss41.js} +27 -27
- package/dist/chunks/{repository-cache-qnc92qwc.js → snapshot-qnc92qwc.js} +1 -1
- package/dist/chunks/{repository-cache-2epzd39j.js → snapshot-qnmybv1b.js} +87 -87
- package/dist/chunks/{repository-cache-t2bbc9e5.js → snapshot-qnpjnc21.js} +1 -1
- package/dist/chunks/{repository-cache-qmacqzaw.js → snapshot-qrk3b11x.js} +1 -1
- package/dist/chunks/{repository-cache-qsdy395h.js → snapshot-qsdy395h.js} +1 -1
- package/dist/chunks/{repository-cache-hs1x7rht.js → snapshot-qv8c18b1.js} +5 -5
- package/dist/chunks/{repository-cache-13fmgeb3.js → snapshot-qxd7ea1r.js} +9 -9
- package/dist/chunks/{repository-cache-xyafkbt0.js → snapshot-qxjc9qry.js} +3 -3
- package/dist/chunks/{repository-cache-68tetnxs.js → snapshot-r23b2p45.js} +4 -4
- package/dist/chunks/{repository-cache-kyrf4g17.js → snapshot-r5nnafs2.js} +18 -18
- package/dist/chunks/{repository-cache-r8xr0va3.js → snapshot-r8xr0va3.js} +1 -1
- package/dist/chunks/{repository-cache-q8peyv7x.js → snapshot-rav9e4bf.js} +8 -8
- package/dist/chunks/{repository-cache-v84b5zdr.js → snapshot-rbg0p6rj.js} +18 -18
- package/dist/chunks/{repository-cache-rdw6cm16.js → snapshot-rdw6cm16.js} +1 -1
- package/dist/chunks/{repository-cache-9mwb0ww6.js → snapshot-rfdthp1y.js} +10 -10
- package/dist/chunks/{repository-cache-r26qgbxz.js → snapshot-s43e8fnf.js} +7 -7
- package/dist/chunks/{repository-cache-trnc8c0p.js → snapshot-s54j65n9.js} +22 -22
- package/dist/chunks/{repository-cache-rhjbct0v.js → snapshot-s8d7rejh.js} +4 -4
- package/dist/chunks/{repository-cache-s3eybw0p.js → snapshot-s8qjwx7s.js} +4 -4
- package/dist/chunks/{repository-cache-wf9hhd1y.js → snapshot-sa6rnwcm.js} +42 -42
- package/dist/chunks/{repository-cache-aevez07h.js → snapshot-savmkeh3.js} +15 -15
- package/dist/chunks/{repository-cache-wtqwpwgf.js → snapshot-sd7me009.js} +6 -6
- package/dist/chunks/{repository-cache-gq310cps.js → snapshot-sj37d163.js} +11 -11
- package/dist/chunks/{repository-cache-p9b1de7v.js → snapshot-snd1jtws.js} +7 -7
- package/dist/chunks/{repository-cache-tazgh4e4.js → snapshot-tazgh4e4.js} +1 -1
- package/dist/chunks/{repository-cache-03xyy9gs.js → snapshot-tc14gx3q.js} +11 -11
- package/dist/chunks/{repository-cache-tcezcvh9.js → snapshot-tcezcvh9.js} +1 -1
- package/dist/chunks/{repository-cache-tdstcens.js → snapshot-tdstcens.js} +1 -1
- package/dist/chunks/{repository-cache-n57qrn3a.js → snapshot-tea830r9.js} +6 -6
- package/dist/chunks/{repository-cache-mb54k367.js → snapshot-tmhxmxf3.js} +23 -23
- package/dist/chunks/{repository-cache-4k8essf6.js → snapshot-tmrrbz73.js} +20 -20
- package/dist/chunks/{repository-cache-60x3zdck.js → snapshot-tv4pwrvh.js} +3 -3
- package/dist/chunks/{repository-cache-qby9dwvd.js → snapshot-tx9w5tca.js} +8 -8
- package/dist/chunks/{repository-cache-4yxz2xtz.js → snapshot-tz3w7kyf.js} +3 -3
- package/dist/chunks/{repository-cache-v0es1rhs.js → snapshot-v0es1rhs.js} +2 -2
- package/dist/chunks/{repository-cache-hpapzrps.js → snapshot-v606x47v.js} +6 -6
- package/dist/chunks/{repository-cache-80scg3y3.js → snapshot-vbfgae2j.js} +4 -4
- package/dist/chunks/{repository-cache-4x0vy5hp.js → snapshot-vc6qc4g1.js} +3 -3
- package/dist/chunks/{repository-cache-veqvce7d.js → snapshot-veqvce7d.js} +1 -1
- package/dist/chunks/{repository-cache-skcgj51b.js → snapshot-vf1tjk7q.js} +49 -49
- package/dist/chunks/{repository-cache-1mp78k6j.js → snapshot-vxj5c8sz.js} +33 -33
- package/dist/chunks/{repository-cache-vzs5sf6e.js → snapshot-vzs5sf6e.js} +1 -1
- package/dist/chunks/{repository-cache-w39jehkq.js → snapshot-w2h15q85.js} +5 -5
- package/dist/chunks/{repository-cache-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-cache-81nd2mqz.js → snapshot-w5wtk1sj.js} +33 -33
- package/dist/chunks/{repository-cache-t0ngdjdp.js → snapshot-wb6xtyp7.js} +1 -1
- package/dist/chunks/{repository-cache-wd87259q.js → snapshot-wd87259q.js} +1 -1
- package/dist/chunks/{repository-cache-w92qfhy9.js → snapshot-wfnc7ck1.js} +8 -8
- package/dist/chunks/{repository-cache-rbdy6pgn.js → snapshot-wmv7jh55.js} +16 -16
- package/dist/chunks/{repository-cache-a1r14f74.js → snapshot-wq9n3fgh.js} +11 -11
- package/dist/chunks/{repository-cache-nbevcm7z.js → snapshot-wqxkxsqv.js} +13 -13
- package/dist/chunks/snapshot-wtrdqwsw.js +26 -0
- package/dist/chunks/{repository-cache-3rjdzas3.js → snapshot-x5v93ytx.js} +11 -11
- package/dist/chunks/{repository-cache-8pdzessb.js → snapshot-x9h5zfcv.js} +2 -2
- package/dist/chunks/{repository-cache-rmn3m3gf.js → snapshot-xch80j94.js} +2 -2
- package/dist/chunks/{repository-cache-4eq8w0dz.js → snapshot-xf0nr9dv.js} +4 -4
- package/dist/chunks/{repository-cache-spd9hrnc.js → snapshot-xgnfr18s.js} +30 -30
- package/dist/chunks/{repository-cache-jby0a0d3.js → snapshot-xjvdbam7.js} +15 -15
- package/dist/chunks/{repository-cache-jz8pf1gf.js → snapshot-xqrmy91b.js} +6 -6
- package/dist/chunks/{repository-cache-d3qedjgv.js → snapshot-xx0efrt7.js} +10 -10
- package/dist/chunks/{repository-cache-e0yt5kkj.js → snapshot-y06ady85.js} +24 -24
- package/dist/chunks/{repository-cache-y1fvbwt7.js → snapshot-y1fvbwt7.js} +1 -1
- package/dist/chunks/{repository-cache-js6zmc2m.js → snapshot-y6b024td.js} +10 -10
- package/dist/chunks/{repository-cache-zkh24274.js → snapshot-yfbfpsvk.js} +31 -31
- package/dist/chunks/{repository-cache-hk87g4j9.js → snapshot-yg3k0d53.js} +20 -20
- package/dist/chunks/{repository-cache-dwngdq4b.js → snapshot-ymfkwayz.js} +12 -12
- package/dist/chunks/{repository-cache-v4j9mmzp.js → snapshot-yqw633vx.js} +23 -23
- package/dist/chunks/{repository-cache-y56ehv6b.js → snapshot-yr715y08.js} +9 -9
- package/dist/chunks/{repository-cache-z0bkrqjs.js → snapshot-z0bkrqjs.js} +1 -1
- package/dist/chunks/{repository-cache-r43h3m0v.js → snapshot-z2pg85mw.js} +24 -24
- package/dist/chunks/{repository-cache-90sz55zw.js → snapshot-zchqraft.js} +5 -5
- package/dist/chunks/{repository-cache-e2hjzebn.js → snapshot-zcrspsvn.js} +4 -4
- package/dist/chunks/{repository-cache-nk0cncdn.js → snapshot-zerjt0v5.js} +4 -4
- package/dist/chunks/{repository-cache-as7cf5zz.js → snapshot-zfs8ae4p.js} +4 -4
- package/dist/chunks/{repository-cache-b69jv39p.js → snapshot-znsx74x0.js} +1 -1
- package/dist/chunks/{repository-cache-zr2ceqn5.js → snapshot-zr2ceqn5.js} +1 -1
- package/dist/chunks/{repository-cache-ne6stvg8.js → snapshot-zxbpt09z.js} +20 -20
- package/dist/chunks/{repository-cache-zxq2ej10.js → snapshot-zxq2ej10.js} +1 -1
- package/dist/chunks/{repository-cache-mqh9b2r2.js → snapshot-zyn8fsgh.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +152 -152
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +115 -115
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +99 -99
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +75 -75
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +96 -96
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +114 -114
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- 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 +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +93 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +87 -87
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +201 -201
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +207 -207
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- 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 +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +93 -93
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +94 -94
- package/package.json +8 -8
- package/dist/chunks/repository-cache-4gw7g1yd.js +0 -507
- package/dist/chunks/repository-cache-97y2hkx4.js +0 -26
- package/dist/chunks/repository-cache-9sh4wc5j.js +0 -18
- package/dist/chunks/repository-cache-j22twtz4.js +0 -253
- /package/dist/chunks/{repository-cache-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-cache-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-cache-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-cache-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-cache-1kg9ymc8.js → snapshot-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{repository-cache-24dcb14g.js → snapshot-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-cache-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-cache-2axfhc9x.js → snapshot-2axfhc9x.js} +0 -0
- /package/dist/chunks/{repository-cache-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-cache-34c7v6d4.js → snapshot-34c7v6d4.js} +0 -0
- /package/dist/chunks/{repository-cache-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-cache-3asan66x.js → snapshot-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-cache-3t0ybcrp.js → snapshot-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{repository-cache-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-cache-3w5fmr99.js → snapshot-3w5fmr99.js} +0 -0
- /package/dist/chunks/{repository-cache-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-cache-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-cache-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-cache-4vcrnpx2.js → snapshot-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-cache-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-cache-53557ph1.js → snapshot-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-cache-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-cache-6prwharc.js → snapshot-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-cache-6q2bdcd1.js → snapshot-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{repository-cache-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-cache-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-cache-822emrt2.js → snapshot-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-cache-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-cache-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-cache-8wj87zfr.js → snapshot-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-cache-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-cache-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-cache-a6k6eb26.js → snapshot-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-cache-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-cache-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-cache-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-cache-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-cache-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-cache-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cache-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cache-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-cache-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-cache-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-cache-dajrwvna.js → snapshot-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-cache-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-cache-df08tz66.js → snapshot-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-cache-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-cache-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-cache-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-cache-ec1grn59.js → snapshot-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-cache-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-cache-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-cache-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-cache-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-cache-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-cache-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-cache-fxgpk5d8.js → snapshot-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{repository-cache-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-cache-g86h250q.js → snapshot-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-cache-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-cache-gftt206x.js → snapshot-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-cache-hk9envan.js → snapshot-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-cache-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-cache-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-cache-jjkms2e6.js → snapshot-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-cache-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-cache-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-cache-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-cache-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-cache-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-cache-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-cache-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-cache-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-cache-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-cache-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-cache-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-cache-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-cache-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-cache-qg3g05ea.js → snapshot-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-cache-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-cache-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-cache-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-cache-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-cache-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-cache-wc3fc9cn.js → snapshot-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-cache-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-cache-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-cache-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-cache-x61499pn.js → snapshot-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-cache-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-cache-y8cydn3q.js → snapshot-y8cydn3q.js} +0 -0
- /package/dist/chunks/{repository-cache-y8f7s663.js → snapshot-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-cache-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-cache-ym463w8f.js → snapshot-ym463w8f.js} +0 -0
- /package/dist/chunks/{repository-cache-z5v4ffb3.js → snapshot-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-cache-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service71,
|
|
4
|
+
node75
|
|
5
|
+
} from "./snapshot-s54j65n9.js";
|
|
6
6
|
import {
|
|
7
7
|
ID12,
|
|
8
8
|
isAISDK2,
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
timeouts2,
|
|
15
15
|
mergeOverlay2,
|
|
16
16
|
mergeHeaders2,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service69,
|
|
18
|
+
node73
|
|
19
|
+
} from "./snapshot-809mkkbx.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service46,
|
|
22
|
+
node48
|
|
23
|
+
} from "./snapshot-0sx48w9z.js";
|
|
24
24
|
import {
|
|
25
25
|
ID11,
|
|
26
26
|
VariantID2,
|
|
27
27
|
Ref2,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
Service68,
|
|
29
|
+
node72,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./snapshot-9ftsng1y.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/model-resolver.ts
|
|
37
37
|
var exports_model_resolver = {};
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service45,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer19,
|
|
51
|
+
node: () => node47,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service45 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -265,15 +265,15 @@ var causeMessage = (cause) => {
|
|
|
265
265
|
};
|
|
266
266
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
267
267
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
268
|
-
var
|
|
269
|
-
const providers = yield*
|
|
270
|
-
const models = yield*
|
|
271
|
-
const integrations = yield*
|
|
268
|
+
var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
269
|
+
const providers = yield* Service69;
|
|
270
|
+
const models = yield* Service68;
|
|
271
|
+
const integrations = yield* Service71;
|
|
272
272
|
const npm = yield* Npm.Service;
|
|
273
|
-
const aisdk = yield*
|
|
273
|
+
const aisdk = yield* Service46;
|
|
274
274
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
275
275
|
const provider = yield* providers.get(selected.providerID);
|
|
276
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
276
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
277
277
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
278
278
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
279
279
|
const runtimeInfo = {
|
|
@@ -300,7 +300,7 @@ var layer24 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
300
300
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
301
301
|
};
|
|
302
302
|
});
|
|
303
|
-
return
|
|
303
|
+
return Service45.of({
|
|
304
304
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
305
305
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
306
306
|
if (!selected)
|
|
@@ -317,10 +317,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
317
317
|
const name = packageName2(packageName);
|
|
318
318
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
service:
|
|
322
|
-
layer:
|
|
323
|
-
deps: [
|
|
320
|
+
var node47 = makeLocationNode({
|
|
321
|
+
service: Service45,
|
|
322
|
+
layer: layer19,
|
|
323
|
+
deps: [node73, node72, node75, Npm.node, node48]
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
326
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service45, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer19, node47, exports_model_resolver };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-wfnc7ck1.js";
|
|
7
7
|
import {
|
|
8
8
|
Service80,
|
|
9
9
|
node84
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-f92frnky.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service55,
|
|
13
|
+
node58
|
|
14
|
+
} from "./snapshot-3f6key9q.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/file-access.ts
|
|
20
20
|
var exports_file_access = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
26
|
-
node: () =>
|
|
25
|
+
Service: () => Service13,
|
|
26
|
+
node: () => node16,
|
|
27
27
|
resolvePath: () => resolvePath2
|
|
28
28
|
});
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ var ResolveInput2 = Schema.Struct({
|
|
|
37
37
|
kind: Kind2.pipe(Schema.optional)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service13 extends Context.Service()("@opencode/FileAccess") {
|
|
41
41
|
}
|
|
42
42
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
43
43
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -49,10 +49,10 @@ var invocation = (context) => ({
|
|
|
49
49
|
agent: context.agent,
|
|
50
50
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
51
51
|
});
|
|
52
|
-
var layer = Layer.effect(
|
|
52
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
54
|
const location = yield* Service80;
|
|
55
|
-
const permission = yield*
|
|
55
|
+
const permission = yield* Service55;
|
|
56
56
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
57
57
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
58
58
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service13.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node16 = makeLocationNode({ service: Service13, layer, deps: [FSUtil.node, node84, node58] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service13, resolvePath2, node16, exports_file_access };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-fxgpk5d8.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./snapshot-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./snapshot-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./snapshot-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/app.ts
|
|
6
6
|
var exports_app = {};
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
10
|
+
configured: () => configured6,
|
|
11
11
|
layer: () => layer21,
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
make: () => make20,
|
|
13
|
+
node: () => node55,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make20()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make20(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make17(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var layer21 = (input) => Layer.succeed(Metadata2,
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer21 = (input) => Layer.succeed(Metadata2, make20(input));
|
|
32
|
+
var configured6 = (input) => makeGlobalNode({ service: Metadata2, layer: layer21(input), deps: [] });
|
|
33
|
+
var node55 = configured6();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make20, useragent2, layer21, configured6, node55, exports_app };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service72
|
|
3
|
+
} from "./snapshot-34c0j3ep.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service55
|
|
6
|
+
} from "./snapshot-3f6key9q.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service20
|
|
14
|
+
} from "./snapshot-dzfez6bd.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input12,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin31,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description5,
|
|
27
|
+
name: () => name12
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name12 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description5 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input12 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin31 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service55;
|
|
53
|
+
const forms = yield* Service72;
|
|
54
|
+
const websearch = yield* Service20;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name12,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description5,
|
|
59
|
+
input: Input12,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name12,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name12];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name12, NO_RESULTS2, description5, Input12, Plugin31, exports_websearch };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service62
|
|
3
|
+
} from "./snapshot-9smjc29v.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service30
|
|
6
|
+
} from "./snapshot-hee39r59.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
12
|
var exports_mcp2 = {};
|
|
13
13
|
__export(exports_mcp2, {
|
|
14
14
|
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin35,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin35 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service62;
|
|
28
|
+
const mcp = yield* Service30;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin35, register2, exports_mcp2 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node55
|
|
5
|
+
} from "./snapshot-xx0efrt7.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-h9wp8z5w.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service78,
|
|
12
|
+
node82
|
|
13
|
+
} from "./snapshot-tx9w5tca.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./snapshot-3f6key9q.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-snd1jtws.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Error5
|
|
22
|
+
} from "./snapshot-ansmabqy.js";
|
|
23
23
|
import {
|
|
24
24
|
get5
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./snapshot-54ma36ye.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
27
|
+
Service32,
|
|
28
|
+
node35
|
|
29
|
+
} from "./snapshot-606e7s57.js";
|
|
30
30
|
import {
|
|
31
31
|
make16
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./snapshot-g5w8qwbj.js";
|
|
33
33
|
import {
|
|
34
34
|
toLLMMessages2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./snapshot-znsx74x0.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/session/model-request.ts
|
|
41
41
|
var exports_model_request = {};
|
|
42
42
|
__export(exports_model_request, {
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service31,
|
|
44
44
|
SessionModelRequest: () => exports_model_request,
|
|
45
45
|
baseTranscript: () => baseTranscript2,
|
|
46
46
|
boundImages: () => boundImages2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer12,
|
|
48
|
+
node: () => node34,
|
|
49
49
|
unsupportedParts: () => unsupportedParts2
|
|
50
50
|
});
|
|
51
51
|
import {
|
|
@@ -151,11 +151,11 @@ var boundImages2 = (messages) => {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service31 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
155
155
|
}
|
|
156
|
-
var
|
|
157
|
-
const hooks = yield*
|
|
158
|
-
const transport = yield*
|
|
156
|
+
var layer12 = Layer.effect(Service31, Effect.gen(function* () {
|
|
157
|
+
const hooks = yield* Service78;
|
|
158
|
+
const transport = yield* Service32;
|
|
159
159
|
const app = yield* Metadata2;
|
|
160
160
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
161
161
|
const session = input.session;
|
|
@@ -163,7 +163,7 @@ var layer14 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
163
163
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
164
164
|
const tools = input.tools ?? {
|
|
165
165
|
definitions: [],
|
|
166
|
-
execute: () => new
|
|
166
|
+
execute: () => new Error5({ message: "Tools are not available for this request" })
|
|
167
167
|
};
|
|
168
168
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
169
169
|
const shaped = yield* shape({
|
|
@@ -260,17 +260,17 @@ var layer14 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
260
260
|
};
|
|
261
261
|
});
|
|
262
262
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
263
|
-
return
|
|
263
|
+
return Service31.of({
|
|
264
264
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
265
265
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
266
266
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
267
267
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
268
268
|
});
|
|
269
269
|
}));
|
|
270
|
-
var
|
|
271
|
-
service:
|
|
272
|
-
layer:
|
|
273
|
-
deps: [
|
|
270
|
+
var node34 = makeLocationNode({
|
|
271
|
+
service: Service31,
|
|
272
|
+
layer: layer12,
|
|
273
|
+
deps: [node82, node35, node55]
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
276
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service31, layer12, node34, exports_model_request };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82,
|
|
6
6
|
node86
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-qv8c18b1.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse4,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./snapshot-84txncab.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service70,
|
|
16
|
+
node74
|
|
17
|
+
} from "./snapshot-pevdf72a.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/repository-cache.ts
|
|
23
23
|
var exports_repository_cache = {};
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service51,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node53,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service51 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
106
|
const git = yield* Service82;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service70;
|
|
110
|
+
return Service51.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse4(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse4(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node53 = makeGlobalNode({
|
|
171
|
+
service: Service51,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node, node86, Global.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node86, Global.node, node74]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service51, isError2, validateBranch2, node53, exports_repository_cache };
|