@opencode/core 0.0.0-dev-19555 → 0.0.0-dev-19557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +59 -59
- package/dist/aisdk.js +5 -5
- package/dist/app.js +5 -5
- package/dist/bus.js +52 -52
- package/dist/catalog.js +60 -60
- package/dist/chunks/{job-0txtnz1b.js → job-04nkpb80.js} +27 -27
- package/dist/chunks/{job-y967r97z.js → job-05q1c7jv.js} +17 -17
- package/dist/chunks/{job-hrndf12w.js → job-06dxphr1.js} +3 -3
- package/dist/chunks/{job-eaj1djv9.js → job-0gdmqesm.js} +7 -7
- package/dist/chunks/{job-qkbswgt8.js → job-1aafjjmy.js} +12 -12
- package/dist/chunks/{job-mvfsc1pv.js → job-1bbkgx8g.js} +2 -2
- package/dist/chunks/{job-ayqgk1rz.js → job-1cbk4m95.js} +6 -6
- package/dist/chunks/{job-tqnjdgqx.js → job-1f18karc.js} +7 -7
- package/dist/chunks/{job-7r67ffzj.js → job-1h8wy6rp.js} +4 -4
- package/dist/chunks/{job-1qmxeza1.js → job-1v4bbw1w.js} +13 -13
- package/dist/chunks/{job-m68gwfjx.js → job-1vfb6rfn.js} +9 -9
- package/dist/chunks/{job-v8mrwv36.js → job-1vgmz48p.js} +18 -18
- package/dist/chunks/{job-1hd2ve9k.js → job-1x4rb0xf.js} +20 -20
- package/dist/chunks/{job-88bx71ta.js → job-23n0jqa5.js} +4 -4
- package/dist/chunks/{job-ze2stjj9.js → job-24d5a50f.js} +19 -19
- package/dist/chunks/{job-kmkwybff.js → job-2d57kztd.js} +3 -3
- package/dist/chunks/{job-y598pph1.js → job-2ghf1d8t.js} +7 -7
- package/dist/chunks/{job-hc4qzd77.js → job-2gv9w80n.js} +19 -19
- package/dist/chunks/{job-2qj77kr5.js → job-2hmt10pc.js} +7 -7
- package/dist/chunks/{job-s285pp5e.js → job-2hv6rtfk.js} +20 -20
- package/dist/chunks/job-2jb5v7tm.js +26 -0
- package/dist/chunks/{job-7pynw3er.js → job-2vcs4n8f.js} +2 -2
- package/dist/chunks/{job-k7ayhz31.js → job-3beqzx6k.js} +32 -32
- package/dist/chunks/job-3c10da2j.js +247 -0
- package/dist/chunks/{job-2v6b9h32.js → job-3gv83b7t.js} +10 -10
- package/dist/chunks/{job-t41048xy.js → job-3h8766hn.js} +25 -25
- package/dist/chunks/{job-zwgvw149.js → job-3hww0q87.js} +13 -13
- package/dist/chunks/{job-s76nk363.js → job-3mp8pt0x.js} +8 -8
- package/dist/chunks/{job-enb7w1dx.js → job-3r7hejq5.js} +7 -7
- package/dist/chunks/{job-d87ppnb3.js → job-3w0fmcng.js} +3 -3
- package/dist/chunks/{job-hdghkyj7.js → job-41hc3ma8.js} +32 -32
- package/dist/chunks/{job-ww3fkjst.js → job-4cje3eb8.js} +13 -13
- package/dist/chunks/{job-pt41xxpe.js → job-4gx2v1gk.js} +1 -1
- package/dist/chunks/{job-n6hxp5zt.js → job-4hx14hj9.js} +36 -36
- package/dist/chunks/{job-7f85ph34.js → job-4xhhjths.js} +6 -6
- package/dist/chunks/{job-fjrby77b.js → job-4yamf6fe.js} +18 -18
- package/dist/chunks/{job-z17wmtte.js → job-53zdrc7w.js} +13 -13
- package/dist/chunks/{job-z4n2bvx3.js → job-58pw51yy.js} +1 -1
- package/dist/chunks/{job-tpn93ec3.js → job-5c91nd8t.js} +7 -7
- package/dist/chunks/{job-p113jynx.js → job-5cehzqsf.js} +3 -3
- package/dist/chunks/{job-204defbx.js → job-5e1wh1k3.js} +33 -33
- package/dist/chunks/{job-dc943t0f.js → job-5jqv2hdv.js} +24 -24
- package/dist/chunks/{job-ayq5fd8r.js → job-5k817vsx.js} +14 -14
- package/dist/chunks/{job-ez5w4qh9.js → job-5qvvkpap.js} +91 -91
- package/dist/chunks/{job-3rptcns3.js → job-5t42e72n.js} +37 -37
- package/dist/chunks/{job-s5h1yxee.js → job-648q9dvv.js} +6 -6
- package/dist/chunks/{job-6tmt97vh.js → job-64ddj6v7.js} +1 -1
- package/dist/chunks/{job-x3ht5j8c.js → job-65ymqtf8.js} +11 -11
- package/dist/chunks/{job-8qsxzbfj.js → job-66pxayt3.js} +10 -10
- package/dist/chunks/{job-mw359feh.js → job-67byjnjd.js} +21 -21
- package/dist/chunks/{job-mmz0tt7d.js → job-6933ywkd.js} +1 -1
- package/dist/chunks/{job-p0856xd2.js → job-6fyb1tt4.js} +1 -1
- package/dist/chunks/{job-rath0bzd.js → job-6jrat8e1.js} +9 -9
- package/dist/chunks/job-6kdq0pjd.js +4 -0
- package/dist/chunks/{job-h0ts1a45.js → job-6mjv2hgg.js} +22 -22
- package/dist/chunks/{job-108cvae8.js → job-770wfc60.js} +21 -21
- package/dist/chunks/{job-ycy59s3d.js → job-7d719r6t.js} +19 -19
- package/dist/chunks/{job-qgn6gcr1.js → job-7dqw4kz8.js} +4 -4
- package/dist/chunks/{job-4679gabf.js → job-7gscs43p.js} +7 -7
- package/dist/chunks/{job-zj09a0ew.js → job-7j92jdde.js} +3 -3
- package/dist/chunks/{job-x4vn4x13.js → job-7n7cc3vm.js} +9 -9
- package/dist/chunks/{job-zqwgfckq.js → job-7vesx3h4.js} +29 -29
- package/dist/chunks/{job-rerm1236.js → job-7z0gr6x1.js} +7 -7
- package/dist/chunks/{job-nkxe001t.js → job-80e13nyn.js} +25 -25
- package/dist/chunks/{job-9yvtwad1.js → job-84aps5my.js} +11 -11
- package/dist/chunks/{job-rt08j7ja.js → job-8657wa92.js} +35 -35
- package/dist/chunks/{job-x1watz0w.js → job-88emgjyy.js} +1 -1
- package/dist/chunks/{job-avwmhd8q.js → job-8b2bdwgb.js} +89 -89
- package/dist/chunks/{job-qt3pz6e0.js → job-8d3t8xg7.js} +13 -13
- package/dist/chunks/{job-gcwy4efh.js → job-8g4pmx6v.js} +21 -21
- package/dist/chunks/{job-tba20byx.js → job-8pnsnrrh.js} +27 -27
- package/dist/chunks/{job-zt03gkt5.js → job-8tpwn33w.js} +3 -3
- package/dist/chunks/{job-g309gs0r.js → job-8yjy7zng.js} +9 -9
- package/dist/chunks/{job-edccm7rj.js → job-98c9aj8x.js} +9 -9
- package/dist/chunks/{job-q8m37a4m.js → job-98dg3375.js} +7 -7
- package/dist/chunks/{job-5schvsm4.js → job-9frsytr6.js} +27 -27
- package/dist/chunks/{job-s14h8ch1.js → job-9gddqbe1.js} +11 -11
- package/dist/chunks/{job-s56gw65d.js → job-9jrdgtty.js} +6 -6
- package/dist/chunks/{job-qg8kvqbc.js → job-a17g06ed.js} +56 -56
- package/dist/chunks/{job-5c4hm403.js → job-a1bz86dw.js} +1 -1
- package/dist/chunks/{job-pffwq7f2.js → job-a39cgwdb.js} +33 -33
- package/dist/chunks/{job-zpd6x7fe.js → job-a3r4dcrj.js} +1 -1
- package/dist/chunks/{job-w82mzkgp.js → job-abebd5qx.js} +9 -9
- package/dist/chunks/{job-gc4dqs6v.js → job-aec3nrfr.js} +2 -2
- package/dist/chunks/{job-eyfhw2pw.js → job-amgske17.js} +9 -9
- package/dist/chunks/{job-tnmy4c6w.js → job-ap99qs88.js} +2 -2
- package/dist/chunks/{job-nt5k960m.js → job-b21rrpfv.js} +9 -9
- package/dist/chunks/{job-rz42ta6t.js → job-b3wvxjn9.js} +3 -3
- package/dist/chunks/{job-5kkb4rg3.js → job-b89ddxb9.js} +8 -8
- package/dist/chunks/{job-bf0ztrs3.js → job-bct739vz.js} +3 -3
- package/dist/chunks/{job-awt0af35.js → job-bd4wb5dj.js} +16 -16
- package/dist/chunks/{job-cb4qrnem.js → job-c1165j3g.js} +9 -9
- package/dist/chunks/{job-p0pwt4pp.js → job-c7ppp6eb.js} +3 -3
- package/dist/chunks/{job-gvxaq0cy.js → job-c9y5ammp.js} +12 -12
- package/dist/chunks/{job-zepncfka.js → job-cavr175a.js} +20 -20
- package/dist/chunks/{job-m0jqrx5p.js → job-cfpkc3c9.js} +1 -1
- package/dist/chunks/{job-107zebhb.js → job-ctbj8s8t.js} +1 -1
- package/dist/chunks/{job-s5dtz0xy.js → job-danc237s.js} +22 -22
- package/dist/chunks/{job-yg90b9ch.js → job-deft6591.js} +16 -16
- package/dist/chunks/{job-mjncxbbh.js → job-dg5bcj4q.js} +3 -3
- package/dist/chunks/{job-sc1tjfme.js → job-dkk4x6n7.js} +26 -26
- package/dist/chunks/{job-f87sstgy.js → job-dvv5h0qn.js} +58 -58
- package/dist/chunks/{job-f8j8fe6d.js → job-dxttfc41.js} +15 -15
- package/dist/chunks/{job-2kr6azcb.js → job-e2s7qp6r.js} +8 -8
- package/dist/chunks/{job-bs4ej5rm.js → job-e2wc9a92.js} +8 -8
- package/dist/chunks/{job-bndc73cn.js → job-e5nv3ght.js} +3 -3
- package/dist/chunks/{job-c99ms63n.js → job-eatkrtr4.js} +2 -2
- package/dist/chunks/{job-jybmh2dy.js → job-eh9f57h6.js} +19 -19
- package/dist/chunks/{job-mnbh32fx.js → job-emzsebxx.js} +5 -5
- package/dist/chunks/{job-b0qbgy8p.js → job-et83npb1.js} +4 -4
- package/dist/chunks/{job-xwmngbzd.js → job-ewzk1mjh.js} +6 -6
- package/dist/chunks/{job-ms97y41h.js → job-ey45p7wh.js} +9 -9
- package/dist/chunks/{job-nk1twcpn.js → job-f1av08zj.js} +39 -39
- package/dist/chunks/{job-hdnk95c8.js → job-f828m53h.js} +1 -1
- package/dist/chunks/{job-ccfa4wxs.js → job-ff0htmxq.js} +5 -5
- package/dist/chunks/{job-gxpqbsz6.js → job-fnjmrqm4.js} +29 -29
- package/dist/chunks/{job-98gy3eww.js → job-fyd8j9ny.js} +44 -44
- package/dist/chunks/{job-ft3sdwqk.js → job-g7znvwgp.js} +59 -59
- package/dist/chunks/{job-fg7rbsd2.js → job-g8jasmdt.js} +9 -9
- package/dist/chunks/{job-5qe90vg1.js → job-gfr26vqf.js} +4 -4
- package/dist/chunks/{job-b1c4vsaq.js → job-gv9pfq09.js} +13 -13
- package/dist/chunks/{job-tnz8hk1d.js → job-gvp81x5g.js} +5 -5
- package/dist/chunks/{job-6cvqcnqg.js → job-h6tgnsmw.js} +10 -10
- package/dist/chunks/{job-xdkqrd4t.js → job-h7mr6e23.js} +39 -39
- package/dist/chunks/{job-dv250zvr.js → job-jexxy024.js} +3 -3
- package/dist/chunks/{job-sapr1j9h.js → job-jfa9ssce.js} +13 -13
- package/dist/chunks/{job-ws27ccxm.js → job-jgks5tvc.js} +9 -9
- package/dist/chunks/{job-xkt6wjyn.js → job-jyt8k1ng.js} +17 -17
- package/dist/chunks/{job-kr9a5zmg.js → job-k5axrfmk.js} +21 -21
- package/dist/chunks/{job-wqc8jatc.js → job-k9m849z2.js} +23 -23
- package/dist/chunks/{job-y8557sgs.js → job-kfyyfpez.js} +30 -30
- package/dist/chunks/{job-fhq0ekbb.js → job-kz0zrsdg.js} +27 -27
- package/dist/chunks/{job-2qv5tkk5.js → job-kzdavpkk.js} +17 -17
- package/dist/chunks/{job-c8z0qg74.js → job-m1g6hraw.js} +18 -18
- package/dist/chunks/{job-bknvwxkd.js → job-m22jsh4r.js} +24 -24
- package/dist/chunks/{job-gpxp53a2.js → job-n1nx5qrt.js} +16 -16
- package/dist/chunks/{job-h9te1vqn.js → job-n6x0hvgd.js} +26 -26
- package/dist/chunks/{job-36eerbqd.js → job-n7mjdw8a.js} +286 -286
- package/dist/chunks/{job-dxj72tfx.js → job-n95b3jav.js} +4 -4
- package/dist/chunks/{job-cwwr1jvz.js → job-ne989dng.js} +7 -7
- package/dist/chunks/{job-1dyg3zh4.js → job-nepyd80j.js} +14 -14
- package/dist/chunks/{job-7gx041tx.js → job-ngts6ef0.js} +7 -7
- package/dist/chunks/{job-dr275rwc.js → job-ngx9j5n7.js} +23 -23
- package/dist/chunks/{job-hjt4xg1x.js → job-nhy5jxhy.js} +3 -3
- package/dist/chunks/{job-8vqqww87.js → job-nq0ndpqh.js} +32 -32
- package/dist/chunks/{job-tx9qvpbt.js → job-nv5vn7qx.js} +5 -5
- package/dist/chunks/{job-s0rmj92q.js → job-nvez6yjy.js} +49 -49
- package/dist/chunks/{job-t6kh2ke1.js → job-p2k8yj8g.js} +17 -17
- package/dist/chunks/{job-sra9araw.js → job-p44d8wdy.js} +3 -3
- package/dist/chunks/{job-j935v87r.js → job-paphc93g.js} +2 -2
- package/dist/chunks/{job-jw9k1g94.js → job-pccq6abf.js} +11 -11
- package/dist/chunks/{job-4q0rk4pc.js → job-pf4ag2jn.js} +18 -18
- package/dist/chunks/{job-jx8vh84p.js → job-ph6t2mdm.js} +16 -16
- package/dist/chunks/{job-jjs74g98.js → job-pnv527nz.js} +7 -7
- package/dist/chunks/{job-6vzevhqv.js → job-ppt7x97n.js} +15 -15
- package/dist/chunks/{job-8jxpyx5d.js → job-pq3g4fff.js} +10 -10
- package/dist/chunks/{job-rc2324vf.js → job-pqd1mzxt.js} +7 -7
- package/dist/chunks/{job-n3pdwg8n.js → job-q0kqdcn6.js} +26 -26
- package/dist/chunks/{job-ksc3740k.js → job-q2d66v75.js} +20 -20
- package/dist/chunks/{job-0d4tph5f.js → job-qes2k3jx.js} +28 -28
- package/dist/chunks/{job-d7bh9k9a.js → job-qgp8zp4q.js} +26 -26
- package/dist/chunks/{job-jxj1131m.js → job-qmajteq1.js} +30 -30
- package/dist/chunks/{job-emw29q3b.js → job-qqb9cay3.js} +6 -6
- package/dist/chunks/{job-3fex3hkv.js → job-qsyea6f9.js} +13 -13
- package/dist/chunks/{job-m15eze35.js → job-qtma8z35.js} +13 -13
- package/dist/chunks/{job-s16zmce3.js → job-qw4e7zjd.js} +9 -9
- package/dist/chunks/{job-v40khde1.js → job-r9asyhme.js} +6 -6
- package/dist/chunks/{job-a5gt7g2r.js → job-r9njkn2h.js} +7 -7
- package/dist/chunks/{job-vns4mfzt.js → job-r9we50jt.js} +29 -29
- package/dist/chunks/{job-d739dymv.js → job-rmmkwdem.js} +160 -160
- package/dist/chunks/{job-5swzx872.js → job-rnvsv9qp.js} +12 -12
- package/dist/chunks/{job-a2ys5r57.js → job-rr4zqxht.js} +3 -3
- package/dist/chunks/{job-m8k10yn9.js → job-rtr77gbg.js} +48 -48
- package/dist/chunks/{job-vv6k2bgw.js → job-rxz6bkw1.js} +16 -16
- package/dist/chunks/{job-bb9021j4.js → job-rzb9r8hj.js} +40 -40
- package/dist/chunks/{job-ah6t2c5c.js → job-s6yfxd82.js} +1 -1
- package/dist/chunks/{job-jzpfkve7.js → job-s8fzv502.js} +3 -3
- package/dist/chunks/{job-4mkmbf5n.js → job-sapgmee8.js} +17 -17
- package/dist/chunks/{job-fey34q6a.js → job-stzaxg6d.js} +22 -22
- package/dist/chunks/{job-62n8c76s.js → job-swm5zkc7.js} +4 -4
- package/dist/chunks/{job-5pb980ms.js → job-t08rskcp.js} +15 -15
- package/dist/chunks/{job-epwheqpr.js → job-t1aepcmv.js} +10 -10
- package/dist/chunks/{job-19vf66h0.js → job-t2fc4mz5.js} +3 -3
- package/dist/chunks/{job-5xtgfte3.js → job-tpw6cwsb.js} +7 -7
- package/dist/chunks/{job-80t0g78y.js → job-ttmf09qd.js} +11 -11
- package/dist/chunks/{job-2tym2mwq.js → job-v33xfvcj.js} +7 -7
- package/dist/chunks/{job-vvbjhqct.js → job-v3kx3386.js} +6 -6
- package/dist/chunks/{job-pqw62kwh.js → job-v84z85pp.js} +14 -14
- package/dist/chunks/{job-ae01ggp0.js → job-vkxpz7g2.js} +2 -2
- package/dist/chunks/{job-39yq9nhp.js → job-w49xm5fj.js} +7 -7
- package/dist/chunks/{job-5yqtht8v.js → job-w6qfaagh.js} +18 -18
- package/dist/chunks/{job-prwf69zp.js → job-wa3vagtd.js} +13 -13
- package/dist/chunks/{job-dksw2ccb.js → job-wtpfsk05.js} +28 -28
- package/dist/chunks/{job-758gvv9k.js → job-x1ayndpw.js} +19 -19
- package/dist/chunks/{job-3cwb9jzf.js → job-x8gz1y8e.js} +7 -7
- package/dist/chunks/{job-0rdqt693.js → job-xnhhv6qr.js} +21 -21
- package/dist/chunks/{job-py3p69fp.js → job-xnqrd04x.js} +12 -12
- package/dist/chunks/{job-b9ggw2e0.js → job-xpkcfpne.js} +15 -15
- package/dist/chunks/{job-fsbq1nfg.js → job-y16464wz.js} +27 -27
- package/dist/chunks/{job-3sdn4tp0.js → job-y3tkmzj7.js} +22 -22
- package/dist/chunks/{job-px1kjndr.js → job-y7g06hay.js} +15 -15
- package/dist/chunks/{job-t3pn2srw.js → job-ybhbtxjg.js} +7 -7
- package/dist/chunks/{job-2azrjmwj.js → job-ycejwvtx.js} +9 -9
- package/dist/chunks/{job-qte5z7bc.js → job-yjptyezs.js} +3 -3
- package/dist/chunks/{job-1acjjqhc.js → job-yp2x3t23.js} +3 -3
- package/dist/chunks/{job-s4enseaf.js → job-yrznvahk.js} +1 -1
- package/dist/chunks/{job-03aegmhm.js → job-z0v4hsh2.js} +6 -6
- package/dist/chunks/{job-f8qtms30.js → job-z2yhn1jz.js} +6 -6
- package/dist/chunks/{job-29x78va6.js → job-z63w68vq.js} +4 -4
- package/dist/chunks/{job-jnrafvk7.js → job-zcrm4481.js} +7 -7
- package/dist/chunks/{job-kps5zkd7.js → job-zq3a93d4.js} +26 -26
- package/dist/chunks/{job-xab4x8gd.js → job-zrk62573.js} +19 -19
- package/dist/chunks/{job-ttqh24zm.js → job-zvt5dnpc.js} +3 -3
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +61 -61
- package/dist/config/discovery.js +56 -56
- package/dist/config/normalize.js +15 -15
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +171 -171
- package/dist/config/plugin/compaction.js +119 -119
- package/dist/config/plugin/formatter.js +87 -87
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +63 -63
- package/dist/config/plugin/location-watcher.js +85 -85
- package/dist/config/plugin/mcp.js +95 -95
- package/dist/config/plugin/policy.js +85 -85
- package/dist/config/plugin/provider.js +84 -84
- package/dist/config/plugin/reference.js +87 -87
- package/dist/config/plugin/shell.js +86 -86
- package/dist/config/plugin/skill-file.js +72 -72
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +82 -82
- package/dist/config/plugin/tool-output.js +87 -87
- package/dist/config/plugin/websearch.js +84 -84
- package/dist/config/plugin/worktree.js +86 -86
- package/dist/config/variable.js +2 -2
- package/dist/config.js +87 -87
- package/dist/credential.js +62 -62
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +36 -36
- package/dist/database/migration.js +37 -37
- package/dist/database/v1-migration.bun.js +14 -14
- package/dist/effect/app-node-builder.js +225 -225
- package/dist/environment/environment.js +63 -63
- package/dist/environment/index.js +65 -65
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +75 -75
- package/dist/file-mutation.js +64 -64
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +66 -66
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +8 -8
- package/dist/filesystem.js +69 -69
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +61 -61
- package/dist/generate.js +66 -66
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +5 -5
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +297 -297
- package/dist/instruction-discovery.js +63 -63
- package/dist/instructions/builtins.js +61 -61
- package/dist/instructions/index.js +5 -5
- package/dist/integration.js +65 -65
- package/dist/job.js +54 -54
- package/dist/kv.js +52 -52
- package/dist/location-activity.js +58 -58
- package/dist/location-mutation.js +34 -34
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +294 -294
- package/dist/location.js +63 -63
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +78 -78
- package/dist/mcp/instructions.js +92 -92
- package/dist/mcp/stdio.js +60 -60
- package/dist/modal/models.js +5 -5
- package/dist/model-resolver.js +63 -63
- package/dist/models-dev.js +64 -64
- package/dist/permission/saved.js +59 -59
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +84 -84
- package/dist/persistent-pty/index.js +62 -62
- package/dist/persistent-pty.js +50 -50
- package/dist/plugin/agent.js +73 -73
- package/dist/plugin/command.js +69 -69
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +177 -177
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +269 -269
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +53 -53
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +73 -73
- package/dist/plugin/provider/azure.js +88 -88
- package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
- package/dist/plugin/provider/configured.js +85 -85
- package/dist/plugin/provider/digitalocean.js +55 -55
- package/dist/plugin/provider/github-copilot.js +57 -57
- package/dist/plugin/provider/gitlab.js +2 -2
- package/dist/plugin/provider/llmgateway.js +54 -54
- package/dist/plugin/provider/lmstudio.js +88 -88
- package/dist/plugin/provider/modal.js +56 -56
- package/dist/plugin/provider/ollama.js +86 -86
- package/dist/plugin/provider/openai.js +57 -57
- package/dist/plugin/provider/opencode.js +57 -57
- package/dist/plugin/provider/poe.js +54 -54
- package/dist/plugin/provider/snowflake-cortex.js +87 -87
- package/dist/plugin/provider/vllm.js +88 -88
- package/dist/plugin/provider/xai.js +55 -55
- package/dist/plugin/provider.js +118 -118
- package/dist/plugin/sdk.js +53 -53
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +102 -102
- package/dist/plugin/supervisor.js +284 -284
- package/dist/plugin/vcs/git.js +60 -60
- package/dist/plugin/vcs/hg.js +60 -60
- package/dist/plugin/warming.js +84 -84
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +4 -4
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +188 -188
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +64 -64
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +72 -72
- package/dist/reference/instructions.js +62 -62
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +55 -55
- package/dist/ripgrep.js +65 -65
- package/dist/rpc.js +60 -60
- package/dist/session/command.js +52 -52
- package/dist/session/compaction.js +97 -97
- package/dist/session/context.js +115 -115
- package/dist/session/diff.js +61 -61
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +122 -122
- package/dist/session/execution.js +96 -96
- package/dist/session/generate.js +116 -116
- package/dist/session/history.js +11 -11
- package/dist/session/inbox.js +65 -65
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +56 -56
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +69 -69
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +85 -85
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +97 -97
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +76 -76
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +63 -63
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +183 -183
- package/dist/session/runner/model.js +63 -63
- package/dist/session/runner/retry.js +82 -82
- package/dist/session/runner/step.js +87 -87
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +137 -137
- package/dist/session/shell.js +100 -100
- package/dist/session/skill.js +74 -74
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +12 -12
- package/dist/session/store.js +62 -62
- package/dist/session/subagent-job.js +168 -168
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +118 -118
- package/dist/session/to-session-error.js +81 -81
- package/dist/session/transfer.js +123 -123
- package/dist/session.js +179 -179
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +103 -103
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +76 -76
- package/dist/skill.js +83 -83
- package/dist/snapshot.js +65 -65
- package/dist/tool/mcp.js +91 -91
- package/dist/tool/plugin/edit.js +86 -86
- package/dist/tool/plugin/glob.js +90 -90
- package/dist/tool/plugin/grep.js +92 -92
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +90 -90
- package/dist/tool/plugin/question.js +74 -74
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +176 -176
- package/dist/tool/plugin/skill.js +78 -78
- package/dist/tool/plugin/subagent.js +179 -179
- package/dist/tool/plugin/webfetch.js +76 -76
- package/dist/tool/plugin/websearch.js +80 -80
- package/dist/tool/plugin/write.js +90 -90
- package/dist/tool/read-filesystem.js +69 -69
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +7 -7
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +63 -63
- package/dist/websearch.js +61 -61
- package/dist/wellknown/plugin.js +53 -53
- package/dist/wellknown.js +54 -54
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +59 -59
- package/dist/worktree/git.js +2 -2
- package/dist/worktree/refresh.js +287 -287
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree.js +66 -66
- package/package.json +8 -8
- package/dist/chunks/job-0mesazry.js +0 -4
- package/dist/chunks/job-1ke5xcds.js +0 -26
- package/dist/chunks/job-npm6xkqa.js +0 -247
- /package/dist/chunks/{job-9yq90rfy.js → job-1tzh7qsg.js} +0 -0
- /package/dist/chunks/{job-dj2t23y0.js → job-8p4f9s12.js} +0 -0
- /package/dist/chunks/{job-5e15319b.js → job-kerhshr9.js} +0 -0
- /package/dist/chunks/{job-rsr0ytjc.js → job-phr9a6m0.js} +0 -0
- /package/dist/chunks/{job-q5zafh14.js → job-t6msp11s.js} +0 -0
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin23,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin23 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin21 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint4);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint4, Plugin23, exports_exa };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Key3,
|
|
3
3
|
removed2,
|
|
4
4
|
empty3,
|
|
5
|
-
|
|
5
|
+
make18,
|
|
6
6
|
diffByKey2
|
|
7
|
-
} from "./job-
|
|
7
|
+
} from "./job-0gdmqesm.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID6,
|
|
10
10
|
Name2,
|
|
11
11
|
available2,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./job-
|
|
12
|
+
Service57,
|
|
13
|
+
node60
|
|
14
|
+
} from "./job-zq3a93d4.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./job-9rqn6x4v.js";
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
// src/skill/instructions.ts
|
|
20
20
|
var exports_instructions3 = {};
|
|
21
21
|
__export(exports_instructions3, {
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service30,
|
|
23
23
|
SkillInstructions: () => exports_instructions3,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node35
|
|
25
25
|
});
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
28
28
|
var Summary = Schema.Struct({
|
|
29
|
-
id:
|
|
29
|
+
id: ID6,
|
|
30
30
|
name: Name2,
|
|
31
31
|
description: Schema.String
|
|
32
32
|
});
|
|
@@ -60,18 +60,18 @@ var update = (previous, current) => {
|
|
|
60
60
|
`);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
class
|
|
63
|
+
class Service30 extends Context.Service()("@opencode/SkillInstructions") {
|
|
64
64
|
}
|
|
65
|
-
var layer = Layer.effect(
|
|
66
|
-
const skills = yield*
|
|
67
|
-
return
|
|
65
|
+
var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
66
|
+
const skills = yield* Service57;
|
|
67
|
+
return Service30.of({
|
|
68
68
|
load: Effect.fn("SkillInstructions.load")(function* (selection) {
|
|
69
69
|
const agent = selection.info;
|
|
70
70
|
if (!agent)
|
|
71
71
|
return empty3;
|
|
72
72
|
const available = available2(yield* skills.list(), agent).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
73
|
-
return
|
|
74
|
-
key:
|
|
73
|
+
return make18({
|
|
74
|
+
key: Key3.make("core/skill-guidance"),
|
|
75
75
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
76
76
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
77
77
|
render: {
|
|
@@ -83,6 +83,6 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
|
-
var
|
|
86
|
+
var node35 = makeLocationNode({ service: Service30, layer, deps: [node60] });
|
|
87
87
|
|
|
88
|
-
export {
|
|
88
|
+
export { Service30, node35, exports_instructions3 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./job-
|
|
2
|
+
ID9
|
|
3
|
+
} from "./job-ngx9j5n7.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./job-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./job-
|
|
8
|
+
Info12
|
|
9
|
+
} from "./job-g8jasmdt.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
12
|
} from "./job-b11403r6.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./job-
|
|
15
|
+
Service52
|
|
16
|
+
} from "./job-4hx14hj9.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./job-5daktx2q.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
var exports_agent = {};
|
|
26
26
|
__export(exports_agent, {
|
|
27
27
|
ConfigAgentPlugin: () => exports_agent,
|
|
28
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin2
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info12);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
|
-
var
|
|
47
|
+
var Plugin2 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service52;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin10 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID9.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID9.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -161,4 +161,4 @@ function decode(file, content) {
|
|
|
161
161
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { Plugin2, exports_agent };
|
|
@@ -20,11 +20,11 @@ __export(exports_git3, {
|
|
|
20
20
|
Git: () => exports_git3,
|
|
21
21
|
OperationError: () => OperationError3,
|
|
22
22
|
Repository: () => Repository2,
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service70,
|
|
24
24
|
TreeID: () => TreeID2,
|
|
25
25
|
Worktree: () => Worktree2,
|
|
26
26
|
WorktreeError: () => WorktreeError2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node75
|
|
28
28
|
});
|
|
29
29
|
import path from "path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -90,9 +90,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service70 extends Context.Service()("@opencode/Git") {
|
|
94
94
|
}
|
|
95
|
-
var layer = Layer.effect(
|
|
95
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
96
96
|
const fs = yield* FSUtil.Service;
|
|
97
97
|
const proc = yield* AppProcess.Service;
|
|
98
98
|
const locks = makeUnsafe2();
|
|
@@ -416,7 +416,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
416
416
|
kind: index === 0 ? "main" : "linked"
|
|
417
417
|
}));
|
|
418
418
|
});
|
|
419
|
-
return
|
|
419
|
+
return Service70.of({
|
|
420
420
|
repo: { discover, clone, create },
|
|
421
421
|
remote: { get: remote },
|
|
422
422
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -432,7 +432,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}));
|
|
435
|
-
var
|
|
435
|
+
var node75 = makeGlobalNode({ service: Service70, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
436
436
|
function run(cwd, proc, args) {
|
|
437
437
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
438
438
|
}
|
|
@@ -460,4 +460,4 @@ function resolvePath(cwd, value) {
|
|
|
460
460
|
return path.resolve(cwd, normalized);
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
463
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service70, node75, exports_git3 };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
fromPromise2
|
|
3
3
|
} from "./job-zr2ceqn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./job-
|
|
5
|
+
Service53
|
|
6
|
+
} from "./job-ph6t2mdm.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./job-9rqn6x4v.js";
|
|
@@ -23,7 +23,7 @@ import path from "path";
|
|
|
23
23
|
import { stat } from "node:fs/promises";
|
|
24
24
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
25
25
|
var make3 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
-
const watcher = yield*
|
|
26
|
+
const watcher = yield* Service53;
|
|
27
27
|
const scope = yield* Effect.scope;
|
|
28
28
|
const runPromise = yield* FiberSet.makeRuntimePromise();
|
|
29
29
|
const changes = yield* PubSub.unbounded();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./job-
|
|
2
|
+
Service80
|
|
3
|
+
} from "./job-3gv83b7t.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./job-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./job-gv9pfq09.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./job-
|
|
8
|
+
Service45
|
|
9
|
+
} from "./job-ff0htmxq.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
12
|
} from "./job-fxbjtjnd.js";
|
|
@@ -14,41 +14,41 @@ import {
|
|
|
14
14
|
SessionMessage2
|
|
15
15
|
} from "./job-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError9,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./job-
|
|
23
|
+
} from "./job-ybhbtxjg.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
26
|
} from "./job-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./job-
|
|
28
|
+
Service60
|
|
29
|
+
} from "./job-n1nx5qrt.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./job-
|
|
33
|
+
Service46
|
|
34
|
+
} from "./job-dkk4x6n7.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./job-
|
|
36
|
+
Service43
|
|
37
|
+
} from "./job-rzb9r8hj.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./job-
|
|
40
|
+
} from "./job-nepyd80j.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./job-
|
|
45
|
+
} from "./job-xnhhv6qr.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./job-
|
|
48
|
+
} from "./job-7z0gr6x1.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./job-
|
|
51
|
+
} from "./job-e2wc9a92.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
54
|
} from "./job-9rqn6x4v.js";
|
|
@@ -57,24 +57,24 @@ import {
|
|
|
57
57
|
var exports_session2 = {};
|
|
58
58
|
__export(exports_session2, {
|
|
59
59
|
Session: () => exports_session2,
|
|
60
|
-
make: () =>
|
|
60
|
+
make: () => make15
|
|
61
61
|
});
|
|
62
62
|
import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
|
-
var
|
|
66
|
-
const bus = yield*
|
|
67
|
-
const database = yield*
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
65
|
+
var make15 = Effect.fn("Session.make")(function* () {
|
|
66
|
+
const bus = yield* Service79;
|
|
67
|
+
const database = yield* Service80;
|
|
68
|
+
const store = yield* Service60;
|
|
69
|
+
const instances = yield* Service45;
|
|
70
|
+
const execution = yield* Service43;
|
|
71
|
+
const admission = yield* Service46;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
75
75
|
const session = yield* store.get(sessionID);
|
|
76
76
|
if (!session)
|
|
77
|
-
return yield* new
|
|
77
|
+
return yield* new NotFoundError9({ sessionID });
|
|
78
78
|
return session;
|
|
79
79
|
});
|
|
80
80
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -131,7 +131,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
131
131
|
});
|
|
132
132
|
if (existing)
|
|
133
133
|
return existing;
|
|
134
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
134
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service45, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
135
135
|
if (session.revert)
|
|
136
136
|
yield* commit2(bus, session);
|
|
137
137
|
return yield* admission.admit({
|
|
@@ -147,7 +147,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
147
147
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
148
148
|
const session = yield* get(sessionID);
|
|
149
149
|
const running = yield* Effect.gen(function* () {
|
|
150
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
150
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service45, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
151
151
|
text: `User shell command failed to start:
|
|
152
152
|
${input.command}
|
|
153
153
|
|
|
@@ -176,7 +176,7 @@ ${error.message}`,
|
|
|
176
176
|
});
|
|
177
177
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
178
178
|
const session = yield* get(sessionID);
|
|
179
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
179
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service45, instances));
|
|
180
180
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
181
181
|
sessionID,
|
|
182
182
|
id: skill.id,
|
|
@@ -233,13 +233,13 @@ ${error.message}`,
|
|
|
233
233
|
const session = yield* get(sessionID);
|
|
234
234
|
if (yield* execution.isActive(sessionID))
|
|
235
235
|
return yield* new BusyError2({ sessionID });
|
|
236
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
236
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service80, database), Effect.provideService(Service79, bus));
|
|
237
237
|
});
|
|
238
238
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
239
239
|
const session = yield* get(sessionID);
|
|
240
240
|
if (yield* execution.isActive(sessionID))
|
|
241
241
|
return yield* new BusyError2({ sessionID });
|
|
242
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
242
|
+
yield* clear2(session).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service79, bus));
|
|
243
243
|
return yield* execution.wake(sessionID);
|
|
244
244
|
});
|
|
245
245
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -322,4 +322,4 @@ ${error.message}`,
|
|
|
322
322
|
return { forSession };
|
|
323
323
|
});
|
|
324
324
|
|
|
325
|
-
export {
|
|
325
|
+
export { make15, exports_session2 };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./job-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./job-
|
|
5
|
+
Service68
|
|
6
|
+
} from "./job-deft6591.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./job-
|
|
8
|
+
Service22
|
|
9
|
+
} from "./job-bd4wb5dj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./job-
|
|
11
|
+
Service10
|
|
12
|
+
} from "./job-2hv6rtfk.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
15
|
} from "./job-2a5m3afh.js";
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./job-
|
|
26
|
+
Service8
|
|
27
|
+
} from "./job-c9y5ammp.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./job-9rqn6x4v.js";
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input5,
|
|
36
|
+
Plugin: () => Plugin37,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name5,
|
|
39
|
+
toModelContent: () => toModelContent4
|
|
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 name5 = "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 Input5 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin37 = {
|
|
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* Service8;
|
|
62
|
+
const access = yield* Service22;
|
|
63
|
+
const sessionInstructions = yield* Service10;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service68;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name5,
|
|
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: Input5,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin36 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent4(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 toModelContent4 = (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" },
|
|
@@ -180,4 +180,4 @@ var toModelContent2 = (path, offset, output) => {
|
|
|
180
180
|
`);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { name5, Input5, Plugin37, toModelContent4, exports_read };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./job-
|
|
2
|
+
Service79
|
|
3
|
+
} from "./job-gv9pfq09.js";
|
|
4
4
|
import {
|
|
5
5
|
ID18
|
|
6
6
|
} from "./job-33n3bzdy.js";
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
ID17
|
|
9
9
|
} from "./job-c3s2gn8c.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./job-
|
|
11
|
+
Event20
|
|
12
|
+
} from "./job-41hc3ma8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./job-
|
|
14
|
+
ID14
|
|
15
|
+
} from "./job-qmajteq1.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./job-
|
|
17
|
+
Service75
|
|
18
|
+
} from "./job-2gv9w80n.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./job-
|
|
20
|
+
get2
|
|
21
|
+
} from "./job-1cbk4m95.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/modal.ts
|
|
24
24
|
import { Effect, Semaphore, Stream } from "effect";
|
|
@@ -27,8 +27,8 @@ var providerID = ID18.make("modal");
|
|
|
27
27
|
var ModalPlugin2 = define({
|
|
28
28
|
id: "opencode.provider.modal",
|
|
29
29
|
effect: Effect.fn(function* (ctx) {
|
|
30
|
-
const catalog = yield*
|
|
31
|
-
const bus = yield*
|
|
30
|
+
const catalog = yield* Service75;
|
|
31
|
+
const bus = yield* Service79;
|
|
32
32
|
const loading = Semaphore.makeUnsafe(1);
|
|
33
33
|
const loaded = {};
|
|
34
34
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -47,7 +47,7 @@ var ModalPlugin2 = define({
|
|
|
47
47
|
loaded.baseURL = baseURL;
|
|
48
48
|
const existing = (yield* catalog.model.all()).filter((model) => model.providerID === providerID);
|
|
49
49
|
loaded.models = yield* Effect.tryPromise({
|
|
50
|
-
try: () =>
|
|
50
|
+
try: () => get2(baseURL, apiKey, existing),
|
|
51
51
|
catch: (cause) => cause
|
|
52
52
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
53
53
|
});
|
|
@@ -66,7 +66,7 @@ var ModalPlugin2 = define({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
69
|
-
yield* bus.subscribe(
|
|
69
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
70
70
|
yield* refresh().pipe(Effect.forkScoped);
|
|
71
71
|
})
|
|
72
72
|
});
|