@opencode/core 0.0.0-dev-21240 → 0.0.0-dev-21246
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{location-7pp8v8cz.js → model-07pzcvjy.js} +4 -4
- package/dist/chunks/{location-3zcnh6p5.js → model-097tdram.js} +12 -12
- package/dist/chunks/{location-rhjbct0v.js → model-0gdmqesm.js} +4 -4
- package/dist/chunks/{location-36sqq72v.js → model-0m7ycz82.js} +24 -24
- package/dist/chunks/{location-q1w4ag7r.js → model-0p8327n1.js} +11 -11
- package/dist/chunks/{location-0emb60td.js → model-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-b59088ky.js → model-0z1664j4.js} +3 -3
- package/dist/chunks/{location-7y4n3x9r.js → model-15wyy7w2.js} +5 -5
- package/dist/chunks/{location-v5vvs3bk.js → model-1aqxs61q.js} +13 -13
- package/dist/chunks/{location-1ep4rre3.js → model-1ep4rre3.js} +1 -1
- package/dist/chunks/{location-y645j4dr.js → model-1gdg00yg.js} +7 -7
- package/dist/chunks/{location-xw16hbb2.js → model-1hq49wfp.js} +33 -33
- package/dist/chunks/{location-wzfw0r1q.js → model-1jyb01pe.js} +15 -15
- package/dist/chunks/{location-hadrdvqz.js → model-1khnc541.js} +13 -13
- package/dist/chunks/{location-ecntzyvb.js → model-1n2tbqxy.js} +13 -13
- package/dist/chunks/{location-9qee0jk3.js → model-1t0smfc2.js} +5 -5
- package/dist/chunks/{location-e2jk5y12.js → model-1v2yvtm3.js} +27 -27
- package/dist/chunks/{location-dwa92pvc.js → model-1xfgz0sp.js} +6 -6
- package/dist/chunks/{location-fg19zjyy.js → model-21apjdyf.js} +9 -9
- package/dist/chunks/{location-ente2efs.js → model-22x4nvy2.js} +19 -19
- package/dist/chunks/{location-2s32b1pm.js → model-251hxpd6.js} +2 -2
- package/dist/chunks/{location-pkr96zq9.js → model-281szs7x.js} +50 -50
- package/dist/chunks/{location-wxgp157e.js → model-2dfjzq3d.js} +12 -12
- package/dist/chunks/{location-16qr8wfy.js → model-2g6dfhex.js} +28 -28
- package/dist/chunks/{location-zct001gj.js → model-2kmfbs7e.js} +5 -5
- package/dist/chunks/{location-ft3hqk2c.js → model-2sejkfem.js} +9 -9
- package/dist/chunks/{location-6yva2bse.js → model-2shkhq8w.js} +88 -88
- package/dist/chunks/{location-z3507kbh.js → model-32y4ehgv.js} +11 -11
- package/dist/chunks/{location-m15ha2ry.js → model-3d73cf36.js} +6 -6
- package/dist/chunks/{location-q8va88r3.js → model-3ev0eyv6.js} +18 -18
- package/dist/chunks/{location-3hepkmqq.js → model-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-3hwn7j4h.js → model-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-sxzvkvgj.js → model-3ppptnan.js} +6 -6
- package/dist/chunks/{location-j1nd8abd.js → model-3pwzytv4.js} +24 -24
- package/dist/chunks/{location-3smtnn6g.js → model-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → model-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-3zsf4n22.js → model-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-1ddym2mh.js → model-41wwwxfc.js} +5 -5
- package/dist/chunks/{location-65fdem8g.js → model-4347sc3p.js} +85 -85
- package/dist/chunks/{location-e06rrywx.js → model-44zr7wmx.js} +4 -4
- package/dist/chunks/{location-sf7qeb8m.js → model-49npcfp6.js} +2 -2
- package/dist/chunks/{location-fz5mkw7q.js → model-4fj1av0q.js} +42 -42
- package/dist/chunks/{location-nz5xz1n7.js → model-4maedhka.js} +3 -3
- package/dist/chunks/{location-nq33nhzr.js → model-4npcy765.js} +4 -4
- package/dist/chunks/{location-cqv5jj6t.js → model-4pkmv55a.js} +15 -15
- package/dist/chunks/{location-n4k7r7f4.js → model-4tr9sj3s.js} +3 -3
- package/dist/chunks/model-4v23spqy.js +257 -0
- package/dist/chunks/{location-paby7f9d.js → model-4w4b1d7d.js} +23 -23
- package/dist/chunks/{location-5twn198y.js → model-4xpgt2w9.js} +5 -5
- package/dist/chunks/{location-82bv0hx8.js → model-4zknrba3.js} +10 -10
- package/dist/chunks/{location-b0tpm66f.js → model-51gxmejf.js} +35 -35
- package/dist/chunks/{location-26fskhr4.js → model-52dsmx63.js} +25 -25
- package/dist/chunks/{location-54ma36ye.js → model-54ma36ye.js} +1 -1
- package/dist/chunks/{location-4z58m4b4.js → model-5dkn69vz.js} +4 -4
- package/dist/chunks/{location-1j6m29mr.js → model-5fec3t3w.js} +4 -4
- package/dist/chunks/{location-5m9w47nd.js → model-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-zjmprxn1.js → model-5nszh0bg.js} +24 -24
- package/dist/chunks/{location-7erj7fjt.js → model-5r6fx5kf.js} +29 -29
- package/dist/chunks/{location-e80seqcp.js → model-5rzwp8tz.js} +3 -3
- package/dist/chunks/{location-2ewxebqs.js → model-5z23qfcc.js} +21 -21
- package/dist/chunks/{location-j5qwz8we.js → model-625mrsyp.js} +45 -45
- package/dist/chunks/{location-ewmg55kq.js → model-64wcp3ah.js} +24 -24
- package/dist/chunks/{location-6827pfxn.js → model-6827pfxn.js} +1 -1
- package/dist/chunks/{location-4hvcvget.js → model-69dwh4me.js} +12 -12
- package/dist/chunks/{location-py3kkmfq.js → model-6pc27hjz.js} +6 -6
- package/dist/chunks/{location-emfv9g84.js → model-6qr4j83s.js} +7 -7
- package/dist/chunks/{location-38jcv3yh.js → model-6rz1y2wy.js} +26 -26
- package/dist/chunks/{location-6xb47vfp.js → model-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-m7mg6z5e.js → model-70hdk6w9.js} +17 -17
- package/dist/chunks/{location-gbeakqqf.js → model-71vf3ngy.js} +51 -51
- package/dist/chunks/{location-j143ef64.js → model-73e3zp3f.js} +38 -38
- package/dist/chunks/{location-r61qxybf.js → model-757464b7.js} +8 -8
- package/dist/chunks/{location-775gj3j1.js → model-775gj3j1.js} +2 -2
- package/dist/chunks/model-7bkvk8rj.js +26 -0
- package/dist/chunks/{location-7bmhse3q.js → model-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-s8k2chda.js → model-7bs235hv.js} +11 -11
- package/dist/chunks/{location-7dqw4kz8.js → model-7dqw4kz8.js} +1 -1
- package/dist/chunks/{location-wb1vxtey.js → model-7s91hvyw.js} +18 -18
- package/dist/chunks/{location-r64n44sy.js → model-7wjtm8pe.js} +23 -23
- package/dist/chunks/{location-yhszmqfx.js → model-7xbjxe45.js} +14 -14
- package/dist/chunks/{location-bkbywy3k.js → model-80c2k4k7.js} +25 -25
- package/dist/chunks/{location-02kx3tbe.js → model-87y04qby.js} +18 -18
- package/dist/chunks/{location-2g814kqn.js → model-887mgra2.js} +51 -51
- package/dist/chunks/{location-3ts4rwt9.js → model-8fqv1czf.js} +18 -18
- package/dist/chunks/{location-8m6m0r52.js → model-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-3qrn957t.js → model-8qrvq6xp.js} +18 -18
- package/dist/chunks/{location-nb9p6b26.js → model-8tsdq50x.js} +4 -4
- package/dist/chunks/{location-839dsb85.js → model-8wvywagr.js} +34 -34
- package/dist/chunks/{location-91qna3x0.js → model-91qna3x0.js} +3 -3
- package/dist/chunks/{location-hx734pww.js → model-91rcp8sj.js} +3 -3
- package/dist/chunks/{location-z1j2pzfs.js → model-95vh4d4w.js} +39 -39
- package/dist/chunks/{location-0v7eyxsd.js → model-9880wbbs.js} +11 -11
- package/dist/chunks/{location-s2e8778m.js → model-9ersraf9.js} +36 -36
- package/dist/chunks/{location-gm5yckp5.js → model-9knpn9fj.js} +7 -7
- package/dist/chunks/{location-09zy2qv2.js → model-9n6penxb.js} +9 -9
- package/dist/chunks/{location-bqwheb6v.js → model-a3jygwg9.js} +11 -11
- package/dist/chunks/{location-t67svzf9.js → model-a9g1m0ex.js} +18 -18
- package/dist/chunks/{location-3d48mnvn.js → model-aam1wbba.js} +16 -16
- package/dist/chunks/{location-9tc0jcfa.js → model-ad0pmgce.js} +12 -12
- package/dist/chunks/{location-mxvxcxwy.js → model-addxnjmp.js} +4 -4
- package/dist/chunks/{location-j1j4kkfc.js → model-aeda8hqw.js} +18 -18
- package/dist/chunks/{location-jdg1karv.js → model-aft55nha.js} +11 -11
- package/dist/chunks/{location-2e91r8ns.js → model-agbqvzyh.js} +45 -45
- package/dist/chunks/{location-1be3me4v.js → model-ancsbgw1.js} +32 -32
- package/dist/chunks/{location-p9d54bvt.js → model-ankjvyyp.js} +17 -17
- package/dist/chunks/{location-qkkeybah.js → model-aq8vh238.js} +38 -38
- package/dist/chunks/{location-tq44hnx5.js → model-atgtgdsa.js} +16 -16
- package/dist/chunks/{location-ekd657r5.js → model-athpecc5.js} +20 -20
- package/dist/chunks/{location-dwvsy3nv.js → model-awbtd0yc.js} +14 -14
- package/dist/chunks/{location-np3vtmgz.js → model-awpj2eee.js} +20 -20
- package/dist/chunks/{location-g3jf8veg.js → model-aykdkgmz.js} +28 -28
- package/dist/chunks/{location-swsbk68p.js → model-b8q0dhmk.js} +32 -32
- package/dist/chunks/{location-vxcce85q.js → model-b8q5jebn.js} +19 -19
- package/dist/chunks/{location-qny204zj.js → model-be0c020n.js} +4 -4
- package/dist/chunks/{location-8p10m0h9.js → model-bn1qxpvg.js} +18 -18
- package/dist/chunks/{location-es1vcfrp.js → model-c1fqxshp.js} +3 -3
- package/dist/chunks/{location-4ekscj25.js → model-c41dsvxf.js} +5 -5
- package/dist/chunks/{location-cq4af28t.js → model-c7e58gyn.js} +17 -17
- package/dist/chunks/{location-efattxwn.js → model-ca0q5yrm.js} +23 -23
- package/dist/chunks/{location-1xcwytz6.js → model-cdzn34jf.js} +11 -11
- package/dist/chunks/{location-hn53eq1n.js → model-ckyjf00w.js} +45 -45
- package/dist/chunks/{location-qgrkf2kv.js → model-czn9w0x8.js} +11 -11
- package/dist/chunks/{location-032jfrr5.js → model-d0r6ezqk.js} +8 -8
- package/dist/chunks/{location-d1a28jh7.js → model-d1a28jh7.js} +2 -2
- package/dist/chunks/{location-ztp3s23f.js → model-ddf16z40.js} +26 -26
- package/dist/chunks/{location-w2pw2zr6.js → model-dqkkx36v.js} +4 -4
- package/dist/chunks/{location-xfkkasph.js → model-drwq78ky.js} +4 -4
- package/dist/chunks/{location-nmcmr329.js → model-dw7nrsaq.js} +324 -320
- package/dist/chunks/{location-xckvy3p8.js → model-dxbxxdsx.js} +3 -3
- package/dist/chunks/{location-646b8sf1.js → model-dxe8y5pz.js} +4 -4
- package/dist/chunks/{location-m49t52b5.js → model-e4n90qqz.js} +20 -20
- package/dist/chunks/{location-0cbjkd5m.js → model-e5shmecn.js} +33 -25
- package/dist/chunks/{location-eej6y6fw.js → model-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-ef5x83kb.js → model-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-0kh9z3js.js → model-ej3ps13p.js} +11 -11
- package/dist/chunks/{location-91erwma2.js → model-es2a07ty.js} +13 -13
- package/dist/chunks/{location-1acjjqhc.js → model-f2n192rq.js} +4 -4
- package/dist/chunks/{location-fcy631f0.js → model-fcy631f0.js} +1 -1
- package/dist/chunks/{location-c9pafwgt.js → model-fe6t81kk.js} +31 -31
- package/dist/chunks/{location-fegk541e.js → model-fwfdmgk0.js} +5 -5
- package/dist/chunks/{location-4cq1c4nh.js → model-fz60qaa0.js} +1 -1
- package/dist/chunks/{location-5mh53trv.js → model-g70banep.js} +21 -21
- package/dist/chunks/{location-jrnq1yzd.js → model-g9senpad.js} +26 -26
- package/dist/chunks/{location-gd4qta3r.js → model-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-5qvfym9p.js → model-gkp0ddc4.js} +8 -8
- package/dist/chunks/{location-x8nz1cbt.js → model-gprk1h4z.js} +3 -3
- package/dist/chunks/{location-dj69npnr.js → model-graqqgqk.js} +13 -13
- package/dist/chunks/{location-ecvncs9t.js → model-gsf378dw.js} +35 -35
- package/dist/chunks/{location-4nk0sezm.js → model-gvq4k2rx.js} +3 -3
- package/dist/chunks/{location-ydgy0jv4.js → model-h5b4kcx3.js} +4 -4
- package/dist/chunks/{location-h6vf3j39.js → model-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-hz955cxv.js → model-hgtsck7j.js} +20 -20
- package/dist/chunks/{location-hgz4x7wa.js → model-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-xx71wknj.js → model-hmn8skn7.js} +32 -32
- package/dist/chunks/{location-2vs2nh1n.js → model-hn57h045.js} +4 -4
- package/dist/chunks/{location-p3dsvwjj.js → model-hrd0r9w9.js} +31 -31
- package/dist/chunks/{location-1n4r682m.js → model-hyhre3w8.js} +3 -3
- package/dist/chunks/{location-1wyc8y7g.js → model-hyq6bs5b.js} +28 -28
- package/dist/chunks/{location-b7j1nepq.js → model-hz4f5mwj.js} +9 -9
- package/dist/chunks/{location-z5vjvv3z.js → model-j1aawj34.js} +24 -24
- package/dist/chunks/{location-zy43x3f1.js → model-j8m1p4p1.js} +4 -4
- package/dist/chunks/{location-gd0tnyjc.js → model-jhdf29st.js} +1 -1
- package/dist/chunks/{location-t3w66r2s.js → model-jpnzyfkp.js} +17 -17
- package/dist/chunks/{location-pwx39njg.js → model-k14cytbx.js} +23 -18
- package/dist/chunks/{location-xk8qaj8b.js → model-k5asgy6z.js} +37 -37
- package/dist/chunks/{location-wan1txhx.js → model-k6zys8zm.js} +17 -17
- package/dist/chunks/{location-khmqacep.js → model-khmqacep.js} +1 -1
- package/dist/chunks/{location-fn9t717r.js → model-kmj26603.js} +6 -6
- package/dist/chunks/{location-kwb1v3vj.js → model-kwb1v3vj.js} +1 -1
- package/dist/chunks/{location-hyem0413.js → model-kwrthnf5.js} +11 -11
- package/dist/chunks/{location-m9w0rfyh.js → model-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-maspj1v3.js → model-maspj1v3.js} +1 -1
- package/dist/chunks/{location-p7d55m61.js → model-mnwdfy6v.js} +40 -40
- package/dist/chunks/{location-ss358qx3.js → model-my4zabxr.js} +3 -3
- package/dist/chunks/{location-xhg7ze7g.js → model-mzv3dx1f.js} +23 -23
- package/dist/chunks/{location-p4gjeqhz.js → model-n4c5dz5t.js} +8 -8
- package/dist/chunks/{location-yk2qpeaw.js → model-n7y0njwp.js} +27 -27
- package/dist/chunks/{location-bggc72t2.js → model-n9rxncxh.js} +21 -21
- package/dist/chunks/{location-cfd40scj.js → model-n9wyj86f.js} +8 -8
- package/dist/chunks/{location-27mmh661.js → model-ne4b8g45.js} +46 -46
- package/dist/chunks/{location-7wg9zefd.js → model-nqan7h4w.js} +5 -5
- package/dist/chunks/{location-ky3cgvwd.js → model-ny8kxbfq.js} +8 -8
- package/dist/chunks/{location-ggpkv6dp.js → model-p2a5t6n1.js} +15 -15
- package/dist/chunks/{location-pa8pe2x7.js → model-p4mj4rdp.js} +8 -8
- package/dist/chunks/{location-qjxgyyqm.js → model-p7pxayv7.js} +23 -23
- package/dist/chunks/{location-630y3v0d.js → model-p9ejm27k.js} +185 -185
- package/dist/chunks/{location-wk0bzpnn.js → model-pcvvctms.js} +21 -21
- package/dist/chunks/{location-p0swpct4.js → model-pdpqmpbc.js} +10 -10
- package/dist/chunks/{location-kymtw6sz.js → model-pe8kdg2p.js} +17 -17
- package/dist/chunks/{location-pjvnvgmy.js → model-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-8x62mzeg.js → model-pkd7a947.js} +29 -29
- package/dist/chunks/{location-pknna89w.js → model-pknna89w.js} +1 -1
- package/dist/chunks/{location-zm69bbn9.js → model-pmrbxne1.js} +16 -16
- package/dist/chunks/{location-4r5v39fv.js → model-q0nrsbdj.js} +10 -10
- package/dist/chunks/{location-n9mzspqs.js → model-q38gq3gg.js} +15 -15
- package/dist/chunks/{location-rm4mkcw0.js → model-q9s78hn2.js} +9 -9
- package/dist/chunks/{location-a2ew8a62.js → model-qa3qhgw8.js} +4 -4
- package/dist/chunks/{location-rsvjy1hm.js → model-qcr1ft2j.js} +16 -16
- package/dist/chunks/{location-1m9tv0k3.js → model-qg72ng58.js} +30 -30
- package/dist/chunks/{location-h4e45ygc.js → model-qge264qz.js} +28 -28
- package/dist/chunks/{location-t2zy804g.js → model-qhqzagh6.js} +11 -11
- package/dist/chunks/{location-4jbaex4p.js → model-qn5g76bm.js} +11 -11
- package/dist/chunks/{location-qnc92qwc.js → model-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-fgx42ntb.js → model-qne3fa44.js} +5 -5
- package/dist/chunks/{location-qsdy395h.js → model-qsdy395h.js} +1 -1
- package/dist/chunks/{location-m8p5ty25.js → model-qzyrmewc.js} +10 -10
- package/dist/chunks/{location-5s5bfnr6.js → model-r3berafb.js} +30 -30
- package/dist/chunks/{location-34zpk2m0.js → model-r5atchfd.js} +29 -29
- package/dist/chunks/{location-0rm38x63.js → model-r8h9xppv.js} +9 -9
- package/dist/chunks/model-rap9a73h.js +18 -0
- package/dist/chunks/{location-qdxpp4ce.js → model-rcz188q3.js} +4 -4
- package/dist/chunks/{location-rdw6cm16.js → model-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-tkb22qbm.js → model-rert0e01.js} +2 -2
- package/dist/chunks/{location-c41wscbt.js → model-rj3eygr5.js} +2 -2
- package/dist/chunks/{location-z4005aq0.js → model-rr7kcg9w.js} +19 -19
- package/dist/chunks/{location-zfhna5dg.js → model-rtaw32ca.js} +9 -9
- package/dist/chunks/{location-e4pt97mw.js → model-rym9dfdm.js} +17 -17
- package/dist/chunks/{location-6fatt4mk.js → model-s1kvmffy.js} +9 -9
- package/dist/chunks/{location-2ktf0ed2.js → model-s5met55r.js} +8 -8
- package/dist/chunks/{location-c8ax2afj.js → model-sa8ekw3f.js} +2 -2
- package/dist/chunks/{location-pnkbpv6t.js → model-scv7p57g.js} +9 -9
- package/dist/chunks/{location-eq88vr3p.js → model-sf5qjhtj.js} +11 -11
- package/dist/chunks/model-sgtrt5z9.js +97 -0
- package/dist/chunks/{location-2766hrpb.js → model-ssjyj57x.js} +6 -6
- package/dist/chunks/{location-2fz504me.js → model-stapj22y.js} +18 -18
- package/dist/chunks/{location-ekmn27dt.js → model-sxjbcd6h.js} +22 -22
- package/dist/chunks/{location-czamcpfm.js → model-syqwr3zh.js} +14 -14
- package/dist/chunks/{location-syv4x271.js → model-syv4x271.js} +1 -1
- package/dist/chunks/{location-7cdnq8hx.js → model-t0h2n3rs.js} +13 -13
- package/dist/chunks/{location-vw4xzb9e.js → model-t0kn5a8z.js} +21 -21
- package/dist/chunks/{location-h8ngs2s3.js → model-t1jfcm4z.js} +9 -9
- package/dist/chunks/{location-06pf4dgp.js → model-t32m0x77.js} +16 -16
- package/dist/chunks/{location-e7qaqr7r.js → model-t9p9ds3w.js} +43 -43
- package/dist/chunks/{location-tazgh4e4.js → model-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → model-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-tdstcens.js → model-tdstcens.js} +1 -1
- package/dist/chunks/{location-xwjdvtn9.js → model-te6jzdmb.js} +5 -5
- package/dist/chunks/{location-tm0kqsz3.js → model-tm0kqsz3.js} +1 -1
- package/dist/chunks/{location-vtt0yr3x.js → model-tnj6rg6w.js} +13 -13
- package/dist/chunks/{location-dn7gk5nr.js → model-tqfze7qe.js} +34 -34
- package/dist/chunks/{location-ehkp9wrv.js → model-tyj5kcgj.js} +5 -5
- package/dist/chunks/{location-tyytaxap.js → model-tyytaxap.js} +1 -1
- package/dist/chunks/{location-n477w9kb.js → model-v3ff97sk.js} +42 -42
- package/dist/chunks/{location-rwpyag6c.js → model-v5t5db04.js} +13 -13
- package/dist/chunks/{location-v7p4zvkq.js → model-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-w9vjgmgf.js → model-vaj0eftp.js} +5 -5
- package/dist/chunks/{location-jfn3ppc2.js → model-vcvrskz7.js} +14 -14
- package/dist/chunks/{location-trskfet7.js → model-vd0d0qbj.js} +4 -4
- package/dist/chunks/{location-veqvce7d.js → model-veqvce7d.js} +1 -1
- package/dist/chunks/{location-pvd1kp2q.js → model-vsd1gfwp.js} +12 -12
- package/dist/chunks/{location-vzs5sf6e.js → model-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-aygc7d7x.js → model-w0wzfpd6.js} +22 -22
- package/dist/chunks/{location-84txncab.js → model-w1eejvng.js} +5 -5
- package/dist/chunks/{location-w3wsvvr9.js → model-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → model-wd87259q.js} +1 -1
- package/dist/chunks/{location-531wkgpw.js → model-ws4vyhwj.js} +8 -8
- package/dist/chunks/{location-5g0zwpkx.js → model-wv1zjxz8.js} +69 -69
- package/dist/chunks/{location-7zst7kbs.js → model-xatn3567.js} +15 -15
- package/dist/chunks/{location-ktyahk7g.js → model-xyskky0w.js} +24 -24
- package/dist/chunks/{location-y1fvbwt7.js → model-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-s8eppwwz.js → model-y43trhdb.js} +5 -5
- package/dist/chunks/{location-y71avatq.js → model-y71avatq.js} +1 -1
- package/dist/chunks/{location-gaa92h44.js → model-y7nndgyc.js} +2 -2
- package/dist/chunks/{location-bdb3egq1.js → model-yex8rs33.js} +19 -19
- package/dist/chunks/{location-npyv4msc.js → model-yg1rf1wp.js} +4 -4
- package/dist/chunks/{location-ykd62qee.js → model-yg5d8nnt.js} +33 -33
- package/dist/chunks/{location-2cg16nxe.js → model-yhd4kr0d.js} +34 -34
- package/dist/chunks/{location-w382j1sg.js → model-ysf596fe.js} +1 -1
- package/dist/chunks/{location-1ffvrpkg.js → model-ywt8jp22.js} +6 -6
- package/dist/chunks/{location-z0bkrqjs.js → model-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-3fc6dm20.js → model-z18fegx4.js} +4 -4
- package/dist/chunks/{location-ffgh9twm.js → model-z4gkakm8.js} +13 -13
- package/dist/chunks/{location-nwz3xn1w.js → model-z5cwttbn.js} +6 -6
- package/dist/chunks/{location-mmve37cn.js → model-z8ajx630.js} +10 -10
- package/dist/chunks/{location-8d765g8y.js → model-zkzbh4fe.js} +10 -10
- package/dist/chunks/{location-3a0fe738.js → model-zps3pk6h.js} +10 -10
- package/dist/chunks/{location-zr2ceqn5.js → model-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-xxqqcrba.js → model-zv6mcmn5.js} +10 -10
- package/dist/chunks/{location-9etjxb25.js → model-zx174a2x.js} +19 -19
- package/dist/chunks/{location-zxq2ej10.js → model-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -117
- 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 +81 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -369
- 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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -219
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +108 -108
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +104 -104
- 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 +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -357
- 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 +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +105 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -331
- 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 +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -346
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +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 +97 -97
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- 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 +136 -136
- 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 +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +126 -126
- 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 +206 -206
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +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 +122 -122
- package/dist/tool/plugin/question.js +111 -111
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +147 -0
- package/dist/tool/plugin/webfetch.js +110 -110
- 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 +16 -16
- package/dist/types/tool/plugin/todo.d.ts +29 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/voice.js +88 -88
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- 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 +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/location-ht5y0zrb.js +0 -18
- package/dist/chunks/location-j6js6ktv.js +0 -26
- package/dist/chunks/location-ng2x5jnt.js +0 -257
- /package/dist/chunks/{location-0qkdqm5v.js → model-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → model-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → model-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → model-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → model-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → model-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → model-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → model-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → model-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → model-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → model-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → model-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3t0ybcrp.js → model-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → model-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → model-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → model-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → model-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → model-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → model-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → model-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → model-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → model-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → model-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → model-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → model-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → model-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → model-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → model-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → model-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → model-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → model-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → model-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → model-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → model-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → model-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → model-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → model-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → model-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → model-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → model-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → model-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → model-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → model-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → model-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → model-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → model-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → model-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e3qxr5gk.js → model-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → model-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → model-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → model-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → model-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → model-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → model-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → model-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → model-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → model-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → model-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → model-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → model-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → model-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → model-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → model-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → model-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → model-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → model-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → model-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → model-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → model-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → model-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → model-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → model-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → model-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → model-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → model-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → model-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-pkyv6v7h.js → model-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{location-pyv0edze.js → model-pyv0edze.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → model-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → model-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → model-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → model-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → model-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → model-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → model-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → model-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → model-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → model-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → model-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → model-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → model-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → model-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wjj7prxr.js → model-wjj7prxr.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → model-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → model-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → model-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → model-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → model-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → model-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → model-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → model-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → model-z9919s4g.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./model-pmrbxne1.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service45
|
|
9
|
+
} from "./model-7s91hvyw.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service7
|
|
12
|
+
} from "./model-rr7kcg9w.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-hgz4x7wa.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service6
|
|
27
|
+
} from "./model-jpnzyfkp.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./model-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input11,
|
|
36
|
+
Plugin: () => Plugin13,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name11,
|
|
39
|
+
toModelContent: () => toModelContent6
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name11 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input11 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin13 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service6;
|
|
62
|
+
const access = yield* Service45;
|
|
63
|
+
const sessionInstructions = yield* Service7;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service80;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name11,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input11,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -113,7 +113,7 @@ var Plugin5 = {
|
|
|
113
113
|
return { output: result.content, path: result.path };
|
|
114
114
|
}).pipe(Effect.map((result) => ({
|
|
115
115
|
output: result.output,
|
|
116
|
-
content:
|
|
116
|
+
content: toModelContent6(result.path, input.offset, result.output),
|
|
117
117
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
118
118
|
})), Effect.mapError((error) => {
|
|
119
119
|
if (error instanceof ToolFailure)
|
|
@@ -146,7 +146,7 @@ ${suggestions.join(`
|
|
|
146
146
|
});
|
|
147
147
|
})
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var toModelContent6 = (path, offset, output) => {
|
|
150
150
|
if (output.type === "file" && output.encoding === "base64")
|
|
151
151
|
return [
|
|
152
152
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -182,4 +182,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
182
182
|
`);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
export {
|
|
185
|
+
export { name11, Input11, Plugin13, toModelContent6, exports_read };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-vd0d0qbj.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
13
|
var exports_command4 = {};
|
|
14
14
|
__export(exports_command4, {
|
|
15
15
|
Command: () => exports_command4,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event5,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info6,
|
|
19
|
+
NotFoundError: () => NotFoundError5,
|
|
20
|
+
Service: () => Service35,
|
|
21
|
+
layer: () => layer18,
|
|
22
|
+
node: () => node38
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event5 } from "@opencode/schema/command";
|
|
28
|
+
var Info6 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError5 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service35 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer18 = Layer.effect(Service35, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service85;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer16 = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info6.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service35.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,14 +66,14 @@ var layer16 = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError5({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
74
|
+
var node38 = makeLocationNode({
|
|
75
|
+
service: Service35,
|
|
76
|
+
layer: layer18,
|
|
77
77
|
deps: [node89]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info6, NotFoundError5, ExecutionError2, Service35, layer18, node38, exports_command4, Event5 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-r3berafb.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service69
|
|
6
|
+
} from "./model-1hq49wfp.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/verbosity.ts
|
|
12
12
|
var exports_verbosity = {};
|
|
13
13
|
__export(exports_verbosity, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin48,
|
|
15
15
|
VerbosityPlugin: () => exports_verbosity
|
|
16
16
|
});
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -27,10 +27,10 @@ var gateways = new Set([
|
|
|
27
27
|
"@opencode/ai/providers/vercel-ai-gateway",
|
|
28
28
|
aisdk2("@ai-sdk/gateway")
|
|
29
29
|
]);
|
|
30
|
-
var
|
|
30
|
+
var Plugin48 = define({
|
|
31
31
|
id: "opencode.prompt.verbosity",
|
|
32
32
|
effect: Effect.fn("VerbosityPlugin")(function* (ctx) {
|
|
33
|
-
const models = yield*
|
|
33
|
+
const models = yield* Service69;
|
|
34
34
|
const hook = (event) => Effect.gen(function* () {
|
|
35
35
|
if (event.options.textVerbosity !== undefined)
|
|
36
36
|
return;
|
|
@@ -70,4 +70,4 @@ function openAIModelID(model) {
|
|
|
70
70
|
return id.slice("openai/".length);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Plugin48, exports_verbosity };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-gprk1h4z.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-vd0d0qbj.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service82,
|
|
14
|
+
node86
|
|
15
|
+
} from "./model-69dwh4me.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID16,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info28,
|
|
20
20
|
UpdateInput5,
|
|
21
|
-
|
|
21
|
+
Event19,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./model-q9s78hn2.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./model-rj3eygr5.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./model-sa8ekw3f.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./model-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: () => ID15,
|
|
40
|
+
Info: () => Info27,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput4,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node85,
|
|
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 ID15 = ID16;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info27 = Info28;
|
|
63
63
|
var UpdateInput4 = UpdateInput5;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID15
|
|
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,9 +98,9 @@ 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
105
|
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service83, 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(Event19.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service83, 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 ?? ID15.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(Service83, 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(Event19.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service83, 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(Event19.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 ? ID15.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID15.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(Service83, 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 ? ID15.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(Service83, 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 ? ID15.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(Service83, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID15.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service83, 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 ?? ID15.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(Service83, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID15.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service83, 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, ID15.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(Service83, 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(Event19.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 node85 = makeGlobalNode({
|
|
310
|
+
service: Service81,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node89, node90, FSUtil.node,
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node86, 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: [node85]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID15, Vcs2, Current2, Info27, UpdateInput4, NotFoundError11, root2, Service81, node85, sweepNode2, exports_project };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-95vh4d4w.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin49
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin49 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -105,4 +105,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
105
105
|
}, undefined);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
export {
|
|
108
|
+
export { Plugin49, exports_plan };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service35
|
|
3
|
+
} from "./model-n9rxncxh.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service40
|
|
6
|
+
} from "./model-3ppptnan.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-rap9a73h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-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(Service35), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorktreeError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-69dwh4me.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service50
|
|
6
|
+
} from "./model-95vh4d4w.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service45
|
|
9
|
+
} from "./model-7s91hvyw.js";
|
|
10
10
|
import {
|
|
11
11
|
DirectoryUnavailableError2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-0vbcp93d.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Info12,
|
|
15
15
|
List2,
|
|
16
16
|
InvalidDirectoryError2,
|
|
17
17
|
StrategyUnavailableError2,
|
|
18
18
|
OperationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-aq8vh238.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./model-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/tool/plugin/opencode.ts
|
|
25
25
|
var exports_opencode = {};
|
|
@@ -27,7 +27,7 @@ __export(exports_opencode, {
|
|
|
27
27
|
ModelsInput: () => ModelsInput2,
|
|
28
28
|
MoveInput: () => MoveInput2,
|
|
29
29
|
OpenCodeTools: () => exports_opencode,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin10,
|
|
31
31
|
RenameInput: () => RenameInput2,
|
|
32
32
|
WorktreeCreateInput: () => WorktreeCreateInput2,
|
|
33
33
|
WorktreeRemoveInput: () => WorktreeRemoveInput2
|
|
@@ -97,11 +97,11 @@ var ModelsOutput = Schema.Struct({
|
|
|
97
97
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
98
98
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
99
99
|
});
|
|
100
|
-
var
|
|
100
|
+
var Plugin10 = {
|
|
101
101
|
id: "opencode.tools",
|
|
102
102
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
103
|
-
const access = yield*
|
|
104
|
-
const permission = yield*
|
|
103
|
+
const access = yield* Service45;
|
|
104
|
+
const permission = yield* Service50;
|
|
105
105
|
const hook = (event) => Effect.sync(() => {
|
|
106
106
|
event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
|
|
107
107
|
});
|
|
@@ -153,7 +153,7 @@ var Plugin4 = {
|
|
|
153
153
|
name: "worktree_create",
|
|
154
154
|
description: "Create a named worktree. Returns its directory.",
|
|
155
155
|
input: WorktreeCreateInput2,
|
|
156
|
-
output:
|
|
156
|
+
output: Info12,
|
|
157
157
|
options: { namespace: "opencode", codemode: true, pinned: true },
|
|
158
158
|
execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
|
|
159
159
|
});
|
|
@@ -250,4 +250,4 @@ function removeFailure(directory, error) {
|
|
|
250
250
|
return `Unable to remove worktree ${directory}.`;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2,
|
|
253
|
+
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin10, exports_opencode };
|