@opencode/core 0.0.0-dev-20579 → 0.0.0-dev-20581
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +90 -90
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{models-dev-8wxr6w3c.js → managed-policy-02wmet1s.js} +22 -22
- package/dist/chunks/{models-dev-w8mfq855.js → managed-policy-03qxw8pz.js} +13 -13
- package/dist/chunks/{models-dev-94ak9ask.js → managed-policy-06yeazan.js} +1 -1
- package/dist/chunks/{models-dev-n0vcjzwx.js → managed-policy-0eb613mk.js} +22 -22
- package/dist/chunks/{models-dev-tj0wg4nv.js → managed-policy-0ge1h6kx.js} +5 -5
- package/dist/chunks/{models-dev-0paq2nw3.js → managed-policy-0paq2nw3.js} +1 -1
- package/dist/chunks/{models-dev-0vbcp93d.js → managed-policy-0vbcp93d.js} +2 -2
- package/dist/chunks/{models-dev-pm50wqr4.js → managed-policy-119h30qy.js} +4 -4
- package/dist/chunks/{models-dev-72a3060e.js → managed-policy-145xw1zc.js} +3 -3
- package/dist/chunks/{models-dev-21sd2q2p.js → managed-policy-18ztmhep.js} +15 -15
- package/dist/chunks/{models-dev-1dazxqgg.js → managed-policy-1dazxqgg.js} +2 -2
- package/dist/chunks/{models-dev-1dvck2a7.js → managed-policy-1dvck2a7.js} +2 -2
- package/dist/chunks/{models-dev-chkwe70y.js → managed-policy-1epzdntc.js} +11 -11
- package/dist/chunks/{models-dev-3wjay3ka.js → managed-policy-1rjc8rx3.js} +17 -17
- package/dist/chunks/{models-dev-777x33ga.js → managed-policy-1rw4rg9z.js} +43 -43
- package/dist/chunks/{models-dev-8tfctm8b.js → managed-policy-29garr4v.js} +1 -1
- package/dist/chunks/{models-dev-2a5m3afh.js → managed-policy-2a5m3afh.js} +1 -1
- package/dist/chunks/{models-dev-zghtsczn.js → managed-policy-2b2w1tdt.js} +8 -8
- package/dist/chunks/{models-dev-hw0q1v6w.js → managed-policy-2kea3y2w.js} +13 -13
- package/dist/chunks/{models-dev-5bmhz7h8.js → managed-policy-2qqgyr6a.js} +22 -22
- package/dist/chunks/{models-dev-h6vzd6py.js → managed-policy-2qx31yc6.js} +25 -25
- package/dist/chunks/{models-dev-cd2ckykk.js → managed-policy-2ysad2y1.js} +35 -35
- package/dist/chunks/{models-dev-56gdpj1q.js → managed-policy-33w4ejhs.js} +6 -6
- package/dist/chunks/{models-dev-3fc6dm20.js → managed-policy-3fc6dm20.js} +1 -1
- package/dist/chunks/{models-dev-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{models-dev-28pkm0f9.js → managed-policy-3mentpw2.js} +21 -21
- package/dist/chunks/{models-dev-3smtnn6g.js → managed-policy-3smtnn6g.js} +1 -1
- package/dist/chunks/{models-dev-3tvqynh2.js → managed-policy-3tvqynh2.js} +1 -1
- package/dist/chunks/{models-dev-8hkfkb27.js → managed-policy-3zbwexce.js} +8 -8
- package/dist/chunks/{models-dev-3zsf4n22.js → managed-policy-3zsf4n22.js} +1 -1
- package/dist/chunks/{models-dev-ygrc3zp9.js → managed-policy-459mc33k.js} +24 -24
- package/dist/chunks/{models-dev-m69jc7nt.js → managed-policy-46v0s1hp.js} +15 -15
- package/dist/chunks/{models-dev-rkp0d28g.js → managed-policy-4awagc8g.js} +57 -57
- package/dist/chunks/{models-dev-15nepkqg.js → managed-policy-4c2df9zx.js} +8 -8
- package/dist/chunks/{models-dev-j8vmxrd4.js → managed-policy-4hh2xy14.js} +3 -3
- package/dist/chunks/{models-dev-k64rxz1r.js → managed-policy-4j20dbk1.js} +19 -19
- package/dist/chunks/{models-dev-8ct0y6hk.js → managed-policy-4q8xb7vk.js} +26 -26
- package/dist/chunks/{models-dev-p6g1xawz.js → managed-policy-4qqmwkqx.js} +12 -12
- package/dist/chunks/{models-dev-4ts7tf6z.js → managed-policy-4ts7tf6z.js} +2 -2
- package/dist/chunks/{models-dev-nbr98sng.js → managed-policy-57kx76x8.js} +18 -18
- package/dist/chunks/{models-dev-5daktx2q.js → managed-policy-5daktx2q.js} +1 -1
- package/dist/chunks/{models-dev-kb426ejq.js → managed-policy-5dpktnqk.js} +12 -12
- package/dist/chunks/{models-dev-0hv6rsw5.js → managed-policy-5j1v3jqf.js} +33 -33
- package/dist/chunks/{models-dev-v0t6dd4w.js → managed-policy-5md23d48.js} +14 -14
- package/dist/chunks/{models-dev-yf10kn3d.js → managed-policy-5q13c62c.js} +8 -8
- package/dist/chunks/{models-dev-mhgx8wws.js → managed-policy-5qwkxp89.js} +4 -4
- package/dist/chunks/{models-dev-23r766dh.js → managed-policy-5snyeemy.js} +39 -39
- package/dist/chunks/{models-dev-5t3nmthw.js → managed-policy-5t3nmthw.js} +2 -2
- package/dist/chunks/{models-dev-srq8z0b0.js → managed-policy-5tcm9639.js} +9 -9
- package/dist/chunks/managed-policy-619r8v3y.js +18 -0
- package/dist/chunks/{models-dev-9pa8tak9.js → managed-policy-63db42yp.js} +2 -2
- package/dist/chunks/{models-dev-9fr4q37e.js → managed-policy-65jde4my.js} +24 -24
- package/dist/chunks/{models-dev-669tq793.js → managed-policy-669tq793.js} +1 -1
- package/dist/chunks/{models-dev-4j1v512x.js → managed-policy-6ba3xpax.js} +36 -36
- package/dist/chunks/{models-dev-fyfa4fhw.js → managed-policy-6gvgb8cz.js} +35 -35
- package/dist/chunks/{models-dev-snkpwrj1.js → managed-policy-6m3tp8mj.js} +26 -26
- package/dist/chunks/{models-dev-6xb47vfp.js → managed-policy-6xb47vfp.js} +1 -1
- package/dist/chunks/{models-dev-4556yem3.js → managed-policy-6xn9vhwr.js} +2 -2
- package/dist/chunks/{models-dev-71az546q.js → managed-policy-71az546q.js} +2 -2
- package/dist/chunks/{models-dev-b1tb8gws.js → managed-policy-721zw7bm.js} +36 -36
- package/dist/chunks/{models-dev-67g972p8.js → managed-policy-78ymhwc6.js} +11 -11
- package/dist/chunks/{models-dev-3gk6d5bg.js → managed-policy-7a12vqq0.js} +33 -33
- package/dist/chunks/{models-dev-c43encnq.js → managed-policy-7avdme9t.js} +13 -13
- package/dist/chunks/{models-dev-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{models-dev-t0nr6jrg.js → managed-policy-89c57hn9.js} +26 -26
- package/dist/chunks/{models-dev-sp7ve3f0.js → managed-policy-89nr6wfj.js} +11 -11
- package/dist/chunks/{models-dev-8d7r5vzw.js → managed-policy-8d7r5vzw.js} +1 -1
- package/dist/chunks/{models-dev-9xjshrng.js → managed-policy-8s59b704.js} +3 -3
- package/dist/chunks/{models-dev-we3tv5d1.js → managed-policy-8xkqg01v.js} +3 -3
- package/dist/chunks/{models-dev-qt130byj.js → managed-policy-91wpvk88.js} +23 -23
- package/dist/chunks/{models-dev-qvna2bbv.js → managed-policy-93hnm8e8.js} +33 -33
- package/dist/chunks/{models-dev-t8kkt2nv.js → managed-policy-955wy3qr.js} +11 -11
- package/dist/chunks/{models-dev-vjtea3hn.js → managed-policy-975ebawg.js} +3 -3
- package/dist/chunks/{models-dev-7re3496y.js → managed-policy-9dgpp9cn.js} +178 -178
- package/dist/chunks/{models-dev-9e5bzkjp.js → managed-policy-9e5bzkjp.js} +3 -3
- package/dist/chunks/{models-dev-bx0gyb4h.js → managed-policy-9hwaqfsw.js} +5 -5
- package/dist/chunks/{models-dev-t8a4yqen.js → managed-policy-9jrdkbpa.js} +5 -5
- package/dist/chunks/{models-dev-g80ve2xz.js → managed-policy-9qhqs605.js} +29 -29
- package/dist/chunks/{models-dev-7qxz1a4h.js → managed-policy-9web0d32.js} +9 -9
- package/dist/chunks/{models-dev-tsnhj991.js → managed-policy-9x8tc8sp.js} +7 -7
- package/dist/chunks/{models-dev-gvhmaxka.js → managed-policy-a2zd3k2n.js} +43 -43
- package/dist/chunks/{models-dev-5fsrq7yk.js → managed-policy-a3fmd72w.js} +13 -13
- package/dist/chunks/{models-dev-aaet6srn.js → managed-policy-aaet6srn.js} +2 -2
- package/dist/chunks/{models-dev-d9p3jxc1.js → managed-policy-abx012e0.js} +47 -47
- package/dist/chunks/{models-dev-hapxt7b6.js → managed-policy-acnatzrp.js} +4 -4
- package/dist/chunks/{models-dev-xx57t6qj.js → managed-policy-azks30c4.js} +24 -24
- package/dist/chunks/{models-dev-vwgad00t.js → managed-policy-b15vkqsx.js} +10 -10
- package/dist/chunks/{models-dev-b6gygkdw.js → managed-policy-b6gygkdw.js} +2 -2
- package/dist/chunks/{models-dev-sk11m9ar.js → managed-policy-bkwdfw9d.js} +26 -26
- package/dist/chunks/{models-dev-ydrjdpcc.js → managed-policy-bqb67z36.js} +23 -23
- package/dist/chunks/{models-dev-q97fzf0b.js → managed-policy-c10q7bwq.js} +20 -20
- package/dist/chunks/{models-dev-g6xefnek.js → managed-policy-c9863qqk.js} +5 -5
- package/dist/chunks/{models-dev-a8bn8zg0.js → managed-policy-cavr175a.js} +4 -4
- package/dist/chunks/{models-dev-tfyyarmg.js → managed-policy-cc75tkym.js} +16 -16
- package/dist/chunks/{models-dev-dzd6gt19.js → managed-policy-chss3y4s.js} +8 -8
- package/dist/chunks/{models-dev-f73rjn58.js → managed-policy-ckf8nxjz.js} +4 -4
- package/dist/chunks/{models-dev-k9qdemdz.js → managed-policy-ckgc4dc5.js} +17 -17
- package/dist/chunks/{models-dev-pd7n37kn.js → managed-policy-csdd969s.js} +33 -33
- package/dist/chunks/{models-dev-3zqzd8hk.js → managed-policy-ct2a7kbt.js} +45 -45
- package/dist/chunks/{models-dev-6xkzja4k.js → managed-policy-d3y08a9a.js} +6 -6
- package/dist/chunks/{models-dev-6g7n6n48.js → managed-policy-d6bttsxy.js} +5 -5
- package/dist/chunks/{models-dev-44b5mvgm.js → managed-policy-d6qjz85w.js} +15 -15
- package/dist/chunks/{models-dev-8r052h48.js → managed-policy-d8ck81wr.js} +8 -8
- package/dist/chunks/{models-dev-pfsrde56.js → managed-policy-d8kjn5t6.js} +3 -3
- package/dist/chunks/{models-dev-wkcrcmm0.js → managed-policy-d8mxbdrt.js} +19 -19
- package/dist/chunks/{models-dev-dpepwdxp.js → managed-policy-d9gc1nmt.js} +35 -35
- package/dist/chunks/{models-dev-c9m7c5t2.js → managed-policy-db0nhp4v.js} +15 -15
- package/dist/chunks/{models-dev-065f5jqd.js → managed-policy-dbc1qc54.js} +18 -18
- package/dist/chunks/{models-dev-rt73gy88.js → managed-policy-df8jaf6d.js} +4 -4
- package/dist/chunks/{models-dev-0hkfhkek.js → managed-policy-dm99yka6.js} +38 -37
- package/dist/chunks/{models-dev-wt5nmafz.js → managed-policy-dnge0aqq.js} +35 -35
- package/dist/chunks/{models-dev-6q44kjsg.js → managed-policy-dnt2jfde.js} +10 -10
- package/dist/chunks/{models-dev-y71avatq.js → managed-policy-dpkg50ah.js} +4 -4
- package/dist/chunks/{models-dev-nzcmq5s7.js → managed-policy-dq17f564.js} +15 -15
- package/dist/chunks/{models-dev-57b9ws8p.js → managed-policy-drwq78ky.js} +5 -5
- package/dist/chunks/{models-dev-qvh9eqkc.js → managed-policy-dryhn22b.js} +22 -22
- package/dist/chunks/{models-dev-wp6ep95q.js → managed-policy-dw835dm2.js} +42 -42
- package/dist/chunks/{models-dev-02pnmv3p.js → managed-policy-dzh8x6fa.js} +13 -13
- package/dist/chunks/{models-dev-z7hhbxsd.js → managed-policy-e2p1qpzc.js} +36 -36
- package/dist/chunks/{models-dev-9841pv10.js → managed-policy-e315ch6h.js} +15 -15
- package/dist/chunks/{models-dev-ydx2zdq6.js → managed-policy-e4vaeb0t.js} +29 -29
- package/dist/chunks/{models-dev-ktw141zw.js → managed-policy-e8vwfchq.js} +6 -6
- package/dist/chunks/{models-dev-ef5x83kb.js → managed-policy-ef5x83kb.js} +1 -1
- package/dist/chunks/{models-dev-rtwceye3.js → managed-policy-enpcsfks.js} +32 -32
- package/dist/chunks/{models-dev-r5x6zcsm.js → managed-policy-eq1pz5kg.js} +3 -3
- package/dist/chunks/{models-dev-5bsdf67q.js → managed-policy-eq6gwms1.js} +23 -23
- package/dist/chunks/{models-dev-9gea571p.js → managed-policy-eqkxs06z.js} +6 -6
- package/dist/chunks/{models-dev-etq0c3wd.js → managed-policy-etq0c3wd.js} +1 -1
- package/dist/chunks/managed-policy-ewksh3kr.js +26 -0
- package/dist/chunks/{models-dev-zfa7ynd8.js → managed-policy-exstxen9.js} +14 -14
- package/dist/chunks/{models-dev-30846h32.js → managed-policy-fqtvmpfq.js} +8 -8
- package/dist/chunks/{models-dev-9nccr2nz.js → managed-policy-fw3mavjd.js} +24 -24
- package/dist/chunks/{models-dev-gaky33x9.js → managed-policy-fzrjnfb3.js} +5 -5
- package/dist/chunks/{models-dev-pa8pe2x7.js → managed-policy-g0445xdp.js} +8 -8
- package/dist/chunks/{models-dev-nm4299rz.js → managed-policy-g17w5wg1.js} +6 -6
- package/dist/chunks/{models-dev-scwth786.js → managed-policy-g4my6z3y.js} +17 -17
- package/dist/chunks/{models-dev-xh27xnk0.js → managed-policy-g8ytx0e6.js} +11 -11
- package/dist/chunks/{models-dev-gd4qta3r.js → managed-policy-gd4qta3r.js} +1 -1
- package/dist/chunks/{models-dev-00z7knq4.js → managed-policy-gear7qnb.js} +48 -48
- package/dist/chunks/{models-dev-x661k3y3.js → managed-policy-gqtdsdt7.js} +4 -4
- package/dist/chunks/{models-dev-zsr4wwhv.js → managed-policy-gw7cjrad.js} +4 -4
- package/dist/chunks/{models-dev-at1jtn93.js → managed-policy-gws45dxs.js} +12 -12
- package/dist/chunks/{models-dev-cdxjqe9v.js → managed-policy-h07qkwg0.js} +8 -8
- package/dist/chunks/{models-dev-h2b79v29.js → managed-policy-h2b79v29.js} +2 -2
- package/dist/chunks/{models-dev-5c4z4tyd.js → managed-policy-h4v137tq.js} +50 -50
- package/dist/chunks/{models-dev-h6vf3j39.js → managed-policy-h6vf3j39.js} +1 -1
- package/dist/chunks/{models-dev-p3bfjnb3.js → managed-policy-hmgnztse.js} +18 -18
- package/dist/chunks/{models-dev-1ffrhb6a.js → managed-policy-hspec0h6.js} +23 -23
- package/dist/chunks/{models-dev-70z09tsz.js → managed-policy-j1rkkxtq.js} +4 -4
- package/dist/chunks/{models-dev-j56e64zr.js → managed-policy-j56e64zr.js} +1 -1
- package/dist/chunks/{models-dev-wj76ss2k.js → managed-policy-j5rxtxht.js} +4 -4
- package/dist/chunks/{models-dev-e1b8dpn9.js → managed-policy-j74g7mqr.js} +6 -6
- package/dist/chunks/{models-dev-xsqksm9t.js → managed-policy-j7v3c1ew.js} +11 -11
- package/dist/chunks/{models-dev-enm6tv2q.js → managed-policy-jmhp3g8p.js} +20 -20
- package/dist/chunks/{models-dev-b76kedzd.js → managed-policy-jqjzdtvy.js} +11 -11
- package/dist/chunks/{models-dev-h08prmky.js → managed-policy-jr3bj4y0.js} +17 -17
- package/dist/chunks/{models-dev-414z3zsn.js → managed-policy-jw2zym28.js} +11 -11
- package/dist/chunks/{models-dev-y5p3mzqv.js → managed-policy-k08ezkqp.js} +11 -11
- package/dist/chunks/{models-dev-04sffrgv.js → managed-policy-k0w7mqt4.js} +15 -15
- package/dist/chunks/{models-dev-66376qmm.js → managed-policy-k15k6vrr.js} +85 -85
- package/dist/chunks/{models-dev-5xmyk187.js → managed-policy-k34ckbn9.js} +3 -3
- package/dist/chunks/{models-dev-j69age7f.js → managed-policy-k7y67xhs.js} +10 -10
- package/dist/chunks/{models-dev-s6yyz18a.js → managed-policy-k8k12ca3.js} +10 -10
- package/dist/chunks/{models-dev-67bex8mg.js → managed-policy-kc20gndt.js} +16 -16
- package/dist/chunks/{models-dev-a527gmk9.js → managed-policy-kf13yp2f.js} +7 -7
- package/dist/chunks/{models-dev-xdtzmxbg.js → managed-policy-kmgavk04.js} +4 -3
- package/dist/chunks/{models-dev-4d76t1fx.js → managed-policy-kqjv8prj.js} +23 -23
- package/dist/chunks/{models-dev-m3fdjcah.js → managed-policy-m3fdjcah.js} +1 -1
- package/dist/chunks/{models-dev-fepbnb8j.js → managed-policy-m64xvjj1.js} +5 -5
- package/dist/chunks/{models-dev-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{models-dev-xx8ravma.js → managed-policy-ms8a7pq0.js} +14 -14
- package/dist/chunks/{models-dev-e7710hd6.js → managed-policy-n9axn9y3.js} +8 -8
- package/dist/chunks/{models-dev-9h1qtdky.js → managed-policy-ncj4p4na.js} +47 -47
- package/dist/chunks/{models-dev-tv1qkmca.js → managed-policy-nedqmk46.js} +15 -15
- package/dist/chunks/{models-dev-vxrd0dht.js → managed-policy-nepz78e5.js} +9 -9
- package/dist/chunks/{models-dev-bw2wjxzg.js → managed-policy-nf65gqd5.js} +12 -12
- package/dist/chunks/{models-dev-75t52x5s.js → managed-policy-nhnhrcwq.js} +18 -18
- package/dist/chunks/{models-dev-16rafmdt.js → managed-policy-nkcpd5b2.js} +41 -41
- package/dist/chunks/{models-dev-4bx1eqaf.js → managed-policy-npkdjxyy.js} +25 -25
- package/dist/chunks/{models-dev-v85q2xfv.js → managed-policy-nrrmpm3c.js} +13 -13
- package/dist/chunks/{models-dev-f69hr2t8.js → managed-policy-p1yfc9a8.js} +24 -24
- package/dist/chunks/{models-dev-6b584fx1.js → managed-policy-p4qmxczc.js} +12 -12
- package/dist/chunks/{models-dev-ah58gg7p.js → managed-policy-phtj4jat.js} +5 -5
- package/dist/chunks/{models-dev-pjvnvgmy.js → managed-policy-pjvnvgmy.js} +1 -1
- package/dist/chunks/{models-dev-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{models-dev-as7cf5zz.js → managed-policy-pkqb68ka.js} +4 -4
- package/dist/chunks/{models-dev-g9r9zbx9.js → managed-policy-psy48106.js} +4 -4
- package/dist/chunks/{models-dev-kz287eh6.js → managed-policy-pt0zkbkz.js} +4 -4
- package/dist/chunks/{models-dev-kjm0dggs.js → managed-policy-py9kw9tn.js} +23 -23
- package/dist/chunks/{models-dev-zff80ehc.js → managed-policy-pyfrz2yp.js} +16 -16
- package/dist/chunks/{models-dev-q0xm7vwc.js → managed-policy-q0xm7vwc.js} +2 -2
- package/dist/chunks/{models-dev-89v4egbf.js → managed-policy-q335xte2.js} +24 -24
- package/dist/chunks/{models-dev-5g2350sa.js → managed-policy-q6w467xr.js} +16 -16
- package/dist/chunks/{models-dev-2k8khapm.js → managed-policy-qgn6gcr1.js} +5 -5
- package/dist/chunks/{models-dev-cwa6csj7.js → managed-policy-qmqgtz8f.js} +9 -9
- package/dist/chunks/{models-dev-qnc92qwc.js → managed-policy-qnc92qwc.js} +1 -1
- package/dist/chunks/{models-dev-p4ebz0q2.js → managed-policy-qqcbs79k.js} +3 -3
- package/dist/chunks/{models-dev-c26tg910.js → managed-policy-qqrjxc2w.js} +12 -12
- package/dist/chunks/{models-dev-qsdy395h.js → managed-policy-qsdy395h.js} +1 -1
- package/dist/chunks/{models-dev-h4z1mxff.js → managed-policy-qvreyy9g.js} +5 -5
- package/dist/chunks/{models-dev-vzstn3vw.js → managed-policy-qwz8cpda.js} +28 -28
- package/dist/chunks/{models-dev-mha52fg8.js → managed-policy-qygbw77c.js} +5 -5
- package/dist/chunks/{models-dev-tx4w3zvw.js → managed-policy-r3d0j56v.js} +30 -30
- package/dist/chunks/{models-dev-54ma36ye.js → managed-policy-r94pvvab.js} +4 -4
- package/dist/chunks/{models-dev-hcstjrnh.js → managed-policy-r9d9xsbb.js} +24 -24
- package/dist/chunks/{models-dev-82rhge12.js → managed-policy-r9w3djhf.js} +9 -9
- package/dist/chunks/{models-dev-rdw6cm16.js → managed-policy-rdw6cm16.js} +1 -1
- package/dist/chunks/{models-dev-r8xr0va3.js → managed-policy-rhraev7y.js} +4 -4
- package/dist/chunks/{models-dev-w92k2e0p.js → managed-policy-rkprpv83.js} +8 -8
- package/dist/chunks/managed-policy-shrpyp41.js +253 -0
- package/dist/chunks/{models-dev-143qq2q9.js → managed-policy-ss358qx3.js} +3 -3
- package/dist/chunks/{models-dev-kyr28d2w.js → managed-policy-sxjxh3g8.js} +11 -11
- package/dist/chunks/{models-dev-p5c89f54.js → managed-policy-sz0fczdy.js} +6 -6
- package/dist/chunks/{models-dev-w222d1b2.js → managed-policy-t1ettrb7.js} +17 -17
- package/dist/chunks/{models-dev-q93trqjw.js → managed-policy-t1xnf4e5.js} +5 -5
- package/dist/chunks/{models-dev-fqb2p7cx.js → managed-policy-t2fc4mz5.js} +4 -4
- package/dist/chunks/{models-dev-tvdvkfya.js → managed-policy-t6ck8tem.js} +45 -40
- package/dist/chunks/{models-dev-9ecvsxx5.js → managed-policy-t9zqd86n.js} +29 -29
- package/dist/chunks/{models-dev-tazgh4e4.js → managed-policy-tazgh4e4.js} +1 -1
- package/dist/chunks/{models-dev-tcezcvh9.js → managed-policy-tcezcvh9.js} +1 -1
- package/dist/chunks/{models-dev-tdstcens.js → managed-policy-tdstcens.js} +1 -1
- package/dist/chunks/{models-dev-x2qjtq82.js → managed-policy-tekbgh3x.js} +10 -10
- package/dist/chunks/{models-dev-707t01nb.js → managed-policy-thxbv41p.js} +19 -19
- package/dist/chunks/{models-dev-5dsr6e61.js → managed-policy-txzjavxp.js} +6 -6
- package/dist/chunks/{models-dev-jagm7tt7.js → managed-policy-ty7z4jb0.js} +46 -46
- package/dist/chunks/{models-dev-hg3614cy.js → managed-policy-v0es1rhs.js} +9 -9
- package/dist/chunks/{models-dev-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{models-dev-yf0pn2h0.js → managed-policy-vsbamy9h.js} +21 -21
- package/dist/chunks/{models-dev-sxmaz3jq.js → managed-policy-vsywyjzm.js} +24 -24
- package/dist/chunks/{models-dev-z2e87qev.js → managed-policy-vvmfhg21.js} +25 -25
- package/dist/chunks/{models-dev-vzcthcp8.js → managed-policy-vzcthcp8.js} +1 -1
- package/dist/chunks/{models-dev-hzbfr2zb.js → managed-policy-vzfpntg8.js} +23 -23
- package/dist/chunks/{models-dev-vzs5sf6e.js → managed-policy-vzs5sf6e.js} +1 -1
- package/dist/chunks/{models-dev-84txncab.js → managed-policy-w1eejvng.js} +5 -5
- package/dist/chunks/{models-dev-g6yfr6ja.js → managed-policy-w39jehkq.js} +5 -5
- package/dist/chunks/{models-dev-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{models-dev-h6pyrv6e.js → managed-policy-w677k9fj.js} +19 -19
- package/dist/chunks/{models-dev-cerphmjy.js → managed-policy-w7066q4p.js} +5 -5
- package/dist/chunks/{models-dev-q18332b7.js → managed-policy-w973dr2w.js} +13 -13
- package/dist/chunks/{models-dev-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{models-dev-9qx683h5.js → managed-policy-weagkh0e.js} +9 -9
- package/dist/chunks/{models-dev-etz1tp3f.js → managed-policy-wq3m38jw.js} +22 -22
- package/dist/chunks/{models-dev-rhjbct0v.js → managed-policy-wv396vej.js} +8 -8
- package/dist/chunks/{models-dev-g1r3wepg.js → managed-policy-wxj2pshp.js} +73 -73
- package/dist/chunks/{models-dev-ncnm8wen.js → managed-policy-wxyynt4w.js} +1 -1
- package/dist/chunks/{models-dev-3pt1f740.js → managed-policy-wy8gm8jj.js} +36 -36
- package/dist/chunks/{models-dev-47zss2vy.js → managed-policy-x2ntk5yv.js} +20 -20
- package/dist/chunks/{models-dev-ct9q0q83.js → managed-policy-x49sb692.js} +8 -8
- package/dist/chunks/{models-dev-b832nfdp.js → managed-policy-x8v70qwz.js} +22 -22
- package/dist/chunks/{models-dev-kg03ydgp.js → managed-policy-x9xhcyxb.js} +9 -9
- package/dist/chunks/{models-dev-77pm2nty.js → managed-policy-xe69web5.js} +37 -37
- package/dist/chunks/{models-dev-n8h5s4z5.js → managed-policy-xkhn0stb.js} +5 -5
- package/dist/chunks/{models-dev-xkntkrq7.js → managed-policy-xkntkrq7.js} +2 -2
- package/dist/chunks/{models-dev-69ae2gc0.js → managed-policy-xmvy0rzp.js} +35 -35
- package/dist/chunks/{models-dev-3r0f49pj.js → managed-policy-xs81jx4r.js} +10 -10
- package/dist/chunks/{models-dev-0fh6f5vp.js → managed-policy-xsjbfs7s.js} +12 -12
- package/dist/chunks/{models-dev-ve78naxq.js → managed-policy-xvdg8f15.js} +8 -8
- package/dist/chunks/{models-dev-xyafkbt0.js → managed-policy-xyafkbt0.js} +3 -3
- package/dist/chunks/{models-dev-y16p1w2y.js → managed-policy-y0mc46pw.js} +9 -9
- package/dist/chunks/{models-dev-y1fvbwt7.js → managed-policy-y1fvbwt7.js} +1 -1
- package/dist/chunks/{models-dev-qdtb2r9y.js → managed-policy-y2x5y4w5.js} +88 -88
- package/dist/chunks/{models-dev-pkx2dq04.js → managed-policy-y5760nfk.js} +328 -328
- package/dist/chunks/{models-dev-amsd198e.js → managed-policy-yj382vm2.js} +22 -22
- package/dist/chunks/{models-dev-cyef1244.js → managed-policy-ykty1417.js} +11 -11
- package/dist/chunks/{models-dev-veajjj4z.js → managed-policy-yp4vs6at.js} +8 -8
- package/dist/chunks/{models-dev-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{models-dev-qesb4fb2.js → managed-policy-zam9eh49.js} +10 -10
- package/dist/chunks/{models-dev-e7ydkzjj.js → managed-policy-zggnq27k.js} +7 -7
- package/dist/chunks/{models-dev-fszy1g6v.js → managed-policy-zgww0ypy.js} +11 -11
- package/dist/chunks/{models-dev-cgz3dhkc.js → managed-policy-zjb991y7.js} +10 -10
- package/dist/chunks/{models-dev-hmgc5cz7.js → managed-policy-zjxbxdfv.js} +12 -12
- package/dist/chunks/{models-dev-zr2ceqn5.js → managed-policy-zr2ceqn5.js} +1 -1
- package/dist/chunks/{models-dev-nvxt8qcf.js → managed-policy-zs5zztja.js} +9 -9
- package/dist/chunks/{models-dev-6fgkgcg0.js → managed-policy-zt43srwq.js} +11 -11
- package/dist/chunks/{models-dev-zxq2ej10.js → managed-policy-zxq2ej10.js} +1 -1
- package/dist/chunks/{models-dev-b0w1x349.js → managed-policy-zxyy8bfe.js} +58 -58
- package/dist/chunks/{models-dev-bp8fbaqn.js → managed-policy-zy43x3f1.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- 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 +91 -91
- 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 +354 -354
- package/dist/instruction-discovery.js +79 -79
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +94 -94
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +214 -214
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- 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 +216 -216
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +9 -9
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +93 -93
- 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 +124 -124
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/aisdk-native.d.ts +1 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- 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 +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/models-dev-by5v678g.js +0 -18
- package/dist/chunks/models-dev-k0b2y79r.js +0 -253
- package/dist/chunks/models-dev-x7z75zrq.js +0 -26
- /package/dist/chunks/{models-dev-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{models-dev-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{models-dev-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{models-dev-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{models-dev-1kg9ymc8.js → managed-policy-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{models-dev-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{models-dev-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{models-dev-2axfhc9x.js → managed-policy-2axfhc9x.js} +0 -0
- /package/dist/chunks/{models-dev-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{models-dev-34c7v6d4.js → managed-policy-34c7v6d4.js} +0 -0
- /package/dist/chunks/{models-dev-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{models-dev-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{models-dev-3t0ybcrp.js → managed-policy-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{models-dev-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{models-dev-3w5fmr99.js → managed-policy-3w5fmr99.js} +0 -0
- /package/dist/chunks/{models-dev-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{models-dev-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{models-dev-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{models-dev-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{models-dev-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{models-dev-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{models-dev-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{models-dev-5qd3pb7m.js → managed-policy-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{models-dev-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{models-dev-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{models-dev-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{models-dev-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{models-dev-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{models-dev-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{models-dev-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{models-dev-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{models-dev-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{models-dev-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{models-dev-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{models-dev-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{models-dev-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{models-dev-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{models-dev-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{models-dev-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{models-dev-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{models-dev-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{models-dev-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{models-dev-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{models-dev-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{models-dev-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{models-dev-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{models-dev-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{models-dev-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{models-dev-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{models-dev-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{models-dev-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{models-dev-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{models-dev-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{models-dev-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{models-dev-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{models-dev-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{models-dev-fxgpk5d8.js → managed-policy-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{models-dev-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{models-dev-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{models-dev-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{models-dev-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{models-dev-hjbc5kem.js → managed-policy-hjbc5kem.js} +0 -0
- /package/dist/chunks/{models-dev-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{models-dev-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{models-dev-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{models-dev-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{models-dev-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{models-dev-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{models-dev-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{models-dev-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{models-dev-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{models-dev-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{models-dev-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{models-dev-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{models-dev-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{models-dev-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{models-dev-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{models-dev-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{models-dev-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{models-dev-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{models-dev-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{models-dev-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{models-dev-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{models-dev-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{models-dev-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{models-dev-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{models-dev-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{models-dev-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{models-dev-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{models-dev-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{models-dev-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{models-dev-y8cydn3q.js → managed-policy-y8cydn3q.js} +0 -0
- /package/dist/chunks/{models-dev-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{models-dev-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{models-dev-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{models-dev-z5v4ffb3.js → managed-policy-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{models-dev-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-975ebawg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event17,
|
|
24
|
+
ID: () => ID11,
|
|
25
|
+
Info: () => Info21,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service69,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node72
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID11 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event17 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info21 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID11,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service69 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service84).db;
|
|
55
|
-
const bus = yield*
|
|
55
|
+
const bus = yield* Service82;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info21({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service69.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id: input.id ??
|
|
79
|
+
const credential = new Info21({
|
|
80
|
+
id: input.id ?? ID11.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -108,9 +108,9 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
108
108
|
type: credential.value.type,
|
|
109
109
|
active: activated
|
|
110
110
|
});
|
|
111
|
-
yield* bus.publish(
|
|
111
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
112
112
|
if (activated)
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event17.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
114
114
|
return credential;
|
|
115
115
|
}),
|
|
116
116
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
130
130
|
})), Effect.orDie);
|
|
131
131
|
if (integrationID) {
|
|
132
132
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
133
|
-
yield* bus.publish(
|
|
133
|
+
yield* bus.publish(Event17.Switched, { integrationID, credentialID: id }, { global: true });
|
|
134
134
|
}
|
|
135
135
|
}),
|
|
136
136
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -162,7 +162,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
162
162
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
163
163
|
});
|
|
164
164
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
165
|
-
yield* bus.publish(
|
|
165
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
166
166
|
}),
|
|
167
167
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
168
168
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -195,12 +195,12 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
195
195
|
active: removed.switched,
|
|
196
196
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
197
197
|
});
|
|
198
|
-
yield* bus.publish(
|
|
198
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
199
199
|
if (removed.switched)
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event17.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
203
|
}));
|
|
204
|
-
var
|
|
204
|
+
var node72 = makeGlobalNode({ service: Service69, layer, deps: [node88, node86] });
|
|
205
205
|
|
|
206
|
-
export {
|
|
206
|
+
export { ID11, OAuth3, Key3, Value2, Event17, Info21, Service69, node72, exports_credential };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service51,
|
|
8
|
+
node54
|
|
9
|
+
} from "./managed-policy-fw3mavjd.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-8d7r5vzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service17,
|
|
24
|
+
node: () => node19
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service17 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service51;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service17.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node19 = makeLocationNode({ service: Service17, layer, deps: [node54, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error2, InvalidPatternError2,
|
|
180
|
+
export { Error2, InvalidPatternError2, Service17, node19, exports_ripgrep };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/managed-policy.ts
|
|
6
6
|
var exports_managed_policy = {};
|
|
7
7
|
__export(exports_managed_policy, {
|
|
8
8
|
ManagedPolicy: () => exports_managed_policy,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service22,
|
|
10
|
+
node: () => node24
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service22 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service22, () => {
|
|
18
18
|
const state = { current: { statements: [] } };
|
|
19
|
-
return
|
|
19
|
+
return Service22.of({
|
|
20
20
|
current: () => state.current,
|
|
21
21
|
set: (next) => Effect.sync(() => {
|
|
22
22
|
state.current = next;
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
-
var
|
|
26
|
+
var node24 = makeGlobalNode({ service: Service22, layer, deps: [] });
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { Service22, node24, exports_managed_policy };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_opencode, {
|
|
|
8
8
|
ModelsInput: () => ModelsInput2,
|
|
9
9
|
MoveInput: () => MoveInput2,
|
|
10
10
|
OpenCodeTools: () => exports_opencode,
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin5,
|
|
12
12
|
RenameInput: () => RenameInput2
|
|
13
13
|
});
|
|
14
14
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -64,7 +64,7 @@ var ModelsOutput = Schema.Struct({
|
|
|
64
64
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
65
65
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
66
66
|
});
|
|
67
|
-
var
|
|
67
|
+
var Plugin5 = {
|
|
68
68
|
id: "opencode.tools",
|
|
69
69
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
70
70
|
const hook = (event) => Effect.sync(() => {
|
|
@@ -161,4 +161,4 @@ var Plugin10 = {
|
|
|
161
161
|
})
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export { RenameInput2, MoveInput2, ModelsInput2,
|
|
164
|
+
export { RenameInput2, MoveInput2, ModelsInput2, Plugin5, exports_opencode };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service81,
|
|
7
|
-
node85
|
|
8
|
-
} from "./models-dev-kb426ejq.js";
|
|
4
|
+
} from "./managed-policy-975ebawg.js";
|
|
9
5
|
import {
|
|
10
6
|
Service82,
|
|
11
7
|
node86
|
|
12
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
9
|
+
import {
|
|
10
|
+
Service70,
|
|
11
|
+
node74
|
|
12
|
+
} from "./managed-policy-kc20gndt.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service57,
|
|
15
|
+
node60
|
|
16
|
+
} from "./managed-policy-eqkxs06z.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make19
|
|
22
|
+
} from "./managed-policy-rhraev7y.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service55
|
|
26
|
+
} from "./managed-policy-ckf8nxjz.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service74,
|
|
29
|
+
node78
|
|
30
|
+
} from "./managed-policy-p4qmxczc.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./managed-policy-fzrjnfb3.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./managed-policy-bqb67z36.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service54,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer19,
|
|
47
|
+
node: () => node58,
|
|
48
|
+
noopLayer: () => noopLayer3,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service54 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
65
|
-
const bus = yield*
|
|
66
|
-
const jobs = yield*
|
|
62
|
+
var layer19 = Layer.effect(Service54, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service74;
|
|
64
|
+
const instances = yield* Service57;
|
|
65
|
+
const bus = yield* Service82;
|
|
66
|
+
const jobs = yield* Service70;
|
|
67
67
|
const db = (yield* Service84).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,14 +76,14 @@ var layer21 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service55.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
83
83
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable)
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
const coordinator = yield*
|
|
86
|
+
const coordinator = yield* make19({
|
|
87
87
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
88
88
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
89
89
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -104,7 +104,7 @@ var layer21 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service54.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer21 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node58 = makeGlobalNode({
|
|
127
|
+
service: Service54,
|
|
128
|
+
layer: layer19,
|
|
129
|
+
deps: [node78, node60, node86, node88, node74]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer3 = Layer.succeed(Service54, Service54.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer2 = Layer.succeed(Service56, Service56.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service54, terminal2, layer19, node58, noopLayer3, exports_execution };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-y8cydn3q.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service7,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service7 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service7.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node8 = makeGlobalNode({ service: Service7, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service7, node8, exports_discovery };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service35,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service35 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service35.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service35, awaitActivation2, exports_service };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-ss358qx3.js";
|
|
8
8
|
|
|
9
9
|
// src/session/info.ts
|
|
10
10
|
import { DateTime, Schema } from "effect";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-dw835dm2.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./managed-policy-cc75tkym.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./managed-policy-rdw6cm16.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info4,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service23,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node26
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info4, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service23 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const bus = yield*
|
|
61
|
+
const location = yield* Service80;
|
|
62
|
+
const bus = yield* Service82;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info4));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service23.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node26 = makeLocationNode({
|
|
191
|
+
service: Service23,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node84, node86]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info4, Mode2, DiffError2, InitializeError2, Service23, node26, exports_vcs };
|