@opencode/core 0.0.0-dev-21832 → 0.0.0-dev-21834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +85 -85
- package/dist/aisdk-native.js +94 -94
- package/dist/aisdk.js +100 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +77 -77
- package/dist/chunks/{worktree-e9p3jgk6.js → skill-00gjqycq.js} +25 -25
- package/dist/chunks/{worktree-jneg3k74.js → skill-02pz8arg.js} +8 -8
- package/dist/chunks/{worktree-aj7mw0zk.js → skill-034tev2y.js} +2 -2
- package/dist/chunks/{worktree-3dj841q6.js → skill-04hm4bt0.js} +40 -40
- package/dist/chunks/{worktree-ds26jgk3.js → skill-06nd5b66.js} +14 -14
- package/dist/chunks/{worktree-arbdk1zr.js → skill-0be85waj.js} +21 -21
- package/dist/chunks/{worktree-3647s6zq.js → skill-0cbbnd0e.js} +6 -6
- package/dist/chunks/{worktree-tp98z23w.js → skill-0n9ahcch.js} +10 -10
- package/dist/chunks/{worktree-5p205wab.js → skill-0nrdvnna.js} +4 -4
- package/dist/chunks/{worktree-s4cnera1.js → skill-0nx6k2c3.js} +17 -17
- package/dist/chunks/{worktree-7193gb3b.js → skill-0rq01gt9.js} +5 -5
- package/dist/chunks/{worktree-zqjghnyq.js → skill-0trxxenf.js} +31 -31
- package/dist/chunks/{worktree-jg3dfvq9.js → skill-0vyqaw1y.js} +1 -1
- package/dist/chunks/{worktree-qpbq1ttd.js → skill-0y9nmzdh.js} +16 -16
- package/dist/chunks/{worktree-qravd527.js → skill-0zg0wj8r.js} +29 -29
- package/dist/chunks/{worktree-11hfp36g.js → skill-11hfp36g.js} +1 -1
- package/dist/chunks/{worktree-ydsespw1.js → skill-160yv0cs.js} +4 -4
- package/dist/chunks/{worktree-d2dx6a7h.js → skill-173t91w5.js} +4 -4
- package/dist/chunks/{worktree-695afxk5.js → skill-17b5xsvs.js} +20 -20
- package/dist/chunks/{worktree-d85xqdn3.js → skill-1adswb2h.js} +24 -24
- package/dist/chunks/{worktree-rh3bv7hm.js → skill-1e5bw0rs.js} +10 -10
- package/dist/chunks/{worktree-j1rq0xw8.js → skill-1egxbjqn.js} +6 -6
- package/dist/chunks/{worktree-27w5k9zf.js → skill-1ep2p91f.js} +2 -2
- package/dist/chunks/{worktree-p9g6dw9y.js → skill-1fecs8e0.js} +92 -92
- package/dist/chunks/{worktree-wzcykjgt.js → skill-1hmnwk5s.js} +66 -66
- package/dist/chunks/{worktree-bdyzd1jt.js → skill-1mm7n2nj.js} +14 -14
- package/dist/chunks/{worktree-xxjr0q4c.js → skill-1t1xece5.js} +3 -3
- package/dist/chunks/{worktree-1x2knyw4.js → skill-1x2knyw4.js} +1 -1
- package/dist/chunks/{worktree-y35tw0d0.js → skill-21atppj8.js} +35 -35
- package/dist/chunks/{worktree-45t4pvv9.js → skill-231a8wys.js} +8 -8
- package/dist/chunks/{worktree-rphf3yd4.js → skill-2dgzezj9.js} +27 -27
- package/dist/chunks/{worktree-6xsx1z0g.js → skill-2eqjdh0q.js} +26 -26
- package/dist/chunks/{worktree-2bvfvv2f.js → skill-2eqy3gj5.js} +11 -11
- package/dist/chunks/{worktree-w78vkh9t.js → skill-2je7xwd4.js} +22 -22
- package/dist/chunks/{worktree-2z1j29yd.js → skill-2z1j29yd.js} +1 -1
- package/dist/chunks/{worktree-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-mcbcg4yq.js → skill-3j2fevem.js} +11 -11
- package/dist/chunks/{worktree-3nnrz6f6.js → skill-3nnrz6f6.js} +1 -1
- package/dist/chunks/{worktree-rc8w65gm.js → skill-3pav5zsa.js} +23 -23
- package/dist/chunks/{worktree-w2eysc6j.js → skill-40za9wsf.js} +9 -9
- package/dist/chunks/{worktree-bjhzkqyk.js → skill-42jd4697.js} +4 -4
- package/dist/chunks/{worktree-bgcmwhzg.js → skill-4ek8vd21.js} +11 -11
- package/dist/chunks/{worktree-e50pjhb3.js → skill-4jqg84dk.js} +16 -16
- package/dist/chunks/{worktree-43dhkpfn.js → skill-4kpphzt0.js} +9 -9
- package/dist/chunks/{worktree-z4rz3s0w.js → skill-4kvnwz1d.js} +16 -16
- package/dist/chunks/{worktree-4v008n1t.js → skill-4v008n1t.js} +1 -1
- package/dist/chunks/{worktree-4xvmh7wp.js → skill-4xvmh7wp.js} +3 -3
- package/dist/chunks/{worktree-00cp3g78.js → skill-54pbqzcr.js} +35 -35
- package/dist/chunks/{worktree-mzf7pqqe.js → skill-5dyn294f.js} +7 -7
- package/dist/chunks/{worktree-yj3d1z1y.js → skill-5gfep4at.js} +35 -35
- package/dist/chunks/{worktree-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
- package/dist/chunks/{worktree-9m513bsn.js → skill-5pck7wvj.js} +16 -16
- package/dist/chunks/{worktree-6e20mv58.js → skill-5y0frafb.js} +6 -6
- package/dist/chunks/{worktree-p7vhpwh8.js → skill-5zrxpy3q.js} +5 -5
- package/dist/chunks/{worktree-9n98ejx3.js → skill-62sayf8a.js} +35 -35
- package/dist/chunks/{worktree-3akbsydm.js → skill-6bpq0ecf.js} +24 -24
- package/dist/chunks/{worktree-2bzhzvzq.js → skill-6c4tda3b.js} +5 -5
- package/dist/chunks/{worktree-6esdw8yj.js → skill-6esdw8yj.js} +1 -1
- package/dist/chunks/{worktree-w145qvk2.js → skill-6pdpw644.js} +10 -10
- package/dist/chunks/{worktree-6pjqjmy2.js → skill-6pjqjmy2.js} +1 -1
- package/dist/chunks/{worktree-krcgmfx1.js → skill-72an0bmj.js} +5 -5
- package/dist/chunks/{worktree-vx60mxx6.js → skill-7412659d.js} +12 -12
- package/dist/chunks/{worktree-76cb1hcw.js → skill-76cb1hcw.js} +1 -1
- package/dist/chunks/{worktree-nah043kf.js → skill-770pw0s1.js} +4 -4
- package/dist/chunks/{worktree-36p3y7jg.js → skill-77kepa5s.js} +22 -22
- package/dist/chunks/{worktree-vta5p220.js → skill-77wcrcrr.js} +7 -7
- package/dist/chunks/{worktree-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
- package/dist/chunks/{worktree-ad2qwzwg.js → skill-7ete3fjn.js} +49 -49
- package/dist/chunks/{worktree-5z2q9a8r.js → skill-7h2sr6bm.js} +24 -24
- package/dist/chunks/{worktree-p8rd148r.js → skill-7md7twpt.js} +5 -5
- package/dist/chunks/{worktree-zyz3pmwr.js → skill-7p112bbq.js} +8 -8
- package/dist/chunks/{worktree-t65tnfxg.js → skill-7pyt5zq6.js} +5 -5
- package/dist/chunks/{worktree-ksj36tw4.js → skill-7scb859s.js} +6 -6
- package/dist/chunks/{worktree-7w2ypzdf.js → skill-7w2ypzdf.js} +1 -1
- package/dist/chunks/{worktree-jjg5yz1h.js → skill-7x19yq7v.js} +9 -9
- package/dist/chunks/{worktree-n3nby4kh.js → skill-85ynyc4w.js} +10 -10
- package/dist/chunks/{worktree-cd50e0wg.js → skill-8ecwpcxg.js} +11 -11
- package/dist/chunks/{worktree-fsre0723.js → skill-8eprwqzy.js} +40 -40
- package/dist/chunks/{worktree-h2fy2dat.js → skill-8hnyj9sr.js} +13 -13
- package/dist/chunks/{worktree-xy4vra7r.js → skill-8j2r6s7s.js} +13 -13
- package/dist/chunks/{worktree-a8mb2d06.js → skill-8mnbshzt.js} +27 -27
- package/dist/chunks/{worktree-qaky2rz3.js → skill-8vcctmfr.js} +19 -19
- package/dist/chunks/{worktree-arz7hw7x.js → skill-8whp40kv.js} +3 -3
- package/dist/chunks/{worktree-8wtp7s3z.js → skill-8wtp7s3z.js} +1 -1
- package/dist/chunks/{worktree-sz7p3par.js → skill-8x3yvqxw.js} +15 -15
- package/dist/chunks/{worktree-91rj84md.js → skill-91rj84md.js} +1 -1
- package/dist/chunks/{worktree-80yrqs2x.js → skill-97xzxk8a.js} +28 -28
- package/dist/chunks/{worktree-dvj9ct8m.js → skill-998yhzzq.js} +3 -3
- package/dist/chunks/{worktree-8yqsymsg.js → skill-9a62epdc.js} +6 -6
- package/dist/chunks/{worktree-yrdnce5a.js → skill-9bd0cbwc.js} +5 -5
- package/dist/chunks/{worktree-9cx9sm2q.js → skill-9cx9sm2q.js} +1 -1
- package/dist/chunks/{worktree-z1dp9nz5.js → skill-9czcsnv2.js} +7 -7
- package/dist/chunks/{worktree-yxhh0eg2.js → skill-9etm08e8.js} +2 -2
- package/dist/chunks/{worktree-sfzvze88.js → skill-9mpf12xv.js} +6 -6
- package/dist/chunks/{worktree-7e8scw2k.js → skill-9w36kdqj.js} +32 -32
- package/dist/chunks/{worktree-erswfzqj.js → skill-9wck53cd.js} +16 -16
- package/dist/chunks/{worktree-pbjge5gp.js → skill-9wn9b57t.js} +5 -5
- package/dist/chunks/{worktree-gsb6mw3d.js → skill-9zgjf50m.js} +187 -187
- package/dist/chunks/{worktree-edvcby6a.js → skill-a4cqfe3h.js} +10 -10
- package/dist/chunks/{worktree-aykhvqdn.js → skill-a78hr7yt.js} +9 -9
- package/dist/chunks/{worktree-7a4k0486.js → skill-a92dmqhy.js} +4 -4
- package/dist/chunks/{worktree-gdr92bwx.js → skill-a9b9gd9t.js} +11 -11
- package/dist/chunks/{worktree-wx8nkbb1.js → skill-afeb4rgf.js} +23 -23
- package/dist/chunks/{worktree-z54qrd8r.js → skill-ajncej77.js} +4 -4
- package/dist/chunks/{worktree-skkyj46b.js → skill-ajygxxmq.js} +13 -13
- package/dist/chunks/{worktree-hb5n2c5k.js → skill-avesyp7a.js} +18 -18
- package/dist/chunks/{worktree-3e59rph2.js → skill-avzzjsq4.js} +9 -9
- package/dist/chunks/skill-axfnrvhr.js +261 -0
- package/dist/chunks/{worktree-3cbjf1nt.js → skill-ayjs7tqn.js} +2 -2
- package/dist/chunks/{worktree-b0mv4wxm.js → skill-b0mv4wxm.js} +2 -2
- package/dist/chunks/{worktree-m30wvgj2.js → skill-b333880x.js} +34 -34
- package/dist/chunks/{worktree-b6vsg801.js → skill-b6vsg801.js} +2 -2
- package/dist/chunks/{worktree-abr51mnh.js → skill-ba7dfhfp.js} +8 -8
- package/dist/chunks/{worktree-0zpa3jfg.js → skill-bhfgb36z.js} +24 -24
- package/dist/chunks/{worktree-x8rzfgrc.js → skill-bmjgccg8.js} +9 -9
- package/dist/chunks/{worktree-cf3d3h2s.js → skill-bs8kzehq.js} +20 -20
- package/dist/chunks/{worktree-xd9cc171.js → skill-bstexjd6.js} +5 -5
- package/dist/chunks/{worktree-f21hf6dz.js → skill-bz8b4c6r.js} +11 -11
- package/dist/chunks/{worktree-x2457qsk.js → skill-c3wtnm2w.js} +330 -330
- package/dist/chunks/{worktree-adrm93f2.js → skill-c4gxyfvh.js} +6 -6
- package/dist/chunks/{worktree-qyzf8248.js → skill-cd8a27jh.js} +36 -36
- package/dist/chunks/{worktree-n5xdxtnj.js → skill-cdzgrgbz.js} +23 -23
- package/dist/chunks/{worktree-sq4s6wq1.js → skill-ceq6pwch.js} +6 -6
- package/dist/chunks/{worktree-cw1ztss7.js → skill-cmf65zxm.js} +21 -21
- package/dist/chunks/{worktree-p0wrzpeb.js → skill-cmn63q56.js} +18 -18
- package/dist/chunks/{worktree-95exz2bq.js → skill-ctxfjdfm.js} +17 -17
- package/dist/chunks/{worktree-hn0qbz2m.js → skill-d124qykh.js} +35 -35
- package/dist/chunks/{worktree-d4v9tmah.js → skill-d4v9tmah.js} +2 -2
- package/dist/chunks/skill-d77dj7jw.js +18 -0
- package/dist/chunks/{worktree-mn53dk4j.js → skill-djjzzs3c.js} +3 -3
- package/dist/chunks/{worktree-gstbwwx4.js → skill-dmhr0cwa.js} +6 -6
- package/dist/chunks/{worktree-j7vbh7t2.js → skill-dq4yndb5.js} +3 -3
- package/dist/chunks/{worktree-rd5c3v22.js → skill-dvqxp2fr.js} +38 -38
- package/dist/chunks/{worktree-e834z07m.js → skill-e834z07m.js} +1 -1
- package/dist/chunks/{worktree-z8e9ff6b.js → skill-edr0v86s.js} +15 -15
- package/dist/chunks/{worktree-j6grf6bb.js → skill-ep701ytr.js} +22 -22
- package/dist/chunks/{worktree-d30eyz0g.js → skill-er1g1bvg.js} +48 -48
- package/dist/chunks/{worktree-06nywv30.js → skill-ercd8kmt.js} +28 -28
- package/dist/chunks/{worktree-6hasb7jx.js → skill-f0h0qhsv.js} +12 -12
- package/dist/chunks/{worktree-qyk31xf6.js → skill-fbbj2f9m.js} +26 -26
- package/dist/chunks/{worktree-yt6kymc0.js → skill-feqd3nyp.js} +4 -4
- package/dist/chunks/{worktree-fffv3p7h.js → skill-fffv3p7h.js} +1 -1
- package/dist/chunks/{worktree-jjbrt4w4.js → skill-fg74as85.js} +19 -19
- package/dist/chunks/{worktree-x6bmqb9g.js → skill-fj5727b0.js} +20 -20
- package/dist/chunks/{worktree-bs5a9a9v.js → skill-ftegdgb6.js} +5 -5
- package/dist/chunks/{worktree-dds9zz6p.js → skill-g1e2r5aa.js} +4 -4
- package/dist/chunks/{worktree-g5h9c0rr.js → skill-g5h9c0rr.js} +2 -2
- package/dist/chunks/{worktree-a74nhg91.js → skill-g8dsp257.js} +45 -45
- package/dist/chunks/{worktree-gcjdgkn2.js → skill-gcjdgkn2.js} +2 -2
- package/dist/chunks/{worktree-8wezqzag.js → skill-gfjrd4e2.js} +33 -33
- package/dist/chunks/{worktree-6k2rkf8h.js → skill-ghmsr1ac.js} +9 -9
- package/dist/chunks/{worktree-86djksxe.js → skill-gt561mjr.js} +16 -16
- package/dist/chunks/{worktree-8n09hdvs.js → skill-h097nhc1.js} +8 -8
- package/dist/chunks/{worktree-8h6r4m67.js → skill-h8crf5kq.js} +27 -27
- package/dist/chunks/{worktree-7e510nwg.js → skill-h9re2tn8.js} +14 -14
- package/dist/chunks/{worktree-pnqk97j3.js → skill-hbqckzs6.js} +13 -13
- package/dist/chunks/{worktree-e2x7gzav.js → skill-hdfrs5mg.js} +7 -7
- package/dist/chunks/{worktree-g7esga4v.js → skill-hfgk9wzg.js} +7 -7
- package/dist/chunks/{worktree-rs5sv2a8.js → skill-hkfq79xc.js} +18 -18
- package/dist/chunks/{worktree-2hn3edqp.js → skill-hnpjybsn.js} +13 -13
- package/dist/chunks/{worktree-zm3q4tch.js → skill-hqd3zsvt.js} +25 -25
- package/dist/chunks/{worktree-j0xszzq0.js → skill-hre0n7rd.js} +30 -30
- package/dist/chunks/{worktree-n4q2bts1.js → skill-hwypf69j.js} +32 -32
- package/dist/chunks/{worktree-ntp0y56p.js → skill-j0wdjrjq.js} +35 -35
- package/dist/chunks/{worktree-j113cymg.js → skill-j113cymg.js} +1 -1
- package/dist/chunks/{worktree-s7e49xxs.js → skill-j577xwbf.js} +22 -22
- package/dist/chunks/{worktree-0s95dftc.js → skill-j5hd8hn7.js} +5 -5
- package/dist/chunks/{worktree-5nftfhq6.js → skill-jg1m0r49.js} +37 -37
- package/dist/chunks/{worktree-r73cphfz.js → skill-jw5j4v0h.js} +9 -9
- package/dist/chunks/{worktree-zyeyds15.js → skill-k1x3cnpd.js} +9 -9
- package/dist/chunks/{worktree-4sarpyhn.js → skill-k2mww7e3.js} +24 -24
- package/dist/chunks/{worktree-s602p396.js → skill-k62cyg57.js} +6 -6
- package/dist/chunks/{worktree-k814nvkf.js → skill-k814nvkf.js} +1 -1
- package/dist/chunks/{worktree-pdt2ff5a.js → skill-k88b30qa.js} +12 -12
- package/dist/chunks/{worktree-x564bgvm.js → skill-kfy4zy3j.js} +14 -14
- package/dist/chunks/{worktree-2nph1nr4.js → skill-kg86qhz3.js} +25 -25
- package/dist/chunks/{worktree-w78kaheb.js → skill-kgex5j78.js} +11 -11
- package/dist/chunks/{worktree-geqny0bq.js → skill-khgjxzfs.js} +6 -6
- package/dist/chunks/{worktree-0p25w9ph.js → skill-kkew1p9e.js} +6 -6
- package/dist/chunks/{worktree-hem0ycea.js → skill-kmhnqez1.js} +33 -33
- package/dist/chunks/{worktree-kt3bjfbg.js → skill-kt3bjfbg.js} +1 -1
- package/dist/chunks/{worktree-x29n1dd5.js → skill-kx5dznpq.js} +24 -24
- package/dist/chunks/{worktree-m1714858.js → skill-m1714858.js} +1 -1
- package/dist/chunks/{worktree-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-zweymgaq.js → skill-mabn13q5.js} +7 -7
- package/dist/chunks/{worktree-maspj1v3.js → skill-maspj1v3.js} +1 -1
- package/dist/chunks/{worktree-6hxyv8w6.js → skill-mck06rjh.js} +18 -18
- package/dist/chunks/{worktree-mhmzddah.js → skill-mfpkpefx.js} +9 -9
- package/dist/chunks/{worktree-2fjys8ky.js → skill-my6dh6dm.js} +4 -4
- package/dist/chunks/{worktree-yv6n3e4t.js → skill-mzyv1r8q.js} +8 -8
- package/dist/chunks/{worktree-f403h8b4.js → skill-n4sq8h3f.js} +11 -11
- package/dist/chunks/{worktree-b5qn2jt5.js → skill-n4ygatty.js} +11 -11
- package/dist/chunks/{worktree-j78bae2j.js → skill-nfbensgb.js} +15 -15
- package/dist/chunks/{worktree-9c77wjje.js → skill-njtpn054.js} +19 -19
- package/dist/chunks/{worktree-4jj79f23.js → skill-nkj7ejgf.js} +8 -8
- package/dist/chunks/{worktree-24kf08q0.js → skill-npkxyn8y.js} +24 -24
- package/dist/chunks/{worktree-f4bg9t37.js → skill-nxy7se6b.js} +4 -4
- package/dist/chunks/{worktree-97p8nte2.js → skill-nyzgr9mz.js} +5 -5
- package/dist/chunks/{worktree-p015t6z3.js → skill-p015t6z3.js} +2 -2
- package/dist/chunks/{worktree-p58azk3d.js → skill-p0n3fcv8.js} +9 -9
- package/dist/chunks/{worktree-fwfdmgk0.js → skill-p3p972wa.js} +5 -5
- package/dist/chunks/{worktree-e2ne77ac.js → skill-p7f9amnf.js} +8 -8
- package/dist/chunks/{worktree-ax1j2da4.js → skill-p82tt7j1.js} +11 -11
- package/dist/chunks/{worktree-hjpd440b.js → skill-pa0dea9e.js} +22 -22
- package/dist/chunks/{worktree-rdrpd67x.js → skill-pacbbjc0.js} +6 -6
- package/dist/chunks/{worktree-e91b353h.js → skill-pfw200mj.js} +4 -4
- package/dist/chunks/{worktree-pknna89w.js → skill-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-stn0kadw.js → skill-ppmh5vyf.js} +36 -36
- package/dist/chunks/{worktree-wvyfhptm.js → skill-prg65b25.js} +20 -20
- package/dist/chunks/{worktree-hthy47ds.js → skill-ps0mkw1v.js} +16 -16
- package/dist/chunks/{worktree-wggsh2ew.js → skill-q0phr7xp.js} +21 -21
- package/dist/chunks/{worktree-j28jswtw.js → skill-q2b8kbm5.js} +15 -15
- package/dist/chunks/{worktree-dks4h55m.js → skill-qjsrg47w.js} +57 -57
- package/dist/chunks/{worktree-rm75chpx.js → skill-qnw5bx26.js} +35 -35
- package/dist/chunks/{worktree-m3sy78y2.js → skill-qsgzt8d8.js} +43 -43
- package/dist/chunks/{worktree-b6h3agk1.js → skill-qyq8h28g.js} +3 -3
- package/dist/chunks/{worktree-r0yr0wbs.js → skill-r0yr0wbs.js} +1 -1
- package/dist/chunks/{worktree-r542h3bh.js → skill-r542h3bh.js} +1 -1
- package/dist/chunks/{worktree-qyky1vbj.js → skill-r8hzrbfh.js} +16 -16
- package/dist/chunks/{worktree-42dtxe9w.js → skill-r971kbe0.js} +19 -19
- package/dist/chunks/{worktree-rtapny2j.js → skill-rah08q8j.js} +24 -24
- package/dist/chunks/{worktree-rb9dy4dg.js → skill-rb9dy4dg.js} +1 -1
- package/dist/chunks/{worktree-rn2kv32m.js → skill-rm2t5ma7.js} +9 -9
- package/dist/chunks/{worktree-rt5dr6hb.js → skill-rt5dr6hb.js} +1 -1
- package/dist/chunks/skill-rvejayd9.js +26 -0
- package/dist/chunks/{worktree-fp6jbq7y.js → skill-rvhc0q80.js} +7 -7
- package/dist/chunks/{worktree-5fy5wh6g.js → skill-ry0m9tn2.js} +11 -11
- package/dist/chunks/{worktree-kb4178cy.js → skill-s6f1tzs1.js} +17 -17
- package/dist/chunks/{worktree-sa3fpqfw.js → skill-sa3fpqfw.js} +2 -2
- package/dist/chunks/{worktree-setr6b4n.js → skill-savsbs8r.js} +38 -38
- package/dist/chunks/{worktree-q2d8rzza.js → skill-sj9vbdm2.js} +9 -9
- package/dist/chunks/{worktree-mkt943y8.js → skill-skm03efc.js} +8 -8
- package/dist/chunks/{worktree-5pq867hf.js → skill-sm1y76r2.js} +3 -3
- package/dist/chunks/{worktree-sqjzf8x2.js → skill-sqjzf8x2.js} +1 -1
- package/dist/chunks/{worktree-ssfehs1z.js → skill-ssfehs1z.js} +1 -1
- package/dist/chunks/{worktree-hkemg6xf.js → skill-svmpqen7.js} +11 -11
- package/dist/chunks/{worktree-afmnpta1.js → skill-szcgc7h4.js} +5 -5
- package/dist/chunks/{worktree-h9t23wpm.js → skill-szcvdtb1.js} +15 -15
- package/dist/chunks/{worktree-kd4chd64.js → skill-t211gxpv.js} +7 -7
- package/dist/chunks/{worktree-q066xmm0.js → skill-t7ch0rgv.js} +24 -24
- package/dist/chunks/{worktree-8kk74xj2.js → skill-ta7416gx.js} +16 -16
- package/dist/chunks/{worktree-tczq8hjw.js → skill-tczq8hjw.js} +1 -1
- package/dist/chunks/{worktree-d6sbn13z.js → skill-ted04mbz.js} +13 -13
- package/dist/chunks/{worktree-k8f39ak3.js → skill-tfkn5990.js} +47 -47
- package/dist/chunks/{worktree-vcpvdpk3.js → skill-tg7v3kdh.js} +21 -21
- package/dist/chunks/{worktree-dz8hhvgv.js → skill-tpm1qpxt.js} +9 -9
- package/dist/chunks/{worktree-twv2r8f4.js → skill-twv2r8f4.js} +2 -2
- package/dist/chunks/{worktree-9qpye6ef.js → skill-txy76bqw.js} +11 -11
- package/dist/chunks/{worktree-z3dz6gn5.js → skill-ty59g5hq.js} +4 -4
- package/dist/chunks/{worktree-8qa3g5sa.js → skill-ty9tdn63.js} +2 -2
- package/dist/chunks/{worktree-11aje976.js → skill-v1dcgevh.js} +4 -4
- package/dist/chunks/{worktree-v2r1d0zg.js → skill-v2r1d0zg.js} +1 -1
- package/dist/chunks/{worktree-vd3b3yk9.js → skill-vd3b3yk9.js} +1 -1
- package/dist/chunks/{worktree-veqvce7d.js → skill-veqvce7d.js} +1 -1
- package/dist/chunks/{worktree-m6f7840m.js → skill-vnm637sj.js} +32 -32
- package/dist/chunks/{worktree-gbbgar44.js → skill-vp04qmca.js} +19 -19
- package/dist/chunks/{worktree-ewyr86ft.js → skill-vrhfh655.js} +27 -27
- package/dist/chunks/{worktree-3nnh6x8n.js → skill-vsvv2e2n.js} +30 -30
- package/dist/chunks/{worktree-hhafapa0.js → skill-vwvg46tm.js} +2 -2
- package/dist/chunks/{worktree-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-wr3re1en.js → skill-w687dnns.js} +4 -4
- package/dist/chunks/{worktree-wakvkjy4.js → skill-wakvkjy4.js} +1 -1
- package/dist/chunks/{worktree-wd87259q.js → skill-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-s6fqr474.js → skill-wepwhyhm.js} +14 -14
- package/dist/chunks/{worktree-4fkatqpa.js → skill-wes5520y.js} +9 -9
- package/dist/chunks/{worktree-0pv1adqs.js → skill-wggz5dcx.js} +8 -8
- package/dist/chunks/{worktree-rkhtrhzc.js → skill-x78ehrnn.js} +19 -19
- package/dist/chunks/{worktree-t2n4qmf3.js → skill-x9sp13q1.js} +1 -1
- package/dist/chunks/{worktree-4f15exd5.js → skill-xgwp5qw1.js} +1 -1
- package/dist/chunks/{worktree-a5vkyr04.js → skill-xmeg9r5c.js} +38 -38
- package/dist/chunks/{worktree-6k95y278.js → skill-xs87h7sc.js} +14 -14
- package/dist/chunks/{worktree-ztf6n3de.js → skill-xsact9zs.js} +4 -4
- package/dist/chunks/{worktree-wcnxy81f.js → skill-y455aja3.js} +52 -52
- package/dist/chunks/{worktree-30r67fxy.js → skill-y8dcjgfv.js} +20 -20
- package/dist/chunks/{worktree-y82h6rr8.js → skill-yavw29v2.js} +23 -23
- package/dist/chunks/{worktree-yb20nhc3.js → skill-yb20nhc3.js} +1 -1
- package/dist/chunks/{worktree-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
- package/dist/chunks/{worktree-z6b1690w.js → skill-z0db4kf0.js} +39 -39
- package/dist/chunks/{worktree-z38nccrw.js → skill-z38nccrw.js} +1 -1
- package/dist/chunks/{worktree-24cx9b7z.js → skill-z8ytgzmn.js} +26 -26
- package/dist/chunks/{worktree-93wp6b6w.js → skill-zbz46kc9.js} +5 -5
- package/dist/chunks/{worktree-nbwz5qgq.js → skill-zg6f644q.js} +45 -45
- package/dist/chunks/{worktree-zkg84ctx.js → skill-zkg84ctx.js} +1 -1
- package/dist/chunks/{worktree-fepbbevx.js → skill-zsmny15c.js} +79 -79
- package/dist/chunks/{worktree-smrfb97d.js → skill-zswh72fp.js} +12 -12
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +87 -87
- package/dist/config/integration.js +5 -5
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +216 -216
- package/dist/config/plugin/compaction.js +157 -157
- package/dist/config/plugin/compatibility.js +137 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +120 -120
- package/dist/config/plugin/provider.js +119 -119
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +140 -140
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration.gen.js +53 -53
- package/dist/database/migration.js +55 -55
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +92 -92
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +376 -376
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +98 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +100 -100
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +109 -109
- package/dist/file-mutation.js +99 -99
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +107 -107
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +92 -92
- package/dist/generate.js +112 -112
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +104 -104
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +367 -367
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +157 -157
- package/dist/location-lifecycle.js +112 -112
- package/dist/location-service-map.js +91 -91
- package/dist/location-services.js +364 -364
- package/dist/location.js +92 -92
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +96 -96
- package/dist/mcp/index.js +110 -110
- package/dist/mcp/instructions.js +141 -141
- package/dist/mcp/oauth.js +82 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +95 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +104 -104
- package/dist/model-resolver.js +104 -104
- package/dist/model-retry.js +1 -1
- package/dist/model.js +107 -107
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +116 -116
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +107 -107
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +222 -222
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +337 -337
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +120 -120
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +107 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +98 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +100 -100
- package/dist/plugin/provider/gitlab.js +98 -98
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +82 -82
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +97 -97
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai-context-caps.js +95 -95
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode-legacy.js +105 -105
- package/dist/plugin/provider/opencode.js +124 -124
- package/dist/plugin/provider/openrouter.js +96 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +83 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +96 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +95 -95
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +96 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -175
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +356 -356
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +91 -91
- package/dist/plugin/vcs/hg.js +91 -91
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +106 -106
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +94 -94
- package/dist/repository-cache.js +86 -86
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +100 -100
- package/dist/rpc.js +91 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +78 -78
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +165 -165
- package/dist/session/diff.js +93 -93
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -224
- package/dist/session/execution.js +133 -133
- package/dist/session/generate.js +169 -169
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +97 -97
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +125 -125
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +135 -135
- package/dist/session/projector.js +93 -93
- package/dist/session/prompt.js +110 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +99 -99
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +233 -233
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +105 -105
- package/dist/session/runner/publish-llm-event.js +118 -118
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +131 -131
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +108 -108
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +171 -171
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +220 -220
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +112 -112
- package/dist/skill.js +117 -117
- package/dist/snapshot.js +96 -96
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +142 -142
- package/dist/tool/plugin/edit.js +125 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +129 -129
- package/dist/tool/plugin/grep.js +129 -129
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +114 -114
- package/dist/tool/plugin/patch.js +119 -119
- package/dist/tool/plugin/question.js +110 -110
- package/dist/tool/plugin/read.js +130 -130
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +118 -118
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +140 -140
- package/dist/tool/plugin/webfetch.js +118 -118
- package/dist/tool/plugin/websearch.js +117 -117
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +107 -107
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/usage-limits.js +93 -93
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +97 -97
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +98 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +92 -92
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +80 -80
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +94 -94
- package/dist/worktree.js +105 -105
- package/package.json +8 -8
- package/dist/chunks/worktree-00yw50eq.js +0 -261
- package/dist/chunks/worktree-f8ma18fn.js +0 -18
- package/dist/chunks/worktree-wntn4vfk.js +0 -26
- /package/dist/chunks/{worktree-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-24dcb14g.js → skill-24dcb14g.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → skill-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2bv980vf.js → skill-2bv980vf.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → skill-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → skill-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → skill-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → skill-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-5fjb7ams.js → skill-5fjb7ams.js} +0 -0
- /package/dist/chunks/{worktree-5qd3pb7m.js → skill-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → skill-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → skill-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → skill-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-84wd9syh.js → skill-84wd9syh.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → skill-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a058387c.js → skill-a058387c.js} +0 -0
- /package/dist/chunks/{worktree-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → skill-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → skill-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cqv5kn06.js → skill-cqv5kn06.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → skill-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dajrwvna.js → skill-dajrwvna.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → skill-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → skill-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → skill-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-ec1grn59.js → skill-ec1grn59.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → skill-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → skill-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → skill-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-gftt206x.js → skill-gftt206x.js} +0 -0
- /package/dist/chunks/{worktree-hcxmzztb.js → skill-hcxmzztb.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → skill-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jwr30sdr.js → skill-jwr30sdr.js} +0 -0
- /package/dist/chunks/{worktree-jze0r7bz.js → skill-jze0r7bz.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-m18g726c.js → skill-m18g726c.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → skill-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → skill-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-pkyv6v7h.js → skill-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → skill-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-ve7vex1e.js → skill-ve7vex1e.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → skill-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wjj7prxr.js → skill-wjj7prxr.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → skill-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → skill-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → skill-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8f7s663.js → skill-y8f7s663.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-ym463w8f.js → skill-ym463w8f.js} +0 -0
- /package/dist/chunks/{worktree-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → skill-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node90
|
|
4
|
+
} from "./skill-bz8b4c6r.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./skill-vp04qmca.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./skill-a058387c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./skill-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
20
|
Options: () => Options4,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
22
|
+
Service: () => Service45,
|
|
23
|
+
UnavailableError: () => UnavailableError4,
|
|
24
|
+
available: () => available2,
|
|
25
25
|
configured: () => configured5,
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
26
|
+
layer: () => layer18,
|
|
27
|
+
node: () => node48
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -34,25 +34,25 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
34
34
|
import { Global } from "@opencode/util/global";
|
|
35
35
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
36
36
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
37
|
-
import { available as
|
|
37
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
38
38
|
var Options4 = Schema.Struct({
|
|
39
39
|
handoff: Schema.optional(Handoff),
|
|
40
40
|
root: Schema.optional(Schema.String)
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class UnavailableError4 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
44
44
|
message: Schema.String
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError6 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
49
49
|
ptyID: Pty.ID
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service45 extends Context.Service()("@opencode/PersistentPty") {
|
|
54
54
|
}
|
|
55
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
55
|
+
var makeLayer = (options = {}) => Layer.effect(Service45, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service86;
|
|
57
57
|
const global = yield* Global.Service;
|
|
58
58
|
const context = yield* Effect.context();
|
|
@@ -75,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service40, Effect.gen(function* (
|
|
|
75
75
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
76
76
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
77
77
|
if (!found)
|
|
78
|
-
return yield* new
|
|
78
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
79
79
|
return found;
|
|
80
80
|
});
|
|
81
81
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -165,7 +165,7 @@ var makeLayer = (options = {}) => Layer.effect(Service40, Effect.gen(function* (
|
|
|
165
165
|
});
|
|
166
166
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
167
167
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
168
|
-
return yield* new
|
|
168
|
+
return yield* new UnavailableError4({ message: "lines must be an integer between 1 and 65535" });
|
|
169
169
|
const id = current.get(sessionID);
|
|
170
170
|
if (!id)
|
|
171
171
|
return null;
|
|
@@ -242,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service40, Effect.gen(function* (
|
|
|
242
242
|
detach: attachment.detach
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return Service45.of({
|
|
246
246
|
list,
|
|
247
247
|
get,
|
|
248
248
|
create,
|
|
@@ -258,17 +258,17 @@ var makeLayer = (options = {}) => Layer.effect(Service40, Effect.gen(function* (
|
|
|
258
258
|
attach
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
var
|
|
261
|
+
var layer18 = makeLayer();
|
|
262
262
|
var configured5 = (options) => makeGlobalNode({
|
|
263
|
-
service:
|
|
264
|
-
layer: options === undefined ?
|
|
265
|
-
deps: [
|
|
263
|
+
service: Service45,
|
|
264
|
+
layer: options === undefined ? layer18 : makeLayer(options),
|
|
265
|
+
deps: [node90, Global.node]
|
|
266
266
|
});
|
|
267
|
-
var
|
|
267
|
+
var node48 = configured5();
|
|
268
268
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
269
269
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
270
|
-
var unexpected = (response) => Effect.fail(new
|
|
271
|
-
var unavailable = (error) => new
|
|
270
|
+
var unexpected = (response) => Effect.fail(new UnavailableError4({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
271
|
+
var unavailable = (error) => new UnavailableError4({ message: error instanceof Error ? error.message : String(error) });
|
|
272
272
|
function toInfo(value) {
|
|
273
273
|
const status = value.lifecycle.status;
|
|
274
274
|
return {
|
|
@@ -300,4 +300,4 @@ function fromID(value) {
|
|
|
300
300
|
return parsed;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export { Options4,
|
|
303
|
+
export { Options4, UnavailableError4, NotFoundError6, Service45, layer18, configured5, node48, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-bz8b4c6r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./skill-gt561mjr.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service33
|
|
10
|
+
} from "./skill-7ete3fjn.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./skill-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command = {};
|
|
17
|
+
__export(exports_command, {
|
|
18
|
+
CommandPlugin: () => exports_command,
|
|
19
|
+
Plugin: () => Plugin6
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin6 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service83;
|
|
200
|
+
const mcp = yield* Service33;
|
|
201
201
|
const bus = yield* Service86;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin6, exports_command };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node91
|
|
4
|
+
} from "./skill-txy76bqw.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-998yhzzq.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
11
|
load5
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./skill-9czcsnv2.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./skill-vwvg46tm.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./skill-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput3,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service77,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node81
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -53,11 +53,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
53
53
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
54
54
|
var ListInput3 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class Service77 extends Context.Service()("@opencode/SessionStore") {
|
|
57
57
|
}
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
59
59
|
const { db } = yield* Service87;
|
|
60
|
-
return
|
|
60
|
+
return Service77.of({
|
|
61
61
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
62
62
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
63
63
|
return row ? fromRow2(row) : undefined;
|
|
@@ -128,6 +128,6 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
131
|
+
var node81 = makeGlobalNode({ service: Service77, layer, deps: [node91] });
|
|
132
132
|
|
|
133
|
-
export { ListInput3,
|
|
133
|
+
export { ListInput3, Service77, node81, exports_store };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./skill-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/project/schema.ts
|
|
9
9
|
var exports_schema = {};
|
|
10
10
|
__export(exports_schema, {
|
|
11
11
|
Current: () => Current3,
|
|
12
|
-
Event: () =>
|
|
12
|
+
Event: () => Event20,
|
|
13
13
|
ID: () => ID18,
|
|
14
|
-
Info: () =>
|
|
14
|
+
Info: () => Info30,
|
|
15
15
|
ProjectSchema: () => exports_schema,
|
|
16
16
|
UpdateInput: () => UpdateInput4,
|
|
17
17
|
Vcs: () => Vcs3
|
|
@@ -20,12 +20,12 @@ import { Schema } from "effect";
|
|
|
20
20
|
import { Project } from "@opencode/schema/project";
|
|
21
21
|
var ID18 = Project.ID;
|
|
22
22
|
var Current3 = Project.Current;
|
|
23
|
-
var
|
|
23
|
+
var Info30 = Project.Info;
|
|
24
24
|
var UpdateInput4 = Project.UpdateInput;
|
|
25
|
-
var
|
|
25
|
+
var Event20 = Project.Event;
|
|
26
26
|
var Vcs3 = Schema.Struct({
|
|
27
27
|
type: Project.Vcs,
|
|
28
28
|
store: AbsolutePath2
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export { ID18, Current3,
|
|
31
|
+
export { ID18, Current3, Info30, UpdateInput4, Event20, Vcs3, exports_schema };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make16,
|
|
10
|
+
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
// src/session/runner/prompt/system.txt
|
|
13
13
|
var system_default = `You are an AI agent running in OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
|
|
@@ -28,10 +28,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
// src/session/system-prompt.ts
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function make16(tools) {
|
|
32
|
+
return render3(system_default, tools);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function render3(prompt, tools) {
|
|
35
35
|
const instructions = [];
|
|
36
36
|
if (tools.includes("shell")) {
|
|
37
37
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -46,4 +46,4 @@ function render2(prompt, tools) {
|
|
|
46
46
|
`));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make16, render3, exports_system_prompt };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-bz8b4c6r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
5
|
+
ID10,
|
|
6
|
+
Event15,
|
|
7
|
+
Service71
|
|
8
|
+
} from "./skill-vnm637sj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID8
|
|
11
|
+
} from "./skill-gfjrd4e2.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./skill-a92dmqhy.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,7 +41,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
44
|
+
const credentials = yield* Service71;
|
|
45
45
|
const bus = yield* Service86;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID8.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
69
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID8.googleVertex);
|
|
69
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID10.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
72
72
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID8.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID8.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID8.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID8.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID8.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -157,7 +157,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
yield* bus.subscribe([
|
|
160
|
+
yield* bus.subscribe([Event15.Updated, Event15.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
161
161
|
const next = yield* load();
|
|
162
162
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
163
163
|
return;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-gfjrd4e2.js";
|
|
5
5
|
import {
|
|
6
6
|
mergeCapabilities2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./skill-5gfep4at.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
10
|
Service55
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./skill-54pbqzcr.js";
|
|
12
12
|
import {
|
|
13
13
|
supports2,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
resolve3
|
|
15
|
+
} from "./skill-c4gxyfvh.js";
|
|
16
16
|
import {
|
|
17
17
|
Document2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./skill-5y0frafb.js";
|
|
19
19
|
import {
|
|
20
20
|
observe2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./skill-6pjqjmy2.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./skill-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/config/plugin/provider.ts
|
|
27
27
|
var exports_provider = {};
|
|
28
28
|
__export(exports_provider, {
|
|
29
29
|
ConfigProviderPlugin: () => exports_provider,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin48,
|
|
31
31
|
integrate: () => integrate2
|
|
32
32
|
});
|
|
33
33
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
34
34
|
import { Money } from "@opencode/schema/money";
|
|
35
35
|
import { Effect } from "effect";
|
|
36
|
-
var
|
|
36
|
+
var Plugin48 = define({
|
|
37
37
|
id: "opencode.config.provider",
|
|
38
38
|
effect: Effect.fn(function* (ctx) {
|
|
39
39
|
const config = yield* Service55;
|
|
@@ -116,7 +116,7 @@ var Plugin38 = define({
|
|
|
116
116
|
if (config.variants === undefined && config.capabilities?.reasoning === undefined && (!source?.base || repackaged))
|
|
117
117
|
models.update(providerID, id, (model) => {
|
|
118
118
|
model.variants = [
|
|
119
|
-
...
|
|
119
|
+
...resolve3({
|
|
120
120
|
...model,
|
|
121
121
|
package: model.package ?? models.provider.get(providerID)?.provider.package
|
|
122
122
|
})
|
|
@@ -213,7 +213,7 @@ function overlay(models, providerPackage, item, providerID, id, config, inherit)
|
|
|
213
213
|
models.update(providerID, id, (model) => {
|
|
214
214
|
if (config.capabilities?.reasoning !== undefined)
|
|
215
215
|
model.variants = [
|
|
216
|
-
...
|
|
216
|
+
...resolve3({ ...model, package: model.package ?? providerPackage }, supports2(config.capabilities.reasoning))
|
|
217
217
|
];
|
|
218
218
|
if (config.variants !== undefined) {
|
|
219
219
|
model.variants ??= [];
|
|
@@ -247,4 +247,4 @@ function overlay(models, providerPackage, item, providerID, id, config, inherit)
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
export {
|
|
250
|
+
export { Plugin48, integrate2, exports_provider };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node90
|
|
4
|
+
} from "./skill-bz8b4c6r.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./skill-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event19,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID16,
|
|
20
|
+
Info: () => Info27,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError11,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service81,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer28,
|
|
29
|
+
node: () => node85,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event19 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID16 = Form.ID;
|
|
39
|
+
var Info27 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID16
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID16
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID16
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID16,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service81 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var layer28 = Layer.effect(Service81, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service86;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError11({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID16.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer26 = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service81.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node85 = makeLocationNode({ service: Service81, layer: layer28, deps: [node90] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID16, Info27, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError11, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service81, layer28, node85, validateAnswer2, validateFields2, exports_form, Event19 };
|