@opencode/core 0.0.0-dev-19504 → 0.0.0-dev-19508
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 +82 -82
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/catalog.js +84 -84
- package/dist/chunks/{state-y6fqbdb6.js → persistent-pty-01375378.js} +2 -2
- package/dist/chunks/{state-bccb6npm.js → persistent-pty-06dxphr1.js} +4 -4
- package/dist/chunks/{state-5ahh7ntp.js → persistent-pty-06tybfx6.js} +5 -5
- package/dist/chunks/{state-p1pqv18t.js → persistent-pty-07zwjyy6.js} +13 -13
- package/dist/chunks/{state-dwepz7tb.js → persistent-pty-0a6bkr20.js} +13 -13
- package/dist/chunks/{state-xnqxh1k4.js → persistent-pty-0axr4kr0.js} +6 -6
- package/dist/chunks/{state-agndh9mm.js → persistent-pty-0dpda0nx.js} +3 -3
- package/dist/chunks/{state-nztktr68.js → persistent-pty-0p5r239s.js} +10 -10
- package/dist/chunks/{state-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{state-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
- package/dist/chunks/{state-6h1zhsq5.js → persistent-pty-13ne6j1k.js} +16 -16
- package/dist/chunks/{state-seh8ndws.js → persistent-pty-14bvgx98.js} +11 -11
- package/dist/chunks/{state-f76jjjy7.js → persistent-pty-154046h8.js} +17 -17
- package/dist/chunks/{state-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{state-3h7zsync.js → persistent-pty-1gz3swn9.js} +13 -13
- package/dist/chunks/{state-xc0y5txa.js → persistent-pty-1nfpt5r1.js} +1 -1
- package/dist/chunks/{state-6cqjqb7p.js → persistent-pty-1rwk5gxb.js} +54 -54
- package/dist/chunks/{state-qjc5s0tw.js → persistent-pty-1sa0r58s.js} +16 -16
- package/dist/chunks/persistent-pty-1tm0r3ht.js +4 -0
- package/dist/chunks/{state-17zkjcfx.js → persistent-pty-1zcyjaqm.js} +6 -6
- package/dist/chunks/{state-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
- package/dist/chunks/{state-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
- package/dist/chunks/{state-v8fxnnqy.js → persistent-pty-2504gt3d.js} +18 -18
- package/dist/chunks/{state-e3wbf25j.js → persistent-pty-25hvwd8a.js} +9 -9
- package/dist/chunks/{state-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{state-bjmdedkt.js → persistent-pty-2e96adxv.js} +9 -9
- package/dist/chunks/{state-2a3r6032.js → persistent-pty-2efc4pfm.js} +12 -12
- package/dist/chunks/{state-sr06zkx8.js → persistent-pty-2fs7h1wz.js} +12 -12
- package/dist/chunks/{state-n78mb8y2.js → persistent-pty-2k14bdsh.js} +9 -9
- package/dist/chunks/{state-jkhk5v10.js → persistent-pty-2qqt1nsd.js} +19 -19
- package/dist/chunks/{state-8qt13rrk.js → persistent-pty-2y518tma.js} +3 -3
- package/dist/chunks/{state-sbsepnww.js → persistent-pty-30fz79vd.js} +14 -14
- package/dist/chunks/{state-mwyv3scv.js → persistent-pty-35k205kv.js} +20 -20
- package/dist/chunks/{state-s9x7wzdz.js → persistent-pty-35rehqpd.js} +9 -9
- package/dist/chunks/{state-czcnay43.js → persistent-pty-3den1rf5.js} +29 -29
- package/dist/chunks/{state-v0q79tc7.js → persistent-pty-3f2bzmyt.js} +12 -12
- package/dist/chunks/{state-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{state-7mjs49hv.js → persistent-pty-3fsh0gaz.js} +7 -7
- package/dist/chunks/{state-x1rq2d5e.js → persistent-pty-3gqv5pt4.js} +13 -13
- package/dist/chunks/{state-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{state-wyxd6c79.js → persistent-pty-3jm4qh1z.js} +28 -28
- package/dist/chunks/{state-x6fpxd14.js → persistent-pty-3pa9w4e5.js} +8 -8
- package/dist/chunks/{state-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{state-395j3mj5.js → persistent-pty-3snfyfpy.js} +26 -26
- package/dist/chunks/{state-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{state-q1ayw5n1.js → persistent-pty-3v8nnc6y.js} +10 -10
- package/dist/chunks/{state-n8c291r7.js → persistent-pty-3ykzfd22.js} +7 -7
- package/dist/chunks/{state-7rntk513.js → persistent-pty-40ykk5rq.js} +12 -12
- package/dist/chunks/{state-7b9bpmhc.js → persistent-pty-4290jz7g.js} +18 -18
- package/dist/chunks/{state-jk1nvzjp.js → persistent-pty-4775as7b.js} +15 -15
- package/dist/chunks/{state-9yth8x6d.js → persistent-pty-487k7jth.js} +27 -27
- package/dist/chunks/{state-sygp3w95.js → persistent-pty-4etgcfvy.js} +9 -9
- package/dist/chunks/{state-gezceyq7.js → persistent-pty-4kgv92xd.js} +18 -18
- package/dist/chunks/{state-qfbccd5t.js → persistent-pty-4m8ycsnb.js} +5 -5
- package/dist/chunks/{state-sshbytzt.js → persistent-pty-4q1gpajt.js} +55 -55
- package/dist/chunks/{state-8c0s05bc.js → persistent-pty-4tb880m7.js} +20 -20
- package/dist/chunks/{state-99630avw.js → persistent-pty-4tj561sw.js} +11 -11
- package/dist/chunks/{state-4y66k410.js → persistent-pty-4y66k410.js} +2 -2
- package/dist/chunks/{state-vmq7ehpy.js → persistent-pty-510m7gjw.js} +5 -5
- package/dist/chunks/{state-semaaj5d.js → persistent-pty-56gd9531.js} +17 -17
- package/dist/chunks/{state-a1bz86dw.js → persistent-pty-5c4hm403.js} +3 -3
- package/dist/chunks/{state-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
- package/dist/chunks/{state-wsyr7wz2.js → persistent-pty-5ehz2tea.js} +16 -16
- package/dist/chunks/{state-ysz0c65e.js → persistent-pty-5mz96dqx.js} +11 -11
- package/dist/chunks/{state-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{state-y8w077mg.js → persistent-pty-65wkgmh5.js} +24 -24
- package/dist/chunks/{state-669tq793.js → persistent-pty-669tq793.js} +1 -1
- package/dist/chunks/{state-5gg839bz.js → persistent-pty-6758qdb8.js} +12 -12
- package/dist/chunks/{state-0nds4myn.js → persistent-pty-6d5601zx.js} +12 -12
- package/dist/chunks/{state-ym3mvm7f.js → persistent-pty-6det3y0x.js} +33 -33
- package/dist/chunks/{state-y8swrd1p.js → persistent-pty-6e3433qf.js} +17 -17
- package/dist/chunks/{state-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
- package/dist/chunks/{state-5p8mw0dr.js → persistent-pty-6spvy77a.js} +24 -24
- package/dist/chunks/{state-vb1kjdsx.js → persistent-pty-6w1zg1g2.js} +18 -18
- package/dist/chunks/{state-yfdtkgec.js → persistent-pty-6xygz2r8.js} +5 -5
- package/dist/chunks/{state-71q4at8m.js → persistent-pty-71q4at8m.js} +1 -1
- package/dist/chunks/{state-h93d5vc1.js → persistent-pty-71x7hxqe.js} +35 -35
- package/dist/chunks/{state-7f4vqfyd.js → persistent-pty-737r9kjt.js} +27 -27
- package/dist/chunks/{state-r5x6zcsm.js → persistent-pty-73tb2d7t.js} +3 -3
- package/dist/chunks/{state-cq37gk0t.js → persistent-pty-7ac170kv.js} +4 -4
- package/dist/chunks/{state-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{state-2k8khapm.js → persistent-pty-7dqw4kz8.js} +5 -5
- package/dist/chunks/{state-3cdpbzjx.js → persistent-pty-7kk61tk1.js} +15 -15
- package/dist/chunks/{state-3vc92cpq.js → persistent-pty-7q4njgnv.js} +18 -18
- package/dist/chunks/{state-t1pxv65t.js → persistent-pty-7qfh1exc.js} +3 -3
- package/dist/chunks/{state-ww2wa7se.js → persistent-pty-7sf6wms8.js} +25 -25
- package/dist/chunks/{state-hrtt5x04.js → persistent-pty-7yfdgj8f.js} +20 -20
- package/dist/chunks/{state-rk0rec3h.js → persistent-pty-81swgkk7.js} +9 -9
- package/dist/chunks/{state-7b15y959.js → persistent-pty-844ef7ks.js} +8 -8
- package/dist/chunks/{state-b2vqmjat.js → persistent-pty-8baymvr8.js} +1 -1
- package/dist/chunks/{state-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{state-vv4zqvpf.js → persistent-pty-8f39y4xw.js} +24 -24
- package/dist/chunks/{state-ven90c16.js → persistent-pty-8hxnf17y.js} +15 -15
- package/dist/chunks/{state-7p0agkh3.js → persistent-pty-8x5pm5x7.js} +17 -17
- package/dist/chunks/{state-73v7pdd7.js → persistent-pty-915t83ht.js} +8 -8
- package/dist/chunks/{state-d3tbzqxc.js → persistent-pty-93zryg1y.js} +17 -17
- package/dist/chunks/{state-pmy40cdq.js → persistent-pty-9k50aszd.js} +26 -26
- package/dist/chunks/{state-daf1qynx.js → persistent-pty-9kfc4wnk.js} +16 -16
- package/dist/chunks/{state-ddx3tg71.js → persistent-pty-9pm6y0s1.js} +8 -8
- package/dist/chunks/{state-nyp6vdzn.js → persistent-pty-9pydy7p8.js} +17 -17
- package/dist/chunks/persistent-pty-9rr9jrmq.js +247 -0
- package/dist/chunks/{state-txxgpxvq.js → persistent-pty-a7wgtnts.js} +3 -3
- package/dist/chunks/{state-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{state-vahdp9z8.js → persistent-pty-ab6mj8jw.js} +23 -23
- package/dist/chunks/{state-bz250d8h.js → persistent-pty-adbnwx63.js} +15 -15
- package/dist/chunks/{state-d2aac7k2.js → persistent-pty-af04s6ss.js} +5 -5
- package/dist/chunks/{state-1fcrsx1q.js → persistent-pty-agsex9am.js} +5 -5
- package/dist/chunks/{state-n36sd619.js → persistent-pty-anhnjpzq.js} +47 -47
- package/dist/chunks/{state-kjmahcfy.js → persistent-pty-apvn9gva.js} +24 -24
- package/dist/chunks/{state-m6v0m1sd.js → persistent-pty-at12fstx.js} +28 -28
- package/dist/chunks/{state-js4jadbf.js → persistent-pty-ayn42wpr.js} +4 -4
- package/dist/chunks/{state-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{state-j7hrck8q.js → persistent-pty-b7bw3hr1.js} +20 -20
- package/dist/chunks/{state-d09006c3.js → persistent-pty-b8b3f19r.js} +9 -9
- package/dist/chunks/{state-72417vrk.js → persistent-pty-bck43prn.js} +26 -26
- package/dist/chunks/{state-q85bd21y.js → persistent-pty-bqtkya02.js} +24 -24
- package/dist/chunks/{state-w1sbw24p.js → persistent-pty-brjc8r87.js} +24 -24
- package/dist/chunks/{state-z6cnzstw.js → persistent-pty-btewt4k5.js} +9 -9
- package/dist/chunks/{state-b1bqv7zk.js → persistent-pty-bvk12tx6.js} +24 -24
- package/dist/chunks/{state-y38bkm5v.js → persistent-pty-bzayxzm2.js} +20 -20
- package/dist/chunks/{state-3w2b2yj4.js → persistent-pty-c78bbtc9.js} +5 -5
- package/dist/chunks/{state-7z0hag3q.js → persistent-pty-c81ww30d.js} +9 -9
- package/dist/chunks/{state-6cdctt69.js → persistent-pty-c8a77b8b.js} +17 -17
- package/dist/chunks/{state-474mxxx0.js → persistent-pty-cabas1zx.js} +8 -8
- package/dist/chunks/{state-mvfdckk2.js → persistent-pty-cfm9g534.js} +8 -8
- package/dist/chunks/{state-sc497s7j.js → persistent-pty-cw8m5w0x.js} +3 -3
- package/dist/chunks/{state-dsn4nv59.js → persistent-pty-cykwnt9q.js} +11 -11
- package/dist/chunks/{state-xvssc1kt.js → persistent-pty-cztn7rx7.js} +11 -11
- package/dist/chunks/{state-t23qze4t.js → persistent-pty-d50f2zf5.js} +1 -1
- package/dist/chunks/persistent-pty-d5k9fk4j.js +462 -0
- package/dist/chunks/{state-dw22x083.js → persistent-pty-d8qdyyaw.js} +163 -163
- package/dist/chunks/{state-6vzv0tsa.js → persistent-pty-d99y5ch1.js} +9 -9
- package/dist/chunks/{state-8p4f9s12.js → persistent-pty-dj2t23y0.js} +2 -2
- package/dist/chunks/{state-dpkg50ah.js → persistent-pty-dpkg50ah.js} +1 -1
- package/dist/chunks/{state-cz2f50e6.js → persistent-pty-dpwk168w.js} +20 -20
- package/dist/chunks/{state-mcqvnant.js → persistent-pty-e20g3j14.js} +23 -23
- package/dist/chunks/{state-dwmj5nv1.js → persistent-pty-e6h7j64h.js} +4 -4
- package/dist/chunks/{state-ghbh3tzz.js → persistent-pty-e9c8eq96.js} +29 -29
- package/dist/chunks/{state-frwpyczr.js → persistent-pty-e9cy62py.js} +4 -4
- package/dist/chunks/{state-wmnxc830.js → persistent-pty-ebah8r6x.js} +6 -6
- package/dist/chunks/{state-gqrsst1j.js → persistent-pty-enks4xxx.js} +5 -5
- package/dist/chunks/{state-8hgfhrm0.js → persistent-pty-ep6z9mt6.js} +11 -11
- package/dist/chunks/{state-fkd2ewj5.js → persistent-pty-etcxw786.js} +12 -12
- package/dist/chunks/{state-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{state-fwqtep5n.js → persistent-pty-evyr1yy2.js} +11 -11
- package/dist/chunks/{state-6b54yabr.js → persistent-pty-ewkyeawc.js} +20 -20
- package/dist/chunks/{state-gtdtpweg.js → persistent-pty-exsbjhm2.js} +16 -16
- package/dist/chunks/{state-567n0deq.js → persistent-pty-f5qkqfms.js} +46 -46
- package/dist/chunks/{state-awmfrrxt.js → persistent-pty-f7w4q6me.js} +18 -18
- package/dist/chunks/{state-pd4btrn7.js → persistent-pty-fhnehbw5.js} +1 -1
- package/dist/chunks/{state-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
- package/dist/chunks/{state-76fbqq5t.js → persistent-pty-g8n1wjt8.js} +23 -23
- package/dist/chunks/{state-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{state-2bt6bea8.js → persistent-pty-gsx0ryk4.js} +9 -9
- package/dist/chunks/{state-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
- package/dist/chunks/{state-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
- package/dist/chunks/{state-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{state-1xrbsc5y.js → persistent-pty-h6w5vgvg.js} +38 -38
- package/dist/chunks/{state-gp1cy6hf.js → persistent-pty-h8ymazte.js} +10 -10
- package/dist/chunks/{state-3zre7qs9.js → persistent-pty-h9nwmjzt.js} +15 -15
- package/dist/chunks/{state-f828m53h.js → persistent-pty-hdnk95c8.js} +2 -2
- package/dist/chunks/{state-6v46vta9.js → persistent-pty-hhyycrpc.js} +35 -35
- package/dist/chunks/{state-e82z9tr0.js → persistent-pty-hjt4xg1x.js} +7 -7
- package/dist/chunks/{state-9jnamvjf.js → persistent-pty-hn3jadw3.js} +25 -25
- package/dist/chunks/{state-0kcg9p5c.js → persistent-pty-hnc9qj7b.js} +12 -12
- package/dist/chunks/{state-02r6fh77.js → persistent-pty-hvw084np.js} +34 -34
- package/dist/chunks/{state-v7vg1ys9.js → persistent-pty-hznavjj0.js} +7 -7
- package/dist/chunks/{state-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{state-fm9p4f6k.js → persistent-pty-j6qna7nq.js} +4 -4
- package/dist/chunks/{state-ratrq7cm.js → persistent-pty-jfqtm2ew.js} +4 -4
- package/dist/chunks/{state-8zfw07st.js → persistent-pty-jkdkem4h.js} +10 -10
- package/dist/chunks/{state-x58wvrnc.js → persistent-pty-k8g08nhg.js} +5 -5
- package/dist/chunks/{state-bz97kxjr.js → persistent-pty-kava7r05.js} +6 -6
- package/dist/chunks/{state-kg06axw8.js → persistent-pty-kg06axw8.js} +1 -1
- package/dist/chunks/{state-jdzvy3yq.js → persistent-pty-kkzzhrpn.js} +16 -16
- package/dist/chunks/{state-mwjh8pk4.js → persistent-pty-kt5w8vxh.js} +10 -10
- package/dist/chunks/{state-d0j044cp.js → persistent-pty-kxme779d.js} +45 -45
- package/dist/chunks/{state-qqtwvk4z.js → persistent-pty-kxpygcw9.js} +4 -4
- package/dist/chunks/{state-wqgnyshj.js → persistent-pty-kz70mmnm.js} +1 -1
- package/dist/chunks/{state-cfpkc3c9.js → persistent-pty-m0jqrx5p.js} +2 -2
- package/dist/chunks/{state-0mtbxaje.js → persistent-pty-m82b0fgf.js} +5 -5
- package/dist/chunks/{state-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{state-5wtwrezn.js → persistent-pty-magykp64.js} +21 -21
- package/dist/chunks/{state-56gdpj1q.js → persistent-pty-mfqp6xfm.js} +6 -6
- package/dist/chunks/{state-azk23wr2.js → persistent-pty-mhnt32v1.js} +9 -9
- package/dist/chunks/{state-drtnac5g.js → persistent-pty-mp733p07.js} +5 -5
- package/dist/chunks/{state-ks9k8xvt.js → persistent-pty-n3azen0z.js} +11 -11
- package/dist/chunks/{state-ag4rn41e.js → persistent-pty-n4r3xatb.js} +4 -4
- package/dist/chunks/{state-vt73cr5y.js → persistent-pty-n4zaccwn.js} +29 -29
- package/dist/chunks/{state-w9m3yqhf.js → persistent-pty-n50hv1t5.js} +6 -6
- package/dist/chunks/{state-sndc8avh.js → persistent-pty-nfx2f6hr.js} +20 -20
- package/dist/chunks/{state-rf90sz53.js → persistent-pty-nj6dzt4x.js} +4 -4
- package/dist/chunks/{state-nng2ktcm.js → persistent-pty-nng2ktcm.js} +2 -2
- package/dist/chunks/{state-tz09nfgs.js → persistent-pty-p1afpxvg.js} +81 -81
- package/dist/chunks/{state-5m22982g.js → persistent-pty-pahz8e0w.js} +5 -5
- package/dist/chunks/{state-j935v87r.js → persistent-pty-paphc93g.js} +2 -2
- package/dist/chunks/{state-jajsdnd6.js → persistent-pty-pbd9gpar.js} +9 -9
- package/dist/chunks/{state-6x116pq4.js → persistent-pty-peekjthh.js} +16 -16
- package/dist/chunks/persistent-pty-phz3h32g.js +18 -0
- package/dist/chunks/{state-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{state-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{state-dexh071n.js → persistent-pty-pvk75rey.js} +36 -36
- package/dist/chunks/{state-sjr35f5n.js → persistent-pty-q03s0nwp.js} +18 -18
- package/dist/chunks/{state-nrs119em.js → persistent-pty-q5rhn9x0.js} +13 -13
- package/dist/chunks/{state-m370rjbg.js → persistent-pty-q8vwd3nd.js} +20 -20
- package/dist/chunks/{state-480wnwqj.js → persistent-pty-q95aeeb4.js} +11 -11
- package/dist/chunks/{state-0h5yhx5j.js → persistent-pty-qgt0wznr.js} +13 -13
- package/dist/chunks/{state-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{state-ays70j4r.js → persistent-pty-qwktr7mg.js} +32 -32
- package/dist/chunks/{state-zgew93s5.js → persistent-pty-qzkh27e2.js} +4 -4
- package/dist/chunks/{state-4127wp21.js → persistent-pty-r1spfp0h.js} +6 -6
- package/dist/chunks/{state-r9mregkx.js → persistent-pty-r9mregkx.js} +2 -2
- package/dist/chunks/{state-wgpywka8.js → persistent-pty-rb6q9cnt.js} +25 -25
- package/dist/chunks/{state-jgar8g47.js → persistent-pty-rbj3wcwb.js} +30 -30
- package/dist/chunks/{state-60vppwb8.js → persistent-pty-rbvfjwrk.js} +4 -4
- package/dist/chunks/{state-f2n192rq.js → persistent-pty-rhraev7y.js} +4 -4
- package/dist/chunks/{state-w3thrybb.js → persistent-pty-rrhm3cf6.js} +78 -78
- package/dist/chunks/{state-24c7t6kx.js → persistent-pty-s2zxn96c.js} +22 -22
- package/dist/chunks/{state-vmkrf3gm.js → persistent-pty-s363er1w.js} +33 -33
- package/dist/chunks/{state-kez3kbfw.js → persistent-pty-s3ycmy3r.js} +32 -32
- package/dist/chunks/{state-q82h00rj.js → persistent-pty-s4bk4abw.js} +41 -41
- package/dist/chunks/persistent-pty-s6r9b74v.js +22 -0
- package/dist/chunks/{state-rhjbct0v.js → persistent-pty-s8d7rejh.js} +4 -4
- package/dist/chunks/{state-w6pwrz03.js → persistent-pty-sfk8hzz5.js} +4 -4
- package/dist/chunks/{state-yjy17zka.js → persistent-pty-t0tyq52b.js} +6 -6
- package/dist/chunks/{state-t0x5rdq8.js → persistent-pty-t0x5rdq8.js} +2 -2
- package/dist/chunks/{state-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{state-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{state-x3cpe7dn.js → persistent-pty-tdpb0dc4.js} +11 -11
- package/dist/chunks/{state-s857ash9.js → persistent-pty-tdpndm1c.js} +5 -5
- package/dist/chunks/{state-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{state-ea29dqtj.js → persistent-pty-tdtzb82r.js} +13 -13
- package/dist/chunks/{state-nhf2dmd1.js → persistent-pty-thbdkye2.js} +25 -25
- package/dist/chunks/{state-mdzsfjay.js → persistent-pty-thc7yeg9.js} +21 -21
- package/dist/chunks/{state-0j4ba8d2.js → persistent-pty-tn773g8e.js} +11 -11
- package/dist/chunks/{state-gy2qaxq4.js → persistent-pty-tp675h11.js} +33 -33
- package/dist/chunks/{state-sbv6zvrh.js → persistent-pty-ttxd2ccf.js} +43 -43
- package/dist/chunks/{state-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
- package/dist/chunks/{state-b1qcv6s7.js → persistent-pty-tw6cn0kx.js} +31 -31
- package/dist/chunks/{state-6kyz0a76.js → persistent-pty-tx9qvpbt.js} +8 -8
- package/dist/chunks/{state-9e1pnjm1.js → persistent-pty-v3mzz81c.js} +10 -10
- package/dist/chunks/{state-3j8sdtpz.js → persistent-pty-ve4pfa0n.js} +4 -4
- package/dist/chunks/{state-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{state-3zevfmxv.js → persistent-pty-vg7npqae.js} +1 -1
- package/dist/chunks/{state-22yx3c6v.js → persistent-pty-vg8k19ea.js} +11 -11
- package/dist/chunks/{state-rgadkmpr.js → persistent-pty-vjgbmtbs.js} +32 -32
- package/dist/chunks/{state-gqazmv2c.js → persistent-pty-vpbkq0tp.js} +9 -9
- package/dist/chunks/{state-zjcnng30.js → persistent-pty-vy25vtdv.js} +25 -25
- package/dist/chunks/{state-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
- package/dist/chunks/{state-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{state-87shza1g.js → persistent-pty-w8a3k0bq.js} +24 -24
- package/dist/chunks/{state-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{state-hzm9egg4.js → persistent-pty-wsmhkxds.js} +11 -11
- package/dist/chunks/{state-rgqj86dy.js → persistent-pty-wsphynk5.js} +35 -35
- package/dist/chunks/{state-v6697qd3.js → persistent-pty-wvwzws3d.js} +11 -11
- package/dist/chunks/{state-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
- package/dist/chunks/{state-dfem2sdx.js → persistent-pty-x2xt5fty.js} +2 -2
- package/dist/chunks/{state-020j3mp2.js → persistent-pty-x9s9yqdy.js} +6 -6
- package/dist/chunks/{state-kb4h31ft.js → persistent-pty-xaa2j8d2.js} +54 -54
- package/dist/chunks/{state-79w795fr.js → persistent-pty-xbh0n0bt.js} +1 -1
- package/dist/chunks/{state-qtkzm0vp.js → persistent-pty-xdw78xdg.js} +8 -8
- package/dist/chunks/{state-51wwr1cb.js → persistent-pty-xgkhd5qd.js} +7 -7
- package/dist/chunks/{state-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{state-8dx2amnv.js → persistent-pty-y81yzj42.js} +43 -43
- package/dist/chunks/{state-csx0xmef.js → persistent-pty-yg2p59vp.js} +14 -14
- package/dist/chunks/{state-cwd529yg.js → persistent-pty-yk9d6695.js} +47 -47
- package/dist/chunks/{state-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
- package/dist/chunks/{state-s4enseaf.js → persistent-pty-yrznvahk.js} +2 -2
- package/dist/chunks/{state-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{state-29x78va6.js → persistent-pty-z63w68vq.js} +6 -6
- package/dist/chunks/{state-mkgf31e5.js → persistent-pty-zb4p73ts.js} +4 -4
- package/dist/chunks/{state-vtzq9px0.js → persistent-pty-zdae6k0q.js} +9 -9
- package/dist/chunks/{state-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
- package/dist/chunks/{state-2jpz28ss.js → persistent-pty-zesek9va.js} +10 -10
- package/dist/chunks/{state-d8nc1xcx.js → persistent-pty-zj09a0ew.js} +4 -4
- package/dist/chunks/{state-mjmpm5gf.js → persistent-pty-zjs43p7d.js} +38 -38
- package/dist/chunks/{state-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{state-1av7y6ck.js → persistent-pty-zx5ykxc9.js} +4 -4
- package/dist/chunks/{state-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +80 -80
- package/dist/config/discovery.js +78 -78
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +86 -86
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +115 -115
- package/dist/config/plugin/provider.js +114 -114
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +119 -119
- package/dist/config/plugin/skill-file.js +98 -98
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +116 -116
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +116 -116
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -120
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- 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 +89 -89
- 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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +69 -69
- package/dist/file-access.js +100 -100
- package/dist/file-mutation.js +90 -90
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +223 -223
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +100 -100
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +99 -99
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +85 -85
- package/dist/generate.js +88 -88
- package/dist/git.js +7 -7
- 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 +3 -3
- 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/id/id.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 +352 -352
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +83 -83
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +129 -129
- package/dist/location-mutation.js +100 -100
- package/dist/location-service-map.js +82 -82
- package/dist/location-services.js +349 -349
- package/dist/location.js +85 -85
- package/dist/mcp/client.js +87 -87
- package/dist/mcp/index.js +92 -92
- package/dist/mcp/instructions.js +123 -123
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +86 -86
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +87 -87
- package/dist/model.js +8 -8
- package/dist/models-dev.js +85 -85
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- 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 +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +98 -98
- package/dist/plugin/command.js +95 -95
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +214 -214
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +98 -98
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +119 -119
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +115 -115
- package/dist/plugin/provider/digitalocean.js +80 -80
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +81 -81
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +118 -118
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +118 -118
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +81 -81
- package/dist/plugin/provider/opencode.js +80 -80
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +118 -118
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +118 -118
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/sdk.js +73 -73
- 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 +340 -340
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +83 -83
- package/dist/plugin/vcs/hg.js +83 -83
- package/dist/plugin/warming.js +113 -113
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- 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.js +217 -217
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +85 -85
- package/dist/reference.js +87 -87
- package/dist/repository-cache.js +77 -77
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +82 -82
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +128 -128
- package/dist/session/context.js +148 -148
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +147 -147
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +89 -89
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +114 -114
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +127 -127
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +101 -101
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +86 -86
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +120 -120
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +99 -99
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +146 -146
- package/dist/session/to-session-error.js +108 -108
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +208 -208
- 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 +15 -15
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +103 -103
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +89 -89
- 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 +114 -114
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +99 -99
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +213 -213
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +106 -106
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +341 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +90 -90
- package/package.json +8 -8
- package/dist/chunks/state-bgmc37vk.js +0 -462
- package/dist/chunks/state-c54z827e.js +0 -247
- package/dist/chunks/state-h47he10w.js +0 -4
- package/dist/chunks/state-my545s4e.js +0 -22
- package/dist/chunks/state-vnkjks7b.js +0 -18
- /package/dist/chunks/{state-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{state-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{state-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{state-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{state-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{state-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{state-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{state-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{state-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{state-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{state-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{state-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{state-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{state-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{state-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{state-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{state-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{state-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{state-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{state-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{state-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{state-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{state-7w99qc9d.js → persistent-pty-7w99qc9d.js} +0 -0
- /package/dist/chunks/{state-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{state-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{state-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{state-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
- /package/dist/chunks/{state-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{state-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{state-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{state-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{state-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{state-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{state-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{state-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{state-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{state-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{state-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{state-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{state-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{state-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{state-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{state-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{state-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{state-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{state-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{state-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{state-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{state-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{state-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{state-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{state-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{state-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{state-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{state-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{state-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{state-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{state-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{state-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
- /package/dist/chunks/{state-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{state-hrnqkpcd.js → persistent-pty-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{state-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{state-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{state-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{state-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{state-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{state-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{state-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{state-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{state-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{state-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{state-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{state-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{state-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{state-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{state-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{state-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{state-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{state-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{state-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{state-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{state-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
- /package/dist/chunks/{state-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{state-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{state-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{state-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{state-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{state-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{state-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{state-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{state-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{state-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{state-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service79,
|
|
4
4
|
node84
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-sfk8hzz5.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service74,
|
|
8
|
+
node79
|
|
9
|
+
} from "./persistent-pty-v3mzz81c.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event13,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service55,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node61,
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service55 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event13 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -56,7 +56,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
56
56
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
57
57
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var resolve3 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
60
60
|
const manifest = yield* inspect2(input.origin);
|
|
61
61
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
62
62
|
});
|
|
@@ -75,9 +75,9 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service74;
|
|
81
81
|
const bus = yield* Service79;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event13.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service55.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event13.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event13.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node61 = makeGlobalNode({ service: Service55, layer, deps: [httpClient, node79, node84] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service55, Event13, inspect2, resolve3, node61, exports_wellknown };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-sfk8hzz5.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-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: () => ID13,
|
|
20
|
+
Info: () => Info27,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError9,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service73,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer25,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node78,
|
|
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 ID13 = Form.ID;
|
|
39
|
+
var Info27 = 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 NotFoundError9 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID13
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID13
|
|
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: ID13
|
|
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: ID13,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,17 +79,17 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service73 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer25 = Layer.effect(
|
|
84
|
+
var layer25 = Layer.effect(Service73, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service79;
|
|
86
86
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
87
87
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
88
88
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
89
89
|
});
|
|
90
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
90
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError9({ id })))));
|
|
91
91
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
92
|
-
const id = input.id ??
|
|
92
|
+
const id = input.id ?? ID13.create();
|
|
93
93
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
94
94
|
if (Option.isSome(existing))
|
|
95
95
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -153,9 +153,9 @@ var layer25 = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
153
153
|
yield* Deferred.succeed(entry.deferred, next);
|
|
154
154
|
})));
|
|
155
155
|
yield* Effect.addFinalizer(() => Cache.values(forms).pipe(Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true }))));
|
|
156
|
-
return
|
|
156
|
+
return Service73.of({ create, ask, get, list, state, reply, cancel });
|
|
157
157
|
}));
|
|
158
|
-
var
|
|
158
|
+
var node78 = makeLocationNode({ service: Service73, layer: layer25, deps: [node84] });
|
|
159
159
|
function validateAnswer2(form, answer) {
|
|
160
160
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
161
161
|
for (const key of Object.keys(answer)) {
|
|
@@ -307,4 +307,4 @@ function isDateTime(value) {
|
|
|
307
307
|
return !Number.isNaN(new Date(value).getTime());
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export {
|
|
310
|
+
export { ID13, Info27, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError9, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service73, layer25, node78, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2,
|
|
4
4
|
UserInterruptedError2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-2e96adxv.js";
|
|
6
6
|
import {
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-xaa2j8d2.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./persistent-pty-3snfyfpy.js";
|
|
12
12
|
import {
|
|
13
13
|
ModelNotSelectedError2,
|
|
14
14
|
ModelUnavailableError2,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ModelInitializationError2,
|
|
19
19
|
UnresolvedProviderVariablesError2,
|
|
20
20
|
UnsupportedCompactionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-0a6bkr20.js";
|
|
22
22
|
|
|
23
23
|
// src/session/to-session-error.ts
|
|
24
24
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service46
|
|
3
|
+
} from "./persistent-pty-6spvy77a.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service45,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-qgt0wznr.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service56
|
|
11
|
+
} from "./persistent-pty-f7w4q6me.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service66
|
|
14
|
+
} from "./persistent-pty-xaa2j8d2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service38
|
|
17
|
+
} from "./persistent-pty-2504gt3d.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
28
|
+
Input: () => Input7,
|
|
29
29
|
Output: () => Output5,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin38,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name7,
|
|
33
|
+
toModelContent: () => toModelContent3
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name7 = "write";
|
|
39
|
+
var Input7 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
@@ -48,24 +48,24 @@ var Output5 = Schema.Struct({
|
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent3 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin38 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service38;
|
|
56
|
+
const fileMutation = yield* Service45;
|
|
57
|
+
const environment = yield* Service46;
|
|
58
|
+
const formatter = yield* Service56;
|
|
59
|
+
const permission = yield* Service66;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name7,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
68
|
+
input: Input7,
|
|
69
69
|
output: Output5,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent3(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name7, Input7, Output5, toModelContent3, Plugin38, exports_write };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
7
7
|
__export(exports_opencode, {
|
|
8
8
|
MoveInput: () => MoveInput2,
|
|
9
9
|
OpenCodeTools: () => exports_opencode,
|
|
10
|
-
Plugin: () =>
|
|
10
|
+
Plugin: () => Plugin42,
|
|
11
11
|
RenameInput: () => RenameInput2
|
|
12
12
|
});
|
|
13
13
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -26,7 +26,7 @@ var MoveInput2 = Schema.Struct({
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
var MoveOutput = Schema.Struct({ sessionID: Session.ID, directory: AbsolutePath });
|
|
29
|
-
var
|
|
29
|
+
var Plugin42 = {
|
|
30
30
|
id: "opencode.tools",
|
|
31
31
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
32
32
|
yield* ctx.session.hook("context", (event) => Effect.sync(() => {
|
|
@@ -74,4 +74,4 @@ var Plugin3 = {
|
|
|
74
74
|
})
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
export { RenameInput2, MoveInput2,
|
|
77
|
+
export { RenameInput2, MoveInput2, Plugin42, exports_opencode };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service61,
|
|
10
|
+
node: () => node66
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service61 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node66 = LayerNode.unbound(Service61, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service61, node66, exports_service2 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-0axr4kr0.js";
|
|
6
6
|
|
|
7
7
|
// src/plugin/provider/google-vertex.ts
|
|
8
8
|
import { Effect } from "effect";
|
|
@@ -39,7 +39,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
39
39
|
for (const item of evt.provider.list()) {
|
|
40
40
|
if (!isAISDK2(item.provider.package))
|
|
41
41
|
continue;
|
|
42
|
-
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id ===
|
|
42
|
+
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id === ID15.googleVertex && packageName2(item.provider.package)?.includes("@ai-sdk/openai-compatible")))
|
|
43
43
|
continue;
|
|
44
44
|
const project = resolveProject(item.provider.settings ?? {});
|
|
45
45
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -56,13 +56,13 @@ var GoogleVertexPlugin2 = define({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
59
|
-
if (evt.model.providerID ===
|
|
59
|
+
if (evt.model.providerID === ID15.googleVertex && evt.package.includes("@ai-sdk/openai-compatible")) {
|
|
60
60
|
evt.options.fetch = authFetch(evt.options.fetch);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
}));
|
|
64
64
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
65
|
-
if (evt.model.providerID !==
|
|
65
|
+
if (evt.model.providerID !== ID15.googleVertex)
|
|
66
66
|
return;
|
|
67
67
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
68
68
|
}));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Info15
|
|
6
|
+
} from "./persistent-pty-magykp64.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/v1/config/agent.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigAgentV1: () =>
|
|
15
|
-
Info: () =>
|
|
12
|
+
var exports_agent3 = {};
|
|
13
|
+
__export(exports_agent3, {
|
|
14
|
+
ConfigAgentV1: () => exports_agent3,
|
|
15
|
+
Info: () => Info12
|
|
16
16
|
});
|
|
17
17
|
import { Schema, SchemaGetter } from "effect";
|
|
18
18
|
var Color = Schema.Union([
|
|
@@ -44,7 +44,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
44
44
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
45
45
|
}),
|
|
46
46
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
47
|
-
permission: Schema.optional(
|
|
47
|
+
permission: Schema.optional(Info15)
|
|
48
48
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
49
49
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
50
50
|
var normalize = (agent) => {
|
|
@@ -66,9 +66,9 @@ var normalize = (agent) => {
|
|
|
66
66
|
const steps = agent.steps ?? agent.maxSteps;
|
|
67
67
|
return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
|
|
68
68
|
};
|
|
69
|
-
var
|
|
69
|
+
var Info12 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
|
|
70
70
|
decode: SchemaGetter.transform(normalize),
|
|
71
71
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
72
72
|
})).annotate({ identifier: "AgentConfig" });
|
|
73
73
|
|
|
74
|
-
export {
|
|
74
|
+
export { Info12, exports_agent3 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
ascending2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-tvtrv512.js";
|
|
7
7
|
import {
|
|
8
8
|
create3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-kg06axw8.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service31,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node35
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service31 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service31.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node35 = makeLocationNode({
|
|
143
|
+
service: Service31,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service31, node35, exports_tool_output2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-7w99qc9d.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-2e96adxv.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-s8d7rejh.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-5c4hm403.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./persistent-pty-7ac170kv.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./persistent-pty-06dxphr1.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/session/history.ts
|
|
31
31
|
var exports_history = {};
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load3,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|