@opencode/core 0.0.0-beta-19500 → 0.0.0-dev-19274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -82
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -74
- package/dist/catalog.js +83 -84
- package/dist/chunks/{model-resolver-6jcw83n3.js → file-008dah4r.js} +47 -51
- package/dist/chunks/{model-resolver-f8zs2stk.js → file-04bp4d3m.js} +11 -11
- package/dist/chunks/{model-resolver-t7n9q6bq.js → file-06x8he3q.js} +4 -4
- package/dist/chunks/{model-resolver-h3k867zz.js → file-0djf8xh9.js} +3 -3
- package/dist/chunks/{model-resolver-s1vvg2cq.js → file-0ea3rya4.js} +7 -7
- package/dist/chunks/{model-resolver-0paq2nw3.js → file-0paq2nw3.js} +1 -1
- package/dist/chunks/{model-resolver-0q0f95c6.js → file-0q0f95c6.js} +1 -1
- package/dist/chunks/{model-resolver-7z7az0f5.js → file-0rpg7gzc.js} +4 -4
- package/dist/chunks/{model-resolver-581kfnqp.js → file-0rvyveqe.js} +18 -18
- package/dist/chunks/{model-resolver-jwazx1ed.js → file-1ajj2c3r.js} +36 -36
- package/dist/chunks/{model-resolver-1dazxqgg.js → file-1dazxqgg.js} +2 -2
- package/dist/chunks/{model-resolver-4y66k410.js → file-1dfhrqqs.js} +3 -11
- package/dist/chunks/{model-resolver-mhdwrqr0.js → file-1ndzzahp.js} +3 -3
- package/dist/chunks/{model-resolver-q87s0xy8.js → file-1q2nd9f6.js} +63 -63
- package/dist/chunks/{model-resolver-vxp3kcg3.js → file-1q5awywt.js} +5 -5
- package/dist/chunks/{model-resolver-g6fkknnq.js → file-1s5k653j.js} +29 -29
- package/dist/chunks/{model-resolver-bq4vzaks.js → file-1xb0henf.js} +46 -46
- package/dist/chunks/{model-resolver-mwnd972w.js → file-1xzdp18p.js} +35 -35
- package/dist/chunks/{model-resolver-1ygqh575.js → file-1ygqh575.js} +2 -2
- package/dist/chunks/{model-resolver-21r38tys.js → file-21r38tys.js} +1 -1
- package/dist/chunks/{model-resolver-2402vzrj.js → file-2402vzrj.js} +1 -1
- package/dist/chunks/{model-resolver-0jwvfzzp.js → file-25kqvm6v.js} +25 -27
- package/dist/chunks/{model-resolver-z63w68vq.js → file-29x78va6.js} +6 -6
- package/dist/chunks/{model-resolver-2a5m3afh.js → file-2a5m3afh.js} +1 -1
- package/dist/chunks/{model-resolver-818pfwc9.js → file-2bdsn8gv.js} +11 -11
- package/dist/chunks/{model-resolver-qa6ytjmd.js → file-2bk70kd1.js} +13 -13
- package/dist/chunks/{model-resolver-p52p41ww.js → file-2cws46q3.js} +14 -14
- package/dist/chunks/{model-resolver-rj9a996t.js → file-2erbc7c4.js} +9 -9
- package/dist/chunks/{model-resolver-8p2zvf0d.js → file-2f1k6btd.js} +76 -107
- package/dist/chunks/{model-resolver-1gqabzhy.js → file-2j4ksk9q.js} +18 -19
- package/dist/chunks/{model-resolver-trk3y68z.js → file-2k29q1p2.js} +59 -59
- package/dist/chunks/{model-resolver-3tq8bdpm.js → file-2nck4hg8.js} +13 -13
- package/dist/chunks/{model-resolver-64at0fy0.js → file-2nhrma10.js} +8 -8
- package/dist/chunks/file-2nz9k5ke.js +247 -0
- package/dist/chunks/{model-resolver-g53r2hff.js → file-2qz021p1.js} +40 -40
- package/dist/chunks/{model-resolver-atny4vj3.js → file-2tv38tk1.js} +11 -11
- package/dist/chunks/{model-resolver-vvccsdf3.js → file-3c1tgrea.js} +6 -6
- package/dist/chunks/{model-resolver-d2aac7k2.js → file-3cz8rj72.js} +5 -5
- package/dist/chunks/{model-resolver-3hepkmqq.js → file-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-3q1jyqhd.js → file-3jp54z3r.js} +1 -1
- package/dist/chunks/{model-resolver-a2cfvfg1.js → file-3m095h8d.js} +20 -20
- package/dist/chunks/{model-resolver-mb5a7wwz.js → file-3nj27wxf.js} +10 -10
- package/dist/chunks/{model-resolver-3smtnn6g.js → file-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-resolver-xdk7tsve.js → file-3trbxeqx.js} +1 -1
- package/dist/chunks/{model-resolver-3tvqynh2.js → file-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-resolver-e86807kd.js → file-3wj4wm80.js} +83 -86
- package/dist/chunks/{model-resolver-ggj3dvvh.js → file-3x6z6rsx.js} +12 -12
- package/dist/chunks/{model-resolver-aztjpt51.js → file-4g3hne3q.js} +20 -23
- package/dist/chunks/{model-resolver-djqd3v5p.js → file-4hszn1mb.js} +43 -94
- package/dist/chunks/{model-resolver-0vvagabw.js → file-4qfh6hxk.js} +27 -27
- package/dist/chunks/file-4v7qdvcn.js +18 -0
- package/dist/chunks/{model-resolver-8abbabsk.js → file-4vf981v9.js} +24 -24
- package/dist/chunks/{model-resolver-70xr52zc.js → file-4w7x8wv5.js} +30 -30
- package/dist/chunks/{model-resolver-zpkbxaqd.js → file-4x6ztkk5.js} +5 -7
- package/dist/chunks/{model-resolver-9stj6zpb.js → file-4znd88gj.js} +32 -32
- package/dist/chunks/{model-resolver-q91t8a1k.js → file-51kk6f2e.js} +19 -19
- package/dist/chunks/{model-resolver-qn8ypmg1.js → file-58ax6zm2.js} +18 -18
- package/dist/chunks/{model-resolver-d880b0y6.js → file-5965tgm9.js} +30 -30
- package/dist/chunks/{model-resolver-a1bz86dw.js → file-5c4hm403.js} +3 -3
- package/dist/chunks/{model-resolver-5daktx2q.js → file-5daktx2q.js} +1 -1
- package/dist/chunks/{model-resolver-5t3nmthw.js → file-5t3nmthw.js} +2 -2
- package/dist/chunks/{model-resolver-s5wnyv46.js → file-5vc2whd9.js} +30 -30
- package/dist/chunks/{model-resolver-s72x8wcp.js → file-5vvax2qg.js} +23 -23
- package/dist/chunks/{model-resolver-prp52c5q.js → file-5xhpatkf.js} +11 -11
- package/dist/chunks/{model-resolver-669tq793.js → file-669tq793.js} +1 -1
- package/dist/chunks/{model-resolver-5v85fpgj.js → file-67e9xs01.js} +25 -25
- package/dist/chunks/{model-resolver-07cx4w7f.js → file-6c7ejz51.js} +4 -4
- package/dist/chunks/{model-resolver-98a0b00a.js → file-6fdj6kdr.js} +4 -4
- package/dist/chunks/{model-resolver-k6556a45.js → file-6kgc56n8.js} +6 -6
- package/dist/chunks/{model-resolver-6msgmcgs.js → file-6msgmcgs.js} +1 -1
- package/dist/chunks/{model-resolver-71q4at8m.js → file-71q4at8m.js} +1 -1
- package/dist/chunks/{model-resolver-kx6yd4vg.js → file-79175vp8.js} +35 -35
- package/dist/chunks/{model-resolver-kbn8346a.js → file-79zsnxkc.js} +11 -11
- package/dist/chunks/{model-resolver-vncycja5.js → file-7atngb88.js} +4 -4
- package/dist/chunks/{model-resolver-bcbgj7m0.js → file-7be1f342.js} +18 -18
- package/dist/chunks/{model-resolver-7bmhse3q.js → file-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-2k8khapm.js → file-7dqw4kz8.js} +5 -5
- package/dist/chunks/{model-resolver-789bpvq4.js → file-7g79e5pr.js} +11 -11
- package/dist/chunks/{model-resolver-y3fea29m.js → file-7sgb7w3n.js} +32 -92
- package/dist/chunks/{model-resolver-z2kz5700.js → file-7xdgscg1.js} +17 -17
- package/dist/chunks/{model-resolver-0hf448nj.js → file-81pg61w1.js} +8 -25
- package/dist/chunks/{model-resolver-rsym84ch.js → file-81swgkk7.js} +7 -7
- package/dist/chunks/{model-resolver-vy514hgv.js → file-82594dam.js} +9 -9
- package/dist/chunks/{model-resolver-1ptmpf20.js → file-84tssp1s.js} +9 -14
- package/dist/chunks/{model-resolver-6fvs6bkh.js → file-8bpbp254.js} +43 -43
- package/dist/chunks/{model-resolver-8d7r5vzw.js → file-8d7r5vzw.js} +1 -1
- package/dist/chunks/{model-resolver-f8xc4yre.js → file-8gbf9msb.js} +29 -29
- package/dist/chunks/{model-resolver-mg5mchpt.js → file-8gkhtxwv.js} +28 -28
- package/dist/chunks/{model-resolver-htk69tte.js → file-8ncz7km3.js} +7 -7
- package/dist/chunks/{model-resolver-ck6gmqc6.js → file-8tef8d4h.js} +43 -43
- package/dist/chunks/{model-resolver-h2fnsspk.js → file-94sf61n7.js} +19 -44
- package/dist/chunks/{model-resolver-75evgfh8.js → file-976ysedg.js} +15 -15
- package/dist/chunks/{model-resolver-26jcn8kh.js → file-9bey2zpa.js} +12 -12
- package/dist/chunks/{model-resolver-x1avke2d.js → file-9eqtwdne.js} +97 -92
- package/dist/chunks/{model-resolver-0334ef0p.js → file-9k2v62xn.js} +1 -1
- package/dist/chunks/file-9phvn7ns.js +71 -0
- package/dist/chunks/{model-resolver-4grgn5v0.js → file-a1d2hteq.js} +18 -18
- package/dist/chunks/{model-resolver-4vcrnpx2.js → file-a1tpkmh4.js} +3 -13
- package/dist/chunks/{model-resolver-hwap2x7x.js → file-a2zsx8ap.js} +25 -25
- package/dist/chunks/{model-resolver-aaet6srn.js → file-aaet6srn.js} +2 -2
- package/dist/chunks/{model-resolver-fvf9sjjr.js → file-ab8td0yc.js} +49 -47
- package/dist/chunks/{model-resolver-03s1nxke.js → file-agg557zn.js} +8 -8
- package/dist/chunks/{model-resolver-r532bney.js → file-anvxjef4.js} +4 -4
- package/dist/chunks/{model-resolver-2verbhpp.js → file-arm49q9k.js} +35 -35
- package/dist/chunks/{model-resolver-gkv3re89.js → file-aw3yg1a6.js} +11 -11
- package/dist/chunks/{model-resolver-mz65vdgf.js → file-axh6m6j7.js} +18 -18
- package/dist/chunks/{model-resolver-g190xswt.js → file-axmvebxj.js} +21 -21
- package/dist/chunks/{model-resolver-b22gj5xn.js → file-b4n85fcv.js} +26 -26
- package/dist/chunks/{model-resolver-mz60zy6e.js → file-b4nrwvyj.js} +29 -28
- package/dist/chunks/{model-resolver-b6gygkdw.js → file-b6gygkdw.js} +2 -2
- package/dist/chunks/{model-resolver-121k57vw.js → file-bby00dsd.js} +8 -8
- package/dist/chunks/{model-resolver-dktryzc1.js → file-bdbwpwhn.js} +26 -27
- package/dist/chunks/{model-resolver-xs8g0vg3.js → file-bdkz1q2y.js} +6 -6
- package/dist/chunks/{model-resolver-e6fygs6z.js → file-bge4fr1z.js} +25 -25
- package/dist/chunks/{model-resolver-1zkr721w.js → file-bjpmp57t.js} +13 -13
- package/dist/chunks/{model-resolver-87qnmf38.js → file-bkqrvamq.js} +36 -36
- package/dist/chunks/{model-resolver-zf0svfz5.js → file-c6jw9d6c.js} +16 -16
- package/dist/chunks/{model-resolver-csz41kxq.js → file-c7m8954m.js} +5 -5
- package/dist/chunks/{model-resolver-8y92rm17.js → file-c9kt1fwd.js} +7 -7
- package/dist/chunks/{model-resolver-kk8h1mek.js → file-cny5rd43.js} +8 -8
- package/dist/chunks/{model-resolver-z7dhx1kn.js → file-cp5f26bt.js} +24 -24
- package/dist/chunks/{model-resolver-1hc11dc4.js → file-csf2jhsg.js} +4 -4
- package/dist/chunks/{model-resolver-hwxt52gm.js → file-csyt93pz.js} +5 -5
- package/dist/chunks/{model-resolver-8yrnm0fa.js → file-cz12sndv.js} +29 -29
- package/dist/chunks/{model-resolver-j12k6d1r.js → file-d0chnedg.js} +29 -29
- package/dist/chunks/{model-resolver-0mywzg06.js → file-d8drewm4.js} +28 -28
- package/dist/chunks/{model-resolver-8p4f9s12.js → file-dj2t23y0.js} +2 -2
- package/dist/chunks/{model-resolver-dpkg50ah.js → file-dpkg50ah.js} +1 -1
- package/dist/chunks/{model-resolver-qwkytnft.js → file-dsf3jx99.js} +30 -9
- package/dist/chunks/{model-resolver-j7wq2tw5.js → file-dv250zvr.js} +3 -3
- package/dist/chunks/{model-resolver-t6gatd88.js → file-dvmnmd5k.js} +50 -50
- package/dist/chunks/{model-resolver-942176fc.js → file-dw8dc0pw.js} +11 -11
- package/dist/chunks/{model-resolver-e82z9tr0.js → file-e82z9tr0.js} +1 -1
- package/dist/chunks/{model-resolver-rtkh6q4b.js → file-e9vyr379.js} +11 -11
- package/dist/chunks/{model-resolver-mrsqtdpn.js → file-ec2j1krk.js} +36 -36
- package/dist/chunks/file-eex81ar0.js +272 -0
- package/dist/chunks/{model-resolver-tp3xxvx5.js → file-em6n8dz9.js} +48 -48
- package/dist/chunks/{model-resolver-z2b5d6zb.js → file-endpbns8.js} +6 -6
- package/dist/chunks/{model-resolver-7fys8geh.js → file-enk99f8n.js} +16 -16
- package/dist/chunks/{model-resolver-9rzqjwaz.js → file-esdnemd6.js} +1 -1
- package/dist/chunks/{model-resolver-etq0c3wd.js → file-etq0c3wd.js} +1 -1
- package/dist/chunks/{model-resolver-t9e5d74p.js → file-exww9xwg.js} +9 -9
- package/dist/chunks/{model-resolver-1acjjqhc.js → file-f2n192rq.js} +4 -4
- package/dist/chunks/{model-resolver-x6geafsy.js → file-fq1h1v14.js} +3 -3
- package/dist/chunks/{model-resolver-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
- package/dist/chunks/{model-resolver-0wbgnjtz.js → file-g9ew5f51.js} +2 -2
- package/dist/chunks/{model-resolver-gd4qta3r.js → file-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-resolver-37s12vcn.js → file-gdrhyezn.js} +5 -5
- package/dist/chunks/{model-resolver-gdvy8fx6.js → file-gdvy8fx6.js} +1 -1
- package/dist/chunks/{model-resolver-h7ygw6q4.js → file-gsx0ryk4.js} +9 -9
- package/dist/chunks/{model-resolver-h03wrkyp.js → file-h03wrkyp.js} +2 -2
- package/dist/chunks/{model-resolver-dqyg47hv.js → file-h2gyv3sg.js} +1 -1
- package/dist/chunks/{model-resolver-jbe1bvhn.js → file-h2wxq9m6.js} +27 -27
- package/dist/chunks/{model-resolver-yjv2keaj.js → file-h5pnkca0.js} +68 -42
- package/dist/chunks/file-h5wzpkcb.js +22 -0
- package/dist/chunks/{model-resolver-h6vf3j39.js → file-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-resolver-f828m53h.js → file-hdnk95c8.js} +2 -2
- package/dist/chunks/{model-resolver-psjem9sa.js → file-hmtfd8e7.js} +11 -11
- package/dist/chunks/{model-resolver-csz4k5km.js → file-hw2gt29t.js} +18 -18
- package/dist/chunks/{model-resolver-8p8b376s.js → file-hznfad64.js} +25 -25
- package/dist/chunks/{model-resolver-erhkyex8.js → file-hzvfpvak.js} +4 -4
- package/dist/chunks/{model-resolver-j56e64zr.js → file-j56e64zr.js} +1 -1
- package/dist/chunks/{model-resolver-0k7hqrra.js → file-j5e99w94.js} +24 -24
- package/dist/chunks/{model-resolver-rd8pgjwx.js → file-j8sknp13.js} +20 -20
- package/dist/chunks/{model-resolver-paphc93g.js → file-j935v87r.js} +2 -2
- package/dist/chunks/{model-resolver-z2qr9twd.js → file-jbax583q.js} +1 -1
- package/dist/chunks/{model-resolver-6wxzvafn.js → file-jqcaya3d.js} +11 -11
- package/dist/chunks/{model-resolver-pqg5898n.js → file-jqcc8e1d.js} +12 -12
- package/dist/chunks/{model-resolver-s534qmrw.js → file-jrrn2k62.js} +4 -4
- package/dist/chunks/{model-resolver-3nxeqbj3.js → file-jypsjmxy.js} +16 -17
- package/dist/chunks/{model-resolver-pvvs7m8f.js → file-kbqxyd6c.js} +13 -13
- package/dist/chunks/{model-resolver-27596drg.js → file-kd3m4z14.js} +28 -28
- package/dist/chunks/{model-resolver-kg06axw8.js → file-kg06axw8.js} +1 -1
- package/dist/chunks/{model-resolver-m4hypjkm.js → file-kggrcpgh.js} +14 -14
- package/dist/chunks/{model-resolver-gwfcx2m0.js → file-knac466s.js} +50 -24
- package/dist/chunks/{model-resolver-x940zq77.js → file-kt5w8vxh.js} +10 -10
- package/dist/chunks/{model-resolver-cfpkc3c9.js → file-m0jqrx5p.js} +2 -2
- package/dist/chunks/{model-resolver-gw82nkc3.js → file-m2shdzh0.js} +41 -37
- package/dist/chunks/{model-resolver-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-mhkvc446.js → file-mhkvc446.js} +1 -1
- package/dist/chunks/file-mkcjrzeh.js +15 -0
- package/dist/chunks/{model-resolver-021ffpa0.js → file-mq2071pb.js} +19 -19
- package/dist/chunks/{model-resolver-g5rnekq0.js → file-mrw4weg4.js} +5 -5
- package/dist/chunks/{model-resolver-y94qkjj7.js → file-mvfjcd1q.js} +7 -7
- package/dist/chunks/{model-resolver-n37c4crj.js → file-n37c4crj.js} +2 -2
- package/dist/chunks/{model-resolver-rctyp4y4.js → file-n3wgj171.js} +28 -29
- package/dist/chunks/{model-resolver-shqnjwtb.js → file-n5qmychr.js} +19 -19
- package/dist/chunks/{model-resolver-ydgy0jv4.js → file-ne3jdqry.js} +4 -4
- package/dist/chunks/{model-resolver-3kafhsr8.js → file-nrzk1d2g.js} +22 -22
- package/dist/chunks/{model-resolver-cbg8bv93.js → file-nx4935gj.js} +10 -10
- package/dist/chunks/{model-resolver-k6h76ggr.js → file-nz54bs3w.js} +21 -21
- package/dist/chunks/{model-resolver-23sxaqwc.js → file-pjedbq3k.js} +6 -6
- package/dist/chunks/{model-resolver-5v1cn1j1.js → file-pjsmk15p.js} +5 -5
- package/dist/chunks/{model-resolver-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-resolver-pknna89w.js → file-pknna89w.js} +1 -1
- package/dist/chunks/file-pq4st5kv.js +341 -0
- package/dist/chunks/{model-resolver-drknmmyh.js → file-pzh16mkn.js} +9 -9
- package/dist/chunks/{model-resolver-dv1qgsyq.js → file-q26tgv94.js} +8 -8
- package/dist/chunks/{model-resolver-b77arecc.js → file-q73rq2bt.js} +28 -28
- package/dist/chunks/{model-resolver-74w3tna1.js → file-qf00j6dv.js} +20 -20
- package/dist/chunks/{model-resolver-7cwz0yjz.js → file-qrbavdvc.js} +15 -15
- package/dist/chunks/{model-resolver-qsdy395h.js → file-qsdy395h.js} +1 -1
- package/dist/chunks/{model-resolver-kxpygcw9.js → file-qz49fwgp.js} +6 -6
- package/dist/chunks/{model-resolver-3gjfrb28.js → file-ra8xed55.js} +28 -28
- package/dist/chunks/{model-resolver-02nrjc1r.js → file-rhjbct0v.js} +6 -6
- package/dist/chunks/{model-resolver-0pm1m3w8.js → file-rkh7tb58.js} +10 -10
- package/dist/chunks/{model-resolver-wj9n5p3k.js → file-rq8fnevv.js} +5 -5
- package/dist/chunks/{model-resolver-98kgw1j6.js → file-rs226bz6.js} +30 -5
- package/dist/chunks/{model-resolver-fbf46f8y.js → file-rsz0a70p.js} +302 -302
- package/dist/chunks/{model-resolver-3hgg98pr.js → file-rt7tcdqd.js} +35 -35
- package/dist/chunks/{model-resolver-wgf958fy.js → file-s0vw0vjm.js} +30 -30
- package/dist/chunks/{model-resolver-pm4pe4yk.js → file-s2tycd90.js} +29 -29
- package/dist/chunks/{model-resolver-yrznvahk.js → file-s4enseaf.js} +2 -2
- package/dist/chunks/{model-resolver-0g6mfyfr.js → file-s4m5whm3.js} +50 -50
- package/dist/chunks/{model-resolver-s2whfhf8.js → file-s52qk724.js} +27 -27
- package/dist/chunks/{model-resolver-079cv0ze.js → file-shsgghb2.js} +24 -24
- package/dist/chunks/{model-resolver-6xt4p4wv.js → file-sq4v2gnf.js} +9 -9
- package/dist/chunks/{model-resolver-zceb237h.js → file-swasttjx.js} +12 -12
- package/dist/chunks/{model-resolver-t82489yp.js → file-sxhqw0xy.js} +37 -37
- package/dist/chunks/{model-resolver-twy35tz0.js → file-t0x5rdq8.js} +9 -9
- package/dist/chunks/{model-resolver-djmbsxn3.js → file-t1n4dhg9.js} +9 -13
- package/dist/chunks/{model-resolver-2cshb6bs.js → file-t3g2ccp6.js} +26 -26
- package/dist/chunks/{model-resolver-rq6dswfj.js → file-t5qb37t7.js} +7 -7
- package/dist/chunks/{model-resolver-6kyz0a76.js → file-t9sxjxdg.js} +14 -29
- package/dist/chunks/{model-resolver-tazgh4e4.js → file-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-resolver-tcezcvh9.js → file-tcezcvh9.js} +1 -1
- package/dist/chunks/{model-resolver-tdstcens.js → file-tdstcens.js} +1 -1
- package/dist/chunks/{model-resolver-am89cgs6.js → file-tegrjk77.js} +14 -21
- package/dist/chunks/{model-resolver-gv6a8nnw.js → file-th5km1p3.js} +5 -5
- package/dist/chunks/{model-resolver-htx7jtvk.js → file-tk6q6kp1.js} +19 -19
- package/dist/chunks/{model-resolver-qyxt0tsw.js → file-ttqfmzkf.js} +4 -4
- package/dist/chunks/{model-resolver-tvtrv512.js → file-tvtrv512.js} +1 -1
- package/dist/chunks/{model-resolver-xg9t41r3.js → file-v4b36nj3.js} +2 -3
- package/dist/chunks/file-vabb23s0.js +35 -0
- package/dist/chunks/{model-resolver-veqvce7d.js → file-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-ewbqqj16.js → file-vg6tfdkt.js} +16 -16
- package/dist/chunks/{model-resolver-hya8ywrc.js → file-vjknh09n.js} +72 -72
- package/dist/chunks/{model-resolver-qn4ba14w.js → file-vmq7ehpy.js} +5 -5
- package/dist/chunks/{model-resolver-6hzp91we.js → file-vr4b7vmt.js} +7 -7
- package/dist/chunks/{model-resolver-4kmhmgeg.js → file-vvxeqa35.js} +154 -157
- package/dist/chunks/{model-resolver-qdcfe15v.js → file-vypqtakx.js} +1 -1
- package/dist/chunks/{model-resolver-774n8a20.js → file-vyrr568v.js} +9 -9
- package/dist/chunks/{model-resolver-vzcthcp8.js → file-vzcthcp8.js} +1 -1
- package/dist/chunks/{model-resolver-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-wf4bebac.js → file-w44msefy.js} +16 -16
- package/dist/chunks/{model-resolver-sdcezsxk.js → file-w59r8svm.js} +11 -11
- package/dist/chunks/{model-resolver-r9ghxtsk.js → file-w5yv7xxz.js} +3 -3
- package/dist/chunks/{model-resolver-h4q9s1ny.js → file-w645sbyz.js} +17 -17
- package/dist/chunks/{model-resolver-gwnxf6ch.js → file-w6w0btqv.js} +6 -6
- package/dist/chunks/{model-resolver-epzffrx8.js → file-w85wdfaw.js} +25 -25
- package/dist/chunks/{model-resolver-fxqygnfa.js → file-wcge806m.js} +4 -4
- package/dist/chunks/{model-resolver-wd87259q.js → file-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-87mnny1s.js → file-wdatz8ry.js} +16 -16
- package/dist/chunks/{model-resolver-vnv2t9ht.js → file-wea26x67.js} +4 -4
- package/dist/chunks/{model-resolver-rav9e4bf.js → file-wfpsx1me.js} +8 -8
- package/dist/chunks/{model-resolver-sph8ksss.js → file-wkpvzz54.js} +9 -9
- package/dist/chunks/{model-resolver-aczsg4vg.js → file-wwegy27d.js} +27 -39
- package/dist/chunks/{model-resolver-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
- package/dist/chunks/{model-resolver-r9mregkx.js → file-x43y2vfs.js} +3 -3
- package/dist/chunks/{model-resolver-0sp60s5d.js → file-x513e6jx.js} +20 -20
- package/dist/chunks/{model-resolver-9y7khav7.js → file-xbrgdg50.js} +15 -15
- package/dist/chunks/{model-resolver-fdc0z0c3.js → file-xcp573p8.js} +2 -2
- package/dist/chunks/{model-resolver-dkck3j8g.js → file-xed1dtdk.js} +8 -8
- package/dist/chunks/file-xrsqh21y.js +4 -0
- package/dist/chunks/{model-resolver-kvffe9p6.js → file-y0bkwhrp.js} +18 -19
- package/dist/chunks/{model-resolver-spr8pf2r.js → file-y0kn4hqx.js} +9 -9
- package/dist/chunks/{model-resolver-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-resolver-4bfepadc.js → file-y2800yn9.js} +4 -4
- package/dist/chunks/{model-resolver-a4vx34cq.js → file-y5cw24ds.js} +14 -14
- package/dist/chunks/file-y7egkzp6.js +55 -0
- package/dist/chunks/{model-resolver-vhj1rs6k.js → file-ya1b4y87.js} +22 -25
- package/dist/chunks/{model-resolver-nv6fkpt4.js → file-yca9gk6f.js} +21 -20
- package/dist/chunks/{model-resolver-xtzwr8pq.js → file-yckky8df.js} +8 -9
- package/dist/chunks/{model-resolver-yrhqyw5v.js → file-yrhqyw5v.js} +1 -1
- package/dist/chunks/{model-resolver-z0bkrqjs.js → file-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-me88hgte.js → file-z3syage6.js} +23 -23
- package/dist/chunks/{model-resolver-24e6cc3r.js → file-z9s268w6.js} +9 -12
- package/dist/chunks/{model-resolver-zeh9ct20.js → file-zeh9ct20.js} +2 -2
- package/dist/chunks/{model-resolver-zr2ceqn5.js → file-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-resolver-ryr25ayn.js → file-zv0544jz.js} +4 -4
- package/dist/chunks/{model-resolver-d2fv866c.js → file-zx86nq6m.js} +13 -13
- package/dist/chunks/{model-resolver-zxq2ej10.js → file-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -82
- package/dist/config/discovery.js +77 -78
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +115 -116
- package/dist/config/plugin/command.js +207 -208
- package/dist/config/plugin/compaction.js +155 -156
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -118
- package/dist/config/plugin/image.js +115 -116
- package/dist/config/plugin/instruction.js +85 -86
- package/dist/config/plugin/location-watcher.js +117 -118
- package/dist/config/plugin/mcp.js +124 -125
- package/dist/config/plugin/policy.js +114 -115
- package/dist/config/plugin/provider.js +113 -114
- package/dist/config/plugin/reference.js +117 -118
- package/dist/config/plugin/shell.js +118 -119
- package/dist/config/plugin/skill-file.js +97 -98
- package/dist/config/plugin/skill.js +134 -135
- package/dist/config/plugin/snapshot.js +115 -116
- package/dist/config/plugin/source.js +115 -116
- package/dist/config/plugin/tool-output.js +117 -118
- package/dist/config/plugin/websearch.js +115 -116
- package/dist/config/plugin/worktree.js +118 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -120
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -84
- package/dist/database/database.js +68 -69
- 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.gen.js +47 -48
- package/dist/database/migration.js +49 -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 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- 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 +88 -89
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -91
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -73
- package/dist/file-access.js +99 -100
- package/dist/file-mutation.js +89 -90
- 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 +222 -223
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -100
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -101
- package/dist/form.js +82 -83
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +82 -83
- package/dist/generate.js +93 -94
- package/dist/git.js +7 -7
- 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 +7 -7
- 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 +352 -352
- package/dist/instruction-discovery.js +83 -84
- package/dist/instructions/builtins.js +82 -83
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +82 -83
- package/dist/job.js +77 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -72
- package/dist/location-activity.js +133 -134
- package/dist/location-mutation.js +99 -100
- package/dist/location-service-map.js +83 -84
- package/dist/location-services.js +349 -349
- package/dist/location.js +82 -83
- package/dist/mcp/client.js +86 -87
- package/dist/mcp/index.js +103 -104
- package/dist/mcp/instructions.js +118 -119
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -86
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +86 -93
- package/dist/model.js +6 -6
- package/dist/models-dev.js +86 -87
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -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 -83
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -74
- package/dist/plugin/agent.js +97 -98
- package/dist/plugin/command.js +94 -95
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -214
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -76
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -6
- package/dist/plugin/plan.js +97 -98
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +7 -0
- package/dist/plugin/provider/azure.js +118 -119
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -115
- package/dist/plugin/provider/digitalocean.js +79 -80
- 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 +80 -81
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -77
- package/dist/plugin/provider/lmstudio.js +115 -116
- package/dist/plugin/provider/mistral.js +7 -0
- package/dist/plugin/provider/modal.js +79 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +115 -116
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -81
- package/dist/plugin/provider/opencode.js +76 -80
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +5 -119
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +115 -116
- package/dist/plugin/provider/xai.js +77 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +156 -157
- package/dist/plugin/sdk.js +72 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +131 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +340 -340
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/variant.js +2 -2
- package/dist/plugin/vcs/git.js +82 -83
- package/dist/plugin/vcs/hg.js +82 -83
- package/dist/plugin/warming.js +112 -113
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +218 -219
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -84
- package/dist/provider.js +7 -9
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +94 -95
- package/dist/reference/instructions.js +84 -85
- package/dist/reference.js +84 -85
- package/dist/repository-cache.js +76 -77
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -94
- package/dist/rpc.js +81 -82
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -73
- package/dist/session/compaction.js +127 -128
- package/dist/session/context.js +147 -148
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +13 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -220
- package/dist/session/execution.js +124 -125
- package/dist/session/generate.js +148 -149
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +84 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +75 -76
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -114
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -127
- package/dist/session/projector.js +84 -85
- package/dist/session/prompt.js +100 -101
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -86
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -91
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -111
- package/dist/session/runner/step.js +119 -120
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -168
- package/dist/session/shell.js +131 -132
- package/dist/session/skill.js +98 -99
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -74
- package/dist/session/store.js +85 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -206
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +145 -146
- package/dist/session/to-session-error.js +107 -108
- package/dist/session/transfer.js +219 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -214
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +133 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +96 -97
- package/dist/skill.js +107 -108
- package/dist/snapshot.js +86 -87
- 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 +117 -118
- package/dist/tool/plugin/edit.js +111 -112
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -121
- package/dist/tool/plugin/grep.js +120 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -118
- package/dist/tool/plugin/question.js +100 -101
- package/dist/tool/plugin/read.js +121 -122
- package/dist/tool/plugin/shell.js +212 -213
- package/dist/tool/plugin/skill.js +108 -109
- package/dist/tool/plugin/subagent.js +208 -209
- package/dist/tool/plugin/webfetch.js +105 -106
- package/dist/tool/plugin/websearch.js +109 -110
- package/dist/tool/plugin/write.js +117 -118
- package/dist/tool/read-filesystem.js +96 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +15 -15
- package/dist/types/aisdk-native.d.ts +2 -4
- package/dist/types/model-resolver.d.ts +3 -52
- package/dist/types/model.d.ts +0 -1
- package/dist/types/plugin/optimize.d.ts +1 -2
- package/dist/types/plugin/provider/anthropic.d.ts +1 -0
- package/dist/types/plugin/provider/mistral.d.ts +1 -0
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +4 -5
- package/dist/types/provider.d.ts +0 -2
- package/dist/types/rpc.d.ts +0 -1
- package/dist/types/session/compaction.d.ts +3 -3
- package/dist/types/session/context.d.ts +1 -1
- package/dist/types/session/error.d.ts +36 -0
- package/dist/types/session/history.d.ts +0 -80
- package/dist/types/session/model-request.d.ts +37 -18
- package/dist/types/session/runner/model.d.ts +0 -5
- package/dist/types/session/runner/step.d.ts +1 -1
- package/dist/types/session/schema.d.ts +0 -9
- package/dist/types/session/session.d.ts +5 -5
- package/dist/types/session/sql.d.ts +3 -3
- package/dist/types/session/store.d.ts +0 -1
- package/dist/types/session/transfer.d.ts +0 -53
- package/dist/types/session.d.ts +5 -8
- package/dist/types/v1/config/migrate.d.ts +0 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +7 -7
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -86
- package/dist/websearch.js +82 -83
- package/dist/wellknown/plugin.js +74 -75
- package/dist/wellknown.js +79 -80
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -79
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +341 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +91 -92
- package/package.json +8 -8
- package/dist/chunks/model-resolver-0wmmprtc.js +0 -260
- package/dist/chunks/model-resolver-532bqssk.js +0 -63
- package/dist/chunks/model-resolver-ghej9zy6.js +0 -228
- package/dist/chunks/model-resolver-hjw1g3kj.js +0 -247
- package/dist/chunks/model-resolver-j2k1bkn8.js +0 -22
- package/dist/chunks/model-resolver-qapv375x.js +0 -4
- package/dist/chunks/model-resolver-qdyb70sk.js +0 -18
- package/dist/chunks/model-resolver-wrjeysgp.js +0 -170
- package/dist/chunks/model-resolver-wwmx33bt.js +0 -123
- package/dist/chunks/model-resolver-y8f7s663.js +0 -13
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +0 -6
- package/dist/plugin/provider/poe.js +0 -82
- package/dist/types/database/migration/20260910120000_clear_v1_session_permission.d.ts +0 -3
- package/dist/types/plugin/provider/poe.d.ts +0 -2
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → file-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → file-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → file-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → file-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2axfhc9x.js → file-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → file-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → file-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → file-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3w5fmr99.js → file-3w5fmr99.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → file-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → file-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → file-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → file-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → file-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → file-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → file-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → file-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → file-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → file-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → file-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → file-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-922hggd3.js → file-922hggd3.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → file-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → file-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → file-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → file-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → file-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → file-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → file-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → file-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → file-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → file-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → file-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → file-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → file-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → file-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → file-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → file-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → file-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → file-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → file-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → file-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → file-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → file-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → file-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hjbc5kem.js → file-hjbc5kem.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → file-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-hrnqkpcd.js → file-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → file-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → file-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → file-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → file-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → file-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → file-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → file-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → file-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → file-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → file-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → file-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → file-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → file-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-twg0f83k.js → file-twg0f83k.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → file-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → file-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → file-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → file-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → file-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → file-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8cydn3q.js → file-y8cydn3q.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → file-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → file-z9919s4g.js} +0 -0
|
@@ -1,64 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID16,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
|
-
nativeSettings2,
|
|
7
6
|
mergeOverlay2,
|
|
8
7
|
mergeHeaders2
|
|
9
|
-
} from "./
|
|
8
|
+
} from "./file-84tssp1s.js";
|
|
10
9
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
Service75,
|
|
11
|
+
node80
|
|
12
|
+
} from "./file-hmtfd8e7.js";
|
|
14
13
|
import {
|
|
15
14
|
map2
|
|
16
|
-
} from "./
|
|
15
|
+
} from "./file-pq4st5kv.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
17
|
+
ID15,
|
|
19
18
|
VariantID2,
|
|
20
19
|
Ref3
|
|
21
|
-
} from "./
|
|
20
|
+
} from "./file-nx4935gj.js";
|
|
22
21
|
import {
|
|
23
22
|
ID6,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
23
|
+
Service49,
|
|
24
|
+
node52
|
|
25
|
+
} from "./file-8gbf9msb.js";
|
|
27
26
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
27
|
+
Service48,
|
|
28
|
+
node51
|
|
29
|
+
} from "./file-bdbwpwhn.js";
|
|
31
30
|
import {
|
|
32
31
|
__export
|
|
33
|
-
} from "./
|
|
32
|
+
} from "./file-9rqn6x4v.js";
|
|
34
33
|
|
|
35
34
|
// src/model-resolver.ts
|
|
36
35
|
var exports_model_resolver = {};
|
|
37
36
|
__export(exports_model_resolver, {
|
|
38
|
-
InitializationPhase: () => InitializationPhase2,
|
|
39
|
-
ModelConfigurationError: () => ModelConfigurationError3,
|
|
40
|
-
ModelInitializationError: () => ModelInitializationError3,
|
|
41
37
|
ModelResolver: () => exports_model_resolver,
|
|
42
|
-
Service: () =>
|
|
38
|
+
Service: () => Service47,
|
|
43
39
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
44
40
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
45
41
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
46
42
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
47
43
|
fromCatalogModel: () => fromCatalogModel2,
|
|
48
44
|
hasPackage: () => hasPackage2,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
45
|
+
layer: () => layer19,
|
|
46
|
+
node: () => node50,
|
|
51
47
|
resolveModel: () => resolveModel2,
|
|
52
48
|
withVariant: () => withVariant2
|
|
53
49
|
});
|
|
54
50
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
55
|
-
import { LanguageModel
|
|
51
|
+
import { LanguageModel } from "@opencode/ai";
|
|
56
52
|
import { Auth } from "@opencode/ai/route";
|
|
57
53
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
58
54
|
import { Npm } from "@opencode/util/npm";
|
|
59
55
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
60
|
-
providerID:
|
|
61
|
-
modelID:
|
|
56
|
+
providerID: ID16,
|
|
57
|
+
modelID: ID15,
|
|
62
58
|
variant: VariantID2
|
|
63
59
|
}) {
|
|
64
60
|
get message() {
|
|
@@ -67,42 +63,18 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
70
|
-
providerID:
|
|
71
|
-
modelID:
|
|
66
|
+
providerID: ID16,
|
|
67
|
+
modelID: ID15,
|
|
72
68
|
package: Schema.String
|
|
73
69
|
}) {
|
|
74
70
|
get message() {
|
|
75
71
|
return `Unsupported package for ${this.providerID}/${this.modelID}: ${this.package}`;
|
|
76
72
|
}
|
|
77
73
|
}
|
|
78
|
-
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
79
|
-
|
|
80
|
-
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
81
|
-
providerID: ID10,
|
|
82
|
-
modelID: ID9,
|
|
83
|
-
package: Schema.String,
|
|
84
|
-
detail: Schema.String
|
|
85
|
-
}) {
|
|
86
|
-
get message() {
|
|
87
|
-
return `Cannot initialize ${this.providerID}/${this.modelID}: ${this.detail}`;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
92
|
-
providerID: ID10,
|
|
93
|
-
modelID: ID9,
|
|
94
|
-
package: Schema.String,
|
|
95
|
-
phase: InitializationPhase2,
|
|
96
|
-
detail: Schema.String
|
|
97
|
-
}) {
|
|
98
|
-
get message() {
|
|
99
|
-
return `Cannot initialize ${this.providerID}/${this.modelID}: ${this.detail}`;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
74
|
|
|
103
75
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
104
|
-
providerID:
|
|
105
|
-
modelID:
|
|
76
|
+
providerID: ID16,
|
|
77
|
+
modelID: ID15,
|
|
106
78
|
variables: Schema.Array(Schema.String)
|
|
107
79
|
}) {
|
|
108
80
|
get message() {
|
|
@@ -111,8 +83,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
111
83
|
}
|
|
112
84
|
|
|
113
85
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
114
|
-
providerID:
|
|
115
|
-
modelID:
|
|
86
|
+
providerID: ID16,
|
|
87
|
+
modelID: ID15,
|
|
116
88
|
route: Schema.String
|
|
117
89
|
}) {
|
|
118
90
|
get message() {
|
|
@@ -120,7 +92,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
120
92
|
}
|
|
121
93
|
}
|
|
122
94
|
|
|
123
|
-
class
|
|
95
|
+
class Service47 extends Context.Service()("@opencode/ModelResolver") {
|
|
124
96
|
}
|
|
125
97
|
var withVariant2 = (model, variantID) => {
|
|
126
98
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -164,13 +136,13 @@ var resolveCatalogModel = Effect.fn("ModelResolver.resolveCatalogModel")(functio
|
|
|
164
136
|
...credential?.metadata,
|
|
165
137
|
...configuration
|
|
166
138
|
}) ?? {});
|
|
167
|
-
return yield* loadAISDK({ ...resolved, settings }).pipe(Effect.mapError((
|
|
139
|
+
return yield* loadAISDK({ ...resolved, settings }).pipe(Effect.mapError(() => unsupported(resolved)));
|
|
168
140
|
}
|
|
169
141
|
if (!native)
|
|
170
142
|
return yield* unsupported(resolved);
|
|
171
143
|
const specifier = native;
|
|
172
|
-
const mapped = yield* prepareProviderSettings(resolved,
|
|
173
|
-
const module = yield* (dependencies?.loadPackage ?? loadPackage2)(specifier).pipe(Effect.mapError((
|
|
144
|
+
const mapped = yield* prepareProviderSettings(resolved, mapping?.settings ?? configured);
|
|
145
|
+
const module = yield* (dependencies?.loadPackage ?? loadPackage2)(specifier).pipe(Effect.mapError(() => unsupported(resolved)));
|
|
174
146
|
const settings = {
|
|
175
147
|
...credential ? Struct.omit(mapped, ["accessToken", "apiKey", "authToken"]) : mapped,
|
|
176
148
|
...resolved.canonical === undefined ? {} : { provider: resolved.canonical },
|
|
@@ -186,12 +158,7 @@ var resolveCatalogModel = Effect.fn("ModelResolver.resolveCatalogModel")(functio
|
|
|
186
158
|
compatibility: resolved.compatibility ? Object.assign({}, runtime.compatibility, resolved.compatibility) : runtime.compatibility
|
|
187
159
|
});
|
|
188
160
|
},
|
|
189
|
-
catch: (
|
|
190
|
-
providerID: resolved.providerID,
|
|
191
|
-
modelID: resolved.id,
|
|
192
|
-
package: resolved.package ?? "unknown",
|
|
193
|
-
detail: cause.message
|
|
194
|
-
}) : initialization(resolved, "construct", cause)
|
|
161
|
+
catch: () => unsupported(resolved)
|
|
195
162
|
});
|
|
196
163
|
});
|
|
197
164
|
function prepareRuntimeModel(model, credential) {
|
|
@@ -249,30 +216,13 @@ var unsupported = (model) => new UnsupportedPackageError3({
|
|
|
249
216
|
modelID: model.id,
|
|
250
217
|
package: model.package ?? "unknown"
|
|
251
218
|
});
|
|
252
|
-
var initialization = (model, phase, cause) => new ModelInitializationError3({
|
|
253
|
-
providerID: model.providerID,
|
|
254
|
-
modelID: model.id,
|
|
255
|
-
package: model.package ?? "unknown",
|
|
256
|
-
phase,
|
|
257
|
-
detail: causeMessage(cause) ?? `${phase} failed for ${model.package ?? "unknown"}`
|
|
258
|
-
});
|
|
259
|
-
var causeMessage = (cause) => {
|
|
260
|
-
if (typeof cause === "string")
|
|
261
|
-
return cause.trim() || undefined;
|
|
262
|
-
if (!(cause instanceof globalThis.Error))
|
|
263
|
-
return;
|
|
264
|
-
const message = cause.message.trim();
|
|
265
|
-
if (message)
|
|
266
|
-
return message;
|
|
267
|
-
return causeMessage(cause.cause);
|
|
268
|
-
};
|
|
269
219
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
270
220
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
271
|
-
var
|
|
272
|
-
const catalog = yield*
|
|
273
|
-
const integrations = yield*
|
|
221
|
+
var layer19 = Layer.effect(Service47, Effect.gen(function* () {
|
|
222
|
+
const catalog = yield* Service48;
|
|
223
|
+
const integrations = yield* Service49;
|
|
274
224
|
const npm = yield* Npm.Service;
|
|
275
|
-
const aisdk = yield*
|
|
225
|
+
const aisdk = yield* Service75;
|
|
276
226
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
277
227
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
278
228
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID6.make(selected.providerID));
|
|
@@ -293,11 +243,10 @@ var layer22 = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
293
243
|
capabilities: selected.capabilities,
|
|
294
244
|
cost: selected.cost,
|
|
295
245
|
limit: selected.limit,
|
|
296
|
-
compaction: selected.compaction
|
|
297
|
-
websocket: selected.websocket ?? false
|
|
246
|
+
compaction: selected.compaction
|
|
298
247
|
};
|
|
299
248
|
});
|
|
300
|
-
return
|
|
249
|
+
return Service47.of({
|
|
301
250
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
302
251
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
303
252
|
if (!selected)
|
|
@@ -314,10 +263,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
314
263
|
const name = packageName2(packageName);
|
|
315
264
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
316
265
|
}
|
|
317
|
-
var
|
|
318
|
-
service:
|
|
319
|
-
layer:
|
|
320
|
-
deps: [
|
|
266
|
+
var node50 = makeLocationNode({
|
|
267
|
+
service: Service47,
|
|
268
|
+
layer: layer19,
|
|
269
|
+
deps: [node51, node52, Npm.node, node80]
|
|
321
270
|
});
|
|
322
271
|
|
|
323
|
-
export { VariantUnavailableError3, UnsupportedPackageError3,
|
|
272
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service47, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer19, node50, exports_model_resolver };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./file-hw2gt29t.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-kg06axw8.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent3 = {};
|
|
14
|
+
__export(exports_agent3, {
|
|
15
|
+
Agent: () => exports_agent3,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event13,
|
|
18
|
+
ID: () => ID9,
|
|
19
|
+
Info: () => Info12,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service58,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node62
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event13 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
|
-
var
|
|
33
|
+
var ID9 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
|
-
var defaultID2 =
|
|
35
|
+
var defaultID2 = ID9.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info12 = Agent.Info;
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service58 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const bus = yield*
|
|
41
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
42
|
+
const bus = yield* Service79;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
45
45
|
{ action: "external_directory", resource: SHELL_OUTPUT_GLOB(global.data), effect: "allow" },
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info12.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
79
79
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
80
80
|
if (configured)
|
|
81
81
|
return configured;
|
|
82
|
-
const build = selectable(data.agents.get(
|
|
82
|
+
const build = selectable(data.agents.get(ID9.make("build")));
|
|
83
83
|
if (build)
|
|
84
84
|
return build;
|
|
85
85
|
for (const agent of data.agents.values()) {
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
88
88
|
return fallback;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return Service58.of({
|
|
92
92
|
transform: state.transform,
|
|
93
93
|
reload: state.reload,
|
|
94
94
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -96,12 +96,12 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
96
96
|
}),
|
|
97
97
|
resolve: Effect.fnUntraced(function* (id) {
|
|
98
98
|
if (id !== undefined)
|
|
99
|
-
return state.get().agents.get(
|
|
99
|
+
return state.get().agents.get(ID9.make(id));
|
|
100
100
|
return selectedDefault();
|
|
101
101
|
}),
|
|
102
102
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
103
103
|
if (id !== undefined) {
|
|
104
|
-
const selected =
|
|
104
|
+
const selected = ID9.make(id);
|
|
105
105
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
106
106
|
}
|
|
107
107
|
const info = selectedDefault();
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node62 = makeLocationNode({ service: Service58, layer, deps: [node84, Global.node] });
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { ID9, Name3, defaultID2, Color2, Info12, Service58, node62, exports_agent3, Event13 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./file-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service29,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service29 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service29.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service29, awaitActivation2, exports_service };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
load3
|
|
6
|
+
} from "./file-j935v87r.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event17,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options8,
|
|
17
|
+
Service: () => Service70,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured10,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer25,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node75,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper";
|
|
@@ -33,10 +33,10 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event17 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
|
-
return createWrapper(
|
|
39
|
+
return createWrapper(load3());
|
|
40
40
|
} catch {
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options8 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service70 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer25 = (options) => Layer.effect(Service70, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service70.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer21 = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service70.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer25().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service70).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service70, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured10(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service70, layer: layer25(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node75 = configured10();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event17, hasNativeBinding2, Native3, Options8, Service70, Test3, layer25, testLayer3, nativeLayer2, nativeNode2, configured10, node75, exports_watcher };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service78,
|
|
9
|
+
node83
|
|
10
|
+
} from "./file-kt5w8vxh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service76,
|
|
13
|
+
node81
|
|
14
|
+
} from "./file-enk99f8n.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-kg06axw8.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
26
|
ID: () => ID5,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service37,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node41,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
@@ -36,20 +36,20 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import { ID as ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service37 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service78;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service76;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -122,25 +122,25 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
122
122
|
for (const [file, snapshot] of input.files) {
|
|
123
123
|
const absolute = path.resolve(worktree, file);
|
|
124
124
|
if (!FSUtil.contains(worktree, absolute))
|
|
125
|
-
return yield* new
|
|
125
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
126
126
|
files.set(file, TreeID2.make(snapshot));
|
|
127
127
|
}
|
|
128
128
|
return files;
|
|
129
129
|
});
|
|
130
130
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
131
131
|
if (!enabled())
|
|
132
|
-
return yield* new
|
|
132
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
133
133
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
134
134
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service37.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
137
137
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
138
|
-
var
|
|
139
|
-
service:
|
|
138
|
+
var node41 = makeLocationNode({
|
|
139
|
+
service: Service37,
|
|
140
140
|
layer,
|
|
141
|
-
deps: [FSUtil.node,
|
|
141
|
+
deps: [FSUtil.node, node83, Global.node, node81]
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var noopLayer2 = Layer.succeed(Service37, Service37.of({
|
|
144
144
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
145
145
|
reload: () => Effect.void,
|
|
146
146
|
capture: () => Effect.undefined,
|
|
@@ -149,13 +149,13 @@ var noopLayer3 = Layer.succeed(Service49, Service49.of({
|
|
|
149
149
|
restore: () => Effect.void
|
|
150
150
|
}));
|
|
151
151
|
function failure(operation, cause) {
|
|
152
|
-
if (cause instanceof
|
|
152
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
153
153
|
return cause;
|
|
154
|
-
return new
|
|
154
|
+
return new Error3({
|
|
155
155
|
operation,
|
|
156
156
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
157
157
|
cause
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export { ID5,
|
|
161
|
+
export { ID5, Error3, Service37, node41, noopLayer2, exports_snapshot2 };
|