@opencode/core 0.0.0-dev-20878 → 0.0.0-dev-20927
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 +81 -81
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{models-dev-ac26ehhg.js → aisdk-00wk05ge.js} +11 -11
- package/dist/chunks/{models-dev-61jhnn10.js → aisdk-00xyqfxv.js} +17 -17
- package/dist/chunks/{models-dev-664nn7jy.js → aisdk-04nrchp2.js} +18 -18
- package/dist/chunks/{models-dev-0v0vwtex.js → aisdk-0559y0cb.js} +27 -27
- package/dist/chunks/{models-dev-ff9ekkny.js → aisdk-0e6rss5m.js} +16 -16
- package/dist/chunks/{models-dev-rnqk76b5.js → aisdk-0h8hk730.js} +11 -11
- package/dist/chunks/{models-dev-eeysg86p.js → aisdk-0rnweg5q.js} +9 -9
- package/dist/chunks/{models-dev-0vbcp93d.js → aisdk-0vbcp93d.js} +2 -2
- package/dist/chunks/{models-dev-wad8pbn9.js → aisdk-1bkw5bdq.js} +13 -13
- package/dist/chunks/{models-dev-sxd24aka.js → aisdk-1bstbm9e.js} +19 -19
- package/dist/chunks/{models-dev-rj55spyz.js → aisdk-1f2gyj3q.js} +11 -11
- package/dist/chunks/aisdk-1qryn0z5.js +26 -0
- package/dist/chunks/{models-dev-mzas9ed2.js → aisdk-1s8mjp65.js} +13 -13
- package/dist/chunks/{models-dev-nmz8bfwr.js → aisdk-1tk9ptda.js} +23 -23
- package/dist/chunks/{models-dev-fxaymqdw.js → aisdk-1w2wqhfv.js} +4 -4
- package/dist/chunks/{models-dev-pmfx1fcm.js → aisdk-1xdmmj5x.js} +6 -6
- package/dist/chunks/{models-dev-7d7pq6g3.js → aisdk-25xrqn66.js} +10 -10
- package/dist/chunks/{models-dev-0xfjwjgx.js → aisdk-29eamcyx.js} +13 -13
- package/dist/chunks/{models-dev-2k8khapm.js → aisdk-2k8khapm.js} +1 -1
- package/dist/chunks/{models-dev-tfnwcfrz.js → aisdk-2mzgcd7p.js} +1 -1
- package/dist/chunks/{models-dev-56trr13x.js → aisdk-2z84r0k0.js} +15 -15
- package/dist/chunks/{models-dev-vqkteeg7.js → aisdk-304b167w.js} +24 -24
- package/dist/chunks/{models-dev-3fc6dm20.js → aisdk-3fc6dm20.js} +1 -1
- package/dist/chunks/{models-dev-kz566jjf.js → aisdk-3gsvm8tc.js} +24 -24
- package/dist/chunks/{models-dev-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{models-dev-3hwn7j4h.js → aisdk-3hwn7j4h.js} +2 -2
- package/dist/chunks/{models-dev-5w2x09q9.js → aisdk-3rmrymsq.js} +19 -19
- package/dist/chunks/{models-dev-3smtnn6g.js → aisdk-3smtnn6g.js} +1 -1
- package/dist/chunks/{models-dev-3tvqynh2.js → aisdk-3tvqynh2.js} +1 -1
- package/dist/chunks/{models-dev-3zsf4n22.js → aisdk-3zsf4n22.js} +1 -1
- package/dist/chunks/{models-dev-jj2d2gjn.js → aisdk-42bsfdxy.js} +14 -14
- package/dist/chunks/{models-dev-5jrz182w.js → aisdk-4dwm8zny.js} +7 -7
- package/dist/chunks/{models-dev-4z775ewe.js → aisdk-4fy38wjj.js} +9 -9
- package/dist/chunks/{models-dev-qyy61q0n.js → aisdk-4ggt5f5q.js} +16 -16
- package/dist/chunks/aisdk-4nsv302d.js +253 -0
- package/dist/chunks/{models-dev-0qcz3zbp.js → aisdk-4pyxqwyk.js} +35 -35
- package/dist/chunks/{models-dev-4ts7tf6z.js → aisdk-4ts7tf6z.js} +2 -2
- package/dist/chunks/{models-dev-j7r159yh.js → aisdk-4z0gqkar.js} +27 -27
- package/dist/chunks/{models-dev-990pd8w2.js → aisdk-53575mss.js} +25 -25
- package/dist/chunks/{models-dev-54ma36ye.js → aisdk-54ma36ye.js} +1 -1
- package/dist/chunks/{models-dev-9a1g7qmn.js → aisdk-5cjh3zh7.js} +44 -44
- package/dist/chunks/{models-dev-g6yfr6ja.js → aisdk-5fykfdj7.js} +5 -5
- package/dist/chunks/{models-dev-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{models-dev-dcp6bqcn.js → aisdk-5qwpt1yw.js} +88 -88
- package/dist/chunks/{models-dev-ryd42926.js → aisdk-5yfjahdb.js} +13 -13
- package/dist/chunks/{models-dev-7xr8xf12.js → aisdk-61vg84b0.js} +50 -50
- package/dist/chunks/{models-dev-weqa09ps.js → aisdk-63ft016j.js} +14 -14
- package/dist/chunks/{models-dev-zv7rs7rs.js → aisdk-67c4ky7v.js} +15 -15
- package/dist/chunks/{models-dev-1gtm6kwd.js → aisdk-6ajhbynx.js} +20 -20
- package/dist/chunks/{models-dev-e1hsyypd.js → aisdk-6cak8h0t.js} +14 -14
- package/dist/chunks/{models-dev-9nh412gb.js → aisdk-6kcy1g95.js} +44 -44
- package/dist/chunks/{models-dev-91ytq5p4.js → aisdk-6ktrewj4.js} +9 -9
- package/dist/chunks/{models-dev-py3kkmfq.js → aisdk-6pc27hjz.js} +6 -6
- package/dist/chunks/{models-dev-ver12d1v.js → aisdk-6q6768w4.js} +20 -20
- package/dist/chunks/{models-dev-6xb47vfp.js → aisdk-6xb47vfp.js} +1 -1
- package/dist/chunks/{models-dev-fmafxj76.js → aisdk-6xczqt7x.js} +15 -15
- package/dist/chunks/{models-dev-hegdc19s.js → aisdk-76b2c9rp.js} +16 -16
- package/dist/chunks/{models-dev-775gj3j1.js → aisdk-775gj3j1.js} +2 -2
- package/dist/chunks/aisdk-782n1raf.js +513 -0
- package/dist/chunks/{models-dev-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{models-dev-7x1ypk5k.js → aisdk-7kh9td1h.js} +15 -15
- package/dist/chunks/{models-dev-gs7j91g9.js → aisdk-7m2e2fgz.js} +4 -4
- package/dist/chunks/{models-dev-1zb0beqa.js → aisdk-7q5164vr.js} +32 -32
- package/dist/chunks/{models-dev-h62jj600.js → aisdk-7rh6rafk.js} +18 -18
- package/dist/chunks/{models-dev-6sj59t6m.js → aisdk-7wqs6zev.js} +42 -42
- package/dist/chunks/{models-dev-5dxxbe9g.js → aisdk-7zsq3j4g.js} +8 -8
- package/dist/chunks/{models-dev-ra67jj04.js → aisdk-80z0vyq9.js} +9 -9
- package/dist/chunks/{models-dev-ea2px5d8.js → aisdk-82x8s2rf.js} +12 -12
- package/dist/chunks/{models-dev-vr512m55.js → aisdk-876cynaq.js} +10 -10
- package/dist/chunks/{models-dev-wtnp8nrr.js → aisdk-87m862kp.js} +35 -35
- package/dist/chunks/{models-dev-f6re4cr6.js → aisdk-8bh9q5mt.js} +3 -3
- package/dist/chunks/{models-dev-kavq0tjr.js → aisdk-8kdhekhe.js} +2 -2
- package/dist/chunks/{models-dev-8m6m0r52.js → aisdk-8m6m0r52.js} +1 -1
- package/dist/chunks/{models-dev-qgfk698v.js → aisdk-8s9metdf.js} +20 -20
- package/dist/chunks/{models-dev-91qna3x0.js → aisdk-91qna3x0.js} +3 -3
- package/dist/chunks/{models-dev-85j908wh.js → aisdk-92fp36nx.js} +18 -18
- package/dist/chunks/{models-dev-mv3hx7wz.js → aisdk-97aeaand.js} +4 -4
- package/dist/chunks/{models-dev-70dj28dg.js → aisdk-9gsz9xej.js} +15 -15
- package/dist/chunks/{models-dev-gj71zhbs.js → aisdk-9hwaqfsw.js} +5 -5
- package/dist/chunks/aisdk-9sh4wc5j.js +18 -0
- package/dist/chunks/{models-dev-rnep2cdr.js → aisdk-9shyng8h.js} +3 -3
- package/dist/chunks/{models-dev-810wczjz.js → aisdk-9tjjhrg5.js} +5 -5
- package/dist/chunks/{models-dev-8859909z.js → aisdk-a034y3yd.js} +24 -24
- package/dist/chunks/{models-dev-8wbxkt1z.js → aisdk-a2rpfkac.js} +4 -4
- package/dist/chunks/{models-dev-se8t5tqv.js → aisdk-a5xb6rp9.js} +28 -28
- package/dist/chunks/{models-dev-yhsss0zn.js → aisdk-aappkvgq.js} +27 -27
- package/dist/chunks/{models-dev-gy6ptjqd.js → aisdk-abbyb99j.js} +54 -54
- package/dist/chunks/{models-dev-4gd6yy2m.js → aisdk-ad3207xk.js} +20 -20
- package/dist/chunks/{models-dev-dhb2hta4.js → aisdk-ag1vmkq5.js} +5 -5
- package/dist/chunks/{models-dev-4c2df9zx.js → aisdk-ahd542yp.js} +8 -8
- package/dist/chunks/{models-dev-cp12pwh8.js → aisdk-azy2ac7d.js} +11 -11
- package/dist/chunks/{models-dev-r9w3djhf.js → aisdk-b0dgvpy7.js} +9 -9
- package/dist/chunks/{models-dev-m9yr97rx.js → aisdk-b0sz5pfq.js} +26 -26
- package/dist/chunks/{models-dev-q5e7cmwt.js → aisdk-bczx5ry5.js} +1 -1
- package/dist/chunks/{models-dev-q99012f4.js → aisdk-bkcx3r11.js} +5 -5
- package/dist/chunks/{models-dev-z674g4fe.js → aisdk-bmt34esd.js} +5 -5
- package/dist/chunks/{models-dev-exf727rb.js → aisdk-brr9ad8x.js} +14 -14
- package/dist/chunks/{models-dev-rj3eygr5.js → aisdk-c41wscbt.js} +2 -2
- package/dist/chunks/{models-dev-r6nx9ea1.js → aisdk-c4hxf7c1.js} +4 -4
- package/dist/chunks/{models-dev-sa8ekw3f.js → aisdk-c8ax2afj.js} +2 -2
- package/dist/chunks/{models-dev-w5yqftge.js → aisdk-c8bydgjz.js} +6 -6
- package/dist/chunks/{models-dev-vejj3c3m.js → aisdk-ca1hzz0z.js} +7 -7
- package/dist/chunks/{models-dev-7pf0npr8.js → aisdk-cbz4cyr6.js} +34 -34
- package/dist/chunks/{models-dev-def9paz3.js → aisdk-cebjs1pj.js} +19 -19
- package/dist/chunks/{models-dev-qqaprteb.js → aisdk-ckzv1z6f.js} +23 -23
- package/dist/chunks/{models-dev-cfbvewbn.js → aisdk-cnspkvmr.js} +8 -8
- package/dist/chunks/{models-dev-w279zete.js → aisdk-czyyzgrn.js} +3 -3
- package/dist/chunks/{models-dev-53bwmvrs.js → aisdk-d0n2pa2f.js} +18 -18
- package/dist/chunks/{models-dev-9w1ahreb.js → aisdk-ddhw5281.js} +11 -11
- package/dist/chunks/{models-dev-ttqh24zm.js → aisdk-dhmh7aw6.js} +4 -4
- package/dist/chunks/{models-dev-dqxsqydv.js → aisdk-dqxsqydv.js} +1 -1
- package/dist/chunks/{models-dev-xfkkasph.js → aisdk-drwq78ky.js} +4 -4
- package/dist/chunks/{models-dev-4yd5fbph.js → aisdk-dt5fbgdr.js} +6 -6
- package/dist/chunks/{models-dev-fxa0txsv.js → aisdk-e1175tqm.js} +6 -6
- package/dist/chunks/{models-dev-nma959mg.js → aisdk-ed1g29hy.js} +3 -3
- package/dist/chunks/{models-dev-eej6y6fw.js → aisdk-eej6y6fw.js} +2 -2
- package/dist/chunks/{models-dev-ef5x83kb.js → aisdk-ef5x83kb.js} +1 -1
- package/dist/chunks/{models-dev-6sw9fmpn.js → aisdk-eh0arz98.js} +23 -23
- package/dist/chunks/{models-dev-tnfq8jy1.js → aisdk-ek71yh6y.js} +3 -3
- package/dist/chunks/{models-dev-ne1rtgc4.js → aisdk-ep1drg1v.js} +19 -19
- package/dist/chunks/{models-dev-c1fqxshp.js → aisdk-es1vcfrp.js} +3 -3
- package/dist/chunks/{models-dev-1acjjqhc.js → aisdk-f2n192rq.js} +4 -4
- package/dist/chunks/{models-dev-g542tba5.js → aisdk-fep59p9d.js} +18 -18
- package/dist/chunks/{models-dev-9mspzzv3.js → aisdk-fy2jq6zh.js} +26 -26
- package/dist/chunks/{models-dev-h4qzttw4.js → aisdk-g3bpjfm9.js} +12 -12
- package/dist/chunks/{models-dev-0fd9rtpr.js → aisdk-g69z2b5z.js} +4 -4
- package/dist/chunks/{models-dev-r2m716tb.js → aisdk-g6q9qykm.js} +8 -8
- package/dist/chunks/{models-dev-r2v4c7r0.js → aisdk-g8zcrvva.js} +8 -8
- package/dist/chunks/{models-dev-eaj1djv9.js → aisdk-gbt6w4kb.js} +4 -4
- package/dist/chunks/{models-dev-der31pa6.js → aisdk-gcpn98ra.js} +11 -11
- package/dist/chunks/{models-dev-gd4qta3r.js → aisdk-gd4qta3r.js} +1 -1
- package/dist/chunks/{models-dev-8y31xnqm.js → aisdk-ghrzdqqx.js} +5 -5
- package/dist/chunks/{models-dev-w34ghdqv.js → aisdk-gjg2yaky.js} +18 -18
- package/dist/chunks/{models-dev-tcm1z2d3.js → aisdk-gntdkxck.js} +26 -26
- package/dist/chunks/{models-dev-chzxqsgq.js → aisdk-gnwtzy4t.js} +10 -10
- package/dist/chunks/{models-dev-zw2hpfmh.js → aisdk-gqtdsdt7.js} +4 -4
- package/dist/chunks/{models-dev-2eegacq4.js → aisdk-gqxmd7mw.js} +8 -8
- package/dist/chunks/{models-dev-j7kjqw9c.js → aisdk-gyprjd1a.js} +15 -15
- package/dist/chunks/{models-dev-n719bmz2.js → aisdk-h1ewnpgd.js} +8 -8
- package/dist/chunks/{models-dev-pnkm48qv.js → aisdk-h4wt8rpg.js} +5 -5
- package/dist/chunks/{models-dev-16ev1epb.js → aisdk-h5kszb2b.js} +6 -6
- package/dist/chunks/{models-dev-h6vf3j39.js → aisdk-h6vf3j39.js} +1 -1
- package/dist/chunks/{models-dev-31xfzrxg.js → aisdk-h7s7r6s9.js} +5 -5
- package/dist/chunks/{models-dev-ftdzjz2b.js → aisdk-had4kgfk.js} +6 -6
- package/dist/chunks/{models-dev-b3f8fkhc.js → aisdk-hdkng2sj.js} +5 -5
- package/dist/chunks/{models-dev-zraydsc8.js → aisdk-hdzb4m3t.js} +58 -18
- package/dist/chunks/{models-dev-hgz4x7wa.js → aisdk-hgz4x7wa.js} +1 -1
- package/dist/chunks/{models-dev-pp7fv7gg.js → aisdk-hn64vtcm.js} +27 -27
- package/dist/chunks/{models-dev-amm44qpy.js → aisdk-hn7a938y.js} +33 -33
- package/dist/chunks/{models-dev-1zz447br.js → aisdk-hy2fzc5d.js} +2 -2
- package/dist/chunks/{models-dev-s57397y3.js → aisdk-j5g18e5b.js} +6 -6
- package/dist/chunks/{models-dev-44ztmpr7.js → aisdk-j618ymcj.js} +9 -9
- package/dist/chunks/{models-dev-40w0p124.js → aisdk-jncmynhd.js} +7 -7
- package/dist/chunks/{models-dev-jq0rpjdr.js → aisdk-jp40yajm.js} +34 -34
- package/dist/chunks/{models-dev-tp4b1bzx.js → aisdk-jqc51egb.js} +41 -41
- package/dist/chunks/{models-dev-pf0fhmd2.js → aisdk-jrp51j04.js} +39 -39
- package/dist/chunks/{models-dev-g3vramwt.js → aisdk-jtq8c6bz.js} +24 -24
- package/dist/chunks/{models-dev-n6b6t8ge.js → aisdk-jzvqt58q.js} +154 -154
- package/dist/chunks/{models-dev-e8wjtz0a.js → aisdk-k1y0fary.js} +14 -14
- package/dist/chunks/{models-dev-4a2kvcyx.js → aisdk-k6t9754k.js} +2 -2
- package/dist/chunks/{models-dev-k0p5wtrw.js → aisdk-kcjr7fdz.js} +10 -10
- package/dist/chunks/{models-dev-3z3qxvgv.js → aisdk-khqk2y7t.js} +4 -4
- package/dist/chunks/{models-dev-1ag258ha.js → aisdk-kk382q8p.js} +14 -14
- package/dist/chunks/{models-dev-xxxym934.js → aisdk-kkp8zx71.js} +4 -4
- package/dist/chunks/{models-dev-gj4fng0j.js → aisdk-kn8evc9s.js} +6 -6
- package/dist/chunks/{models-dev-dmcbatnv.js → aisdk-kqzqf6w1.js} +29 -27
- package/dist/chunks/{models-dev-yj7ap6wh.js → aisdk-kvkn6k3t.js} +12 -7
- package/dist/chunks/{models-dev-gkpzsx3g.js → aisdk-kwg875ew.js} +6 -6
- package/dist/chunks/{models-dev-4j0s3f1z.js → aisdk-kwqxa2v3.js} +26 -26
- package/dist/chunks/{models-dev-6b4s32pe.js → aisdk-kwtnqx2s.js} +43 -43
- package/dist/chunks/{models-dev-7vvfjza7.js → aisdk-m8sxp9ep.js} +4 -4
- package/dist/chunks/{models-dev-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{models-dev-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
- package/dist/chunks/{models-dev-h31q8pzv.js → aisdk-mczb847s.js} +88 -71
- package/dist/chunks/{models-dev-1y9xp183.js → aisdk-mhnyy3p3.js} +11 -11
- package/dist/chunks/{models-dev-bawh3mmn.js → aisdk-mssy7j36.js} +11 -11
- package/dist/chunks/{models-dev-1bmjn0qh.js → aisdk-n61013np.js} +8 -8
- package/dist/chunks/{models-dev-tc9a9trd.js → aisdk-ndvnmqc7.js} +5 -5
- package/dist/chunks/{models-dev-67w13yab.js → aisdk-ney03z9t.js} +14 -14
- package/dist/chunks/{models-dev-cp03681x.js → aisdk-ng0v81ka.js} +23 -23
- package/dist/chunks/{models-dev-jc24bqrg.js → aisdk-nkfzcvx9.js} +25 -25
- package/dist/chunks/{models-dev-jzafs8w8.js → aisdk-ny7nr0z6.js} +13 -13
- package/dist/chunks/{models-dev-przmv82z.js → aisdk-p25etbfn.js} +53 -53
- package/dist/chunks/{models-dev-9hn6k4tm.js → aisdk-p4mj4rdp.js} +8 -8
- package/dist/chunks/{models-dev-dtbp0az5.js → aisdk-p7hn8v3g.js} +33 -33
- package/dist/chunks/{models-dev-p0yt5z7b.js → aisdk-pawv45b9.js} +7 -7
- package/dist/chunks/{models-dev-qwrtgfw9.js → aisdk-pee0pbdz.js} +19 -19
- package/dist/chunks/{models-dev-pjvnvgmy.js → aisdk-pjvnvgmy.js} +1 -1
- package/dist/chunks/{models-dev-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{models-dev-sy29epdy.js → aisdk-pnkbpv6t.js} +9 -9
- package/dist/chunks/{models-dev-atgr3bca.js → aisdk-pt21w9jz.js} +6 -6
- package/dist/chunks/{models-dev-y5f3qdbg.js → aisdk-pxka6q5y.js} +6 -6
- package/dist/chunks/{models-dev-j4cy7cnw.js → aisdk-py916kcr.js} +23 -23
- package/dist/chunks/{models-dev-q0xm7vwc.js → aisdk-q0xm7vwc.js} +2 -2
- package/dist/chunks/{models-dev-5fp945c2.js → aisdk-q5667xnb.js} +34 -34
- package/dist/chunks/{models-dev-jqdtsh0k.js → aisdk-qkvv7exj.js} +6 -6
- package/dist/chunks/{models-dev-v5dkyp31.js → aisdk-qm0v3jhh.js} +7 -7
- package/dist/chunks/{models-dev-qnc92qwc.js → aisdk-qnc92qwc.js} +1 -1
- package/dist/chunks/{models-dev-qsdy395h.js → aisdk-qsdy395h.js} +1 -1
- package/dist/chunks/{models-dev-zns4059n.js → aisdk-r301by7f.js} +32 -32
- package/dist/chunks/{models-dev-xe4ej41e.js → aisdk-r5a5netf.js} +3 -3
- package/dist/chunks/{models-dev-h7t40bj9.js → aisdk-r6ws07f9.js} +24 -24
- package/dist/chunks/{models-dev-rdw6cm16.js → aisdk-rdw6cm16.js} +1 -1
- package/dist/chunks/{models-dev-2zmthsaw.js → aisdk-rhcvmn6p.js} +13 -13
- package/dist/chunks/{models-dev-h9ca6das.js → aisdk-rn4mn6ps.js} +29 -29
- package/dist/chunks/{models-dev-a5r769m5.js → aisdk-rnmftz9c.js} +3 -3
- package/dist/chunks/{models-dev-w14svz1x.js → aisdk-rnxtg4z5.js} +17 -17
- package/dist/chunks/{models-dev-776y9j3r.js → aisdk-rvcf04rx.js} +10 -10
- package/dist/chunks/{models-dev-ee7z4jhw.js → aisdk-rwcz0b7d.js} +1 -1
- package/dist/chunks/{models-dev-03kcssjc.js → aisdk-s134j6s3.js} +20 -20
- package/dist/chunks/{models-dev-fjmzp0tw.js → aisdk-sfvhxs4k.js} +11 -11
- package/dist/chunks/{models-dev-fg7rvfgd.js → aisdk-snjfpvqg.js} +4 -4
- package/dist/chunks/{models-dev-gkzmer85.js → aisdk-srrgwxhj.js} +9 -9
- package/dist/chunks/{models-dev-sy9p4j0h.js → aisdk-srsfvfn6.js} +9 -9
- package/dist/chunks/{models-dev-7h45aa62.js → aisdk-sxxbqwwt.js} +12 -12
- package/dist/chunks/{models-dev-f29mbr7f.js → aisdk-syf57q56.js} +4 -4
- package/dist/chunks/{models-dev-syv4x271.js → aisdk-syv4x271.js} +1 -1
- package/dist/chunks/{models-dev-5b36zhdq.js → aisdk-t285x4g3.js} +1 -1
- package/dist/chunks/{models-dev-4xk664jz.js → aisdk-ta649at8.js} +13 -13
- package/dist/chunks/{models-dev-tazgh4e4.js → aisdk-tazgh4e4.js} +1 -1
- package/dist/chunks/{models-dev-tcezcvh9.js → aisdk-tcezcvh9.js} +1 -1
- package/dist/chunks/{models-dev-377xsr3z.js → aisdk-tcfggkjh.js} +26 -26
- package/dist/chunks/{models-dev-tdstcens.js → aisdk-tdstcens.js} +1 -1
- package/dist/chunks/{models-dev-ncvmk5m4.js → aisdk-tg1sa0zd.js} +11 -11
- package/dist/chunks/{models-dev-s3dva4n9.js → aisdk-tk29pyxt.js} +33 -33
- package/dist/chunks/{models-dev-rert0e01.js → aisdk-tkb22qbm.js} +2 -2
- package/dist/chunks/{models-dev-z8n2363b.js → aisdk-tktqgzb5.js} +10 -10
- package/dist/chunks/{models-dev-tm0kqsz3.js → aisdk-tm0kqsz3.js} +1 -1
- package/dist/chunks/{models-dev-kad49353.js → aisdk-tm1yjyv5.js} +9 -9
- package/dist/chunks/{models-dev-gvwj8vkh.js → aisdk-tnxf96wz.js} +47 -47
- package/dist/chunks/{models-dev-dm8adwt8.js → aisdk-tqnthxgz.js} +15 -15
- package/dist/chunks/{models-dev-eqe1hgr3.js → aisdk-tt0r5krd.js} +32 -32
- package/dist/chunks/{models-dev-tyytaxap.js → aisdk-tyytaxap.js} +1 -1
- package/dist/chunks/{models-dev-tg7bkhef.js → aisdk-v0es1rhs.js} +7 -7
- package/dist/chunks/{models-dev-v7p4zvkq.js → aisdk-v7p4zvkq.js} +2 -2
- package/dist/chunks/{models-dev-90zwzkn8.js → aisdk-v87reym6.js} +18 -18
- package/dist/chunks/{models-dev-71gw1qhf.js → aisdk-v8mj3nbf.js} +8 -8
- package/dist/chunks/{models-dev-99k76h2n.js → aisdk-v8yjsky9.js} +24 -24
- package/dist/chunks/{models-dev-wy79b22n.js → aisdk-vc8rkrvg.js} +16 -16
- package/dist/chunks/{models-dev-rv7fjx0e.js → aisdk-vdwrby47.js} +87 -87
- package/dist/chunks/{models-dev-04pkavx0.js → aisdk-vefpcrtg.js} +18 -18
- package/dist/chunks/{models-dev-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{models-dev-z717rqr2.js → aisdk-vwt754jt.js} +24 -24
- package/dist/chunks/{models-dev-hg0bbgej.js → aisdk-vy7zp3s1.js} +33 -33
- package/dist/chunks/{models-dev-dfn94x2p.js → aisdk-vzqtbm0w.js} +8 -8
- package/dist/chunks/{models-dev-vzs5sf6e.js → aisdk-vzs5sf6e.js} +1 -1
- package/dist/chunks/{models-dev-w1eejvng.js → aisdk-w1eejvng.js} +1 -1
- package/dist/chunks/{models-dev-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{models-dev-btfhnvjh.js → aisdk-w8yd89gy.js} +3 -3
- package/dist/chunks/{models-dev-535xetsj.js → aisdk-w9c29var.js} +14 -14
- package/dist/chunks/{models-dev-yjt07j1s.js → aisdk-wb0zn2k1.js} +28 -28
- package/dist/chunks/{models-dev-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{models-dev-zqqjdhsj.js → aisdk-weztskp3.js} +25 -28
- package/dist/chunks/{models-dev-nz070p1t.js → aisdk-wfhw6drb.js} +16 -16
- package/dist/chunks/{models-dev-gknxwv8e.js → aisdk-wmr7txpb.js} +8 -8
- package/dist/chunks/{models-dev-z8atd5pr.js → aisdk-wr23jhdb.js} +25 -25
- package/dist/chunks/{models-dev-m9tqcdk7.js → aisdk-wvwwzcbm.js} +4 -4
- package/dist/chunks/{models-dev-60pdm2te.js → aisdk-x289r1av.js} +9 -9
- package/dist/chunks/{models-dev-y1fvbwt7.js → aisdk-y1fvbwt7.js} +1 -1
- package/dist/chunks/{models-dev-dpkg50ah.js → aisdk-y71avatq.js} +4 -4
- package/dist/chunks/{models-dev-tbr9sggg.js → aisdk-yja080mn.js} +15 -15
- package/dist/chunks/{models-dev-k3bh1kct.js → aisdk-ymg6w8bb.js} +5 -5
- package/dist/chunks/{models-dev-a78pnqce.js → aisdk-yq8szx40.js} +16 -16
- package/dist/chunks/{models-dev-p26qd6yr.js → aisdk-ys0ya0h1.js} +10 -10
- package/dist/chunks/{models-dev-wg81ww38.js → aisdk-yscr5c9x.js} +4 -4
- package/dist/chunks/{models-dev-s10kan0c.js → aisdk-yt6k9cb9.js} +11 -11
- package/dist/chunks/{models-dev-hy6y24pa.js → aisdk-yvft115s.js} +26 -26
- package/dist/chunks/{models-dev-bjx1sjef.js → aisdk-ywt8jp22.js} +9 -9
- package/dist/chunks/{models-dev-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{models-dev-ccdspec8.js → aisdk-zqjt0nqh.js} +15 -15
- package/dist/chunks/{models-dev-fy63hwwg.js → aisdk-zqsenmzc.js} +36 -36
- package/dist/chunks/{models-dev-zr2ceqn5.js → aisdk-zr2ceqn5.js} +1 -1
- package/dist/chunks/{models-dev-3tvaqmjg.js → aisdk-zrkpd8am.js} +15 -15
- package/dist/chunks/{models-dev-nv1dfxw5.js → aisdk-zvsjz6zg.js} +19 -19
- package/dist/chunks/{models-dev-zxq2ej10.js → aisdk-zxq2ej10.js} +1 -1
- package/dist/chunks/{models-dev-1r9yygpd.js → aisdk-zyjphah6.js} +22 -22
- package/dist/chunks/{models-dev-0nfqnsth.js → aisdk-zzyddtb8.js} +2 -2
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- 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 +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.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 +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +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 +4 -4
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +100 -100
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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 +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- 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 +356 -356
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +4 -4
- 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 +100 -100
- package/dist/model.js +98 -98
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +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 +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- 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 +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- 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 +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- 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 +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- 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 +116 -116
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- 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 +137 -137
- 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 +213 -213
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- 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 +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- 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 +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- 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 +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- 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 +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +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 +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +214 -214
- 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 +14 -14
- package/dist/types/provider.d.ts +7 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -0
- package/dist/types/session/runner/step.d.ts +32 -3
- 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 +5 -5
- 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 +1 -1
- 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 +89 -89
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/models-dev-7g3ne4jb.js +0 -253
- package/dist/chunks/models-dev-ctefx7dc.js +0 -18
- package/dist/chunks/models-dev-hahpb3j6.js +0 -513
- package/dist/chunks/models-dev-v09kr3t5.js +0 -26
- /package/dist/chunks/{models-dev-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{models-dev-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{models-dev-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{models-dev-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{models-dev-1kg9ymc8.js → aisdk-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{models-dev-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{models-dev-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{models-dev-2axfhc9x.js → aisdk-2axfhc9x.js} +0 -0
- /package/dist/chunks/{models-dev-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
- /package/dist/chunks/{models-dev-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{models-dev-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{models-dev-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{models-dev-3t0ybcrp.js → aisdk-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{models-dev-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{models-dev-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{models-dev-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{models-dev-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{models-dev-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{models-dev-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{models-dev-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{models-dev-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{models-dev-5qd3pb7m.js → aisdk-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{models-dev-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{models-dev-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{models-dev-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{models-dev-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{models-dev-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{models-dev-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{models-dev-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{models-dev-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{models-dev-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{models-dev-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{models-dev-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{models-dev-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{models-dev-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{models-dev-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{models-dev-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{models-dev-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{models-dev-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{models-dev-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{models-dev-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{models-dev-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{models-dev-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{models-dev-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{models-dev-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{models-dev-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{models-dev-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{models-dev-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{models-dev-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{models-dev-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{models-dev-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{models-dev-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{models-dev-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{models-dev-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{models-dev-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{models-dev-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{models-dev-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{models-dev-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{models-dev-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{models-dev-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{models-dev-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{models-dev-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{models-dev-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{models-dev-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{models-dev-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{models-dev-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{models-dev-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{models-dev-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{models-dev-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
- /package/dist/chunks/{models-dev-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{models-dev-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{models-dev-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{models-dev-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{models-dev-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{models-dev-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{models-dev-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{models-dev-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{models-dev-pyv0edze.js → aisdk-pyv0edze.js} +0 -0
- /package/dist/chunks/{models-dev-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{models-dev-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{models-dev-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{models-dev-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{models-dev-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{models-dev-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{models-dev-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{models-dev-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{models-dev-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{models-dev-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{models-dev-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{models-dev-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{models-dev-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{models-dev-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{models-dev-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
- /package/dist/chunks/{models-dev-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{models-dev-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{models-dev-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{models-dev-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{models-dev-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{models-dev-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{models-dev-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{models-dev-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{models-dev-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin48,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin48 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin9 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin48, exports_identity };
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
ID8,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-kqzqf6w1.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID6,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
10
|
Info15
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-ng0v81ka.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
17
|
var exports_models = {};
|
|
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID6.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -121,7 +121,7 @@ function build(id, remote, baseURL, previous) {
|
|
|
121
121
|
return Info15.make({
|
|
122
122
|
...Info15.default(ID8.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
124
|
+
modelID: ID6.make(remote.id),
|
|
125
125
|
providerID: ID8.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-c4hxf7c1.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-gqtdsdt7.js";
|
|
12
12
|
import {
|
|
13
13
|
ID9,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
14
|
+
Service67,
|
|
15
|
+
node69,
|
|
16
|
+
Event16
|
|
17
|
+
} from "./aisdk-1tk9ptda.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service81,
|
|
20
|
+
node85
|
|
21
|
+
} from "./aisdk-76b2c9rp.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -37,14 +37,15 @@ var exports_provider3 = {};
|
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
|
+
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
40
41
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
41
|
-
Event: () =>
|
|
42
|
+
Event: () => Event15,
|
|
42
43
|
ID: () => ID8,
|
|
43
|
-
Info: () =>
|
|
44
|
+
Info: () => Info17,
|
|
44
45
|
LoadError: () => LoadError3,
|
|
45
46
|
Provider: () => exports_provider3,
|
|
46
47
|
Request: () => Request2,
|
|
47
|
-
Service: () =>
|
|
48
|
+
Service: () => Service66,
|
|
48
49
|
Settings: () => Settings2,
|
|
49
50
|
Transport: () => Transport2,
|
|
50
51
|
aisdk: () => aisdk2,
|
|
@@ -55,7 +56,7 @@ __export(exports_provider3, {
|
|
|
55
56
|
mergeOverlay: () => mergeOverlay2,
|
|
56
57
|
modelSettings: () => modelSettings2,
|
|
57
58
|
nativeSettings: () => nativeSettings2,
|
|
58
|
-
node: () =>
|
|
59
|
+
node: () => node68,
|
|
59
60
|
packageName: () => packageName2,
|
|
60
61
|
timeout: () => timeout2,
|
|
61
62
|
timeouts: () => timeouts2
|
|
@@ -69,7 +70,7 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
69
70
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
70
71
|
import { Credential } from "@opencode/schema/credential";
|
|
71
72
|
import { freeze } from "immer";
|
|
72
|
-
import { Event as
|
|
73
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
73
74
|
var ID8 = Provider.ID;
|
|
74
75
|
var AISDK_PREFIX2 = "aisdk:";
|
|
75
76
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
@@ -208,6 +209,7 @@ function modelSettings2(settings) {
|
|
|
208
209
|
}
|
|
209
210
|
var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
|
|
210
211
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
212
|
+
var DEFAULT_CHUNK_TIMEOUT_MS2 = 900000;
|
|
211
213
|
function timeout2(value) {
|
|
212
214
|
return Option.getOrUndefined(decodeTimeout(value));
|
|
213
215
|
}
|
|
@@ -215,7 +217,7 @@ function timeouts2(settings) {
|
|
|
215
217
|
return {
|
|
216
218
|
timeout: timeout2(settings.timeout),
|
|
217
219
|
headerTimeout: timeout2(settings.headerTimeout) ?? DEFAULT_TIMEOUT_MS3,
|
|
218
|
-
chunkTimeout: timeout2(settings.chunkTimeout) ??
|
|
220
|
+
chunkTimeout: timeout2(settings.chunkTimeout) ?? DEFAULT_CHUNK_TIMEOUT_MS2
|
|
219
221
|
};
|
|
220
222
|
}
|
|
221
223
|
var decodeEncoding = Schema.decodeUnknownOption(Provider.Encoding);
|
|
@@ -251,9 +253,9 @@ var Request2 = Provider.Request;
|
|
|
251
253
|
var Compaction3 = Provider.Compaction;
|
|
252
254
|
var Transport2 = Provider.Transport;
|
|
253
255
|
var Settings2 = Provider.Settings;
|
|
254
|
-
var
|
|
256
|
+
var Info17 = Provider.Info;
|
|
255
257
|
|
|
256
|
-
class
|
|
258
|
+
class Service66 extends Context.Service()("@opencode/Provider") {
|
|
257
259
|
}
|
|
258
260
|
var definitions = new WeakMap;
|
|
259
261
|
function index(providerID, models) {
|
|
@@ -266,10 +268,10 @@ function index(providerID, models) {
|
|
|
266
268
|
definitions.set(models, indexes);
|
|
267
269
|
return result;
|
|
268
270
|
}
|
|
269
|
-
var layer = Layer.effect(
|
|
271
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
270
272
|
const bus = yield* Service84;
|
|
271
|
-
const integrations = yield*
|
|
272
|
-
const location = yield*
|
|
273
|
+
const integrations = yield* Service67;
|
|
274
|
+
const location = yield* Service81;
|
|
273
275
|
const state = create3({
|
|
274
276
|
name: "provider",
|
|
275
277
|
initial: () => new Map,
|
|
@@ -280,7 +282,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
280
282
|
const current = records.get(id);
|
|
281
283
|
if (current)
|
|
282
284
|
return current;
|
|
283
|
-
const added = { provider:
|
|
285
|
+
const added = { provider: Info17.empty(id), models: new Map };
|
|
284
286
|
records.set(id, added);
|
|
285
287
|
maps.add(added.models);
|
|
286
288
|
return added;
|
|
@@ -387,8 +389,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
387
389
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
388
390
|
});
|
|
389
391
|
});
|
|
390
|
-
yield* bus.subscribe([
|
|
391
|
-
return
|
|
392
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
393
|
+
return Service66.of({
|
|
392
394
|
transform: state.transform,
|
|
393
395
|
reload: state.reload,
|
|
394
396
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -397,7 +399,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
397
399
|
snapshot
|
|
398
400
|
});
|
|
399
401
|
}));
|
|
400
|
-
var
|
|
402
|
+
var node68 = makeLocationNode({ service: Service66, layer, deps: [node88, node69, node85] });
|
|
401
403
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
402
404
|
const module = yield* Effect.tryPromise({
|
|
403
405
|
try: () => {
|
|
@@ -675,4 +677,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
675
677
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
676
678
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
677
679
|
|
|
678
|
-
export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2,
|
|
680
|
+
export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info17, Service66, node68, exports_provider3, Event15 };
|
|
@@ -2,17 +2,18 @@ import {
|
|
|
2
2
|
provider2,
|
|
3
3
|
model2,
|
|
4
4
|
compatibleModel2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-tm0kqsz3.js";
|
|
6
6
|
import {
|
|
7
|
-
aisdk2
|
|
8
|
-
|
|
7
|
+
aisdk2,
|
|
8
|
+
packageName2
|
|
9
|
+
} from "./aisdk-kqzqf6w1.js";
|
|
9
10
|
import {
|
|
10
11
|
Capabilities2,
|
|
11
12
|
compatibility2
|
|
12
|
-
} from "./
|
|
13
|
+
} from "./aisdk-ng0v81ka.js";
|
|
13
14
|
import {
|
|
14
15
|
__export
|
|
15
|
-
} from "./
|
|
16
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
16
17
|
|
|
17
18
|
// src/v1/config/migrate.ts
|
|
18
19
|
var exports_migrate = {};
|
|
@@ -126,7 +127,7 @@ function migrateStandardProvider(info) {
|
|
|
126
127
|
return {
|
|
127
128
|
name: info.name,
|
|
128
129
|
env: info.env,
|
|
129
|
-
package: info.npm ?
|
|
130
|
+
package: info.npm ? packageSpecifier(info.npm) : undefined,
|
|
130
131
|
compatibility: setCacheKey === undefined ? undefined : { supportsPromptCacheKey: setCacheKey },
|
|
131
132
|
settings: info.api ? { ...options.settings, baseURL: info.api } : info.options ? options.settings : undefined,
|
|
132
133
|
headers: info.options && options.headers,
|
|
@@ -162,6 +163,10 @@ function migrateGoogleVertexAnthropicProvider(info) {
|
|
|
162
163
|
]))
|
|
163
164
|
};
|
|
164
165
|
}
|
|
166
|
+
function packageSpecifier(npm) {
|
|
167
|
+
const name = packageName2(npm);
|
|
168
|
+
return name.startsWith("@opencode/ai/") ? name : aisdk2(npm);
|
|
169
|
+
}
|
|
165
170
|
function providerID2(input) {
|
|
166
171
|
if (input === "azure-cognitive-services")
|
|
167
172
|
return "azure";
|
|
@@ -215,7 +220,7 @@ function migrateModel(info, npm) {
|
|
|
215
220
|
family: info.family,
|
|
216
221
|
name: info.name,
|
|
217
222
|
compatibility: disableThinkingBlockBinding ? { ...compatibility, supportsThinkingBlockBinding: false } : compatibility,
|
|
218
|
-
package: info.provider?.npm ?
|
|
223
|
+
package: info.provider?.npm ? packageSpecifier(info.provider.npm) : undefined,
|
|
219
224
|
settings: info.provider?.api ? { ...settings, baseURL: info.provider.api } : settings,
|
|
220
225
|
capabilities,
|
|
221
226
|
headers: info.headers,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-2bv980vf.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-czyyzgrn.js";
|
|
8
8
|
import {
|
|
9
9
|
Service84,
|
|
10
10
|
node88
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-c4hxf7c1.js";
|
|
12
12
|
import {
|
|
13
13
|
Service83,
|
|
14
14
|
node87
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-ymg6w8bb.js";
|
|
16
16
|
import {
|
|
17
17
|
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info29,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-v0es1rhs.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./aisdk-c41wscbt.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-c8ax2afj.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
39
|
ID: () => ID17,
|
|
40
|
-
Info: () =>
|
|
40
|
+
Info: () => Info28,
|
|
41
41
|
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service82,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node86,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -59,7 +59,7 @@ import { Hash } from "@opencode/util/hash";
|
|
|
59
59
|
var ID17 = ID18;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info28 = Info29;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
65
|
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service82 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,7 +98,7 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
103
|
const git = yield* Service83;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event21.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
173
173
|
if (!row)
|
|
174
174
|
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event21.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
190
|
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service82.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node86 = makeGlobalNode({
|
|
310
|
+
service: Service82,
|
|
311
311
|
layer,
|
|
312
312
|
deps: [node88, node89, FSUtil.node, node87, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service82;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node86]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export { ID17, Vcs2, Current2,
|
|
323
|
+
export { ID17, Vcs2, Current2, Info28, UpdateInput3, NotFoundError11, root2, Service82, node86, sweepNode2, exports_project };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service74
|
|
4
|
+
} from "./aisdk-3rmrymsq.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service60
|
|
8
|
+
} from "./aisdk-ng0v81ka.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service38
|
|
12
|
+
} from "./aisdk-jrp51j04.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-w8yd89gy.js";
|
|
16
16
|
import {
|
|
17
17
|
Service57
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-g3bpjfm9.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service70
|
|
22
|
+
} from "./aisdk-p25etbfn.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service21
|
|
25
|
+
} from "./aisdk-vdwrby47.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./aisdk-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service9
|
|
31
|
+
} from "./aisdk-vc8rkrvg.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input12,
|
|
40
|
+
Output: () => Output8,
|
|
41
|
+
Plugin: () => Plugin32,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description5,
|
|
44
|
+
name: () => name12
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name12 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input12 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input2 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output8 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description5 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description2 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin32 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
92
|
+
const sessions = yield* Service21;
|
|
93
93
|
const jobs = yield* Service57;
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
94
|
+
const agents = yield* Service74;
|
|
95
|
+
const config = yield* Service38;
|
|
96
|
+
const permission = yield* Service70;
|
|
97
|
+
const models = yield* Service60;
|
|
98
|
+
const subagents = yield* Service9;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin18 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name12,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description5,
|
|
121
|
+
input: Input12,
|
|
122
|
+
output: Output8,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin18 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name12,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin18 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID14.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name12 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name12];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name12, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name12, Input12, Output8, description5, Plugin32, exports_subagent };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service79
|
|
3
|
+
} from "./aisdk-3gsvm8tc.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
|
21
21
|
var EXIT_WAIT = Duration.seconds(1);
|
|
22
22
|
var STDERR_TAIL = 1000;
|
|
23
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
24
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service79;
|
|
25
25
|
const scope = yield* Effect.scope;
|
|
26
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
27
27
|
const buffer = new ReadBuffer;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
orderSelectedFields2,
|
|
5
5
|
mapUpdateSet2,
|
|
6
6
|
getTableLikeName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-emrn6kk6.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/update.ts
|
|
10
10
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|