@opencode/core 0.0.0-dev-21058 → 0.0.0-dev-21059
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +77 -77
- package/dist/chunks/{project-4g8rzqh2.js → agent-07y8yssa.js} +13 -13
- package/dist/chunks/{project-kzyk8mcz.js → agent-08fthye5.js} +43 -43
- package/dist/chunks/{project-k05z0ace.js → agent-09dwq0k8.js} +19 -19
- package/dist/chunks/{project-4vht6qym.js → agent-0datvkzx.js} +27 -27
- package/dist/chunks/{project-8jhpg3r3.js → agent-0dq5ytza.js} +4 -4
- package/dist/chunks/{project-cyxn42f6.js → agent-0mp3yd4y.js} +11 -11
- package/dist/chunks/{project-97fna9vq.js → agent-0v56fe9p.js} +8 -8
- package/dist/chunks/{project-0vbcp93d.js → agent-0vbcp93d.js} +2 -2
- package/dist/chunks/{project-fbyej2qz.js → agent-0vk3wfpr.js} +5 -5
- package/dist/chunks/{project-2hxn28a9.js → agent-10mgaypy.js} +14 -14
- package/dist/chunks/{project-vtbrqbj2.js → agent-120mm9fe.js} +23 -23
- package/dist/chunks/{project-xxjgqtz4.js → agent-13egsp17.js} +22 -22
- package/dist/chunks/{project-q3rk13xd.js → agent-176qrfyr.js} +11 -11
- package/dist/chunks/{project-yp2x3t23.js → agent-1acjjqhc.js} +4 -4
- package/dist/chunks/{project-bjx1sjef.js → agent-1ffvrpkg.js} +6 -6
- package/dist/chunks/{project-n2g6t4s8.js → agent-1hj14pj4.js} +26 -26
- package/dist/chunks/{project-46ekg8ch.js → agent-1k68ks32.js} +1 -1
- package/dist/chunks/{project-rt5q178g.js → agent-1mh1r30f.js} +18 -18
- package/dist/chunks/{project-b0jzx5be.js → agent-1zgm74j7.js} +4 -4
- package/dist/chunks/{project-xd2frmpg.js → agent-25zgp73e.js} +32 -32
- package/dist/chunks/{project-gj014zr3.js → agent-26c5b08v.js} +18 -18
- package/dist/chunks/{project-w2ve3f0z.js → agent-2cz1eswr.js} +4 -4
- package/dist/chunks/{project-vvd3ek3r.js → agent-2dw3jvkf.js} +14 -14
- package/dist/chunks/{project-kqx1b4hy.js → agent-2ryng5r3.js} +4 -4
- package/dist/chunks/{project-zfa7ynd8.js → agent-2tba787a.js} +16 -16
- package/dist/chunks/{project-h7s7r6s9.js → agent-31xfzrxg.js} +5 -5
- package/dist/chunks/{project-9sfv06ww.js → agent-3770a3t0.js} +10 -10
- package/dist/chunks/{project-x342v6qz.js → agent-3aqvrwqh.js} +3 -3
- package/dist/chunks/{project-td3rcjyz.js → agent-3dacjcw5.js} +12 -12
- package/dist/chunks/{project-7ey2hqh4.js → agent-3e3ts2k0.js} +3 -3
- package/dist/chunks/{project-3fc6dm20.js → agent-3fc6dm20.js} +1 -1
- package/dist/chunks/{project-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
- package/dist/chunks/{project-3hwn7j4h.js → agent-3hwn7j4h.js} +2 -2
- package/dist/chunks/{project-h9jfk4va.js → agent-3ke0h2vq.js} +23 -23
- package/dist/chunks/{project-qen1ec59.js → agent-3nt2w26v.js} +1 -1
- package/dist/chunks/{project-3smtnn6g.js → agent-3smtnn6g.js} +1 -1
- package/dist/chunks/{project-3tvqynh2.js → agent-3tvqynh2.js} +1 -1
- package/dist/chunks/{project-3z7vhxa6.js → agent-3v1rmssb.js} +16 -16
- package/dist/chunks/{project-3zsf4n22.js → agent-3zsf4n22.js} +1 -1
- package/dist/chunks/{project-t3er826d.js → agent-3zst7r5n.js} +4 -4
- package/dist/chunks/{project-pby86dem.js → agent-40ze75wf.js} +32 -32
- package/dist/chunks/{project-6zpy51re.js → agent-43m0923n.js} +20 -20
- package/dist/chunks/{project-zx3v58va.js → agent-475aaysq.js} +8 -8
- package/dist/chunks/{project-nwxqhh9b.js → agent-4at5033j.js} +31 -31
- package/dist/chunks/{project-d9kbpe4j.js → agent-4cx4cnzf.js} +19 -19
- package/dist/chunks/{project-vyp8f64q.js → agent-4py5fpra.js} +39 -39
- package/dist/chunks/{project-54ma36ye.js → agent-54ma36ye.js} +1 -1
- package/dist/chunks/{project-1pxz8ven.js → agent-57myy5jh.js} +5 -5
- package/dist/chunks/{project-gsm4wa7c.js → agent-58dzcpvt.js} +10 -10
- package/dist/chunks/{project-agfffypt.js → agent-598gff9k.js} +31 -31
- package/dist/chunks/{project-aa1y9kb9.js → agent-59pb1bst.js} +83 -83
- package/dist/chunks/{project-kwzxrt73.js → agent-5ffyefh4.js} +21 -21
- package/dist/chunks/{project-5m9w47nd.js → agent-5m9w47nd.js} +1 -1
- package/dist/chunks/{project-1j38pfxf.js → agent-5sq35qhm.js} +23 -23
- package/dist/chunks/{project-6a3rfgsm.js → agent-6fcpqzzd.js} +4 -4
- package/dist/chunks/{project-gashxpx8.js → agent-6g1cr3nb.js} +10 -10
- package/dist/chunks/{project-4434d9q2.js → agent-6g7e4dd5.js} +9 -9
- package/dist/chunks/{project-tbxcyk70.js → agent-6hk8xqds.js} +4 -4
- package/dist/chunks/{project-4zpqecgw.js → agent-6k0cajn2.js} +11 -11
- package/dist/chunks/{project-qper1cvd.js → agent-6r7wd4s9.js} +20 -20
- package/dist/chunks/{project-9rrg1j5j.js → agent-6tw9cd06.js} +17 -17
- package/dist/chunks/{project-6xb47vfp.js → agent-6xb47vfp.js} +1 -1
- package/dist/chunks/{project-crhch0qz.js → agent-70acndry.js} +47 -47
- package/dist/chunks/{project-994b2pxg.js → agent-70y17xeh.js} +5 -5
- package/dist/chunks/{project-jaj1xxek.js → agent-71byd0nn.js} +38 -38
- package/dist/chunks/{project-73kdj4zj.js → agent-73kdj4zj.js} +1 -1
- package/dist/chunks/{project-2jtmvwcj.js → agent-76gx3gef.js} +45 -45
- package/dist/chunks/{project-775gj3j1.js → agent-775gj3j1.js} +2 -2
- package/dist/chunks/{project-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
- package/dist/chunks/{project-ws0x2x5x.js → agent-7j2vym7r.js} +22 -22
- package/dist/chunks/{project-mrbqc0zq.js → agent-7j38m80p.js} +21 -21
- package/dist/chunks/{project-08y5q8wd.js → agent-7mq7nmkg.js} +14 -14
- package/dist/chunks/{project-j8nb3x1t.js → agent-7q9429tc.js} +12 -12
- package/dist/chunks/{project-0kb2qjdq.js → agent-7zpkz1ag.js} +35 -35
- package/dist/chunks/{project-3vddrp31.js → agent-84mt6kxk.js} +10 -10
- package/dist/chunks/{project-84txncab.js → agent-84txncab.js} +1 -1
- package/dist/chunks/{project-mneyqk4y.js → agent-8920dkqx.js} +142 -142
- package/dist/chunks/{project-sk0j6z0a.js → agent-8jjtjp8k.js} +58 -58
- package/dist/chunks/{project-8m6m0r52.js → agent-8m6m0r52.js} +1 -1
- package/dist/chunks/{project-kvz5847h.js → agent-8ytc3qm4.js} +22 -22
- package/dist/chunks/{project-j09zfasm.js → agent-91qna3x0.js} +3 -3
- package/dist/chunks/{project-f1b4ke4h.js → agent-9656bada.js} +31 -31
- package/dist/chunks/{project-dcnp92q7.js → agent-9ejc3kek.js} +11 -11
- package/dist/chunks/{project-7ra1gfj5.js → agent-9j3abkkx.js} +3 -3
- package/dist/chunks/{project-a43zcwkp.js → agent-9t0y1ztz.js} +3 -3
- package/dist/chunks/{project-ep2q945v.js → agent-9wpgc5d2.js} +17 -17
- package/dist/chunks/{project-7r4qhcrf.js → agent-9yxrcrk2.js} +22 -22
- package/dist/chunks/{project-ftkezsz2.js → agent-a3vhmvx0.js} +46 -46
- package/dist/chunks/{project-vpjv6pw6.js → agent-a49by44p.js} +18 -18
- package/dist/chunks/{project-d5bxh3kg.js → agent-acgt48p6.js} +24 -24
- package/dist/chunks/{project-nhkfd5v3.js → agent-an57bb0v.js} +11 -11
- package/dist/chunks/{project-1av17bgz.js → agent-ap7erzbb.js} +44 -44
- package/dist/chunks/{project-wzece18v.js → agent-axn1dk7m.js} +17 -17
- package/dist/chunks/{project-18n88jqj.js → agent-azndqj98.js} +13 -13
- package/dist/chunks/{project-b3f8fkhc.js → agent-b3f8fkhc.js} +2 -2
- package/dist/chunks/{project-x4t8qxf4.js → agent-b8n2r79a.js} +35 -35
- package/dist/chunks/{project-9a6we621.js → agent-b8s5yqvg.js} +11 -11
- package/dist/chunks/{project-pjbrakwm.js → agent-b99nrxjj.js} +12 -12
- package/dist/chunks/{project-sw36zbc0.js → agent-bb86f272.js} +11 -11
- package/dist/chunks/{project-as6z21sy.js → agent-bbgs6xmq.js} +12 -12
- package/dist/chunks/{project-qxmaq0sm.js → agent-bh0zzf2s.js} +8 -8
- package/dist/chunks/{project-rxptwqj8.js → agent-btjxhes9.js} +16 -16
- package/dist/chunks/{project-1besy32e.js → agent-bv8c7vet.js} +11 -11
- package/dist/chunks/{project-zke4s1dj.js → agent-bxdp1qj4.js} +38 -38
- package/dist/chunks/{project-kbnja1kr.js → agent-c1ezcj9p.js} +13 -13
- package/dist/chunks/{project-rj3eygr5.js → agent-c41wscbt.js} +2 -2
- package/dist/chunks/{project-sa8ekw3f.js → agent-c8ax2afj.js} +2 -2
- package/dist/chunks/{project-hx9rzx00.js → agent-c96shp8w.js} +7 -7
- package/dist/chunks/{project-38cz93yf.js → agent-c9e0ykqz.js} +28 -28
- package/dist/chunks/{project-ng4mt1p4.js → agent-cnw0s3pm.js} +11 -11
- package/dist/chunks/{project-jfyd8byt.js → agent-cp2e2e5x.js} +15 -15
- package/dist/chunks/{project-hsdh5v8b.js → agent-d3x6x8ct.js} +23 -23
- package/dist/chunks/{project-846x6n9b.js → agent-desw8mjx.js} +27 -27
- package/dist/chunks/{project-4qzh7fhm.js → agent-df900zta.js} +11 -11
- package/dist/chunks/{project-azhwb1sg.js → agent-dn7ydhqs.js} +321 -321
- package/dist/chunks/{project-dqxsqydv.js → agent-dqxsqydv.js} +1 -1
- package/dist/chunks/{project-7v81x33d.js → agent-dvep9rg9.js} +9 -9
- package/dist/chunks/{project-0txttp9t.js → agent-dwm3anjr.js} +32 -32
- package/dist/chunks/{project-q9mystjd.js → agent-e314xmzp.js} +2 -2
- package/dist/chunks/{project-eej6y6fw.js → agent-eej6y6fw.js} +2 -2
- package/dist/chunks/{project-ef5x83kb.js → agent-ef5x83kb.js} +1 -1
- package/dist/chunks/{project-xah2gnd0.js → agent-emtj3tbf.js} +16 -16
- package/dist/chunks/{project-c1fqxshp.js → agent-es1vcfrp.js} +3 -3
- package/dist/chunks/{project-tgmc6crh.js → agent-f5gzyxsv.js} +9 -9
- package/dist/chunks/{project-dqf667jx.js → agent-fbeb1wa5.js} +11 -11
- package/dist/chunks/{project-4m514emz.js → agent-fbq8j98h.js} +14 -14
- package/dist/chunks/{project-2k8khapm.js → agent-fcrkznn8.js} +5 -5
- package/dist/chunks/{project-6zxpntjp.js → agent-fkhcryxm.js} +9 -9
- package/dist/chunks/{project-s8c9wy2r.js → agent-fn4x26t7.js} +4 -4
- package/dist/chunks/{project-s55z37mj.js → agent-fr4rxre2.js} +28 -28
- package/dist/chunks/{project-ft3hqk2c.js → agent-ft3hqk2c.js} +2 -2
- package/dist/chunks/{project-a44gt5xs.js → agent-fx9jxwhh.js} +6 -6
- package/dist/chunks/{project-khmqacep.js → agent-fxaymqdw.js} +4 -4
- package/dist/chunks/{project-7d1j3gh0.js → agent-g6ncrc2a.js} +14 -14
- package/dist/chunks/{project-29cpf1j0.js → agent-g8pbgkrs.js} +10 -10
- package/dist/chunks/{project-gd4qta3r.js → agent-gd4qta3r.js} +1 -1
- package/dist/chunks/{project-7xybr5h7.js → agent-gftv0dff.js} +15 -15
- package/dist/chunks/{project-0r3c1bmw.js → agent-gj71zhbs.js} +5 -5
- package/dist/chunks/{project-tr0zcq97.js → agent-gwkjka7r.js} +10 -10
- package/dist/chunks/{project-nsbd13pa.js → agent-gza6rqz1.js} +9 -9
- package/dist/chunks/{project-h6vf3j39.js → agent-h6vf3j39.js} +1 -1
- package/dist/chunks/{project-6hjx5zpb.js → agent-h71w788e.js} +9 -9
- package/dist/chunks/{project-j6map0at.js → agent-hfbyhya8.js} +10 -10
- package/dist/chunks/{project-hgz4x7wa.js → agent-hgz4x7wa.js} +1 -1
- package/dist/chunks/{project-d57paz8b.js → agent-hk5w54gx.js} +9 -9
- package/dist/chunks/{project-csctevvr.js → agent-hmf6h8tj.js} +14 -14
- package/dist/chunks/{project-2yqxmsdx.js → agent-hrcr6mwe.js} +11 -11
- package/dist/chunks/{project-9qzakqdf.js → agent-hy5rne45.js} +26 -26
- package/dist/chunks/{project-my4zabxr.js → agent-hzrfc1p4.js} +3 -3
- package/dist/chunks/{project-524rf9nz.js → agent-j0mtf0c9.js} +46 -46
- package/dist/chunks/{project-ggpn5cje.js → agent-j4mjvx72.js} +23 -23
- package/dist/chunks/{project-5ghbr0aa.js → agent-j55ztwk7.js} +21 -21
- package/dist/chunks/{project-x4asfamj.js → agent-j6gr24hv.js} +11 -11
- package/dist/chunks/{project-b22ng80r.js → agent-j88gsrc2.js} +6 -6
- package/dist/chunks/{project-h8b1e0g7.js → agent-jfrhrggt.js} +32 -32
- package/dist/chunks/{project-vr3y5df8.js → agent-k6q0jycv.js} +33 -33
- package/dist/chunks/{project-rdk8m1yb.js → agent-k8z8vrp8.js} +5 -5
- package/dist/chunks/{project-kwb1v3vj.js → agent-kwb1v3vj.js} +1 -1
- package/dist/chunks/{project-vd0f7f2n.js → agent-kzcb1jca.js} +5 -5
- package/dist/chunks/{project-2f95q5sc.js → agent-m341j4am.js} +20 -20
- package/dist/chunks/{project-ydbknben.js → agent-m48ydh7z.js} +50 -50
- package/dist/chunks/{project-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
- package/dist/chunks/{project-maspj1v3.js → agent-maspj1v3.js} +1 -1
- package/dist/chunks/{project-ef5jab3p.js → agent-me8drbfe.js} +27 -27
- package/dist/chunks/{project-gw6dy74d.js → agent-mjc8m2em.js} +36 -36
- package/dist/chunks/{project-5gse0wef.js → agent-mvnt7d01.js} +15 -15
- package/dist/chunks/{project-0pmjc72x.js → agent-mw9nhf2x.js} +3 -3
- package/dist/chunks/{project-k58fcyrb.js → agent-mxabp7zc.js} +20 -20
- package/dist/chunks/{project-3y377wv9.js → agent-mxvxcxwy.js} +4 -4
- package/dist/chunks/{project-e1smpma2.js → agent-n3df6fgn.js} +68 -68
- package/dist/chunks/{project-6hgkw0ap.js → agent-n52ad204.js} +17 -17
- package/dist/chunks/{project-cz8x9c8g.js → agent-n7gz7dkb.js} +21 -21
- package/dist/chunks/agent-n95b3jav.js +18 -0
- package/dist/chunks/{project-0gtcxzh4.js → agent-nhfjry95.js} +26 -26
- package/dist/chunks/{project-hcv80w8f.js → agent-npw39rc8.js} +8 -8
- package/dist/chunks/{project-nvpqrmqg.js → agent-npza5r50.js} +15 -15
- package/dist/chunks/{project-6rqqpc35.js → agent-ns8hhn76.js} +11 -11
- package/dist/chunks/{project-2t6h5syz.js → agent-p59b6n5j.js} +12 -12
- package/dist/chunks/{project-hfe0sdpn.js → agent-p68t7hkv.js} +176 -176
- package/dist/chunks/{project-0xvaxfee.js → agent-p68x8en9.js} +29 -29
- package/dist/chunks/{project-3sa7vbkn.js → agent-pdz643x3.js} +10 -10
- package/dist/chunks/{project-d7x0sh0y.js → agent-phz50fbd.js} +9 -9
- package/dist/chunks/{project-pjvnvgmy.js → agent-pjvnvgmy.js} +1 -1
- package/dist/chunks/{project-pknna89w.js → agent-pknna89w.js} +1 -1
- package/dist/chunks/{project-pnzf6mjf.js → agent-pnzf6mjf.js} +1 -1
- package/dist/chunks/{project-xzn6n07m.js → agent-pqk7fwvb.js} +6 -6
- package/dist/chunks/{project-g16p7fm5.js → agent-pxnnf3sj.js} +10 -10
- package/dist/chunks/{project-w92k2e0p.js → agent-py3kkmfq.js} +8 -8
- package/dist/chunks/{project-ce17ykb7.js → agent-pz17d9xg.js} +5 -5
- package/dist/chunks/{project-esffqqvs.js → agent-q159fzra.js} +17 -17
- package/dist/chunks/{project-xwe6v4cn.js → agent-q519ga1a.js} +40 -40
- package/dist/chunks/{project-jycptg83.js → agent-q88xdd0q.js} +15 -15
- package/dist/chunks/{project-w764hn2r.js → agent-qbas706v.js} +17 -17
- package/dist/chunks/{project-h8r6qxhx.js → agent-qe7caw4f.js} +32 -32
- package/dist/chunks/{project-qnc92qwc.js → agent-qnc92qwc.js} +1 -1
- package/dist/chunks/{project-h9h3ykac.js → agent-qnmgnxnk.js} +29 -29
- package/dist/chunks/{project-tz21801v.js → agent-qpqsqxka.js} +11 -11
- package/dist/chunks/{project-qsdy395h.js → agent-qsdy395h.js} +1 -1
- package/dist/chunks/{project-9g9rfe9e.js → agent-qwean1e1.js} +12 -12
- package/dist/chunks/{project-r2z489rp.js → agent-r2z489rp.js} +1 -1
- package/dist/chunks/{project-9wwfrree.js → agent-r365gfv3.js} +24 -24
- package/dist/chunks/{project-c8bydgjz.js → agent-r5wgqceq.js} +6 -6
- package/dist/chunks/{project-46k4mwc0.js → agent-r8eecgca.js} +23 -23
- package/dist/chunks/{project-h39sbrp5.js → agent-rc0eda3w.js} +7 -7
- package/dist/chunks/{project-rdw6cm16.js → agent-rdw6cm16.js} +1 -1
- package/dist/chunks/{project-rhjbct0v.js → agent-rhjbct0v.js} +1 -1
- package/dist/chunks/{project-jmfpatbx.js → agent-rrd63aa5.js} +25 -25
- package/dist/chunks/{project-embw8kgh.js → agent-rwm5vee1.js} +4 -4
- package/dist/chunks/{project-qa3qhgw8.js → agent-ryr25ayn.js} +4 -4
- package/dist/chunks/{project-yp4cx7tr.js → agent-s5bmn3fh.js} +33 -33
- package/dist/chunks/{project-77rprrbn.js → agent-sgz82gsd.js} +22 -22
- package/dist/chunks/{project-tggy4efm.js → agent-sqgae8e7.js} +15 -15
- package/dist/chunks/{project-b19791qn.js → agent-st9476f7.js} +21 -21
- package/dist/chunks/{project-syv4x271.js → agent-syv4x271.js} +1 -1
- package/dist/chunks/{project-txm3e8qz.js → agent-sz15zhhw.js} +4 -4
- package/dist/chunks/{project-0yh5wqb1.js → agent-t59vet7a.js} +7 -7
- package/dist/chunks/{project-a1vqgawf.js → agent-t5yst9z9.js} +13 -13
- package/dist/chunks/{project-xmfhmd05.js → agent-t7rvx3z8.js} +5 -5
- package/dist/chunks/{project-7qcbg35h.js → agent-t9157dv5.js} +23 -23
- package/dist/chunks/{project-tazgh4e4.js → agent-tazgh4e4.js} +1 -1
- package/dist/chunks/{project-tcezcvh9.js → agent-tcezcvh9.js} +1 -1
- package/dist/chunks/{project-vrzt526f.js → agent-tdqj5rj9.js} +5 -5
- package/dist/chunks/{project-tdstcens.js → agent-tdstcens.js} +1 -1
- package/dist/chunks/{project-5gypmxb6.js → agent-tf2nhsz8.js} +11 -11
- package/dist/chunks/{project-ccd6hyrd.js → agent-tgvn7qv7.js} +8 -8
- package/dist/chunks/{project-rert0e01.js → agent-tkb22qbm.js} +2 -2
- package/dist/chunks/{project-tm0kqsz3.js → agent-tm0kqsz3.js} +1 -1
- package/dist/chunks/{project-5yzzbxa7.js → agent-tpw6cwsb.js} +8 -8
- package/dist/chunks/{project-86bgjncs.js → agent-tvktx62v.js} +3 -3
- package/dist/chunks/{project-tyytaxap.js → agent-tyytaxap.js} +1 -1
- package/dist/chunks/{project-6e2baheb.js → agent-v0v9zhgd.js} +34 -34
- package/dist/chunks/{project-b261b8hj.js → agent-v2mxr9ph.js} +14 -14
- package/dist/chunks/{project-etqtjtw0.js → agent-v73vpk9k.js} +5 -5
- package/dist/chunks/{project-h5gvfa01.js → agent-v7m0z00c.js} +12 -12
- package/dist/chunks/{project-v7p4zvkq.js → agent-v7p4zvkq.js} +2 -2
- package/dist/chunks/{project-veqvce7d.js → agent-veqvce7d.js} +1 -1
- package/dist/chunks/{project-drnf6xwf.js → agent-vjjaysxc.js} +2 -2
- package/dist/chunks/agent-vmbjch0v.js +26 -0
- package/dist/chunks/{project-8ckc28nh.js → agent-vn5kn1xa.js} +3 -3
- package/dist/chunks/{project-tw4wzwtt.js → agent-vqd49qwt.js} +34 -34
- package/dist/chunks/{project-vzs5sf6e.js → agent-vzs5sf6e.js} +1 -1
- package/dist/chunks/{project-rax2wscr.js → agent-w1eqcter.js} +30 -30
- package/dist/chunks/{project-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
- package/dist/chunks/{project-cg84fwzy.js → agent-w8frm7c7.js} +5 -5
- package/dist/chunks/{project-wd87259q.js → agent-wd87259q.js} +1 -1
- package/dist/chunks/{project-4ns3h2re.js → agent-wgahhr0x.js} +4 -4
- package/dist/chunks/{project-9r8fms9q.js → agent-wjtwcy2c.js} +13 -13
- package/dist/chunks/{project-66whjjpm.js → agent-ww5bxnkm.js} +20 -20
- package/dist/chunks/{project-7ac6etn3.js → agent-x05pdjgt.js} +11 -11
- package/dist/chunks/{project-scy96xry.js → agent-x2p9rnd2.js} +44 -44
- package/dist/chunks/{project-dfmpseqs.js → agent-x39k8923.js} +49 -49
- package/dist/chunks/{project-xqw97vvf.js → agent-x4fsxtvp.js} +16 -16
- package/dist/chunks/{project-vh35nqe6.js → agent-x6ekcm9n.js} +6 -6
- package/dist/chunks/{project-57b9ws8p.js → agent-xfkkasph.js} +7 -7
- package/dist/chunks/{project-fzscntb9.js → agent-xp6nq9tj.js} +90 -90
- package/dist/chunks/{project-217ry7f9.js → agent-xryj725v.js} +5 -5
- package/dist/chunks/{project-r2v4c7r0.js → agent-xx5ebepc.js} +8 -8
- package/dist/chunks/{project-gvhzaye6.js → agent-y06egy23.js} +13 -13
- package/dist/chunks/{project-y1fvbwt7.js → agent-y1fvbwt7.js} +1 -1
- package/dist/chunks/{project-mmme5mvc.js → agent-y4j9axvr.js} +4 -4
- package/dist/chunks/{project-y71avatq.js → agent-y71avatq.js} +1 -1
- package/dist/chunks/{project-gxsww4yb.js → agent-y7p2skpd.js} +15 -15
- package/dist/chunks/{project-et7yaydb.js → agent-ycw2k4m5.js} +11 -11
- package/dist/chunks/{project-1gbx2bbx.js → agent-yesqerhw.js} +3 -3
- package/dist/chunks/{project-464fgrf8.js → agent-yf1wa02y.js} +11 -11
- package/dist/chunks/{project-330cx653.js → agent-ykn3eabp.js} +34 -34
- package/dist/chunks/{project-yrcj3v3g.js → agent-yrcj3v3g.js} +1 -1
- package/dist/chunks/{project-5bqrbzpz.js → agent-yynp9xvp.js} +39 -39
- package/dist/chunks/{project-277eer69.js → agent-z0aj456m.js} +4 -4
- package/dist/chunks/{project-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
- package/dist/chunks/{project-s02j1kc0.js → agent-z9tz5eek.js} +6 -6
- package/dist/chunks/{project-ba3xh6a2.js → agent-zfm7v8bv.js} +11 -11
- package/dist/chunks/{project-zr2ceqn5.js → agent-zr2ceqn5.js} +1 -1
- package/dist/chunks/{project-mxjpgj4j.js → agent-zvj6924a.js} +5 -5
- package/dist/chunks/{project-zxq2ej10.js → agent-zxq2ej10.js} +1 -1
- package/dist/chunks/{project-29qym6xz.js → agent-zy43x3f1.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +75 -75
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- 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 +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +98 -98
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +357 -357
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +354 -354
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +129 -129
- 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 +102 -102
- package/dist/models-dev.js +109 -109
- 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 +105 -105
- 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 +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +167 -167
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +218 -218
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- 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 +135 -135
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- 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 +1 -1
- 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 +224 -224
- 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 +2 -2
- 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 +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +104 -104
- 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 +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +208 -208
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +3 -3
- 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 +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/project-by5v678g.js +0 -18
- package/dist/chunks/project-gz4v619e.js +0 -26
- /package/dist/chunks/{project-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{project-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
- /package/dist/chunks/{project-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
- /package/dist/chunks/{project-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
- /package/dist/chunks/{project-1kg9ymc8.js → agent-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{project-24dcb14g.js → agent-24dcb14g.js} +0 -0
- /package/dist/chunks/{project-2710q6r3.js → agent-2710q6r3.js} +0 -0
- /package/dist/chunks/{project-2axfhc9x.js → agent-2axfhc9x.js} +0 -0
- /package/dist/chunks/{project-2bv980vf.js → agent-2bv980vf.js} +0 -0
- /package/dist/chunks/{project-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{project-359p4xyc.js → agent-359p4xyc.js} +0 -0
- /package/dist/chunks/{project-3asan66x.js → agent-3asan66x.js} +0 -0
- /package/dist/chunks/{project-3t0ybcrp.js → agent-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{project-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
- /package/dist/chunks/{project-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
- /package/dist/chunks/{project-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
- /package/dist/chunks/{project-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
- /package/dist/chunks/{project-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{project-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
- /package/dist/chunks/{project-53557ph1.js → agent-53557ph1.js} +0 -0
- /package/dist/chunks/{project-550bvhaj.js → agent-550bvhaj.js} +0 -0
- /package/dist/chunks/{project-5qd3pb7m.js → agent-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{project-6prwharc.js → agent-6prwharc.js} +0 -0
- /package/dist/chunks/{project-6q2bdcd1.js → agent-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{project-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
- /package/dist/chunks/{project-7m9af43g.js → agent-7m9af43g.js} +0 -0
- /package/dist/chunks/{project-822emrt2.js → agent-822emrt2.js} +0 -0
- /package/dist/chunks/{project-84wd9syh.js → agent-84wd9syh.js} +0 -0
- /package/dist/chunks/{project-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
- /package/dist/chunks/{project-8n3pysct.js → agent-8n3pysct.js} +0 -0
- /package/dist/chunks/{project-8wj87zfr.js → agent-8wj87zfr.js} +0 -0
- /package/dist/chunks/{project-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
- /package/dist/chunks/{project-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{project-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
- /package/dist/chunks/{project-af5trqkr.js → agent-af5trqkr.js} +0 -0
- /package/dist/chunks/{project-afrmfg78.js → agent-afrmfg78.js} +0 -0
- /package/dist/chunks/{project-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{project-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
- /package/dist/chunks/{project-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{project-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{project-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
- /package/dist/chunks/{project-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{project-d9fn303g.js → agent-d9fn303g.js} +0 -0
- /package/dist/chunks/{project-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{project-dajrwvna.js → agent-dajrwvna.js} +0 -0
- /package/dist/chunks/{project-dap0rakb.js → agent-dap0rakb.js} +0 -0
- /package/dist/chunks/{project-df08tz66.js → agent-df08tz66.js} +0 -0
- /package/dist/chunks/{project-dy18nga0.js → agent-dy18nga0.js} +0 -0
- /package/dist/chunks/{project-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
- /package/dist/chunks/{project-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
- /package/dist/chunks/{project-ec1grn59.js → agent-ec1grn59.js} +0 -0
- /package/dist/chunks/{project-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
- /package/dist/chunks/{project-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
- /package/dist/chunks/{project-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
- /package/dist/chunks/{project-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{project-faypxj3z.js → agent-faypxj3z.js} +0 -0
- /package/dist/chunks/{project-fd410y7t.js → agent-fd410y7t.js} +0 -0
- /package/dist/chunks/{project-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
- /package/dist/chunks/{project-g86h250q.js → agent-g86h250q.js} +0 -0
- /package/dist/chunks/{project-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
- /package/dist/chunks/{project-gftt206x.js → agent-gftt206x.js} +0 -0
- /package/dist/chunks/{project-hcxmzztb.js → agent-hcxmzztb.js} +0 -0
- /package/dist/chunks/{project-hk9envan.js → agent-hk9envan.js} +0 -0
- /package/dist/chunks/{project-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
- /package/dist/chunks/{project-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{project-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
- /package/dist/chunks/{project-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{project-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{project-jze0r7bz.js → agent-jze0r7bz.js} +0 -0
- /package/dist/chunks/{project-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{project-m18g726c.js → agent-m18g726c.js} +0 -0
- /package/dist/chunks/{project-mp448xyj.js → agent-mp448xyj.js} +0 -0
- /package/dist/chunks/{project-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
- /package/dist/chunks/{project-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
- /package/dist/chunks/{project-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
- /package/dist/chunks/{project-njntx4h6.js → agent-njntx4h6.js} +0 -0
- /package/dist/chunks/{project-pkyv6v7h.js → agent-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{project-pyv0edze.js → agent-pyv0edze.js} +0 -0
- /package/dist/chunks/{project-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
- /package/dist/chunks/{project-q74kybfr.js → agent-q74kybfr.js} +0 -0
- /package/dist/chunks/{project-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
- /package/dist/chunks/{project-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
- /package/dist/chunks/{project-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
- /package/dist/chunks/{project-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
- /package/dist/chunks/{project-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
- /package/dist/chunks/{project-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{project-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{project-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
- /package/dist/chunks/{project-ve7vex1e.js → agent-ve7vex1e.js} +0 -0
- /package/dist/chunks/{project-w803qqfp.js → agent-w803qqfp.js} +0 -0
- /package/dist/chunks/{project-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{project-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
- /package/dist/chunks/{project-wjj7prxr.js → agent-wjj7prxr.js} +0 -0
- /package/dist/chunks/{project-wtztk69x.js → agent-wtztk69x.js} +0 -0
- /package/dist/chunks/{project-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
- /package/dist/chunks/{project-x61499pn.js → agent-x61499pn.js} +0 -0
- /package/dist/chunks/{project-y44na4kk.js → agent-y44na4kk.js} +0 -0
- /package/dist/chunks/{project-y8f7s663.js → agent-y8f7s663.js} +0 -0
- /package/dist/chunks/{project-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{project-ym463w8f.js → agent-ym463w8f.js} +0 -0
- /package/dist/chunks/{project-z5v4ffb3.js → agent-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{project-z9919s4g.js → agent-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./agent-mw9nhf2x.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service83,
|
|
10
|
+
node86
|
|
11
|
+
} from "./agent-fbq8j98h.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service82,
|
|
14
|
+
node85
|
|
15
|
+
} from "./agent-3dacjcw5.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID17,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info28,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./agent-6g7e4dd5.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./agent-c41wscbt.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./agent-c8ax2afj.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./agent-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID16,
|
|
40
|
+
Info: () => Info27,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node84,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID16 = ID17;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info27 = Info28;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID16
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -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 Service81 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,11 +98,11 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service82;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
|
-
const bus = yield*
|
|
105
|
+
const bus = yield* Service83;
|
|
106
106
|
const db = (yield* Service85).db;
|
|
107
107
|
const announcing = new Set;
|
|
108
108
|
const persist = Effect.fnUntraced(function* (project) {
|
|
@@ -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 = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID16.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
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,10 +184,10 @@ 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
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID16.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID16.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID16.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID16.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* persist({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID16.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID16.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID16.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -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 Service81.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node84 = makeGlobalNode({
|
|
310
|
+
service: Service81,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [
|
|
312
|
+
deps: [node86, node89, FSUtil.node, node85, 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* Service81;
|
|
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: [node84]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID16, Vcs2, Current2, Info27, UpdateInput3, NotFoundError11, root2, Service81, node84, sweepNode2, exports_project };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service46,
|
|
3
|
+
node49
|
|
4
|
+
} from "./agent-me8drbfe.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
8
|
make20,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./agent-rhjbct0v.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./agent-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions5 = {};
|
|
17
|
+
__export(exports_instructions5, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions5,
|
|
19
|
+
Service: () => Service43,
|
|
20
|
+
node: () => node46
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,11 +57,11 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service43 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service46;
|
|
64
|
+
return Service43.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node46 = makeLocationNode({ service: Service43, layer, deps: [node49] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service43, node46, exports_instructions5 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-8m6m0r52.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID5,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./agent-npza5r50.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./agent-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID5.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make15,
|
|
10
|
+
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
// src/session/runner/prompt/system.txt
|
|
@@ -29,10 +29,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function make15(tools) {
|
|
33
|
+
return render3(system_default, tools);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function render3(prompt, tools) {
|
|
36
36
|
const instructions = [];
|
|
37
37
|
if (tools.includes("shell")) {
|
|
38
38
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -47,4 +47,4 @@ function render2(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make15, render3, exports_system_prompt };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ID9,
|
|
3
|
+
Info18,
|
|
4
4
|
SessionSchema2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./agent-hzrfc1p4.js";
|
|
6
6
|
import {
|
|
7
7
|
RelativePath2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./agent-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Service85,
|
|
11
11
|
node89
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./agent-mw9nhf2x.js";
|
|
13
13
|
import {
|
|
14
14
|
isSynced2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service83,
|
|
16
|
+
node86
|
|
17
|
+
} from "./agent-fbq8j98h.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service81,
|
|
20
|
+
node84
|
|
21
|
+
} from "./agent-x39k8923.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
Service63,
|
|
24
|
+
node66
|
|
25
|
+
} from "./agent-r5wgqceq.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionEvent2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./agent-ec1grn59.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionMessageTable2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./agent-es1vcfrp.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
node65
|
|
34
|
+
} from "./agent-desw8mjx.js";
|
|
35
35
|
import {
|
|
36
36
|
current2
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./agent-2ryng5r3.js";
|
|
38
38
|
import {
|
|
39
39
|
snapshot2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./agent-df900zta.js";
|
|
41
41
|
import {
|
|
42
42
|
Slug2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./agent-gebd4c9n.js";
|
|
44
44
|
import {
|
|
45
45
|
SessionAlreadyProjected2,
|
|
46
|
-
|
|
47
|
-
} from "./
|
|
46
|
+
node36
|
|
47
|
+
} from "./agent-n7gz7dkb.js";
|
|
48
48
|
import {
|
|
49
49
|
Metadata2,
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
50
|
+
node61
|
|
51
|
+
} from "./agent-58dzcpvt.js";
|
|
52
52
|
import {
|
|
53
53
|
NotFoundError9,
|
|
54
54
|
MessageNotFoundError2,
|
|
@@ -61,58 +61,58 @@ import {
|
|
|
61
61
|
BusyError2,
|
|
62
62
|
InboxConflictError2,
|
|
63
63
|
SkillNotFoundError2
|
|
64
|
-
} from "./
|
|
64
|
+
} from "./agent-tvktx62v.js";
|
|
65
65
|
import {
|
|
66
66
|
ListInput4,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} from "./
|
|
67
|
+
Service68,
|
|
68
|
+
node71
|
|
69
|
+
} from "./agent-qwean1e1.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} from "./
|
|
71
|
+
Service66,
|
|
72
|
+
node69
|
|
73
|
+
} from "./agent-emtj3tbf.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} from "./
|
|
75
|
+
Service60,
|
|
76
|
+
node64
|
|
77
|
+
} from "./agent-4py5fpra.js";
|
|
78
78
|
import {
|
|
79
79
|
llmClient2
|
|
80
|
-
} from "./
|
|
80
|
+
} from "./agent-775gj3j1.js";
|
|
81
81
|
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} from "./
|
|
82
|
+
Service41,
|
|
83
|
+
node44
|
|
84
|
+
} from "./agent-bv8c7vet.js";
|
|
85
85
|
import {
|
|
86
86
|
generate2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./agent-v7m0z00c.js";
|
|
88
88
|
import {
|
|
89
89
|
execute2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./agent-z9tz5eek.js";
|
|
91
91
|
import {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} from "./
|
|
92
|
+
Service65,
|
|
93
|
+
node68
|
|
94
|
+
} from "./agent-tf2nhsz8.js";
|
|
95
95
|
import {
|
|
96
96
|
DestinationNotFoundError2,
|
|
97
97
|
DestinationNotDirectoryError2,
|
|
98
98
|
DestinationUnavailableError2,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
} from "./
|
|
99
|
+
Service32,
|
|
100
|
+
node35
|
|
101
|
+
} from "./agent-8jjtjp8k.js";
|
|
102
102
|
import {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
} from "./
|
|
103
|
+
Service49,
|
|
104
|
+
node52
|
|
105
|
+
} from "./agent-bh0zzf2s.js";
|
|
106
106
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./
|
|
107
|
+
make14
|
|
108
|
+
} from "./agent-s5bmn3fh.js";
|
|
109
109
|
import {
|
|
110
110
|
TurnRangeError2,
|
|
111
111
|
turn2
|
|
112
|
-
} from "./
|
|
112
|
+
} from "./agent-cnw0s3pm.js";
|
|
113
113
|
import {
|
|
114
114
|
__export
|
|
115
|
-
} from "./
|
|
115
|
+
} from "./agent-9rqn6x4v.js";
|
|
116
116
|
|
|
117
117
|
// src/session.ts
|
|
118
118
|
var exports_session = {};
|
|
@@ -123,22 +123,22 @@ __export(exports_session, {
|
|
|
123
123
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
124
124
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
125
125
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
126
|
-
ID: () =>
|
|
126
|
+
ID: () => ID9,
|
|
127
127
|
InboxConflictError: () => InboxConflictError2,
|
|
128
|
-
Info: () =>
|
|
128
|
+
Info: () => Info18,
|
|
129
129
|
ListAnchor: () => ListAnchor2,
|
|
130
130
|
ListInput: () => ListInput3,
|
|
131
131
|
MessageDecodeError: () => MessageDecodeError2,
|
|
132
132
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
133
133
|
NotFoundError: () => NotFoundError9,
|
|
134
134
|
PromptConflictError: () => PromptConflictError2,
|
|
135
|
-
Service: () =>
|
|
135
|
+
Service: () => Service31,
|
|
136
136
|
Session: () => exports_session,
|
|
137
137
|
SessionSchema: () => SessionSchema2,
|
|
138
138
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
139
139
|
SyntheticConflictError: () => SyntheticConflictError2,
|
|
140
140
|
TurnRangeError: () => TurnRangeError2,
|
|
141
|
-
node: () =>
|
|
141
|
+
node: () => node34
|
|
142
142
|
});
|
|
143
143
|
import { Effect, Layer, Schema, Context, Stream } from "effect";
|
|
144
144
|
import { LLMClient } from "@opencode/ai";
|
|
@@ -149,26 +149,26 @@ import path from "path";
|
|
|
149
149
|
import { Node } from "@opencode/util/effect/app-node";
|
|
150
150
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
151
151
|
var ListInput3 = ListInput4;
|
|
152
|
-
class
|
|
152
|
+
class Service31 extends Context.Service()("@opencode/Session") {
|
|
153
153
|
}
|
|
154
|
-
var layer = Layer.effect(
|
|
154
|
+
var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
155
155
|
const app = yield* Metadata2;
|
|
156
156
|
const database = yield* Service85;
|
|
157
157
|
const db = database.db;
|
|
158
|
-
const bus = yield*
|
|
159
|
-
const projects = yield*
|
|
160
|
-
const execution = yield*
|
|
158
|
+
const bus = yield* Service83;
|
|
159
|
+
const projects = yield* Service81;
|
|
160
|
+
const execution = yield* Service60;
|
|
161
161
|
const llm = yield* LLMClient.Service;
|
|
162
|
-
const transport = yield*
|
|
163
|
-
const store = yield*
|
|
164
|
-
const instances = yield*
|
|
165
|
-
const moves = yield*
|
|
166
|
-
const jobs = yield*
|
|
167
|
-
const environments = yield*
|
|
168
|
-
const locations = yield*
|
|
169
|
-
const sessions = yield*
|
|
162
|
+
const transport = yield* Service41;
|
|
163
|
+
const store = yield* Service68;
|
|
164
|
+
const instances = yield* Service63;
|
|
165
|
+
const moves = yield* Service32;
|
|
166
|
+
const jobs = yield* Service66;
|
|
167
|
+
const environments = yield* Service49;
|
|
168
|
+
const locations = yield* Service65;
|
|
169
|
+
const sessions = yield* make14();
|
|
170
170
|
const isDurableSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
171
|
-
const result =
|
|
171
|
+
const result = Service31.of({
|
|
172
172
|
create: Effect.fn("Session.create")(function* (input) {
|
|
173
173
|
const sessionID = input.id ?? SessionSchema2.ID.create();
|
|
174
174
|
const recorded = yield* store.get(sessionID);
|
|
@@ -281,11 +281,11 @@ var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
281
281
|
prompt: (input) => sessions.forSession(input.sessionID).prompt(input),
|
|
282
282
|
generate: Effect.fn("Session.generate")(function* (input) {
|
|
283
283
|
const session = yield* result.get(input.sessionID);
|
|
284
|
-
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(
|
|
284
|
+
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(Service63, instances), Effect.provideService(Service85, database), Effect.provideService(LLMClient.Service, llm));
|
|
285
285
|
}),
|
|
286
286
|
command: Effect.fn("Session.command")(function* (input) {
|
|
287
287
|
const session = yield* result.get(input.sessionID);
|
|
288
|
-
return yield* execute2({ ...input, session }).pipe(Effect.provideService(
|
|
288
|
+
return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service63, instances));
|
|
289
289
|
}),
|
|
290
290
|
shell: (input) => sessions.forSession(input.sessionID).shell(input),
|
|
291
291
|
skill: (input) => sessions.forSession(input.sessionID).skill(input),
|
|
@@ -327,27 +327,27 @@ var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
327
327
|
});
|
|
328
328
|
return result;
|
|
329
329
|
}));
|
|
330
|
-
var
|
|
331
|
-
service:
|
|
330
|
+
var node34 = Node.makeGlobalNode({
|
|
331
|
+
service: Service31,
|
|
332
332
|
layer,
|
|
333
333
|
deps: [
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
node69,
|
|
335
|
+
node52,
|
|
336
336
|
node89,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
node86,
|
|
338
|
+
node84,
|
|
339
|
+
node64,
|
|
340
|
+
node44,
|
|
341
341
|
llmClient2,
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
342
|
+
node71,
|
|
343
|
+
node66,
|
|
344
|
+
node65,
|
|
345
|
+
node35,
|
|
346
|
+
node36,
|
|
347
|
+
node68,
|
|
348
348
|
FSUtil.node,
|
|
349
|
-
|
|
349
|
+
node61
|
|
350
350
|
]
|
|
351
351
|
});
|
|
352
352
|
|
|
353
|
-
export { ListAnchor2, ListInput3,
|
|
353
|
+
export { ListAnchor2, ListInput3, Service31, node34, exports_session };
|