@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,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./aisdk-native-mg9wc1ev.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service85,
|
|
7
|
+
node89
|
|
8
|
+
} from "./aisdk-native-5vscj5fh.js";
|
|
9
|
+
import {
|
|
10
|
+
Service73,
|
|
11
|
+
node77
|
|
12
|
+
} from "./aisdk-native-8b1csnkw.js";
|
|
9
13
|
import {
|
|
10
14
|
Service64,
|
|
11
15
|
node68
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service50,
|
|
15
|
-
node52
|
|
16
|
-
} from "./model-retry-h896pcm5.js";
|
|
16
|
+
} from "./aisdk-native-prmgem5b.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-native-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make19
|
|
22
|
+
} from "./aisdk-native-rhraev7y.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service61
|
|
26
|
+
} from "./aisdk-native-rwm5vee1.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service66,
|
|
29
|
+
node70
|
|
30
|
+
} from "./aisdk-native-hyhyyj61.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./aisdk-native-ae2bqj1x.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./aisdk-native-5zdfhw0y.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service60,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer24,
|
|
47
|
+
node: () => node65,
|
|
48
|
+
noopLayer: () => noopLayer3,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service60 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,12 +59,12 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
65
|
-
const bus = yield*
|
|
66
|
-
const jobs = yield*
|
|
67
|
-
const db = (yield*
|
|
62
|
+
var layer24 = Layer.effect(Service60, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service66;
|
|
64
|
+
const instances = yield* Service64;
|
|
65
|
+
const bus = yield* Service85;
|
|
66
|
+
const jobs = yield* Service73;
|
|
67
|
+
const db = (yield* Service86).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
70
70
|
commit: () => store.claim(sessionID)
|
|
@@ -76,14 +76,14 @@ var layer20 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service61.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
83
83
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable)
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
const coordinator = yield*
|
|
86
|
+
const coordinator = yield* make19({
|
|
87
87
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
88
88
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
89
89
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -104,7 +104,7 @@ var layer20 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service60.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer20 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node65 = makeGlobalNode({
|
|
127
|
+
service: Service60,
|
|
128
|
+
layer: layer24,
|
|
129
|
+
deps: [node70, node68, node89, node90, node77]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer3 = Layer.succeed(Service60, Service60.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer2 = Layer.succeed(Service46, Service46.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service60, terminal2, layer24, node65, noopLayer3, exports_execution };
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service84,
|
|
9
|
+
node88
|
|
10
|
+
} from "./aisdk-native-c5ggqzvz.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service79,
|
|
13
|
+
node83
|
|
14
|
+
} from "./aisdk-native-9ham2w87.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-native-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID7,
|
|
27
|
+
Service: () => Service57,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node62,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID7 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service57 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service84;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service79;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID7.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -136,25 +136,25 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
136
136
|
for (const [file, snapshot] of input.files) {
|
|
137
137
|
const absolute = path.resolve(worktree, file);
|
|
138
138
|
if (!FSUtil.contains(worktree, absolute))
|
|
139
|
-
return yield* new
|
|
139
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
140
140
|
files.set(file, TreeID2.make(snapshot));
|
|
141
141
|
}
|
|
142
142
|
return files;
|
|
143
143
|
});
|
|
144
144
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
145
145
|
if (!enabled())
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
147
147
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
148
148
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
149
149
|
});
|
|
150
|
-
return
|
|
150
|
+
return Service57.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
151
151
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
152
|
-
var
|
|
153
|
-
service:
|
|
152
|
+
var node62 = makeLocationNode({
|
|
153
|
+
service: Service57,
|
|
154
154
|
layer,
|
|
155
|
-
deps: [FSUtil.node,
|
|
155
|
+
deps: [FSUtil.node, node88, Global.node, node83]
|
|
156
156
|
});
|
|
157
|
-
var
|
|
157
|
+
var noopLayer2 = Layer.succeed(Service57, Service57.of({
|
|
158
158
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
159
159
|
reload: () => Effect.void,
|
|
160
160
|
capture: () => Effect.undefined,
|
|
@@ -163,13 +163,13 @@ var noopLayer3 = Layer.succeed(Service54, Service54.of({
|
|
|
163
163
|
restore: () => Effect.void
|
|
164
164
|
}));
|
|
165
165
|
function failure(operation, cause) {
|
|
166
|
-
if (cause instanceof
|
|
166
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
167
167
|
return cause;
|
|
168
|
-
return new
|
|
168
|
+
return new Error5({
|
|
169
169
|
operation,
|
|
170
170
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
171
171
|
cause
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export {
|
|
175
|
+
export { ID7, Error5, Service57, node62, noopLayer2, exports_snapshot2 };
|
|
@@ -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
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-native-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref3,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service79,
|
|
12
|
+
node83
|
|
13
|
+
} from "./aisdk-native-9ham2w87.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service52,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node57
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service52 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const location = yield*
|
|
42
|
+
var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
43
|
+
const bus = yield* Service85;
|
|
44
|
+
const location = yield* Service79;
|
|
45
45
|
const ref = Ref3.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service79, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service52.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node57 = makeLocationNode({ service: Service52, layer, deps: [node89, node83] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service52, node57, exports_rpc, define2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service64,
|
|
10
|
+
node: () => node68
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service64 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node68 = LayerNode.unbound(Service64, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service64, node68, exports_service2 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service41
|
|
4
|
+
} from "./aisdk-native-gfa47pmv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service76
|
|
7
|
+
} from "./aisdk-native-8yj6gt86.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
16
|
var exports_shell = {};
|
|
17
17
|
__export(exports_shell, {
|
|
18
18
|
ConfigShellPlugin: () => exports_shell,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin5
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin5 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service41;
|
|
27
|
+
const shell = yield* Service76;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin22 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin5, exports_shell };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-wjr9rjd7.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin24,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint6
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint6 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin24 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin6 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint6);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint6, Plugin24, exports_exa };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service86
|
|
3
|
+
} from "./aisdk-native-mg9wc1ev.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
|
preview2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-3w4y5t9t.js";
|
|
13
13
|
import {
|
|
14
14
|
baseTranscript2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-2098emdn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service16
|
|
18
|
+
} from "./aisdk-native-mmb750pd.js";
|
|
19
19
|
import {
|
|
20
20
|
retry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-native-fcy631f0.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
36
|
-
const database = yield*
|
|
35
|
+
const instances = yield* Service64;
|
|
36
|
+
const database = yield* Service86;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service16;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, model.ref);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-rdw6cm16.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service34,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node37
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service34 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service34.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node37 = makeLocationNode({
|
|
137
|
+
service: Service34,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service34, node37, exports_tool_output2 };
|