@opencode/core 0.0.0-dev-20368 → 0.0.0-dev-20370
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +69 -69
- package/dist/chunks/{reference-w0y7f2dx.js → permission-04y7c9md.js} +5 -5
- package/dist/chunks/{reference-8wbxkt1z.js → permission-0a1yp5ev.js} +4 -4
- package/dist/chunks/{reference-y5jzt5h7.js → permission-0bdrcw2s.js} +2 -2
- package/dist/chunks/{reference-jpx3jw6j.js → permission-0dhw0ffe.js} +22 -22
- package/dist/chunks/{reference-042pe1mc.js → permission-0ejgwqj5.js} +11 -11
- package/dist/chunks/{reference-t9cv2z2y.js → permission-0erzwnay.js} +15 -15
- package/dist/chunks/{reference-tvf9c7hb.js → permission-0fpgbkbg.js} +33 -33
- package/dist/chunks/{reference-0paq2nw3.js → permission-0paq2nw3.js} +1 -1
- package/dist/chunks/{reference-9b4bv5f3.js → permission-0s4jt7ck.js} +16 -16
- package/dist/chunks/{reference-ey47svxm.js → permission-0x3xhv9s.js} +23 -23
- package/dist/chunks/{reference-e2v1jf5m.js → permission-19a3bxyq.js} +26 -26
- package/dist/chunks/{reference-1dazxqgg.js → permission-1dazxqgg.js} +2 -2
- package/dist/chunks/{reference-znpmv816.js → permission-1fcbx43p.js} +6 -6
- package/dist/chunks/{reference-7sw46e0q.js → permission-1gy1kzgk.js} +13 -13
- package/dist/chunks/{reference-1w3qez5w.js → permission-1jksmp28.js} +20 -20
- package/dist/chunks/{reference-ydqd2mjj.js → permission-1pbdd952.js} +14 -14
- package/dist/chunks/{reference-eh5brr6k.js → permission-21jww7bk.js} +39 -39
- package/dist/chunks/{reference-21r38tys.js → permission-21r38tys.js} +1 -1
- package/dist/chunks/{reference-5fanhak1.js → permission-23sxhf85.js} +5 -5
- package/dist/chunks/{reference-2a5m3afh.js → permission-2a5m3afh.js} +1 -1
- package/dist/chunks/{reference-3wpv8ytq.js → permission-2h78p8f6.js} +9 -9
- package/dist/chunks/{reference-vsa42d0b.js → permission-2s49x10j.js} +33 -33
- package/dist/chunks/{reference-gst7axd9.js → permission-2vs2nh1n.js} +4 -4
- package/dist/chunks/{reference-czs4devj.js → permission-31935g6e.js} +23 -23
- package/dist/chunks/{reference-tt79120p.js → permission-32tc36nq.js} +17 -17
- package/dist/chunks/{reference-1ygqh575.js → permission-33w4ejhs.js} +6 -6
- package/dist/chunks/{reference-g4x060ga.js → permission-3df9c95v.js} +11 -11
- package/dist/chunks/{reference-qxvtm6f6.js → permission-3f4vjzp5.js} +15 -15
- package/dist/chunks/{reference-3fc6dm20.js → permission-3fc6dm20.js} +1 -1
- package/dist/chunks/{reference-3hepkmqq.js → permission-3hepkmqq.js} +1 -1
- package/dist/chunks/{reference-5yts36ct.js → permission-3kefyn93.js} +1 -1
- package/dist/chunks/{reference-t9yx3vxp.js → permission-3mq23zwx.js} +22 -22
- package/dist/chunks/{reference-8aaqm6qj.js → permission-3rtxz4nr.js} +8 -8
- package/dist/chunks/{reference-3smtnn6g.js → permission-3smtnn6g.js} +1 -1
- package/dist/chunks/{reference-3tvqynh2.js → permission-3tvqynh2.js} +1 -1
- package/dist/chunks/{reference-3zsf4n22.js → permission-3zsf4n22.js} +1 -1
- package/dist/chunks/{reference-jqw8ttv0.js → permission-427k1480.js} +28 -28
- package/dist/chunks/{reference-0cswr742.js → permission-49p96vjc.js} +18 -18
- package/dist/chunks/{reference-1dh04bw7.js → permission-4crz3yg0.js} +11 -11
- package/dist/chunks/{reference-erycay7t.js → permission-4fgk5d3c.js} +27 -27
- package/dist/chunks/{reference-a81kfqvn.js → permission-4j4tgtq5.js} +4 -4
- package/dist/chunks/{reference-anb3p609.js → permission-4vsg18s2.js} +49 -49
- package/dist/chunks/{reference-sz9xv9xn.js → permission-4x9c7n91.js} +30 -30
- package/dist/chunks/{reference-01rnkbd0.js → permission-52027f07.js} +11 -11
- package/dist/chunks/{reference-54ma36ye.js → permission-54ma36ye.js} +1 -1
- package/dist/chunks/{reference-mcfy26hj.js → permission-54q6acz6.js} +27 -27
- package/dist/chunks/{reference-57ez7d0k.js → permission-57ez7d0k.js} +2 -2
- package/dist/chunks/{reference-5daktx2q.js → permission-5daktx2q.js} +1 -1
- package/dist/chunks/{reference-vt1m752q.js → permission-5hpfsd7b.js} +15 -15
- package/dist/chunks/{reference-kb6gw2zp.js → permission-5qwkxp89.js} +4 -4
- package/dist/chunks/{reference-5t3nmthw.js → permission-5t3nmthw.js} +2 -2
- package/dist/chunks/{reference-yzmt9s1b.js → permission-5t9beh84.js} +13 -13
- package/dist/chunks/{reference-4r36fkdq.js → permission-5xkfwbv7.js} +11 -11
- package/dist/chunks/{reference-k2a504bc.js → permission-607px8n0.js} +11 -11
- package/dist/chunks/{reference-qgn6gcr1.js → permission-607tc6va.js} +5 -5
- package/dist/chunks/{reference-631f6jmb.js → permission-64egxyhr.js} +17 -17
- package/dist/chunks/{reference-669tq793.js → permission-669tq793.js} +1 -1
- package/dist/chunks/{reference-ecjyjz8w.js → permission-68z9rgrz.js} +16 -16
- package/dist/chunks/{reference-c7b2m6fb.js → permission-6ak8f85n.js} +20 -20
- package/dist/chunks/{reference-n9kfxdp9.js → permission-6cp8gy7g.js} +17 -17
- package/dist/chunks/{reference-dez8vmgp.js → permission-6e60j6h9.js} +316 -316
- package/dist/chunks/{reference-6msgmcgs.js → permission-6msgmcgs.js} +1 -1
- package/dist/chunks/{reference-xtk3c0wk.js → permission-6p4j8518.js} +18 -18
- package/dist/chunks/{reference-nscc21qe.js → permission-6vhcxtwh.js} +25 -25
- package/dist/chunks/{reference-pxey72j3.js → permission-72dvehs4.js} +36 -36
- package/dist/chunks/{reference-mhkvc446.js → permission-73tb2d7t.js} +3 -3
- package/dist/chunks/{reference-jdrzz5kz.js → permission-76rzr40z.js} +35 -35
- package/dist/chunks/{reference-8f2n1xr2.js → permission-7af5vrq6.js} +5 -5
- package/dist/chunks/{reference-7bmhse3q.js → permission-7bmhse3q.js} +1 -1
- package/dist/chunks/{reference-tjb59763.js → permission-7kbmqmsj.js} +44 -44
- package/dist/chunks/{reference-2f04pwep.js → permission-7w99qc9d.js} +3 -3
- package/dist/chunks/{reference-n1j0qfw4.js → permission-80h6rbqa.js} +5 -5
- package/dist/chunks/{reference-84txncab.js → permission-84txncab.js} +1 -1
- package/dist/chunks/{reference-eygkpf76.js → permission-8879kc00.js} +13 -13
- package/dist/chunks/{reference-c4qd2t8a.js → permission-89mseg20.js} +20 -20
- package/dist/chunks/{reference-tcezcvh9.js → permission-89znhe33.js} +4 -4
- package/dist/chunks/{reference-gafg8g7a.js → permission-8bfekhzf.js} +6 -6
- package/dist/chunks/{reference-8d7r5vzw.js → permission-8d7r5vzw.js} +1 -1
- package/dist/chunks/{reference-h971pwhf.js → permission-8da5f8wk.js} +11 -11
- package/dist/chunks/{reference-np6nr2kx.js → permission-8dg67tgc.js} +23 -23
- package/dist/chunks/{reference-94ek1h2f.js → permission-94ek1h2f.js} +2 -2
- package/dist/chunks/{reference-r45e0rbq.js → permission-94nx3bkn.js} +26 -26
- package/dist/chunks/{reference-7wcwe48s.js → permission-9qc5btv8.js} +17 -17
- package/dist/chunks/{reference-cp9438d3.js → permission-9wyrae2j.js} +10 -10
- package/dist/chunks/permission-9zdhvgqs.js +18 -0
- package/dist/chunks/{reference-h0f5mnzz.js → permission-9zhybzmq.js} +16 -16
- package/dist/chunks/{reference-pck83k06.js → permission-a6nerz9m.js} +21 -21
- package/dist/chunks/{reference-magykp64.js → permission-a8bn8zg0.js} +4 -4
- package/dist/chunks/{reference-w0ct177m.js → permission-aa2pnbj0.js} +43 -43
- package/dist/chunks/{reference-aaet6srn.js → permission-aaet6srn.js} +2 -2
- package/dist/chunks/{reference-2wbch7sf.js → permission-agtm0ya3.js} +20 -20
- package/dist/chunks/{reference-wzw60d3c.js → permission-agtp7pf2.js} +6 -6
- package/dist/chunks/{reference-kt609s0t.js → permission-ats7mz8e.js} +5 -5
- package/dist/chunks/{reference-b6gygkdw.js → permission-b6gygkdw.js} +2 -2
- package/dist/chunks/{reference-e3t9f1ge.js → permission-b6nyx4np.js} +45 -45
- package/dist/chunks/{reference-zwtn2b75.js → permission-bdefgtnb.js} +18 -18
- package/dist/chunks/{reference-0ft9cg2j.js → permission-bjs2yq5f.js} +6 -6
- package/dist/chunks/{reference-z3zp24an.js → permission-bq2zwxzx.js} +6 -6
- package/dist/chunks/{reference-7zeyjkbe.js → permission-bs2a7trz.js} +4 -4
- package/dist/chunks/{reference-c3h0gj9a.js → permission-bvpz5yky.js} +11 -11
- package/dist/chunks/{reference-akpmqyxp.js → permission-by9xeab9.js} +29 -29
- package/dist/chunks/{reference-ea9448jf.js → permission-c7adbs3c.js} +20 -20
- package/dist/chunks/{reference-00zfhxmf.js → permission-cafm9cfz.js} +37 -37
- package/dist/chunks/{reference-kz7w9h4r.js → permission-ck4hc89a.js} +16 -16
- package/dist/chunks/{reference-ckecvw8r.js → permission-ckecvw8r.js} +2 -2
- package/dist/chunks/{reference-166kng33.js → permission-cmmdg65p.js} +8 -8
- package/dist/chunks/{reference-1bfe16ws.js → permission-cn0rkta0.js} +27 -27
- package/dist/chunks/{reference-v1egv9yp.js → permission-cp2ndxbe.js} +27 -27
- package/dist/chunks/{reference-cr07tj7n.js → permission-cr07tj7n.js} +2 -2
- package/dist/chunks/{reference-q3bp0eqq.js → permission-cr90dj6d.js} +23 -23
- package/dist/chunks/{reference-ngbzmknx.js → permission-cxzqx661.js} +9 -9
- package/dist/chunks/{reference-4srk58w8.js → permission-d3germyq.js} +9 -9
- package/dist/chunks/{reference-djszqvmq.js → permission-d4he2qe1.js} +9 -9
- package/dist/chunks/{reference-0rsrt5zk.js → permission-d53k3y57.js} +10 -10
- package/dist/chunks/{reference-qmdmhxrm.js → permission-dbs53yqd.js} +8 -8
- package/dist/chunks/{reference-dj9sq318.js → permission-dj9sq318.js} +2 -2
- package/dist/chunks/{reference-1pab0y9d.js → permission-djt02vwt.js} +34 -34
- package/dist/chunks/{reference-ar2zeb49.js → permission-dkbzx2zp.js} +5 -5
- package/dist/chunks/{reference-y71avatq.js → permission-dpkg50ah.js} +4 -4
- package/dist/chunks/{reference-260n4hdp.js → permission-e121tcd9.js} +8 -8
- package/dist/chunks/{reference-kdhn56cv.js → permission-e33d7f0w.js} +32 -32
- package/dist/chunks/{reference-y1022pqf.js → permission-e6p0mex9.js} +17 -17
- package/dist/chunks/{reference-ecfe7b91.js → permission-ecfe7b91.js} +2 -2
- package/dist/chunks/{reference-ef5x83kb.js → permission-ef5x83kb.js} +1 -1
- package/dist/chunks/{reference-3t6ehjrr.js → permission-efbgz0y6.js} +15 -15
- package/dist/chunks/{reference-k115rg6b.js → permission-ejdwq7e6.js} +11 -11
- package/dist/chunks/{reference-3e2kzjfs.js → permission-ek982y6y.js} +12 -12
- package/dist/chunks/{reference-44sx4v5c.js → permission-empxz4qs.js} +8 -8
- package/dist/chunks/{reference-tm9580sr.js → permission-enbc6gqg.js} +7 -7
- package/dist/chunks/{reference-etq0c3wd.js → permission-etq0c3wd.js} +1 -1
- package/dist/chunks/{reference-jxz16j3e.js → permission-fd90qgqp.js} +26 -26
- package/dist/chunks/{reference-7a87smht.js → permission-fmhmd7x6.js} +9 -9
- package/dist/chunks/{reference-wb6eeyna.js → permission-fw2v9256.js} +8 -8
- package/dist/chunks/{reference-kzacwcn9.js → permission-fwvq26fj.js} +22 -22
- package/dist/chunks/{reference-xvp1j2dc.js → permission-g5agzp2h.js} +5 -5
- package/dist/chunks/{reference-zhjy7jmn.js → permission-g6kbxn71.js} +4 -4
- package/dist/chunks/{reference-1g7epwpd.js → permission-g8d3gcyj.js} +4 -4
- package/dist/chunks/{reference-gd4qta3r.js → permission-gd4qta3r.js} +1 -1
- package/dist/chunks/{reference-m165mn98.js → permission-gdg0j02x.js} +11 -11
- package/dist/chunks/{reference-qn0j8a2m.js → permission-gkwps8qn.js} +17 -17
- package/dist/chunks/{reference-gv6a8nnw.js → permission-gv6a8nnw.js} +2 -2
- package/dist/chunks/{reference-k7d46rr6.js → permission-gx16nh21.js} +4 -4
- package/dist/chunks/{reference-h6vf3j39.js → permission-h6vf3j39.js} +1 -1
- package/dist/chunks/{reference-gg3hnhsj.js → permission-hd8vw2pw.js} +1 -1
- package/dist/chunks/{reference-3340n1nd.js → permission-hdkh9j50.js} +15 -15
- package/dist/chunks/{reference-tzpv42kz.js → permission-hgzge6de.js} +11 -11
- package/dist/chunks/{reference-qcfhqezt.js → permission-hngyajdm.js} +13 -13
- package/dist/chunks/{reference-510m7gjw.js → permission-hnr5yq9h.js} +5 -5
- package/dist/chunks/{reference-sv2rsgqy.js → permission-hqrhz4kp.js} +27 -27
- package/dist/chunks/{reference-8kg5m582.js → permission-hsf3jfpv.js} +34 -34
- package/dist/chunks/{reference-87szygx8.js → permission-hsgda8ev.js} +77 -77
- package/dist/chunks/{reference-yfn15sv3.js → permission-hxv2ya9m.js} +4 -4
- package/dist/chunks/{reference-hyftv91s.js → permission-j311gd59.js} +6 -6
- package/dist/chunks/{reference-j56e64zr.js → permission-j56e64zr.js} +1 -1
- package/dist/chunks/{reference-gsm9w5gv.js → permission-j5nnsem5.js} +29 -29
- package/dist/chunks/{reference-d858xzj7.js → permission-j5rxtxht.js} +4 -4
- package/dist/chunks/{reference-tvk85ejt.js → permission-j71ym2p6.js} +22 -22
- package/dist/chunks/{reference-71ae86ge.js → permission-jbfqzdbs.js} +4 -4
- package/dist/chunks/{reference-ygwjbdqw.js → permission-jcfeqksw.js} +20 -20
- package/dist/chunks/{reference-6xb9xar3.js → permission-jgs6ncyg.js} +6 -6
- package/dist/chunks/{reference-phdse2cz.js → permission-jpb9ee0w.js} +10 -10
- package/dist/chunks/{reference-21g2k5h0.js → permission-jr2cm19h.js} +11 -11
- package/dist/chunks/{reference-qb2p9zbg.js → permission-jre7zxwm.js} +44 -44
- package/dist/chunks/{reference-6brb3ydz.js → permission-jv82nj1s.js} +9 -9
- package/dist/chunks/{reference-79cntjbh.js → permission-jvmbzbmx.js} +8 -8
- package/dist/chunks/{reference-wsxhr7mz.js → permission-k33k5sgz.js} +1 -1
- package/dist/chunks/{reference-k3c624dm.js → permission-k3c624dm.js} +3 -3
- package/dist/chunks/{reference-0jpfm16a.js → permission-k3gh9jje.js} +24 -24
- package/dist/chunks/{reference-chnshf5d.js → permission-k4xjzc9h.js} +7 -7
- package/dist/chunks/{reference-h3tvvjet.js → permission-k86za1k3.js} +26 -26
- package/dist/chunks/{reference-a15efetj.js → permission-kb57p844.js} +35 -35
- package/dist/chunks/{reference-asw2re3m.js → permission-kbg7spk8.js} +8 -8
- package/dist/chunks/permission-kdzxjsxt.js +252 -0
- package/dist/chunks/{reference-j34dxvpb.js → permission-kerhshr9.js} +5 -5
- package/dist/chunks/{reference-6cneqzas.js → permission-kp6qz4rh.js} +13 -13
- package/dist/chunks/{reference-1nzh38e4.js → permission-kr1vnkd9.js} +9 -9
- package/dist/chunks/{reference-m3fdjcah.js → permission-m3fdjcah.js} +1 -1
- package/dist/chunks/{reference-mc9ss0y5.js → permission-m89q7tvp.js} +12 -12
- package/dist/chunks/{reference-yn5hrsx6.js → permission-m9f7bf3n.js} +48 -48
- package/dist/chunks/{reference-m9w0rfyh.js → permission-m9w0rfyh.js} +1 -1
- package/dist/chunks/{reference-tkr7t7pv.js → permission-mess5aah.js} +11 -11
- package/dist/chunks/{reference-n3j9v3wj.js → permission-mjkxv0xp.js} +9 -9
- package/dist/chunks/{reference-addxnjmp.js → permission-mpk0rfs5.js} +4 -4
- package/dist/chunks/{reference-7an2zr3c.js → permission-mpr53jjd.js} +12 -12
- package/dist/chunks/{reference-3v2fvqfd.js → permission-ms3g0x7n.js} +6 -6
- package/dist/chunks/{reference-yf019c59.js → permission-mth9933k.js} +24 -24
- package/dist/chunks/{reference-wgtcm0m7.js → permission-mvksx64m.js} +4 -4
- package/dist/chunks/{reference-d1c553ec.js → permission-n032fvft.js} +6 -6
- package/dist/chunks/{reference-vrke23k5.js → permission-n0qrzv6p.js} +60 -60
- package/dist/chunks/{reference-796w904k.js → permission-nct3yb87.js} +24 -24
- package/dist/chunks/{reference-s8610hey.js → permission-nng2ktcm.js} +2 -2
- package/dist/chunks/{reference-a9w6ff6t.js → permission-nnhe72zp.js} +28 -28
- package/dist/chunks/{reference-paqwx8q6.js → permission-nr9hyn65.js} +2 -2
- package/dist/chunks/{reference-fhs97t90.js → permission-nscznvay.js} +9 -9
- package/dist/chunks/{reference-3wpn9sh3.js → permission-ntfd3fgh.js} +14 -14
- package/dist/chunks/permission-nx4ddzgc.js +26 -0
- package/dist/chunks/{reference-jkzjr3ma.js → permission-nxx5qrmy.js} +17 -17
- package/dist/chunks/{reference-c6b8rasb.js → permission-ny31myje.js} +8 -8
- package/dist/chunks/{reference-afed7ext.js → permission-p1zpfjkz.js} +5 -5
- package/dist/chunks/{reference-zn9yn8hw.js → permission-pfmjzkyq.js} +52 -52
- package/dist/chunks/{reference-pjvnvgmy.js → permission-pjvnvgmy.js} +1 -1
- package/dist/chunks/{reference-pknna89w.js → permission-pknna89w.js} +1 -1
- package/dist/chunks/{reference-3sy817ya.js → permission-pqeqffcp.js} +21 -21
- package/dist/chunks/{reference-bemmtghz.js → permission-ps6r3zxt.js} +10 -10
- package/dist/chunks/{reference-6pc27hjz.js → permission-py3kkmfq.js} +6 -6
- package/dist/chunks/{reference-br6q4meh.js → permission-q0k38ewa.js} +5 -5
- package/dist/chunks/{reference-vncycja5.js → permission-q2b1ymqp.js} +4 -4
- package/dist/chunks/{reference-a1213hw5.js → permission-q8ymga3y.js} +18 -18
- package/dist/chunks/{reference-zsc4zr95.js → permission-qat2nasv.js} +11 -11
- package/dist/chunks/{reference-8b69yyv4.js → permission-qnh40d72.js} +11 -11
- package/dist/chunks/{reference-t1keb6et.js → permission-qnk7rzk8.js} +43 -43
- package/dist/chunks/{reference-qsdy395h.js → permission-qsdy395h.js} +1 -1
- package/dist/chunks/{reference-hbyhqfhs.js → permission-qvreyy9g.js} +5 -5
- package/dist/chunks/{reference-74fa380e.js → permission-qvxpjq65.js} +3 -3
- package/dist/chunks/{reference-s7932dae.js → permission-qy3yp28x.js} +11 -11
- package/dist/chunks/{reference-wak1n191.js → permission-r22gxq6t.js} +7 -7
- package/dist/chunks/{reference-3ybfhc1x.js → permission-r7mqvk6t.js} +5 -5
- package/dist/chunks/{reference-rdw6cm16.js → permission-rdw6cm16.js} +1 -1
- package/dist/chunks/{reference-07br9k15.js → permission-rgdzwmkq.js} +48 -48
- package/dist/chunks/{reference-02nrjc1r.js → permission-rhjbct0v.js} +6 -6
- package/dist/chunks/{reference-h3k68wsb.js → permission-rvwrm4qb.js} +19 -19
- package/dist/chunks/{reference-atwm5pvn.js → permission-s547vwtz.js} +26 -26
- package/dist/chunks/{reference-9nxs0dtz.js → permission-s5gdvdvf.js} +14 -14
- package/dist/chunks/{reference-fdjebd74.js → permission-s5vq8nt1.js} +23 -23
- package/dist/chunks/{reference-3bxd3j1q.js → permission-s6dskvww.js} +6 -6
- package/dist/chunks/{reference-x54c8ekp.js → permission-s9c65q1b.js} +10 -10
- package/dist/chunks/{reference-q4b4mt0k.js → permission-sc3pk9hf.js} +87 -87
- package/dist/chunks/{reference-16ynv89z.js → permission-schdznbv.js} +13 -13
- package/dist/chunks/{reference-ses91yzc.js → permission-sfpsqbxj.js} +8 -8
- package/dist/chunks/{reference-xe8wrm2v.js → permission-sjm2g78r.js} +7 -7
- package/dist/chunks/{reference-w8bax687.js → permission-sq3nr2g7.js} +12 -12
- package/dist/chunks/{reference-vgj5jbet.js → permission-t2pxds9s.js} +3 -3
- package/dist/chunks/{reference-hgg8amch.js → permission-t7rzcevv.js} +172 -172
- package/dist/chunks/{reference-139grr7s.js → permission-t7vwfgy5.js} +15 -15
- package/dist/chunks/{reference-dprgptw6.js → permission-t8wprfq3.js} +31 -31
- package/dist/chunks/{reference-ktd0gbm4.js → permission-t8y9en2y.js} +3 -3
- package/dist/chunks/{reference-tazgh4e4.js → permission-tazgh4e4.js} +1 -1
- package/dist/chunks/{reference-tdstcens.js → permission-tdstcens.js} +1 -1
- package/dist/chunks/{reference-eka80jh0.js → permission-te1p1at1.js} +10 -10
- package/dist/chunks/{reference-gjvcgz1y.js → permission-te9txkja.js} +33 -33
- package/dist/chunks/{reference-1qxvqq93.js → permission-tgbj489z.js} +17 -17
- package/dist/chunks/{reference-5v7h0m3g.js → permission-tjn9yg3m.js} +9 -9
- package/dist/chunks/{reference-5xtgfte3.js → permission-tpw6cwsb.js} +8 -8
- package/dist/chunks/{reference-jhrpy0h8.js → permission-tr3wvkwf.js} +21 -21
- package/dist/chunks/{reference-tvtrv512.js → permission-tvtrv512.js} +1 -1
- package/dist/chunks/{reference-1p7vd7k0.js → permission-vdhx1b9f.js} +24 -24
- package/dist/chunks/{reference-r1nzxzk3.js → permission-vdqh8416.js} +8 -8
- package/dist/chunks/{reference-veqvce7d.js → permission-veqvce7d.js} +1 -1
- package/dist/chunks/{reference-pyj25zwj.js → permission-vkh0msr2.js} +3 -3
- package/dist/chunks/{reference-2kyyj8xa.js → permission-vkq9z89r.js} +23 -23
- package/dist/chunks/{reference-3ppptnan.js → permission-vqfzq50h.js} +6 -6
- package/dist/chunks/{reference-j993bjzs.js → permission-vymjz8q6.js} +12 -12
- package/dist/chunks/{reference-vzcthcp8.js → permission-vzcthcp8.js} +1 -1
- package/dist/chunks/{reference-vzs5sf6e.js → permission-vzs5sf6e.js} +1 -1
- package/dist/chunks/{reference-vyn1hvw5.js → permission-w08ngz3m.js} +20 -20
- package/dist/chunks/{reference-h6qwv4aw.js → permission-w28zj79c.js} +21 -21
- package/dist/chunks/{reference-w3wsvvr9.js → permission-w3wsvvr9.js} +1 -1
- package/dist/chunks/{reference-wd3x2cqz.js → permission-wd3x2cqz.js} +2 -2
- package/dist/chunks/{reference-wd87259q.js → permission-wd87259q.js} +1 -1
- package/dist/chunks/{reference-pw9v3g6d.js → permission-wewgh3cc.js} +8 -8
- package/dist/chunks/{reference-9dcx0t51.js → permission-wh18jeaj.js} +7 -7
- package/dist/chunks/{reference-a7kwy4c1.js → permission-wmwmxqs2.js} +5 -5
- package/dist/chunks/{reference-x1ezjp6w.js → permission-x1ezjp6w.js} +1 -1
- package/dist/chunks/{reference-dqwatsve.js → permission-x6sa0504.js} +30 -30
- package/dist/chunks/{reference-hkv5p9ne.js → permission-xax31rqw.js} +3 -3
- package/dist/chunks/{reference-k6rqs0s8.js → permission-xeejrb32.js} +6 -6
- package/dist/chunks/{reference-depwzj9d.js → permission-xf8yqmad.js} +9 -9
- package/dist/chunks/{reference-drwq78ky.js → permission-xfkkasph.js} +4 -4
- package/dist/chunks/{reference-fms3wttt.js → permission-xj0ggm39.js} +4 -4
- package/dist/chunks/{reference-xkntkrq7.js → permission-xkntkrq7.js} +2 -2
- package/dist/chunks/{reference-y1fvbwt7.js → permission-y1fvbwt7.js} +1 -1
- package/dist/chunks/{reference-ep6z9mt6.js → permission-y7x142mt.js} +8 -8
- package/dist/chunks/{reference-htjw9qza.js → permission-ydgy0jv4.js} +6 -6
- package/dist/chunks/{reference-yp2x3t23.js → permission-yp2x3t23.js} +1 -1
- package/dist/chunks/{reference-yrhqyw5v.js → permission-yrhqyw5v.js} +1 -1
- package/dist/chunks/{reference-yrznvahk.js → permission-yrznvahk.js} +2 -2
- package/dist/chunks/{reference-f9kj06qm.js → permission-ysw77zqd.js} +13 -13
- package/dist/chunks/{reference-cfv2hvrv.js → permission-yy8rs511.js} +22 -22
- package/dist/chunks/{reference-z07pqspn.js → permission-z07pqspn.js} +3 -3
- package/dist/chunks/{reference-z0bkrqjs.js → permission-z0bkrqjs.js} +1 -1
- package/dist/chunks/{reference-z63w68vq.js → permission-z63w68vq.js} +2 -2
- package/dist/chunks/{reference-hbedddsn.js → permission-zdy15qce.js} +11 -11
- package/dist/chunks/{reference-zeh9ct20.js → permission-zeh9ct20.js} +2 -2
- package/dist/chunks/{reference-zr2ceqn5.js → permission-zr2ceqn5.js} +1 -1
- package/dist/chunks/{reference-jken0ejx.js → permission-zvjqa41k.js} +29 -29
- package/dist/chunks/{reference-zxq2ej10.js → permission-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +102 -102
- package/dist/file-mutation.js +94 -94
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -363
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- 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 +226 -226
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -222
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +152 -152
- 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 +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +211 -211
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +221 -221
- 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 +11 -11
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- 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/attachment.js +2 -2
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +92 -92
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +87 -87
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- 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 +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/reference-9fsn2a6t.js +0 -252
- package/dist/chunks/reference-kmfs87yw.js +0 -26
- package/dist/chunks/reference-pf31ssb9.js +0 -18
- /package/dist/chunks/{reference-0qkdqm5v.js → permission-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{reference-0zkw76rk.js → permission-0zkw76rk.js} +0 -0
- /package/dist/chunks/{reference-17cy0kzp.js → permission-17cy0kzp.js} +0 -0
- /package/dist/chunks/{reference-1cnp2v09.js → permission-1cnp2v09.js} +0 -0
- /package/dist/chunks/{reference-1kg9ymc8.js → permission-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{reference-24dcb14g.js → permission-24dcb14g.js} +0 -0
- /package/dist/chunks/{reference-2710q6r3.js → permission-2710q6r3.js} +0 -0
- /package/dist/chunks/{reference-2axfhc9x.js → permission-2axfhc9x.js} +0 -0
- /package/dist/chunks/{reference-2c3vjs8z.js → permission-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{reference-34c7v6d4.js → permission-34c7v6d4.js} +0 -0
- /package/dist/chunks/{reference-359p4xyc.js → permission-359p4xyc.js} +0 -0
- /package/dist/chunks/{reference-3asan66x.js → permission-3asan66x.js} +0 -0
- /package/dist/chunks/{reference-3v8g72cx.js → permission-3v8g72cx.js} +0 -0
- /package/dist/chunks/{reference-3w5fmr99.js → permission-3w5fmr99.js} +0 -0
- /package/dist/chunks/{reference-3wcehsnq.js → permission-3wcehsnq.js} +0 -0
- /package/dist/chunks/{reference-43n2bw4t.js → permission-43n2bw4t.js} +0 -0
- /package/dist/chunks/{reference-4knz6hnm.js → permission-4knz6hnm.js} +0 -0
- /package/dist/chunks/{reference-4vcrnpx2.js → permission-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{reference-4y7fprxs.js → permission-4y7fprxs.js} +0 -0
- /package/dist/chunks/{reference-53557ph1.js → permission-53557ph1.js} +0 -0
- /package/dist/chunks/{reference-550bvhaj.js → permission-550bvhaj.js} +0 -0
- /package/dist/chunks/{reference-5qd3pb7m.js → permission-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{reference-6prwharc.js → permission-6prwharc.js} +0 -0
- /package/dist/chunks/{reference-7akdwqpd.js → permission-7akdwqpd.js} +0 -0
- /package/dist/chunks/{reference-7m9af43g.js → permission-7m9af43g.js} +0 -0
- /package/dist/chunks/{reference-822emrt2.js → permission-822emrt2.js} +0 -0
- /package/dist/chunks/{reference-88xbtdfr.js → permission-88xbtdfr.js} +0 -0
- /package/dist/chunks/{reference-8n3pysct.js → permission-8n3pysct.js} +0 -0
- /package/dist/chunks/{reference-8wj87zfr.js → permission-8wj87zfr.js} +0 -0
- /package/dist/chunks/{reference-922hggd3.js → permission-922hggd3.js} +0 -0
- /package/dist/chunks/{reference-9a4afbnw.js → permission-9a4afbnw.js} +0 -0
- /package/dist/chunks/{reference-9rqn6x4v.js → permission-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{reference-a6k6eb26.js → permission-a6k6eb26.js} +0 -0
- /package/dist/chunks/{reference-af5trqkr.js → permission-af5trqkr.js} +0 -0
- /package/dist/chunks/{reference-afrmfg78.js → permission-afrmfg78.js} +0 -0
- /package/dist/chunks/{reference-aqzs7mqg.js → permission-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{reference-atq7p7m5.js → permission-atq7p7m5.js} +0 -0
- /package/dist/chunks/{reference-bkyjaxrp.js → permission-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{reference-bmr6ed5q.js → permission-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{reference-cf4snx6d.js → permission-cf4snx6d.js} +0 -0
- /package/dist/chunks/{reference-cvy3z8tj.js → permission-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{reference-d9fn303g.js → permission-d9fn303g.js} +0 -0
- /package/dist/chunks/{reference-d9jj8t3e.js → permission-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{reference-dajrwvna.js → permission-dajrwvna.js} +0 -0
- /package/dist/chunks/{reference-dap0rakb.js → permission-dap0rakb.js} +0 -0
- /package/dist/chunks/{reference-df08tz66.js → permission-df08tz66.js} +0 -0
- /package/dist/chunks/{reference-dy18nga0.js → permission-dy18nga0.js} +0 -0
- /package/dist/chunks/{reference-e5kj55wp.js → permission-e5kj55wp.js} +0 -0
- /package/dist/chunks/{reference-e73j6tqm.js → permission-e73j6tqm.js} +0 -0
- /package/dist/chunks/{reference-ec1grn59.js → permission-ec1grn59.js} +0 -0
- /package/dist/chunks/{reference-eh3zwz77.js → permission-eh3zwz77.js} +0 -0
- /package/dist/chunks/{reference-emrn6kk6.js → permission-emrn6kk6.js} +0 -0
- /package/dist/chunks/{reference-f0mxakyp.js → permission-f0mxakyp.js} +0 -0
- /package/dist/chunks/{reference-f6n9ztr4.js → permission-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{reference-faypxj3z.js → permission-faypxj3z.js} +0 -0
- /package/dist/chunks/{reference-fd410y7t.js → permission-fd410y7t.js} +0 -0
- /package/dist/chunks/{reference-fxgpk5d8.js → permission-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{reference-g4wezp1m.js → permission-g4wezp1m.js} +0 -0
- /package/dist/chunks/{reference-g86h250q.js → permission-g86h250q.js} +0 -0
- /package/dist/chunks/{reference-gebd4c9n.js → permission-gebd4c9n.js} +0 -0
- /package/dist/chunks/{reference-gftt206x.js → permission-gftt206x.js} +0 -0
- /package/dist/chunks/{reference-hjbc5kem.js → permission-hjbc5kem.js} +0 -0
- /package/dist/chunks/{reference-hk9envan.js → permission-hk9envan.js} +0 -0
- /package/dist/chunks/{reference-j2ntwpah.js → permission-j2ntwpah.js} +0 -0
- /package/dist/chunks/{reference-j5zkgpj8.js → permission-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{reference-jjkms2e6.js → permission-jjkms2e6.js} +0 -0
- /package/dist/chunks/{reference-jr7sbwjy.js → permission-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{reference-jwfs4k6c.js → permission-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{reference-jzg6c2d5.js → permission-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{reference-mp448xyj.js → permission-mp448xyj.js} +0 -0
- /package/dist/chunks/{reference-msx8hqn2.js → permission-msx8hqn2.js} +0 -0
- /package/dist/chunks/{reference-n05xt0ee.js → permission-n05xt0ee.js} +0 -0
- /package/dist/chunks/{reference-n3j8tn72.js → permission-n3j8tn72.js} +0 -0
- /package/dist/chunks/{reference-njntx4h6.js → permission-njntx4h6.js} +0 -0
- /package/dist/chunks/{reference-q3sfg36h.js → permission-q3sfg36h.js} +0 -0
- /package/dist/chunks/{reference-q74kybfr.js → permission-q74kybfr.js} +0 -0
- /package/dist/chunks/{reference-qaymkmh1.js → permission-qaymkmh1.js} +0 -0
- /package/dist/chunks/{reference-qb87gjwd.js → permission-qb87gjwd.js} +0 -0
- /package/dist/chunks/{reference-qfa1cgps.js → permission-qfa1cgps.js} +0 -0
- /package/dist/chunks/{reference-qg3g05ea.js → permission-qg3g05ea.js} +0 -0
- /package/dist/chunks/{reference-qrg20bc0.js → permission-qrg20bc0.js} +0 -0
- /package/dist/chunks/{reference-rcb2kzg1.js → permission-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{reference-sdp7kfr6.js → permission-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{reference-sk3qaz4a.js → permission-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{reference-ssg3fenm.js → permission-ssg3fenm.js} +0 -0
- /package/dist/chunks/{reference-w803qqfp.js → permission-w803qqfp.js} +0 -0
- /package/dist/chunks/{reference-wc3fc9cn.js → permission-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{reference-wer8tq1h.js → permission-wer8tq1h.js} +0 -0
- /package/dist/chunks/{reference-wtztk69x.js → permission-wtztk69x.js} +0 -0
- /package/dist/chunks/{reference-x0ckcb58.js → permission-x0ckcb58.js} +0 -0
- /package/dist/chunks/{reference-x61499pn.js → permission-x61499pn.js} +0 -0
- /package/dist/chunks/{reference-y44na4kk.js → permission-y44na4kk.js} +0 -0
- /package/dist/chunks/{reference-y8cydn3q.js → permission-y8cydn3q.js} +0 -0
- /package/dist/chunks/{reference-y8f7s663.js → permission-y8f7s663.js} +0 -0
- /package/dist/chunks/{reference-ygaqb7jw.js → permission-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{reference-ym463w8f.js → permission-ym463w8f.js} +0 -0
- /package/dist/chunks/{reference-z9919s4g.js → permission-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
node86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-p1zpfjkz.js";
|
|
7
7
|
import {
|
|
8
8
|
Service80,
|
|
9
9
|
node84
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-nr9hyn65.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./permission-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
make12
|
|
16
|
+
} from "./permission-s6dskvww.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./permission-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service18,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node21
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,12 +31,12 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service18 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
36
|
+
var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
37
37
|
const location = yield* Service80;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
|
-
const git = yield*
|
|
39
|
+
const git = yield* make12;
|
|
40
40
|
const state = create3({
|
|
41
41
|
name: "worktree",
|
|
42
42
|
initial: () => ({
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service18.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node21 = makeLocationNode({
|
|
61
|
+
service: Service18,
|
|
62
62
|
layer,
|
|
63
63
|
deps: [node84, Global.node, node86, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service18, node21, exports_strategies };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-nr9hyn65.js";
|
|
7
7
|
import {
|
|
8
8
|
Service16
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-gdg0j02x.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service5
|
|
12
|
+
} from "./permission-68z9rgrz.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./permission-2a5m3afh.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 "./permission-tgbj489z.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./permission-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*
|
|
61
|
+
const reader = yield* Service6;
|
|
62
62
|
const access = yield* Service16;
|
|
63
|
-
const sessionInstructions = yield*
|
|
63
|
+
const sessionInstructions = yield* Service5;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
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* () {
|
|
@@ -112,7 +112,7 @@ var Plugin41 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent6(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -145,7 +145,7 @@ ${suggestions.join(`
|
|
|
145
145
|
});
|
|
146
146
|
})
|
|
147
147
|
};
|
|
148
|
-
var
|
|
148
|
+
var toModelContent6 = (path, offset, output) => {
|
|
149
149
|
if (output.type === "file" && output.encoding === "base64")
|
|
150
150
|
return [
|
|
151
151
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -181,4 +181,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
181
181
|
`);
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { name11, Input11, Plugin13, toModelContent6, exports_read };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./permission-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
8
|
Service82,
|
|
9
9
|
node86
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-p1zpfjkz.js";
|
|
11
11
|
import {
|
|
12
12
|
Service80,
|
|
13
13
|
node84
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./permission-nr9hyn65.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./permission-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./permission-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error2,
|
|
26
|
+
ID: () => ID5,
|
|
27
|
+
Service: () => Service34,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node37,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error2 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service34 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error2({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error2({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID5.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error2({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error2({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service34.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node37 = makeLocationNode({
|
|
144
|
+
service: Service34,
|
|
145
145
|
layer,
|
|
146
146
|
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer2 = Layer.succeed(Service34, Service34.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service45, Service45.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error2 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error2({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID5, Error2, Service34, node37, noopLayer2, exports_snapshot2 };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./permission-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./permission-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-bs2a7trz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service54,
|
|
6
|
+
Event11
|
|
7
|
+
} from "./permission-cafm9cfz.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/models-dev.ts
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
29
29
|
var ModelsDevPlugin2 = define({
|
|
30
30
|
id: "opencode.models.dev",
|
|
31
31
|
effect: Effect.fn(function* (ctx) {
|
|
32
|
-
const modelsDev = yield*
|
|
32
|
+
const modelsDev = yield* Service54;
|
|
33
33
|
const bus = yield* Service83;
|
|
34
34
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
35
35
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ var ModelsDevPlugin2 = define({
|
|
|
63
63
|
loaded.data = snapshots(data);
|
|
64
64
|
return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
|
|
65
65
|
};
|
|
66
|
-
yield* bus.subscribe(
|
|
66
|
+
yield* bus.subscribe(Event11.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
|
|
67
67
|
const latest = yield* modelsDev.get();
|
|
68
68
|
if (snapshots(latest) !== loaded.data)
|
|
69
69
|
yield* apply(latest);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service78,
|
|
6
|
+
node81
|
|
7
|
+
} from "./permission-tr3wvkwf.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service71,
|
|
17
|
+
node: () => node74,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service71 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service78;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service71.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node74 = makeLocationNode({ service: Service71, layer, deps: [node81] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service71, readText2, syncTextBom2, node74, exports_file_mutation };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-t2pxds9s.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-bs2a7trz.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service41
|
|
9
|
+
} from "./permission-vqfzq50h.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./permission-922hggd3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID5,
|
|
15
|
+
Service34
|
|
16
|
+
} from "./permission-19a3bxyq.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./permission-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionMessage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./permission-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./permission-bq2zwxzx.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./permission-z07pqspn.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./permission-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/session/revert.ts
|
|
34
34
|
var exports_revert = {};
|
|
@@ -42,12 +42,12 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
45
|
+
const instances = yield* Service41;
|
|
46
46
|
const database = yield* Service84;
|
|
47
47
|
const bus = yield* Service83;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service34;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
77
|
+
const instances = yield* Service41;
|
|
78
78
|
const bus = yield* Service83;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service34;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID5.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service37
|
|
4
|
+
} from "./permission-aa2pnbj0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service51
|
|
7
|
+
} from "./permission-3f4vjzp5.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./permission-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./permission-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ConfigShellPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_shell2 = {};
|
|
17
|
+
__export(exports_shell2, {
|
|
18
|
+
ConfigShellPlugin: () => exports_shell2,
|
|
19
|
+
Plugin: () => Plugin42
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin42 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service37;
|
|
27
|
+
const shell = yield* Service51;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin26 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin42, exports_shell2 };
|