@opencode/core 0.0.0-dev-19595 → 0.0.0-dev-19598
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 +80 -80
- package/dist/aisdk-native.js +89 -2
- package/dist/aisdk.js +93 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{persistent-pty-858znxdh.js → file-00ahzcwm.js} +15 -15
- package/dist/chunks/{persistent-pty-7m5f9412.js → file-0h54jqbs.js} +8 -8
- package/dist/chunks/{persistent-pty-r0cp9c3a.js → file-0mt6cg7p.js} +6 -6
- package/dist/chunks/{persistent-pty-0paq2nw3.js → file-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-0q0f95c6.js → file-0q0f95c6.js} +1 -1
- package/dist/chunks/{persistent-pty-axcfkn0b.js → file-0s3e8wbd.js} +60 -53
- package/dist/chunks/{persistent-pty-pmr4s4kc.js → file-0v53mg2y.js} +4 -4
- package/dist/chunks/{persistent-pty-mm6h0sq5.js → file-0vdk82c3.js} +25 -25
- package/dist/chunks/{persistent-pty-07bs0vjz.js → file-10jz9m44.js} +13 -13
- package/dist/chunks/{persistent-pty-s586x74b.js → file-129brntk.js} +13 -13
- package/dist/chunks/{persistent-pty-xbh0n0bt.js → file-182z4mkv.js} +4 -4
- package/dist/chunks/{persistent-pty-1dazxqgg.js → file-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-4xcpnpvy.js → file-1j54nx79.js} +8 -8
- package/dist/chunks/{persistent-pty-hz420t0m.js → file-1t72z6bs.js} +15 -15
- package/dist/chunks/{persistent-pty-dmcv08zt.js → file-1zzmp92z.js} +38 -25
- package/dist/chunks/{persistent-pty-21r38tys.js → file-21r38tys.js} +1 -1
- package/dist/chunks/{persistent-pty-tt6wxkxp.js → file-26m8t0ek.js} +23 -23
- package/dist/chunks/{persistent-pty-x49tpfx8.js → file-28q1zxr2.js} +8 -8
- package/dist/chunks/{persistent-pty-2a5m3afh.js → file-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-vvgctfdq.js → file-2fy2emhs.js} +12 -12
- package/dist/chunks/{persistent-pty-8gp97p59.js → file-2jtppnb6.js} +25 -25
- package/dist/chunks/{persistent-pty-7dqw4kz8.js → file-2k8khapm.js} +5 -5
- package/dist/chunks/{persistent-pty-enks4xxx.js → file-2m2rh4pc.js} +8 -8
- package/dist/chunks/{persistent-pty-pedsh274.js → file-2rpf5fdd.js} +6 -6
- package/dist/chunks/{persistent-pty-dqhps3gd.js → file-2yrd4w3g.js} +14 -17
- package/dist/chunks/{persistent-pty-k165hmq5.js → file-2zf3hwjc.js} +22 -22
- package/dist/chunks/{persistent-pty-nnrfkqda.js → file-313wy76v.js} +18 -18
- package/dist/chunks/{persistent-pty-xf4dwdmn.js → file-34v3mw25.js} +18 -18
- package/dist/chunks/file-36msp9ny.js +26 -0
- package/dist/chunks/{persistent-pty-c24ss25q.js → file-3btn89ec.js} +10 -10
- package/dist/chunks/{persistent-pty-3fc6dm20.js → file-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → file-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-c1495ybz.js → file-3pbjq009.js} +6 -6
- package/dist/chunks/{persistent-pty-3smtnn6g.js → file-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → file-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-2wacw76k.js → file-3v0x2y7p.js} +29 -29
- package/dist/chunks/{persistent-pty-dyznf783.js → file-3w80k797.js} +59 -59
- package/dist/chunks/{persistent-pty-9fpgstc4.js → file-3xy0seps.js} +5 -5
- package/dist/chunks/{persistent-pty-e3db9cm6.js → file-3z6mat0v.js} +26 -26
- package/dist/chunks/{persistent-pty-w5dgsa5w.js → file-3zykk5as.js} +8 -8
- package/dist/chunks/{persistent-pty-pdn6mkhs.js → file-42j12a3k.js} +23 -23
- package/dist/chunks/{persistent-pty-q5rhn9x0.js → file-485fr60v.js} +7 -7
- package/dist/chunks/{persistent-pty-fch79rh9.js → file-4jc5c4h4.js} +1 -1
- package/dist/chunks/{persistent-pty-j0x671y3.js → file-4rcm86v0.js} +15 -15
- package/dist/chunks/{persistent-pty-496ptbe5.js → file-4zqrhqht.js} +51 -50
- package/dist/chunks/{persistent-pty-a8axnbpa.js → file-5276hfdk.js} +21 -21
- package/dist/chunks/{persistent-pty-rycxbs55.js → file-52zzeq6p.js} +30 -30
- package/dist/chunks/{persistent-pty-56gdpj1q.js → file-56gdpj1q.js} +2 -2
- package/dist/chunks/{persistent-pty-81swgkk7.js → file-57ez7d0k.js} +7 -7
- package/dist/chunks/{persistent-pty-4bdgx2my.js → file-58qyzcvs.js} +11 -11
- package/dist/chunks/{persistent-pty-0nvtj8my.js → file-5c70fjhz.js} +4 -4
- package/dist/chunks/{persistent-pty-5daktx2q.js → file-5daktx2q.js} +1 -1
- package/dist/chunks/{persistent-pty-marnn1hp.js → file-5phqnecy.js} +6 -6
- package/dist/chunks/{persistent-pty-paphc93g.js → file-5qd3pb7m.js} +2 -2
- package/dist/chunks/{persistent-pty-ayn42wpr.js → file-5r9teng0.js} +4 -4
- package/dist/chunks/{persistent-pty-5t3nmthw.js → file-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-s8hds3n7.js → file-5vyabe77.js} +46 -46
- package/dist/chunks/{persistent-pty-y3qvm77n.js → file-5w575vpr.js} +5 -5
- package/dist/chunks/{persistent-pty-aa476z6j.js → file-658qrzb6.js} +4 -4
- package/dist/chunks/{persistent-pty-669tq793.js → file-669tq793.js} +1 -1
- package/dist/chunks/{persistent-pty-y75c90f9.js → file-6bxb4cxk.js} +9 -9
- package/dist/chunks/{persistent-pty-rvsh4nhd.js → file-6gryy3ht.js} +20 -20
- package/dist/chunks/{persistent-pty-2402vzrj.js → file-6h73sxmp.js} +5 -5
- package/dist/chunks/{persistent-pty-a3gkz02n.js → file-6kg1vfnr.js} +6 -6
- package/dist/chunks/{persistent-pty-6msgmcgs.js → file-6msgmcgs.js} +1 -1
- package/dist/chunks/{persistent-pty-jcyd57qm.js → file-6p7t068e.js} +9 -9
- package/dist/chunks/{persistent-pty-rjncv4cx.js → file-6s5nejzz.js} +11 -11
- package/dist/chunks/{persistent-pty-0c4p4pyk.js → file-6wce12fj.js} +30 -30
- package/dist/chunks/{persistent-pty-q8nw8w0b.js → file-6we377py.js} +23 -23
- package/dist/chunks/{persistent-pty-71q4at8m.js → file-71q4at8m.js} +1 -1
- package/dist/chunks/{persistent-pty-7bmhse3q.js → file-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-jav6p6ha.js → file-7dx4zb5w.js} +34 -34
- package/dist/chunks/{persistent-pty-avan7d23.js → file-7e0sczy2.js} +19 -19
- package/dist/chunks/{persistent-pty-5aeq7032.js → file-7qb1bt6t.js} +13 -13
- package/dist/chunks/{persistent-pty-g25g5a4k.js → file-7vzzf4r8.js} +29 -29
- package/dist/chunks/{persistent-pty-s2q6918b.js → file-804mq7mh.js} +17 -17
- package/dist/chunks/{persistent-pty-758t4wd9.js → file-85170kwf.js} +30 -30
- package/dist/chunks/{persistent-pty-r12607a7.js → file-88t9pbvw.js} +17 -17
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → file-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-8baymvr8.js → file-8fj94art.js} +4 -4
- package/dist/chunks/{persistent-pty-t7n9q6bq.js → file-8gxqpgph.js} +4 -4
- package/dist/chunks/{persistent-pty-8p4f9s12.js → file-8p4f9s12.js} +2 -2
- package/dist/chunks/{persistent-pty-g25n9e5v.js → file-8yjzh81f.js} +22 -36
- package/dist/chunks/{persistent-pty-yag4m0hg.js → file-919h57eb.js} +31 -30
- package/dist/chunks/{persistent-pty-6rx7art5.js → file-9avcp2jz.js} +16 -16
- package/dist/chunks/{persistent-pty-4jkr53zg.js → file-9dvg4g8f.js} +22 -22
- package/dist/chunks/{persistent-pty-yzzaphg0.js → file-9tb0rzq8.js} +4 -4
- package/dist/chunks/{persistent-pty-9qxgj1yn.js → file-9vj1at0d.js} +11 -11
- package/dist/chunks/{persistent-pty-hk10kj8x.js → file-9x1sbddt.js} +13 -13
- package/dist/chunks/{persistent-pty-a1bz86dw.js → file-a1bz86dw.js} +3 -3
- package/dist/chunks/{persistent-pty-aaet6srn.js → file-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-s8zy8myc.js → file-af04s6ss.js} +5 -5
- package/dist/chunks/{persistent-pty-wzsbb5hr.js → file-agxtagsk.js} +32 -32
- package/dist/chunks/{persistent-pty-rq1dwzcr.js → file-ampdzzmt.js} +13 -13
- package/dist/chunks/{persistent-pty-0kbrq2j8.js → file-atrnym84.js} +12 -12
- package/dist/chunks/{persistent-pty-1nfpt5r1.js → file-avezr732.js} +4 -4
- package/dist/chunks/{persistent-pty-fmcf9gbb.js → file-b1e26q27.js} +36 -36
- package/dist/chunks/{persistent-pty-b6gygkdw.js → file-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-mm04bz81.js → file-bd58x3af.js} +13 -13
- package/dist/chunks/{persistent-pty-qn4ba14w.js → file-bgxcxs0p.js} +5 -5
- package/dist/chunks/{persistent-pty-tspgchm8.js → file-bknfn28s.js} +20 -20
- package/dist/chunks/{persistent-pty-z2d75gdc.js → file-bq2epsr3.js} +20 -20
- package/dist/chunks/{persistent-pty-83x3c1cr.js → file-bycsbmk8.js} +6 -6
- package/dist/chunks/{persistent-pty-p1wf2k30.js → file-c4vcfcbt.js} +9 -9
- package/dist/chunks/{persistent-pty-3w2b2yj4.js → file-c78bbtc9.js} +5 -5
- package/dist/chunks/{persistent-pty-1bsf6wqz.js → file-cb51cg86.js} +97 -96
- package/dist/chunks/{persistent-pty-b1gy5zdm.js → file-cf2ej5qv.js} +11 -11
- package/dist/chunks/{persistent-pty-cfpkc3c9.js → file-cfpkc3c9.js} +2 -2
- package/dist/chunks/{persistent-pty-2zw4rjvd.js → file-ckpz9tzv.js} +13 -13
- package/dist/chunks/file-cpj0znwe.js +24 -0
- package/dist/chunks/{persistent-pty-pqsh7sw8.js → file-cqc023f0.js} +22 -22
- package/dist/chunks/{persistent-pty-0wy9zd5d.js → file-da6evnzj.js} +11 -11
- package/dist/chunks/{persistent-pty-wk8vywde.js → file-de97ckz5.js} +16 -16
- package/dist/chunks/{persistent-pty-844ef7ks.js → file-dgj0dq1g.js} +8 -8
- package/dist/chunks/{persistent-pty-01375378.js → file-dqc15y4x.js} +2 -2
- package/dist/chunks/{persistent-pty-2p4phcfp.js → file-dqvbfby7.js} +196 -183
- package/dist/chunks/{persistent-pty-3ydh67fs.js → file-dtnrh8vj.js} +42 -42
- package/dist/chunks/{persistent-pty-2gj877a4.js → file-e1x4awme.js} +22 -22
- package/dist/chunks/{persistent-pty-e5nv3ght.js → file-e5nv3ght.js} +2 -2
- package/dist/chunks/{persistent-pty-r33ff4dw.js → file-e6hd9jay.js} +6 -6
- package/dist/chunks/{persistent-pty-jt82t686.js → file-eb6z8chr.js} +24 -24
- package/dist/chunks/{persistent-pty-sg67attt.js → file-ecmre7pn.js} +95 -95
- package/dist/chunks/{persistent-pty-ef5x83kb.js → file-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-vrn1sxtn.js → file-ef6j5nc6.js} +9 -9
- package/dist/chunks/{persistent-pty-8rr4encj.js → file-ejt0hq34.js} +13 -13
- package/dist/chunks/{persistent-pty-nqm8jas2.js → file-em65arkj.js} +36 -36
- package/dist/chunks/{persistent-pty-72v2qqr0.js → file-emc9sr5q.js} +5 -5
- package/dist/chunks/{persistent-pty-crfr8jm1.js → file-eqjzvt4d.js} +10 -10
- package/dist/chunks/{persistent-pty-tfna5j6r.js → file-eqz5qmce.js} +17 -17
- package/dist/chunks/{persistent-pty-57e9z27j.js → file-et0rkxxj.js} +8 -8
- package/dist/chunks/{persistent-pty-etq0c3wd.js → file-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-cztn7rx7.js → file-ev5x2d0f.js} +21 -14
- package/dist/chunks/{persistent-pty-f3ngv102.js → file-f3ngv102.js} +1 -1
- package/dist/chunks/{persistent-pty-wh1sxcy7.js → file-f42mf92g.js} +8 -8
- package/dist/chunks/{persistent-pty-csdaj16z.js → file-f5syc60y.js} +3 -3
- package/dist/chunks/{persistent-pty-f828m53h.js → file-f828m53h.js} +2 -2
- package/dist/chunks/{persistent-pty-pwxeempz.js → file-fctbv38k.js} +30 -30
- package/dist/chunks/{persistent-pty-74vtdart.js → file-ffs43ht2.js} +19 -19
- package/dist/chunks/{persistent-pty-kz993g5t.js → file-frmeqhta.js} +7 -7
- package/dist/chunks/{persistent-pty-yzpqraws.js → file-fvrhsr23.js} +2 -2
- package/dist/chunks/{persistent-pty-06tybfx6.js → file-fwkb73sv.js} +5 -5
- package/dist/chunks/{persistent-pty-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
- package/dist/chunks/{persistent-pty-40ykk5rq.js → file-g0sczcq0.js} +22 -15
- package/dist/chunks/{persistent-pty-8hz2npkx.js → file-g601pm08.js} +8 -10
- package/dist/chunks/{persistent-pty-gd4qta3r.js → file-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-cq5jfqfc.js → file-ggz1pmcj.js} +25 -25
- package/dist/chunks/{persistent-pty-vpesspm9.js → file-gs1hwhc0.js} +25 -25
- package/dist/chunks/{persistent-pty-gsx0ryk4.js → file-gsx0ryk4.js} +2 -2
- package/dist/chunks/{persistent-pty-gv6a8nnw.js → file-gv6a8nnw.js} +2 -2
- package/dist/chunks/{persistent-pty-h03wrkyp.js → file-h03wrkyp.js} +2 -2
- package/dist/chunks/{persistent-pty-h6vf3j39.js → file-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-hfdr1yjj.js → file-hfdr1yjj.js} +4 -4
- package/dist/chunks/{persistent-pty-rsfa6j5g.js → file-hhh0a6zm.js} +9 -9
- package/dist/chunks/{persistent-pty-hjt4xg1x.js → file-hjt4xg1x.js} +1 -1
- package/dist/chunks/{persistent-pty-g8r6989n.js → file-hkcvz44k.js} +11 -11
- package/dist/chunks/{persistent-pty-9yr2yfq4.js → file-hq8zt1th.js} +6 -6
- package/dist/chunks/{persistent-pty-cjjk0ngx.js → file-hy5fgcee.js} +17 -17
- package/dist/chunks/{persistent-pty-tyqkzprt.js → file-j325xqev.js} +2 -2
- package/dist/chunks/{persistent-pty-j56e64zr.js → file-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-7qbafv54.js → file-jac4mw22.js} +3 -3
- package/dist/chunks/{persistent-pty-svxpmbmv.js → file-jbkjz0j2.js} +35 -29
- package/dist/chunks/{persistent-pty-08c87ar3.js → file-jndejbar.js} +35 -34
- package/dist/chunks/{persistent-pty-c5gn303e.js → file-jva4mgym.js} +4 -4
- package/dist/chunks/{persistent-pty-kfekjm9s.js → file-jzt5g60a.js} +18 -18
- package/dist/chunks/{persistent-pty-qtj6hy35.js → file-k0mc747p.js} +42 -42
- package/dist/chunks/{persistent-pty-28m91z5w.js → file-k2bnz6b5.js} +52 -52
- package/dist/chunks/{persistent-pty-07yh2w3s.js → file-k2s68ryd.js} +6 -6
- package/dist/chunks/{persistent-pty-mnqckem1.js → file-k6wrm9a0.js} +49 -20
- package/dist/chunks/{persistent-pty-kyjj2hpk.js → file-kjpj2a9q.js} +31 -31
- package/dist/chunks/{persistent-pty-gwmaab63.js → file-kzw69375.js} +14 -14
- package/dist/chunks/{persistent-pty-zy1ry69w.js → file-m2cb1kfd.js} +35 -35
- package/dist/chunks/{persistent-pty-9fxcdvg0.js → file-m3td6s3w.js} +9 -9
- package/dist/chunks/{persistent-pty-pbkjeet7.js → file-m49cwa8c.js} +14 -14
- package/dist/chunks/{persistent-pty-4mdcdt6k.js → file-m4e3ywc5.js} +32 -32
- package/dist/chunks/{persistent-pty-gar1hgen.js → file-m7tah5hb.js} +6 -6
- package/dist/chunks/{persistent-pty-205snssp.js → file-m947q6k5.js} +24 -24
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-zmjtwb5q.js → file-mcjktpac.js} +20 -20
- package/dist/chunks/{persistent-pty-zahra9jy.js → file-mkt4f7jq.js} +27 -27
- package/dist/chunks/{persistent-pty-xwy7nsbm.js → file-mnejq3c6.js} +13 -13
- package/dist/chunks/{persistent-pty-vj87fc1v.js → file-mppen3ja.js} +11 -11
- package/dist/chunks/{persistent-pty-brpq8yh8.js → file-mqadsv8v.js} +9 -9
- package/dist/chunks/{persistent-pty-rvxgyzv0.js → file-mry3yw3z.js} +34 -34
- package/dist/chunks/{persistent-pty-dpz13x6g.js → file-mv06p09r.js} +31 -31
- package/dist/chunks/{persistent-pty-r5x6zcsm.js → file-mvfsc1pv.js} +3 -3
- package/dist/chunks/{persistent-pty-xv814t3x.js → file-mw62vq54.js} +11 -11
- package/dist/chunks/{persistent-pty-km3hm7vc.js → file-n1jngd1w.js} +24 -24
- package/dist/chunks/{persistent-pty-pdps0bse.js → file-nc8419v6.js} +12 -12
- package/dist/chunks/{persistent-pty-2ww59eqx.js → file-ne2r7j9m.js} +22 -22
- package/dist/chunks/{persistent-pty-xqrmvh4d.js → file-nqrry9qg.js} +32 -32
- package/dist/chunks/{persistent-pty-xqmeh0zh.js → file-ns74bfrf.js} +19 -19
- package/dist/chunks/{persistent-pty-aemcnybr.js → file-nx3x71r4.js} +11 -11
- package/dist/chunks/{persistent-pty-16mp2rsj.js → file-p0bspynp.js} +5 -5
- package/dist/chunks/{persistent-pty-1nvffc7z.js → file-p9v06vkv.js} +7 -7
- package/dist/chunks/{persistent-pty-zd83r0vm.js → file-pajef2pp.js} +16 -16
- package/dist/chunks/{persistent-pty-b6thfyg0.js → file-ph5begyf.js} +37 -30
- package/dist/chunks/{persistent-pty-ch16p0qp.js → file-phc861ae.js} +3 -3
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → file-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-0axr4kr0.js → file-pmh6tya1.js} +171 -9
- package/dist/chunks/{persistent-pty-1j73jf0y.js → file-pnwnc2eb.js} +12 -12
- package/dist/chunks/{persistent-pty-t6apg4xb.js → file-prvz8ejv.js} +18 -18
- package/dist/chunks/{persistent-pty-y1eyp4h1.js → file-pwpabjhk.js} +59 -59
- package/dist/chunks/{persistent-pty-qwgwmjpf.js → file-q4yxhgfy.js} +4 -4
- package/dist/chunks/file-qapv375x.js +4 -0
- package/dist/chunks/file-qc068m1q.js +18 -0
- package/dist/chunks/{persistent-pty-nc5bxtt4.js → file-qc0tpyc3.js} +9 -9
- package/dist/chunks/{persistent-pty-kh1txrez.js → file-qcd1qc15.js} +9 -9
- package/dist/chunks/{persistent-pty-41ysy2js.js → file-qd4n55pn.js} +33 -33
- package/dist/chunks/{persistent-pty-qj8patcw.js → file-qfa7jkp4.js} +8 -8
- package/dist/chunks/{persistent-pty-qsdy395h.js → file-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-zb4p73ts.js → file-qyrnw00n.js} +17 -9
- package/dist/chunks/{persistent-pty-xta415tq.js → file-r0eemgrz.js} +23 -23
- package/dist/chunks/file-r3mfjy6q.js +472 -0
- package/dist/chunks/{persistent-pty-r9mregkx.js → file-r9mregkx.js} +2 -2
- package/dist/chunks/{persistent-pty-fhnehbw5.js → file-ra8qdd9e.js} +4 -4
- package/dist/chunks/{persistent-pty-zrhm0kb5.js → file-rcsscm7r.js} +11 -11
- package/dist/chunks/{persistent-pty-kg06axw8.js → file-rdw6cm16.js} +3 -1
- package/dist/chunks/{persistent-pty-vexsgc0a.js → file-rpp558y0.js} +32 -30
- package/dist/chunks/{persistent-pty-cw8m5w0x.js → file-ryjh9mcz.js} +6 -6
- package/dist/chunks/{persistent-pty-qm01ndw7.js → file-rzxstzmh.js} +14 -14
- package/dist/chunks/{persistent-pty-a23yy72n.js → file-s3dxyf65.js} +18 -18
- package/dist/chunks/{persistent-pty-9vcfs5dg.js → file-s48t05nw.js} +19 -19
- package/dist/chunks/{persistent-pty-s8d7rejh.js → file-s8d7rejh.js} +1 -1
- package/dist/chunks/{persistent-pty-tcmfg0c6.js → file-s8rxtnbc.js} +15 -15
- package/dist/chunks/{persistent-pty-d4eh0prg.js → file-scv7p57g.js} +9 -9
- package/dist/chunks/{persistent-pty-g8d3gcyj.js → file-sxz6gkc3.js} +4 -4
- package/dist/chunks/{persistent-pty-9w4ppqge.js → file-sznyev98.js} +5 -5
- package/dist/chunks/{persistent-pty-gk7f333q.js → file-t3x95jfd.js} +70 -70
- package/dist/chunks/file-t50jsm69.js +201 -0
- package/dist/chunks/{persistent-pty-a3sm1a4h.js → file-t6z0eevx.js} +19 -18
- package/dist/chunks/{persistent-pty-tazgh4e4.js → file-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tcezcvh9.js → file-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-jjefxv93.js → file-tdqfck99.js} +14 -14
- package/dist/chunks/{persistent-pty-tdstcens.js → file-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-kz70mmnm.js → file-tg00ampp.js} +4 -4
- package/dist/chunks/{persistent-pty-496zq10v.js → file-tmz405jm.js} +33 -33
- package/dist/chunks/{persistent-pty-tvtrv512.js → file-tvtrv512.js} +1 -1
- package/dist/chunks/{persistent-pty-tvhq06z0.js → file-tz1hbxk4.js} +3 -3
- package/dist/chunks/{persistent-pty-p8ad8txy.js → file-v71dgxb6.js} +32 -32
- package/dist/chunks/{persistent-pty-wydq2hf7.js → file-vanydjgv.js} +51 -51
- package/dist/chunks/{persistent-pty-5765z361.js → file-vcyhp7t3.js} +11 -11
- package/dist/chunks/{persistent-pty-veqvce7d.js → file-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-70znhec0.js → file-vfgva3xk.js} +24 -24
- package/dist/chunks/{persistent-pty-476tty53.js → file-vhvvs13s.js} +20 -20
- package/dist/chunks/{persistent-pty-n5hgnsg4.js → file-vm86ksqf.js} +8 -8
- package/dist/chunks/{persistent-pty-6kckr5h4.js → file-vmbah541.js} +6 -6
- package/dist/chunks/{persistent-pty-admsvzww.js → file-vq7z185x.js} +4 -4
- package/dist/chunks/{persistent-pty-vzcthcp8.js → file-vzcthcp8.js} +1 -1
- package/dist/chunks/{persistent-pty-znp8765m.js → file-w0x3jd68.js} +26 -26
- package/dist/chunks/{persistent-pty-mfhfdr54.js → file-w1k39n5e.js} +4 -4
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-jpej03b4.js → file-w75v1kbk.js} +1 -1
- package/dist/chunks/{persistent-pty-wd87259q.js → file-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-yxmjpxht.js → file-wdpdtye9.js} +28 -28
- package/dist/chunks/{persistent-pty-9z190z2h.js → file-wndsw9jd.js} +11 -11
- package/dist/chunks/{persistent-pty-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
- package/dist/chunks/{persistent-pty-k8jcpvvr.js → file-x42bs0x6.js} +47 -47
- package/dist/chunks/{persistent-pty-tx9qvpbt.js → file-xe94yqgp.js} +3 -3
- package/dist/chunks/file-xfz9zfky.js +53 -0
- package/dist/chunks/{persistent-pty-156rc272.js → file-xgfp89dv.js} +15 -15
- package/dist/chunks/{persistent-pty-9zswys26.js → file-xhmq8qgk.js} +9 -9
- package/dist/chunks/{persistent-pty-s8hqqq62.js → file-xjrg1qn8.js} +18 -18
- package/dist/chunks/{persistent-pty-9nw0mbe1.js → file-y119texf.js} +28 -28
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-wbjq657r.js → file-y3dttyaz.js} +39 -39
- package/dist/chunks/{persistent-pty-22cd4xtf.js → file-y6h4mdg2.js} +41 -41
- package/dist/chunks/{persistent-pty-y71avatq.js → file-y71avatq.js} +1 -1
- package/dist/chunks/{persistent-pty-44zaeaht.js → file-ye1wyhtp.js} +7 -7
- package/dist/chunks/{persistent-pty-dx72tz9d.js → file-yn670k7r.js} +28 -28
- package/dist/chunks/{persistent-pty-1acjjqhc.js → file-yp2x3t23.js} +4 -4
- package/dist/chunks/file-yqncp4jv.js +251 -0
- package/dist/chunks/{persistent-pty-yrhqyw5v.js → file-yrhqyw5v.js} +1 -1
- package/dist/chunks/{persistent-pty-yrznvahk.js → file-yrznvahk.js} +2 -2
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → file-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-z63w68vq.js → file-z63w68vq.js} +2 -2
- package/dist/chunks/{persistent-pty-d1qe38wd.js → file-z6cdq4y7.js} +4 -4
- package/dist/chunks/{persistent-pty-j91288an.js → file-z7bpncyg.js} +11 -11
- package/dist/chunks/{persistent-pty-xbh1yte2.js → file-zdw538jz.js} +16 -16
- package/dist/chunks/{persistent-pty-zeh9ct20.js → file-zeh9ct20.js} +2 -2
- package/dist/chunks/{persistent-pty-5s1ew4p0.js → file-zg2jh87r.js} +14 -14
- package/dist/chunks/{persistent-pty-067daj8h.js → file-zkb0rj7d.js} +30 -30
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → file-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-zxq2ej10.js → file-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +78 -78
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -19
- package/dist/config/plugin/agent.js +122 -119
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -120
- package/dist/config/plugin/image.js +122 -119
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -119
- package/dist/config/plugin/mcp.js +129 -128
- package/dist/config/plugin/policy.js +122 -118
- package/dist/config/plugin/provider.js +121 -117
- package/dist/config/plugin/reference.js +124 -121
- package/dist/config/plugin/shell.js +124 -121
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -140
- package/dist/config/plugin/snapshot.js +122 -119
- package/dist/config/plugin/source.js +119 -115
- package/dist/config/plugin/tool-output.js +124 -121
- package/dist/config/plugin/websearch.js +123 -119
- package/dist/config/plugin/worktree.js +125 -122
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +80 -80
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +365 -365
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +223 -223
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +100 -100
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +97 -97
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +105 -94
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +95 -4
- 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 +356 -356
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +11 -19
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +135 -135
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +353 -353
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +126 -126
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +95 -4
- package/dist/model-resolver.js +98 -87
- package/dist/model.js +104 -11
- package/dist/models-dev.js +105 -87
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +114 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +216 -216
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +94 -76
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +89 -2
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +89 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -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 +92 -81
- package/dist/plugin/provider/gitlab.js +90 -3
- package/dist/plugin/provider/google-vertex.js +89 -2
- package/dist/plugin/provider/kilo.js +89 -2
- package/dist/plugin/provider/llmgateway.js +89 -77
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -80
- package/dist/plugin/provider/nvidia.js +89 -2
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +91 -79
- package/dist/plugin/provider/opencode.js +92 -80
- package/dist/plugin/provider/openrouter.js +90 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +90 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -2
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -78
- package/dist/plugin/provider/zenmux.js +89 -2
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +91 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- 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/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +101 -8
- 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 +91 -91
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +92 -92
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +76 -76
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -87
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +137 -134
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -75
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +222 -222
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +139 -136
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +92 -92
- 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 +123 -123
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +115 -115
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/github-copilot/models.d.ts +61 -0
- package/dist/types/instance.d.ts +3 -2
- package/dist/types/integration/connection.d.ts +8 -0
- package/dist/types/integration.d.ts +2 -0
- package/dist/types/modal/models.d.ts +30 -0
- package/dist/types/model-resolver.d.ts +2 -3
- package/dist/types/model.d.ts +33 -0
- package/dist/types/plugin/host.d.ts +4 -3
- package/dist/types/plugin/internal.d.ts +4 -3
- package/dist/types/plugin/provider/azure.d.ts +2 -1
- package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +2 -1
- package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +2 -1
- package/dist/types/plugin/provider/configured.d.ts +1 -2
- package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
- package/dist/types/plugin/provider/modal.d.ts +2 -2
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +2 -1
- package/dist/types/provider.d.ts +43 -1
- package/dist/types/state.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +3 -3
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -4
- package/dist/v1/config/permission.js +1 -1
- 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 +86 -86
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/refresh.js +345 -345
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +91 -91
- package/package.json +8 -8
- package/dist/catalog.js +0 -89
- package/dist/chunks/persistent-pty-0mesazry.js +0 -4
- package/dist/chunks/persistent-pty-0vt4hkwr.js +0 -55
- package/dist/chunks/persistent-pty-67z4309q.js +0 -193
- package/dist/chunks/persistent-pty-by5v678g.js +0 -18
- package/dist/chunks/persistent-pty-e6mws8mz.js +0 -26
- package/dist/chunks/persistent-pty-hnc9qj7b.js +0 -49
- package/dist/chunks/persistent-pty-nn38a0fv.js +0 -247
- package/dist/chunks/persistent-pty-rt91ng8c.js +0 -466
- package/dist/types/catalog.d.ts +0 -49
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → file-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → file-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → file-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → file-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → file-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → file-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → file-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → file-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → file-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → file-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → file-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → file-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → file-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → file-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → file-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → file-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → file-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → file-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → file-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → file-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → file-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → file-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-922hggd3.js → file-922hggd3.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → file-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → file-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → file-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → file-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → file-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → file-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → file-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → file-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → file-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → file-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → file-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → file-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → file-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → file-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → file-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → file-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → file-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → file-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → file-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → file-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → file-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → file-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → file-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hjbc5kem.js → file-hjbc5kem.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → file-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-hrnqkpcd.js → file-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → file-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → file-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → file-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → file-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → file-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → file-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → file-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → file-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → file-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → file-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → file-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → file-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → file-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-twg0f83k.js → file-twg0f83k.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → file-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → file-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → file-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → file-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → file-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → file-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → file-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → file-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → file-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → file-z9919s4g.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service80
|
|
3
|
+
} from "./file-pajef2pp.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
6
|
Event19
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-2jtppnb6.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID8,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-919h57eb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID6,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-pmh6tya1.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ID16,
|
|
19
|
+
Input14,
|
|
20
20
|
Response2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-yn670k7r.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
|
|
|
32
32
|
var RemoteResponse = Schema.Struct({
|
|
33
33
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
34
|
websearch: Schema.Struct({
|
|
35
|
-
providerID:
|
|
35
|
+
providerID: ID16
|
|
36
36
|
}).pipe(Schema.optional)
|
|
37
37
|
});
|
|
38
38
|
var Device = Schema.Struct({
|
|
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
54
54
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
55
55
|
function oauth(http) {
|
|
56
56
|
return {
|
|
57
|
-
integrationID:
|
|
57
|
+
integrationID: ID8.make("opencode"),
|
|
58
58
|
method: {
|
|
59
59
|
id: methodID,
|
|
60
60
|
type: "oauth",
|
|
@@ -99,7 +99,7 @@ function oauth(http) {
|
|
|
99
99
|
var OpencodePlugin2 = define({
|
|
100
100
|
id: "opencode.provider.opencode",
|
|
101
101
|
effect: Effect.fn(function* (ctx) {
|
|
102
|
-
const bus = yield*
|
|
102
|
+
const bus = yield* Service80;
|
|
103
103
|
const http = yield* HttpClient.HttpClient;
|
|
104
104
|
const loading = Semaphore.makeUnsafe(1);
|
|
105
105
|
let snapshot = { config: undefined, connection: undefined };
|
|
@@ -119,13 +119,13 @@ var OpencodePlugin2 = define({
|
|
|
119
119
|
editor.method.update({ integrationID: "opencode", method: { type: "key", label: "API key (service account)" } });
|
|
120
120
|
});
|
|
121
121
|
snapshot = yield* load();
|
|
122
|
-
yield* ctx.
|
|
122
|
+
yield* ctx.provider.transform((providers) => {
|
|
123
123
|
for (const [providerID, item] of Object.entries(snapshot.config?.providers ?? {})) {
|
|
124
|
-
const source =
|
|
125
|
-
|
|
124
|
+
const source = providers.get(item.canonical ?? providerID);
|
|
125
|
+
providers.update(providerID, (provider) => {
|
|
126
126
|
if (source && source.provider !== provider)
|
|
127
127
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
128
|
-
provider.integrationID =
|
|
128
|
+
provider.integrationID = ID8.make("opencode");
|
|
129
129
|
if (item.canonical !== undefined)
|
|
130
130
|
provider.canonical = item.canonical;
|
|
131
131
|
if (item.name !== undefined)
|
|
@@ -137,7 +137,7 @@ var OpencodePlugin2 = define({
|
|
|
137
137
|
});
|
|
138
138
|
for (const [modelID, config] of Object.entries(item.models ?? {})) {
|
|
139
139
|
const base = source?.models.get(config.modelID ?? modelID) ?? source?.models.get(modelID);
|
|
140
|
-
|
|
140
|
+
providers.models.update(providerID, modelID, (model) => {
|
|
141
141
|
Object.assign(model, structuredClone(base ?? model));
|
|
142
142
|
if (config.family !== undefined)
|
|
143
143
|
model.family = config.family;
|
|
@@ -187,23 +187,36 @@ var OpencodePlugin2 = define({
|
|
|
187
187
|
model.limit = { ...model.limit, ...config.limit };
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
+
const configured = providers.get(providerID);
|
|
191
|
+
if (configured)
|
|
192
|
+
providers.add({
|
|
193
|
+
info: configured.provider,
|
|
194
|
+
models: Array.from(configured.models.values()),
|
|
195
|
+
sourceConnection: snapshot.connection
|
|
196
|
+
});
|
|
190
197
|
}
|
|
191
|
-
const item =
|
|
198
|
+
const item = providers.get(ID6.opencode);
|
|
192
199
|
if (!item)
|
|
193
200
|
return;
|
|
194
201
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
195
|
-
|
|
202
|
+
providers.update(item.provider.id, (provider) => {
|
|
196
203
|
if (!hasKey) {
|
|
197
204
|
provider.activation = "enabled";
|
|
198
205
|
provider.settings = { ...provider.settings, apiKey: "public" };
|
|
199
206
|
}
|
|
200
207
|
});
|
|
208
|
+
});
|
|
209
|
+
yield* ctx.model.transform((models) => {
|
|
210
|
+
const item = models.provider.get(ID6.opencode);
|
|
211
|
+
if (!item)
|
|
212
|
+
return;
|
|
213
|
+
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
201
214
|
if (hasKey)
|
|
202
215
|
return;
|
|
203
|
-
for (const model of item.
|
|
216
|
+
for (const model of models.list(item.provider.id)) {
|
|
204
217
|
if (!model.cost.some((cost) => cost.input > 0))
|
|
205
218
|
continue;
|
|
206
|
-
|
|
219
|
+
models.update(item.provider.id, model.id, (draft) => {
|
|
207
220
|
draft.enabled = false;
|
|
208
221
|
});
|
|
209
222
|
}
|
|
@@ -228,7 +241,7 @@ var OpencodePlugin2 = define({
|
|
|
228
241
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
229
242
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
230
243
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
231
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
244
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
232
245
|
query: input.query,
|
|
233
246
|
providerID: descriptor.providerID
|
|
234
247
|
}));
|
|
@@ -246,10 +259,10 @@ var OpencodePlugin2 = define({
|
|
|
246
259
|
});
|
|
247
260
|
const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
|
|
248
261
|
snapshot = next;
|
|
249
|
-
yield* Effect.all([ctx.
|
|
262
|
+
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
250
263
|
});
|
|
251
264
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
252
|
-
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
265
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID8.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
253
266
|
yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
254
267
|
})
|
|
255
268
|
});
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service79,
|
|
6
|
+
node84
|
|
7
|
+
} from "./file-nc8419v6.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse5,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-6h73sxmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service75,
|
|
16
|
+
node80
|
|
17
|
+
} from "./file-129brntk.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/repository-cache.ts
|
|
23
23
|
var exports_repository_cache = {};
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service73,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node78,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service73 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service79;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service75;
|
|
110
|
+
return Service73.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse5(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse5(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node78 = makeGlobalNode({
|
|
171
|
+
service: Service73,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node84, Global.node, node80]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service73, isError2, validateBranch2, node78, exports_repository_cache };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service63
|
|
3
|
+
} from "./file-6gryy3ht.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service50
|
|
6
|
+
} from "./file-hq8zt1th.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-qc068m1q.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
22
|
+
const instances = yield* Service50;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service63), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
ascending2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-tvtrv512.js";
|
|
7
7
|
import {
|
|
8
8
|
create3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-rdw6cm16.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service41,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node45
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service41 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service41.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node45 = makeLocationNode({
|
|
143
|
+
service: Service41,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service41, node45, exports_tool_output2 };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service81,
|
|
3
|
+
node86
|
|
4
|
+
} from "./file-nx3x71r4.js";
|
|
1
5
|
import {
|
|
2
6
|
Service80,
|
|
3
7
|
node85
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service79,
|
|
7
|
-
node84
|
|
8
|
-
} from "./persistent-pty-zd83r0vm.js";
|
|
8
|
+
} from "./file-pajef2pp.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-0q0f95c6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
23
|
Event: () => Event19,
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
24
|
+
ID: () => ID15,
|
|
25
|
+
Info: () => Info31,
|
|
26
26
|
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service72,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node77
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID15 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
39
|
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
41
|
var Event19 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info31 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID15,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service72 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
54
|
-
const db = (yield*
|
|
55
|
-
const bus = yield*
|
|
53
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
54
|
+
const db = (yield* Service81).db;
|
|
55
|
+
const bus = yield* Service80;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info31({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service72.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info31({
|
|
80
|
+
id: ID15.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -193,6 +193,6 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node77 = makeGlobalNode({ service: Service72, layer, deps: [node86, node85] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID15, OAuth3, Key4, Value2, Event19, Info31, Service72, node77, exports_credential };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options8,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options8 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options8, Spec2, exports_plugin3 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID6,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-pmh6tya1.js";
|
|
6
6
|
|
|
7
7
|
// src/plugin/provider/google-vertex.ts
|
|
8
8
|
import { Effect } from "effect";
|
|
@@ -35,15 +35,15 @@ function authFetch(fetchWithRuntimeOptions) {
|
|
|
35
35
|
var GoogleVertexPlugin2 = define({
|
|
36
36
|
id: "opencode.provider.google.vertex",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
|
-
yield* ctx.
|
|
39
|
-
for (const item of evt.
|
|
38
|
+
yield* ctx.provider.transform((evt) => {
|
|
39
|
+
for (const item of evt.list()) {
|
|
40
40
|
if (!isAISDK2(item.provider.package))
|
|
41
41
|
continue;
|
|
42
|
-
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id ===
|
|
42
|
+
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id === ID6.googleVertex && packageName2(item.provider.package)?.includes("@ai-sdk/openai-compatible")))
|
|
43
43
|
continue;
|
|
44
44
|
const project = resolveProject(item.provider.settings ?? {});
|
|
45
45
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
46
|
-
evt.
|
|
46
|
+
evt.update(item.provider.id, (provider) => {
|
|
47
47
|
if (project && provider.activation === "auto")
|
|
48
48
|
provider.activation = "enabled";
|
|
49
49
|
provider.settings = {
|
|
@@ -56,13 +56,13 @@ var GoogleVertexPlugin2 = define({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
59
|
-
if (evt.model.providerID ===
|
|
59
|
+
if (evt.model.providerID === ID6.googleVertex && evt.package.includes("@ai-sdk/openai-compatible")) {
|
|
60
60
|
evt.options.fetch = authFetch(evt.options.fetch);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
}));
|
|
64
64
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
65
|
-
if (evt.model.providerID !==
|
|
65
|
+
if (evt.model.providerID !== ID6.googleVertex)
|
|
66
66
|
return;
|
|
67
67
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
68
68
|
}));
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-rcsscm7r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
ID6
|
|
6
|
+
} from "./file-pmh6tya1.js";
|
|
7
7
|
import {
|
|
8
8
|
iife2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-1kg9ymc8.js";
|
|
10
10
|
import {
|
|
11
11
|
configuredSettings2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-g601pm08.js";
|
|
13
13
|
|
|
14
14
|
// src/plugin/provider/cloudflare-ai-gateway.ts
|
|
15
15
|
import os from "os";
|
|
16
16
|
import { Effect, Option, Schema } from "effect";
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
18
18
|
import { Form } from "@opencode/schema/form";
|
|
19
|
-
var providerID =
|
|
19
|
+
var providerID = ID6.make("cloudflare-ai-gateway");
|
|
20
20
|
var CloudflareAIGatewayPlugin2 = define({
|
|
21
21
|
id: "opencode.provider.cloudflare.ai.gateway",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-rcsscm7r.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service72
|
|
7
|
+
} from "./file-2jtppnb6.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID8,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-919h57eb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
ID6
|
|
14
|
+
} from "./file-pmh6tya1.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/xai.ts
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -23,7 +23,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
23
23
|
var pollingSafetyMargin = 3000;
|
|
24
24
|
var browserMethodID = MethodID2.make("browser");
|
|
25
25
|
var deviceMethodID = MethodID2.make("device");
|
|
26
|
-
var providerID =
|
|
26
|
+
var providerID = ID6.make("xai");
|
|
27
27
|
var Token = Schema.Struct({
|
|
28
28
|
access_token: Schema.String,
|
|
29
29
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -43,7 +43,7 @@ var DeviceError = Schema.Struct({
|
|
|
43
43
|
});
|
|
44
44
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
45
45
|
var device = (app) => ({
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID8.make("xai"),
|
|
47
47
|
method: {
|
|
48
48
|
id: deviceMethodID,
|
|
49
49
|
type: "oauth",
|
|
@@ -68,8 +68,8 @@ var device = (app) => ({
|
|
|
68
68
|
var XAIPlugin2 = define({
|
|
69
69
|
id: "opencode.provider.xai",
|
|
70
70
|
effect: Effect.fn(function* (ctx) {
|
|
71
|
-
const credentials = yield*
|
|
72
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
71
|
+
const credentials = yield* Service72;
|
|
72
|
+
yield* Effect.forEach(yield* credentials.list(ID8.make("xai")), (credential) => {
|
|
73
73
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
74
74
|
return Effect.void;
|
|
75
75
|
return credentials.update(credential.id, {
|
|
@@ -83,12 +83,9 @@ var XAIPlugin2 = define({
|
|
|
83
83
|
editor.method.update(device(ctx.app));
|
|
84
84
|
editor.method.update({ integrationID: "xai", method: { type: "key", label: "Manually enter API Key" } });
|
|
85
85
|
});
|
|
86
|
-
yield* ctx.
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
return;
|
|
90
|
-
for (const model of provider.models.values()) {
|
|
91
|
-
catalog.model.update(providerID, model.id, (draft) => {
|
|
86
|
+
yield* ctx.model.transform((models) => {
|
|
87
|
+
for (const model of models.list(providerID)) {
|
|
88
|
+
models.update(providerID, model.id, (draft) => {
|
|
92
89
|
draft.capabilities.responsesWebsockets = true;
|
|
93
90
|
draft.websocket = true;
|
|
94
91
|
});
|