@opencode/core 0.0.0-dev-19878 → 0.0.0-dev-19882
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 +74 -74
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +7 -7
- package/dist/bus.js +72 -72
- package/dist/chunks/{location-activity-b0mnz61g.js → file-retention-0465j91r.js} +13 -13
- package/dist/chunks/{location-activity-06dxphr1.js → file-retention-06dxphr1.js} +1 -1
- package/dist/chunks/{location-activity-5140det9.js → file-retention-081pkz04.js} +6 -6
- package/dist/chunks/{location-activity-8ywr4py6.js → file-retention-0a2z30tt.js} +19 -19
- package/dist/chunks/{location-activity-dw7kj2wt.js → file-retention-0ejh5z8n.js} +9 -9
- package/dist/chunks/{location-activity-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-activity-0q0f95c6.js → file-retention-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-activity-cd8dvhmv.js → file-retention-0xhrvaxm.js} +31 -31
- package/dist/chunks/{location-activity-b0k9pvtq.js → file-retention-0xwbjxfr.js} +24 -24
- package/dist/chunks/{location-activity-tba9x9m4.js → file-retention-161zx9cz.js} +11 -11
- package/dist/chunks/{location-activity-3k5jkm3z.js → file-retention-167dw5de.js} +33 -33
- package/dist/chunks/{location-activity-444xzsav.js → file-retention-1dan17xy.js} +11 -11
- package/dist/chunks/{location-activity-1dazxqgg.js → file-retention-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-activity-m1npberz.js → file-retention-1jetprvn.js} +4 -4
- package/dist/chunks/{location-activity-dcq7df5z.js → file-retention-1s6npp0x.js} +9 -9
- package/dist/chunks/{location-activity-q8he5qek.js → file-retention-1tr2x808.js} +28 -28
- package/dist/chunks/{location-activity-egs6ks1d.js → file-retention-1w78bxtf.js} +9 -9
- package/dist/chunks/{location-activity-z2q6w509.js → file-retention-1xy1s23z.js} +13 -13
- package/dist/chunks/{location-activity-9a7hdk7d.js → file-retention-215n7470.js} +10 -10
- package/dist/chunks/{location-activity-21r38tys.js → file-retention-21r38tys.js} +1 -1
- package/dist/chunks/{location-activity-2402vzrj.js → file-retention-2402vzrj.js} +1 -1
- package/dist/chunks/{location-activity-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-activity-ms0n5vr2.js → file-retention-2avmftzw.js} +10 -10
- package/dist/chunks/{location-activity-2f0bjgcj.js → file-retention-2f0bjgcj.js} +2 -2
- package/dist/chunks/{location-activity-wm6ca8w2.js → file-retention-2f81yahh.js} +28 -28
- package/dist/chunks/{location-activity-pfaw34ey.js → file-retention-2kvyq317.js} +13 -13
- package/dist/chunks/{location-activity-k2ees04y.js → file-retention-37b5a4wm.js} +25 -25
- package/dist/chunks/{location-activity-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-activity-a67jkta2.js → file-retention-3fy2htfg.js} +30 -30
- package/dist/chunks/{location-activity-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-activity-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-activity-6wyfze09.js → file-retention-3tpxjgq6.js} +40 -40
- package/dist/chunks/{location-activity-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-activity-bh9f9yhx.js → file-retention-3tvxnvmk.js} +28 -28
- package/dist/chunks/{location-activity-9ncjasfh.js → file-retention-3y98hz0x.js} +89 -89
- package/dist/chunks/{location-activity-pe874fy5.js → file-retention-4an14yhs.js} +8 -8
- package/dist/chunks/{location-activity-b71216jz.js → file-retention-4cf05jz0.js} +20 -20
- package/dist/chunks/{location-activity-sj2dt0dw.js → file-retention-4cp2jqb2.js} +17 -17
- package/dist/chunks/{location-activity-zk8c4w5t.js → file-retention-4drgpw32.js} +5 -5
- package/dist/chunks/{location-activity-vx899hpg.js → file-retention-4f92x3nk.js} +11 -11
- package/dist/chunks/{location-activity-ndwahwhj.js → file-retention-4fbyhaeh.js} +4 -4
- package/dist/chunks/{location-activity-b1sryb0b.js → file-retention-4n8q391k.js} +18 -18
- package/dist/chunks/{location-activity-xap8r8eb.js → file-retention-4vc8sr10.js} +28 -28
- package/dist/chunks/{location-activity-hqkcqn2q.js → file-retention-4ygb4b7g.js} +2 -2
- package/dist/chunks/{location-activity-32skw66p.js → file-retention-50fcby8k.js} +11 -11
- package/dist/chunks/{location-activity-mbrx791e.js → file-retention-523mvypz.js} +25 -25
- package/dist/chunks/{location-activity-g68dq4n6.js → file-retention-53tprqe9.js} +27 -27
- package/dist/chunks/{location-activity-fy69wa9z.js → file-retention-564f0z0w.js} +16 -16
- package/dist/chunks/{location-activity-33w4ejhs.js → file-retention-56gdpj1q.js} +6 -6
- package/dist/chunks/{location-activity-0ke265bw.js → file-retention-57ez7d0k.js} +5 -5
- package/dist/chunks/{location-activity-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
- package/dist/chunks/{location-activity-nr925g6z.js → file-retention-5rddp1d9.js} +1 -1
- package/dist/chunks/{location-activity-camvkydn.js → file-retention-5s5jpmcb.js} +24 -24
- package/dist/chunks/{location-activity-5t3nmthw.js → file-retention-5t3nmthw.js} +2 -2
- package/dist/chunks/file-retention-619r8v3y.js +18 -0
- package/dist/chunks/{location-activity-669tq793.js → file-retention-669tq793.js} +1 -1
- package/dist/chunks/{location-activity-akq5pr62.js → file-retention-66yb9ghn.js} +42 -42
- package/dist/chunks/{location-activity-kb85603d.js → file-retention-673ngpmn.js} +14 -14
- package/dist/chunks/{location-activity-fkj9wy1t.js → file-retention-6bbyae08.js} +21 -21
- package/dist/chunks/{location-activity-7gv3qed4.js → file-retention-6dxv2793.js} +49 -49
- package/dist/chunks/{location-activity-34rkz0x9.js → file-retention-6hh8tjw2.js} +7 -7
- package/dist/chunks/{location-activity-s92tpkwr.js → file-retention-6jr39b9q.js} +15 -15
- package/dist/chunks/{location-activity-6msgmcgs.js → file-retention-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-activity-cywfwrvr.js → file-retention-6tg303q8.js} +3 -3
- package/dist/chunks/{location-activity-1hacwagn.js → file-retention-6tkqkfbf.js} +41 -41
- package/dist/chunks/{location-activity-d790svbd.js → file-retention-6v2v7y0g.js} +32 -32
- package/dist/chunks/{location-activity-y35sf2j4.js → file-retention-6xwcf1a8.js} +4 -4
- package/dist/chunks/{location-activity-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-activity-fcrkznn8.js → file-retention-7dqw4kz8.js} +5 -5
- package/dist/chunks/{location-activity-sazxm3mh.js → file-retention-8b167y8a.js} +20 -20
- package/dist/chunks/{location-activity-8d7r5vzw.js → file-retention-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-activity-97sqn3m6.js → file-retention-8fxnv50h.js} +41 -41
- package/dist/chunks/{location-activity-mbmvtr52.js → file-retention-8m0xfxha.js} +18 -18
- package/dist/chunks/{location-activity-4x3kykr2.js → file-retention-8mgkexa6.js} +14 -14
- package/dist/chunks/{location-activity-j4hgvzxf.js → file-retention-8mh6qs45.js} +5 -5
- package/dist/chunks/{location-activity-8p4f9s12.js → file-retention-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-activity-rsckn68j.js → file-retention-8s3n9c7m.js} +20 -20
- package/dist/chunks/{location-activity-nmhw28fq.js → file-retention-8y74cv5j.js} +21 -21
- package/dist/chunks/{location-activity-9tp80bz2.js → file-retention-8zqwde36.js} +3 -3
- package/dist/chunks/{location-activity-e8cja42p.js → file-retention-954vm9zf.js} +6 -6
- package/dist/chunks/{location-activity-cr070h5f.js → file-retention-984gzsd7.js} +26 -26
- package/dist/chunks/{location-activity-az38zn9v.js → file-retention-9hj87zcn.js} +2 -2
- package/dist/chunks/{location-activity-zvtx7z4t.js → file-retention-9j9rrcym.js} +4 -4
- package/dist/chunks/{location-activity-8jnvzp63.js → file-retention-9x2j21m7.js} +30 -30
- package/dist/chunks/{location-activity-a1bz86dw.js → file-retention-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-activity-1p47ghm9.js → file-retention-a25dsj3m.js} +47 -47
- package/dist/chunks/{location-activity-vf8gbq8c.js → file-retention-a9z38t8t.js} +22 -22
- package/dist/chunks/{location-activity-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
- package/dist/chunks/{location-activity-n5aq07z9.js → file-retention-aaxh33wy.js} +8 -8
- package/dist/chunks/{location-activity-jsvb6vsn.js → file-retention-ab8cnxkj.js} +12 -12
- package/dist/chunks/{location-activity-pecb0brz.js → file-retention-af04s6ss.js} +5 -5
- package/dist/chunks/{location-activity-v412kext.js → file-retention-aj2jtzg2.js} +13 -13
- package/dist/chunks/{location-activity-384bh6p5.js → file-retention-as6js5h3.js} +10 -10
- package/dist/chunks/{location-activity-b54ctf8r.js → file-retention-axe08f99.js} +28 -28
- package/dist/chunks/{location-activity-bfdyam1j.js → file-retention-ayrh20bw.js} +7 -7
- package/dist/chunks/{location-activity-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-activity-48agk50t.js → file-retention-b6q9rwn2.js} +29 -29
- package/dist/chunks/{location-activity-k4cx13vt.js → file-retention-bm43m6wm.js} +9 -9
- package/dist/chunks/{location-activity-vyqn3nqs.js → file-retention-bscb95cy.js} +4 -4
- package/dist/chunks/{location-activity-bz85s9hh.js → file-retention-bz85s9hh.js} +1 -1
- package/dist/chunks/{location-activity-qmqgtz8f.js → file-retention-c765mh8b.js} +9 -9
- package/dist/chunks/{location-activity-3w142vg8.js → file-retention-c86z6gw9.js} +10 -10
- package/dist/chunks/{location-activity-8wvzn3x9.js → file-retention-c8z6r1re.js} +12 -12
- package/dist/chunks/{location-activity-qs7p0wga.js → file-retention-c9dd285s.js} +58 -58
- package/dist/chunks/{location-activity-damrcpcq.js → file-retention-c9fwgwbn.js} +11 -11
- package/dist/chunks/{location-activity-30t3z4xa.js → file-retention-cf78hqg4.js} +20 -20
- package/dist/chunks/{location-activity-cfpkc3c9.js → file-retention-cfpkc3c9.js} +2 -2
- package/dist/chunks/{location-activity-8wny9rhz.js → file-retention-cfpt4yrn.js} +28 -28
- package/dist/chunks/{location-activity-y7kf544v.js → file-retention-cgx608pj.js} +11 -11
- package/dist/chunks/{location-activity-nm4299rz.js → file-retention-cjwramev.js} +8 -8
- package/dist/chunks/{location-activity-dqvyg6hs.js → file-retention-ckzj2a1x.js} +11 -11
- package/dist/chunks/{location-activity-hfdr1yjj.js → file-retention-cq37gk0t.js} +4 -4
- package/dist/chunks/{location-activity-t6sasnat.js → file-retention-d64bv18p.js} +26 -26
- package/dist/chunks/{location-activity-0fexsbzd.js → file-retention-dd7met55.js} +8 -8
- package/dist/chunks/{location-activity-bct739vz.js → file-retention-dfe8djrf.js} +4 -4
- package/dist/chunks/{location-activity-ts9vv5h1.js → file-retention-dkrr66w3.js} +13 -13
- package/dist/chunks/{location-activity-y71avatq.js → file-retention-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-activity-xfkkasph.js → file-retention-drwq78ky.js} +4 -4
- package/dist/chunks/{location-activity-k0kn787a.js → file-retention-ds33edxf.js} +11 -11
- package/dist/chunks/{location-activity-nz8rbcfr.js → file-retention-dy7xfy74.js} +13 -13
- package/dist/chunks/{location-activity-tw63m3ht.js → file-retention-e0v2rycq.js} +14 -14
- package/dist/chunks/{location-activity-w54fwt40.js → file-retention-e3t6na1y.js} +1 -1
- package/dist/chunks/{location-activity-gv1kg07s.js → file-retention-eaew7zx1.js} +15 -15
- package/dist/chunks/{location-activity-yvvvp4gn.js → file-retention-eeaf82dq.js} +8 -8
- package/dist/chunks/{location-activity-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-activity-gysg5gwh.js → file-retention-eg6dj9bv.js} +31 -31
- package/dist/chunks/{location-activity-f73rjn58.js → file-retention-embw8kgh.js} +4 -4
- package/dist/chunks/{location-activity-erw5rpbs.js → file-retention-erw5rpbs.js} +2 -2
- package/dist/chunks/{location-activity-etq0c3wd.js → file-retention-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-activity-4kajxznq.js → file-retention-f5yqwc0y.js} +10 -10
- package/dist/chunks/{location-activity-aj48sn1e.js → file-retention-f6e7w7qa.js} +4 -4
- package/dist/chunks/{location-activity-f828m53h.js → file-retention-f828m53h.js} +2 -2
- package/dist/chunks/{location-activity-zz6q0sdm.js → file-retention-fja4vk1j.js} +9 -9
- package/dist/chunks/{location-activity-1rbt4ax3.js → file-retention-fk5jcdb3.js} +9 -9
- package/dist/chunks/{location-activity-k9kj6xed.js → file-retention-fkjmw100.js} +2 -2
- package/dist/chunks/{location-activity-s9xxw18e.js → file-retention-fmcqyzhx.js} +9 -9
- package/dist/chunks/{location-activity-fxbjtjnd.js → file-retention-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-activity-m67kh20n.js → file-retention-g3d2w7hy.js} +12 -12
- package/dist/chunks/{location-activity-na1qpcwd.js → file-retention-g3y0met1.js} +41 -41
- package/dist/chunks/{location-activity-b6kd1xhc.js → file-retention-g92vxn4r.js} +134 -134
- package/dist/chunks/{location-activity-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-activity-ev386gwf.js → file-retention-gj3qr6k7.js} +30 -30
- package/dist/chunks/{location-activity-h36ja21g.js → file-retention-grfryzp0.js} +8 -8
- package/dist/chunks/file-retention-gsnhtkd6.js +252 -0
- package/dist/chunks/file-retention-gtjgk2yx.js +26 -0
- package/dist/chunks/{location-activity-gv6a8nnw.js → file-retention-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-activity-705e2ap1.js → file-retention-h4z1mxff.js} +5 -5
- package/dist/chunks/{location-activity-4dgbcxzg.js → file-retention-h6r3nrb9.js} +4 -4
- package/dist/chunks/{location-activity-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-activity-5855fc5r.js → file-retention-hd72gfym.js} +9 -9
- package/dist/chunks/{location-activity-2yc0w210.js → file-retention-hen7z686.js} +34 -34
- package/dist/chunks/{location-activity-n4fkg9qz.js → file-retention-hhahvva9.js} +2 -2
- package/dist/chunks/{location-activity-tmn0t1cr.js → file-retention-hjqn29cc.js} +1 -1
- package/dist/chunks/{location-activity-nqft9t69.js → file-retention-hm8nq6aa.js} +3 -3
- package/dist/chunks/{location-activity-6g8qhsa2.js → file-retention-hpxktczp.js} +26 -26
- package/dist/chunks/{location-activity-kwaa7r03.js → file-retention-htdsj6r1.js} +18 -18
- package/dist/chunks/{location-activity-1vgghcm1.js → file-retention-j50syq5q.js} +16 -16
- package/dist/chunks/{location-activity-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
- package/dist/chunks/{location-activity-82rhge12.js → file-retention-j58c5xyq.js} +9 -9
- package/dist/chunks/{location-activity-nq7qbqzc.js → file-retention-jjs74g98.js} +9 -9
- package/dist/chunks/{location-activity-z4spg9s6.js → file-retention-k0vw0a2j.js} +17 -17
- package/dist/chunks/{location-activity-k3c624dm.js → file-retention-k3c624dm.js} +3 -3
- package/dist/chunks/{location-activity-f8waefjm.js → file-retention-k4pgmrqs.js} +13 -13
- package/dist/chunks/{location-activity-3cej3bx5.js → file-retention-k5q0tfv3.js} +45 -45
- package/dist/chunks/{location-activity-z9r5bt3m.js → file-retention-k779xt46.js} +27 -27
- package/dist/chunks/{location-activity-2e96adxv.js → file-retention-k9avtbwf.js} +6 -6
- package/dist/chunks/{location-activity-gsw1j5rg.js → file-retention-kd4bpffd.js} +18 -18
- package/dist/chunks/{location-activity-akve5yxg.js → file-retention-kd60309v.js} +21 -21
- package/dist/chunks/{location-activity-a89e0tac.js → file-retention-kkp8zx71.js} +4 -4
- package/dist/chunks/{location-activity-a0q2yx5w.js → file-retention-krmnc5cg.js} +11 -11
- package/dist/chunks/{location-activity-k3fhncfr.js → file-retention-kz3hpxab.js} +3 -3
- package/dist/chunks/{location-activity-14bc5jn9.js → file-retention-m06kr8rz.js} +27 -27
- package/dist/chunks/{location-activity-wxt5gzn3.js → file-retention-m22wyk78.js} +27 -27
- package/dist/chunks/{location-activity-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-activity-n6v9sa9g.js → file-retention-m474z1kw.js} +24 -24
- package/dist/chunks/{location-activity-fwsfvr3q.js → file-retention-m6b0tvc0.js} +3 -3
- package/dist/chunks/{location-activity-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-activity-50mzsvk4.js → file-retention-magykp64.js} +4 -4
- package/dist/chunks/{location-activity-bzmaha2t.js → file-retention-mejjs3gq.js} +11 -11
- package/dist/chunks/{location-activity-e54wnc6j.js → file-retention-mpc2mza6.js} +9 -9
- package/dist/chunks/{location-activity-eq1pz5kg.js → file-retention-mvfsc1pv.js} +3 -3
- package/dist/chunks/{location-activity-cp7xmptn.js → file-retention-n3822xjh.js} +28 -28
- package/dist/chunks/{location-activity-2bsax5xk.js → file-retention-n7kj0nfb.js} +29 -29
- package/dist/chunks/{location-activity-g3smgjcz.js → file-retention-nfmjes2s.js} +6 -6
- package/dist/chunks/{location-activity-nng2ktcm.js → file-retention-nng2ktcm.js} +2 -2
- package/dist/chunks/{location-activity-brgjf4xc.js → file-retention-ns0rd2gc.js} +11 -11
- package/dist/chunks/{location-activity-4attd441.js → file-retention-nxz2ctde.js} +20 -20
- package/dist/chunks/{location-activity-j15mfg1p.js → file-retention-p0b4ytnr.js} +4 -4
- package/dist/chunks/{location-activity-e3j5vbpy.js → file-retention-p3sjsf4c.js} +9 -9
- package/dist/chunks/{location-activity-zcgjhpex.js → file-retention-p7322rh5.js} +15 -15
- package/dist/chunks/{location-activity-9h41vc4j.js → file-retention-p7nsp59h.js} +4 -4
- package/dist/chunks/{location-activity-wjpqa2gh.js → file-retention-p8z5rwmr.js} +21 -21
- package/dist/chunks/{location-activity-4k0xqdp1.js → file-retention-pb1eahw5.js} +8 -8
- package/dist/chunks/{location-activity-2vrfpz63.js → file-retention-pepar0ja.js} +86 -86
- package/dist/chunks/{location-activity-bp1txj4e.js → file-retention-phgk4j5x.js} +16 -16
- package/dist/chunks/{location-activity-dv1qgsyq.js → file-retention-phstrbs2.js} +8 -8
- package/dist/chunks/{location-activity-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-activity-9qxgs4wb.js → file-retention-pkav3n9h.js} +20 -20
- package/dist/chunks/{location-activity-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{location-activity-m0vfraxg.js → file-retention-pnbe07hy.js} +5 -5
- package/dist/chunks/{location-activity-wj65y8df.js → file-retention-ppvrv3b5.js} +1 -1
- package/dist/chunks/{location-activity-cq3p6ny5.js → file-retention-pr2185cp.js} +1 -1
- package/dist/chunks/{location-activity-a1c6bcys.js → file-retention-q116m3wp.js} +7 -7
- package/dist/chunks/{location-activity-ft191qx5.js → file-retention-q126tr5h.js} +18 -18
- package/dist/chunks/{location-activity-349jpbgm.js → file-retention-q67fkkta.js} +11 -11
- package/dist/chunks/{location-activity-dxd2xv6a.js → file-retention-q7qrw62a.js} +8 -8
- package/dist/chunks/{location-activity-s5met55r.js → file-retention-qby9dwvd.js} +4 -4
- package/dist/chunks/{location-activity-rfy9k25q.js → file-retention-qdme6shq.js} +18 -18
- package/dist/chunks/{location-activity-485fr60v.js → file-retention-qek8dtx8.js} +14 -14
- package/dist/chunks/file-retention-qez3s13j.js +492 -0
- package/dist/chunks/{location-activity-e6hmchc5.js → file-retention-qn4ba14w.js} +5 -5
- package/dist/chunks/{location-activity-y9c1nhc2.js → file-retention-qnjwxcy5.js} +9 -9
- package/dist/chunks/{location-activity-5c855dx6.js → file-retention-qns4nxe6.js} +10 -10
- package/dist/chunks/{location-activity-b7qq63vc.js → file-retention-qqrhapfm.js} +20 -20
- package/dist/chunks/{location-activity-twx6d01m.js → file-retention-qrsctp9r.js} +15 -15
- package/dist/chunks/{location-activity-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/{location-activity-xprwhmay.js → file-retention-qsxes4qb.js} +26 -26
- package/dist/chunks/{location-activity-j5hmy3er.js → file-retention-raq0bhdx.js} +18 -18
- package/dist/chunks/{location-activity-zdqwfx3v.js → file-retention-rd456c9t.js} +20 -20
- package/dist/chunks/{location-activity-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-activity-s8d7rejh.js → file-retention-rhjbct0v.js} +4 -4
- package/dist/chunks/{location-activity-9zgsk6sk.js → file-retention-rw8zzf0g.js} +7 -7
- package/dist/chunks/{location-activity-6bjjk6rs.js → file-retention-s18791rc.js} +4 -4
- package/dist/chunks/{location-activity-gdhexgge.js → file-retention-s3xynfkg.js} +18 -18
- package/dist/chunks/{location-activity-xvb9xxzg.js → file-retention-sb19sksh.js} +8 -8
- package/dist/chunks/{location-activity-hdjmp71s.js → file-retention-swsjrdwb.js} +10 -10
- package/dist/chunks/{location-activity-n6kaeczp.js → file-retention-t6kv9btv.js} +35 -35
- package/dist/chunks/{location-activity-m0704kf9.js → file-retention-t7d66bkg.js} +35 -35
- package/dist/chunks/{location-activity-935s2dtd.js → file-retention-t8g68kxt.js} +27 -27
- package/dist/chunks/{location-activity-brsex9gv.js → file-retention-t9taxymt.js} +3 -3
- package/dist/chunks/{location-activity-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-activity-ezc0aa6y.js → file-retention-tb4jd28d.js} +6 -6
- package/dist/chunks/{location-activity-1n7dkdfa.js → file-retention-tb78nqd6.js} +8 -8
- package/dist/chunks/{location-activity-p28j5sbe.js → file-retention-tbz0fdvh.js} +5 -5
- package/dist/chunks/{location-activity-2r2jj9rt.js → file-retention-tc5he9wg.js} +41 -41
- package/dist/chunks/{location-activity-tegs1ycp.js → file-retention-tcay1cqt.js} +6 -6
- package/dist/chunks/{location-activity-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-activity-tdstcens.js → file-retention-tdstcens.js} +1 -1
- package/dist/chunks/{location-activity-hvx0y2vp.js → file-retention-tjqchgqk.js} +14 -14
- package/dist/chunks/{location-activity-tvtrv512.js → file-retention-tvtrv512.js} +1 -1
- package/dist/chunks/{location-activity-ybyatjwz.js → file-retention-v7ffx8ea.js} +20 -20
- package/dist/chunks/{location-activity-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{location-activity-1bf9xmj7.js → file-retention-vwhz9c2y.js} +16 -16
- package/dist/chunks/{location-activity-vzcthcp8.js → file-retention-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-activity-34vw3k6j.js → file-retention-w2pkbhw2.js} +25 -25
- package/dist/chunks/{location-activity-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-activity-3bpk1kz3.js → file-retention-w44rhn25.js} +26 -26
- package/dist/chunks/{location-activity-ke1qpm2n.js → file-retention-w7dexayp.js} +33 -33
- package/dist/chunks/{location-activity-n9axn9y3.js → file-retention-was7srj9.js} +5 -5
- package/dist/chunks/{location-activity-teedqcfj.js → file-retention-wb2tsxva.js} +13 -13
- package/dist/chunks/{location-activity-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{location-activity-s7531b5j.js → file-retention-wda1wpd5.js} +16 -16
- package/dist/chunks/{location-activity-k8j6mtqq.js → file-retention-wjv2nsv8.js} +6 -6
- package/dist/chunks/{location-activity-8xgtxbds.js → file-retention-wkd68h98.js} +25 -25
- package/dist/chunks/{location-activity-66kz9jvd.js → file-retention-wkx5y8be.js} +6 -6
- package/dist/chunks/{location-activity-x1ezjp6w.js → file-retention-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-activity-3mtq6pek.js → file-retention-xcc8tqnx.js} +10 -10
- package/dist/chunks/{location-activity-1hby7933.js → file-retention-xh89e2hh.js} +32 -32
- package/dist/chunks/{location-activity-th6z70na.js → file-retention-xmn7azz3.js} +16 -16
- package/dist/chunks/{location-activity-1mc48hy1.js → file-retention-xnr80fb6.js} +3 -3
- package/dist/chunks/{location-activity-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-activity-nzpy1syf.js → file-retention-yc9v5tg1.js} +9 -9
- package/dist/chunks/{location-activity-2w5wsfaf.js → file-retention-yedm1x7m.js} +22 -22
- package/dist/chunks/{location-activity-2xnvsrn7.js → file-retention-yj9gc6e9.js} +16 -16
- package/dist/chunks/{location-activity-6mycc3tm.js → file-retention-ykxsfcqd.js} +15 -15
- package/dist/chunks/{location-activity-yes5hb5v.js → file-retention-ymjb4ggy.js} +17 -17
- package/dist/chunks/{location-activity-ca93aw7g.js → file-retention-yn99y8fk.js} +9 -9
- package/dist/chunks/{location-activity-r8xr0va3.js → file-retention-yp2x3t23.js} +4 -4
- package/dist/chunks/{location-activity-ydx8dyns.js → file-retention-ypezmy3j.js} +5 -5
- package/dist/chunks/{location-activity-bprvn3qa.js → file-retention-yq8wzs83.js} +73 -73
- package/dist/chunks/{location-activity-8xaawdtz.js → file-retention-yrdrmcw9.js} +7 -7
- package/dist/chunks/{location-activity-yrhqyw5v.js → file-retention-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-activity-yrznvahk.js → file-retention-yrznvahk.js} +2 -2
- package/dist/chunks/{location-activity-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-activity-z63w68vq.js → file-retention-z63w68vq.js} +2 -2
- package/dist/chunks/{location-activity-zeh9ct20.js → file-retention-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-activity-jb35hfe2.js → file-retention-zmh7j08z.js} +20 -20
- package/dist/chunks/{location-activity-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-activity-b5yryq8z.js → file-retention-zs7xhsyr.js} +11 -11
- package/dist/chunks/{location-activity-prq6sj6q.js → file-retention-zvcs2h3f.js} +12 -12
- package/dist/chunks/{location-activity-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +80 -80
- package/dist/database/database.js +69 -69
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +224 -224
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +101 -101
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +102 -102
- 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 +98 -98
- 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 +359 -359
- package/dist/instruction-discovery.js +78 -78
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +99 -99
- package/dist/models-dev.js +100 -100
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +73 -73
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +104 -104
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/compaction.js +132 -132
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- 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 +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- 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 +221 -221
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- 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 +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- 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 +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +82 -82
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +115 -115
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +102 -102
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +12 -12
- 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 +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- 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 +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +84 -84
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/location-activity-b45axz3y.js +0 -252
- package/dist/chunks/location-activity-kxsyv2pq.js +0 -26
- package/dist/chunks/location-activity-rap9a73h.js +0 -18
- package/dist/chunks/location-activity-yjf8n2qf.js +0 -492
- /package/dist/chunks/{location-activity-0mesazry.js → file-retention-0mesazry.js} +0 -0
- /package/dist/chunks/{location-activity-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-activity-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-activity-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-activity-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-activity-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-activity-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-activity-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-activity-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-activity-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-activity-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-activity-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{location-activity-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-activity-3w5fmr99.js → file-retention-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-activity-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-activity-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-activity-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-activity-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-activity-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-activity-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{location-activity-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-activity-5qd3pb7m.js → file-retention-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-activity-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{location-activity-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-activity-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-activity-7w99qc9d.js → file-retention-7w99qc9d.js} +0 -0
- /package/dist/chunks/{location-activity-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{location-activity-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-activity-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-activity-922hggd3.js → file-retention-922hggd3.js} +0 -0
- /package/dist/chunks/{location-activity-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-activity-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-activity-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-activity-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-activity-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-activity-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-activity-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-activity-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-activity-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-activity-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-activity-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-activity-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-activity-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-activity-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-activity-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-activity-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{location-activity-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-activity-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-activity-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-activity-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-activity-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-activity-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-activity-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-activity-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-activity-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-activity-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-activity-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-activity-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-activity-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{location-activity-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-activity-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{location-activity-hjbc5kem.js → file-retention-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-activity-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{location-activity-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-activity-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-activity-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-activity-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-activity-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-activity-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-activity-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-activity-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-activity-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-activity-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-activity-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-activity-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-activity-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-activity-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-activity-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-activity-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-activity-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-activity-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-activity-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-activity-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-activity-sk3qaz4a.js → file-retention-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-activity-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-activity-twg0f83k.js → file-retention-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-activity-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-activity-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-activity-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-activity-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-activity-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-activity-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{location-activity-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-activity-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-activity-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-activity-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-activity-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-activity-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2,
|
|
3
3
|
normalizedName2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-3w5fmr99.js";
|
|
5
5
|
import {
|
|
6
6
|
extension2,
|
|
7
7
|
display2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-m3fdjcah.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/codemode/tool.ts
|
|
14
14
|
var exports_tool2 = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service69,
|
|
6
|
+
node72
|
|
7
|
+
} from "./file-retention-5s5jpmcb.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-retention-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: () => Service68,
|
|
17
|
+
node: () => node71,
|
|
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 Service68 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(Service68, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service69;
|
|
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(Service14, 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 Service68.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [node72] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service68, readText2, syncTextBom2, node71, exports_file_mutation };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service81,
|
|
6
|
+
node85
|
|
7
|
+
} from "./file-retention-yj9gc6e9.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service76,
|
|
11
|
+
node80
|
|
12
|
+
} from "./file-retention-b6q9rwn2.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service78,
|
|
15
|
+
node82
|
|
16
|
+
} from "./file-retention-673ngpmn.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service69,
|
|
19
|
+
node72
|
|
20
|
+
} from "./file-retention-5s5jpmcb.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID16,
|
|
23
|
+
Service77,
|
|
24
|
+
node81
|
|
25
|
+
} from "./file-retention-k779xt46.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-retention-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
31
|
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service75,
|
|
34
|
+
node79
|
|
35
|
+
} from "./file-retention-w2pkbhw2.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service31,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
56
|
configured: () => configured5,
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
57
|
+
layer: () => layer13,
|
|
58
|
+
node: () => node35
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -93,7 +93,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
93
93
|
var endpointLoads = makeUnsafe2();
|
|
94
94
|
var cloneConfig = (config) => structuredClone(config);
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service31 extends Context.Service()("@opencode/MCP") {
|
|
97
97
|
}
|
|
98
98
|
var Options5 = Schema.Struct({
|
|
99
99
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -101,13 +101,13 @@ var Options5 = Schema.Struct({
|
|
|
101
101
|
version: Schema.String
|
|
102
102
|
}))
|
|
103
103
|
});
|
|
104
|
-
var
|
|
105
|
-
const location = yield*
|
|
106
|
-
const environment = yield*
|
|
107
|
-
const bus = yield*
|
|
108
|
-
const forms = yield*
|
|
109
|
-
const integration = yield*
|
|
110
|
-
const credentials = yield*
|
|
104
|
+
var layer13 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
105
|
+
const location = yield* Service78;
|
|
106
|
+
const environment = yield* Service69;
|
|
107
|
+
const bus = yield* Service81;
|
|
108
|
+
const forms = yield* Service77;
|
|
109
|
+
const integration = yield* Service75;
|
|
110
|
+
const credentials = yield* Service76;
|
|
111
111
|
const root = yield* Effect.scope;
|
|
112
112
|
const fork = yield* FiberSet.makeRuntime();
|
|
113
113
|
const entries = new Map;
|
|
@@ -135,7 +135,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
135
135
|
method: { id: methodID, type: "oauth", label: name },
|
|
136
136
|
authorize: () => Effect.gen(function* () {
|
|
137
137
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
138
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
138
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service76, credentials));
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
}).pipe(Scope.provide(scope));
|
|
@@ -151,12 +151,12 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
151
151
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
152
152
|
return;
|
|
153
153
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
154
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
154
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service76, credentials));
|
|
155
155
|
});
|
|
156
156
|
const elicitation = {
|
|
157
157
|
create: (input) => Effect.gen(function* () {
|
|
158
158
|
if (input.params.mode === "url") {
|
|
159
|
-
const formID =
|
|
159
|
+
const formID = ID16.create();
|
|
160
160
|
const elicitationID = input.params.elicitationId;
|
|
161
161
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
162
162
|
if (key)
|
|
@@ -240,7 +240,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
240
240
|
entry.scope = scope;
|
|
241
241
|
const authProvider = yield* connectProvider(entry);
|
|
242
242
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
243
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
243
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service69, environment), Scope.provide(scope));
|
|
244
244
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
245
245
|
if (Exit.isSuccess(result)) {
|
|
246
246
|
entry.client = result.value.connection;
|
|
@@ -365,7 +365,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
365
365
|
yield* startServer(name, entry);
|
|
366
366
|
}).pipe(locks.withLock(name));
|
|
367
367
|
});
|
|
368
|
-
fork(bus.subscribe(
|
|
368
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
369
369
|
const state = create3({
|
|
370
370
|
name: "mcp",
|
|
371
371
|
initial: () => ({
|
|
@@ -391,7 +391,7 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
391
391
|
}),
|
|
392
392
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
393
393
|
});
|
|
394
|
-
return
|
|
394
|
+
return Service31.of({
|
|
395
395
|
transform: state.transform,
|
|
396
396
|
reload: state.reload,
|
|
397
397
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -512,12 +512,12 @@ var layer14 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
512
512
|
}));
|
|
513
513
|
function configured5(options) {
|
|
514
514
|
return makeLocationNode({
|
|
515
|
-
service:
|
|
516
|
-
layer:
|
|
517
|
-
deps: [
|
|
515
|
+
service: Service31,
|
|
516
|
+
layer: layer13(options),
|
|
517
|
+
deps: [node82, node72, node85, node81, node79, node80]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
var
|
|
520
|
+
var node35 = configured5();
|
|
521
521
|
function toElicitationField(key, property, required) {
|
|
522
522
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
523
523
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2,
|
|
571
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2, Service31, Options5, layer13, configured5, node35, exports_mcp4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./file-retention-yj9gc6e9.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-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: () => Info31,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service77,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer25,
|
|
29
|
+
node: () => node81,
|
|
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 Info31 = 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 Service77 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer25 = Layer.effect(Service77, 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 });
|
|
@@ -159,9 +159,9 @@ var layer24 = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
159
159
|
closed = true;
|
|
160
160
|
}).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 })));
|
|
161
161
|
yield* Effect.addFinalizer(() => close);
|
|
162
|
-
return
|
|
162
|
+
return Service77.of({ create, ask, get, list, state, reply, cancel, close });
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
164
|
+
var node81 = makeLocationNode({ service: Service77, layer: layer25, deps: [node85] });
|
|
165
165
|
function validateAnswer2(form, answer) {
|
|
166
166
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
167
167
|
for (const key of Object.keys(answer)) {
|
|
@@ -313,4 +313,4 @@ function isDateTime(value) {
|
|
|
313
313
|
return !Number.isNaN(new Date(value).getTime());
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
export {
|
|
316
|
+
export { ID16, Info31, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service77, layer25, node81, validateAnswer2, validateFields2, exports_form, Event20 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-7w99qc9d.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error2 = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_error2, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError9,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
24
|
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, UserInterruptedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./file-retention-yj9gc6e9.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-922hggd3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service78,
|
|
12
|
+
node82
|
|
13
|
+
} from "./file-retention-673ngpmn.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service61,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node64
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service61 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const location = yield*
|
|
42
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
43
|
+
const bus = yield* Service81;
|
|
44
|
+
const location = yield* Service78;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service78, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service61.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node64 = makeLocationNode({ service: Service61, layer, deps: [node85, node82] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service61, node64, exports_rpc, define2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-n7kj0nfb.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID12,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info26,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-retention-0xhrvaxm.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ModalModels: () =>
|
|
19
|
-
derive: () =>
|
|
20
|
-
get: () =>
|
|
21
|
-
load: () =>
|
|
16
|
+
var exports_models2 = {};
|
|
17
|
+
__export(exports_models2, {
|
|
18
|
+
ModalModels: () => exports_models2,
|
|
19
|
+
derive: () => derive3,
|
|
20
|
+
get: () => get3,
|
|
21
|
+
load: () => load3
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
@@ -54,10 +54,10 @@ var RemoteModel = Schema.Struct({
|
|
|
54
54
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
55
55
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
56
56
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
57
|
-
async function
|
|
58
|
-
return
|
|
57
|
+
async function get3(baseURL, apiKey, existing) {
|
|
58
|
+
return derive3(baseURL, await load3(baseURL, apiKey), existing);
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function load3(baseURL, apiKey) {
|
|
61
61
|
const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`
|
|
@@ -71,12 +71,12 @@ async function load2(baseURL, apiKey) {
|
|
|
71
71
|
return model ? [model] : [];
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function derive3(baseURL, remote, existing) {
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID12.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info26.make({
|
|
98
|
+
...Info26.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID12.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -144,4 +144,4 @@ function variants(remote) {
|
|
|
144
144
|
return [...seen.values()];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export {
|
|
147
|
+
export { get3, load3, derive3, exports_models2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin48,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin48 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin28 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin48, exports_identity };
|