@opencode/core 0.0.0-dev-19436 → 0.0.0-dev-19437
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 +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +67 -67
- package/dist/catalog.js +83 -83
- package/dist/chunks/{generate-tqfej29b.js → aisdk-native-00xmw14g.js} +16 -16
- package/dist/chunks/{generate-vd9xqktw.js → aisdk-native-0840f9aq.js} +46 -46
- package/dist/chunks/{generate-sex50t12.js → aisdk-native-0gybywnx.js} +13 -13
- package/dist/chunks/{generate-ygw6154k.js → aisdk-native-0mpna936.js} +33 -33
- package/dist/chunks/{generate-0paq2nw3.js → aisdk-native-0paq2nw3.js} +1 -1
- package/dist/chunks/{generate-fbyxhnwk.js → aisdk-native-0px0gx5m.js} +11 -11
- package/dist/chunks/{generate-0q0f95c6.js → aisdk-native-0q0f95c6.js} +1 -1
- package/dist/chunks/{generate-c0y0jbg7.js → aisdk-native-0rzdqhx6.js} +15 -15
- package/dist/chunks/{generate-gtq86vsq.js → aisdk-native-0y4h6tbz.js} +7 -7
- package/dist/chunks/{generate-t7z3zppm.js → aisdk-native-11h1hnb3.js} +2 -2
- package/dist/chunks/{generate-ebhw3mq4.js → aisdk-native-14vj0jvn.js} +4 -4
- package/dist/chunks/{generate-yp2x3t23.js → aisdk-native-1acjjqhc.js} +4 -4
- package/dist/chunks/{generate-282ycpdt.js → aisdk-native-1bcw1qtd.js} +12 -12
- package/dist/chunks/{generate-1dazxqgg.js → aisdk-native-1dazxqgg.js} +2 -2
- package/dist/chunks/{generate-znesh5ka.js → aisdk-native-1dsb41mm.js} +9 -9
- package/dist/chunks/{generate-wdgp3mgb.js → aisdk-native-1hb8yyvn.js} +4 -4
- package/dist/chunks/{generate-21r38tys.js → aisdk-native-21r38tys.js} +1 -1
- package/dist/chunks/{generate-xnpbk0pc.js → aisdk-native-230e0txc.js} +5 -5
- package/dist/chunks/{generate-52fpbh6z.js → aisdk-native-23279rje.js} +8 -8
- package/dist/chunks/{generate-7d9ys0qb.js → aisdk-native-23rr3770.js} +29 -29
- package/dist/chunks/{generate-2402vzrj.js → aisdk-native-2402vzrj.js} +1 -1
- package/dist/chunks/{generate-z63w68vq.js → aisdk-native-29x78va6.js} +6 -6
- package/dist/chunks/{generate-2a5m3afh.js → aisdk-native-2a5m3afh.js} +1 -1
- package/dist/chunks/{generate-4mef8aht.js → aisdk-native-2c8836h2.js} +10 -10
- package/dist/chunks/{generate-dk6e62g5.js → aisdk-native-2cnw5e9r.js} +9 -9
- package/dist/chunks/{generate-mxnz8za5.js → aisdk-native-2ewqh1jr.js} +20 -20
- package/dist/chunks/{generate-27pxjv6r.js → aisdk-native-2k01gwm7.js} +14 -14
- package/dist/chunks/{generate-e3mxans8.js → aisdk-native-2qp6y8xf.js} +5 -5
- package/dist/chunks/{generate-8yay56x4.js → aisdk-native-2rqbk1he.js} +5 -5
- package/dist/chunks/{generate-d18798dz.js → aisdk-native-2smzk9py.js} +29 -29
- package/dist/chunks/{generate-7pfda458.js → aisdk-native-33bws32g.js} +22 -22
- package/dist/chunks/{generate-6f6vgmrt.js → aisdk-native-38e760wk.js} +9 -9
- package/dist/chunks/{generate-3hepkmqq.js → aisdk-native-3hepkmqq.js} +1 -1
- package/dist/chunks/{generate-0wtspe5f.js → aisdk-native-3nbxrw4d.js} +15 -15
- package/dist/chunks/{generate-ay6pntn3.js → aisdk-native-3nekdnre.js} +24 -24
- package/dist/chunks/{generate-3smtnn6g.js → aisdk-native-3smtnn6g.js} +1 -1
- package/dist/chunks/{generate-fgh0kbhd.js → aisdk-native-3trbxeqx.js} +1 -1
- package/dist/chunks/{generate-3tvqynh2.js → aisdk-native-3tvqynh2.js} +1 -1
- package/dist/chunks/{generate-mkk216y0.js → aisdk-native-41983a39.js} +16 -16
- package/dist/chunks/aisdk-native-45th5jwr.js +18 -0
- package/dist/chunks/{generate-ta4djbce.js → aisdk-native-482x06dj.js} +168 -168
- package/dist/chunks/{generate-4qftt0ad.js → aisdk-native-50ap4gs0.js} +10 -10
- package/dist/chunks/{generate-83h91mzx.js → aisdk-native-53g2xa05.js} +9 -9
- package/dist/chunks/{generate-azsc15mm.js → aisdk-native-55e931th.js} +47 -47
- package/dist/chunks/{generate-33w4ejhs.js → aisdk-native-56gdpj1q.js} +6 -6
- package/dist/chunks/{generate-zv3e7t68.js → aisdk-native-593yh7cm.js} +2 -2
- package/dist/chunks/{generate-pkmfek68.js → aisdk-native-5aqfxp9a.js} +4 -4
- package/dist/chunks/{generate-4w9k0mjw.js → aisdk-native-5d140bk6.js} +15 -15
- package/dist/chunks/{generate-ztcv1eyd.js → aisdk-native-5d53psdr.js} +4 -4
- package/dist/chunks/{generate-5daktx2q.js → aisdk-native-5daktx2q.js} +1 -1
- package/dist/chunks/{generate-y60800f4.js → aisdk-native-5kcbcnxc.js} +3 -3
- package/dist/chunks/{generate-b1xvncj7.js → aisdk-native-5ktjab4p.js} +84 -84
- package/dist/chunks/aisdk-native-5rk65n7t.js +22 -0
- package/dist/chunks/{generate-5t3nmthw.js → aisdk-native-5t3nmthw.js} +2 -2
- package/dist/chunks/{generate-4r6mae84.js → aisdk-native-5vcmybmc.js} +24 -24
- package/dist/chunks/{generate-7b15y959.js → aisdk-native-5xtgfte3.js} +8 -8
- package/dist/chunks/{generate-669tq793.js → aisdk-native-669tq793.js} +1 -1
- package/dist/chunks/{generate-f2daj8m5.js → aisdk-native-6a0v8w2c.js} +15 -15
- package/dist/chunks/{generate-6msgmcgs.js → aisdk-native-6msgmcgs.js} +1 -1
- package/dist/chunks/{generate-mfhfdr54.js → aisdk-native-6p3xbzsx.js} +4 -4
- package/dist/chunks/{generate-71q4at8m.js → aisdk-native-71q4at8m.js} +1 -1
- package/dist/chunks/{generate-xvaj3ykh.js → aisdk-native-73fvzhyf.js} +6 -6
- package/dist/chunks/{generate-k8962brh.js → aisdk-native-73gmm198.js} +7 -7
- package/dist/chunks/{generate-7bmhse3q.js → aisdk-native-7bmhse3q.js} +1 -1
- package/dist/chunks/{generate-ccmz1r19.js → aisdk-native-7gd4x462.js} +8 -8
- package/dist/chunks/{generate-mf9m2v67.js → aisdk-native-7jdsj2a9.js} +3 -3
- package/dist/chunks/{generate-vzm76b3t.js → aisdk-native-7syv1xgw.js} +6 -6
- package/dist/chunks/{generate-eagyeves.js → aisdk-native-7w3v5q6j.js} +13 -13
- package/dist/chunks/{generate-n48wz30s.js → aisdk-native-7x6hfb2y.js} +28 -28
- package/dist/chunks/{generate-3v0kbfet.js → aisdk-native-7zdrdht4.js} +6 -6
- package/dist/chunks/{generate-3e8pesde.js → aisdk-native-81swgkk7.js} +9 -9
- package/dist/chunks/{generate-0yr4mqa9.js → aisdk-native-84rtzrf6.js} +10 -10
- package/dist/chunks/{generate-m27pyyd3.js → aisdk-native-84tssp1s.js} +6 -6
- package/dist/chunks/{generate-wy2fjyd3.js → aisdk-native-87py6qtt.js} +8 -8
- package/dist/chunks/{generate-460qmyvt.js → aisdk-native-88j01mk5.js} +23 -23
- package/dist/chunks/{generate-8d7r5vzw.js → aisdk-native-8d7r5vzw.js} +1 -1
- package/dist/chunks/{generate-dj2t23y0.js → aisdk-native-8p4f9s12.js} +2 -2
- package/dist/chunks/{generate-jqcr0tvq.js → aisdk-native-8pfv004b.js} +30 -30
- package/dist/chunks/{generate-aws7z9kx.js → aisdk-native-8s076s20.js} +16 -16
- package/dist/chunks/{generate-mfz1jzpf.js → aisdk-native-94vhyftb.js} +7 -7
- package/dist/chunks/{generate-cdtwy1r3.js → aisdk-native-9d1w8q7a.js} +32 -32
- package/dist/chunks/{generate-k16ay38w.js → aisdk-native-9k2v62xn.js} +1 -1
- package/dist/chunks/{generate-5c4hm403.js → aisdk-native-a1bz86dw.js} +3 -3
- package/dist/chunks/{generate-hc7vzb2a.js → aisdk-native-a6g7ctrh.js} +18 -18
- package/dist/chunks/{generate-gjqr6zrn.js → aisdk-native-a6vkafpf.js} +13 -13
- package/dist/chunks/{generate-1k2mzmz4.js → aisdk-native-aa70zscs.js} +10 -10
- package/dist/chunks/{generate-aaet6srn.js → aisdk-native-aaet6srn.js} +2 -2
- package/dist/chunks/{generate-5ks7kb4v.js → aisdk-native-agnm54gs.js} +18 -18
- package/dist/chunks/{generate-tqw8zxxy.js → aisdk-native-amc9zrkj.js} +11 -11
- package/dist/chunks/{generate-jesy7fcc.js → aisdk-native-as4rxx02.js} +17 -17
- package/dist/chunks/{generate-mgx963cj.js → aisdk-native-at5vefz0.js} +8 -8
- package/dist/chunks/{generate-m1sc7qpq.js → aisdk-native-az6thn3b.js} +6 -6
- package/dist/chunks/{generate-cysjstt0.js → aisdk-native-azgkc19j.js} +34 -34
- package/dist/chunks/{generate-hr1ws8e2.js → aisdk-native-b0216jhd.js} +40 -40
- package/dist/chunks/{generate-kyrbgmgz.js → aisdk-native-b1hwkhhg.js} +4 -4
- package/dist/chunks/{generate-b6gygkdw.js → aisdk-native-b6gygkdw.js} +2 -2
- package/dist/chunks/{generate-9r6hh7kf.js → aisdk-native-b9cbw8cf.js} +20 -20
- package/dist/chunks/{generate-bs2kgc24.js → aisdk-native-b9hpem2e.js} +22 -22
- package/dist/chunks/{generate-tqskq136.js → aisdk-native-bafekp6x.js} +11 -11
- package/dist/chunks/{generate-zmcvkbyh.js → aisdk-native-c82mgr5r.js} +17 -17
- package/dist/chunks/{generate-2ktqxpjb.js → aisdk-native-cbdx500h.js} +56 -56
- package/dist/chunks/{generate-cv20tjt8.js → aisdk-native-cckb3k5y.js} +11 -11
- package/dist/chunks/{generate-6ya4w7xv.js → aisdk-native-cffk5scv.js} +9 -9
- package/dist/chunks/{generate-m0jqrx5p.js → aisdk-native-cfpkc3c9.js} +2 -2
- package/dist/chunks/{generate-p2r27tsk.js → aisdk-native-cfrmvhjx.js} +11 -11
- package/dist/chunks/{generate-vxqvp5m2.js → aisdk-native-d6ez4sy0.js} +26 -26
- package/dist/chunks/{generate-0nzybmd6.js → aisdk-native-d9whb66d.js} +24 -24
- package/dist/chunks/{generate-e1rvn8vw.js → aisdk-native-dhh5xd54.js} +6 -6
- package/dist/chunks/{generate-6q1acxff.js → aisdk-native-dpe2kymk.js} +43 -43
- package/dist/chunks/{generate-y71avatq.js → aisdk-native-dpkg50ah.js} +4 -4
- package/dist/chunks/{generate-mm4qk4sz.js → aisdk-native-dqq2643g.js} +4 -4
- package/dist/chunks/{generate-xz2sz7jr.js → aisdk-native-dxmfxnv6.js} +37 -37
- package/dist/chunks/{generate-39pny36r.js → aisdk-native-dxq14y40.js} +1 -1
- package/dist/chunks/{generate-59jshr4n.js → aisdk-native-dzcn95em.js} +26 -26
- package/dist/chunks/{generate-srkwgq29.js → aisdk-native-e5fmdc7h.js} +23 -23
- package/dist/chunks/{generate-nhy5jxhy.js → aisdk-native-e82z9tr0.js} +7 -7
- package/dist/chunks/{generate-q4fmv0xv.js → aisdk-native-e89xj288.js} +5 -5
- package/dist/chunks/{generate-1wj59nq5.js → aisdk-native-ebnnqyp8.js} +11 -11
- package/dist/chunks/{generate-h6z8d5tn.js → aisdk-native-ec8389mk.js} +4 -4
- package/dist/chunks/{generate-6g3dpzke.js → aisdk-native-ekhdnqeg.js} +15 -15
- package/dist/chunks/{generate-99qv6bna.js → aisdk-native-eqna0yr9.js} +17 -17
- package/dist/chunks/{generate-r9babyk8.js → aisdk-native-esdnemd6.js} +1 -1
- package/dist/chunks/{generate-etq0c3wd.js → aisdk-native-etq0c3wd.js} +1 -1
- package/dist/chunks/{generate-czz1mk0t.js → aisdk-native-ex6vs5n0.js} +20 -20
- package/dist/chunks/{generate-y24frd6r.js → aisdk-native-exys1kgc.js} +11 -11
- package/dist/chunks/{generate-8j9290cj.js → aisdk-native-ey5kq0ak.js} +26 -26
- package/dist/chunks/{generate-1n9n5b3d.js → aisdk-native-f705x0rq.js} +13 -13
- package/dist/chunks/{generate-hdnk95c8.js → aisdk-native-f828m53h.js} +2 -2
- package/dist/chunks/{generate-ypf30vrs.js → aisdk-native-f8skd28d.js} +20 -20
- package/dist/chunks/{generate-jwbqhvyy.js → aisdk-native-f90chkmn.js} +5 -5
- package/dist/chunks/{generate-7dqw4kz8.js → aisdk-native-fcrkznn8.js} +5 -5
- package/dist/chunks/{generate-rqac2h8p.js → aisdk-native-fg9tr2v4.js} +17 -17
- package/dist/chunks/{generate-az4749a7.js → aisdk-native-fjxda7tk.js} +11 -11
- package/dist/chunks/{generate-fygdb7h7.js → aisdk-native-fq1h1v14.js} +3 -3
- package/dist/chunks/{generate-fxbjtjnd.js → aisdk-native-fxbjtjnd.js} +1 -1
- package/dist/chunks/{generate-s64cbx49.js → aisdk-native-g0dg6wzp.js} +7 -7
- package/dist/chunks/{generate-98f102c3.js → aisdk-native-g51xf709.js} +22 -22
- package/dist/chunks/{generate-mnv392bk.js → aisdk-native-gaahdxmg.js} +11 -11
- package/dist/chunks/{generate-gd4qta3r.js → aisdk-native-gd4qta3r.js} +1 -1
- package/dist/chunks/{generate-3fc6dm20.js → aisdk-native-gdvy8fx6.js} +4 -4
- package/dist/chunks/{generate-gasky795.js → aisdk-native-gfc4q5wv.js} +33 -33
- package/dist/chunks/{generate-t0x5rdq8.js → aisdk-native-gfqzzqy5.js} +9 -9
- package/dist/chunks/{generate-61b2b0jm.js → aisdk-native-ggns5n5n.js} +32 -32
- package/dist/chunks/{generate-r01t9b5y.js → aisdk-native-gh51qv6z.js} +8 -8
- package/dist/chunks/{generate-1yrdzb9h.js → aisdk-native-gjm5s37h.js} +14 -14
- package/dist/chunks/{generate-8467n133.js → aisdk-native-gn6yk5ww.js} +2 -2
- package/dist/chunks/{generate-bny867va.js → aisdk-native-gshgym2h.js} +11 -11
- package/dist/chunks/{generate-krm885fd.js → aisdk-native-gt3yqw5p.js} +87 -87
- package/dist/chunks/{generate-h03wrkyp.js → aisdk-native-h03wrkyp.js} +2 -2
- package/dist/chunks/{generate-60a2mxse.js → aisdk-native-h0jnz0mn.js} +5 -5
- package/dist/chunks/{generate-f8q7mv7a.js → aisdk-native-h2gyv3sg.js} +1 -1
- package/dist/chunks/{generate-h6vf3j39.js → aisdk-native-h6vf3j39.js} +1 -1
- package/dist/chunks/{generate-sw3r3x1t.js → aisdk-native-h7ygw6q4.js} +9 -9
- package/dist/chunks/{generate-s13d9hm5.js → aisdk-native-hb1v72ya.js} +41 -41
- package/dist/chunks/{generate-hp8a6key.js → aisdk-native-hcryw3z6.js} +26 -26
- package/dist/chunks/{generate-evq6r5pz.js → aisdk-native-hfdr1yjj.js} +4 -4
- package/dist/chunks/{generate-ca7w653e.js → aisdk-native-hn57h045.js} +4 -4
- package/dist/chunks/{generate-htw1ycyk.js → aisdk-native-hqg6sb4q.js} +15 -15
- package/dist/chunks/{generate-jexg7ppr.js → aisdk-native-hvspwq6g.js} +13 -13
- package/dist/chunks/{generate-mhkvc446.js → aisdk-native-j028xdjb.js} +3 -3
- package/dist/chunks/{generate-7gqemh59.js → aisdk-native-j0famzcd.js} +9 -9
- package/dist/chunks/{generate-j56e64zr.js → aisdk-native-j56e64zr.js} +1 -1
- package/dist/chunks/{generate-2gpyj5kx.js → aisdk-native-j80s9j4h.js} +8 -8
- package/dist/chunks/{generate-paphc93g.js → aisdk-native-j935v87r.js} +2 -2
- package/dist/chunks/{generate-vyxhsqdc.js → aisdk-native-jrreb4f4.js} +18 -18
- package/dist/chunks/{generate-7wwfbcqc.js → aisdk-native-jsymqedf.js} +9 -9
- package/dist/chunks/{generate-yjaa8gp1.js → aisdk-native-k75rtej4.js} +27 -27
- package/dist/chunks/{generate-jwx4y25k.js → aisdk-native-k79tzb9n.js} +9 -9
- package/dist/chunks/{generate-kg06axw8.js → aisdk-native-kg06axw8.js} +1 -1
- package/dist/chunks/{generate-39r80e1r.js → aisdk-native-kjcr15p7.js} +1 -1
- package/dist/chunks/{generate-fq0va44m.js → aisdk-native-knxwv22d.js} +9 -9
- package/dist/chunks/{generate-h5yrfjqd.js → aisdk-native-kt5w8vxh.js} +10 -10
- package/dist/chunks/{generate-b7rrt7yp.js → aisdk-native-ktab48es.js} +26 -26
- package/dist/chunks/{generate-m9w0rfyh.js → aisdk-native-m9w0rfyh.js} +1 -1
- package/dist/chunks/{generate-yycwsgqa.js → aisdk-native-mbmb2rkk.js} +11 -11
- package/dist/chunks/{generate-z5f02dmr.js → aisdk-native-mdavksa3.js} +16 -16
- package/dist/chunks/aisdk-native-mg5afxrb.js +462 -0
- package/dist/chunks/{generate-1f4gyz0n.js → aisdk-native-mj3wj180.js} +20 -20
- package/dist/chunks/{generate-mkcjrzeh.js → aisdk-native-mkcjrzeh.js} +1 -1
- package/dist/chunks/{generate-mj59rbhw.js → aisdk-native-mkcn2ebg.js} +6 -6
- package/dist/chunks/{generate-daf03bc6.js → aisdk-native-mmfjar12.js} +30 -30
- package/dist/chunks/{generate-em4ar646.js → aisdk-native-mpsn8vqb.js} +28 -28
- package/dist/chunks/{generate-z69s9t6b.js → aisdk-native-mrw4weg4.js} +5 -5
- package/dist/chunks/{generate-64s65d1n.js → aisdk-native-mw934p8z.js} +8 -8
- package/dist/chunks/{generate-1qkyvz7t.js → aisdk-native-mwav9qm3.js} +22 -22
- package/dist/chunks/{generate-k53abcyj.js → aisdk-native-n8fgk775.js} +8 -8
- package/dist/chunks/{generate-v0k42p31.js → aisdk-native-nd9sgs86.js} +18 -18
- package/dist/chunks/{generate-qrfzss76.js → aisdk-native-nk7s85f0.js} +64 -64
- package/dist/chunks/{generate-81z6ssen.js → aisdk-native-nsk4pmpc.js} +33 -33
- package/dist/chunks/{generate-v5hpcsb0.js → aisdk-native-p1nm93x7.js} +5 -5
- package/dist/chunks/{generate-ezt0m903.js → aisdk-native-p2xqw2sz.js} +27 -27
- package/dist/chunks/{generate-dp5bsb0e.js → aisdk-native-pa98002e.js} +16 -16
- package/dist/chunks/{generate-6h2n816c.js → aisdk-native-paay8gke.js} +18 -18
- package/dist/chunks/{generate-d9a9xnav.js → aisdk-native-pb4vra25.js} +20 -20
- package/dist/chunks/{generate-7tnppf00.js → aisdk-native-pcpr6ykb.js} +12 -12
- package/dist/chunks/{generate-pjvnvgmy.js → aisdk-native-pjvnvgmy.js} +1 -1
- package/dist/chunks/{generate-pknna89w.js → aisdk-native-pknna89w.js} +1 -1
- package/dist/chunks/{generate-q3pfqd80.js → aisdk-native-pqpm7sfx.js} +6 -6
- package/dist/chunks/{generate-69kxc8pj.js → aisdk-native-pytyr678.js} +19 -19
- package/dist/chunks/{generate-wzymtbz6.js → aisdk-native-q6zxxt9y.js} +4 -4
- package/dist/chunks/aisdk-native-q7fypddd.js +247 -0
- package/dist/chunks/{generate-pggbgfqn.js → aisdk-native-qbs0f730.js} +11 -11
- package/dist/chunks/{generate-49s5q05k.js → aisdk-native-qfkm7725.js} +28 -28
- package/dist/chunks/{generate-5bsnye8q.js → aisdk-native-qjrkxhk6.js} +27 -27
- package/dist/chunks/{generate-2xsd6cxc.js → aisdk-native-qqq3x3sa.js} +53 -53
- package/dist/chunks/{generate-qsdy395h.js → aisdk-native-qsdy395h.js} +1 -1
- package/dist/chunks/{generate-k7gbetc5.js → aisdk-native-qvfbf04p.js} +16 -16
- package/dist/chunks/{generate-yayba5wy.js → aisdk-native-r1ya17we.js} +3 -3
- package/dist/chunks/{generate-ve4pfa0n.js → aisdk-native-r98e92ep.js} +4 -4
- package/dist/chunks/{generate-x43y2vfs.js → aisdk-native-r9mregkx.js} +3 -3
- package/dist/chunks/{generate-x4x0qw1a.js → aisdk-native-r9yxppz2.js} +24 -24
- package/dist/chunks/{generate-j5nsxvak.js → aisdk-native-r9z6pqtf.js} +32 -32
- package/dist/chunks/{generate-h0hnsk02.js → aisdk-native-re9hte73.js} +9 -9
- package/dist/chunks/{generate-mmebaszg.js → aisdk-native-rgfb9vbw.js} +23 -23
- package/dist/chunks/{generate-n76fdqym.js → aisdk-native-rs226bz6.js} +5 -5
- package/dist/chunks/{generate-yrznvahk.js → aisdk-native-s4enseaf.js} +2 -2
- package/dist/chunks/{generate-8gkxrww8.js → aisdk-native-s62msjv3.js} +16 -16
- package/dist/chunks/{generate-rhjbct0v.js → aisdk-native-s8d7rejh.js} +4 -4
- package/dist/chunks/{generate-ks5znfvj.js → aisdk-native-sea28k5q.js} +11 -11
- package/dist/chunks/{generate-cpy6gm2a.js → aisdk-native-sf16dj5v.js} +6 -6
- package/dist/chunks/{generate-adr43mc1.js → aisdk-native-sxz67tqa.js} +38 -38
- package/dist/chunks/{generate-p2ms2xer.js → aisdk-native-szvvk72w.js} +46 -46
- package/dist/chunks/{generate-1pscxtyc.js → aisdk-native-t1wvxcjg.js} +14 -14
- package/dist/chunks/{generate-b8ppthjy.js → aisdk-native-t2jnpd7n.js} +20 -20
- package/dist/chunks/{generate-cavr175a.js → aisdk-native-t51qk8jz.js} +21 -21
- package/dist/chunks/{generate-0ctcqb5r.js → aisdk-native-t6dzw5rf.js} +23 -23
- package/dist/chunks/{generate-sj0pg1d2.js → aisdk-native-ta0qxm0m.js} +37 -37
- package/dist/chunks/{generate-72nr9cry.js → aisdk-native-ta5jc9f4.js} +4 -4
- package/dist/chunks/{generate-tazgh4e4.js → aisdk-native-tazgh4e4.js} +1 -1
- package/dist/chunks/{generate-dpskyeh4.js → aisdk-native-tbajnw8q.js} +26 -26
- package/dist/chunks/{generate-1p8pj4gq.js → aisdk-native-tbp3kt2h.js} +5 -5
- package/dist/chunks/{generate-tcezcvh9.js → aisdk-native-tcezcvh9.js} +1 -1
- package/dist/chunks/{generate-tdstcens.js → aisdk-native-tdstcens.js} +1 -1
- package/dist/chunks/{generate-0jkkj5x0.js → aisdk-native-tey2eytt.js} +6 -6
- package/dist/chunks/{generate-yyb7tjpc.js → aisdk-native-th5km1p3.js} +5 -5
- package/dist/chunks/{generate-kqphnfc4.js → aisdk-native-thh98hbb.js} +26 -26
- package/dist/chunks/{generate-njqcqwne.js → aisdk-native-tnkheefm.js} +35 -35
- package/dist/chunks/{generate-tvtrv512.js → aisdk-native-tvtrv512.js} +1 -1
- package/dist/chunks/{generate-h1cbn5my.js → aisdk-native-tyme6x47.js} +4 -4
- package/dist/chunks/{generate-ksz0h0wp.js → aisdk-native-vabb23s0.js} +1 -1
- package/dist/chunks/{generate-vyj892hr.js → aisdk-native-vcww18r2.js} +12 -12
- package/dist/chunks/{generate-veqvce7d.js → aisdk-native-veqvce7d.js} +1 -1
- package/dist/chunks/{generate-ss43wqfj.js → aisdk-native-vm79m67k.js} +12 -12
- package/dist/chunks/{generate-4vz798w9.js → aisdk-native-vms1qh06.js} +9 -9
- package/dist/chunks/{generate-nyb0p7a8.js → aisdk-native-vvbqk37b.js} +14 -14
- package/dist/chunks/{generate-96yt6zt0.js → aisdk-native-vypqtakx.js} +1 -1
- package/dist/chunks/{generate-vzcthcp8.js → aisdk-native-vzcthcp8.js} +1 -1
- package/dist/chunks/{generate-46d75zpd.js → aisdk-native-w19pd4gw.js} +9 -9
- package/dist/chunks/{generate-pjg5vxkm.js → aisdk-native-w1m7fpe3.js} +5 -5
- package/dist/chunks/{generate-w3wsvvr9.js → aisdk-native-w3wsvvr9.js} +1 -1
- package/dist/chunks/{generate-09atk14q.js → aisdk-native-w6rzf7rr.js} +10 -10
- package/dist/chunks/{generate-wd87259q.js → aisdk-native-wd87259q.js} +1 -1
- package/dist/chunks/{generate-9bz2v5s0.js → aisdk-native-wgmz4se6.js} +8 -8
- package/dist/chunks/{generate-zpja4yre.js → aisdk-native-wsgxnvbg.js} +43 -43
- package/dist/chunks/{generate-jp9jb5qe.js → aisdk-native-wxmbf8jb.js} +11 -11
- package/dist/chunks/{generate-sygp3w95.js → aisdk-native-wzq4pq7r.js} +9 -9
- package/dist/chunks/{generate-x1ezjp6w.js → aisdk-native-x1ezjp6w.js} +1 -1
- package/dist/chunks/{generate-wfvawqgc.js → aisdk-native-x2cstgz7.js} +26 -26
- package/dist/chunks/{generate-g6vpggfr.js → aisdk-native-x47scgmz.js} +4 -4
- package/dist/chunks/{generate-0xma9y6h.js → aisdk-native-xmqe5mjy.js} +20 -20
- package/dist/chunks/{generate-abw1kwbq.js → aisdk-native-xv565bpd.js} +27 -27
- package/dist/chunks/{generate-zkpb4mnd.js → aisdk-native-xx519kpd.js} +27 -27
- package/dist/chunks/{generate-y1fvbwt7.js → aisdk-native-y1fvbwt7.js} +1 -1
- package/dist/chunks/{generate-efqcpyxk.js → aisdk-native-y2a57acc.js} +39 -39
- package/dist/chunks/{generate-gp6jffzn.js → aisdk-native-y9zv0tqm.js} +13 -13
- package/dist/chunks/{generate-yddgxcp4.js → aisdk-native-yddgxcp4.js} +2 -2
- package/dist/chunks/{generate-aygt8q9r.js → aisdk-native-ygbe9h9m.js} +15 -15
- package/dist/chunks/{generate-ktppz2xf.js → aisdk-native-ygtbvk0x.js} +6 -6
- package/dist/chunks/{generate-vyqn3nqs.js → aisdk-native-yhemyvg6.js} +6 -6
- package/dist/chunks/{generate-yrhqyw5v.js → aisdk-native-yrhqyw5v.js} +1 -1
- package/dist/chunks/{generate-jxt422gf.js → aisdk-native-ysmvfpmb.js} +8 -8
- package/dist/chunks/{generate-xj0bxjy7.js → aisdk-native-ytdd3bbv.js} +15 -15
- package/dist/chunks/{generate-bp2j6a1f.js → aisdk-native-yx7d88az.js} +17 -17
- package/dist/chunks/{generate-h1fvy1gd.js → aisdk-native-yy90rqk6.js} +20 -20
- package/dist/chunks/{generate-z0bkrqjs.js → aisdk-native-z0bkrqjs.js} +1 -1
- package/dist/chunks/{generate-92s5ptt1.js → aisdk-native-z6wvrrth.js} +29 -29
- package/dist/chunks/{generate-v894zy29.js → aisdk-native-zbpnfvtq.js} +24 -24
- package/dist/chunks/{generate-rq775frq.js → aisdk-native-zeh9ct20.js} +2 -2
- package/dist/chunks/{generate-w0vj055n.js → aisdk-native-zm18a7xh.js} +24 -24
- package/dist/chunks/{generate-zr2ceqn5.js → aisdk-native-zr2ceqn5.js} +1 -1
- package/dist/chunks/{generate-zxq2ej10.js → aisdk-native-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -362
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +68 -68
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -91
- package/dist/git.js +7 -7
- 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 +3 -3
- 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/id/id.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 +353 -353
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +130 -130
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +350 -350
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +93 -93
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +4 -4
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +76 -76
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +70 -70
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +218 -218
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +88 -88
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +121 -121
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +84 -84
- 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 +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +98 -98
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +208 -208
- package/dist/tool/plugin/webfetch.js +103 -103
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +342 -342
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -8
- package/dist/chunks/generate-kn2ed1ny.js +0 -247
- package/dist/chunks/generate-nn82kedb.js +0 -22
- package/dist/chunks/generate-qvj9tamg.js +0 -462
- package/dist/chunks/generate-vnkjks7b.js +0 -18
- /package/dist/chunks/{generate-0mesazry.js → aisdk-native-0mesazry.js} +0 -0
- /package/dist/chunks/{generate-0qkdqm5v.js → aisdk-native-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{generate-0zkw76rk.js → aisdk-native-0zkw76rk.js} +0 -0
- /package/dist/chunks/{generate-17cy0kzp.js → aisdk-native-17cy0kzp.js} +0 -0
- /package/dist/chunks/{generate-1cnp2v09.js → aisdk-native-1cnp2v09.js} +0 -0
- /package/dist/chunks/{generate-1kg9ymc8.js → aisdk-native-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{generate-2710q6r3.js → aisdk-native-2710q6r3.js} +0 -0
- /package/dist/chunks/{generate-2axfhc9x.js → aisdk-native-2axfhc9x.js} +0 -0
- /package/dist/chunks/{generate-2c3vjs8z.js → aisdk-native-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{generate-359p4xyc.js → aisdk-native-359p4xyc.js} +0 -0
- /package/dist/chunks/{generate-3asan66x.js → aisdk-native-3asan66x.js} +0 -0
- /package/dist/chunks/{generate-3v8g72cx.js → aisdk-native-3v8g72cx.js} +0 -0
- /package/dist/chunks/{generate-3w5fmr99.js → aisdk-native-3w5fmr99.js} +0 -0
- /package/dist/chunks/{generate-3wcehsnq.js → aisdk-native-3wcehsnq.js} +0 -0
- /package/dist/chunks/{generate-43n2bw4t.js → aisdk-native-43n2bw4t.js} +0 -0
- /package/dist/chunks/{generate-4knz6hnm.js → aisdk-native-4knz6hnm.js} +0 -0
- /package/dist/chunks/{generate-4vcrnpx2.js → aisdk-native-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{generate-4y7fprxs.js → aisdk-native-4y7fprxs.js} +0 -0
- /package/dist/chunks/{generate-53557ph1.js → aisdk-native-53557ph1.js} +0 -0
- /package/dist/chunks/{generate-550bvhaj.js → aisdk-native-550bvhaj.js} +0 -0
- /package/dist/chunks/{generate-6prwharc.js → aisdk-native-6prwharc.js} +0 -0
- /package/dist/chunks/{generate-7akdwqpd.js → aisdk-native-7akdwqpd.js} +0 -0
- /package/dist/chunks/{generate-7m9af43g.js → aisdk-native-7m9af43g.js} +0 -0
- /package/dist/chunks/{generate-822emrt2.js → aisdk-native-822emrt2.js} +0 -0
- /package/dist/chunks/{generate-88xbtdfr.js → aisdk-native-88xbtdfr.js} +0 -0
- /package/dist/chunks/{generate-8n3pysct.js → aisdk-native-8n3pysct.js} +0 -0
- /package/dist/chunks/{generate-922hggd3.js → aisdk-native-922hggd3.js} +0 -0
- /package/dist/chunks/{generate-9a4afbnw.js → aisdk-native-9a4afbnw.js} +0 -0
- /package/dist/chunks/{generate-9rqn6x4v.js → aisdk-native-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{generate-a6k6eb26.js → aisdk-native-a6k6eb26.js} +0 -0
- /package/dist/chunks/{generate-af5trqkr.js → aisdk-native-af5trqkr.js} +0 -0
- /package/dist/chunks/{generate-afrmfg78.js → aisdk-native-afrmfg78.js} +0 -0
- /package/dist/chunks/{generate-aqzs7mqg.js → aisdk-native-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{generate-atq7p7m5.js → aisdk-native-atq7p7m5.js} +0 -0
- /package/dist/chunks/{generate-bkyjaxrp.js → aisdk-native-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{generate-bmr6ed5q.js → aisdk-native-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{generate-cf4snx6d.js → aisdk-native-cf4snx6d.js} +0 -0
- /package/dist/chunks/{generate-cvy3z8tj.js → aisdk-native-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{generate-d9fn303g.js → aisdk-native-d9fn303g.js} +0 -0
- /package/dist/chunks/{generate-d9jj8t3e.js → aisdk-native-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{generate-dajrwvna.js → aisdk-native-dajrwvna.js} +0 -0
- /package/dist/chunks/{generate-dap0rakb.js → aisdk-native-dap0rakb.js} +0 -0
- /package/dist/chunks/{generate-df08tz66.js → aisdk-native-df08tz66.js} +0 -0
- /package/dist/chunks/{generate-dy18nga0.js → aisdk-native-dy18nga0.js} +0 -0
- /package/dist/chunks/{generate-e5kj55wp.js → aisdk-native-e5kj55wp.js} +0 -0
- /package/dist/chunks/{generate-e73j6tqm.js → aisdk-native-e73j6tqm.js} +0 -0
- /package/dist/chunks/{generate-ec1grn59.js → aisdk-native-ec1grn59.js} +0 -0
- /package/dist/chunks/{generate-eh3zwz77.js → aisdk-native-eh3zwz77.js} +0 -0
- /package/dist/chunks/{generate-emrn6kk6.js → aisdk-native-emrn6kk6.js} +0 -0
- /package/dist/chunks/{generate-f0mxakyp.js → aisdk-native-f0mxakyp.js} +0 -0
- /package/dist/chunks/{generate-f6n9ztr4.js → aisdk-native-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{generate-faypxj3z.js → aisdk-native-faypxj3z.js} +0 -0
- /package/dist/chunks/{generate-fd410y7t.js → aisdk-native-fd410y7t.js} +0 -0
- /package/dist/chunks/{generate-fxgpk5d8.js → aisdk-native-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{generate-g4wezp1m.js → aisdk-native-g4wezp1m.js} +0 -0
- /package/dist/chunks/{generate-g86h250q.js → aisdk-native-g86h250q.js} +0 -0
- /package/dist/chunks/{generate-gebd4c9n.js → aisdk-native-gebd4c9n.js} +0 -0
- /package/dist/chunks/{generate-gftt206x.js → aisdk-native-gftt206x.js} +0 -0
- /package/dist/chunks/{generate-hjbc5kem.js → aisdk-native-hjbc5kem.js} +0 -0
- /package/dist/chunks/{generate-hk9envan.js → aisdk-native-hk9envan.js} +0 -0
- /package/dist/chunks/{generate-hrnqkpcd.js → aisdk-native-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{generate-j2ntwpah.js → aisdk-native-j2ntwpah.js} +0 -0
- /package/dist/chunks/{generate-j5zkgpj8.js → aisdk-native-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{generate-jr7sbwjy.js → aisdk-native-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{generate-jwfs4k6c.js → aisdk-native-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{generate-jzg6c2d5.js → aisdk-native-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{generate-mp448xyj.js → aisdk-native-mp448xyj.js} +0 -0
- /package/dist/chunks/{generate-msx8hqn2.js → aisdk-native-msx8hqn2.js} +0 -0
- /package/dist/chunks/{generate-n05xt0ee.js → aisdk-native-n05xt0ee.js} +0 -0
- /package/dist/chunks/{generate-n3j8tn72.js → aisdk-native-n3j8tn72.js} +0 -0
- /package/dist/chunks/{generate-njntx4h6.js → aisdk-native-njntx4h6.js} +0 -0
- /package/dist/chunks/{generate-q3sfg36h.js → aisdk-native-q3sfg36h.js} +0 -0
- /package/dist/chunks/{generate-q74kybfr.js → aisdk-native-q74kybfr.js} +0 -0
- /package/dist/chunks/{generate-qaymkmh1.js → aisdk-native-qaymkmh1.js} +0 -0
- /package/dist/chunks/{generate-qb87gjwd.js → aisdk-native-qb87gjwd.js} +0 -0
- /package/dist/chunks/{generate-qfa1cgps.js → aisdk-native-qfa1cgps.js} +0 -0
- /package/dist/chunks/{generate-qrg20bc0.js → aisdk-native-qrg20bc0.js} +0 -0
- /package/dist/chunks/{generate-rcb2kzg1.js → aisdk-native-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{generate-sdp7kfr6.js → aisdk-native-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{generate-sk3qaz4a.js → aisdk-native-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{generate-ssg3fenm.js → aisdk-native-ssg3fenm.js} +0 -0
- /package/dist/chunks/{generate-twg0f83k.js → aisdk-native-twg0f83k.js} +0 -0
- /package/dist/chunks/{generate-w803qqfp.js → aisdk-native-w803qqfp.js} +0 -0
- /package/dist/chunks/{generate-wer8tq1h.js → aisdk-native-wer8tq1h.js} +0 -0
- /package/dist/chunks/{generate-wtztk69x.js → aisdk-native-wtztk69x.js} +0 -0
- /package/dist/chunks/{generate-x0ckcb58.js → aisdk-native-x0ckcb58.js} +0 -0
- /package/dist/chunks/{generate-x61499pn.js → aisdk-native-x61499pn.js} +0 -0
- /package/dist/chunks/{generate-y44na4kk.js → aisdk-native-y44na4kk.js} +0 -0
- /package/dist/chunks/{generate-y8cydn3q.js → aisdk-native-y8cydn3q.js} +0 -0
- /package/dist/chunks/{generate-ygaqb7jw.js → aisdk-native-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{generate-ym463w8f.js → aisdk-native-ym463w8f.js} +0 -0
- /package/dist/chunks/{generate-z9919s4g.js → aisdk-native-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-5d53psdr.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-native-f705x0rq.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-sk3qaz4a.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Options: () => Options5,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
configured: () =>
|
|
25
|
-
layer: () =>
|
|
26
|
-
node: () =>
|
|
22
|
+
Service: () => Service54,
|
|
23
|
+
UnavailableError: () => UnavailableError3,
|
|
24
|
+
configured: () => configured7,
|
|
25
|
+
layer: () => layer21,
|
|
26
|
+
node: () => node59
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,21 +35,21 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options5 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError6 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service54 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service54, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service79;
|
|
54
54
|
const global = yield* Global.Service;
|
|
55
55
|
const context = yield* Effect.context();
|
|
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service41, Effect.gen(function* (
|
|
|
72
72
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
73
73
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
74
74
|
if (!found)
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
76
76
|
return found;
|
|
77
77
|
});
|
|
78
78
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -162,7 +162,7 @@ var makeLayer = (options = {}) => Layer.effect(Service41, Effect.gen(function* (
|
|
|
162
162
|
});
|
|
163
163
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
164
164
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
165
|
-
return yield* new
|
|
165
|
+
return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
|
|
166
166
|
const id = current.get(sessionID);
|
|
167
167
|
if (!id)
|
|
168
168
|
return null;
|
|
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service41, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service54.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -255,17 +255,17 @@ var makeLayer = (options = {}) => Layer.effect(Service41, Effect.gen(function* (
|
|
|
255
255
|
attach
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
261
|
-
layer: options === undefined ?
|
|
258
|
+
var layer21 = makeLayer();
|
|
259
|
+
var configured7 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service54,
|
|
261
|
+
layer: options === undefined ? layer21 : makeLayer(options),
|
|
262
262
|
deps: [node84, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node59 = configured7();
|
|
265
265
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
266
266
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
267
|
-
var unexpected = (response) => Effect.fail(new
|
|
268
|
-
var unavailable = (error) => new
|
|
267
|
+
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
268
|
+
var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
|
|
269
269
|
var runtimeDirectory = () => {
|
|
270
270
|
const root = process.env.OPENCODE_PTY_RUNTIME_DIR ?? (process.env.XDG_RUNTIME_DIR ? path.join(process.env.XDG_RUNTIME_DIR, "opencode-pty") : path.join(os.tmpdir(), `opencode-pty-${typeof process.getuid === "function" ? process.getuid() : process.env.USER || "unknown"}`));
|
|
271
271
|
return path.join(root, crypto.randomUUID());
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options5, UnavailableError3, NotFoundError6, Service54, layer21, configured7, node59, exports_persistent_pty, Handoff2 };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID16,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
6
|
mergeOverlay2,
|
|
7
7
|
mergeHeaders2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-native-84tssp1s.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service56,
|
|
11
|
+
node61
|
|
12
|
+
} from "./aisdk-native-gaahdxmg.js";
|
|
13
13
|
import {
|
|
14
14
|
map2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-11h1hnb3.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID14,
|
|
18
18
|
VariantID2,
|
|
19
19
|
Ref3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-native-wgmz4se6.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID7,
|
|
23
|
+
Service49,
|
|
24
|
+
node54
|
|
25
|
+
} from "./aisdk-native-dzcn95em.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
27
|
+
Service48,
|
|
28
|
+
node53
|
|
29
|
+
} from "./aisdk-native-e5fmdc7h.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/model-resolver.ts
|
|
35
35
|
var exports_model_resolver = {};
|
|
36
36
|
__export(exports_model_resolver, {
|
|
37
37
|
ModelResolver: () => exports_model_resolver,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service47,
|
|
39
39
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
40
40
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
41
41
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
42
42
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
43
43
|
fromCatalogModel: () => fromCatalogModel2,
|
|
44
44
|
hasPackage: () => hasPackage2,
|
|
45
|
-
layer: () =>
|
|
46
|
-
node: () =>
|
|
45
|
+
layer: () => layer19,
|
|
46
|
+
node: () => node52,
|
|
47
47
|
resolveModel: () => resolveModel2,
|
|
48
48
|
withVariant: () => withVariant2
|
|
49
49
|
});
|
|
@@ -53,8 +53,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
53
53
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
54
54
|
import { Npm } from "@opencode/util/npm";
|
|
55
55
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
56
|
-
providerID:
|
|
57
|
-
modelID:
|
|
56
|
+
providerID: ID16,
|
|
57
|
+
modelID: ID14,
|
|
58
58
|
variant: VariantID2
|
|
59
59
|
}) {
|
|
60
60
|
get message() {
|
|
@@ -63,8 +63,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
66
|
-
providerID:
|
|
67
|
-
modelID:
|
|
66
|
+
providerID: ID16,
|
|
67
|
+
modelID: ID14,
|
|
68
68
|
package: Schema.String
|
|
69
69
|
}) {
|
|
70
70
|
get message() {
|
|
@@ -73,8 +73,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
76
|
-
providerID:
|
|
77
|
-
modelID:
|
|
76
|
+
providerID: ID16,
|
|
77
|
+
modelID: ID14,
|
|
78
78
|
variables: Schema.Array(Schema.String)
|
|
79
79
|
}) {
|
|
80
80
|
get message() {
|
|
@@ -83,8 +83,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
86
|
-
providerID:
|
|
87
|
-
modelID:
|
|
86
|
+
providerID: ID16,
|
|
87
|
+
modelID: ID14,
|
|
88
88
|
route: Schema.String
|
|
89
89
|
}) {
|
|
90
90
|
get message() {
|
|
@@ -92,7 +92,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service47 extends Context.Service()("@opencode/ModelResolver") {
|
|
96
96
|
}
|
|
97
97
|
var withVariant2 = (model, variantID) => {
|
|
98
98
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -218,14 +218,14 @@ var unsupported = (model) => new UnsupportedPackageError3({
|
|
|
218
218
|
});
|
|
219
219
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
220
220
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
221
|
-
var
|
|
222
|
-
const catalog = yield*
|
|
223
|
-
const integrations = yield*
|
|
221
|
+
var layer19 = Layer.effect(Service47, Effect.gen(function* () {
|
|
222
|
+
const catalog = yield* Service48;
|
|
223
|
+
const integrations = yield* Service49;
|
|
224
224
|
const npm = yield* Npm.Service;
|
|
225
|
-
const aisdk = yield*
|
|
225
|
+
const aisdk = yield* Service56;
|
|
226
226
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
227
227
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
228
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
228
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID7.make(selected.providerID));
|
|
229
229
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
230
230
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
231
231
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -247,7 +247,7 @@ var layer23 = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
247
247
|
websocket: selected.websocket ?? false
|
|
248
248
|
};
|
|
249
249
|
});
|
|
250
|
-
return
|
|
250
|
+
return Service47.of({
|
|
251
251
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
252
252
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
253
253
|
if (!selected)
|
|
@@ -264,10 +264,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
264
264
|
const name = packageName2(packageName);
|
|
265
265
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
266
266
|
}
|
|
267
|
-
var
|
|
268
|
-
service:
|
|
269
|
-
layer:
|
|
270
|
-
deps: [
|
|
267
|
+
var node52 = makeLocationNode({
|
|
268
|
+
service: Service47,
|
|
269
|
+
layer: layer19,
|
|
270
|
+
deps: [node53, node54, Npm.node, node61]
|
|
271
271
|
});
|
|
272
272
|
|
|
273
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
273
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service47, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer19, node52, exports_model_resolver };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./aisdk-native-fg9tr2v4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service71
|
|
9
|
+
} from "./aisdk-native-wsgxnvbg.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalSource2,
|
|
12
12
|
GitSource2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-ey5kq0ak.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-native-qsdy395h.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/reference.ts
|
|
22
22
|
var exports_reference = {};
|
|
23
23
|
__export(exports_reference, {
|
|
24
24
|
ConfigReferencePlugin: () => exports_reference,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin7
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Effect } from "effect";
|
|
30
30
|
import { Global } from "@opencode/util/global";
|
|
31
|
-
var
|
|
31
|
+
var Plugin7 = define({
|
|
32
32
|
id: "opencode.config.reference",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
35
|
-
const location = yield*
|
|
34
|
+
const config = yield* Service71;
|
|
35
|
+
const location = yield* Service76;
|
|
36
36
|
const global = yield* Global.Service;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
|
|
38
38
|
yield* ctx.reference.transform((editor) => {
|
|
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
|
|
|
72
72
|
return path.isAbsolute(value) ? value : path.resolve(directory, value);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { Plugin7, exports_reference };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./aisdk-native-33bws32g.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-native-qqq3x3sa.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
|
-
var
|
|
15
|
-
__export(
|
|
16
|
-
AgentPlugin: () =>
|
|
17
|
-
Plugin: () =>
|
|
14
|
+
var exports_agent2 = {};
|
|
15
|
+
__export(exports_agent2, {
|
|
16
|
+
AgentPlugin: () => exports_agent2,
|
|
17
|
+
Plugin: () => Plugin38
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin38 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin24 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID12.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID12.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin24 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID12.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID12.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID12.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin24 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin38, exports_agent2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
toSessionError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-dqq2643g.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/retry.ts
|
|
12
12
|
var exports_retry = {};
|
|
13
13
|
__export(exports_retry, {
|
|
14
14
|
SessionRunnerRetry: () => exports_retry,
|
|
15
15
|
isRetryable: () => isRetryable2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make9,
|
|
17
17
|
policy: () => policy2,
|
|
18
18
|
transient: () => transient2
|
|
19
19
|
});
|
|
@@ -96,7 +96,7 @@ var transient2 = (decide, input) => (effect) => Effect.retry(effect, {
|
|
|
96
96
|
return true;
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var make9 = (bus, sessionID) => Effect.gen(function* () {
|
|
100
100
|
const decide = yield* policy2(sessionID);
|
|
101
101
|
const wait = (input) => Effect.gen(function* () {
|
|
102
102
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -113,4 +113,4 @@ var make8 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
113
113
|
return { decide, wait };
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
export { isRetryable2, policy2, transient2,
|
|
116
|
+
export { isRetryable2, policy2, transient2, make9, exports_retry };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/formatter.ts
|
|
6
6
|
var exports_formatter3 = {};
|
|
7
7
|
__export(exports_formatter3, {
|
|
8
8
|
ConfigFormatterV1: () => exports_formatter3,
|
|
9
|
-
Entry: () =>
|
|
10
|
-
Info: () =>
|
|
9
|
+
Entry: () => Entry4,
|
|
10
|
+
Info: () => Info27
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
13
|
+
var Entry4 = Schema.Struct({
|
|
14
14
|
disabled: Schema.optional(Schema.Boolean),
|
|
15
15
|
command: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
16
16
|
environment: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
17
17
|
extensions: Schema.optional(Schema.mutable(Schema.Array(Schema.String)))
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var Info27 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry4)]);
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Entry4, Info27, exports_formatter3 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service70
|
|
3
|
+
} from "./aisdk-native-3nekdnre.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service40
|
|
6
|
+
} from "./aisdk-native-7syv1xgw.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-45th5jwr.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
22
|
+
const instances = yield* Service40;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service70), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-r1ya17we.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make21,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-s8d7rejh.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-a1bz86dw.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-native-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: () => Info4,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service24,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node28,
|
|
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 Info4 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,12 +56,12 @@ 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 Service24 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) =>
|
|
64
|
+
var source = (entry) => make21({
|
|
65
65
|
key: Key3.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make20({
|
|
|
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(Service24, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service80;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service23, 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 Service24.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node28 = makeLocationNode({ service: Service24, layer, deps: [node85] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info4, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service24, node28, exports_instruction_entry };
|