@opencode/core 0.0.0-dev-21876 → 0.0.0-dev-21881
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 +89 -89
- package/dist/aisdk-native.js +96 -96
- package/dist/aisdk.js +102 -102
- package/dist/app.js +5 -5
- package/dist/bus.js +75 -75
- package/dist/chunks/{agent-k1zdwj5m.js → generate-03178dsp.js} +8 -8
- package/dist/chunks/{agent-aj7mw0zk.js → generate-034tev2y.js} +2 -2
- package/dist/chunks/{agent-bmx631f3.js → generate-03efvwc7.js} +5 -5
- package/dist/chunks/{agent-xbymdpda.js → generate-05rvh78w.js} +21 -21
- package/dist/chunks/{agent-45gaytxr.js → generate-0ccsbrde.js} +23 -18
- package/dist/chunks/{agent-jw023j4b.js → generate-0fn5w6ze.js} +4 -4
- package/dist/chunks/{agent-e0gqtbhp.js → generate-0gsbsa6w.js} +8 -8
- package/dist/chunks/{agent-fwsmq32q.js → generate-0kjhz3mt.js} +7 -7
- package/dist/chunks/{agent-11hfp36g.js → generate-11hfp36g.js} +1 -1
- package/dist/chunks/{agent-72ztq2m3.js → generate-1567v7as.js} +12 -12
- package/dist/chunks/generate-1b9qzhs0.js +42 -0
- package/dist/chunks/{agent-ctm212j9.js → generate-1bt4srtf.js} +176 -176
- package/dist/chunks/{agent-27w5k9zf.js → generate-1ep2p91f.js} +2 -2
- package/dist/chunks/{agent-88byhbg6.js → generate-1rj159m0.js} +16 -16
- package/dist/chunks/{agent-35198y27.js → generate-1twhr14d.js} +3 -3
- package/dist/chunks/{agent-f8mfn80p.js → generate-1w9e6g42.js} +6 -6
- package/dist/chunks/{agent-1x2knyw4.js → generate-1x2knyw4.js} +1 -1
- package/dist/chunks/{agent-c8g0sqk1.js → generate-1ypt5wpy.js} +3 -3
- package/dist/chunks/{agent-z514f9er.js → generate-20crrbd7.js} +16 -16
- package/dist/chunks/{agent-g925vmef.js → generate-20zdy5ks.js} +6 -6
- package/dist/chunks/{agent-nd27gdj2.js → generate-25tc2yyb.js} +23 -23
- package/dist/chunks/{agent-8dzbm67s.js → generate-2b5b45c9.js} +10 -10
- package/dist/chunks/{agent-j5qp76cc.js → generate-2e5xfyre.js} +5 -5
- package/dist/chunks/{agent-csnrqqvz.js → generate-2hnx25th.js} +6 -6
- package/dist/chunks/{agent-at22psrd.js → generate-2j0h6455.js} +38 -38
- package/dist/chunks/{agent-p70n5a2e.js → generate-2mm464fz.js} +34 -34
- package/dist/chunks/{agent-3xynd5jb.js → generate-2p4wxb8m.js} +43 -43
- package/dist/chunks/{agent-gpe9115v.js → generate-2ymc78nk.js} +17 -17
- package/dist/chunks/{agent-2z1j29yd.js → generate-2z1j29yd.js} +1 -1
- package/dist/chunks/{agent-ncn2yap2.js → generate-308nzxyx.js} +4 -4
- package/dist/chunks/{agent-jqjqv5mv.js → generate-37cm3r6v.js} +3 -3
- package/dist/chunks/{agent-2a94dxzd.js → generate-39b0v2m0.js} +17 -17
- package/dist/chunks/{agent-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{agent-fshpjc7v.js → generate-3m2th8fr.js} +7 -7
- package/dist/chunks/{agent-3nnrz6f6.js → generate-3nnrz6f6.js} +1 -1
- package/dist/chunks/{agent-9wssh0tx.js → generate-3xj7n42w.js} +20 -20
- package/dist/chunks/{agent-w2eysc6j.js → generate-40za9wsf.js} +9 -9
- package/dist/chunks/{agent-xgm1b0sj.js → generate-450yhr7g.js} +16 -16
- package/dist/chunks/{agent-yc04cj61.js → generate-45hvr24s.js} +31 -25
- package/dist/chunks/{agent-hjtcdw49.js → generate-49fajgsd.js} +7 -7
- package/dist/chunks/{agent-jtrgaghe.js → generate-4gjjgmy7.js} +41 -41
- package/dist/chunks/{agent-bqje3trr.js → generate-4hh95258.js} +16 -16
- package/dist/chunks/{agent-hzyjdts2.js → generate-4k9tnmjh.js} +2 -2
- package/dist/chunks/{agent-t5kz8xvk.js → generate-4sszy9c0.js} +18 -18
- package/dist/chunks/{agent-4v008n1t.js → generate-4v008n1t.js} +1 -1
- package/dist/chunks/{agent-4xvmh7wp.js → generate-4xvmh7wp.js} +3 -3
- package/dist/chunks/{agent-qdq46y43.js → generate-59qf4ysp.js} +30 -30
- package/dist/chunks/{agent-bqabctay.js → generate-5a525hm9.js} +13 -13
- package/dist/chunks/{agent-pt1ss6jy.js → generate-5ect6tx9.js} +3 -3
- package/dist/chunks/{agent-095ywf79.js → generate-5emr5dp8.js} +19 -19
- package/dist/chunks/{agent-tm42qtpg.js → generate-5fth6e7e.js} +15 -15
- package/dist/chunks/{agent-x8m11snx.js → generate-5h9kw7gs.js} +24 -24
- package/dist/chunks/{agent-tzgk7pc9.js → generate-5j08c03m.js} +14 -14
- package/dist/chunks/{agent-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
- package/dist/chunks/{agent-b6vsg801.js → generate-5nnwax6m.js} +5 -5
- package/dist/chunks/{agent-y7rptanb.js → generate-5r72z9dp.js} +8 -8
- package/dist/chunks/{agent-z895d3e0.js → generate-5yqt7x1t.js} +3 -3
- package/dist/chunks/{agent-f1dzx5gz.js → generate-60chehtb.js} +3 -3
- package/dist/chunks/{agent-6qeh1vj5.js → generate-65b6wh7d.js} +30 -30
- package/dist/chunks/{agent-0mq7r730.js → generate-6bh3dv2n.js} +26 -26
- package/dist/chunks/{agent-68s5dt7r.js → generate-6dvctgn8.js} +66 -66
- package/dist/chunks/{agent-6esdw8yj.js → generate-6esdw8yj.js} +1 -1
- package/dist/chunks/{agent-6pjqjmy2.js → generate-6pjqjmy2.js} +1 -1
- package/dist/chunks/{agent-tk0xf7e5.js → generate-6rsjzsax.js} +11 -11
- package/dist/chunks/{agent-8xns6cym.js → generate-6saj3a0m.js} +6 -6
- package/dist/chunks/{agent-97zspg27.js → generate-6t0a6egd.js} +11 -11
- package/dist/chunks/{agent-wt9cess9.js → generate-6y263vp8.js} +5 -5
- package/dist/chunks/{agent-9ygqb4bs.js → generate-6zf9q3dm.js} +13 -13
- package/dist/chunks/{agent-fw7t8tww.js → generate-73z36sy8.js} +18 -18
- package/dist/chunks/{agent-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{agent-799ckdtf.js → generate-7cx8wp0a.js} +9 -9
- package/dist/chunks/{agent-wqwygejh.js → generate-7qvq4ghn.js} +45 -45
- package/dist/chunks/{agent-7w2ypzdf.js → generate-7w2ypzdf.js} +1 -1
- package/dist/chunks/{agent-feq2fds5.js → generate-7x78ttrr.js} +23 -23
- package/dist/chunks/{agent-twhms9x5.js → generate-81bgmkmh.js} +9 -9
- package/dist/chunks/{agent-hendem5s.js → generate-860y05k0.js} +60 -66
- package/dist/chunks/{agent-06ezgrzy.js → generate-88gqnt7v.js} +6 -6
- package/dist/chunks/{agent-ys6sktyv.js → generate-8esy4z26.js} +17 -17
- package/dist/chunks/{agent-xfmhx0sz.js → generate-8q417wg1.js} +35 -35
- package/dist/chunks/{agent-8wtp7s3z.js → generate-8wtp7s3z.js} +1 -1
- package/dist/chunks/{agent-92c1azvn.js → generate-8ykqf5wm.js} +11 -11
- package/dist/chunks/{agent-ybkhfr2c.js → generate-8zg4nwes.js} +3 -3
- package/dist/chunks/{agent-91rj84md.js → generate-91rj84md.js} +1 -1
- package/dist/chunks/{agent-808w5zy2.js → generate-94gztf2h.js} +24 -24
- package/dist/chunks/{agent-sfm9ka6b.js → generate-9844398g.js} +36 -36
- package/dist/chunks/{agent-9cx9sm2q.js → generate-9cx9sm2q.js} +1 -1
- package/dist/chunks/{agent-nynx6wfa.js → generate-9czaxqrp.js} +11 -11
- package/dist/chunks/{agent-ks6g0x1g.js → generate-9ma9r77m.js} +12 -10
- package/dist/chunks/{agent-jnwx2kg9.js → generate-9p9xqj3m.js} +4 -4
- package/dist/chunks/{agent-6e50d9hn.js → generate-9rfhangp.js} +50 -50
- package/dist/chunks/{agent-g85rjq8b.js → generate-9rkew2h6.js} +21 -21
- package/dist/chunks/{agent-rzcykvvq.js → generate-9yjwf605.js} +150 -150
- package/dist/chunks/{agent-hezwayvj.js → generate-a46k5kbx.js} +21 -21
- package/dist/chunks/{agent-3ayfnv7k.js → generate-abv9f74v.js} +24 -24
- package/dist/chunks/{agent-sp5f2d2e.js → generate-adfm7s3d.js} +30 -30
- package/dist/chunks/{agent-zgt5j0h2.js → generate-agqd6nxz.js} +6 -6
- package/dist/chunks/{agent-k497vvr9.js → generate-ahvh1qya.js} +4 -4
- package/dist/chunks/{agent-e3nyjr0f.js → generate-aks81gr4.js} +8 -8
- package/dist/chunks/{agent-3hekd5hc.js → generate-amjfyfwc.js} +19 -19
- package/dist/chunks/{agent-3cbjf1nt.js → generate-ayjs7tqn.js} +2 -2
- package/dist/chunks/{agent-s531t74k.js → generate-aym3a85m.js} +34 -34
- package/dist/chunks/{agent-b0mv4wxm.js → generate-b0mv4wxm.js} +2 -2
- package/dist/chunks/{agent-a8b15abj.js → generate-b87bx4hb.js} +22 -22
- package/dist/chunks/{agent-s9ngdvzg.js → generate-ba6md75m.js} +14 -14
- package/dist/chunks/{agent-7n1bz5n5.js → generate-be310d62.js} +9 -9
- package/dist/chunks/{agent-pzzw8bte.js → generate-bf35rx15.js} +6 -6
- package/dist/chunks/{agent-6mrjjgaf.js → generate-bhvs01y7.js} +6 -6
- package/dist/chunks/{agent-42jd4697.js → generate-bjhzkqyk.js} +4 -4
- package/dist/chunks/{agent-3pgqqt17.js → generate-bqbcn5z1.js} +25 -25
- package/dist/chunks/{agent-28kj7fpp.js → generate-brryxvg9.js} +2 -2
- package/dist/chunks/{agent-bstexjd6.js → generate-bstexjd6.js} +1 -1
- package/dist/chunks/{agent-g5h81d8x.js → generate-bwk9zsmg.js} +51 -30
- package/dist/chunks/{agent-kd4chd64.js → generate-c6x7d2ts.js} +7 -7
- package/dist/chunks/{agent-ssfehs1z.js → generate-c9t2ty9q.js} +4 -4
- package/dist/chunks/{agent-wj0x0my7.js → generate-cr10brw4.js} +32 -32
- package/dist/chunks/{agent-hx6gesf1.js → generate-crfddmzc.js} +8 -8
- package/dist/chunks/{agent-s2pfznc4.js → generate-d121hxf2.js} +6 -6
- package/dist/chunks/{agent-t0s3yhk6.js → generate-d47y8g47.js} +20 -20
- package/dist/chunks/{agent-gn8tkhbf.js → generate-d4v9tmah.js} +2 -2
- package/dist/chunks/{agent-08jmxpw8.js → generate-dkqkergf.js} +9 -9
- package/dist/chunks/{agent-e88ktd3c.js → generate-dpq6z7p1.js} +27 -27
- package/dist/chunks/{agent-2mcwn9hz.js → generate-dr524zn0.js} +18 -18
- package/dist/chunks/{agent-yst6f085.js → generate-dsjbn4pc.js} +4 -4
- package/dist/chunks/{agent-r1t3cyb3.js → generate-dv7g9852.js} +10 -10
- package/dist/chunks/{agent-5qd3pb7m.js → generate-e3qxr5gk.js} +2 -2
- package/dist/chunks/{agent-a8g4y5z7.js → generate-e5txay44.js} +4 -4
- package/dist/chunks/{agent-6b8sf6ch.js → generate-e7c5a3nr.js} +9 -9
- package/dist/chunks/{agent-e834z07m.js → generate-e834z07m.js} +1 -1
- package/dist/chunks/{agent-n585bckd.js → generate-e9waf9qz.js} +12 -12
- package/dist/chunks/{agent-xnhfvn64.js → generate-eewf5kq5.js} +27 -27
- package/dist/chunks/{agent-n0f2hcr3.js → generate-etgazebn.js} +28 -28
- package/dist/chunks/{agent-kbmq0v6f.js → generate-ex2ghmgq.js} +5 -5
- package/dist/chunks/{agent-rxp322v2.js → generate-eyyv5nda.js} +15 -15
- package/dist/chunks/{agent-gjk9ww24.js → generate-ezas4x5c.js} +83 -83
- package/dist/chunks/{agent-kknkytq1.js → generate-ezm5mefv.js} +15 -15
- package/dist/chunks/{agent-m9pm89y0.js → generate-f4ce04df.js} +7 -7
- package/dist/chunks/{agent-gfb9vjwz.js → generate-f83r4zqb.js} +14 -14
- package/dist/chunks/{agent-bwe4w6pg.js → generate-fc14jyx3.js} +17 -17
- package/dist/chunks/{agent-fffv3p7h.js → generate-fffv3p7h.js} +1 -1
- package/dist/chunks/{agent-h36b412q.js → generate-fj4n425x.js} +83 -83
- package/dist/chunks/{agent-xsdgnd9a.js → generate-ftav155q.js} +5 -5
- package/dist/chunks/{agent-ng3c2vx3.js → generate-fvxgcjfj.js} +26 -26
- package/dist/chunks/{agent-w687dnns.js → generate-fznmdakp.js} +4 -4
- package/dist/chunks/{agent-bnvqjy8m.js → generate-g0skazn8.js} +17 -17
- package/dist/chunks/{agent-g5h9c0rr.js → generate-g5h9c0rr.js} +2 -2
- package/dist/chunks/{agent-2mbjfaxd.js → generate-gc4rcfsx.js} +4 -4
- package/dist/chunks/{agent-a2hq59ke.js → generate-gcnn6hyw.js} +24 -24
- package/dist/chunks/{agent-wj8xy6vp.js → generate-gg0rfb5w.js} +14 -14
- package/dist/chunks/{agent-ep59zg61.js → generate-gg8p9cgs.js} +3 -3
- package/dist/chunks/{agent-z45ac4nf.js → generate-gnnftrr1.js} +33 -33
- package/dist/chunks/{agent-eyn6zj3x.js → generate-gqbdtr3f.js} +14 -14
- package/dist/chunks/{agent-r0yav5tq.js → generate-gqmen105.js} +14 -14
- package/dist/chunks/{agent-43extae9.js → generate-h1ferrrm.js} +9 -9
- package/dist/chunks/{agent-y3h8fq5y.js → generate-h4m582a6.js} +31 -31
- package/dist/chunks/{agent-ard2b0yg.js → generate-h659bff6.js} +3 -3
- package/dist/chunks/{agent-g4qbe2v9.js → generate-h7gvp0tv.js} +2 -2
- package/dist/chunks/{agent-rydtep4r.js → generate-h7yew4n9.js} +9 -9
- package/dist/chunks/{agent-xz8r6fbg.js → generate-h85wfqm9.js} +16 -16
- package/dist/chunks/{agent-a7s1nr2m.js → generate-hdfrs5mg.js} +2 -2
- package/dist/chunks/{agent-y7a54drw.js → generate-hna5e0rk.js} +25 -25
- package/dist/chunks/{agent-9872gzyf.js → generate-ht2xqj16.js} +29 -29
- package/dist/chunks/{agent-erh01ra6.js → generate-hw7xvx1w.js} +3 -3
- package/dist/chunks/{agent-pv6sstp4.js → generate-hwf1b6v4.js} +12 -12
- package/dist/chunks/{agent-32c4tavh.js → generate-hx31exwe.js} +40 -40
- package/dist/chunks/{agent-csg411tc.js → generate-hyvmjqrf.js} +11 -11
- package/dist/chunks/{agent-nes0c8n7.js → generate-hzjw5pxs.js} +14 -14
- package/dist/chunks/{agent-j113cymg.js → generate-j113cymg.js} +1 -1
- package/dist/chunks/{agent-akxzt346.js → generate-j5zs165q.js} +27 -27
- package/dist/chunks/{agent-yr88cfc3.js → generate-jecrmhrf.js} +20 -20
- package/dist/chunks/{agent-qax5zjmd.js → generate-jh1t67wh.js} +17 -17
- package/dist/chunks/{agent-k814nvkf.js → generate-k814nvkf.js} +1 -1
- package/dist/chunks/{agent-ghsyx58e.js → generate-k829tzk9.js} +4 -4
- package/dist/chunks/generate-ke35y05g.js +26 -0
- package/dist/chunks/{agent-a013asta.js → generate-kftyqbhm.js} +13 -13
- package/dist/chunks/{agent-4c58dp62.js → generate-kjt6993h.js} +51 -51
- package/dist/chunks/{agent-kt3bjfbg.js → generate-kt3bjfbg.js} +1 -1
- package/dist/chunks/{agent-9yr8g2ta.js → generate-kv6gsz9b.js} +5 -5
- package/dist/chunks/{agent-psjhb6h9.js → generate-kvfvqdzr.js} +9 -9
- package/dist/chunks/{agent-d75wdvfq.js → generate-kyjdqzbx.js} +23 -23
- package/dist/chunks/{agent-m1714858.js → generate-m1714858.js} +1 -1
- package/dist/chunks/{agent-8y4jps98.js → generate-m37sd98t.js} +4 -4
- package/dist/chunks/{agent-y63jcvcc.js → generate-m64hvvbh.js} +7 -7
- package/dist/chunks/{agent-w98x3qrj.js → generate-m6gaya9c.js} +18 -18
- package/dist/chunks/{agent-je6j3j9f.js → generate-m6tde151.js} +31 -31
- package/dist/chunks/{agent-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{agent-maspj1v3.js → generate-maspj1v3.js} +1 -1
- package/dist/chunks/{agent-bgg6fpfq.js → generate-me7kxg3j.js} +8 -8
- package/dist/chunks/{agent-km2ven80.js → generate-mhkzz5y2.js} +8 -8
- package/dist/chunks/{agent-7xm5yhm8.js → generate-mj6e6dj3.js} +48 -48
- package/dist/chunks/{agent-n66c6y3m.js → generate-mn53dk4j.js} +6 -6
- package/dist/chunks/{agent-wddf3ds8.js → generate-mnsb4k1q.js} +5 -5
- package/dist/chunks/{agent-0ear39jp.js → generate-mtyjk5mv.js} +11 -11
- package/dist/chunks/{agent-jzga9m04.js → generate-mzeef7bv.js} +4 -4
- package/dist/chunks/{agent-8sw8s5xk.js → generate-n2prjmzh.js} +22 -22
- package/dist/chunks/{agent-ademh8e3.js → generate-n49yy442.js} +11 -11
- package/dist/chunks/{agent-we2361r8.js → generate-n7ydacfz.js} +5 -5
- package/dist/chunks/{agent-nah043kf.js → generate-nah043kf.js} +1 -1
- package/dist/chunks/{agent-z2v06856.js → generate-nj7gxwd2.js} +5 -5
- package/dist/chunks/{agent-aqjzr6r1.js → generate-nmbqtac7.js} +21 -21
- package/dist/chunks/{agent-f0vthqmt.js → generate-np2dfhev.js} +20 -20
- package/dist/chunks/{agent-gz1ychq3.js → generate-ns4f8tr7.js} +19 -19
- package/dist/chunks/{agent-p015t6z3.js → generate-p015t6z3.js} +2 -2
- package/dist/chunks/{agent-p7vhpwh8.js → generate-p7vhpwh8.js} +1 -1
- package/dist/chunks/{agent-y49518kq.js → generate-pcsmd4he.js} +47 -47
- package/dist/chunks/{agent-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{agent-4jyhcbwp.js → generate-ppk0knvm.js} +11 -11
- package/dist/chunks/{agent-t5tpffef.js → generate-pvwdf2yr.js} +9 -9
- package/dist/chunks/{agent-nvakqqep.js → generate-py2ydaen.js} +13 -13
- package/dist/chunks/{agent-e8yvr5rn.js → generate-q48tb2m2.js} +17 -17
- package/dist/chunks/{agent-508bnh7x.js → generate-q8s21k0n.js} +4 -4
- package/dist/chunks/{agent-swtsh7ge.js → generate-qby0d106.js} +31 -31
- package/dist/chunks/{agent-aqnwz5fn.js → generate-qgj1m8vp.js} +11 -11
- package/dist/chunks/{agent-2y49s4ck.js → generate-qhfh2fyf.js} +10 -10
- package/dist/chunks/{agent-c3zt26pz.js → generate-qmvd76a3.js} +5 -5
- package/dist/chunks/{agent-1vztwarw.js → generate-qq0vx577.js} +2 -2
- package/dist/chunks/{agent-2zwbm7z6.js → generate-qw45kx2n.js} +15 -15
- package/dist/chunks/{agent-cfg1gyez.js → generate-qwa5qwjv.js} +1 -1
- package/dist/chunks/{agent-033a0jkt.js → generate-qyq8h28g.js} +3 -3
- package/dist/chunks/{agent-r0yr0wbs.js → generate-r0yr0wbs.js} +1 -1
- package/dist/chunks/{agent-r542h3bh.js → generate-r542h3bh.js} +1 -1
- package/dist/chunks/{agent-3vn4m52k.js → generate-r91jcx8b.js} +26 -26
- package/dist/chunks/{agent-rb9dy4dg.js → generate-rb9dy4dg.js} +1 -1
- package/dist/chunks/{agent-r4pwrx75.js → generate-rmt6m6se.js} +9 -9
- package/dist/chunks/{agent-f12pq1t4.js → generate-rqa5g7v6.js} +42 -40
- package/dist/chunks/{agent-rt5dr6hb.js → generate-rt5dr6hb.js} +1 -1
- package/dist/chunks/{agent-w4g85eya.js → generate-s04tdcvb.js} +17 -17
- package/dist/chunks/{agent-1y0wdj51.js → generate-s7kyse9r.js} +9 -9
- package/dist/chunks/{agent-sa3fpqfw.js → generate-sa3fpqfw.js} +2 -2
- package/dist/chunks/{agent-reqv0nhy.js → generate-ser66ar7.js} +54 -54
- package/dist/chunks/{agent-w162aavb.js → generate-sjn4p4df.js} +20 -20
- package/dist/chunks/{agent-9tqk2n2m.js → generate-sm9at3z0.js} +5 -5
- package/dist/chunks/{agent-kmch1wfz.js → generate-smf0az4w.js} +26 -26
- package/dist/chunks/{agent-qxhawqxf.js → generate-spxsma9c.js} +14 -14
- package/dist/chunks/{agent-sqjzf8x2.js → generate-sqjzf8x2.js} +1 -1
- package/dist/chunks/{agent-dkdbn7qp.js → generate-srfbxa22.js} +27 -27
- package/dist/chunks/{agent-vpy60e9y.js → generate-srg9stfr.js} +24 -24
- package/dist/chunks/{agent-zm3vydp0.js → generate-sw5900k8.js} +10 -10
- package/dist/chunks/{agent-2bc1d118.js → generate-sz4p1zm9.js} +11 -11
- package/dist/chunks/{agent-r476v4sd.js → generate-t39b6msr.js} +1 -1
- package/dist/chunks/{agent-xpzag304.js → generate-t6myarfx.js} +18 -18
- package/dist/chunks/{agent-xvqc07w7.js → generate-t7ncsdpk.js} +11 -11
- package/dist/chunks/{agent-tczq8hjw.js → generate-tczq8hjw.js} +1 -1
- package/dist/chunks/{agent-hw621kav.js → generate-tg1vr1qt.js} +8 -8
- package/dist/chunks/{agent-d9b58nj2.js → generate-tpcr1ym9.js} +27 -27
- package/dist/chunks/{agent-twv2r8f4.js → generate-twv2r8f4.js} +2 -2
- package/dist/chunks/{agent-v2r1d0zg.js → generate-v2r1d0zg.js} +1 -1
- package/dist/chunks/{agent-gjkhks3w.js → generate-v98na84w.js} +10 -10
- package/dist/chunks/{agent-r0sc5khv.js → generate-vc4879sd.js} +9 -9
- package/dist/chunks/{agent-vd3b3yk9.js → generate-vd3b3yk9.js} +1 -1
- package/dist/chunks/{agent-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{agent-82ahwy3q.js → generate-vfd66558.js} +17 -17
- package/dist/chunks/{agent-164he8xt.js → generate-vvj2v3v2.js} +10 -10
- package/dist/chunks/{agent-z9cf55b4.js → generate-w0mr8pfp.js} +13 -13
- package/dist/chunks/{agent-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{agent-w8qtt4th.js → generate-w8qtt4th.js} +1 -1
- package/dist/chunks/{agent-630d3s4r.js → generate-waekfe58.js} +19 -19
- package/dist/chunks/{agent-wakvkjy4.js → generate-wakvkjy4.js} +1 -1
- package/dist/chunks/{agent-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{agent-wqf6whd0.js → generate-wef44qxv.js} +4 -4
- package/dist/chunks/{agent-zbyebx2k.js → generate-wghss91q.js} +9 -9
- package/dist/chunks/{agent-wby0kqsc.js → generate-wn3e8tka.js} +9 -9
- package/dist/chunks/{agent-90z60219.js → generate-wr6c97eb.js} +16 -16
- package/dist/chunks/{agent-fyswm6z2.js → generate-wwthzbr1.js} +9 -9
- package/dist/chunks/{agent-eyaew5ez.js → generate-wy0hchk8.js} +16 -16
- package/dist/chunks/{agent-zegbnajt.js → generate-wy4whz5z.js} +4 -4
- package/dist/chunks/{agent-qvzt83st.js → generate-x4wyjn1e.js} +17 -17
- package/dist/chunks/{agent-skxa8yqx.js → generate-x6w6jbv3.js} +318 -318
- package/dist/chunks/generate-xgsg3c9w.js +18 -0
- package/dist/chunks/{agent-052306eg.js → generate-xkzeecwb.js} +6 -6
- package/dist/chunks/{agent-7xb8m1hd.js → generate-xq0asyt8.js} +25 -25
- package/dist/chunks/{agent-dekedfjb.js → generate-xvbhqn7e.js} +18 -18
- package/dist/chunks/{agent-2c71xmrd.js → generate-xwwftgt8.js} +36 -36
- package/dist/chunks/{agent-akqrtxca.js → generate-y2qm725k.js} +9 -9
- package/dist/chunks/{agent-8er64j5e.js → generate-y3v10bb3.js} +24 -24
- package/dist/chunks/generate-y5tx2pf5.js +215 -0
- package/dist/chunks/{agent-52jahdhd.js → generate-y8jm6641.js} +10 -10
- package/dist/chunks/{agent-0dcj0mgt.js → generate-ya93hhk9.js} +7 -7
- package/dist/chunks/{agent-yb20nhc3.js → generate-yb20nhc3.js} +1 -1
- package/dist/chunks/{agent-c8k7ww63.js → generate-yx7gwedn.js} +26 -26
- package/dist/chunks/{agent-7a2bwsmz.js → generate-yydqqga9.js} +4 -4
- package/dist/chunks/{agent-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{agent-z38nccrw.js → generate-z38nccrw.js} +1 -1
- package/dist/chunks/{agent-0ryzmj4j.js → generate-z553p4sn.js} +4 -4
- package/dist/chunks/{agent-m8rxg9cs.js → generate-zk70hy5y.js} +27 -27
- package/dist/chunks/{agent-zkg84ctx.js → generate-zkg84ctx.js} +1 -1
- package/dist/chunks/{agent-dw0tqvgd.js → generate-zv3m3tdk.js} +4 -4
- package/dist/chunks/{agent-wz5tj16h.js → generate-zw4pk1bw.js} +5 -5
- package/dist/chunks/{agent-k6msgc74.js → generate-zw7j8ap3.js} +15 -15
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +91 -91
- package/dist/config/discovery.js +89 -89
- package/dist/config/integration.js +7 -7
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +220 -220
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +121 -121
- package/dist/config/plugin/image.js +120 -120
- package/dist/config/plugin/instruction.js +120 -120
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +121 -121
- package/dist/config/plugin/reference.js +122 -122
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +137 -111
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +120 -120
- package/dist/config/plugin/source.js +123 -123
- package/dist/config/plugin/tool-output.js +121 -121
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +122 -122
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -117
- 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 +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +380 -380
- 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 +100 -100
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +102 -102
- 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 +139 -113
- package/dist/file-mutation.js +101 -101
- 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 +106 -106
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +5 -5
- package/dist/filesystem.js +109 -109
- package/dist/form.js +92 -92
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +94 -94
- package/dist/generate.js +114 -114
- package/dist/git.js +7 -7
- 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 +106 -106
- 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 +371 -371
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +94 -94
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +97 -97
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +160 -160
- package/dist/location-lifecycle.js +141 -116
- package/dist/location-service-map.js +93 -93
- package/dist/location-services.js +368 -368
- package/dist/location.js +88 -88
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +98 -98
- package/dist/mcp/index.js +116 -116
- package/dist/mcp/instructions.js +167 -147
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +97 -97
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +106 -106
- package/dist/model-resolver.js +106 -106
- package/dist/model-retry.js +1 -1
- package/dist/model.js +109 -109
- package/dist/models-dev.js +104 -104
- 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 +152 -126
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +94 -94
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +109 -109
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +224 -224
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +341 -341
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +103 -103
- package/dist/plugin/module.js +122 -122
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +137 -111
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +97 -97
- package/dist/plugin/provider/azure.js +120 -120
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +120 -120
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +116 -116
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +100 -100
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +102 -102
- package/dist/plugin/provider/gitlab.js +100 -100
- package/dist/plugin/provider/google-vertex.js +117 -117
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +129 -129
- package/dist/plugin/provider/local.js +126 -126
- package/dist/plugin/provider/modal.js +99 -99
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +129 -129
- package/dist/plugin/provider/openai-context-caps.js +97 -97
- package/dist/plugin/provider/openai.js +122 -122
- package/dist/plugin/provider/opencode-legacy.js +107 -107
- package/dist/plugin/provider/opencode.js +126 -126
- package/dist/plugin/provider/openrouter.js +98 -98
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +98 -98
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +119 -119
- package/dist/plugin/provider/vercel.js +97 -97
- package/dist/plugin/provider/vllm.js +129 -129
- package/dist/plugin/provider/xai.js +98 -98
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +177 -177
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- 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 +93 -93
- package/dist/plugin/vcs/hg.js +93 -93
- package/dist/plugin/verbosity.js +100 -100
- package/dist/plugin/warming.js +118 -118
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +87 -87
- package/dist/provider.js +108 -108
- 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 +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +102 -102
- package/dist/rpc.js +93 -93
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +136 -9
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +157 -139
- package/dist/session/context.js +187 -171
- package/dist/session/diff.js +95 -95
- 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 +227 -227
- package/dist/session/execution.js +151 -135
- package/dist/session/generate.js +189 -173
- package/dist/session/history.js +128 -17
- package/dist/session/inbox.js +137 -101
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +133 -106
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +154 -129
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +155 -139
- package/dist/session/projector.js +133 -97
- package/dist/session/prompt.js +139 -114
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +129 -103
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +237 -237
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +107 -107
- package/dist/session/runner/publish-llm-event.js +140 -122
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +153 -135
- package/dist/session/runner/to-llm-message.js +127 -16
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +134 -134
- package/dist/session/skill.js +138 -112
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +132 -93
- package/dist/session/stored.js +8 -6
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +218 -218
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +189 -173
- package/dist/session/to-session-error.js +139 -121
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +222 -222
- package/dist/shell/parse.js +6 -6
- 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 +136 -136
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +142 -116
- package/dist/skill.js +145 -119
- 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 +166 -146
- package/dist/tool/plugin/edit.js +155 -129
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +151 -125
- package/dist/tool/plugin/grep.js +157 -131
- package/dist/tool/plugin/mcp-resource.js +153 -133
- package/dist/tool/plugin/opencode.js +144 -118
- package/dist/tool/plugin/patch.js +155 -129
- package/dist/tool/plugin/question.js +139 -114
- package/dist/tool/plugin/read.js +154 -128
- package/dist/tool/plugin/shell.js +221 -221
- package/dist/tool/plugin/skill.js +146 -120
- package/dist/tool/plugin/subagent.js +225 -225
- package/dist/tool/plugin/todo.js +144 -144
- package/dist/tool/plugin/webfetch.js +148 -122
- package/dist/tool/plugin/websearch.js +144 -121
- package/dist/tool/plugin/write.js +153 -127
- package/dist/tool/read-filesystem.js +109 -109
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +8 -8
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/models-dev.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
- package/dist/types/plugin/provider/modal.d.ts +1 -1
- package/dist/types/plugin/provider/openai.d.ts +1 -1
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/session/blob.d.ts +877 -0
- package/dist/types/session/compaction.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +5 -2
- package/dist/types/session/stored.d.ts +3 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/types/wellknown/plugin.d.ts +1 -1
- package/dist/usage-limits.js +95 -95
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +99 -99
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +100 -100
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +96 -96
- package/dist/voice.js +94 -94
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- 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 +96 -96
- package/dist/worktree.js +105 -105
- package/package.json +8 -8
- package/dist/chunks/agent-66c1tj1c.js +0 -39
- package/dist/chunks/agent-db6xh5f5.js +0 -26
- package/dist/chunks/agent-es3b2gsk.js +0 -107
- package/dist/chunks/agent-ev660z6k.js +0 -18
- /package/dist/chunks/{agent-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{agent-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{agent-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{agent-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{agent-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{agent-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{agent-2bv980vf.js → generate-2bv980vf.js} +0 -0
- /package/dist/chunks/{agent-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{agent-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{agent-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{agent-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{agent-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{agent-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{agent-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{agent-4m86bj6y.js → generate-4m86bj6y.js} +0 -0
- /package/dist/chunks/{agent-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{agent-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{agent-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{agent-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{agent-5fjb7ams.js → generate-5fjb7ams.js} +0 -0
- /package/dist/chunks/{agent-5w3e23ze.js → generate-5w3e23ze.js} +0 -0
- /package/dist/chunks/{agent-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{agent-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{agent-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{agent-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{agent-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{agent-84wd9syh.js → generate-84wd9syh.js} +0 -0
- /package/dist/chunks/{agent-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{agent-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{agent-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{agent-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{agent-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{agent-a058387c.js → generate-a058387c.js} +0 -0
- /package/dist/chunks/{agent-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{agent-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{agent-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{agent-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{agent-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{agent-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{agent-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{agent-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{agent-cqv5kn06.js → generate-cqv5kn06.js} +0 -0
- /package/dist/chunks/{agent-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{agent-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{agent-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{agent-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{agent-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{agent-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{agent-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{agent-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{agent-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{agent-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{agent-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{agent-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{agent-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{agent-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{agent-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{agent-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{agent-fkpq3x5p.js → generate-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{agent-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{agent-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{agent-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{agent-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{agent-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
- /package/dist/chunks/{agent-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{agent-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{agent-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{agent-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{agent-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{agent-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{agent-jwr30sdr.js → generate-jwr30sdr.js} +0 -0
- /package/dist/chunks/{agent-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
- /package/dist/chunks/{agent-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{agent-m18g726c.js → generate-m18g726c.js} +0 -0
- /package/dist/chunks/{agent-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{agent-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{agent-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{agent-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{agent-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{agent-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{agent-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{agent-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{agent-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{agent-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{agent-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{agent-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{agent-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{agent-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{agent-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{agent-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
- /package/dist/chunks/{agent-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{agent-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{agent-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{agent-wjj7prxr.js → generate-wjj7prxr.js} +0 -0
- /package/dist/chunks/{agent-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{agent-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{agent-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{agent-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{agent-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{agent-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{agent-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{agent-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{agent-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-zkg84ctx.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
Service83
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./generate-qq0vx577.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service68
|
|
12
|
+
} from "./generate-nmbqtac7.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service67
|
|
15
|
+
} from "./generate-hzjw5pxs.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-dpq6z7p1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service54
|
|
24
|
+
} from "./generate-kjt6993h.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service48
|
|
27
|
+
} from "./generate-eyyv5nda.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/glob.ts
|
|
33
33
|
var exports_glob = {};
|
|
@@ -35,7 +35,7 @@ __export(exports_glob, {
|
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
36
|
Input: () => Input4,
|
|
37
37
|
Output: () => Output2,
|
|
38
|
-
Plugin: () =>
|
|
38
|
+
Plugin: () => Plugin39,
|
|
39
39
|
name: () => name4,
|
|
40
40
|
toModelContent: () => toModelContent3
|
|
41
41
|
});
|
|
@@ -63,14 +63,14 @@ var toModelContent3 = (entries, truncated = false) => {
|
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin39 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
69
|
+
const environment = yield* Service68;
|
|
70
|
+
const ripgrep = yield* Service67;
|
|
71
71
|
const location = yield* Service83;
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
72
|
+
const access = yield* Service48;
|
|
73
|
+
const permission = yield* Service54;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
75
|
name: name4,
|
|
76
76
|
options: { codemode: false },
|
|
@@ -125,4 +125,4 @@ var Plugin21 = {
|
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { name4, Input4, Output2, toModelContent3,
|
|
128
|
+
export { name4, Input4, Output2, toModelContent3, Plugin39, exports_glob };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-3v8g72cx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
MAX_RESPONSE_BYTES: () =>
|
|
12
|
-
WebSearchMcp: () =>
|
|
9
|
+
var exports_mcp = {};
|
|
10
|
+
__export(exports_mcp, {
|
|
11
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
12
|
+
WebSearchMcp: () => exports_mcp,
|
|
13
13
|
call: () => call2,
|
|
14
14
|
parseResponse: () => parseResponse2
|
|
15
15
|
});
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var MAX_RESPONSE_BYTES2 = 256 * 1024;
|
|
19
19
|
var parseResponse2 = (body, result) => {
|
|
20
20
|
const decode = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ result })));
|
|
21
21
|
const parse = (payload) => {
|
|
@@ -53,7 +53,7 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
53
53
|
}));
|
|
54
54
|
return yield* Effect.gen(function* () {
|
|
55
55
|
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request);
|
|
56
|
-
const body = yield* collectBoundedResponseBody2(response,
|
|
56
|
+
const body = yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`${tool} response exceeded ${MAX_RESPONSE_BYTES2} bytes`));
|
|
57
57
|
return yield* parseResponse2(body.toString("utf8"), schema.output);
|
|
58
58
|
}).pipe(Effect.scoped, Effect.timeoutOrElse({
|
|
59
59
|
duration: Duration.seconds(25),
|
|
@@ -61,4 +61,4 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { MAX_RESPONSE_BYTES2, parseResponse2, call2, exports_mcp };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-1twhr14d.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-q8s21k0n.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service32
|
|
9
|
+
} from "./generate-d121hxf2.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service38
|
|
15
|
+
} from "./generate-2ymc78nk.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
MessageNotFoundError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-bhvs01y7.js";
|
|
22
22
|
import {
|
|
23
23
|
SessionMessageTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./generate-gg8p9cgs.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeMessageRowSync2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./generate-e9waf9qz.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/session/revert.ts
|
|
33
33
|
var exports_revert = {};
|
|
@@ -40,11 +40,11 @@ __export(exports_revert, {
|
|
|
40
40
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
41
41
|
import { Effect } from "effect";
|
|
42
42
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
43
|
-
const instances = yield*
|
|
43
|
+
const instances = yield* Service32;
|
|
44
44
|
const database = yield* Service87;
|
|
45
45
|
const bus = yield* Service86;
|
|
46
46
|
return yield* Effect.gen(function* () {
|
|
47
|
-
const snapshot = yield*
|
|
47
|
+
const snapshot = yield* Service38;
|
|
48
48
|
const original = input.session.revert?.snapshot ?? (yield* snapshot.capture());
|
|
49
49
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
50
50
|
const restore = new Map;
|
|
@@ -72,10 +72,10 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
72
72
|
}).pipe(instances.provide(input.session));
|
|
73
73
|
});
|
|
74
74
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
75
|
-
const instances = yield*
|
|
75
|
+
const instances = yield* Service32;
|
|
76
76
|
const bus = yield* Service86;
|
|
77
77
|
yield* Effect.gen(function* () {
|
|
78
|
-
const snapshot = yield*
|
|
78
|
+
const snapshot = yield* Service38;
|
|
79
79
|
if (!session.revert)
|
|
80
80
|
return;
|
|
81
81
|
const original = session.revert.snapshot;
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-1twhr14d.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-11hfp36g.js";
|
|
8
8
|
import {
|
|
9
9
|
Service86,
|
|
10
10
|
node90
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./generate-q8s21k0n.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./generate-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessageTable2,
|
|
17
17
|
SessionInboxTable2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-gg8p9cgs.js";
|
|
19
19
|
import {
|
|
20
20
|
SessionMessage2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-gftt206x.js";
|
|
22
22
|
import {
|
|
23
23
|
UserPayload3
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./generate-9ma9r77m.js";
|
|
25
25
|
import {
|
|
26
|
-
hydrateInbox2
|
|
27
|
-
|
|
26
|
+
hydrateInbox2,
|
|
27
|
+
externalizePayload2,
|
|
28
|
+
recordRefs2,
|
|
29
|
+
releaseMessage2
|
|
30
|
+
} from "./generate-y5tx2pf5.js";
|
|
28
31
|
import {
|
|
29
32
|
decodeMessageRows2
|
|
30
|
-
} from "./
|
|
33
|
+
} from "./generate-e9waf9qz.js";
|
|
31
34
|
import {
|
|
32
35
|
__export
|
|
33
|
-
} from "./
|
|
36
|
+
} from "./generate-9rqn6x4v.js";
|
|
34
37
|
|
|
35
38
|
// src/session/inbox.ts
|
|
36
39
|
var exports_inbox = {};
|
|
@@ -38,12 +41,12 @@ __export(exports_inbox, {
|
|
|
38
41
|
Compaction: () => Compaction2,
|
|
39
42
|
CompactionPayload: () => CompactionPayload2,
|
|
40
43
|
Delivery: () => Delivery2,
|
|
41
|
-
Info: () =>
|
|
44
|
+
Info: () => Info5,
|
|
42
45
|
Item: () => Item2,
|
|
43
46
|
LifecycleConflict: () => LifecycleConflict2,
|
|
44
47
|
Move: () => Move2,
|
|
45
48
|
MovePayload: () => MovePayload2,
|
|
46
|
-
Service: () =>
|
|
49
|
+
Service: () => Service34,
|
|
47
50
|
SessionInbox: () => exports_inbox,
|
|
48
51
|
Synthetic: () => Synthetic2,
|
|
49
52
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -51,12 +54,12 @@ __export(exports_inbox, {
|
|
|
51
54
|
UserPayload: () => UserPayload2,
|
|
52
55
|
find: () => find2,
|
|
53
56
|
has: () => has2,
|
|
54
|
-
layer: () =>
|
|
57
|
+
layer: () => layer17,
|
|
55
58
|
list: () => list3,
|
|
56
|
-
make: () =>
|
|
59
|
+
make: () => make17,
|
|
57
60
|
moveIDs: () => moveIDs2,
|
|
58
61
|
nextPromotable: () => nextPromotable2,
|
|
59
|
-
node: () =>
|
|
62
|
+
node: () => node36,
|
|
60
63
|
projectAdmitted: () => projectAdmitted2,
|
|
61
64
|
projectCancelled: () => projectCancelled2,
|
|
62
65
|
projectDelivered: () => projectDelivered2,
|
|
@@ -71,7 +74,7 @@ import {
|
|
|
71
74
|
Compaction as Compaction2,
|
|
72
75
|
CompactionPayload as CompactionPayload2,
|
|
73
76
|
Delivery as Delivery2,
|
|
74
|
-
Info as
|
|
77
|
+
Info as Info5,
|
|
75
78
|
Item as Item2,
|
|
76
79
|
Move as Move2,
|
|
77
80
|
MovePayload as MovePayload2,
|
|
@@ -82,7 +85,7 @@ import {
|
|
|
82
85
|
} from "@opencode/schema/session-inbox";
|
|
83
86
|
var decodeUser = Schema.decodeUnknownSync(UserPayload2);
|
|
84
87
|
var decodeStoredUser = Schema.decodeUnknownSync(UserPayload3);
|
|
85
|
-
var
|
|
88
|
+
var encodeStoredUser = Schema.encodeSync(UserPayload3);
|
|
86
89
|
var decodeSynthetic = Schema.decodeUnknownSync(SyntheticPayload2);
|
|
87
90
|
var encodeSynthetic = Schema.encodeSync(SyntheticPayload2);
|
|
88
91
|
var decodeCompaction = Schema.decodeUnknownSync(CompactionPayload2);
|
|
@@ -171,9 +174,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
171
174
|
});
|
|
172
175
|
});
|
|
173
176
|
|
|
174
|
-
class
|
|
177
|
+
class Service34 extends Context.Service()("@opencode/SessionInbox") {
|
|
175
178
|
}
|
|
176
|
-
var
|
|
179
|
+
var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
177
180
|
const database = yield* Service87;
|
|
178
181
|
const db = database.db;
|
|
179
182
|
const bus = yield* Service86;
|
|
@@ -193,7 +196,7 @@ var make19 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
193
196
|
inboxID: request.id,
|
|
194
197
|
sessionID: request.sessionID,
|
|
195
198
|
item: request.item
|
|
196
|
-
}).pipe(Effect.map((event) =>
|
|
199
|
+
}).pipe(Effect.map((event) => Info5.make({
|
|
197
200
|
id: request.id,
|
|
198
201
|
sessionID: request.sessionID,
|
|
199
202
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -247,23 +250,25 @@ var make19 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
247
250
|
queue
|
|
248
251
|
};
|
|
249
252
|
});
|
|
250
|
-
var
|
|
251
|
-
var
|
|
253
|
+
var layer17 = Layer.effect(Service34, make17());
|
|
254
|
+
var node36 = makeGlobalNode({ service: Service34, layer: layer17, deps: [node91, node90] });
|
|
252
255
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
253
256
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
254
257
|
if (message !== undefined)
|
|
255
258
|
return yield* Effect.die(new LifecycleConflict2({ id: request.id }));
|
|
259
|
+
const payload = request.item.type === "user" ? encodeStoredUser(yield* externalizePayload2(db, request.item.payload)) : request.item.type === "synthetic" ? encodeSynthetic(request.item.payload) : request.item.type === "compaction" ? encodeCompaction(request.item.payload) : encodeMove(request.item.payload);
|
|
256
260
|
const stored = yield* db.insert(SessionInboxTable2).values({
|
|
257
261
|
id: request.id,
|
|
258
262
|
session_id: request.sessionID,
|
|
259
263
|
type: request.item.type,
|
|
260
|
-
payload
|
|
264
|
+
payload,
|
|
261
265
|
delivery: request.item.delivery,
|
|
262
266
|
enqueued_seq: request.enqueuedSeq,
|
|
263
267
|
time_created: request.timeCreated
|
|
264
268
|
}).onConflictDoNothing().returning({ id: SessionInboxTable2.id }).get().pipe(Effect.orDie);
|
|
265
269
|
if (!stored)
|
|
266
270
|
return yield* Effect.die(new LifecycleConflict2({ id: request.id }));
|
|
271
|
+
yield* recordRefs2(db, { sessionID: request.sessionID, messageID: request.id, seq: request.enqueuedSeq }, payload);
|
|
267
272
|
});
|
|
268
273
|
var projectDelivered2 = Effect.fn("SessionInbox.projectDelivered")(function* (db, input) {
|
|
269
274
|
const deleted = yield* db.delete(SessionInboxTable2).where(and(eq(SessionInboxTable2.id, input.id), eq(SessionInboxTable2.session_id, input.sessionID))).returning().get().pipe(Effect.orDie);
|
|
@@ -282,6 +287,7 @@ var projectCancelled2 = Effect.fn("SessionInbox.projectCancelled")(function* (db
|
|
|
282
287
|
const deleted = yield* db.delete(SessionInboxTable2).where(and(eq(SessionInboxTable2.id, input.id), eq(SessionInboxTable2.session_id, input.sessionID), or(eq(SessionInboxTable2.delivery, "queue"), eq(SessionInboxTable2.delivery, "steer")))).returning({ id: SessionInboxTable2.id }).get().pipe(Effect.orDie);
|
|
283
288
|
if (!deleted)
|
|
284
289
|
return yield* Effect.die(new LifecycleConflict2({ id: input.id }));
|
|
290
|
+
yield* releaseMessage2(db, input.sessionID, input.id);
|
|
285
291
|
});
|
|
286
292
|
var projectDelivery = Effect.fn("SessionInbox.projectDelivery")(function* (db, input) {
|
|
287
293
|
const updated = yield* db.update(SessionInboxTable2).set({ delivery: input.to }).where(and(eq(SessionInboxTable2.id, input.id), eq(SessionInboxTable2.session_id, input.sessionID), eq(SessionInboxTable2.delivery, input.from))).returning({ id: SessionInboxTable2.id }).get().pipe(Effect.orDie);
|
|
@@ -353,4 +359,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
353
359
|
return rows;
|
|
354
360
|
}));
|
|
355
361
|
|
|
356
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
362
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info5, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service34, make17, layer17, node36, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/app.ts
|
|
6
6
|
var exports_app = {};
|
|
@@ -8,9 +8,9 @@ __export(exports_app, {
|
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
10
|
configured: () => configured5,
|
|
11
|
-
layer: () =>
|
|
11
|
+
layer: () => layer20,
|
|
12
12
|
make: () => make20,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node44,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
@@ -28,8 +28,8 @@ function make20(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var configured5 = (input) => makeGlobalNode({ service: Metadata2, layer:
|
|
33
|
-
var
|
|
31
|
+
var layer20 = (input) => Layer.succeed(Metadata2, make20(input));
|
|
32
|
+
var configured5 = (input) => makeGlobalNode({ service: Metadata2, layer: layer20(input), deps: [] });
|
|
33
|
+
var node44 = configured5();
|
|
34
34
|
|
|
35
|
-
export { Metadata2, make20, useragent2,
|
|
35
|
+
export { Metadata2, make20, useragent2, layer20, configured5, node44, exports_app };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
6
|
Service58
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-tpcr1ym9.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-zkg84ctx.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service68
|
|
13
|
+
} from "./generate-nmbqtac7.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service35
|
|
16
|
+
} from "./generate-1rj159m0.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service54
|
|
19
|
+
} from "./generate-kjt6993h.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service48,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./generate-eyyv5nda.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./generate-k814nvkf.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service46,
|
|
32
32
|
name16
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./generate-5emr5dp8.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError6,
|
|
36
|
+
Service43
|
|
37
|
+
} from "./generate-2j0h6455.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service16
|
|
40
|
+
} from "./generate-fj4n425x.js";
|
|
41
41
|
import {
|
|
42
42
|
scan3
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./generate-mzeef7bv.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./generate-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell2 = {};
|
|
50
50
|
__export(exports_shell2, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input3,
|
|
53
|
+
Plugin: () => Plugin38,
|
|
54
54
|
ShellTool: () => exports_shell2,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name3
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name3 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input3 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,18 +117,18 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin38 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service16;
|
|
124
|
+
const jobs = yield* Service35;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
128
|
-
const shell = yield*
|
|
129
|
-
const shellSelect = yield*
|
|
126
|
+
const environment = yield* Service68;
|
|
127
|
+
const access = yield* Service48;
|
|
128
|
+
const shell = yield* Service43;
|
|
129
|
+
const shellSelect = yield* Service46;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
131
|
+
const permission = yield* Service54;
|
|
132
132
|
const config = yield* Service58;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
@@ -148,7 +148,7 @@ var Plugin29 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name3,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin29 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name3,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input3,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -211,7 +211,7 @@ var Plugin29 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError6({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name3,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name3];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name16(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name3, DEFAULT_TIMEOUT_MS2, Input3, Plugin38, exports_shell2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-q8s21k0n.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-qq0vx577.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./generate-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service55,
|
|
14
|
+
node58
|
|
15
|
+
} from "./generate-f83r4zqb.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service11,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node13
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,12 +32,12 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service11 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
37
|
+
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service86;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
40
|
+
const store = yield* Service55;
|
|
41
41
|
const location = yield* Service83;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service11.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 node13 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [node90, FSUtil.node, node87,
|
|
101
|
+
deps: [node90, FSUtil.node, node87, node58]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service11, node13, exports_instructions };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-f4ce04df.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|