@opencode/core 0.0.0-dev-21845 → 0.0.0-dev-21852
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 +84 -83
- package/dist/aisdk-native.js +95 -94
- package/dist/aisdk.js +101 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +74 -73
- package/dist/chunks/{model-7yzsmpy0.js → integration-020agrc6.js} +15 -15
- package/dist/chunks/{model-qyq8h28g.js → integration-033a0jkt.js} +3 -3
- package/dist/chunks/{model-034tev2y.js → integration-034tev2y.js} +2 -2
- package/dist/chunks/{model-7fxaydp2.js → integration-03efvwc7.js} +12 -12
- package/dist/chunks/{model-06w9ffrv.js → integration-06w9ffrv.js} +1 -1
- package/dist/chunks/{model-f25016qf.js → integration-0w838cmy.js} +7 -7
- package/dist/chunks/{model-11hfp36g.js → integration-11hfp36g.js} +1 -1
- package/dist/chunks/{model-t0891ggs.js → integration-17tscvp9.js} +7 -7
- package/dist/chunks/{model-61nbvadz.js → integration-1ar2r8ht.js} +23 -23
- package/dist/chunks/{model-1ep2p91f.js → integration-1ep2p91f.js} +2 -2
- package/dist/chunks/{model-t5k7yfgh.js → integration-1n7cfpf3.js} +4 -4
- package/dist/chunks/{model-5gpknzzs.js → integration-1pqxvwwm.js} +7 -7
- package/dist/chunks/{model-1x2knyw4.js → integration-1x2knyw4.js} +1 -1
- package/dist/chunks/{model-1tmx6d4w.js → integration-1xcpx9pg.js} +13 -13
- package/dist/chunks/{model-egfzyrh6.js → integration-211qv987.js} +9 -9
- package/dist/chunks/{model-mk552aj1.js → integration-27vjm38j.js} +18 -18
- package/dist/chunks/{model-6zffjc3y.js → integration-29ceven5.js} +20 -20
- package/dist/chunks/{model-wntksck6.js → integration-29fm5e7s.js} +26 -26
- package/dist/chunks/{model-pkyv6v7h.js → integration-2beny6pf.js} +24 -0
- package/dist/chunks/{model-cqsckrq7.js → integration-2bw432fj.js} +9 -9
- package/dist/chunks/{model-yg7sgxt8.js → integration-2p76qs42.js} +11 -11
- package/dist/chunks/{model-dmzdysgz.js → integration-2r67ppq4.js} +4 -4
- package/dist/chunks/{model-zr1qzx10.js → integration-2xbqyp7d.js} +23 -23
- package/dist/chunks/{model-2z1j29yd.js → integration-2z1j29yd.js} +1 -1
- package/dist/chunks/{model-6jrjvs1q.js → integration-30147ds3.js} +6 -6
- package/dist/chunks/{model-eqh43b5v.js → integration-32s59e8p.js} +9 -9
- package/dist/chunks/{model-997kbpmn.js → integration-38r8bs6z.js} +83 -83
- package/dist/chunks/{model-n9j61ap5.js → integration-396yyrq3.js} +8 -8
- package/dist/chunks/{model-5w7qse6t.js → integration-39wcs8g0.js} +6 -6
- package/dist/chunks/{model-fjjq356h.js → integration-3gef6q7b.js} +20 -20
- package/dist/chunks/{model-3hepkmqq.js → integration-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-a4zd03bm.js → integration-3kns8f35.js} +33 -33
- package/dist/chunks/{model-ny7dq850.js → integration-3qn6bxmp.js} +14 -14
- package/dist/chunks/{model-g55x0rgz.js → integration-3qq49eqf.js} +33 -33
- package/dist/chunks/{model-hcfepwe9.js → integration-3xym5v1x.js} +20 -20
- package/dist/chunks/{model-w2eysc6j.js → integration-40za9wsf.js} +9 -9
- package/dist/chunks/{model-eq9v1gwe.js → integration-47c5fhww.js} +15 -15
- package/dist/chunks/{model-5c2jv3bs.js → integration-47pdn9hb.js} +24 -24
- package/dist/chunks/{model-40vwnjgs.js → integration-4964swp9.js} +26 -26
- package/dist/chunks/integration-4fv6fqf0.js +107 -0
- package/dist/chunks/{model-t6sg7dcf.js → integration-4fxp20j0.js} +9 -9
- package/dist/chunks/{model-yb10ee6p.js → integration-4mw9dk18.js} +42 -42
- package/dist/chunks/{model-sjhm24t9.js → integration-4mzbvgrb.js} +13 -13
- package/dist/chunks/{model-4v008n1t.js → integration-4v008n1t.js} +1 -1
- package/dist/chunks/{model-dkb543ed.js → integration-4vx5mm1q.js} +14 -14
- package/dist/chunks/{model-0tpkjg9c.js → integration-4wqc8mqe.js} +5 -5
- package/dist/chunks/{model-4xvmh7wp.js → integration-4xvmh7wp.js} +3 -3
- package/dist/chunks/{model-bcaznchz.js → integration-4y9xaxd1.js} +24 -24
- package/dist/chunks/{model-e9fqtmvn.js → integration-4zzr4cvj.js} +4 -4
- package/dist/chunks/{model-qsee9sfb.js → integration-5epte933.js} +2 -2
- package/dist/chunks/{model-5m9w47nd.js → integration-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-0avazfzn.js → integration-5mxq4ta4.js} +9 -9
- package/dist/chunks/{model-7pap5qv0.js → integration-5sdvqbc5.js} +10 -10
- package/dist/chunks/{model-z007v0dr.js → integration-5ve839fw.js} +18 -18
- package/dist/chunks/{model-zzdv5d93.js → integration-61ennm6n.js} +4 -4
- package/dist/chunks/{model-frh258xe.js → integration-6be7m0jd.js} +4 -4
- package/dist/chunks/{model-6esdw8yj.js → integration-6esdw8yj.js} +1 -1
- package/dist/chunks/{model-6pjqjmy2.js → integration-6pjqjmy2.js} +1 -1
- package/dist/chunks/{model-nwd6n5xv.js → integration-6pv1cy6c.js} +2 -2
- package/dist/chunks/{model-f55ft9wv.js → integration-75kye42g.js} +1 -1
- package/dist/chunks/{model-76cb1hcw.js → integration-76cb1hcw.js} +1 -1
- package/dist/chunks/{model-pjwfm23k.js → integration-7at1q1sz.js} +11 -11
- package/dist/chunks/{model-7bmhse3q.js → integration-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-7w2ypzdf.js → integration-7w2ypzdf.js} +1 -1
- package/dist/chunks/{model-fkhwkvg4.js → integration-8424f1y8.js} +10 -10
- package/dist/chunks/{model-06s4d948.js → integration-84nrg8k2.js} +31 -31
- package/dist/chunks/{model-k2jarxn6.js → integration-84vzjq21.js} +27 -27
- package/dist/chunks/{model-vj9d8dr6.js → integration-85k4gjhb.js} +32 -32
- package/dist/chunks/{model-esvjtfcf.js → integration-8e8b3c1h.js} +32 -32
- package/dist/chunks/{model-6d6xnsqa.js → integration-8k8s1td8.js} +5 -5
- package/dist/chunks/{model-cjhqq07p.js → integration-8qww226p.js} +4 -4
- package/dist/chunks/{model-r2z5h2ge.js → integration-8qwwe1g8.js} +10 -10
- package/dist/chunks/{model-h06hrdvc.js → integration-8r1p9dw6.js} +22 -22
- package/dist/chunks/{model-jjg5yz1h.js → integration-8s7zz8t5.js} +9 -9
- package/dist/chunks/{model-9eegv743.js → integration-8t0ndcz4.js} +19 -19
- package/dist/chunks/{model-8wc2fpae.js → integration-8wc2fpae.js} +2 -2
- package/dist/chunks/{model-8wtp7s3z.js → integration-8wtp7s3z.js} +1 -1
- package/dist/chunks/{model-91rj84md.js → integration-91rj84md.js} +1 -1
- package/dist/chunks/{model-ej1k89v7.js → integration-937d7k2b.js} +16 -16
- package/dist/chunks/integration-95r0pv34.js +26 -0
- package/dist/chunks/{model-yfxbc0kt.js → integration-979273pa.js} +9 -9
- package/dist/chunks/{model-awgvhhmb.js → integration-99wwqk9s.js} +17 -17
- package/dist/chunks/{model-9cx9sm2q.js → integration-9cx9sm2q.js} +1 -1
- package/dist/chunks/{model-v3rpj7pd.js → integration-9jxgthx4.js} +3 -3
- package/dist/chunks/{model-rzx8gj4c.js → integration-9n1r2pw9.js} +46 -46
- package/dist/chunks/{model-v0t96s7a.js → integration-9q8g9sv8.js} +4 -4
- package/dist/chunks/{model-veetryz8.js → integration-9w8sfqp5.js} +14 -14
- package/dist/chunks/{model-ms4pe9g0.js → integration-9wfm676k.js} +13 -13
- package/dist/chunks/{model-71qqd1mm.js → integration-9xn0wmwg.js} +18 -18
- package/dist/chunks/{model-e77fbdv5.js → integration-9zfvqddt.js} +13 -13
- package/dist/chunks/{model-s30kv3sw.js → integration-9zjt3hbt.js} +12 -12
- package/dist/chunks/{model-8z0derbe.js → integration-ad07szsv.js} +19 -19
- package/dist/chunks/{model-vjnr9cnd.js → integration-aekg9zan.js} +17 -17
- package/dist/chunks/{model-17n3exwy.js → integration-ag7gfhkv.js} +2 -2
- package/dist/chunks/{model-sy6e38w3.js → integration-aqnbmf10.js} +27 -27
- package/dist/chunks/{model-ayjs7tqn.js → integration-ayjs7tqn.js} +2 -2
- package/dist/chunks/{model-b0mv4wxm.js → integration-b0mv4wxm.js} +2 -2
- package/dist/chunks/{model-b1pn0vxn.js → integration-b1pn0vxn.js} +1 -1
- package/dist/chunks/{model-78hmycys.js → integration-b28mnwwt.js} +6 -6
- package/dist/chunks/{model-yvg25zy8.js → integration-b2zhd2n2.js} +3 -3
- package/dist/chunks/{model-6gqrrdq1.js → integration-b48f36at.js} +4 -4
- package/dist/chunks/{model-t2k6bxxg.js → integration-b54vbpz4.js} +19 -19
- package/dist/chunks/{model-g95jm4cv.js → integration-b6sd905c.js} +8 -8
- package/dist/chunks/{model-b6vsg801.js → integration-b6vsg801.js} +2 -2
- package/dist/chunks/{model-rbjssvma.js → integration-bp6aks6t.js} +28 -28
- package/dist/chunks/{model-bstexjd6.js → integration-bstexjd6.js} +1 -1
- package/dist/chunks/{model-a9fwsx2h.js → integration-c41gmgtm.js} +13 -13
- package/dist/chunks/{model-w9w8mt4n.js → integration-c5kjsz6q.js} +4 -4
- package/dist/chunks/{model-kmy9pf2x.js → integration-c6syzxg0.js} +23 -23
- package/dist/chunks/{model-zhetkrg0.js → integration-c9rahjjk.js} +40 -40
- package/dist/chunks/{model-2a76c6ad.js → integration-cc885ppd.js} +14 -14
- package/dist/chunks/{model-6ypx34xn.js → integration-cf90gy8w.js} +11 -11
- package/dist/chunks/{model-ns70a8r5.js → integration-cmwcv0tb.js} +12 -12
- package/dist/chunks/{model-vh56skz6.js → integration-cp67tm0g.js} +5 -5
- package/dist/chunks/{model-7ybvcghj.js → integration-czar3pqy.js} +43 -43
- package/dist/chunks/{model-d4v9tmah.js → integration-d4v9tmah.js} +2 -2
- package/dist/chunks/{model-jqjcc2y2.js → integration-dah0ztmn.js} +8 -8
- package/dist/chunks/{model-fv7b5yex.js → integration-djph8jbj.js} +57 -53
- package/dist/chunks/{model-nbfdmdkr.js → integration-dtar1tyk.js} +15 -15
- package/dist/chunks/{model-wh0fenxb.js → integration-dz3b4k9w.js} +34 -34
- package/dist/chunks/{model-vx39scks.js → integration-e6z5m6ve.js} +11 -11
- package/dist/chunks/{model-e834z07m.js → integration-e834z07m.js} +1 -1
- package/dist/chunks/{model-qfan4vrq.js → integration-ebpnb18j.js} +18 -18
- package/dist/chunks/{model-jmg5mq7t.js → integration-eceqz06v.js} +9 -9
- package/dist/chunks/{model-kfbetxq5.js → integration-edg2rgbp.js} +19 -19
- package/dist/chunks/{model-4cxp2d2n.js → integration-eeqrcvag.js} +24 -24
- package/dist/chunks/{model-v9v4gv6c.js → integration-eghc032h.js} +22 -22
- package/dist/chunks/{model-t5rrrqvg.js → integration-exkwrvdn.js} +13 -13
- package/dist/chunks/{model-w3mjsd54.js → integration-f04qf59f.js} +11 -11
- package/dist/chunks/{model-j8gx4rjz.js → integration-fctw3a38.js} +4 -4
- package/dist/chunks/{model-fffv3p7h.js → integration-fffv3p7h.js} +1 -1
- package/dist/chunks/integration-fkpq3x5p.js +36 -0
- package/dist/chunks/{model-8vy26t7y.js → integration-fpk0xpmh.js} +21 -21
- package/dist/chunks/{model-mj8fxm36.js → integration-fsd55tzk.js} +5 -5
- package/dist/chunks/{model-gmnsm0xm.js → integration-fz11hjpn.js} +5 -5
- package/dist/chunks/{model-g5h9c0rr.js → integration-g5h9c0rr.js} +2 -2
- package/dist/chunks/{model-wd9dar1k.js → integration-g9ybbf9c.js} +3 -3
- package/dist/chunks/{model-5067z2t4.js → integration-gag5dgxb.js} +1 -1
- package/dist/chunks/{model-4v99rvbj.js → integration-gd6hkkvy.js} +41 -41
- package/dist/chunks/{model-1npkc24w.js → integration-gjtbspeb.js} +12 -12
- package/dist/chunks/{model-evbwgfv9.js → integration-gve8fg9f.js} +5 -5
- package/dist/chunks/{model-dw227c1f.js → integration-gz8vwskn.js} +8 -8
- package/dist/chunks/{model-k71m6rcm.js → integration-h2wze9fg.js} +11 -11
- package/dist/chunks/{model-pre1sqds.js → integration-h3b857xk.js} +4 -4
- package/dist/chunks/{model-pmy52rqq.js → integration-h5ejxf76.js} +8 -8
- package/dist/chunks/{model-kdc9scmy.js → integration-h5g0v9q0.js} +32 -32
- package/dist/chunks/{model-2kx1ja8a.js → integration-h7nm3qzm.js} +7 -7
- package/dist/chunks/{model-2rpkyssh.js → integration-h84nmtd9.js} +12 -12
- package/dist/chunks/{model-mrf29jxn.js → integration-hdfes35a.js} +16 -16
- package/dist/chunks/{model-y22f06tx.js → integration-hdfrs5mg.js} +9 -9
- package/dist/chunks/{model-5kx0spx3.js → integration-hj833na9.js} +15 -15
- package/dist/chunks/{model-013tddxk.js → integration-hjscz5zc.js} +23 -23
- package/dist/chunks/{model-dn2d8szr.js → integration-hqqctcky.js} +15 -15
- package/dist/chunks/{model-81a9zpe2.js → integration-j0tgfc8g.js} +8 -8
- package/dist/chunks/{model-j113cymg.js → integration-j113cymg.js} +1 -1
- package/dist/chunks/{model-z7mja6z7.js → integration-j4ha54se.js} +15 -15
- package/dist/chunks/{model-gcjdgkn2.js → integration-jcqm84fr.js} +9 -9
- package/dist/chunks/{model-k03zy2hn.js → integration-jn88007r.js} +9 -9
- package/dist/chunks/{model-jefw9j3y.js → integration-jneg3k74.js} +4 -4
- package/dist/chunks/{model-517h8a04.js → integration-jp46n186.js} +16 -16
- package/dist/chunks/{model-7rtchw7v.js → integration-jqcnc8x2.js} +24 -24
- package/dist/chunks/{model-k814nvkf.js → integration-k814nvkf.js} +1 -1
- package/dist/chunks/{model-aeqdbpyb.js → integration-kbrwey91.js} +5 -5
- package/dist/chunks/{model-239hgfhk.js → integration-kbz2k1dv.js} +322 -322
- package/dist/chunks/{model-jc16a2xr.js → integration-kdnw5aby.js} +10 -10
- package/dist/chunks/{model-fx2893te.js → integration-kepp61dh.js} +27 -27
- package/dist/chunks/{model-ddhyr0yf.js → integration-kge26myw.js} +10 -10
- package/dist/chunks/{model-jg7z8f74.js → integration-kgjda4yp.js} +18 -18
- package/dist/chunks/{model-5f9k77aj.js → integration-kkd03qcg.js} +23 -23
- package/dist/chunks/{model-enkpkfwx.js → integration-kmzgegqq.js} +8 -8
- package/dist/chunks/{model-07zzdza0.js → integration-krx0eses.js} +8 -8
- package/dist/chunks/{model-kt3bjfbg.js → integration-kt3bjfbg.js} +1 -1
- package/dist/chunks/{model-344yvkvm.js → integration-kxx2qr6y.js} +18 -18
- package/dist/chunks/{model-38ys11y3.js → integration-kzdcqyn1.js} +5 -5
- package/dist/chunks/{model-m1714858.js → integration-m1714858.js} +1 -1
- package/dist/chunks/{model-pe0qgjpx.js → integration-m9bb5ktr.js} +30 -19
- package/dist/chunks/{model-4dkagkf8.js → integration-m9tync0b.js} +49 -29
- package/dist/chunks/{model-m9w0rfyh.js → integration-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-maspj1v3.js → integration-maspj1v3.js} +1 -1
- package/dist/chunks/{model-6av68hmr.js → integration-mc8wzqq3.js} +16 -16
- package/dist/chunks/{model-8zwekdex.js → integration-mdgmntsx.js} +45 -45
- package/dist/chunks/{model-mj0wev1x.js → integration-mj0wev1x.js} +2 -2
- package/dist/chunks/integration-mq5kch5e.js +261 -0
- package/dist/chunks/{model-gawwyhx0.js → integration-mt5atg1e.js} +1 -1
- package/dist/chunks/{model-g4mr61at.js → integration-n37y2xqe.js} +35 -35
- package/dist/chunks/{model-5wa8msaj.js → integration-n3v0xqc9.js} +15 -15
- package/dist/chunks/{model-jcnkegva.js → integration-n7b17ngh.js} +38 -38
- package/dist/chunks/{model-nah043kf.js → integration-nah043kf.js} +1 -1
- package/dist/chunks/{model-7texn7dm.js → integration-np0n6qy5.js} +14 -14
- package/dist/chunks/{model-9whfcf9d.js → integration-nvzssgbt.js} +16 -16
- package/dist/chunks/{model-p015t6z3.js → integration-p015t6z3.js} +2 -2
- package/dist/chunks/{model-h1x8n12b.js → integration-p1vte9h6.js} +11 -11
- package/dist/chunks/{model-bg5kv5wd.js → integration-p6sewx4m.js} +2 -2
- package/dist/chunks/{model-p7vhpwh8.js → integration-p7vhpwh8.js} +1 -1
- package/dist/chunks/{model-e07q2w5p.js → integration-pcty9z1k.js} +4 -4
- package/dist/chunks/{model-pknna89w.js → integration-pknna89w.js} +1 -1
- package/dist/chunks/{model-dy9zc4pe.js → integration-pnwsrq7c.js} +8 -8
- package/dist/chunks/integration-psgg7zsx.js +35 -0
- package/dist/chunks/{model-074yh523.js → integration-q5qtpxs8.js} +5 -5
- package/dist/chunks/{model-eah0f417.js → integration-q85ryw70.js} +20 -20
- package/dist/chunks/{model-55x2dd8h.js → integration-q8hcxtnn.js} +28 -28
- package/dist/chunks/{model-cbpep9ws.js → integration-q8qga2hx.js} +4 -4
- package/dist/chunks/{model-aadqys38.js → integration-qde7gphs.js} +10 -10
- package/dist/chunks/{model-cpvd08na.js → integration-qqg9c0kv.js} +4 -4
- package/dist/chunks/{model-17s4yebz.js → integration-qzdhydjz.js} +15 -15
- package/dist/chunks/{model-r0yr0wbs.js → integration-r0yr0wbs.js} +1 -1
- package/dist/chunks/{model-9wfy5dqd.js → integration-r4qqkkn4.js} +4 -4
- package/dist/chunks/{model-r542h3bh.js → integration-r542h3bh.js} +1 -1
- package/dist/chunks/{model-p43hvp8m.js → integration-r7kgrqx8.js} +15 -15
- package/dist/chunks/{model-c1bh859y.js → integration-r8yz90q7.js} +81 -81
- package/dist/chunks/{model-rb9dy4dg.js → integration-rb9dy4dg.js} +1 -1
- package/dist/chunks/{model-nj2tkpbg.js → integration-rg2b028e.js} +4 -4
- package/dist/chunks/{model-n4t59mcz.js → integration-rq2bpjzx.js} +35 -35
- package/dist/chunks/{model-rt5dr6hb.js → integration-rt5dr6hb.js} +1 -1
- package/dist/chunks/{model-nch7pp5e.js → integration-rtdxfwhd.js} +11 -11
- package/dist/chunks/{model-6ah2hm3b.js → integration-s2yn1ebr.js} +43 -38
- package/dist/chunks/{model-9p9tkha5.js → integration-s5mddk99.js} +4 -4
- package/dist/chunks/{model-0q0mq65j.js → integration-s5srxs85.js} +26 -26
- package/dist/chunks/{model-g53j82me.js → integration-s6jx0zpa.js} +35 -35
- package/dist/chunks/{model-yk2twp5a.js → integration-s6qfrht9.js} +72 -40
- package/dist/chunks/{model-7t90m43d.js → integration-s842fs2g.js} +27 -27
- package/dist/chunks/{model-rwvkk097.js → integration-s9s2gkss.js} +8 -8
- package/dist/chunks/{model-tm84tsqp.js → integration-s9wcjfta.js} +15 -15
- package/dist/chunks/{model-sa3fpqfw.js → integration-sa3fpqfw.js} +2 -2
- package/dist/chunks/{model-p580ev26.js → integration-sbegqkxp.js} +6 -6
- package/dist/chunks/{model-ahagnq8m.js → integration-sben8p41.js} +16 -16
- package/dist/chunks/{model-nvhvwyw4.js → integration-sg9wyb1p.js} +14 -14
- package/dist/chunks/{model-06npw4ea.js → integration-shrpye9z.js} +2 -2
- package/dist/chunks/{model-sqjzf8x2.js → integration-sqjzf8x2.js} +1 -1
- package/dist/chunks/{model-9zvt316j.js → integration-sr5f1jrh.js} +8 -8
- package/dist/chunks/{model-a85cw3b8.js → integration-sswqmq9k.js} +24 -24
- package/dist/chunks/{model-kmycny1b.js → integration-svadk1ak.js} +26 -26
- package/dist/chunks/{model-yr4xnza0.js → integration-sx2sqvt0.js} +8 -8
- package/dist/chunks/{model-hd7kmee3.js → integration-t02qfhp3.js} +35 -35
- package/dist/chunks/{model-kpmxgff8.js → integration-t9nrn8tw.js} +17 -17
- package/dist/chunks/{model-tczq8hjw.js → integration-tczq8hjw.js} +1 -1
- package/dist/chunks/{model-998yhzzq.js → integration-tkn93vs5.js} +24 -5
- package/dist/chunks/{model-3nnrz6f6.js → integration-tmc7xdjs.js} +4 -4
- package/dist/chunks/{model-jvxa89ah.js → integration-tq7q91jv.js} +21 -21
- package/dist/chunks/{model-twv2r8f4.js → integration-twv2r8f4.js} +2 -2
- package/dist/chunks/{model-xhb3andn.js → integration-tyc3jjj7.js} +12 -12
- package/dist/chunks/{model-t5jqs5j7.js → integration-tzyd7gqa.js} +2 -2
- package/dist/chunks/{model-v2r1d0zg.js → integration-v2r1d0zg.js} +1 -1
- package/dist/chunks/{model-bj9pvvtr.js → integration-v5b5hy9f.js} +21 -21
- package/dist/chunks/{model-5t0taa5t.js → integration-v7s66ynn.js} +21 -21
- package/dist/chunks/{model-vd3b3yk9.js → integration-vd3b3yk9.js} +1 -1
- package/dist/chunks/{model-veqvce7d.js → integration-veqvce7d.js} +1 -1
- package/dist/chunks/{model-q55j0mkq.js → integration-vfdks6d4.js} +3 -3
- package/dist/chunks/{model-1cd8ske1.js → integration-vh8rw469.js} +4 -4
- package/dist/chunks/{model-1wtzqdg9.js → integration-vqvgrxkc.js} +36 -36
- package/dist/chunks/{model-w3wsvvr9.js → integration-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-8wb0xjrc.js → integration-w63y7jc6.js} +164 -164
- package/dist/chunks/{model-95dpb2hs.js → integration-w7nv158z.js} +21 -21
- package/dist/chunks/{model-wakvkjy4.js → integration-wakvkjy4.js} +1 -1
- package/dist/chunks/{model-6qwcfsdb.js → integration-wcmgka50.js} +18 -18
- package/dist/chunks/{model-wd87259q.js → integration-wd87259q.js} +1 -1
- package/dist/chunks/{model-8rjeswr2.js → integration-wdgqtx80.js} +14 -14
- package/dist/chunks/{model-zgy84aax.js → integration-wjp5677p.js} +16 -16
- package/dist/chunks/{model-4s5pdsz9.js → integration-wqtd6dn9.js} +6 -6
- package/dist/chunks/{model-wr3re1en.js → integration-wr3re1en.js} +1 -1
- package/dist/chunks/{model-3y91nzap.js → integration-wrrv2vrv.js} +3 -3
- package/dist/chunks/{model-g022fde4.js → integration-x4mdmgqt.js} +75 -73
- package/dist/chunks/{model-4pwgqaz6.js → integration-xcmymt6p.js} +6 -6
- package/dist/chunks/{model-d0cn4xf1.js → integration-xcn9kzc4.js} +5 -5
- package/dist/chunks/{model-w000bb6e.js → integration-xdqqne02.js} +20 -20
- package/dist/chunks/{model-1t797f07.js → integration-xp190ez9.js} +11 -11
- package/dist/chunks/{model-ebah8p59.js → integration-xrkrh4e6.js} +55 -55
- package/dist/chunks/{model-vfy36k9m.js → integration-y69ek5zm.js} +2 -2
- package/dist/chunks/{model-1jh4qr8c.js → integration-y9vh8mq3.js} +42 -42
- package/dist/chunks/{model-1r26p0x0.js → integration-yb1sx8tf.js} +3 -3
- package/dist/chunks/{model-yb20nhc3.js → integration-yb20nhc3.js} +1 -1
- package/dist/chunks/{model-wtps8d4f.js → integration-ychremax.js} +24 -24
- package/dist/chunks/{model-vbzvb4rg.js → integration-ydzd92ym.js} +49 -49
- package/dist/chunks/{model-91vm8081.js → integration-yjb380yy.js} +28 -28
- package/dist/chunks/{model-dcmz9t73.js → integration-ys2a3pd2.js} +40 -40
- package/dist/chunks/{model-k2cxq7d4.js → integration-ys7snnnx.js} +4 -4
- package/dist/chunks/{model-wq05waba.js → integration-ysh7bykt.js} +27 -27
- package/dist/chunks/{model-6sxj3h9v.js → integration-ysm0ddqf.js} +26 -26
- package/dist/chunks/{model-ffxn8jxv.js → integration-ytyb7gv1.js} +17 -17
- package/dist/chunks/{model-z0bkrqjs.js → integration-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-z38nccrw.js → integration-z38nccrw.js} +1 -1
- package/dist/chunks/integration-z7bdqmx5.js +18 -0
- package/dist/chunks/{model-1jcs48vj.js → integration-zd2ed8r9.js} +21 -21
- package/dist/chunks/{model-q1f29zd1.js → integration-ze9ydt5a.js} +17 -17
- package/dist/chunks/{model-zkg84ctx.js → integration-zkg84ctx.js} +1 -1
- package/dist/chunks/{model-68sqyx0h.js → integration-zr4aet3t.js} +14 -14
- package/dist/chunks/{model-jtx526ja.js → integration-zxxmr6sq.js} +8 -8
- package/dist/chunks/{model-0jdv6s9h.js → integration-zy2zc1p2.js} +21 -21
- package/dist/chunks/{model-9ayw3ng3.js → integration-zzanzrga.js} +33 -33
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +88 -87
- package/dist/config/discovery.js +88 -87
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -104
- package/dist/config/plugin/agent.js +121 -120
- package/dist/config/plugin/command.js +219 -216
- package/dist/config/plugin/compaction.js +160 -157
- package/dist/config/plugin/compatibility.js +140 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +120 -119
- package/dist/config/plugin/image.js +119 -118
- package/dist/config/plugin/instruction.js +119 -118
- package/dist/config/plugin/location-watcher.js +121 -120
- package/dist/config/plugin/mcp.js +130 -129
- package/dist/config/plugin/policy.js +121 -120
- package/dist/config/plugin/provider.js +120 -119
- package/dist/config/plugin/reference.js +121 -120
- package/dist/config/plugin/shell.js +119 -118
- package/dist/config/plugin/skill-file.js +110 -107
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -140
- package/dist/config/plugin/snapshot.js +119 -118
- package/dist/config/plugin/source.js +118 -117
- package/dist/config/plugin/tool-output.js +120 -119
- package/dist/config/plugin/websearch.js +118 -117
- package/dist/config/plugin/worktree.js +121 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -119
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +88 -87
- package/dist/database/database.js +71 -70
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +6 -0
- package/dist/database/migration.gen.js +54 -53
- package/dist/database/migration.js +56 -55
- 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 +98 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +379 -376
- 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 +99 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -100
- 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 +75 -74
- package/dist/file-access.js +112 -109
- package/dist/file-mutation.js +100 -99
- 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 +232 -229
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +106 -105
- package/dist/form.js +87 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +93 -92
- package/dist/generate.js +111 -110
- package/dist/git.js +11 -11
- 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 +105 -104
- 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 +370 -367
- package/dist/instruction-discovery.js +89 -88
- package/dist/instructions/builtins.js +93 -92
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +92 -91
- package/dist/job.js +83 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +78 -77
- package/dist/location-activity.js +161 -158
- package/dist/location-lifecycle.js +115 -112
- package/dist/location-service-map.js +92 -91
- package/dist/location-services.js +367 -364
- package/dist/location.js +95 -94
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +97 -96
- package/dist/mcp/index.js +113 -112
- package/dist/mcp/instructions.js +146 -143
- package/dist/mcp/oauth.js +83 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +96 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -104
- package/dist/model-resolver.js +105 -104
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -107
- package/dist/models-dev.js +113 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +80 -79
- package/dist/plugin/agent.js +81 -80
- package/dist/plugin/command.js +108 -107
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +225 -222
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +340 -337
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +102 -101
- package/dist/plugin/module.js +121 -120
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +110 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +96 -95
- package/dist/plugin/provider/azure.js +117 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +119 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +116 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +115 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +99 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +101 -100
- package/dist/plugin/provider/gitlab.js +99 -98
- package/dist/plugin/provider/google-vertex.js +116 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +83 -82
- package/dist/plugin/provider/lmstudio.js +128 -127
- package/dist/plugin/provider/local.js +125 -124
- package/dist/plugin/provider/modal.js +98 -97
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +128 -127
- package/dist/plugin/provider/openai-context-caps.js +96 -95
- package/dist/plugin/provider/openai.js +119 -118
- package/dist/plugin/provider/opencode-legacy.js +106 -105
- package/dist/plugin/provider/opencode.js +125 -124
- package/dist/plugin/provider/openrouter.js +97 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +84 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +97 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +118 -117
- package/dist/plugin/provider/vercel.js +96 -95
- package/dist/plugin/provider/vllm.js +128 -127
- package/dist/plugin/provider/xai.js +97 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +176 -175
- package/dist/plugin/sdk.js +81 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +359 -356
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +92 -91
- package/dist/plugin/vcs/hg.js +92 -91
- package/dist/plugin/verbosity.js +99 -98
- package/dist/plugin/warming.js +117 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +234 -231
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +96 -95
- package/dist/provider.js +97 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +100 -99
- package/dist/reference/instructions.js +95 -94
- package/dist/reference.js +97 -96
- package/dist/repository-cache.js +87 -86
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +101 -100
- package/dist/rpc.js +92 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/blob.js +17 -0
- package/dist/session/command.js +79 -78
- package/dist/session/compaction.js +142 -139
- package/dist/session/context.js +170 -167
- package/dist/session/diff.js +94 -93
- 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 +226 -223
- package/dist/session/execution.js +136 -133
- package/dist/session/generate.js +170 -167
- package/dist/session/history.js +17 -13
- package/dist/session/inbox.js +100 -97
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +84 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +105 -102
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +126 -123
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +138 -135
- package/dist/session/projector.js +96 -93
- package/dist/session/prompt.js +113 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +102 -99
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +236 -233
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +106 -105
- package/dist/session/runner/publish-llm-event.js +121 -118
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +134 -131
- package/dist/session/runner/to-llm-message.js +16 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +168 -165
- package/dist/session/shell.js +133 -132
- package/dist/session/skill.js +113 -110
- package/dist/session/sql.js +10 -6
- package/dist/session/stats.js +78 -77
- package/dist/session/store.js +92 -89
- package/dist/session/stored.js +21 -0
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +217 -214
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +174 -171
- package/dist/session/to-session-error.js +120 -117
- package/dist/session/transfer.js +220 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -216
- 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 +9 -9
- package/dist/shell.js +135 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +115 -112
- package/dist/skill.js +118 -115
- package/dist/snapshot.js +95 -94
- 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 +141 -138
- package/dist/tool/plugin/edit.js +128 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +132 -129
- package/dist/tool/plugin/grep.js +132 -129
- package/dist/tool/plugin/mcp-resource.js +132 -129
- package/dist/tool/plugin/opencode.js +117 -114
- package/dist/tool/plugin/patch.js +128 -125
- package/dist/tool/plugin/question.js +109 -106
- package/dist/tool/plugin/read.js +131 -128
- package/dist/tool/plugin/shell.js +220 -217
- package/dist/tool/plugin/skill.js +121 -118
- package/dist/tool/plugin/subagent.js +224 -221
- package/dist/tool/plugin/todo.js +143 -140
- package/dist/tool/plugin/webfetch.js +121 -118
- package/dist/tool/plugin/websearch.js +118 -115
- package/dist/tool/plugin/write.js +130 -127
- package/dist/tool/read-filesystem.js +104 -103
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
- package/dist/types/filesystem/fff.d.ts +1 -0
- package/dist/types/filesystem/search.d.ts +3 -0
- package/dist/types/session/blob.d.ts +881 -0
- package/dist/types/session/history.d.ts +814 -22
- package/dist/types/session/inbox.d.ts +21 -174
- package/dist/types/session/recent-text.d.ts +2 -1
- package/dist/types/session/sql.d.ts +195 -2
- package/dist/types/session/stored.d.ts +460 -0
- package/dist/usage-limits.js +94 -93
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +98 -97
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +99 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +95 -94
- package/dist/voice.js +93 -92
- package/dist/websearch.js +79 -78
- package/dist/wellknown/plugin.js +81 -80
- package/dist/wellknown.js +86 -85
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +87 -86
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +95 -94
- package/dist/worktree.js +104 -103
- package/package.json +8 -8
- package/dist/chunks/model-7yv5xa0k.js +0 -18
- package/dist/chunks/model-hnfvdbcv.js +0 -26
- package/dist/chunks/model-nd8y4bs9.js +0 -261
- /package/dist/chunks/{model-0qkdqm5v.js → integration-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-0zkw76rk.js → integration-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-17cy0kzp.js → integration-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-1cnp2v09.js → integration-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-24dcb14g.js → integration-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-2710q6r3.js → integration-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-2bv980vf.js → integration-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-2c3vjs8z.js → integration-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-359p4xyc.js → integration-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-3asan66x.js → integration-3asan66x.js} +0 -0
- /package/dist/chunks/{model-3v8g72cx.js → integration-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-3wcehsnq.js → integration-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-43n2bw4t.js → integration-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-4knz6hnm.js → integration-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-4vcrnpx2.js → integration-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-4y7fprxs.js → integration-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-53557ph1.js → integration-53557ph1.js} +0 -0
- /package/dist/chunks/{model-550bvhaj.js → integration-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-5fjb7ams.js → integration-5fjb7ams.js} +0 -0
- /package/dist/chunks/{model-6prwharc.js → integration-6prwharc.js} +0 -0
- /package/dist/chunks/{model-6q2bdcd1.js → integration-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-7akdwqpd.js → integration-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-7m9af43g.js → integration-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-822emrt2.js → integration-822emrt2.js} +0 -0
- /package/dist/chunks/{model-84wd9syh.js → integration-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-88xbtdfr.js → integration-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-8n3pysct.js → integration-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-8wj87zfr.js → integration-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-9a4afbnw.js → integration-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-9rqn6x4v.js → integration-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-a058387c.js → integration-a058387c.js} +0 -0
- /package/dist/chunks/{model-a6k6eb26.js → integration-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-af5trqkr.js → integration-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-afrmfg78.js → integration-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-aqzs7mqg.js → integration-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-atq7p7m5.js → integration-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-bkyjaxrp.js → integration-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-bmr6ed5q.js → integration-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-cf4snx6d.js → integration-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-cqv5kn06.js → integration-cqv5kn06.js} +0 -0
- /package/dist/chunks/{model-cvy3z8tj.js → integration-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-d9fn303g.js → integration-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-d9jj8t3e.js → integration-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-dajrwvna.js → integration-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-dap0rakb.js → integration-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-df08tz66.js → integration-df08tz66.js} +0 -0
- /package/dist/chunks/{model-dy18nga0.js → integration-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-e3qxr5gk.js → integration-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{model-e5kj55wp.js → integration-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-e73j6tqm.js → integration-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-ec1grn59.js → integration-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-eh3zwz77.js → integration-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-emrn6kk6.js → integration-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-f0mxakyp.js → integration-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-f6n9ztr4.js → integration-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-faypxj3z.js → integration-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-fd410y7t.js → integration-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-g4wezp1m.js → integration-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-g86h250q.js → integration-g86h250q.js} +0 -0
- /package/dist/chunks/{model-gebd4c9n.js → integration-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-gftt206x.js → integration-gftt206x.js} +0 -0
- /package/dist/chunks/{model-hcxmzztb.js → integration-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-hk9envan.js → integration-hk9envan.js} +0 -0
- /package/dist/chunks/{model-j2ntwpah.js → integration-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-j5zkgpj8.js → integration-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-jjkms2e6.js → integration-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-jr7sbwjy.js → integration-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-jwfs4k6c.js → integration-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-jwr30sdr.js → integration-jwr30sdr.js} +0 -0
- /package/dist/chunks/{model-jze0r7bz.js → integration-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-jzg6c2d5.js → integration-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-m18g726c.js → integration-m18g726c.js} +0 -0
- /package/dist/chunks/{model-mp448xyj.js → integration-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-msx8hqn2.js → integration-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-n05xt0ee.js → integration-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-n3j8tn72.js → integration-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-njntx4h6.js → integration-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-q3sfg36h.js → integration-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-q74kybfr.js → integration-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-qaymkmh1.js → integration-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-qb87gjwd.js → integration-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-qfa1cgps.js → integration-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-qg3g05ea.js → integration-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-qrg20bc0.js → integration-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-rcb2kzg1.js → integration-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-sdp7kfr6.js → integration-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-ssg3fenm.js → integration-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-ve7vex1e.js → integration-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-w803qqfp.js → integration-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-wc3fc9cn.js → integration-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-wer8tq1h.js → integration-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-wjj7prxr.js → integration-wjj7prxr.js} +0 -0
- /package/dist/chunks/{model-wtztk69x.js → integration-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-x0ckcb58.js → integration-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-x61499pn.js → integration-x61499pn.js} +0 -0
- /package/dist/chunks/{model-y44na4kk.js → integration-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-y8f7s663.js → integration-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-ygaqb7jw.js → integration-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-ym463w8f.js → integration-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-z5v4ffb3.js → integration-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-z9919s4g.js → integration-z9919s4g.js} +0 -0
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./integration-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
MessageDecodeError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./integration-wqtd6dn9.js";
|
|
7
7
|
import {
|
|
8
8
|
InitializationBlocked2,
|
|
9
9
|
read3
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./integration-jneg3k74.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionMessageTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./integration-tkn93vs5.js";
|
|
14
14
|
import {
|
|
15
15
|
initial2,
|
|
16
16
|
preview3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./integration-2r67ppq4.js";
|
|
18
|
+
import {
|
|
19
|
+
User3
|
|
20
|
+
} from "./integration-psgg7zsx.js";
|
|
21
|
+
import {
|
|
22
|
+
hydrate2
|
|
23
|
+
} from "./integration-4fv6fqf0.js";
|
|
18
24
|
import {
|
|
19
25
|
messageToText2
|
|
20
|
-
} from "./
|
|
26
|
+
} from "./integration-v2r1d0zg.js";
|
|
21
27
|
import {
|
|
22
28
|
__export
|
|
23
|
-
} from "./
|
|
29
|
+
} from "./integration-9rqn6x4v.js";
|
|
24
30
|
|
|
25
31
|
// src/session/history.ts
|
|
26
32
|
var exports_history = {};
|
|
@@ -29,6 +35,7 @@ __export(exports_history, {
|
|
|
29
35
|
SessionHistory: () => exports_history,
|
|
30
36
|
decodeMessageRow: () => decodeMessageRow2,
|
|
31
37
|
decodeMessageRowSync: () => decodeMessageRowSync2,
|
|
38
|
+
decodeMessageRows: () => decodeMessageRows2,
|
|
32
39
|
entriesForRunner: () => entriesForRunner2,
|
|
33
40
|
firstUserMessage: () => firstUserMessage2,
|
|
34
41
|
isNativeCompaction: () => isNativeCompaction2,
|
|
@@ -41,6 +48,7 @@ import { Effect, Option, Schema } from "effect";
|
|
|
41
48
|
import { SessionLegacy } from "@opencode/schema/session-legacy";
|
|
42
49
|
var decode = Schema.decodeUnknownEffect(SessionMessage2.Info);
|
|
43
50
|
var decodeSync = Schema.decodeUnknownSync(SessionMessage2.Info);
|
|
51
|
+
var decodeStoredUser = Schema.decodeUnknownEffect(User3);
|
|
44
52
|
var isNativeCompaction2 = (message) => message.type === "compaction" && message.status === "completed" && message.native?.messages !== undefined;
|
|
45
53
|
var NativeWindow2 = Schema.toCodecJson(Schema.Array(Message));
|
|
46
54
|
var decodeNativeWindow = Schema.decodeUnknownOption(NativeWindow2);
|
|
@@ -55,14 +63,19 @@ var rowInput = (row) => ({
|
|
|
55
63
|
type: row.type
|
|
56
64
|
});
|
|
57
65
|
var decodeMessageRowSync2 = (row) => decodeSync(rowInput(row));
|
|
58
|
-
var
|
|
66
|
+
var decodeError = (row) => () => new MessageDecodeError2({
|
|
59
67
|
sessionID: row.session_id,
|
|
60
68
|
messageID: row.id
|
|
61
|
-
})
|
|
69
|
+
});
|
|
70
|
+
var decodeMessageRow2 = (row) => decode(rowInput(row)).pipe(Effect.mapError(decodeError(row)));
|
|
71
|
+
var decodeStoredRow = (row) => row.type === "user" ? decodeStoredUser(rowInput(row)).pipe(Effect.mapError(decodeError(row))) : decodeMessageRow2(row);
|
|
72
|
+
var decodeMessageRows2 = Effect.fnUntraced(function* (db, rows) {
|
|
73
|
+
return yield* Effect.forEach(yield* hydrate2(db, rows), decodeMessageRow2, { concurrency: 1 });
|
|
74
|
+
});
|
|
62
75
|
var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary, before) {
|
|
63
76
|
const compaction = yield* latestCompaction(db, sessionID, boundary, before);
|
|
64
77
|
const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), compaction ? gte(SessionMessageTable2.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.orDie);
|
|
65
|
-
const decoded = yield* Effect.forEach(rows, (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
|
|
78
|
+
const decoded = yield* Effect.forEach(yield* hydrate2(db, rows), (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))), { concurrency: 1 });
|
|
66
79
|
const start = decoded[0];
|
|
67
80
|
if (compaction && start && !replayable(start.message, boundary))
|
|
68
81
|
return yield* messageEntries(db, sessionID, boundary, compaction.seq);
|
|
@@ -82,7 +95,7 @@ var withRecentText = Effect.fnUntraced(function* (db, sessionID, entries) {
|
|
|
82
95
|
if (!start)
|
|
83
96
|
return entries;
|
|
84
97
|
const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), gte(SessionMessageTable2.seq, start.seq), lt(SessionMessageTable2.seq, first.seq))).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.orDie);
|
|
85
|
-
const kept = yield* Effect.forEach(rows,
|
|
98
|
+
const kept = yield* Effect.forEach(rows, decodeStoredRow, { concurrency: 1 });
|
|
86
99
|
const recent = kept.map(messageToText2).filter(Boolean).join(`
|
|
87
100
|
|
|
88
101
|
`);
|
|
@@ -115,13 +128,11 @@ var preview2 = Effect.fn("SessionHistory.preview")(function* (db, sessionID, ins
|
|
|
115
128
|
})).pipe(Effect.catch((error) => error instanceof InitializationBlocked2 ? error : Effect.die(error)));
|
|
116
129
|
});
|
|
117
130
|
var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (db, sessionID) {
|
|
118
|
-
const row = yield* db.select(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}));
|
|
124
|
-
return message?.type === "user" ? message : undefined;
|
|
131
|
+
const row = yield* db.select({
|
|
132
|
+
id: SessionMessageTable2.id,
|
|
133
|
+
text: sql`json_extract(${SessionMessageTable2.data}, '$.text')`
|
|
134
|
+
}).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, "user"))).orderBy(asc(SessionMessageTable2.seq)).get().pipe(Effect.orDie);
|
|
135
|
+
return row && Schema.is(Schema.String)(row.text) ? { id: row.id, text: row.text } : undefined;
|
|
125
136
|
});
|
|
126
137
|
|
|
127
|
-
export { isNativeCompaction2, NativeWindow2, decodeMessageRowSync2, decodeMessageRow2, load4, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
138
|
+
export { isNativeCompaction2, NativeWindow2, decodeMessageRowSync2, decodeMessageRow2, decodeMessageRows2, load4, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./integration-g9ybbf9c.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./integration-11hfp36g.js";
|
|
8
8
|
import {
|
|
9
9
|
Service86,
|
|
10
10
|
node90
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./integration-vh8rw469.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
15
|
-
import {
|
|
16
|
-
SessionMessage2
|
|
17
|
-
} from "./model-gftt206x.js";
|
|
14
|
+
} from "./integration-ec1grn59.js";
|
|
18
15
|
import {
|
|
19
16
|
SessionMessageTable2,
|
|
20
17
|
SessionInboxTable2
|
|
21
|
-
} from "./
|
|
18
|
+
} from "./integration-tkn93vs5.js";
|
|
19
|
+
import {
|
|
20
|
+
SessionMessage2
|
|
21
|
+
} from "./integration-gftt206x.js";
|
|
22
|
+
import {
|
|
23
|
+
UserPayload3
|
|
24
|
+
} from "./integration-psgg7zsx.js";
|
|
25
|
+
import {
|
|
26
|
+
hydrateInbox2
|
|
27
|
+
} from "./integration-4fv6fqf0.js";
|
|
22
28
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
29
|
+
decodeMessageRows2
|
|
30
|
+
} from "./integration-m9bb5ktr.js";
|
|
25
31
|
import {
|
|
26
32
|
__export
|
|
27
|
-
} from "./
|
|
33
|
+
} from "./integration-9rqn6x4v.js";
|
|
28
34
|
|
|
29
35
|
// src/session/inbox.ts
|
|
30
36
|
var exports_inbox = {};
|
|
@@ -32,12 +38,12 @@ __export(exports_inbox, {
|
|
|
32
38
|
Compaction: () => Compaction2,
|
|
33
39
|
CompactionPayload: () => CompactionPayload2,
|
|
34
40
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
41
|
+
Info: () => Info8,
|
|
36
42
|
Item: () => Item2,
|
|
37
43
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
44
|
Move: () => Move2,
|
|
39
45
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
46
|
+
Service: () => Service40,
|
|
41
47
|
SessionInbox: () => exports_inbox,
|
|
42
48
|
Synthetic: () => Synthetic2,
|
|
43
49
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +51,12 @@ __export(exports_inbox, {
|
|
|
45
51
|
UserPayload: () => UserPayload2,
|
|
46
52
|
find: () => find2,
|
|
47
53
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
54
|
+
layer: () => layer20,
|
|
49
55
|
list: () => list3,
|
|
50
|
-
make: () =>
|
|
56
|
+
make: () => make18,
|
|
51
57
|
moveIDs: () => moveIDs2,
|
|
52
58
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
59
|
+
node: () => node42,
|
|
54
60
|
projectAdmitted: () => projectAdmitted2,
|
|
55
61
|
projectCancelled: () => projectCancelled2,
|
|
56
62
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +71,7 @@ import {
|
|
|
65
71
|
Compaction as Compaction2,
|
|
66
72
|
CompactionPayload as CompactionPayload2,
|
|
67
73
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
74
|
+
Info as Info8,
|
|
69
75
|
Item as Item2,
|
|
70
76
|
Move as Move2,
|
|
71
77
|
MovePayload as MovePayload2,
|
|
@@ -75,6 +81,7 @@ import {
|
|
|
75
81
|
UserPayload as UserPayload2
|
|
76
82
|
} from "@opencode/schema/session-inbox";
|
|
77
83
|
var decodeUser = Schema.decodeUnknownSync(UserPayload2);
|
|
84
|
+
var decodeStoredUser = Schema.decodeUnknownSync(UserPayload3);
|
|
78
85
|
var encodeUser = Schema.encodeSync(UserPayload2);
|
|
79
86
|
var decodeSynthetic = Schema.decodeUnknownSync(SyntheticPayload2);
|
|
80
87
|
var encodeSynthetic = Schema.encodeSync(SyntheticPayload2);
|
|
@@ -125,7 +132,10 @@ var fromRow = (row) => {
|
|
|
125
132
|
};
|
|
126
133
|
var find2 = Effect.fn("SessionInbox.find")(function* (db, id) {
|
|
127
134
|
const row = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.id, id)).get().pipe(Effect.orDie);
|
|
128
|
-
|
|
135
|
+
if (row === undefined)
|
|
136
|
+
return;
|
|
137
|
+
const [hydrated] = yield* hydrateInbox2(db, [row]);
|
|
138
|
+
return hydrated && fromRow(hydrated);
|
|
129
139
|
});
|
|
130
140
|
var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function* (db, sessionID, id, delivery) {
|
|
131
141
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, id)).get().pipe(Effect.orDie);
|
|
@@ -133,7 +143,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
133
143
|
return;
|
|
134
144
|
if (row.session_id !== sessionID || row.type !== "user" && row.type !== "synthetic")
|
|
135
145
|
return yield* new LifecycleConflict2({ id });
|
|
136
|
-
const message =
|
|
146
|
+
const [message] = yield* decodeMessageRows2(db, [row]).pipe(Effect.orDie);
|
|
147
|
+
if (!message)
|
|
148
|
+
return;
|
|
137
149
|
const base = { id, sessionID, time: { created: message.time.created }, delivery };
|
|
138
150
|
if (message.type === "user")
|
|
139
151
|
return User2.make({
|
|
@@ -159,9 +171,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
159
171
|
});
|
|
160
172
|
});
|
|
161
173
|
|
|
162
|
-
class
|
|
174
|
+
class Service40 extends Context.Service()("@opencode/SessionInbox") {
|
|
163
175
|
}
|
|
164
|
-
var
|
|
176
|
+
var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
165
177
|
const database = yield* Service87;
|
|
166
178
|
const db = database.db;
|
|
167
179
|
const bus = yield* Service86;
|
|
@@ -181,7 +193,7 @@ var make20 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
181
193
|
inboxID: request.id,
|
|
182
194
|
sessionID: request.sessionID,
|
|
183
195
|
item: request.item
|
|
184
|
-
}).pipe(Effect.map((event) =>
|
|
196
|
+
}).pipe(Effect.map((event) => Info8.make({
|
|
185
197
|
id: request.id,
|
|
186
198
|
sessionID: request.sessionID,
|
|
187
199
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -235,8 +247,8 @@ var make20 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
235
247
|
queue
|
|
236
248
|
};
|
|
237
249
|
});
|
|
238
|
-
var
|
|
239
|
-
var
|
|
250
|
+
var layer20 = Layer.effect(Service40, make18());
|
|
251
|
+
var node42 = makeGlobalNode({ service: Service40, layer: layer20, deps: [node91, node90] });
|
|
240
252
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
241
253
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
242
254
|
if (message !== undefined)
|
|
@@ -257,8 +269,15 @@ var projectDelivered2 = Effect.fn("SessionInbox.projectDelivered")(function* (db
|
|
|
257
269
|
const deleted = yield* db.delete(SessionInboxTable2).where(and(eq(SessionInboxTable2.id, input.id), eq(SessionInboxTable2.session_id, input.sessionID))).returning().get().pipe(Effect.orDie);
|
|
258
270
|
if (!deleted)
|
|
259
271
|
return yield* Effect.die(new LifecycleConflict2({ id: input.id }));
|
|
260
|
-
return
|
|
272
|
+
return delivered(deleted);
|
|
261
273
|
});
|
|
274
|
+
var delivered = (row) => {
|
|
275
|
+
if (row.type === "user")
|
|
276
|
+
return { id: row.id, type: "user", payload: decodeStoredUser(row.payload) };
|
|
277
|
+
if (row.type === "synthetic")
|
|
278
|
+
return { id: row.id, type: "synthetic", payload: decodeSynthetic(row.payload) };
|
|
279
|
+
return { id: row.id, type: row.type };
|
|
280
|
+
};
|
|
262
281
|
var projectCancelled2 = Effect.fn("SessionInbox.projectCancelled")(function* (db, input) {
|
|
263
282
|
const deleted = yield* db.delete(SessionInboxTable2).where(and(eq(SessionInboxTable2.id, input.id), eq(SessionInboxTable2.session_id, input.sessionID), or(eq(SessionInboxTable2.delivery, "queue"), eq(SessionInboxTable2.delivery, "steer")))).returning({ id: SessionInboxTable2.id }).get().pipe(Effect.orDie);
|
|
264
283
|
if (!deleted)
|
|
@@ -276,7 +295,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
276
295
|
}));
|
|
277
296
|
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
278
297
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
279
|
-
return rows.map(fromRow);
|
|
298
|
+
return (yield* hydrateInbox2(db, rows)).map(fromRow);
|
|
280
299
|
});
|
|
281
300
|
var moveIDs2 = Effect.fn("SessionInbox.moveIDs")(function* (db, sessionID) {
|
|
282
301
|
return yield* db.select({ id: SessionInboxTable2.id }).from(SessionInboxTable2).where(and(eq(SessionInboxTable2.session_id, sessionID), eq(SessionInboxTable2.type, "move"))).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
@@ -284,12 +303,13 @@ var moveIDs2 = Effect.fn("SessionInbox.moveIDs")(function* (db, sessionID) {
|
|
|
284
303
|
var nextPromotable2 = Effect.fn("SessionInbox.nextPromotable")(function* (db, sessionID, promotable) {
|
|
285
304
|
const steer = (yield* pendingSteers(db, sessionID))[0];
|
|
286
305
|
if (steer)
|
|
287
|
-
return
|
|
306
|
+
return promotion(steer);
|
|
288
307
|
if (promotable !== "input")
|
|
289
308
|
return;
|
|
290
309
|
const queued = yield* db.select().from(SessionInboxTable2).where(and(eq(SessionInboxTable2.session_id, sessionID), eq(SessionInboxTable2.delivery, "queue"))).orderBy(asc(SessionInboxTable2.enqueued_seq)).limit(1).get().pipe(Effect.orDie);
|
|
291
|
-
return queued ?
|
|
310
|
+
return queued ? promotion(queued) : undefined;
|
|
292
311
|
});
|
|
312
|
+
var promotion = (row) => row.type === "move" ? { id: row.id, type: "move", delivery: row.delivery, payload: decodeMove(row.payload) } : { id: row.id, type: row.type, delivery: row.delivery };
|
|
293
313
|
var has2 = Effect.fn("SessionInbox.has")(function* (db, sessionID, scope) {
|
|
294
314
|
const row = yield* db.select({ id: SessionInboxTable2.id }).from(SessionInboxTable2).where(and(eq(SessionInboxTable2.session_id, sessionID), scope === "input" ? or(eq(SessionInboxTable2.delivery, "steer"), eq(SessionInboxTable2.delivery, "queue")) : eq(SessionInboxTable2.delivery, scope))).limit(1).get().pipe(Effect.orDie);
|
|
295
315
|
return row !== undefined;
|
|
@@ -333,4 +353,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
333
353
|
return rows;
|
|
334
354
|
}));
|
|
335
355
|
|
|
336
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
356
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info8, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service40, make18, layer20, node42, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
orderSelectedFields2,
|
|
5
5
|
mapUpdateSet2,
|
|
6
6
|
getTableLikeName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./integration-emrn6kk6.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/update.ts
|
|
10
10
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Policies2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./integration-pcty9z1k.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
ID14
|
|
6
|
+
} from "./integration-29fm5e7s.js";
|
|
7
7
|
import {
|
|
8
8
|
mergeOverlay2,
|
|
9
9
|
mergeHeaders2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./integration-xdqqne02.js";
|
|
11
11
|
import {
|
|
12
12
|
mergeCapabilities2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./integration-s842fs2g.js";
|
|
14
14
|
import {
|
|
15
15
|
supports2,
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
resolve4
|
|
17
|
+
} from "./integration-39wcs8g0.js";
|
|
18
18
|
import {
|
|
19
19
|
ID4
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./integration-s9s2gkss.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./integration-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/plugin/provider/opencode-legacy.ts
|
|
26
26
|
var exports_opencode_legacy = {};
|
|
27
27
|
__export(exports_opencode_legacy, {
|
|
28
28
|
OpencodeLegacy: () => exports_opencode_legacy,
|
|
29
29
|
Response: () => Response2,
|
|
30
|
-
make: () =>
|
|
30
|
+
make: () => make8,
|
|
31
31
|
providerIDs: () => providerIDs2,
|
|
32
|
-
register: () =>
|
|
32
|
+
register: () => register2,
|
|
33
33
|
statements: () => statements2
|
|
34
34
|
});
|
|
35
35
|
import { Effect, Schema } from "effect";
|
|
@@ -47,7 +47,7 @@ var Response2 = Schema.Struct({
|
|
|
47
47
|
policies: Policies2.pipe(Schema.optional),
|
|
48
48
|
experimental: Schema.Struct({ policies: Policies2.pipe(Schema.optional) }).pipe(Schema.optional)
|
|
49
49
|
});
|
|
50
|
-
function
|
|
50
|
+
function make8(response, headers) {
|
|
51
51
|
return { type: "legacy", response, mcp: response.mcp && { servers: response.mcp.servers, headers } };
|
|
52
52
|
}
|
|
53
53
|
function statements2(snapshot) {
|
|
@@ -56,7 +56,7 @@ function statements2(snapshot) {
|
|
|
56
56
|
function providerIDs2(remote) {
|
|
57
57
|
return remote?.type === "legacy" ? Object.keys(remote.response.providers) : [];
|
|
58
58
|
}
|
|
59
|
-
var
|
|
59
|
+
var register2 = Effect.fn("OpencodeLegacy.register")(function* (ctx, current, search) {
|
|
60
60
|
yield* ctx.provider.transform((providers) => {
|
|
61
61
|
const snapshot = current();
|
|
62
62
|
const remote = snapshot.remote?.type === "legacy" ? snapshot.remote : undefined;
|
|
@@ -65,7 +65,7 @@ var register3 = Effect.fn("OpencodeLegacy.register")(function* (ctx, current, se
|
|
|
65
65
|
providers.update(providerID, (provider) => {
|
|
66
66
|
if (source && source.provider !== provider)
|
|
67
67
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
68
|
-
provider.integrationID =
|
|
68
|
+
provider.integrationID = ID14.make("opencode");
|
|
69
69
|
if (item.canonical !== undefined)
|
|
70
70
|
provider.canonical = item.canonical;
|
|
71
71
|
if (item.name !== undefined)
|
|
@@ -103,7 +103,7 @@ var register3 = Effect.fn("OpencodeLegacy.register")(function* (ctx, current, se
|
|
|
103
103
|
providers.models.update(providerID, modelID, (model) => {
|
|
104
104
|
if (config.capabilities?.reasoning !== undefined)
|
|
105
105
|
model.variants = [
|
|
106
|
-
...
|
|
106
|
+
...resolve4({ ...model, package: model.package ?? providers.get(providerID)?.provider.package }, supports2(config.capabilities.reasoning))
|
|
107
107
|
];
|
|
108
108
|
for (const variant of config.variants ?? []) {
|
|
109
109
|
let existing = model.variants.find((item) => item.id === variant.id);
|
|
@@ -166,4 +166,4 @@ function withoutCredentials(body) {
|
|
|
166
166
|
return body && Object.fromEntries(Object.entries(body).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
export { Response2,
|
|
169
|
+
export { Response2, make8, statements2, providerIDs2, register2, exports_opencode_legacy };
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service60
|
|
3
|
+
} from "./integration-hqqctcky.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Ref3,
|
|
6
|
+
Service77
|
|
7
|
+
} from "./integration-s842fs2g.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service69
|
|
11
|
+
} from "./integration-4mw9dk18.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionSchema2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./integration-5epte933.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service45
|
|
17
|
+
} from "./integration-jp46n186.js";
|
|
18
18
|
import {
|
|
19
19
|
evaluate2,
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service57
|
|
21
|
+
} from "./integration-ys2a3pd2.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service23
|
|
24
|
+
} from "./integration-38r8bs6z.js";
|
|
25
25
|
import {
|
|
26
26
|
NO_TEXT2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./integration-sqjzf8x2.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
Service12
|
|
30
|
+
} from "./integration-edg2rgbp.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./integration-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/tool/plugin/subagent.ts
|
|
36
36
|
var exports_subagent = {};
|
|
37
37
|
__export(exports_subagent, {
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
38
|
+
Input: () => Input8,
|
|
39
|
+
Output: () => Output4,
|
|
40
|
+
Plugin: () => Plugin45,
|
|
41
41
|
SubagentTool: () => exports_subagent,
|
|
42
|
-
description: () =>
|
|
43
|
-
name: () =>
|
|
42
|
+
description: () => description4,
|
|
43
|
+
name: () => name8
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { Effect, Predicate, Schema } from "effect";
|
|
47
|
-
var
|
|
47
|
+
var name8 = "subagent";
|
|
48
48
|
var backgroundResult = (sessionID) => ({
|
|
49
49
|
sessionID,
|
|
50
50
|
status: "running",
|
|
@@ -55,7 +55,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
55
55
|
].join(`
|
|
56
56
|
`)
|
|
57
57
|
});
|
|
58
|
-
var
|
|
58
|
+
var Input8 = Schema.Struct({
|
|
59
59
|
agent: Schema.String.annotate({
|
|
60
60
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
61
61
|
}),
|
|
@@ -71,12 +71,12 @@ var Input10 = Schema.Struct({
|
|
|
71
71
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
var
|
|
74
|
+
var Output4 = Schema.Struct({
|
|
75
75
|
sessionID: SessionSchema2.ID,
|
|
76
76
|
status: Schema.Literals(["completed", "running"]),
|
|
77
77
|
output: Schema.String
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var description4 = [
|
|
80
80
|
"Spawns an agent in a child session to work on the specified task.",
|
|
81
81
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
82
82
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -85,19 +85,19 @@ var description3 = [
|
|
|
85
85
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
86
86
|
].join(`
|
|
87
87
|
`);
|
|
88
|
-
var
|
|
88
|
+
var Plugin45 = {
|
|
89
89
|
id: "opencode.tool.subagent",
|
|
90
90
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
91
|
-
const sessions = yield*
|
|
92
|
-
const jobs = yield*
|
|
93
|
-
const agents = yield*
|
|
94
|
-
const config = yield*
|
|
95
|
-
const permission = yield*
|
|
96
|
-
const models = yield*
|
|
97
|
-
const subagents = yield*
|
|
91
|
+
const sessions = yield* Service23;
|
|
92
|
+
const jobs = yield* Service45;
|
|
93
|
+
const agents = yield* Service60;
|
|
94
|
+
const config = yield* Service69;
|
|
95
|
+
const permission = yield* Service57;
|
|
96
|
+
const models = yield* Service77;
|
|
97
|
+
const subagents = yield* Service12;
|
|
98
98
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
99
99
|
const ref = yield* Effect.try({
|
|
100
|
-
try: () =>
|
|
100
|
+
try: () => Ref3.parse(input),
|
|
101
101
|
catch: () => new ToolFailure({
|
|
102
102
|
message: `Invalid model "${input}". Use "providerID/modelID" or "providerID/modelID#variant".`
|
|
103
103
|
})
|
|
@@ -114,11 +114,11 @@ var Plugin27 = {
|
|
|
114
114
|
return ref;
|
|
115
115
|
});
|
|
116
116
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
117
|
-
name:
|
|
117
|
+
name: name8,
|
|
118
118
|
options: { codemode: false },
|
|
119
|
-
description:
|
|
120
|
-
input:
|
|
121
|
-
output:
|
|
119
|
+
description: description4,
|
|
120
|
+
input: Input8,
|
|
121
|
+
output: Output4,
|
|
122
122
|
execute: (input, context) => Effect.gen(function* () {
|
|
123
123
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
124
124
|
let current = parent;
|
|
@@ -138,7 +138,7 @@ var Plugin27 = {
|
|
|
138
138
|
if (agent.mode === "primary")
|
|
139
139
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
140
140
|
yield* permission.assert({
|
|
141
|
-
action:
|
|
141
|
+
action: name8,
|
|
142
142
|
resources: [agent.id],
|
|
143
143
|
save: [agent.id],
|
|
144
144
|
sessionID: context.sessionID,
|
|
@@ -217,7 +217,7 @@ ${output.output}
|
|
|
217
217
|
})))
|
|
218
218
|
})).pipe(Effect.orDie);
|
|
219
219
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
220
|
-
if (event.tool !==
|
|
220
|
+
if (event.tool !== name8 || !Predicate.isObject(event.input))
|
|
221
221
|
return;
|
|
222
222
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
223
223
|
return;
|
|
@@ -229,13 +229,13 @@ ${output.output}
|
|
|
229
229
|
event.input = input;
|
|
230
230
|
}));
|
|
231
231
|
const hook = (event) => Effect.gen(function* () {
|
|
232
|
-
const tool = event.tools[
|
|
232
|
+
const tool = event.tools[name8];
|
|
233
233
|
if (!tool)
|
|
234
234
|
return;
|
|
235
235
|
const selected = yield* agents.resolve(event.agent);
|
|
236
236
|
if (!selected)
|
|
237
237
|
return;
|
|
238
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
238
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
239
239
|
if (available.length === 0)
|
|
240
240
|
return;
|
|
241
241
|
tool.description = [
|
|
@@ -252,4 +252,4 @@ ${output.output}
|
|
|
252
252
|
})
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
export {
|
|
255
|
+
export { name8, Input8, Output4, description4, Plugin45, exports_subagent };
|