@opencode/core 2.0.27 → 2.0.28
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/agent.js +66 -66
- package/dist/aisdk-native.js +66 -66
- package/dist/aisdk.js +71 -71
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{filesystem-eaednpsc.js → filesystem-02hzg919.js} +16 -16
- package/dist/chunks/{filesystem-tn22h724.js → filesystem-09ygvw9n.js} +8 -8
- package/dist/chunks/{filesystem-jex0hdh0.js → filesystem-0m69c59p.js} +124 -42
- package/dist/chunks/{filesystem-52hym6es.js → filesystem-0q6ztsng.js} +34 -34
- package/dist/chunks/{filesystem-58rgv5ce.js → filesystem-0sdzw0m1.js} +26 -26
- package/dist/chunks/{filesystem-qz7nybpq.js → filesystem-0x07vhym.js} +10 -10
- package/dist/chunks/{filesystem-3xq304at.js → filesystem-0z1n3j5c.js} +19 -19
- package/dist/chunks/{filesystem-chn727mr.js → filesystem-139mpvga.js} +7 -7
- package/dist/chunks/filesystem-18a9s3e7.js +26 -0
- package/dist/chunks/filesystem-1z5jn46p.js +253 -0
- package/dist/chunks/{filesystem-cp3h7zv6.js → filesystem-20mebfjn.js} +11 -11
- package/dist/chunks/{filesystem-krjgrvpb.js → filesystem-234r1ky0.js} +5 -5
- package/dist/chunks/{filesystem-277mr6gh.js → filesystem-28n8c4ka.js} +1 -1
- package/dist/chunks/{filesystem-a89e0tac.js → filesystem-2k71kv7p.js} +3 -3
- package/dist/chunks/{filesystem-0jwsre1p.js → filesystem-2k8khapm.js} +4 -4
- package/dist/chunks/{filesystem-rezt1fjs.js → filesystem-2mcy88br.js} +154 -151
- package/dist/chunks/{filesystem-kqx1b4hy.js → filesystem-2ryng5r3.js} +1 -1
- package/dist/chunks/{filesystem-z5eh1vkz.js → filesystem-315k6hst.js} +15 -15
- package/dist/chunks/{filesystem-7wwt250p.js → filesystem-38mdmq5f.js} +82 -82
- package/dist/chunks/{filesystem-y15vpdnr.js → filesystem-3b9qt4hj.js} +7 -7
- package/dist/chunks/{filesystem-dwatz751.js → filesystem-3fz2a589.js} +4 -4
- package/dist/chunks/{filesystem-75yaxqej.js → filesystem-3rj2b0mx.js} +22 -22
- package/dist/chunks/{filesystem-c35597j6.js → filesystem-3sj8yt8v.js} +3 -3
- package/dist/chunks/{filesystem-xx66htzt.js → filesystem-3xj61p28.js} +29 -29
- package/dist/chunks/{filesystem-a7x960be.js → filesystem-426dk71k.js} +10 -10
- package/dist/chunks/{filesystem-0jz028se.js → filesystem-42721k3a.js} +13 -13
- package/dist/chunks/{filesystem-xq0502x8.js → filesystem-42q5z408.js} +3 -3
- package/dist/chunks/{filesystem-cd22zj3n.js → filesystem-47wyv12f.js} +12 -12
- package/dist/chunks/{filesystem-b6pj8f6d.js → filesystem-4c2dxef7.js} +14 -14
- package/dist/chunks/{filesystem-mqbwmym3.js → filesystem-4g0yx14a.js} +8 -8
- package/dist/chunks/filesystem-4h495arh.js +102 -0
- package/dist/chunks/{filesystem-qmyze75f.js → filesystem-4kv77ab9.js} +16 -16
- package/dist/chunks/{filesystem-3fm12cj0.js → filesystem-4rdhmkj7.js} +7 -7
- package/dist/chunks/{filesystem-zp2jr73m.js → filesystem-4wxv1g1t.js} +1 -1
- package/dist/chunks/{filesystem-42nthewb.js → filesystem-53rak1ew.js} +1 -1
- package/dist/chunks/{filesystem-9bbnj2zh.js → filesystem-58hng72m.js} +3 -3
- package/dist/chunks/{filesystem-075nkgpd.js → filesystem-5w9yjztw.js} +1 -1
- package/dist/chunks/{filesystem-egftk3gc.js → filesystem-60fs82z5.js} +9 -9
- package/dist/chunks/{filesystem-qjke1250.js → filesystem-628nc13m.js} +23 -23
- package/dist/chunks/{filesystem-yj5krche.js → filesystem-65v4cnad.js} +11 -11
- package/dist/chunks/{filesystem-7nranytg.js → filesystem-6nt2he5f.js} +30 -30
- package/dist/chunks/{filesystem-gp94me86.js → filesystem-6xktvksv.js} +9 -9
- package/dist/chunks/{filesystem-vw56mdd2.js → filesystem-6y8xypev.js} +6 -6
- package/dist/chunks/{filesystem-fs4v6yja.js → filesystem-73n0zeyz.js} +10 -10
- package/dist/chunks/{filesystem-wxetx7mh.js → filesystem-75kbjv4y.js} +7 -7
- package/dist/chunks/{filesystem-2vvh33eb.js → filesystem-775gj3j1.js} +7 -1
- package/dist/chunks/{filesystem-psy0m90e.js → filesystem-7bj0298e.js} +11 -11
- package/dist/chunks/{filesystem-bddt2pqj.js → filesystem-7cjfetaf.js} +6 -6
- package/dist/chunks/{filesystem-v45b1mqa.js → filesystem-7ha8mbyb.js} +8 -8
- package/dist/chunks/{filesystem-85yr590m.js → filesystem-7kmr86m7.js} +29 -29
- package/dist/chunks/{filesystem-t63kk2n9.js → filesystem-7mwvqe74.js} +1 -1
- package/dist/chunks/{filesystem-qf68ybps.js → filesystem-7q2snjpw.js} +19 -19
- package/dist/chunks/{filesystem-kfxykwst.js → filesystem-7t1q934f.js} +8 -8
- package/dist/chunks/{filesystem-g6kk69s6.js → filesystem-7w42pd46.js} +8 -8
- package/dist/chunks/{filesystem-jh2bfv56.js → filesystem-8004wwfb.js} +18 -18
- package/dist/chunks/{filesystem-6hh8tjw2.js → filesystem-8rqycdgd.js} +6 -6
- package/dist/chunks/{filesystem-tkfxpf5w.js → filesystem-93b1zj1y.js} +8 -8
- package/dist/chunks/{filesystem-dmn46mqv.js → filesystem-9h395ey8.js} +13 -13
- package/dist/chunks/{filesystem-5yzzbxa7.js → filesystem-9hn6k4tm.js} +7 -7
- package/dist/chunks/{filesystem-a812m1sc.js → filesystem-9s024g5s.js} +5 -5
- package/dist/chunks/{filesystem-3c7k6cm5.js → filesystem-9s29ec0q.js} +5 -5
- package/dist/chunks/{filesystem-w5j8pc94.js → filesystem-9sdvy6ea.js} +5 -5
- package/dist/chunks/{filesystem-e850ppb0.js → filesystem-9sjeq45g.js} +1 -1
- package/dist/chunks/{filesystem-nmqm2vvz.js → filesystem-9wfts7m5.js} +14 -14
- package/dist/chunks/{filesystem-9zg8t2tr.js → filesystem-a78v4ve5.js} +22 -22
- package/dist/chunks/{filesystem-h3s3f80v.js → filesystem-adgawzpd.js} +4 -4
- package/dist/chunks/{filesystem-cmdzq1er.js → filesystem-aj2z5ayr.js} +20 -20
- package/dist/chunks/{filesystem-h18kbg2g.js → filesystem-aqazz0j8.js} +20 -20
- package/dist/chunks/{filesystem-d9xsbmzv.js → filesystem-axkrk270.js} +10 -10
- package/dist/chunks/{filesystem-75czp452.js → filesystem-b5s5zk2w.js} +10 -10
- package/dist/chunks/{filesystem-8679j8d8.js → filesystem-b6snqm39.js} +11 -9
- package/dist/chunks/{filesystem-0rj8zrsn.js → filesystem-b71jh5yt.js} +18 -17
- package/dist/chunks/{filesystem-3dreg0vn.js → filesystem-b8h848z5.js} +9 -9
- package/dist/chunks/{filesystem-n61013np.js → filesystem-bfegkxfd.js} +6 -6
- package/dist/chunks/{filesystem-1ffvrpkg.js → filesystem-bjx1sjef.js} +4 -4
- package/dist/chunks/{filesystem-97aeaand.js → filesystem-bmr56wjg.js} +3 -3
- package/dist/chunks/{filesystem-tx4skpae.js → filesystem-btv47zes.js} +27 -27
- package/dist/chunks/{filesystem-r69zxgc9.js → filesystem-bvv8j0qg.js} +9 -9
- package/dist/chunks/{filesystem-b674v2dg.js → filesystem-bx0gyb4h.js} +3 -3
- package/dist/chunks/{filesystem-gdq97084.js → filesystem-bxqk5pf5.js} +7 -7
- package/dist/chunks/{filesystem-mh1qw9wf.js → filesystem-c1pk8j7t.js} +14 -14
- package/dist/chunks/{filesystem-sa8ekw3f.js → filesystem-c8ax2afj.js} +1 -1
- package/dist/chunks/{filesystem-8wps0r52.js → filesystem-c8cfwmf0.js} +16 -14
- package/dist/chunks/{filesystem-gty1xwv8.js → filesystem-cc09gky1.js} +14 -14
- package/dist/chunks/{filesystem-g18ezh2c.js → filesystem-cfkx2x8f.js} +18 -18
- package/dist/chunks/{filesystem-45gnhb3v.js → filesystem-cjb3hyea.js} +21 -21
- package/dist/chunks/{filesystem-yyy8m62c.js → filesystem-cqwer3tv.js} +19 -19
- package/dist/chunks/{filesystem-92hybt7t.js → filesystem-crx3azpj.js} +12 -12
- package/dist/chunks/{filesystem-zdbbxb0y.js → filesystem-ct7wq3h5.js} +5 -5
- package/dist/chunks/{filesystem-nvjf5yyf.js → filesystem-cv0e3ffa.js} +321 -321
- package/dist/chunks/{filesystem-bhzg07mw.js → filesystem-cv0wr4wv.js} +13 -13
- package/dist/chunks/{filesystem-30hpp6bd.js → filesystem-d0gnxsps.js} +28 -28
- package/dist/chunks/{filesystem-zsa8nsz8.js → filesystem-d77571hn.js} +22 -22
- package/dist/chunks/{filesystem-mm2s9j4z.js → filesystem-d8kc7qyj.js} +8 -8
- package/dist/chunks/{filesystem-wfk26c6d.js → filesystem-dg29p2pd.js} +13 -13
- package/dist/chunks/{filesystem-s3mqqn9k.js → filesystem-dqcpnaex.js} +20 -15
- package/dist/chunks/{filesystem-j56e64zr.js → filesystem-dqxsqydv.js} +2 -0
- package/dist/chunks/{filesystem-6s1gmk25.js → filesystem-dvb8jg9v.js} +18 -18
- package/dist/chunks/{filesystem-gvc0m829.js → filesystem-e0w2vstn.js} +14 -14
- package/dist/chunks/{filesystem-517r2k0v.js → filesystem-e1t3mam8.js} +8 -8
- package/dist/chunks/{filesystem-wz02ft3p.js → filesystem-e29yd45t.js} +8 -8
- package/dist/chunks/{filesystem-vk5e0qsv.js → filesystem-e6464sbd.js} +4 -4
- package/dist/chunks/{filesystem-r2z489rp.js → filesystem-e80seqcp.js} +2 -2
- package/dist/chunks/{filesystem-jcr0a5xm.js → filesystem-eebh6wmp.js} +30 -30
- package/dist/chunks/{filesystem-nbhbhab9.js → filesystem-ehv7knr3.js} +21 -16
- package/dist/chunks/{filesystem-kc69xce9.js → filesystem-ej4n91fq.js} +17 -17
- package/dist/chunks/{filesystem-x5s67ttw.js → filesystem-ek1kdr8s.js} +25 -25
- package/dist/chunks/{filesystem-c1fqxshp.js → filesystem-es1vcfrp.js} +1 -1
- package/dist/chunks/{filesystem-avya17qh.js → filesystem-f1bjnzfm.js} +14 -14
- package/dist/chunks/{filesystem-1acjjqhc.js → filesystem-f2n192rq.js} +3 -3
- package/dist/chunks/{filesystem-amjhxwh3.js → filesystem-f5dbfwc4.js} +4 -4
- package/dist/chunks/{filesystem-n59f5cqe.js → filesystem-faat08va.js} +16 -16
- package/dist/chunks/{filesystem-jtpxbk3r.js → filesystem-ffk923an.js} +80 -80
- package/dist/chunks/{filesystem-qmqgtz8f.js → filesystem-ft3hqk2c.js} +7 -7
- package/dist/chunks/{filesystem-hq3c8me3.js → filesystem-fxaymqdw.js} +3 -3
- package/dist/chunks/{filesystem-a1fpssew.js → filesystem-fzcmqh9t.js} +41 -92
- package/dist/chunks/{filesystem-qr40m89d.js → filesystem-g3wzybmp.js} +15 -15
- package/dist/chunks/{filesystem-e77w7m4c.js → filesystem-g5gnrdpy.js} +11 -11
- package/dist/chunks/{filesystem-52fe2n6x.js → filesystem-gp9jqd59.js} +4 -4
- package/dist/chunks/{filesystem-vfb4jdsz.js → filesystem-gtfaydnj.js} +16 -16
- package/dist/chunks/{filesystem-qptcxqn9.js → filesystem-gveanz76.js} +20 -20
- package/dist/chunks/{filesystem-31xfzrxg.js → filesystem-h7s7r6s9.js} +3 -3
- package/dist/chunks/{filesystem-ndz7w8hx.js → filesystem-h9k3zmfa.js} +14 -14
- package/dist/chunks/{filesystem-cjgcse4q.js → filesystem-hcxmzztb.js} +6 -11
- package/dist/chunks/{filesystem-shj64zqm.js → filesystem-hddh30xx.js} +8 -8
- package/dist/chunks/{filesystem-8y0srtbm.js → filesystem-hgx0r8wb.js} +43 -43
- package/dist/chunks/{filesystem-p03r7pt3.js → filesystem-hnb4yx9q.js} +5 -5
- package/dist/chunks/{filesystem-tjefdw4f.js → filesystem-hnh8n5n7.js} +9 -9
- package/dist/chunks/{filesystem-hfx4ttpe.js → filesystem-hp4earpc.js} +9 -9
- package/dist/chunks/{filesystem-x5w8kc5x.js → filesystem-hppj45g6.js} +23 -23
- package/dist/chunks/{filesystem-ted6dyzx.js → filesystem-hxdhxhc0.js} +32 -32
- package/dist/chunks/{filesystem-x2eytdts.js → filesystem-j72mgbmv.js} +30 -30
- package/dist/chunks/{filesystem-8r0rjxx3.js → filesystem-jv0d82ph.js} +41 -41
- package/dist/chunks/{filesystem-4dd6559a.js → filesystem-jvz4rjy9.js} +26 -25
- package/dist/chunks/{filesystem-jnzzg47p.js → filesystem-k0sjew9s.js} +13 -13
- package/dist/chunks/{filesystem-wtsf8rdt.js → filesystem-k7xxzs5q.js} +14 -14
- package/dist/chunks/{filesystem-gjacmpd0.js → filesystem-k97zh3d1.js} +7 -7
- package/dist/chunks/{filesystem-z3pazvy2.js → filesystem-kdykjer7.js} +14 -14
- package/dist/chunks/{filesystem-2q2afj7r.js → filesystem-kjrg4dz2.js} +21 -21
- package/dist/chunks/{filesystem-628cnxdp.js → filesystem-kmpk7fbr.js} +16 -16
- package/dist/chunks/{filesystem-d6jv500s.js → filesystem-krc3a0yk.js} +2 -2
- package/dist/chunks/{filesystem-1k1hwgxp.js → filesystem-ktnh1044.js} +26 -26
- package/dist/chunks/{filesystem-hbmg3jd1.js → filesystem-kzk6m8s6.js} +65 -65
- package/dist/chunks/{filesystem-rhjt4rsm.js → filesystem-kzxe22pz.js} +1 -1
- package/dist/chunks/{filesystem-hehj8e2f.js → filesystem-m30bzzm8.js} +8 -8
- package/dist/chunks/{filesystem-58072hz9.js → filesystem-m5jcjszt.js} +3 -3
- package/dist/chunks/{filesystem-gk8qb678.js → filesystem-maspj1v3.js} +5 -18
- package/dist/chunks/{filesystem-cfrzcmt6.js → filesystem-mddpn92g.js} +24 -24
- package/dist/chunks/{filesystem-43fay8tn.js → filesystem-mek16e5d.js} +8 -8
- package/dist/chunks/{filesystem-7qtbp6f0.js → filesystem-mrfr3fv8.js} +13 -13
- package/dist/chunks/{filesystem-w7mvh2x4.js → filesystem-mwpbc7s8.js} +18 -18
- package/dist/chunks/{filesystem-ddg7egp8.js → filesystem-n2bdxpfq.js} +9 -9
- package/dist/chunks/{filesystem-zfgdk5x8.js → filesystem-n3yfs7ec.js} +31 -31
- package/dist/chunks/{filesystem-8w54sq4a.js → filesystem-n4fsvy2x.js} +18 -18
- package/dist/chunks/{filesystem-gacw69ge.js → filesystem-n9kc33re.js} +2 -2
- package/dist/chunks/{filesystem-jd655njr.js → filesystem-naas6dry.js} +22 -22
- package/dist/chunks/{filesystem-vc6ht4b9.js → filesystem-ng5df8nw.js} +7 -7
- package/dist/chunks/{filesystem-xpk7egw8.js → filesystem-njfdx3sy.js} +3 -3
- package/dist/chunks/{filesystem-40hy4nm0.js → filesystem-p3m2ynk3.js} +16 -12
- package/dist/chunks/{filesystem-h0s8229g.js → filesystem-p42kja40.js} +15 -15
- package/dist/chunks/{filesystem-zxe4qb9c.js → filesystem-pb5kndam.js} +31 -24
- package/dist/chunks/{filesystem-4w5f3qm5.js → filesystem-pn3cc07s.js} +7 -7
- package/dist/chunks/{filesystem-4yh5fkek.js → filesystem-pr4c8k5d.js} +31 -31
- package/dist/chunks/{filesystem-q3kzbh51.js → filesystem-q0zsatc3.js} +47 -47
- package/dist/chunks/{filesystem-gteqr3kb.js → filesystem-qa6qpaa9.js} +10 -10
- package/dist/chunks/{filesystem-45th5jwr.js → filesystem-qc068m1q.js} +4 -4
- package/dist/chunks/{filesystem-xtzs4z5v.js → filesystem-qmr691ca.js} +4 -4
- package/dist/chunks/{filesystem-cztcbjsk.js → filesystem-qnxbmed8.js} +39 -39
- package/dist/chunks/{filesystem-gbtkprqj.js → filesystem-qpdrzbsd.js} +33 -33
- package/dist/chunks/{filesystem-y4861qag.js → filesystem-r3fk5851.js} +40 -40
- package/dist/chunks/{filesystem-zqpzmbkm.js → filesystem-r9h634c8.js} +2 -2
- package/dist/chunks/{filesystem-28mv0yws.js → filesystem-rb70syh1.js} +13 -13
- package/dist/chunks/{filesystem-tbqraact.js → filesystem-rdd07134.js} +44 -43
- package/dist/chunks/{filesystem-v0t15ase.js → filesystem-rgx5n1kn.js} +4 -4
- package/dist/chunks/{filesystem-wn2vj619.js → filesystem-rjtxxem0.js} +5 -5
- package/dist/chunks/{filesystem-6pc27hjz.js → filesystem-rkprpv83.js} +4 -4
- package/dist/chunks/{filesystem-k76fn4kw.js → filesystem-rpg9c19m.js} +3 -3
- package/dist/chunks/{filesystem-6p6bhjzq.js → filesystem-rthc7gf6.js} +10 -10
- package/dist/chunks/{filesystem-b3f8fkhc.js → filesystem-scgrse2b.js} +3 -3
- package/dist/chunks/{filesystem-jq5272j9.js → filesystem-shnqbm89.js} +18 -18
- package/dist/chunks/{filesystem-1pdq80h1.js → filesystem-shy0vwdw.js} +4 -4
- package/dist/chunks/{filesystem-6yajptbt.js → filesystem-t3f4tea4.js} +1 -1
- package/dist/chunks/{filesystem-hdckhky9.js → filesystem-t5jqnx4m.js} +9 -9
- package/dist/chunks/{filesystem-89znhe33.js → filesystem-tcezcvh9.js} +3 -3
- package/dist/chunks/{filesystem-p4njbyer.js → filesystem-tfw769rq.js} +9 -9
- package/dist/chunks/{filesystem-xw91mmsj.js → filesystem-thnax083.js} +10 -10
- package/dist/chunks/{filesystem-rert0e01.js → filesystem-tkb22qbm.js} +1 -1
- package/dist/chunks/{filesystem-0paq2nw3.js → filesystem-tm0kqsz3.js} +25 -1
- package/dist/chunks/{filesystem-7t7k8w74.js → filesystem-tz35mf6x.js} +7 -7
- package/dist/chunks/{filesystem-gccjnz6h.js → filesystem-v0xmac3n.js} +1 -1
- package/dist/chunks/{filesystem-ma9a1mz6.js → filesystem-v7s1536z.js} +2 -2
- package/dist/chunks/{filesystem-41czef58.js → filesystem-v7z2bvyd.js} +3 -3
- package/dist/chunks/{filesystem-nr11xpps.js → filesystem-vbk72xvh.js} +22 -22
- package/dist/chunks/{filesystem-sb9d9eyx.js → filesystem-vtbmj6qa.js} +6 -6
- package/dist/chunks/{filesystem-05zcap53.js → filesystem-vy98fec5.js} +6 -6
- package/dist/chunks/{filesystem-84txncab.js → filesystem-w1eejvng.js} +4 -4
- package/dist/chunks/{filesystem-g6yfr6ja.js → filesystem-w39jehkq.js} +3 -3
- package/dist/chunks/{filesystem-rzs3gq0x.js → filesystem-w3x9v1nk.js} +7 -7
- package/dist/chunks/{filesystem-3y40vn7b.js → filesystem-w40f6bsw.js} +1 -1
- package/dist/chunks/{filesystem-dzse07y5.js → filesystem-w5yqftge.js} +5 -5
- package/dist/chunks/{filesystem-v7gjr6wa.js → filesystem-wb1x78f5.js} +40 -40
- package/dist/chunks/{filesystem-v9rcgtcn.js → filesystem-wd9v2wqs.js} +27 -27
- package/dist/chunks/{filesystem-bw78ga2c.js → filesystem-wjj7prxr.js} +9 -0
- package/dist/chunks/{filesystem-v15nq2pf.js → filesystem-wm56crqz.js} +67 -40
- package/dist/chunks/{filesystem-0nqtnax1.js → filesystem-wne619hj.js} +23 -23
- package/dist/chunks/{filesystem-v7q8sg4f.js → filesystem-wpf4st6a.js} +8 -8
- package/dist/chunks/{filesystem-x7xmxswz.js → filesystem-ws0htp7c.js} +11 -11
- package/dist/chunks/{filesystem-zzbddhc6.js → filesystem-wtwcdvfd.js} +10 -10
- package/dist/chunks/{filesystem-mnav64s8.js → filesystem-wwgtjrva.js} +9 -9
- package/dist/chunks/{filesystem-hh0yy80h.js → filesystem-xcf4ra81.js} +3 -3
- package/dist/chunks/{filesystem-17ahada2.js → filesystem-xey671re.js} +25 -25
- package/dist/chunks/{filesystem-ge3tf0hw.js → filesystem-y5x50g1v.js} +22 -22
- package/dist/chunks/{filesystem-6ea2fwcg.js → filesystem-y8p3zjbc.js} +5 -5
- package/dist/chunks/{filesystem-hhj1gqex.js → filesystem-y9q49zk7.js} +1 -1
- package/dist/chunks/{filesystem-e6f2cxsr.js → filesystem-yar3z0vm.js} +14 -14
- package/dist/chunks/{filesystem-bwds47ca.js → filesystem-ycge4e7e.js} +3 -3
- package/dist/chunks/{filesystem-ykhp3ymj.js → filesystem-yezy7z0k.js} +9 -9
- package/dist/chunks/{filesystem-g8xm47b4.js → filesystem-ysasxjy6.js} +9 -9
- package/dist/chunks/{filesystem-qwwffz8c.js → filesystem-yw46jfkh.js} +13 -13
- package/dist/chunks/{filesystem-x2t9anc7.js → filesystem-z114v3my.js} +17 -17
- package/dist/chunks/{filesystem-9zhh23v8.js → filesystem-z2jd07rd.js} +4 -4
- package/dist/chunks/{filesystem-njatc343.js → filesystem-z7d7tagb.js} +9 -9
- package/dist/chunks/{filesystem-edp2jp4p.js → filesystem-zdqhb26j.js} +2 -2
- package/dist/chunks/{filesystem-28b6phvf.js → filesystem-zftfvc0z.js} +5 -5
- package/dist/chunks/{filesystem-zxy7mtkf.js → filesystem-zqq8czsd.js} +27 -27
- package/dist/chunks/{filesystem-vdfrtany.js → filesystem-zrdk58qt.js} +1 -1
- package/dist/chunks/{filesystem-ae5sdhnp.js → filesystem-zrj251rj.js} +20 -20
- package/dist/chunks/{filesystem-2r4m1mbx.js → filesystem-zx2dsnbk.js} +29 -29
- package/dist/codemode/instructions.js +5 -5
- package/dist/command.js +70 -70
- package/dist/config/discovery.js +71 -65
- package/dist/config/normalize.js +76 -76
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +169 -169
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +103 -103
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +87 -87
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +87 -87
- package/dist/config/plugin/mcp.js +92 -92
- package/dist/config/plugin/policy.js +87 -87
- package/dist/config/plugin/provider.js +87 -87
- package/dist/config/plugin/reference.js +89 -89
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +78 -78
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +87 -87
- package/dist/config/plugin/source.js +90 -90
- package/dist/config/plugin/tool-output.js +88 -88
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +89 -89
- package/dist/config/watch.js +1 -1
- package/dist/config.js +93 -93
- package/dist/credential.js +67 -67
- package/dist/database/database.js +54 -54
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +39 -39
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +242 -242
- package/dist/effect/app-node-platform.js +1 -1
- package/dist/environment/environment.js +70 -70
- package/dist/environment/index.js +72 -72
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +81 -81
- package/dist/file-mutation.js +71 -71
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +185 -185
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +80 -80
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +83 -83
- package/dist/form.js +62 -62
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +79 -79
- package/dist/git.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +68 -68
- package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +312 -312
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +67 -67
- package/dist/integration.js +63 -63
- package/dist/job.js +64 -64
- package/dist/kv.js +59 -59
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +84 -84
- package/dist/location-service-map.js +67 -67
- package/dist/location-services.js +311 -311
- package/dist/location.js +62 -62
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +82 -82
- package/dist/mcp/instructions.js +97 -97
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +67 -67
- package/dist/modal/models.js +68 -68
- package/dist/model-resolver.js +75 -75
- package/dist/model.js +77 -77
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +66 -66
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +88 -88
- package/dist/persistent-pty/index.js +71 -71
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +59 -59
- package/dist/plugin/command.js +73 -73
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +176 -176
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -286
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +72 -72
- package/dist/plugin/module.js +85 -85
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +79 -79
- package/dist/plugin/provider/amazon-bedrock.js +67 -67
- package/dist/plugin/provider/azure.js +86 -87
- package/dist/plugin/provider/chatgpt.js +91 -69
- package/dist/plugin/provider/cloudflare-ai-gateway.js +85 -85
- package/dist/plugin/provider/cloudflare-workers-ai.js +85 -85
- package/dist/plugin/provider/configured.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +69 -69
- package/dist/plugin/provider/github-copilot.js +71 -71
- package/dist/plugin/provider/gitlab.js +69 -69
- package/dist/plugin/provider/google-vertex.js +85 -85
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +94 -94
- package/dist/plugin/provider/local.js +91 -91
- package/dist/plugin/provider/modal.js +69 -69
- package/dist/plugin/provider/ollama.js +92 -92
- package/dist/plugin/provider/openai.js +93 -70
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +68 -68
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/prompt-cache-key.js +1 -92
- package/dist/plugin/provider/sap-ai-core.js +67 -67
- package/dist/plugin/provider/snowflake-cortex.js +86 -86
- package/dist/plugin/provider/vercel.js +67 -67
- package/dist/plugin/provider/vllm.js +94 -94
- package/dist/plugin/provider/xai.js +68 -68
- package/dist/plugin/provider.js +128 -128
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +104 -104
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/vcs/git.js +66 -66
- package/dist/plugin/vcs/hg.js +66 -66
- package/dist/plugin/verbosity.js +70 -70
- package/dist/plugin/warming.js +86 -86
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +5 -5
- package/dist/plugin.js +189 -189
- package/dist/project/sql.js +2 -2
- package/dist/project.js +61 -61
- package/dist/provider.js +82 -78
- package/dist/pty.js +78 -78
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +70 -70
- package/dist/repository-cache.js +64 -64
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +1 -1
- package/dist/ripgrep.js +74 -74
- package/dist/rpc.js +67 -67
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +100 -100
- package/dist/session/context.js +119 -119
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +114 -114
- package/dist/session/execution.js +97 -97
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +70 -70
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +64 -64
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +76 -76
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +8 -8
- package/dist/session/move.js +103 -103
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +68 -68
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +73 -73
- package/dist/session/runner/publish-llm-event.js +86 -86
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +93 -93
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +131 -131
- package/dist/session/shell.js +98 -98
- package/dist/session/skill.js +80 -80
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +69 -69
- package/dist/session/subagent-job.js +169 -169
- package/dist/session/title.js +122 -122
- package/dist/session/to-session-error.js +85 -85
- package/dist/session/transfer.js +109 -109
- package/dist/session.js +177 -177
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +84 -84
- package/dist/skill.js +89 -89
- package/dist/snapshot.js +71 -71
- package/dist/tool/mcp.js +96 -96
- package/dist/tool/plugin/edit.js +95 -95
- package/dist/tool/plugin/glob.js +100 -100
- package/dist/tool/plugin/grep.js +100 -100
- package/dist/tool/plugin/mcp-resource.js +90 -90
- package/dist/tool/plugin/opencode.js +86 -86
- package/dist/tool/plugin/patch.js +97 -97
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +100 -100
- package/dist/tool/plugin/shell.js +173 -173
- package/dist/tool/plugin/skill.js +90 -90
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +87 -87
- package/dist/tool/plugin/websearch.js +87 -87
- package/dist/tool/plugin/write.js +95 -95
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/agent.d.ts +1 -0
- package/dist/types/config/discovery.d.ts +18 -0
- package/dist/types/config.d.ts +3 -1
- package/dist/types/image/photon.d.ts +2 -2
- package/dist/types/model.d.ts +7 -0
- package/dist/types/plugin/provider/azure.d.ts +2 -3
- package/dist/types/plugin/provider/chatgpt.d.ts +2 -1
- package/dist/types/plugin/provider/openai.d.ts +2 -1
- package/dist/types/provider.d.ts +30 -1
- package/dist/types/v1/config/migrate.d.ts +13 -4
- package/dist/types/v1/config/provider-options.d.ts +8 -0
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +69 -69
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +3 -1
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +68 -68
- package/dist/vcs.js +69 -69
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +61 -61
- package/dist/wellknown.js +64 -64
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +68 -68
- package/dist/worktree.js +76 -76
- package/package.json +9 -9
- package/dist/chunks/filesystem-8p91w73h.js +0 -59
- package/dist/chunks/filesystem-g4vk7v1j.js +0 -253
- package/dist/chunks/filesystem-zr1cpq3k.js +0 -26
- /package/dist/chunks/{filesystem-rj3eygr5.js → filesystem-c41wscbt.js} +0 -0
- /package/dist/chunks/{filesystem-xpeshqab.js → filesystem-d9jtx293.js} +0 -0
- /package/dist/chunks/{filesystem-0dfv01xh.js → filesystem-ma48de29.js} +0 -0
- /package/dist/chunks/{filesystem-2r93mh4x.js → filesystem-svcw9x3w.js} +0 -0
- /package/dist/chunks/{filesystem-nnbqx04f.js → filesystem-t8c0xvf3.js} +0 -0
- /package/dist/chunks/{filesystem-sy62yj56.js → filesystem-tyts7tda.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service69,
|
|
3
|
+
node72,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./filesystem-
|
|
5
|
+
} from "./filesystem-hddh30xx.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./filesystem-
|
|
7
|
+
Service55,
|
|
8
|
+
node57
|
|
9
|
+
} from "./filesystem-w5yqftge.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./filesystem-
|
|
11
|
+
Service15
|
|
12
|
+
} from "./filesystem-y5x50g1v.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./filesystem-
|
|
15
|
+
} from "./filesystem-1z5jn46p.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service69, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service15);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node57.replace(Layer.succeed(Service55, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node72.replace(Layer.succeed(Service69, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service84,
|
|
4
4
|
node88
|
|
5
|
-
} from "./filesystem-
|
|
5
|
+
} from "./filesystem-zrdk58qt.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./filesystem-
|
|
7
|
+
Service71,
|
|
8
|
+
node74
|
|
9
|
+
} from "./filesystem-4g0yx14a.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -16,13 +16,13 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event8,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service48,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node51,
|
|
26
26
|
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service48 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event8 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -79,9 +79,9 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
84
|
+
const kv = yield* Service71;
|
|
85
85
|
const bus = yield* Service84;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service48.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event8.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node51 = makeGlobalNode({ service: Service48, layer, deps: [httpClient, node74, node88] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service48, Event8, inspect2, resolve3, node51, exports_wellknown };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./filesystem-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-m5jcjszt.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./filesystem-
|
|
4
|
+
} from "./filesystem-53rak1ew.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./filesystem-rdw6cm16.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_formatter2 = {};
|
|
14
14
|
__export(exports_formatter2, {
|
|
15
15
|
Formatter: () => exports_formatter2,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service76,
|
|
17
|
+
node: () => node80
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { ChildProcess } from "effect/process";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { AppProcess } from "@opencode/util/process";
|
|
24
|
-
class
|
|
24
|
+
class Service76 extends Context.Service()("@opencode/v2/Formatter") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
27
27
|
const location = yield* Service81;
|
|
28
28
|
const processes = yield* AppProcess.Service;
|
|
29
29
|
const commands = new WeakMap;
|
|
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
85
85
|
}
|
|
86
86
|
return false;
|
|
87
87
|
});
|
|
88
|
-
return
|
|
88
|
+
return Service76.of({ transform: state.transform, reload: state.reload, file });
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
91
|
-
service:
|
|
90
|
+
var node80 = makeLocationNode({
|
|
91
|
+
service: Service76,
|
|
92
92
|
layer,
|
|
93
93
|
deps: [node85, AppProcess.node]
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Service76, node80, exports_formatter2 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./filesystem-
|
|
4
|
+
} from "./filesystem-z2jd07rd.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./filesystem-
|
|
8
|
+
} from "./filesystem-q0zsatc3.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./filesystem-
|
|
11
|
+
} from "./filesystem-p42kja40.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./filesystem-
|
|
19
|
+
} from "./filesystem-rdd07134.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./filesystem-
|
|
23
|
+
} from "./filesystem-e29yd45t.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-r9h634c8.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./filesystem-
|
|
6
|
+
} from "./filesystem-zrdk58qt.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./filesystem-
|
|
8
|
+
Service55
|
|
9
|
+
} from "./filesystem-w5yqftge.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
12
|
} from "./filesystem-vzs5sf6e.js";
|
|
@@ -14,41 +14,41 @@ import {
|
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./filesystem-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError8,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./filesystem-
|
|
23
|
+
} from "./filesystem-z2jd07rd.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
26
|
} from "./filesystem-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./filesystem-
|
|
28
|
+
Service61
|
|
29
|
+
} from "./filesystem-g5gnrdpy.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
33
|
Service53
|
|
34
|
-
} from "./filesystem-
|
|
34
|
+
} from "./filesystem-n4fsvy2x.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./filesystem-
|
|
36
|
+
Service51
|
|
37
|
+
} from "./filesystem-hxdhxhc0.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./filesystem-
|
|
40
|
+
} from "./filesystem-4c2dxef7.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./filesystem-
|
|
45
|
+
} from "./filesystem-kmpk7fbr.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./filesystem-
|
|
48
|
+
} from "./filesystem-75kbjv4y.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./filesystem-
|
|
51
|
+
} from "./filesystem-7w42pd46.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
54
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -57,24 +57,24 @@ import {
|
|
|
57
57
|
var exports_session2 = {};
|
|
58
58
|
__export(exports_session2, {
|
|
59
59
|
Session: () => exports_session2,
|
|
60
|
-
make: () =>
|
|
60
|
+
make: () => make13
|
|
61
61
|
});
|
|
62
62
|
import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
|
-
var
|
|
65
|
+
var make13 = Effect.fn("Session.make")(function* () {
|
|
66
66
|
const bus = yield* Service84;
|
|
67
67
|
const database = yield* Service85;
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
68
|
+
const store = yield* Service61;
|
|
69
|
+
const instances = yield* Service55;
|
|
70
|
+
const execution = yield* Service51;
|
|
71
71
|
const admission = yield* Service53;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
75
75
|
const session = yield* store.get(sessionID);
|
|
76
76
|
if (!session)
|
|
77
|
-
return yield* new
|
|
77
|
+
return yield* new NotFoundError8({ sessionID });
|
|
78
78
|
return session;
|
|
79
79
|
});
|
|
80
80
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -135,7 +135,7 @@ var make12 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service55, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make12 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service55, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
183
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service55, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service55, instances), Effect.provideService(Service85, database), Effect.provideService(Service84, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service55, instances), Effect.provideService(Service84, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -329,4 +329,4 @@ ${error.message}`,
|
|
|
329
329
|
return { forSession };
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
export {
|
|
332
|
+
export { make13, exports_session2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./filesystem-
|
|
3
|
+
} from "./filesystem-9h395ey8.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./filesystem-
|
|
5
|
+
Service59
|
|
6
|
+
} from "./filesystem-q0zsatc3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID11,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./filesystem-
|
|
13
|
+
Service70
|
|
14
|
+
} from "./filesystem-cjb3hyea.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input9,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin28,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
26
|
description: () => description3,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name9
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var name9 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
@@ -39,28 +39,28 @@ var httpErrors = new Map([
|
|
|
39
39
|
var description3 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input9 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID11,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin28 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
52
|
+
const permission = yield* Service59;
|
|
53
53
|
const forms = yield* Service79;
|
|
54
|
-
const websearch = yield*
|
|
54
|
+
const websearch = yield* Service70;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name9,
|
|
57
57
|
options: { codemode: false },
|
|
58
58
|
description: description3,
|
|
59
|
-
input:
|
|
59
|
+
input: Input9,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name9,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name9];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name9, NO_RESULTS2, description3, Input9, Plugin28, exports_websearch };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./filesystem-
|
|
4
|
+
node68
|
|
5
|
+
} from "./filesystem-thnax083.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./filesystem-
|
|
9
|
+
} from "./filesystem-3sj8yt8v.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./filesystem-
|
|
11
|
+
Service63,
|
|
12
|
+
node65
|
|
13
|
+
} from "./filesystem-pn3cc07s.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./filesystem-
|
|
16
|
+
} from "./filesystem-q0zsatc3.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./filesystem-
|
|
19
|
+
} from "./filesystem-e6464sbd.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./filesystem-
|
|
21
|
+
Error4
|
|
22
|
+
} from "./filesystem-aqazz0j8.js";
|
|
23
23
|
import {
|
|
24
24
|
get5
|
|
25
25
|
} from "./filesystem-54ma36ye.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./filesystem-
|
|
27
|
+
Service36,
|
|
28
|
+
node40
|
|
29
|
+
} from "./filesystem-qa6qpaa9.js";
|
|
30
30
|
import {
|
|
31
31
|
make14
|
|
32
32
|
} from "./filesystem-drwq78ky.js";
|
|
33
33
|
import {
|
|
34
34
|
toLLMMessages2
|
|
35
|
-
} from "./filesystem-
|
|
35
|
+
} from "./filesystem-5w9yjztw.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./filesystem-9rqn6x4v.js";
|
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
// src/session/model-request.ts
|
|
41
41
|
var exports_model_request = {};
|
|
42
42
|
__export(exports_model_request, {
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service35,
|
|
44
44
|
SessionModelRequest: () => exports_model_request,
|
|
45
45
|
baseTranscript: () => baseTranscript2,
|
|
46
46
|
boundImages: () => boundImages2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer17,
|
|
48
|
+
node: () => node39,
|
|
49
49
|
unsupportedParts: () => unsupportedParts2
|
|
50
50
|
});
|
|
51
51
|
import {
|
|
@@ -155,11 +155,11 @@ var boundImages2 = (messages) => {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
class
|
|
158
|
+
class Service35 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
159
159
|
}
|
|
160
|
-
var
|
|
161
|
-
const hooks = yield*
|
|
162
|
-
const transport = yield*
|
|
160
|
+
var layer17 = Layer.effect(Service35, Effect.gen(function* () {
|
|
161
|
+
const hooks = yield* Service63;
|
|
162
|
+
const transport = yield* Service36;
|
|
163
163
|
const app = yield* Metadata2;
|
|
164
164
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
165
165
|
const session = input.session;
|
|
@@ -167,7 +167,7 @@ var layer12 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
167
167
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
168
168
|
const tools = input.tools ?? {
|
|
169
169
|
definitions: [],
|
|
170
|
-
execute: () => new
|
|
170
|
+
execute: () => new Error4({ message: "Tools are not available for this request" })
|
|
171
171
|
};
|
|
172
172
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
173
173
|
const shaped = yield* shape({
|
|
@@ -258,23 +258,23 @@ var layer12 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
258
258
|
options: { ...http ? { http } : {}, ...webSocket ? { webSocket } : {} },
|
|
259
259
|
retry: (event) => hooks.trigger("session", "retry", event).pipe(Effect.asVoid),
|
|
260
260
|
executeTool: (call) => tools.execute({ ...call, definitions: hooked }).pipe(Effect.catchCauseFilter((cause) => {
|
|
261
|
-
const decline = cause.reasons.
|
|
261
|
+
const decline = cause.reasons.map((r) => Cause.isDieReason(r) ? r.defect : Cause.isFailReason(r) ? r.error.error : undefined).find((value) => value instanceof DeclinedError2 || value instanceof CancelledError2);
|
|
262
262
|
return decline ? Result.succeed(decline) : Result.fail(cause);
|
|
263
263
|
}, (decline) => Effect.fail(decline)))
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
267
|
-
return
|
|
267
|
+
return Service35.of({
|
|
268
268
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
269
269
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
270
270
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
271
271
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
272
272
|
});
|
|
273
273
|
}));
|
|
274
|
-
var
|
|
275
|
-
service:
|
|
276
|
-
layer:
|
|
277
|
-
deps: [
|
|
274
|
+
var node39 = makeLocationNode({
|
|
275
|
+
service: Service35,
|
|
276
|
+
layer: layer17,
|
|
277
|
+
deps: [node65, node40, node68]
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
280
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service35, layer17, node39, exports_model_request };
|