@opencode/core 0.0.0-dev-21382 → 0.0.0-dev-21387
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{file-mutation-0ryx4cv5.js → event-logger-04z4t5gq.js} +36 -36
- package/dist/chunks/{file-mutation-qz0pc5j5.js → event-logger-0davf6sd.js} +23 -23
- package/dist/chunks/{file-mutation-t550f9t1.js → event-logger-0gdmqesm.js} +4 -4
- package/dist/chunks/{file-mutation-6614sc7r.js → event-logger-0k360key.js} +17 -17
- package/dist/chunks/{file-mutation-0vbcp93d.js → event-logger-0vbcp93d.js} +2 -2
- package/dist/chunks/{file-mutation-jh0cf3gy.js → event-logger-0vhjnex2.js} +20 -20
- package/dist/chunks/{file-mutation-h8bq8y5a.js → event-logger-125wdn1j.js} +7 -7
- package/dist/chunks/{file-mutation-08rawchj.js → event-logger-143qq2q9.js} +3 -3
- package/dist/chunks/{file-mutation-1rabqv72.js → event-logger-15f8sa68.js} +26 -26
- package/dist/chunks/{file-mutation-3xymvwyv.js → event-logger-19jaxqvz.js} +12 -12
- package/dist/chunks/{file-mutation-pzz5tmzm.js → event-logger-1aasmg7z.js} +17 -17
- package/dist/chunks/{file-mutation-sadarxxx.js → event-logger-1f0rmtk8.js} +35 -35
- package/dist/chunks/{file-mutation-xmb5688y.js → event-logger-1pqty4gk.js} +35 -35
- package/dist/chunks/{file-mutation-kjdm35cs.js → event-logger-1pxz8ven.js} +5 -5
- package/dist/chunks/{file-mutation-khmqacep.js → event-logger-1w2wqhfv.js} +4 -4
- package/dist/chunks/{file-mutation-5q7ksgvn.js → event-logger-1wmz6vz9.js} +13 -13
- package/dist/chunks/{file-mutation-yebssw6b.js → event-logger-230vxcgc.js} +3 -3
- package/dist/chunks/{file-mutation-b8d7xm3m.js → event-logger-2bem4azs.js} +13 -13
- package/dist/chunks/{file-mutation-ctkvxx28.js → event-logger-2nca96aj.js} +23 -23
- package/dist/chunks/{file-mutation-v08krjdw.js → event-logger-2nfn53fa.js} +15 -15
- package/dist/chunks/{file-mutation-3p8nb07v.js → event-logger-2w2v9qgz.js} +5 -5
- package/dist/chunks/{file-mutation-4fm3tq8e.js → event-logger-3ga9038w.js} +17 -17
- package/dist/chunks/{file-mutation-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-3hwn7j4h.js → event-logger-3hwn7j4h.js} +2 -2
- package/dist/chunks/{file-mutation-rp8hjwgz.js → event-logger-3jjnp2ys.js} +14 -14
- package/dist/chunks/{file-mutation-pkpp0jng.js → event-logger-3r4bkgjj.js} +4 -4
- package/dist/chunks/{file-mutation-3smtnn6g.js → event-logger-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-mutation-3tvqynh2.js → event-logger-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-mutation-zak5s96v.js → event-logger-3v37xfbr.js} +4 -4
- package/dist/chunks/{file-mutation-3zsf4n22.js → event-logger-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-mutation-5gxex9x8.js → event-logger-4r6mwygs.js} +8 -8
- package/dist/chunks/{file-mutation-eftecqvh.js → event-logger-4t8k2r1g.js} +26 -26
- package/dist/chunks/{file-mutation-j228j2n8.js → event-logger-4v86bgjk.js} +2 -2
- package/dist/chunks/{file-mutation-dtgy4jeb.js → event-logger-4zvqx7mh.js} +7 -7
- package/dist/chunks/{file-mutation-phk9d88z.js → event-logger-5187w131.js} +45 -45
- package/dist/chunks/{file-mutation-54ma36ye.js → event-logger-54ma36ye.js} +1 -1
- package/dist/chunks/{file-mutation-re4gtx8j.js → event-logger-5757br3t.js} +25 -25
- package/dist/chunks/{file-mutation-083bb7kr.js → event-logger-58ez54yx.js} +1 -1
- package/dist/chunks/{file-mutation-wdasqx75.js → event-logger-59c10ypj.js} +4 -4
- package/dist/chunks/{file-mutation-59b3s74c.js → event-logger-5e84ase9.js} +11 -11
- package/dist/chunks/{file-mutation-s8yypaqy.js → event-logger-5evw82hy.js} +43 -43
- package/dist/chunks/{file-mutation-5g57z1ma.js → event-logger-5g57z1ma.js} +1 -1
- package/dist/chunks/{file-mutation-hebc8qwk.js → event-logger-5g5sexc8.js} +20 -20
- package/dist/chunks/{file-mutation-5m9w47nd.js → event-logger-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-mutation-e3qxr5gk.js → event-logger-5qd3pb7m.js} +2 -2
- package/dist/chunks/{file-mutation-6gbkbwjk.js → event-logger-5t1xxmjj.js} +19 -19
- package/dist/chunks/{file-mutation-pjhesq7k.js → event-logger-61b1bym2.js} +11 -11
- package/dist/chunks/{file-mutation-dqj1zep9.js → event-logger-62q9wyeh.js} +5 -5
- package/dist/chunks/{file-mutation-6827pfxn.js → event-logger-6827pfxn.js} +1 -1
- package/dist/chunks/event-logger-687tthex.js +517 -0
- package/dist/chunks/{file-mutation-5tew088c.js → event-logger-69k4q2vg.js} +13 -13
- package/dist/chunks/{file-mutation-xcevffwp.js → event-logger-6ssy61w6.js} +82 -82
- package/dist/chunks/{file-mutation-td1fm6rg.js → event-logger-6vekzxw1.js} +18 -18
- package/dist/chunks/{file-mutation-6xb47vfp.js → event-logger-6xb47vfp.js} +1 -1
- package/dist/chunks/{file-mutation-882c6a2f.js → event-logger-718nvvp0.js} +20 -20
- package/dist/chunks/{file-mutation-7rakk0e1.js → event-logger-72xe526g.js} +37 -37
- package/dist/chunks/{file-mutation-gkm6v4vd.js → event-logger-74t224rd.js} +40 -40
- package/dist/chunks/{file-mutation-5e1pzs32.js → event-logger-76ymgwed.js} +9 -9
- package/dist/chunks/{file-mutation-775gj3j1.js → event-logger-775gj3j1.js} +2 -2
- package/dist/chunks/{file-mutation-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-2k8khapm.js → event-logger-7dqw4kz8.js} +5 -5
- package/dist/chunks/{file-mutation-hzm5xem3.js → event-logger-7p7hk8sv.js} +30 -30
- package/dist/chunks/{file-mutation-f0y10khq.js → event-logger-7ppz45ns.js} +32 -32
- package/dist/chunks/{file-mutation-cjj3vnjk.js → event-logger-7yjr90q2.js} +2 -2
- package/dist/chunks/{file-mutation-dr99d0ac.js → event-logger-89an5fkr.js} +3 -3
- package/dist/chunks/{file-mutation-ta0tc5c9.js → event-logger-8ev3b84m.js} +29 -29
- package/dist/chunks/{file-mutation-8m6m0r52.js → event-logger-8m6m0r52.js} +1 -1
- package/dist/chunks/{file-mutation-8mywswrd.js → event-logger-8mywswrd.js} +1 -1
- package/dist/chunks/{file-mutation-t80p7bv8.js → event-logger-8s48m379.js} +9 -9
- package/dist/chunks/{file-mutation-ye93bcpk.js → event-logger-8v8qb0a2.js} +15 -15
- package/dist/chunks/{file-mutation-8b58bdns.js → event-logger-8yp148f8.js} +35 -35
- package/dist/chunks/{file-mutation-ydjhy7jp.js → event-logger-91pznn53.js} +1 -1
- package/dist/chunks/{file-mutation-1f7m535t.js → event-logger-92gz47bb.js} +16 -16
- package/dist/chunks/{file-mutation-b6ag07rz.js → event-logger-965mmkss.js} +4 -4
- package/dist/chunks/{file-mutation-7q1btr1k.js → event-logger-98h6b40k.js} +29 -28
- package/dist/chunks/{file-mutation-2nb55xn8.js → event-logger-9gp6apfa.js} +31 -31
- package/dist/chunks/{file-mutation-2k9fjx65.js → event-logger-9hwaqfsw.js} +5 -5
- package/dist/chunks/{file-mutation-h7vxqxg2.js → event-logger-9pz8w8a5.js} +30 -30
- package/dist/chunks/{file-mutation-a9km70y1.js → event-logger-9vw55b6z.js} +5 -5
- package/dist/chunks/{file-mutation-a20pjse5.js → event-logger-a20pjse5.js} +3 -3
- package/dist/chunks/{file-mutation-d7q21r69.js → event-logger-a5b1fpat.js} +9 -9
- package/dist/chunks/{file-mutation-tbmac1c7.js → event-logger-a89e0tac.js} +4 -4
- package/dist/chunks/{file-mutation-322qbvpa.js → event-logger-ady6em11.js} +18 -18
- package/dist/chunks/{file-mutation-xs3kgst9.js → event-logger-aewryxaa.js} +25 -25
- package/dist/chunks/{file-mutation-72vb8ye8.js → event-logger-ajc6q3j1.js} +12 -12
- package/dist/chunks/{file-mutation-5zbwkh3w.js → event-logger-apvbqsv3.js} +6 -6
- package/dist/chunks/{file-mutation-gdgy10dy.js → event-logger-aqgqfsze.js} +30 -30
- package/dist/chunks/{file-mutation-vt9q9evw.js → event-logger-arvfy1x3.js} +10 -10
- package/dist/chunks/{file-mutation-rqhevtjr.js → event-logger-avcs2e0g.js} +11 -11
- package/dist/chunks/{file-mutation-ac5hykxd.js → event-logger-axpqfvf7.js} +23 -23
- package/dist/chunks/{file-mutation-94apha83.js → event-logger-ay857t3e.js} +8 -8
- package/dist/chunks/{file-mutation-9q2hdfp3.js → event-logger-ayw5mjn6.js} +27 -27
- package/dist/chunks/{file-mutation-addxnjmp.js → event-logger-azwe5p1w.js} +4 -4
- package/dist/chunks/{file-mutation-h71w788e.js → event-logger-b4s8ej7r.js} +9 -9
- package/dist/chunks/{file-mutation-zcepehk0.js → event-logger-b5d3j6rk.js} +5 -5
- package/dist/chunks/{file-mutation-rqbas9ax.js → event-logger-b7r64wqx.js} +23 -23
- package/dist/chunks/{file-mutation-5tnh3egr.js → event-logger-b8p2k3p8.js} +4 -4
- package/dist/chunks/{file-mutation-zcrspsvn.js → event-logger-baaqp4zd.js} +4 -4
- package/dist/chunks/{file-mutation-6p9h6rqd.js → event-logger-bmh1v8cy.js} +96 -96
- package/dist/chunks/{file-mutation-0eymxkpr.js → event-logger-brc60g1j.js} +53 -53
- package/dist/chunks/{file-mutation-fcs05vrx.js → event-logger-bx5fxdna.js} +27 -27
- package/dist/chunks/{file-mutation-1ep4rre3.js → event-logger-bzeyqsqd.js} +4 -4
- package/dist/chunks/{file-mutation-c1fqxshp.js → event-logger-c1fqxshp.js} +3 -3
- package/dist/chunks/{file-mutation-8rddq889.js → event-logger-cgb09904.js} +28 -28
- package/dist/chunks/{file-mutation-py2d2bhf.js → event-logger-cr69fjw7.js} +12 -12
- package/dist/chunks/{file-mutation-b4ragnr9.js → event-logger-crjfqpdy.js} +23 -23
- package/dist/chunks/{file-mutation-rpnfjj5z.js → event-logger-d3e8d5h7.js} +33 -33
- package/dist/chunks/{file-mutation-5yc3gv1m.js → event-logger-d4t4d4a4.js} +13 -13
- package/dist/chunks/{file-mutation-3hefbbgh.js → event-logger-d855j11k.js} +7 -7
- package/dist/chunks/{file-mutation-bwpes1j3.js → event-logger-d9gse1kg.js} +24 -24
- package/dist/chunks/{file-mutation-2ccjc77m.js → event-logger-dd9rmwq8.js} +22 -22
- package/dist/chunks/{file-mutation-xfktpdj6.js → event-logger-dq407baf.js} +6 -6
- package/dist/chunks/{file-mutation-cefkz2r6.js → event-logger-dqkkx36v.js} +4 -4
- package/dist/chunks/{file-mutation-5e2h11rs.js → event-logger-dqz2rgy5.js} +4 -4
- package/dist/chunks/{file-mutation-xfkkasph.js → event-logger-drwq78ky.js} +4 -4
- package/dist/chunks/{file-mutation-gc69w8x5.js → event-logger-dtnhn6dh.js} +50 -50
- package/dist/chunks/{file-mutation-1rmqtx3n.js → event-logger-dtxsy7wm.js} +12 -12
- package/dist/chunks/{file-mutation-967benbv.js → event-logger-dys7k0s0.js} +11 -11
- package/dist/chunks/{file-mutation-4mwpykj0.js → event-logger-dzse07y5.js} +6 -6
- package/dist/chunks/{file-mutation-yr4z1qtt.js → event-logger-e5qxg8h8.js} +47 -47
- package/dist/chunks/{file-mutation-cj2gcgr0.js → event-logger-e7a0tnjd.js} +10 -10
- package/dist/chunks/{file-mutation-8f461wgz.js → event-logger-eb8hvb8b.js} +38 -38
- package/dist/chunks/{file-mutation-eej6y6fw.js → event-logger-eej6y6fw.js} +2 -2
- package/dist/chunks/{file-mutation-ef5x83kb.js → event-logger-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-mutation-mhg37pmq.js → event-logger-eg96fwp0.js} +49 -49
- package/dist/chunks/{file-mutation-qnq8mqeg.js → event-logger-enp2k9s2.js} +28 -28
- package/dist/chunks/{file-mutation-21xx9xc6.js → event-logger-evjtt84t.js} +22 -22
- package/dist/chunks/{file-mutation-k2r06wff.js → event-logger-f5xhthqg.js} +4 -4
- package/dist/chunks/{file-mutation-70ake3ft.js → event-logger-fa83yftt.js} +17 -17
- package/dist/chunks/{file-mutation-s5qxm7c2.js → event-logger-fbndn9th.js} +11 -11
- package/dist/chunks/{file-mutation-3e2gnrvk.js → event-logger-fbx2zj7f.js} +24 -24
- package/dist/chunks/{file-mutation-fcy631f0.js → event-logger-fcy631f0.js} +1 -1
- package/dist/chunks/{file-mutation-ea6pkrn3.js → event-logger-fepwfk8f.js} +2 -2
- package/dist/chunks/{file-mutation-cwa6csj7.js → event-logger-ft3hqk2c.js} +9 -9
- package/dist/chunks/{file-mutation-mrv22f7s.js → event-logger-g0asar3z.js} +17 -17
- package/dist/chunks/{file-mutation-z0hcq1xj.js → event-logger-g0t57f6q.js} +31 -31
- package/dist/chunks/{file-mutation-brdz51fb.js → event-logger-g0zeqm1b.js} +11 -11
- package/dist/chunks/{file-mutation-89a6x4zk.js → event-logger-g1zdr5n1.js} +19 -19
- package/dist/chunks/{file-mutation-e27v7yqk.js → event-logger-g68bhc8c.js} +15 -15
- package/dist/chunks/{file-mutation-gd4qta3r.js → event-logger-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-mutation-94kdqvgb.js → event-logger-gma6ksnq.js} +9 -9
- package/dist/chunks/{file-mutation-f8fzv2x1.js → event-logger-gn5cfhfe.js} +3 -3
- package/dist/chunks/{file-mutation-jws504fy.js → event-logger-gws3ea32.js} +15 -15
- package/dist/chunks/{file-mutation-a6gf0ppz.js → event-logger-h5jqacnq.js} +3 -3
- package/dist/chunks/{file-mutation-h6vf3j39.js → event-logger-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-mutation-3179ttex.js → event-logger-hd0py222.js} +14 -14
- package/dist/chunks/{file-mutation-taz2ghkg.js → event-logger-hff9h1tp.js} +11 -11
- package/dist/chunks/{file-mutation-wnyvz4dk.js → event-logger-hfrvtkzg.js} +48 -48
- package/dist/chunks/{file-mutation-7tppg67e.js → event-logger-hg105040.js} +9 -9
- package/dist/chunks/{file-mutation-hgz4x7wa.js → event-logger-hgz4x7wa.js} +1 -1
- package/dist/chunks/{file-mutation-gtndzxs8.js → event-logger-hjcmja4m.js} +6 -6
- package/dist/chunks/{file-mutation-fa4te4zq.js → event-logger-hp80z79w.js} +30 -30
- package/dist/chunks/event-logger-ht5y0zrb.js +18 -0
- package/dist/chunks/{file-mutation-8m71mjfm.js → event-logger-j1a03btz.js} +5 -5
- package/dist/chunks/{file-mutation-gk5p4syv.js → event-logger-j9kxwsfy.js} +24 -24
- package/dist/chunks/{file-mutation-anhf8h1n.js → event-logger-jg914ar5.js} +3 -3
- package/dist/chunks/{file-mutation-cafkpj5t.js → event-logger-jkqvgxx0.js} +33 -33
- package/dist/chunks/{file-mutation-6k294dg0.js → event-logger-jmg1zvdz.js} +18 -18
- package/dist/chunks/{file-mutation-bgc5ggmx.js → event-logger-jpqeh2wc.js} +4 -4
- package/dist/chunks/{file-mutation-9vkqjddw.js → event-logger-jsqaqst9.js} +11 -11
- package/dist/chunks/{file-mutation-y71avatq.js → event-logger-jwcy2c2z.js} +4 -4
- package/dist/chunks/{file-mutation-zh98cvta.js → event-logger-jx5mtn20.js} +8 -8
- package/dist/chunks/{file-mutation-xgrstn99.js → event-logger-k0w48235.js} +14 -14
- package/dist/chunks/{file-mutation-rrb9pz5a.js → event-logger-k1tsx7e9.js} +1 -1
- package/dist/chunks/{file-mutation-szyc73at.js → event-logger-k69cqzmt.js} +11 -11
- package/dist/chunks/{file-mutation-qaf3te0r.js → event-logger-kh3zyzzy.js} +9 -9
- package/dist/chunks/{file-mutation-cmftrgtq.js → event-logger-kj230rep.js} +36 -36
- package/dist/chunks/{file-mutation-nwsypg2h.js → event-logger-kjrd9b6q.js} +11 -11
- package/dist/chunks/{file-mutation-xp80041t.js → event-logger-kracvgcn.js} +5 -5
- package/dist/chunks/{file-mutation-ps2trwbq.js → event-logger-krf1rydg.js} +3 -3
- package/dist/chunks/{file-mutation-kwb1v3vj.js → event-logger-kwb1v3vj.js} +1 -1
- package/dist/chunks/{file-mutation-ke9g58qf.js → event-logger-kx0rrjhv.js} +13 -13
- package/dist/chunks/{file-mutation-w3g2sjny.js → event-logger-m2tznbx2.js} +14 -14
- package/dist/chunks/{file-mutation-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-maspj1v3.js → event-logger-maspj1v3.js} +1 -1
- package/dist/chunks/{file-mutation-y59fqsw4.js → event-logger-mh8c02nx.js} +19 -19
- package/dist/chunks/{file-mutation-wqabm0nw.js → event-logger-mmcnbdg7.js} +15 -15
- package/dist/chunks/{file-mutation-8sq4gyz7.js → event-logger-n0wcvart.js} +9 -9
- package/dist/chunks/{file-mutation-y7nndgyc.js → event-logger-nd4tfyg0.js} +9 -9
- package/dist/chunks/{file-mutation-92swnv4m.js → event-logger-ngts6ef0.js} +8 -8
- package/dist/chunks/{file-mutation-khcab136.js → event-logger-nhc3bfbq.js} +24 -24
- package/dist/chunks/{file-mutation-0r2cw8fn.js → event-logger-nn0vxdsv.js} +8 -8
- package/dist/chunks/{file-mutation-dccm8yky.js → event-logger-ns720xzt.js} +13 -13
- package/dist/chunks/{file-mutation-v13b12ef.js → event-logger-nz56sr1f.js} +5 -5
- package/dist/chunks/{file-mutation-92waa1rm.js → event-logger-nzvzhybn.js} +7 -7
- package/dist/chunks/{file-mutation-2kjrre30.js → event-logger-p5fvf2qr.js} +18 -18
- package/dist/chunks/{file-mutation-p4mj4rdp.js → event-logger-pa8pe2x7.js} +8 -8
- package/dist/chunks/{file-mutation-pjvnvgmy.js → event-logger-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-mutation-pknna89w.js → event-logger-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-ws0ez784.js → event-logger-q9kcnnwr.js} +16 -16
- package/dist/chunks/{file-mutation-g18yemqx.js → event-logger-qeda0rp6.js} +44 -44
- package/dist/chunks/{file-mutation-zr8t0btn.js → event-logger-qgqe4jb4.js} +190 -190
- package/dist/chunks/{file-mutation-7bm0e0dp.js → event-logger-qgwrdebb.js} +25 -25
- package/dist/chunks/{file-mutation-n5sg9n8b.js → event-logger-qkd85dmw.js} +34 -34
- package/dist/chunks/{file-mutation-27p00kw8.js → event-logger-qkhkydxx.js} +11 -11
- package/dist/chunks/{file-mutation-wpys2vyv.js → event-logger-qmgn6hh6.js} +5 -5
- package/dist/chunks/{file-mutation-qnc92qwc.js → event-logger-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-mutation-qsdy395h.js → event-logger-qsdy395h.js} +1 -1
- package/dist/chunks/{file-mutation-n7c99d35.js → event-logger-r79z9z6k.js} +18 -18
- package/dist/chunks/event-logger-r7y3ynm2.js +257 -0
- package/dist/chunks/{file-mutation-rdw6cm16.js → event-logger-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-mutation-rert0e01.js → event-logger-rert0e01.js} +2 -2
- package/dist/chunks/{file-mutation-rj3eygr5.js → event-logger-rj3eygr5.js} +2 -2
- package/dist/chunks/{file-mutation-8sze2n9a.js → event-logger-rkprpv83.js} +6 -6
- package/dist/chunks/{file-mutation-sbr2r95b.js → event-logger-rq0bn2t5.js} +25 -25
- package/dist/chunks/{file-mutation-jspydjgs.js → event-logger-s4fkhgs2.js} +9 -9
- package/dist/chunks/{file-mutation-sa8ekw3f.js → event-logger-sa8ekw3f.js} +2 -2
- package/dist/chunks/{file-mutation-cpewaxbb.js → event-logger-sdvhx7x2.js} +34 -34
- package/dist/chunks/{file-mutation-t4bhgeye.js → event-logger-sjf9w9sn.js} +10 -11
- package/dist/chunks/{file-mutation-8aaqm6qj.js → event-logger-sp5zyyma.js} +8 -8
- package/dist/chunks/{file-mutation-kf0ydnx7.js → event-logger-sqn3n8r9.js} +15 -15
- package/dist/chunks/{file-mutation-ts412n3k.js → event-logger-srwgmrb6.js} +40 -40
- package/dist/chunks/{file-mutation-4b4em5d4.js → event-logger-sx0rs7d0.js} +36 -36
- package/dist/chunks/{file-mutation-ed1g29hy.js → event-logger-sxcaecc0.js} +3 -3
- package/dist/chunks/{file-mutation-syv4x271.js → event-logger-syv4x271.js} +1 -1
- package/dist/chunks/{file-mutation-0nqg4kny.js → event-logger-t0xyvzmy.js} +10 -10
- package/dist/chunks/{file-mutation-hry64yvt.js → event-logger-t2jvn6s6.js} +19 -19
- package/dist/chunks/{file-mutation-av3f13xe.js → event-logger-t2sc8hs2.js} +11 -11
- package/dist/chunks/{file-mutation-q2j64v3h.js → event-logger-t35h127n.js} +6 -6
- package/dist/chunks/{file-mutation-d9a4qpg5.js → event-logger-t7hbmgbx.js} +32 -32
- package/dist/chunks/{file-mutation-hh1mvxn6.js → event-logger-t928kr56.js} +58 -58
- package/dist/chunks/{file-mutation-tazgh4e4.js → event-logger-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-mutation-tcezcvh9.js → event-logger-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-mutation-tdstcens.js → event-logger-tdstcens.js} +1 -1
- package/dist/chunks/{file-mutation-5g9pfety.js → event-logger-tg8yqqgq.js} +27 -27
- package/dist/chunks/{file-mutation-b27vhd2z.js → event-logger-tkmwgdpd.js} +7 -7
- package/dist/chunks/{file-mutation-tm0kqsz3.js → event-logger-tm0kqsz3.js} +1 -1
- package/dist/chunks/{file-mutation-4yb17086.js → event-logger-tv4f17r3.js} +42 -42
- package/dist/chunks/{file-mutation-tyytaxap.js → event-logger-tyytaxap.js} +1 -1
- package/dist/chunks/{file-mutation-h6mg8ssc.js → event-logger-tzt8skxj.js} +11 -11
- package/dist/chunks/{file-mutation-8g01qe2v.js → event-logger-v1vwdnn2.js} +36 -36
- package/dist/chunks/{file-mutation-nn5t8xjm.js → event-logger-v2ae6mvm.js} +50 -50
- package/dist/chunks/{file-mutation-v7p4zvkq.js → event-logger-v7p4zvkq.js} +2 -2
- package/dist/chunks/{file-mutation-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-bz5hym84.js → event-logger-veszqgr6.js} +21 -21
- package/dist/chunks/{file-mutation-m1z5ek08.js → event-logger-vh716j4k.js} +8 -8
- package/dist/chunks/{file-mutation-x5dktsa5.js → event-logger-vkwbrgfm.js} +12 -12
- package/dist/chunks/{file-mutation-j8143y8a.js → event-logger-vnxnqzwp.js} +14 -14
- package/dist/chunks/{file-mutation-x6pyv2yz.js → event-logger-vykevjvn.js} +5 -5
- package/dist/chunks/{file-mutation-vzs5sf6e.js → event-logger-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-mutation-4xfddg59.js → event-logger-w0dm5bba.js} +19 -19
- package/dist/chunks/{file-mutation-84txncab.js → event-logger-w1eejvng.js} +5 -5
- package/dist/chunks/{file-mutation-r5z9qnpm.js → event-logger-w2vjr3dt.js} +11 -11
- package/dist/chunks/{file-mutation-bvefa49m.js → event-logger-w3pa87t5.js} +18 -18
- package/dist/chunks/{file-mutation-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-zz19y5js.js → event-logger-w6a51qjs.js} +17 -17
- package/dist/chunks/{file-mutation-gqagkb1x.js → event-logger-w6p74w5s.js} +11 -11
- package/dist/chunks/{file-mutation-kqv3x6rj.js → event-logger-waskdk5r.js} +9 -9
- package/dist/chunks/{file-mutation-d06kvh6k.js → event-logger-wckktynd.js} +58 -58
- package/dist/chunks/{file-mutation-wd87259q.js → event-logger-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-qb9hezfc.js → event-logger-wf2f137k.js} +25 -25
- package/dist/chunks/{file-mutation-df9339xm.js → event-logger-wfakye87.js} +10 -10
- package/dist/chunks/{file-mutation-ywt8jp22.js → event-logger-wjr9rjd7.js} +6 -6
- package/dist/chunks/{file-mutation-x0k3z69x.js → event-logger-wqc59w9s.js} +16 -16
- package/dist/chunks/{file-mutation-cmkgjnh5.js → event-logger-wt8k87w5.js} +10 -10
- package/dist/chunks/{file-mutation-mwahwpcs.js → event-logger-wtqpmmty.js} +22 -22
- package/dist/chunks/{file-mutation-2f26zb5h.js → event-logger-wzcgjz6k.js} +32 -32
- package/dist/chunks/{file-mutation-49ma6pwq.js → event-logger-x0414q09.js} +16 -16
- package/dist/chunks/{file-mutation-0xz2mzgc.js → event-logger-xbwvg8w4.js} +26 -26
- package/dist/chunks/{file-mutation-eh6ej367.js → event-logger-xj1aydcy.js} +5 -5
- package/dist/chunks/{file-mutation-8xxydye1.js → event-logger-xvcwxf7g.js} +13 -13
- package/dist/chunks/{file-mutation-9wqkfqmh.js → event-logger-xxjygm7w.js} +64 -64
- package/dist/chunks/{file-mutation-qxns1yyr.js → event-logger-y0jvwb8z.js} +15 -15
- package/dist/chunks/{file-mutation-9qkvvyqp.js → event-logger-y0pbe0yv.js} +34 -34
- package/dist/chunks/{file-mutation-y1fvbwt7.js → event-logger-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-mutation-3k72abas.js → event-logger-y6rvfep9.js} +23 -23
- package/dist/chunks/{file-mutation-mrcqdzkn.js → event-logger-y7x08173.js} +14 -14
- package/dist/chunks/{file-mutation-4f5ezzxr.js → event-logger-yb0xqw03.js} +5 -5
- package/dist/chunks/{file-mutation-gnhr360k.js → event-logger-yfx0wecs.js} +14 -14
- package/dist/chunks/event-logger-yp8vcx0q.js +26 -0
- package/dist/chunks/{file-mutation-5xa5t8mt.js → event-logger-ytkm1fdb.js} +22 -22
- package/dist/chunks/{file-mutation-kz7145yv.js → event-logger-yzk9yanh.js} +6 -6
- package/dist/chunks/{file-mutation-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-z18fegx4.js → event-logger-z18fegx4.js} +1 -1
- package/dist/chunks/{file-mutation-7k4yx5jm.js → event-logger-z7vjr8ds.js} +18 -18
- package/dist/chunks/{file-mutation-56byzq03.js → event-logger-zh7te6am.js} +9 -9
- package/dist/chunks/{file-mutation-0fn2v7vk.js → event-logger-zm1nwptd.js} +4 -4
- package/dist/chunks/{file-mutation-ktb21g4v.js → event-logger-zp2m4z3e.js} +16 -16
- package/dist/chunks/{file-mutation-zr2ceqn5.js → event-logger-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-mutation-zxq2ej10.js → event-logger-zxq2ej10.js} +1 -1
- package/dist/chunks/{file-mutation-9mnf2aaj.js → event-logger-zxr4n7nr.js} +11 -11
- 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 +87 -87
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- 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 +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- 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 +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- 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 +1 -1
- 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 +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 +370 -370
- 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 +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +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 +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +108 -108
- 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 +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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +158 -158
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- 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-retry.js +1 -1
- package/dist/model.js +104 -104
- 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 +115 -115
- 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 +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- 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 +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- 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/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 +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- 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 +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- 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 +349 -349
- 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 +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 +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +217 -217
- 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 +93 -93
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- 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 +138 -138
- 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 +218 -218
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +157 -157
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- 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 +95 -95
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -223
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- 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 +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -202
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- 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 +130 -130
- 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 +126 -126
- 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 +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +211 -211
- package/dist/tool/plugin/todo.js +136 -136
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +114 -114
- 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/types/session/transfer.d.ts +2 -2
- package/dist/types/worktree/git.d.ts +3 -3
- 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 +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 +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 +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/file-mutation-2g1qnqk3.js +0 -257
- package/dist/chunks/file-mutation-7fj5dwt0.js +0 -18
- package/dist/chunks/file-mutation-v1yvzs5v.js +0 -517
- package/dist/chunks/file-mutation-zcrrhp36.js +0 -26
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-1kg9ymc8.js → event-logger-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2axfhc9x.js → event-logger-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-mutation-2bv980vf.js → event-logger-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → event-logger-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3t0ybcrp.js → event-logger-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → event-logger-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → event-logger-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-6q2bdcd1.js → event-logger-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → event-logger-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-84wd9syh.js → event-logger-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → event-logger-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → event-logger-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → event-logger-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hcxmzztb.js → event-logger-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → event-logger-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jze0r7bz.js → event-logger-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-m18g726c.js → event-logger-m18g726c.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-pkyv6v7h.js → event-logger-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-mutation-pyv0edze.js → event-logger-pyv0edze.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-ve7vex1e.js → event-logger-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wjj7prxr.js → event-logger-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → event-logger-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z5v4ffb3.js → event-logger-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ID18,
|
|
3
|
+
Info29,
|
|
4
4
|
SessionSchema2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./event-logger-143qq2q9.js";
|
|
6
6
|
import {
|
|
7
7
|
RelativePath2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./event-logger-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Service86,
|
|
11
11
|
node90
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-230vxcgc.js";
|
|
13
13
|
import {
|
|
14
14
|
isSynced2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service83,
|
|
16
|
+
node87
|
|
17
|
+
} from "./event-logger-cr69fjw7.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service80,
|
|
20
|
+
node84
|
|
21
|
+
} from "./event-logger-5evw82hy.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
Service52,
|
|
24
|
+
node55
|
|
25
|
+
} from "./event-logger-dzse07y5.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionEvent2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./event-logger-ec1grn59.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionMessageTable2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./event-logger-c1fqxshp.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
33
|
+
NotFoundError8,
|
|
34
34
|
InvalidListCursorError2,
|
|
35
35
|
MessageNotFoundError2,
|
|
36
36
|
ForkEmptyError2,
|
|
@@ -42,78 +42,78 @@ import {
|
|
|
42
42
|
BusyError2,
|
|
43
43
|
InboxConflictError2,
|
|
44
44
|
SkillNotFoundError2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./event-logger-t35h127n.js";
|
|
46
46
|
import {
|
|
47
47
|
current2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./event-logger-dqkkx36v.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
50
|
+
node54
|
|
51
|
+
} from "./event-logger-4t8k2r1g.js";
|
|
52
52
|
import {
|
|
53
53
|
snapshot2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./event-logger-g68bhc8c.js";
|
|
55
55
|
import {
|
|
56
56
|
Slug2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./event-logger-gebd4c9n.js";
|
|
58
58
|
import {
|
|
59
59
|
SessionAlreadyProjected2,
|
|
60
|
-
|
|
61
|
-
} from "./
|
|
60
|
+
node25
|
|
61
|
+
} from "./event-logger-evjtt84t.js";
|
|
62
62
|
import {
|
|
63
63
|
Metadata2,
|
|
64
|
-
|
|
65
|
-
} from "./
|
|
64
|
+
node39
|
|
65
|
+
} from "./event-logger-k69cqzmt.js";
|
|
66
66
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
node60
|
|
70
|
-
} from "./file-mutation-ws0ez784.js";
|
|
71
|
-
import {
|
|
72
|
-
Service61,
|
|
67
|
+
ListInput4,
|
|
68
|
+
Service60,
|
|
73
69
|
node63
|
|
74
|
-
} from "./
|
|
70
|
+
} from "./event-logger-q9kcnnwr.js";
|
|
75
71
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
} from "./
|
|
72
|
+
Service84,
|
|
73
|
+
node88
|
|
74
|
+
} from "./event-logger-zp2m4z3e.js";
|
|
75
|
+
import {
|
|
76
|
+
Service49,
|
|
77
|
+
node53
|
|
78
|
+
} from "./event-logger-eb8hvb8b.js";
|
|
79
79
|
import {
|
|
80
80
|
llmClient2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./event-logger-775gj3j1.js";
|
|
82
82
|
import {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
} from "./
|
|
83
|
+
Service27,
|
|
84
|
+
node31
|
|
85
|
+
} from "./event-logger-kh3zyzzy.js";
|
|
86
86
|
import {
|
|
87
87
|
generate2
|
|
88
|
-
} from "./
|
|
88
|
+
} from "./event-logger-92gz47bb.js";
|
|
89
89
|
import {
|
|
90
90
|
execute2
|
|
91
|
-
} from "./
|
|
91
|
+
} from "./event-logger-nn0vxdsv.js";
|
|
92
92
|
import {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} from "./
|
|
93
|
+
Service68,
|
|
94
|
+
node71
|
|
95
|
+
} from "./event-logger-zh7te6am.js";
|
|
96
96
|
import {
|
|
97
97
|
DestinationNotFoundError2,
|
|
98
98
|
DestinationNotDirectoryError2,
|
|
99
99
|
DestinationUnavailableError2,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} from "./
|
|
100
|
+
Service21,
|
|
101
|
+
node24
|
|
102
|
+
} from "./event-logger-wckktynd.js";
|
|
103
103
|
import {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
} from "./
|
|
104
|
+
Service39,
|
|
105
|
+
node43
|
|
106
|
+
} from "./event-logger-sp5zyyma.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./
|
|
108
|
+
make12
|
|
109
|
+
} from "./event-logger-1pqty4gk.js";
|
|
110
110
|
import {
|
|
111
111
|
TurnRangeError2,
|
|
112
112
|
turn2
|
|
113
|
-
} from "./
|
|
113
|
+
} from "./event-logger-4r6mwygs.js";
|
|
114
114
|
import {
|
|
115
115
|
__export
|
|
116
|
-
} from "./
|
|
116
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
117
117
|
|
|
118
118
|
// src/session.ts
|
|
119
119
|
var exports_session = {};
|
|
@@ -124,24 +124,24 @@ __export(exports_session, {
|
|
|
124
124
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
125
125
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
126
126
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
127
|
-
ID: () =>
|
|
127
|
+
ID: () => ID18,
|
|
128
128
|
InboxConflictError: () => InboxConflictError2,
|
|
129
|
-
Info: () =>
|
|
129
|
+
Info: () => Info29,
|
|
130
130
|
InvalidListCursorError: () => InvalidListCursorError2,
|
|
131
131
|
ListAnchor: () => ListAnchor2,
|
|
132
132
|
ListCursor: () => ListCursor2,
|
|
133
|
-
ListInput: () =>
|
|
133
|
+
ListInput: () => ListInput2,
|
|
134
134
|
MessageDecodeError: () => MessageDecodeError2,
|
|
135
135
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
136
|
-
NotFoundError: () =>
|
|
136
|
+
NotFoundError: () => NotFoundError8,
|
|
137
137
|
PromptConflictError: () => PromptConflictError2,
|
|
138
|
-
Service: () =>
|
|
138
|
+
Service: () => Service20,
|
|
139
139
|
Session: () => exports_session,
|
|
140
140
|
SessionSchema: () => SessionSchema2,
|
|
141
141
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
142
142
|
SyntheticConflictError: () => SyntheticConflictError2,
|
|
143
143
|
TurnRangeError: () => TurnRangeError2,
|
|
144
|
-
node: () =>
|
|
144
|
+
node: () => node23
|
|
145
145
|
});
|
|
146
146
|
import { DateTime, Effect, Layer, Schema, Context, Stream } from "effect";
|
|
147
147
|
import { LLMClient } from "@opencode/ai";
|
|
@@ -151,28 +151,28 @@ import { Model } from "@opencode/schema/model";
|
|
|
151
151
|
import path from "path";
|
|
152
152
|
import { Node } from "@opencode/util/effect/app-node";
|
|
153
153
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
154
|
-
var
|
|
154
|
+
var ListInput2 = ListInput4;
|
|
155
155
|
var DefaultListLimit = 50;
|
|
156
|
-
class
|
|
156
|
+
class Service20 extends Context.Service()("@opencode/Session") {
|
|
157
157
|
}
|
|
158
|
-
var layer = Layer.effect(
|
|
158
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
159
159
|
const app = yield* Metadata2;
|
|
160
160
|
const database = yield* Service86;
|
|
161
161
|
const db = database.db;
|
|
162
|
-
const bus = yield*
|
|
163
|
-
const projects = yield*
|
|
164
|
-
const execution = yield*
|
|
162
|
+
const bus = yield* Service83;
|
|
163
|
+
const projects = yield* Service80;
|
|
164
|
+
const execution = yield* Service49;
|
|
165
165
|
const llm = yield* LLMClient.Service;
|
|
166
|
-
const transport = yield*
|
|
167
|
-
const store = yield*
|
|
168
|
-
const instances = yield*
|
|
169
|
-
const moves = yield*
|
|
170
|
-
const jobs = yield*
|
|
171
|
-
const environments = yield*
|
|
172
|
-
const locations = yield*
|
|
173
|
-
const sessions = yield*
|
|
166
|
+
const transport = yield* Service27;
|
|
167
|
+
const store = yield* Service60;
|
|
168
|
+
const instances = yield* Service52;
|
|
169
|
+
const moves = yield* Service21;
|
|
170
|
+
const jobs = yield* Service84;
|
|
171
|
+
const environments = yield* Service39;
|
|
172
|
+
const locations = yield* Service68;
|
|
173
|
+
const sessions = yield* make12();
|
|
174
174
|
const isDurableSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
175
|
-
const result =
|
|
175
|
+
const result = Service20.of({
|
|
176
176
|
create: Effect.fn("Session.create")(function* (input) {
|
|
177
177
|
const sessionID = input.id ?? SessionSchema2.ID.create();
|
|
178
178
|
const recorded = yield* store.get(sessionID);
|
|
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
180
180
|
return recorded;
|
|
181
181
|
const parent = input.parentID ? yield* store.get(input.parentID) : undefined;
|
|
182
182
|
if (input.parentID && parent === undefined)
|
|
183
|
-
return yield* new
|
|
183
|
+
return yield* new NotFoundError8({ sessionID: input.parentID });
|
|
184
184
|
const location = parent?.location ?? input.location;
|
|
185
185
|
if (location === undefined)
|
|
186
186
|
return yield* Effect.die(new Error("Session.create requires either location or an existing parentID"));
|
|
@@ -301,11 +301,11 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
301
301
|
prompt: (input) => sessions.forSession(input.sessionID).prompt(input),
|
|
302
302
|
generate: Effect.fn("Session.generate")(function* (input) {
|
|
303
303
|
const session = yield* result.get(input.sessionID);
|
|
304
|
-
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(
|
|
304
|
+
return yield* generate2({ session, prompt: input.prompt }).pipe(Effect.provideService(Service52, instances), Effect.provideService(Service86, database), Effect.provideService(LLMClient.Service, llm));
|
|
305
305
|
}),
|
|
306
306
|
command: Effect.fn("Session.command")(function* (input) {
|
|
307
307
|
const session = yield* result.get(input.sessionID);
|
|
308
|
-
return yield* execute2({ ...input, session }).pipe(Effect.provideService(
|
|
308
|
+
return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service52, instances));
|
|
309
309
|
}),
|
|
310
310
|
shell: (input) => sessions.forSession(input.sessionID).shell(input),
|
|
311
311
|
skill: (input) => sessions.forSession(input.sessionID).skill(input),
|
|
@@ -349,27 +349,27 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
349
349
|
});
|
|
350
350
|
return result;
|
|
351
351
|
}));
|
|
352
|
-
var
|
|
353
|
-
service:
|
|
352
|
+
var node23 = Node.makeGlobalNode({
|
|
353
|
+
service: Service20,
|
|
354
354
|
layer,
|
|
355
355
|
deps: [
|
|
356
|
-
|
|
357
|
-
node50,
|
|
358
|
-
node90,
|
|
359
|
-
node89,
|
|
360
|
-
node85,
|
|
356
|
+
node88,
|
|
361
357
|
node43,
|
|
362
|
-
|
|
358
|
+
node90,
|
|
359
|
+
node87,
|
|
360
|
+
node84,
|
|
361
|
+
node53,
|
|
362
|
+
node31,
|
|
363
363
|
llmClient2,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
364
|
+
node63,
|
|
365
|
+
node55,
|
|
366
|
+
node54,
|
|
367
|
+
node24,
|
|
368
|
+
node25,
|
|
369
|
+
node71,
|
|
370
370
|
FSUtil.node,
|
|
371
|
-
|
|
371
|
+
node39
|
|
372
372
|
]
|
|
373
373
|
});
|
|
374
374
|
|
|
375
|
-
export { ListAnchor2, ListCursor2,
|
|
375
|
+
export { ListAnchor2, ListCursor2, ListInput2, Service20, node23, exports_session };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-jwcy2c2z.js";
|
|
4
4
|
import {
|
|
5
|
-
Service85,
|
|
6
|
-
node89
|
|
7
|
-
} from "./file-mutation-py2d2bhf.js";
|
|
8
|
-
import {
|
|
9
|
-
Event20,
|
|
10
5
|
Service83,
|
|
11
6
|
node87
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service80,
|
|
15
|
-
node84
|
|
16
|
-
} from "./file-mutation-j8143y8a.js";
|
|
7
|
+
} from "./event-logger-cr69fjw7.js";
|
|
17
8
|
import {
|
|
9
|
+
Event17,
|
|
18
10
|
Service71,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
11
|
+
node74
|
|
12
|
+
} from "./event-logger-g0t57f6q.js";
|
|
13
|
+
import {
|
|
14
|
+
Service79,
|
|
15
|
+
node83
|
|
16
|
+
} from "./event-logger-vnxnqzwp.js";
|
|
21
17
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
Service77,
|
|
19
|
+
node80
|
|
20
|
+
} from "./event-logger-fbx2zj7f.js";
|
|
21
|
+
import {
|
|
22
|
+
ID14,
|
|
23
|
+
Service72,
|
|
24
|
+
node75
|
|
25
|
+
} from "./event-logger-bx5fxdna.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./event-logger-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID12,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service70,
|
|
34
|
+
node73
|
|
35
|
+
} from "./event-logger-8ev3b84m.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
|
+
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service30,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured3,
|
|
56
|
+
layer: () => layer17,
|
|
57
|
+
node: () => node33
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service30 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options3 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
114
|
+
var layer17 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service79;
|
|
116
|
+
const environment = yield* Service77;
|
|
117
|
+
const bus = yield* Service83;
|
|
118
|
+
const forms = yield* Service72;
|
|
119
|
+
const integration = yield* Service70;
|
|
120
|
+
const credentials = yield* Service71;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID12.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service71, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError3({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service71, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID14.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service77, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service30.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured3(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service30,
|
|
536
|
+
layer: layer17(options),
|
|
537
|
+
deps: [node83, node80, node87, node75, node73, node74]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node33 = configured3();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service30, Options3, layer17, configured3, node33, exports_mcp4 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./event-logger-cr69fjw7.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID14,
|
|
20
|
+
Info: () => Info23,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service72,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer27,
|
|
29
|
+
node: () => node75,
|
|
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 Event18 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID14 = Form.ID;
|
|
39
|
+
var Info23 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID14
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError12 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID14
|
|
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: ID14
|
|
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: ID14,
|
|
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 Service72 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer27 = Layer.effect(Service72, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service83;
|
|
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 NotFoundError10({ 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 ?? ID14.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 layer28 = Layer.effect(Service84, 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 Service72.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node75 = makeLocationNode({ service: Service72, layer: layer27, deps: [node87] });
|
|
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 { ID14, Info23, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service72, layer27, node75, validateAnswer2, validateFields2, exports_form, Event18 };
|