@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
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service50
|
|
3
|
+
} from "./pty-ca5anfan.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./pty-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Service72
|
|
9
|
+
} from "./pty-60r077ss.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
11
|
+
Service49
|
|
12
|
+
} from "./pty-s9smgjtn.js";
|
|
13
13
|
import {
|
|
14
14
|
DirectorySource2,
|
|
15
15
|
UrlSource2,
|
|
16
|
-
|
|
17
|
-
} from "./pty-
|
|
16
|
+
Source3
|
|
17
|
+
} from "./pty-wmzeh62n.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./pty-
|
|
19
|
+
Service11
|
|
20
|
+
} from "./pty-2bt6bea8.js";
|
|
21
21
|
import {
|
|
22
22
|
parse2
|
|
23
|
-
} from "./pty-
|
|
23
|
+
} from "./pty-9a3tgymx.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -29,22 +29,22 @@ import {
|
|
|
29
29
|
var exports_skill3 = {};
|
|
30
30
|
__export(exports_skill3, {
|
|
31
31
|
ConfigSkillPlugin: () => exports_skill3,
|
|
32
|
-
Plugin: () =>
|
|
32
|
+
Plugin: () => Plugin36
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import path from "path";
|
|
38
38
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
39
|
-
var
|
|
39
|
+
var Plugin36 = define({
|
|
40
40
|
id: "opencode.config.skill",
|
|
41
41
|
effect: Effect.fn(function* (ctx) {
|
|
42
|
-
const config = yield*
|
|
43
|
-
const discovery = yield*
|
|
42
|
+
const config = yield* Service49;
|
|
43
|
+
const discovery = yield* Service11;
|
|
44
44
|
const fs = yield* FSUtil.Service;
|
|
45
45
|
const global = yield* Global.Service;
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
46
|
+
const location = yield* Service72;
|
|
47
|
+
const watcher = yield* Service50;
|
|
48
48
|
const loaded = {
|
|
49
49
|
entries: yield* config.entries(),
|
|
50
50
|
skills: []
|
|
@@ -87,7 +87,7 @@ var Plugin35 = define({
|
|
|
87
87
|
const sources = () => {
|
|
88
88
|
const result = [];
|
|
89
89
|
const add = (source) => {
|
|
90
|
-
if (result.some((item) =>
|
|
90
|
+
if (result.some((item) => Source3.equals(item, source)))
|
|
91
91
|
return;
|
|
92
92
|
result.push(source);
|
|
93
93
|
};
|
|
@@ -117,7 +117,7 @@ var Plugin35 = define({
|
|
|
117
117
|
};
|
|
118
118
|
const load = Effect.fn("ConfigSkillPlugin.load")(function* (source) {
|
|
119
119
|
const directories = source.type === "directory" ? [source.path] : yield* discovery.pull(source.url).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load skill source", {
|
|
120
|
-
source:
|
|
120
|
+
source: Source3.key(source),
|
|
121
121
|
cause
|
|
122
122
|
}).pipe(Effect.as([]))));
|
|
123
123
|
const roots = (yield* Effect.forEach(directories, watchDirectory)).flat();
|
|
@@ -146,7 +146,7 @@ var Plugin35 = define({
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
yield* Effect.logDebug("skill source loaded", {
|
|
149
|
-
source:
|
|
149
|
+
source: Source3.key(source),
|
|
150
150
|
type: source.type,
|
|
151
151
|
directories,
|
|
152
152
|
skills: skills.map((skill) => skill.id)
|
|
@@ -165,7 +165,7 @@ var Plugin35 = define({
|
|
|
165
165
|
if (file) {
|
|
166
166
|
yield* Effect.logInfo("skills rescanned", {
|
|
167
167
|
file,
|
|
168
|
-
sources: current.map(
|
|
168
|
+
sources: current.map(Source3.key),
|
|
169
169
|
skills: loaded.skills.map((skill) => skill.id)
|
|
170
170
|
});
|
|
171
171
|
}
|
|
@@ -181,4 +181,4 @@ var Plugin35 = define({
|
|
|
181
181
|
})
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { Plugin36, exports_skill3 };
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./pty-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID3,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./pty-
|
|
10
|
+
} from "./pty-wmzeh62n.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -57,7 +57,7 @@ function parse2(directory, filepath, content) {
|
|
|
57
57
|
return {
|
|
58
58
|
_tag: "Parsed",
|
|
59
59
|
skill: {
|
|
60
|
-
id:
|
|
60
|
+
id: ID3.make(id),
|
|
61
61
|
name: Name2.make(frontmatter.name ?? id),
|
|
62
62
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
63
63
|
...slash === undefined ? {} : { slash },
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service72
|
|
6
|
+
} from "./pty-60r077ss.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -23,7 +23,7 @@ var names4 = ["opencode.json", "opencode.jsonc"];
|
|
|
23
23
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
24
24
|
const fs = yield* FSUtil.Service;
|
|
25
25
|
const global = yield* Global.Service;
|
|
26
|
-
const location = yield*
|
|
26
|
+
const location = yield* Service72;
|
|
27
27
|
const globalDirectory = AbsolutePath2.make(global.config);
|
|
28
28
|
const globalAgentsDirectory = AbsolutePath2.make(path.join(global.home, ".agents"));
|
|
29
29
|
const globalClaudeDirectory = AbsolutePath2.make(path.join(global.home, ".claude"));
|
|
@@ -15,11 +15,11 @@ __export(exports_git3, {
|
|
|
15
15
|
Git: () => exports_git3,
|
|
16
16
|
OperationError: () => OperationError3,
|
|
17
17
|
Repository: () => Repository2,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service74,
|
|
19
19
|
TreeID: () => TreeID2,
|
|
20
20
|
Worktree: () => Worktree2,
|
|
21
21
|
WorktreeError: () => WorktreeError2,
|
|
22
|
-
node: () =>
|
|
22
|
+
node: () => node79
|
|
23
23
|
});
|
|
24
24
|
import path from "path";
|
|
25
25
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -85,9 +85,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
85
85
|
}) {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
class
|
|
88
|
+
class Service74 extends Context.Service()("@opencode/Git") {
|
|
89
89
|
}
|
|
90
|
-
var layer = Layer.effect(
|
|
90
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
91
91
|
const fs = yield* FSUtil.Service;
|
|
92
92
|
const proc = yield* AppProcess.Service;
|
|
93
93
|
const locks = makeUnsafe2();
|
|
@@ -409,7 +409,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
409
409
|
kind: index === 0 ? "main" : "linked"
|
|
410
410
|
}));
|
|
411
411
|
});
|
|
412
|
-
return
|
|
412
|
+
return Service74.of({
|
|
413
413
|
repo: { discover, clone, create },
|
|
414
414
|
remote: { get: remote },
|
|
415
415
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -425,7 +425,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
427
|
}));
|
|
428
|
-
var
|
|
428
|
+
var node79 = makeGlobalNode({ service: Service74, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
429
429
|
function run(cwd, proc, args) {
|
|
430
430
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
431
431
|
}
|
|
@@ -450,4 +450,4 @@ function resolvePath(cwd, value) {
|
|
|
450
450
|
return path.resolve(cwd, normalized);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
453
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service74, node79, exports_git3 };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service72
|
|
6
|
+
} from "./pty-60r077ss.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Service49
|
|
9
|
+
} from "./pty-s9smgjtn.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalSource2,
|
|
12
12
|
GitSource2
|
|
13
|
-
} from "./pty-
|
|
13
|
+
} from "./pty-f4nygem8.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
16
|
} from "./pty-qsdy395h.js";
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
var exports_reference = {};
|
|
23
23
|
__export(exports_reference, {
|
|
24
24
|
ConfigReferencePlugin: () => exports_reference,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin40
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Effect } from "effect";
|
|
30
30
|
import { Global } from "@opencode/util/global";
|
|
31
|
-
var
|
|
31
|
+
var Plugin40 = define({
|
|
32
32
|
id: "opencode.config.reference",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
35
|
-
const location = yield*
|
|
34
|
+
const config = yield* Service49;
|
|
35
|
+
const location = yield* Service72;
|
|
36
36
|
const global = yield* Global.Service;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
|
|
38
38
|
yield* ctx.reference.transform((editor) => {
|
|
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
|
|
|
72
72
|
return path.isAbsolute(value) ? value : path.resolve(directory, value);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { Plugin40, exports_reference };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
5
|
+
Service72,
|
|
6
|
+
node77
|
|
7
|
+
} from "./pty-60r077ss.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./pty-
|
|
9
|
+
Service15,
|
|
10
|
+
node18
|
|
11
|
+
} from "./pty-59n4zhg4.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -22,11 +22,11 @@ var exports_search = {};
|
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
24
|
Options: () => Options2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service14,
|
|
26
26
|
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
28
|
layer: () => layer8,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node17,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ var Options2 = Schema.Struct({
|
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service14 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service72;
|
|
63
|
+
const ripgrep = yield* Service15;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service14.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service14, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service72;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service14.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service14.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -175,7 +175,7 @@ var fffLayer2 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
177
|
var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
-
const location = yield*
|
|
178
|
+
const location = yield* Service72;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
@@ -183,8 +183,8 @@ var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
185
|
function configured2(options) {
|
|
186
|
-
return makeLocationNode({ service:
|
|
186
|
+
return makeLocationNode({ service: Service14, layer: layer8(options), deps: [node77, node18] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node17 = configured2();
|
|
189
189
|
|
|
190
|
-
export { Options2,
|
|
190
|
+
export { Options2, Service14, ripgrepLayer2, fffLayer2, layer8, configured2, node17, exports_search };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAISDK2,
|
|
3
3
|
packageName2
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-m27pyyd3.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
// src/plugin/variant.ts
|
|
10
10
|
var exports_variant = {};
|
|
11
11
|
__export(exports_variant, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin14,
|
|
13
13
|
VariantPlugin: () => exports_variant,
|
|
14
14
|
generate: () => generate2
|
|
15
15
|
});
|
|
16
16
|
import { Effect } from "effect";
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
18
18
|
import { Model } from "@opencode/schema/model";
|
|
19
|
-
var
|
|
19
|
+
var Plugin14 = define({
|
|
20
20
|
id: "opencode.variant",
|
|
21
21
|
effect: Effect.fn(function* (ctx) {
|
|
22
22
|
yield* ctx.catalog.transform((catalog) => {
|
|
@@ -52,4 +52,4 @@ function generate2(model, provider) {
|
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Plugin14, generate2, exports_variant };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service61
|
|
3
|
+
} from "./pty-6vwh2emb.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID3,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./pty-
|
|
9
|
+
Service39
|
|
10
|
+
} from "./pty-wmzeh62n.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./pty-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
Input: () =>
|
|
19
|
-
Output: () =>
|
|
20
|
-
Plugin: () =>
|
|
21
|
-
SkillTool: () =>
|
|
22
|
-
description: () =>
|
|
23
|
-
name: () =>
|
|
16
|
+
var exports_skill2 = {};
|
|
17
|
+
__export(exports_skill2, {
|
|
18
|
+
Input: () => Input6,
|
|
19
|
+
Output: () => Output3,
|
|
20
|
+
Plugin: () => Plugin20,
|
|
21
|
+
SkillTool: () => exports_skill2,
|
|
22
|
+
description: () => description4,
|
|
23
|
+
name: () => name6,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai";
|
|
27
27
|
import { Effect, Schema } from "effect";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
id:
|
|
29
|
+
var name6 = "skill";
|
|
30
|
+
var Input6 = Schema.Struct({
|
|
31
|
+
id: ID3.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var Output3 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
35
35
|
directory: Schema.String,
|
|
36
36
|
output: Schema.String
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var description4 = [
|
|
39
39
|
"Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
|
|
40
40
|
"",
|
|
41
41
|
"The skill ID must match an available skill or a skill explicitly referenced by the user."
|
|
@@ -43,25 +43,25 @@ var description5 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin20 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service39;
|
|
51
|
+
const permission = yield* Service61;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
|
-
name:
|
|
53
|
+
name: name6,
|
|
54
54
|
options: { codemode: false },
|
|
55
|
-
description:
|
|
56
|
-
input:
|
|
57
|
-
output:
|
|
55
|
+
description: description4,
|
|
56
|
+
input: Input6,
|
|
57
|
+
output: Output3,
|
|
58
58
|
execute: (input, context) => Effect.gen(function* () {
|
|
59
59
|
const skill = yield* skills.get(input.id);
|
|
60
60
|
if (!skill)
|
|
61
61
|
return yield* unableToLoad(input.id);
|
|
62
62
|
return yield* Effect.gen(function* () {
|
|
63
63
|
yield* permission.assert({
|
|
64
|
-
action:
|
|
64
|
+
action: name6,
|
|
65
65
|
resources: [skill.id],
|
|
66
66
|
save: [skill.id],
|
|
67
67
|
sessionID: context.sessionID,
|
|
@@ -79,4 +79,4 @@ var Plugin11 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { name6, Input6, Output3, description4, toModelOutput2, Plugin20, exports_skill2 };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-44dkc7mg.js";
|
|
5
5
|
import {
|
|
6
6
|
Service79,
|
|
7
7
|
node84
|
|
8
|
-
} from "./pty-
|
|
8
|
+
} from "./pty-b80d24dq.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
10
|
+
Service38,
|
|
11
|
+
node41
|
|
12
|
+
} from "./pty-7amj9884.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./pty-
|
|
14
|
+
Service36,
|
|
15
|
+
node39
|
|
16
|
+
} from "./pty-63xctefh.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./pty-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./pty-
|
|
21
|
+
make16
|
|
22
|
+
} from "./pty-yp2x3t23.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./pty-
|
|
25
|
+
Service33
|
|
26
|
+
} from "./pty-ca7w653e.js";
|
|
27
27
|
import {
|
|
28
28
|
UserInterruptedError2
|
|
29
|
-
} from "./pty-
|
|
29
|
+
} from "./pty-49ycyj1k.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from "./pty-
|
|
31
|
+
Service62,
|
|
32
|
+
node66
|
|
33
|
+
} from "./pty-b2wnrkev.js";
|
|
34
34
|
import {
|
|
35
35
|
toSessionError2
|
|
36
|
-
} from "./pty-
|
|
36
|
+
} from "./pty-p93a7xcd.js";
|
|
37
37
|
import {
|
|
38
38
|
nextPromotable2
|
|
39
|
-
} from "./pty-
|
|
39
|
+
} from "./pty-rvkgvnp4.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
42
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -44,16 +44,16 @@ import {
|
|
|
44
44
|
// src/session/execution.ts
|
|
45
45
|
var exports_execution = {};
|
|
46
46
|
__export(exports_execution, {
|
|
47
|
-
Service: () =>
|
|
47
|
+
Service: () => Service32,
|
|
48
48
|
SessionExecution: () => exports_execution,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
layer: () => layer15,
|
|
50
|
+
node: () => node36,
|
|
51
51
|
noopLayer: () => noopLayer2,
|
|
52
52
|
terminal: () => terminal2
|
|
53
53
|
});
|
|
54
54
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
55
55
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
56
|
-
class
|
|
56
|
+
class Service32 extends Context.Service()("@opencode/SessionExecution") {
|
|
57
57
|
}
|
|
58
58
|
function terminal2(exit, reason) {
|
|
59
59
|
if (Exit.isSuccess(exit))
|
|
@@ -65,11 +65,11 @@ function terminal2(exit, reason) {
|
|
|
65
65
|
return { type: "interrupted", reason: "user" };
|
|
66
66
|
return { type: "failed", error: toSessionError2(failure) };
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
const store = yield*
|
|
70
|
-
const instances = yield*
|
|
68
|
+
var layer15 = Layer.effect(Service32, Effect.gen(function* () {
|
|
69
|
+
const store = yield* Service62;
|
|
70
|
+
const instances = yield* Service36;
|
|
71
71
|
const bus = yield* Service79;
|
|
72
|
-
const jobs = yield*
|
|
72
|
+
const jobs = yield* Service38;
|
|
73
73
|
const db = (yield* Service80).db;
|
|
74
74
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
75
75
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -82,13 +82,13 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
82
82
|
const session = yield* store.get(sessionID);
|
|
83
83
|
if (!session)
|
|
84
84
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
85
|
-
const result = yield*
|
|
85
|
+
const result = yield* Service33.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
86
86
|
return yield* DrainResult2.$match(result, {
|
|
87
87
|
Complete: () => Effect.void,
|
|
88
88
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable)
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
|
-
const coordinator = yield*
|
|
91
|
+
const coordinator = yield* make16({
|
|
92
92
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
93
93
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
94
94
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -109,7 +109,7 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
109
109
|
}, releaseOnCommit(sessionID));
|
|
110
110
|
}))
|
|
111
111
|
});
|
|
112
|
-
return
|
|
112
|
+
return Service32.of({
|
|
113
113
|
active: coordinator.active,
|
|
114
114
|
isActive: coordinator.isActive,
|
|
115
115
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -128,12 +128,12 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
128
128
|
awaitIdle: coordinator.awaitIdle
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
132
|
-
service:
|
|
133
|
-
layer:
|
|
134
|
-
deps: [
|
|
131
|
+
var node36 = makeGlobalNode({
|
|
132
|
+
service: Service32,
|
|
133
|
+
layer: layer15,
|
|
134
|
+
deps: [node66, node39, node84, node85, node41]
|
|
135
135
|
});
|
|
136
|
-
var noopLayer2 = Layer.succeed(
|
|
136
|
+
var noopLayer2 = Layer.succeed(Service32, Service32.of({
|
|
137
137
|
active: Effect.succeed(new Set),
|
|
138
138
|
isActive: () => Effect.succeed(false),
|
|
139
139
|
resume: () => Effect.void,
|
|
@@ -142,4 +142,4 @@ var noopLayer2 = Layer.succeed(Service45, Service45.of({
|
|
|
142
142
|
awaitIdle: () => Effect.void
|
|
143
143
|
}));
|
|
144
144
|
|
|
145
|
-
export {
|
|
145
|
+
export { Service32, terminal2, layer15, node36, noopLayer2, exports_execution };
|