@opencode/core 0.0.0-dev-21458 → 0.0.0-dev-21463
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/agent.js +66 -66
- package/dist/aisdk-native.js +70 -70
- package/dist/aisdk.js +75 -75
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/chunks/{ripgrep-vy2epn4a.js → ripgrep-06h1tyz4.js} +4 -4
- package/dist/chunks/{ripgrep-ag4rn41e.js → ripgrep-06x8he3q.js} +3 -3
- package/dist/chunks/{ripgrep-ww55sn04.js → ripgrep-09c1zjrt.js} +15 -15
- package/dist/chunks/{ripgrep-v210v162.js → ripgrep-0javqkgf.js} +7 -7
- package/dist/chunks/{ripgrep-1rs87y8d.js → ripgrep-0nmqjfd0.js} +23 -23
- package/dist/chunks/{ripgrep-xdh6s9ed.js → ripgrep-124s2bhj.js} +10 -10
- package/dist/chunks/{ripgrep-emzsebxx.js → ripgrep-1fmrbde1.js} +5 -5
- package/dist/chunks/{ripgrep-w7vtcvrx.js → ripgrep-1gvanxjs.js} +32 -32
- package/dist/chunks/{ripgrep-4kvg6bn8.js → ripgrep-1jshh0hj.js} +20 -20
- package/dist/chunks/{ripgrep-sdzwknx0.js → ripgrep-1rwjpbn5.js} +24 -24
- package/dist/chunks/{ripgrep-hdgw5fjw.js → ripgrep-1w5qwmmm.js} +7 -7
- package/dist/chunks/{ripgrep-zzdkzef9.js → ripgrep-1zd1rgqx.js} +17 -17
- package/dist/chunks/{ripgrep-amt7ef5n.js → ripgrep-22v61q2t.js} +9 -9
- package/dist/chunks/{ripgrep-y8ycp07x.js → ripgrep-230myn37.js} +14 -14
- package/dist/chunks/{ripgrep-6ac9zck1.js → ripgrep-251hxpd6.js} +1 -1
- package/dist/chunks/{ripgrep-1ep2p91f.js → ripgrep-27w5k9zf.js} +1 -1
- package/dist/chunks/{ripgrep-ar5c37sv.js → ripgrep-298dhb3n.js} +17 -17
- package/dist/chunks/{ripgrep-tzvv02w3.js → ripgrep-29mhb2se.js} +48 -48
- package/dist/chunks/{ripgrep-edj082x0.js → ripgrep-2r363r85.js} +3 -3
- package/dist/chunks/{ripgrep-d4he2qe1.js → ripgrep-2sejkfem.js} +7 -7
- package/dist/chunks/{ripgrep-2h0q315h.js → ripgrep-2sstcm55.js} +10 -10
- package/dist/chunks/{ripgrep-mzrmbcee.js → ripgrep-2wqnbphr.js} +12 -12
- package/dist/chunks/{ripgrep-yggz4gjb.js → ripgrep-2wvr9kck.js} +45 -45
- package/dist/chunks/{ripgrep-cz0dahpr.js → ripgrep-312nns96.js} +6 -6
- package/dist/chunks/{ripgrep-am1tmpj5.js → ripgrep-3220qrgn.js} +8 -8
- package/dist/chunks/{ripgrep-7hppxa70.js → ripgrep-3k2tm6e9.js} +1 -1
- package/dist/chunks/{ripgrep-68w3xa91.js → ripgrep-3mqyb98t.js} +3 -3
- package/dist/chunks/ripgrep-3qcx2nn5.js +257 -0
- package/dist/chunks/{ripgrep-hc033k72.js → ripgrep-3vt2dxg2.js} +2 -2
- package/dist/chunks/{ripgrep-pgp1nwjn.js → ripgrep-44ak30pa.js} +3 -3
- package/dist/chunks/{ripgrep-1rw66me6.js → ripgrep-49j0r9af.js} +17 -17
- package/dist/chunks/{ripgrep-dt0gb5zd.js → ripgrep-4kjvvtcf.js} +13 -13
- package/dist/chunks/{ripgrep-w39jehkq.js → ripgrep-4xpgt2w9.js} +3 -3
- package/dist/chunks/{ripgrep-f9ewqnvf.js → ripgrep-4yszj04w.js} +31 -31
- package/dist/chunks/{ripgrep-rxkx3yrv.js → ripgrep-4zd5n188.js} +22 -22
- package/dist/chunks/{ripgrep-b0k3m5sv.js → ripgrep-50ttpepc.js} +46 -46
- package/dist/chunks/{ripgrep-dzrdd8y4.js → ripgrep-560zx63f.js} +1 -1
- package/dist/chunks/{ripgrep-9jdajzrt.js → ripgrep-57pprckc.js} +19 -19
- package/dist/chunks/{ripgrep-2n3wn4cc.js → ripgrep-5cfq97pr.js} +25 -25
- package/dist/chunks/{ripgrep-m1jhgcxs.js → ripgrep-5cwz5tfs.js} +2 -2
- package/dist/chunks/{ripgrep-q3myhh1r.js → ripgrep-5d51bkr7.js} +44 -44
- package/dist/chunks/{ripgrep-vep9yay1.js → ripgrep-5g57z1ma.js} +3 -3
- package/dist/chunks/{ripgrep-hxcjpjn2.js → ripgrep-5h8zx44a.js} +17 -17
- package/dist/chunks/{ripgrep-5wbw6pv9.js → ripgrep-5kk0g6xv.js} +9 -9
- package/dist/chunks/{ripgrep-n7qpxvtd.js → ripgrep-5wdmk2gh.js} +28 -28
- package/dist/chunks/{ripgrep-e696dwzt.js → ripgrep-68zvyq3x.js} +8 -8
- package/dist/chunks/{ripgrep-apt503cy.js → ripgrep-6dx9d91q.js} +8 -8
- package/dist/chunks/{ripgrep-3fnjy7d5.js → ripgrep-6gya5b2a.js} +35 -35
- package/dist/chunks/{ripgrep-9wn2agq9.js → ripgrep-6mjf37c3.js} +30 -30
- package/dist/chunks/{ripgrep-y4fgtena.js → ripgrep-6s32m78n.js} +83 -83
- package/dist/chunks/{ripgrep-06m8zqpz.js → ripgrep-6ypqa0d2.js} +26 -26
- package/dist/chunks/{ripgrep-6sdx5bv6.js → ripgrep-713a57ta.js} +1 -1
- package/dist/chunks/{ripgrep-nj7hqrdc.js → ripgrep-72x17vkx.js} +7 -7
- package/dist/chunks/{ripgrep-t6z5h8be.js → ripgrep-75d596k4.js} +19 -19
- package/dist/chunks/{ripgrep-8w348b9w.js → ripgrep-77jva0j9.js} +6 -6
- package/dist/chunks/{ripgrep-607tc6va.js → ripgrep-7dqw4kz8.js} +4 -4
- package/dist/chunks/{ripgrep-ce3ajj6n.js → ripgrep-7e8r663x.js} +32 -32
- package/dist/chunks/{ripgrep-725dzmat.js → ripgrep-7jxgd9ay.js} +19 -19
- package/dist/chunks/{ripgrep-6m78wcz4.js → ripgrep-86gy2e90.js} +27 -27
- package/dist/chunks/{ripgrep-wbcvfxpg.js → ripgrep-8eadsrjy.js} +25 -25
- package/dist/chunks/{ripgrep-ryb7mfzk.js → ripgrep-8fmaj9a8.js} +18 -18
- package/dist/chunks/{ripgrep-hes8zqkx.js → ripgrep-8hs2d1kn.js} +10 -10
- package/dist/chunks/{ripgrep-ekrj3q3n.js → ripgrep-8sjwbqp5.js} +16 -16
- package/dist/chunks/{ripgrep-xw9fg8fb.js → ripgrep-8vcf4cwr.js} +1 -1
- package/dist/chunks/{ripgrep-eydep5ty.js → ripgrep-8wx9bhg6.js} +1 -1
- package/dist/chunks/{ripgrep-qcqpgb6f.js → ripgrep-91af422c.js} +15 -15
- package/dist/chunks/{ripgrep-v9ep9kw5.js → ripgrep-989d504g.js} +36 -36
- package/dist/chunks/{ripgrep-r4fw60a8.js → ripgrep-9ms3qzpy.js} +4 -4
- package/dist/chunks/{ripgrep-kmgpx441.js → ripgrep-9nhbmbq3.js} +9 -9
- package/dist/chunks/{ripgrep-fh3hfgk9.js → ripgrep-9xj3p3b6.js} +17 -17
- package/dist/chunks/{ripgrep-1vp80wqe.js → ripgrep-a0b0pnyt.js} +1 -1
- package/dist/chunks/{ripgrep-ye89p72n.js → ripgrep-a3w6cej7.js} +15 -15
- package/dist/chunks/{ripgrep-e2qvw7zx.js → ripgrep-abwmzdm0.js} +10 -10
- package/dist/chunks/{ripgrep-9vr292v9.js → ripgrep-agt495f3.js} +10 -10
- package/dist/chunks/{ripgrep-p2kzfj7d.js → ripgrep-avj6wgd7.js} +25 -25
- package/dist/chunks/{ripgrep-csqw7sk8.js → ripgrep-axkwkzd9.js} +11 -11
- package/dist/chunks/{ripgrep-8w0fc9v5.js → ripgrep-ayvmmyqf.js} +19 -19
- package/dist/chunks/{ripgrep-h0pyfwgt.js → ripgrep-b1hts85v.js} +22 -22
- package/dist/chunks/{ripgrep-gdbaa3vm.js → ripgrep-b7pfhk9a.js} +16 -16
- package/dist/chunks/{ripgrep-9f2mr1jq.js → ripgrep-bd8280h5.js} +17 -17
- package/dist/chunks/{ripgrep-4w1f8scj.js → ripgrep-bh4seszr.js} +30 -30
- package/dist/chunks/{ripgrep-hsmryvj1.js → ripgrep-bj5f8pf2.js} +4 -4
- package/dist/chunks/{ripgrep-wjr9rjd7.js → ripgrep-bjx1sjef.js} +4 -4
- package/dist/chunks/{ripgrep-gbqxypma.js → ripgrep-bmff2rpw.js} +24 -24
- package/dist/chunks/{ripgrep-e0b2kra3.js → ripgrep-bqwheb6v.js} +9 -9
- package/dist/chunks/{ripgrep-y24qngx4.js → ripgrep-c1kvbfjw.js} +12 -12
- package/dist/chunks/ripgrep-cb080mpn.js +26 -0
- package/dist/chunks/{ripgrep-xkajykm3.js → ripgrep-cph4sz5z.js} +11 -11
- package/dist/chunks/{ripgrep-5246atra.js → ripgrep-cvb5s8dx.js} +11 -11
- package/dist/chunks/{ripgrep-9cn598b5.js → ripgrep-cys88cvv.js} +5 -5
- package/dist/chunks/{ripgrep-ssc22y53.js → ripgrep-d3fk46xw.js} +28 -28
- package/dist/chunks/{ripgrep-abzgq1nw.js → ripgrep-d9ddtp67.js} +13 -13
- package/dist/chunks/{ripgrep-5rkje03p.js → ripgrep-dcf9rm2z.js} +5 -5
- package/dist/chunks/{ripgrep-b19v66bv.js → ripgrep-dfe61pt0.js} +41 -41
- package/dist/chunks/{ripgrep-dd2wt6q1.js → ripgrep-dgwfvztm.js} +17 -17
- package/dist/chunks/{ripgrep-xj1aydcy.js → ripgrep-dhb2hta4.js} +3 -3
- package/dist/chunks/{ripgrep-tfx4s5nm.js → ripgrep-dtt6326j.js} +7 -7
- package/dist/chunks/{ripgrep-hg8tkm75.js → ripgrep-e0d821cc.js} +6 -6
- package/dist/chunks/{ripgrep-7bjfyzh8.js → ripgrep-e1kmgh1g.js} +46 -46
- package/dist/chunks/{ripgrep-rncype5f.js → ripgrep-e225h40x.js} +17 -17
- package/dist/chunks/{ripgrep-7t3xedjm.js → ripgrep-e33zja9b.js} +33 -33
- package/dist/chunks/{ripgrep-enrp405z.js → ripgrep-edswj8x3.js} +17 -17
- package/dist/chunks/{ripgrep-bstm3mwn.js → ripgrep-eev4j3tf.js} +12 -12
- package/dist/chunks/{ripgrep-8vya4b9k.js → ripgrep-efw5yz4r.js} +43 -43
- package/dist/chunks/{ripgrep-c99e4gbg.js → ripgrep-eh2h7xf4.js} +15 -15
- package/dist/chunks/{ripgrep-zqecfbxk.js → ripgrep-eyakfeqd.js} +13 -13
- package/dist/chunks/{ripgrep-jszh17ab.js → ripgrep-f6egx6pd.js} +22 -22
- package/dist/chunks/{ripgrep-p8mhfpfb.js → ripgrep-fmcqyzhx.js} +7 -7
- package/dist/chunks/{ripgrep-t2fc4mz5.js → ripgrep-fqb2p7cx.js} +3 -3
- package/dist/chunks/{ripgrep-ff0c8932.js → ripgrep-fs83kz7m.js} +9 -9
- package/dist/chunks/{ripgrep-jp9kzq14.js → ripgrep-fxq1hvsx.js} +3 -3
- package/dist/chunks/{ripgrep-p42hj8p8.js → ripgrep-g0445xdp.js} +7 -7
- package/dist/chunks/{ripgrep-n8gj4qy5.js → ripgrep-g1962y70.js} +19 -19
- package/dist/chunks/{ripgrep-mg37qacw.js → ripgrep-g2kqvpw2.js} +19 -14
- package/dist/chunks/{ripgrep-y7nndgyc.js → ripgrep-g686f6pq.js} +7 -7
- package/dist/chunks/{ripgrep-w19xc5wf.js → ripgrep-g721rhm1.js} +18 -18
- package/dist/chunks/{ripgrep-b6rsy5zn.js → ripgrep-gd45gbwy.js} +15 -15
- package/dist/chunks/{ripgrep-9hwaqfsw.js → ripgrep-gj71zhbs.js} +3 -3
- package/dist/chunks/{ripgrep-yb81whfj.js → ripgrep-gjbmpe49.js} +30 -30
- package/dist/chunks/{ripgrep-vdxz864t.js → ripgrep-gk6en6xk.js} +35 -35
- package/dist/chunks/{ripgrep-868jxd9s.js → ripgrep-gw2dacjw.js} +27 -27
- package/dist/chunks/{ripgrep-y11negt3.js → ripgrep-h0qy9bnt.js} +5 -5
- package/dist/chunks/{ripgrep-qw7cqan8.js → ripgrep-h47csjds.js} +64 -64
- package/dist/chunks/{ripgrep-vdmef0hv.js → ripgrep-h6vdgmbd.js} +32 -32
- package/dist/chunks/{ripgrep-rjsqaxa7.js → ripgrep-hcv80w8f.js} +3 -3
- package/dist/chunks/{ripgrep-cne4vwe6.js → ripgrep-hd44qvhb.js} +14 -14
- package/dist/chunks/{ripgrep-bvkvrv05.js → ripgrep-hfj6ba10.js} +17 -17
- package/dist/chunks/{ripgrep-w1yzj816.js → ripgrep-hhvzr4qm.js} +21 -21
- package/dist/chunks/{ripgrep-df173w7t.js → ripgrep-hm49vy5t.js} +9 -9
- package/dist/chunks/{ripgrep-ms93yq6r.js → ripgrep-hpfvhvya.js} +7 -7
- package/dist/chunks/{ripgrep-khmqacep.js → ripgrep-hq3c8me3.js} +3 -3
- package/dist/chunks/{ripgrep-53tbswfk.js → ripgrep-hs6ysvtc.js} +32 -32
- package/dist/chunks/{ripgrep-897yn8js.js → ripgrep-htbjkf0w.js} +1 -1
- package/dist/chunks/{ripgrep-pev3esbk.js → ripgrep-hxsbxgw0.js} +34 -34
- package/dist/chunks/{ripgrep-4rb4nh12.js → ripgrep-j0pnngg3.js} +21 -21
- package/dist/chunks/{ripgrep-8xxtntea.js → ripgrep-j4axjra1.js} +9 -9
- package/dist/chunks/{ripgrep-dpf25vxh.js → ripgrep-jga877gc.js} +16 -16
- package/dist/chunks/{ripgrep-7v685v47.js → ripgrep-jqvncec7.js} +41 -41
- package/dist/chunks/{ripgrep-mr9jz2wx.js → ripgrep-jv8w58zf.js} +27 -27
- package/dist/chunks/{ripgrep-y0g19xg0.js → ripgrep-jx1ed50p.js} +45 -20
- package/dist/chunks/{ripgrep-wh5v440s.js → ripgrep-jyarf421.js} +4 -4
- package/dist/chunks/{ripgrep-7x97mf13.js → ripgrep-k7ct3b4w.js} +17 -17
- package/dist/chunks/{ripgrep-kpd84ec7.js → ripgrep-k8yk4ekq.js} +13 -13
- package/dist/chunks/{ripgrep-d9xyp96y.js → ripgrep-k9s1epkc.js} +7 -7
- package/dist/chunks/{ripgrep-zdxaswdy.js → ripgrep-k9tfrms9.js} +8 -8
- package/dist/chunks/{ripgrep-swz7b57b.js → ripgrep-kxpg0xct.js} +1 -1
- package/dist/chunks/{ripgrep-230q3gjt.js → ripgrep-kzrm98pv.js} +19 -19
- package/dist/chunks/{ripgrep-cw4w83nc.js → ripgrep-m1q28qka.js} +8 -8
- package/dist/chunks/{ripgrep-9ha6dkfn.js → ripgrep-mda08b8j.js} +9 -9
- package/dist/chunks/{ripgrep-k63sy5rb.js → ripgrep-mez1mdm0.js} +18 -18
- package/dist/chunks/{ripgrep-1gbrraea.js → ripgrep-mk60gw4q.js} +13 -13
- package/dist/chunks/{ripgrep-kax56nr6.js → ripgrep-mmjfp5s5.js} +10 -10
- package/dist/chunks/{ripgrep-m5jcjszt.js → ripgrep-my4zabxr.js} +3 -3
- package/dist/chunks/{ripgrep-gs3jaab1.js → ripgrep-n4h5z8fw.js} +21 -21
- package/dist/chunks/{ripgrep-vbc0n61v.js → ripgrep-nfj18b9m.js} +26 -26
- package/dist/chunks/{ripgrep-1sqf9bkf.js → ripgrep-ng3918dk.js} +4 -4
- package/dist/chunks/{ripgrep-2r6y34sj.js → ripgrep-nyg27w76.js} +2 -2
- package/dist/chunks/{ripgrep-dgzq35zb.js → ripgrep-p50c7myx.js} +1 -1
- package/dist/chunks/{ripgrep-1a2y92ex.js → ripgrep-pa098ddb.js} +42 -42
- package/dist/chunks/{ripgrep-pwt87mrq.js → ripgrep-pd1jyj3n.js} +14 -14
- package/dist/chunks/{ripgrep-v0ymv6m8.js → ripgrep-pkwzmj2h.js} +14 -14
- package/dist/chunks/{ripgrep-etg1n2kx.js → ripgrep-pnjc2gnv.js} +340 -334
- package/dist/chunks/{ripgrep-dadd6d4y.js → ripgrep-pq2gcbye.js} +18 -18
- package/dist/chunks/{ripgrep-bzywf3e9.js → ripgrep-prc3rt3m.js} +5 -5
- package/dist/chunks/{ripgrep-bydnjh3t.js → ripgrep-prq7hedt.js} +7 -7
- package/dist/chunks/{ripgrep-vrwbrhmt.js → ripgrep-prsxfqy1.js} +19 -19
- package/dist/chunks/{ripgrep-anw46eb6.js → ripgrep-pxnwhmcf.js} +6 -6
- package/dist/chunks/{ripgrep-7fkffz83.js → ripgrep-py3kkmfq.js} +3 -3
- package/dist/chunks/{ripgrep-kkve0fs6.js → ripgrep-pz39tkx9.js} +33 -33
- package/dist/chunks/{ripgrep-gyce5qg1.js → ripgrep-q509s3k3.js} +4 -4
- package/dist/chunks/{ripgrep-z96h84jq.js → ripgrep-q59jvvg4.js} +22 -22
- package/dist/chunks/{ripgrep-fnfphwr6.js → ripgrep-q9z8ctd8.js} +7 -7
- package/dist/chunks/{ripgrep-bq4j2sbx.js → ripgrep-qhdh8prp.js} +42 -42
- package/dist/chunks/{ripgrep-7em0bpab.js → ripgrep-qmm8f62j.js} +16 -16
- package/dist/chunks/{ripgrep-gs3s1a1g.js → ripgrep-qwjmgwmn.js} +7 -7
- package/dist/chunks/{ripgrep-e80seqcp.js → ripgrep-r2z489rp.js} +2 -2
- package/dist/chunks/{ripgrep-vhm2adcw.js → ripgrep-r565a100.js} +24 -24
- package/dist/chunks/{ripgrep-21sepexc.js → ripgrep-r8ay4eh8.js} +13 -13
- package/dist/chunks/{ripgrep-yn7c86qb.js → ripgrep-rbnhhjf8.js} +43 -43
- package/dist/chunks/{ripgrep-6t9ywwra.js → ripgrep-rbzr3q5g.js} +5 -5
- package/dist/chunks/{ripgrep-sqq24m9r.js → ripgrep-rf4xhyrq.js} +30 -30
- package/dist/chunks/{ripgrep-9wetr4xy.js → ripgrep-rfmtd9hm.js} +7 -7
- package/dist/chunks/{ripgrep-vbgdajqt.js → ripgrep-rpbyp8pn.js} +8 -8
- package/dist/chunks/{ripgrep-68w7pmtx.js → ripgrep-rqbrrxj6.js} +12 -12
- package/dist/chunks/{ripgrep-1xpgrxnn.js → ripgrep-rvn8t98y.js} +13 -13
- package/dist/chunks/{ripgrep-cv5sbdhn.js → ripgrep-rvnqf66d.js} +11 -11
- package/dist/chunks/{ripgrep-pazj47g9.js → ripgrep-s7158cf1.js} +4 -4
- package/dist/chunks/{ripgrep-hcwzd9ve.js → ripgrep-s7pm50yw.js} +4 -4
- package/dist/chunks/{ripgrep-rhjbct0v.js → ripgrep-s8d7rejh.js} +3 -3
- package/dist/chunks/{ripgrep-tkmw8vhp.js → ripgrep-s96dfbc8.js} +16 -16
- package/dist/chunks/{ripgrep-ycn2m60h.js → ripgrep-s9x4dfc6.js} +12 -12
- package/dist/chunks/{ripgrep-ppdavc1e.js → ripgrep-sjxt2y8n.js} +183 -183
- package/dist/chunks/{ripgrep-vnwvh6x6.js → ripgrep-skxfb30d.js} +25 -25
- package/dist/chunks/{ripgrep-6ehbgqat.js → ripgrep-sxzvkvgj.js} +5 -5
- package/dist/chunks/{ripgrep-33m7zff6.js → ripgrep-szj64q0v.js} +4 -4
- package/dist/chunks/{ripgrep-89znhe33.js → ripgrep-tcezcvh9.js} +3 -3
- package/dist/chunks/{ripgrep-dq407baf.js → ripgrep-tt8gc4fv.js} +3 -3
- package/dist/chunks/{ripgrep-pmpk6q9r.js → ripgrep-tz783a2y.js} +10 -10
- package/dist/chunks/{ripgrep-dx1ezjzk.js → ripgrep-v8351vk8.js} +5 -5
- package/dist/chunks/{ripgrep-y6mhz57t.js → ripgrep-vbfgae2j.js} +3 -3
- package/dist/chunks/{ripgrep-xb6ffzw0.js → ripgrep-vbnktpmr.js} +8 -8
- package/dist/chunks/{ripgrep-tdqqk9tn.js → ripgrep-vc4gp4va.js} +18 -18
- package/dist/chunks/{ripgrep-bfrs3k34.js → ripgrep-w7jyze1k.js} +1 -1
- package/dist/chunks/{ripgrep-f34pdxph.js → ripgrep-w8tjtray.js} +91 -37
- package/dist/chunks/{ripgrep-4bh89e3b.js → ripgrep-waskajng.js} +4 -4
- package/dist/chunks/{ripgrep-hfrgt7j1.js → ripgrep-wqgd9sqk.js} +11 -11
- package/dist/chunks/{ripgrep-4d2gzzb2.js → ripgrep-wthbqfdd.js} +2 -2
- package/dist/chunks/{ripgrep-addxnjmp.js → ripgrep-x661k3y3.js} +3 -3
- package/dist/chunks/{ripgrep-y6jtz2hz.js → ripgrep-x831e2b7.js} +14 -14
- package/dist/chunks/{ripgrep-stw0ktd7.js → ripgrep-x83knd5j.js} +2 -2
- package/dist/chunks/{ripgrep-07n27ccy.js → ripgrep-xc4hpcyp.js} +20 -20
- package/dist/chunks/{ripgrep-qqeeq2t9.js → ripgrep-xfkkasph.js} +6 -6
- package/dist/chunks/{ripgrep-jwpb8arh.js → ripgrep-xg2cxak3.js} +13 -13
- package/dist/chunks/{ripgrep-5tw2jtmr.js → ripgrep-xh90p7br.js} +13 -13
- package/dist/chunks/{ripgrep-7vyf5e2n.js → ripgrep-xk3573b9.js} +30 -30
- package/dist/chunks/{ripgrep-zh2s0dj1.js → ripgrep-y2w3p8tb.js} +12 -12
- package/dist/chunks/{ripgrep-hdavf2z4.js → ripgrep-ye7bjynm.js} +7 -7
- package/dist/chunks/{ripgrep-mktar7aj.js → ripgrep-yj7k2rcj.js} +1 -1
- package/dist/chunks/{ripgrep-245v63zg.js → ripgrep-ykpagz71.js} +9 -9
- package/dist/chunks/{ripgrep-dd35sy3n.js → ripgrep-yn91e0pt.js} +1 -1
- package/dist/chunks/{ripgrep-vr617c86.js → ripgrep-yrwfzynx.js} +80 -80
- package/dist/chunks/{ripgrep-hmgps8tw.js → ripgrep-ywrpet35.js} +28 -28
- package/dist/chunks/{ripgrep-yav0wb01.js → ripgrep-z1ggpzpx.js} +5 -5
- package/dist/chunks/{ripgrep-rn08qtw3.js → ripgrep-z55zg8mm.js} +14 -14
- package/dist/chunks/{ripgrep-spcybxfk.js → ripgrep-z7669q6a.js} +4 -4
- package/dist/chunks/{ripgrep-28k0q56j.js → ripgrep-zky955f5.js} +14 -14
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +64 -64
- package/dist/config/discovery.js +66 -66
- package/dist/config/normalize.js +78 -78
- package/dist/config/plugin/agent.js +92 -92
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +108 -108
- package/dist/config/plugin/formatter.js +91 -91
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +90 -90
- package/dist/config/plugin/mcp.js +97 -97
- package/dist/config/plugin/policy.js +91 -91
- package/dist/config/plugin/provider.js +90 -90
- package/dist/config/plugin/reference.js +92 -92
- package/dist/config/plugin/shell.js +92 -92
- package/dist/config/plugin/skill-file.js +81 -81
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +93 -93
- package/dist/config/plugin/tool-output.js +91 -91
- package/dist/config/plugin/websearch.js +91 -91
- package/dist/config/plugin/worktree.js +92 -92
- package/dist/config.js +96 -96
- package/dist/credential.js +66 -66
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +42 -42
- package/dist/database/migration.js +44 -44
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/environment/environment.js +70 -70
- package/dist/environment/index.js +70 -70
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +84 -84
- package/dist/file-mutation.js +71 -71
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +187 -187
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +79 -79
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +80 -80
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +69 -69
- package/dist/generate.js +82 -82
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +80 -80
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +314 -314
- package/dist/instruction-discovery.js +69 -69
- package/dist/instructions/builtins.js +69 -69
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +70 -70
- package/dist/job.js +63 -63
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +72 -72
- package/dist/location-lifecycle.js +87 -87
- package/dist/location-service-map.js +68 -68
- package/dist/location-services.js +312 -312
- package/dist/location.js +69 -69
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +83 -83
- package/dist/mcp/instructions.js +106 -106
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +67 -67
- package/dist/modal/models.js +80 -80
- package/dist/model-resolver.js +79 -79
- package/dist/model.js +79 -79
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +71 -71
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +61 -61
- package/dist/plugin/command.js +78 -78
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +180 -180
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -285
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +91 -91
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +82 -82
- package/dist/plugin/provider/amazon-bedrock.js +71 -71
- package/dist/plugin/provider/azure.js +91 -91
- package/dist/plugin/provider/chatgpt.js +89 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +88 -88
- package/dist/plugin/provider/cloudflare-workers-ai.js +88 -88
- package/dist/plugin/provider/configured.js +87 -87
- package/dist/plugin/provider/digitalocean.js +73 -73
- package/dist/plugin/provider/github-copilot.js +75 -75
- package/dist/plugin/provider/gitlab.js +73 -73
- package/dist/plugin/provider/google-vertex.js +88 -88
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +97 -97
- package/dist/plugin/provider/local.js +94 -94
- package/dist/plugin/provider/modal.js +73 -73
- package/dist/plugin/provider/ollama.js +97 -97
- package/dist/plugin/provider/openai.js +89 -89
- package/dist/plugin/provider/opencode.js +81 -78
- package/dist/plugin/provider/openrouter.js +72 -72
- package/dist/plugin/provider/poe.js +61 -61
- package/dist/plugin/provider/sap-ai-core.js +71 -71
- package/dist/plugin/provider/snowflake-cortex.js +89 -89
- package/dist/plugin/provider/vercel.js +71 -71
- package/dist/plugin/provider/vllm.js +97 -97
- package/dist/plugin/provider/xai.js +72 -72
- package/dist/plugin/provider.js +133 -130
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +109 -109
- package/dist/plugin/supervisor.js +305 -304
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +68 -68
- package/dist/plugin/vcs/hg.js +68 -68
- package/dist/plugin/verbosity.js +74 -74
- package/dist/plugin/warming.js +89 -89
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +186 -186
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +70 -70
- package/dist/provider.js +78 -78
- package/dist/pty.js +80 -80
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +72 -72
- package/dist/repository-cache.js +63 -63
- package/dist/ripgrep.js +71 -71
- package/dist/rpc.js +68 -68
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +106 -106
- package/dist/session/context.js +129 -129
- package/dist/session/diff.js +69 -69
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +2 -2
- package/dist/session/execution/restart.js +117 -117
- package/dist/session/execution.js +106 -106
- package/dist/session/generate.js +128 -128
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +72 -72
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +64 -64
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +77 -77
- package/dist/session/model-request.js +94 -94
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +106 -106
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +85 -85
- package/dist/session/revert.js +74 -74
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +190 -190
- package/dist/session/runner/model.js +79 -79
- package/dist/session/runner/publish-llm-event.js +91 -91
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +100 -100
- package/dist/session/runner/to-llm-message.js +10 -10
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +133 -133
- package/dist/session/shell.js +101 -101
- package/dist/session/skill.js +83 -83
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +70 -70
- package/dist/session/subagent-job.js +173 -173
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +132 -132
- package/dist/session/to-session-error.js +90 -90
- package/dist/session/transfer.js +114 -114
- package/dist/session.js +177 -177
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +104 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +85 -85
- package/dist/skill.js +94 -94
- package/dist/snapshot.js +73 -73
- package/dist/tool/mcp.js +107 -107
- package/dist/tool/plugin/edit.js +94 -94
- package/dist/tool/plugin/glob.js +98 -98
- package/dist/tool/plugin/grep.js +98 -98
- package/dist/tool/plugin/mcp-resource.js +97 -97
- package/dist/tool/plugin/opencode.js +87 -87
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +85 -85
- package/dist/tool/plugin/read.js +99 -99
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +180 -180
- package/dist/tool/plugin/todo.js +112 -112
- package/dist/tool/plugin/webfetch.js +90 -90
- package/dist/tool/plugin/websearch.js +94 -94
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +78 -78
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/plugin/internal.d.ts +3 -2
- package/dist/types/plugin/provider/opencode.d.ts +2 -1
- package/dist/types/voice.d.ts +30 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +72 -72
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +74 -74
- package/dist/vcs.js +71 -71
- package/dist/voice.js +67 -67
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +70 -70
- package/dist/worktree.js +78 -78
- package/package.json +8 -8
- package/dist/chunks/ripgrep-g32r42h9.js +0 -257
- package/dist/chunks/ripgrep-t23bw0vy.js +0 -26
- /package/dist/chunks/{ripgrep-t1qm87d4.js → ripgrep-14w7p54a.js} +0 -0
- /package/dist/chunks/{ripgrep-jwv7ab79.js → ripgrep-3mkjzvwp.js} +0 -0
- /package/dist/chunks/{ripgrep-034tev2y.js → ripgrep-aj7mw0zk.js} +0 -0
- /package/dist/chunks/{ripgrep-1nwxscpy.js → ripgrep-x6pyv2yz.js} +0 -0
- /package/dist/chunks/{ripgrep-906y5cdw.js → ripgrep-yrbjxrxk.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID10 = Session.ID;
|
|
5
|
+
var Info19 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID10, Info19, SessionSchema2 };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service85,
|
|
4
4
|
node89
|
|
5
|
-
} from "./ripgrep-
|
|
5
|
+
} from "./ripgrep-8wx9bhg6.js";
|
|
6
6
|
import {
|
|
7
7
|
Key3,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make21,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./ripgrep-
|
|
12
|
+
} from "./ripgrep-s8d7rejh.js";
|
|
13
13
|
import {
|
|
14
14
|
create3
|
|
15
15
|
} from "./ripgrep-rdw6cm16.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
// src/instruction-discovery.ts
|
|
21
21
|
var exports_instruction_discovery = {};
|
|
22
22
|
__export(exports_instruction_discovery, {
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event7,
|
|
24
24
|
File: () => File2,
|
|
25
25
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
26
|
-
Options: () =>
|
|
27
|
-
Service: () =>
|
|
28
|
-
configured: () =>
|
|
29
|
-
layer: () =>
|
|
30
|
-
node: () =>
|
|
26
|
+
Options: () => Options5,
|
|
27
|
+
Service: () => Service45,
|
|
28
|
+
configured: () => configured5,
|
|
29
|
+
layer: () => layer19,
|
|
30
|
+
node: () => node47
|
|
31
31
|
});
|
|
32
32
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
33
33
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,17 +39,17 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
39
39
|
}
|
|
40
40
|
var Files = Schema.Array(File2);
|
|
41
41
|
var key = Key3.make("core/instructions");
|
|
42
|
-
var
|
|
42
|
+
var Event7 = {
|
|
43
43
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var Options5 = Schema.Struct({
|
|
46
46
|
project: Schema.optional(Schema.Boolean),
|
|
47
47
|
global: Schema.optional(Schema.Boolean)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service45 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var layer19 = (options) => Layer.effect(Service45, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service85;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "instruction-discovery",
|
|
@@ -69,9 +69,9 @@ var layer25 = (options) => Layer.effect(Service74, Effect.gen(function* () {
|
|
|
69
69
|
editor.available = false;
|
|
70
70
|
}
|
|
71
71
|
}),
|
|
72
|
-
notify: () => bus.publish(
|
|
72
|
+
notify: () => bus.publish(Event7.Updated, {}).pipe(Effect.asVoid)
|
|
73
73
|
});
|
|
74
|
-
const source = (value) =>
|
|
74
|
+
const source = (value) => make21({
|
|
75
75
|
key,
|
|
76
76
|
codec: Schema.toCodecJson(Files),
|
|
77
77
|
read: Effect.succeed(value),
|
|
@@ -87,7 +87,7 @@ var layer25 = (options) => Layer.effect(Service74, Effect.gen(function* () {
|
|
|
87
87
|
return unavailable3;
|
|
88
88
|
return Array.from(current.files.values());
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service45.of({
|
|
91
91
|
project: options?.project !== false,
|
|
92
92
|
global: options?.global !== false,
|
|
93
93
|
transform: state.transform,
|
|
@@ -101,14 +101,14 @@ var layer25 = (options) => Layer.effect(Service74, Effect.gen(function* () {
|
|
|
101
101
|
})
|
|
102
102
|
});
|
|
103
103
|
}));
|
|
104
|
-
function
|
|
104
|
+
function configured5(options) {
|
|
105
105
|
return makeLocationNode({
|
|
106
|
-
service:
|
|
107
|
-
layer:
|
|
106
|
+
service: Service45,
|
|
107
|
+
layer: layer19(options),
|
|
108
108
|
deps: [node89]
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var node47 = configured5();
|
|
112
112
|
function render(files) {
|
|
113
113
|
return files.map((file) => `Instructions from: ${file.path}
|
|
114
114
|
${file.content}`).join(`
|
|
@@ -139,4 +139,4 @@ ${render([after])}`;
|
|
|
139
139
|
`);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export { File2,
|
|
142
|
+
export { File2, Event7, Options5, Service45, layer19, configured5, node47, exports_instruction_discovery };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./ripgrep-
|
|
2
|
+
ID18,
|
|
3
|
+
Service84
|
|
4
|
+
} from "./ripgrep-prsxfqy1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./ripgrep-
|
|
6
|
+
Service80
|
|
7
|
+
} from "./ripgrep-a3w6cej7.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./ripgrep-
|
|
9
|
+
Service55
|
|
10
|
+
} from "./ripgrep-rbnhhjf8.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service60,
|
|
13
13
|
args2
|
|
14
|
-
} from "./ripgrep-
|
|
14
|
+
} from "./ripgrep-qmm8f62j.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./ripgrep-
|
|
16
|
+
Service20
|
|
17
|
+
} from "./ripgrep-6s32m78n.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./ripgrep-
|
|
19
|
+
Service10
|
|
20
|
+
} from "./ripgrep-bd8280h5.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
23
|
} from "./ripgrep-8m6m0r52.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
} from "./ripgrep-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/command.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
ConfigCommandPlugin: () =>
|
|
32
|
-
Plugin: () =>
|
|
29
|
+
var exports_command2 = {};
|
|
30
|
+
__export(exports_command2, {
|
|
31
|
+
ConfigCommandPlugin: () => exports_command2,
|
|
32
|
+
Plugin: () => Plugin39
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -41,10 +41,10 @@ import { Effect, Option, PubSub, Schema, Stream } from "effect";
|
|
|
41
41
|
import { ChildProcess } from "effect/process";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
43
|
var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
44
|
-
var
|
|
44
|
+
var Plugin39 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service55;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -54,12 +54,12 @@ var Plugin11 = define({
|
|
|
54
54
|
const commands = yield* loadDirectory(fs, entry.path);
|
|
55
55
|
return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
|
|
56
56
|
});
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service80;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service60;
|
|
60
|
+
const sessions = yield* Service20;
|
|
61
|
+
const agents = yield* Service84;
|
|
62
|
+
const subagents = yield* Service10;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin11 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID18.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|
|
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
|
|
|
204
204
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
205
205
|
var shellRegex = /!`([^`]+)`/g;
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { Plugin39, exports_command2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./ripgrep-
|
|
3
|
+
} from "./ripgrep-bjx1sjef.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./ripgrep-9rqn6x4v.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin5,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
13
|
endpoint: () => endpoint3
|
|
14
14
|
});
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin5 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export { endpoint3,
|
|
83
|
+
export { endpoint3, Plugin5, exports_exa };
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./ripgrep-qfa1cgps.js";
|
|
8
8
|
import {
|
|
9
9
|
ProjectTable2
|
|
10
|
-
} from "./ripgrep-
|
|
10
|
+
} from "./ripgrep-aj7mw0zk.js";
|
|
11
11
|
|
|
12
12
|
// src/session/sql.ts
|
|
13
13
|
import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID14,
|
|
3
|
-
Service79,
|
|
4
|
-
node83
|
|
5
|
-
} from "./ripgrep-sdzwknx0.js";
|
|
6
1
|
import {
|
|
7
2
|
ID13,
|
|
3
|
+
Service77,
|
|
4
|
+
node81
|
|
5
|
+
} from "./ripgrep-1rwjpbn5.js";
|
|
6
|
+
import {
|
|
7
|
+
ID12,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -15,21 +15,21 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
18
|
+
Service76,
|
|
19
19
|
node80
|
|
20
|
-
} from "./ripgrep-
|
|
20
|
+
} from "./ripgrep-86gy2e90.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./ripgrep-
|
|
22
|
+
Service74,
|
|
23
|
+
node78
|
|
24
|
+
} from "./ripgrep-8hs2d1kn.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
26
|
+
ID11,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
29
|
+
Service75,
|
|
30
30
|
node79,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./ripgrep-
|
|
32
|
+
} from "./ripgrep-d3fk46xw.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
35
|
} from "./ripgrep-9rqn6x4v.js";
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service73,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer27,
|
|
52
|
+
node: () => node77,
|
|
53
53
|
resolveModel: () => resolveModel2,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -59,8 +59,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
59
59
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
60
60
|
import { Npm } from "@opencode/util/npm";
|
|
61
61
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
62
|
-
providerID:
|
|
63
|
-
modelID:
|
|
62
|
+
providerID: ID12,
|
|
63
|
+
modelID: ID11,
|
|
64
64
|
variant: VariantID2
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
@@ -69,8 +69,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
72
|
-
providerID:
|
|
73
|
-
modelID:
|
|
72
|
+
providerID: ID12,
|
|
73
|
+
modelID: ID11,
|
|
74
74
|
package: Schema.String
|
|
75
75
|
}) {
|
|
76
76
|
get message() {
|
|
@@ -80,8 +80,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
80
80
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
81
81
|
|
|
82
82
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
83
|
-
providerID:
|
|
84
|
-
modelID:
|
|
83
|
+
providerID: ID12,
|
|
84
|
+
modelID: ID11,
|
|
85
85
|
package: Schema.String,
|
|
86
86
|
detail: Schema.String
|
|
87
87
|
}) {
|
|
@@ -91,8 +91,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
94
|
-
providerID:
|
|
95
|
-
modelID:
|
|
94
|
+
providerID: ID12,
|
|
95
|
+
modelID: ID11,
|
|
96
96
|
package: Schema.String,
|
|
97
97
|
phase: InitializationPhase2,
|
|
98
98
|
detail: Schema.String
|
|
@@ -103,8 +103,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
106
|
-
providerID:
|
|
107
|
-
modelID:
|
|
106
|
+
providerID: ID12,
|
|
107
|
+
modelID: ID11,
|
|
108
108
|
variables: Schema.Array(Schema.String)
|
|
109
109
|
}) {
|
|
110
110
|
get message() {
|
|
@@ -113,8 +113,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
116
|
-
providerID:
|
|
117
|
-
modelID:
|
|
116
|
+
providerID: ID12,
|
|
117
|
+
modelID: ID11,
|
|
118
118
|
route: Schema.String
|
|
119
119
|
}) {
|
|
120
120
|
get message() {
|
|
@@ -122,7 +122,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
class
|
|
125
|
+
class Service73 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -234,7 +234,7 @@ var nativeCredentialSettings = (model, specifier, credential) => {
|
|
|
234
234
|
return tokenSettings(specifier, credential.access);
|
|
235
235
|
if (specifier.startsWith("@opencode/ai/providers/amazon-bedrock"))
|
|
236
236
|
return { auth: "sigv4" };
|
|
237
|
-
if (model.providerID ===
|
|
237
|
+
if (model.providerID === ID12.azure)
|
|
238
238
|
return tokenSettings(specifier, "azure-cli");
|
|
239
239
|
return {};
|
|
240
240
|
};
|
|
@@ -269,15 +269,15 @@ var causeMessage = (cause) => {
|
|
|
269
269
|
};
|
|
270
270
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
271
271
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
272
|
-
var
|
|
273
|
-
const providers = yield*
|
|
274
|
-
const models = yield*
|
|
275
|
-
const integrations = yield*
|
|
272
|
+
var layer27 = Layer.effect(Service73, Effect.gen(function* () {
|
|
273
|
+
const providers = yield* Service76;
|
|
274
|
+
const models = yield* Service75;
|
|
275
|
+
const integrations = yield* Service77;
|
|
276
276
|
const npm = yield* Npm.Service;
|
|
277
|
-
const aisdk = yield*
|
|
277
|
+
const aisdk = yield* Service74;
|
|
278
278
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
279
279
|
const provider = yield* providers.get(selected.providerID);
|
|
280
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
280
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
281
281
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
282
282
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
283
283
|
const runtimeInfo = {
|
|
@@ -304,7 +304,7 @@ var layer20 = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
304
304
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service73.of({
|
|
308
308
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
309
309
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
310
310
|
if (!selected)
|
|
@@ -321,10 +321,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
321
321
|
const name = packageName2(packageName);
|
|
322
322
|
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/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
service:
|
|
326
|
-
layer:
|
|
327
|
-
deps: [node80, node79,
|
|
324
|
+
var node77 = makeLocationNode({
|
|
325
|
+
service: Service73,
|
|
326
|
+
layer: layer27,
|
|
327
|
+
deps: [node80, node79, node81, Npm.node, node78]
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
330
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service73, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer27, node77, exports_model_resolver };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./ripgrep-
|
|
3
|
+
} from "./ripgrep-124s2bhj.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./ripgrep-
|
|
6
|
+
} from "./ripgrep-8wx9bhg6.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./ripgrep-
|
|
9
|
+
Event19
|
|
10
|
+
} from "./ripgrep-8eadsrjy.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./ripgrep-
|
|
14
|
+
} from "./ripgrep-1rwjpbn5.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./ripgrep-
|
|
16
|
+
ID12
|
|
17
|
+
} from "./ripgrep-86gy2e90.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID11,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./ripgrep-
|
|
21
|
+
} from "./ripgrep-d3fk46xw.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
24
|
} from "./ripgrep-pjvnvgmy.js";
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Clock, Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
30
|
-
var providerID =
|
|
31
|
-
var integrationID =
|
|
30
|
+
var providerID = ID12.make("digitalocean");
|
|
31
|
+
var integrationID = ID13.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID11.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
162
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
163
|
yield* refresh().pipe(Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./ripgrep-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./ripgrep-fmcqyzhx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./ripgrep-
|
|
5
|
+
Service42
|
|
6
|
+
} from "./ripgrep-sxzvkvgj.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./ripgrep-9wev2pgg.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./ripgrep-
|
|
12
|
+
} from "./ripgrep-q509s3k3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./ripgrep-
|
|
14
|
+
Service71
|
|
15
|
+
} from "./ripgrep-qwjmgwmn.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./ripgrep-
|
|
19
|
+
} from "./ripgrep-yj7k2rcj.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./ripgrep-
|
|
22
|
+
Service67
|
|
23
|
+
} from "./ripgrep-bmff2rpw.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./ripgrep-9rqn6x4v.js";
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service42;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service71;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service67;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service83;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|