@opencode/core 0.0.0-dev-20966 → 0.0.0-dev-20968
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 +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{worktree-vb3pk5gr.js → location-service-map-04ttag0w.js} +28 -28
- package/dist/chunks/{worktree-hsgza3cm.js → location-service-map-05hkmm44.js} +18 -18
- package/dist/chunks/{worktree-xmsn35g9.js → location-service-map-07w9enf1.js} +14 -14
- package/dist/chunks/{worktree-9a3zed70.js → location-service-map-0a3bg0j5.js} +27 -27
- package/dist/chunks/{worktree-0b5g1ynf.js → location-service-map-0b5g1ynf.js} +4 -4
- package/dist/chunks/{worktree-63xqm307.js → location-service-map-0bztnv55.js} +15 -15
- package/dist/chunks/{worktree-0c8z4cs3.js → location-service-map-0fzbfnq7.js} +2 -2
- package/dist/chunks/{worktree-3dak6s47.js → location-service-map-0hw4dk4w.js} +1 -1
- package/dist/chunks/{worktree-0j77ygfz.js → location-service-map-0j77ygfz.js} +2 -2
- package/dist/chunks/{worktree-q28ks4kq.js → location-service-map-0pj15cwb.js} +34 -34
- package/dist/chunks/{worktree-0vbcp93d.js → location-service-map-0vbcp93d.js} +2 -2
- package/dist/chunks/{worktree-0a99m7qb.js → location-service-map-0ycdfwp1.js} +14 -14
- package/dist/chunks/{worktree-eb78yqxb.js → location-service-map-112anbc5.js} +8 -8
- package/dist/chunks/{worktree-hex4f5x3.js → location-service-map-17t4d4av.js} +11 -11
- package/dist/chunks/{worktree-c7m8ew2s.js → location-service-map-189fjxnc.js} +20 -20
- package/dist/chunks/{worktree-cj2pe107.js → location-service-map-190mk5vc.js} +10 -10
- package/dist/chunks/{worktree-57676ctm.js → location-service-map-1bz87fsm.js} +13 -13
- package/dist/chunks/location-service-map-1g906he0.js +26 -0
- package/dist/chunks/{worktree-z8ads2fd.js → location-service-map-1hyeesvh.js} +16 -16
- package/dist/chunks/{worktree-rkg4v3e5.js → location-service-map-1j6m29mr.js} +4 -4
- package/dist/chunks/{worktree-9t1h6qm2.js → location-service-map-1krj7acz.js} +40 -40
- package/dist/chunks/{worktree-v9erzek1.js → location-service-map-1xjc3krj.js} +5 -5
- package/dist/chunks/{worktree-8e27w5a6.js → location-service-map-285qnyny.js} +16 -16
- package/dist/chunks/{worktree-15xqyjtq.js → location-service-map-2gw07b48.js} +10 -10
- package/dist/chunks/{worktree-2k8khapm.js → location-service-map-2k8khapm.js} +1 -1
- package/dist/chunks/{worktree-e6p3a57j.js → location-service-map-38x8v0tv.js} +24 -24
- package/dist/chunks/{worktree-k1n0z3hy.js → location-service-map-3b16v5tt.js} +5 -5
- package/dist/chunks/{worktree-xeyk6e5c.js → location-service-map-3dq15cxk.js} +13 -13
- package/dist/chunks/{worktree-3fc6dm20.js → location-service-map-3fc6dm20.js} +1 -1
- package/dist/chunks/{worktree-2mmjvpe1.js → location-service-map-3fgtv7ze.js} +20 -20
- package/dist/chunks/{worktree-3hepkmqq.js → location-service-map-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-3hwn7j4h.js → location-service-map-3hwn7j4h.js} +2 -2
- package/dist/chunks/{worktree-3smtnn6g.js → location-service-map-3smtnn6g.js} +1 -1
- package/dist/chunks/{worktree-3tvqynh2.js → location-service-map-3tvqynh2.js} +1 -1
- package/dist/chunks/{worktree-3zsf4n22.js → location-service-map-3zsf4n22.js} +1 -1
- package/dist/chunks/{worktree-tk5h2yrb.js → location-service-map-453vx0dg.js} +32 -32
- package/dist/chunks/{worktree-6f79fvzy.js → location-service-map-4c3ndrn6.js} +9 -9
- package/dist/chunks/{worktree-cnnb9061.js → location-service-map-4pn1xf0p.js} +20 -20
- package/dist/chunks/{worktree-f0znm7sz.js → location-service-map-4sqgwhvg.js} +15 -15
- package/dist/chunks/{worktree-x3gqap9d.js → location-service-map-4v7ngy20.js} +4 -4
- package/dist/chunks/{worktree-5dkn69vz.js → location-service-map-4z58m4b4.js} +4 -4
- package/dist/chunks/{worktree-vvccsdf3.js → location-service-map-51f5btjf.js} +6 -6
- package/dist/chunks/{worktree-54ma36ye.js → location-service-map-54ma36ye.js} +1 -1
- package/dist/chunks/{worktree-ewzsx78j.js → location-service-map-5cs9fw4j.js} +17 -17
- package/dist/chunks/{worktree-zjvj18av.js → location-service-map-5e6vztpv.js} +11 -11
- package/dist/chunks/{worktree-9heq1gfm.js → location-service-map-5jvy51wy.js} +1 -1
- package/dist/chunks/{worktree-5m9w47nd.js → location-service-map-5m9w47nd.js} +1 -1
- package/dist/chunks/{worktree-8tbg6stw.js → location-service-map-5pyvwtgy.js} +15 -15
- package/dist/chunks/{worktree-6mgx7xe7.js → location-service-map-605e1jbp.js} +8 -8
- package/dist/chunks/{worktree-e2s224y0.js → location-service-map-61qtfb41.js} +20 -20
- package/dist/chunks/{worktree-a6avbjvq.js → location-service-map-69jqfsnf.js} +11 -11
- package/dist/chunks/{worktree-tp1s2539.js → location-service-map-6bkr64fg.js} +9 -9
- package/dist/chunks/{worktree-cmchd7hs.js → location-service-map-6c5stfwb.js} +3 -3
- package/dist/chunks/{worktree-6g107h22.js → location-service-map-6g107h22.js} +2 -2
- package/dist/chunks/{worktree-s1kvmffy.js → location-service-map-6hjx5zpb.js} +9 -9
- package/dist/chunks/{worktree-28b65eap.js → location-service-map-6kpyj4fb.js} +11 -11
- package/dist/chunks/{worktree-4w8247ap.js → location-service-map-6mdwj01c.js} +7 -7
- package/dist/chunks/{worktree-k368h1bw.js → location-service-map-6npkjnc9.js} +14 -14
- package/dist/chunks/{worktree-6xb47vfp.js → location-service-map-6xb47vfp.js} +1 -1
- package/dist/chunks/{worktree-cfwkm2sy.js → location-service-map-6xc75jjq.js} +43 -43
- package/dist/chunks/{worktree-775gj3j1.js → location-service-map-775gj3j1.js} +2 -2
- package/dist/chunks/{worktree-xnpybbqa.js → location-service-map-79rgchyy.js} +24 -24
- package/dist/chunks/{worktree-7bmhse3q.js → location-service-map-7bmhse3q.js} +1 -1
- package/dist/chunks/location-service-map-7fj5dwt0.js +18 -0
- package/dist/chunks/{worktree-mr8m5p48.js → location-service-map-7hff53af.js} +9 -9
- package/dist/chunks/{worktree-x4yqgpdn.js → location-service-map-7mp49jye.js} +16 -16
- package/dist/chunks/{worktree-84txncab.js → location-service-map-84txncab.js} +1 -1
- package/dist/chunks/{worktree-k8pbnrry.js → location-service-map-88jjz5re.js} +12 -12
- package/dist/chunks/{worktree-tcezcvh9.js → location-service-map-89znhe33.js} +4 -4
- package/dist/chunks/{worktree-s4z024b2.js → location-service-map-8cxvr4t8.js} +36 -36
- package/dist/chunks/{worktree-ck9w7hsc.js → location-service-map-8czxvfjx.js} +29 -29
- package/dist/chunks/{worktree-6r3dthtv.js → location-service-map-8kzy7b3z.js} +23 -23
- package/dist/chunks/{worktree-8m6m0r52.js → location-service-map-8m6m0r52.js} +1 -1
- package/dist/chunks/{worktree-jdks16ag.js → location-service-map-8sqat94k.js} +19 -19
- package/dist/chunks/{worktree-7fkffz83.js → location-service-map-8sze2n9a.js} +8 -8
- package/dist/chunks/{worktree-dkhangmk.js → location-service-map-8ykp9xbw.js} +31 -31
- package/dist/chunks/{worktree-31v8j1ma.js → location-service-map-95kyz0q3.js} +6 -6
- package/dist/chunks/{worktree-nq09r4dh.js → location-service-map-96kn8jjj.js} +6 -6
- package/dist/chunks/{worktree-zpkap1h9.js → location-service-map-977pwvh6.js} +2 -2
- package/dist/chunks/{worktree-1cz5vd6m.js → location-service-map-9d2vkprr.js} +11 -11
- package/dist/chunks/{worktree-d9bwsjmy.js → location-service-map-9h357zpk.js} +8 -8
- package/dist/chunks/{worktree-cmwkp3r5.js → location-service-map-9hn6k4tm.js} +8 -8
- package/dist/chunks/{worktree-047x8gkn.js → location-service-map-9tr2qfdk.js} +9 -9
- package/dist/chunks/{worktree-qsf3y1ew.js → location-service-map-9vjjhptz.js} +10 -10
- package/dist/chunks/{worktree-xa33bmm9.js → location-service-map-9zdssp4n.js} +9 -9
- package/dist/chunks/{worktree-wgkrc4gf.js → location-service-map-a41h3yhs.js} +29 -29
- package/dist/chunks/{worktree-faaxxfm8.js → location-service-map-a42kkhkg.js} +31 -31
- package/dist/chunks/{worktree-f6qqz66d.js → location-service-map-a4hp8e9p.js} +12 -12
- package/dist/chunks/{worktree-gr62y671.js → location-service-map-a62egxb3.js} +3 -3
- package/dist/chunks/location-service-map-asevcyq5.js +253 -0
- package/dist/chunks/{worktree-vnmj6pqx.js → location-service-map-av8cscef.js} +25 -25
- package/dist/chunks/{worktree-9wqr0z3w.js → location-service-map-ayt5007s.js} +4 -4
- package/dist/chunks/{worktree-4a7gy6vj.js → location-service-map-b1a1n7cj.js} +3 -3
- package/dist/chunks/{worktree-wecqtg5s.js → location-service-map-b3f8fkhc.js} +5 -5
- package/dist/chunks/{worktree-z4tt41b4.js → location-service-map-b7hvd3bh.js} +6 -6
- package/dist/chunks/{worktree-qpzrnwb7.js → location-service-map-b89jdn4q.js} +13 -13
- package/dist/chunks/{worktree-23wx4d1f.js → location-service-map-bh3fdk74.js} +3 -3
- package/dist/chunks/{worktree-7j49d4k9.js → location-service-map-bhhmebad.js} +20 -20
- package/dist/chunks/{worktree-wwj18gnb.js → location-service-map-bjkg2ks4.js} +23 -23
- package/dist/chunks/{worktree-ywt8jp22.js → location-service-map-bjx1sjef.js} +9 -9
- package/dist/chunks/{worktree-ba964zp9.js → location-service-map-bm095xha.js} +3 -3
- package/dist/chunks/{worktree-72f2khbq.js → location-service-map-bpq9gadp.js} +14 -14
- package/dist/chunks/{worktree-w8xr7nv8.js → location-service-map-btec747f.js} +5 -5
- package/dist/chunks/{worktree-c1fqxshp.js → location-service-map-c1fqxshp.js} +3 -3
- package/dist/chunks/{worktree-13qy106w.js → location-service-map-c6nr29zh.js} +10 -10
- package/dist/chunks/{worktree-hzmhka1f.js → location-service-map-c7s5xd0e.js} +45 -45
- package/dist/chunks/{worktree-3mpe3zgf.js → location-service-map-c87q280n.js} +3 -3
- package/dist/chunks/{worktree-5x9t471j.js → location-service-map-cakf0m7d.js} +33 -33
- package/dist/chunks/{worktree-dx0ahrbs.js → location-service-map-d04ep358.js} +11 -11
- package/dist/chunks/{worktree-r8bsfb7y.js → location-service-map-d54g0exn.js} +7 -7
- package/dist/chunks/{worktree-1g6fppr6.js → location-service-map-dacbrmk2.js} +11 -11
- package/dist/chunks/{worktree-m9qsaj22.js → location-service-map-dkpnw212.js} +8 -8
- package/dist/chunks/{worktree-dqxsqydv.js → location-service-map-dqxsqydv.js} +1 -1
- package/dist/chunks/{worktree-wzwj114h.js → location-service-map-dzrvr4nb.js} +44 -44
- package/dist/chunks/{worktree-r7x64v0s.js → location-service-map-e2t7s5t4.js} +40 -40
- package/dist/chunks/{worktree-vmvc3m0d.js → location-service-map-e334ff5n.js} +17 -17
- package/dist/chunks/{worktree-q11w256c.js → location-service-map-eb5nwvjj.js} +18 -18
- package/dist/chunks/{worktree-fc8788t2.js → location-service-map-ebbyhdvc.js} +31 -31
- package/dist/chunks/{worktree-eej6y6fw.js → location-service-map-eej6y6fw.js} +2 -2
- package/dist/chunks/{worktree-ef5x83kb.js → location-service-map-ef5x83kb.js} +1 -1
- package/dist/chunks/{worktree-9qyart7b.js → location-service-map-ej81gkeg.js} +8 -8
- package/dist/chunks/{worktree-32npmyat.js → location-service-map-emxdjm72.js} +25 -25
- package/dist/chunks/{worktree-qjnp8kth.js → location-service-map-erts2f6e.js} +13 -13
- package/dist/chunks/{worktree-raem8mh3.js → location-service-map-ewf8j77t.js} +11 -11
- package/dist/chunks/{worktree-rrnkc0yz.js → location-service-map-exs4tskk.js} +21 -21
- package/dist/chunks/{worktree-p2w8rnj5.js → location-service-map-f50nbvzh.js} +38 -38
- package/dist/chunks/{worktree-y73tf1nx.js → location-service-map-fkhvp8gb.js} +12 -12
- package/dist/chunks/{worktree-khmqacep.js → location-service-map-fxaymqdw.js} +4 -4
- package/dist/chunks/{worktree-c6kyp2vd.js → location-service-map-g0xzmjr0.js} +7 -7
- package/dist/chunks/{worktree-efamztt7.js → location-service-map-gabsh7yw.js} +9 -9
- package/dist/chunks/{worktree-jhdf29st.js → location-service-map-gd0tnyjc.js} +1 -1
- package/dist/chunks/{worktree-gd4qta3r.js → location-service-map-gd4qta3r.js} +1 -1
- package/dist/chunks/{worktree-hxn427s8.js → location-service-map-gk6ab8mf.js} +13 -13
- package/dist/chunks/{worktree-9jyxv9wv.js → location-service-map-gv2dj64n.js} +5 -5
- package/dist/chunks/{worktree-h6vf3j39.js → location-service-map-h6vf3j39.js} +1 -1
- package/dist/chunks/{worktree-h7s7r6s9.js → location-service-map-h7s7r6s9.js} +2 -2
- package/dist/chunks/{worktree-wh6zw745.js → location-service-map-h83xjv7f.js} +5 -5
- package/dist/chunks/{worktree-jjv1jct9.js → location-service-map-h8rphgn6.js} +2 -2
- package/dist/chunks/{worktree-39z47dss.js → location-service-map-h9mky73t.js} +13 -13
- package/dist/chunks/{worktree-had4kgfk.js → location-service-map-had4kgfk.js} +1 -1
- package/dist/chunks/{worktree-hgz4x7wa.js → location-service-map-hgz4x7wa.js} +1 -1
- package/dist/chunks/{worktree-00bpreyp.js → location-service-map-hhyv66vq.js} +8 -8
- package/dist/chunks/{worktree-sq2wxdf8.js → location-service-map-hmdrvyfh.js} +71 -71
- package/dist/chunks/{worktree-0y76yggw.js → location-service-map-hsvqr7g3.js} +33 -33
- package/dist/chunks/{worktree-9y8rfr9p.js → location-service-map-hxtckxf3.js} +27 -27
- package/dist/chunks/{worktree-k8y2vxwm.js → location-service-map-hzp768xy.js} +3 -3
- package/dist/chunks/{worktree-91qna3x0.js → location-service-map-j09zfasm.js} +3 -3
- package/dist/chunks/{worktree-bk4fykk5.js → location-service-map-j5chjq9f.js} +10 -10
- package/dist/chunks/{worktree-7ac80gxj.js → location-service-map-j8ssv6es.js} +11 -11
- package/dist/chunks/{worktree-0k9zmgbm.js → location-service-map-j947zhwf.js} +11 -11
- package/dist/chunks/{worktree-0s8710ya.js → location-service-map-jeewe651.js} +4 -4
- package/dist/chunks/{worktree-c1pn2cak.js → location-service-map-jpaf2qm1.js} +37 -37
- package/dist/chunks/{worktree-ysq9cvk3.js → location-service-map-jrzj45fy.js} +10 -10
- package/dist/chunks/{worktree-zvt5dnpc.js → location-service-map-jvf3yq6v.js} +4 -4
- package/dist/chunks/{worktree-qby9dwvd.js → location-service-map-jvnghvnw.js} +8 -8
- package/dist/chunks/{worktree-pd760nvw.js → location-service-map-jxr5ks98.js} +6 -6
- package/dist/chunks/{worktree-gkj5fv17.js → location-service-map-k4xdy46r.js} +23 -23
- package/dist/chunks/{worktree-akwfsdqq.js → location-service-map-k6709ays.js} +11 -11
- package/dist/chunks/{worktree-z0jrkcpk.js → location-service-map-kcdapykd.js} +6 -6
- package/dist/chunks/{worktree-t1bzqew3.js → location-service-map-kdxh9szv.js} +11 -11
- package/dist/chunks/{worktree-7svw2p5b.js → location-service-map-kp5we7ps.js} +15 -15
- package/dist/chunks/{worktree-w0tfgnf2.js → location-service-map-ktgr00t7.js} +2 -2
- package/dist/chunks/{worktree-yypbz2n6.js → location-service-map-kwqk5vnc.js} +20 -20
- package/dist/chunks/{worktree-fj9ny8gn.js → location-service-map-kww7pfa5.js} +7 -7
- package/dist/chunks/{worktree-zvmksf0w.js → location-service-map-kxssyy3x.js} +28 -28
- package/dist/chunks/{worktree-m9w0rfyh.js → location-service-map-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-maspj1v3.js → location-service-map-maspj1v3.js} +1 -1
- package/dist/chunks/{worktree-d4qs2yq9.js → location-service-map-mdmc61fe.js} +2 -2
- package/dist/chunks/{worktree-1pc1gjj0.js → location-service-map-mgjjdy5b.js} +13 -13
- package/dist/chunks/{worktree-713nkfes.js → location-service-map-mh8n60fa.js} +45 -45
- package/dist/chunks/{worktree-nvpcjjwg.js → location-service-map-mpw5hxye.js} +14 -14
- package/dist/chunks/{worktree-tbvqj3dg.js → location-service-map-mt6brxxc.js} +4 -4
- package/dist/chunks/{worktree-gvrzmcf4.js → location-service-map-najnejyn.js} +16 -16
- package/dist/chunks/{worktree-wmvxw9n2.js → location-service-map-nc1ev885.js} +82 -82
- package/dist/chunks/{worktree-nwz3xn1w.js → location-service-map-ncp1h5wm.js} +4 -4
- package/dist/chunks/{worktree-ed1g29hy.js → location-service-map-nma959mg.js} +3 -3
- package/dist/chunks/{worktree-a2g5zc1h.js → location-service-map-npgv39fj.js} +2 -2
- package/dist/chunks/{worktree-ndq62nn0.js → location-service-map-nqsv03v6.js} +78 -78
- package/dist/chunks/{worktree-kada6eax.js → location-service-map-pck7vvdx.js} +6 -6
- package/dist/chunks/{worktree-pjvnvgmy.js → location-service-map-pjvnvgmy.js} +1 -1
- package/dist/chunks/{worktree-qcfhvs9f.js → location-service-map-pjykpq9n.js} +33 -33
- package/dist/chunks/{worktree-pknna89w.js → location-service-map-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-phgh38vw.js → location-service-map-q4aap459.js} +23 -23
- package/dist/chunks/{worktree-mj4h5zyy.js → location-service-map-q85n4xbh.js} +9 -9
- package/dist/chunks/{worktree-d784a9zz.js → location-service-map-qavnhd3j.js} +27 -27
- package/dist/chunks/{worktree-2pn6kxez.js → location-service-map-qb7q1f1d.js} +18 -18
- package/dist/chunks/{worktree-3yes92cn.js → location-service-map-qce5rqyv.js} +7 -7
- package/dist/chunks/{worktree-n3g5pdec.js → location-service-map-qe178b41.js} +26 -26
- package/dist/chunks/{worktree-nd3zr4qw.js → location-service-map-qezm2w8e.js} +15 -15
- package/dist/chunks/{worktree-rec41zv7.js → location-service-map-qgw57eb3.js} +8 -8
- package/dist/chunks/{worktree-qnc92qwc.js → location-service-map-qnc92qwc.js} +1 -1
- package/dist/chunks/{worktree-14mhcz0z.js → location-service-map-qrabmw5q.js} +35 -35
- package/dist/chunks/{worktree-qsdy395h.js → location-service-map-qsdy395h.js} +1 -1
- package/dist/chunks/{worktree-36sqq72v.js → location-service-map-qvcr5dcn.js} +19 -19
- package/dist/chunks/{worktree-w2fd5jxd.js → location-service-map-qwf29bqw.js} +3 -3
- package/dist/chunks/{worktree-sjbmsh99.js → location-service-map-qyvjbqsg.js} +12 -12
- package/dist/chunks/{worktree-d4he2qe1.js → location-service-map-r2m716tb.js} +9 -9
- package/dist/chunks/{worktree-2g49c99y.js → location-service-map-r3yrqnb5.js} +17 -17
- package/dist/chunks/{worktree-nd4tfyg0.js → location-service-map-ra67jj04.js} +9 -9
- package/dist/chunks/{worktree-1g7epwpd.js → location-service-map-ratrq7cm.js} +7 -7
- package/dist/chunks/{worktree-d7zx0zg5.js → location-service-map-raxjnfg2.js} +11 -11
- package/dist/chunks/{worktree-rdw6cm16.js → location-service-map-rdw6cm16.js} +1 -1
- package/dist/chunks/{worktree-rert0e01.js → location-service-map-rert0e01.js} +2 -2
- package/dist/chunks/{worktree-2csbwcjg.js → location-service-map-rfnwmvtk.js} +9 -9
- package/dist/chunks/{worktree-919ps8m3.js → location-service-map-rht436q7.js} +14 -14
- package/dist/chunks/{worktree-rj3eygr5.js → location-service-map-rj3eygr5.js} +2 -2
- package/dist/chunks/{worktree-svwvq4d5.js → location-service-map-s6a94ykt.js} +50 -50
- package/dist/chunks/{worktree-hzsf6k88.js → location-service-map-s90bytks.js} +15 -15
- package/dist/chunks/{worktree-sa8ekw3f.js → location-service-map-sa8ekw3f.js} +2 -2
- package/dist/chunks/{worktree-m0xm5t79.js → location-service-map-sdk84yjp.js} +1 -1
- package/dist/chunks/{worktree-352md1ar.js → location-service-map-sfz6vzg3.js} +10 -10
- package/dist/chunks/{worktree-f3x7gcm5.js → location-service-map-st6tfvct.js} +30 -30
- package/dist/chunks/{worktree-7gra0nqm.js → location-service-map-svcw9x3w.js} +5 -5
- package/dist/chunks/{worktree-syv4x271.js → location-service-map-syv4x271.js} +1 -1
- package/dist/chunks/{worktree-heq1a16y.js → location-service-map-t4jzmwkk.js} +7 -7
- package/dist/chunks/{worktree-t550f9t1.js → location-service-map-t550f9t1.js} +1 -1
- package/dist/chunks/{worktree-0p4seb2j.js → location-service-map-t7n4d1yf.js} +4 -4
- package/dist/chunks/{worktree-2n295dmf.js → location-service-map-t89fqycx.js} +8 -8
- package/dist/chunks/{worktree-qk5v6yqg.js → location-service-map-t9es0ena.js} +16 -16
- package/dist/chunks/{worktree-tazgh4e4.js → location-service-map-tazgh4e4.js} +1 -1
- package/dist/chunks/{worktree-tdstcens.js → location-service-map-tdstcens.js} +1 -1
- package/dist/chunks/{worktree-x7eaanfs.js → location-service-map-thf5141v.js} +3 -3
- package/dist/chunks/{worktree-tm0kqsz3.js → location-service-map-tm0kqsz3.js} +1 -1
- package/dist/chunks/{worktree-bpn8wa0j.js → location-service-map-trecwywa.js} +26 -26
- package/dist/chunks/{worktree-547mgkha.js → location-service-map-ttbvdjdw.js} +16 -16
- package/dist/chunks/{worktree-tyytaxap.js → location-service-map-tyytaxap.js} +1 -1
- package/dist/chunks/{worktree-v0es1rhs.js → location-service-map-v0es1rhs.js} +2 -2
- package/dist/chunks/location-service-map-v2exr8cw.js +513 -0
- package/dist/chunks/{worktree-zpt8t96v.js → location-service-map-v2fstvx9.js} +25 -25
- package/dist/chunks/{worktree-wxdrkwee.js → location-service-map-v6tgae3y.js} +145 -145
- package/dist/chunks/{worktree-v7p4zvkq.js → location-service-map-v7p4zvkq.js} +2 -2
- package/dist/chunks/{worktree-nhe6bk5v.js → location-service-map-vdcsbfm7.js} +7 -7
- package/dist/chunks/{worktree-veqvce7d.js → location-service-map-veqvce7d.js} +1 -1
- package/dist/chunks/{worktree-273zw8zg.js → location-service-map-vfd5z52g.js} +20 -20
- package/dist/chunks/{worktree-xfw881m1.js → location-service-map-vh4rw25j.js} +10 -10
- package/dist/chunks/{worktree-ht3mx19x.js → location-service-map-vhvv9bf9.js} +13 -13
- package/dist/chunks/{worktree-bf1tsaws.js → location-service-map-vxznmwbn.js} +14 -14
- package/dist/chunks/{worktree-4bm5ja14.js → location-service-map-vycw7md4.js} +4 -4
- package/dist/chunks/{worktree-vzs5sf6e.js → location-service-map-vzs5sf6e.js} +1 -1
- package/dist/chunks/{worktree-8dc9ddds.js → location-service-map-w34bt5ev.js} +11 -11
- package/dist/chunks/{worktree-w3wsvvr9.js → location-service-map-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-dvep9rg9.js → location-service-map-w5rka97k.js} +9 -9
- package/dist/chunks/{worktree-fv1gh5kw.js → location-service-map-w75czvp0.js} +3 -3
- package/dist/chunks/{worktree-z5cvsch1.js → location-service-map-w7th8kft.js} +11 -11
- package/dist/chunks/{worktree-bw54z2dz.js → location-service-map-w85jx7ef.js} +22 -22
- package/dist/chunks/{worktree-wd87259q.js → location-service-map-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-j8xvyka0.js → location-service-map-whqshyfz.js} +8 -8
- package/dist/chunks/{worktree-xrd6m33g.js → location-service-map-wnsxc07p.js} +19 -19
- package/dist/chunks/{worktree-qrmef7q5.js → location-service-map-wve2b6s5.js} +12 -12
- package/dist/chunks/{worktree-4h91jvx1.js → location-service-map-wvf4y7rr.js} +22 -22
- package/dist/chunks/{worktree-bc8zjgdy.js → location-service-map-x309wg9x.js} +8 -8
- package/dist/chunks/{worktree-w3smsxn0.js → location-service-map-x5wrmng7.js} +8 -8
- package/dist/chunks/{worktree-azwe5p1w.js → location-service-map-x661k3y3.js} +4 -4
- package/dist/chunks/{worktree-1yt7rx9k.js → location-service-map-x852hbsc.js} +4 -4
- package/dist/chunks/{worktree-wyp5t2nv.js → location-service-map-x94bbvss.js} +4 -4
- package/dist/chunks/{worktree-2641fc7s.js → location-service-map-xdfgfet0.js} +34 -34
- package/dist/chunks/{worktree-v2fecqa2.js → location-service-map-xe6vm9p8.js} +20 -20
- package/dist/chunks/{worktree-qqeeq2t9.js → location-service-map-xfkkasph.js} +7 -7
- package/dist/chunks/{worktree-rzj0vt9r.js → location-service-map-xsccak5w.js} +10 -10
- package/dist/chunks/{worktree-y1fvbwt7.js → location-service-map-y1fvbwt7.js} +1 -1
- package/dist/chunks/{worktree-5rq05eez.js → location-service-map-y4a0ptp4.js} +3 -3
- package/dist/chunks/{worktree-y71avatq.js → location-service-map-y71avatq.js} +1 -1
- package/dist/chunks/{worktree-5wbbhyy2.js → location-service-map-yhebgegd.js} +22 -22
- package/dist/chunks/{worktree-1g706jtd.js → location-service-map-yjqnk9hn.js} +24 -24
- package/dist/chunks/{worktree-vckqakrf.js → location-service-map-ykdkqy2w.js} +17 -17
- package/dist/chunks/{worktree-wsss038a.js → location-service-map-ykxyh7k6.js} +10 -10
- package/dist/chunks/{worktree-yp2x3t23.js → location-service-map-yp2x3t23.js} +1 -1
- package/dist/chunks/{worktree-z0bkrqjs.js → location-service-map-z0bkrqjs.js} +1 -1
- package/dist/chunks/{worktree-tthj469c.js → location-service-map-z1a6nf3f.js} +17 -17
- package/dist/chunks/{worktree-11g55wky.js → location-service-map-z4qs0yhw.js} +32 -32
- package/dist/chunks/{worktree-0ns114n3.js → location-service-map-z5rnbfrr.js} +9 -9
- package/dist/chunks/{worktree-jhyqneq0.js → location-service-map-zcfatamc.js} +10 -10
- package/dist/chunks/{worktree-47jkzegy.js → location-service-map-zmr78fwr.js} +5 -5
- package/dist/chunks/{worktree-j1c4j6vn.js → location-service-map-zpfqjb86.js} +17 -17
- package/dist/chunks/{worktree-zr2ceqn5.js → location-service-map-zr2ceqn5.js} +1 -1
- package/dist/chunks/{worktree-yhgqt7b2.js → location-service-map-zt28r1k4.js} +25 -25
- package/dist/chunks/{worktree-zxq2ej10.js → location-service-map-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +91 -91
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +91 -91
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +222 -222
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +93 -93
- 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 +359 -359
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- 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 +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- 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 +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +127 -127
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- 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 +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +209 -209
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- 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 +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- 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 +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +1 -1
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +74 -74
- 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 +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/worktree-619r8v3y.js +0 -18
- package/dist/chunks/worktree-gga122km.js +0 -26
- package/dist/chunks/worktree-hfhhdy4d.js +0 -513
- package/dist/chunks/worktree-yvbfxc2q.js +0 -253
- /package/dist/chunks/{worktree-0qkdqm5v.js → location-service-map-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → location-service-map-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → location-service-map-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → location-service-map-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-1kg9ymc8.js → location-service-map-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{worktree-24dcb14g.js → location-service-map-24dcb14g.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → location-service-map-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2axfhc9x.js → location-service-map-2axfhc9x.js} +0 -0
- /package/dist/chunks/{worktree-2bv980vf.js → location-service-map-2bv980vf.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → location-service-map-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → location-service-map-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → location-service-map-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3t0ybcrp.js → location-service-map-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → location-service-map-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → location-service-map-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → location-service-map-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → location-service-map-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4vcrnpx2.js → location-service-map-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → location-service-map-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → location-service-map-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → location-service-map-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → location-service-map-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-6q2bdcd1.js → location-service-map-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → location-service-map-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → location-service-map-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → location-service-map-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-84wd9syh.js → location-service-map-84wd9syh.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → location-service-map-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → location-service-map-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-8wj87zfr.js → location-service-map-8wj87zfr.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → location-service-map-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → location-service-map-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a6k6eb26.js → location-service-map-a6k6eb26.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → location-service-map-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → location-service-map-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → location-service-map-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → location-service-map-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → location-service-map-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → location-service-map-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → location-service-map-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → location-service-map-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → location-service-map-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → location-service-map-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dajrwvna.js → location-service-map-dajrwvna.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → location-service-map-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → location-service-map-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → location-service-map-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e3qxr5gk.js → location-service-map-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → location-service-map-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → location-service-map-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-ec1grn59.js → location-service-map-ec1grn59.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → location-service-map-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → location-service-map-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → location-service-map-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → location-service-map-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → location-service-map-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → location-service-map-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → location-service-map-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → location-service-map-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → location-service-map-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-gftt206x.js → location-service-map-gftt206x.js} +0 -0
- /package/dist/chunks/{worktree-hcxmzztb.js → location-service-map-hcxmzztb.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → location-service-map-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → location-service-map-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → location-service-map-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jjkms2e6.js → location-service-map-jjkms2e6.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → location-service-map-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → location-service-map-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jze0r7bz.js → location-service-map-jze0r7bz.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → location-service-map-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-m18g726c.js → location-service-map-m18g726c.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → location-service-map-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → location-service-map-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → location-service-map-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → location-service-map-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → location-service-map-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-pkyv6v7h.js → location-service-map-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{worktree-pyv0edze.js → location-service-map-pyv0edze.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → location-service-map-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → location-service-map-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → location-service-map-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → location-service-map-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → location-service-map-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qg3g05ea.js → location-service-map-qg3g05ea.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → location-service-map-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → location-service-map-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → location-service-map-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → location-service-map-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-ve7vex1e.js → location-service-map-ve7vex1e.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → location-service-map-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wc3fc9cn.js → location-service-map-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → location-service-map-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wjj7prxr.js → location-service-map-wjj7prxr.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → location-service-map-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → location-service-map-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → location-service-map-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → location-service-map-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8f7s663.js → location-service-map-y8f7s663.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → location-service-map-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-ym463w8f.js → location-service-map-ym463w8f.js} +0 -0
- /package/dist/chunks/{worktree-z5v4ffb3.js → location-service-map-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → location-service-map-z9919s4g.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-x661k3y3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-t7n4d1yf.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event18
|
|
10
|
+
} from "./location-service-map-yjqnk9hn.js";
|
|
11
11
|
import {
|
|
12
12
|
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-service-map-bjkg2ks4.js";
|
|
15
15
|
import {
|
|
16
16
|
ID12,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service71
|
|
20
|
+
} from "./location-service-map-k4xdy46r.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID11
|
|
23
|
+
} from "./location-service-map-v2fstvx9.js";
|
|
24
24
|
import {
|
|
25
25
|
load2,
|
|
26
26
|
derive2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-service-map-7hff53af.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-service-map-j5chjq9f.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID7
|
|
33
|
+
} from "./location-service-map-wnsxc07p.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./location-service-map-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -163,7 +163,7 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
166
|
+
const providers = yield* Service71;
|
|
167
167
|
const bus = yield* Service84;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
@@ -230,14 +230,14 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(ID12.githubCopilot,
|
|
234
|
-
models.update(ID12.githubCopilot,
|
|
233
|
+
if (models.get(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"))) {
|
|
234
|
+
models.update(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"), (model) => {
|
|
235
235
|
model.enabled = false;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(
|
|
240
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
241
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
242
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
243
|
if (evt.model.providerID !== ID12.githubCopilot)
|
|
@@ -265,7 +265,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
265
265
|
return;
|
|
266
266
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
267
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
268
|
+
const agent = yield* ctx.agent.get({ agentID: ID7.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
271
|
if (agent?.data.model)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
render3
|
|
3
|
+
} from "./location-service-map-xfkkasph.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/optimize.ts
|
|
9
9
|
var exports_optimize = {};
|
|
@@ -13,7 +13,7 @@ __export(exports_optimize, {
|
|
|
13
13
|
ArceePlugin: () => ArceePlugin2,
|
|
14
14
|
KimiPlugin: () => KimiPlugin2,
|
|
15
15
|
MetaPlugin: () => MetaPlugin2,
|
|
16
|
-
OpenAIPlugin: () =>
|
|
16
|
+
OpenAIPlugin: () => OpenAIPlugin2,
|
|
17
17
|
OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
|
|
18
18
|
OptimizePlugin: () => exports_optimize,
|
|
19
19
|
Plugins: () => Plugins2
|
|
@@ -374,7 +374,7 @@ By default, match the surrounding comment density: where the code has none, add
|
|
|
374
374
|
`;
|
|
375
375
|
|
|
376
376
|
// src/plugin/optimize.ts
|
|
377
|
-
var
|
|
377
|
+
var OpenAIPlugin2 = make("opencode.prompt.openai", (model) => {
|
|
378
378
|
const id = model.id.toLowerCase();
|
|
379
379
|
if (!id.includes("gpt"))
|
|
380
380
|
return;
|
|
@@ -409,7 +409,7 @@ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
|
|
|
409
409
|
return;
|
|
410
410
|
return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
|
|
411
411
|
});
|
|
412
|
-
var Plugins2 = [
|
|
412
|
+
var Plugins2 = [OpenAIPlugin2, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
|
|
413
413
|
function make(id, optimize, mode = "override") {
|
|
414
414
|
return define({
|
|
415
415
|
id,
|
|
@@ -424,7 +424,7 @@ function make(id, optimize, mode = "override") {
|
|
|
424
424
|
const system = event.system[0];
|
|
425
425
|
if (!system)
|
|
426
426
|
return;
|
|
427
|
-
const rendered =
|
|
427
|
+
const rendered = render3(template, Object.keys(event.tools));
|
|
428
428
|
const text = mode === "append" ? `${system.text}
|
|
429
429
|
|
|
430
430
|
${rendered}` : rendered;
|
|
@@ -437,4 +437,4 @@ ${rendered}` : rendered;
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
export {
|
|
440
|
+
export { OpenAIPlugin2, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
|
|
@@ -2,42 +2,42 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
7
|
Service81,
|
|
8
8
|
node85
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-service-map-0fzbfnq7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service77,
|
|
12
|
+
node80
|
|
13
|
+
} from "./location-service-map-0a3bg0j5.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content3,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event20,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
|
-
ListInput: () =>
|
|
32
|
+
ListInput: () => ListInput5,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError10,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service76,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node79
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError10 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -75,14 +75,14 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
75
75
|
return `Access denied to directory: ${this.directory}`;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Content3 = Schema.Struct({
|
|
79
79
|
uri: Schema.String,
|
|
80
80
|
name: Schema.String.pipe(Schema.optional),
|
|
81
81
|
content: Schema.String,
|
|
82
82
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
83
83
|
mime: Schema.String
|
|
84
84
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
85
|
-
var
|
|
85
|
+
var ListInput5 = Schema.Struct({
|
|
86
86
|
path: Schema.String.pipe(Schema.optional)
|
|
87
87
|
});
|
|
88
88
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event20 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service76 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service76, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
114
|
const location = yield* Service81;
|
|
115
|
-
const search = yield*
|
|
115
|
+
const search = yield* Service77;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError10({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError10({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service76.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError10({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError10({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError10({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node79 = makeLocationNode({
|
|
175
|
+
service: Service76,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node, node85,
|
|
177
|
+
deps: [FSUtil.node, node85, node80]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError10, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content3, ListInput5, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event20, Service76, node79, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-8m6m0r52.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID4,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-service-map-trecwywa.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID4.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-b1a1n7cj.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_error, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError7,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
24
|
SessionErrors: () => exports_error,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -31,7 +31,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
31
31
|
import { Skill } from "@opencode/schema/skill";
|
|
32
32
|
import { SessionError } from "@opencode/schema/session-error";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class NotFoundError7 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
35
35
|
sessionID: SessionSchema2.ID
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
@@ -116,4 +116,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
116
116
|
}) {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export {
|
|
119
|
+
export { NotFoundError7, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID12
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-k4xdy46r.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-775gj3j1.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service37,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer17,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node41
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service37 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service37, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service34, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service37.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer17 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node41 = makeGlobalNode({ service: Service37, layer: layer17, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service37, makeLayer2, layer17, node41, exports_model_transport };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-service-map-bm095xha.js";
|
|
8
8
|
import {
|
|
9
9
|
Service84,
|
|
10
10
|
node88
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-service-map-t7n4d1yf.js";
|
|
12
12
|
import {
|
|
13
13
|
Service83,
|
|
14
14
|
node87
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-service-map-svcw9x3w.js";
|
|
16
16
|
import {
|
|
17
17
|
ID18,
|
|
18
18
|
Current3,
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
UpdateInput4,
|
|
21
21
|
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-service-map-v0es1rhs.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-service-map-rj3eygr5.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-service-map-sa8ekw3f.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node4
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node4 = makeLocationNode({
|
|
19
|
+
service: Service3,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service3, Service3.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service3, node4, bound2, exports_instance2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service44
|
|
3
|
+
} from "./location-service-map-51f5btjf.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-7fj5dwt0.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service49
|
|
9
|
+
} from "./location-service-map-f50nbvzh.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-service-map-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/shell.ts
|
|
18
18
|
var exports_shell3 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service44;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service49), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
match2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-y1fvbwt7.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/managed-policy.ts
|
|
9
9
|
var exports_managed_policy = {};
|
|
10
10
|
__export(exports_managed_policy, {
|
|
11
11
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service19,
|
|
13
13
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
14
|
+
layer: () => layer9,
|
|
15
|
+
node: () => node22,
|
|
16
16
|
statements: () => statements2
|
|
17
17
|
});
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Service19 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var layer9 = Layer.effect(Service19, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service19.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer22 = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node22 = makeGlobalNode({ service: Service19, layer: layer9, deps: [] });
|
|
40
40
|
function statements2(entries, organization) {
|
|
41
41
|
return [
|
|
42
42
|
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
|
|
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
|
|
|
50
50
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service19, layer9, node22, statements2, decision2, exports_managed_policy };
|