@opencode/core 0.0.0-dev-158 → 0.0.0-dev-160
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 +87 -87
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +7 -7
- package/dist/bus.js +75 -75
- package/dist/chunks/{formatter-034tev2y.js → location-lifecycle-034tev2y.js} +2 -2
- package/dist/chunks/{formatter-xvmzfnq9.js → location-lifecycle-03nv407c.js} +9 -9
- package/dist/chunks/{formatter-te7zt5ht.js → location-lifecycle-03rtwy5v.js} +16 -16
- package/dist/chunks/{formatter-7m2ptj4e.js → location-lifecycle-04rjkzd7.js} +17 -17
- package/dist/chunks/{formatter-gy6xyr2j.js → location-lifecycle-075r9t8q.js} +22 -22
- package/dist/chunks/{formatter-hy59nt95.js → location-lifecycle-091d9zsc.js} +6 -6
- package/dist/chunks/{formatter-p8047wat.js → location-lifecycle-09pat09w.js} +3 -3
- package/dist/chunks/{formatter-hkv4p8qn.js → location-lifecycle-0j0jn8fg.js} +21 -21
- package/dist/chunks/{formatter-g1mxmsmn.js → location-lifecycle-0nvft8cc.js} +9 -9
- package/dist/chunks/{formatter-qxdpy5f9.js → location-lifecycle-0qe6fjn0.js} +4 -4
- package/dist/chunks/{formatter-yb49ndda.js → location-lifecycle-0scs4w2b.js} +8 -8
- package/dist/chunks/{formatter-wyenqtwf.js → location-lifecycle-0z86q9cp.js} +4 -4
- package/dist/chunks/{formatter-njz5cw42.js → location-lifecycle-11cgb2ma.js} +2 -2
- package/dist/chunks/{formatter-cgn6nf8q.js → location-lifecycle-11y9pd7t.js} +2 -2
- package/dist/chunks/{formatter-n7bnkb3p.js → location-lifecycle-18g90bpv.js} +9 -9
- package/dist/chunks/{formatter-dm6ksgvz.js → location-lifecycle-1aqwasmh.js} +6 -6
- package/dist/chunks/{formatter-1ep2p91f.js → location-lifecycle-1ep2p91f.js} +2 -2
- package/dist/chunks/{formatter-m0kgc17n.js → location-lifecycle-1j8wp56m.js} +4 -4
- package/dist/chunks/{formatter-1x2knyw4.js → location-lifecycle-1x2knyw4.js} +1 -1
- package/dist/chunks/{formatter-p7vhpwh8.js → location-lifecycle-1yq9hg58.js} +5 -5
- package/dist/chunks/{formatter-204s3925.js → location-lifecycle-204s3925.js} +1 -1
- package/dist/chunks/{formatter-gzq9abr2.js → location-lifecycle-2e7734n6.js} +38 -38
- package/dist/chunks/{formatter-0ah4y9r0.js → location-lifecycle-2jy5vxan.js} +6 -6
- package/dist/chunks/{formatter-56xn1hkj.js → location-lifecycle-2krynjv7.js} +28 -28
- package/dist/chunks/{formatter-r1gtje4t.js → location-lifecycle-2txjm16z.js} +37 -37
- package/dist/chunks/{formatter-grfya7tj.js → location-lifecycle-2x4xsfey.js} +13 -13
- package/dist/chunks/{formatter-fghrgnwr.js → location-lifecycle-31dwp2qr.js} +12 -12
- package/dist/chunks/{formatter-txvbkf9b.js → location-lifecycle-333xe2d2.js} +43 -43
- package/dist/chunks/{formatter-5vtsbcft.js → location-lifecycle-34tge73z.js} +8 -8
- package/dist/chunks/{formatter-dr3tmh6a.js → location-lifecycle-34xkn1cm.js} +12 -12
- package/dist/chunks/{formatter-1gnb2fcg.js → location-lifecycle-3er90sdq.js} +23 -23
- package/dist/chunks/{formatter-3hepkmqq.js → location-lifecycle-3hepkmqq.js} +1 -1
- package/dist/chunks/{formatter-3nnrz6f6.js → location-lifecycle-3nnrz6f6.js} +1 -1
- package/dist/chunks/{formatter-03v86jt2.js → location-lifecycle-4akdqp43.js} +17 -17
- package/dist/chunks/{formatter-tee81xg3.js → location-lifecycle-4h1e4546.js} +13 -13
- package/dist/chunks/{formatter-7jhpt6w3.js → location-lifecycle-4nr28493.js} +24 -24
- package/dist/chunks/{formatter-4pyp9zr9.js → location-lifecycle-4pyp9zr9.js} +1 -1
- package/dist/chunks/{formatter-4v008n1t.js → location-lifecycle-4v008n1t.js} +1 -1
- package/dist/chunks/{formatter-g9wm4gaf.js → location-lifecycle-4v5fy4de.js} +36 -36
- package/dist/chunks/{formatter-pqf7d7qx.js → location-lifecycle-4w7hvyx1.js} +39 -39
- package/dist/chunks/{formatter-3qx04rj6.js → location-lifecycle-566xrjbh.js} +8 -8
- package/dist/chunks/{formatter-d9jhw6m8.js → location-lifecycle-5gswvw55.js} +8 -8
- package/dist/chunks/{formatter-qkkhqeq2.js → location-lifecycle-5gwad0wr.js} +25 -25
- package/dist/chunks/{formatter-5m9w47nd.js → location-lifecycle-5m9w47nd.js} +1 -1
- package/dist/chunks/{formatter-8vhprsgd.js → location-lifecycle-5q34s4q8.js} +12 -12
- package/dist/chunks/{formatter-wefmyskm.js → location-lifecycle-5tvmrjvy.js} +37 -37
- package/dist/chunks/{formatter-71wc3kpp.js → location-lifecycle-607w044x.js} +27 -27
- package/dist/chunks/{formatter-bjhzkqyk.js → location-lifecycle-61ennm6n.js} +4 -4
- package/dist/chunks/{formatter-yj5kgc24.js → location-lifecycle-62e4mps1.js} +2 -2
- package/dist/chunks/{formatter-394cy0eq.js → location-lifecycle-659m0wpj.js} +12 -12
- package/dist/chunks/{formatter-mvyy6qpx.js → location-lifecycle-66eted3z.js} +29 -29
- package/dist/chunks/{formatter-33nja2we.js → location-lifecycle-66gx0pcd.js} +14 -14
- package/dist/chunks/{formatter-6esdw8yj.js → location-lifecycle-6esdw8yj.js} +1 -1
- package/dist/chunks/{formatter-zxf918eb.js → location-lifecycle-6hmtyd03.js} +13 -13
- package/dist/chunks/{formatter-tgt0ac12.js → location-lifecycle-6v8f6b75.js} +16 -16
- package/dist/chunks/{formatter-zs0e4nbm.js → location-lifecycle-71qhdzgc.js} +30 -30
- package/dist/chunks/{formatter-6rr0vdf1.js → location-lifecycle-748phpe4.js} +7 -7
- package/dist/chunks/{formatter-w8qtt4th.js → location-lifecycle-76cb1hcw.js} +4 -4
- package/dist/chunks/{formatter-28hr9nbt.js → location-lifecycle-77r0jmct.js} +39 -39
- package/dist/chunks/{formatter-d8p3t516.js → location-lifecycle-7a2bwsmz.js} +4 -4
- package/dist/chunks/{formatter-7bmhse3q.js → location-lifecycle-7bmhse3q.js} +1 -1
- package/dist/chunks/{formatter-cfa85z7t.js → location-lifecycle-7d2ya0cf.js} +31 -31
- package/dist/chunks/{formatter-djt3gtf7.js → location-lifecycle-7fyy9fjr.js} +20 -20
- package/dist/chunks/{formatter-exxfv8pa.js → location-lifecycle-7trskt34.js} +12 -12
- package/dist/chunks/{formatter-5ff5nded.js → location-lifecycle-7vgt2646.js} +18 -18
- package/dist/chunks/{formatter-7w2ypzdf.js → location-lifecycle-7w2ypzdf.js} +1 -1
- package/dist/chunks/{formatter-df6rebg4.js → location-lifecycle-7wftnmnq.js} +54 -54
- package/dist/chunks/{formatter-6v3s9y2a.js → location-lifecycle-84cbyd8f.js} +23 -23
- package/dist/chunks/{formatter-jy1r7v62.js → location-lifecycle-8551cmxr.js} +29 -29
- package/dist/chunks/{formatter-11hfp36g.js → location-lifecycle-8jztxfpf.js} +4 -4
- package/dist/chunks/location-lifecycle-8kn9mw6g.js +257 -0
- package/dist/chunks/{formatter-q0zr1qvh.js → location-lifecycle-8m742yxr.js} +22 -22
- package/dist/chunks/{formatter-szcgc7h4.js → location-lifecycle-8wc2fpae.js} +5 -5
- package/dist/chunks/{formatter-8wtp7s3z.js → location-lifecycle-8wtp7s3z.js} +1 -1
- package/dist/chunks/{formatter-90zstvax.js → location-lifecycle-90zstvax.js} +1 -1
- package/dist/chunks/{formatter-0n41t4zq.js → location-lifecycle-91159h48.js} +21 -21
- package/dist/chunks/{formatter-w670rhyr.js → location-lifecycle-911f6jtf.js} +17 -17
- package/dist/chunks/{formatter-yxrr31d8.js → location-lifecycle-92r8p0tp.js} +7 -7
- package/dist/chunks/{formatter-fng6wk28.js → location-lifecycle-97e8yvkm.js} +11 -11
- package/dist/chunks/{formatter-1543h8d7.js → location-lifecycle-9d0h1a85.js} +15 -15
- package/dist/chunks/{formatter-n2ppx7kr.js → location-lifecycle-9e2t1zy8.js} +9 -9
- package/dist/chunks/{formatter-xppfe2fc.js → location-lifecycle-9ghhny37.js} +6 -6
- package/dist/chunks/{formatter-4pev1txy.js → location-lifecycle-9jmz8zbf.js} +13 -13
- package/dist/chunks/{formatter-1628er8f.js → location-lifecycle-9mefphe5.js} +12 -12
- package/dist/chunks/{formatter-9axz1114.js → location-lifecycle-9q8g9sv8.js} +4 -4
- package/dist/chunks/{formatter-dyqb2r8n.js → location-lifecycle-9rcpje87.js} +3 -3
- package/dist/chunks/{formatter-bj9smzzw.js → location-lifecycle-a2aear2q.js} +5 -5
- package/dist/chunks/{formatter-q3g8wbya.js → location-lifecycle-a2nhs5ye.js} +11 -11
- package/dist/chunks/{formatter-pf9gr1ec.js → location-lifecycle-a4pmvdsg.js} +5 -5
- package/dist/chunks/{formatter-bvjg0ay9.js → location-lifecycle-aae1rsd6.js} +9 -9
- package/dist/chunks/{formatter-hmr6cy4x.js → location-lifecycle-aana3tqe.js} +22 -22
- package/dist/chunks/{formatter-5rf46hdm.js → location-lifecycle-agebekh8.js} +21 -21
- package/dist/chunks/{formatter-e2ne77ac.js → location-lifecycle-agqd6nxz.js} +4 -4
- package/dist/chunks/{formatter-ayjs7tqn.js → location-lifecycle-ayjs7tqn.js} +2 -2
- package/dist/chunks/{formatter-spsvk66e.js → location-lifecycle-az159fyk.js} +3 -3
- package/dist/chunks/{formatter-q28pv36z.js → location-lifecycle-b2m7pznq.js} +29 -29
- package/dist/chunks/{formatter-4mppp49g.js → location-lifecycle-b2m9s0pn.js} +3 -3
- package/dist/chunks/{formatter-b6vsg801.js → location-lifecycle-b6vsg801.js} +2 -2
- package/dist/chunks/{formatter-fwsczgrj.js → location-lifecycle-bd7q38ce.js} +11 -11
- package/dist/chunks/{formatter-wmaqz1y8.js → location-lifecycle-bdkc7mmp.js} +17 -17
- package/dist/chunks/{formatter-3ga08nvd.js → location-lifecycle-bj9021m7.js} +11 -11
- package/dist/chunks/{formatter-w97d1ng8.js → location-lifecycle-bkcffhez.js} +63 -63
- package/dist/chunks/{formatter-bstexjd6.js → location-lifecycle-bstexjd6.js} +1 -1
- package/dist/chunks/{formatter-bmvsb49w.js → location-lifecycle-c2bdtnm6.js} +18 -18
- package/dist/chunks/{formatter-19qgrets.js → location-lifecycle-c7q823vs.js} +4 -4
- package/dist/chunks/{formatter-fe32wyxe.js → location-lifecycle-c9jcxjv5.js} +18 -18
- package/dist/chunks/{formatter-7zczqtrc.js → location-lifecycle-c9yt0jk2.js} +11 -11
- package/dist/chunks/{formatter-r6cac6pk.js → location-lifecycle-cgreejsf.js} +16 -16
- package/dist/chunks/{formatter-f46kh10v.js → location-lifecycle-cj6h32y7.js} +15 -15
- package/dist/chunks/{formatter-hhp2fdnq.js → location-lifecycle-cq7wr2e9.js} +11 -11
- package/dist/chunks/{formatter-avpbktef.js → location-lifecycle-csqm7sp4.js} +12 -12
- package/dist/chunks/{formatter-10vw2nd8.js → location-lifecycle-ctt4wsq6.js} +4 -4
- package/dist/chunks/{formatter-cwrgdav8.js → location-lifecycle-cwrgdav8.js} +2 -2
- package/dist/chunks/{formatter-kyy1rfta.js → location-lifecycle-d3awzx2p.js} +7 -7
- package/dist/chunks/{formatter-d4v9tmah.js → location-lifecycle-d4v9tmah.js} +2 -2
- package/dist/chunks/{formatter-aedwt843.js → location-lifecycle-ddvn7d3w.js} +8 -8
- package/dist/chunks/{formatter-22ajefah.js → location-lifecycle-ddydspp3.js} +16 -16
- package/dist/chunks/{formatter-dt77769w.js → location-lifecycle-dt77769w.js} +1 -1
- package/dist/chunks/{formatter-bsh8r5kc.js → location-lifecycle-dwefygb6.js} +9 -9
- package/dist/chunks/{formatter-c5zneedc.js → location-lifecycle-dxyq0m5b.js} +38 -38
- package/dist/chunks/{formatter-h1pm2szr.js → location-lifecycle-dzyfpej0.js} +27 -27
- package/dist/chunks/{formatter-ga1rq104.js → location-lifecycle-e75qsb71.js} +17 -17
- package/dist/chunks/{formatter-e834z07m.js → location-lifecycle-e834z07m.js} +1 -1
- package/dist/chunks/{formatter-j6wmqcnw.js → location-lifecycle-eda00e62.js} +25 -25
- package/dist/chunks/{formatter-tc4kyz8e.js → location-lifecycle-ef2tezb6.js} +2 -2
- package/dist/chunks/{formatter-tted8b2w.js → location-lifecycle-ew5jtx8x.js} +20 -20
- package/dist/chunks/{formatter-8x6dz44a.js → location-lifecycle-ez1g32xq.js} +8 -8
- package/dist/chunks/location-lifecycle-ezna1kdx.js +18 -0
- package/dist/chunks/{formatter-haf3v3hy.js → location-lifecycle-f01y088k.js} +5 -5
- package/dist/chunks/{formatter-ydnwtp95.js → location-lifecycle-f4ynxgmh.js} +5 -5
- package/dist/chunks/{formatter-6cycb20b.js → location-lifecycle-fcv1cwed.js} +30 -30
- package/dist/chunks/{formatter-fffv3p7h.js → location-lifecycle-fffv3p7h.js} +1 -1
- package/dist/chunks/{formatter-prq7xxp2.js → location-lifecycle-fg9p65nk.js} +6 -6
- package/dist/chunks/{formatter-7jgy946c.js → location-lifecycle-fkwhdxrs.js} +7 -7
- package/dist/chunks/{formatter-mk6v4p35.js → location-lifecycle-fmxg1tq5.js} +11 -11
- package/dist/chunks/{formatter-n7s957jj.js → location-lifecycle-fp0xs3qb.js} +8 -8
- package/dist/chunks/{formatter-c5kjsz6q.js → location-lifecycle-fwp9mfc9.js} +4 -4
- package/dist/chunks/{formatter-4dn49050.js → location-lifecycle-g11m17r7.js} +29 -29
- package/dist/chunks/{formatter-t2k4jjyh.js → location-lifecycle-g1qehh5m.js} +5 -5
- package/dist/chunks/{formatter-1k41bg7a.js → location-lifecycle-g78frzxw.js} +21 -21
- package/dist/chunks/{formatter-p8rfhtpq.js → location-lifecycle-g9e5zzyx.js} +24 -24
- package/dist/chunks/{formatter-stdt3xb1.js → location-lifecycle-g9v2eday.js} +13 -13
- package/dist/chunks/{formatter-485n4jd3.js → location-lifecycle-gc0fp1b7.js} +21 -21
- package/dist/chunks/{formatter-av82cvsk.js → location-lifecycle-ge42ew1j.js} +164 -164
- package/dist/chunks/{formatter-gg8p9cgs.js → location-lifecycle-gg8p9cgs.js} +3 -3
- package/dist/chunks/{formatter-7a1enj4j.js → location-lifecycle-gjweb3gp.js} +8 -8
- package/dist/chunks/{formatter-w4psgs9e.js → location-lifecycle-grf0gdhe.js} +18 -18
- package/dist/chunks/{formatter-g9w27t38.js → location-lifecycle-gt6p80br.js} +4 -4
- package/dist/chunks/{formatter-xt0z8zst.js → location-lifecycle-gtn9c16a.js} +4 -4
- package/dist/chunks/{formatter-0dyf8jqq.js → location-lifecycle-gxea8sbx.js} +39 -39
- package/dist/chunks/{formatter-hdfrs5mg.js → location-lifecycle-hdfrs5mg.js} +2 -2
- package/dist/chunks/{formatter-8zkf5cgt.js → location-lifecycle-hn4sj8vd.js} +6 -6
- package/dist/chunks/{formatter-hpg1pkwy.js → location-lifecycle-hpg1pkwy.js} +1 -1
- package/dist/chunks/{formatter-z96chytr.js → location-lifecycle-hr6qpb55.js} +31 -31
- package/dist/chunks/{formatter-taahtb0c.js → location-lifecycle-hss6apd7.js} +9 -9
- package/dist/chunks/{formatter-nk8ph50s.js → location-lifecycle-httgbm63.js} +23 -23
- package/dist/chunks/{formatter-daz8d7a2.js → location-lifecycle-hwhdfxs7.js} +7 -7
- package/dist/chunks/{formatter-dqkdjpwm.js → location-lifecycle-hzpkwyds.js} +73 -73
- package/dist/chunks/{formatter-aprzax25.js → location-lifecycle-j06jsfsz.js} +24 -24
- package/dist/chunks/{formatter-0fgefsmm.js → location-lifecycle-j3vn7f0p.js} +11 -11
- package/dist/chunks/{formatter-j7v80qje.js → location-lifecycle-j8ywdc48.js} +14 -14
- package/dist/chunks/{formatter-51s5kn8z.js → location-lifecycle-jc8tgtv9.js} +18 -18
- package/dist/chunks/{formatter-0gb5rjdd.js → location-lifecycle-jct1w8df.js} +21 -21
- package/dist/chunks/{formatter-jfaecv01.js → location-lifecycle-jfaecv01.js} +1 -1
- package/dist/chunks/{formatter-jtnps1zs.js → location-lifecycle-jtnps1zs.js} +2 -2
- package/dist/chunks/{formatter-vh9ps45p.js → location-lifecycle-k1613n7g.js} +26 -26
- package/dist/chunks/{formatter-k814nvkf.js → location-lifecycle-k814nvkf.js} +1 -1
- package/dist/chunks/{formatter-snb901t2.js → location-lifecycle-k9zkdd2y.js} +4 -4
- package/dist/chunks/{formatter-96te9d4b.js → location-lifecycle-kerhshr9.js} +5 -5
- package/dist/chunks/{formatter-veq51cxc.js → location-lifecycle-kf4p2ebd.js} +9 -9
- package/dist/chunks/{formatter-t2ad8a1g.js → location-lifecycle-kgd526zp.js} +16 -16
- package/dist/chunks/{formatter-2pxa8g39.js → location-lifecycle-kjcczxx5.js} +10 -10
- package/dist/chunks/{formatter-9qcg53ez.js → location-lifecycle-kjgnzevm.js} +9 -9
- package/dist/chunks/{formatter-tc1bwtzj.js → location-lifecycle-knmcjvgx.js} +6 -6
- package/dist/chunks/{formatter-kt3bjfbg.js → location-lifecycle-kt3bjfbg.js} +1 -1
- package/dist/chunks/{formatter-8m1jxte5.js → location-lifecycle-m0mpqzzp.js} +20 -20
- package/dist/chunks/{formatter-m1714858.js → location-lifecycle-m1714858.js} +1 -1
- package/dist/chunks/{formatter-g7esga4v.js → location-lifecycle-m37sd98t.js} +7 -7
- package/dist/chunks/{formatter-8sm9cepf.js → location-lifecycle-m71b06f8.js} +7 -7
- package/dist/chunks/{formatter-m9w0rfyh.js → location-lifecycle-m9w0rfyh.js} +1 -1
- package/dist/chunks/{formatter-q4fqeak2.js → location-lifecycle-mmrzgh5j.js} +25 -25
- package/dist/chunks/{formatter-vg0erq9k.js → location-lifecycle-mqe7nf5n.js} +3 -3
- package/dist/chunks/{formatter-bxe49cp6.js → location-lifecycle-mxnttp5b.js} +12 -12
- package/dist/chunks/{formatter-na9deryv.js → location-lifecycle-n31axcjw.js} +4 -4
- package/dist/chunks/{formatter-dxx03d8y.js → location-lifecycle-n4r089c8.js} +13 -13
- package/dist/chunks/{formatter-yq3rxhjy.js → location-lifecycle-n6vvftxr.js} +12 -12
- package/dist/chunks/{formatter-46ka2acm.js → location-lifecycle-na00haj3.js} +3 -3
- package/dist/chunks/{formatter-nah043kf.js → location-lifecycle-nah043kf.js} +1 -1
- package/dist/chunks/{formatter-ezm560et.js → location-lifecycle-natbewwp.js} +22 -22
- package/dist/chunks/{formatter-pbbktnbz.js → location-lifecycle-nf3nsvxh.js} +4 -4
- package/dist/chunks/{formatter-tpjvtcx1.js → location-lifecycle-npd3148k.js} +9 -9
- package/dist/chunks/{formatter-p015t6z3.js → location-lifecycle-p015t6z3.js} +2 -2
- package/dist/chunks/{formatter-dht0teee.js → location-lifecycle-p7a7hhp0.js} +8 -8
- package/dist/chunks/{formatter-43d5xc6d.js → location-lifecycle-p9twr0vv.js} +19 -19
- package/dist/chunks/{formatter-24jfnbzz.js → location-lifecycle-p9w876mb.js} +22 -22
- package/dist/chunks/{formatter-6qzks2cs.js → location-lifecycle-pb3e80c5.js} +23 -23
- package/dist/chunks/{formatter-pknna89w.js → location-lifecycle-pknna89w.js} +1 -1
- package/dist/chunks/{formatter-gtz8ev1y.js → location-lifecycle-pnwsrq7c.js} +8 -8
- package/dist/chunks/{formatter-mvfz5wz8.js → location-lifecycle-ps6y80bg.js} +28 -28
- package/dist/chunks/{formatter-4h077zh3.js → location-lifecycle-ptzzs6yb.js} +11 -11
- package/dist/chunks/{formatter-6qazmz99.js → location-lifecycle-pzrv7hbh.js} +5 -5
- package/dist/chunks/{formatter-q63cb7ap.js → location-lifecycle-q63cb7ap.js} +3 -3
- package/dist/chunks/{formatter-45ggea5m.js → location-lifecycle-q9mdtdqs.js} +31 -31
- package/dist/chunks/{formatter-fw94v8hy.js → location-lifecycle-qbg2d46g.js} +9 -9
- package/dist/chunks/{formatter-ntxfz25d.js → location-lifecycle-qde44nj0.js} +11 -11
- package/dist/chunks/location-lifecycle-qfj5n8ap.js +26 -0
- package/dist/chunks/{formatter-2eqy3gj5.js → location-lifecycle-qj77rrb3.js} +7 -7
- package/dist/chunks/{formatter-qp7r0hxv.js → location-lifecycle-qp7r0hxv.js} +1 -1
- package/dist/chunks/{formatter-a52hhzb9.js → location-lifecycle-qyt9g0c4.js} +23 -23
- package/dist/chunks/{formatter-r0yr0wbs.js → location-lifecycle-r0yr0wbs.js} +1 -1
- package/dist/chunks/{formatter-r542h3bh.js → location-lifecycle-r542h3bh.js} +1 -1
- package/dist/chunks/{formatter-52eavcth.js → location-lifecycle-ra94xdz7.js} +24 -24
- package/dist/chunks/{formatter-rb9dy4dg.js → location-lifecycle-rb9dy4dg.js} +1 -1
- package/dist/chunks/{formatter-ygqxcxbg.js → location-lifecycle-rbr3tktj.js} +4 -4
- package/dist/chunks/{formatter-8k57btrj.js → location-lifecycle-rf6bkr86.js} +10 -10
- package/dist/chunks/{formatter-snrj9yj5.js → location-lifecycle-rg32fvtr.js} +9 -9
- package/dist/chunks/{formatter-t211gxpv.js → location-lifecycle-rhv95hk9.js} +7 -7
- package/dist/chunks/{formatter-dxb8mgza.js → location-lifecycle-rnb8hfy1.js} +10 -10
- package/dist/chunks/{formatter-bf446n6z.js → location-lifecycle-rrkf1epd.js} +9 -9
- package/dist/chunks/{formatter-6q4pe2tt.js → location-lifecycle-rrrvkjes.js} +11 -11
- package/dist/chunks/{formatter-rt5dr6hb.js → location-lifecycle-rt5dr6hb.js} +1 -1
- package/dist/chunks/{formatter-g9rrt98n.js → location-lifecycle-s7gfng2c.js} +4 -4
- package/dist/chunks/{formatter-t6gnwazt.js → location-lifecycle-s8xv3frr.js} +41 -41
- package/dist/chunks/{formatter-sa3fpqfw.js → location-lifecycle-sa3fpqfw.js} +2 -2
- package/dist/chunks/{formatter-kddgr42t.js → location-lifecycle-sjap5m2v.js} +10 -10
- package/dist/chunks/{formatter-sqjzf8x2.js → location-lifecycle-sqjzf8x2.js} +1 -1
- package/dist/chunks/{formatter-d2887f8n.js → location-lifecycle-ssfehs1z.js} +4 -4
- package/dist/chunks/{formatter-svcy3p9a.js → location-lifecycle-svcy3p9a.js} +1 -1
- package/dist/chunks/{formatter-knjx9f3g.js → location-lifecycle-t2jb32fr.js} +22 -22
- package/dist/chunks/{formatter-tczq8hjw.js → location-lifecycle-tczq8hjw.js} +1 -1
- package/dist/chunks/{formatter-jvta4zhp.js → location-lifecycle-tp66eq7z.js} +6 -6
- package/dist/chunks/{formatter-twssxy5n.js → location-lifecycle-twssxy5n.js} +2 -2
- package/dist/chunks/{formatter-b954wvww.js → location-lifecycle-txy64ddg.js} +6 -6
- package/dist/chunks/{formatter-v2r1d0zg.js → location-lifecycle-v2r1d0zg.js} +1 -1
- package/dist/chunks/{formatter-aj89322e.js → location-lifecycle-v3xbt8j3.js} +5 -5
- package/dist/chunks/{formatter-2q4pnacr.js → location-lifecycle-vat40s1j.js} +5 -5
- package/dist/chunks/{formatter-7a3gzg35.js → location-lifecycle-vjxb9gfa.js} +8 -8
- package/dist/chunks/{formatter-kykpneqp.js → location-lifecycle-vr97jdwr.js} +27 -27
- package/dist/chunks/{formatter-rte3fk8q.js → location-lifecycle-vtee1h2x.js} +11 -11
- package/dist/chunks/{formatter-nrtygxmh.js → location-lifecycle-vzppetdn.js} +6 -6
- package/dist/chunks/{formatter-408rv1ek.js → location-lifecycle-w2a3yqmm.js} +66 -66
- package/dist/chunks/{formatter-5enarcya.js → location-lifecycle-w2eysc6j.js} +6 -6
- package/dist/chunks/{formatter-w3wsvvr9.js → location-lifecycle-w3wsvvr9.js} +1 -1
- package/dist/chunks/{formatter-5yg7bvsq.js → location-lifecycle-w8qce8my.js} +5 -5
- package/dist/chunks/{formatter-jyhg77x6.js → location-lifecycle-w9bxej31.js} +8 -8
- package/dist/chunks/{formatter-wakvkjy4.js → location-lifecycle-wakvkjy4.js} +1 -1
- package/dist/chunks/{formatter-wd87259q.js → location-lifecycle-wd87259q.js} +1 -1
- package/dist/chunks/{formatter-n7pbqev4.js → location-lifecycle-wfmjh5ms.js} +1 -1
- package/dist/chunks/{formatter-wnhgecwx.js → location-lifecycle-wnhgecwx.js} +1 -1
- package/dist/chunks/{formatter-61a4qrs4.js → location-lifecycle-wnyn60q7.js} +5 -5
- package/dist/chunks/{formatter-sqkx7p5n.js → location-lifecycle-wpany5yq.js} +13 -13
- package/dist/chunks/{formatter-p4yppz28.js → location-lifecycle-wq4h806t.js} +19 -19
- package/dist/chunks/{formatter-w687dnns.js → location-lifecycle-wr3re1en.js} +4 -4
- package/dist/chunks/{formatter-g8jkqxma.js → location-lifecycle-x19ymrsr.js} +44 -44
- package/dist/chunks/{formatter-3n5jkvcw.js → location-lifecycle-x48bv8h6.js} +5 -5
- package/dist/chunks/{formatter-k9dfpmz2.js → location-lifecycle-xdj75tqk.js} +24 -24
- package/dist/chunks/{formatter-bqm8vams.js → location-lifecycle-xfcrt735.js} +28 -28
- package/dist/chunks/{formatter-vfp0pkkd.js → location-lifecycle-xjxadmbn.js} +35 -35
- package/dist/chunks/{formatter-pyzjd10w.js → location-lifecycle-xkhfjrgz.js} +3 -3
- package/dist/chunks/{formatter-xqwysx3w.js → location-lifecycle-xn7d09t2.js} +23 -23
- package/dist/chunks/{formatter-6vygy4ry.js → location-lifecycle-xpv0mkwy.js} +13 -13
- package/dist/chunks/{formatter-qgndh80m.js → location-lifecycle-xqfvk670.js} +12 -12
- package/dist/chunks/{formatter-re939ggz.js → location-lifecycle-xrp5eqy6.js} +34 -34
- package/dist/chunks/{formatter-932fxf16.js → location-lifecycle-xsdb0ewc.js} +13 -13
- package/dist/chunks/{formatter-d0d9kmtc.js → location-lifecycle-xvwea3zk.js} +27 -27
- package/dist/chunks/{formatter-928cg9e5.js → location-lifecycle-xxxy1m8x.js} +15 -15
- package/dist/chunks/{formatter-txf773fv.js → location-lifecycle-y6prjrg7.js} +4 -4
- package/dist/chunks/{formatter-yara3q77.js → location-lifecycle-yara3q77.js} +2 -2
- package/dist/chunks/{formatter-wkhea23b.js → location-lifecycle-yawv2nyq.js} +17 -17
- package/dist/chunks/{formatter-yb20nhc3.js → location-lifecycle-yb20nhc3.js} +1 -1
- package/dist/chunks/{formatter-fzfqydht.js → location-lifecycle-yczcr02h.js} +10 -10
- package/dist/chunks/{formatter-wbgzj0hw.js → location-lifecycle-yjv0s5xv.js} +4 -4
- package/dist/chunks/{formatter-pakndkhn.js → location-lifecycle-ymz7p2c9.js} +3 -3
- package/dist/chunks/location-lifecycle-ys27pst8.js +511 -0
- package/dist/chunks/{formatter-7a92ptrh.js → location-lifecycle-ysg1a3cp.js} +25 -25
- package/dist/chunks/{formatter-z38nccrw.js → location-lifecycle-z38nccrw.js} +1 -1
- package/dist/chunks/{formatter-xjpxpj55.js → location-lifecycle-z3b2zcgw.js} +11 -11
- package/dist/chunks/{formatter-p1njj0by.js → location-lifecycle-z4j5acsz.js} +9 -9
- package/dist/chunks/{formatter-xwbhabkb.js → location-lifecycle-zc0wy1av.js} +18 -18
- package/dist/chunks/{formatter-5ryxmec5.js → location-lifecycle-zcz73n1t.js} +6 -6
- package/dist/chunks/{formatter-me7kxg3j.js → location-lifecycle-zdn46m04.js} +8 -8
- package/dist/chunks/{formatter-zgd8t41s.js → location-lifecycle-zh7bbm8x.js} +9 -9
- package/dist/chunks/{formatter-sg8xjaz5.js → location-lifecycle-zn7aejg9.js} +24 -24
- package/dist/chunks/{formatter-5cn8xe5s.js → location-lifecycle-zvmpcp5y.js} +14 -14
- package/dist/chunks/{formatter-8a2eg3tn.js → location-lifecycle-zxdxvdq4.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +91 -91
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +120 -120
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +79 -79
- package/dist/database/database.js +72 -72
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +93 -93
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +377 -377
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +146 -146
- package/dist/file-mutation.js +102 -102
- 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/file-watch.js +83 -83
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -112
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +113 -113
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +368 -368
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +160 -160
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +365 -365
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +168 -168
- package/dist/mcp/oauth.js +81 -81
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +100 -100
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +147 -147
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +338 -338
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode.js +124 -124
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +357 -357
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +92 -92
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +162 -162
- package/dist/session/context.js +186 -186
- package/dist/session/diff.js +96 -96
- 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 +222 -222
- package/dist/session/execution.js +154 -154
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +153 -153
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +152 -152
- package/dist/session/projector.js +132 -132
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +150 -150
- package/dist/snapshot.js +99 -99
- 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 +163 -163
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +152 -152
- package/dist/tool/plugin/question.js +136 -136
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +149 -149
- package/dist/tool/plugin/websearch.js +143 -143
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +108 -108
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- 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 +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +94 -94
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +8 -8
- package/dist/chunks/formatter-3zat5gdw.js +0 -26
- package/dist/chunks/formatter-a885h41h.js +0 -257
- package/dist/chunks/formatter-k62y2wy8.js +0 -18
- package/dist/chunks/formatter-m6ha5htp.js +0 -511
- /package/dist/chunks/{formatter-0qkdqm5v.js → location-lifecycle-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{formatter-0zkw76rk.js → location-lifecycle-0zkw76rk.js} +0 -0
- /package/dist/chunks/{formatter-17cy0kzp.js → location-lifecycle-17cy0kzp.js} +0 -0
- /package/dist/chunks/{formatter-1cnp2v09.js → location-lifecycle-1cnp2v09.js} +0 -0
- /package/dist/chunks/{formatter-1jakw16s.js → location-lifecycle-1jakw16s.js} +0 -0
- /package/dist/chunks/{formatter-24dcb14g.js → location-lifecycle-24dcb14g.js} +0 -0
- /package/dist/chunks/{formatter-2710q6r3.js → location-lifecycle-2710q6r3.js} +0 -0
- /package/dist/chunks/{formatter-2bv980vf.js → location-lifecycle-2bv980vf.js} +0 -0
- /package/dist/chunks/{formatter-2c3vjs8z.js → location-lifecycle-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{formatter-359p4xyc.js → location-lifecycle-359p4xyc.js} +0 -0
- /package/dist/chunks/{formatter-3asan66x.js → location-lifecycle-3asan66x.js} +0 -0
- /package/dist/chunks/{formatter-3v8g72cx.js → location-lifecycle-3v8g72cx.js} +0 -0
- /package/dist/chunks/{formatter-3wcehsnq.js → location-lifecycle-3wcehsnq.js} +0 -0
- /package/dist/chunks/{formatter-43n2bw4t.js → location-lifecycle-43n2bw4t.js} +0 -0
- /package/dist/chunks/{formatter-4knz6hnm.js → location-lifecycle-4knz6hnm.js} +0 -0
- /package/dist/chunks/{formatter-4m86bj6y.js → location-lifecycle-4m86bj6y.js} +0 -0
- /package/dist/chunks/{formatter-4vcrnpx2.js → location-lifecycle-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{formatter-4y7fprxs.js → location-lifecycle-4y7fprxs.js} +0 -0
- /package/dist/chunks/{formatter-53557ph1.js → location-lifecycle-53557ph1.js} +0 -0
- /package/dist/chunks/{formatter-550bvhaj.js → location-lifecycle-550bvhaj.js} +0 -0
- /package/dist/chunks/{formatter-5w3e23ze.js → location-lifecycle-5w3e23ze.js} +0 -0
- /package/dist/chunks/{formatter-6prwharc.js → location-lifecycle-6prwharc.js} +0 -0
- /package/dist/chunks/{formatter-6q2bdcd1.js → location-lifecycle-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{formatter-7akdwqpd.js → location-lifecycle-7akdwqpd.js} +0 -0
- /package/dist/chunks/{formatter-7m9af43g.js → location-lifecycle-7m9af43g.js} +0 -0
- /package/dist/chunks/{formatter-822emrt2.js → location-lifecycle-822emrt2.js} +0 -0
- /package/dist/chunks/{formatter-84wd9syh.js → location-lifecycle-84wd9syh.js} +0 -0
- /package/dist/chunks/{formatter-88xbtdfr.js → location-lifecycle-88xbtdfr.js} +0 -0
- /package/dist/chunks/{formatter-8n3pysct.js → location-lifecycle-8n3pysct.js} +0 -0
- /package/dist/chunks/{formatter-8wj87zfr.js → location-lifecycle-8wj87zfr.js} +0 -0
- /package/dist/chunks/{formatter-9a4afbnw.js → location-lifecycle-9a4afbnw.js} +0 -0
- /package/dist/chunks/{formatter-9rqn6x4v.js → location-lifecycle-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{formatter-a058387c.js → location-lifecycle-a058387c.js} +0 -0
- /package/dist/chunks/{formatter-a6k6eb26.js → location-lifecycle-a6k6eb26.js} +0 -0
- /package/dist/chunks/{formatter-af5trqkr.js → location-lifecycle-af5trqkr.js} +0 -0
- /package/dist/chunks/{formatter-afrmfg78.js → location-lifecycle-afrmfg78.js} +0 -0
- /package/dist/chunks/{formatter-aqzs7mqg.js → location-lifecycle-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{formatter-atq7p7m5.js → location-lifecycle-atq7p7m5.js} +0 -0
- /package/dist/chunks/{formatter-beh6qq61.js → location-lifecycle-beh6qq61.js} +0 -0
- /package/dist/chunks/{formatter-bkyjaxrp.js → location-lifecycle-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{formatter-bmr6ed5q.js → location-lifecycle-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{formatter-cf4snx6d.js → location-lifecycle-cf4snx6d.js} +0 -0
- /package/dist/chunks/{formatter-cqv5kn06.js → location-lifecycle-cqv5kn06.js} +0 -0
- /package/dist/chunks/{formatter-cvy3z8tj.js → location-lifecycle-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{formatter-d9fn303g.js → location-lifecycle-d9fn303g.js} +0 -0
- /package/dist/chunks/{formatter-d9jj8t3e.js → location-lifecycle-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{formatter-dajrwvna.js → location-lifecycle-dajrwvna.js} +0 -0
- /package/dist/chunks/{formatter-dap0rakb.js → location-lifecycle-dap0rakb.js} +0 -0
- /package/dist/chunks/{formatter-df08tz66.js → location-lifecycle-df08tz66.js} +0 -0
- /package/dist/chunks/{formatter-dy18nga0.js → location-lifecycle-dy18nga0.js} +0 -0
- /package/dist/chunks/{formatter-e5kj55wp.js → location-lifecycle-e5kj55wp.js} +0 -0
- /package/dist/chunks/{formatter-e73j6tqm.js → location-lifecycle-e73j6tqm.js} +0 -0
- /package/dist/chunks/{formatter-ec1grn59.js → location-lifecycle-ec1grn59.js} +0 -0
- /package/dist/chunks/{formatter-eh3zwz77.js → location-lifecycle-eh3zwz77.js} +0 -0
- /package/dist/chunks/{formatter-emrn6kk6.js → location-lifecycle-emrn6kk6.js} +0 -0
- /package/dist/chunks/{formatter-f0mxakyp.js → location-lifecycle-f0mxakyp.js} +0 -0
- /package/dist/chunks/{formatter-f6n9ztr4.js → location-lifecycle-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{formatter-faypxj3z.js → location-lifecycle-faypxj3z.js} +0 -0
- /package/dist/chunks/{formatter-fd410y7t.js → location-lifecycle-fd410y7t.js} +0 -0
- /package/dist/chunks/{formatter-fkpq3x5p.js → location-lifecycle-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{formatter-g4wezp1m.js → location-lifecycle-g4wezp1m.js} +0 -0
- /package/dist/chunks/{formatter-g86h250q.js → location-lifecycle-g86h250q.js} +0 -0
- /package/dist/chunks/{formatter-gebd4c9n.js → location-lifecycle-gebd4c9n.js} +0 -0
- /package/dist/chunks/{formatter-gftt206x.js → location-lifecycle-gftt206x.js} +0 -0
- /package/dist/chunks/{formatter-hcxmzztb.js → location-lifecycle-hcxmzztb.js} +0 -0
- /package/dist/chunks/{formatter-hk9envan.js → location-lifecycle-hk9envan.js} +0 -0
- /package/dist/chunks/{formatter-j2ntwpah.js → location-lifecycle-j2ntwpah.js} +0 -0
- /package/dist/chunks/{formatter-j5zkgpj8.js → location-lifecycle-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{formatter-jjkms2e6.js → location-lifecycle-jjkms2e6.js} +0 -0
- /package/dist/chunks/{formatter-jr7sbwjy.js → location-lifecycle-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{formatter-jwfs4k6c.js → location-lifecycle-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{formatter-jwr30sdr.js → location-lifecycle-jwr30sdr.js} +0 -0
- /package/dist/chunks/{formatter-jze0r7bz.js → location-lifecycle-jze0r7bz.js} +0 -0
- /package/dist/chunks/{formatter-jzg6c2d5.js → location-lifecycle-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{formatter-m18g726c.js → location-lifecycle-m18g726c.js} +0 -0
- /package/dist/chunks/{formatter-mp448xyj.js → location-lifecycle-mp448xyj.js} +0 -0
- /package/dist/chunks/{formatter-msx8hqn2.js → location-lifecycle-msx8hqn2.js} +0 -0
- /package/dist/chunks/{formatter-n05xt0ee.js → location-lifecycle-n05xt0ee.js} +0 -0
- /package/dist/chunks/{formatter-n3j8tn72.js → location-lifecycle-n3j8tn72.js} +0 -0
- /package/dist/chunks/{formatter-ncqqe42p.js → location-lifecycle-ncqqe42p.js} +0 -0
- /package/dist/chunks/{formatter-njntx4h6.js → location-lifecycle-njntx4h6.js} +0 -0
- /package/dist/chunks/{formatter-p71gwv9c.js → location-lifecycle-p71gwv9c.js} +0 -0
- /package/dist/chunks/{formatter-q3sfg36h.js → location-lifecycle-q3sfg36h.js} +0 -0
- /package/dist/chunks/{formatter-q74kybfr.js → location-lifecycle-q74kybfr.js} +0 -0
- /package/dist/chunks/{formatter-qaymkmh1.js → location-lifecycle-qaymkmh1.js} +0 -0
- /package/dist/chunks/{formatter-qb87gjwd.js → location-lifecycle-qb87gjwd.js} +0 -0
- /package/dist/chunks/{formatter-qfa1cgps.js → location-lifecycle-qfa1cgps.js} +0 -0
- /package/dist/chunks/{formatter-qg3g05ea.js → location-lifecycle-qg3g05ea.js} +0 -0
- /package/dist/chunks/{formatter-qrg20bc0.js → location-lifecycle-qrg20bc0.js} +0 -0
- /package/dist/chunks/{formatter-rcb2kzg1.js → location-lifecycle-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{formatter-sdp7kfr6.js → location-lifecycle-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{formatter-ssg3fenm.js → location-lifecycle-ssg3fenm.js} +0 -0
- /package/dist/chunks/{formatter-ve7vex1e.js → location-lifecycle-ve7vex1e.js} +0 -0
- /package/dist/chunks/{formatter-w803qqfp.js → location-lifecycle-w803qqfp.js} +0 -0
- /package/dist/chunks/{formatter-wc3fc9cn.js → location-lifecycle-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{formatter-wer8tq1h.js → location-lifecycle-wer8tq1h.js} +0 -0
- /package/dist/chunks/{formatter-wtztk69x.js → location-lifecycle-wtztk69x.js} +0 -0
- /package/dist/chunks/{formatter-x0ckcb58.js → location-lifecycle-x0ckcb58.js} +0 -0
- /package/dist/chunks/{formatter-x61499pn.js → location-lifecycle-x61499pn.js} +0 -0
- /package/dist/chunks/{formatter-y44na4kk.js → location-lifecycle-y44na4kk.js} +0 -0
- /package/dist/chunks/{formatter-y8f7s663.js → location-lifecycle-y8f7s663.js} +0 -0
- /package/dist/chunks/{formatter-ygaqb7jw.js → location-lifecycle-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{formatter-z5v4ffb3.js → location-lifecycle-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{formatter-z9919s4g.js → location-lifecycle-z9919s4g.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-tczq8hjw.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-204s3925.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service54,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node57
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service54 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -121,7 +121,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
121
121
|
yield* fs.writeWithDirs(file, bytes).pipe(Effect.orDie);
|
|
122
122
|
return file;
|
|
123
123
|
});
|
|
124
|
-
return
|
|
124
|
+
return Service54.of({
|
|
125
125
|
transform: state.transform,
|
|
126
126
|
reload: state.reload,
|
|
127
127
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node57 = makeLocationNode({
|
|
143
|
+
service: Service54,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service54, node57, exports_tool_output2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make22,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-gtn9c16a.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-fffv3p7h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
render: () =>
|
|
17
|
+
var exports_instructions4 = {};
|
|
18
|
+
__export(exports_instructions4, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions4,
|
|
20
|
+
make: () => make14,
|
|
21
|
+
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
24
24
|
import { searchSignature, toolExpression } from "@opencode/codemode";
|
|
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Inside \`execute\`, use \`search(...)\
|
|
|
32
32
|
- ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
|
|
33
33
|
|
|
34
34
|
## Available tools`;
|
|
35
|
-
function
|
|
35
|
+
function render2(catalog) {
|
|
36
36
|
if (catalog.total === 0)
|
|
37
37
|
return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
|
|
38
38
|
const tools = catalog.namespaces.flatMap((namespace) => {
|
|
@@ -46,7 +46,7 @@ ${tools.join(`
|
|
|
46
46
|
function update3(previous, current) {
|
|
47
47
|
const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${render2(current)}`;
|
|
50
50
|
if (current.total === 0)
|
|
51
51
|
return replacement;
|
|
52
52
|
const previousComplete = previous.shown === previous.total;
|
|
@@ -111,18 +111,18 @@ ${render3(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make14 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make22({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
120
120
|
render: {
|
|
121
|
-
initial:
|
|
121
|
+
initial: render2,
|
|
122
122
|
changed: update3,
|
|
123
123
|
removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { render2, update3, make14, exports_instructions4 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-bdkc7mmp.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID12,
|
|
7
7
|
VariantID2,
|
|
8
8
|
Info21,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-4h1e4546.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
16
|
var exports_models2 = {};
|
|
@@ -22,7 +22,7 @@ __export(exports_models2, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -75,8 +75,8 @@ function derive3(baseURL, remote, existing) {
|
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID12.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -97,7 +97,7 @@ function build(id, remote, baseURL, previous) {
|
|
|
97
97
|
return Info21.make({
|
|
98
98
|
...Info21.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID12.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-hwhdfxs7.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-wfmjh5ms.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -20,7 +20,7 @@ class EffectSQLiteDatabase2 extends SQLiteEffectDatabase2 {
|
|
|
20
20
|
static [entityKind] = "EffectSQLiteDatabase";
|
|
21
21
|
}
|
|
22
22
|
var DefaultServices2 = Layer.merge(EffectCache.Default, EffectLogger.Default);
|
|
23
|
-
var
|
|
23
|
+
var make24 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
24
24
|
const client = yield* SqlClient;
|
|
25
25
|
const cache = yield* EffectCache;
|
|
26
26
|
const logger = yield* EffectLogger;
|
|
@@ -37,6 +37,6 @@ var make23 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
|
37
37
|
db.$cache.invalidate = cache.onMutate;
|
|
38
38
|
return db;
|
|
39
39
|
});
|
|
40
|
-
var makeWithDefaults2 = (config = {}) =>
|
|
40
|
+
var makeWithDefaults2 = (config = {}) => make24(config).pipe(Effect.provide(DefaultServices2));
|
|
41
41
|
|
|
42
|
-
export { EffectSQLiteDatabase2, DefaultServices2,
|
|
42
|
+
export { EffectSQLiteDatabase2, DefaultServices2, make24, makeWithDefaults2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-8jztxfpf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service57,
|
|
6
|
+
node60
|
|
7
|
+
} from "./location-lifecycle-jct1w8df.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service13,
|
|
17
|
+
node: () => node15,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service13 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service57;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service13.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node15 = makeLocationNode({ service: Service13, layer, deps: [node60] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service13, readText2, syncTextBom2, node15, exports_file_mutation };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
nativeSettings2,
|
|
6
6
|
timeouts2,
|
|
7
7
|
mergeOverlay2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-lifecycle-bdkc7mmp.js";
|
|
9
9
|
import {
|
|
10
10
|
stringify2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-1jakw16s.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/aisdk.ts
|
|
17
17
|
var exports_aisdk = {};
|
|
18
18
|
__export(exports_aisdk, {
|
|
19
19
|
AISDK: () => exports_aisdk,
|
|
20
20
|
InitError: () => InitError2,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service74,
|
|
22
22
|
locationLayer: () => locationLayer2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node78
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -153,7 +153,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
153
153
|
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
154
154
|
|
|
155
155
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
156
|
-
providerID:
|
|
156
|
+
providerID: ID13,
|
|
157
157
|
cause: Schema.Defect()
|
|
158
158
|
}) {
|
|
159
159
|
}
|
|
@@ -161,9 +161,9 @@ function initError(providerID) {
|
|
|
161
161
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
class
|
|
164
|
+
class Service74 extends Context.Service()("@opencode/AISDK") {
|
|
165
165
|
}
|
|
166
|
-
var locationLayer2 = Layer.effect(
|
|
166
|
+
var locationLayer2 = Layer.effect(Service74, Effect.gen(function* () {
|
|
167
167
|
let sdkHooks = [];
|
|
168
168
|
let languageHooks = [];
|
|
169
169
|
const languages = new Map;
|
|
@@ -201,7 +201,7 @@ var locationLayer2 = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
201
201
|
}
|
|
202
202
|
return event;
|
|
203
203
|
});
|
|
204
|
-
const service =
|
|
204
|
+
const service = Service74.of({
|
|
205
205
|
hook: {
|
|
206
206
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
207
207
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -863,6 +863,6 @@ function providerErrorMessage(error) {
|
|
|
863
863
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
864
864
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
865
865
|
}
|
|
866
|
-
var
|
|
866
|
+
var node78 = makeLocationNode({ service: Service74, layer: locationLayer2, deps: [] });
|
|
867
867
|
|
|
868
|
-
export { InitError2,
|
|
868
|
+
export { InitError2, Service74, locationLayer2, node78, exports_aisdk };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
6
|
var exports_permission2 = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_permission2, {
|
|
|
8
8
|
Action: () => Action2,
|
|
9
9
|
ConfigPermissionV1: () => exports_permission2,
|
|
10
10
|
Entries: () => Entries2,
|
|
11
|
-
Info: () =>
|
|
11
|
+
Info: () => Info19,
|
|
12
12
|
Object: () => Object2,
|
|
13
13
|
Rule: () => Rule3
|
|
14
14
|
});
|
|
@@ -21,11 +21,11 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
|
|
|
21
21
|
var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
22
22
|
var Rule3 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
23
23
|
var actionOnly = new Set(["question", "websearch", "doom_loop"]);
|
|
24
|
-
var
|
|
24
|
+
var Info19 = 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, Rule3,
|
|
31
|
+
export { Action2, Entries2, Object2, Rule3, Info19, exports_permission2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9ghhny37.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-az159fyk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/database.ts
|
|
12
12
|
var exports_database = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./location-lifecycle-bdkc7mmp.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/amazon-bedrock.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -35,15 +35,15 @@ var AmazonBedrockPlugin2 = define({
|
|
|
35
35
|
})))).filter(Boolean).toSorted();
|
|
36
36
|
yield* ctx.integration.transform((editor) => {
|
|
37
37
|
editor.method.update({
|
|
38
|
-
integrationID:
|
|
38
|
+
integrationID: ID13.amazonBedrock,
|
|
39
39
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
40
40
|
});
|
|
41
41
|
editor.method.update({
|
|
42
|
-
integrationID:
|
|
42
|
+
integrationID: ID13.amazonBedrock,
|
|
43
43
|
method: { type: "key", label: "Bedrock API key" }
|
|
44
44
|
});
|
|
45
45
|
editor.method.update({
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID13.amazonBedrock,
|
|
47
47
|
method: {
|
|
48
48
|
id: "aws-profile",
|
|
49
49
|
type: "external",
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service35
|
|
6
|
+
} from "./location-lifecycle-2e7734n6.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service64
|
|
9
|
+
} from "./location-lifecycle-x19ymrsr.js";
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_MIMES2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-lifecycle-ew5jtx8x.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/tool/plugin/mcp-resource.ts
|
|
18
18
|
var exports_mcp_resource = {};
|
|
19
19
|
__export(exports_mcp_resource, {
|
|
20
20
|
McpResourceTools: () => exports_mcp_resource,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin32
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin32 = {
|
|
26
26
|
id: "opencode.tools.mcp-resources",
|
|
27
27
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
28
|
-
const mcp = yield*
|
|
29
|
-
const permission = yield*
|
|
28
|
+
const mcp = yield* Service35;
|
|
29
|
+
const permission = yield* Service64;
|
|
30
30
|
yield* ctx.tool.transform((editor) => {
|
|
31
31
|
editor.add({
|
|
32
32
|
name: "list_mcp_resources",
|
|
@@ -96,4 +96,4 @@ var Plugin37 = {
|
|
|
96
96
|
})
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin32, exports_mcp_resource };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuth3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-w8qce8my.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID14,
|
|
6
6
|
MethodID2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-t2jb32fr.js";
|
|
8
8
|
import {
|
|
9
9
|
success2,
|
|
10
10
|
error2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-yb20nhc3.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/provider/poe.ts
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
16
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID14.make("poe");
|
|
18
18
|
var methodID = MethodID2.make("browser");
|
|
19
19
|
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
20
|
var issuer = "https://poe.com";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-566xrjbh.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
6
|
Service79
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-w8qce8my.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-t2jb32fr.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-bdkc7mmp.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID13.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID14.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -70,7 +70,7 @@ var XAIPlugin2 = define({
|
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
72
|
const credentials = yield* Service79;
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-n31axcjw.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service72
|
|
6
|
+
} from "./location-lifecycle-sjap5m2v.js";
|
|
7
7
|
import {
|
|
8
8
|
group2,
|
|
9
9
|
batch2,
|
|
10
10
|
shutdown2,
|
|
11
11
|
changes2,
|
|
12
12
|
inherit2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-204s3925.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
Service34,
|
|
16
16
|
awaitActivation2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-lifecycle-ezna1kdx.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
make12,
|
|
20
20
|
requirements3,
|
|
21
21
|
storage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-lifecycle-ge42ew1j.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/plugin.ts
|
|
28
28
|
var exports_plugin2 = {};
|
|
29
29
|
__export(exports_plugin2, {
|
|
30
|
-
Event: () =>
|
|
30
|
+
Event: () => Event4,
|
|
31
31
|
GuiBundle: () => GuiBundle2,
|
|
32
|
-
ID: () =>
|
|
33
|
-
Info: () =>
|
|
32
|
+
ID: () => ID3,
|
|
33
|
+
Info: () => Info5,
|
|
34
34
|
Plugin: () => exports_plugin2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service34,
|
|
36
36
|
Source: () => Source2,
|
|
37
37
|
State: () => State2,
|
|
38
38
|
awaitActivation: () => awaitActivation2,
|
|
39
|
-
node: () =>
|
|
39
|
+
node: () => node22
|
|
40
40
|
});
|
|
41
|
-
import { Event as
|
|
41
|
+
import { Event as Event4, GuiBundle as GuiBundle2, ID as ID3, Info as Info5, Source as Source2, State as State2 } from "@opencode/schema/plugin";
|
|
42
42
|
import { readFile } from "node:fs/promises";
|
|
43
43
|
import { fileURLToPath } from "node:url";
|
|
44
44
|
import { Plugin } from "@opencode/schema/plugin";
|
|
45
45
|
import { Node } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
48
48
|
const bus = yield* Service85;
|
|
49
|
-
const kv = yield*
|
|
49
|
+
const kv = yield* Service72;
|
|
50
50
|
const scope = yield* Scope.make();
|
|
51
51
|
const active = new Map;
|
|
52
52
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
79
79
|
const code = yield* Effect.promise(() => readFile(fileURLToPath(gui.file), "utf8"));
|
|
80
80
|
return { code, revision: gui.revision, options: gui.options };
|
|
81
81
|
});
|
|
82
|
-
const host = yield*
|
|
82
|
+
const host = yield* make12({ list });
|
|
83
83
|
const load = Effect.fnUntraced(function* (plugin) {
|
|
84
84
|
const activation = { plugin, scope: yield* Scope.fork(scope) };
|
|
85
85
|
const inherit = yield* inherit2();
|
|
@@ -214,7 +214,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
214
214
|
yield* shutdown2(Scope.close(scope, exit));
|
|
215
215
|
}));
|
|
216
216
|
yield* Effect.addFinalizer(close);
|
|
217
|
-
return
|
|
217
|
+
return Service34.of({
|
|
218
218
|
activate,
|
|
219
219
|
close,
|
|
220
220
|
awaitActivation: ready.await,
|
|
@@ -232,10 +232,10 @@ function slotInfo(slot) {
|
|
|
232
232
|
features: slot.plugin.features ?? { server: true }
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
service:
|
|
235
|
+
var node22 = Node.makeLocationNode({
|
|
236
|
+
service: Service34,
|
|
237
237
|
layer,
|
|
238
238
|
deps: [requirements3]
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
export {
|
|
241
|
+
export { node22, exports_plugin2, Event4, GuiBundle2, ID3, Info5, Source2, State2 };
|