@opencode/core 0.0.0-dev-19343 → 0.0.0-dev-19346
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 +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{location-mutation-7qc321h1.js → app-09sr60yf.js} +20 -20
- package/dist/chunks/{location-mutation-3dq4f3ya.js → app-0a65vbt0.js} +5 -5
- package/dist/chunks/{location-mutation-hm2ejha3.js → app-0ge7vg41.js} +13 -13
- package/dist/chunks/{location-mutation-d1268gaq.js → app-0h6ds6h2.js} +8 -8
- package/dist/chunks/{location-mutation-ytf8k5yw.js → app-0jwv6t6h.js} +46 -46
- package/dist/chunks/{location-mutation-0paq2nw3.js → app-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-mutation-0q0f95c6.js → app-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-mutation-nws43tmt.js → app-17nkb8jb.js} +24 -24
- package/dist/chunks/{location-mutation-1acjjqhc.js → app-1acjjqhc.js} +1 -1
- package/dist/chunks/{location-mutation-1dazxqgg.js → app-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-mutation-1dfhrqqs.js → app-1dfhrqqs.js} +2 -2
- package/dist/chunks/{location-mutation-d9mnrx7s.js → app-1kaxk7dt.js} +11 -11
- package/dist/chunks/{location-mutation-76h67nm5.js → app-1rr79kmz.js} +12 -12
- package/dist/chunks/{location-mutation-sjygwc2a.js → app-1s0d9f9g.js} +32 -32
- package/dist/chunks/{location-mutation-56gdpj1q.js → app-1ygqh575.js} +9 -9
- package/dist/chunks/{location-mutation-21r38tys.js → app-21r38tys.js} +1 -1
- package/dist/chunks/{location-mutation-hr5bc81f.js → app-2336b01z.js} +8 -8
- package/dist/chunks/{location-mutation-3dtz0ed4.js → app-27rw9vzj.js} +6 -6
- package/dist/chunks/{location-mutation-2a5m3afh.js → app-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-mutation-2bt6bea8.js → app-2bt6bea8.js} +2 -2
- package/dist/chunks/{location-mutation-j3nra4g0.js → app-2d0sc79q.js} +11 -11
- package/dist/chunks/{location-mutation-fvanntqq.js → app-2d57kztd.js} +6 -6
- package/dist/chunks/{location-mutation-xjxyt9bq.js → app-2ee5rppv.js} +30 -30
- package/dist/chunks/{location-mutation-6bsje7ws.js → app-2f04pwep.js} +3 -3
- package/dist/chunks/{location-mutation-9xtkkd11.js → app-2hmv1bzq.js} +4 -4
- package/dist/chunks/{location-mutation-qgn6gcr1.js → app-2k8khapm.js} +5 -5
- package/dist/chunks/{location-mutation-7xr0d558.js → app-2p6pftky.js} +43 -43
- package/dist/chunks/{location-mutation-n0sspdwz.js → app-2t68cqyy.js} +6 -6
- package/dist/chunks/{location-mutation-178rcfj9.js → app-2x4qd1xw.js} +16 -16
- package/dist/chunks/{location-mutation-f2gse5fy.js → app-35jzzref.js} +6 -6
- package/dist/chunks/{location-mutation-gdvy8fx6.js → app-3fc6dm20.js} +4 -4
- package/dist/chunks/{location-mutation-3hepkmqq.js → app-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-mutation-my9h9hzg.js → app-3n3mkc0a.js} +17 -17
- package/dist/chunks/{location-mutation-3smtnn6g.js → app-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-mutation-3tvqynh2.js → app-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-mutation-3w0fmcng.js → app-3w0fmcng.js} +2 -2
- package/dist/chunks/{location-mutation-hc5qqzdn.js → app-42kdnm7d.js} +21 -21
- package/dist/chunks/{location-mutation-drdaqm2t.js → app-43zrvxpc.js} +9 -9
- package/dist/chunks/{location-mutation-vyjzrkx0.js → app-4780s8zr.js} +9 -9
- package/dist/chunks/{location-mutation-6m887wqr.js → app-48gcqyvg.js} +56 -56
- package/dist/chunks/{location-mutation-bzx022j9.js → app-4c96ywbw.js} +24 -24
- package/dist/chunks/{location-mutation-gsqtb8jw.js → app-4cc7n46c.js} +11 -11
- package/dist/chunks/{location-mutation-3w5dy25f.js → app-4dn6zthd.js} +41 -41
- package/dist/chunks/{location-mutation-crjd20w0.js → app-4kf284a7.js} +30 -30
- package/dist/chunks/{location-mutation-tw9m5efe.js → app-4tbcec2e.js} +8 -8
- package/dist/chunks/{location-mutation-kksf6wrm.js → app-4w8bkcbc.js} +5 -5
- package/dist/chunks/{location-mutation-ssb1z7k2.js → app-51fr0269.js} +3 -3
- package/dist/chunks/{location-mutation-vaw4v3ea.js → app-5bwht4jk.js} +60 -60
- package/dist/chunks/{location-mutation-5daktx2q.js → app-5daktx2q.js} +1 -1
- package/dist/chunks/{location-mutation-wmafn4dk.js → app-5ez3bzvb.js} +14 -14
- package/dist/chunks/{location-mutation-4x302fsb.js → app-5fgxrtk2.js} +33 -33
- package/dist/chunks/{location-mutation-8daqk3xn.js → app-5hkzjqtx.js} +39 -39
- package/dist/chunks/{location-mutation-4vm7bp65.js → app-5knb1gak.js} +22 -22
- package/dist/chunks/{location-mutation-5t3nmthw.js → app-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-mutation-rs7v9e6v.js → app-5wfnjyr5.js} +30 -30
- package/dist/chunks/{location-mutation-95nc2sbg.js → app-5yzdr05p.js} +9 -9
- package/dist/chunks/{location-mutation-rtqz3zzf.js → app-5z0pm3qf.js} +19 -19
- package/dist/chunks/{location-mutation-mc2qpn0s.js → app-65t0cekt.js} +22 -22
- package/dist/chunks/{location-mutation-669tq793.js → app-669tq793.js} +1 -1
- package/dist/chunks/{location-mutation-fqpps30f.js → app-6h5qj7gd.js} +6 -6
- package/dist/chunks/{location-mutation-6h73sxmp.js → app-6h73sxmp.js} +1 -1
- package/dist/chunks/{location-mutation-watqcrva.js → app-6j6s7zvs.js} +2 -2
- package/dist/chunks/{location-mutation-6msgmcgs.js → app-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-mutation-4ggq81fe.js → app-6r540pcs.js} +6 -6
- package/dist/chunks/{location-mutation-zm47b27w.js → app-6w8af2k5.js} +20 -20
- package/dist/chunks/{location-mutation-rnkhefmk.js → app-6xkfsm7b.js} +9 -9
- package/dist/chunks/{location-mutation-3dqftnvs.js → app-710w2ech.js} +1 -1
- package/dist/chunks/{location-mutation-71q4at8m.js → app-71q4at8m.js} +1 -1
- package/dist/chunks/{location-mutation-ezq2qp9g.js → app-7500bbe6.js} +11 -11
- package/dist/chunks/{location-mutation-e2vt25n2.js → app-78y0k101.js} +20 -20
- package/dist/chunks/{location-mutation-7bmhse3q.js → app-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-mutation-080yxg7k.js → app-7q67896j.js} +13 -13
- package/dist/chunks/{location-mutation-385yzhyd.js → app-80sf1axt.js} +14 -14
- package/dist/chunks/{location-mutation-2jgd78gq.js → app-813w40n4.js} +87 -87
- package/dist/chunks/{location-mutation-9pv0dm11.js → app-81swgkk7.js} +9 -9
- package/dist/chunks/{location-mutation-dsxqmp7c.js → app-85ngaffe.js} +86 -86
- package/dist/chunks/{location-mutation-d9fmyqsb.js → app-89ey782f.js} +4 -4
- package/dist/chunks/{location-mutation-8d7r5vzw.js → app-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-mutation-rqzy1ewj.js → app-8j7gtpby.js} +1 -1
- package/dist/chunks/{location-mutation-4w92ht60.js → app-8nxecek8.js} +5 -5
- package/dist/chunks/{location-mutation-8p4f9s12.js → app-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-mutation-090d9x51.js → app-8psdzq5d.js} +33 -33
- package/dist/chunks/{location-mutation-2dchnhcv.js → app-8qk9tw02.js} +1 -1
- package/dist/chunks/{location-mutation-4yqnhzhd.js → app-8xn61e7a.js} +4 -4
- package/dist/chunks/{location-mutation-zycm96ct.js → app-94qkxzny.js} +4 -4
- package/dist/chunks/{location-mutation-jt7ywd0b.js → app-99m6at3m.js} +11 -11
- package/dist/chunks/{location-mutation-g47vrvhs.js → app-9gz2peze.js} +7 -7
- package/dist/chunks/{location-mutation-awpbsmrw.js → app-9k7d7sqa.js} +7 -7
- package/dist/chunks/{location-mutation-8r15tr8a.js → app-9pcza0f3.js} +8 -8
- package/dist/chunks/{location-mutation-r2qzv5a7.js → app-9qn3qky1.js} +8 -8
- package/dist/chunks/{location-mutation-6gmnnrt6.js → app-9shj9c1g.js} +30 -30
- package/dist/chunks/{location-mutation-5nxfjrr3.js → app-9t2pzca1.js} +16 -16
- package/dist/chunks/{location-mutation-9ps2pggw.js → app-9v7a85mc.js} +6 -6
- package/dist/chunks/{location-mutation-vsv68ttx.js → app-a0z9avay.js} +13 -13
- package/dist/chunks/{location-mutation-a1bz86dw.js → app-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-mutation-k0pv4tct.js → app-a1h69kzv.js} +11 -11
- package/dist/chunks/{location-mutation-rs95a90c.js → app-a1pjw3e1.js} +22 -22
- package/dist/chunks/{location-mutation-rv3dfgbk.js → app-a402vz1p.js} +25 -25
- package/dist/chunks/{location-mutation-r58s3aqr.js → app-a4bvw9dz.js} +5 -5
- package/dist/chunks/{location-mutation-78x7f3ty.js → app-a91wscfd.js} +9 -9
- package/dist/chunks/{location-mutation-8nv6ekx5.js → app-a9ab9jmj.js} +5 -5
- package/dist/chunks/{location-mutation-aaet6srn.js → app-aaet6srn.js} +2 -2
- package/dist/chunks/{location-mutation-fpqwst5z.js → app-ahxexsmd.js} +26 -26
- package/dist/chunks/{location-mutation-0e7nvs8b.js → app-aswh65bz.js} +30 -30
- package/dist/chunks/{location-mutation-pxf12as1.js → app-b2g5v7p2.js} +9 -9
- package/dist/chunks/{location-mutation-e6k7hz6j.js → app-b4f5v53j.js} +25 -25
- package/dist/chunks/{location-mutation-b6gygkdw.js → app-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-mutation-ghk9cxjs.js → app-b99w0g26.js} +6 -6
- package/dist/chunks/{location-mutation-ycvksfe9.js → app-baxrspjs.js} +21 -21
- package/dist/chunks/{location-mutation-kc5hk0w3.js → app-bbhatyce.js} +30 -30
- package/dist/chunks/{location-mutation-vncycja5.js → app-bct739vz.js} +4 -4
- package/dist/chunks/{location-mutation-cq37gk0t.js → app-bha4atvq.js} +4 -4
- package/dist/chunks/{location-mutation-a9yybgxj.js → app-bjqqhdfh.js} +20 -20
- package/dist/chunks/{location-mutation-5r7abtjb.js → app-bm2nqsn9.js} +8 -8
- package/dist/chunks/{location-mutation-rrmx6085.js → app-bmb0s36t.js} +23 -23
- package/dist/chunks/{location-mutation-h6nsps6f.js → app-bv56xrks.js} +8 -8
- package/dist/chunks/{location-mutation-zycx2ktx.js → app-bwd5s895.js} +12 -12
- package/dist/chunks/{location-mutation-wbmrxx9p.js → app-bznq0221.js} +169 -169
- package/dist/chunks/{location-mutation-6pzk0tbd.js → app-c0m0qq75.js} +18 -18
- package/dist/chunks/{location-mutation-6n88yxkj.js → app-c1495ybz.js} +8 -8
- package/dist/chunks/{location-mutation-c2k3x2kh.js → app-c9sbvd2s.js} +9 -9
- package/dist/chunks/{location-mutation-cfpkc3c9.js → app-cfpkc3c9.js} +2 -2
- package/dist/chunks/{location-mutation-4ymkhcds.js → app-cm2fs4jy.js} +18 -18
- package/dist/chunks/{location-mutation-y8p3zjbc.js → app-cn43q6qa.js} +8 -8
- package/dist/chunks/{location-mutation-tz4n1mmd.js → app-ctmr8zqa.js} +4 -4
- package/dist/chunks/{location-mutation-xfagbf0j.js → app-cxwzzg52.js} +11 -11
- package/dist/chunks/{location-mutation-9198tjt8.js → app-d9xjrm20.js} +16 -16
- package/dist/chunks/{location-mutation-q2wkz0b5.js → app-dc5wh9st.js} +19 -19
- package/dist/chunks/{location-mutation-dpkg50ah.js → app-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-mutation-7adcerzg.js → app-drqds5np.js} +36 -36
- package/dist/chunks/{location-mutation-9fmb6jsc.js → app-dv02zjab.js} +15 -15
- package/dist/chunks/{location-mutation-nq9qg1fa.js → app-dvwg6a7w.js} +5 -5
- package/dist/chunks/app-e3dbktjq.js +22 -0
- package/dist/chunks/{location-mutation-7gjhgsed.js → app-e8163x7b.js} +11 -11
- package/dist/chunks/{location-mutation-rhjbct0v.js → app-eaj1djv9.js} +8 -8
- package/dist/chunks/{location-mutation-j5208yae.js → app-edme2h3e.js} +9 -9
- package/dist/chunks/{location-mutation-r1vajnqg.js → app-encrv3jm.js} +20 -20
- package/dist/chunks/{location-mutation-zr8vjmmw.js → app-esqr7hwz.js} +15 -15
- package/dist/chunks/{location-mutation-etq0c3wd.js → app-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-mutation-4n15vdsh.js → app-ett1kwgn.js} +13 -13
- package/dist/chunks/{location-mutation-ttt2pthn.js → app-etx20tfd.js} +36 -36
- package/dist/chunks/{location-mutation-w6x96kp1.js → app-eyvdh9jh.js} +4 -4
- package/dist/chunks/{location-mutation-r8dsc003.js → app-f1qhv5yx.js} +27 -27
- package/dist/chunks/{location-mutation-ww7tzrk1.js → app-f2rv3mpp.js} +47 -47
- package/dist/chunks/{location-mutation-k2h4r4s0.js → app-f3ngv102.js} +4 -4
- package/dist/chunks/{location-mutation-f828m53h.js → app-f828m53h.js} +2 -2
- package/dist/chunks/{location-mutation-mgtytz9t.js → app-fa0cr6zp.js} +3 -3
- package/dist/chunks/{location-mutation-nwrfcwym.js → app-fb0jezgx.js} +15 -15
- package/dist/chunks/{location-mutation-t3w9f47z.js → app-ffx4mq6v.js} +1 -1
- package/dist/chunks/{location-mutation-9epaz3x0.js → app-fhwp9j6e.js} +7 -7
- package/dist/chunks/{location-mutation-2mt51k4p.js → app-fkc946qs.js} +13 -13
- package/dist/chunks/{location-mutation-z6mfc8hp.js → app-fs5fhd3k.js} +26 -26
- package/dist/chunks/{location-mutation-fxbjtjnd.js → app-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-mutation-bcaqsvj6.js → app-fzdjvg09.js} +23 -23
- package/dist/chunks/{location-mutation-r12caqqb.js → app-g4t6kbgy.js} +11 -11
- package/dist/chunks/{location-mutation-g196q5ga.js → app-gc25hdrq.js} +20 -20
- package/dist/chunks/{location-mutation-gd4qta3r.js → app-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-mutation-q52tmxvy.js → app-gfsay0az.js} +15 -15
- package/dist/chunks/{location-mutation-kcm7gb9h.js → app-gkxj5maj.js} +17 -17
- package/dist/chunks/{location-mutation-gv6a8nnw.js → app-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-mutation-545xcy3v.js → app-gvmmzmye.js} +20 -20
- package/dist/chunks/{location-mutation-h03wrkyp.js → app-h03wrkyp.js} +2 -2
- package/dist/chunks/{location-mutation-ngjzpzgr.js → app-h158amkk.js} +8 -8
- package/dist/chunks/{location-mutation-gyq4aabv.js → app-h3kjspbj.js} +20 -20
- package/dist/chunks/{location-mutation-76dehvxn.js → app-h4rgb3bg.js} +8 -8
- package/dist/chunks/{location-mutation-p22jdjzb.js → app-h6ffn5hc.js} +11 -11
- package/dist/chunks/{location-mutation-h6vf3j39.js → app-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-mutation-qqmmwjzc.js → app-h7sfp9jq.js} +7 -7
- package/dist/chunks/{location-mutation-123pna3q.js → app-hbq44aga.js} +18 -18
- package/dist/chunks/app-hgd4btym.js +18 -0
- package/dist/chunks/{location-mutation-47gsdddb.js → app-hjt4xg1x.js} +7 -7
- package/dist/chunks/{location-mutation-j56e64zr.js → app-j56e64zr.js} +1 -1
- package/dist/chunks/{location-mutation-js0rm7nb.js → app-jdh6s7jq.js} +8 -8
- package/dist/chunks/{location-mutation-sz3a6x34.js → app-jemrr7f4.js} +26 -26
- package/dist/chunks/{location-mutation-dv6dc4x6.js → app-jezcp19q.js} +8 -8
- package/dist/chunks/{location-mutation-27eq3hnx.js → app-jn4c8fdh.js} +8 -8
- package/dist/chunks/{location-mutation-nxcn73z5.js → app-jsfcx0sm.js} +9 -9
- package/dist/chunks/{location-mutation-cay3r0qb.js → app-jygyrd66.js} +4 -4
- package/dist/chunks/{location-mutation-sdnaceaw.js → app-kaxfk2j5.js} +6 -6
- package/dist/chunks/{location-mutation-kg06axw8.js → app-kg06axw8.js} +1 -1
- package/dist/chunks/{location-mutation-9237j28x.js → app-kjq4p8hx.js} +16 -16
- package/dist/chunks/{location-mutation-84t3vnx7.js → app-knwk0fn4.js} +2 -2
- package/dist/chunks/{location-mutation-4ah5m7dw.js → app-ktcgqmkw.js} +6 -6
- package/dist/chunks/{location-mutation-m86bx8pg.js → app-ktgea0e0.js} +2 -2
- package/dist/chunks/{location-mutation-y7h51c3z.js → app-kvgamsrw.js} +37 -37
- package/dist/chunks/{location-mutation-6t52233q.js → app-m9t3cpvg.js} +30 -30
- package/dist/chunks/{location-mutation-m9w0rfyh.js → app-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-mutation-1bbkgx8g.js → app-mhkvc446.js} +3 -3
- package/dist/chunks/{location-mutation-ts62jcg3.js → app-mjjddmmn.js} +15 -15
- package/dist/chunks/{location-mutation-mkcjrzeh.js → app-mkcjrzeh.js} +1 -1
- package/dist/chunks/{location-mutation-0g18c8jp.js → app-mygm96m8.js} +13 -13
- package/dist/chunks/{location-mutation-c4r800sx.js → app-n4a0kzxz.js} +59 -59
- package/dist/chunks/{location-mutation-sggvzg7x.js → app-n5k8tdrn.js} +24 -24
- package/dist/chunks/{location-mutation-egkp1q9v.js → app-n7mnjzkb.js} +5 -5
- package/dist/chunks/{location-mutation-s6pp54ct.js → app-nd5nzycz.js} +8 -8
- package/dist/chunks/{location-mutation-wsrtz5x5.js → app-nka8n5hw.js} +20 -20
- package/dist/chunks/{location-mutation-byvcghq4.js → app-nw3bhhr3.js} +22 -22
- package/dist/chunks/{location-mutation-3kk8mamv.js → app-nyhxp1gd.js} +32 -32
- package/dist/chunks/{location-mutation-ras7gexc.js → app-p0cja4mf.js} +5 -5
- package/dist/chunks/{location-mutation-t0x5rdq8.js → app-p1wf2k30.js} +9 -9
- package/dist/chunks/{location-mutation-xhqkdcr0.js → app-p72z5xx6.js} +2 -2
- package/dist/chunks/{location-mutation-jnehgznh.js → app-p7ek7nyz.js} +24 -24
- package/dist/chunks/{location-mutation-b2yhkeqr.js → app-p7w6t1ry.js} +11 -11
- package/dist/chunks/{location-mutation-yjrvv3jh.js → app-p7zfmd1x.js} +9 -9
- package/dist/chunks/{location-mutation-rsdf2nvv.js → app-paegk39x.js} +4 -4
- package/dist/chunks/{location-mutation-pjvnvgmy.js → app-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-mutation-pknna89w.js → app-pknna89w.js} +1 -1
- package/dist/chunks/{location-mutation-42m4w0gd.js → app-pp2b87e8.js} +24 -24
- package/dist/chunks/{location-mutation-dw3vbsxg.js → app-prbcj3gk.js} +26 -26
- package/dist/chunks/{location-mutation-q316qzt7.js → app-q17fbf64.js} +18 -18
- package/dist/chunks/{location-mutation-mx1dcdcs.js → app-q21acaj2.js} +45 -45
- package/dist/chunks/{location-mutation-g1ryce64.js → app-q7h3k2fz.js} +19 -19
- package/dist/chunks/app-qapv375x.js +4 -0
- package/dist/chunks/{location-mutation-ae9b13mv.js → app-qbz333be.js} +15 -15
- package/dist/chunks/{location-mutation-510m7gjw.js → app-qn4ba14w.js} +5 -5
- package/dist/chunks/{location-mutation-qsdy395h.js → app-qsdy395h.js} +1 -1
- package/dist/chunks/{location-mutation-p5nxgrb7.js → app-qvb0z7t1.js} +12 -12
- package/dist/chunks/{location-mutation-481njsdn.js → app-qvb3nf84.js} +8 -8
- package/dist/chunks/{location-mutation-dh1thg5k.js → app-r6a9556n.js} +11 -11
- package/dist/chunks/{location-mutation-gxayccxh.js → app-rxfq5agb.js} +16 -16
- package/dist/chunks/{location-mutation-9197vs9x.js → app-s1qtxqw8.js} +33 -33
- package/dist/chunks/{location-mutation-1317kfkp.js → app-s1zp1szz.js} +34 -34
- package/dist/chunks/{location-mutation-xq8c8dbz.js → app-s442qdb8.js} +4 -4
- package/dist/chunks/{location-mutation-7bdqbdfj.js → app-s5qhvm9t.js} +3 -3
- package/dist/chunks/{location-mutation-45796egf.js → app-s7xtjryh.js} +1 -1
- package/dist/chunks/{location-mutation-hkfg6fzm.js → app-s8zy8myc.js} +5 -5
- package/dist/chunks/{location-mutation-6jn5f8v1.js → app-sd81gef5.js} +39 -39
- package/dist/chunks/{location-mutation-tm7zr4pr.js → app-shh6fz4q.js} +4 -4
- package/dist/chunks/{location-mutation-844ef7ks.js → app-skwbfvjy.js} +8 -8
- package/dist/chunks/{location-mutation-qq97xfyz.js → app-sqcc4mye.js} +3 -3
- package/dist/chunks/{location-mutation-pwjmm335.js → app-ssw3spj3.js} +20 -20
- package/dist/chunks/{location-mutation-h5f79651.js → app-sxamkkn3.js} +13 -13
- package/dist/chunks/{location-mutation-6hh8tjw2.js → app-sxz6gkc3.js} +5 -5
- package/dist/chunks/{location-mutation-rmm45jmv.js → app-sykc9y4a.js} +5 -5
- package/dist/chunks/{location-mutation-v71xcev7.js → app-t9e6e84n.js} +1 -1
- package/dist/chunks/{location-mutation-tazgh4e4.js → app-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-mutation-tcezcvh9.js → app-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-mutation-tdstcens.js → app-tdstcens.js} +1 -1
- package/dist/chunks/{location-mutation-4wmmbnna.js → app-tjznhfde.js} +24 -24
- package/dist/chunks/app-tvke6c6x.js +247 -0
- package/dist/chunks/{location-mutation-tvtrv512.js → app-tvtrv512.js} +1 -1
- package/dist/chunks/{location-mutation-w53767ff.js → app-v4924766.js} +16 -16
- package/dist/chunks/{location-mutation-mkzzj3z7.js → app-vazqxjkf.js} +22 -22
- package/dist/chunks/{location-mutation-qpv0by5y.js → app-vdshzfmb.js} +26 -26
- package/dist/chunks/{location-mutation-veqvce7d.js → app-veqvce7d.js} +1 -1
- package/dist/chunks/{location-mutation-8g5sjpkg.js → app-vwng0m0h.js} +28 -28
- package/dist/chunks/{location-mutation-vzcthcp8.js → app-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-mutation-w3wsvvr9.js → app-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-mutation-135pcv3x.js → app-w5tc36wx.js} +22 -22
- package/dist/chunks/{location-mutation-wx9wy1qm.js → app-w79zsp0s.js} +1 -1
- package/dist/chunks/{location-mutation-29qpr4zm.js → app-wcy61h1j.js} +29 -29
- package/dist/chunks/{location-mutation-wd87259q.js → app-wd87259q.js} +1 -1
- package/dist/chunks/{location-mutation-v4ctacay.js → app-wjxh5jm8.js} +28 -28
- package/dist/chunks/{location-mutation-mf4542vt.js → app-wmqqfp92.js} +25 -25
- package/dist/chunks/{location-mutation-zw7fcf2s.js → app-wpmwtbt6.js} +51 -51
- package/dist/chunks/{location-mutation-9sbv9g2h.js → app-wqny05z1.js} +18 -18
- package/dist/chunks/{location-mutation-kvb4wp4j.js → app-wqvbafvh.js} +10 -10
- package/dist/chunks/{location-mutation-x1ezjp6w.js → app-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-mutation-x43y2vfs.js → app-x43y2vfs.js} +2 -2
- package/dist/chunks/{location-mutation-h42j1xnf.js → app-x8jze1wy.js} +39 -39
- package/dist/chunks/{location-mutation-vb6hmp0d.js → app-xrqdjzmv.js} +23 -23
- package/dist/chunks/{location-mutation-yw151kp9.js → app-y18m38x5.js} +18 -18
- package/dist/chunks/{location-mutation-y1fvbwt7.js → app-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-mutation-b8b3f19r.js → app-y243eewg.js} +9 -9
- package/dist/chunks/{location-mutation-0qdvrgkw.js → app-y40yxsg3.js} +36 -36
- package/dist/chunks/{location-mutation-n9v9edgr.js → app-y70rvmaz.js} +28 -28
- package/dist/chunks/{location-mutation-ymp004yg.js → app-ycga8mfj.js} +5 -5
- package/dist/chunks/{location-mutation-9edcvf27.js → app-yn3zm7tz.js} +10 -10
- package/dist/chunks/app-yn7as3j3.js +462 -0
- package/dist/chunks/{location-mutation-yrhqyw5v.js → app-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-mutation-yrznvahk.js → app-yrznvahk.js} +2 -2
- package/dist/chunks/{location-mutation-z0bkrqjs.js → app-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-mutation-z63w68vq.js → app-z63w68vq.js} +2 -2
- package/dist/chunks/{location-mutation-b6ynejew.js → app-z8spactq.js} +27 -27
- package/dist/chunks/{location-mutation-qpp7njgw.js → app-zc7dc76e.js} +41 -41
- package/dist/chunks/{location-mutation-y3gn6rnp.js → app-zcpy7hb5.js} +43 -43
- package/dist/chunks/{location-mutation-zeh9ct20.js → app-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-mutation-zr2ceqn5.js → app-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-mutation-4hjsykte.js → app-zrt558wv.js} +9 -9
- package/dist/chunks/{location-mutation-s1a57xgp.js → app-zxgnc9zk.js} +1 -1
- package/dist/chunks/{location-mutation-zxq2ej10.js → app-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -117
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -362
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +84 -84
- package/dist/generate.js +91 -91
- 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 +7 -7
- 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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +353 -353
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +75 -75
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +129 -129
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +350 -350
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +4 -4
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +76 -76
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +104 -104
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +76 -76
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +7 -7
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +94 -94
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +82 -82
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +125 -125
- package/dist/session/context.js +147 -147
- 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 +217 -217
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +148 -148
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +111 -111
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -223
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +81 -81
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +82 -82
- 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 +119 -119
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +96 -96
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +2 -2
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +75 -75
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +342 -342
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +91 -91
- package/package.json +8 -8
- package/dist/chunks/location-mutation-0mesazry.js +0 -4
- package/dist/chunks/location-mutation-0nzs2ddd.js +0 -462
- package/dist/chunks/location-mutation-4v7qdvcn.js +0 -18
- package/dist/chunks/location-mutation-8vq1702j.js +0 -22
- package/dist/chunks/location-mutation-hmjqf0ee.js +0 -247
- /package/dist/chunks/{location-mutation-0qkdqm5v.js → app-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-mutation-0zkw76rk.js → app-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-mutation-17cy0kzp.js → app-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-mutation-1cnp2v09.js → app-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-mutation-1kg9ymc8.js → app-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-mutation-2710q6r3.js → app-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-mutation-2axfhc9x.js → app-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-mutation-2c3vjs8z.js → app-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-mutation-359p4xyc.js → app-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-mutation-3asan66x.js → app-3asan66x.js} +0 -0
- /package/dist/chunks/{location-mutation-3v8g72cx.js → app-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-mutation-3w5fmr99.js → app-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-mutation-3wcehsnq.js → app-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-mutation-43n2bw4t.js → app-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-mutation-4knz6hnm.js → app-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-mutation-4y7fprxs.js → app-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-mutation-53557ph1.js → app-53557ph1.js} +0 -0
- /package/dist/chunks/{location-mutation-550bvhaj.js → app-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-mutation-6prwharc.js → app-6prwharc.js} +0 -0
- /package/dist/chunks/{location-mutation-7akdwqpd.js → app-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-mutation-7m9af43g.js → app-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-mutation-822emrt2.js → app-822emrt2.js} +0 -0
- /package/dist/chunks/{location-mutation-88xbtdfr.js → app-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-mutation-8n3pysct.js → app-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-mutation-922hggd3.js → app-922hggd3.js} +0 -0
- /package/dist/chunks/{location-mutation-9a4afbnw.js → app-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-mutation-9rqn6x4v.js → app-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-mutation-a1tpkmh4.js → app-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{location-mutation-a6k6eb26.js → app-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-mutation-af5trqkr.js → app-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-mutation-afrmfg78.js → app-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-mutation-aqzs7mqg.js → app-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-mutation-atq7p7m5.js → app-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-mutation-bkyjaxrp.js → app-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-mutation-bmr6ed5q.js → app-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-mutation-cf4snx6d.js → app-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-mutation-cvy3z8tj.js → app-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-mutation-d9fn303g.js → app-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-mutation-d9jj8t3e.js → app-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-mutation-dajrwvna.js → app-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-mutation-dap0rakb.js → app-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-mutation-df08tz66.js → app-df08tz66.js} +0 -0
- /package/dist/chunks/{location-mutation-dy18nga0.js → app-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-mutation-e5kj55wp.js → app-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-mutation-e73j6tqm.js → app-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-mutation-ec1grn59.js → app-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-mutation-eh3zwz77.js → app-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-mutation-emrn6kk6.js → app-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-mutation-f0mxakyp.js → app-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-mutation-f6n9ztr4.js → app-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-mutation-faypxj3z.js → app-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-mutation-fd410y7t.js → app-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-mutation-fxgpk5d8.js → app-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-mutation-g4wezp1m.js → app-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-mutation-g86h250q.js → app-g86h250q.js} +0 -0
- /package/dist/chunks/{location-mutation-gebd4c9n.js → app-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-mutation-gftt206x.js → app-gftt206x.js} +0 -0
- /package/dist/chunks/{location-mutation-hjbc5kem.js → app-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-mutation-hk9envan.js → app-hk9envan.js} +0 -0
- /package/dist/chunks/{location-mutation-hrnqkpcd.js → app-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{location-mutation-j2ntwpah.js → app-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-mutation-j5zkgpj8.js → app-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-mutation-jr7sbwjy.js → app-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-mutation-jwfs4k6c.js → app-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-mutation-jzg6c2d5.js → app-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mutation-mp448xyj.js → app-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-mutation-msx8hqn2.js → app-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-mutation-n05xt0ee.js → app-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-mutation-n3j8tn72.js → app-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-mutation-njntx4h6.js → app-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-mutation-paphc93g.js → app-paphc93g.js} +0 -0
- /package/dist/chunks/{location-mutation-q3sfg36h.js → app-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-mutation-q74kybfr.js → app-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-mutation-qaymkmh1.js → app-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-mutation-qb87gjwd.js → app-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-mutation-qfa1cgps.js → app-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-mutation-qrg20bc0.js → app-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-mutation-rcb2kzg1.js → app-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-mutation-sdp7kfr6.js → app-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-mutation-sk3qaz4a.js → app-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-mutation-ssg3fenm.js → app-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-mutation-twg0f83k.js → app-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-mutation-w803qqfp.js → app-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-mutation-wer8tq1h.js → app-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-mutation-wtztk69x.js → app-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-mutation-x0ckcb58.js → app-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-mutation-x61499pn.js → app-x61499pn.js} +0 -0
- /package/dist/chunks/{location-mutation-y44na4kk.js → app-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-mutation-y8cydn3q.js → app-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-mutation-ygaqb7jw.js → app-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-mutation-ym463w8f.js → app-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-mutation-z9919s4g.js → app-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
loadPackage2,
|
|
6
6
|
mergeOverlay2,
|
|
7
7
|
mergeHeaders2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./app-9qn3qky1.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service65,
|
|
11
|
+
node70
|
|
12
|
+
} from "./app-p7w6t1ry.js";
|
|
13
13
|
import {
|
|
14
14
|
map2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./app-6j6s7zvs.js";
|
|
16
16
|
import {
|
|
17
17
|
ID5,
|
|
18
18
|
VariantID2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Ref2
|
|
20
|
+
} from "./app-9gz2peze.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID6,
|
|
23
|
+
Service51,
|
|
24
|
+
node54
|
|
25
|
+
} from "./app-5fgxrtk2.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
27
|
+
Service50,
|
|
28
|
+
node53
|
|
29
|
+
} from "./app-ahxexsmd.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./app-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/model-resolver.ts
|
|
35
35
|
var exports_model_resolver = {};
|
|
36
36
|
__export(exports_model_resolver, {
|
|
37
37
|
ModelResolver: () => exports_model_resolver,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service49,
|
|
39
39
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
40
40
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
41
41
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
42
42
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
43
43
|
fromCatalogModel: () => fromCatalogModel2,
|
|
44
44
|
hasPackage: () => hasPackage2,
|
|
45
|
-
layer: () =>
|
|
46
|
-
node: () =>
|
|
45
|
+
layer: () => layer22,
|
|
46
|
+
node: () => node52,
|
|
47
47
|
resolveModel: () => resolveModel2,
|
|
48
48
|
withVariant: () => withVariant2
|
|
49
49
|
});
|
|
@@ -53,7 +53,7 @@ import { Auth } from "@opencode/ai/route";
|
|
|
53
53
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
54
54
|
import { Npm } from "@opencode/util/npm";
|
|
55
55
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
56
|
-
providerID:
|
|
56
|
+
providerID: ID12,
|
|
57
57
|
modelID: ID5,
|
|
58
58
|
variant: VariantID2
|
|
59
59
|
}) {
|
|
@@ -63,7 +63,7 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
66
|
-
providerID:
|
|
66
|
+
providerID: ID12,
|
|
67
67
|
modelID: ID5,
|
|
68
68
|
package: Schema.String
|
|
69
69
|
}) {
|
|
@@ -73,7 +73,7 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
76
|
-
providerID:
|
|
76
|
+
providerID: ID12,
|
|
77
77
|
modelID: ID5,
|
|
78
78
|
variables: Schema.Array(Schema.String)
|
|
79
79
|
}) {
|
|
@@ -83,7 +83,7 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
86
|
-
providerID:
|
|
86
|
+
providerID: ID12,
|
|
87
87
|
modelID: ID5,
|
|
88
88
|
route: Schema.String
|
|
89
89
|
}) {
|
|
@@ -92,7 +92,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service49 extends Context.Service()("@opencode/ModelResolver") {
|
|
96
96
|
}
|
|
97
97
|
var withVariant2 = (model, variantID) => {
|
|
98
98
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -218,14 +218,14 @@ var unsupported = (model) => new UnsupportedPackageError3({
|
|
|
218
218
|
});
|
|
219
219
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
220
220
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
221
|
-
var
|
|
222
|
-
const catalog = yield*
|
|
223
|
-
const integrations = yield*
|
|
221
|
+
var layer22 = Layer.effect(Service49, Effect.gen(function* () {
|
|
222
|
+
const catalog = yield* Service50;
|
|
223
|
+
const integrations = yield* Service51;
|
|
224
224
|
const npm = yield* Npm.Service;
|
|
225
|
-
const aisdk = yield*
|
|
225
|
+
const aisdk = yield* Service65;
|
|
226
226
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
227
227
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
228
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
228
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID6.make(selected.providerID));
|
|
229
229
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
230
230
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
231
231
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -235,7 +235,7 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
235
235
|
const runtime = provider?.activation === "enabled" && credential === undefined && !hasConfiguredAuth(runtimeInfo) && usesAPIKeyAuth(runtimeInfo.package) ? LanguageModel.update(model, { route: model.route.with({ auth: Auth.none }) }) : model;
|
|
236
236
|
return {
|
|
237
237
|
model: runtime,
|
|
238
|
-
ref:
|
|
238
|
+
ref: Ref2.make({
|
|
239
239
|
id: selected.id,
|
|
240
240
|
providerID: selected.providerID,
|
|
241
241
|
...variant === undefined ? {} : { variant }
|
|
@@ -246,7 +246,7 @@ var layer19 = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
246
246
|
compaction: selected.compaction
|
|
247
247
|
};
|
|
248
248
|
});
|
|
249
|
-
return
|
|
249
|
+
return Service49.of({
|
|
250
250
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
251
251
|
const selected = requested ? yield* catalog.model.get(requested.providerID, requested.id) : yield* catalog.model.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(catalog.model.available(), (models) => models.find(hasPackage2))));
|
|
252
252
|
if (!selected)
|
|
@@ -263,10 +263,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
263
263
|
const name = packageName2(packageName);
|
|
264
264
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
265
265
|
}
|
|
266
|
-
var
|
|
267
|
-
service:
|
|
268
|
-
layer:
|
|
269
|
-
deps: [
|
|
266
|
+
var node52 = makeLocationNode({
|
|
267
|
+
service: Service49,
|
|
268
|
+
layer: layer22,
|
|
269
|
+
deps: [node53, node54, Npm.node, node70]
|
|
270
270
|
});
|
|
271
271
|
|
|
272
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
272
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service49, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node52, exports_model_resolver };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./app-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./app-9qn3qky1.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./app-9gz2peze.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./app-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service71
|
|
6
|
+
} from "./app-kjq4p8hx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service66
|
|
9
|
+
} from "./app-9t2pzca1.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service6
|
|
12
|
+
} from "./app-78y0k101.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./app-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service5
|
|
27
|
+
} from "./app-esqr7hwz.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./app-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input9,
|
|
36
|
+
Plugin: () => Plugin22,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name9,
|
|
39
|
+
toModelContent: () => toModelContent5
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name9 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input9 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin22 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service5;
|
|
62
|
+
const access = yield* Service66;
|
|
63
|
+
const sessionInstructions = yield* Service6;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service71;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name9,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input9,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin6 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent5(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -144,7 +144,7 @@ ${suggestions.join(`
|
|
|
144
144
|
});
|
|
145
145
|
})
|
|
146
146
|
};
|
|
147
|
-
var
|
|
147
|
+
var toModelContent5 = (path, offset, output) => {
|
|
148
148
|
if (output.type === "file" && output.encoding === "base64")
|
|
149
149
|
return [
|
|
150
150
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -179,4 +179,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
179
179
|
`);
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { name9, Input9, Plugin22, toModelContent5, exports_read };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
Service80,
|
|
6
|
-
node85
|
|
7
|
-
} from "./location-mutation-dh1thg5k.js";
|
|
8
|
-
import {
|
|
9
|
-
Service79,
|
|
10
|
-
node84
|
|
11
|
-
} from "./location-mutation-9198tjt8.js";
|
|
3
|
+
} from "./app-922hggd3.js";
|
|
12
4
|
import {
|
|
13
5
|
Service77,
|
|
14
6
|
node82
|
|
15
|
-
} from "./
|
|
7
|
+
} from "./app-r6a9556n.js";
|
|
8
|
+
import {
|
|
9
|
+
Service76,
|
|
10
|
+
node81
|
|
11
|
+
} from "./app-d9xjrm20.js";
|
|
12
|
+
import {
|
|
13
|
+
Service73,
|
|
14
|
+
node78
|
|
15
|
+
} from "./app-yn3zm7tz.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info33,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./app-81swgkk7.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./app-8p4f9s12.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./app-cfpkc3c9.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./app-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID17,
|
|
40
|
+
Info: () => Info32,
|
|
41
|
+
NotFoundError: () => NotFoundError9,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service72,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node77,
|
|
47
47
|
root: () => root2
|
|
48
48
|
});
|
|
49
49
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
55
55
|
import { AppProcess } from "@opencode/util/process";
|
|
56
56
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
57
57
|
import { Hash } from "@opencode/util/hash";
|
|
58
|
-
var
|
|
58
|
+
var ID17 = ID18;
|
|
59
59
|
var Vcs2 = Vcs3;
|
|
60
60
|
var Current2 = Current3;
|
|
61
|
-
var
|
|
61
|
+
var Info32 = Info33;
|
|
62
62
|
var UpdateInput3 = UpdateInput4;
|
|
63
63
|
|
|
64
|
-
class
|
|
65
|
-
projectID:
|
|
64
|
+
class NotFoundError9 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
65
|
+
projectID: ID17
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -71,7 +71,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service72 extends Context.Service()("@opencode/Project") {
|
|
75
75
|
}
|
|
76
76
|
function fromRow(row) {
|
|
77
77
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -94,12 +94,12 @@ function fromRow(row) {
|
|
|
94
94
|
sandboxes: row.sandboxes
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
97
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
|
-
const git = yield*
|
|
99
|
+
const git = yield* Service73;
|
|
100
100
|
const proc = yield* AppProcess.Service;
|
|
101
|
-
const bus = yield*
|
|
102
|
-
const db = (yield*
|
|
101
|
+
const bus = yield* Service76;
|
|
102
|
+
const db = (yield* Service77).db;
|
|
103
103
|
const announcing = new Set;
|
|
104
104
|
const persist = Effect.fnUntraced(function* (project) {
|
|
105
105
|
const previous = yield* db.select({ canonical: ProjectTable2.worktree }).from(ProjectTable2).where(eq(ProjectTable2.id, project.id)).get().pipe(Effect.orDie);
|
|
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
107
107
|
if (previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true)))) {
|
|
108
108
|
const row = yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie);
|
|
109
109
|
if (row)
|
|
110
|
-
yield* bus.publish(
|
|
110
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
111
111
|
}
|
|
112
112
|
if (!project.vcs)
|
|
113
113
|
return project;
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
144
144
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
145
145
|
projectID: item.projectID,
|
|
146
146
|
directory: item.directory,
|
|
147
|
-
previous: project.previous ??
|
|
147
|
+
previous: project.previous ?? ID17.global,
|
|
148
148
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
149
149
|
}, {
|
|
150
150
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -167,13 +167,13 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
167
167
|
time_updated: Date.now()
|
|
168
168
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
169
169
|
if (!row)
|
|
170
|
-
return yield* new
|
|
170
|
+
return yield* new NotFoundError9({ projectID: input.projectID });
|
|
171
171
|
const project = fromRow(row);
|
|
172
|
-
yield* bus.publish(
|
|
172
|
+
yield* bus.publish(Event20.Updated, project);
|
|
173
173
|
return project;
|
|
174
174
|
});
|
|
175
175
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
176
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
176
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
177
177
|
return;
|
|
178
178
|
}));
|
|
179
179
|
});
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
184
184
|
const normalized = url(origin);
|
|
185
185
|
if (!normalized)
|
|
186
186
|
return;
|
|
187
|
-
return
|
|
187
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
188
188
|
});
|
|
189
189
|
function url(input) {
|
|
190
190
|
const value = input.trim();
|
|
@@ -209,7 +209,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
209
209
|
}
|
|
210
210
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
211
211
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
212
|
-
return root ?
|
|
212
|
+
return root ? ID17.make(root) : undefined;
|
|
213
213
|
});
|
|
214
214
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
215
215
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -225,7 +225,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
225
225
|
return;
|
|
226
226
|
const node = result.stdout.toString("utf8").split(`
|
|
227
227
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
228
|
-
return node ?
|
|
228
|
+
return node ? ID17.make(node) : undefined;
|
|
229
229
|
});
|
|
230
230
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
231
231
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -234,7 +234,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
234
234
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
235
235
|
return {
|
|
236
236
|
previous,
|
|
237
|
-
id: id ??
|
|
237
|
+
id: id ?? ID17.global,
|
|
238
238
|
directory: worktree,
|
|
239
239
|
vcs: { type: "hg", store }
|
|
240
240
|
};
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
251
251
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
252
252
|
return yield* persist({
|
|
253
253
|
previous,
|
|
254
|
-
id: id ??
|
|
254
|
+
id: id ?? ID17.global,
|
|
255
255
|
directory: repo.worktree,
|
|
256
256
|
canonical,
|
|
257
257
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -265,18 +265,18 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
return yield* persist({
|
|
268
|
-
id:
|
|
268
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
269
269
|
directory,
|
|
270
270
|
canonical: directory,
|
|
271
271
|
vcs: undefined
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
|
-
return
|
|
274
|
+
return Service72.of({ list, update, resolve });
|
|
275
275
|
}));
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
276
|
+
var node77 = makeGlobalNode({
|
|
277
|
+
service: Service72,
|
|
278
278
|
layer,
|
|
279
|
-
deps: [
|
|
279
|
+
deps: [node81, node82, FSUtil.node, node78, AppProcess.node]
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
export {
|
|
282
|
+
export { ID17, Vcs2, Current2, Info32, UpdateInput3, NotFoundError9, root2, Service72, node77, exports_project };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
6
|
var exports_permission = {};
|
|
7
7
|
__export(exports_permission, {
|
|
8
8
|
Action: () => Action2,
|
|
9
9
|
ConfigPermissionV1: () => exports_permission,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info18,
|
|
11
11
|
Object: () => Object2,
|
|
12
12
|
Rule: () => Rule2
|
|
13
13
|
});
|
|
@@ -33,9 +33,9 @@ var InputObject = Schema.StructWithRest(Schema.Struct({
|
|
|
33
33
|
}), [Schema.Record(Schema.String, Rule2)]);
|
|
34
34
|
var InputSchema = Schema.Union([Action2, InputObject]);
|
|
35
35
|
var normalizeInput = (input) => typeof input === "string" ? { "*": input } : input;
|
|
36
|
-
var
|
|
36
|
+
var Info18 = InputSchema.pipe(Schema.decodeTo(InputObject, {
|
|
37
37
|
decode: SchemaGetter.transform(normalizeInput),
|
|
38
38
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
39
39
|
})).annotate({ identifier: "PermissionConfig" });
|
|
40
40
|
|
|
41
|
-
export { Action2, Object2, Rule2,
|
|
41
|
+
export { Action2, Object2, Rule2, Info18, exports_permission };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./app-8p4f9s12.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID12,
|
|
3
3
|
packageName2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./app-9qn3qky1.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/amazon-bedrock.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -22,7 +22,7 @@ var AmazonBedrockPlugin2 = define({
|
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* ctx.integration.transform((editor) => {
|
|
24
24
|
editor.method.update({
|
|
25
|
-
integrationID:
|
|
25
|
+
integrationID: ID12.amazonBedrock,
|
|
26
26
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
27
27
|
});
|
|
28
28
|
});
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./app-99m6at3m.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./app-d9xjrm20.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event15
|
|
10
|
+
} from "./app-y40yxsg3.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID6,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./app-5fgxrtk2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
ID12
|
|
17
|
+
} from "./app-9qn3qky1.js";
|
|
18
18
|
import {
|
|
19
19
|
Family2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./app-9gz2peze.js";
|
|
21
21
|
import {
|
|
22
22
|
bootstrap2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./app-pjvnvgmy.js";
|
|
24
24
|
|
|
25
25
|
// src/plugin/provider/digitalocean.ts
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Clock, Deferred, Effect, Option, Schedule, Schema, Semaphore, Stream } from "effect";
|
|
28
28
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
29
|
-
var providerID =
|
|
30
|
-
var integrationID =
|
|
29
|
+
var providerID = ID12.make("digitalocean");
|
|
30
|
+
var integrationID = ID6.make("digitalocean");
|
|
31
31
|
var methodID = MethodID2.make("browser");
|
|
32
32
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
33
33
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -115,7 +115,7 @@ var oauth = {
|
|
|
115
115
|
var DigitalOceanPlugin2 = define({
|
|
116
116
|
id: "opencode.provider.digitalocean",
|
|
117
117
|
effect: Effect.fn(function* (ctx) {
|
|
118
|
-
const bus = yield*
|
|
118
|
+
const bus = yield* Service76;
|
|
119
119
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
120
120
|
const loading = Semaphore.makeUnsafe(1);
|
|
121
121
|
const loaded = { routers: [] };
|
|
@@ -158,7 +158,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
161
|
-
yield* bus.subscribe(
|
|
161
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
162
162
|
yield* refresh().pipe(Effect.repeat(Schedule.spaced("5 minutes")), Effect.forkScoped);
|
|
163
163
|
})
|
|
164
164
|
});
|