@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,9 +8,9 @@ import {
|
|
|
8
8
|
mergeHeaders2
|
|
9
9
|
} from "./job-33n3bzdy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./job-
|
|
11
|
+
Service74,
|
|
12
|
+
node79
|
|
13
|
+
} from "./job-2ghf1d8t.js";
|
|
14
14
|
import {
|
|
15
15
|
map2
|
|
16
16
|
} from "./job-35wynegs.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
Ref4
|
|
21
21
|
} from "./job-c3s2gn8c.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./job-
|
|
23
|
+
ID14,
|
|
24
|
+
Service76,
|
|
25
|
+
node81
|
|
26
|
+
} from "./job-qmajteq1.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./job-
|
|
28
|
+
Service75,
|
|
29
|
+
node80
|
|
30
|
+
} from "./job-2gv9w80n.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./job-9rqn6x4v.js";
|
|
@@ -39,15 +39,15 @@ __export(exports_model_resolver, {
|
|
|
39
39
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
40
40
|
ModelInitializationError: () => ModelInitializationError3,
|
|
41
41
|
ModelResolver: () => exports_model_resolver,
|
|
42
|
-
Service: () =>
|
|
42
|
+
Service: () => Service73,
|
|
43
43
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
44
44
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
45
45
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
46
46
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
47
47
|
fromCatalogModel: () => fromCatalogModel2,
|
|
48
48
|
hasPackage: () => hasPackage2,
|
|
49
|
-
layer: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
layer: () => layer24,
|
|
50
|
+
node: () => node78,
|
|
51
51
|
resolveModel: () => resolveModel2,
|
|
52
52
|
withVariant: () => withVariant2
|
|
53
53
|
});
|
|
@@ -120,7 +120,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
class
|
|
123
|
+
class Service73 extends Context.Service()("@opencode/ModelResolver") {
|
|
124
124
|
}
|
|
125
125
|
var withVariant2 = (model, variantID) => {
|
|
126
126
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -268,14 +268,14 @@ var causeMessage = (cause) => {
|
|
|
268
268
|
};
|
|
269
269
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
270
270
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
271
|
-
var
|
|
272
|
-
const catalog = yield*
|
|
273
|
-
const integrations = yield*
|
|
271
|
+
var layer24 = Layer.effect(Service73, Effect.gen(function* () {
|
|
272
|
+
const catalog = yield* Service75;
|
|
273
|
+
const integrations = yield* Service76;
|
|
274
274
|
const npm = yield* Npm.Service;
|
|
275
|
-
const aisdk = yield*
|
|
275
|
+
const aisdk = yield* Service74;
|
|
276
276
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
277
277
|
const provider = yield* catalog.provider.get(selected.providerID);
|
|
278
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
278
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
279
279
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
280
280
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
281
281
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -297,7 +297,7 @@ var layer19 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
297
297
|
websocket: selected.websocket ?? false
|
|
298
298
|
};
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service73.of({
|
|
301
301
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
302
302
|
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))));
|
|
303
303
|
if (!selected)
|
|
@@ -314,10 +314,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
314
314
|
const name = packageName2(packageName);
|
|
315
315
|
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;
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
service:
|
|
319
|
-
layer:
|
|
320
|
-
deps: [
|
|
317
|
+
var node78 = makeLocationNode({
|
|
318
|
+
service: Service73,
|
|
319
|
+
layer: layer24,
|
|
320
|
+
deps: [node80, node81, Npm.node, node79]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
323
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service73, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node78, exports_model_resolver };
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./job-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./job-
|
|
7
|
+
Service63,
|
|
8
|
+
node66
|
|
9
|
+
} from "./job-x1ayndpw.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
12
|
} from "./job-8d7r5vzw.js";
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service24,
|
|
24
|
+
node: () => node28
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service24 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service63;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service24.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node28 = makeLocationNode({ service: Service24, layer, deps: [node66, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error2, InvalidPatternError2,
|
|
180
|
+
export { Error2, InvalidPatternError2, Service24, node28, exports_ripgrep };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./job-
|
|
2
|
+
Service79,
|
|
3
|
+
node84
|
|
4
|
+
} from "./job-gv9pfq09.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./job-
|
|
6
|
+
Service68,
|
|
7
|
+
node73
|
|
8
|
+
} from "./job-deft6591.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./job-
|
|
10
|
+
ID4
|
|
11
|
+
} from "./job-6kdq0pjd.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service67,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./job-
|
|
15
|
+
node72
|
|
16
|
+
} from "./job-t08rskcp.js";
|
|
17
17
|
import {
|
|
18
18
|
lazy2
|
|
19
19
|
} from "./job-88xbtdfr.js";
|
|
@@ -24,43 +24,43 @@ import {
|
|
|
24
24
|
// src/pty.ts
|
|
25
25
|
var exports_pty = {};
|
|
26
26
|
__export(exports_pty, {
|
|
27
|
-
CreateInput: () =>
|
|
28
|
-
Event: () =>
|
|
27
|
+
CreateInput: () => CreateInput3,
|
|
28
|
+
Event: () => Event7,
|
|
29
29
|
ExitedError: () => ExitedError2,
|
|
30
|
-
Info: () =>
|
|
31
|
-
NotFoundError: () =>
|
|
30
|
+
Info: () => Info5,
|
|
31
|
+
NotFoundError: () => NotFoundError4,
|
|
32
32
|
Pty: () => exports_pty,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service26,
|
|
34
34
|
UpdateInput: () => UpdateInput2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node30
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
39
39
|
import { Pty } from "@opencode/schema/pty";
|
|
40
|
-
import { Event as
|
|
40
|
+
import { Event as Event7 } from "@opencode/schema/pty";
|
|
41
41
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
42
42
|
var EXITED_LIMIT = 25;
|
|
43
43
|
var pty = lazy2(() => import("#pty"));
|
|
44
|
-
var
|
|
45
|
-
var
|
|
44
|
+
var Info5 = Pty.Info;
|
|
45
|
+
var CreateInput3 = Pty.CreateInput;
|
|
46
46
|
var UpdateInput2 = Pty.UpdateInput;
|
|
47
47
|
|
|
48
|
-
class
|
|
49
|
-
ptyID:
|
|
48
|
+
class NotFoundError4 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
49
|
+
ptyID: ID4
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
54
|
-
ptyID:
|
|
54
|
+
ptyID: ID4
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service26 extends Context.Service()("@opencode/Pty") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
61
|
-
const bus = yield*
|
|
62
|
-
const location = yield*
|
|
63
|
-
const shell = yield*
|
|
60
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
61
|
+
const bus = yield* Service79;
|
|
62
|
+
const location = yield* Service68;
|
|
63
|
+
const shell = yield* Service67;
|
|
64
64
|
const context = yield* Effect.context();
|
|
65
65
|
const runFork = Effect.runForkWith(context);
|
|
66
66
|
const sessions = new Map;
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
97
97
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
98
98
|
const session = sessions.get(id);
|
|
99
99
|
if (!session)
|
|
100
|
-
return yield* new
|
|
100
|
+
return yield* new NotFoundError4({ ptyID: id });
|
|
101
101
|
return session;
|
|
102
102
|
});
|
|
103
103
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -123,7 +123,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
123
123
|
return (yield* requireSession(id)).info;
|
|
124
124
|
});
|
|
125
125
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
126
|
-
const id =
|
|
126
|
+
const id = ID4.ascending();
|
|
127
127
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
128
128
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
129
129
|
const cwd = input.cwd || location.directory;
|
|
@@ -268,12 +268,12 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
});
|
|
271
|
-
return
|
|
271
|
+
return Service26.of({ list, get, create, update, remove, write, attach });
|
|
272
272
|
}));
|
|
273
|
-
var
|
|
274
|
-
service:
|
|
273
|
+
var node30 = makeLocationNode({
|
|
274
|
+
service: Service26,
|
|
275
275
|
layer,
|
|
276
|
-
deps: [
|
|
276
|
+
deps: [node84, node73, node72]
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { Info5, CreateInput3, UpdateInput2, NotFoundError4, ExitedError2, Service26, node30, exports_pty, Event7 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ID11,
|
|
3
|
+
Info25,
|
|
4
4
|
SessionSchema2
|
|
5
|
-
} from "./job-
|
|
5
|
+
} from "./job-jexxy024.js";
|
|
6
6
|
import {
|
|
7
7
|
RelativePath2
|
|
8
8
|
} from "./job-922hggd3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./job-
|
|
10
|
+
Service80,
|
|
11
|
+
node85
|
|
12
|
+
} from "./job-3gv83b7t.js";
|
|
13
13
|
import {
|
|
14
14
|
isSynced2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./job-
|
|
15
|
+
Service79,
|
|
16
|
+
node84
|
|
17
|
+
} from "./job-gv9pfq09.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./job-
|
|
19
|
+
Service69,
|
|
20
|
+
node74
|
|
21
|
+
} from "./job-fyd8j9ny.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./job-
|
|
23
|
+
Service45,
|
|
24
|
+
node48
|
|
25
|
+
} from "./job-ff0htmxq.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionEvent2
|
|
28
28
|
} from "./job-ec1grn59.js";
|
|
29
29
|
import {
|
|
30
30
|
SessionMessageTable2
|
|
31
|
-
} from "./job-
|
|
31
|
+
} from "./job-a1bz86dw.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./job-
|
|
33
|
+
node49
|
|
34
|
+
} from "./job-dkk4x6n7.js";
|
|
35
35
|
import {
|
|
36
36
|
current2
|
|
37
|
-
} from "./job-
|
|
37
|
+
} from "./job-vkxpz7g2.js";
|
|
38
38
|
import {
|
|
39
39
|
snapshot2
|
|
40
|
-
} from "./job-
|
|
40
|
+
} from "./job-p2k8yj8g.js";
|
|
41
41
|
import {
|
|
42
42
|
Slug2
|
|
43
43
|
} from "./job-gebd4c9n.js";
|
|
44
44
|
import {
|
|
45
45
|
SessionAlreadyProjected2,
|
|
46
|
-
|
|
47
|
-
} from "./job-
|
|
46
|
+
node33
|
|
47
|
+
} from "./job-zrk62573.js";
|
|
48
48
|
import {
|
|
49
49
|
Metadata2,
|
|
50
|
-
|
|
51
|
-
} from "./job-
|
|
50
|
+
node70
|
|
51
|
+
} from "./job-648q9dvv.js";
|
|
52
52
|
import {
|
|
53
|
-
|
|
53
|
+
NotFoundError9,
|
|
54
54
|
MessageNotFoundError2,
|
|
55
55
|
ForkEmptyError2,
|
|
56
56
|
MessageDecodeError2,
|
|
@@ -61,55 +61,55 @@ import {
|
|
|
61
61
|
BusyError2,
|
|
62
62
|
InboxConflictError2,
|
|
63
63
|
SkillNotFoundError2
|
|
64
|
-
} from "./job-
|
|
64
|
+
} from "./job-ybhbtxjg.js";
|
|
65
65
|
import {
|
|
66
66
|
ListInput5,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} from "./job-
|
|
67
|
+
Service60,
|
|
68
|
+
node63
|
|
69
|
+
} from "./job-n1nx5qrt.js";
|
|
70
70
|
import {
|
|
71
|
-
|
|
71
|
+
Service66,
|
|
72
72
|
node71
|
|
73
|
-
} from "./job-
|
|
73
|
+
} from "./job-jfa9ssce.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} from "./job-
|
|
75
|
+
Service43,
|
|
76
|
+
node47
|
|
77
|
+
} from "./job-rzb9r8hj.js";
|
|
78
78
|
import {
|
|
79
79
|
llmClient2
|
|
80
80
|
} from "./job-5t3nmthw.js";
|
|
81
81
|
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} from "./job-
|
|
82
|
+
Service38,
|
|
83
|
+
node43
|
|
84
|
+
} from "./job-ey45p7wh.js";
|
|
85
85
|
import {
|
|
86
86
|
generate3
|
|
87
|
-
} from "./job-
|
|
87
|
+
} from "./job-05q1c7jv.js";
|
|
88
88
|
import {
|
|
89
89
|
execute2
|
|
90
|
-
} from "./job-
|
|
90
|
+
} from "./job-3r7hejq5.js";
|
|
91
91
|
import {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} from "./job-
|
|
92
|
+
Service48,
|
|
93
|
+
node51
|
|
94
|
+
} from "./job-8yjy7zng.js";
|
|
95
95
|
import {
|
|
96
96
|
DestinationNotFoundError2,
|
|
97
97
|
DestinationNotDirectoryError2,
|
|
98
98
|
DestinationUnavailableError2,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
} from "./job-
|
|
99
|
+
Service28,
|
|
100
|
+
node32
|
|
101
|
+
} from "./job-dvv5h0qn.js";
|
|
102
102
|
import {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
} from "./job-
|
|
103
|
+
Service51,
|
|
104
|
+
node54
|
|
105
|
+
} from "./job-x8gz1y8e.js";
|
|
106
106
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./job-
|
|
107
|
+
make15
|
|
108
|
+
} from "./job-5e1wh1k3.js";
|
|
109
109
|
import {
|
|
110
110
|
TurnRangeError2,
|
|
111
111
|
turn2
|
|
112
|
-
} from "./job-
|
|
112
|
+
} from "./job-c1165j3g.js";
|
|
113
113
|
import {
|
|
114
114
|
__export
|
|
115
115
|
} from "./job-9rqn6x4v.js";
|
|
@@ -123,22 +123,22 @@ __export(exports_session, {
|
|
|
123
123
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
124
124
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
125
125
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
126
|
-
ID: () =>
|
|
126
|
+
ID: () => ID11,
|
|
127
127
|
InboxConflictError: () => InboxConflictError2,
|
|
128
|
-
Info: () =>
|
|
128
|
+
Info: () => Info25,
|
|
129
129
|
ListAnchor: () => ListAnchor2,
|
|
130
130
|
ListInput: () => ListInput3,
|
|
131
131
|
MessageDecodeError: () => MessageDecodeError2,
|
|
132
132
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
133
|
-
NotFoundError: () =>
|
|
133
|
+
NotFoundError: () => NotFoundError9,
|
|
134
134
|
PromptConflictError: () => PromptConflictError2,
|
|
135
|
-
Service: () =>
|
|
135
|
+
Service: () => Service27,
|
|
136
136
|
Session: () => exports_session,
|
|
137
137
|
SessionSchema: () => SessionSchema2,
|
|
138
138
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
139
139
|
SyntheticConflictError: () => SyntheticConflictError2,
|
|
140
140
|
TurnRangeError: () => TurnRangeError2,
|
|
141
|
-
node: () =>
|
|
141
|
+
node: () => node31
|
|
142
142
|
});
|
|
143
143
|
import { Effect, Layer, Schema, Context, Stream } from "effect";
|
|
144
144
|
import { LLMClient } from "@opencode/ai";
|
|
@@ -149,26 +149,26 @@ import path from "path";
|
|
|
149
149
|
import { Node } from "@opencode/util/effect/app-node";
|
|
150
150
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
151
151
|
var ListInput3 = ListInput5;
|
|
152
|
-
class
|
|
152
|
+
class Service27 extends Context.Service()("@opencode/Session") {
|
|
153
153
|
}
|
|
154
|
-
var layer = Layer.effect(
|
|
154
|
+
var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
155
155
|
const app = yield* Metadata2;
|
|
156
|
-
const database = yield*
|
|
156
|
+
const database = yield* Service80;
|
|
157
157
|
const db = database.db;
|
|
158
|
-
const bus = yield*
|
|
159
|
-
const projects = yield*
|
|
160
|
-
const execution = yield*
|
|
158
|
+
const bus = yield* Service79;
|
|
159
|
+
const projects = yield* Service69;
|
|
160
|
+
const execution = yield* Service43;
|
|
161
161
|
const llm = yield* LLMClient.Service;
|
|
162
|
-
const transport = yield*
|
|
163
|
-
const store = yield*
|
|
164
|
-
const instances = yield*
|
|
165
|
-
const moves = yield*
|
|
166
|
-
const jobs = yield*
|
|
167
|
-
const environments = yield*
|
|
168
|
-
const locations = yield*
|
|
169
|
-
const sessions = yield*
|
|
162
|
+
const transport = yield* Service38;
|
|
163
|
+
const store = yield* Service60;
|
|
164
|
+
const instances = yield* Service45;
|
|
165
|
+
const moves = yield* Service28;
|
|
166
|
+
const jobs = yield* Service66;
|
|
167
|
+
const environments = yield* Service51;
|
|
168
|
+
const locations = yield* Service48;
|
|
169
|
+
const sessions = yield* make15();
|
|
170
170
|
const isDurableSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
171
|
-
const result =
|
|
171
|
+
const result = Service27.of({
|
|
172
172
|
create: Effect.fn("Session.create")(function* (input) {
|
|
173
173
|
const sessionID = input.id ?? SessionSchema2.ID.create();
|
|
174
174
|
const recorded = yield* store.get(sessionID);
|
|
@@ -176,7 +176,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
176
176
|
return recorded;
|
|
177
177
|
const parent = input.parentID ? yield* store.get(input.parentID) : undefined;
|
|
178
178
|
if (input.parentID && parent === undefined)
|
|
179
|
-
return yield* new
|
|
179
|
+
return yield* new NotFoundError9({ sessionID: input.parentID });
|
|
180
180
|
const location = parent?.location ?? input.location;
|
|
181
181
|
if (location === undefined)
|
|
182
182
|
return yield* Effect.die(new Error("Session.create requires either location or an existing parentID"));
|
|
@@ -281,11 +281,11 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
281
281
|
prompt: (input) => sessions.forSession(input.sessionID).prompt(input),
|
|
282
282
|
generate: Effect.fn("Session.generate")(function* (input) {
|
|
283
283
|
const session = yield* result.get(input.sessionID);
|
|
284
|
-
return yield* generate3({ session, prompt: input.prompt }).pipe(Effect.provideService(
|
|
284
|
+
return yield* generate3({ session, prompt: input.prompt }).pipe(Effect.provideService(Service45, instances), Effect.provideService(Service80, database), Effect.provideService(LLMClient.Service, llm));
|
|
285
285
|
}),
|
|
286
286
|
command: Effect.fn("Session.command")(function* (input) {
|
|
287
287
|
const session = yield* result.get(input.sessionID);
|
|
288
|
-
return yield* execute2({ ...input, session }).pipe(Effect.provideService(
|
|
288
|
+
return yield* execute2({ ...input, session }).pipe(Effect.provideService(Service45, instances));
|
|
289
289
|
}),
|
|
290
290
|
shell: (input) => sessions.forSession(input.sessionID).shell(input),
|
|
291
291
|
skill: (input) => sessions.forSession(input.sessionID).skill(input),
|
|
@@ -326,27 +326,27 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
326
326
|
});
|
|
327
327
|
return result;
|
|
328
328
|
}));
|
|
329
|
-
var
|
|
330
|
-
service:
|
|
329
|
+
var node31 = Node.makeGlobalNode({
|
|
330
|
+
service: Service27,
|
|
331
331
|
layer,
|
|
332
332
|
deps: [
|
|
333
333
|
node71,
|
|
334
|
-
|
|
334
|
+
node54,
|
|
335
|
+
node85,
|
|
335
336
|
node84,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
node37,
|
|
337
|
+
node74,
|
|
338
|
+
node47,
|
|
339
|
+
node43,
|
|
340
340
|
llmClient2,
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
node63,
|
|
342
|
+
node48,
|
|
343
|
+
node49,
|
|
344
|
+
node32,
|
|
345
|
+
node33,
|
|
346
|
+
node51,
|
|
347
347
|
FSUtil.node,
|
|
348
|
-
|
|
348
|
+
node70
|
|
349
349
|
]
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
-
export { ListAnchor2, ListInput3,
|
|
352
|
+
export { ListAnchor2, ListInput3, Service27, node31, exports_session };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service48,
|
|
3
|
+
node51,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./job-
|
|
5
|
+
} from "./job-8yjy7zng.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./job-
|
|
7
|
+
Service45,
|
|
8
|
+
node48
|
|
9
|
+
} from "./job-ff0htmxq.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./job-
|
|
11
|
+
Service19
|
|
12
|
+
} from "./job-k5axrfmk.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./job-
|
|
15
|
+
} from "./job-3c10da2j.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service48, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -28,7 +28,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
28
28
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
29
29
|
return Effect.void;
|
|
30
30
|
if (Exit.isSuccess(exit)) {
|
|
31
|
-
build.close = Context.get(exit.value,
|
|
31
|
+
build.close = Context.get(exit.value, Service19).close;
|
|
32
32
|
return Effect.void;
|
|
33
33
|
}
|
|
34
34
|
MutableHashMap.remove(builds, ref);
|
|
@@ -50,11 +50,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
50
50
|
})
|
|
51
51
|
};
|
|
52
52
|
const bindings = [
|
|
53
|
-
|
|
53
|
+
node48.replace(Layer.succeed(Service45, {
|
|
54
54
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
55
55
|
})),
|
|
56
56
|
...replacements,
|
|
57
|
-
|
|
57
|
+
node51.replace(Layer.succeed(Service48, map))
|
|
58
58
|
];
|
|
59
59
|
return map;
|
|
60
60
|
}));
|