@opencode/core 0.0.0-dev-19372 → 0.0.0-dev-19377
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 +67 -67
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/catalog.js +68 -68
- package/dist/chunks/{pty-hw55hn24.js → pty-006ygbhe.js} +9 -9
- package/dist/chunks/{pty-5j7h8n2k.js → pty-01w9qjh9.js} +11 -11
- package/dist/chunks/{pty-6zm1wyjc.js → pty-04d1p4as.js} +18 -18
- package/dist/chunks/{pty-yntqacmd.js → pty-074fwbj6.js} +15 -15
- package/dist/chunks/{pty-4qv5c5xf.js → pty-0e1xjvyp.js} +22 -22
- package/dist/chunks/{pty-mqy0jkn2.js → pty-0gr7cw0d.js} +3 -3
- package/dist/chunks/{pty-jjc2e0wf.js → pty-0w7fw3r9.js} +14 -14
- package/dist/chunks/{pty-jsaewa63.js → pty-19xhtx11.js} +4 -4
- package/dist/chunks/{pty-wnqzfj2j.js → pty-1awm1f41.js} +13 -13
- package/dist/chunks/{pty-0hpxrkyb.js → pty-1dfhrqqs.js} +3 -3
- package/dist/chunks/{pty-q1bbvmq4.js → pty-1qacn438.js} +24 -24
- package/dist/chunks/{pty-w8dmehha.js → pty-1qamgzxb.js} +40 -40
- package/dist/chunks/{pty-33w4ejhs.js → pty-1ygqh575.js} +4 -4
- package/dist/chunks/{pty-s8bz6z4k.js → pty-2336b01z.js} +7 -7
- package/dist/chunks/{pty-6h73sxmp.js → pty-2402vzrj.js} +4 -4
- package/dist/chunks/{pty-6jnybvqn.js → pty-2bt6bea8.js} +7 -7
- package/dist/chunks/{pty-mf3kdcv1.js → pty-2d9xefx9.js} +8 -8
- package/dist/chunks/{pty-q24fq4k9.js → pty-2ehqxkpw.js} +11 -11
- package/dist/chunks/{pty-40d8dwxk.js → pty-2hkg1ese.js} +9 -9
- package/dist/chunks/{pty-k8a0mrdq.js → pty-2zb1amfr.js} +38 -38
- package/dist/chunks/{pty-m0pn08h0.js → pty-32rg2acf.js} +9 -9
- package/dist/chunks/{pty-crd48we5.js → pty-38t617vx.js} +77 -77
- package/dist/chunks/{pty-b3wkxfg9.js → pty-39r80e1r.js} +1 -1
- package/dist/chunks/{pty-a1dptbm0.js → pty-3f3d0cbx.js} +23 -23
- package/dist/chunks/{pty-kv3072p9.js → pty-3q64r879.js} +4 -4
- package/dist/chunks/{pty-0gg4eh9d.js → pty-3w1p8qpk.js} +9 -9
- package/dist/chunks/{pty-7rjdtxkk.js → pty-43k15f45.js} +4 -4
- package/dist/chunks/{pty-4z80d8a9.js → pty-44dkc7mg.js} +2 -2
- package/dist/chunks/{pty-qgy2rw28.js → pty-49ycyj1k.js} +7 -7
- package/dist/chunks/{pty-ken34rgm.js → pty-4g0ya2kt.js} +16 -16
- package/dist/chunks/{pty-mnewsc6w.js → pty-4gp3ykcw.js} +28 -28
- package/dist/chunks/{pty-dcdbx179.js → pty-4jk5hnnm.js} +46 -46
- package/dist/chunks/{pty-eg20r4ae.js → pty-4s814m4t.js} +15 -15
- package/dist/chunks/{pty-j4rqb0e8.js → pty-4yzj85jz.js} +292 -292
- package/dist/chunks/{pty-hcz3zddy.js → pty-510m7gjw.js} +3 -3
- package/dist/chunks/{pty-9m9t2a7k.js → pty-52x1vvhc.js} +16 -16
- package/dist/chunks/{pty-rrdk89a5.js → pty-56tf4rq2.js} +17 -17
- package/dist/chunks/{pty-m5aw9kqs.js → pty-59n4zhg4.js} +11 -11
- package/dist/chunks/pty-5ax6r0h3.js +22 -0
- package/dist/chunks/{pty-5vs9ndt5.js → pty-5tw27g45.js} +20 -20
- package/dist/chunks/{pty-qpw0y00r.js → pty-60r077ss.js} +16 -16
- package/dist/chunks/{pty-v8jfbz3g.js → pty-63xctefh.js} +5 -5
- package/dist/chunks/{pty-3pmjwr1e.js → pty-6jyd9m4h.js} +19 -19
- package/dist/chunks/{pty-q6rs4hjt.js → pty-6vwh2emb.js} +52 -52
- package/dist/chunks/{pty-4rph1v41.js → pty-6xsw6ps4.js} +12 -12
- package/dist/chunks/{pty-eq1pz5kg.js → pty-73tb2d7t.js} +2 -2
- package/dist/chunks/{pty-yzsvg0b0.js → pty-77jjzcn8.js} +170 -170
- package/dist/chunks/{pty-jy3rk2pm.js → pty-7amj9884.js} +14 -14
- package/dist/chunks/{pty-v1y1zkts.js → pty-7hr5xevn.js} +6 -6
- package/dist/chunks/{pty-cwtk2d1m.js → pty-7ttnvawf.js} +2 -2
- package/dist/chunks/{pty-zyr433b0.js → pty-818pfwc9.js} +9 -9
- package/dist/chunks/{pty-dv1qgsyq.js → pty-844ef7ks.js} +7 -7
- package/dist/chunks/{pty-cf7stcnz.js → pty-8450mckp.js} +8 -8
- package/dist/chunks/{pty-refnp3pv.js → pty-86g9bn8f.js} +1 -1
- package/dist/chunks/{pty-a31gkhvw.js → pty-8dar2rz8.js} +10 -10
- package/dist/chunks/{pty-6xe913v8.js → pty-8gaq70qr.js} +20 -20
- package/dist/chunks/{pty-jt2m25jy.js → pty-8ns6tfjc.js} +11 -11
- package/dist/chunks/{pty-8vct2pgr.js → pty-8q7cq0y1.js} +3 -3
- package/dist/chunks/{pty-f9dcx0s3.js → pty-8sf2nwrn.js} +14 -14
- package/dist/chunks/{pty-gcbpht8g.js → pty-8shp1cm6.js} +17 -17
- package/dist/chunks/{pty-rssnh3zg.js → pty-8vfk5djw.js} +22 -22
- package/dist/chunks/{pty-357v7vj3.js → pty-8vhbqs5w.js} +32 -32
- package/dist/chunks/{pty-nfk4q15c.js → pty-8x8pbyt1.js} +22 -22
- package/dist/chunks/{pty-gf4qtxm6.js → pty-96yt6zt0.js} +1 -1
- package/dist/chunks/{pty-e1sywrpy.js → pty-9a3tgymx.js} +3 -3
- package/dist/chunks/{pty-rzyzyf97.js → pty-9d99dnb1.js} +3 -3
- package/dist/chunks/{pty-jefma2gq.js → pty-9fwp41vh.js} +7 -7
- package/dist/chunks/{pty-jxcvs55h.js → pty-9kcgsz93.js} +10 -10
- package/dist/chunks/{pty-gy3ftesa.js → pty-9m59fmnv.js} +21 -21
- package/dist/chunks/{pty-4sksr709.js → pty-9pntmsg4.js} +4 -4
- package/dist/chunks/{pty-9fxpdq0y.js → pty-9pyd9sac.js} +27 -27
- package/dist/chunks/{pty-kwgqzsmm.js → pty-9t3jdf5e.js} +1 -1
- package/dist/chunks/{pty-4azybn4n.js → pty-9w2g1xxc.js} +35 -35
- package/dist/chunks/{pty-b428793c.js → pty-a03kqjf9.js} +12 -12
- package/dist/chunks/{pty-4dfh6zmw.js → pty-a08t2777.js} +10 -10
- package/dist/chunks/{pty-107fwvqp.js → pty-a4ma1ze7.js} +32 -32
- package/dist/chunks/{pty-kjr2p1gf.js → pty-a8emfn6x.js} +36 -36
- package/dist/chunks/{pty-5j4skxhh.js → pty-a8kmq1k9.js} +6 -6
- package/dist/chunks/{pty-ghe33san.js → pty-a8q88f3r.js} +13 -13
- package/dist/chunks/{pty-8gtqgsn5.js → pty-ae3ajeqv.js} +22 -22
- package/dist/chunks/{pty-sgaqms2z.js → pty-aqajd40k.js} +11 -11
- package/dist/chunks/{pty-1y981vcy.js → pty-b1xfxbkj.js} +29 -29
- package/dist/chunks/{pty-z5c2cr5p.js → pty-b2wnrkev.js} +14 -14
- package/dist/chunks/{pty-8w0tny4e.js → pty-b80d24dq.js} +1 -1
- package/dist/chunks/{pty-07770t2t.js → pty-b9grawmm.js} +5 -5
- package/dist/chunks/{pty-526v470z.js → pty-bcnz578n.js} +1 -1
- package/dist/chunks/{pty-vaynpwqg.js → pty-bgbx6e98.js} +8 -8
- package/dist/chunks/{pty-ewyzxja9.js → pty-bgmtf57a.js} +11 -11
- package/dist/chunks/{pty-q1hjdkpd.js → pty-bh5aff4j.js} +10 -10
- package/dist/chunks/{pty-gj9xpvv3.js → pty-bv56xrks.js} +5 -5
- package/dist/chunks/{pty-578n16w1.js → pty-bwp2svcp.js} +24 -24
- package/dist/chunks/{pty-pc04q47q.js → pty-ca5anfan.js} +22 -22
- package/dist/chunks/{pty-dhmh7aw6.js → pty-ca7w653e.js} +3 -3
- package/dist/chunks/{pty-ddmrj1q7.js → pty-ch3g59kk.js} +21 -21
- package/dist/chunks/{pty-vkxpz7g2.js → pty-cq37gk0t.js} +1 -1
- package/dist/chunks/{pty-3mke1r8k.js → pty-ct5dsnxp.js} +23 -23
- package/dist/chunks/{pty-0wmswe57.js → pty-cy0h5wfk.js} +20 -20
- package/dist/chunks/{pty-sgvsg5c7.js → pty-d4sp9rf7.js} +9 -9
- package/dist/chunks/{pty-47fetphe.js → pty-d4xwsxra.js} +29 -29
- package/dist/chunks/{pty-w7zd1bg5.js → pty-d9hwvmgm.js} +18 -18
- package/dist/chunks/{pty-cf3tj770.js → pty-d9wx0zpv.js} +8 -8
- package/dist/chunks/{pty-b1rqwz98.js → pty-dbqxyz5k.js} +7 -7
- package/dist/chunks/{pty-cj4mykbe.js → pty-dc2sw694.js} +7 -7
- package/dist/chunks/{pty-5zthbsee.js → pty-dpgvjqy9.js} +6 -6
- package/dist/chunks/pty-dx6znw8h.js +247 -0
- package/dist/chunks/{pty-wf7nhwxb.js → pty-ebcate35.js} +14 -14
- package/dist/chunks/{pty-gqqez5b8.js → pty-ej22x54z.js} +8 -8
- package/dist/chunks/{pty-gvvw2n81.js → pty-erx15syr.js} +9 -9
- package/dist/chunks/{pty-gtjpq3yd.js → pty-ew5awps8.js} +9 -9
- package/dist/chunks/{pty-xj584aw0.js → pty-ezz53t6j.js} +9 -9
- package/dist/chunks/{pty-s0fyf8fb.js → pty-f2mgn97g.js} +17 -17
- package/dist/chunks/{pty-bgks4w36.js → pty-f4nygem8.js} +25 -25
- package/dist/chunks/{pty-0pyqcms3.js → pty-f8q7mv7a.js} +1 -1
- package/dist/chunks/{pty-ng5shs3s.js → pty-fgh0kbhd.js} +1 -1
- package/dist/chunks/{pty-2pnhn36q.js → pty-g190xswt.js} +20 -20
- package/dist/chunks/{pty-te0vzhy5.js → pty-g2x47d18.js} +10 -10
- package/dist/chunks/{pty-0x4g6ndm.js → pty-g40n759s.js} +25 -25
- package/dist/chunks/{pty-hdsygwhy.js → pty-g820nd5k.js} +11 -11
- package/dist/chunks/{pty-b7n25z46.js → pty-gcmx30na.js} +15 -15
- package/dist/chunks/{pty-5g6xb262.js → pty-gh03ewrb.js} +25 -25
- package/dist/chunks/{pty-exrwhhqk.js → pty-ghkvzh5e.js} +3 -3
- package/dist/chunks/{pty-th5km1p3.js → pty-gv6a8nnw.js} +3 -3
- package/dist/chunks/{pty-nw5w3cjp.js → pty-h10ynz7s.js} +23 -23
- package/dist/chunks/{pty-f4dw8gwj.js → pty-h51vtk5a.js} +37 -37
- package/dist/chunks/{pty-nhy5jxhy.js → pty-hjt4xg1x.js} +3 -3
- package/dist/chunks/{pty-zjqdssy0.js → pty-hnbrmyfw.js} +11 -11
- package/dist/chunks/pty-hr9dp009.js +4 -0
- package/dist/chunks/{pty-41q0v4q7.js → pty-hwxg80b8.js} +7 -7
- package/dist/chunks/{pty-02zskd6f.js → pty-jrrn2k62.js} +3 -3
- package/dist/chunks/{pty-0996nyz8.js → pty-jwx4y25k.js} +3 -3
- package/dist/chunks/{pty-6126dgt1.js → pty-k00z28k0.js} +39 -39
- package/dist/chunks/{pty-abkdt1xb.js → pty-k16ay38w.js} +1 -1
- package/dist/chunks/{pty-rxyhbgbe.js → pty-k5pz2tr3.js} +15 -15
- package/dist/chunks/{pty-r8nahq2d.js → pty-kbme4tjs.js} +12 -12
- package/dist/chunks/{pty-ym4367vb.js → pty-khm98422.js} +19 -19
- package/dist/chunks/{pty-khy2t77v.js → pty-kscytsah.js} +30 -30
- package/dist/chunks/{pty-vyqtz9n7.js → pty-ksz0h0wp.js} +1 -1
- package/dist/chunks/{pty-f242nvhy.js → pty-kvne3rde.js} +5 -5
- package/dist/chunks/{pty-xa6by1f1.js → pty-kz49q7tk.js} +19 -19
- package/dist/chunks/{pty-9p3b3m98.js → pty-m27pyyd3.js} +5 -5
- package/dist/chunks/{pty-h91yv7bq.js → pty-m4kj3f5a.js} +16 -16
- package/dist/chunks/{pty-hv7vaf99.js → pty-m72y1cz2.js} +10 -10
- package/dist/chunks/{pty-z5wc9zep.js → pty-mewy3jp3.js} +10 -10
- package/dist/chunks/{pty-88sz8qcd.js → pty-mfhfdr54.js} +3 -3
- package/dist/chunks/{pty-bagg3g1z.js → pty-mzjyw1z2.js} +1 -1
- package/dist/chunks/{pty-qgp720zn.js → pty-n4a39eeb.js} +25 -25
- package/dist/chunks/{pty-yww5gzhe.js → pty-n76fdqym.js} +5 -5
- package/dist/chunks/{pty-d1f48wm0.js → pty-nh799jn3.js} +42 -42
- package/dist/chunks/{pty-7xggmshf.js → pty-nk3rvkbx.js} +6 -6
- package/dist/chunks/{pty-wreggwv7.js → pty-nkd0t4h0.js} +18 -18
- package/dist/chunks/{pty-sr4mx09d.js → pty-nsfnh1mv.js} +9 -9
- package/dist/chunks/{pty-tzaf1sec.js → pty-nwt9sqb3.js} +9 -9
- package/dist/chunks/{pty-gw1k03mf.js → pty-p2hgsd7c.js} +10 -10
- package/dist/chunks/{pty-14p0bf99.js → pty-p93a7xcd.js} +4 -4
- package/dist/chunks/{pty-j935v87r.js → pty-paphc93g.js} +2 -2
- package/dist/chunks/{pty-mtft99cd.js → pty-pecb0brz.js} +3 -3
- package/dist/chunks/{pty-7ce2cjd5.js → pty-phshbkdm.js} +16 -16
- package/dist/chunks/{pty-s4sy206n.js → pty-pks0s0zr.js} +30 -30
- package/dist/chunks/{pty-qq11w61w.js → pty-pmr4s4kc.js} +3 -3
- package/dist/chunks/{pty-jfdrs8g9.js → pty-ptns6nda.js} +10 -10
- package/dist/chunks/{pty-tp2tr8k0.js → pty-ptyjv6sg.js} +3 -3
- package/dist/chunks/{pty-by5v678g.js → pty-q509s3k3.js} +4 -4
- package/dist/chunks/{pty-zvpdk192.js → pty-q8z5f87d.js} +22 -22
- package/dist/chunks/{pty-jfqtm2ew.js → pty-qa3qhgw8.js} +3 -3
- package/dist/chunks/{pty-7dqw4kz8.js → pty-qgn6gcr1.js} +4 -4
- package/dist/chunks/{pty-qzdews7q.js → pty-qn64kb1t.js} +6 -6
- package/dist/chunks/{pty-9ef57syn.js → pty-qsak9770.js} +11 -11
- package/dist/chunks/{pty-rkg39e93.js → pty-qzyph8ek.js} +10 -10
- package/dist/chunks/{pty-q1tx050w.js → pty-r5cznk00.js} +7 -7
- package/dist/chunks/{pty-c9cenec4.js → pty-r6ejgkfw.js} +4 -4
- package/dist/chunks/{pty-bxft0ra9.js → pty-r846xv8j.js} +31 -31
- package/dist/chunks/{pty-cd4mc13g.js → pty-r9babyk8.js} +1 -1
- package/dist/chunks/{pty-rxjhrqx1.js → pty-rarc5met.js} +21 -21
- package/dist/chunks/{pty-3zhfhk0f.js → pty-rbqs1qrs.js} +2 -2
- package/dist/chunks/{pty-76mrr06k.js → pty-rggw41sg.js} +39 -39
- package/dist/chunks/{pty-0gdmqesm.js → pty-rhjbct0v.js} +3 -3
- package/dist/chunks/{pty-81swgkk7.js → pty-rk0rec3h.js} +7 -7
- package/dist/chunks/{pty-pqd1mzxt.js → pty-rpbnx6sk.js} +7 -7
- package/dist/chunks/{pty-0xkh6216.js → pty-rraf0nd7.js} +32 -32
- package/dist/chunks/{pty-bw8xqn9c.js → pty-rs7hs26b.js} +52 -52
- package/dist/chunks/{pty-feebpcf8.js → pty-rvkgvnp4.js} +15 -15
- package/dist/chunks/{pty-b5svzbqe.js → pty-rwzmtr9v.js} +8 -8
- package/dist/chunks/{pty-m2r7xkr0.js → pty-s0r9fgtt.js} +17 -17
- package/dist/chunks/{pty-cjr8y0wq.js → pty-s8zdkf47.js} +16 -16
- package/dist/chunks/{pty-c487kk09.js → pty-s9smgjtn.js} +40 -40
- package/dist/chunks/{pty-eea9n1gg.js → pty-say8dh30.js} +4 -4
- package/dist/chunks/{pty-0jzeq7bg.js → pty-sh4h10fx.js} +7 -7
- package/dist/chunks/{pty-mwva2wqz.js → pty-sj3w9yv9.js} +16 -16
- package/dist/chunks/{pty-v6wk655t.js → pty-snrqdf1w.js} +33 -33
- package/dist/chunks/{pty-m0f7gyab.js → pty-sqmjn1cn.js} +23 -23
- package/dist/chunks/{pty-fpmq6gma.js → pty-t0fxg8b9.js} +3 -3
- package/dist/chunks/{pty-p1wf2k30.js → pty-t0x5rdq8.js} +7 -7
- package/dist/chunks/{pty-cgs7ndjq.js → pty-t5q1ccxn.js} +6 -6
- package/dist/chunks/{pty-2x9w7gwc.js → pty-tfngb0ww.js} +2 -2
- package/dist/chunks/{pty-ajghh6ra.js → pty-tkd1aj9d.js} +4 -4
- package/dist/chunks/{pty-bh8p3ktg.js → pty-ty116xf8.js} +5 -5
- package/dist/chunks/{pty-qr736bxy.js → pty-v2hnet1n.js} +10 -10
- package/dist/chunks/{pty-ezs85qj9.js → pty-v52wsnkd.js} +1 -1
- package/dist/chunks/{pty-3a50zsz9.js → pty-v5d98jas.js} +16 -16
- package/dist/chunks/{pty-9cg0vjy1.js → pty-v5w9803s.js} +7 -7
- package/dist/chunks/{pty-r8febyms.js → pty-vg4rqzx2.js} +15 -15
- package/dist/chunks/{pty-8kcmt1fk.js → pty-vr048kar.js} +7 -7
- package/dist/chunks/{pty-0x1qwe4m.js → pty-vx0zf1rd.js} +8 -8
- package/dist/chunks/{pty-qz49fwgp.js → pty-w4arg62q.js} +5 -5
- package/dist/chunks/{pty-r0xf0e5c.js → pty-w7j91m09.js} +23 -23
- package/dist/chunks/{pty-egkwkxxa.js → pty-wcpsbhns.js} +87 -87
- package/dist/chunks/{pty-xdzdvgbv.js → pty-wfjha01d.js} +18 -18
- package/dist/chunks/{pty-jrvvap85.js → pty-wmzeh62n.js} +20 -20
- package/dist/chunks/{pty-c4twzx9w.js → pty-x0dwkdkr.js} +20 -20
- package/dist/chunks/{pty-pe79rxdj.js → pty-x76s0de8.js} +26 -26
- package/dist/chunks/{pty-yfbmjfv9.js → pty-xhct4fr6.js} +6 -6
- package/dist/chunks/{pty-g254301b.js → pty-xp0rt39m.js} +1 -1
- package/dist/chunks/{pty-p9ts1dg8.js → pty-xzh9rhk3.js} +12 -12
- package/dist/chunks/{pty-fr2caje5.js → pty-y8tez433.js} +36 -36
- package/dist/chunks/{pty-szjmac0q.js → pty-yc5avrgj.js} +20 -20
- package/dist/chunks/{pty-f2n192rq.js → pty-yp2x3t23.js} +3 -3
- package/dist/chunks/{pty-s4enseaf.js → pty-yrznvahk.js} +1 -1
- package/dist/chunks/{pty-v9cmgtcf.js → pty-yv9w4q4m.js} +1 -1
- package/dist/chunks/{pty-cny5rd43.js → pty-yvvvp4gn.js} +7 -7
- package/dist/chunks/{pty-51kcvgxx.js → pty-z2h7x86s.js} +13 -13
- package/dist/chunks/{pty-102jvkd5.js → pty-z2p9cf6c.js} +58 -58
- package/dist/chunks/{pty-29x78va6.js → pty-z63w68vq.js} +4 -4
- package/dist/chunks/{pty-6qw5vjfk.js → pty-z69s9t6b.js} +4 -4
- package/dist/chunks/{pty-1khr35v4.js → pty-zc2nqsz3.js} +25 -25
- package/dist/chunks/{pty-yy158baq.js → pty-zh1p0kdw.js} +9 -9
- package/dist/chunks/{pty-62k5e5wb.js → pty-zm6ygejy.js} +17 -17
- package/dist/chunks/{pty-an126cry.js → pty-zn0t31cj.js} +28 -28
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +17 -17
- package/dist/config/plugin/agent.js +94 -94
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +129 -129
- package/dist/config/plugin/formatter.js +95 -95
- package/dist/config/plugin/image.js +94 -94
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +94 -94
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +93 -93
- package/dist/config/plugin/provider.js +92 -92
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +94 -94
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +94 -94
- package/dist/config/plugin/source.js +96 -96
- package/dist/config/plugin/tool-output.js +93 -93
- package/dist/config/plugin/websearch.js +92 -92
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config/variable.js +2 -2
- package/dist/config.js +99 -99
- package/dist/credential.js +67 -67
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +38 -38
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/environment/environment.js +66 -66
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +67 -67
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +189 -189
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +69 -69
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +74 -74
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +2 -2
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +310 -310
- package/dist/instruction-discovery.js +67 -67
- package/dist/instructions/builtins.js +65 -65
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +71 -71
- package/dist/job.js +63 -63
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +56 -56
- package/dist/location-mutation.js +30 -30
- package/dist/location-service-map.js +66 -66
- package/dist/location-services.js +308 -308
- package/dist/location.js +67 -67
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +99 -99
- package/dist/mcp/stdio.js +63 -63
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +71 -71
- package/dist/model.js +10 -10
- package/dist/models-dev.js +72 -72
- package/dist/permission/saved.js +64 -64
- package/dist/permission.js +87 -87
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +182 -182
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +280 -280
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +61 -61
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +96 -96
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +96 -96
- package/dist/plugin/provider/cloudflare-workers-ai.js +96 -96
- package/dist/plugin/provider/configured.js +94 -94
- package/dist/plugin/provider/digitalocean.js +63 -63
- package/dist/plugin/provider/github-copilot.js +65 -65
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +97 -97
- package/dist/plugin/provider/modal.js +64 -64
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +97 -97
- package/dist/plugin/provider/openai.js +64 -64
- package/dist/plugin/provider/opencode.js +64 -64
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +96 -96
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +97 -97
- package/dist/plugin/provider/xai.js +62 -62
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +130 -130
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +111 -111
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/warming.js +92 -92
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +194 -194
- package/dist/project/schema.js +7 -7
- package/dist/project.js +68 -68
- package/dist/provider.js +5 -5
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +75 -75
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +71 -71
- package/dist/repository-cache.js +62 -62
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +67 -67
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +105 -105
- package/dist/session/context.js +121 -121
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +101 -101
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +67 -67
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +72 -72
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +90 -90
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +105 -105
- package/dist/session/projector.js +65 -65
- package/dist/session/prompt.js +78 -78
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +65 -65
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +71 -71
- package/dist/session/runner/retry.js +89 -89
- package/dist/session/runner/step.js +96 -96
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +139 -139
- package/dist/session/shell.js +104 -104
- package/dist/session/skill.js +77 -77
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +67 -67
- package/dist/session/subagent-job.js +174 -174
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +124 -124
- package/dist/session/to-session-error.js +86 -86
- package/dist/session/transfer.js +117 -117
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +96 -96
- package/dist/tool/plugin/edit.js +92 -92
- package/dist/tool/plugin/glob.js +89 -89
- package/dist/tool/plugin/grep.js +95 -95
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +94 -94
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +180 -180
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +181 -181
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +86 -86
- package/dist/tool/plugin/write.js +94 -94
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +67 -67
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +65 -65
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +298 -298
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/pty-0mesazry.js +0 -4
- package/dist/chunks/pty-jcst6tya.js +0 -247
- package/dist/chunks/pty-rnevd4w8.js +0 -22
- /package/dist/chunks/{pty-ghrzdqqx.js → pty-23kefcxh.js} +0 -0
- /package/dist/chunks/{pty-5sjkzzsa.js → pty-3zxpfz3n.js} +0 -0
- /package/dist/chunks/{pty-rbygrj0c.js → pty-9nepbqpa.js} +0 -0
- /package/dist/chunks/{pty-60geffh5.js → pty-c3se2jx9.js} +0 -0
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./pty-
|
|
6
|
+
} from "./pty-g190xswt.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Info15
|
|
9
|
+
} from "./pty-818pfwc9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
11
|
+
Info12
|
|
12
|
+
} from "./pty-t0fxg8b9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./pty-
|
|
14
|
+
Info14
|
|
15
|
+
} from "./pty-qa3qhgw8.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./pty-
|
|
17
|
+
Info10
|
|
18
|
+
} from "./pty-pecb0brz.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./pty-
|
|
21
|
+
} from "./pty-qgn6gcr1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./pty-
|
|
23
|
+
Info17
|
|
24
|
+
} from "./pty-510m7gjw.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./pty-
|
|
26
|
+
Info8
|
|
27
|
+
} from "./pty-rggw41sg.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./pty-
|
|
36
|
+
} from "./pty-tfngb0ww.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info8.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info12, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info15, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info15, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info10, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
421
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
422
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
423
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
424
|
+
const provider = decodeValue(Info17, raw, path, diagnostics);
|
|
425
425
|
if (provider === undefined)
|
|
426
426
|
return [];
|
|
427
427
|
const destination = providerID2(name);
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_command5 = {};
|
|
7
7
|
__export(exports_command5, {
|
|
8
8
|
ConfigCommandV1: () => exports_command5,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info14
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info14 = Schema.Struct({
|
|
13
13
|
template: Schema.String,
|
|
14
14
|
description: Schema.optional(Schema.String),
|
|
15
15
|
agent: Schema.optional(Schema.String),
|
|
@@ -18,4 +18,4 @@ var Info19 = Schema.Struct({
|
|
|
18
18
|
subtask: Schema.optional(Schema.Boolean)
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info14, exports_command5 };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options7,
|
|
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 Options7 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options7]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options7, Spec2, exports_plugin3 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
ID14,
|
|
3
|
+
Service76
|
|
4
|
+
} from "./pty-1qacn438.js";
|
|
5
5
|
import {
|
|
6
6
|
isAISDK2,
|
|
7
7
|
packageName2
|
|
8
|
-
} from "./pty-
|
|
8
|
+
} from "./pty-m27pyyd3.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/provider/llmgateway.ts
|
|
11
11
|
import { Effect } from "effect";
|
|
@@ -13,7 +13,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
13
13
|
var LLMGatewayPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.llmgateway",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
16
|
-
const integrations = yield*
|
|
16
|
+
const integrations = yield* Service76;
|
|
17
17
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
18
18
|
yield* ctx.catalog.transform((evt) => {
|
|
19
19
|
for (const item of evt.provider.list()) {
|
|
@@ -25,7 +25,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
25
25
|
continue;
|
|
26
26
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
27
27
|
continue;
|
|
28
|
-
if (!configured.has(
|
|
28
|
+
if (!configured.has(ID14.make(item.provider.id)))
|
|
29
29
|
continue;
|
|
30
30
|
evt.provider.update(item.provider.id, (provider) => {
|
|
31
31
|
provider.headers = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-qzyph8ek.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
6
|
+
Service78
|
|
7
|
+
} from "./pty-gh03ewrb.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./pty-
|
|
11
|
+
} from "./pty-1qacn438.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./pty-
|
|
13
|
+
ID18
|
|
14
|
+
} from "./pty-m27pyyd3.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 = ID18.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: ID14.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* Service78;
|
|
72
|
+
yield* Effect.forEach(yield* credentials.list(ID14.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, {
|
|
@@ -7,18 +7,18 @@ var exports_app = {};
|
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
10
|
+
configured: () => configured11,
|
|
11
|
+
layer: () => layer24,
|
|
12
|
+
make: () => make21,
|
|
13
|
+
node: () => node75,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make21()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make21(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make20(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer24 = (input) => Layer.succeed(Metadata2, make21(input));
|
|
32
|
+
var configured11 = (input) => makeGlobalNode({ service: Metadata2, layer: layer24(input), deps: [] });
|
|
33
|
+
var node75 = configured11();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make21, useragent2, layer24, configured11, node75, exports_app };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service41
|
|
3
|
+
} from "./pty-ebcate35.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service36
|
|
6
|
+
} from "./pty-63xctefh.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./pty-
|
|
9
|
+
} from "./pty-q509s3k3.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -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* Service36;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service41), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-6vwh2emb.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin13
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin13 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin13, exports_plan };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./pty-
|
|
4
|
+
node75
|
|
5
|
+
} from "./pty-qzyph8ek.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./pty-
|
|
9
|
+
} from "./pty-mfhfdr54.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./pty-
|
|
11
|
+
Service64,
|
|
12
|
+
node68
|
|
13
|
+
} from "./pty-v5w9803s.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./pty-
|
|
16
|
+
} from "./pty-6vwh2emb.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./pty-
|
|
19
|
+
} from "./pty-bh5aff4j.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./pty-
|
|
21
|
+
Error4
|
|
22
|
+
} from "./pty-kz49q7tk.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./pty-
|
|
24
|
+
Service30,
|
|
25
|
+
node34
|
|
26
|
+
} from "./pty-ezz53t6j.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./pty-
|
|
28
|
+
make15
|
|
29
|
+
} from "./pty-hjt4xg1x.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./pty-
|
|
32
|
+
} from "./pty-39r80e1r.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
35
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
// src/session/model-request.ts
|
|
38
38
|
var exports_model_request = {};
|
|
39
39
|
__export(exports_model_request, {
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service29,
|
|
41
41
|
SessionModelRequest: () => exports_model_request,
|
|
42
42
|
baseTranscript: () => baseTranscript2,
|
|
43
43
|
boundImages: () => boundImages2,
|
|
44
|
-
layer: () =>
|
|
45
|
-
node: () =>
|
|
44
|
+
layer: () => layer13,
|
|
45
|
+
node: () => node33,
|
|
46
46
|
unsupportedParts: () => unsupportedParts2
|
|
47
47
|
});
|
|
48
48
|
import { HttpOptions, LanguageModel, LLM, LLMRequest, Message, SystemPart } from "@opencode/ai";
|
|
@@ -62,7 +62,7 @@ var baseTranscript2 = (input) => {
|
|
|
62
62
|
return {
|
|
63
63
|
providerMetadataKey,
|
|
64
64
|
system: [
|
|
65
|
-
input.agent.system ? input.agent.system :
|
|
65
|
+
input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
|
|
66
66
|
input.initial
|
|
67
67
|
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
68
68
|
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
@@ -189,11 +189,11 @@ var httpMiddleware = (hooks, scope) => (request, handler) => Effect.gen(function
|
|
|
189
189
|
return HttpClientResponse.fromWeb(sent, after.response);
|
|
190
190
|
}).pipe(Effect.mapError((cause) => cause instanceof Error ? cause : new Error(String(cause))));
|
|
191
191
|
|
|
192
|
-
class
|
|
192
|
+
class Service29 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
const hooks = yield*
|
|
196
|
-
const transport = yield*
|
|
194
|
+
var layer13 = Layer.effect(Service29, Effect.gen(function* () {
|
|
195
|
+
const hooks = yield* Service64;
|
|
196
|
+
const transport = yield* Service30;
|
|
197
197
|
const app = yield* Metadata2;
|
|
198
198
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (input) {
|
|
199
199
|
const session = input.scope.session;
|
|
@@ -201,7 +201,7 @@ var layer15 = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
201
201
|
const model = resolved.model;
|
|
202
202
|
const tools = input.scope.tools ?? {
|
|
203
203
|
definitions: [],
|
|
204
|
-
execute: () => new
|
|
204
|
+
execute: () => new Error4({ message: "Tools are not available for this request" })
|
|
205
205
|
};
|
|
206
206
|
const registry = new Map(tools.definitions.map((tool) => [tool.name, tool]));
|
|
207
207
|
const given = new Map(tools.definitions.map((tool) => [{ description: tool.description, input: { ...tool.inputSchema } }, tool]));
|
|
@@ -261,12 +261,12 @@ var layer15 = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
261
261
|
executeTool
|
|
262
262
|
};
|
|
263
263
|
});
|
|
264
|
-
return
|
|
264
|
+
return Service29.of({ prepare });
|
|
265
265
|
}));
|
|
266
|
-
var
|
|
267
|
-
service:
|
|
268
|
-
layer:
|
|
269
|
-
deps: [
|
|
266
|
+
var node33 = makeLocationNode({
|
|
267
|
+
service: Service29,
|
|
268
|
+
layer: layer13,
|
|
269
|
+
deps: [node68, node34, node75]
|
|
270
270
|
});
|
|
271
271
|
|
|
272
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
272
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service29, layer13, node33, exports_model_request };
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
5
|
+
Service74,
|
|
6
|
+
node79
|
|
7
|
+
} from "./pty-9fwp41vh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse4,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./pty-
|
|
13
|
+
} from "./pty-2402vzrj.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./pty-
|
|
15
|
+
Service58,
|
|
16
|
+
node62
|
|
17
|
+
} from "./pty-2d9xefx9.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -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: () => Service57,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node61,
|
|
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 Service57 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(Service57, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service74;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service58;
|
|
110
|
+
return Service57.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 = parse4(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 ? parse4(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(Service43, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node61 = makeGlobalNode({
|
|
171
|
+
service: Service57,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node79, Global.node, node62]
|
|
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, Service57, isError2, validateBranch2, node61, exports_repository_cache };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./pty-
|
|
5
|
+
} from "./pty-yv9w4q4m.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
9
|
make23,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./pty-
|
|
11
|
+
} from "./pty-7ttnvawf.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./pty-9rqn6x4v.js";
|