@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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./worktree-
|
|
2
|
+
ID14,
|
|
3
|
+
Service74,
|
|
4
|
+
node77
|
|
5
|
+
} from "./worktree-fbf3se4r.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID13,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
modelSettings2,
|
|
13
13
|
mergeOverlay2,
|
|
14
14
|
mergeHeaders2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./worktree-
|
|
15
|
+
Service73,
|
|
16
|
+
node76
|
|
17
|
+
} from "./worktree-z5z5sd66.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./worktree-
|
|
19
|
+
Service55,
|
|
20
|
+
node57
|
|
21
|
+
} from "./worktree-nnc51gs2.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID12,
|
|
24
24
|
VariantID2,
|
|
25
25
|
Ref2,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./worktree-
|
|
26
|
+
Service72,
|
|
27
|
+
node75
|
|
28
|
+
} from "./worktree-pd8tqg4h.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
31
|
} from "./worktree-9rqn6x4v.js";
|
|
@@ -37,15 +37,15 @@ __export(exports_model_resolver, {
|
|
|
37
37
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
38
38
|
ModelInitializationError: () => ModelInitializationError3,
|
|
39
39
|
ModelResolver: () => exports_model_resolver,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service54,
|
|
41
41
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
42
42
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
43
43
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
44
44
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
45
45
|
fromCatalogModel: () => fromCatalogModel2,
|
|
46
46
|
hasPackage: () => hasPackage2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer23,
|
|
48
|
+
node: () => node56,
|
|
49
49
|
resolveModel: () => resolveModel2,
|
|
50
50
|
withVariant: () => withVariant2
|
|
51
51
|
});
|
|
@@ -55,8 +55,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
55
55
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
56
56
|
import { Npm } from "@opencode/util/npm";
|
|
57
57
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
58
|
-
providerID:
|
|
59
|
-
modelID:
|
|
58
|
+
providerID: ID13,
|
|
59
|
+
modelID: ID12,
|
|
60
60
|
variant: VariantID2
|
|
61
61
|
}) {
|
|
62
62
|
get message() {
|
|
@@ -65,8 +65,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
68
|
-
providerID:
|
|
69
|
-
modelID:
|
|
68
|
+
providerID: ID13,
|
|
69
|
+
modelID: ID12,
|
|
70
70
|
package: Schema.String
|
|
71
71
|
}) {
|
|
72
72
|
get message() {
|
|
@@ -76,8 +76,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
76
76
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
77
77
|
|
|
78
78
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
79
|
-
providerID:
|
|
80
|
-
modelID:
|
|
79
|
+
providerID: ID13,
|
|
80
|
+
modelID: ID12,
|
|
81
81
|
package: Schema.String,
|
|
82
82
|
detail: Schema.String
|
|
83
83
|
}) {
|
|
@@ -87,8 +87,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
90
|
-
providerID:
|
|
91
|
-
modelID:
|
|
90
|
+
providerID: ID13,
|
|
91
|
+
modelID: ID12,
|
|
92
92
|
package: Schema.String,
|
|
93
93
|
phase: InitializationPhase2,
|
|
94
94
|
detail: Schema.String
|
|
@@ -99,8 +99,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
102
|
-
providerID:
|
|
103
|
-
modelID:
|
|
102
|
+
providerID: ID13,
|
|
103
|
+
modelID: ID12,
|
|
104
104
|
variables: Schema.Array(Schema.String)
|
|
105
105
|
}) {
|
|
106
106
|
get message() {
|
|
@@ -109,8 +109,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
112
|
-
providerID:
|
|
113
|
-
modelID:
|
|
112
|
+
providerID: ID13,
|
|
113
|
+
modelID: ID12,
|
|
114
114
|
route: Schema.String
|
|
115
115
|
}) {
|
|
116
116
|
get message() {
|
|
@@ -118,7 +118,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Service54 extends Context.Service()("@opencode/ModelResolver") {
|
|
122
122
|
}
|
|
123
123
|
var withVariant2 = (model, variantID) => {
|
|
124
124
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -258,15 +258,15 @@ var causeMessage = (cause) => {
|
|
|
258
258
|
};
|
|
259
259
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
260
260
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
261
|
-
var
|
|
262
|
-
const providers = yield*
|
|
263
|
-
const models = yield*
|
|
264
|
-
const integrations = yield*
|
|
261
|
+
var layer23 = Layer.effect(Service54, Effect.gen(function* () {
|
|
262
|
+
const providers = yield* Service73;
|
|
263
|
+
const models = yield* Service72;
|
|
264
|
+
const integrations = yield* Service74;
|
|
265
265
|
const npm = yield* Npm.Service;
|
|
266
|
-
const aisdk = yield*
|
|
266
|
+
const aisdk = yield* Service55;
|
|
267
267
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
268
268
|
const provider = yield* providers.get(selected.providerID);
|
|
269
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
269
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
270
270
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
271
271
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
272
272
|
const runtimeInfo = {
|
|
@@ -292,7 +292,7 @@ var layer20 = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
292
292
|
transport: provider?.settings?.transport
|
|
293
293
|
};
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return Service54.of({
|
|
296
296
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
297
297
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
298
298
|
if (!selected)
|
|
@@ -309,10 +309,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
309
309
|
const name = packageName2(packageName);
|
|
310
310
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
service:
|
|
314
|
-
layer:
|
|
315
|
-
deps: [
|
|
312
|
+
var node56 = makeLocationNode({
|
|
313
|
+
service: Service54,
|
|
314
|
+
layer: layer23,
|
|
315
|
+
deps: [node76, node75, node77, Npm.node, node57]
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
318
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service54, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node56, exports_model_resolver };
|
|
@@ -1,18 +1,18 @@
|
|
|
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
10
|
SessionEvent2
|
|
11
11
|
} from "./worktree-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./worktree-
|
|
13
|
+
Service63,
|
|
14
|
+
node66
|
|
15
|
+
} from "./worktree-mnzq238h.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./worktree-9rqn6x4v.js";
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service6,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node8
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service6 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
37
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service82;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
41
|
-
const location = yield*
|
|
40
|
+
const store = yield* Service63;
|
|
41
|
+
const location = yield* Service76;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service6.of({ load });
|
|
88
88
|
}));
|
|
89
89
|
function previouslyInjected(store, sessionID) {
|
|
90
90
|
return Effect.gen(function* () {
|
|
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
|
|
|
95
95
|
function describePath(root, path) {
|
|
96
96
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var node8 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [node86, FSUtil.node,
|
|
101
|
+
deps: [node86, FSUtil.node, node79, node66]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service6, node8, exports_instructions };
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./worktree-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./worktree-
|
|
7
|
+
Service76,
|
|
8
|
+
node79
|
|
9
|
+
} from "./worktree-ncv4r2bp.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./worktree-
|
|
11
|
+
Service17,
|
|
12
|
+
node20
|
|
13
|
+
} from "./worktree-myvehfjc.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./worktree-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_filesystem, {
|
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
Entry: () => Entry2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event5,
|
|
26
26
|
FileSystem: () => exports_filesystem,
|
|
27
27
|
FindInput: () => FindInput2,
|
|
28
28
|
GlobInput: () => GlobInput2,
|
|
@@ -31,11 +31,11 @@ __export(exports_filesystem, {
|
|
|
31
31
|
Match: () => Match2,
|
|
32
32
|
NotFoundError: () => NotFoundError2,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service16,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node19
|
|
39
39
|
});
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
41
|
import path from "path";
|
|
@@ -85,14 +85,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
85
85
|
limit: Schema.optionalKey(PositiveInt2)
|
|
86
86
|
}) {
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Event5 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service16 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service16, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
|
-
const location = yield*
|
|
95
|
-
const search = yield*
|
|
94
|
+
const location = yield* Service76;
|
|
95
|
+
const search = yield* Service17;
|
|
96
96
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
97
97
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
98
98
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -103,7 +103,7 @@ var baseLayer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
103
103
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
104
|
return { absolute, real, directory: location.directory };
|
|
105
105
|
});
|
|
106
|
-
return
|
|
106
|
+
return Service16.of({
|
|
107
107
|
find: search.find,
|
|
108
108
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
109
109
|
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
@@ -140,10 +140,10 @@ var baseLayer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node19 = makeLocationNode({
|
|
144
|
+
service: Service16,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node79, node20]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event5, Service16, node19, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -3,31 +3,31 @@ import {
|
|
|
3
3
|
} from "./worktree-h6r3nrb9.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./worktree-
|
|
6
|
+
} from "./worktree-r5ec8tk0.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./worktree-
|
|
9
|
+
Event20
|
|
10
|
+
} from "./worktree-s3nqtxxj.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./worktree-
|
|
14
|
+
} from "./worktree-fbf3se4r.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./worktree-
|
|
19
|
+
Service73
|
|
20
|
+
} from "./worktree-z5z5sd66.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./worktree-
|
|
22
|
+
ID12
|
|
23
|
+
} from "./worktree-pd8tqg4h.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./worktree-
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./worktree-x9w52knk.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./worktree-
|
|
30
|
+
} from "./worktree-0z8c9324.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/github-copilot.ts
|
|
33
33
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
59
59
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
60
60
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
61
61
|
var oauth = (app) => ({
|
|
62
|
-
integrationID:
|
|
62
|
+
integrationID: ID14.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -157,7 +157,7 @@ var oauth = (app) => ({
|
|
|
157
157
|
var GithubCopilotPlugin2 = define({
|
|
158
158
|
id: "opencode.provider.github.copilot",
|
|
159
159
|
effect: Effect.fn(function* (ctx) {
|
|
160
|
-
const providers = yield*
|
|
160
|
+
const providers = yield* Service73;
|
|
161
161
|
const bus = yield* Service82;
|
|
162
162
|
const loading = Semaphore.makeUnsafe(1);
|
|
163
163
|
const loaded = {};
|
|
@@ -173,9 +173,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
176
|
-
const provider = yield* providers.get(
|
|
176
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
177
177
|
const remote = yield* Effect.tryPromise({
|
|
178
|
-
try: () =>
|
|
178
|
+
try: () => load2(url, {
|
|
179
179
|
...provider?.headers,
|
|
180
180
|
Authorization: `Bearer ${credential.refresh}`,
|
|
181
181
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -194,13 +194,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
194
194
|
editor.method.update(oauth(ctx.app));
|
|
195
195
|
});
|
|
196
196
|
yield* ctx.provider.transform((evt) => {
|
|
197
|
-
const item = evt.get(
|
|
197
|
+
const item = evt.get(ID13.githubCopilot);
|
|
198
198
|
if (!item)
|
|
199
199
|
return;
|
|
200
200
|
if (loaded.models) {
|
|
201
201
|
evt.add({
|
|
202
202
|
info: item.provider,
|
|
203
|
-
models: Array.from(
|
|
203
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
204
204
|
sourceConnection: loaded.connection
|
|
205
205
|
});
|
|
206
206
|
return;
|
|
@@ -214,17 +214,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
yield* ctx.model.transform((models) => {
|
|
217
|
-
if (models.get(
|
|
218
|
-
models.update(
|
|
217
|
+
if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
|
|
218
|
+
models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
|
|
219
219
|
model.enabled = false;
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
224
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
225
225
|
yield* refresh().pipe(Effect.forkScoped);
|
|
226
226
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
227
|
-
if (evt.model.providerID !==
|
|
227
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
228
228
|
return;
|
|
229
229
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
230
230
|
return;
|
|
@@ -233,7 +233,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
233
233
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
234
234
|
}));
|
|
235
235
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
236
|
-
if (evt.model.providerID !==
|
|
236
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
237
237
|
return;
|
|
238
238
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
239
239
|
return;
|
|
@@ -243,9 +243,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
243
243
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
244
244
|
if (interaction !== "conversation-agent")
|
|
245
245
|
evt.headers["x-initiator"] = "agent";
|
|
246
|
-
}), { providerID:
|
|
246
|
+
}), { providerID: ID13.githubCopilot });
|
|
247
247
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
-
if (evt.model.providerID !==
|
|
248
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
249
249
|
return;
|
|
250
250
|
const token = evt.request.headers.get("x-api-key");
|
|
251
251
|
if (!token)
|
|
@@ -253,9 +253,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
253
253
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
254
254
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
255
255
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
256
|
-
}), { providerID:
|
|
256
|
+
}), { providerID: ID13.githubCopilot });
|
|
257
257
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
258
|
-
if (evt.model.providerID !==
|
|
258
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
259
259
|
return;
|
|
260
260
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
261
261
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node4
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node4 = makeLocationNode({
|
|
19
|
+
service: Service3,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service3, Service3.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service3, node4, bound2, exports_instance2 };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
PositiveInt2
|
|
3
3
|
} from "./worktree-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./worktree-
|
|
5
|
+
Info10
|
|
6
|
+
} from "./worktree-nrdmrqsx.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./worktree-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/v1/config/agent.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigAgentV1: () =>
|
|
15
|
-
Info: () =>
|
|
12
|
+
var exports_agent3 = {};
|
|
13
|
+
__export(exports_agent3, {
|
|
14
|
+
ConfigAgentV1: () => exports_agent3,
|
|
15
|
+
Info: () => Info9
|
|
16
16
|
});
|
|
17
17
|
import { Schema, SchemaGetter } from "effect";
|
|
18
18
|
var Color = Schema.Union([
|
|
@@ -44,7 +44,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
44
44
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
45
45
|
}),
|
|
46
46
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
47
|
-
permission: Schema.optional(
|
|
47
|
+
permission: Schema.optional(Info10)
|
|
48
48
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
49
49
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
50
50
|
var normalize = (agent) => {
|
|
@@ -66,9 +66,9 @@ var normalize = (agent) => {
|
|
|
66
66
|
const steps = agent.steps ?? agent.maxSteps;
|
|
67
67
|
return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
|
|
68
68
|
};
|
|
69
|
-
var
|
|
69
|
+
var Info9 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
|
|
70
70
|
decode: SchemaGetter.transform(normalize),
|
|
71
71
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
72
72
|
})).annotate({ identifier: "AgentConfig" });
|
|
73
73
|
|
|
74
|
-
export {
|
|
74
|
+
export { Info9, exports_agent3 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./worktree-
|
|
2
|
+
Service46
|
|
3
|
+
} from "./worktree-jtz05rza.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./worktree-
|
|
5
|
+
Service66
|
|
6
|
+
} from "./worktree-d737nyfv.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
9
|
} from "./worktree-qsdy395h.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
var exports_image = {};
|
|
16
16
|
__export(exports_image, {
|
|
17
17
|
ConfigImagePlugin: () => exports_image,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin43
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin43 = define({
|
|
23
23
|
id: "opencode.config.image",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const image = yield*
|
|
25
|
+
const config = yield* Service46;
|
|
26
|
+
const image = yield* Service66;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, image.reload());
|
|
28
28
|
yield* image.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -43,4 +43,4 @@ var Plugin22 = define({
|
|
|
43
43
|
})
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { Plugin43, exports_image };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./worktree-
|
|
3
|
+
} from "./worktree-0z8c9324.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./worktree-
|
|
6
|
+
Service79
|
|
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
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./worktree-
|
|
15
|
+
} from "./worktree-z5z5sd66.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID13.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID14.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service79;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|