@opencode/core 0.0.0-dev-21289 → 0.0.0-dev-21296
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 +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{model-retry-n6sdcjf7.js → aisdk-native-004eaj6n.js} +43 -43
- package/dist/chunks/{model-retry-8npnpzra.js → aisdk-native-0c1e5scv.js} +3 -3
- package/dist/chunks/{model-retry-m0z9j2xs.js → aisdk-native-0jqv4wmc.js} +37 -37
- package/dist/chunks/{model-retry-m4gqpe3z.js → aisdk-native-0scb3md8.js} +13 -13
- package/dist/chunks/{model-retry-0vbcp93d.js → aisdk-native-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-retry-e3jwh7ys.js → aisdk-native-0wd36ghc.js} +4 -4
- package/dist/chunks/{model-retry-892mrmp0.js → aisdk-native-0xezjjjn.js} +8 -8
- package/dist/chunks/{model-retry-7fccas0j.js → aisdk-native-17ajdbzk.js} +34 -34
- package/dist/chunks/{model-retry-jv6mm5r1.js → aisdk-native-19gt07c1.js} +11 -11
- package/dist/chunks/{model-retry-gxfsy275.js → aisdk-native-1g2gcyj5.js} +1 -1
- package/dist/chunks/{model-retry-bhey597w.js → aisdk-native-1q9mn8hp.js} +23 -23
- package/dist/chunks/{model-retry-ktbcyka7.js → aisdk-native-1th8yvsq.js} +4 -4
- package/dist/chunks/{model-retry-fw7x2wjw.js → aisdk-native-1z82t5n0.js} +6 -6
- package/dist/chunks/{model-retry-1ze9gtzp.js → aisdk-native-1ze9gtzp.js} +4 -4
- package/dist/chunks/{model-retry-zkkxzzm7.js → aisdk-native-2087xn0w.js} +15 -15
- package/dist/chunks/{model-retry-rkmhvsr4.js → aisdk-native-2098emdn.js} +30 -30
- package/dist/chunks/{model-retry-re80xzqk.js → aisdk-native-24vq2c21.js} +35 -35
- package/dist/chunks/{model-retry-fwgra7yh.js → aisdk-native-2e7kk2bz.js} +8 -8
- package/dist/chunks/{model-retry-7dqw4kz8.js → aisdk-native-2k8khapm.js} +5 -5
- package/dist/chunks/{model-retry-xagp7a1s.js → aisdk-native-349kc19m.js} +18 -18
- package/dist/chunks/{model-retry-s3j5qb0t.js → aisdk-native-34anad20.js} +18 -18
- package/dist/chunks/{model-retry-hadpnrkv.js → aisdk-native-37jxr4m7.js} +27 -27
- package/dist/chunks/{model-retry-k6jeefta.js → aisdk-native-3fzs49xt.js} +3 -3
- package/dist/chunks/{model-retry-3hepkmqq.js → aisdk-native-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-retry-3hwn7j4h.js → aisdk-native-3hwn7j4h.js} +2 -2
- package/dist/chunks/{model-retry-r0ena7ce.js → aisdk-native-3qa76a24.js} +25 -25
- package/dist/chunks/{model-retry-73wqhfdm.js → aisdk-native-3qrzxmvj.js} +9 -9
- package/dist/chunks/{model-retry-cv3t9aez.js → aisdk-native-3rg3ay0p.js} +9 -9
- package/dist/chunks/{model-retry-2k0hjz8m.js → aisdk-native-3sc131mt.js} +4 -4
- package/dist/chunks/{model-retry-3smtnn6g.js → aisdk-native-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-retry-3tvqynh2.js → aisdk-native-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-retry-qj8x2vxm.js → aisdk-native-3w4y5t9t.js} +11 -11
- package/dist/chunks/{model-retry-3zsf4n22.js → aisdk-native-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-retry-7sp0jpsz.js → aisdk-native-409scgpf.js} +7 -7
- package/dist/chunks/{model-retry-wn671ba5.js → aisdk-native-40kx92kj.js} +77 -77
- package/dist/chunks/{model-retry-yxx1qbg8.js → aisdk-native-41x0g12r.js} +6 -6
- package/dist/chunks/{model-retry-xjt2m7da.js → aisdk-native-4bf1vt5e.js} +6 -6
- package/dist/chunks/{model-retry-461nxmbv.js → aisdk-native-4ekscj25.js} +5 -5
- package/dist/chunks/{model-retry-t39p8j64.js → aisdk-native-4gr0t1kf.js} +13 -13
- package/dist/chunks/{model-retry-vdetfpsp.js → aisdk-native-4pjp27mg.js} +28 -28
- package/dist/chunks/{model-retry-99wvww9h.js → aisdk-native-53hfdb6m.js} +21 -21
- package/dist/chunks/{model-retry-xe38j9wy.js → aisdk-native-53n3eh82.js} +25 -25
- package/dist/chunks/{model-retry-54ma36ye.js → aisdk-native-54ma36ye.js} +1 -1
- package/dist/chunks/{model-retry-cnn1wj5a.js → aisdk-native-5dv05ep0.js} +26 -26
- package/dist/chunks/{model-retry-gebtr55s.js → aisdk-native-5e15319b.js} +5 -5
- package/dist/chunks/{model-retry-c4zg4w5q.js → aisdk-native-5ghj4hqh.js} +17 -17
- package/dist/chunks/{model-retry-5m9w47nd.js → aisdk-native-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-retry-e3qxr5gk.js → aisdk-native-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-retry-fqqv62af.js → aisdk-native-5vscj5fh.js} +16 -16
- package/dist/chunks/{model-retry-km5jseh3.js → aisdk-native-5zdfhw0y.js} +27 -27
- package/dist/chunks/aisdk-native-60hy51x2.js +257 -0
- package/dist/chunks/{model-retry-a5mx5mz2.js → aisdk-native-65x6c591.js} +2 -2
- package/dist/chunks/{model-retry-ef28kdsf.js → aisdk-native-66jvax92.js} +11 -11
- package/dist/chunks/{model-retry-6827pfxn.js → aisdk-native-6827pfxn.js} +1 -1
- package/dist/chunks/{model-retry-yvvvp4gn.js → aisdk-native-69j91c1q.js} +8 -8
- package/dist/chunks/{model-retry-61pea42y.js → aisdk-native-6ab1jen0.js} +8 -8
- package/dist/chunks/{model-retry-4psrcf1w.js → aisdk-native-6ebgrc3y.js} +4 -4
- package/dist/chunks/{model-retry-1p07q0wb.js → aisdk-native-6pc27hjz.js} +8 -8
- package/dist/chunks/{model-retry-v7z2bvyd.js → aisdk-native-6t4hr8r6.js} +4 -4
- package/dist/chunks/{model-retry-6xb47vfp.js → aisdk-native-6xb47vfp.js} +1 -1
- package/dist/chunks/{model-retry-j8jw8bvb.js → aisdk-native-756c2e5g.js} +21 -21
- package/dist/chunks/{model-retry-775gj3j1.js → aisdk-native-775gj3j1.js} +2 -2
- package/dist/chunks/{model-retry-7bmhse3q.js → aisdk-native-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-retry-vjtn814f.js → aisdk-native-7gw5bh7d.js} +19 -19
- package/dist/chunks/{model-retry-jq37yr04.js → aisdk-native-7karjvyy.js} +9 -9
- package/dist/chunks/{model-retry-b27vhd2z.js → aisdk-native-7sbkp4xb.js} +4 -4
- package/dist/chunks/{model-retry-f1kd18ve.js → aisdk-native-7vt3v0c3.js} +4 -4
- package/dist/chunks/{model-retry-mcgfs8g2.js → aisdk-native-7xhhckav.js} +11 -11
- package/dist/chunks/{model-retry-5ze9zbmh.js → aisdk-native-7xqwmsh4.js} +10 -10
- package/dist/chunks/{model-retry-84txncab.js → aisdk-native-84txncab.js} +1 -1
- package/dist/chunks/{model-retry-3hskxyfj.js → aisdk-native-8b1csnkw.js} +14 -14
- package/dist/chunks/{model-retry-vjh35t9b.js → aisdk-native-8e5ng5z0.js} +16 -16
- package/dist/chunks/{model-retry-fqyqba4e.js → aisdk-native-8esrbvwc.js} +14 -14
- package/dist/chunks/{model-retry-8m6m0r52.js → aisdk-native-8m6m0r52.js} +1 -1
- package/dist/chunks/{model-retry-8mywswrd.js → aisdk-native-8mywswrd.js} +1 -1
- package/dist/chunks/{model-retry-an6q6vkd.js → aisdk-native-8n5bt5nm.js} +23 -23
- package/dist/chunks/{model-retry-t01qgdv4.js → aisdk-native-8wy7662d.js} +17 -17
- package/dist/chunks/{model-retry-02w8hjv9.js → aisdk-native-8x5rkv0h.js} +11 -11
- package/dist/chunks/{model-retry-ydma693n.js → aisdk-native-8yj6gt86.js} +19 -19
- package/dist/chunks/{model-retry-m3vs2jhj.js → aisdk-native-8zzeef0r.js} +13 -13
- package/dist/chunks/{model-retry-ebs8qv75.js → aisdk-native-937m0y5f.js} +10 -10
- package/dist/chunks/{model-retry-fxjva6qe.js → aisdk-native-9487wnr3.js} +3 -3
- package/dist/chunks/{model-retry-3tnvd6qs.js → aisdk-native-95yg8akc.js} +21 -21
- package/dist/chunks/{model-retry-0bw8y30e.js → aisdk-native-96vvhf26.js} +51 -51
- package/dist/chunks/{model-retry-y3qxx51z.js → aisdk-native-9723mvds.js} +12 -12
- package/dist/chunks/{model-retry-3dt4tzwg.js → aisdk-native-9bh5q6pj.js} +2 -2
- package/dist/chunks/aisdk-native-9dv7jab0.js +517 -0
- package/dist/chunks/{model-retry-hc9hnsc9.js → aisdk-native-9ganr053.js} +14 -14
- package/dist/chunks/{model-retry-6xymw6hf.js → aisdk-native-9ham2w87.js} +14 -14
- package/dist/chunks/{model-retry-wcgsvnj5.js → aisdk-native-9jphx3mb.js} +8 -8
- package/dist/chunks/{model-retry-gx4mz6q7.js → aisdk-native-a0dwc44h.js} +51 -51
- package/dist/chunks/{model-retry-7v6vae4w.js → aisdk-native-a20pjse5.js} +3 -3
- package/dist/chunks/{model-retry-9pf7je19.js → aisdk-native-a2vq6s7f.js} +3 -3
- package/dist/chunks/{model-retry-hj389172.js → aisdk-native-a3bsrsd6.js} +1 -1
- package/dist/chunks/{model-retry-h6n0e19c.js → aisdk-native-a50454pt.js} +97 -97
- package/dist/chunks/{model-retry-cbrfz1mf.js → aisdk-native-ab3hvh4n.js} +304 -304
- package/dist/chunks/{model-retry-snxa7hz3.js → aisdk-native-ae2bqj1x.js} +5 -5
- package/dist/chunks/{model-retry-c77dabg0.js → aisdk-native-ahga06gf.js} +13 -13
- package/dist/chunks/{model-retry-27dhaw8v.js → aisdk-native-asjjsc90.js} +48 -48
- package/dist/chunks/{model-retry-a1hr7aq8.js → aisdk-native-avj3yf7v.js} +3 -3
- package/dist/chunks/{model-retry-7jdsj2a9.js → aisdk-native-axe3mf62.js} +3 -3
- package/dist/chunks/{model-retry-mhgn79e1.js → aisdk-native-azmw4fcy.js} +52 -52
- package/dist/chunks/{model-retry-e4m4ah41.js → aisdk-native-b1yzqvdj.js} +31 -31
- package/dist/chunks/{model-retry-7etyqpkv.js → aisdk-native-bc1xqbpd.js} +7 -7
- package/dist/chunks/{model-retry-b2zbab51.js → aisdk-native-brek2qp6.js} +9 -9
- package/dist/chunks/{model-retry-bzeyqsqd.js → aisdk-native-bzeyqsqd.js} +1 -1
- package/dist/chunks/{model-retry-c1fqxshp.js → aisdk-native-c1fqxshp.js} +3 -3
- package/dist/chunks/{model-retry-7pg7e456.js → aisdk-native-c5ggqzvz.js} +12 -12
- package/dist/chunks/{model-retry-ft3hqk2c.js → aisdk-native-c765mh8b.js} +9 -9
- package/dist/chunks/{model-retry-v91zw3m9.js → aisdk-native-cvjsq3wy.js} +14 -14
- package/dist/chunks/{model-retry-kzqw00rs.js → aisdk-native-dgm2qr8a.js} +16 -16
- package/dist/chunks/{model-retry-b724djfs.js → aisdk-native-dm07sh71.js} +18 -18
- package/dist/chunks/{model-retry-sz6fjq3m.js → aisdk-native-dpqarmsa.js} +5 -5
- package/dist/chunks/{model-retry-25yddszk.js → aisdk-native-dq407baf.js} +6 -6
- package/dist/chunks/{model-retry-qv0gwb50.js → aisdk-native-dqs3mz6s.js} +26 -26
- package/dist/chunks/{model-retry-57b9ws8p.js → aisdk-native-drwq78ky.js} +5 -5
- package/dist/chunks/{model-retry-dxqvx2bd.js → aisdk-native-dted5cxw.js} +25 -25
- package/dist/chunks/{model-retry-v15gsnts.js → aisdk-native-dtkq61nx.js} +50 -50
- package/dist/chunks/{model-retry-q7gr6qfd.js → aisdk-native-dw4a8ax5.js} +22 -22
- package/dist/chunks/{model-retry-frsszzbj.js → aisdk-native-dwc12cgc.js} +14 -14
- package/dist/chunks/{model-retry-xhhxc1wd.js → aisdk-native-dyvax4f1.js} +3 -3
- package/dist/chunks/{model-retry-wj5d0sg5.js → aisdk-native-e7qbyzsc.js} +23 -23
- package/dist/chunks/{model-retry-nma959mg.js → aisdk-native-e80seqcp.js} +3 -3
- package/dist/chunks/{model-retry-eej6y6fw.js → aisdk-native-eej6y6fw.js} +2 -2
- package/dist/chunks/{model-retry-ef5x83kb.js → aisdk-native-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-retry-2g47h04h.js → aisdk-native-eh24tkg1.js} +29 -29
- package/dist/chunks/{model-retry-wksg1me0.js → aisdk-native-ehb6zgzn.js} +22 -22
- package/dist/chunks/{model-retry-yg89wztc.js → aisdk-native-es0z8ca2.js} +11 -11
- package/dist/chunks/{model-retry-gchapswt.js → aisdk-native-etf771kz.js} +8 -8
- package/dist/chunks/{model-retry-0wcqedam.js → aisdk-native-evvzn8t1.js} +36 -36
- package/dist/chunks/{model-retry-heq5p5e1.js → aisdk-native-f5pe91sd.js} +4 -4
- package/dist/chunks/{model-retry-197b73fz.js → aisdk-native-f74fvsr6.js} +44 -44
- package/dist/chunks/{model-retry-3htr7rzc.js → aisdk-native-fc146j8e.js} +23 -23
- package/dist/chunks/{model-retry-fcy631f0.js → aisdk-native-fcy631f0.js} +1 -1
- package/dist/chunks/{model-retry-bxqk5pf5.js → aisdk-native-g686f6pq.js} +9 -9
- package/dist/chunks/{model-retry-kvpdra3r.js → aisdk-native-gb6t5evv.js} +25 -25
- package/dist/chunks/{model-retry-dxt0ht33.js → aisdk-native-gcykmc2m.js} +20 -20
- package/dist/chunks/{model-retry-gd4qta3r.js → aisdk-native-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-retry-qq7kxqk9.js → aisdk-native-gfa47pmv.js} +50 -50
- package/dist/chunks/{model-retry-qne3fa44.js → aisdk-native-gj71zhbs.js} +5 -5
- package/dist/chunks/{model-retry-9amv0j2y.js → aisdk-native-gqsra0s5.js} +9 -9
- package/dist/chunks/{model-retry-h6vf3j39.js → aisdk-native-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-retry-z2qvtray.js → aisdk-native-haw017sp.js} +8 -8
- package/dist/chunks/{model-retry-b4ytdsdb.js → aisdk-native-hcv80w8f.js} +11 -11
- package/dist/chunks/{model-retry-93x8jgcz.js → aisdk-native-hetzgjah.js} +36 -36
- package/dist/chunks/{model-retry-pm9cq2zg.js → aisdk-native-hewty47s.js} +35 -35
- package/dist/chunks/{model-retry-hgz4x7wa.js → aisdk-native-hgz4x7wa.js} +1 -1
- package/dist/chunks/{model-retry-s56kzkqb.js → aisdk-native-hh4seyf6.js} +24 -24
- package/dist/chunks/{model-retry-eaz4frst.js → aisdk-native-hmpfctkq.js} +8 -8
- package/dist/chunks/{model-retry-pfzgmgqq.js → aisdk-native-hmvdm1nr.js} +30 -30
- package/dist/chunks/{model-retry-prx1gbh0.js → aisdk-native-hphtwhrw.js} +5 -5
- package/dist/chunks/{model-retry-0cbhyycw.js → aisdk-native-hyhyyj61.js} +17 -17
- package/dist/chunks/{model-retry-5fxpne0w.js → aisdk-native-j0ay6bhg.js} +2 -2
- package/dist/chunks/{model-retry-1th0nyd1.js → aisdk-native-j7tanhw5.js} +23 -23
- package/dist/chunks/{model-retry-4dwf0nmp.js → aisdk-native-j8wfa5vk.js} +13 -13
- package/dist/chunks/{model-retry-bkb01ez0.js → aisdk-native-jgp073vv.js} +45 -45
- package/dist/chunks/{model-retry-k2gfd0vj.js → aisdk-native-jh8env4y.js} +13 -13
- package/dist/chunks/{model-retry-9p4ckb4p.js → aisdk-native-jjd2yye4.js} +6 -6
- package/dist/chunks/{model-retry-8yaq5rsp.js → aisdk-native-jzy793vj.js} +32 -32
- package/dist/chunks/{model-retry-paykg90t.js → aisdk-native-k13rpznb.js} +34 -34
- package/dist/chunks/{model-retry-3pw8htx8.js → aisdk-native-kdbcdm2p.js} +1 -1
- package/dist/chunks/{model-retry-khmqacep.js → aisdk-native-khmqacep.js} +1 -1
- package/dist/chunks/{model-retry-kwb1v3vj.js → aisdk-native-kwb1v3vj.js} +1 -1
- package/dist/chunks/{model-retry-m9w0rfyh.js → aisdk-native-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-retry-maspj1v3.js → aisdk-native-maspj1v3.js} +1 -1
- package/dist/chunks/{model-retry-ffptefkn.js → aisdk-native-meeeyptt.js} +50 -50
- package/dist/chunks/{model-retry-m6pj9s11.js → aisdk-native-mey7zhp8.js} +5 -5
- package/dist/chunks/{model-retry-wxrr62q2.js → aisdk-native-mg9wc1ev.js} +11 -11
- package/dist/chunks/{model-retry-gysb7t93.js → aisdk-native-mmb750pd.js} +91 -91
- package/dist/chunks/{model-retry-315ef24x.js → aisdk-native-mt906k1j.js} +8 -8
- package/dist/chunks/{model-retry-cccr210v.js → aisdk-native-mwn18k12.js} +35 -35
- package/dist/chunks/{model-retry-ftfbzs9m.js → aisdk-native-n1p81jna.js} +19 -19
- package/dist/chunks/{model-retry-scbxxt86.js → aisdk-native-nc721mq8.js} +21 -21
- package/dist/chunks/{model-retry-120g7207.js → aisdk-native-nckm1509.js} +2 -2
- package/dist/chunks/{model-retry-jcjcjx0t.js → aisdk-native-nesm380x.js} +12 -12
- package/dist/chunks/{model-retry-dvwsp6mb.js → aisdk-native-nkfb0x16.js} +2 -2
- package/dist/chunks/{model-retry-q8wdfhzq.js → aisdk-native-nx9gpye3.js} +12 -12
- package/dist/chunks/{model-retry-nz56sr1f.js → aisdk-native-nz56sr1f.js} +2 -2
- package/dist/chunks/{model-retry-2xr9pws4.js → aisdk-native-p139kb1p.js} +13 -13
- package/dist/chunks/{model-retry-f82ss59t.js → aisdk-native-p1rw895a.js} +3 -3
- package/dist/chunks/{model-retry-9hn6k4tm.js → aisdk-native-p42hj8p8.js} +8 -8
- package/dist/chunks/{model-retry-grv8yzns.js → aisdk-native-p5dx8j25.js} +36 -36
- package/dist/chunks/{model-retry-sh9986p4.js → aisdk-native-p7kjzj47.js} +16 -16
- package/dist/chunks/{model-retry-s0s52qkt.js → aisdk-native-pd5d6pm6.js} +15 -15
- package/dist/chunks/{model-retry-tebr7jg9.js → aisdk-native-pfavk0gx.js} +12 -12
- package/dist/chunks/{model-retry-fc3q91nw.js → aisdk-native-pgeyzwhg.js} +42 -42
- package/dist/chunks/{model-retry-pjvnvgmy.js → aisdk-native-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-retry-6xsr5dks.js → aisdk-native-pk4wa1v7.js} +33 -33
- package/dist/chunks/{model-retry-ekp1j1b5.js → aisdk-native-pk6da7aj.js} +18 -18
- package/dist/chunks/{model-retry-pknna89w.js → aisdk-native-pknna89w.js} +1 -1
- package/dist/chunks/{model-retry-h896pcm5.js → aisdk-native-prmgem5b.js} +6 -6
- package/dist/chunks/{model-retry-v8chhsy3.js → aisdk-native-py3bbhv5.js} +11 -11
- package/dist/chunks/{model-retry-tz35mf6x.js → aisdk-native-pz0ytm9k.js} +8 -8
- package/dist/chunks/{model-retry-v7024ht3.js → aisdk-native-q5b8y3xv.js} +14 -14
- package/dist/chunks/{model-retry-zqma82cw.js → aisdk-native-q8ejgrh7.js} +11 -11
- package/dist/chunks/{model-retry-nentvqe9.js → aisdk-native-qat70s67.js} +24 -24
- package/dist/chunks/{model-retry-5kzpfxft.js → aisdk-native-qcan06tx.js} +21 -21
- package/dist/chunks/{model-retry-qt88z79s.js → aisdk-native-qe206vge.js} +7 -7
- package/dist/chunks/{model-retry-bhk1rbmp.js → aisdk-native-qmj4b9ja.js} +32 -32
- package/dist/chunks/{model-retry-7kw0mv8e.js → aisdk-native-qna8jnyk.js} +29 -29
- package/dist/chunks/{model-retry-qnc92qwc.js → aisdk-native-qnc92qwc.js} +1 -1
- package/dist/chunks/{model-retry-5c6h6vqc.js → aisdk-native-qq2qmwe2.js} +9 -9
- package/dist/chunks/{model-retry-0svm4j11.js → aisdk-native-qqmhr94f.js} +15 -15
- package/dist/chunks/{model-retry-qsdy395h.js → aisdk-native-qsdy395h.js} +1 -1
- package/dist/chunks/{model-retry-6vmd7p6h.js → aisdk-native-r7epa8w9.js} +10 -10
- package/dist/chunks/{model-retry-rv11vn85.js → aisdk-native-r939pgrs.js} +11 -11
- package/dist/chunks/{model-retry-gcsxsjs6.js → aisdk-native-rbddshgb.js} +18 -18
- package/dist/chunks/{model-retry-rdw6cm16.js → aisdk-native-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-retry-5yx9a2ww.js → aisdk-native-rdx6zs89.js} +8 -8
- package/dist/chunks/{model-retry-rert0e01.js → aisdk-native-rert0e01.js} +2 -2
- package/dist/chunks/{model-retry-rhjbct0v.js → aisdk-native-rhjbct0v.js} +1 -1
- package/dist/chunks/{model-retry-1acjjqhc.js → aisdk-native-rhraev7y.js} +4 -4
- package/dist/chunks/{model-retry-rj3eygr5.js → aisdk-native-rj3eygr5.js} +2 -2
- package/dist/chunks/{model-retry-embw8kgh.js → aisdk-native-rwm5vee1.js} +4 -4
- package/dist/chunks/{model-retry-rf6pfzwp.js → aisdk-native-s6btdq5g.js} +1 -1
- package/dist/chunks/{model-retry-mq044fh7.js → aisdk-native-s6cpq0wz.js} +13 -13
- package/dist/chunks/{model-retry-rr55ymyq.js → aisdk-native-s6qcaefa.js} +29 -29
- package/dist/chunks/{model-retry-sa8ekw3f.js → aisdk-native-sa8ekw3f.js} +2 -2
- package/dist/chunks/{model-retry-8h4b0cs1.js → aisdk-native-skpgndjp.js} +24 -24
- package/dist/chunks/{model-retry-wn3g4ypj.js → aisdk-native-svj5pvzg.js} +28 -28
- package/dist/chunks/{model-retry-syv4x271.js → aisdk-native-syv4x271.js} +1 -1
- package/dist/chunks/{model-retry-dkpq1bsc.js → aisdk-native-t2wwn0ay.js} +19 -19
- package/dist/chunks/{model-retry-4vk656gf.js → aisdk-native-t3dkae6y.js} +9 -9
- package/dist/chunks/{model-retry-tazgh4e4.js → aisdk-native-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-retry-tcezcvh9.js → aisdk-native-tcezcvh9.js} +1 -1
- package/dist/chunks/{model-retry-tdstcens.js → aisdk-native-tdstcens.js} +1 -1
- package/dist/chunks/{model-retry-zdqemt2t.js → aisdk-native-tk7tezdh.js} +15 -15
- package/dist/chunks/{model-retry-tm0kqsz3.js → aisdk-native-tm0kqsz3.js} +1 -1
- package/dist/chunks/{model-retry-1trs7s7z.js → aisdk-native-tprq4g7a.js} +16 -16
- package/dist/chunks/{model-retry-bx29z6jj.js → aisdk-native-tqngjy9q.js} +20 -20
- package/dist/chunks/{model-retry-7cx595n2.js → aisdk-native-txm3e8qz.js} +9 -9
- package/dist/chunks/{model-retry-tyytaxap.js → aisdk-native-tyytaxap.js} +1 -1
- package/dist/chunks/{model-retry-tx0gtb9m.js → aisdk-native-v210v162.js} +9 -9
- package/dist/chunks/{model-retry-v7p4zvkq.js → aisdk-native-v7p4zvkq.js} +2 -2
- package/dist/chunks/{model-retry-yxwmwsaj.js → aisdk-native-v9e4g1jz.js} +19 -19
- package/dist/chunks/{model-retry-eefqbebw.js → aisdk-native-v9zzqvcp.js} +24 -24
- package/dist/chunks/{model-retry-veqvce7d.js → aisdk-native-veqvce7d.js} +1 -1
- package/dist/chunks/aisdk-native-vnkjks7b.js +18 -0
- package/dist/chunks/aisdk-native-vr5m31t5.js +26 -0
- package/dist/chunks/{model-retry-fx6hsjqx.js → aisdk-native-vvhh43p5.js} +22 -22
- package/dist/chunks/{model-retry-qjch4pc3.js → aisdk-native-vzkxfwdq.js} +15 -15
- package/dist/chunks/{model-retry-vzs5sf6e.js → aisdk-native-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-retry-z3ammv4w.js → aisdk-native-w1wn6h8h.js} +17 -17
- package/dist/chunks/{model-retry-kjdm35cs.js → aisdk-native-w39jehkq.js} +5 -5
- package/dist/chunks/{model-retry-w3wsvvr9.js → aisdk-native-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-retry-jcen6etv.js → aisdk-native-w5rv5vav.js} +33 -33
- package/dist/chunks/{model-retry-13xvemqm.js → aisdk-native-w62gg202.js} +17 -17
- package/dist/chunks/{model-retry-wd87259q.js → aisdk-native-wd87259q.js} +1 -1
- package/dist/chunks/{model-retry-npr0wz9t.js → aisdk-native-wfpqd2wx.js} +6 -6
- package/dist/chunks/{model-retry-w3x15rym.js → aisdk-native-wh5h9wdx.js} +24 -24
- package/dist/chunks/{model-retry-bjx1sjef.js → aisdk-native-wjr9rjd7.js} +6 -6
- package/dist/chunks/{model-retry-fdms3n6w.js → aisdk-native-wk5z6jzv.js} +9 -9
- package/dist/chunks/{model-retry-tz70ab5q.js → aisdk-native-wks1wfwf.js} +30 -30
- package/dist/chunks/{model-retry-5mrmcz26.js → aisdk-native-x68jtk21.js} +37 -37
- package/dist/chunks/{model-retry-n8v5cbt0.js → aisdk-native-x8ghw6e7.js} +20 -20
- package/dist/chunks/{model-retry-tcpq0y9r.js → aisdk-native-xfjx2aft.js} +13 -13
- package/dist/chunks/{model-retry-87pge11c.js → aisdk-native-xgc9sej2.js} +61 -61
- package/dist/chunks/{model-retry-wp3yb7k0.js → aisdk-native-xm0e89ad.js} +11 -11
- package/dist/chunks/{model-retry-4ndyr8vy.js → aisdk-native-xsnfp990.js} +13 -13
- package/dist/chunks/{model-retry-ry6831an.js → aisdk-native-xvedb59m.js} +9 -9
- package/dist/chunks/{model-retry-f5rb7yq3.js → aisdk-native-xx1gnxvy.js} +32 -32
- package/dist/chunks/{model-retry-g36mkr7n.js → aisdk-native-xx6p3jw0.js} +21 -21
- package/dist/chunks/{model-retry-y1fvbwt7.js → aisdk-native-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-retry-3y377wv9.js → aisdk-native-y6bex35g.js} +4 -4
- package/dist/chunks/{model-retry-vkfdnwpx.js → aisdk-native-y6mhz57t.js} +4 -4
- package/dist/chunks/{model-retry-y71avatq.js → aisdk-native-y71avatq.js} +1 -1
- package/dist/chunks/{model-retry-qwemz3ha.js → aisdk-native-ya06qa3k.js} +21 -21
- package/dist/chunks/{model-retry-c3z27sd6.js → aisdk-native-ynanx4br.js} +9 -9
- package/dist/chunks/{model-retry-cm7k2cvd.js → aisdk-native-yq3mx877.js} +11 -11
- package/dist/chunks/{model-retry-zsg3hbgq.js → aisdk-native-ysetzwh9.js} +3 -3
- package/dist/chunks/{model-retry-pq9chy9c.js → aisdk-native-yvrjrdnb.js} +10 -10
- package/dist/chunks/{model-retry-1pr61bwh.js → aisdk-native-yx2dkg0t.js} +18 -18
- package/dist/chunks/{model-retry-z0bkrqjs.js → aisdk-native-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-retry-67zw56js.js → aisdk-native-z0tj0v41.js} +32 -32
- package/dist/chunks/{model-retry-z18fegx4.js → aisdk-native-z18fegx4.js} +1 -1
- package/dist/chunks/{model-retry-m9c6r0nn.js → aisdk-native-zfjehv6x.js} +13 -13
- package/dist/chunks/{model-retry-4n984778.js → aisdk-native-zgftg0pe.js} +32 -32
- package/dist/chunks/{model-retry-enbzs98c.js → aisdk-native-zqz7cba6.js} +15 -15
- package/dist/chunks/{model-retry-zr2ceqn5.js → aisdk-native-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-retry-pp4zh5st.js → aisdk-native-zssq29w7.js} +168 -168
- package/dist/chunks/{model-retry-zxq2ej10.js → aisdk-native-zxq2ej10.js} +1 -1
- 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 +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +114 -114
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +115 -115
- 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 +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +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 +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +98 -98
- package/dist/model-retry.js +1 -1
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- 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 +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +123 -123
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- 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 +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +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 +217 -217
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -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 +218 -218
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- 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 +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +95 -95
- 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 +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +203 -203
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +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 +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/model-retry-374yendz.js +0 -26
- package/dist/chunks/model-retry-9yd845wg.js +0 -517
- package/dist/chunks/model-retry-9zdhvgqs.js +0 -18
- package/dist/chunks/model-retry-zw8e9rvj.js +0 -257
- /package/dist/chunks/{model-retry-0qkdqm5v.js → aisdk-native-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-retry-0zkw76rk.js → aisdk-native-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-retry-17cy0kzp.js → aisdk-native-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-retry-1cnp2v09.js → aisdk-native-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-retry-1kg9ymc8.js → aisdk-native-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-retry-24dcb14g.js → aisdk-native-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-retry-2710q6r3.js → aisdk-native-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-retry-2axfhc9x.js → aisdk-native-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-retry-2bv980vf.js → aisdk-native-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-retry-2c3vjs8z.js → aisdk-native-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-retry-359p4xyc.js → aisdk-native-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-retry-3asan66x.js → aisdk-native-3asan66x.js} +0 -0
- /package/dist/chunks/{model-retry-3t0ybcrp.js → aisdk-native-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{model-retry-3v8g72cx.js → aisdk-native-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-retry-3wcehsnq.js → aisdk-native-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-retry-43n2bw4t.js → aisdk-native-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-retry-4knz6hnm.js → aisdk-native-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-retry-4vcrnpx2.js → aisdk-native-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-retry-4y7fprxs.js → aisdk-native-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-retry-53557ph1.js → aisdk-native-53557ph1.js} +0 -0
- /package/dist/chunks/{model-retry-550bvhaj.js → aisdk-native-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-retry-6prwharc.js → aisdk-native-6prwharc.js} +0 -0
- /package/dist/chunks/{model-retry-6q2bdcd1.js → aisdk-native-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-retry-7akdwqpd.js → aisdk-native-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-retry-7m9af43g.js → aisdk-native-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-retry-822emrt2.js → aisdk-native-822emrt2.js} +0 -0
- /package/dist/chunks/{model-retry-84wd9syh.js → aisdk-native-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-retry-88xbtdfr.js → aisdk-native-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-retry-8n3pysct.js → aisdk-native-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-retry-8wj87zfr.js → aisdk-native-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-retry-9a4afbnw.js → aisdk-native-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-retry-9rqn6x4v.js → aisdk-native-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-retry-a6k6eb26.js → aisdk-native-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-retry-af5trqkr.js → aisdk-native-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-retry-afrmfg78.js → aisdk-native-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-retry-aqzs7mqg.js → aisdk-native-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-retry-atq7p7m5.js → aisdk-native-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-retry-bkyjaxrp.js → aisdk-native-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-retry-bmr6ed5q.js → aisdk-native-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-retry-cf4snx6d.js → aisdk-native-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-retry-cvy3z8tj.js → aisdk-native-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-retry-d9fn303g.js → aisdk-native-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-retry-d9jj8t3e.js → aisdk-native-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-retry-dajrwvna.js → aisdk-native-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-retry-dap0rakb.js → aisdk-native-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-retry-df08tz66.js → aisdk-native-df08tz66.js} +0 -0
- /package/dist/chunks/{model-retry-dy18nga0.js → aisdk-native-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-retry-e5kj55wp.js → aisdk-native-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-retry-e73j6tqm.js → aisdk-native-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-retry-ec1grn59.js → aisdk-native-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-retry-eh3zwz77.js → aisdk-native-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-retry-emrn6kk6.js → aisdk-native-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-retry-f0mxakyp.js → aisdk-native-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-retry-f6n9ztr4.js → aisdk-native-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-retry-faypxj3z.js → aisdk-native-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-retry-fd410y7t.js → aisdk-native-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-retry-g4wezp1m.js → aisdk-native-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-retry-g86h250q.js → aisdk-native-g86h250q.js} +0 -0
- /package/dist/chunks/{model-retry-gebd4c9n.js → aisdk-native-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-retry-gftt206x.js → aisdk-native-gftt206x.js} +0 -0
- /package/dist/chunks/{model-retry-hcxmzztb.js → aisdk-native-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-retry-hk9envan.js → aisdk-native-hk9envan.js} +0 -0
- /package/dist/chunks/{model-retry-j2ntwpah.js → aisdk-native-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-retry-j5zkgpj8.js → aisdk-native-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-retry-jjkms2e6.js → aisdk-native-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-retry-jr7sbwjy.js → aisdk-native-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-retry-jwfs4k6c.js → aisdk-native-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-retry-jze0r7bz.js → aisdk-native-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-retry-jzg6c2d5.js → aisdk-native-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-retry-m18g726c.js → aisdk-native-m18g726c.js} +0 -0
- /package/dist/chunks/{model-retry-mp448xyj.js → aisdk-native-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-retry-msx8hqn2.js → aisdk-native-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-retry-n05xt0ee.js → aisdk-native-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-retry-n3j8tn72.js → aisdk-native-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-retry-njntx4h6.js → aisdk-native-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-retry-pkyv6v7h.js → aisdk-native-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{model-retry-pyv0edze.js → aisdk-native-pyv0edze.js} +0 -0
- /package/dist/chunks/{model-retry-q3sfg36h.js → aisdk-native-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-retry-q74kybfr.js → aisdk-native-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-retry-qaymkmh1.js → aisdk-native-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-retry-qb87gjwd.js → aisdk-native-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-retry-qfa1cgps.js → aisdk-native-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-retry-qg3g05ea.js → aisdk-native-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-retry-qrg20bc0.js → aisdk-native-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-retry-rcb2kzg1.js → aisdk-native-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-retry-sdp7kfr6.js → aisdk-native-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-retry-ssg3fenm.js → aisdk-native-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-retry-ve7vex1e.js → aisdk-native-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-retry-w803qqfp.js → aisdk-native-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-retry-wc3fc9cn.js → aisdk-native-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-retry-wer8tq1h.js → aisdk-native-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-retry-wjj7prxr.js → aisdk-native-wjj7prxr.js} +0 -0
- /package/dist/chunks/{model-retry-wtztk69x.js → aisdk-native-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-retry-x0ckcb58.js → aisdk-native-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-retry-x61499pn.js → aisdk-native-x61499pn.js} +0 -0
- /package/dist/chunks/{model-retry-y44na4kk.js → aisdk-native-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-retry-y8f7s663.js → aisdk-native-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-retry-ygaqb7jw.js → aisdk-native-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-retry-ym463w8f.js → aisdk-native-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-retry-z5v4ffb3.js → aisdk-native-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-retry-z9919s4g.js → aisdk-native-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node40
|
|
5
|
+
} from "./aisdk-native-7xhhckav.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service85,
|
|
8
|
+
node89
|
|
9
|
+
} from "./aisdk-native-5vscj5fh.js";
|
|
10
10
|
import {
|
|
11
|
-
native2,
|
|
12
11
|
ID13,
|
|
13
|
-
aisdk2
|
|
14
|
-
|
|
12
|
+
aisdk2,
|
|
13
|
+
native2
|
|
14
|
+
} from "./aisdk-native-ab3hvh4n.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID11,
|
|
17
17
|
Family2,
|
|
18
18
|
compatibility2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-native-s6qcaefa.js";
|
|
20
20
|
import {
|
|
21
21
|
resolve2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./aisdk-native-a2vq6s7f.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service74,
|
|
25
|
+
node78
|
|
26
|
+
} from "./aisdk-native-4gr0t1kf.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/models-dev.ts
|
|
32
32
|
var exports_models_dev = {};
|
|
@@ -34,12 +34,12 @@ __export(exports_models_dev, {
|
|
|
34
34
|
CatalogModelStatus: () => CatalogModelStatus2,
|
|
35
35
|
Event: () => Event5,
|
|
36
36
|
ModelsDev: () => exports_models_dev,
|
|
37
|
-
Options: () =>
|
|
38
|
-
Service: () =>
|
|
37
|
+
Options: () => Options4,
|
|
38
|
+
Service: () => Service29,
|
|
39
39
|
bodyDigest: () => bodyDigest2,
|
|
40
|
-
configured: () =>
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
40
|
+
configured: () => configured4,
|
|
41
|
+
layer: () => layer15,
|
|
42
|
+
node: () => node32
|
|
43
43
|
});
|
|
44
44
|
import { Cause, Context, Duration, Effect, Layer, Option, Schedule, Schema, Semaphore } from "effect";
|
|
45
45
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
@@ -79,12 +79,12 @@ function normalize(input) {
|
|
|
79
79
|
const models = [];
|
|
80
80
|
for (const model of Object.values(item.models)) {
|
|
81
81
|
const baseCost = cost(model.cost);
|
|
82
|
-
const id =
|
|
82
|
+
const id = ID11.make(model.id);
|
|
83
83
|
const base = modelInfo(item, id, model, { cost: baseCost });
|
|
84
84
|
const variants = resolve2({ ...base, package: nativePackage(item, model) }, supports(model));
|
|
85
85
|
models.push({ ...base, variants });
|
|
86
86
|
for (const [mode, options] of Object.entries(model.experimental?.modes ?? {})) {
|
|
87
|
-
const modeID =
|
|
87
|
+
const modeID = ID11.make(`${model.id}-${mode}`);
|
|
88
88
|
models.push(modelInfo(item, modeID, model, {
|
|
89
89
|
name: modeName(model, mode),
|
|
90
90
|
cost: mergeCost(baseCost, options.cost),
|
|
@@ -166,7 +166,7 @@ function modelInfo(provider, id, model, input = {}) {
|
|
|
166
166
|
};
|
|
167
167
|
return {
|
|
168
168
|
id,
|
|
169
|
-
modelID:
|
|
169
|
+
modelID: ID11.make(model.id),
|
|
170
170
|
providerID,
|
|
171
171
|
name: input.name ?? model.name,
|
|
172
172
|
compatibility: compatibility2(model.interleaved),
|
|
@@ -193,14 +193,14 @@ function modelInfo(provider, id, model, input = {}) {
|
|
|
193
193
|
body: input.request?.body ? { ...input.request.body } : undefined
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
var
|
|
196
|
+
var Options4 = Schema.Struct({
|
|
197
197
|
url: Schema.optional(Schema.String),
|
|
198
198
|
file: Schema.optional(Schema.String),
|
|
199
199
|
fetch: Schema.optional(Schema.Boolean),
|
|
200
200
|
snapshot: Schema.optional(Schema.Boolean)
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
-
class
|
|
203
|
+
class Service29 extends Context.Service()("@opencode/ModelsDev") {
|
|
204
204
|
}
|
|
205
205
|
var CatalogJson = Schema.fromJsonString(Schema.Record(Schema.String, Schema.Unknown));
|
|
206
206
|
var decodeCatalog = (text) => Schema.decodeUnknownEffect(CatalogJson)(text).pipe(Effect.map((catalog) => catalog));
|
|
@@ -223,11 +223,11 @@ function cacheKey(source) {
|
|
|
223
223
|
function bodyDigest2(text) {
|
|
224
224
|
return Hash.sha256(text);
|
|
225
225
|
}
|
|
226
|
-
var
|
|
226
|
+
var layer15 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
227
227
|
const fs = yield* FSUtil.Service;
|
|
228
|
-
const bus = yield*
|
|
228
|
+
const bus = yield* Service85;
|
|
229
229
|
const app = yield* Metadata2;
|
|
230
|
-
const kv = yield*
|
|
230
|
+
const kv = yield* Service74;
|
|
231
231
|
const http = HttpClient.filterStatusOk((yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
232
232
|
retryOn: "errors-and-responses",
|
|
233
233
|
times: 2,
|
|
@@ -307,15 +307,15 @@ var layer10 = (options) => Layer.effect(Service21, Effect.gen(function* () {
|
|
|
307
307
|
if (fetch && !process.argv.includes("--get-yargs-completions")) {
|
|
308
308
|
yield* Effect.forkScoped(refresh().pipe(Effect.repeat(Schedule.spaced(ttl)), Effect.ignore));
|
|
309
309
|
}
|
|
310
|
-
return
|
|
310
|
+
return Service29.of({ get, refresh });
|
|
311
311
|
}));
|
|
312
|
-
function
|
|
312
|
+
function configured4(options) {
|
|
313
313
|
return makeGlobalNode({
|
|
314
|
-
service:
|
|
315
|
-
layer:
|
|
316
|
-
deps: [FSUtil.node,
|
|
314
|
+
service: Service29,
|
|
315
|
+
layer: layer15(options),
|
|
316
|
+
deps: [FSUtil.node, node89, node40, node78, httpClient]
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
var
|
|
319
|
+
var node32 = configured4();
|
|
320
320
|
|
|
321
|
-
export { CatalogModelStatus2,
|
|
321
|
+
export { CatalogModelStatus2, Options4, Service29, bodyDigest2, layer15, configured4, node32, exports_models_dev, Event5 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service30
|
|
3
|
+
} from "./aisdk-native-3qa76a24.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service64
|
|
6
|
+
} from "./aisdk-native-prmgem5b.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-vnkjks7b.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
22
|
+
const instances = yield* Service64;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service30), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options8,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options8 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options8, Spec2, exports_plugin3 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-txm3e8qz.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info11
|
|
9
|
+
} from "./aisdk-native-hcv80w8f.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info8
|
|
12
|
+
} from "./aisdk-native-7sbkp4xb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info9
|
|
15
|
+
} from "./aisdk-native-w39jehkq.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-native-2k8khapm.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info10
|
|
21
|
+
} from "./aisdk-native-gj71zhbs.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./aisdk-native-7vt3v0c3.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -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, Info8, ["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, Info11, ["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, Info11, ["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(Info9, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -430,7 +430,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
430
430
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
431
431
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
432
432
|
return [];
|
|
433
|
-
const provider = decodeValue(
|
|
433
|
+
const provider = decodeValue(Info10, raw, path, diagnostics);
|
|
434
434
|
if (provider === undefined)
|
|
435
435
|
return [];
|
|
436
436
|
const destination = providerID2(name);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-azmw4fcy.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./aisdk-native-9ham2w87.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service65,
|
|
13
|
+
node69
|
|
14
|
+
} from "./aisdk-native-meeeyptt.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-native-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: () => Service35,
|
|
26
|
+
node: () => node38,
|
|
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 Service35 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(Service35, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
|
-
const location = yield*
|
|
55
|
-
const permission = yield*
|
|
54
|
+
const location = yield* Service79;
|
|
55
|
+
const permission = yield* Service65;
|
|
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(Service27, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service35.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node38 = makeLocationNode({ service: Service35, layer, deps: [FSUtil.node, node83, node69] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service35, resolvePath2, node38, exports_file_access };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service79
|
|
6
|
+
} from "./aisdk-native-9ham2w87.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service35
|
|
9
|
+
} from "./aisdk-native-34anad20.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service11
|
|
12
|
+
} from "./aisdk-native-vvhh43p5.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-hgz4x7wa.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service12
|
|
27
|
+
} from "./aisdk-native-qqmhr94f.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input10,
|
|
36
|
+
Plugin: () => Plugin45,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name10,
|
|
39
|
+
toModelContent: () => toModelContent4
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name10 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input10 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin45 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service12;
|
|
62
|
+
const access = yield* Service35;
|
|
63
|
+
const sessionInstructions = yield* Service11;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service79;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name10,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input10,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -113,7 +113,7 @@ var Plugin40 = {
|
|
|
113
113
|
return { output: result.content, path: result.path };
|
|
114
114
|
}).pipe(Effect.map((result) => ({
|
|
115
115
|
output: result.output,
|
|
116
|
-
content:
|
|
116
|
+
content: toModelContent4(result.path, input.offset, result.output),
|
|
117
117
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
118
118
|
})), Effect.mapError((error) => {
|
|
119
119
|
if (error instanceof ToolFailure)
|
|
@@ -146,7 +146,7 @@ ${suggestions.join(`
|
|
|
146
146
|
});
|
|
147
147
|
})
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var toModelContent4 = (path, offset, output) => {
|
|
150
150
|
if (output.type === "file" && output.encoding === "base64")
|
|
151
151
|
return [
|
|
152
152
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -182,4 +182,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
182
182
|
`);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
export {
|
|
185
|
+
export { name10, Input10, Plugin45, toModelContent4, exports_read };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-qe206vge.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-kdbcdm2p.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-native-hgz4x7wa.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/local.ts
|
|
11
11
|
var exports_local = {};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./aisdk-native-5vscj5fh.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-native-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
13
|
var exports_command4 = {};
|
|
14
14
|
__export(exports_command4, {
|
|
15
15
|
Command: () => exports_command4,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event6,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info6,
|
|
19
|
+
NotFoundError: () => NotFoundError3,
|
|
20
|
+
Service: () => Service30,
|
|
21
|
+
layer: () => layer16,
|
|
22
|
+
node: () => node33
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event6 } from "@opencode/schema/command";
|
|
28
|
+
var Info6 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError3 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service30 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const bus = yield*
|
|
44
|
+
var layer16 = Layer.effect(Service30, Effect.gen(function* () {
|
|
45
|
+
const bus = yield* Service85;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
48
48
|
initial: () => new Map,
|
|
@@ -51,11 +51,11 @@ var layer18 = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info6.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service30.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,15 +66,15 @@ var layer18 = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError3({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
77
|
-
deps: [
|
|
74
|
+
var node33 = makeLocationNode({
|
|
75
|
+
service: Service30,
|
|
76
|
+
layer: layer16,
|
|
77
|
+
deps: [node89]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
80
80
|
if (error instanceof Error)
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info6, NotFoundError3, ExecutionError2, Service30, layer16, node33, exports_command4, Event6 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service64
|
|
3
|
+
} from "./aisdk-native-prmgem5b.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-vnkjks7b.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service32
|
|
9
|
+
} from "./aisdk-native-96vvhf26.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/shell.ts
|
|
18
18
|
var exports_shell3 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service64;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service32), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|