@opencode/core 0.0.0-dev-21047 → 0.0.0-dev-21048
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{reference-bt0njgmc.js → instruction-discovery-0383yw56.js} +17 -17
- package/dist/chunks/{reference-7der4bj9.js → instruction-discovery-07ypw4px.js} +22 -22
- package/dist/chunks/{reference-rygkxn9n.js → instruction-discovery-08vm096y.js} +44 -44
- package/dist/chunks/instruction-discovery-0aj7h19t.js +253 -0
- package/dist/chunks/{reference-v0es1rhs.js → instruction-discovery-0bg0bx69.js} +5 -5
- package/dist/chunks/{reference-9ja41e76.js → instruction-discovery-0gkc12cr.js} +9 -9
- package/dist/chunks/{reference-1n7cf0zt.js → instruction-discovery-0kd67hfw.js} +13 -13
- package/dist/chunks/{reference-rtg68wpk.js → instruction-discovery-0qaza0kh.js} +22 -22
- package/dist/chunks/{reference-0vbcp93d.js → instruction-discovery-0vbcp93d.js} +2 -2
- package/dist/chunks/{reference-f8p265gv.js → instruction-discovery-0xe61swr.js} +14 -14
- package/dist/chunks/{reference-htrk4y28.js → instruction-discovery-0z67tkav.js} +9 -9
- package/dist/chunks/{reference-1acjjqhc.js → instruction-discovery-1acjjqhc.js} +1 -1
- package/dist/chunks/{reference-p42hj8p8.js → instruction-discovery-1ajx6rf5.js} +8 -8
- package/dist/chunks/{reference-wjr9rjd7.js → instruction-discovery-1ffvrpkg.js} +9 -9
- package/dist/chunks/{reference-q53541n0.js → instruction-discovery-1gwacf78.js} +38 -38
- package/dist/chunks/{reference-qtq7qc2w.js → instruction-discovery-26msm9mf.js} +13 -13
- package/dist/chunks/{reference-zt9b6e62.js → instruction-discovery-26xa0t1s.js} +17 -17
- package/dist/chunks/{reference-7dqw4kz8.js → instruction-discovery-2k8khapm.js} +5 -5
- package/dist/chunks/{reference-f7b5ncsd.js → instruction-discovery-2msx844e.js} +23 -23
- package/dist/chunks/{reference-g6q9qykm.js → instruction-discovery-2sejkfem.js} +9 -9
- package/dist/chunks/{reference-mpssfq2q.js → instruction-discovery-34kq85ks.js} +8 -8
- package/dist/chunks/{reference-dxr3qdqn.js → instruction-discovery-39ckm3km.js} +38 -38
- package/dist/chunks/{reference-85nhzk7w.js → instruction-discovery-39p519kw.js} +4 -4
- package/dist/chunks/{reference-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{reference-w4wr1etb.js → instruction-discovery-3fcjan8b.js} +14 -14
- package/dist/chunks/{reference-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{reference-3hwn7j4h.js → instruction-discovery-3hwn7j4h.js} +2 -2
- package/dist/chunks/{reference-rxbse8cr.js → instruction-discovery-3pkdza1g.js} +22 -22
- package/dist/chunks/{reference-wwh6ay7x.js → instruction-discovery-3qeqpf55.js} +22 -22
- package/dist/chunks/{reference-xx6qpep6.js → instruction-discovery-3rr193fp.js} +32 -32
- package/dist/chunks/{reference-gw7cjrad.js → instruction-discovery-3sj8yt8v.js} +4 -4
- package/dist/chunks/{reference-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{reference-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{reference-6wg64ttk.js → instruction-discovery-3x2mfa6x.js} +3 -3
- package/dist/chunks/{reference-n5esxn5z.js → instruction-discovery-3xt25322.js} +30 -30
- package/dist/chunks/{reference-3zsf4n22.js → instruction-discovery-3zsf4n22.js} +1 -1
- package/dist/chunks/{reference-wa9g86nq.js → instruction-discovery-41czef58.js} +4 -4
- package/dist/chunks/{reference-6vrtx8fp.js → instruction-discovery-4ae7g3jr.js} +9 -9
- package/dist/chunks/{reference-azpyr670.js → instruction-discovery-4b9sa3r1.js} +11 -11
- package/dist/chunks/{reference-7m8vhqjz.js → instruction-discovery-4dkatwf4.js} +3 -3
- package/dist/chunks/{reference-kpdmttv2.js → instruction-discovery-4ybyq5fk.js} +13 -13
- package/dist/chunks/{reference-wqvnp2kw.js → instruction-discovery-545ygv0m.js} +4 -4
- package/dist/chunks/{reference-54ma36ye.js → instruction-discovery-54ma36ye.js} +1 -1
- package/dist/chunks/{reference-jfzdx66h.js → instruction-discovery-56dxv453.js} +6 -6
- package/dist/chunks/{reference-1fq98kjr.js → instruction-discovery-5cg0q5wd.js} +11 -11
- package/dist/chunks/{reference-fvgfymht.js → instruction-discovery-5h4cx8zn.js} +11 -11
- package/dist/chunks/{reference-80c1z9kc.js → instruction-discovery-5keqaf2g.js} +17 -17
- package/dist/chunks/{reference-5m9w47nd.js → instruction-discovery-5m9w47nd.js} +1 -1
- package/dist/chunks/{reference-kprxdv5r.js → instruction-discovery-5q5baksb.js} +2 -2
- package/dist/chunks/{reference-hfbyhya8.js → instruction-discovery-5rethk9q.js} +10 -10
- package/dist/chunks/{reference-djvxnjg8.js → instruction-discovery-5tmmj2ep.js} +37 -37
- package/dist/chunks/{reference-x7qcbpvq.js → instruction-discovery-5w0a3j8n.js} +30 -30
- package/dist/chunks/{reference-7zt5x37y.js → instruction-discovery-5w9yjztw.js} +1 -1
- package/dist/chunks/{reference-r83ag541.js → instruction-discovery-5ykfhzjf.js} +9 -9
- package/dist/chunks/{reference-4t88j5bp.js → instruction-discovery-5z3dn9de.js} +26 -26
- package/dist/chunks/{reference-cnzx7642.js → instruction-discovery-66yxf7f5.js} +13 -13
- package/dist/chunks/{reference-2e24zj1v.js → instruction-discovery-674019k8.js} +5 -5
- package/dist/chunks/{reference-g7y6ccmm.js → instruction-discovery-69tmba6b.js} +20 -20
- package/dist/chunks/{reference-b674v2dg.js → instruction-discovery-6kzp9tjq.js} +5 -5
- package/dist/chunks/{reference-1qqmef8y.js → instruction-discovery-6ngppndb.js} +32 -32
- package/dist/chunks/{reference-7f4pctag.js → instruction-discovery-6r28svve.js} +27 -27
- package/dist/chunks/{reference-6xb47vfp.js → instruction-discovery-6xb47vfp.js} +1 -1
- package/dist/chunks/{reference-5697ag0y.js → instruction-discovery-6zdc443m.js} +23 -23
- package/dist/chunks/{reference-775gj3j1.js → instruction-discovery-775gj3j1.js} +2 -2
- package/dist/chunks/{reference-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{reference-3emwttkv.js → instruction-discovery-7bwjw7wy.js} +14 -14
- package/dist/chunks/instruction-discovery-7fj5dwt0.js +18 -0
- package/dist/chunks/{reference-vbm38ps9.js → instruction-discovery-7v4674rz.js} +5 -5
- package/dist/chunks/{reference-84txncab.js → instruction-discovery-84txncab.js} +1 -1
- package/dist/chunks/{reference-gn5tm0bv.js → instruction-discovery-89zm7n8n.js} +7 -7
- package/dist/chunks/instruction-discovery-8m5b1yna.js +26 -0
- package/dist/chunks/{reference-8m6m0r52.js → instruction-discovery-8m6m0r52.js} +1 -1
- package/dist/chunks/{reference-w1s7mmem.js → instruction-discovery-8qv4x6hf.js} +27 -27
- package/dist/chunks/{reference-rkprpv83.js → instruction-discovery-8sze2n9a.js} +6 -6
- package/dist/chunks/{reference-8d801c91.js → instruction-discovery-8x421jqn.js} +11 -11
- package/dist/chunks/{reference-x8h454cx.js → instruction-discovery-8zknfaqf.js} +24 -24
- package/dist/chunks/{reference-91qna3x0.js → instruction-discovery-91qna3x0.js} +3 -3
- package/dist/chunks/{reference-55t5gfwz.js → instruction-discovery-975jjne0.js} +11 -11
- package/dist/chunks/{reference-97aeaand.js → instruction-discovery-97aeaand.js} +1 -1
- package/dist/chunks/{reference-zy8qbqak.js → instruction-discovery-99r6wgs9.js} +16 -16
- package/dist/chunks/{reference-zjtrsxny.js → instruction-discovery-9bbnj2zh.js} +5 -5
- package/dist/chunks/{reference-kenxh6gd.js → instruction-discovery-9gegnqrt.js} +34 -34
- package/dist/chunks/{reference-q5423ys8.js → instruction-discovery-9j9yh4s0.js} +35 -35
- package/dist/chunks/{reference-4jfm27c9.js → instruction-discovery-9qzav5ez.js} +11 -11
- package/dist/chunks/{reference-w15h4m28.js → instruction-discovery-a0t017ph.js} +18 -18
- package/dist/chunks/{reference-gqtdsdt7.js → instruction-discovery-addxnjmp.js} +4 -4
- package/dist/chunks/{reference-65cg4f0c.js → instruction-discovery-afc89ade.js} +10 -10
- package/dist/chunks/{reference-n61013np.js → instruction-discovery-am6f2qjv.js} +6 -6
- package/dist/chunks/{reference-1wws9p1z.js → instruction-discovery-an1jv1pa.js} +15 -15
- package/dist/chunks/{reference-ew5jdcsq.js → instruction-discovery-anwhnb2d.js} +89 -89
- package/dist/chunks/{reference-nywhfaw1.js → instruction-discovery-arkcm2ny.js} +9 -9
- package/dist/chunks/{reference-gm24xgn7.js → instruction-discovery-aynn7abp.js} +28 -28
- package/dist/chunks/{reference-f66eae49.js → instruction-discovery-b0j129rr.js} +19 -19
- package/dist/chunks/{reference-y179arr5.js → instruction-discovery-b4ea2vqv.js} +29 -29
- package/dist/chunks/{reference-5ttccjpc.js → instruction-discovery-bdz9ry1p.js} +6 -6
- package/dist/chunks/{reference-k4fxrsyq.js → instruction-discovery-bmyepz0x.js} +15 -15
- package/dist/chunks/{reference-aad9zq7v.js → instruction-discovery-bxn8npdm.js} +15 -15
- package/dist/chunks/{reference-es1vcfrp.js → instruction-discovery-c1fqxshp.js} +3 -3
- package/dist/chunks/{reference-hy1n1we9.js → instruction-discovery-c2f194xb.js} +49 -49
- package/dist/chunks/{reference-132ycjkv.js → instruction-discovery-cn5f6y8n.js} +24 -24
- package/dist/chunks/{reference-2k20t02z.js → instruction-discovery-cqwer3tv.js} +22 -22
- package/dist/chunks/{reference-vvtb55nw.js → instruction-discovery-cvpgerb4.js} +190 -190
- package/dist/chunks/{reference-p37hdxy1.js → instruction-discovery-d05e2dpj.js} +46 -46
- package/dist/chunks/{reference-51f5btjf.js → instruction-discovery-d0k1g5nx.js} +6 -6
- package/dist/chunks/{reference-2yn5t4yf.js → instruction-discovery-d0sm7wyd.js} +34 -34
- package/dist/chunks/{reference-pyg4v0b6.js → instruction-discovery-d3y6n0b6.js} +4 -4
- package/dist/chunks/{reference-q2kevabj.js → instruction-discovery-d44g346f.js} +4 -4
- package/dist/chunks/{reference-cxy0as94.js → instruction-discovery-d79e138d.js} +50 -50
- package/dist/chunks/{reference-q1m8dxm9.js → instruction-discovery-d8zg3xw8.js} +37 -37
- package/dist/chunks/{reference-r8f59mgg.js → instruction-discovery-deztckzr.js} +18 -18
- package/dist/chunks/{reference-jhzvven8.js → instruction-discovery-dk8f0wjs.js} +7 -7
- package/dist/chunks/{reference-wkqr0wp4.js → instruction-discovery-dk8zk830.js} +50 -50
- package/dist/chunks/{reference-01es0w8g.js → instruction-discovery-dm1rwr2p.js} +11 -11
- package/dist/chunks/{reference-q5ewyrx0.js → instruction-discovery-dn60m14v.js} +28 -28
- package/dist/chunks/{reference-d1bka95m.js → instruction-discovery-dnnn3g48.js} +6 -6
- package/dist/chunks/{reference-dpkg50ah.js → instruction-discovery-dpkg50ah.js} +1 -1
- package/dist/chunks/{reference-dqxsqydv.js → instruction-discovery-dqxsqydv.js} +1 -1
- package/dist/chunks/{reference-gw8exty3.js → instruction-discovery-dtvpbkqr.js} +19 -19
- package/dist/chunks/{reference-vt08q70p.js → instruction-discovery-e1djpaqy.js} +17 -17
- package/dist/chunks/{reference-ed1g29hy.js → instruction-discovery-e80seqcp.js} +3 -3
- package/dist/chunks/{reference-azemn7z6.js → instruction-discovery-eaeaap33.js} +9 -9
- package/dist/chunks/{reference-yak3hf0z.js → instruction-discovery-ed38js2d.js} +60 -60
- package/dist/chunks/{reference-eej6y6fw.js → instruction-discovery-eej6y6fw.js} +2 -2
- package/dist/chunks/{reference-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{reference-dq5fx745.js → instruction-discovery-er5c7pdw.js} +26 -26
- package/dist/chunks/{reference-nsxf7brj.js → instruction-discovery-f4whfjde.js} +37 -37
- package/dist/chunks/{reference-dqdg7a0v.js → instruction-discovery-fesr6daw.js} +4 -4
- package/dist/chunks/{reference-krdwghjp.js → instruction-discovery-fhm98gwr.js} +5 -5
- package/dist/chunks/{reference-y4ny2pth.js → instruction-discovery-fhneg79x.js} +19 -19
- package/dist/chunks/{reference-s5yya818.js → instruction-discovery-fxataexq.js} +22 -22
- package/dist/chunks/{reference-khmqacep.js → instruction-discovery-fxaymqdw.js} +4 -4
- package/dist/chunks/{reference-7xyrrtj6.js → instruction-discovery-fyjp43ss.js} +5 -5
- package/dist/chunks/{reference-ahz9yk24.js → instruction-discovery-g3y7bjhb.js} +14 -14
- package/dist/chunks/{reference-d7x0sh0y.js → instruction-discovery-g686f6pq.js} +9 -9
- package/dist/chunks/{reference-ec56ww6f.js → instruction-discovery-g76hbfwx.js} +24 -24
- package/dist/chunks/{reference-n5xpsxq8.js → instruction-discovery-g7d6kkwh.js} +32 -32
- package/dist/chunks/{reference-7kcbr8xv.js → instruction-discovery-gbnkk931.js} +33 -33
- package/dist/chunks/{reference-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{reference-fqmb1432.js → instruction-discovery-gdd5b309.js} +8 -8
- package/dist/chunks/{reference-e9mw71vf.js → instruction-discovery-gf48kp7h.js} +11 -11
- package/dist/chunks/{reference-d9zmkgd4.js → instruction-discovery-gh1cfzqe.js} +20 -20
- package/dist/chunks/{reference-qxzvmfjp.js → instruction-discovery-gj5mxq9j.js} +4 -4
- package/dist/chunks/{reference-je5d3c79.js → instruction-discovery-gmtsgm6h.js} +17 -17
- package/dist/chunks/{reference-wx7k6370.js → instruction-discovery-gvq71yfv.js} +23 -23
- package/dist/chunks/{reference-vacxjxj3.js → instruction-discovery-gzwa2jyh.js} +3 -3
- package/dist/chunks/{reference-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{reference-h7s7r6s9.js → instruction-discovery-h7s7r6s9.js} +2 -2
- package/dist/chunks/{reference-s6vxrzhc.js → instruction-discovery-hbs3tas6.js} +5 -5
- package/dist/chunks/{reference-hgz4x7wa.js → instruction-discovery-hgz4x7wa.js} +1 -1
- package/dist/chunks/{reference-36nn25hb.js → instruction-discovery-hvsbwkzx.js} +45 -45
- package/dist/chunks/{reference-axjfn32c.js → instruction-discovery-hwvf8j5p.js} +29 -29
- package/dist/chunks/{reference-5527nycg.js → instruction-discovery-hztdefgr.js} +25 -25
- package/dist/chunks/{reference-qs0nx109.js → instruction-discovery-j0nh1mgf.js} +28 -28
- package/dist/chunks/{reference-p474d7yp.js → instruction-discovery-jd2tz9j2.js} +22 -22
- package/dist/chunks/{reference-cqy527p5.js → instruction-discovery-jdywrghb.js} +10 -10
- package/dist/chunks/{reference-9v5dq8n9.js → instruction-discovery-jrzmnkg9.js} +25 -25
- package/dist/chunks/{reference-s0kdr57z.js → instruction-discovery-k1n9ytqj.js} +18 -18
- package/dist/chunks/{reference-ys0m66b2.js → instruction-discovery-k25jrs0g.js} +27 -27
- package/dist/chunks/{reference-t4p70czd.js → instruction-discovery-kksb4y7r.js} +11 -11
- package/dist/chunks/{reference-nkqw9m3h.js → instruction-discovery-kx590b7g.js} +26 -26
- package/dist/chunks/{reference-4cqhq9mq.js → instruction-discovery-m98n21m1.js} +19 -19
- package/dist/chunks/{reference-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{reference-maspj1v3.js → instruction-discovery-maspj1v3.js} +1 -1
- package/dist/chunks/{reference-63db42yp.js → instruction-discovery-mbnxefga.js} +2 -2
- package/dist/chunks/{reference-jk540des.js → instruction-discovery-mcgg1rg4.js} +14 -6
- package/dist/chunks/{reference-gn31e51v.js → instruction-discovery-mek16e5d.js} +11 -11
- package/dist/chunks/{reference-rtdaykpn.js → instruction-discovery-mqqva4dz.js} +29 -29
- package/dist/chunks/{reference-1fmrbde1.js → instruction-discovery-mvfdckk2.js} +6 -6
- package/dist/chunks/{reference-0170kczj.js → instruction-discovery-mw3hxzp4.js} +11 -11
- package/dist/chunks/{reference-kph0xsh6.js → instruction-discovery-myvxdkkw.js} +20 -20
- package/dist/chunks/{reference-vm7c5k2y.js → instruction-discovery-n36cz2kn.js} +3 -3
- package/dist/chunks/{reference-j58c5xyq.js → instruction-discovery-n37c4crj.js} +9 -9
- package/dist/chunks/{reference-zgkz7fqw.js → instruction-discovery-n8bv0sa4.js} +31 -31
- package/dist/chunks/{reference-6gjn20d2.js → instruction-discovery-n9jssr68.js} +11 -11
- package/dist/chunks/{reference-2sc3sc4p.js → instruction-discovery-ngnpdf4h.js} +14 -14
- package/dist/chunks/{reference-676ffxyw.js → instruction-discovery-nm6k19tz.js} +35 -35
- package/dist/chunks/{reference-0sgp6vrq.js → instruction-discovery-nnekz5nz.js} +12 -12
- package/dist/chunks/{reference-3fxqyn52.js → instruction-discovery-nsprr89q.js} +8 -8
- package/dist/chunks/{reference-rsz0h36s.js → instruction-discovery-nx8grar1.js} +33 -33
- package/dist/chunks/{reference-63zg3mg5.js → instruction-discovery-p0jkddme.js} +22 -22
- package/dist/chunks/{reference-3njtpr6j.js → instruction-discovery-p2c3safp.js} +9 -9
- package/dist/chunks/{reference-rpz1svrt.js → instruction-discovery-p5erqdfk.js} +1 -1
- package/dist/chunks/{reference-vcp5fwvv.js → instruction-discovery-p9hg9hcj.js} +19 -19
- package/dist/chunks/{reference-vz1ztd4p.js → instruction-discovery-pah2hahp.js} +24 -24
- package/dist/chunks/{reference-whrbz81v.js → instruction-discovery-pcdt4n7h.js} +32 -32
- package/dist/chunks/{reference-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{reference-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{reference-y41eqcyh.js → instruction-discovery-ppyys8tk.js} +24 -24
- package/dist/chunks/{reference-q0xm7vwc.js → instruction-discovery-q0xm7vwc.js} +2 -2
- package/dist/chunks/{reference-qnc92qwc.js → instruction-discovery-qnc92qwc.js} +1 -1
- package/dist/chunks/{reference-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{reference-gwf8vbvc.js → instruction-discovery-qyeykpda.js} +20 -20
- package/dist/chunks/{reference-rqraeqvr.js → instruction-discovery-qykkc67d.js} +4 -4
- package/dist/chunks/{reference-njp0gf2a.js → instruction-discovery-qz02d4gv.js} +11 -11
- package/dist/chunks/{reference-9dtek7rd.js → instruction-discovery-r0ygj1jg.js} +30 -30
- package/dist/chunks/{reference-g51r3c4s.js → instruction-discovery-r17nf67x.js} +15 -15
- package/dist/chunks/{reference-e8vwfchq.js → instruction-discovery-r21g991y.js} +6 -6
- package/dist/chunks/{reference-hvg0snfm.js → instruction-discovery-r3w64s9s.js} +18 -18
- package/dist/chunks/{reference-48s9929f.js → instruction-discovery-r659b7sp.js} +18 -18
- package/dist/chunks/{reference-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{reference-y456k0gx.js → instruction-discovery-redv2w84.js} +24 -24
- package/dist/chunks/{reference-tkb22qbm.js → instruction-discovery-rert0e01.js} +2 -2
- package/dist/chunks/{reference-eaj1djv9.js → instruction-discovery-rhjbct0v.js} +8 -8
- package/dist/chunks/{reference-c41wscbt.js → instruction-discovery-rj3eygr5.js} +2 -2
- package/dist/chunks/{reference-vd7cyv2z.js → instruction-discovery-rk5a64xw.js} +28 -28
- package/dist/chunks/{reference-jvf3yq6v.js → instruction-discovery-rpg9c19m.js} +4 -4
- package/dist/chunks/{reference-ss358qx3.js → instruction-discovery-rrt0a0ha.js} +3 -3
- package/dist/chunks/{reference-h90v2x9d.js → instruction-discovery-s26hbv8p.js} +4 -4
- package/dist/chunks/{reference-3jxt0407.js → instruction-discovery-s6cvh2py.js} +4 -4
- package/dist/chunks/{reference-88bhjm42.js → instruction-discovery-s97ptryn.js} +14 -14
- package/dist/chunks/{reference-c8ax2afj.js → instruction-discovery-sa8ekw3f.js} +2 -2
- package/dist/chunks/{reference-hdkng2sj.js → instruction-discovery-scgrse2b.js} +5 -5
- package/dist/chunks/{reference-c74bvw4q.js → instruction-discovery-sf96nt6v.js} +13 -13
- package/dist/chunks/{reference-7qen6kzn.js → instruction-discovery-sgd8205n.js} +5 -5
- package/dist/chunks/{reference-51vcra35.js → instruction-discovery-sjggpmq3.js} +11 -11
- package/dist/chunks/{reference-syv4x271.js → instruction-discovery-syv4x271.js} +1 -1
- package/dist/chunks/{reference-n3kdjaet.js → instruction-discovery-t23q2gqf.js} +13 -13
- package/dist/chunks/{reference-6hh8tjw2.js → instruction-discovery-t6vsspdg.js} +7 -7
- package/dist/chunks/{reference-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{reference-h45tnvxx.js → instruction-discovery-tbj4gm0g.js} +69 -69
- package/dist/chunks/{reference-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{reference-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{reference-crn6sf7s.js → instruction-discovery-te5rt75t.js} +9 -9
- package/dist/chunks/{reference-tm0kqsz3.js → instruction-discovery-tm0kqsz3.js} +1 -1
- package/dist/chunks/{reference-axfvp7va.js → instruction-discovery-tm6m41eq.js} +8 -8
- package/dist/chunks/{reference-z4h9wx76.js → instruction-discovery-tnzkad2a.js} +40 -40
- package/dist/chunks/{reference-n0ve5gdb.js → instruction-discovery-tp8w4ggf.js} +5 -5
- package/dist/chunks/{reference-8pedcj79.js → instruction-discovery-ts0gh8et.js} +17 -17
- package/dist/chunks/{reference-sy99d12a.js → instruction-discovery-ttbszg9w.js} +21 -21
- package/dist/chunks/instruction-discovery-ttge26p3.js +513 -0
- package/dist/chunks/{reference-78824m1b.js → instruction-discovery-tvkrxetj.js} +11 -11
- package/dist/chunks/{reference-jwyrdafh.js → instruction-discovery-tw6ga7pb.js} +16 -16
- package/dist/chunks/{reference-tyytaxap.js → instruction-discovery-tyytaxap.js} +1 -1
- package/dist/chunks/{reference-6rbe1m5x.js → instruction-discovery-v0hpbr4w.js} +32 -32
- package/dist/chunks/{reference-v7p4zvkq.js → instruction-discovery-v7p4zvkq.js} +2 -2
- package/dist/chunks/{reference-rqf4m8aw.js → instruction-discovery-va1nha5r.js} +28 -28
- package/dist/chunks/{reference-xwxft369.js → instruction-discovery-vcskyzb7.js} +1 -1
- package/dist/chunks/{reference-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{reference-rx2dg2kh.js → instruction-discovery-vp80wfjs.js} +45 -45
- package/dist/chunks/{reference-g6yfr6ja.js → instruction-discovery-vrrq7v3g.js} +5 -5
- package/dist/chunks/{reference-74gjv7rp.js → instruction-discovery-vywgnqw5.js} +51 -51
- package/dist/chunks/{reference-vzs5sf6e.js → instruction-discovery-vzs5sf6e.js} +1 -1
- package/dist/chunks/{reference-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{reference-y72zmemf.js → instruction-discovery-w3x9v1nk.js} +8 -8
- package/dist/chunks/{reference-ve45bn9x.js → instruction-discovery-w667zm0d.js} +6 -6
- package/dist/chunks/{reference-p70m11t7.js → instruction-discovery-w84sncwb.js} +11 -11
- package/dist/chunks/{reference-256smw24.js → instruction-discovery-w9d4qx3c.js} +8 -8
- package/dist/chunks/{reference-g7m13ce8.js → instruction-discovery-waq2gve3.js} +36 -36
- package/dist/chunks/{reference-5vxqm9q6.js → instruction-discovery-wca6rppr.js} +43 -43
- package/dist/chunks/{reference-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{reference-qdtbhe1n.js → instruction-discovery-wdy1g13m.js} +5 -5
- package/dist/chunks/{reference-dfswxmta.js → instruction-discovery-wnr73e5f.js} +20 -20
- package/dist/chunks/{reference-3q9g49xq.js → instruction-discovery-wqfpt31c.js} +16 -16
- package/dist/chunks/{reference-3ec2hwya.js → instruction-discovery-wqrfg65e.js} +13 -13
- package/dist/chunks/{reference-ym1z1sce.js → instruction-discovery-wt9anvpp.js} +3 -3
- package/dist/chunks/{reference-pr1m8j7y.js → instruction-discovery-wtww1gdk.js} +8 -8
- package/dist/chunks/{reference-2zmfhp2c.js → instruction-discovery-wwajdw47.js} +9 -9
- package/dist/chunks/{reference-1kwkgjs8.js → instruction-discovery-wyhtzqkq.js} +12 -12
- package/dist/chunks/{reference-drwq78ky.js → instruction-discovery-xfkkasph.js} +4 -4
- package/dist/chunks/{reference-drqqcwyg.js → instruction-discovery-xn3ttaks.js} +57 -57
- package/dist/chunks/{reference-9cjp3vjk.js → instruction-discovery-xpbc9swk.js} +11 -11
- package/dist/chunks/{reference-agvdfdvn.js → instruction-discovery-xqf30h8h.js} +5 -5
- package/dist/chunks/{reference-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{reference-84d4sta2.js → instruction-discovery-y9h20586.js} +39 -39
- package/dist/chunks/{reference-67prdeth.js → instruction-discovery-ygj6d1q8.js} +3 -3
- package/dist/chunks/{reference-1311jqsc.js → instruction-discovery-yjagzrbw.js} +23 -23
- package/dist/chunks/{reference-drqybash.js → instruction-discovery-yzadaxk8.js} +4 -4
- package/dist/chunks/{reference-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{reference-n1shqbp3.js → instruction-discovery-z4cgyzjc.js} +22 -22
- package/dist/chunks/{reference-zzdwtnvj.js → instruction-discovery-zba37znz.js} +19 -19
- package/dist/chunks/{reference-dz85ej5f.js → instruction-discovery-zbmrnc37.js} +16 -16
- package/dist/chunks/{reference-nm3w2d7y.js → instruction-discovery-zccg1gv6.js} +25 -25
- package/dist/chunks/{reference-sa7t01dg.js → instruction-discovery-zntnh37a.js} +97 -97
- package/dist/chunks/{reference-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{reference-2ktf0ed2.js → instruction-discovery-zrq8kphx.js} +8 -8
- package/dist/chunks/{reference-pjm3t1ca.js → instruction-discovery-zw16ksqp.js} +15 -15
- package/dist/chunks/{reference-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- 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 +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +72 -72
- 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 +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +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 +216 -216
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +104 -104
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- 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 +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- 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 +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +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 +101 -101
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +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 +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- 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 +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- 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 +135 -135
- 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 +219 -219
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- 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 +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- 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 +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +11 -11
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- 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 +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/reference-4f65x4ny.js +0 -513
- package/dist/chunks/reference-9r6rs471.js +0 -26
- package/dist/chunks/reference-by5v678g.js +0 -18
- package/dist/chunks/reference-sm5yn6ps.js +0 -253
- /package/dist/chunks/{reference-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{reference-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{reference-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{reference-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{reference-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{reference-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{reference-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{reference-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{reference-2bv980vf.js → instruction-discovery-2bv980vf.js} +0 -0
- /package/dist/chunks/{reference-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{reference-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{reference-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{reference-3t0ybcrp.js → instruction-discovery-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{reference-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{reference-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{reference-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{reference-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{reference-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{reference-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{reference-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{reference-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{reference-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{reference-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{reference-6q2bdcd1.js → instruction-discovery-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{reference-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{reference-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{reference-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{reference-84wd9syh.js → instruction-discovery-84wd9syh.js} +0 -0
- /package/dist/chunks/{reference-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{reference-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{reference-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{reference-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{reference-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{reference-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{reference-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{reference-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{reference-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{reference-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{reference-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{reference-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{reference-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{reference-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{reference-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{reference-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{reference-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{reference-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{reference-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{reference-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{reference-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{reference-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{reference-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{reference-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{reference-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{reference-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{reference-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{reference-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{reference-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{reference-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{reference-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{reference-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{reference-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{reference-hcxmzztb.js → instruction-discovery-hcxmzztb.js} +0 -0
- /package/dist/chunks/{reference-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{reference-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{reference-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{reference-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{reference-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{reference-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{reference-jze0r7bz.js → instruction-discovery-jze0r7bz.js} +0 -0
- /package/dist/chunks/{reference-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{reference-m18g726c.js → instruction-discovery-m18g726c.js} +0 -0
- /package/dist/chunks/{reference-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{reference-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{reference-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{reference-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{reference-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{reference-pkyv6v7h.js → instruction-discovery-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{reference-pyv0edze.js → instruction-discovery-pyv0edze.js} +0 -0
- /package/dist/chunks/{reference-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{reference-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{reference-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{reference-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{reference-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{reference-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{reference-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{reference-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{reference-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{reference-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{reference-ve7vex1e.js → instruction-discovery-ve7vex1e.js} +0 -0
- /package/dist/chunks/{reference-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{reference-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{reference-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{reference-wjj7prxr.js → instruction-discovery-wjj7prxr.js} +0 -0
- /package/dist/chunks/{reference-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{reference-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{reference-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{reference-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{reference-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{reference-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{reference-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{reference-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{reference-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Info14,
|
|
6
|
+
ID5,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-er5c7pdw.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service46
|
|
11
|
+
} from "./instruction-discovery-d79e138d.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
17
|
var exports_skill2 = {};
|
|
18
18
|
__export(exports_skill2, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin30,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
23
|
SkillPlugin: () => exports_skill2
|
|
24
24
|
});
|
|
@@ -424,20 +424,20 @@ var OpencodeContent2 = opencode_default;
|
|
|
424
424
|
var ReportContent2 = report_default;
|
|
425
425
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
426
426
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
427
|
-
var
|
|
427
|
+
var Plugin30 = define({
|
|
428
428
|
id: "opencode.skill",
|
|
429
429
|
effect: Effect.fn(function* (ctx) {
|
|
430
430
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
431
431
|
yield* ctx.skill.transform((editor) => {
|
|
432
|
-
editor.add(
|
|
433
|
-
id:
|
|
432
|
+
editor.add(Info14.make({
|
|
433
|
+
id: ID5.make("opencode"),
|
|
434
434
|
name: Name2.make("OpenCode"),
|
|
435
435
|
description: OpencodeDescription2,
|
|
436
436
|
path: AbsolutePath2.make("/builtin/opencode.md"),
|
|
437
437
|
content: OpencodeContent2
|
|
438
438
|
}));
|
|
439
|
-
editor.add(
|
|
440
|
-
id:
|
|
439
|
+
editor.add(Info14.make({
|
|
440
|
+
id: ID5.make("report"),
|
|
441
441
|
name: Name2.make("Report"),
|
|
442
442
|
description: REPORT_DESCRIPTION,
|
|
443
443
|
path: AbsolutePath2.make("/builtin/report.md"),
|
|
@@ -466,7 +466,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
466
466
|
`);
|
|
467
467
|
});
|
|
468
468
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
469
|
-
const config = yield*
|
|
469
|
+
const config = yield* Service46;
|
|
470
470
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
471
471
|
});
|
|
472
472
|
function terminal() {
|
|
@@ -480,4 +480,4 @@ function shell() {
|
|
|
480
480
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
483
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin30, exports_skill2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-rrt0a0ha.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error2 = {};
|
|
@@ -19,7 +19,7 @@ __export(exports_error2, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError8,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
24
|
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -31,7 +31,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
31
31
|
import { Skill } from "@opencode/schema/skill";
|
|
32
32
|
import { SessionError } from "@opencode/schema/session-error";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class NotFoundError8 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
35
35
|
sessionID: SessionSchema2.ID
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
@@ -116,4 +116,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
116
116
|
}) {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export {
|
|
119
|
+
export { NotFoundError8, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-97aeaand.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info8
|
|
9
|
+
} from "./instruction-discovery-am6f2qjv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info9
|
|
12
|
+
} from "./instruction-discovery-t6vsspdg.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info6
|
|
15
|
+
} from "./instruction-discovery-vrrq7v3g.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-2k8khapm.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info7
|
|
21
|
+
} from "./instruction-discovery-6kzp9tjq.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./instruction-discovery-qykkc67d.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info9, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info8, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info8, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info6, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -425,7 +425,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
425
425
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
426
426
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
427
427
|
return [];
|
|
428
|
-
const provider = decodeValue(
|
|
428
|
+
const provider = decodeValue(Info7, raw, path, diagnostics);
|
|
429
429
|
if (provider === undefined)
|
|
430
430
|
return [];
|
|
431
431
|
const destination = providerID2(name);
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service85
|
|
3
|
+
} from "./instruction-discovery-kksb4y7r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service54
|
|
6
|
+
} from "./instruction-discovery-d0k1g5nx.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-7fj5dwt0.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-3sj8yt8v.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-nsprr89q.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-gbnkk931.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service31
|
|
21
|
+
} from "./instruction-discovery-anwhnb2d.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
29
|
-
SessionGenerate: () =>
|
|
27
|
+
var exports_generate2 = {};
|
|
28
|
+
__export(exports_generate2, {
|
|
29
|
+
SessionGenerate: () => exports_generate2,
|
|
30
30
|
generate: () => generate2
|
|
31
31
|
});
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
36
|
-
const database = yield*
|
|
35
|
+
const instances = yield* Service54;
|
|
36
|
+
const database = yield* Service85;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service31;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -71,4 +71,4 @@ var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
|
71
71
|
}).pipe(instances.provide(input.session));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
export { generate2,
|
|
74
|
+
export { generate2, exports_generate2 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./instruction-discovery-wqfpt31c.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-g7d6kkwh.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service79,
|
|
15
|
+
node83
|
|
16
|
+
} from "./instruction-discovery-ngnpdf4h.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info3,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service15,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node18
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info3, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service15 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service15, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const bus = yield*
|
|
61
|
+
const location = yield* Service79;
|
|
62
|
+
const bus = yield* Service84;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info3));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service15.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node18 = makeLocationNode({
|
|
191
|
+
service: Service15,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node83, node88]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info3, Mode2, DiffError2, InitializeError2, Service15, node18, exports_vcs };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-rj3eygr5.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key3,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
|
|
|
18
18
|
diffByKey: () => diffByKey2,
|
|
19
19
|
empty: () => empty3,
|
|
20
20
|
hash: () => hash2,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make20,
|
|
22
22
|
read: () => read3,
|
|
23
23
|
removed: () => removed2,
|
|
24
24
|
renderInitial: () => renderInitial2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key3 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,21 +36,21 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key3
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
var empty3 = [];
|
|
53
|
-
function
|
|
53
|
+
function make20(source) {
|
|
54
54
|
const decode = Schema.decodeUnknownOption(source.codec);
|
|
55
55
|
const encode = Schema.encodeSync(source.codec);
|
|
56
56
|
const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make20, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-qnc92qwc.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./instruction-discovery-wqfpt31c.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID15,
|
|
20
|
+
Info: () => Info25,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
|
+
Reply: () => Reply3,
|
|
25
|
+
Service: () => Service77,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer27,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node81,
|
|
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 ID15 = Form.ID;
|
|
39
|
+
var Info25 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID15
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID15
|
|
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: ID15
|
|
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: ID15,
|
|
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 Service77 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer27 = Layer.effect(
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer27 = Layer.effect(Service77, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service84;
|
|
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 ?? ID15.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 layer27 = Layer.effect(Service73, 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 Service77.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node81 = makeLocationNode({ service: Service77, layer: layer27, deps: [node88] });
|
|
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 { ID15, Info25, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service77, layer27, node81, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/runner/index.ts
|
|
6
6
|
var exports_runner = {};
|
|
7
7
|
__export(exports_runner, {
|
|
8
8
|
DrainResult: () => DrainResult2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service52,
|
|
10
10
|
SessionRunner: () => exports_runner
|
|
11
11
|
});
|
|
12
12
|
import { Context, Data } from "effect";
|
|
13
13
|
var DrainResult2 = Data.taggedEnum();
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service52 extends Context.Service()("@opencode/SessionRunner") {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export { DrainResult2,
|
|
18
|
+
export { DrainResult2, Service52, exports_runner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID8 = Session.ID;
|
|
5
|
+
var Info17 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID8, Info17, SessionSchema2 };
|