@opencode/core 0.0.0-dev-19869 → 0.0.0-dev-19872
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 +68 -68
- package/dist/aisdk-native.js +67 -67
- package/dist/aisdk.js +72 -72
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{worktree-b512ytgh.js → worktree-0029brse.js} +2 -2
- package/dist/chunks/{worktree-w9y6772s.js → worktree-01xkgkan.js} +2 -2
- package/dist/chunks/{worktree-yrmashwv.js → worktree-050bv84r.js} +85 -85
- package/dist/chunks/{worktree-bccb6npm.js → worktree-06dxphr1.js} +3 -3
- package/dist/chunks/{worktree-bmpcrrg0.js → worktree-0c5gn5bj.js} +14 -14
- package/dist/chunks/{worktree-51f5btjf.js → worktree-0jkw1j53.js} +5 -5
- package/dist/chunks/{worktree-xp1ejmsr.js → worktree-0z8c9324.js} +10 -10
- package/dist/chunks/{worktree-wk5z6jzv.js → worktree-11dqjexa.js} +8 -8
- package/dist/chunks/{worktree-mgn7rzyp.js → worktree-12egnza5.js} +7 -7
- package/dist/chunks/{worktree-wbgjk9hv.js → worktree-18j04j79.js} +18 -18
- package/dist/chunks/{worktree-yp2x3t23.js → worktree-1acjjqhc.js} +3 -3
- package/dist/chunks/{worktree-gqyhxdpp.js → worktree-1ay3g9r2.js} +20 -20
- package/dist/chunks/{worktree-y3eyw53f.js → worktree-1d5d9h0t.js} +4 -4
- package/dist/chunks/{worktree-49asqp28.js → worktree-1ddefpyr.js} +17 -17
- package/dist/chunks/{worktree-3bpj6ceb.js → worktree-1gjr3geq.js} +12 -12
- package/dist/chunks/{worktree-jjm18tvm.js → worktree-1gvkbw2g.js} +62 -62
- package/dist/chunks/{worktree-70eyy827.js → worktree-1rpj62d2.js} +15 -15
- package/dist/chunks/{worktree-90wr37ay.js → worktree-1rqq8hq9.js} +4 -4
- package/dist/chunks/{worktree-qqtwvk4z.js → worktree-23pqda6t.js} +3 -3
- package/dist/chunks/{worktree-0k4c1wrr.js → worktree-24jxm842.js} +14 -14
- package/dist/chunks/{worktree-45fhr245.js → worktree-28zap5n3.js} +20 -20
- package/dist/chunks/{worktree-bjb9b4mn.js → worktree-2a2ncbm6.js} +14 -14
- package/dist/chunks/{worktree-m1njnqbf.js → worktree-2k4q641w.js} +4 -4
- package/dist/chunks/{worktree-vcxwaaxe.js → worktree-2sz976k1.js} +42 -42
- package/dist/chunks/{worktree-efkf1zjd.js → worktree-2tk7wazy.js} +12 -12
- package/dist/chunks/{worktree-3a83a0n4.js → worktree-30846h32.js} +7 -7
- package/dist/chunks/{worktree-6d4vre1e.js → worktree-35dwm1he.js} +29 -29
- package/dist/chunks/{worktree-7zsm68gg.js → worktree-37zv03r8.js} +9 -9
- package/dist/chunks/{worktree-kcyks54t.js → worktree-3bapk1gs.js} +9 -9
- package/dist/chunks/{worktree-1mrwszqa.js → worktree-3bvwqdfr.js} +4 -4
- package/dist/chunks/{worktree-b6rq28qr.js → worktree-3ckfe0gn.js} +4 -4
- package/dist/chunks/{worktree-8dz1vcbc.js → worktree-3dfzya26.js} +19 -19
- package/dist/chunks/{worktree-g8hymqtc.js → worktree-3eeqg3ch.js} +28 -28
- package/dist/chunks/{worktree-sxnvhwv1.js → worktree-3n1pthd2.js} +7 -7
- package/dist/chunks/{worktree-3w2b2yj4.js → worktree-3w0fmcng.js} +3 -3
- package/dist/chunks/{worktree-zqx8wcya.js → worktree-44ke2mar.js} +3 -3
- package/dist/chunks/{worktree-wxkrd8sq.js → worktree-47rg4hp1.js} +11 -11
- package/dist/chunks/{worktree-dkgmj00c.js → worktree-49efg6hh.js} +13 -13
- package/dist/chunks/{worktree-n8c291r7.js → worktree-4jv7e9dq.js} +6 -6
- package/dist/chunks/{worktree-tvfyrrh0.js → worktree-530x511h.js} +13 -22
- package/dist/chunks/{worktree-f9yrz0nb.js → worktree-56400ha2.js} +9 -9
- package/dist/chunks/{worktree-s197j8aa.js → worktree-5j6r72e5.js} +1 -1
- package/dist/chunks/{worktree-qxds82wp.js → worktree-5pj5yv8y.js} +12 -12
- package/dist/chunks/{worktree-e3qxr5gk.js → worktree-5qd3pb7m.js} +2 -2
- package/dist/chunks/{worktree-s0agc963.js → worktree-5we7r0eg.js} +6 -6
- package/dist/chunks/{worktree-tnp1bzfj.js → worktree-5xzwezzv.js} +35 -35
- package/dist/chunks/worktree-6a3y69ev.js +26 -0
- package/dist/chunks/{worktree-zxj82hcj.js → worktree-6dpcvaj3.js} +29 -29
- package/dist/chunks/{worktree-z8j5hfwf.js → worktree-6e4g0mmd.js} +6 -6
- package/dist/chunks/{worktree-at5d07az.js → worktree-6hh8tjw2.js} +3 -3
- package/dist/chunks/{worktree-qmwxv1vq.js → worktree-6j2syc76.js} +1 -1
- package/dist/chunks/worktree-6kdq0pjd.js +4 -0
- package/dist/chunks/{worktree-6tm94hss.js → worktree-6pbgrpz1.js} +3 -3
- package/dist/chunks/{worktree-59km82at.js → worktree-6skacn9s.js} +30 -30
- package/dist/chunks/{worktree-agnb6b4y.js → worktree-6snte3jf.js} +1 -1
- package/dist/chunks/{worktree-eq1pz5kg.js → worktree-73tb2d7t.js} +2 -2
- package/dist/chunks/{worktree-1sqm6k0j.js → worktree-75wt9k9g.js} +3 -3
- package/dist/chunks/{worktree-fcrkznn8.js → worktree-7dqw4kz8.js} +4 -4
- package/dist/chunks/{worktree-19x32724.js → worktree-7h6v3mqz.js} +83 -83
- package/dist/chunks/{worktree-q60qjx67.js → worktree-81pca9ss.js} +14 -14
- package/dist/chunks/{worktree-g3mn8s68.js → worktree-83xp5e3e.js} +1 -1
- package/dist/chunks/{worktree-mkccyhb3.js → worktree-8c185vwj.js} +7 -7
- package/dist/chunks/{worktree-pjgmd77a.js → worktree-8hcfs6jd.js} +20 -20
- package/dist/chunks/{worktree-gr3j20z5.js → worktree-8jgc84wx.js} +9 -9
- package/dist/chunks/{worktree-71a6hfp5.js → worktree-8kzgg7jc.js} +18 -18
- package/dist/chunks/{worktree-7kdkzndg.js → worktree-8mqynssf.js} +22 -22
- package/dist/chunks/{worktree-q5ampng9.js → worktree-8wgc21mb.js} +42 -42
- package/dist/chunks/{worktree-jyetza0x.js → worktree-90j31e8f.js} +43 -43
- package/dist/chunks/{worktree-7kxej2em.js → worktree-92frf9bc.js} +17 -17
- package/dist/chunks/{worktree-xp0zd8np.js → worktree-9724qm49.js} +19 -19
- package/dist/chunks/{worktree-w4sgba9p.js → worktree-9d5hdd7t.js} +29 -29
- package/dist/chunks/{worktree-5xtgfte3.js → worktree-9hn6k4tm.js} +7 -7
- package/dist/chunks/{worktree-6stnv1c0.js → worktree-a68v6zx7.js} +9 -9
- package/dist/chunks/{worktree-yfaww8xg.js → worktree-ackyxpj1.js} +9 -9
- package/dist/chunks/{worktree-de7zd4tj.js → worktree-adpqb9ts.js} +11 -11
- package/dist/chunks/{worktree-t0fn9gk0.js → worktree-af4q118x.js} +16 -16
- package/dist/chunks/{worktree-ank7hx1v.js → worktree-an1ythzp.js} +17 -17
- package/dist/chunks/{worktree-4jk0qxj4.js → worktree-ax36eyar.js} +7 -7
- package/dist/chunks/{worktree-b1wsctr3.js → worktree-b8gtgm9a.js} +13 -13
- package/dist/chunks/{worktree-pvrysvhk.js → worktree-ba2a1zxc.js} +45 -45
- package/dist/chunks/{worktree-jvf3yq6v.js → worktree-baaqp4zd.js} +3 -3
- package/dist/chunks/{worktree-ve4pfa0n.js → worktree-bct739vz.js} +3 -3
- package/dist/chunks/{worktree-29xxxnfh.js → worktree-bd4e439d.js} +14 -14
- package/dist/chunks/{worktree-am5t4rbj.js → worktree-bggj1spx.js} +42 -42
- package/dist/chunks/{worktree-0w85qfcj.js → worktree-bk3tsm7g.js} +6 -6
- package/dist/chunks/{worktree-7k0xwvvh.js → worktree-bnq6mr9x.js} +6 -6
- package/dist/chunks/{worktree-mwwsh29t.js → worktree-bxy5ajfv.js} +5 -5
- package/dist/chunks/{worktree-ryt7pzqc.js → worktree-bz85s9hh.js} +1 -1
- package/dist/chunks/{worktree-dtfx1akz.js → worktree-c8a4jtjn.js} +9 -9
- package/dist/chunks/{worktree-ky8bwrva.js → worktree-cd7c4bdb.js} +11 -11
- package/dist/chunks/{worktree-3j8s7hm7.js → worktree-cejdfrv6.js} +16 -16
- package/dist/chunks/{worktree-8d55p9gd.js → worktree-cem17g90.js} +39 -39
- package/dist/chunks/{worktree-bajakh74.js → worktree-cq37gk0t.js} +1 -1
- package/dist/chunks/{worktree-hb7v7ywc.js → worktree-cs064az4.js} +6 -6
- package/dist/chunks/{worktree-n9ktaep2.js → worktree-cscxcgsg.js} +10 -10
- package/dist/chunks/{worktree-p3xeg7xc.js → worktree-d0mt1vja.js} +8 -8
- package/dist/chunks/{worktree-nm76w6gv.js → worktree-d2ax4fej.js} +9 -9
- package/dist/chunks/{worktree-9racvqph.js → worktree-d4q36r9n.js} +19 -19
- package/dist/chunks/{worktree-a881zpfh.js → worktree-d737nyfv.js} +7 -7
- package/dist/chunks/{worktree-tj6nafm8.js → worktree-d7m6g9v6.js} +1 -1
- package/dist/chunks/{worktree-mpmcaacv.js → worktree-d8c3ffv1.js} +7 -7
- package/dist/chunks/{worktree-2w6fc0zt.js → worktree-dc6tzc5b.js} +5 -5
- package/dist/chunks/{worktree-24ddpwsm.js → worktree-dgrza9ek.js} +10 -10
- package/dist/chunks/{worktree-9pj1d4f4.js → worktree-dh787sn1.js} +22 -22
- package/dist/chunks/{worktree-1218kfkx.js → worktree-dje2ev5t.js} +3 -3
- package/dist/chunks/{worktree-c765mh8b.js → worktree-djszqvmq.js} +7 -7
- package/dist/chunks/{worktree-p3d2pjj7.js → worktree-dk764wf3.js} +19 -19
- package/dist/chunks/{worktree-mtqf31pt.js → worktree-dmabgk2v.js} +10 -10
- package/dist/chunks/{worktree-y71avatq.js → worktree-dpkg50ah.js} +3 -3
- package/dist/chunks/{worktree-h21m3h6n.js → worktree-dsymck0a.js} +13 -6
- package/dist/chunks/{worktree-baasw9zs.js → worktree-dz8x4rxg.js} +3 -3
- package/dist/chunks/{worktree-bkcnheq0.js → worktree-e63kay3b.js} +30 -30
- package/dist/chunks/{worktree-yasnnz0a.js → worktree-ef1sz92s.js} +16 -16
- package/dist/chunks/{worktree-8emwh38k.js → worktree-ep7dn8jk.js} +11 -11
- package/dist/chunks/{worktree-e5fd240w.js → worktree-f06r0vcj.js} +7 -7
- package/dist/chunks/{worktree-6zwr9q5m.js → worktree-f0svag7k.js} +49 -49
- package/dist/chunks/{worktree-4xkxc3t4.js → worktree-f2da3tzf.js} +16 -16
- package/dist/chunks/{worktree-3801kdgp.js → worktree-f62qkzqr.js} +3 -3
- package/dist/chunks/{worktree-1rc4386p.js → worktree-fbf3se4r.js} +20 -20
- package/dist/chunks/{worktree-gjnhxr8h.js → worktree-frr8ma5g.js} +13 -13
- package/dist/chunks/{worktree-exg3tbdv.js → worktree-gg184eje.js} +16 -16
- package/dist/chunks/{worktree-k8zyetr0.js → worktree-gn0qs0ez.js} +31 -31
- package/dist/chunks/worktree-gqqsgceb.js +252 -0
- package/dist/chunks/{worktree-b0twfynp.js → worktree-gzhks085.js} +13 -13
- package/dist/chunks/{worktree-sra9araw.js → worktree-hkfg6fzm.js} +3 -3
- package/dist/chunks/{worktree-218c6ez9.js → worktree-hmkf95c9.js} +8 -8
- package/dist/chunks/{worktree-g0t6d1hq.js → worktree-j93fbyzs.js} +13 -13
- package/dist/chunks/{worktree-75ah400z.js → worktree-jaek9wet.js} +25 -25
- package/dist/chunks/{worktree-h36ryfv7.js → worktree-jhyw6xje.js} +17 -17
- package/dist/chunks/{worktree-ht5y0zrb.js → worktree-jqh9b0xq.js} +4 -4
- package/dist/chunks/{worktree-28cf9raz.js → worktree-jtz05rza.js} +40 -40
- package/dist/chunks/{worktree-pd15fgp8.js → worktree-jvdmeb00.js} +19 -19
- package/dist/chunks/{worktree-xgpk3fc4.js → worktree-jyaxjask.js} +21 -21
- package/dist/chunks/{worktree-wfsp5hpn.js → worktree-k03db8z3.js} +15 -15
- package/dist/chunks/{worktree-h51w75cp.js → worktree-k03y7cqw.js} +41 -41
- package/dist/chunks/{worktree-e6r8tc5b.js → worktree-k39q4sf2.js} +22 -22
- package/dist/chunks/{worktree-d34gzn5d.js → worktree-k78r674t.js} +31 -31
- package/dist/chunks/{worktree-28544jz8.js → worktree-k7zs4xcs.js} +4 -4
- package/dist/chunks/{worktree-gmkwjvek.js → worktree-kaagn64m.js} +24 -24
- package/dist/chunks/{worktree-287pmr97.js → worktree-kccwy87p.js} +12 -12
- package/dist/chunks/{worktree-czys4tjs.js → worktree-knhmpdmt.js} +10 -10
- package/dist/chunks/{worktree-5nb2d01r.js → worktree-ky3seynh.js} +1 -1
- package/dist/chunks/{worktree-9w5k7bqz.js → worktree-m183j3hp.js} +5 -5
- package/dist/chunks/{worktree-tnk6yr9e.js → worktree-m2g4r6ez.js} +8 -8
- package/dist/chunks/{worktree-sjf3tctt.js → worktree-m2zz6rv6.js} +8 -8
- package/dist/chunks/{worktree-nvkemvkp.js → worktree-m81pe42t.js} +17 -17
- package/dist/chunks/{worktree-t192gekf.js → worktree-mc5yagq3.js} +16 -16
- package/dist/chunks/{worktree-6a90knky.js → worktree-mdpcq19b.js} +10 -10
- package/dist/chunks/{worktree-t9v9zp6z.js → worktree-mhyqqp67.js} +22 -22
- package/dist/chunks/{worktree-s1pqek41.js → worktree-mn14093j.js} +10 -10
- package/dist/chunks/{worktree-246ka326.js → worktree-mnzq238h.js} +12 -12
- package/dist/chunks/{worktree-6h7j3cy3.js → worktree-mtthj00s.js} +55 -55
- package/dist/chunks/{worktree-5gczjwyk.js → worktree-myvehfjc.js} +27 -27
- package/dist/chunks/{worktree-t3jywk8f.js → worktree-n48a3wtd.js} +6 -6
- package/dist/chunks/{worktree-gxgynv4w.js → worktree-n4efq2p3.js} +14 -14
- package/dist/chunks/{worktree-kt1vcyar.js → worktree-ncv4r2bp.js} +15 -15
- package/dist/chunks/{worktree-y23sf9zr.js → worktree-ng12e52f.js} +4 -4
- package/dist/chunks/{worktree-vay95fzq.js → worktree-nmb2jxzm.js} +14 -14
- package/dist/chunks/{worktree-k5xfnnfv.js → worktree-nnc51gs2.js} +10 -10
- package/dist/chunks/{worktree-fs0skkb3.js → worktree-nq9nxgcr.js} +22 -22
- package/dist/chunks/{worktree-t51qk8jz.js → worktree-nrdmrqsx.js} +20 -20
- package/dist/chunks/{worktree-cy5zkmv9.js → worktree-ntn63d0h.js} +20 -20
- package/dist/chunks/{worktree-aw0v1j7y.js → worktree-nwwa308c.js} +6 -6
- package/dist/chunks/{worktree-gna9rzrz.js → worktree-nye5f74f.js} +9 -9
- package/dist/chunks/{worktree-w9wca7t8.js → worktree-p8d83q2f.js} +13 -13
- package/dist/chunks/{worktree-axxg5j10.js → worktree-pd8tqg4h.js} +25 -25
- package/dist/chunks/{worktree-has2vgfm.js → worktree-pnd0g9pf.js} +4 -4
- package/dist/chunks/{worktree-fhs97t90.js → worktree-pnv527nz.js} +7 -7
- package/dist/chunks/{worktree-x7vm5fej.js → worktree-pvr04t1x.js} +16 -16
- package/dist/chunks/{worktree-g5x507wm.js → worktree-pydpba5n.js} +173 -173
- package/dist/chunks/{worktree-57a2pt8j.js → worktree-q17qcqnk.js} +9 -9
- package/dist/chunks/{worktree-bs95t40t.js → worktree-q7hnyx62.js} +8 -8
- package/dist/chunks/{worktree-xsny6hxq.js → worktree-qd60702v.js} +13 -13
- package/dist/chunks/{worktree-jthyzkpc.js → worktree-qp8jc7h3.js} +7 -7
- package/dist/chunks/{worktree-c4gmtxpm.js → worktree-qpx06cdk.js} +26 -26
- package/dist/chunks/{worktree-zjp9qjhq.js → worktree-qrq3k7hv.js} +30 -30
- package/dist/chunks/{worktree-70x5mss4.js → worktree-qvb4r7jj.js} +24 -24
- package/dist/chunks/{worktree-9ymcqn9e.js → worktree-r4v7sw5j.js} +1 -1
- package/dist/chunks/{worktree-e982br48.js → worktree-r5ec8tk0.js} +2 -2
- package/dist/chunks/{worktree-34g626t1.js → worktree-rc43q7gj.js} +24 -24
- package/dist/chunks/{worktree-sbd1zx3a.js → worktree-rd8gh7p5.js} +3 -3
- package/dist/chunks/{worktree-t550f9t1.js → worktree-rhjbct0v.js} +3 -3
- package/dist/chunks/{worktree-6srgc5f7.js → worktree-rr217x4v.js} +22 -22
- package/dist/chunks/{worktree-czf046f0.js → worktree-rvemz3qf.js} +7 -7
- package/dist/chunks/{worktree-tjhrsaf7.js → worktree-s3nqtxxj.js} +25 -25
- package/dist/chunks/{worktree-3ythc6yv.js → worktree-shh6fz4q.js} +3 -3
- package/dist/chunks/{worktree-cye10yf4.js → worktree-sjwxqtfk.js} +12 -12
- package/dist/chunks/{worktree-jzrbce6w.js → worktree-smyb6yf6.js} +17 -17
- package/dist/chunks/{worktree-ht4gnk1k.js → worktree-smzykshb.js} +5 -5
- package/dist/chunks/{worktree-fc1cvdk9.js → worktree-srq7twvs.js} +20 -20
- package/dist/chunks/{worktree-11s59a84.js → worktree-t4ke9ew4.js} +8 -8
- package/dist/chunks/{worktree-ph842b28.js → worktree-tjedn1bk.js} +3 -3
- package/dist/chunks/{worktree-kvshrfkj.js → worktree-tnx6ann6.js} +1 -1
- package/dist/chunks/{worktree-c7t7ttxe.js → worktree-v3n2aj7f.js} +30 -30
- package/dist/chunks/{worktree-sm965ndy.js → worktree-w3x9v1nk.js} +7 -7
- package/dist/chunks/{worktree-0787dcsh.js → worktree-w4ppdpd0.js} +8 -8
- package/dist/chunks/{worktree-3t8frjm5.js → worktree-w5npym6y.js} +3 -3
- package/dist/chunks/{worktree-2dwhn3my.js → worktree-w5xsrbnb.js} +28 -28
- package/dist/chunks/{worktree-xbgsghrj.js → worktree-wder9crj.js} +13 -13
- package/dist/chunks/{worktree-ccmdabta.js → worktree-wkt0yqpq.js} +3 -3
- package/dist/chunks/{worktree-ckdz0ad0.js → worktree-wv5sfath.js} +8 -8
- package/dist/chunks/{worktree-y6a4cmqh.js → worktree-wxffcvth.js} +7 -7
- package/dist/chunks/{worktree-yy256scs.js → worktree-x2eykcsk.js} +32 -32
- package/dist/chunks/{worktree-wxqxrmdn.js → worktree-x96eb595.js} +23 -23
- package/dist/chunks/{worktree-ns90ddce.js → worktree-x9w52knk.js} +19 -19
- package/dist/chunks/{worktree-z1y70ee3.js → worktree-x9wq683r.js} +1 -1
- package/dist/chunks/{worktree-qqeeq2t9.js → worktree-xfkkasph.js} +6 -6
- package/dist/chunks/{worktree-wt5y36s4.js → worktree-xk8j9t28.js} +19 -19
- package/dist/chunks/{worktree-2463j9pj.js → worktree-xrm9dfb1.js} +14 -14
- package/dist/chunks/{worktree-rj6d5p5e.js → worktree-xxynqx5z.js} +3 -3
- package/dist/chunks/{worktree-w16pgjcx.js → worktree-xzbq4t52.js} +32 -32
- package/dist/chunks/{worktree-nrkjg2yg.js → worktree-y1ygrsmg.js} +2 -2
- package/dist/chunks/{worktree-1rk9t83t.js → worktree-y7abhsg2.js} +9 -9
- package/dist/chunks/{worktree-bmpepz07.js → worktree-y9854d0h.js} +5 -5
- package/dist/chunks/{worktree-6hqwt1nw.js → worktree-ydg01c3p.js} +12 -12
- package/dist/chunks/{worktree-54ptgeb2.js → worktree-yjmcsphm.js} +22 -22
- package/dist/chunks/{worktree-fvsyg6qk.js → worktree-yjptyezs.js} +3 -3
- package/dist/chunks/{worktree-cwn9cw75.js → worktree-ykze60hc.js} +15 -15
- package/dist/chunks/{worktree-s4enseaf.js → worktree-yrznvahk.js} +1 -1
- package/dist/chunks/{worktree-xbp7gjm9.js → worktree-z2cyrkj5.js} +11 -11
- package/dist/chunks/{worktree-8b4cgdt8.js → worktree-z5z5sd66.js} +24 -24
- package/dist/chunks/{worktree-29x78va6.js → worktree-z63w68vq.js} +4 -4
- package/dist/chunks/{worktree-bnw2aka3.js → worktree-z9yzr4jj.js} +21 -21
- package/dist/chunks/{worktree-vtmgncrs.js → worktree-zdfdg6f3.js} +309 -309
- package/dist/chunks/{worktree-ttca00zt.js → worktree-zh8xk7my.js} +14 -14
- package/dist/codemode/instructions.js +8 -8
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +68 -68
- package/dist/config/discovery.js +62 -62
- package/dist/config/normalize.js +82 -82
- package/dist/config/plugin/agent.js +95 -95
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +128 -128
- package/dist/config/plugin/compatibility.js +112 -112
- package/dist/config/plugin/formatter.js +96 -96
- package/dist/config/plugin/image.js +95 -95
- package/dist/config/plugin/instruction.js +68 -68
- package/dist/config/plugin/location-watcher.js +95 -95
- package/dist/config/plugin/mcp.js +102 -102
- package/dist/config/plugin/policy.js +95 -95
- package/dist/config/plugin/provider.js +95 -95
- package/dist/config/plugin/reference.js +97 -97
- package/dist/config/plugin/shell.js +97 -97
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +115 -115
- package/dist/config/plugin/snapshot.js +95 -95
- package/dist/config/plugin/source.js +98 -98
- package/dist/config/plugin/tool-output.js +97 -97
- package/dist/config/plugin/websearch.js +96 -96
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config/variable.js +2 -2
- package/dist/config.js +101 -101
- package/dist/credential.js +67 -67
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- 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 +11 -11
- 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 +237 -237
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +69 -69
- package/dist/environment/index.js +71 -71
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +70 -70
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +187 -187
- package/dist/filesystem/search.js +77 -77
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +74 -74
- package/dist/form.js +66 -66
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +79 -79
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +77 -77
- package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +311 -311
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +67 -67
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +68 -68
- package/dist/job.js +62 -62
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +80 -80
- package/dist/location-mutation.js +31 -31
- 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 +18 -18
- package/dist/mcp/index.js +77 -77
- package/dist/mcp/instructions.js +95 -95
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +66 -66
- package/dist/modal/models.js +77 -77
- package/dist/model-resolver.js +76 -76
- package/dist/model.js +76 -76
- package/dist/models-dev.js +84 -84
- package/dist/permission/saved.js +62 -62
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +63 -63
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +74 -74
- package/dist/plugin/compaction.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +180 -180
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +283 -283
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +73 -73
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +68 -68
- package/dist/plugin/provider/azure.js +94 -94
- package/dist/plugin/provider/cloudflare-ai-gateway.js +93 -93
- package/dist/plugin/provider/cloudflare-workers-ai.js +93 -93
- package/dist/plugin/provider/configured.js +92 -92
- package/dist/plugin/provider/digitalocean.js +70 -70
- package/dist/plugin/provider/github-copilot.js +71 -71
- package/dist/plugin/provider/gitlab.js +69 -69
- package/dist/plugin/provider/google-vertex.js +68 -68
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +95 -95
- package/dist/plugin/provider/modal.js +70 -70
- package/dist/plugin/provider/ollama.js +95 -95
- package/dist/plugin/provider/openai.js +69 -69
- package/dist/plugin/provider/opencode.js +70 -70
- package/dist/plugin/provider/openrouter.js +69 -69
- package/dist/plugin/provider/poe.js +61 -61
- package/dist/plugin/provider/prompt-cache-key.js +68 -68
- package/dist/plugin/provider/sap-ai-core.js +68 -68
- package/dist/plugin/provider/snowflake-cortex.js +94 -94
- package/dist/plugin/provider/vercel.js +68 -68
- package/dist/plugin/provider/vllm.js +95 -95
- package/dist/plugin/provider/xai.js +69 -69
- package/dist/plugin/provider.js +125 -125
- package/dist/plugin/sdk.js +62 -62
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +111 -111
- package/dist/plugin/supervisor.js +300 -300
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +65 -65
- package/dist/plugin/vcs/hg.js +65 -65
- package/dist/plugin/warming.js +94 -94
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +4 -4
- package/dist/plugin.js +192 -192
- package/dist/project/schema.js +5 -5
- package/dist/project.js +66 -66
- package/dist/provider.js +75 -75
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +74 -74
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +71 -71
- package/dist/repository-cache.js +63 -63
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +66 -66
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +119 -119
- package/dist/session/diff.js +65 -65
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +97 -97
- package/dist/session/generate.js +118 -118
- 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 +61 -61
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +74 -74
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +99 -99
- package/dist/session/projector.js +63 -63
- package/dist/session/prompt.js +79 -79
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +66 -66
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +190 -190
- package/dist/session/runner/model.js +76 -76
- package/dist/session/runner/retry.js +85 -85
- package/dist/session/runner/step.js +95 -95
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +138 -138
- package/dist/session/shell.js +107 -107
- package/dist/session/skill.js +77 -77
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +65 -65
- package/dist/session/subagent-job.js +173 -173
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +122 -122
- package/dist/session/to-session-error.js +84 -84
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +181 -181
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +110 -110
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +81 -81
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +68 -68
- package/dist/tool/mcp.js +98 -98
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +93 -93
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +86 -86
- package/dist/tool/plugin/question.js +79 -79
- package/dist/tool/plugin/read.js +94 -94
- package/dist/tool/plugin/shell.js +181 -181
- package/dist/tool/plugin/skill.js +79 -79
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/webfetch.js +80 -80
- package/dist/tool/plugin/websearch.js +87 -87
- package/dist/tool/plugin/write.js +92 -92
- package/dist/tool/read-filesystem.js +74 -74
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- 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 +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +69 -69
- 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/variant.js +69 -69
- package/dist/vcs.js +68 -68
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/strategies.js +67 -67
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/worktree-0mesazry.js +0 -4
- package/dist/chunks/worktree-6zs4aaxp.js +0 -252
- package/dist/chunks/worktree-bdmzhav8.js +0 -26
- /package/dist/chunks/{worktree-zvffvgzw.js → worktree-f40tx9v5.js} +0 -0
- /package/dist/chunks/{worktree-vm7xxkph.js → worktree-ja2xmr49.js} +0 -0
- /package/dist/chunks/{worktree-nzks3jc8.js → worktree-k3c624dm.js} +0 -0
- /package/dist/chunks/{worktree-j34dxvpb.js → worktree-ma48de29.js} +0 -0
- /package/dist/chunks/{worktree-64mbz47k.js → worktree-wgz7hchk.js} +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./worktree-
|
|
3
|
+
} from "./worktree-0z8c9324.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./worktree-
|
|
6
|
+
} from "./worktree-r5ec8tk0.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./worktree-
|
|
9
|
+
Event20,
|
|
10
|
+
Service79
|
|
11
|
+
} from "./worktree-s3nqtxxj.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./worktree-
|
|
15
|
+
Service74
|
|
16
|
+
} from "./worktree-fbf3se4r.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
20
|
} from "./worktree-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./worktree-
|
|
22
|
+
ID13
|
|
23
|
+
} from "./worktree-z5z5sd66.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./worktree-
|
|
26
|
+
} from "./worktree-6e4g0mmd.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID13.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID14.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
56
|
+
const credentials = yield* Service79;
|
|
57
|
+
const integrations = yield* Service74;
|
|
58
58
|
const bus = yield* Service82;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
@@ -184,7 +184,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
yield* bus.subscribe(
|
|
187
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
188
188
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
189
189
|
const token = envToken();
|
|
190
190
|
if (token)
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./worktree-
|
|
3
|
+
} from "./worktree-r5ec8tk0.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./worktree-
|
|
6
|
+
Event20
|
|
7
|
+
} from "./worktree-s3nqtxxj.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./worktree-
|
|
11
|
+
} from "./worktree-fbf3se4r.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
14
|
} from "./worktree-h6r3nrb9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
mergeOverlay2,
|
|
18
18
|
mergeHeaders2
|
|
19
|
-
} from "./worktree-
|
|
19
|
+
} from "./worktree-z5z5sd66.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
ID3,
|
|
22
|
+
Input13,
|
|
23
23
|
Response2
|
|
24
|
-
} from "./worktree-
|
|
24
|
+
} from "./worktree-xk8j9t28.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/opencode.ts
|
|
27
27
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -35,7 +35,7 @@ var methodID = MethodID2.make("device");
|
|
|
35
35
|
var RemoteResponse = Schema.Struct({
|
|
36
36
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
37
37
|
websearch: Schema.Struct({
|
|
38
|
-
providerID:
|
|
38
|
+
providerID: ID3
|
|
39
39
|
}).pipe(Schema.optional)
|
|
40
40
|
});
|
|
41
41
|
var Device = Schema.Struct({
|
|
@@ -57,7 +57,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
57
57
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
58
58
|
function oauth(http) {
|
|
59
59
|
return {
|
|
60
|
-
integrationID:
|
|
60
|
+
integrationID: ID14.make("opencode"),
|
|
61
61
|
method: {
|
|
62
62
|
id: methodID,
|
|
63
63
|
type: "oauth",
|
|
@@ -137,7 +137,7 @@ var OpencodePlugin2 = define({
|
|
|
137
137
|
providers.update(providerID, (provider) => {
|
|
138
138
|
if (source && source.provider !== provider)
|
|
139
139
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
140
|
-
provider.integrationID =
|
|
140
|
+
provider.integrationID = ID14.make("opencode");
|
|
141
141
|
if (item.canonical !== undefined)
|
|
142
142
|
provider.canonical = item.canonical;
|
|
143
143
|
if (item.name !== undefined)
|
|
@@ -207,7 +207,7 @@ var OpencodePlugin2 = define({
|
|
|
207
207
|
sourceConnection: snapshot.connection
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
const item = providers.get(
|
|
210
|
+
const item = providers.get(ID13.opencode);
|
|
211
211
|
if (!item)
|
|
212
212
|
return;
|
|
213
213
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -219,7 +219,7 @@ var OpencodePlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
});
|
|
221
221
|
yield* ctx.model.transform((models) => {
|
|
222
|
-
const item = models.provider.get(
|
|
222
|
+
const item = models.provider.get(ID13.opencode);
|
|
223
223
|
if (!item)
|
|
224
224
|
return;
|
|
225
225
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -253,7 +253,7 @@ var OpencodePlugin2 = define({
|
|
|
253
253
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
254
254
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
255
255
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
256
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
256
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
257
257
|
query: input.query,
|
|
258
258
|
providerID: descriptor.providerID
|
|
259
259
|
}));
|
|
@@ -274,7 +274,7 @@ var OpencodePlugin2 = define({
|
|
|
274
274
|
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
275
275
|
});
|
|
276
276
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
277
|
-
yield* bus.subscribe(
|
|
277
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
278
278
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
279
279
|
})
|
|
280
280
|
});
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_driver = {};
|
|
7
7
|
__export(exports_driver, {
|
|
8
8
|
Binding: () => Binding2,
|
|
9
|
-
Error: () =>
|
|
9
|
+
Error: () => Error4,
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make19,
|
|
14
|
+
node: () => node62,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -19,7 +19,7 @@ import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
20
20
|
var Binding2 = Schema.Record(Schema.String, Schema.Json);
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Error4 extends Schema.TaggedError()("WorkspaceDriver.Error", {
|
|
23
23
|
message: Schema.optional(Schema.String),
|
|
24
24
|
cause: Schema.optional(Schema.Defect())
|
|
25
25
|
}) {
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make19 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node62 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2,
|
|
49
|
+
export { Binding2, Error4, ProviderNotFound2, make19, RegistryService2, registry2, registryNode2, node62, exports_driver };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./worktree-
|
|
4
|
+
} from "./worktree-0029brse.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
7
|
} from "./worktree-f828m53h.js";
|
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
16
|
+
ID: () => ID9,
|
|
17
|
+
Info: () => Info21,
|
|
18
18
|
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service62,
|
|
21
|
+
node: () => node65
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID9 = PermissionSaved.ID;
|
|
29
|
+
var Info21 = PermissionSaved.Info;
|
|
30
30
|
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -36,9 +36,9 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service62 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
42
42
|
const db = (yield* Service83).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID9.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service62.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node65 = makeGlobalNode({ service: Service62, layer, deps: [node87] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID9, Info21, ListInput4, AddInput2, Service62, node65, exports_saved };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./worktree-
|
|
4
|
+
} from "./worktree-r5ec8tk0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./worktree-
|
|
6
|
+
Service76,
|
|
7
|
+
node79
|
|
8
|
+
} from "./worktree-ncv4r2bp.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./worktree-
|
|
10
|
+
Service48,
|
|
11
|
+
node51
|
|
12
|
+
} from "./worktree-dk764wf3.js";
|
|
13
13
|
import {
|
|
14
14
|
cleanup3
|
|
15
15
|
} from "./worktree-gd4qta3r.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service60,
|
|
18
18
|
args2,
|
|
19
|
-
|
|
20
|
-
} from "./worktree-
|
|
19
|
+
node63
|
|
20
|
+
} from "./worktree-5pj5yv8y.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./worktree-
|
|
22
|
+
Service67,
|
|
23
|
+
node70
|
|
24
|
+
} from "./worktree-30846h32.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./worktree-
|
|
26
|
+
Service44,
|
|
27
|
+
node47
|
|
28
|
+
} from "./worktree-w3x9v1nk.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionSchema2
|
|
31
|
-
} from "./worktree-
|
|
31
|
+
} from "./worktree-xxynqx5z.js";
|
|
32
32
|
import {
|
|
33
33
|
latest2,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from "./worktree-
|
|
34
|
+
Service46,
|
|
35
|
+
node49
|
|
36
|
+
} from "./worktree-jtz05rza.js";
|
|
37
37
|
import {
|
|
38
38
|
MAX_LINES2,
|
|
39
39
|
MAX_BYTES2
|
|
40
|
-
} from "./worktree-
|
|
40
|
+
} from "./worktree-t4ke9ew4.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./worktree-9rqn6x4v.js";
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
var exports_shell4 = {};
|
|
47
47
|
__export(exports_shell4, {
|
|
48
48
|
DIRECTORY: () => DIRECTORY2,
|
|
49
|
-
NotFoundError: () =>
|
|
49
|
+
NotFoundError: () => NotFoundError7,
|
|
50
50
|
RETENTION: () => RETENTION2,
|
|
51
|
-
Service: () =>
|
|
51
|
+
Service: () => Service43,
|
|
52
52
|
Shell: () => exports_shell4,
|
|
53
53
|
cleanup: () => cleanup2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node46
|
|
55
55
|
});
|
|
56
56
|
import path from "path";
|
|
57
57
|
import { Context, Deferred, Duration, Effect, Fiber, Latch, Layer, Schema, Schedule, Stream } from "effect";
|
|
@@ -62,7 +62,7 @@ import { AppProcess } from "@opencode/util/process";
|
|
|
62
62
|
import { makeGlobalNode, makeLocationNode } from "@opencode/util/effect/app-node";
|
|
63
63
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
64
64
|
import { Global } from "@opencode/util/global";
|
|
65
|
-
class
|
|
65
|
+
class NotFoundError7 extends Schema.TaggedError()("Shell.NotFoundError", {
|
|
66
66
|
id: Shell.ID
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
@@ -70,7 +70,7 @@ var EXITED_LIMIT = 25;
|
|
|
70
70
|
var RETENTION2 = Duration.days(7);
|
|
71
71
|
var DIRECTORY2 = "shell";
|
|
72
72
|
|
|
73
|
-
class
|
|
73
|
+
class Service43 extends Context.Service()("@opencode/Shell") {
|
|
74
74
|
}
|
|
75
75
|
var cleanup2 = Effect.fn("Shell.cleanup")(function* () {
|
|
76
76
|
const fs = yield* FSUtil.Service;
|
|
@@ -86,15 +86,15 @@ var cleanupNode = makeGlobalNode({
|
|
|
86
86
|
layer: cleanupLayer,
|
|
87
87
|
deps: [FSUtil.node, Global.node]
|
|
88
88
|
});
|
|
89
|
-
var layer = () => Layer.effect(
|
|
89
|
+
var layer = () => Layer.effect(Service43, Effect.gen(function* () {
|
|
90
90
|
const bus = yield* Service82;
|
|
91
|
-
const location = yield*
|
|
91
|
+
const location = yield* Service76;
|
|
92
92
|
const global = yield* Global.Service;
|
|
93
|
-
const shell = yield*
|
|
94
|
-
const environment = yield*
|
|
95
|
-
const hooks = yield*
|
|
96
|
-
const environments = yield*
|
|
97
|
-
const config = yield*
|
|
93
|
+
const shell = yield* Service60;
|
|
94
|
+
const environment = yield* Service48;
|
|
95
|
+
const hooks = yield* Service67;
|
|
96
|
+
const environments = yield* Service44;
|
|
97
|
+
const config = yield* Service46;
|
|
98
98
|
const context = yield* Effect.context();
|
|
99
99
|
const runFork = Effect.runForkWith(context);
|
|
100
100
|
const commands = new Map;
|
|
@@ -115,7 +115,7 @@ var layer = () => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
115
115
|
const require2 = Effect.fnUntraced(function* (id) {
|
|
116
116
|
const command = commands.get(id);
|
|
117
117
|
if (!command)
|
|
118
|
-
return yield* new
|
|
118
|
+
return yield* new NotFoundError7({ id });
|
|
119
119
|
return command;
|
|
120
120
|
});
|
|
121
121
|
const removeCommand = Effect.fnUntraced(function* (id) {
|
|
@@ -128,7 +128,7 @@ var layer = () => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
128
128
|
commands.delete(id);
|
|
129
129
|
if (command.timeoutFiber)
|
|
130
130
|
yield* Fiber.interrupt(command.timeoutFiber);
|
|
131
|
-
yield* Deferred.fail(command.done, new
|
|
131
|
+
yield* Deferred.fail(command.done, new NotFoundError7({ id }));
|
|
132
132
|
yield* Effect.promise(() => unlink(command.file).catch(() => {}));
|
|
133
133
|
yield* bus.publish(Shell.Event.Deleted, { id });
|
|
134
134
|
});
|
|
@@ -314,22 +314,22 @@ var layer = () => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
314
314
|
const command = yield* Deferred.await(ready);
|
|
315
315
|
return command.info;
|
|
316
316
|
});
|
|
317
|
-
return
|
|
317
|
+
return Service43.of({ create, list, get, wait, result, timeout, output, remove });
|
|
318
318
|
}));
|
|
319
|
-
var
|
|
320
|
-
service:
|
|
319
|
+
var node46 = makeLocationNode({
|
|
320
|
+
service: Service43,
|
|
321
321
|
layer: layer(),
|
|
322
322
|
deps: [
|
|
323
323
|
node86,
|
|
324
|
-
|
|
324
|
+
node79,
|
|
325
325
|
Global.node,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
node63,
|
|
327
|
+
node51,
|
|
328
|
+
node70,
|
|
329
|
+
node47,
|
|
330
|
+
node49,
|
|
331
331
|
cleanupNode
|
|
332
332
|
]
|
|
333
333
|
});
|
|
334
334
|
|
|
335
|
-
export {
|
|
335
|
+
export { NotFoundError7, RETENTION2, DIRECTORY2, Service43, cleanup2, node46, exports_shell4 };
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_runner = {};
|
|
7
7
|
__export(exports_runner, {
|
|
8
8
|
DrainResult: () => DrainResult2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service50,
|
|
10
10
|
SessionRunner: () => exports_runner
|
|
11
11
|
});
|
|
12
12
|
import { Context, Data } from "effect";
|
|
13
13
|
var DrainResult2 = Data.taggedEnum();
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service50 extends Context.Service()("@opencode/SessionRunner") {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export { DrainResult2,
|
|
18
|
+
export { DrainResult2, Service50, exports_runner };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_skills = {};
|
|
7
7
|
__export(exports_skills, {
|
|
8
8
|
ConfigSkillsV1: () => exports_skills,
|
|
9
|
-
Info: () =>
|
|
9
|
+
Info: () => Info16
|
|
10
10
|
});
|
|
11
11
|
import { Schema } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var Info16 = Schema.Struct({
|
|
13
13
|
paths: Schema.optional(Schema.Array(Schema.String)).annotate({
|
|
14
14
|
description: "Additional paths to skill folders"
|
|
15
15
|
}),
|
|
@@ -18,4 +18,4 @@ var Info18 = Schema.Struct({
|
|
|
18
18
|
})
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { Info16, exports_skills };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./worktree-
|
|
2
|
+
Service66
|
|
3
|
+
} from "./worktree-d737nyfv.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./worktree-
|
|
5
|
+
Service53
|
|
6
|
+
} from "./worktree-0jkw1j53.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./worktree-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./worktree-
|
|
12
|
+
} from "./worktree-jqh9b0xq.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./worktree-
|
|
14
|
+
Service67
|
|
15
|
+
} from "./worktree-30846h32.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./worktree-
|
|
19
|
+
} from "./worktree-wxffcvth.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./worktree-
|
|
22
|
+
Service56
|
|
23
|
+
} from "./worktree-1ay3g9r2.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./worktree-9rqn6x4v.js";
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service53;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service67;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service56;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service66;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|