@opencode/core 0.0.0-dev-20578 → 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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{plugin-84fx5zbw.js → managed-policy-02wmet1s.js} +23 -23
- package/dist/chunks/{plugin-j730n9rv.js → managed-policy-03qxw8pz.js} +17 -17
- package/dist/chunks/{plugin-0a04tq27.js → managed-policy-06yeazan.js} +1 -1
- package/dist/chunks/{plugin-w808e159.js → managed-policy-0eb613mk.js} +20 -20
- package/dist/chunks/{plugin-8dsxej7q.js → managed-policy-0ge1h6kx.js} +5 -5
- package/dist/chunks/{plugin-0paq2nw3.js → managed-policy-0paq2nw3.js} +1 -1
- package/dist/chunks/{plugin-0vbcp93d.js → managed-policy-0vbcp93d.js} +2 -2
- package/dist/chunks/{plugin-2m5wdzz9.js → managed-policy-119h30qy.js} +4 -4
- package/dist/chunks/{plugin-q5fbr5p5.js → managed-policy-145xw1zc.js} +5 -5
- package/dist/chunks/{plugin-sqhwqkv8.js → managed-policy-18ztmhep.js} +18 -18
- package/dist/chunks/{plugin-1dazxqgg.js → managed-policy-1dazxqgg.js} +2 -2
- package/dist/chunks/{plugin-1dvck2a7.js → managed-policy-1dvck2a7.js} +2 -2
- package/dist/chunks/{plugin-t01ewf6t.js → managed-policy-1epzdntc.js} +11 -11
- package/dist/chunks/{plugin-09djgkn9.js → managed-policy-1rjc8rx3.js} +23 -23
- package/dist/chunks/{plugin-vx4r8km3.js → managed-policy-1rw4rg9z.js} +43 -43
- package/dist/chunks/{plugin-8etvpd78.js → managed-policy-29garr4v.js} +1 -1
- package/dist/chunks/{plugin-2a5m3afh.js → managed-policy-2a5m3afh.js} +1 -1
- package/dist/chunks/{plugin-fwdyap71.js → managed-policy-2b2w1tdt.js} +8 -8
- package/dist/chunks/{plugin-7raxn3d9.js → managed-policy-2kea3y2w.js} +13 -13
- package/dist/chunks/{plugin-k618byr3.js → managed-policy-2qqgyr6a.js} +24 -24
- package/dist/chunks/{plugin-7qgmcsxr.js → managed-policy-2qx31yc6.js} +23 -23
- package/dist/chunks/{plugin-ydrgdh5s.js → managed-policy-2ysad2y1.js} +33 -33
- package/dist/chunks/{plugin-1ygqh575.js → managed-policy-33w4ejhs.js} +6 -6
- package/dist/chunks/{plugin-3fc6dm20.js → managed-policy-3fc6dm20.js} +1 -1
- package/dist/chunks/{plugin-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{plugin-acqz3eas.js → managed-policy-3mentpw2.js} +11 -11
- package/dist/chunks/{plugin-3smtnn6g.js → managed-policy-3smtnn6g.js} +1 -1
- package/dist/chunks/{plugin-3tvqynh2.js → managed-policy-3tvqynh2.js} +1 -1
- package/dist/chunks/{plugin-7y3n75t2.js → managed-policy-3zbwexce.js} +11 -11
- package/dist/chunks/{plugin-3zsf4n22.js → managed-policy-3zsf4n22.js} +1 -1
- package/dist/chunks/{plugin-s607qcgc.js → managed-policy-459mc33k.js} +22 -22
- package/dist/chunks/{plugin-5anybvrp.js → managed-policy-46v0s1hp.js} +15 -15
- package/dist/chunks/{plugin-xw9z83sh.js → managed-policy-4awagc8g.js} +54 -54
- package/dist/chunks/{plugin-aryyw1nk.js → managed-policy-4c2df9zx.js} +8 -8
- package/dist/chunks/{plugin-62kmmg0k.js → managed-policy-4hh2xy14.js} +3 -3
- package/dist/chunks/{plugin-8c8v92hd.js → managed-policy-4j20dbk1.js} +17 -17
- package/dist/chunks/{plugin-tefzd8kx.js → managed-policy-4q8xb7vk.js} +26 -26
- package/dist/chunks/{plugin-0grfgy22.js → managed-policy-4qqmwkqx.js} +23 -23
- package/dist/chunks/{plugin-2ccvkpx1.js → managed-policy-4ts7tf6z.js} +2 -2
- package/dist/chunks/{plugin-ext61gvm.js → managed-policy-57kx76x8.js} +18 -18
- package/dist/chunks/{plugin-5daktx2q.js → managed-policy-5daktx2q.js} +1 -1
- package/dist/chunks/{plugin-39sy8z68.js → managed-policy-5dpktnqk.js} +9 -9
- package/dist/chunks/{plugin-3r80836k.js → managed-policy-5j1v3jqf.js} +31 -31
- package/dist/chunks/{plugin-06fncbhs.js → managed-policy-5md23d48.js} +8 -8
- package/dist/chunks/{plugin-nj1j17x6.js → managed-policy-5q13c62c.js} +8 -8
- package/dist/chunks/{plugin-e3qxr5gk.js → managed-policy-5qd3pb7m.js} +2 -2
- package/dist/chunks/{plugin-kb6vbnxp.js → managed-policy-5qwkxp89.js} +4 -4
- package/dist/chunks/{plugin-c1vsqjm1.js → managed-policy-5snyeemy.js} +37 -37
- package/dist/chunks/{plugin-5t3nmthw.js → managed-policy-5t3nmthw.js} +2 -2
- package/dist/chunks/{plugin-k70p9jzb.js → managed-policy-5tcm9639.js} +9 -9
- package/dist/chunks/managed-policy-619r8v3y.js +18 -0
- package/dist/chunks/{plugin-drnf6xwf.js → managed-policy-63db42yp.js} +2 -2
- package/dist/chunks/{plugin-fq3v9e4w.js → managed-policy-65jde4my.js} +22 -22
- package/dist/chunks/{plugin-669tq793.js → managed-policy-669tq793.js} +1 -1
- package/dist/chunks/{plugin-kem2dng2.js → managed-policy-6ba3xpax.js} +36 -36
- package/dist/chunks/{plugin-zdpsxmh8.js → managed-policy-6gvgb8cz.js} +44 -44
- package/dist/chunks/{plugin-3n0emgyf.js → managed-policy-6m3tp8mj.js} +26 -26
- package/dist/chunks/{plugin-6xb47vfp.js → managed-policy-6xb47vfp.js} +1 -1
- package/dist/chunks/{plugin-aphb00ew.js → managed-policy-6xn9vhwr.js} +2 -2
- package/dist/chunks/{plugin-71az546q.js → managed-policy-71az546q.js} +2 -2
- package/dist/chunks/{plugin-8q4vwcbd.js → managed-policy-721zw7bm.js} +34 -34
- package/dist/chunks/{plugin-30hx8gy4.js → managed-policy-78ymhwc6.js} +11 -11
- package/dist/chunks/{plugin-51nd9ekg.js → managed-policy-7a12vqq0.js} +16 -16
- package/dist/chunks/{plugin-mccvx0ph.js → managed-policy-7avdme9t.js} +10 -10
- package/dist/chunks/{plugin-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{plugin-q9nhy42k.js → managed-policy-89c57hn9.js} +26 -26
- package/dist/chunks/{plugin-ydkmjtsm.js → managed-policy-89nr6wfj.js} +11 -11
- package/dist/chunks/{plugin-8d7r5vzw.js → managed-policy-8d7r5vzw.js} +1 -1
- package/dist/chunks/{plugin-947pvy6h.js → managed-policy-8s59b704.js} +3 -3
- package/dist/chunks/{plugin-9s85hpde.js → managed-policy-8xkqg01v.js} +3 -3
- package/dist/chunks/{plugin-qj2xshqj.js → managed-policy-91wpvk88.js} +16 -16
- package/dist/chunks/{plugin-zz5k72w4.js → managed-policy-93hnm8e8.js} +31 -31
- package/dist/chunks/{plugin-nqa2gsff.js → managed-policy-955wy3qr.js} +9 -9
- package/dist/chunks/{plugin-kk5na4ms.js → managed-policy-975ebawg.js} +3 -3
- package/dist/chunks/{plugin-43r5tmwz.js → managed-policy-9dgpp9cn.js} +185 -185
- package/dist/chunks/{plugin-9e5bzkjp.js → managed-policy-9e5bzkjp.js} +3 -3
- package/dist/chunks/{plugin-qne3fa44.js → managed-policy-9hwaqfsw.js} +5 -5
- package/dist/chunks/{plugin-fz79dkc7.js → managed-policy-9jrdkbpa.js} +8 -8
- package/dist/chunks/{plugin-kqzb879x.js → managed-policy-9qhqs605.js} +25 -25
- package/dist/chunks/{plugin-6zy4stt8.js → managed-policy-9web0d32.js} +9 -9
- package/dist/chunks/{plugin-sr4k8heh.js → managed-policy-9x8tc8sp.js} +11 -11
- package/dist/chunks/{plugin-3rt7qeq2.js → managed-policy-a2zd3k2n.js} +46 -46
- package/dist/chunks/{plugin-yt1qgzdm.js → managed-policy-a3fmd72w.js} +10 -10
- package/dist/chunks/{plugin-aaet6srn.js → managed-policy-aaet6srn.js} +2 -2
- package/dist/chunks/{plugin-4r3ynae4.js → managed-policy-abx012e0.js} +49 -49
- package/dist/chunks/{plugin-qj750ez4.js → managed-policy-acnatzrp.js} +4 -4
- package/dist/chunks/{plugin-svf1j9mj.js → managed-policy-azks30c4.js} +25 -25
- package/dist/chunks/{plugin-hahjxtze.js → managed-policy-b15vkqsx.js} +7 -7
- package/dist/chunks/{plugin-b6gygkdw.js → managed-policy-b6gygkdw.js} +2 -2
- package/dist/chunks/{plugin-sw2ky0ak.js → managed-policy-bkwdfw9d.js} +26 -26
- package/dist/chunks/{plugin-5egfvsg2.js → managed-policy-bqb67z36.js} +21 -21
- package/dist/chunks/{plugin-aqs4ydsz.js → managed-policy-c10q7bwq.js} +26 -26
- package/dist/chunks/{plugin-f8147smy.js → managed-policy-c9863qqk.js} +5 -5
- package/dist/chunks/{plugin-2pnhn36q.js → managed-policy-cavr175a.js} +21 -21
- package/dist/chunks/{plugin-js9gsb9m.js → managed-policy-cc75tkym.js} +16 -16
- package/dist/chunks/{plugin-wp1hpspq.js → managed-policy-chss3y4s.js} +6 -6
- package/dist/chunks/{plugin-06x8he3q.js → managed-policy-ckf8nxjz.js} +4 -4
- package/dist/chunks/{plugin-yrh23yf8.js → managed-policy-ckgc4dc5.js} +15 -15
- package/dist/chunks/{plugin-rk6z8b2s.js → managed-policy-csdd969s.js} +33 -33
- package/dist/chunks/{plugin-ak7e9zsb.js → managed-policy-ct2a7kbt.js} +45 -45
- package/dist/chunks/{plugin-j2zjmsnh.js → managed-policy-d3y08a9a.js} +6 -6
- package/dist/chunks/{plugin-pcfe7wwq.js → managed-policy-d6bttsxy.js} +5 -5
- package/dist/chunks/{plugin-2p0jthwz.js → managed-policy-d6qjz85w.js} +15 -15
- package/dist/chunks/{plugin-t03g005h.js → managed-policy-d8ck81wr.js} +11 -11
- package/dist/chunks/{plugin-jav2p7n3.js → managed-policy-d8kjn5t6.js} +3 -3
- package/dist/chunks/{plugin-pfpr1sg6.js → managed-policy-d8mxbdrt.js} +19 -19
- package/dist/chunks/{plugin-z5rqpkns.js → managed-policy-d9gc1nmt.js} +26 -26
- package/dist/chunks/{plugin-ygkw9vpb.js → managed-policy-db0nhp4v.js} +15 -15
- package/dist/chunks/{plugin-m4wv7hmr.js → managed-policy-dbc1qc54.js} +16 -16
- package/dist/chunks/{plugin-cwwytgmc.js → managed-policy-df8jaf6d.js} +4 -4
- package/dist/chunks/{plugin-xkt82cda.js → managed-policy-dm99yka6.js} +36 -35
- package/dist/chunks/{plugin-q41hpyd6.js → managed-policy-dnge0aqq.js} +33 -33
- package/dist/chunks/{plugin-afc78eap.js → managed-policy-dnt2jfde.js} +11 -11
- package/dist/chunks/{plugin-nxm207yx.js → managed-policy-dpkg50ah.js} +4 -4
- package/dist/chunks/{plugin-9tnt1thx.js → managed-policy-dq17f564.js} +15 -15
- package/dist/chunks/{plugin-xfkkasph.js → managed-policy-drwq78ky.js} +4 -4
- package/dist/chunks/{plugin-fdf2r7px.js → managed-policy-dryhn22b.js} +22 -22
- package/dist/chunks/{plugin-fnwaevmq.js → managed-policy-dw835dm2.js} +36 -36
- package/dist/chunks/{plugin-0d0dy0b8.js → managed-policy-dzh8x6fa.js} +19 -19
- package/dist/chunks/{plugin-y7nnagj6.js → managed-policy-e2p1qpzc.js} +34 -34
- package/dist/chunks/{plugin-3g98wrjp.js → managed-policy-e315ch6h.js} +17 -17
- package/dist/chunks/{plugin-jgj04qff.js → managed-policy-e4vaeb0t.js} +27 -27
- package/dist/chunks/{plugin-w05x0cfw.js → managed-policy-e8vwfchq.js} +9 -9
- package/dist/chunks/{plugin-ef5x83kb.js → managed-policy-ef5x83kb.js} +1 -1
- package/dist/chunks/{plugin-68vrpgj2.js → managed-policy-enpcsfks.js} +33 -33
- package/dist/chunks/{plugin-eq1pz5kg.js → managed-policy-eq1pz5kg.js} +1 -1
- package/dist/chunks/{plugin-xt0fd68y.js → managed-policy-eq6gwms1.js} +23 -23
- package/dist/chunks/{plugin-sxzvkvgj.js → managed-policy-eqkxs06z.js} +6 -6
- package/dist/chunks/{plugin-etq0c3wd.js → managed-policy-etq0c3wd.js} +1 -1
- package/dist/chunks/managed-policy-ewksh3kr.js +26 -0
- package/dist/chunks/{plugin-e4g6rnfs.js → managed-policy-exstxen9.js} +13 -13
- package/dist/chunks/{plugin-8s4zq5p9.js → managed-policy-fqtvmpfq.js} +8 -8
- package/dist/chunks/{plugin-4bcaa4pk.js → managed-policy-fw3mavjd.js} +24 -24
- package/dist/chunks/{plugin-5kyzh40n.js → managed-policy-fzrjnfb3.js} +5 -5
- package/dist/chunks/{plugin-5yzzbxa7.js → managed-policy-g0445xdp.js} +8 -8
- package/dist/chunks/{plugin-9szwjyee.js → managed-policy-g17w5wg1.js} +6 -6
- package/dist/chunks/{plugin-5g4drkc8.js → managed-policy-g4my6z3y.js} +17 -17
- package/dist/chunks/{plugin-z4ev155g.js → managed-policy-g8ytx0e6.js} +11 -11
- package/dist/chunks/{plugin-gd4qta3r.js → managed-policy-gd4qta3r.js} +1 -1
- package/dist/chunks/{plugin-76g71pff.js → managed-policy-gear7qnb.js} +48 -48
- package/dist/chunks/{plugin-x661k3y3.js → managed-policy-gqtdsdt7.js} +4 -4
- package/dist/chunks/{plugin-5dkn69vz.js → managed-policy-gw7cjrad.js} +4 -4
- package/dist/chunks/{plugin-24creq0d.js → managed-policy-gws45dxs.js} +10 -10
- package/dist/chunks/{plugin-7t4975xj.js → managed-policy-h07qkwg0.js} +8 -8
- package/dist/chunks/{plugin-h2b79v29.js → managed-policy-h2b79v29.js} +2 -2
- package/dist/chunks/{plugin-e6tayz2r.js → managed-policy-h4v137tq.js} +48 -48
- package/dist/chunks/{plugin-h6vf3j39.js → managed-policy-h6vf3j39.js} +1 -1
- package/dist/chunks/{plugin-04d3ggy7.js → managed-policy-hmgnztse.js} +18 -18
- package/dist/chunks/{plugin-28z24pfh.js → managed-policy-hspec0h6.js} +32 -32
- package/dist/chunks/{plugin-90wqxygs.js → managed-policy-j1rkkxtq.js} +11 -11
- package/dist/chunks/{plugin-j56e64zr.js → managed-policy-j56e64zr.js} +1 -1
- package/dist/chunks/{plugin-eahhehpg.js → managed-policy-j5rxtxht.js} +4 -4
- package/dist/chunks/{plugin-tc91rda6.js → managed-policy-j74g7mqr.js} +6 -6
- package/dist/chunks/{plugin-ay3mx084.js → managed-policy-j7v3c1ew.js} +11 -11
- package/dist/chunks/{plugin-h8ft0m90.js → managed-policy-jmhp3g8p.js} +17 -17
- package/dist/chunks/{plugin-nzh5psd4.js → managed-policy-jqjzdtvy.js} +11 -11
- package/dist/chunks/{plugin-agw9xp4d.js → managed-policy-jr3bj4y0.js} +18 -18
- package/dist/chunks/{plugin-3d32k6hr.js → managed-policy-jw2zym28.js} +14 -14
- package/dist/chunks/{plugin-81vaem42.js → managed-policy-k08ezkqp.js} +9 -9
- package/dist/chunks/{plugin-34bd8zqa.js → managed-policy-k0w7mqt4.js} +15 -15
- package/dist/chunks/{plugin-v9gryrmc.js → managed-policy-k15k6vrr.js} +83 -83
- package/dist/chunks/{plugin-c1gr2zd3.js → managed-policy-k34ckbn9.js} +3 -3
- package/dist/chunks/{plugin-1m06e57m.js → managed-policy-k7y67xhs.js} +10 -10
- package/dist/chunks/{plugin-vynkv33f.js → managed-policy-k8k12ca3.js} +13 -13
- package/dist/chunks/{plugin-r9f8m4wv.js → managed-policy-kc20gndt.js} +16 -16
- package/dist/chunks/{plugin-2dcw1sfe.js → managed-policy-kf13yp2f.js} +7 -7
- package/dist/chunks/{plugin-t5n9kkmz.js → managed-policy-kmgavk04.js} +7 -6
- package/dist/chunks/{plugin-pfybfzrt.js → managed-policy-kqjv8prj.js} +21 -21
- package/dist/chunks/{plugin-m3fdjcah.js → managed-policy-m3fdjcah.js} +1 -1
- package/dist/chunks/{plugin-35ng7dkh.js → managed-policy-m64xvjj1.js} +5 -5
- package/dist/chunks/{plugin-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{plugin-1eznydrh.js → managed-policy-ms8a7pq0.js} +11 -11
- package/dist/chunks/{plugin-w1ad28wa.js → managed-policy-n9axn9y3.js} +8 -8
- package/dist/chunks/{plugin-5h261f6e.js → managed-policy-ncj4p4na.js} +45 -45
- package/dist/chunks/{plugin-3x5wnmsa.js → managed-policy-nedqmk46.js} +17 -22
- package/dist/chunks/{plugin-ef7p9trg.js → managed-policy-nepz78e5.js} +9 -9
- package/dist/chunks/{plugin-h4cyradc.js → managed-policy-nf65gqd5.js} +12 -12
- package/dist/chunks/{plugin-y630p9sc.js → managed-policy-nhnhrcwq.js} +25 -25
- package/dist/chunks/{plugin-bxq680aw.js → managed-policy-nkcpd5b2.js} +29 -29
- package/dist/chunks/{plugin-d10hb995.js → managed-policy-npkdjxyy.js} +25 -25
- package/dist/chunks/{plugin-ktyrkyt5.js → managed-policy-nrrmpm3c.js} +13 -13
- package/dist/chunks/{plugin-c7jwjaks.js → managed-policy-p1yfc9a8.js} +22 -22
- package/dist/chunks/{plugin-nxnchq8r.js → managed-policy-p4qmxczc.js} +14 -14
- package/dist/chunks/{plugin-znfvst1a.js → managed-policy-phtj4jat.js} +5 -5
- package/dist/chunks/{plugin-pjvnvgmy.js → managed-policy-pjvnvgmy.js} +1 -1
- package/dist/chunks/{plugin-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{plugin-qr25pfvb.js → managed-policy-pkqb68ka.js} +4 -4
- package/dist/chunks/{plugin-n11bbmz5.js → managed-policy-psy48106.js} +4 -4
- package/dist/chunks/{plugin-ksr3qje0.js → managed-policy-pt0zkbkz.js} +4 -4
- package/dist/chunks/{plugin-yrqbh8b0.js → managed-policy-py9kw9tn.js} +17 -17
- package/dist/chunks/{plugin-dx92dk9v.js → managed-policy-pyfrz2yp.js} +11 -11
- package/dist/chunks/{plugin-0j77ygfz.js → managed-policy-q0xm7vwc.js} +6 -6
- package/dist/chunks/{plugin-mmq86yx8.js → managed-policy-q335xte2.js} +28 -28
- package/dist/chunks/{plugin-8cqakzrt.js → managed-policy-q6w467xr.js} +16 -16
- package/dist/chunks/{plugin-0jwsre1p.js → managed-policy-qgn6gcr1.js} +5 -5
- package/dist/chunks/{plugin-cpneeje0.js → managed-policy-qmqgtz8f.js} +9 -9
- package/dist/chunks/{plugin-qnc92qwc.js → managed-policy-qnc92qwc.js} +1 -1
- package/dist/chunks/{plugin-5p2w852e.js → managed-policy-qqcbs79k.js} +6 -6
- package/dist/chunks/{plugin-mdvte9fh.js → managed-policy-qqrjxc2w.js} +12 -12
- package/dist/chunks/{plugin-qsdy395h.js → managed-policy-qsdy395h.js} +1 -1
- package/dist/chunks/{plugin-qdbakdjh.js → managed-policy-qvreyy9g.js} +5 -5
- package/dist/chunks/{plugin-gahzhxn8.js → managed-policy-qwz8cpda.js} +25 -25
- package/dist/chunks/{plugin-qygbw77c.js → managed-policy-qygbw77c.js} +2 -2
- package/dist/chunks/{plugin-6arwdhpr.js → managed-policy-r3d0j56v.js} +19 -19
- package/dist/chunks/{plugin-54ma36ye.js → managed-policy-r94pvvab.js} +4 -4
- package/dist/chunks/{plugin-w7m571bh.js → managed-policy-r9d9xsbb.js} +32 -32
- package/dist/chunks/{plugin-yr715y08.js → managed-policy-r9w3djhf.js} +2 -2
- package/dist/chunks/{plugin-rdw6cm16.js → managed-policy-rdw6cm16.js} +1 -1
- package/dist/chunks/{plugin-yp2x3t23.js → managed-policy-rhraev7y.js} +4 -4
- package/dist/chunks/{plugin-8sze2n9a.js → managed-policy-rkprpv83.js} +6 -6
- package/dist/chunks/managed-policy-shrpyp41.js +253 -0
- package/dist/chunks/{plugin-my4zabxr.js → managed-policy-ss358qx3.js} +3 -3
- package/dist/chunks/{plugin-cfz5gkc0.js → managed-policy-sxjxh3g8.js} +11 -11
- package/dist/chunks/{plugin-2p5y98w0.js → managed-policy-sz0fczdy.js} +6 -6
- package/dist/chunks/{plugin-1x0vprbs.js → managed-policy-t1ettrb7.js} +15 -15
- package/dist/chunks/{plugin-k0r5d45h.js → managed-policy-t1xnf4e5.js} +5 -5
- package/dist/chunks/{plugin-b27vhd2z.js → managed-policy-t2fc4mz5.js} +4 -4
- package/dist/chunks/{plugin-2ex9tkzb.js → managed-policy-t6ck8tem.js} +46 -41
- package/dist/chunks/{plugin-8mq6ch7h.js → managed-policy-t9zqd86n.js} +25 -25
- package/dist/chunks/{plugin-tazgh4e4.js → managed-policy-tazgh4e4.js} +1 -1
- package/dist/chunks/{plugin-tcezcvh9.js → managed-policy-tcezcvh9.js} +1 -1
- package/dist/chunks/{plugin-tdstcens.js → managed-policy-tdstcens.js} +1 -1
- package/dist/chunks/{plugin-vvr3dw31.js → managed-policy-tekbgh3x.js} +10 -10
- package/dist/chunks/{plugin-x88jpnpr.js → managed-policy-thxbv41p.js} +21 -21
- package/dist/chunks/{plugin-b7fettsd.js → managed-policy-txzjavxp.js} +6 -6
- package/dist/chunks/{plugin-cepe0qf7.js → managed-policy-ty7z4jb0.js} +44 -44
- package/dist/chunks/{plugin-6g7e4dd5.js → managed-policy-v0es1rhs.js} +7 -7
- package/dist/chunks/{plugin-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{plugin-ty9x2hpf.js → managed-policy-vsbamy9h.js} +21 -21
- package/dist/chunks/{plugin-5q82qb79.js → managed-policy-vsywyjzm.js} +24 -24
- package/dist/chunks/{plugin-e5nrtag5.js → managed-policy-vvmfhg21.js} +22 -22
- package/dist/chunks/{plugin-vzcthcp8.js → managed-policy-vzcthcp8.js} +1 -1
- package/dist/chunks/{plugin-1hxtq9m9.js → managed-policy-vzfpntg8.js} +26 -26
- package/dist/chunks/{plugin-vzs5sf6e.js → managed-policy-vzs5sf6e.js} +1 -1
- package/dist/chunks/{plugin-84txncab.js → managed-policy-w1eejvng.js} +5 -5
- package/dist/chunks/{plugin-kjdm35cs.js → managed-policy-w39jehkq.js} +5 -5
- package/dist/chunks/{plugin-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{plugin-41japfwg.js → managed-policy-w677k9fj.js} +17 -17
- package/dist/chunks/{plugin-e9txt9vy.js → managed-policy-w7066q4p.js} +5 -5
- package/dist/chunks/{plugin-61rwkfw7.js → managed-policy-w973dr2w.js} +13 -13
- package/dist/chunks/{plugin-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{plugin-qkn17avs.js → managed-policy-weagkh0e.js} +9 -9
- package/dist/chunks/{plugin-69mqpp93.js → managed-policy-wq3m38jw.js} +16 -16
- package/dist/chunks/{plugin-t550f9t1.js → managed-policy-wv396vej.js} +8 -8
- package/dist/chunks/{plugin-hz0mzm96.js → managed-policy-wxj2pshp.js} +65 -65
- package/dist/chunks/{plugin-h5w29vws.js → managed-policy-wxyynt4w.js} +1 -1
- package/dist/chunks/{plugin-69hdsgk8.js → managed-policy-wy8gm8jj.js} +38 -38
- package/dist/chunks/{plugin-djz46489.js → managed-policy-x2ntk5yv.js} +15 -15
- package/dist/chunks/{plugin-ds421k4t.js → managed-policy-x49sb692.js} +11 -11
- package/dist/chunks/{plugin-4fsvs0r5.js → managed-policy-x8v70qwz.js} +13 -13
- package/dist/chunks/{plugin-yfh8cgan.js → managed-policy-x9xhcyxb.js} +9 -9
- package/dist/chunks/{plugin-9przwesc.js → managed-policy-xe69web5.js} +35 -35
- package/dist/chunks/{plugin-gfwqja43.js → managed-policy-xkhn0stb.js} +5 -5
- package/dist/chunks/{plugin-xkntkrq7.js → managed-policy-xkntkrq7.js} +2 -2
- package/dist/chunks/{plugin-xqsx1vwf.js → managed-policy-xmvy0rzp.js} +31 -31
- package/dist/chunks/{plugin-3ary6tpn.js → managed-policy-xs81jx4r.js} +10 -10
- package/dist/chunks/{plugin-4hmze3tg.js → managed-policy-xsjbfs7s.js} +12 -12
- package/dist/chunks/{plugin-qce0q5sw.js → managed-policy-xvdg8f15.js} +5 -5
- package/dist/chunks/{plugin-qxjc9qry.js → managed-policy-xyafkbt0.js} +3 -3
- package/dist/chunks/{plugin-pnkbpv6t.js → managed-policy-y0mc46pw.js} +9 -9
- package/dist/chunks/{plugin-y1fvbwt7.js → managed-policy-y1fvbwt7.js} +1 -1
- package/dist/chunks/{plugin-9jww82ap.js → managed-policy-y2x5y4w5.js} +89 -89
- package/dist/chunks/managed-policy-y5760nfk.js +507 -0
- package/dist/chunks/{plugin-371g5ft3.js → managed-policy-yj382vm2.js} +24 -24
- package/dist/chunks/{plugin-9c1yxwsv.js → managed-policy-ykty1417.js} +13 -13
- package/dist/chunks/{plugin-hcd320rf.js → managed-policy-yp4vs6at.js} +8 -8
- package/dist/chunks/{plugin-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{plugin-mk89bcdm.js → managed-policy-zam9eh49.js} +10 -10
- package/dist/chunks/{plugin-da0rp3w3.js → managed-policy-zggnq27k.js} +7 -7
- package/dist/chunks/{plugin-zg6rd06s.js → managed-policy-zgww0ypy.js} +11 -11
- package/dist/chunks/{plugin-nnjbqqpn.js → managed-policy-zjb991y7.js} +7 -7
- package/dist/chunks/{plugin-v9b8r7m3.js → managed-policy-zjxbxdfv.js} +12 -12
- package/dist/chunks/{plugin-zr2ceqn5.js → managed-policy-zr2ceqn5.js} +1 -1
- package/dist/chunks/{plugin-khhk3gee.js → managed-policy-zs5zztja.js} +9 -9
- package/dist/chunks/{plugin-dyrgthp5.js → managed-policy-zt43srwq.js} +22 -22
- package/dist/chunks/{plugin-zxq2ej10.js → managed-policy-zxq2ej10.js} +1 -1
- package/dist/chunks/{plugin-qq2xhrb8.js → managed-policy-zxyy8bfe.js} +61 -61
- package/dist/chunks/{plugin-a3c7ahw6.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 +116 -116
- package/dist/config/plugin/command.js +205 -205
- 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 +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- 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 +118 -118
- 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 +117 -117
- 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 +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.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 +72 -72
- 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 +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +96 -96
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +2 -2
- 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 +99 -99
- 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 +85 -85
- 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 +132 -132
- 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 +107 -107
- package/dist/mcp/instructions.js +129 -129
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- 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 +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- 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 +5 -5
- 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 +113 -113
- 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 +113 -113
- 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 +74 -74
- 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 +341 -341
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- 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 +218 -218
- package/dist/project/schema.js +6 -6
- 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 +87 -87
- package/dist/reference/instructions.js +85 -85
- package/dist/reference.js +87 -87
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- 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 +93 -93
- 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 +222 -222
- 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 +2 -2
- 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 +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +85 -85
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +120 -120
- 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 +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- 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 +12 -12
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- 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/plugin-by5v678g.js +0 -18
- package/dist/chunks/plugin-g93t3hq1.js +0 -26
- package/dist/chunks/plugin-h92akkf0.js +0 -253
- package/dist/chunks/plugin-hqe3s9vz.js +0 -507
- /package/dist/chunks/{plugin-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{plugin-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{plugin-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{plugin-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{plugin-1kg9ymc8.js → managed-policy-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{plugin-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{plugin-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{plugin-2axfhc9x.js → managed-policy-2axfhc9x.js} +0 -0
- /package/dist/chunks/{plugin-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{plugin-34c7v6d4.js → managed-policy-34c7v6d4.js} +0 -0
- /package/dist/chunks/{plugin-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{plugin-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{plugin-3t0ybcrp.js → managed-policy-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{plugin-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{plugin-3w5fmr99.js → managed-policy-3w5fmr99.js} +0 -0
- /package/dist/chunks/{plugin-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{plugin-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{plugin-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{plugin-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{plugin-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{plugin-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{plugin-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{plugin-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{plugin-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{plugin-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{plugin-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{plugin-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{plugin-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{plugin-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{plugin-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{plugin-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{plugin-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{plugin-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{plugin-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{plugin-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{plugin-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{plugin-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{plugin-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{plugin-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{plugin-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{plugin-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{plugin-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{plugin-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{plugin-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{plugin-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{plugin-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{plugin-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{plugin-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{plugin-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{plugin-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{plugin-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{plugin-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{plugin-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{plugin-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{plugin-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{plugin-fxgpk5d8.js → managed-policy-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{plugin-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{plugin-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{plugin-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{plugin-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{plugin-hjbc5kem.js → managed-policy-hjbc5kem.js} +0 -0
- /package/dist/chunks/{plugin-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{plugin-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{plugin-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{plugin-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{plugin-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{plugin-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{plugin-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{plugin-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{plugin-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{plugin-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{plugin-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{plugin-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{plugin-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{plugin-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{plugin-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{plugin-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{plugin-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{plugin-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{plugin-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{plugin-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{plugin-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{plugin-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{plugin-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{plugin-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{plugin-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{plugin-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{plugin-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{plugin-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{plugin-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{plugin-y8cydn3q.js → managed-policy-y8cydn3q.js} +0 -0
- /package/dist/chunks/{plugin-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{plugin-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{plugin-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{plugin-z5v4ffb3.js → managed-policy-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{plugin-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84,
|
|
6
6
|
node88
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-975ebawg.js";
|
|
8
8
|
import {
|
|
9
9
|
Service82,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
node86
|
|
11
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service83,
|
|
14
|
+
node87
|
|
15
|
+
} from "./managed-policy-qqrjxc2w.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info29,
|
|
20
20
|
UpdateInput4,
|
|
21
21
|
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-v0es1rhs.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./managed-policy-h2b79v29.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./managed-policy-1dvck2a7.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
39
|
+
ID: () => ID17,
|
|
40
|
+
Info: () => Info28,
|
|
41
41
|
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node85,
|
|
47
47
|
root: () => root2
|
|
48
48
|
});
|
|
49
49
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
55
55
|
import { AppProcess } from "@opencode/util/process";
|
|
56
56
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
57
57
|
import { Hash } from "@opencode/util/hash";
|
|
58
|
-
var
|
|
58
|
+
var ID17 = ID18;
|
|
59
59
|
var Vcs2 = Vcs3;
|
|
60
60
|
var Current2 = Current3;
|
|
61
|
-
var
|
|
61
|
+
var Info28 = Info29;
|
|
62
62
|
var UpdateInput3 = UpdateInput4;
|
|
63
63
|
|
|
64
64
|
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
65
|
-
projectID:
|
|
65
|
+
projectID: ID17
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -72,7 +72,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
72
72
|
});
|
|
73
73
|
var ACTIVATE_INTERVAL = 60000;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class Service81 extends Context.Service()("@opencode/Project") {
|
|
76
76
|
}
|
|
77
77
|
function fromRow(row) {
|
|
78
78
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -95,9 +95,9 @@ function fromRow(row) {
|
|
|
95
95
|
sandboxes: row.sandboxes
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
var layer = Layer.effect(
|
|
98
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
|
-
const git = yield*
|
|
100
|
+
const git = yield* Service83;
|
|
101
101
|
const proc = yield* AppProcess.Service;
|
|
102
102
|
const bus = yield* Service82;
|
|
103
103
|
const db = (yield* Service84).db;
|
|
@@ -145,7 +145,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
145
145
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
146
146
|
projectID: item.projectID,
|
|
147
147
|
directory: item.directory,
|
|
148
|
-
previous: project.previous ??
|
|
148
|
+
previous: project.previous ?? ID17.global,
|
|
149
149
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
150
150
|
}, {
|
|
151
151
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
184
184
|
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
185
185
|
});
|
|
186
186
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
187
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
187
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
188
188
|
return;
|
|
189
189
|
}));
|
|
190
190
|
});
|
|
@@ -195,7 +195,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
195
195
|
const normalized = url(origin);
|
|
196
196
|
if (!normalized)
|
|
197
197
|
return;
|
|
198
|
-
return
|
|
198
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
199
199
|
});
|
|
200
200
|
function url(input) {
|
|
201
201
|
const value = input.trim();
|
|
@@ -220,7 +220,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
220
220
|
}
|
|
221
221
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
222
222
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
223
|
-
return root ?
|
|
223
|
+
return root ? ID17.make(root) : undefined;
|
|
224
224
|
});
|
|
225
225
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
226
226
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -236,7 +236,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
236
236
|
return;
|
|
237
237
|
const node = result.stdout.toString("utf8").split(`
|
|
238
238
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
239
|
-
return node ?
|
|
239
|
+
return node ? ID17.make(node) : undefined;
|
|
240
240
|
});
|
|
241
241
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
242
242
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -245,7 +245,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
245
245
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
246
246
|
return {
|
|
247
247
|
previous,
|
|
248
|
-
id: id ??
|
|
248
|
+
id: id ?? ID17.global,
|
|
249
249
|
directory: worktree,
|
|
250
250
|
vcs: { type: "hg", store }
|
|
251
251
|
};
|
|
@@ -262,7 +262,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
262
262
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
263
263
|
return yield* persist({
|
|
264
264
|
previous,
|
|
265
|
-
id: id ??
|
|
265
|
+
id: id ?? ID17.global,
|
|
266
266
|
directory: repo.worktree,
|
|
267
267
|
canonical,
|
|
268
268
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -276,18 +276,18 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
return yield* persist({
|
|
279
|
-
id:
|
|
279
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
280
280
|
directory,
|
|
281
281
|
canonical: directory,
|
|
282
282
|
vcs: undefined
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
return
|
|
285
|
+
return Service81.of({ list, update, activate, resolve });
|
|
286
286
|
}));
|
|
287
|
-
var
|
|
288
|
-
service:
|
|
287
|
+
var node85 = makeGlobalNode({
|
|
288
|
+
service: Service81,
|
|
289
289
|
layer,
|
|
290
|
-
deps: [
|
|
290
|
+
deps: [node86, node88, FSUtil.node, node87, AppProcess.node]
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
export {
|
|
293
|
+
export { ID17, Vcs2, Current2, Info28, UpdateInput3, NotFoundError11, root2, Service81, node85, exports_project };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options10,
|
|
15
|
+
Service: () => Service68,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured10,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
21
|
list: () => list4,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name15,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node71,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options10 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service68 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve4(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,7 +180,7 @@ function resolve3(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve4.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
@@ -188,7 +188,7 @@ async function list4(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(Service68, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service71, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service68.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve4(input, state.get().shell, options, global.bin)),
|
|
206
206
|
list: () => Effect.promise(() => list4(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured10(options) {
|
|
210
|
+
return makeLocationNode({ service: Service68, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node71 = configured10();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options10, Service68, gitbash2, name15, login2, ps2, args2, environment2, resolve4, list4, configured10, node71, exports_select };
|
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-975ebawg.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service57
|
|
9
|
+
} from "./managed-policy-eqkxs06z.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./managed-policy-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError10,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-e8vwfchq.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./managed-policy-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service74
|
|
29
|
+
} from "./managed-policy-p4qmxczc.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
Service56
|
|
34
|
+
} from "./managed-policy-bqb67z36.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
36
|
+
Service54
|
|
37
|
+
} from "./managed-policy-5snyeemy.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./managed-policy-q6w467xr.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./managed-policy-py9kw9tn.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./managed-policy-x9xhcyxb.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
50
|
+
get5
|
|
51
|
+
} from "./managed-policy-xsjbfs7s.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
55
55
|
|
|
56
56
|
// src/session/session.ts
|
|
57
57
|
var exports_session2 = {};
|
|
58
58
|
__export(exports_session2, {
|
|
59
59
|
Session: () => exports_session2,
|
|
60
|
-
make: () =>
|
|
60
|
+
make: () => make15
|
|
61
61
|
});
|
|
62
62
|
import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
|
-
var
|
|
65
|
+
var make15 = Effect.fn("Session.make")(function* () {
|
|
66
66
|
const bus = yield* Service82;
|
|
67
67
|
const database = yield* Service84;
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
68
|
+
const store = yield* Service74;
|
|
69
|
+
const instances = yield* Service57;
|
|
70
|
+
const execution = yield* Service54;
|
|
71
|
+
const admission = yield* Service56;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
75
75
|
const session = yield* store.get(sessionID);
|
|
76
76
|
if (!session)
|
|
77
|
-
return yield* new
|
|
77
|
+
return yield* new NotFoundError10({ sessionID });
|
|
78
78
|
return session;
|
|
79
79
|
});
|
|
80
80
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -135,7 +135,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service57, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service57, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield*
|
|
183
|
+
const skill = yield* get5({ session, skill: input.skill }).pipe(Effect.provideService(Service57, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service57, instances), Effect.provideService(Service84, database), Effect.provideService(Service82, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service57, instances), Effect.provideService(Service82, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -329,4 +329,4 @@ ${error.message}`,
|
|
|
329
329
|
return { forSession };
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
export {
|
|
332
|
+
export { make15, exports_session2 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-gqtdsdt7.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event17
|
|
9
|
+
} from "./managed-policy-5j1v3jqf.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID9
|
|
12
|
+
} from "./managed-policy-93hnm8e8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID8,
|
|
15
|
+
Service64
|
|
16
|
+
} from "./managed-policy-dm99yka6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
load2,
|
|
19
|
+
derive2
|
|
20
|
+
} from "./managed-policy-4qqmwkqx.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID8.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
29
|
+
const providers = yield* Service64;
|
|
30
30
|
const bus = yield* Service82;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load2(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -62,12 +62,12 @@ var ModalPlugin2 = define({
|
|
|
62
62
|
return;
|
|
63
63
|
evt.add({
|
|
64
64
|
info: item.provider,
|
|
65
|
-
models: Array.from(
|
|
65
|
+
models: Array.from(derive2(loaded.baseURL, loaded.models, Array.from(item.models.values())).values()),
|
|
66
66
|
sourceConnection: loaded.connection
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node86
|
|
4
|
+
} from "./managed-policy-5dpktnqk.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event16,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID10,
|
|
20
|
+
Info: () => Info20,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError7,
|
|
24
|
+
Reply: () => Reply2,
|
|
25
|
+
Service: () => Service66,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer23,
|
|
29
|
+
node: () => node69,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event16 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID10 = Form.ID;
|
|
39
|
+
var Info20 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply2 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError7 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID10
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID10
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID10
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID10,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service66 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var layer23 = Layer.effect(Service66, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service82;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError7({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID10.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer25 = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service66.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node69 = makeLocationNode({ service: Service66, layer: layer23, deps: [node86] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID10, Info20, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError7, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service66, layer23, node69, validateAnswer2, validateFields2, exports_form, Event16 };
|