@opencode/core 0.0.0-dev-21318 → 0.0.0-dev-21324
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 +77 -77
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +5 -5
- package/dist/bus.js +71 -71
- package/dist/chunks/{persistent-pty-x8ga927e.js → aisdk-00bmw6dv.js} +9 -9
- package/dist/chunks/{persistent-pty-g0fh3ss2.js → aisdk-047q4skb.js} +24 -24
- package/dist/chunks/{persistent-pty-2saep75g.js → aisdk-056d99rx.js} +13 -13
- package/dist/chunks/{persistent-pty-3dk6vdcf.js → aisdk-0jc67g57.js} +10 -10
- package/dist/chunks/{persistent-pty-cpccs97c.js → aisdk-0k01pgta.js} +30 -30
- package/dist/chunks/{persistent-pty-q7468z42.js → aisdk-0mt6hxw9.js} +25 -25
- package/dist/chunks/{persistent-pty-x9yke5vr.js → aisdk-0v8x6p8x.js} +11 -11
- package/dist/chunks/{persistent-pty-0vbcp93d.js → aisdk-0vbcp93d.js} +2 -2
- package/dist/chunks/{persistent-pty-7k2k32yg.js → aisdk-0vz1xsh1.js} +9 -9
- package/dist/chunks/{persistent-pty-yf9n42xk.js → aisdk-0wnhc6t5.js} +6 -6
- package/dist/chunks/{persistent-pty-4e4yjs3s.js → aisdk-1bpek4ns.js} +1 -1
- package/dist/chunks/{persistent-pty-j6hdhn3t.js → aisdk-1cr8jbb5.js} +4 -4
- package/dist/chunks/aisdk-1m1d203r.js +26 -0
- package/dist/chunks/{persistent-pty-xnc4q7tf.js → aisdk-1pg55zv1.js} +18 -18
- package/dist/chunks/{persistent-pty-sx8q409h.js → aisdk-1pkx2pwy.js} +50 -50
- package/dist/chunks/{persistent-pty-38963ezr.js → aisdk-1syts2m9.js} +15 -15
- package/dist/chunks/{persistent-pty-yysedm6f.js → aisdk-1wk2y6dw.js} +30 -30
- package/dist/chunks/{persistent-pty-8058wneq.js → aisdk-21cgkpgk.js} +15 -15
- package/dist/chunks/{persistent-pty-25yddszk.js → aisdk-25yddszk.js} +3 -3
- package/dist/chunks/{persistent-pty-n2srvep7.js → aisdk-277eer69.js} +4 -4
- package/dist/chunks/{persistent-pty-33b5xt83.js → aisdk-2gn8x791.js} +5 -5
- package/dist/chunks/{persistent-pty-qeee8n96.js → aisdk-2hbz9bv6.js} +2 -2
- package/dist/chunks/{persistent-pty-w7vq87x6.js → aisdk-2mtw4739.js} +14 -14
- package/dist/chunks/{persistent-pty-y8p4cb47.js → aisdk-2vrh575f.js} +15 -15
- package/dist/chunks/{persistent-pty-7ht1svp9.js → aisdk-32f4e43b.js} +8 -8
- package/dist/chunks/{persistent-pty-jyj86nsz.js → aisdk-396dw5cn.js} +21 -21
- package/dist/chunks/{persistent-pty-3ssz1k3q.js → aisdk-39e7ax7r.js} +8 -8
- package/dist/chunks/{persistent-pty-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3hwn7j4h.js → aisdk-3hwn7j4h.js} +2 -2
- package/dist/chunks/{persistent-pty-rety19fn.js → aisdk-3kr3psva.js} +324 -324
- package/dist/chunks/{persistent-pty-3smtnn6g.js → aisdk-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-xda8t08s.js → aisdk-3smz0h1x.js} +15 -15
- package/dist/chunks/{persistent-pty-6wqpa5p1.js → aisdk-3ss3n9f3.js} +15 -15
- package/dist/chunks/{persistent-pty-3tvqynh2.js → aisdk-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-3zsf4n22.js → aisdk-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-bmc8ajke.js → aisdk-40rwdhm3.js} +14 -14
- package/dist/chunks/{persistent-pty-3y24yfnm.js → aisdk-41w3aw4y.js} +9 -9
- package/dist/chunks/{persistent-pty-24f3f4ex.js → aisdk-42q20knj.js} +2 -2
- package/dist/chunks/{persistent-pty-3h7b0ae1.js → aisdk-43h622c1.js} +3 -3
- package/dist/chunks/{persistent-pty-fs2f0xkk.js → aisdk-440hf589.js} +26 -26
- package/dist/chunks/{persistent-pty-wa9g86nq.js → aisdk-44ak30pa.js} +4 -4
- package/dist/chunks/{persistent-pty-aqebbdxj.js → aisdk-4nrgyf0s.js} +17 -17
- package/dist/chunks/{persistent-pty-pzs9fcbn.js → aisdk-4ttbfvsw.js} +62 -62
- package/dist/chunks/{persistent-pty-eqefekej.js → aisdk-4vmnwshs.js} +4 -4
- package/dist/chunks/{persistent-pty-54ma36ye.js → aisdk-54ma36ye.js} +1 -1
- package/dist/chunks/{persistent-pty-sm301jd3.js → aisdk-56z46vh2.js} +5 -5
- package/dist/chunks/{persistent-pty-17d5gh3d.js → aisdk-59v9kkpq.js} +32 -32
- package/dist/chunks/{persistent-pty-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-hq42ga31.js → aisdk-5mmmpc4a.js} +4 -4
- package/dist/chunks/{persistent-pty-me0hkc2z.js → aisdk-5r7c8608.js} +11 -11
- package/dist/chunks/{persistent-pty-45swxcnn.js → aisdk-5y5d0hy9.js} +43 -43
- package/dist/chunks/{persistent-pty-rs9qg7cf.js → aisdk-5zmrz0b0.js} +11 -11
- package/dist/chunks/{persistent-pty-5r7ac250.js → aisdk-60qzgww1.js} +5 -5
- package/dist/chunks/{persistent-pty-k0y4bd87.js → aisdk-62zvm31z.js} +27 -27
- package/dist/chunks/{persistent-pty-j15m0rxy.js → aisdk-64v2dhyn.js} +7 -7
- package/dist/chunks/{persistent-pty-6827pfxn.js → aisdk-6827pfxn.js} +1 -1
- package/dist/chunks/{persistent-pty-zz9094w6.js → aisdk-6g56tt84.js} +15 -15
- package/dist/chunks/{persistent-pty-asnz67s1.js → aisdk-6gwr451s.js} +32 -32
- package/dist/chunks/{persistent-pty-qnjyk5by.js → aisdk-6kxcmnfb.js} +38 -38
- package/dist/chunks/{persistent-pty-6xb47vfp.js → aisdk-6xb47vfp.js} +1 -1
- package/dist/chunks/{persistent-pty-zft5sqdw.js → aisdk-6y6m1db0.js} +24 -24
- package/dist/chunks/{persistent-pty-9a5j5arz.js → aisdk-6z551tr8.js} +3 -3
- package/dist/chunks/{persistent-pty-n0kentm7.js → aisdk-73q9sqgf.js} +38 -38
- package/dist/chunks/{persistent-pty-k9rjnmc5.js → aisdk-75eppkn0.js} +4 -4
- package/dist/chunks/{persistent-pty-775gj3j1.js → aisdk-775gj3j1.js} +2 -2
- package/dist/chunks/{persistent-pty-emhr29ne.js → aisdk-780eb7ey.js} +13 -13
- package/dist/chunks/{persistent-pty-cjx84n6d.js → aisdk-7azf985a.js} +13 -13
- package/dist/chunks/{persistent-pty-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-rzs3gq0x.js → aisdk-7j2qha59.js} +8 -8
- package/dist/chunks/{persistent-pty-ef9fmmj9.js → aisdk-7jsv9w5x.js} +11 -11
- package/dist/chunks/{persistent-pty-ep3f3pzc.js → aisdk-7p20k8kk.js} +83 -83
- package/dist/chunks/{persistent-pty-t4q75hqt.js → aisdk-7pt0f378.js} +5 -5
- package/dist/chunks/{persistent-pty-b39zvbqb.js → aisdk-7rvv22n1.js} +14 -14
- package/dist/chunks/{persistent-pty-wbk0qewy.js → aisdk-7zkbhs7g.js} +11 -11
- package/dist/chunks/{persistent-pty-84txncab.js → aisdk-84txncab.js} +1 -1
- package/dist/chunks/{persistent-pty-4ghta6c5.js → aisdk-89342957.js} +14 -14
- package/dist/chunks/{persistent-pty-t7errb51.js → aisdk-8j2p51rp.js} +4 -4
- package/dist/chunks/{persistent-pty-pv0cg4pn.js → aisdk-8jj7q8bh.js} +13 -13
- package/dist/chunks/{persistent-pty-8m6m0r52.js → aisdk-8m6m0r52.js} +1 -1
- package/dist/chunks/{persistent-pty-8mywswrd.js → aisdk-8mywswrd.js} +1 -1
- package/dist/chunks/{persistent-pty-2cd9y53g.js → aisdk-936td50e.js} +17 -17
- package/dist/chunks/{persistent-pty-s2z0d44b.js → aisdk-97aeaand.js} +4 -4
- package/dist/chunks/{persistent-pty-w1w1g3rz.js → aisdk-982r6ak3.js} +11 -11
- package/dist/chunks/{persistent-pty-g8mv3vbb.js → aisdk-9axd8ffr.js} +11 -11
- package/dist/chunks/{persistent-pty-ygdna4kr.js → aisdk-9hwaqfsw.js} +5 -5
- package/dist/chunks/{persistent-pty-edx5d1yh.js → aisdk-9kkyv4q2.js} +10 -10
- package/dist/chunks/{persistent-pty-j4fafyv9.js → aisdk-9n75maxh.js} +14 -14
- package/dist/chunks/{persistent-pty-a8nkje97.js → aisdk-9sgsjpgv.js} +11 -11
- package/dist/chunks/{persistent-pty-9sh4wc5j.js → aisdk-9sh4wc5j.js} +1 -1
- package/dist/chunks/{persistent-pty-a20pjse5.js → aisdk-a20pjse5.js} +3 -3
- package/dist/chunks/{persistent-pty-sxvetcyn.js → aisdk-a5dfv94n.js} +21 -21
- package/dist/chunks/{persistent-pty-7nskfpwv.js → aisdk-a5z4q8xw.js} +22 -22
- package/dist/chunks/{persistent-pty-x661k3y3.js → aisdk-addxnjmp.js} +4 -4
- package/dist/chunks/{persistent-pty-n26v5e0b.js → aisdk-aehbxfp0.js} +29 -29
- package/dist/chunks/{persistent-pty-drdy3fh6.js → aisdk-anfqncwb.js} +4 -4
- package/dist/chunks/{persistent-pty-77awh5p4.js → aisdk-aymr4dh1.js} +17 -17
- package/dist/chunks/{persistent-pty-hsm9kfyy.js → aisdk-b89bbj8v.js} +20 -20
- package/dist/chunks/{persistent-pty-3f2ed3kj.js → aisdk-bb1bdzfz.js} +46 -46
- package/dist/chunks/{persistent-pty-er69x7n9.js → aisdk-bcqtfwds.js} +44 -44
- package/dist/chunks/{persistent-pty-1ffvrpkg.js → aisdk-bjx1sjef.js} +6 -6
- package/dist/chunks/{persistent-pty-xxsrzv4p.js → aisdk-bq7px1h6.js} +35 -35
- package/dist/chunks/{persistent-pty-bzeyqsqd.js → aisdk-bzeyqsqd.js} +1 -1
- package/dist/chunks/{persistent-pty-es1vcfrp.js → aisdk-c1fqxshp.js} +3 -3
- package/dist/chunks/{persistent-pty-x6msxz42.js → aisdk-c4ngjp15.js} +19 -19
- package/dist/chunks/{persistent-pty-makc3bj9.js → aisdk-c6xgtk77.js} +30 -30
- package/dist/chunks/{persistent-pty-9mawegkx.js → aisdk-cbged2qp.js} +172 -172
- package/dist/chunks/aisdk-cdpy720h.js +257 -0
- package/dist/chunks/{persistent-pty-5wfxtdqx.js → aisdk-cdvss074.js} +10 -10
- package/dist/chunks/{persistent-pty-tpw6cwsb.js → aisdk-cmwkp3r5.js} +8 -8
- package/dist/chunks/{persistent-pty-4zvfssd5.js → aisdk-cnzcdzg3.js} +14 -14
- package/dist/chunks/{persistent-pty-ye0tt9gc.js → aisdk-ctwznnqj.js} +1 -1
- package/dist/chunks/{persistent-pty-cb7pdjkb.js → aisdk-d11crm59.js} +22 -22
- package/dist/chunks/{persistent-pty-nyydq7ew.js → aisdk-d2xcp0g9.js} +5 -5
- package/dist/chunks/{persistent-pty-55vsgkjg.js → aisdk-d3k8nhh8.js} +20 -20
- package/dist/chunks/{persistent-pty-x39rm370.js → aisdk-da9abyxd.js} +21 -21
- package/dist/chunks/{persistent-pty-tv4xwgy3.js → aisdk-dak8fsqp.js} +18 -18
- package/dist/chunks/{persistent-pty-0996nyz8.js → aisdk-depwzj9d.js} +9 -9
- package/dist/chunks/{persistent-pty-zjtrsxny.js → aisdk-dhb2hta4.js} +5 -5
- package/dist/chunks/{persistent-pty-k2e5s4re.js → aisdk-djkg3n3d.js} +14 -14
- package/dist/chunks/{persistent-pty-cwa6csj7.js → aisdk-djszqvmq.js} +9 -9
- package/dist/chunks/{persistent-pty-mywch70t.js → aisdk-dnhgzxjw.js} +36 -36
- package/dist/chunks/{persistent-pty-vhgfq7sf.js → aisdk-dr7ky5v1.js} +15 -15
- package/dist/chunks/{persistent-pty-drwq78ky.js → aisdk-drwq78ky.js} +1 -1
- package/dist/chunks/{persistent-pty-0jmk01at.js → aisdk-dvmqpkeb.js} +19 -19
- package/dist/chunks/{persistent-pty-q37amjjg.js → aisdk-dzxqpf8v.js} +8 -8
- package/dist/chunks/{persistent-pty-mxnmfhj8.js → aisdk-e75q9ks7.js} +30 -30
- package/dist/chunks/{persistent-pty-t550f9t1.js → aisdk-eaj1djv9.js} +8 -8
- package/dist/chunks/{persistent-pty-eej6y6fw.js → aisdk-eej6y6fw.js} +2 -2
- package/dist/chunks/{persistent-pty-ef5x83kb.js → aisdk-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-na1s3jgb.js → aisdk-en3czrfr.js} +18 -18
- package/dist/chunks/{persistent-pty-ny7egkeb.js → aisdk-en9pdr26.js} +32 -32
- package/dist/chunks/{persistent-pty-sqk4q3nv.js → aisdk-eqy3tk16.js} +11 -11
- package/dist/chunks/{persistent-pty-sqmmasjp.js → aisdk-etb936cy.js} +19 -19
- package/dist/chunks/{persistent-pty-rq7yc33n.js → aisdk-ezyfgyp4.js} +5 -5
- package/dist/chunks/{persistent-pty-6d7mtdks.js → aisdk-ezztc0y5.js} +35 -35
- package/dist/chunks/{persistent-pty-fx5bd5w2.js → aisdk-f0k3pvmx.js} +23 -23
- package/dist/chunks/{persistent-pty-86sh86sv.js → aisdk-f1xs821d.js} +15 -15
- package/dist/chunks/{persistent-pty-yp2x3t23.js → aisdk-f2n192rq.js} +4 -4
- package/dist/chunks/{persistent-pty-fcy631f0.js → aisdk-fcy631f0.js} +1 -1
- package/dist/chunks/{persistent-pty-phvw6tnp.js → aisdk-fdarrw0r.js} +25 -25
- package/dist/chunks/{persistent-pty-s6an5wth.js → aisdk-fe0218cq.js} +9 -9
- package/dist/chunks/{persistent-pty-y40k0vp3.js → aisdk-fhcmdyq1.js} +30 -30
- package/dist/chunks/{persistent-pty-j0aph1pe.js → aisdk-fkf14f6t.js} +11 -11
- package/dist/chunks/{persistent-pty-6bazcnan.js → aisdk-fms46r5q.js} +14 -14
- package/dist/chunks/{persistent-pty-a5v8ppv0.js → aisdk-fnfyz0zn.js} +14 -14
- package/dist/chunks/{persistent-pty-sk770vk8.js → aisdk-fnrbd9jj.js} +18 -18
- package/dist/chunks/{persistent-pty-fcs9x2eq.js → aisdk-fwsyqh4k.js} +16 -16
- package/dist/chunks/{persistent-pty-hq3c8me3.js → aisdk-fxaymqdw.js} +4 -4
- package/dist/chunks/{persistent-pty-5xqqgpy7.js → aisdk-g8me4dm9.js} +6 -6
- package/dist/chunks/{persistent-pty-wgahhr0x.js → aisdk-gcam0d1y.js} +6 -6
- package/dist/chunks/{persistent-pty-gd4qta3r.js → aisdk-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-h9rm1rrn.js → aisdk-gfhhve88.js} +5 -5
- package/dist/chunks/{persistent-pty-z0gbbqnd.js → aisdk-gm21aw58.js} +21 -21
- package/dist/chunks/{persistent-pty-eksc9b63.js → aisdk-gnsda3cn.js} +17 -17
- package/dist/chunks/{persistent-pty-ty2f7v9a.js → aisdk-gx24va27.js} +10 -10
- package/dist/chunks/{persistent-pty-mm2wf4xp.js → aisdk-gy8c6kfk.js} +51 -51
- package/dist/chunks/{persistent-pty-nz47wyzy.js → aisdk-h08rwe1z.js} +10 -10
- package/dist/chunks/{persistent-pty-mk51tt9h.js → aisdk-h0vnctsm.js} +18 -18
- package/dist/chunks/{persistent-pty-h6vf3j39.js → aisdk-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-q2mbf3pn.js → aisdk-haf40wny.js} +23 -23
- package/dist/chunks/{persistent-pty-0fjq3n4t.js → aisdk-hdxjxcpe.js} +18 -18
- package/dist/chunks/{persistent-pty-vy5j2tyc.js → aisdk-he90334m.js} +1 -1
- package/dist/chunks/{persistent-pty-hgz4x7wa.js → aisdk-hgz4x7wa.js} +1 -1
- package/dist/chunks/{persistent-pty-gbe60986.js → aisdk-j50aspkt.js} +12 -12
- package/dist/chunks/{persistent-pty-r66vvgts.js → aisdk-jd5msw35.js} +31 -31
- package/dist/chunks/{persistent-pty-9eq17axm.js → aisdk-jds9g6c9.js} +6 -6
- package/dist/chunks/{persistent-pty-0rhcgknv.js → aisdk-jekssrtq.js} +8 -8
- package/dist/chunks/{persistent-pty-23zvew7z.js → aisdk-jmt4g3es.js} +6 -6
- package/dist/chunks/{persistent-pty-hsnnjyxg.js → aisdk-jphyq3c9.js} +21 -21
- package/dist/chunks/{persistent-pty-f6pky1vc.js → aisdk-jr510039.js} +29 -29
- package/dist/chunks/{persistent-pty-a546n9dx.js → aisdk-jtn8fkbr.js} +5 -5
- package/dist/chunks/{persistent-pty-20hv8fes.js → aisdk-jwmjf2jk.js} +33 -33
- package/dist/chunks/{persistent-pty-035sr1nw.js → aisdk-jzjmtnfy.js} +19 -19
- package/dist/chunks/{persistent-pty-4071dj26.js → aisdk-k18zvgt1.js} +8 -8
- package/dist/chunks/{persistent-pty-2jqwmjzy.js → aisdk-k4qv8byp.js} +11 -11
- package/dist/chunks/{persistent-pty-5tad8fcc.js → aisdk-k7qyzj90.js} +17 -17
- package/dist/chunks/{persistent-pty-k41hn50r.js → aisdk-k99h67nd.js} +27 -27
- package/dist/chunks/{persistent-pty-v9dvedb1.js → aisdk-kb5pvcwp.js} +10 -10
- package/dist/chunks/{persistent-pty-nd4tfyg0.js → aisdk-kjd40bgk.js} +9 -9
- package/dist/chunks/{persistent-pty-btd9bnp8.js → aisdk-kvafxj4x.js} +12 -12
- package/dist/chunks/{persistent-pty-kwb1v3vj.js → aisdk-kwb1v3vj.js} +1 -1
- package/dist/chunks/{persistent-pty-3gdz7m67.js → aisdk-kwjm7zv1.js} +39 -39
- package/dist/chunks/{persistent-pty-h03re434.js → aisdk-m2hjyvdx.js} +10 -10
- package/dist/chunks/{persistent-pty-eajddnhb.js → aisdk-m9mvnc4r.js} +10 -10
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
- package/dist/chunks/{persistent-pty-xaazkcd4.js → aisdk-mb7tgq19.js} +22 -22
- package/dist/chunks/{persistent-pty-583x3kah.js → aisdk-mfp912v4.js} +20 -20
- package/dist/chunks/{persistent-pty-amtxxzg7.js → aisdk-mv3sjw3a.js} +28 -28
- package/dist/chunks/{persistent-pty-mgx30ams.js → aisdk-mwd75yrz.js} +13 -13
- package/dist/chunks/{persistent-pty-3cqwnyj9.js → aisdk-n61013np.js} +8 -8
- package/dist/chunks/{persistent-pty-mb1r8vg9.js → aisdk-n6ez5m6f.js} +26 -26
- package/dist/chunks/{persistent-pty-whb9jbcp.js → aisdk-n7shbngr.js} +13 -13
- package/dist/chunks/{persistent-pty-carh3x97.js → aisdk-nkjv9872.js} +35 -35
- package/dist/chunks/{persistent-pty-983z13s5.js → aisdk-nv1y27w1.js} +11 -11
- package/dist/chunks/{persistent-pty-1wsnph7m.js → aisdk-p06yjkdd.js} +14 -14
- package/dist/chunks/{persistent-pty-5z5javj1.js → aisdk-p1ckhtk6.js} +31 -31
- package/dist/chunks/{persistent-pty-tcyndk34.js → aisdk-p6565xch.js} +13 -13
- package/dist/chunks/{persistent-pty-msxpg58k.js → aisdk-p8a3kt25.js} +5 -5
- package/dist/chunks/{persistent-pty-36qpgp0j.js → aisdk-p8tn15b5.js} +3 -3
- package/dist/chunks/{persistent-pty-vqeemvyx.js → aisdk-p93753sc.js} +20 -20
- package/dist/chunks/{persistent-pty-b5wyey98.js → aisdk-pbd9p82f.js} +27 -27
- package/dist/chunks/{persistent-pty-vh14538p.js → aisdk-pc28xrpv.js} +13 -13
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → aisdk-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-5bes61s4.js → aisdk-pqhrbekt.js} +45 -45
- package/dist/chunks/{persistent-pty-514z3gf3.js → aisdk-pwzfss56.js} +19 -19
- package/dist/chunks/{persistent-pty-s33waz5b.js → aisdk-py4bf79r.js} +23 -23
- package/dist/chunks/{persistent-pty-eamzdkr9.js → aisdk-q8x523z1.js} +6 -6
- package/dist/chunks/{persistent-pty-0jwsre1p.js → aisdk-qgn6gcr1.js} +5 -5
- package/dist/chunks/{persistent-pty-pah6vszw.js → aisdk-qh9ftvky.js} +53 -53
- package/dist/chunks/{persistent-pty-qkt0m9pt.js → aisdk-qk1a4acp.js} +24 -24
- package/dist/chunks/{persistent-pty-qnc92qwc.js → aisdk-qnc92qwc.js} +1 -1
- package/dist/chunks/{persistent-pty-qsdy395h.js → aisdk-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-r2z489rp.js → aisdk-r2z489rp.js} +1 -1
- package/dist/chunks/{persistent-pty-1fj32kga.js → aisdk-r3kscm1n.js} +18 -18
- package/dist/chunks/{persistent-pty-mxfgkdzc.js → aisdk-r8cn72x5.js} +42 -42
- package/dist/chunks/{persistent-pty-rdw6cm16.js → aisdk-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-tkb22qbm.js → aisdk-rert0e01.js} +2 -2
- package/dist/chunks/{persistent-pty-c41wscbt.js → aisdk-rj3eygr5.js} +2 -2
- package/dist/chunks/{persistent-pty-rkprpv83.js → aisdk-rkprpv83.js} +2 -2
- package/dist/chunks/{persistent-pty-0nndfddn.js → aisdk-rr804bvb.js} +13 -13
- package/dist/chunks/{persistent-pty-t4b6mted.js → aisdk-rspw6ztp.js} +2 -2
- package/dist/chunks/{persistent-pty-5y480sgp.js → aisdk-rvf0m9x6.js} +8 -8
- package/dist/chunks/{persistent-pty-93c0dbkk.js → aisdk-s498xgrk.js} +5 -5
- package/dist/chunks/{persistent-pty-c8ax2afj.js → aisdk-sa8ekw3f.js} +2 -2
- package/dist/chunks/{persistent-pty-n87gffhn.js → aisdk-sj4zqd76.js} +9 -9
- package/dist/chunks/{persistent-pty-rrt0a0ha.js → aisdk-sjgsw2hk.js} +2 -2
- package/dist/chunks/{persistent-pty-am4eehff.js → aisdk-ssc23rd5.js} +12 -12
- package/dist/chunks/{persistent-pty-edrmdtr5.js → aisdk-sxz6gkc3.js} +4 -4
- package/dist/chunks/{persistent-pty-syv4x271.js → aisdk-syv4x271.js} +1 -1
- package/dist/chunks/{persistent-pty-9md2mt7s.js → aisdk-t6x5qaf3.js} +14 -14
- package/dist/chunks/{persistent-pty-g4f8ytex.js → aisdk-taz8ab55.js} +7 -7
- package/dist/chunks/{persistent-pty-tazgh4e4.js → aisdk-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tcezcvh9.js → aisdk-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-fjr4y1sz.js → aisdk-tdc0jx11.js} +35 -35
- package/dist/chunks/{persistent-pty-tdstcens.js → aisdk-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-s670sq9m.js → aisdk-tkc1dt97.js} +11 -11
- package/dist/chunks/{persistent-pty-tm0kqsz3.js → aisdk-tm0kqsz3.js} +1 -1
- package/dist/chunks/{persistent-pty-k76fn4kw.js → aisdk-ttqh24zm.js} +4 -4
- package/dist/chunks/{persistent-pty-tyytaxap.js → aisdk-tyytaxap.js} +1 -1
- package/dist/chunks/{persistent-pty-nz56sr1f.js → aisdk-v13b12ef.js} +5 -5
- package/dist/chunks/{persistent-pty-9m1d1fqb.js → aisdk-v1bzczhr.js} +9 -9
- package/dist/chunks/{persistent-pty-vpzmhxff.js → aisdk-v3g7kk0r.js} +9 -9
- package/dist/chunks/{persistent-pty-m9sgcpcv.js → aisdk-v6zs622x.js} +4 -4
- package/dist/chunks/{persistent-pty-v7p4zvkq.js → aisdk-v7p4zvkq.js} +2 -2
- package/dist/chunks/{persistent-pty-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-j1ycnkr6.js → aisdk-vmbbdnnp.js} +4 -4
- package/dist/chunks/{persistent-pty-vzs5sf6e.js → aisdk-vzs5sf6e.js} +1 -1
- package/dist/chunks/{persistent-pty-qaswbwd2.js → aisdk-w3g6mcc0.js} +15 -15
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-xcd0eash.js → aisdk-w5yqftge.js} +6 -6
- package/dist/chunks/{persistent-pty-3r96jsjz.js → aisdk-w86a2sjx.js} +14 -14
- package/dist/chunks/{persistent-pty-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-6znwa2ze.js → aisdk-wen6jb9x.js} +16 -16
- package/dist/chunks/{persistent-pty-vrrq7v3g.js → aisdk-wh6zw745.js} +5 -5
- package/dist/chunks/{persistent-pty-ydkcdr9n.js → aisdk-wh8krjve.js} +28 -28
- package/dist/chunks/{persistent-pty-jfp883ba.js → aisdk-wr5tgkas.js} +3 -3
- package/dist/chunks/{persistent-pty-8e9wk3v6.js → aisdk-wy0wjjws.js} +4 -4
- package/dist/chunks/{persistent-pty-5mz3x8vb.js → aisdk-x5tm040t.js} +21 -21
- package/dist/chunks/{persistent-pty-2688anfm.js → aisdk-xyh9mp2t.js} +21 -21
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → aisdk-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-4y7j986s.js → aisdk-y54hr7f3.js} +9 -9
- package/dist/chunks/{persistent-pty-ez3v055x.js → aisdk-y5ac8wb2.js} +7 -7
- package/dist/chunks/{persistent-pty-y71avatq.js → aisdk-y71avatq.js} +1 -1
- package/dist/chunks/{persistent-pty-v40z4tye.js → aisdk-y8gq2w7b.js} +44 -44
- package/dist/chunks/{persistent-pty-5b77hntt.js → aisdk-ycbb7f30.js} +4 -4
- package/dist/chunks/{persistent-pty-adeqnqa8.js → aisdk-yf5e9rkv.js} +3 -3
- package/dist/chunks/{persistent-pty-vqsk1a30.js → aisdk-ys8z7b8e.js} +26 -26
- package/dist/chunks/{persistent-pty-t1ndffwz.js → aisdk-ysarqrcq.js} +6 -6
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-z18fegx4.js → aisdk-z18fegx4.js} +1 -1
- package/dist/chunks/{persistent-pty-1t2v27cd.js → aisdk-z2x1thfk.js} +46 -46
- package/dist/chunks/{persistent-pty-m662wk7b.js → aisdk-zabp4rd0.js} +3 -3
- package/dist/chunks/{persistent-pty-6e60yqyp.js → aisdk-zq9002ca.js} +28 -28
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → aisdk-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-jg4qz7te.js → aisdk-zrb2xrrk.js} +26 -26
- package/dist/chunks/{persistent-pty-d4a9a1gx.js → aisdk-ztp261xd.js} +5 -5
- package/dist/chunks/{persistent-pty-zxq2ej10.js → aisdk-zxq2ej10.js} +1 -1
- package/dist/chunks/{persistent-pty-1p3zcfwq.js → aisdk-zyfcs08x.js} +14 -14
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +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 +116 -116
- package/dist/config/plugin/command.js +206 -206
- 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 +123 -123
- package/dist/config/plugin/policy.js +115 -115
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- 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 +78 -78
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- 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 +95 -95
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +108 -108
- package/dist/git.js +8 -8
- 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 +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- 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 +107 -107
- package/dist/mcp/instructions.js +127 -127
- 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 +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +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 +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- 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 +116 -116
- 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 +1 -1
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- 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 +136 -136
- package/dist/session/context.js +151 -151
- 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 +215 -215
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +157 -157
- package/dist/session/history.js +13 -13
- 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 +4 -4
- 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 +223 -223
- 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 +3 -3
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +162 -162
- 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 +75 -75
- 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 +1 -1
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +210 -210
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- 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 +130 -130
- 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 +118 -118
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +211 -211
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- 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 +8 -8
- 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 +5 -5
- 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 +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +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/persistent-pty-5wm8vv17.js +0 -257
- package/dist/chunks/persistent-pty-a3q4bfq8.js +0 -26
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → aisdk-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → aisdk-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3t0ybcrp.js → aisdk-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5qd3pb7m.js → aisdk-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{persistent-pty-pyv0edze.js → aisdk-pyv0edze.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-43h622c1.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-5mmmpc4a.js";
|
|
9
|
+
import {
|
|
10
|
+
Service57,
|
|
11
|
+
node59
|
|
12
|
+
} from "./aisdk-wen6jb9x.js";
|
|
9
13
|
import {
|
|
10
14
|
Service55,
|
|
11
15
|
node57
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service52,
|
|
15
|
-
node54
|
|
16
|
-
} from "./persistent-pty-xcd0eash.js";
|
|
16
|
+
} from "./aisdk-w5yqftge.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make15
|
|
22
|
+
} from "./aisdk-f2n192rq.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service53
|
|
26
|
+
} from "./aisdk-ttqh24zm.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service61,
|
|
29
|
+
node63
|
|
30
|
+
} from "./aisdk-kvafxj4x.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./aisdk-d2xcp0g9.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./aisdk-6y6m1db0.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service52,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
46
|
layer: () => layer21,
|
|
47
|
-
node: () =>
|
|
47
|
+
node: () => node55,
|
|
48
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 Service52 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ 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 layer21 = Layer.effect(
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer21 = Layer.effect(Service52, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service61;
|
|
64
|
+
const instances = yield* Service55;
|
|
65
65
|
const bus = yield* Service85;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service57;
|
|
67
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) => ({
|
|
@@ -76,14 +76,14 @@ var layer21 = Layer.effect(Service50, 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* Service53.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* make15({
|
|
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 layer21 = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service52.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer21 = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
126
|
+
var node55 = makeGlobalNode({
|
|
127
|
+
service: Service52,
|
|
128
128
|
layer: layer21,
|
|
129
|
-
deps: [
|
|
129
|
+
deps: [node63, node57, node89, node90, node59]
|
|
130
130
|
});
|
|
131
|
-
var noopLayer3 = Layer.succeed(
|
|
131
|
+
var noopLayer3 = Layer.succeed(Service52, Service52.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer3 = Layer.succeed(Service50, Service50.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service52, terminal2, layer21, node55, noopLayer3, exports_execution };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service82,
|
|
6
6
|
node86
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-9axd8ffr.js";
|
|
8
8
|
import {
|
|
9
9
|
parse4,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-84txncab.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service83,
|
|
16
|
+
node87
|
|
17
|
+
} from "./aisdk-0jc67g57.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/repository-cache.ts
|
|
23
23
|
var exports_repository_cache = {};
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service65,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node67,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service65 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,13 +101,13 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service82;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service83;
|
|
110
|
+
return Service65.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node67 = makeGlobalNode({
|
|
171
|
+
service: Service65,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node, node86, Global.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node86, Global.node, node87]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service65, isError2, validateBranch2, node67, exports_repository_cache };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-aehbxfp0.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service75
|
|
6
|
+
} from "./aisdk-e75q9ks7.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/verbosity.ts
|
|
12
12
|
var exports_verbosity = {};
|
|
13
13
|
__export(exports_verbosity, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin10,
|
|
15
15
|
VerbosityPlugin: () => exports_verbosity
|
|
16
16
|
});
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -27,10 +27,10 @@ var gateways = new Set([
|
|
|
27
27
|
"@opencode/ai/providers/vercel-ai-gateway",
|
|
28
28
|
aisdk2("@ai-sdk/gateway")
|
|
29
29
|
]);
|
|
30
|
-
var
|
|
30
|
+
var Plugin10 = define({
|
|
31
31
|
id: "opencode.prompt.verbosity",
|
|
32
32
|
effect: Effect.fn("VerbosityPlugin")(function* (ctx) {
|
|
33
|
-
const models = yield*
|
|
33
|
+
const models = yield* Service75;
|
|
34
34
|
const hook = (event) => Effect.gen(function* () {
|
|
35
35
|
if (event.options.textVerbosity !== undefined)
|
|
36
36
|
return;
|
|
@@ -70,4 +70,4 @@ function openAIModelID(model) {
|
|
|
70
70
|
return id.slice("openai/".length);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Plugin10, exports_verbosity };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-ysarqrcq.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service78
|
|
7
|
+
} from "./aisdk-fhcmdyq1.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-1wk2y6dw.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-aehbxfp0.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID13.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID14.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service78;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-43h622c1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make21,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-eaj1djv9.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-c1fqxshp.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info6,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service29,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node33,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info6 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,13 +56,13 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service29 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
65
|
-
key:
|
|
64
|
+
var source = (entry) => make21({
|
|
65
|
+
key: Key4.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
68
68
|
render: {
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make19({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service86;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service29.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node33 = makeLocationNode({ service: Service29, layer, deps: [node90] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service29, node33, exports_instruction_entry };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-ysarqrcq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-5mmmpc4a.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event18
|
|
10
|
+
} from "./aisdk-fhcmdyq1.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-1wk2y6dw.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service20
|
|
21
|
+
} from "./aisdk-m2hjyvdx.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./aisdk-aehbxfp0.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./aisdk-e75q9ks7.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
resolve4
|
|
33
|
+
} from "./aisdk-0wnhc6t5.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
ID5,
|
|
36
|
+
Input15,
|
|
37
37
|
Response2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./aisdk-fdarrw0r.js";
|
|
39
39
|
|
|
40
40
|
// src/plugin/provider/opencode.ts
|
|
41
41
|
import { Duration, Effect, Equal, FiberHandle, Option, Schema, SchemaGetter, Scope, Semaphore, Stream } from "effect";
|
|
@@ -61,7 +61,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
|
|
|
61
61
|
var RemoteResponse = Schema.Struct({
|
|
62
62
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
63
63
|
websearch: Schema.Struct({
|
|
64
|
-
providerID:
|
|
64
|
+
providerID: ID5
|
|
65
65
|
}).pipe(Schema.optional),
|
|
66
66
|
mcp: Schema.Struct({
|
|
67
67
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -112,7 +112,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
112
112
|
}
|
|
113
113
|
function oauth(http) {
|
|
114
114
|
return {
|
|
115
|
-
integrationID:
|
|
115
|
+
integrationID: ID14.make("opencode"),
|
|
116
116
|
method: {
|
|
117
117
|
id: methodID,
|
|
118
118
|
type: "oauth",
|
|
@@ -179,7 +179,7 @@ var OpencodePlugin2 = define({
|
|
|
179
179
|
const bus = yield* Service85;
|
|
180
180
|
const client = yield* HttpClient.HttpClient;
|
|
181
181
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
182
|
-
const managed = yield*
|
|
182
|
+
const managed = yield* Service20;
|
|
183
183
|
const scope = yield* Scope.Scope;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -231,7 +231,7 @@ var OpencodePlugin2 = define({
|
|
|
231
231
|
providers.update(providerID, (provider) => {
|
|
232
232
|
if (source && source.provider !== provider)
|
|
233
233
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
234
|
-
provider.integrationID =
|
|
234
|
+
provider.integrationID = ID14.make("opencode");
|
|
235
235
|
if (item.canonical !== undefined)
|
|
236
236
|
provider.canonical = item.canonical;
|
|
237
237
|
if (item.name !== undefined)
|
|
@@ -269,7 +269,7 @@ var OpencodePlugin2 = define({
|
|
|
269
269
|
providers.models.update(providerID, modelID, (model) => {
|
|
270
270
|
if (config.capabilities?.reasoning !== undefined)
|
|
271
271
|
model.variants = [
|
|
272
|
-
...
|
|
272
|
+
...resolve4({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
|
|
273
273
|
];
|
|
274
274
|
for (const variant of config.variants ?? []) {
|
|
275
275
|
let existing = model.variants.find((item) => item.id === variant.id);
|
|
@@ -305,7 +305,7 @@ var OpencodePlugin2 = define({
|
|
|
305
305
|
sourceConnection: snapshot.connection
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
const item = providers.get(
|
|
308
|
+
const item = providers.get(ID13.opencode);
|
|
309
309
|
if (!item)
|
|
310
310
|
return;
|
|
311
311
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -317,7 +317,7 @@ var OpencodePlugin2 = define({
|
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
yield* ctx.model.transform((models) => {
|
|
320
|
-
const item = models.provider.get(
|
|
320
|
+
const item = models.provider.get(ID13.opencode);
|
|
321
321
|
if (!item)
|
|
322
322
|
return;
|
|
323
323
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -351,7 +351,7 @@ var OpencodePlugin2 = define({
|
|
|
351
351
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
352
352
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
353
353
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
354
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
354
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
|
|
355
355
|
query: input.query,
|
|
356
356
|
providerID: descriptor.providerID
|
|
357
357
|
}));
|
|
@@ -406,7 +406,7 @@ var OpencodePlugin2 = define({
|
|
|
406
406
|
});
|
|
407
407
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
408
408
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
409
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
409
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
410
410
|
});
|
|
411
411
|
yield* guard(snapshot);
|
|
412
412
|
const polling = yield* FiberHandle.make();
|
|
@@ -417,7 +417,7 @@ var OpencodePlugin2 = define({
|
|
|
417
417
|
onlyIfMissing: true
|
|
418
418
|
});
|
|
419
419
|
});
|
|
420
|
-
yield* bus.subscribe(
|
|
420
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
421
421
|
yield* poll();
|
|
422
422
|
})
|
|
423
423
|
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
batch2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service48
|
|
6
|
+
} from "./aisdk-bcqtfwds.js";
|
|
7
7
|
import {
|
|
8
8
|
match2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-y1fvbwt7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
11
|
+
Service20,
|
|
12
12
|
statements2,
|
|
13
13
|
decision2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-m2hjyvdx.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-qsdy395h.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/config/plugin/policy.ts
|
|
23
23
|
var exports_policy = {};
|
|
@@ -30,8 +30,8 @@ import { Effect, Stream } from "effect";
|
|
|
30
30
|
var Plugin33 = define({
|
|
31
31
|
id: "opencode.config.policy",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const managed = yield*
|
|
33
|
+
const config = yield* Service48;
|
|
34
|
+
const managed = yield* Service20;
|
|
35
35
|
const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload()], { discard: true }));
|
|
36
36
|
const loaded = yield* observe2(config, ctx.event, reload);
|
|
37
37
|
yield* managed.changes().pipe(Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service6,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service6 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service6.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node8 = makeGlobalNode({ service: Service6, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service6, node8, exports_discovery };
|