@opencode/core 0.0.0-dev-20676 → 0.0.0-dev-20677
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{location-service-map-1xzpbkn4.js → agent-03xyy9gs.js} +11 -11
- package/dist/chunks/{location-service-map-y60kwh1p.js → agent-0e4zfx6z.js} +5 -5
- package/dist/chunks/{location-service-map-0paq2nw3.js → agent-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-service-map-0vbcp93d.js → agent-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-service-map-f47nxccf.js → agent-0w51wpsa.js} +3 -3
- package/dist/chunks/{location-service-map-4c12s6k2.js → agent-1a721rxg.js} +5 -5
- package/dist/chunks/{location-service-map-56bmv1jq.js → agent-1bv2kaf1.js} +20 -20
- package/dist/chunks/{location-service-map-1dazxqgg.js → agent-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-service-map-k185drda.js → agent-1gpb38yh.js} +9 -9
- package/dist/chunks/{location-service-map-z8kqchpa.js → agent-1gq97tmn.js} +177 -177
- package/dist/chunks/{location-service-map-sx9yt0qx.js → agent-212y0zje.js} +13 -13
- package/dist/chunks/{location-service-map-3q0tb30h.js → agent-237z5p4t.js} +18 -18
- package/dist/chunks/{location-service-map-1j9eqnrf.js → agent-26mk346k.js} +25 -25
- package/dist/chunks/{location-service-map-ydsqnbec.js → agent-27rataxe.js} +15 -15
- package/dist/chunks/{location-service-map-5b9bq1rj.js → agent-299ygcnd.js} +22 -22
- package/dist/chunks/{location-service-map-2a5m3afh.js → agent-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-service-map-j7wrvvyd.js → agent-2sradmzs.js} +25 -25
- package/dist/chunks/{location-service-map-hz5d2qnw.js → agent-33ds9rj3.js} +11 -11
- package/dist/chunks/{location-service-map-h5f6c4sz.js → agent-35q2em60.js} +28 -28
- package/dist/chunks/{location-service-map-jzcv0qpc.js → agent-37jae8a1.js} +14 -14
- package/dist/chunks/{location-service-map-cds2n5n0.js → agent-3afxxhd7.js} +46 -46
- package/dist/chunks/{location-service-map-3cegwx68.js → agent-3cegwx68.js} +2 -2
- package/dist/chunks/{location-service-map-evw1vbjj.js → agent-3dx6e5mz.js} +25 -25
- package/dist/chunks/{location-service-map-2k71kv7p.js → agent-3ewed21c.js} +4 -4
- package/dist/chunks/{location-service-map-3fc6dm20.js → agent-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-service-map-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-service-map-3smtnn6g.js → agent-3smtnn6g.js} +1 -1
- package/dist/chunks/agent-3tm29b2b.js +507 -0
- package/dist/chunks/{location-service-map-4pnaszbr.js → agent-3tvp0d45.js} +19 -19
- package/dist/chunks/{location-service-map-3tvqynh2.js → agent-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-service-map-ff7yw72f.js → agent-3xdvdhsm.js} +18 -18
- package/dist/chunks/{location-service-map-96c8tg89.js → agent-3xx70s67.js} +15 -15
- package/dist/chunks/{location-service-map-7vwv1ctf.js → agent-3ze65hfa.js} +36 -36
- package/dist/chunks/{location-service-map-3zsf4n22.js → agent-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-service-map-ykh0j0pf.js → agent-44a7phry.js} +317 -317
- package/dist/chunks/{location-service-map-ph6vza46.js → agent-4617ttsa.js} +20 -20
- package/dist/chunks/{location-service-map-892mrmp0.js → agent-4a0nv7mx.js} +8 -8
- package/dist/chunks/{location-service-map-h2kr4rkv.js → agent-4c701q23.js} +37 -37
- package/dist/chunks/{location-service-map-aeg6eyha.js → agent-4kmwdp9k.js} +28 -28
- package/dist/chunks/{location-service-map-a7wkqhsb.js → agent-4mp2bwzd.js} +13 -13
- package/dist/chunks/{location-service-map-2ccvkpx1.js → agent-4ts7tf6z.js} +2 -2
- package/dist/chunks/{location-service-map-4yzb4k77.js → agent-508esqyf.js} +27 -27
- package/dist/chunks/{location-service-map-p27g6bxy.js → agent-541dm475.js} +3 -3
- package/dist/chunks/{location-service-map-54ma36ye.js → agent-54ma36ye.js} +1 -1
- package/dist/chunks/{location-service-map-1ygqh575.js → agent-56gdpj1q.js} +9 -9
- package/dist/chunks/{location-service-map-2xh4f3v5.js → agent-59c10ypj.js} +4 -4
- package/dist/chunks/{location-service-map-p6raj4b6.js → agent-5b3yx2mr.js} +1 -1
- package/dist/chunks/{location-service-map-5daktx2q.js → agent-5daktx2q.js} +1 -1
- package/dist/chunks/{location-service-map-5m9w47nd.js → agent-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-service-map-awng3dnh.js → agent-5n1rr6qj.js} +12 -12
- package/dist/chunks/{location-service-map-e3qxr5gk.js → agent-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-service-map-5t3nmthw.js → agent-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-service-map-w5149683.js → agent-5xzzfr73.js} +27 -27
- package/dist/chunks/{location-service-map-p999hyvt.js → agent-5ymje97q.js} +13 -13
- package/dist/chunks/{location-service-map-450z7n67.js → agent-61bbtbmc.js} +30 -30
- package/dist/chunks/{location-service-map-szgjrnac.js → agent-61tzzxsr.js} +35 -35
- package/dist/chunks/{location-service-map-1jnd4n2z.js → agent-64jy87jm.js} +54 -54
- package/dist/chunks/{location-service-map-j2ags8d8.js → agent-64vpcbr9.js} +5 -5
- package/dist/chunks/{location-service-map-6hjr6ee9.js → agent-672xc31r.js} +7 -7
- package/dist/chunks/{location-service-map-qv69242q.js → agent-682b4fx6.js} +22 -22
- package/dist/chunks/{location-service-map-vw16m3bh.js → agent-6feta9cj.js} +21 -21
- package/dist/chunks/{location-service-map-8wknmqy6.js → agent-6hk2686f.js} +44 -44
- package/dist/chunks/{location-service-map-184snskb.js → agent-6rcj2hr5.js} +20 -20
- package/dist/chunks/{location-service-map-smzvt7r2.js → agent-6waraj69.js} +28 -28
- package/dist/chunks/{location-service-map-6xb47vfp.js → agent-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-service-map-qbhax9c1.js → agent-760hrz28.js} +40 -40
- package/dist/chunks/{location-service-map-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-service-map-5r8mhc2e.js → agent-7bvtnfyz.js} +18 -18
- package/dist/chunks/{location-service-map-7dqw4kz8.js → agent-7dqw4kz8.js} +1 -1
- package/dist/chunks/{location-service-map-qvb3nf84.js → agent-7j2qha59.js} +8 -8
- package/dist/chunks/{location-service-map-a1gpj94z.js → agent-7yh4e7ss.js} +3 -3
- package/dist/chunks/{location-service-map-f5311cxz.js → agent-848sxtqq.js} +14 -14
- package/dist/chunks/{location-service-map-84h8c373.js → agent-84h8c373.js} +2 -2
- package/dist/chunks/{location-service-map-7agpffj5.js → agent-84kwgfzz.js} +24 -24
- package/dist/chunks/{location-service-map-w1eejvng.js → agent-84txncab.js} +5 -5
- package/dist/chunks/{location-service-map-xzfz3f2s.js → agent-84tzk9gr.js} +22 -22
- package/dist/chunks/{location-service-map-srq8z0b0.js → agent-8a6ws7jr.js} +9 -9
- package/dist/chunks/{location-service-map-8d7r5vzw.js → agent-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-service-map-f8wxzn9z.js → agent-8dcer5qr.js} +13 -13
- package/dist/chunks/{location-service-map-n7z4xm27.js → agent-8dpqntaq.js} +27 -27
- package/dist/chunks/{location-service-map-ak7pz24p.js → agent-8j0012y3.js} +29 -29
- package/dist/chunks/{location-service-map-rq6rwtv7.js → agent-8kzy5fr5.js} +11 -11
- package/dist/chunks/{location-service-map-kwwqe74w.js → agent-8n5zbqyh.js} +7 -7
- package/dist/chunks/{location-service-map-pa8pe2x7.js → agent-8v6pyhej.js} +8 -8
- package/dist/chunks/{location-service-map-xmy875w3.js → agent-95dtjqf2.js} +4 -4
- package/dist/chunks/{location-service-map-wshpgqwz.js → agent-96f2n6ah.js} +12 -12
- package/dist/chunks/{location-service-map-tyxqw1k3.js → agent-984m73yw.js} +18 -18
- package/dist/chunks/{location-service-map-x4sqrdsf.js → agent-9hrc7yhg.js} +11 -11
- package/dist/chunks/{location-service-map-1zmgywvv.js → agent-9k8khh75.js} +12 -12
- package/dist/chunks/{location-service-map-6qmzkyd7.js → agent-9nb94ttp.js} +25 -25
- package/dist/chunks/{location-service-map-xdc1v96w.js → agent-9pst789e.js} +9 -9
- package/dist/chunks/{location-service-map-5te2wr9w.js → agent-9zj3ww2h.js} +11 -11
- package/dist/chunks/{location-service-map-p5045ta7.js → agent-9zrkfg92.js} +37 -37
- package/dist/chunks/{location-service-map-6d6dcgkd.js → agent-a4rged5n.js} +13 -13
- package/dist/chunks/{location-service-map-aaet6srn.js → agent-aaet6srn.js} +2 -2
- package/dist/chunks/{location-service-map-sdc6xxdr.js → agent-abmjs3wp.js} +29 -29
- package/dist/chunks/{location-service-map-x661k3y3.js → agent-addxnjmp.js} +4 -4
- package/dist/chunks/{location-service-map-ctnq4dsf.js → agent-adt5jcng.js} +19 -19
- package/dist/chunks/{location-service-map-dbv05mm3.js → agent-afjydgk3.js} +4 -4
- package/dist/chunks/{location-service-map-sendxm4e.js → agent-angdxrpd.js} +16 -16
- package/dist/chunks/{location-service-map-ejaq5k43.js → agent-apvampct.js} +22 -22
- package/dist/chunks/{location-service-map-ekyddhpf.js → agent-asw8c91m.js} +4 -4
- package/dist/chunks/{location-service-map-ssc7andz.js → agent-b6crebg4.js} +20 -20
- package/dist/chunks/{location-service-map-b6gygkdw.js → agent-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-service-map-bvnz36at.js → agent-b6mnpgpe.js} +26 -26
- package/dist/chunks/{location-service-map-qpz47a73.js → agent-bf9mzw80.js} +2 -2
- package/dist/chunks/{location-service-map-avxkmpf6.js → agent-bhhppv72.js} +9 -9
- package/dist/chunks/{location-service-map-6gb5ybxr.js → agent-bmmeg5sm.js} +19 -19
- package/dist/chunks/{location-service-map-8aencfgk.js → agent-bmr4b0kb.js} +9 -9
- package/dist/chunks/{location-service-map-w3ht8xf8.js → agent-btdzdyts.js} +10 -10
- package/dist/chunks/{location-service-map-zmr78fwr.js → agent-bx0gyb4h.js} +5 -5
- package/dist/chunks/{location-service-map-xw2650a4.js → agent-bxfxz57t.js} +24 -24
- package/dist/chunks/{location-service-map-1ske5fb0.js → agent-c1fbq4kv.js} +33 -33
- package/dist/chunks/{location-service-map-83ceevpg.js → agent-cb89hyx5.js} +5 -5
- package/dist/chunks/{location-service-map-dr6x92kd.js → agent-cc8cknna.js} +42 -42
- package/dist/chunks/{location-service-map-4wrkd8nn.js → agent-cdhr69tv.js} +10 -10
- package/dist/chunks/{location-service-map-b4twkq7r.js → agent-cfsekr6v.js} +6 -6
- package/dist/chunks/{location-service-map-nxn85c58.js → agent-ckt1a3xt.js} +11 -11
- package/dist/chunks/{location-service-map-394e98e2.js → agent-cvsve72h.js} +16 -16
- package/dist/chunks/{location-service-map-8p3dxnqd.js → agent-cx89qeg3.js} +3 -3
- package/dist/chunks/{location-service-map-mec1k519.js → agent-cz4pebbb.js} +58 -58
- package/dist/chunks/{location-service-map-gy15s2w2.js → agent-d28w4k3h.js} +17 -17
- package/dist/chunks/{location-service-map-1bpgn3j1.js → agent-d3f2prkd.js} +46 -46
- package/dist/chunks/{location-service-map-3fgnt1g5.js → agent-d3pa2dt1.js} +20 -20
- package/dist/chunks/{location-service-map-r2c3c0ss.js → agent-d93aaqkk.js} +1 -1
- package/dist/chunks/{location-service-map-gjjzmrg1.js → agent-db62y6bp.js} +29 -29
- package/dist/chunks/{location-service-map-r2ppdy3s.js → agent-ddd3v19d.js} +11 -11
- package/dist/chunks/{location-service-map-6n9j43ss.js → agent-dkkan8mq.js} +20 -20
- package/dist/chunks/{location-service-map-zfme70y8.js → agent-drnf6xwf.js} +2 -2
- package/dist/chunks/{location-service-map-9c5rr9n3.js → agent-e2erybrn.js} +11 -11
- package/dist/chunks/{location-service-map-ef5x83kb.js → agent-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-service-map-kcz43jmd.js → agent-egsf10bm.js} +11 -11
- package/dist/chunks/{location-service-map-y940h5xz.js → agent-ej7nfns1.js} +24 -24
- package/dist/chunks/{location-service-map-ph6hkvqz.js → agent-emb8t02r.js} +24 -24
- package/dist/chunks/{location-service-map-evtrk6k9.js → agent-emcb384r.js} +8 -8
- package/dist/chunks/{location-service-map-etq0c3wd.js → agent-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-service-map-9qyb5gne.js → agent-eyq9c17f.js} +18 -18
- package/dist/chunks/{location-service-map-psvvfma6.js → agent-f0wnr75e.js} +32 -32
- package/dist/chunks/{location-service-map-f75zav2x.js → agent-f75zav2x.js} +2 -2
- package/dist/chunks/agent-f81tjggh.js +18 -0
- package/dist/chunks/{location-service-map-mgs9qbr4.js → agent-f9kekh7f.js} +11 -11
- package/dist/chunks/{location-service-map-my4xzb9n.js → agent-fd8908de.js} +15 -15
- package/dist/chunks/{location-service-map-g8p0k12n.js → agent-fqmwv32j.js} +14 -14
- package/dist/chunks/{location-service-map-a27tyv5c.js → agent-fswrwyfk.js} +6 -6
- package/dist/chunks/{location-service-map-ftjf86m5.js → agent-ftjf86m5.js} +2 -2
- package/dist/chunks/{location-service-map-enm5kfpk.js → agent-ftxvqbsg.js} +11 -11
- package/dist/chunks/{location-service-map-9ser2t9j.js → agent-fvbmtwra.js} +13 -13
- package/dist/chunks/{location-service-map-g5w8qwbj.js → agent-g5w8qwbj.js} +1 -1
- package/dist/chunks/{location-service-map-2sejkfem.js → agent-g6q9qykm.js} +9 -9
- package/dist/chunks/{location-service-map-gd4qta3r.js → agent-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-service-map-q3ajnrbc.js → agent-gdyt3gj6.js} +11 -11
- package/dist/chunks/{location-service-map-b1vm559f.js → agent-ghde90aw.js} +6 -6
- package/dist/chunks/{location-service-map-2yzjveyy.js → agent-gjzmqfxe.js} +10 -10
- package/dist/chunks/{location-service-map-y469akzv.js → agent-gs91af73.js} +87 -87
- package/dist/chunks/{location-service-map-h6vf3j39.js → agent-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-service-map-7yqn6t2d.js → agent-h7znadvr.js} +11 -11
- package/dist/chunks/{location-service-map-3vzqx2de.js → agent-hcg5kpq6.js} +32 -32
- package/dist/chunks/{location-service-map-yqc6bamn.js → agent-he27pt63.js} +1 -1
- package/dist/chunks/{location-service-map-grvv2rqy.js → agent-hfetwrmg.js} +22 -22
- package/dist/chunks/{location-service-map-gyc5zbfz.js → agent-hh1fe6b7.js} +36 -36
- package/dist/chunks/{location-service-map-q6j3y7mw.js → agent-htb94n32.js} +14 -14
- package/dist/chunks/{location-service-map-s3ntfkf5.js → agent-j01xwkjw.js} +21 -21
- package/dist/chunks/{location-service-map-fb3czpaz.js → agent-j422692e.js} +7 -7
- package/dist/chunks/{location-service-map-j56e64zr.js → agent-j56e64zr.js} +1 -1
- package/dist/chunks/{location-service-map-38bs44c2.js → agent-j7dp57tw.js} +9 -9
- package/dist/chunks/{location-service-map-ysh6fhh8.js → agent-j9pgxxd7.js} +17 -17
- package/dist/chunks/{location-service-map-ecf0mzvt.js → agent-jmxsfgen.js} +9 -9
- package/dist/chunks/{location-service-map-pa1hgbv6.js → agent-jnyg353g.js} +23 -23
- package/dist/chunks/{location-service-map-tbn4207b.js → agent-jqyc2fxa.js} +4 -4
- package/dist/chunks/{location-service-map-hbd3aq53.js → agent-k2025ghf.js} +16 -16
- package/dist/chunks/{location-service-map-kb9j3d72.js → agent-kb9j3d72.js} +3 -3
- package/dist/chunks/{location-service-map-8wbxkt1z.js → agent-knevfgda.js} +4 -4
- package/dist/chunks/{location-service-map-8qkqmygm.js → agent-ky1e5nsp.js} +9 -9
- package/dist/chunks/{location-service-map-yjt29acb.js → agent-m1jewsve.js} +9 -9
- package/dist/chunks/{location-service-map-m3fdjcah.js → agent-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-service-map-wj25t1v6.js → agent-m4twzpdx.js} +48 -48
- package/dist/chunks/{location-service-map-g4dv7bvc.js → agent-m8n59xp2.js} +8 -8
- package/dist/chunks/{location-service-map-pbkc6z0x.js → agent-m938ztfj.js} +32 -32
- package/dist/chunks/{location-service-map-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-service-map-1yjhkjct.js → agent-mc5gsmcy.js} +16 -16
- package/dist/chunks/{location-service-map-m57273zm.js → agent-md04j19x.js} +4 -4
- package/dist/chunks/{location-service-map-7pzbknk5.js → agent-md2j7y0e.js} +18 -18
- package/dist/chunks/{location-service-map-5wtwrezn.js → agent-mjymc32g.js} +21 -21
- package/dist/chunks/{location-service-map-02ap8hgf.js → agent-mktej9kf.js} +11 -11
- package/dist/chunks/{location-service-map-175z9p3h.js → agent-mt48d8bc.js} +25 -25
- package/dist/chunks/{location-service-map-x1skv0g2.js → agent-mx1sahds.js} +19 -19
- package/dist/chunks/{location-service-map-08rawchj.js → agent-my4zabxr.js} +3 -3
- package/dist/chunks/{location-service-map-aytqzqr5.js → agent-myj39cz3.js} +48 -48
- package/dist/chunks/{location-service-map-k76fn4kw.js → agent-n4r3xatb.js} +4 -4
- package/dist/chunks/{location-service-map-pthq0dnh.js → agent-nw12y3df.js} +11 -11
- package/dist/chunks/{location-service-map-nxm207yx.js → agent-nxm207yx.js} +1 -1
- package/dist/chunks/{location-service-map-a4mewc9c.js → agent-nzq7ck9f.js} +6 -6
- package/dist/chunks/{location-service-map-c2wgan0f.js → agent-pber7d37.js} +11 -11
- package/dist/chunks/{location-service-map-qy5rkdh4.js → agent-phrn0hnn.js} +47 -47
- package/dist/chunks/{location-service-map-xamp5sn5.js → agent-pjvcp6pt.js} +38 -38
- package/dist/chunks/{location-service-map-pjvnvgmy.js → agent-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-service-map-pknna89w.js → agent-pknna89w.js} +1 -1
- package/dist/chunks/{location-service-map-amyk267s.js → agent-pm6p0qfa.js} +28 -28
- package/dist/chunks/{location-service-map-vg7sm5hz.js → agent-pmf7a4gp.js} +88 -88
- package/dist/chunks/{location-service-map-yv3xr3ac.js → agent-ptyashkp.js} +3 -3
- package/dist/chunks/{location-service-map-9rsdwp92.js → agent-pxstbhnf.js} +44 -44
- package/dist/chunks/{location-service-map-0j77ygfz.js → agent-q0xm7vwc.js} +6 -6
- package/dist/chunks/{location-service-map-xfk06v0t.js → agent-qagkqpcw.js} +8 -8
- package/dist/chunks/{location-service-map-2c4ctngw.js → agent-qhbttv6z.js} +33 -33
- package/dist/chunks/{location-service-map-qnc92qwc.js → agent-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-service-map-8mfdap3f.js → agent-qpbc7zwf.js} +5 -5
- package/dist/chunks/{location-service-map-qsdy395h.js → agent-qsdy395h.js} +1 -1
- package/dist/chunks/{location-service-map-qxjc9qry.js → agent-qxjc9qry.js} +3 -3
- package/dist/chunks/{location-service-map-s7bwdk4y.js → agent-r5ypt5d9.js} +11 -11
- package/dist/chunks/{location-service-map-5f4txd3a.js → agent-r8jtv4kk.js} +5 -5
- package/dist/chunks/{location-service-map-nkf980df.js → agent-r8xr0va3.js} +4 -4
- package/dist/chunks/{location-service-map-pj2ztazb.js → agent-r9p2yfma.js} +8 -8
- package/dist/chunks/{location-service-map-rdw6cm16.js → agent-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-service-map-3hegg1r1.js → agent-rgvftgaz.js} +29 -29
- package/dist/chunks/{location-service-map-7dgtb3sy.js → agent-rp55dayf.js} +27 -27
- package/dist/chunks/{location-service-map-ykt494b9.js → agent-rx9ava5n.js} +4 -4
- package/dist/chunks/{location-service-map-aed87xjs.js → agent-rzem9bwq.js} +5 -5
- package/dist/chunks/{location-service-map-9t7a50xb.js → agent-s8d7rejh.js} +4 -4
- package/dist/chunks/{location-service-map-9y0pke98.js → agent-seefsy74.js} +32 -32
- package/dist/chunks/{location-service-map-y069cswa.js → agent-shqrd0p7.js} +3 -3
- package/dist/chunks/{location-service-map-a4fvnfmb.js → agent-sxcgg9pv.js} +4 -4
- package/dist/chunks/{location-service-map-y0hd39tq.js → agent-sz4assh2.js} +5 -5
- package/dist/chunks/{location-service-map-tazgh4e4.js → agent-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-service-map-tcezcvh9.js → agent-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-service-map-tdstcens.js → agent-tdstcens.js} +1 -1
- package/dist/chunks/{location-service-map-ratrq7cm.js → agent-tkmwgdpd.js} +7 -7
- package/dist/chunks/{location-service-map-2vbg8t8g.js → agent-tzhfy6rd.js} +6 -6
- package/dist/chunks/{location-service-map-v0es1rhs.js → agent-v0es1rhs.js} +2 -2
- package/dist/chunks/{location-service-map-vy61f7p0.js → agent-v0yfz79w.js} +9 -9
- package/dist/chunks/{location-service-map-50c6c5t8.js → agent-v3v4sgpm.js} +3 -3
- package/dist/chunks/{location-service-map-tyx2gxt0.js → agent-v6mpbx6v.js} +34 -34
- package/dist/chunks/agent-v8hbtvfc.js +26 -0
- package/dist/chunks/{location-service-map-ew67yh0c.js → agent-vasdvhx2.js} +8 -8
- package/dist/chunks/{location-service-map-a7bcxdzj.js → agent-vbh50phm.js} +9 -9
- package/dist/chunks/agent-vden9jcp.js +253 -0
- package/dist/chunks/{location-service-map-veqvce7d.js → agent-veqvce7d.js} +1 -1
- package/dist/chunks/{location-service-map-f1v9fw78.js → agent-vnb5qef4.js} +4 -4
- package/dist/chunks/{location-service-map-m9mf0r2p.js → agent-vx4kd0j3.js} +27 -27
- package/dist/chunks/{location-service-map-0gapa1rm.js → agent-vykevjvn.js} +5 -5
- package/dist/chunks/{location-service-map-vzs5sf6e.js → agent-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-service-map-f323m8zj.js → agent-w1vqmw9z.js} +29 -29
- package/dist/chunks/{location-service-map-h83xjv7f.js → agent-w39jehkq.js} +5 -5
- package/dist/chunks/{location-service-map-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-service-map-wc1gtajg.js → agent-w5zzhgd0.js} +6 -6
- package/dist/chunks/{location-service-map-wd87259q.js → agent-wd87259q.js} +1 -1
- package/dist/chunks/{location-service-map-11j58wcb.js → agent-wdbnpmn3.js} +16 -16
- package/dist/chunks/{location-service-map-tvekrvpv.js → agent-we2jpmnd.js} +17 -17
- package/dist/chunks/{location-service-map-q6jc51jp.js → agent-webf11ha.js} +3 -3
- package/dist/chunks/{location-service-map-b3f8fkhc.js → agent-wecqtg5s.js} +5 -5
- package/dist/chunks/{location-service-map-8nqcfcr1.js → agent-wmvjsdxp.js} +24 -24
- package/dist/chunks/{location-service-map-edhez49w.js → agent-wyjka35g.js} +28 -28
- package/dist/chunks/{location-service-map-1azy29z3.js → agent-x0bgzv0s.js} +1 -1
- package/dist/chunks/{location-service-map-0bqj672y.js → agent-x14d6wr9.js} +63 -63
- package/dist/chunks/{location-service-map-fwd3p1cx.js → agent-x2nf5h0k.js} +18 -18
- package/dist/chunks/{location-service-map-zq8j9q38.js → agent-x7rh3hnq.js} +23 -23
- package/dist/chunks/{location-service-map-m011ww83.js → agent-xb54y55j.js} +59 -59
- package/dist/chunks/{location-service-map-vrz4pw5b.js → agent-xc7fr0n8.js} +36 -36
- package/dist/chunks/{location-service-map-f9c4ha4g.js → agent-xd0zgs67.js} +24 -24
- package/dist/chunks/{location-service-map-325kx1e5.js → agent-xgemm4h5.js} +11 -11
- package/dist/chunks/{location-service-map-dmqcgk4z.js → agent-xkntkrq7.js} +5 -5
- package/dist/chunks/{location-service-map-vtntxqkx.js → agent-xswen0y0.js} +5 -5
- package/dist/chunks/{location-service-map-b9nzwy47.js → agent-xsz0k8gc.js} +26 -26
- package/dist/chunks/{location-service-map-rzqryg3a.js → agent-xw8dfwaj.js} +18 -18
- package/dist/chunks/{location-service-map-y1fvbwt7.js → agent-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-service-map-w1pw22f8.js → agent-y57vdypc.js} +42 -42
- package/dist/chunks/{location-service-map-qaybkfxq.js → agent-ygz1yfbt.js} +11 -11
- package/dist/chunks/{location-service-map-5bsr47cr.js → agent-ynpe6tcd.js} +12 -12
- package/dist/chunks/{location-service-map-r0k7g56y.js → agent-ysr5vm6y.js} +15 -15
- package/dist/chunks/{location-service-map-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-service-map-19t8v49x.js → agent-z0hr7r87.js} +22 -22
- package/dist/chunks/{location-service-map-ahv44ny0.js → agent-z20ctxjw.js} +23 -23
- package/dist/chunks/{location-service-map-p72tdqb0.js → agent-z99e7jc7.js} +22 -22
- package/dist/chunks/{location-service-map-qz19f2ca.js → agent-zcps5b4x.js} +3 -3
- package/dist/chunks/{location-service-map-pp7e5es3.js → agent-zd30eb5w.js} +5 -5
- package/dist/chunks/{location-service-map-wehxh746.js → agent-zdamgzkx.js} +5 -5
- package/dist/chunks/{location-service-map-zr2ceqn5.js → agent-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-service-map-h9wp8z5w.js → agent-zsr4wwhv.js} +4 -4
- package/dist/chunks/{location-service-map-zxq2ej10.js → agent-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 +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +70 -70
- 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.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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +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 +74 -74
- package/dist/file-access.js +104 -104
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +214 -214
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- 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 +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +103 -103
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +85 -85
- 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 +127 -127
- 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 +102 -102
- package/dist/models-dev.js +107 -107
- 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 +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 +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- 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 +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- 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/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- 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 +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -341
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- 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 +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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- 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 +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- 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 +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- 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 +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +222 -222
- 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 +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +130 -130
- 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 +116 -116
- 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 +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- 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 +8 -8
- 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/location-service-map-9cv4zsas.js +0 -26
- package/dist/chunks/location-service-map-dxj72tfx.js +0 -18
- package/dist/chunks/location-service-map-f6daj2pg.js +0 -507
- package/dist/chunks/location-service-map-k6m70d57.js +0 -253
- /package/dist/chunks/{location-service-map-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-service-map-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-service-map-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-service-map-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-service-map-1kg9ymc8.js → agent-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-service-map-24dcb14g.js → agent-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-service-map-2710q6r3.js → agent-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-service-map-2axfhc9x.js → agent-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-service-map-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-service-map-34c7v6d4.js → agent-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-service-map-359p4xyc.js → agent-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-service-map-3asan66x.js → agent-3asan66x.js} +0 -0
- /package/dist/chunks/{location-service-map-3t0ybcrp.js → agent-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-service-map-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-service-map-3w5fmr99.js → agent-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-service-map-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-service-map-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-service-map-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-service-map-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-service-map-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-service-map-53557ph1.js → agent-53557ph1.js} +0 -0
- /package/dist/chunks/{location-service-map-550bvhaj.js → agent-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-service-map-6prwharc.js → agent-6prwharc.js} +0 -0
- /package/dist/chunks/{location-service-map-6q2bdcd1.js → agent-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-service-map-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-service-map-7m9af43g.js → agent-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-service-map-822emrt2.js → agent-822emrt2.js} +0 -0
- /package/dist/chunks/{location-service-map-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-service-map-8n3pysct.js → agent-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-service-map-8wj87zfr.js → agent-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-service-map-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-service-map-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-service-map-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-service-map-af5trqkr.js → agent-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-service-map-afrmfg78.js → agent-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-service-map-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-service-map-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-service-map-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-service-map-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-service-map-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-service-map-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-service-map-d9fn303g.js → agent-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-service-map-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-service-map-dajrwvna.js → agent-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-service-map-dap0rakb.js → agent-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-service-map-df08tz66.js → agent-df08tz66.js} +0 -0
- /package/dist/chunks/{location-service-map-dy18nga0.js → agent-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-service-map-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-service-map-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-service-map-ec1grn59.js → agent-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-service-map-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-service-map-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-service-map-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-service-map-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-service-map-faypxj3z.js → agent-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-service-map-fd410y7t.js → agent-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-service-map-fxgpk5d8.js → agent-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-service-map-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-service-map-g86h250q.js → agent-g86h250q.js} +0 -0
- /package/dist/chunks/{location-service-map-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-service-map-gftt206x.js → agent-gftt206x.js} +0 -0
- /package/dist/chunks/{location-service-map-hk9envan.js → agent-hk9envan.js} +0 -0
- /package/dist/chunks/{location-service-map-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-service-map-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-service-map-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-service-map-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-service-map-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-service-map-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-service-map-mp448xyj.js → agent-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-service-map-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-service-map-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-service-map-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-service-map-njntx4h6.js → agent-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-service-map-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-service-map-q74kybfr.js → agent-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-service-map-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-service-map-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-service-map-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-service-map-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-service-map-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-service-map-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-service-map-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-service-map-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-service-map-w803qqfp.js → agent-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-service-map-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-service-map-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-service-map-wtztk69x.js → agent-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-service-map-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-service-map-x61499pn.js → agent-x61499pn.js} +0 -0
- /package/dist/chunks/{location-service-map-y44na4kk.js → agent-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-service-map-y8cydn3q.js → agent-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-service-map-y8f7s663.js → agent-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-service-map-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-service-map-ym463w8f.js → agent-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-service-map-z5v4ffb3.js → agent-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-service-map-z9919s4g.js → agent-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service47
|
|
3
|
+
} from "./agent-d3f2prkd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service7
|
|
6
|
+
} from "./agent-m4twzpdx.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./agent-qsdy395h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./agent-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/compaction.ts
|
|
15
15
|
var exports_compaction = {};
|
|
16
16
|
__export(exports_compaction, {
|
|
17
17
|
ConfigCompactionPlugin: () => exports_compaction,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin9
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin9 = define({
|
|
23
23
|
id: "opencode.config.compaction",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const compaction = yield*
|
|
25
|
+
const config = yield* Service47;
|
|
26
|
+
const compaction = yield* Service7;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, compaction.reload());
|
|
28
28
|
yield* compaction.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -39,4 +39,4 @@ var Plugin45 = define({
|
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
export {
|
|
42
|
+
export { Plugin9, exports_compaction };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
10
10
|
__export(exports_message_updater, {
|
|
11
11
|
SessionMessageUpdater: () => exports_message_updater,
|
|
12
|
-
update: () =>
|
|
12
|
+
update: () => update2
|
|
13
13
|
});
|
|
14
14
|
import { castDraft, produce } from "immer";
|
|
15
15
|
import { DateTime, Effect, Match, pipe, Schema } from "effect";
|
|
@@ -21,7 +21,7 @@ var projectTerminalSnapshot = (draft, event) => {
|
|
|
21
21
|
files: event.data.files ? Array.from(event.data.files) : undefined
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function update2(adapter, event) {
|
|
25
25
|
const created = DateTime.makeUnsafe(event.created);
|
|
26
26
|
const latestTool = (assistant, id) => assistant.content.findLast((item) => item.type === "tool" && item.id === id);
|
|
27
27
|
const latestText = (assistant) => assistant.content.findLast((item) => item.type === "text");
|
|
@@ -402,4 +402,4 @@ function update3(adapter, event) {
|
|
|
402
402
|
return project(event);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
export {
|
|
405
|
+
export { update2, exports_message_updater };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./agent-44a7phry.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/google-vertex.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.provider.transform((evt) => {
|
|
26
26
|
for (const item of evt.list()) {
|
|
27
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
27
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
28
28
|
continue;
|
|
29
29
|
const project = resolveProject(item.provider.settings ?? {});
|
|
30
30
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -42,7 +42,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
42
42
|
});
|
|
43
43
|
yield* ctx.model.transform((models) => {
|
|
44
44
|
for (const item of models.provider.list()) {
|
|
45
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
45
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
46
46
|
continue;
|
|
47
47
|
const project = resolveProject(item.provider.settings ?? {});
|
|
48
48
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -59,7 +59,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
62
|
-
if (evt.model.providerID !==
|
|
62
|
+
if (evt.model.providerID !== ID13.googleVertex)
|
|
63
63
|
return;
|
|
64
64
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
65
65
|
}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./agent-mc5gsmcy.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./agent-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event20,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID16,
|
|
20
|
+
Info: () => Info26,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service78,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer25,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node82,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event20 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID16 = Form.ID;
|
|
39
|
+
var Info26 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID16
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError9 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID16
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID16
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID16,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service78 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer25 = Layer.effect(
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer25 = Layer.effect(Service78, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service81;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID16.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer25 = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service78.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node82 = makeLocationNode({ service: Service78, layer: layer25, deps: [node85] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID16, Info26, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service78, layer25, node82, validateAnswer2, validateFields2, exports_form, Event20 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./agent-e2erybrn.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./agent-f75zav2x.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./agent-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
16
|
+
ID: () => ID9,
|
|
17
|
+
Info: () => Info17,
|
|
18
18
|
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service66,
|
|
21
|
+
node: () => node69
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID9 = PermissionSaved.ID;
|
|
29
|
+
var Info17 = PermissionSaved.Info;
|
|
30
30
|
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -36,10 +36,10 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service66 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const db = (yield*
|
|
41
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
42
|
+
const db = (yield* Service83).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
45
45
|
return rows.map((row) => ({
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID9.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service66.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node69 = makeGlobalNode({ service: Service66, layer, deps: [node87] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID9, Info17, ListInput4, AddInput2, Service66, node69, exports_saved };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID11,
|
|
3
|
+
Service71
|
|
4
|
+
} from "./agent-rp55dayf.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service74
|
|
8
|
+
} from "./agent-hh1fe6b7.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service47
|
|
12
|
+
} from "./agent-d3f2prkd.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./agent-my4zabxr.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service63
|
|
18
|
+
} from "./agent-wdbnpmn3.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service65
|
|
22
|
+
} from "./agent-cz4pebbb.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service29
|
|
25
|
+
} from "./agent-pmf7a4gp.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./agent-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
make5
|
|
31
|
+
} from "./agent-nw12y3df.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./agent-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input10,
|
|
40
|
+
Output: () => Output7,
|
|
41
|
+
Plugin: () => Plugin31,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
43
|
description: () => description3,
|
|
44
|
-
name: () =>
|
|
44
|
+
name: () => name10
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name10 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input10 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,7 +72,7 @@ var Input6 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output7 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
@@ -86,16 +86,16 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin31 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service29;
|
|
93
|
+
const jobs = yield* Service63;
|
|
94
|
+
const agents = yield* Service71;
|
|
95
|
+
const config = yield* Service47;
|
|
96
|
+
const permission = yield* Service65;
|
|
97
|
+
const models = yield* Service74;
|
|
98
|
+
const subagents = yield* make5;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin23 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name10,
|
|
119
119
|
options: { codemode: false },
|
|
120
120
|
description: description3,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input10,
|
|
122
|
+
output: Output7,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin23 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name10,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin23 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID11.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name10 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name10];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name10, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name10, Input10, Output7, description3, Plugin31, exports_subagent };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-rdw6cm16.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./agent-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service84,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node88
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service84 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service84.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node88 = makeLocationNode({
|
|
137
|
+
service: Service84,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service84, node88, exports_tool_output2 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./agent-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./agent-nxm207yx.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_TOTAL_PATCH_BYTES2,
|
|
10
10
|
emptyPatch2,
|
|
11
11
|
chunksByFile2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./agent-tazgh4e4.js";
|
|
13
13
|
import {
|
|
14
14
|
gitExecutable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./agent-ef5x83kb.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./agent-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/git.ts
|
|
21
21
|
var exports_git3 = {};
|
|
@@ -23,11 +23,11 @@ __export(exports_git3, {
|
|
|
23
23
|
Git: () => exports_git3,
|
|
24
24
|
OperationError: () => OperationError3,
|
|
25
25
|
Repository: () => Repository2,
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service82,
|
|
27
27
|
TreeID: () => TreeID2,
|
|
28
28
|
Worktree: () => Worktree2,
|
|
29
29
|
WorktreeError: () => WorktreeError2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node86
|
|
31
31
|
});
|
|
32
32
|
import path from "path";
|
|
33
33
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -93,9 +93,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service82 extends Context.Service()("@opencode/Git") {
|
|
97
97
|
}
|
|
98
|
-
var layer = Layer.effect(
|
|
98
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
100
|
const proc = yield* AppProcess.Service;
|
|
101
101
|
const locks = makeUnsafe2();
|
|
@@ -419,7 +419,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
419
419
|
kind: index === 0 ? "main" : "linked"
|
|
420
420
|
}));
|
|
421
421
|
});
|
|
422
|
-
return
|
|
422
|
+
return Service82.of({
|
|
423
423
|
repo: { discover, clone, create },
|
|
424
424
|
remote: { get: remote },
|
|
425
425
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -435,7 +435,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}));
|
|
438
|
-
var
|
|
438
|
+
var node86 = makeGlobalNode({ service: Service82, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
439
439
|
function run(cwd, proc, args) {
|
|
440
440
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
441
441
|
}
|
|
@@ -463,4 +463,4 @@ function resolvePath(cwd, value) {
|
|
|
463
463
|
return path.resolve(cwd, normalized);
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
466
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service82, node86, exports_git3 };
|