@opencode/core 0.0.0-dev-21651 → 0.0.0-dev-21661
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{persistent-pty-xx92f0z9.js → model-retry-09pgmfn5.js} +3 -3
- package/dist/chunks/{persistent-pty-jc99n3kj.js → model-retry-0eaaaj4x.js} +18 -18
- package/dist/chunks/{persistent-pty-2hep2db8.js → model-retry-0etvtzr7.js} +11 -11
- package/dist/chunks/{persistent-pty-dkq45v8d.js → model-retry-0gka690g.js} +6 -6
- package/dist/chunks/{persistent-pty-ypqy3h3f.js → model-retry-0qev6pn3.js} +13 -13
- package/dist/chunks/{persistent-pty-8xz0jfv3.js → model-retry-15b56cgm.js} +6 -6
- package/dist/chunks/{persistent-pty-tg1vr1qt.js → model-retry-160yv0cs.js} +8 -8
- package/dist/chunks/{persistent-pty-5kfkg5r8.js → model-retry-16z8xvrr.js} +5 -5
- package/dist/chunks/{persistent-pty-rmt6m6se.js → model-retry-18g90bpv.js} +5 -5
- package/dist/chunks/{persistent-pty-cn8x8bav.js → model-retry-1gde04cj.js} +9 -9
- package/dist/chunks/{persistent-pty-7yz8t82k.js → model-retry-1gv4f02v.js} +5 -5
- package/dist/chunks/{persistent-pty-zkvx2ye6.js → model-retry-1pd714jw.js} +18 -18
- package/dist/chunks/{persistent-pty-s2dg58v9.js → model-retry-1q6rtcwx.js} +11 -11
- package/dist/chunks/{persistent-pty-vxsjar9r.js → model-retry-1rpbm281.js} +7 -7
- package/dist/chunks/{persistent-pty-9e7skq3b.js → model-retry-1x14vdzp.js} +36 -36
- package/dist/chunks/{persistent-pty-1x2knyw4.js → model-retry-1x2knyw4.js} +1 -1
- package/dist/chunks/{persistent-pty-79fsmkt2.js → model-retry-20bsrc0x.js} +10 -10
- package/dist/chunks/{persistent-pty-vm0wcjea.js → model-retry-20nwq5j7.js} +9 -9
- package/dist/chunks/{persistent-pty-10jwkg0d.js → model-retry-2352cqpm.js} +13 -13
- package/dist/chunks/{persistent-pty-1ep2p91f.js → model-retry-27w5k9zf.js} +2 -2
- package/dist/chunks/{persistent-pty-rf77k6n7.js → model-retry-295s1tfa.js} +21 -21
- package/dist/chunks/{persistent-pty-p0tsr9h6.js → model-retry-2azy8kv6.js} +4 -4
- package/dist/chunks/{persistent-pty-msgnwe08.js → model-retry-2wmk5873.js} +4 -4
- package/dist/chunks/{persistent-pty-2z1j29yd.js → model-retry-2z1j29yd.js} +1 -1
- package/dist/chunks/{persistent-pty-799ckdtf.js → model-retry-32s59e8p.js} +9 -9
- package/dist/chunks/{persistent-pty-etps9a87.js → model-retry-33jrma66.js} +16 -16
- package/dist/chunks/{persistent-pty-ayjs7tqn.js → model-retry-3cbjf1nt.js} +2 -2
- package/dist/chunks/{persistent-pty-3hepkmqq.js → model-retry-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3nnrz6f6.js → model-retry-3nnrz6f6.js} +1 -1
- package/dist/chunks/{persistent-pty-m8qqb4k3.js → model-retry-3x6mzmtb.js} +29 -29
- package/dist/chunks/{persistent-pty-5enarcya.js → model-retry-40za9wsf.js} +6 -6
- package/dist/chunks/{persistent-pty-w7s37af3.js → model-retry-4efv169t.js} +4 -4
- package/dist/chunks/{persistent-pty-mqpc6sp9.js → model-retry-4eyfa5bt.js} +14 -14
- package/dist/chunks/{persistent-pty-0vawvjhj.js → model-retry-4fzjj0zw.js} +6 -6
- package/dist/chunks/{persistent-pty-vt63w9ze.js → model-retry-4j6ygzg0.js} +17 -17
- package/dist/chunks/{persistent-pty-qwe9t09h.js → model-retry-4kxrtmfk.js} +34 -34
- package/dist/chunks/{persistent-pty-b3dt0wfc.js → model-retry-4nh7jqqy.js} +78 -78
- package/dist/chunks/{persistent-pty-pb7j0m6g.js → model-retry-4p63kbz0.js} +19 -19
- package/dist/chunks/{persistent-pty-4v008n1t.js → model-retry-4v008n1t.js} +1 -1
- package/dist/chunks/{persistent-pty-4xvmh7wp.js → model-retry-4xvmh7wp.js} +3 -3
- package/dist/chunks/{persistent-pty-ep8g8f2q.js → model-retry-4z2d5fre.js} +17 -17
- package/dist/chunks/{persistent-pty-18qnwgya.js → model-retry-504h1h2p.js} +5 -5
- package/dist/chunks/{persistent-pty-hsn14kaz.js → model-retry-5bnhtwbz.js} +50 -50
- package/dist/chunks/{persistent-pty-26d30kmm.js → model-retry-5bwswyjb.js} +28 -28
- package/dist/chunks/{persistent-pty-5m9w47nd.js → model-retry-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-w2jp9fqe.js → model-retry-5ntvbkr3.js} +22 -22
- package/dist/chunks/{persistent-pty-jfjbts63.js → model-retry-5r72z9dp.js} +8 -8
- package/dist/chunks/{persistent-pty-cmtp12gq.js → model-retry-5r8en0fy.js} +7 -7
- package/dist/chunks/{persistent-pty-b25rcpjn.js → model-retry-5v7kgtbj.js} +5 -5
- package/dist/chunks/{persistent-pty-j975cw6z.js → model-retry-61wyp4gr.js} +4 -4
- package/dist/chunks/{persistent-pty-6esdw8yj.js → model-retry-6esdw8yj.js} +1 -1
- package/dist/chunks/{persistent-pty-14x9rdgq.js → model-retry-6fshephh.js} +21 -21
- package/dist/chunks/{persistent-pty-6pjqjmy2.js → model-retry-6pjqjmy2.js} +1 -1
- package/dist/chunks/{persistent-pty-4dzz3k2c.js → model-retry-6pk7avk3.js} +13 -13
- package/dist/chunks/{persistent-pty-nbtna00v.js → model-retry-6z7s29v1.js} +24 -24
- package/dist/chunks/{persistent-pty-76cb1hcw.js → model-retry-76cb1hcw.js} +1 -1
- package/dist/chunks/{persistent-pty-7bmhse3q.js → model-retry-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-f2m57aq3.js → model-retry-7cy37jqv.js} +7 -7
- package/dist/chunks/{persistent-pty-qkzpeykj.js → model-retry-7d4vabvg.js} +25 -25
- package/dist/chunks/{persistent-pty-jefvzq89.js → model-retry-7gq17r0e.js} +11 -11
- package/dist/chunks/{persistent-pty-4jq3hvv0.js → model-retry-7pg8rm12.js} +8 -8
- package/dist/chunks/{persistent-pty-4b0snw21.js → model-retry-7vrs0mxf.js} +14 -14
- package/dist/chunks/{persistent-pty-7w2ypzdf.js → model-retry-7w2ypzdf.js} +1 -1
- package/dist/chunks/{persistent-pty-qqef8819.js → model-retry-7xrq36hz.js} +34 -34
- package/dist/chunks/{persistent-pty-66hjg21n.js → model-retry-88wp77t0.js} +9 -9
- package/dist/chunks/{persistent-pty-tndygt87.js → model-retry-8gpczyd8.js} +7 -7
- package/dist/chunks/{persistent-pty-qjgzc4b4.js → model-retry-8jztxfpf.js} +4 -4
- package/dist/chunks/{persistent-pty-3kdbrncp.js → model-retry-8wc2fpae.js} +5 -5
- package/dist/chunks/{persistent-pty-8wtp7s3z.js → model-retry-8wtp7s3z.js} +1 -1
- package/dist/chunks/{persistent-pty-2f50b9jg.js → model-retry-8zmpysdb.js} +1 -1
- package/dist/chunks/{persistent-pty-91rj84md.js → model-retry-91rj84md.js} +1 -1
- package/dist/chunks/{persistent-pty-6g0s59t4.js → model-retry-945mzj2f.js} +14 -14
- package/dist/chunks/{persistent-pty-epts1v3z.js → model-retry-95x7pe01.js} +2 -2
- package/dist/chunks/{persistent-pty-k0c2abhw.js → model-retry-9abfe0c3.js} +12 -12
- package/dist/chunks/{persistent-pty-yte8j0g9.js → model-retry-9gzd5sdz.js} +11 -11
- package/dist/chunks/{persistent-pty-z5dq5ktq.js → model-retry-9wbkt707.js} +25 -25
- package/dist/chunks/{persistent-pty-3z6cn8x0.js → model-retry-a0ze7ap3.js} +13 -13
- package/dist/chunks/{persistent-pty-5r569r17.js → model-retry-a634j94t.js} +7 -7
- package/dist/chunks/{persistent-pty-kgeqanye.js → model-retry-a6zfrhwy.js} +15 -15
- package/dist/chunks/{persistent-pty-04qzb6ng.js → model-retry-a8rk6bya.js} +15 -15
- package/dist/chunks/{persistent-pty-0gxwnce6.js → model-retry-adfgt62e.js} +11 -11
- package/dist/chunks/{persistent-pty-034tev2y.js → model-retry-aj7mw0zk.js} +2 -2
- package/dist/chunks/{persistent-pty-evvj0048.js → model-retry-akeabbgf.js} +6 -6
- package/dist/chunks/{persistent-pty-xcawzme1.js → model-retry-antzfpbp.js} +20 -20
- package/dist/chunks/{persistent-pty-27zy431c.js → model-retry-aqtvbfp8.js} +4 -4
- package/dist/chunks/{persistent-pty-b0mv4wxm.js → model-retry-b0mv4wxm.js} +2 -2
- package/dist/chunks/{persistent-pty-b6vsg801.js → model-retry-b6vsg801.js} +2 -2
- package/dist/chunks/{persistent-pty-h1fcnfrv.js → model-retry-bdhbhy6a.js} +11 -11
- package/dist/chunks/{persistent-pty-k6e6yg7w.js → model-retry-bdv51ks6.js} +41 -41
- package/dist/chunks/{persistent-pty-wjfsv5vx.js → model-retry-bh48jfkc.js} +176 -176
- package/dist/chunks/{persistent-pty-ar2j3j0f.js → model-retry-bjhzkqyk.js} +4 -4
- package/dist/chunks/{persistent-pty-bstexjd6.js → model-retry-bstexjd6.js} +1 -1
- package/dist/chunks/{persistent-pty-sd1t0gyg.js → model-retry-btsa3r6q.js} +1 -1
- package/dist/chunks/{persistent-pty-c3cfh5w6.js → model-retry-c3cfh5w6.js} +2 -2
- package/dist/chunks/{persistent-pty-c4970w7t.js → model-retry-c4970w7t.js} +1 -1
- package/dist/chunks/{persistent-pty-s6p20e1k.js → model-retry-c5m2a8vb.js} +8 -8
- package/dist/chunks/{persistent-pty-kedzwwnr.js → model-retry-cfkc8wvf.js} +4 -4
- package/dist/chunks/{persistent-pty-v1smpbvx.js → model-retry-cfkzqjea.js} +20 -20
- package/dist/chunks/{persistent-pty-z6k1srac.js → model-retry-ckhajkac.js} +14 -14
- package/dist/chunks/{persistent-pty-7q3wyea1.js → model-retry-cmjj196d.js} +26 -26
- package/dist/chunks/{persistent-pty-csnq1vx8.js → model-retry-cvqzdst0.js} +4 -4
- package/dist/chunks/{persistent-pty-603avsaw.js → model-retry-d0h8t5hk.js} +8 -8
- package/dist/chunks/{persistent-pty-c9t2ty9q.js → model-retry-d2887f8n.js} +4 -4
- package/dist/chunks/{persistent-pty-d4v9tmah.js → model-retry-d4v9tmah.js} +2 -2
- package/dist/chunks/{persistent-pty-xcarn5dh.js → model-retry-daaznt2t.js} +4 -4
- package/dist/chunks/model-retry-das67r30.js +26 -0
- package/dist/chunks/{persistent-pty-pnb0v8tr.js → model-retry-dmhcp16a.js} +13 -13
- package/dist/chunks/{persistent-pty-998yhzzq.js → model-retry-dvj9ct8m.js} +3 -3
- package/dist/chunks/{persistent-pty-gtwwgaxd.js → model-retry-dw7m3xvw.js} +17 -17
- package/dist/chunks/{persistent-pty-6wm2ekws.js → model-retry-dw8101p3.js} +17 -17
- package/dist/chunks/{persistent-pty-b430ghfg.js → model-retry-dxtt3dn7.js} +43 -43
- package/dist/chunks/{persistent-pty-630bcr6j.js → model-retry-e3e7vv2j.js} +11 -11
- package/dist/chunks/{persistent-pty-5qd3pb7m.js → model-retry-e3qxr5gk.js} +2 -2
- package/dist/chunks/{persistent-pty-9p9xqj3m.js → model-retry-e5dqjz6v.js} +8 -8
- package/dist/chunks/{persistent-pty-e834z07m.js → model-retry-e834z07m.js} +1 -1
- package/dist/chunks/{persistent-pty-wqb48wsw.js → model-retry-ea0wswcg.js} +45 -45
- package/dist/chunks/{persistent-pty-mcbaxyan.js → model-retry-ecw9kts4.js} +12 -12
- package/dist/chunks/{persistent-pty-ef5x83kb.js → model-retry-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-fzppqy49.js → model-retry-ewms6j9b.js} +331 -331
- package/dist/chunks/{persistent-pty-53fkqhzs.js → model-retry-ezfrkc6y.js} +14 -14
- package/dist/chunks/{persistent-pty-gsnt20he.js → model-retry-f49gwp6r.js} +19 -19
- package/dist/chunks/model-retry-f8ma18fn.js +18 -0
- package/dist/chunks/{persistent-pty-fffv3p7h.js → model-retry-fffv3p7h.js} +1 -1
- package/dist/chunks/{persistent-pty-c3z1dwp4.js → model-retry-fhjm4z34.js} +30 -30
- package/dist/chunks/{persistent-pty-kjzbhe9f.js → model-retry-fmhdrg4y.js} +26 -26
- package/dist/chunks/{persistent-pty-gbkbh0za.js → model-retry-fn90fkvf.js} +30 -30
- package/dist/chunks/{persistent-pty-mgn9jeqr.js → model-retry-g02cgtqg.js} +73 -73
- package/dist/chunks/{persistent-pty-g5h9c0rr.js → model-retry-g5h9c0rr.js} +2 -2
- package/dist/chunks/{persistent-pty-dpy78jr7.js → model-retry-gddkg3ta.js} +19 -19
- package/dist/chunks/{persistent-pty-1h6ms3ts.js → model-retry-gg5ajwfv.js} +26 -26
- package/dist/chunks/{persistent-pty-vrpz8t5t.js → model-retry-ghrzdqqx.js} +5 -5
- package/dist/chunks/{persistent-pty-fvc4bqe2.js → model-retry-gj8x1tda.js} +5 -5
- package/dist/chunks/{persistent-pty-zntgk0c3.js → model-retry-gj9fd72a.js} +16 -16
- package/dist/chunks/{persistent-pty-epv93m9y.js → model-retry-gmwwyjpc.js} +13 -13
- package/dist/chunks/{persistent-pty-dpyjajp2.js → model-retry-gqy3s5ng.js} +19 -19
- package/dist/chunks/{persistent-pty-z600r55a.js → model-retry-grv9e0a8.js} +30 -30
- package/dist/chunks/{persistent-pty-97arjhc9.js → model-retry-h2v6w9fm.js} +21 -21
- package/dist/chunks/{persistent-pty-mr4m2xt3.js → model-retry-h6yftxtc.js} +18 -18
- package/dist/chunks/{persistent-pty-y4rx9zcm.js → model-retry-h86hs4jx.js} +20 -20
- package/dist/chunks/{persistent-pty-4ccqqpnm.js → model-retry-hd9p2qrn.js} +4 -4
- package/dist/chunks/{persistent-pty-64tk1142.js → model-retry-hfc726b7.js} +2 -2
- package/dist/chunks/{persistent-pty-avrfdzax.js → model-retry-hg04c070.js} +18 -18
- package/dist/chunks/{persistent-pty-5dzbshvg.js → model-retry-hjw91gt8.js} +4 -4
- package/dist/chunks/{persistent-pty-hffck5p6.js → model-retry-hk6b7xe4.js} +19 -19
- package/dist/chunks/{persistent-pty-437171mk.js → model-retry-hnrrf75a.js} +10 -10
- package/dist/chunks/{persistent-pty-j113cymg.js → model-retry-j113cymg.js} +1 -1
- package/dist/chunks/{persistent-pty-8zn70gxd.js → model-retry-j5644rm0.js} +8 -8
- package/dist/chunks/{persistent-pty-m3kqm4cm.js → model-retry-j8qp8vb7.js} +2 -2
- package/dist/chunks/{persistent-pty-c5mdmb7d.js → model-retry-jav3q4wh.js} +5 -5
- package/dist/chunks/{persistent-pty-j4mbz3fw.js → model-retry-jeyepegn.js} +10 -10
- package/dist/chunks/{persistent-pty-v568fy96.js → model-retry-jq4gkdch.js} +38 -38
- package/dist/chunks/{persistent-pty-ww71evjc.js → model-retry-jt5vb9t1.js} +20 -20
- package/dist/chunks/{persistent-pty-4pa8nav4.js → model-retry-jzh23w2y.js} +3 -3
- package/dist/chunks/{persistent-pty-d8qd4w10.js → model-retry-jzpxygg0.js} +8 -8
- package/dist/chunks/{persistent-pty-m9458166.js → model-retry-k2qg1sgb.js} +30 -30
- package/dist/chunks/{persistent-pty-wbrbrqnn.js → model-retry-k4pkx3h8.js} +3 -3
- package/dist/chunks/{persistent-pty-k814nvkf.js → model-retry-k814nvkf.js} +1 -1
- package/dist/chunks/{persistent-pty-s9ty2h8k.js → model-retry-kj1j79ct.js} +11 -11
- package/dist/chunks/{persistent-pty-z18nf20h.js → model-retry-kjgnzevm.js} +8 -8
- package/dist/chunks/{persistent-pty-4h1ntjay.js → model-retry-knncxtrw.js} +7 -7
- package/dist/chunks/{persistent-pty-br64vc86.js → model-retry-kr6h74hd.js} +4 -4
- package/dist/chunks/{persistent-pty-2xk6ct32.js → model-retry-kt8g20y3.js} +21 -21
- package/dist/chunks/{persistent-pty-2bky7t1z.js → model-retry-ktxkps69.js} +60 -60
- package/dist/chunks/{persistent-pty-44etcz8n.js → model-retry-m04867d5.js} +5 -5
- package/dist/chunks/{persistent-pty-m1714858.js → model-retry-m1714858.js} +1 -1
- package/dist/chunks/{persistent-pty-gd1vvcjv.js → model-retry-m2hnwcn8.js} +9 -9
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → model-retry-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-maspj1v3.js → model-retry-maspj1v3.js} +1 -1
- package/dist/chunks/{persistent-pty-57y9frfy.js → model-retry-mfvka9j5.js} +11 -11
- package/dist/chunks/{persistent-pty-1z6jjy5p.js → model-retry-mt3ysty9.js} +6 -6
- package/dist/chunks/{persistent-pty-g45kmxae.js → model-retry-mw1nm45k.js} +12 -12
- package/dist/chunks/{persistent-pty-n0p0277s.js → model-retry-n0p0277s.js} +1 -1
- package/dist/chunks/{persistent-pty-231a8wys.js → model-retry-n7wnam13.js} +8 -8
- package/dist/chunks/{persistent-pty-nah043kf.js → model-retry-nah043kf.js} +1 -1
- package/dist/chunks/{persistent-pty-n8ys9nef.js → model-retry-nekjk3x1.js} +25 -25
- package/dist/chunks/{persistent-pty-p015t6z3.js → model-retry-p015t6z3.js} +2 -2
- package/dist/chunks/{persistent-pty-yw5cr2kg.js → model-retry-p4gac2xv.js} +22 -22
- package/dist/chunks/{persistent-pty-p5fvs1tf.js → model-retry-p4nbw5fh.js} +28 -28
- package/dist/chunks/{persistent-pty-dh62xe4r.js → model-retry-pc1v25hk.js} +3 -3
- package/dist/chunks/{persistent-pty-4v888qby.js → model-retry-pdw6wz0h.js} +3 -3
- package/dist/chunks/{persistent-pty-8rcbafry.js → model-retry-pfyk31y2.js} +5 -5
- package/dist/chunks/{persistent-pty-wjj9j73p.js → model-retry-pgeypdwc.js} +29 -29
- package/dist/chunks/{persistent-pty-pknna89w.js → model-retry-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-wgxpxc97.js → model-retry-pppg3y1y.js} +43 -43
- package/dist/chunks/{persistent-pty-zgfrp2wc.js → model-retry-pqrp5r8r.js} +21 -21
- package/dist/chunks/{persistent-pty-ncjgtf7q.js → model-retry-q8skw5t4.js} +11 -11
- package/dist/chunks/{persistent-pty-ap300940.js → model-retry-qbat39qr.js} +1 -1
- package/dist/chunks/{persistent-pty-a4extrcm.js → model-retry-qe6vkhvx.js} +11 -11
- package/dist/chunks/{persistent-pty-qq9errcn.js → model-retry-qgmn31h3.js} +32 -32
- package/dist/chunks/{persistent-pty-1689f439.js → model-retry-qjqtgprh.js} +5 -5
- package/dist/chunks/model-retry-qrbjjv6t.js +257 -0
- package/dist/chunks/{persistent-pty-mb72d0pe.js → model-retry-qvw98tg0.js} +5 -5
- package/dist/chunks/{persistent-pty-amwp0aeg.js → model-retry-qxbnebsm.js} +42 -42
- package/dist/chunks/{persistent-pty-3837d0nm.js → model-retry-qy1wtshc.js} +6 -6
- package/dist/chunks/{persistent-pty-z5ya83ez.js → model-retry-qyjpv9b5.js} +11 -11
- package/dist/chunks/{persistent-pty-r0yr0wbs.js → model-retry-r0yr0wbs.js} +1 -1
- package/dist/chunks/{persistent-pty-qyt594kh.js → model-retry-r3hh8w6n.js} +21 -21
- package/dist/chunks/{persistent-pty-qycnq4qn.js → model-retry-r8a6rr1y.js} +17 -17
- package/dist/chunks/{persistent-pty-rb9dy4dg.js → model-retry-rb9dy4dg.js} +1 -1
- package/dist/chunks/{persistent-pty-0a4e2wep.js → model-retry-rf0axqhe.js} +20 -20
- package/dist/chunks/{persistent-pty-5vgcj10y.js → model-retry-rfqv2m6w.js} +3 -3
- package/dist/chunks/{persistent-pty-rt5dr6hb.js → model-retry-rt5dr6hb.js} +1 -1
- package/dist/chunks/{persistent-pty-xz8jn1n5.js → model-retry-rxcn9dmj.js} +42 -42
- package/dist/chunks/{persistent-pty-a4316p25.js → model-retry-s3aa97yb.js} +26 -26
- package/dist/chunks/{persistent-pty-hqqyr421.js → model-retry-s6zqqgcc.js} +25 -25
- package/dist/chunks/{persistent-pty-a9ya4442.js → model-retry-s71ympam.js} +29 -29
- package/dist/chunks/{persistent-pty-d2dx6a7h.js → model-retry-s7kyse9r.js} +9 -9
- package/dist/chunks/{persistent-pty-b0wr9pq4.js → model-retry-s7pe5jpp.js} +14 -14
- package/dist/chunks/{persistent-pty-a4ab7jhs.js → model-retry-sd3cteb1.js} +3 -3
- package/dist/chunks/{persistent-pty-2aabkt2r.js → model-retry-sdxydkh6.js} +11 -11
- package/dist/chunks/{persistent-pty-3k9f0r09.js → model-retry-sgsbvhae.js} +19 -19
- package/dist/chunks/{persistent-pty-xzhmj86d.js → model-retry-sjxh0ebt.js} +4 -4
- package/dist/chunks/{persistent-pty-2m6p7yk7.js → model-retry-sm6vx8r5.js} +16 -16
- package/dist/chunks/{persistent-pty-sqjzf8x2.js → model-retry-sqjzf8x2.js} +1 -1
- package/dist/chunks/{persistent-pty-3b8pv6kk.js → model-retry-t00mk0ke.js} +24 -24
- package/dist/chunks/{persistent-pty-kqnnmbvx.js → model-retry-t3mtxhe8.js} +32 -32
- package/dist/chunks/{persistent-pty-8y3ed661.js → model-retry-tbbj6rhj.js} +9 -9
- package/dist/chunks/{persistent-pty-mgqesnpe.js → model-retry-tc3wr7kw.js} +8 -8
- package/dist/chunks/{persistent-pty-tczq8hjw.js → model-retry-tczq8hjw.js} +1 -1
- package/dist/chunks/{persistent-pty-c97kafxv.js → model-retry-tfkjdz6t.js} +12 -12
- package/dist/chunks/{persistent-pty-ssg99487.js → model-retry-thtmsm01.js} +35 -35
- package/dist/chunks/{persistent-pty-rth52m3v.js → model-retry-tjcpgb0t.js} +11 -11
- package/dist/chunks/{persistent-pty-kzatpa33.js → model-retry-tsemnbjg.js} +32 -32
- package/dist/chunks/{persistent-pty-tw8zr1ps.js → model-retry-tw8zr1ps.js} +1 -1
- package/dist/chunks/{persistent-pty-twv2r8f4.js → model-retry-twv2r8f4.js} +2 -2
- package/dist/chunks/{persistent-pty-n8km3ktm.js → model-retry-tx653dhe.js} +21 -21
- package/dist/chunks/{persistent-pty-tmd1r8tg.js → model-retry-tx91wa5k.js} +4 -4
- package/dist/chunks/{persistent-pty-7vhe8rph.js → model-retry-txfdt2b0.js} +15 -15
- package/dist/chunks/{persistent-pty-jrqenxex.js → model-retry-v1y7x4cv.js} +14 -14
- package/dist/chunks/{persistent-pty-v2r1d0zg.js → model-retry-v2r1d0zg.js} +1 -1
- package/dist/chunks/{persistent-pty-5s24fm1p.js → model-retry-v7edqz63.js} +12 -12
- package/dist/chunks/{persistent-pty-5zrxpy3q.js → model-retry-v9ez2kgh.js} +5 -5
- package/dist/chunks/{persistent-pty-65xym8dq.js → model-retry-vck6kdh7.js} +26 -26
- package/dist/chunks/{persistent-pty-vd3b3yk9.js → model-retry-vd3b3yk9.js} +1 -1
- package/dist/chunks/{persistent-pty-veqvce7d.js → model-retry-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-m37sd98t.js → model-retry-vmfhgzt5.js} +4 -4
- package/dist/chunks/{persistent-pty-nf6qtgmx.js → model-retry-vrq9j7rb.js} +15 -15
- package/dist/chunks/{persistent-pty-3pjdfsqh.js → model-retry-vryb9jrf.js} +8 -8
- package/dist/chunks/{persistent-pty-ws8qaw4q.js → model-retry-vsdtm3y6.js} +21 -21
- package/dist/chunks/{persistent-pty-ak32zwvb.js → model-retry-w1zjn144.js} +11 -11
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → model-retry-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-h4ja5x6t.js → model-retry-w445jyrw.js} +8 -8
- package/dist/chunks/{persistent-pty-fznmdakp.js → model-retry-w687dnns.js} +4 -4
- package/dist/chunks/{persistent-pty-c0ahb6m2.js → model-retry-w7cnq13e.js} +42 -42
- package/dist/chunks/{persistent-pty-xmb6acqt.js → model-retry-w830et9m.js} +11 -11
- package/dist/chunks/{persistent-pty-w9w8mt4n.js → model-retry-w9w8mt4n.js} +1 -1
- package/dist/chunks/{persistent-pty-0r8hms5j.js → model-retry-waexrkk0.js} +15 -15
- package/dist/chunks/{persistent-pty-wakvkjy4.js → model-retry-wakvkjy4.js} +1 -1
- package/dist/chunks/{persistent-pty-wd87259q.js → model-retry-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-9mw7dhxy.js → model-retry-wecx54fa.js} +51 -51
- package/dist/chunks/{persistent-pty-2dwppexq.js → model-retry-wh6kfv27.js} +43 -43
- package/dist/chunks/{persistent-pty-9k8g54ar.js → model-retry-wjkdsmbm.js} +12 -12
- package/dist/chunks/{persistent-pty-77ffb5fa.js → model-retry-wkgj5k69.js} +5 -5
- package/dist/chunks/{persistent-pty-nvk1va1n.js → model-retry-wmtep305.js} +28 -28
- package/dist/chunks/{persistent-pty-ptp6ncr1.js → model-retry-wnr6a5h7.js} +15 -15
- package/dist/chunks/{persistent-pty-9nc01p2h.js → model-retry-x2s7p62g.js} +7 -7
- package/dist/chunks/{persistent-pty-q7hewr9v.js → model-retry-xby873vx.js} +19 -19
- package/dist/chunks/{persistent-pty-3y9jhrfk.js → model-retry-xe04d561.js} +15 -15
- package/dist/chunks/{persistent-pty-jmz0pryv.js → model-retry-xegc1gxr.js} +15 -15
- package/dist/chunks/{persistent-pty-jcq455ft.js → model-retry-xn0dkv9k.js} +10 -10
- package/dist/chunks/{persistent-pty-1ncazf2z.js → model-retry-xp3wxx2t.js} +19 -19
- package/dist/chunks/{persistent-pty-zx0t21mj.js → model-retry-xv9gw8q2.js} +8 -8
- package/dist/chunks/{persistent-pty-n9qkr232.js → model-retry-xvee63d2.js} +9 -9
- package/dist/chunks/{persistent-pty-2ex3p3f1.js → model-retry-y1249fzv.js} +12 -12
- package/dist/chunks/{persistent-pty-p8zvtb4f.js → model-retry-y3xtvwd4.js} +16 -16
- package/dist/chunks/{persistent-pty-yb20nhc3.js → model-retry-yb20nhc3.js} +1 -1
- package/dist/chunks/{persistent-pty-7xcfq1ha.js → model-retry-yfyqcpqq.js} +6 -6
- package/dist/chunks/{persistent-pty-knck272c.js → model-retry-ygy08vjq.js} +25 -25
- package/dist/chunks/{persistent-pty-1xxray5a.js → model-retry-yq1gzmdm.js} +19 -19
- package/dist/chunks/{persistent-pty-96jdb81n.js → model-retry-yr0q3nx1.js} +6 -6
- package/dist/chunks/{persistent-pty-xqtsmx9f.js → model-retry-ytzfdnxp.js} +11 -11
- package/dist/chunks/{persistent-pty-506rfma8.js → model-retry-yy9yh1zy.js} +13 -13
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → model-retry-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-8tqac9jx.js → model-retry-z0t0wh6t.js} +6 -6
- package/dist/chunks/{persistent-pty-4nnbnrz1.js → model-retry-z16rqh1h.js} +11 -11
- package/dist/chunks/{persistent-pty-d622t3vc.js → model-retry-z26cgg3v.js} +20 -20
- package/dist/chunks/{persistent-pty-z38nccrw.js → model-retry-z38nccrw.js} +1 -1
- package/dist/chunks/{persistent-pty-4s573z1s.js → model-retry-z4svz70a.js} +4 -4
- package/dist/chunks/{persistent-pty-acqhz89c.js → model-retry-zjy8xeq5.js} +33 -33
- package/dist/chunks/{persistent-pty-zkg84ctx.js → model-retry-zkg84ctx.js} +1 -1
- package/dist/chunks/{persistent-pty-h9gq6eq0.js → model-retry-zp9devnn.js} +2 -2
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +87 -87
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +102 -102
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +1 -1
- package/dist/instance.js +356 -356
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +153 -153
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +123 -123
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +87 -87
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +1 -1
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +7 -7
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +109 -109
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +113 -113
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-d77dj7jw.js +0 -18
- package/dist/chunks/persistent-pty-ddefqdxn.js +0 -257
- package/dist/chunks/persistent-pty-dj18ndtz.js +0 -26
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → model-retry-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → model-retry-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → model-retry-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → model-retry-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → model-retry-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → model-retry-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2bv980vf.js → model-retry-2bv980vf.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → model-retry-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → model-retry-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → model-retry-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → model-retry-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → model-retry-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → model-retry-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → model-retry-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → model-retry-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → model-retry-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → model-retry-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → model-retry-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5fjb7ams.js → model-retry-5fjb7ams.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → model-retry-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → model-retry-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → model-retry-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → model-retry-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → model-retry-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → model-retry-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → model-retry-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → model-retry-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → model-retry-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → model-retry-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → model-retry-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a058387c.js → model-retry-a058387c.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → model-retry-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → model-retry-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → model-retry-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → model-retry-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → model-retry-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → model-retry-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → model-retry-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → model-retry-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → model-retry-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → model-retry-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → model-retry-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → model-retry-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → model-retry-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → model-retry-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → model-retry-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → model-retry-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → model-retry-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → model-retry-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → model-retry-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → model-retry-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → model-retry-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → model-retry-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → model-retry-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → model-retry-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → model-retry-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → model-retry-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → model-retry-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → model-retry-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hcxmzztb.js → model-retry-hcxmzztb.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → model-retry-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → model-retry-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → model-retry-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → model-retry-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → model-retry-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → model-retry-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jze0r7bz.js → model-retry-jze0r7bz.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → model-retry-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-m18g726c.js → model-retry-m18g726c.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → model-retry-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → model-retry-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → model-retry-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → model-retry-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → model-retry-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-pkyv6v7h.js → model-retry-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → model-retry-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → model-retry-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → model-retry-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → model-retry-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → model-retry-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → model-retry-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → model-retry-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → model-retry-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → model-retry-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → model-retry-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ve7vex1e.js → model-retry-ve7vex1e.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → model-retry-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → model-retry-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → model-retry-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wjj7prxr.js → model-retry-wjj7prxr.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → model-retry-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → model-retry-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → model-retry-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → model-retry-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → model-retry-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → model-retry-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → model-retry-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → model-retry-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → model-retry-z9919s4g.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-retry-0etvtzr7.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-retry-hd9p2qrn.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID16,
|
|
9
|
+
Event19,
|
|
10
|
+
Service81
|
|
11
|
+
} from "./model-retry-fn90fkvf.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./model-retry-bjhzkqyk.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID14,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-retry-k2qg1sgb.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./model-retry-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID13,
|
|
24
|
+
Service78
|
|
25
|
+
} from "./model-retry-pgeypdwc.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID12
|
|
28
|
+
} from "./model-retry-s71ympam.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./model-retry-akeabbgf.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/azure.ts
|
|
34
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -70,11 +70,11 @@ function make6(endpoints = {
|
|
|
70
70
|
return define({
|
|
71
71
|
id: "opencode.provider.azure",
|
|
72
72
|
effect: Effect.fn(function* (ctx) {
|
|
73
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
74
74
|
const processes = yield* AppProcess.Service;
|
|
75
75
|
const bus = yield* Service85;
|
|
76
|
-
const credentials = yield*
|
|
77
|
-
const providers = yield*
|
|
76
|
+
const credentials = yield* Service81;
|
|
77
|
+
const providers = yield* Service78;
|
|
78
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
79
79
|
const tokens = new Map;
|
|
80
80
|
const resourceIDs = new Map;
|
|
@@ -100,11 +100,11 @@ function make6(endpoints = {
|
|
|
100
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
101
101
|
yield* ctx.integration.transform((editor) => {
|
|
102
102
|
editor.method.update({
|
|
103
|
-
integrationID:
|
|
103
|
+
integrationID: ID13.azure,
|
|
104
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
105
105
|
});
|
|
106
106
|
editor.method.update({
|
|
107
|
-
integrationID:
|
|
107
|
+
integrationID: ID13.azure,
|
|
108
108
|
method: {
|
|
109
109
|
type: "key",
|
|
110
110
|
label: "API key",
|
|
@@ -122,7 +122,7 @@ function make6(endpoints = {
|
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "external",
|
|
@@ -142,8 +142,8 @@ function make6(endpoints = {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
145
|
-
const connection = yield* ctx.integration.connection.active(
|
|
146
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID16.make(connection.id)) : undefined;
|
|
147
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
148
148
|
});
|
|
149
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -182,7 +182,7 @@ function make6(endpoints = {
|
|
|
182
182
|
}));
|
|
183
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
184
184
|
const connection = loaded.connection;
|
|
185
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
186
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
187
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
188
188
|
if (loaded.connection !== connection)
|
|
@@ -204,11 +204,11 @@ function make6(endpoints = {
|
|
|
204
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
205
205
|
if (!found)
|
|
206
206
|
return;
|
|
207
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
208
208
|
return;
|
|
209
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
210
210
|
return;
|
|
211
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
212
212
|
id.toLowerCase(),
|
|
213
213
|
id
|
|
214
214
|
]));
|
|
@@ -221,11 +221,11 @@ function make6(endpoints = {
|
|
|
221
221
|
yield* ctx.model.reload();
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
224
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
225
225
|
Object.assign(loaded, yield* load());
|
|
226
226
|
yield* ctx.provider.transform((evt) => {
|
|
227
227
|
for (const item of evt.list()) {
|
|
228
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
229
229
|
continue;
|
|
230
230
|
const resourceName = resourceFor(item.provider);
|
|
231
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -240,7 +240,7 @@ function make6(endpoints = {
|
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID13.azure);
|
|
244
244
|
if (!item)
|
|
245
245
|
return;
|
|
246
246
|
evt.add({
|
|
@@ -251,7 +251,7 @@ function make6(endpoints = {
|
|
|
251
251
|
});
|
|
252
252
|
yield* ctx.model.transform((models) => {
|
|
253
253
|
for (const item of models.provider.list()) {
|
|
254
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
255
255
|
continue;
|
|
256
256
|
const resourceName = resourceFor(item.provider);
|
|
257
257
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -263,20 +263,20 @@ function make6(endpoints = {
|
|
|
263
263
|
}
|
|
264
264
|
if (!loaded.deployments)
|
|
265
265
|
return;
|
|
266
|
-
const catalog = models.list(
|
|
266
|
+
const catalog = models.list(ID13.azure);
|
|
267
267
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
268
268
|
for (const model of catalog) {
|
|
269
269
|
if (!deployed.has(model.id))
|
|
270
|
-
models.remove(
|
|
270
|
+
models.remove(ID13.azure, model.id);
|
|
271
271
|
}
|
|
272
272
|
for (const [id, model] of deployed) {
|
|
273
|
-
models.update(
|
|
273
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
yield* bus.subscribe(
|
|
276
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
277
277
|
yield* refresh().pipe(Effect.forkScoped);
|
|
278
278
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
279
|
-
const connection = yield* ctx.integration.connection.active(
|
|
279
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
280
280
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
281
281
|
return;
|
|
282
282
|
})) : undefined;
|
|
@@ -288,7 +288,7 @@ function make6(endpoints = {
|
|
|
288
288
|
return `Bearer ${current.access}`;
|
|
289
289
|
});
|
|
290
290
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID13.azure)
|
|
292
292
|
return;
|
|
293
293
|
const authorization = yield* bearer(evt.request.url);
|
|
294
294
|
if (!authorization)
|
|
@@ -297,9 +297,9 @@ function make6(endpoints = {
|
|
|
297
297
|
evt.request.headers.delete("x-api-key");
|
|
298
298
|
evt.request.headers.set("authorization", authorization);
|
|
299
299
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
300
|
-
}), { providerID:
|
|
300
|
+
}), { providerID: ID13.azure });
|
|
301
301
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
302
|
-
if (evt.model.providerID !==
|
|
302
|
+
if (evt.model.providerID !== ID13.azure)
|
|
303
303
|
return;
|
|
304
304
|
const authorization = yield* bearer(evt.url);
|
|
305
305
|
if (!authorization)
|
|
@@ -308,7 +308,7 @@ function make6(endpoints = {
|
|
|
308
308
|
delete evt.headers["x-api-key"];
|
|
309
309
|
evt.headers.authorization = authorization;
|
|
310
310
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
311
|
-
}), { providerID:
|
|
311
|
+
}), { providerID: ID13.azure });
|
|
312
312
|
})
|
|
313
313
|
});
|
|
314
314
|
}
|
|
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
|
|
|
342
342
|
const model = catalogModel(models, deployment);
|
|
343
343
|
if (!model)
|
|
344
344
|
return [];
|
|
345
|
-
const id =
|
|
345
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
346
346
|
const info = {
|
|
347
347
|
...structuredClone(model),
|
|
348
348
|
id,
|
|
349
|
-
modelID:
|
|
349
|
+
modelID: ID12.make(deployment.name),
|
|
350
350
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
351
351
|
};
|
|
352
352
|
return [[id, info]];
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service80
|
|
3
|
+
} from "./model-retry-s6zqqgcc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service55
|
|
6
|
+
} from "./model-retry-wecx54fa.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID9,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service64
|
|
14
|
+
} from "./model-retry-7d4vabvg.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch2 = {};
|
|
21
21
|
__export(exports_websearch2, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input9,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin43,
|
|
25
25
|
WebSearchTool: () => exports_websearch2,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description4,
|
|
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([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description4 = `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: ID9,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin43 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service55;
|
|
53
|
+
const forms = yield* Service80;
|
|
54
|
+
const websearch = yield* Service64;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name9,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description4,
|
|
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, description4, Input9, Plugin43, exports_websearch2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-retry-hd9p2qrn.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event18,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID15,
|
|
20
|
+
Info: () => Info25,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError11,
|
|
24
|
+
Reply: () => Reply3,
|
|
25
|
+
Service: () => Service80,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
28
|
layer: () => layer27,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node84,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event18 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID15 = Form.ID;
|
|
39
|
+
var Info25 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID15
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError8 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID15
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID15
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID15,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service80 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer27 = Layer.effect(
|
|
84
|
+
var layer27 = Layer.effect(Service80, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service85;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError11({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID15.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer27 = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service80.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node84 = makeLocationNode({ service: Service80, layer: layer27, deps: [node89] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID15, Info25, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError11, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service80, layer27, node84, validateAnswer2, validateFields2, exports_form, Event18 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./model-retry-hd9p2qrn.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./model-retry-vd3b3yk9.js";
|
|
9
9
|
import {
|
|
10
10
|
Service82,
|
|
11
11
|
node86
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-retry-95x7pe01.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID13,
|
|
16
16
|
modelSettings2,
|
|
17
17
|
mergeOverlay2,
|
|
18
18
|
mergeHeaders2,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
19
|
+
Service78,
|
|
20
|
+
node82,
|
|
21
|
+
Event16
|
|
22
|
+
} from "./model-retry-pgeypdwc.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/model.ts
|
|
28
28
|
var exports_model2 = {};
|
|
@@ -30,18 +30,18 @@ __export(exports_model2, {
|
|
|
30
30
|
Capabilities: () => Capabilities2,
|
|
31
31
|
Compatibility: () => Compatibility2,
|
|
32
32
|
Cost: () => Cost2,
|
|
33
|
-
Event: () =>
|
|
33
|
+
Event: () => Event15,
|
|
34
34
|
Family: () => Family2,
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
35
|
+
ID: () => ID12,
|
|
36
|
+
Info: () => Info21,
|
|
37
37
|
Model: () => exports_model2,
|
|
38
38
|
ReasoningField: () => ReasoningField2,
|
|
39
39
|
Ref: () => Ref2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service76,
|
|
41
41
|
VariantID: () => VariantID2,
|
|
42
42
|
compatibility: () => compatibility2,
|
|
43
43
|
mergeCapabilities: () => mergeCapabilities2,
|
|
44
|
-
node: () =>
|
|
44
|
+
node: () => node80,
|
|
45
45
|
parse: () => parse5,
|
|
46
46
|
supportsText: () => supportsText2
|
|
47
47
|
});
|
|
@@ -49,8 +49,8 @@ import { Model } from "@opencode/schema/model";
|
|
|
49
49
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
50
50
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
51
51
|
import { freeze } from "immer";
|
|
52
|
-
import { Event as
|
|
53
|
-
var
|
|
52
|
+
import { Event as Event15 } from "@opencode/schema/model";
|
|
53
|
+
var ID12 = Model.ID;
|
|
54
54
|
var VariantID2 = Model.VariantID;
|
|
55
55
|
var Family2 = Model.Family;
|
|
56
56
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -67,12 +67,12 @@ var mergeCapabilities2 = (config, base) => {
|
|
|
67
67
|
};
|
|
68
68
|
var Cost2 = Model.Cost;
|
|
69
69
|
var Ref2 = Model.Ref;
|
|
70
|
-
var
|
|
70
|
+
var Info21 = Model.Info;
|
|
71
71
|
|
|
72
|
-
class
|
|
72
|
+
class Service76 extends Context.Service()("@opencode/Model") {
|
|
73
73
|
}
|
|
74
|
-
var layer = Layer.effect(
|
|
75
|
-
const providers = yield*
|
|
74
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
75
|
+
const providers = yield* Service78;
|
|
76
76
|
const bus = yield* Service85;
|
|
77
77
|
const location = yield* Service82;
|
|
78
78
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
@@ -120,7 +120,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
120
120
|
const models = writable(providerID);
|
|
121
121
|
if (!models)
|
|
122
122
|
return;
|
|
123
|
-
const model = draft(providerID, modelID) ??
|
|
123
|
+
const model = draft(providerID, modelID) ?? Info21.default(providerID, modelID);
|
|
124
124
|
update(model);
|
|
125
125
|
model.id = modelID;
|
|
126
126
|
model.providerID = providerID;
|
|
@@ -189,7 +189,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
189
189
|
];
|
|
190
190
|
}));
|
|
191
191
|
if (disableFree)
|
|
192
|
-
for (const providerID of [
|
|
192
|
+
for (const providerID of [ID13.opencode, ID13.make("opencode-go")])
|
|
193
193
|
byProvider.get(providerID)?.forEach((model, id, models) => {
|
|
194
194
|
if (!model.cost.some((cost) => cost.input > 0))
|
|
195
195
|
models.delete(id);
|
|
@@ -216,8 +216,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
216
216
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
|
-
yield* bus.subscribe(
|
|
220
|
-
return
|
|
219
|
+
yield* bus.subscribe(Event16.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
220
|
+
return Service76.of({
|
|
221
221
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
222
222
|
reload,
|
|
223
223
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -236,7 +236,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
236
236
|
})
|
|
237
237
|
});
|
|
238
238
|
}));
|
|
239
|
-
var
|
|
239
|
+
var node80 = makeLocationNode({ service: Service76, layer, deps: [node82, node89, node86] });
|
|
240
240
|
var PREFERRED_FREE = [
|
|
241
241
|
"big-pickle",
|
|
242
242
|
"deepseek-v4.1-flash-free",
|
|
@@ -244,7 +244,7 @@ var PREFERRED_FREE = [
|
|
|
244
244
|
"muse-spark-1.3-contributor-free"
|
|
245
245
|
];
|
|
246
246
|
function preferFree(models) {
|
|
247
|
-
const freeOnly = models.every((model) => model.providerID ===
|
|
247
|
+
const freeOnly = models.every((model) => model.providerID === ID13.opencode && !model.cost.some((cost) => cost.input > 0));
|
|
248
248
|
if (!freeOnly)
|
|
249
249
|
return models;
|
|
250
250
|
const picks = PREFERRED_FREE.flatMap((id) => models.find((model) => model.id === id) ?? []);
|
|
@@ -263,9 +263,9 @@ function compatibility2(input) {
|
|
|
263
263
|
function parse5(input) {
|
|
264
264
|
const index = input.indexOf("/");
|
|
265
265
|
return {
|
|
266
|
-
providerID:
|
|
267
|
-
modelID:
|
|
266
|
+
providerID: ID13.make(index === -1 ? input : input.slice(0, index)),
|
|
267
|
+
modelID: ID12.make(index === -1 ? "" : input.slice(index + 1))
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export {
|
|
271
|
+
export { ID12, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, mergeCapabilities2, Cost2, Ref2, Info21, Service76, node80, supportsText2, compatibility2, parse5, exports_model2, Event15 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-retry-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
|
-
var
|
|
7
|
-
__export(
|
|
6
|
+
var exports_permission2 = {};
|
|
7
|
+
__export(exports_permission2, {
|
|
8
8
|
Action: () => Action2,
|
|
9
|
-
ConfigPermissionV1: () =>
|
|
9
|
+
ConfigPermissionV1: () => exports_permission2,
|
|
10
10
|
Entries: () => Entries2,
|
|
11
|
-
Info: () =>
|
|
11
|
+
Info: () => Info18,
|
|
12
12
|
Object: () => Object2,
|
|
13
|
-
Rule: () =>
|
|
13
|
+
Rule: () => Rule3
|
|
14
14
|
});
|
|
15
15
|
import { Schema, SchemaGetter } from "effect";
|
|
16
16
|
var Action2 = Schema.Literals(["ask", "allow", "deny"]).annotate({ identifier: "PermissionActionConfig" });
|
|
@@ -19,13 +19,13 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
|
|
|
19
19
|
encode: SchemaGetter.transform((entries) => globalThis.Object.fromEntries(entries))
|
|
20
20
|
}));
|
|
21
21
|
var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
22
|
-
var
|
|
22
|
+
var Rule3 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
23
23
|
var actionOnly = new Set(["question", "websearch", "doom_loop"]);
|
|
24
|
-
var
|
|
24
|
+
var Info18 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule3), {
|
|
25
25
|
decode: SchemaGetter.transform((input) => typeof input === "string" ? { "*": input } : input),
|
|
26
26
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
27
27
|
})).check(Schema.makeFilter((rules) => rules.every(([key, rule]) => !actionOnly.has(key) || typeof rule === "string"), {
|
|
28
28
|
expected: "question, websearch, and doom_loop to be ask, allow, or deny"
|
|
29
29
|
})).annotate({ identifier: "PermissionConfig" });
|
|
30
30
|
|
|
31
|
-
export { Action2, Entries2, Object2,
|
|
31
|
+
export { Action2, Entries2, Object2, Rule3, Info18, exports_permission2 };
|