@opencode/core 0.0.0-dev-271 → 0.0.0-dev-286
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 +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +83 -83
- package/dist/chunks/{location-services-aj7mw0zk.js → worktree-034tev2y.js} +2 -2
- package/dist/chunks/{location-services-w8ndjz7j.js → worktree-07fp8s5y.js} +29 -29
- package/dist/chunks/{location-services-a678287s.js → worktree-09fe5ez7.js} +11 -11
- package/dist/chunks/{location-services-76jdhfq7.js → worktree-0b2ad458.js} +12 -12
- package/dist/chunks/{location-services-kfcsbfj2.js → worktree-0b8vrwjw.js} +31 -31
- package/dist/chunks/{location-services-s7dtnyk2.js → worktree-0ex9mpwx.js} +72 -72
- package/dist/chunks/{location-services-wr3re1en.js → worktree-0h8y3ex8.js} +4 -4
- package/dist/chunks/{location-services-8nmq4mhy.js → worktree-0q1r2kjj.js} +25 -25
- package/dist/chunks/{location-services-gcfys28r.js → worktree-0v2kj0w9.js} +19 -19
- package/dist/chunks/{location-services-bg8p5thh.js → worktree-0yrht1zy.js} +27 -27
- package/dist/chunks/{location-services-enkpkfwx.js → worktree-160yv0cs.js} +8 -8
- package/dist/chunks/{location-services-r4pwrx75.js → worktree-18g90bpv.js} +9 -9
- package/dist/chunks/{location-services-1aqsckx4.js → worktree-1aqsckx4.js} +1 -1
- package/dist/chunks/{location-services-27w5k9zf.js → worktree-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-services-8hfnrd7b.js → worktree-1ktbs3mv.js} +65 -65
- package/dist/chunks/{location-services-9w6kyjc8.js → worktree-1wvf0ff0.js} +7 -7
- package/dist/chunks/{location-services-1x2knyw4.js → worktree-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-services-hrj3d3rg.js → worktree-1y6cskgh.js} +36 -36
- package/dist/chunks/{location-services-5sg2j4zb.js → worktree-1yhff8da.js} +12 -12
- package/dist/chunks/{location-services-1yq9hg58.js → worktree-1yq9hg58.js} +1 -1
- package/dist/chunks/{location-services-204s3925.js → worktree-204s3925.js} +1 -1
- package/dist/chunks/{location-services-92ee31my.js → worktree-211v3ywx.js} +27 -27
- package/dist/chunks/{location-services-25h84942.js → worktree-25h84942.js} +1 -1
- package/dist/chunks/{location-services-mcaz155f.js → worktree-2a9pjh68.js} +6 -6
- package/dist/chunks/{location-services-xsdjk4ge.js → worktree-2db5r0en.js} +5 -5
- package/dist/chunks/{location-services-nk8zryt9.js → worktree-2f5kzt4v.js} +7 -7
- package/dist/chunks/{location-services-faykeh36.js → worktree-2j819t2x.js} +21 -21
- package/dist/chunks/{location-services-zwp1eeat.js → worktree-2japvek7.js} +2 -2
- package/dist/chunks/{location-services-t9fjyv5p.js → worktree-2mh92g0w.js} +9 -9
- package/dist/chunks/{location-services-mm24p6x7.js → worktree-2mnk3cpz.js} +4 -4
- package/dist/chunks/{location-services-m8vjyhwb.js → worktree-2rar789x.js} +11 -11
- package/dist/chunks/{location-services-x93g9n8c.js → worktree-2sctd9r8.js} +15 -15
- package/dist/chunks/{location-services-rqxwm5vf.js → worktree-2xfesqhp.js} +33 -23
- package/dist/chunks/{location-services-vb80j1wh.js → worktree-2zp5a6yg.js} +3 -3
- package/dist/chunks/{location-services-4pwmc3zk.js → worktree-33e1kph9.js} +13 -13
- package/dist/chunks/{location-services-gkg0y7d3.js → worktree-33e37e6x.js} +15 -15
- package/dist/chunks/{location-services-a7c68mes.js → worktree-360wd41x.js} +29 -29
- package/dist/chunks/{location-services-f12jx86d.js → worktree-3776k8q5.js} +11 -11
- package/dist/chunks/{location-services-35ctkm3t.js → worktree-37kqz87b.js} +3 -3
- package/dist/chunks/{location-services-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-services-dw0jwsqt.js → worktree-3m85peyv.js} +27 -27
- package/dist/chunks/{location-services-625chkn0.js → worktree-3ndyf3yw.js} +45 -45
- package/dist/chunks/{location-services-3nnrz6f6.js → worktree-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-services-701es3rv.js → worktree-3wq0w81j.js} +18 -18
- package/dist/chunks/{location-services-4ya28txs.js → worktree-45dn5ykg.js} +21 -21
- package/dist/chunks/{location-services-fa27aj77.js → worktree-45hyrqvj.js} +6 -6
- package/dist/chunks/{location-services-dcgrx69e.js → worktree-4bzxpxbh.js} +5 -5
- package/dist/chunks/{location-services-4dx1dgte.js → worktree-4dx1dgte.js} +1 -1
- package/dist/chunks/{location-services-c5gvz1b5.js → worktree-4gwbv0ae.js} +4 -4
- package/dist/chunks/{location-services-5t0xdgr9.js → worktree-4m8q87vh.js} +12 -12
- package/dist/chunks/{location-services-gtjkmstt.js → worktree-4pn94wwk.js} +38 -38
- package/dist/chunks/{location-services-9tvpxs1q.js → worktree-4pw98qd4.js} +4 -4
- package/dist/chunks/{location-services-4pyp9zr9.js → worktree-4pyp9zr9.js} +1 -1
- package/dist/chunks/{location-services-hcky80w5.js → worktree-4pzvwjr2.js} +4 -4
- package/dist/chunks/{location-services-4v008n1t.js → worktree-4v008n1t.js} +1 -1
- package/dist/chunks/{location-services-ytz496fy.js → worktree-532k8p5d.js} +5 -5
- package/dist/chunks/worktree-5knxw5zw.js +535 -0
- package/dist/chunks/{location-services-5m9w47nd.js → worktree-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-services-exjf25px.js → worktree-5w6mnkbc.js} +11 -11
- package/dist/chunks/{location-services-v2psmyxx.js → worktree-5w72mvse.js} +5 -5
- package/dist/chunks/{location-services-060k1ctd.js → worktree-650ewqdt.js} +3 -3
- package/dist/chunks/{location-services-bheemw2q.js → worktree-666ta36x.js} +13 -13
- package/dist/chunks/{location-services-6esdw8yj.js → worktree-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-services-wdw55mq4.js → worktree-6h85yzk8.js} +5 -5
- package/dist/chunks/{location-services-z5fvc4pa.js → worktree-6nyhrb0p.js} +21 -21
- package/dist/chunks/{location-services-mz3xd1k6.js → worktree-6sayp01d.js} +23 -23
- package/dist/chunks/{location-services-rgy8fvzs.js → worktree-6xk3x19f.js} +74 -74
- package/dist/chunks/{location-services-zyy8z9rg.js → worktree-71ygcs51.js} +17 -17
- package/dist/chunks/{location-services-76cb1hcw.js → worktree-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-services-26cw61yh.js → worktree-7a1k840q.js} +12 -12
- package/dist/chunks/{location-services-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-services-av666v8z.js → worktree-7c9g9s0q.js} +13 -13
- package/dist/chunks/{location-services-61erhr80.js → worktree-7dtjcr74.js} +19 -19
- package/dist/chunks/{location-services-zpn8n3e3.js → worktree-7dvsg837.js} +9 -9
- package/dist/chunks/{location-services-rb8dmkdr.js → worktree-7dwprhna.js} +41 -41
- package/dist/chunks/{location-services-p9aaxzzm.js → worktree-7fz6tcfs.js} +15 -15
- package/dist/chunks/{location-services-c078hgae.js → worktree-7kr66rt3.js} +147 -39
- package/dist/chunks/{location-services-6r75hzjy.js → worktree-7n4tbjx2.js} +19 -19
- package/dist/chunks/{location-services-kecs8cm0.js → worktree-7q0y7xkk.js} +7 -7
- package/dist/chunks/{location-services-txb82dsv.js → worktree-7w11hwx0.js} +20 -20
- package/dist/chunks/{location-services-7w2ypzdf.js → worktree-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-services-zx82kmhe.js → worktree-80kgc7k1.js} +30 -30
- package/dist/chunks/{location-services-b2g2cd4c.js → worktree-81db11mx.js} +13 -13
- package/dist/chunks/{location-services-pygderqp.js → worktree-82h3a1kw.js} +11 -11
- package/dist/chunks/{location-services-sxfdfs5r.js → worktree-860029p8.js} +11 -11
- package/dist/chunks/{location-services-05aev6jb.js → worktree-8d99dfzw.js} +13 -13
- package/dist/chunks/{location-services-fq0hatx6.js → worktree-8jne4ghb.js} +22 -22
- package/dist/chunks/{location-services-g3d6ha41.js → worktree-8nt2cb5r.js} +15 -15
- package/dist/chunks/{location-services-8wtp7s3z.js → worktree-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-services-zgmb78cs.js → worktree-8yazd8jn.js} +33 -33
- package/dist/chunks/{location-services-90zstvax.js → worktree-90zstvax.js} +1 -1
- package/dist/chunks/{location-services-yz9rz98a.js → worktree-923ftqyh.js} +6 -6
- package/dist/chunks/{location-services-95sp4hdf.js → worktree-95sp4hdf.js} +1 -1
- package/dist/chunks/{location-services-kgaj0b42.js → worktree-97jk9fzp.js} +46 -46
- package/dist/chunks/{location-services-7s9zy64f.js → worktree-97p996b3.js} +11 -11
- package/dist/chunks/{location-services-j4wsft1q.js → worktree-9gmxhkaz.js} +14 -14
- package/dist/chunks/{location-services-nm8x0m3s.js → worktree-9k2mwdeg.js} +6 -6
- package/dist/chunks/{location-services-d83be7vq.js → worktree-9t20sdzg.js} +6 -6
- package/dist/chunks/{location-services-hhcegec1.js → worktree-9t9nbwt3.js} +31 -31
- package/dist/chunks/{location-services-m3pbq8ct.js → worktree-9yke2vdy.js} +11 -11
- package/dist/chunks/{location-services-af4avevc.js → worktree-abbaypxx.js} +16 -16
- package/dist/chunks/{location-services-zsjka0ec.js → worktree-ag4vvxdv.js} +2 -2
- package/dist/chunks/{location-services-5zzfvef7.js → worktree-ava6h5x1.js} +6 -6
- package/dist/chunks/{location-services-3cbjf1nt.js → worktree-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-services-5jrjkhem.js → worktree-b3mzhchz.js} +29 -29
- package/dist/chunks/{location-services-b6vsg801.js → worktree-b6vsg801.js} +2 -2
- package/dist/chunks/{location-services-6yaxbs98.js → worktree-b7wjnj3v.js} +20 -20
- package/dist/chunks/{location-services-gf94v7ds.js → worktree-b85szd7h.js} +8 -8
- package/dist/chunks/{location-services-pqan8706.js → worktree-b9bzekrm.js} +26 -26
- package/dist/chunks/{location-services-53f4ettz.js → worktree-bda28c86.js} +19 -19
- package/dist/chunks/{location-services-qz087kyw.js → worktree-bgg6fpfq.js} +8 -8
- package/dist/chunks/{location-services-ndcaramg.js → worktree-bq56hyj9.js} +8 -8
- package/dist/chunks/{location-services-bstexjd6.js → worktree-bstexjd6.js} +1 -1
- package/dist/chunks/{location-services-r09xcsm2.js → worktree-c1nvaaxv.js} +256 -35
- package/dist/chunks/{location-services-ts3q81hd.js → worktree-c1sj1bpn.js} +3 -3
- package/dist/chunks/{location-services-7ffjm3fx.js → worktree-c325tjb6.js} +11 -11
- package/dist/chunks/{location-services-5zz88cvn.js → worktree-c9n14t9e.js} +9 -9
- package/dist/chunks/{location-services-y98qbkn6.js → worktree-cb1dvkmt.js} +16 -16
- package/dist/chunks/{location-services-rwvswa9y.js → worktree-cbcbsb56.js} +6 -6
- package/dist/chunks/{location-services-s87tva5r.js → worktree-cgqrqfdd.js} +11 -11
- package/dist/chunks/{location-services-4rf7amqy.js → worktree-chfqv0dp.js} +6 -6
- package/dist/chunks/{location-services-bxvvv3jc.js → worktree-chw17fk3.js} +16 -16
- package/dist/chunks/{location-services-m7xh3h0x.js → worktree-cnj75yzs.js} +4 -4
- package/dist/chunks/{location-services-cwrgdav8.js → worktree-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-services-8agbak6g.js → worktree-d08zvrj3.js} +11 -11
- package/dist/chunks/{location-services-66r9f6z1.js → worktree-d1r5081s.js} +5 -5
- package/dist/chunks/{location-services-5c0ay57s.js → worktree-d4qb2rc3.js} +4 -4
- package/dist/chunks/{location-services-gn8tkhbf.js → worktree-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-services-fse61478.js → worktree-d5k5mzsn.js} +31 -31
- package/dist/chunks/{location-services-n94pvp91.js → worktree-d6cs52tr.js} +22 -22
- package/dist/chunks/{location-services-5r9j27z7.js → worktree-df3kbw4d.js} +16 -16
- package/dist/chunks/{location-services-fn0pn290.js → worktree-dgjy22zw.js} +8 -8
- package/dist/chunks/{location-services-x51b6bk0.js → worktree-djd49kbm.js} +2 -2
- package/dist/chunks/{location-services-4c0eh56a.js → worktree-dq4stdtd.js} +7 -7
- package/dist/chunks/{location-services-sb68qyrv.js → worktree-dr3d1mr5.js} +20 -20
- package/dist/chunks/{location-services-dt77769w.js → worktree-dt77769w.js} +1 -1
- package/dist/chunks/{location-services-6jdd6yf6.js → worktree-dyk9s1ne.js} +4 -4
- package/dist/chunks/{location-services-k3f7456s.js → worktree-e1s0q7va.js} +5 -5
- package/dist/chunks/{location-services-bm1x4rjt.js → worktree-e239qjg7.js} +9 -9
- package/dist/chunks/{location-services-fngvx4yd.js → worktree-e324kbrg.js} +8 -8
- package/dist/chunks/{location-services-e834z07m.js → worktree-e834z07m.js} +1 -1
- package/dist/chunks/{location-services-0h0q04aj.js → worktree-ec3b2sgd.js} +8 -8
- package/dist/chunks/{location-services-ae75vsr5.js → worktree-erny1hp5.js} +28 -28
- package/dist/chunks/{location-services-ht7smmrx.js → worktree-excj9cfq.js} +33 -33
- package/dist/chunks/{location-services-k56767v4.js → worktree-eyq3zjg1.js} +1 -1
- package/dist/chunks/{location-services-g6dvkvqf.js → worktree-ezgss49s.js} +25 -25
- package/dist/chunks/{location-services-vc4cryav.js → worktree-f7n1ssex.js} +9 -9
- package/dist/chunks/worktree-f8ma18fn.js +18 -0
- package/dist/chunks/{location-services-sab8hb9j.js → worktree-f9201ej8.js} +25 -25
- package/dist/chunks/{location-services-fffv3p7h.js → worktree-fffv3p7h.js} +1 -1
- package/dist/chunks/{location-services-fg9p65nk.js → worktree-fg9p65nk.js} +2 -2
- package/dist/chunks/{location-services-hcdj4fe2.js → worktree-fkc1f79k.js} +29 -29
- package/dist/chunks/{location-services-j28mjm60.js → worktree-fmvebq1c.js} +7 -7
- package/dist/chunks/{location-services-3sv3e4sh.js → worktree-g0zebgfm.js} +22 -22
- package/dist/chunks/{location-services-tptvq6v6.js → worktree-gcye4jv7.js} +4 -4
- package/dist/chunks/{location-services-6pkyn431.js → worktree-gf7njwar.js} +21 -21
- package/dist/chunks/{location-services-crjm84aa.js → worktree-gfhpa9gk.js} +42 -42
- package/dist/chunks/{location-services-dfgayekp.js → worktree-gg4yr8n1.js} +16 -16
- package/dist/chunks/{location-services-p8e6hb0k.js → worktree-gnm090bx.js} +14 -14
- package/dist/chunks/{location-services-dj84jp87.js → worktree-gvnfypps.js} +14 -14
- package/dist/chunks/{location-services-edf6ca2j.js → worktree-h4yv4fhz.js} +173 -173
- package/dist/chunks/{location-services-7rnxwetx.js → worktree-hc4wny2n.js} +11 -11
- package/dist/chunks/{location-services-41ee7e1g.js → worktree-hf8dhk55.js} +14 -14
- package/dist/chunks/{location-services-hgfegmhz.js → worktree-hgfegmhz.js} +3 -3
- package/dist/chunks/{location-services-hh7kjqtw.js → worktree-hh7kjqtw.js} +1 -1
- package/dist/chunks/{location-services-n91e94x0.js → worktree-hk7hszd6.js} +25 -25
- package/dist/chunks/{location-services-ry6m6k45.js → worktree-hndjt1e9.js} +11 -11
- package/dist/chunks/{location-services-zcdj67b9.js → worktree-hp6wkjcv.js} +30 -30
- package/dist/chunks/{location-services-hpg1pkwy.js → worktree-hpg1pkwy.js} +1 -1
- package/dist/chunks/{location-services-49985bx3.js → worktree-hyns4byn.js} +23 -23
- package/dist/chunks/{location-services-nv205p9v.js → worktree-ja63h2sr.js} +2 -2
- package/dist/chunks/{location-services-mwby5be6.js → worktree-jedcwhf5.js} +19 -19
- package/dist/chunks/{location-services-jfaecv01.js → worktree-jfaecv01.js} +1 -1
- package/dist/chunks/{location-services-nwn24kq0.js → worktree-jpnvh877.js} +8 -8
- package/dist/chunks/{location-services-6tnzhnxt.js → worktree-jr92mdzz.js} +8 -8
- package/dist/chunks/{location-services-jtnps1zs.js → worktree-jtnps1zs.js} +2 -2
- package/dist/chunks/{location-services-9f1h0s6x.js → worktree-jxvtabbt.js} +21 -21
- package/dist/chunks/{location-services-8tx4q2tc.js → worktree-k0jpvv7x.js} +14 -14
- package/dist/chunks/{location-services-kbq9sd94.js → worktree-k1xjwggj.js} +13 -13
- package/dist/chunks/{location-services-f2738s6n.js → worktree-k536nnb8.js} +3 -3
- package/dist/chunks/{location-services-k814nvkf.js → worktree-k814nvkf.js} +1 -1
- package/dist/chunks/{location-services-jv2xnyk0.js → worktree-kcg78dnn.js} +2 -2
- package/dist/chunks/{location-services-zkyvmhna.js → worktree-kfkfrd1x.js} +8 -8
- package/dist/chunks/{location-services-g6c2jpgq.js → worktree-kgh589a5.js} +13 -13
- package/dist/chunks/{location-services-kt3bjfbg.js → worktree-kt3bjfbg.js} +1 -1
- package/dist/chunks/{location-services-m1714858.js → worktree-m1714858.js} +1 -1
- package/dist/chunks/{location-services-x9nckj68.js → worktree-m7fyhed3.js} +18 -18
- package/dist/chunks/{location-services-ykap3e57.js → worktree-m7zsfgfm.js} +19 -19
- package/dist/chunks/{location-services-zb5gs1ba.js → worktree-m89858wj.js} +3 -3
- package/dist/chunks/{location-services-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-services-8z6m94af.js → worktree-mb7mbhnz.js} +3 -3
- package/dist/chunks/{location-services-vy4m1q4k.js → worktree-mf3y8h86.js} +58 -58
- package/dist/chunks/{location-services-he1z5msn.js → worktree-mj3htrn7.js} +11 -11
- package/dist/chunks/{location-services-3t0svxwq.js → worktree-mnsxfp09.js} +14 -14
- package/dist/chunks/{location-services-aqhqhhxw.js → worktree-mqcm7x31.js} +19 -19
- package/dist/chunks/{location-services-kreataz1.js → worktree-n6jcsk88.js} +9 -9
- package/dist/chunks/{location-services-kpd0ft4p.js → worktree-n6jhfx9n.js} +15 -15
- package/dist/chunks/{location-services-vkcgzpwt.js → worktree-n73q7gnv.js} +12 -12
- package/dist/chunks/{location-services-nah043kf.js → worktree-nah043kf.js} +1 -1
- package/dist/chunks/{location-services-6147jgs2.js → worktree-neary136.js} +8 -8
- package/dist/chunks/{location-services-rwtt4501.js → worktree-nn94syh7.js} +37 -37
- package/dist/chunks/{location-services-mwyy67aj.js → worktree-nnx8h4m9.js} +10 -10
- package/dist/chunks/{location-services-1dztdw8x.js → worktree-nxw21s73.js} +12 -12
- package/dist/chunks/{location-services-p015t6z3.js → worktree-p015t6z3.js} +2 -2
- package/dist/chunks/{location-services-dq6afaen.js → worktree-p65b0w7p.js} +17 -17
- package/dist/chunks/{location-services-69f0ar7f.js → worktree-pgkwnhrk.js} +32 -32
- package/dist/chunks/{location-services-yx6x8jfj.js → worktree-pjb3r7bt.js} +7 -7
- package/dist/chunks/{location-services-pknna89w.js → worktree-pknna89w.js} +1 -1
- package/dist/chunks/{location-services-fex8285v.js → worktree-pqv6jrxt.js} +24 -24
- package/dist/chunks/{location-services-yh9hqaeq.js → worktree-q2nqdedq.js} +9 -9
- package/dist/chunks/{location-services-8jztxfpf.js → worktree-qjgzc4b4.js} +4 -4
- package/dist/chunks/{location-services-8ve89bpf.js → worktree-qk8rxpda.js} +8 -8
- package/dist/chunks/{location-services-qnqasnye.js → worktree-qnqasnye.js} +3 -3
- package/dist/chunks/{location-services-qp7r0hxv.js → worktree-qp7r0hxv.js} +1 -1
- package/dist/chunks/{location-services-5xcrp97n.js → worktree-qq6sz745.js} +18 -18
- package/dist/chunks/{location-services-xt0z8zst.js → worktree-qqpbcr2p.js} +4 -4
- package/dist/chunks/{location-services-qqvy8y24.js → worktree-qqvy8y24.js} +1 -1
- package/dist/chunks/{location-services-8zhw5swa.js → worktree-qr9qsn55.js} +32 -32
- package/dist/chunks/{location-services-4987t165.js → worktree-qzm6q9ch.js} +6 -6
- package/dist/chunks/{location-services-r542h3bh.js → worktree-r542h3bh.js} +1 -1
- package/dist/chunks/{location-services-rb9dy4dg.js → worktree-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-services-d7akxsfc.js → worktree-rbndg51d.js} +3 -3
- package/dist/chunks/{location-services-r1fhaev6.js → worktree-rg0cxenw.js} +2 -2
- package/dist/chunks/{location-services-hwdk6992.js → worktree-rj9j3as3.js} +43 -43
- package/dist/chunks/{location-services-0a35qxtn.js → worktree-rjdkgttt.js} +14 -14
- package/dist/chunks/{location-services-y9r97bb3.js → worktree-rjtdrb56.js} +9 -9
- package/dist/chunks/{location-services-13jgvn4c.js → worktree-rp6wgn9y.js} +17 -17
- package/dist/chunks/{location-services-rt5dr6hb.js → worktree-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-services-4tsnxgj1.js → worktree-s4d4pvet.js} +4 -4
- package/dist/chunks/{location-services-17cjzed1.js → worktree-s7xmnr8t.js} +8 -8
- package/dist/chunks/{location-services-d1scnhdx.js → worktree-s88qfkmz.js} +4 -4
- package/dist/chunks/{location-services-sa3fpqfw.js → worktree-sa3fpqfw.js} +2 -2
- package/dist/chunks/{location-services-gz7axp6c.js → worktree-scmk72rv.js} +5 -5
- package/dist/chunks/{location-services-t815r62s.js → worktree-sfmvmqfk.js} +3 -3
- package/dist/chunks/{location-services-5q7cnmnd.js → worktree-spf8w817.js} +5 -5
- package/dist/chunks/{location-services-sqjzf8x2.js → worktree-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-services-wj1hwnq7.js → worktree-sqx6yyec.js} +3 -3
- package/dist/chunks/{location-services-mtkfycnh.js → worktree-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-services-svcy3p9a.js → worktree-svcy3p9a.js} +1 -1
- package/dist/chunks/{location-services-rkmfgj7k.js → worktree-sy53apyv.js} +30 -30
- package/dist/chunks/{location-services-4pza82rh.js → worktree-t2cdwvq5.js} +22 -22
- package/dist/chunks/{location-services-2ywsvzr2.js → worktree-t4zc915k.js} +17 -17
- package/dist/chunks/{location-services-88j3sdmx.js → worktree-tc90wnbk.js} +37 -37
- package/dist/chunks/{location-services-tczq8hjw.js → worktree-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-services-zdpw9dy9.js → worktree-tf0tk0fq.js} +21 -21
- package/dist/chunks/{location-services-fb4xs09j.js → worktree-thj7mhbr.js} +18 -18
- package/dist/chunks/{location-services-73ktn4xx.js → worktree-tm1e699v.js} +9 -9
- package/dist/chunks/{location-services-qw73mqn2.js → worktree-tmt7mk16.js} +31 -31
- package/dist/chunks/{location-services-2kqsk57r.js → worktree-ts8fcpse.js} +15 -15
- package/dist/chunks/{location-services-twssxy5n.js → worktree-twssxy5n.js} +2 -2
- package/dist/chunks/{location-services-254d7qhc.js → worktree-tx8ht019.js} +15 -15
- package/dist/chunks/{location-services-w79nt68w.js → worktree-v0t96s7a.js} +4 -4
- package/dist/chunks/{location-services-v2r1d0zg.js → worktree-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-services-xrc3640n.js → worktree-v8vd993n.js} +8 -8
- package/dist/chunks/{location-services-q4fcarhy.js → worktree-vjmsebym.js} +9 -9
- package/dist/chunks/{location-services-eqmd2tfz.js → worktree-vmfhgzt5.js} +7 -7
- package/dist/chunks/worktree-vnp0me3e.js +257 -0
- package/dist/chunks/{location-services-bfkxtapt.js → worktree-vqqftvvv.js} +11 -11
- package/dist/chunks/{location-services-w2eysc6j.js → worktree-w2eysc6j.js} +2 -2
- package/dist/chunks/{location-services-s6rqyy7q.js → worktree-w2g8c1h4.js} +44 -44
- package/dist/chunks/{location-services-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-services-jcrsb2we.js → worktree-w59ytyqq.js} +9 -9
- package/dist/chunks/{location-services-19yw54pw.js → worktree-w66j29kr.js} +15 -15
- package/dist/chunks/{location-services-jsrgk7v1.js → worktree-w8ps3wcc.js} +20 -20
- package/dist/chunks/{location-services-x99kszcd.js → worktree-wa49e47f.js} +12 -12
- package/dist/chunks/{location-services-z89tmfeq.js → worktree-wacb14vy.js} +8 -8
- package/dist/chunks/{location-services-wakvkjy4.js → worktree-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-services-wd87259q.js → worktree-wd87259q.js} +1 -1
- package/dist/chunks/{location-services-nx4vzyjd.js → worktree-wegkxhrn.js} +2 -2
- package/dist/chunks/{location-services-bnp5qds0.js → worktree-wh471sqx.js} +5 -5
- package/dist/chunks/{location-services-c4cv6xmm.js → worktree-wm1vm6w0.js} +11 -11
- package/dist/chunks/{location-services-wnhgecwx.js → worktree-wnhgecwx.js} +1 -1
- package/dist/chunks/{location-services-perw67p4.js → worktree-wp5xvy6f.js} +34 -34
- package/dist/chunks/{location-services-hnv7rbyt.js → worktree-wyeqency.js} +7 -7
- package/dist/chunks/{location-services-tzw071bs.js → worktree-x46kzsvj.js} +20 -20
- package/dist/chunks/{location-services-ahrjqvfw.js → worktree-x5xpvpef.js} +23 -23
- package/dist/chunks/{location-services-qmv0q6pw.js → worktree-x8mt7ajg.js} +30 -30
- package/dist/chunks/{location-services-73nq7rd4.js → worktree-xj8tbvnx.js} +41 -41
- package/dist/chunks/{location-services-xmx7xj34.js → worktree-xmx7xj34.js} +1 -1
- package/dist/chunks/{location-services-7863p8e9.js → worktree-xr8j28en.js} +45 -45
- package/dist/chunks/{location-services-162nfr0g.js → worktree-xrpfz6f8.js} +9 -9
- package/dist/chunks/{location-services-99y0fxy8.js → worktree-xyg4a4db.js} +5 -5
- package/dist/chunks/{location-services-3dempbt2.js → worktree-y7rptanb.js} +8 -8
- package/dist/chunks/{location-services-pxtfkpje.js → worktree-yara3q77.js} +2 -2
- package/dist/chunks/{location-services-yb20nhc3.js → worktree-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-services-t20evbn4.js → worktree-yegyxjwk.js} +46 -46
- package/dist/chunks/{location-services-68291c0v.js → worktree-ynq9889m.js} +35 -35
- package/dist/chunks/{location-services-cfh5dtam.js → worktree-yx3jcsf5.js} +30 -30
- package/dist/chunks/{location-services-05pzx58r.js → worktree-yxcs01xt.js} +28 -28
- package/dist/chunks/worktree-z14rfht5.js +26 -0
- package/dist/chunks/{location-services-vwgtfhce.js → worktree-z4ex9h9e.js} +11 -11
- package/dist/chunks/{location-services-jjkdzw18.js → worktree-zay1k5wv.js} +15 -15
- package/dist/chunks/{location-services-8f2e40mw.js → worktree-zgntrsrs.js} +11 -11
- package/dist/chunks/{location-services-nn8146rv.js → worktree-zn3yprmb.js} +13 -13
- package/dist/chunks/{location-services-5rab9vhz.js → worktree-zwrzbpfr.js} +18 -18
- package/dist/chunks/{location-services-d987wdq8.js → worktree-zy2d75w1.js} +25 -25
- 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 +94 -94
- package/dist/config/integration.js +5 -5
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -111
- package/dist/config/plugin/agent.js +129 -129
- package/dist/config/plugin/command.js +226 -226
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/compatibility.js +149 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +130 -130
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +129 -129
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +136 -136
- package/dist/config/plugin/policy.js +129 -129
- package/dist/config/plugin/provider.js +129 -129
- package/dist/config/plugin/reference.js +131 -131
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +145 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +152 -152
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +130 -130
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +131 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +132 -132
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +91 -91
- package/dist/database/database.js +82 -82
- 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/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration.gen.js +59 -59
- package/dist/database/migration.js +61 -61
- 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 +97 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +392 -392
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +105 -105
- 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 +82 -82
- package/dist/file-access.js +155 -155
- package/dist/file-mutation.js +106 -106
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +241 -241
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +114 -114
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +99 -99
- package/dist/generate.js +119 -119
- package/dist/git.js +9 -9
- 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 +103 -103
- 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/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +383 -383
- package/dist/instruction-discovery.js +90 -90
- package/dist/instructions/builtins.js +99 -99
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +97 -97
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +81 -81
- package/dist/location-activity.js +171 -171
- package/dist/location-lifecycle.js +149 -149
- package/dist/location-service-map.js +98 -98
- package/dist/location-services.js +380 -380
- package/dist/location.js +95 -95
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +115 -115
- package/dist/mcp/instructions.js +175 -175
- package/dist/mcp/oauth.js +88 -88
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +103 -103
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -90
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +148 -148
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +84 -84
- package/dist/plugin/command.js +112 -112
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +232 -232
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +359 -359
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -109
- package/dist/plugin/module.js +126 -126
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +143 -143
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -103
- package/dist/plugin/provider/azure.js +129 -129
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +129 -129
- package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
- package/dist/plugin/provider/configured.js +125 -125
- package/dist/plugin/provider/credential-settings.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -107
- package/dist/plugin/provider/gitlab.js +106 -106
- package/dist/plugin/provider/google-vertex.js +126 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -88
- package/dist/plugin/provider/lmstudio.js +138 -138
- package/dist/plugin/provider/local.js +135 -135
- package/dist/plugin/provider/modal.js +104 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +138 -138
- package/dist/plugin/provider/openai-context-caps.js +102 -102
- package/dist/plugin/provider/openai.js +131 -131
- package/dist/plugin/provider/opencode.js +131 -131
- package/dist/plugin/provider/openrouter.js +103 -103
- package/dist/plugin/provider/poe.js +89 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +128 -128
- package/dist/plugin/provider/vllm.js +138 -138
- package/dist/plugin/provider/xai.js +103 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +179 -179
- package/dist/plugin/sdk.js +86 -86
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +146 -146
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +369 -369
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -98
- package/dist/plugin/vcs/hg.js +98 -98
- package/dist/plugin/verbosity.js +105 -105
- package/dist/plugin/warming.js +127 -127
- 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 +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +237 -237
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -94
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +102 -102
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +102 -102
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -237
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +243 -243
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +128 -128
- package/dist/session/command.js +84 -84
- package/dist/session/compaction.js +167 -167
- package/dist/session/context.js +191 -191
- package/dist/session/diff.js +100 -100
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +234 -234
- package/dist/session/execution.js +157 -157
- package/dist/session/generate.js +197 -197
- package/dist/session/history.js +135 -135
- package/dist/session/inbox.js +144 -144
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +162 -162
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +159 -159
- package/dist/session/projector.js +140 -140
- package/dist/session/prompt.js +147 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +138 -138
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +244 -244
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -112
- package/dist/session/runner/publish-llm-event.js +148 -148
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +159 -159
- package/dist/session/runner/to-llm-message.js +136 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +177 -177
- package/dist/session/shell.js +143 -143
- package/dist/session/skill.js +146 -146
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +83 -83
- package/dist/session/store.js +141 -141
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +226 -226
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +193 -193
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +231 -231
- package/dist/session/usage.js +1 -1
- package/dist/session.js +224 -224
- package/dist/shell/parse.js +7 -9
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +145 -145
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +155 -155
- package/dist/snapshot.js +101 -101
- 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 +172 -172
- package/dist/tool/plugin/edit.js +163 -163
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +167 -167
- package/dist/tool/plugin/grep.js +167 -167
- package/dist/tool/plugin/image-generate.js +236 -236
- package/dist/tool/plugin/mcp-resource.js +161 -161
- package/dist/tool/plugin/opencode.js +160 -160
- package/dist/tool/plugin/patch.js +165 -165
- package/dist/tool/plugin/question.js +145 -145
- package/dist/tool/plugin/read.js +168 -168
- package/dist/tool/plugin/schedule.js +243 -243
- package/dist/tool/plugin/shell.js +232 -232
- package/dist/tool/plugin/skill.js +154 -154
- package/dist/tool/plugin/subagent.js +233 -233
- package/dist/tool/plugin/todo.js +152 -152
- package/dist/tool/plugin/webfetch.js +154 -154
- package/dist/tool/plugin/websearch.js +154 -154
- package/dist/tool/plugin/write.js +165 -165
- package/dist/tool/read-filesystem.js +112 -112
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/shell/parse.d.ts +0 -1
- package/dist/types/shell/scan.d.ts +1 -0
- 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 +5 -5
- package/dist/v1/config/command.js +1 -1
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -104
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +103 -103
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -101
- package/dist/voice.js +96 -96
- package/dist/websearch.js +94 -94
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -92
- 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 +101 -101
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/location-services-5d7ky1sb.js +0 -257
- package/dist/chunks/location-services-a2vx32ez.js +0 -535
- package/dist/chunks/location-services-a610t88q.js +0 -18
- package/dist/chunks/location-services-zf52n5v2.js +0 -26
- /package/dist/chunks/{location-services-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-services-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-services-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-services-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-services-1kah00gy.js → worktree-1kah00gy.js} +0 -0
- /package/dist/chunks/{location-services-24dcb14g.js → worktree-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-services-2710q6r3.js → worktree-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-services-2bv980vf.js → worktree-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-services-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-services-359p4xyc.js → worktree-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-services-3asan66x.js → worktree-3asan66x.js} +0 -0
- /package/dist/chunks/{location-services-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-services-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-services-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-services-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-services-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-services-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-services-53557ph1.js → worktree-53557ph1.js} +0 -0
- /package/dist/chunks/{location-services-550bvhaj.js → worktree-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-services-5w3e23ze.js → worktree-5w3e23ze.js} +0 -0
- /package/dist/chunks/{location-services-6prwharc.js → worktree-6prwharc.js} +0 -0
- /package/dist/chunks/{location-services-6q2bdcd1.js → worktree-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-services-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-services-7m9af43g.js → worktree-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-services-7stb81gk.js → worktree-7stb81gk.js} +0 -0
- /package/dist/chunks/{location-services-822emrt2.js → worktree-822emrt2.js} +0 -0
- /package/dist/chunks/{location-services-84wd9syh.js → worktree-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-services-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-services-8n3pysct.js → worktree-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-services-8wj87zfr.js → worktree-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-services-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-services-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-services-a058387c.js → worktree-a058387c.js} +0 -0
- /package/dist/chunks/{location-services-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-services-af5trqkr.js → worktree-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-services-afrmfg78.js → worktree-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-services-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-services-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-services-beh6qq61.js → worktree-beh6qq61.js} +0 -0
- /package/dist/chunks/{location-services-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-services-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-services-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-services-cqv5kn06.js → worktree-cqv5kn06.js} +0 -0
- /package/dist/chunks/{location-services-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-services-d9fn303g.js → worktree-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-services-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-services-dap0rakb.js → worktree-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-services-df08tz66.js → worktree-df08tz66.js} +0 -0
- /package/dist/chunks/{location-services-dy18nga0.js → worktree-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-services-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-services-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-services-ean2d8b5.js → worktree-ean2d8b5.js} +0 -0
- /package/dist/chunks/{location-services-ec1grn59.js → worktree-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-services-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-services-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-services-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-services-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-services-faypxj3z.js → worktree-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-services-fd410y7t.js → worktree-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-services-fkpq3x5p.js → worktree-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{location-services-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-services-g86h250q.js → worktree-g86h250q.js} +0 -0
- /package/dist/chunks/{location-services-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-services-gftt206x.js → worktree-gftt206x.js} +0 -0
- /package/dist/chunks/{location-services-hcxmzztb.js → worktree-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-services-hk9envan.js → worktree-hk9envan.js} +0 -0
- /package/dist/chunks/{location-services-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-services-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-services-jjkms2e6.js → worktree-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-services-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-services-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-services-jwr30sdr.js → worktree-jwr30sdr.js} +0 -0
- /package/dist/chunks/{location-services-jze0r7bz.js → worktree-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-services-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-services-m18g726c.js → worktree-m18g726c.js} +0 -0
- /package/dist/chunks/{location-services-mp448xyj.js → worktree-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-services-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-services-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-services-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-services-ncqqe42p.js → worktree-ncqqe42p.js} +0 -0
- /package/dist/chunks/{location-services-nh4v3znn.js → worktree-nh4v3znn.js} +0 -0
- /package/dist/chunks/{location-services-njntx4h6.js → worktree-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-services-p71gwv9c.js → worktree-p71gwv9c.js} +0 -0
- /package/dist/chunks/{location-services-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-services-q74kybfr.js → worktree-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-services-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-services-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-services-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-services-qg3g05ea.js → worktree-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-services-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-services-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-services-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-services-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-services-stkk57rt.js → worktree-stkk57rt.js} +0 -0
- /package/dist/chunks/{location-services-t03h4f5z.js → worktree-t03h4f5z.js} +0 -0
- /package/dist/chunks/{location-services-ty7weeps.js → worktree-ty7weeps.js} +0 -0
- /package/dist/chunks/{location-services-ve7vex1e.js → worktree-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-services-w803qqfp.js → worktree-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-services-wc3fc9cn.js → worktree-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-services-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-services-wtztk69x.js → worktree-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-services-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-services-x61499pn.js → worktree-x61499pn.js} +0 -0
- /package/dist/chunks/{location-services-y44na4kk.js → worktree-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-services-y8f7s663.js → worktree-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-services-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-services-z5v4ffb3.js → worktree-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-services-z9919s4g.js → worktree-z9919s4g.js} +0 -0
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
scan4,
|
|
3
3
|
scanPowerShell2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-7kr66rt3.js";
|
|
5
5
|
import {
|
|
6
6
|
name17,
|
|
7
7
|
ps2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./worktree-c325tjb6.js";
|
|
9
9
|
import {
|
|
10
10
|
match3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./worktree-1aqsckx4.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./worktree-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/shell/parse.ts
|
|
17
17
|
var exports_parse = {};
|
|
18
18
|
__export(exports_parse, {
|
|
19
19
|
ShellParse: () => exports_parse,
|
|
20
|
-
scan: () => scan3
|
|
21
|
-
scanPortable: () => scanPortable2
|
|
20
|
+
scan: () => scan3
|
|
22
21
|
});
|
|
23
|
-
import { Effect } from "effect";
|
|
22
|
+
import { Effect, Result } from "effect";
|
|
23
|
+
import fs from "fs";
|
|
24
24
|
import os from "os";
|
|
25
25
|
import path from "path";
|
|
26
26
|
var CWD = new Set(["cd", "chdir", "popd", "pushd", "push-location", "set-location"]);
|
|
27
27
|
var POWERSHELL_PATH_FLAG_RE = /^-(?:p(?:ath|at|a)?|lp|l(?:i(?:t(?:e(?:r(?:a(?:l(?:p(?:a(?:t(?:h)?)?)?)?)?)?)?)?)?)?|psp(?:a(?:t(?:h)?)?)?):?$/i;
|
|
28
|
+
var POWERSHELL_LITERAL_FLAG_RE = /^-(?:lp|l(?:i(?:t(?:e(?:r(?:a(?:l(?:p(?:a(?:t(?:h)?)?)?)?)?)?)?)?)?)?|psp(?:a(?:t(?:h)?)?)?):?$/i;
|
|
29
|
+
var POWERSHELL_STACK_FLAG_RE = /^-(?:stack(?:name|nam|na|n)?|st):?$/i;
|
|
28
30
|
var ARITY = {
|
|
29
31
|
cat: 1,
|
|
30
32
|
cd: 1,
|
|
@@ -176,38 +178,50 @@ function scan3(command, shell, cwd) {
|
|
|
176
178
|
for (const item of scanned.commands) {
|
|
177
179
|
if (item.declaration)
|
|
178
180
|
continue;
|
|
181
|
+
if (item.redirectPrefixEnd !== undefined) {
|
|
182
|
+
const head = item.resource.slice(0, item.redirectPrefixEnd);
|
|
183
|
+
const next = item.resource[item.redirectPrefixEnd];
|
|
184
|
+
const separator = next === "\t" || next === `
|
|
185
|
+
` ? next : " ";
|
|
186
|
+
output.commands.push({ resource: item.resource, save: `${head}${separator}*` });
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
179
189
|
const words = item.redirectWordCount === undefined ? item.rawWords : item.rawWords.slice(0, item.redirectWordCount);
|
|
180
190
|
if (powershell && item.statementHead && /^foreach(?:-|$)/i.test(words[0] ?? "") && words.length > 1 && words.slice(1).every((word) => word.startsWith("{")))
|
|
181
191
|
continue;
|
|
182
192
|
const parts = powershell ? words.flatMap((raw, index) => {
|
|
183
193
|
const text = !raw.includes("`$") && /['"`]/.test(raw) ? item.words[index] ?? raw : raw.replaceAll("`$", "\x00");
|
|
184
194
|
if (!/^-[A-Za-z_?][\w?-]*(?::|$)/.test(raw))
|
|
185
|
-
return [{ type: "word", text }];
|
|
195
|
+
return [{ type: "word", text, raw }];
|
|
186
196
|
const colon = text.indexOf(":");
|
|
187
|
-
if (colon >= 0)
|
|
197
|
+
if (colon >= 0) {
|
|
198
|
+
const rawColon = raw.indexOf(":");
|
|
188
199
|
return colon + 1 < text.length ? [
|
|
189
|
-
{ type: "command_parameter", text: text.slice(0, colon) },
|
|
190
|
-
{ type: "word", text: text.slice(colon + 1) }
|
|
191
|
-
] : [{ type: "command_parameter", text: text.slice(0, colon) }];
|
|
192
|
-
|
|
200
|
+
{ type: "command_parameter", text: text.slice(0, colon), raw: raw.slice(0, rawColon) },
|
|
201
|
+
{ type: "word", text: text.slice(colon + 1), raw: rawColon >= 0 ? raw.slice(rawColon + 1) : raw }
|
|
202
|
+
] : [{ type: "command_parameter", text: text.slice(0, colon), raw }];
|
|
203
|
+
}
|
|
204
|
+
return [{ type: "command_parameter", text, raw }];
|
|
193
205
|
}) : item.rawWords.map((raw, index) => {
|
|
194
206
|
const word = item.words[index] ?? raw;
|
|
195
207
|
return {
|
|
196
208
|
type: "word",
|
|
197
209
|
text: isStaticBashWord(raw) ? word.replaceAll("$", "\x00") : "$",
|
|
210
|
+
raw,
|
|
198
211
|
unquotedTilde: raw.startsWith("~")
|
|
199
212
|
};
|
|
200
213
|
});
|
|
201
|
-
const directoryCommand = unwrapDirectoryCommand(words, parts, powershell);
|
|
214
|
+
const directoryCommand = unwrapDirectoryCommand(powershell ? words : item.rawWords, parts, powershell);
|
|
202
215
|
if (directoryCommand) {
|
|
203
|
-
|
|
204
|
-
|
|
216
|
+
const resolved = directoryArgs(directoryCommand, powershell, cwd, shell);
|
|
217
|
+
output.directories.push(...resolved.directories);
|
|
218
|
+
if (directoryCommand === parts && resolved.complete)
|
|
205
219
|
continue;
|
|
206
220
|
}
|
|
207
221
|
const selected = prefix(words.slice(0, PREFIX_LENGTH));
|
|
208
222
|
const conventional = `${selected.join(" ")} *`;
|
|
209
223
|
const end = item.wordEnds?.[selected.length - 1];
|
|
210
|
-
const save = !powershell || end === undefined || match3(item.resource, conventional) ? conventional : (() => {
|
|
224
|
+
const save = !powershell || end === undefined || match3(item.resource, conventional) ? conventional : item.resource[end] === "(" ? `${item.resource.slice(0, end)}(*` : (() => {
|
|
211
225
|
const boundary = item.wordEnds?.find((value) => value >= end && (value >= item.resource.length || /\s/.test(item.resource[value]))) ?? end;
|
|
212
226
|
const separator = /^\s+(?:`(?:\r\n|\r|\n)\s*)?/.exec(item.resource.slice(boundary))?.[0];
|
|
213
227
|
return `${item.resource.slice(0, boundary)}${separator ?? " "}*`;
|
|
@@ -220,7 +234,6 @@ function scan3(command, shell, cwd) {
|
|
|
220
234
|
return Effect.succeed(output);
|
|
221
235
|
});
|
|
222
236
|
}
|
|
223
|
-
var scanPortable2 = scan3;
|
|
224
237
|
function unwrapDirectoryCommand(rawWords, parts, powershell) {
|
|
225
238
|
const head = powershell ? rawWords[0]?.toLowerCase() : rawWords[0];
|
|
226
239
|
if (CWD.has(head ?? ""))
|
|
@@ -244,26 +257,65 @@ function unwrapDirectoryCommand(rawWords, parts, powershell) {
|
|
|
244
257
|
}
|
|
245
258
|
function isStaticBashWord(raw) {
|
|
246
259
|
let quote;
|
|
260
|
+
let segmentStarted = false;
|
|
261
|
+
let segmentLeadingDot = false;
|
|
262
|
+
let segmentGlob = false;
|
|
263
|
+
let hasAnsiEscape = false;
|
|
264
|
+
let hasUnquotedGlob = false;
|
|
265
|
+
const braces = [];
|
|
266
|
+
const recordChar = (char, unquotedGlob = false) => {
|
|
267
|
+
if (unquotedGlob)
|
|
268
|
+
hasUnquotedGlob = true;
|
|
269
|
+
if (hasAnsiEscape && hasUnquotedGlob)
|
|
270
|
+
return false;
|
|
271
|
+
if (char === "/") {
|
|
272
|
+
segmentStarted = false;
|
|
273
|
+
segmentLeadingDot = false;
|
|
274
|
+
segmentGlob = false;
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
if (!segmentStarted) {
|
|
278
|
+
segmentStarted = true;
|
|
279
|
+
segmentLeadingDot = char === ".";
|
|
280
|
+
}
|
|
281
|
+
if (unquotedGlob)
|
|
282
|
+
segmentGlob = true;
|
|
283
|
+
return !(segmentLeadingDot && segmentGlob);
|
|
284
|
+
};
|
|
247
285
|
for (let index = 0;index < raw.length; index++) {
|
|
248
286
|
const char = raw[index];
|
|
249
287
|
const next = raw[index + 1] ?? "";
|
|
250
288
|
if (quote === "'") {
|
|
251
|
-
if (char === "'")
|
|
289
|
+
if (char === "'") {
|
|
252
290
|
quote = undefined;
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
if (!recordChar(char))
|
|
294
|
+
return false;
|
|
253
295
|
continue;
|
|
254
296
|
}
|
|
255
297
|
if (quote === "$'") {
|
|
256
298
|
if (char === "\\") {
|
|
299
|
+
hasAnsiEscape = true;
|
|
300
|
+
if (hasUnquotedGlob)
|
|
301
|
+
return false;
|
|
257
302
|
index++;
|
|
258
303
|
continue;
|
|
259
304
|
}
|
|
260
|
-
if (char === "'")
|
|
305
|
+
if (char === "'") {
|
|
261
306
|
quote = undefined;
|
|
307
|
+
continue;
|
|
308
|
+
}
|
|
309
|
+
if (!recordChar(char))
|
|
310
|
+
return false;
|
|
262
311
|
continue;
|
|
263
312
|
}
|
|
264
313
|
if (quote === '"') {
|
|
265
314
|
if (char === "\\" && '$`"\\\n'.includes(next)) {
|
|
266
315
|
index++;
|
|
316
|
+
if (next !== `
|
|
317
|
+
` && !recordChar(next))
|
|
318
|
+
return false;
|
|
267
319
|
continue;
|
|
268
320
|
}
|
|
269
321
|
if (char === '"') {
|
|
@@ -272,10 +324,15 @@ function isStaticBashWord(raw) {
|
|
|
272
324
|
}
|
|
273
325
|
if (char === "`" || char === "$" && (/[A-Za-z_0-9@*#?$!({[-]/.test(next) || raw.startsWith("\\\n", index + 1)))
|
|
274
326
|
return false;
|
|
327
|
+
if (!recordChar(char))
|
|
328
|
+
return false;
|
|
275
329
|
continue;
|
|
276
330
|
}
|
|
277
331
|
if (char === "\\") {
|
|
278
332
|
index++;
|
|
333
|
+
if (next !== `
|
|
334
|
+
` && !recordChar(next))
|
|
335
|
+
return false;
|
|
279
336
|
continue;
|
|
280
337
|
}
|
|
281
338
|
if (char === "'") {
|
|
@@ -298,50 +355,174 @@ function isStaticBashWord(raw) {
|
|
|
298
355
|
}
|
|
299
356
|
if (char === "`" || (char === "<" || char === ">" || char === "=") && next === "(" || char === "$" && (/[A-Za-z_0-9@*#?$!({[-]/.test(next) || raw.startsWith("\\\n", index + 1)))
|
|
300
357
|
return false;
|
|
358
|
+
if (char === "{") {
|
|
359
|
+
braces.push(false);
|
|
360
|
+
if (!recordChar(char))
|
|
361
|
+
return false;
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
if (braces.length > 0 && (char === "," || char === "." && next === ".")) {
|
|
365
|
+
braces[braces.length - 1] = true;
|
|
366
|
+
}
|
|
367
|
+
if (char === "}" && braces.length > 0) {
|
|
368
|
+
if (braces.pop())
|
|
369
|
+
return false;
|
|
370
|
+
if (!recordChar(char))
|
|
371
|
+
return false;
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
if (!recordChar(char, char === "*" || char === "?" || char === "["))
|
|
375
|
+
return false;
|
|
301
376
|
}
|
|
302
377
|
return quote === undefined;
|
|
303
378
|
}
|
|
379
|
+
function hasPowerShellDotWildcard(raw) {
|
|
380
|
+
let quote;
|
|
381
|
+
let segmentStarted = false;
|
|
382
|
+
let segmentLeadingDot = false;
|
|
383
|
+
let segmentGlob = false;
|
|
384
|
+
let hasQuoteEscape = false;
|
|
385
|
+
let hasUnquotedGlob = false;
|
|
386
|
+
const recordChar = (char, unquotedGlob = false) => {
|
|
387
|
+
if (unquotedGlob)
|
|
388
|
+
hasUnquotedGlob = true;
|
|
389
|
+
if (hasQuoteEscape && hasUnquotedGlob)
|
|
390
|
+
return true;
|
|
391
|
+
if (char === "/" || char === "\\") {
|
|
392
|
+
segmentStarted = false;
|
|
393
|
+
segmentLeadingDot = false;
|
|
394
|
+
segmentGlob = false;
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
if (!segmentStarted) {
|
|
398
|
+
segmentStarted = true;
|
|
399
|
+
segmentLeadingDot = char === ".";
|
|
400
|
+
}
|
|
401
|
+
if (unquotedGlob)
|
|
402
|
+
segmentGlob = true;
|
|
403
|
+
return segmentLeadingDot && segmentGlob;
|
|
404
|
+
};
|
|
405
|
+
for (let index = 0;index < raw.length; index++) {
|
|
406
|
+
const char = raw[index];
|
|
407
|
+
const next = raw[index + 1] ?? "";
|
|
408
|
+
if (quote === "'") {
|
|
409
|
+
if (char === "'" && next === "'") {
|
|
410
|
+
index++;
|
|
411
|
+
if (recordChar("'"))
|
|
412
|
+
return true;
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
if (char === "'") {
|
|
416
|
+
quote = undefined;
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
if (recordChar(char))
|
|
420
|
+
return true;
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
if (quote === '"') {
|
|
424
|
+
if (char === "`") {
|
|
425
|
+
hasQuoteEscape = true;
|
|
426
|
+
if (hasUnquotedGlob)
|
|
427
|
+
return true;
|
|
428
|
+
index++;
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
if (char === '"' && next === '"') {
|
|
432
|
+
index++;
|
|
433
|
+
if (recordChar('"'))
|
|
434
|
+
return true;
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
if (char === '"') {
|
|
438
|
+
quote = undefined;
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
if (recordChar(char))
|
|
442
|
+
return true;
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
if (char === "`") {
|
|
446
|
+
index++;
|
|
447
|
+
if (recordChar(next))
|
|
448
|
+
return true;
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
if (char === "'" || char === '"') {
|
|
452
|
+
quote = char;
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (recordChar(char, char === "*" || char === "?" || char === "["))
|
|
456
|
+
return true;
|
|
457
|
+
}
|
|
458
|
+
return false;
|
|
459
|
+
}
|
|
304
460
|
function directoryArgs(command, powershell, cwd, shell) {
|
|
461
|
+
const head = command[0]?.text.toLowerCase() ?? "";
|
|
462
|
+
if (head === "popd" || head === "pop-location")
|
|
463
|
+
return { directories: [], complete: false };
|
|
305
464
|
if (!powershell) {
|
|
306
465
|
let endOfOptions = false;
|
|
307
|
-
|
|
466
|
+
const operands = command.slice(1).filter((part) => {
|
|
308
467
|
if (endOfOptions)
|
|
309
468
|
return true;
|
|
310
469
|
if (part.text === "--") {
|
|
311
470
|
endOfOptions = true;
|
|
312
471
|
return false;
|
|
313
472
|
}
|
|
473
|
+
if (part.text === "-")
|
|
474
|
+
return true;
|
|
314
475
|
return !part.text.startsWith("-");
|
|
315
|
-
})
|
|
476
|
+
});
|
|
477
|
+
if (operands.length === 0)
|
|
478
|
+
return { directories: [], complete: false };
|
|
479
|
+
const resolved = operands.map((part) => part.text === "-" ? undefined : directoryArgument(part.text, false, cwd, shell, part.unquotedTilde));
|
|
480
|
+
const directories = resolved.filter((item) => item !== undefined);
|
|
481
|
+
return { directories, complete: directories.length === operands.length };
|
|
316
482
|
}
|
|
317
483
|
const directories = [];
|
|
318
|
-
let
|
|
484
|
+
let pathFlag = false;
|
|
485
|
+
let literalFlag = false;
|
|
319
486
|
let endOfParameters = false;
|
|
487
|
+
let sawOperand = false;
|
|
488
|
+
let complete = true;
|
|
320
489
|
for (const part of command.slice(1)) {
|
|
321
490
|
if (!endOfParameters && part.text === "--") {
|
|
322
491
|
endOfParameters = true;
|
|
323
492
|
continue;
|
|
324
493
|
}
|
|
325
|
-
if (
|
|
326
|
-
|
|
494
|
+
if (pathFlag) {
|
|
495
|
+
sawOperand = true;
|
|
496
|
+
const value = !literalFlag && (hasPowerShellDotWildcard(part.raw) || part.text === "-" || part.text === "+") ? undefined : directoryArgument(part.text, true, cwd, shell);
|
|
327
497
|
if (value)
|
|
328
498
|
directories.push(value);
|
|
329
|
-
|
|
499
|
+
if (!value)
|
|
500
|
+
complete = false;
|
|
501
|
+
pathFlag = false;
|
|
502
|
+
literalFlag = false;
|
|
330
503
|
continue;
|
|
331
504
|
}
|
|
332
505
|
if (!endOfParameters && part.type === "command_parameter") {
|
|
333
|
-
|
|
506
|
+
if (POWERSHELL_STACK_FLAG_RE.test(part.text)) {
|
|
507
|
+
complete = false;
|
|
508
|
+
return { directories, complete };
|
|
509
|
+
}
|
|
510
|
+
pathFlag = POWERSHELL_PATH_FLAG_RE.test(part.text);
|
|
511
|
+
literalFlag = POWERSHELL_LITERAL_FLAG_RE.test(part.text);
|
|
334
512
|
continue;
|
|
335
513
|
}
|
|
336
|
-
|
|
514
|
+
sawOperand = true;
|
|
515
|
+
const value = hasPowerShellDotWildcard(part.raw) || !endOfParameters && (part.raw === "-" || part.raw === "+") ? undefined : directoryArgument(part.text, true, cwd, shell);
|
|
337
516
|
if (value)
|
|
338
517
|
directories.push(value);
|
|
518
|
+
if (!value)
|
|
519
|
+
complete = false;
|
|
339
520
|
}
|
|
340
|
-
return directories;
|
|
521
|
+
return { directories, complete: sawOperand && complete };
|
|
341
522
|
}
|
|
342
523
|
function directoryArgument(value, powershell, cwd, shell, unquotedTilde = false) {
|
|
343
524
|
if (!powershell)
|
|
344
|
-
return expandKnownDirectory(value, false, unquotedTilde);
|
|
525
|
+
return expandKnownDirectory(value, false, cwd, unquotedTilde);
|
|
345
526
|
const quote = value[0];
|
|
346
527
|
const text = (quote === '"' || quote === "'") && value.at(-1) === quote ? value.slice(1, -1) : value;
|
|
347
528
|
return expandKnownDirectory(text.replace(/\$\{env:([^}]+)\}/gi, (_, key) => environment(key) ?? "").replace(/\$env:([A-Za-z_][A-Za-z0-9_]*)/gi, (_, key) => environment(key) ?? "").replace(/\$(?:\{(HOME|PWD|PSHOME)\}|(HOME|PWD|PSHOME)(?=$|[\\/]))/gi, (_, braced, bare) => {
|
|
@@ -351,9 +532,9 @@ function directoryArgument(value, powershell, cwd, shell, unquotedTilde = false)
|
|
|
351
532
|
if (key === "PWD")
|
|
352
533
|
return cwd;
|
|
353
534
|
return path.dirname(shell);
|
|
354
|
-
}), true);
|
|
535
|
+
}), true, cwd);
|
|
355
536
|
}
|
|
356
|
-
function expandKnownDirectory(value, powershell, unquotedTilde = false) {
|
|
537
|
+
function expandKnownDirectory(value, powershell, cwd, unquotedTilde = false) {
|
|
357
538
|
if (value.includes("$") || value.includes("`") || powershell && value.startsWith("("))
|
|
358
539
|
return;
|
|
359
540
|
const resolved = value.replaceAll("\x00", "$");
|
|
@@ -363,15 +544,55 @@ function expandKnownDirectory(value, powershell, unquotedTilde = false) {
|
|
|
363
544
|
return path.join(os.homedir(), resolved.slice(2));
|
|
364
545
|
}
|
|
365
546
|
if (unquotedTilde && process.platform !== "win32") {
|
|
366
|
-
|
|
547
|
+
if (resolved === "~+")
|
|
548
|
+
return cwd;
|
|
549
|
+
if (resolved.startsWith("~+/"))
|
|
550
|
+
return path.join(cwd, resolved.slice(3));
|
|
551
|
+
if (/^~(?:[-+](?:\d+)?|\d+)(?=$|\/)/.test(resolved))
|
|
552
|
+
return;
|
|
553
|
+
const userMatch = /^~([A-Za-z_][A-Za-z0-9._-]*)(?=$|\/)/.exec(resolved);
|
|
367
554
|
if (userMatch) {
|
|
368
555
|
const user = userMatch[1];
|
|
369
|
-
const home =
|
|
556
|
+
const home = resolveUserHome(user);
|
|
557
|
+
if (!home)
|
|
558
|
+
return;
|
|
370
559
|
return path.join(home, resolved.slice(user.length + 1));
|
|
371
560
|
}
|
|
372
561
|
}
|
|
373
562
|
return resolved;
|
|
374
563
|
}
|
|
564
|
+
var cachedPasswdHomes;
|
|
565
|
+
function passwdHomes() {
|
|
566
|
+
if (cachedPasswdHomes)
|
|
567
|
+
return cachedPasswdHomes;
|
|
568
|
+
const content = Result.try(() => fs.readFileSync("/etc/passwd", "utf8"));
|
|
569
|
+
const entries = Result.isSuccess(content) ? content.success.split(`
|
|
570
|
+
`).flatMap((line) => {
|
|
571
|
+
if (!line || line.startsWith("#"))
|
|
572
|
+
return [];
|
|
573
|
+
const fields = line.split(":");
|
|
574
|
+
const name = fields[0];
|
|
575
|
+
const home = fields[5];
|
|
576
|
+
return name && home ? [[name, home]] : [];
|
|
577
|
+
}) : [];
|
|
578
|
+
cachedPasswdHomes = new Map(entries);
|
|
579
|
+
return cachedPasswdHomes;
|
|
580
|
+
}
|
|
581
|
+
function resolveUserHome(user) {
|
|
582
|
+
const current = Result.try(() => os.userInfo());
|
|
583
|
+
if (Result.isSuccess(current) && current.success.username === user && current.success.homedir) {
|
|
584
|
+
return current.success.homedir;
|
|
585
|
+
}
|
|
586
|
+
const fromPasswd = passwdHomes().get(user);
|
|
587
|
+
if (fromPasswd)
|
|
588
|
+
return fromPasswd;
|
|
589
|
+
if (process.platform === "darwin") {
|
|
590
|
+
const candidate = path.join("/Users", user);
|
|
591
|
+
const exists = Result.try(() => fs.statSync(candidate).isDirectory());
|
|
592
|
+
if (Result.isSuccess(exists) && exists.success)
|
|
593
|
+
return candidate;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
375
596
|
function environment(key) {
|
|
376
597
|
if (process.platform !== "win32")
|
|
377
598
|
return process.env[key];
|
|
@@ -387,4 +608,4 @@ function prefix(tokens) {
|
|
|
387
608
|
return tokens.slice(0, 1);
|
|
388
609
|
}
|
|
389
610
|
|
|
390
|
-
export { scan3,
|
|
611
|
+
export { scan3, exports_parse };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-mf3y8h86.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-stkk57rt.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./worktree-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./worktree-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
14
|
Options: () => Options6,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service50,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
18
|
configured: () => configured7,
|
|
@@ -21,7 +21,7 @@ __export(exports_select, {
|
|
|
21
21
|
list: () => list3,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name17,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node53,
|
|
25
25
|
ps: () => ps2,
|
|
26
26
|
resolve: () => resolve3
|
|
27
27
|
});
|
|
@@ -47,7 +47,7 @@ var Options6 = Schema.Struct({
|
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service50 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -188,7 +188,7 @@ async function list3(options, bin) {
|
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service50, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,7 +199,7 @@ var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service50.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
205
|
resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin)),
|
|
@@ -207,8 +207,8 @@ var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
209
|
function configured7(options) {
|
|
210
|
-
return makeLocationNode({ service:
|
|
210
|
+
return makeLocationNode({ service: Service50, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node53 = configured7();
|
|
213
213
|
|
|
214
|
-
export { Options6,
|
|
214
|
+
export { Options6, Service50, gitbash2, name17, login2, ps2, args2, environment2, resolve3, list3, configured7, node53, exports_select };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service63
|
|
3
|
+
} from "./worktree-cbcbsb56.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-f8ma18fn.js";
|
|
7
7
|
import {
|
|
8
8
|
SkillNotFoundError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./worktree-rbndg51d.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service38
|
|
12
|
+
} from "./worktree-0q1r2kjj.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./worktree-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/skill.ts
|
|
18
18
|
var exports_skill4 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_skill4, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var get4 = Effect.fn("SessionSkill.get")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const skills = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service63;
|
|
26
|
+
const skills = yield* awaitActivation2.pipe(Effect.andThen(Service38), instances.provide(input.session));
|
|
27
27
|
const skill = yield* skills.get(input.skill);
|
|
28
28
|
if (!skill)
|
|
29
29
|
return yield* new SkillNotFoundError2({ skill: input.skill });
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-9yke2vdy.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID16,
|
|
6
6
|
Event19,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service80
|
|
8
|
+
} from "./worktree-8jne4ghb.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID13
|
|
11
|
+
} from "./worktree-zy2d75w1.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./worktree-9k2mwdeg.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
43
43
|
id: "opencode.provider.google.vertex",
|
|
44
44
|
effect: Effect.fn(function* (ctx) {
|
|
45
45
|
const fs = yield* FSUtil.Service;
|
|
46
|
-
const credentials = yield*
|
|
46
|
+
const credentials = yield* Service80;
|
|
47
47
|
const bus = yield* Service86;
|
|
48
48
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
49
49
|
return;
|
|
@@ -53,7 +53,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
53
53
|
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));
|
|
54
54
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
55
55
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
56
|
-
const configured = (yield* configuredSettings2(
|
|
56
|
+
const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
|
|
57
57
|
const projects = Array.from(new Set([
|
|
58
58
|
resolveProject(configured),
|
|
59
59
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -67,8 +67,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
67
67
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
68
68
|
]));
|
|
69
69
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
70
|
-
const connection = yield* ctx.integration.connection.active(
|
|
71
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
70
|
+
const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
|
|
71
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID16.make(connection.id)) : undefined;
|
|
72
72
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
73
73
|
return {};
|
|
74
74
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -76,15 +76,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
76
76
|
const selected = { settings: yield* load() };
|
|
77
77
|
const settingsFor = (provider) => ({
|
|
78
78
|
...provider.settings,
|
|
79
|
-
...(provider.integrationID ?? provider.id) ===
|
|
79
|
+
...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
|
|
80
80
|
});
|
|
81
81
|
yield* ctx.integration.transform((editor) => {
|
|
82
82
|
editor.method.update({
|
|
83
|
-
integrationID:
|
|
83
|
+
integrationID: ID13.googleVertex,
|
|
84
84
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
85
85
|
});
|
|
86
86
|
editor.method.update({
|
|
87
|
-
integrationID:
|
|
87
|
+
integrationID: ID13.googleVertex,
|
|
88
88
|
method: {
|
|
89
89
|
id: ADC_METHOD,
|
|
90
90
|
type: "external",
|
|
@@ -122,7 +122,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
122
122
|
});
|
|
123
123
|
yield* ctx.provider.transform((evt) => {
|
|
124
124
|
for (const item of evt.list()) {
|
|
125
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
125
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
126
126
|
continue;
|
|
127
127
|
const settings = settingsFor(item.provider);
|
|
128
128
|
const project = resolveProject(settings);
|
|
@@ -141,7 +141,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
141
141
|
});
|
|
142
142
|
yield* ctx.model.transform((models) => {
|
|
143
143
|
for (const item of models.provider.list()) {
|
|
144
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
144
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
145
145
|
continue;
|
|
146
146
|
const settings = settingsFor(item.provider);
|
|
147
147
|
const project = resolveProject(settings);
|