@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
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./job-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./job-
|
|
6
|
+
} from "./job-fyd8j9ny.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./job-
|
|
8
|
+
Service68,
|
|
9
|
+
node73
|
|
10
|
+
} from "./job-deft6591.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./job-
|
|
12
|
+
Service58,
|
|
13
|
+
node61
|
|
14
|
+
} from "./job-a17g06ed.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./job-9rqn6x4v.js";
|
|
@@ -22,9 +22,9 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service22,
|
|
26
26
|
externalDirectoryPermission: () => externalDirectoryPermission2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node26,
|
|
28
28
|
resolvePath: () => resolvePath2
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
|
|
|
43
43
|
save: [input.save]
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service22 extends Context.Service()("@opencode/FileAccess") {
|
|
47
47
|
}
|
|
48
48
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
49
49
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -55,10 +55,10 @@ var invocation = (context) => ({
|
|
|
55
55
|
agent: context.agent,
|
|
56
56
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
57
57
|
});
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
59
59
|
const fs = yield* FSUtil.Service;
|
|
60
|
-
const location = yield*
|
|
61
|
-
const permission = yield*
|
|
60
|
+
const location = yield* Service68;
|
|
61
|
+
const permission = yield* Service58;
|
|
62
62
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
63
63
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
64
64
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
107
107
|
});
|
|
108
108
|
return target;
|
|
109
109
|
});
|
|
110
|
-
return
|
|
110
|
+
return Service22.of({ resolve, authorizeExternal, authorizeRead });
|
|
111
111
|
}));
|
|
112
|
-
var
|
|
112
|
+
var node26 = makeLocationNode({ service: Service22, layer, deps: [FSUtil.node, node73, node61] });
|
|
113
113
|
|
|
114
|
-
export { Kind2, ResolveInput2, externalDirectoryPermission2,
|
|
114
|
+
export { Kind2, ResolveInput2, externalDirectoryPermission2, Service22, resolvePath2, node26, exports_file_access };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./job-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./job-
|
|
5
|
+
ID5,
|
|
6
|
+
Service56
|
|
7
|
+
} from "./job-6mjv2hgg.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./job-
|
|
10
|
+
} from "./job-jexxy024.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./job-
|
|
13
|
+
} from "./job-ybhbtxjg.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./job-
|
|
16
|
+
} from "./job-a1bz86dw.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./job-9rqn6x4v.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service56;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID5.make(from),
|
|
91
|
+
to: ID5.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./job-
|
|
2
|
+
Service70
|
|
3
|
+
} from "./job-5c91nd8t.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
@@ -20,7 +20,7 @@ import { Worktree } from "@opencode/schema/worktree";
|
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
21
|
var make12 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
|
-
const git = yield*
|
|
23
|
+
const git = yield* Service70;
|
|
24
24
|
return {
|
|
25
25
|
id: Worktree.StrategyID.make("git"),
|
|
26
26
|
create: Effect.fn("Worktree.Git.create")(function* (input) {
|
|
@@ -4,12 +4,12 @@ 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
|
Content2
|
|
12
|
-
} from "./job-
|
|
12
|
+
} from "./job-danc237s.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
15
|
} from "./job-3smtnn6g.js";
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service8,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node10,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service8 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -326,13 +326,13 @@ var nthNewline = (bytes, count) => {
|
|
|
326
326
|
return index + 1;
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
|
-
var layer = Layer.effect(
|
|
330
|
-
const environment = yield*
|
|
331
|
-
return
|
|
329
|
+
var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
330
|
+
const environment = yield* Service63;
|
|
331
|
+
return Service8.of({
|
|
332
332
|
list: environment.files.list,
|
|
333
333
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
334
334
|
});
|
|
335
335
|
}));
|
|
336
|
-
var
|
|
336
|
+
var node10 = makeLocationNode({ service: Service8, layer, deps: [node66] });
|
|
337
337
|
|
|
338
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2,
|
|
338
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service8, read2, node10, exports_read_filesystem };
|
|
@@ -3,39 +3,39 @@ import {
|
|
|
3
3
|
} from "./job-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
|
-
var
|
|
7
|
-
__export(
|
|
6
|
+
var exports_permission = {};
|
|
7
|
+
__export(exports_permission, {
|
|
8
8
|
Action: () => Action2,
|
|
9
|
-
ConfigPermissionV1: () =>
|
|
10
|
-
Info: () =>
|
|
9
|
+
ConfigPermissionV1: () => exports_permission,
|
|
10
|
+
Info: () => Info13,
|
|
11
11
|
Object: () => Object2,
|
|
12
|
-
Rule: () =>
|
|
12
|
+
Rule: () => Rule2
|
|
13
13
|
});
|
|
14
14
|
import { Schema, SchemaGetter } from "effect";
|
|
15
15
|
var Action2 = Schema.Literals(["ask", "allow", "deny"]).annotate({ identifier: "PermissionActionConfig" });
|
|
16
16
|
var Object2 = Schema.Record(Schema.String, Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
17
|
-
var
|
|
17
|
+
var Rule2 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
18
18
|
var InputObject = Schema.StructWithRest(Schema.Struct({
|
|
19
|
-
read: Schema.optional(
|
|
20
|
-
edit: Schema.optional(
|
|
21
|
-
glob: Schema.optional(
|
|
22
|
-
grep: Schema.optional(
|
|
23
|
-
list: Schema.optional(
|
|
24
|
-
bash: Schema.optional(
|
|
25
|
-
task: Schema.optional(
|
|
26
|
-
external_directory: Schema.optional(
|
|
19
|
+
read: Schema.optional(Rule2),
|
|
20
|
+
edit: Schema.optional(Rule2),
|
|
21
|
+
glob: Schema.optional(Rule2),
|
|
22
|
+
grep: Schema.optional(Rule2),
|
|
23
|
+
list: Schema.optional(Rule2),
|
|
24
|
+
bash: Schema.optional(Rule2),
|
|
25
|
+
task: Schema.optional(Rule2),
|
|
26
|
+
external_directory: Schema.optional(Rule2),
|
|
27
27
|
question: Schema.optional(Action2),
|
|
28
|
-
webfetch: Schema.optional(
|
|
28
|
+
webfetch: Schema.optional(Rule2),
|
|
29
29
|
websearch: Schema.optional(Action2),
|
|
30
|
-
lsp: Schema.optional(
|
|
30
|
+
lsp: Schema.optional(Rule2),
|
|
31
31
|
doom_loop: Schema.optional(Action2),
|
|
32
|
-
skill: Schema.optional(
|
|
33
|
-
}), [Schema.Record(Schema.String,
|
|
32
|
+
skill: Schema.optional(Rule2)
|
|
33
|
+
}), [Schema.Record(Schema.String, Rule2)]);
|
|
34
34
|
var InputSchema = Schema.Union([Action2, InputObject]);
|
|
35
35
|
var normalizeInput = (input) => typeof input === "string" ? { "*": input } : input;
|
|
36
|
-
var
|
|
36
|
+
var Info13 = InputSchema.pipe(Schema.decodeTo(InputObject, {
|
|
37
37
|
decode: SchemaGetter.transform(normalizeInput),
|
|
38
38
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
39
39
|
})).annotate({ identifier: "PermissionConfig" });
|
|
40
40
|
|
|
41
|
-
export { Action2, Object2,
|
|
41
|
+
export { Action2, Object2, Rule2, Info13, exports_permission };
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
RelativePath2
|
|
4
4
|
} from "./job-922hggd3.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./job-
|
|
6
|
+
Service68,
|
|
7
|
+
node73
|
|
8
|
+
} from "./job-deft6591.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./job-
|
|
10
|
+
Service14,
|
|
11
|
+
node18
|
|
12
|
+
} from "./job-8g4pmx6v.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./job-9rqn6x4v.js";
|
|
@@ -28,11 +28,11 @@ __export(exports_filesystem, {
|
|
|
28
28
|
GrepInput: () => GrepInput2,
|
|
29
29
|
ListInput: () => ListInput2,
|
|
30
30
|
Match: () => Match2,
|
|
31
|
-
NotFoundError: () =>
|
|
31
|
+
NotFoundError: () => NotFoundError2,
|
|
32
32
|
ReadInput: () => ReadInput2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service13,
|
|
34
34
|
Submatch: () => Submatch2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node17
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import path from "path";
|
|
@@ -44,7 +44,7 @@ var ReadInput2 = Schema.Struct({
|
|
|
44
44
|
path: RelativePath2
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class NotFoundError2 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
48
48
|
path: RelativePath2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
@@ -80,12 +80,12 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
80
80
|
}
|
|
81
81
|
var Event3 = FileSystem.Event;
|
|
82
82
|
|
|
83
|
-
class
|
|
83
|
+
class Service13 extends Context.Service()("@opencode/FileSystem") {
|
|
84
84
|
}
|
|
85
|
-
var baseLayer = Layer.effect(
|
|
85
|
+
var baseLayer = Layer.effect(Service13, Effect.gen(function* () {
|
|
86
86
|
const fs = yield* FSUtil.Service;
|
|
87
|
-
const location = yield*
|
|
88
|
-
const search = yield*
|
|
87
|
+
const location = yield* Service68;
|
|
88
|
+
const search = yield* Service14;
|
|
89
89
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
90
90
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
91
91
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -96,15 +96,15 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
96
96
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
97
97
|
return { absolute, real, directory: location.directory };
|
|
98
98
|
});
|
|
99
|
-
return
|
|
99
|
+
return Service13.of({
|
|
100
100
|
find: search.find,
|
|
101
101
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
102
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
103
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
102
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
103
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
104
104
|
if (info.type !== "File")
|
|
105
105
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
106
106
|
return {
|
|
107
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
107
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error))),
|
|
108
108
|
mime: FSUtil.mimeType(target.real)
|
|
109
109
|
};
|
|
110
110
|
}),
|
|
@@ -128,10 +128,10 @@ var baseLayer = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
132
|
-
service:
|
|
131
|
+
var node17 = makeLocationNode({
|
|
132
|
+
service: Service13,
|
|
133
133
|
layer: baseLayer,
|
|
134
|
-
deps: [FSUtil.node,
|
|
134
|
+
deps: [FSUtil.node, node73, node18]
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
export { FindInput2, ReadInput2,
|
|
137
|
+
export { FindInput2, ReadInput2, NotFoundError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event3, Service13, node17, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./job-
|
|
2
|
+
Service69,
|
|
3
|
+
node74
|
|
4
|
+
} from "./job-fyd8j9ny.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./job-9rqn6x4v.js";
|
|
@@ -9,25 +9,25 @@ import {
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info26,
|
|
13
13
|
Location: () => exports_location,
|
|
14
|
-
Ref: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Ref: () => Ref2,
|
|
15
|
+
Service: () => Service68,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node73,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info26, Ref as Ref2, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service68 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref, options) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node73 = LayerNode.unbound(Service68, tags.values.location);
|
|
27
|
+
var layer = (ref, options) => Layer.effect(Service68, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service69;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory, options);
|
|
30
|
-
return
|
|
30
|
+
return Service68.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref, options) => Layer.effect(Service72, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref, options) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service68,
|
|
39
39
|
layer: layer(ref, options),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node74]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info26, Ref2, response2, Service68, node73, boundNode2, exports_location };
|
|
@@ -7,7 +7,7 @@ var exports_formatter3 = {};
|
|
|
7
7
|
__export(exports_formatter3, {
|
|
8
8
|
ConfigFormatterV1: () => exports_formatter3,
|
|
9
9
|
Entry: () => Entry4,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info18
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
13
|
var Entry4 = Schema.Struct({
|
|
@@ -16,6 +16,6 @@ var Entry4 = Schema.Struct({
|
|
|
16
16
|
environment: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
17
17
|
extensions: Schema.optional(Schema.mutable(Schema.Array(Schema.String)))
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var Info18 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry4)]);
|
|
20
20
|
|
|
21
|
-
export { Entry4,
|
|
21
|
+
export { Entry4, Info18, exports_formatter3 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./job-
|
|
2
|
+
Service80,
|
|
3
|
+
node85
|
|
4
|
+
} from "./job-3gv83b7t.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
7
|
} from "./job-y71avatq.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./job-
|
|
9
|
+
Service79,
|
|
10
|
+
node84
|
|
11
|
+
} from "./job-gv9pfq09.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
14
|
} from "./job-ec1grn59.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
} from "./job-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./job-
|
|
20
|
+
} from "./job-jexxy024.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./job-
|
|
24
|
+
} from "./job-a1bz86dw.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
27
|
} from "./job-9rqn6x4v.js";
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info8,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service46,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +45,12 @@ __export(exports_inbox, {
|
|
|
45
45
|
UserPayload: () => UserPayload2,
|
|
46
46
|
find: () => find2,
|
|
47
47
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
49
|
-
list: () =>
|
|
50
|
-
make: () =>
|
|
48
|
+
layer: () => layer19,
|
|
49
|
+
list: () => list3,
|
|
50
|
+
make: () => make17,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node49,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info8,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,12 +151,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service46 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
|
-
var
|
|
157
|
-
const database = yield*
|
|
156
|
+
var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
|
+
const database = yield* Service80;
|
|
158
158
|
const db = database.db;
|
|
159
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service79;
|
|
160
160
|
const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
|
|
161
161
|
const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
|
|
162
162
|
if (existing === undefined)
|
|
@@ -173,7 +173,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info8.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
timeCreated: DateTime.makeUnsafe(event.created),
|
|
@@ -193,7 +193,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
193
193
|
}
|
|
194
194
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
195
195
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
196
|
-
const pending = (yield*
|
|
196
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
197
197
|
if (pending)
|
|
198
198
|
return pending;
|
|
199
199
|
return yield* admit({
|
|
@@ -218,7 +218,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
218
218
|
delivery: "queue"
|
|
219
219
|
})));
|
|
220
220
|
return {
|
|
221
|
-
list: (sessionID) =>
|
|
221
|
+
list: (sessionID) => list3(db, sessionID),
|
|
222
222
|
reconcile,
|
|
223
223
|
admit,
|
|
224
224
|
admitCompaction,
|
|
@@ -227,8 +227,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var layer19 = Layer.effect(Service46, make17());
|
|
231
|
+
var node49 = makeGlobalNode({ service: Service46, layer: layer19, deps: [node85, node84] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -266,7 +266,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
266
266
|
from: input.delivery === "steer" ? "queue" : "steer",
|
|
267
267
|
to: input.delivery
|
|
268
268
|
}));
|
|
269
|
-
var
|
|
269
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
270
270
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
271
271
|
return rows.map(fromRow);
|
|
272
272
|
});
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info8, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service46, make17, layer19, node49, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|