@opencode-ai/core 0.0.0-beta-18219 → 0.0.0-beta-18269

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.
Files changed (380) hide show
  1. package/dist/agent.js +49 -53
  2. package/dist/aisdk-native.js +2 -2
  3. package/dist/aisdk.js +2 -2
  4. package/dist/bus.js +48 -52
  5. package/dist/catalog.js +54 -58
  6. package/dist/chunks/{state-qasbckzx.js → state-05wd10c5.js} +80 -80
  7. package/dist/chunks/{state-h9sy0va2.js → state-08sn05f7.js} +5 -5
  8. package/dist/chunks/{state-fvnc3e3d.js → state-0n5r8s68.js} +5 -5
  9. package/dist/chunks/{state-vvmq9xvn.js → state-0qdyn92p.js} +11 -11
  10. package/dist/chunks/{state-0r6r61g5.js → state-0rqcx54b.js} +1 -1
  11. package/dist/chunks/{state-3d1t6jqf.js → state-11jmdqxk.js} +2 -2
  12. package/dist/chunks/{state-hk8vx4ga.js → state-13bb7frp.js} +4 -4
  13. package/dist/chunks/{state-fxw49t4p.js → state-14n6xd2t.js} +1 -1
  14. package/dist/chunks/{state-5vpdk7xd.js → state-1dxwhedr.js} +3 -3
  15. package/dist/chunks/{state-en9qv3ee.js → state-1eyrk6kn.js} +2 -2
  16. package/dist/chunks/{state-efvmw2xw.js → state-1jg449r0.js} +1 -1
  17. package/dist/chunks/{state-6x98y149.js → state-1k8hd2s1.js} +1 -1
  18. package/dist/chunks/{state-x07gtesk.js → state-1z63g373.js} +2 -2
  19. package/dist/chunks/{state-wzvy0tx9.js → state-21cqa2vh.js} +3 -3
  20. package/dist/chunks/{state-xm8j1t5h.js → state-25g1tcbn.js} +2 -2
  21. package/dist/chunks/{state-rs9n91g6.js → state-2667yp75.js} +2 -6
  22. package/dist/chunks/{state-fkg79ekq.js → state-27mgx7wm.js} +8 -8
  23. package/dist/chunks/{state-mc1mz2pc.js → state-2q2hjh4d.js} +2 -2
  24. package/dist/chunks/{state-6yt963b8.js → state-2xb0r1c6.js} +3 -1
  25. package/dist/chunks/{state-gwpydf4a.js → state-2zjhyv5q.js} +1 -1
  26. package/dist/chunks/{state-e0wkpsf3.js → state-369rn14b.js} +4 -4
  27. package/dist/chunks/{state-5tehh5r2.js → state-3bgrn618.js} +10 -10
  28. package/dist/chunks/{state-y643ex83.js → state-3hnnvm1k.js} +2 -2
  29. package/dist/chunks/{state-g1zg5aqr.js → state-3j8hmcr0.js} +3 -3
  30. package/dist/chunks/{state-5gas9jc2.js → state-3kdskcc3.js} +4 -4
  31. package/dist/chunks/{state-myychbwq.js → state-3n6fpmg4.js} +2 -2
  32. package/dist/chunks/{state-6a16bmez.js → state-3ng63sbq.js} +3 -3
  33. package/dist/chunks/{state-1a3a2s70.js → state-3zyjx98r.js} +1 -1
  34. package/dist/chunks/{state-njywpcye.js → state-453w8ra4.js} +6 -6
  35. package/dist/chunks/{state-14wbm4hn.js → state-4cxzzthm.js} +3 -3
  36. package/dist/chunks/{state-3mexq3pq.js → state-4fa10fyv.js} +13 -13
  37. package/dist/chunks/{state-eaejza2t.js → state-4m26jex0.js} +1 -1
  38. package/dist/chunks/{state-5cj22h72.js → state-4p1mqhwg.js} +153 -153
  39. package/dist/chunks/{state-xz479kyk.js → state-4wqm8gvz.js} +4 -13
  40. package/dist/chunks/{state-rn9r0ddn.js → state-5dwqq0br.js} +13 -1
  41. package/dist/chunks/{state-qe0aav6y.js → state-5ew1nkwg.js} +7 -7
  42. package/dist/chunks/{state-dhccyx0v.js → state-5qgmwqxx.js} +1 -1
  43. package/dist/chunks/{state-ayfpp7hf.js → state-61ba6bgr.js} +24 -28
  44. package/dist/chunks/{state-tj4jvx23.js → state-6m78tbrd.js} +5 -5
  45. package/dist/chunks/{state-4g5pgmex.js → state-6mtxg7ec.js} +11 -11
  46. package/dist/chunks/{state-bh50qah0.js → state-6xtnn7py.js} +4 -4
  47. package/dist/chunks/{state-e1pa6vc2.js → state-6zbf46dw.js} +9 -9
  48. package/dist/chunks/{state-2r1bah04.js → state-6zrz2gj9.js} +5 -5
  49. package/dist/chunks/{state-bdhgfttt.js → state-7rn7c1wb.js} +10 -10
  50. package/dist/chunks/{state-jfgv8vsa.js → state-81mmkvpk.js} +11 -11
  51. package/dist/chunks/{state-z88k6s2w.js → state-8en9tkxq.js} +15 -3
  52. package/dist/chunks/{state-0dqphqhz.js → state-8hedmdhf.js} +2 -2
  53. package/dist/chunks/{state-te0cypm2.js → state-8mcwjqk5.js} +6 -6
  54. package/dist/chunks/{state-fwsc80k7.js → state-8nxrj4pj.js} +1 -1
  55. package/dist/chunks/{state-625h1wqn.js → state-91frc5mm.js} +4 -4
  56. package/dist/chunks/{state-qv06sb3r.js → state-9g8h1q3a.js} +1 -1
  57. package/dist/chunks/{state-9p8mhgdp.js → state-9p22jmaw.js} +1 -1
  58. package/dist/chunks/{state-3gsv1x0v.js → state-9tbj2q0z.js} +3 -13
  59. package/dist/chunks/{state-cb46h7pc.js → state-9y48xc9h.js} +3 -3
  60. package/dist/chunks/{state-7g3ydvzh.js → state-a1p868km.js} +4 -4
  61. package/dist/chunks/{state-kdn1ck8k.js → state-a4f6ct0f.js} +2 -2
  62. package/dist/chunks/{state-63gtrn1b.js → state-a600x74j.js} +1 -1
  63. package/dist/chunks/{state-hhfaz00h.js → state-a9dsqgp1.js} +1 -2
  64. package/dist/chunks/{state-2ya5073c.js → state-aaxez5kq.js} +1 -1
  65. package/dist/chunks/{state-8a9e14vy.js → state-adsxqz7v.js} +3 -3
  66. package/dist/chunks/{state-38jwdxby.js → state-asfw3td4.js} +1 -1
  67. package/dist/chunks/{state-effdwybp.js → state-b17xd5mf.js} +9 -10
  68. package/dist/chunks/{state-qtaajmpt.js → state-b4htb9ej.js} +1 -1
  69. package/dist/chunks/{state-1fqmpy8k.js → state-b64x4rkh.js} +35 -35
  70. package/dist/chunks/{state-d7y00n83.js → state-bc330n33.js} +27 -16
  71. package/dist/chunks/{state-esjk7kfz.js → state-be0semnx.js} +7 -7
  72. package/dist/chunks/{state-jm68rb0q.js → state-bkk1b4ms.js} +6 -6
  73. package/dist/chunks/{state-tjjf1q77.js → state-bmd659vv.js} +1 -1
  74. package/dist/chunks/{state-8mftgzpj.js → state-bnttfg6s.js} +1 -1
  75. package/dist/chunks/{state-qjnrmq1k.js → state-cc76sxm0.js} +4 -4
  76. package/dist/chunks/{state-yfq2zvb9.js → state-ck58sp58.js} +1 -1
  77. package/dist/chunks/{state-568e76aa.js → state-ckq2jga8.js} +3 -3
  78. package/dist/chunks/{state-4j7te1s0.js → state-d4ax61k3.js} +15 -3
  79. package/dist/chunks/{state-5xrsrne4.js → state-dvt8wt6j.js} +2 -2
  80. package/dist/chunks/state-e3fd12s5.js +151 -0
  81. package/dist/chunks/{state-8tw3qzpt.js → state-e4xwk5z4.js} +2 -2
  82. package/dist/chunks/{state-78y9e82n.js → state-e8nbj9tw.js} +3 -48
  83. package/dist/chunks/{state-5mntg4nb.js → state-e97zy5jx.js} +2 -2
  84. package/dist/chunks/{state-8gp1tmat.js → state-e9yzz6kb.js} +1 -1
  85. package/dist/chunks/{state-tpwp4gvc.js → state-eax51wg3.js} +4 -4
  86. package/dist/chunks/{state-tt8fjeh9.js → state-eekpgcpd.js} +62 -70
  87. package/dist/chunks/{state-bkw9e9jk.js → state-emksydcf.js} +26 -26
  88. package/dist/chunks/{state-xjn4tcwe.js → state-eq06mre2.js} +2 -2
  89. package/dist/chunks/{state-1g0dcjrg.js → state-eqzrzvwz.js} +2 -2
  90. package/dist/chunks/{state-qajwj4ps.js → state-fbnbqahk.js} +3 -3
  91. package/dist/chunks/{state-cwzmv738.js → state-fj104twx.js} +1 -1
  92. package/dist/chunks/{state-g7t6p8r2.js → state-fsqnkees.js} +1 -1
  93. package/dist/chunks/{state-hhxt27np.js → state-fyegnnfc.js} +1 -1
  94. package/dist/chunks/{state-5zayf0x8.js → state-g0aw0gzh.js} +66 -57
  95. package/dist/chunks/{state-yb8yd193.js → state-gbxfsqwm.js} +2 -2
  96. package/dist/chunks/{state-d19eexxk.js → state-gyrwtw78.js} +1 -1
  97. package/dist/chunks/{state-982wwmdk.js → state-h2t3q2wm.js} +1 -1
  98. package/dist/chunks/{state-59d95h76.js → state-h3y01asp.js} +12 -9
  99. package/dist/chunks/{state-jf35ek5b.js → state-h846wrk2.js} +1 -0
  100. package/dist/chunks/{state-djkt4gex.js → state-hhajr42d.js} +3 -0
  101. package/dist/chunks/{state-dgfy6zt2.js → state-jabxf61s.js} +5 -5
  102. package/dist/chunks/{state-cqdxefk2.js → state-jgvtg6c9.js} +40 -14
  103. package/dist/chunks/{state-7qqad34w.js → state-jkjzgk2k.js} +8 -8
  104. package/dist/chunks/{state-rmr740y4.js → state-jsm51fhb.js} +9 -9
  105. package/dist/chunks/{state-qh4vq1fm.js → state-jxwvj0fm.js} +8 -8
  106. package/dist/chunks/{state-6msxydxg.js → state-k6ybxbw4.js} +9 -9
  107. package/dist/chunks/{state-ftfyk4m7.js → state-kag74pk5.js} +2 -2
  108. package/dist/chunks/{state-t0tt4nmt.js → state-kb33ew3e.js} +8 -8
  109. package/dist/chunks/{state-4ce5qhvd.js → state-kxp8ef5p.js} +5 -5
  110. package/dist/chunks/{state-2zf7hxjt.js → state-m0ebj05k.js} +13 -2
  111. package/dist/chunks/{state-bcvcrp33.js → state-mjgqapyb.js} +2 -2
  112. package/dist/chunks/{state-va5k7fad.js → state-mr28yfk1.js} +27 -7
  113. package/dist/chunks/{state-wcc1vz83.js → state-mwymssey.js} +42 -42
  114. package/dist/chunks/{state-gg8gy1ab.js → state-n1x4rjqh.js} +2 -2
  115. package/dist/chunks/{state-e2qdw0tg.js → state-n5fzcn0n.js} +5 -5
  116. package/dist/chunks/{state-3zqgma8g.js → state-na8etft7.js} +2 -2
  117. package/dist/chunks/{state-h094egad.js → state-nfhhzyc6.js} +4 -4
  118. package/dist/chunks/{state-y966n2ac.js → state-njsznp42.js} +10 -10
  119. package/dist/chunks/{state-nzexh2ja.js → state-nrbk1kjp.js} +87 -87
  120. package/dist/chunks/{state-rgk6q7se.js → state-ntvdej23.js} +1 -1
  121. package/dist/chunks/{state-rph6nvyf.js → state-p1c6e6m1.js} +26 -26
  122. package/dist/chunks/{state-dr1mvjy7.js → state-p3twfje4.js} +3 -3
  123. package/dist/chunks/{state-epzxjdf4.js → state-p7764ja1.js} +2 -2
  124. package/dist/chunks/{state-2zyrrrhx.js → state-pewx9f2e.js} +3 -3
  125. package/dist/chunks/{state-vz30fbtb.js → state-pspf2xyp.js} +3 -3
  126. package/dist/chunks/{state-4gksgcvv.js → state-q22rp0t0.js} +14 -14
  127. package/dist/chunks/{state-cve546b2.js → state-q7kk6b5b.js} +1 -1
  128. package/dist/chunks/{state-1427k8mt.js → state-qe7xhz7y.js} +2 -2
  129. package/dist/chunks/{state-e9jfq0e9.js → state-rpqdmjwk.js} +1 -1
  130. package/dist/chunks/{state-993n0k7x.js → state-s57t7xkg.js} +1 -1
  131. package/dist/chunks/{state-wyhq3myq.js → state-ss47qkgm.js} +3 -3
  132. package/dist/chunks/{state-fdx44h11.js → state-syqxsax9.js} +1 -1
  133. package/dist/chunks/{state-9wqc5k0a.js → state-sz0e55kk.js} +4 -4
  134. package/dist/chunks/{state-0b13gwpq.js → state-t0m69jt4.js} +4 -4
  135. package/dist/chunks/{state-shhqc982.js → state-t7gaqyw5.js} +15 -15
  136. package/dist/chunks/{state-c9eyxdsa.js → state-tawttwre.js} +9 -9
  137. package/dist/chunks/{state-5m91ayta.js → state-v1g0nhk2.js} +1 -1
  138. package/dist/chunks/{state-7svew3xx.js → state-v4sgqzfn.js} +5 -5
  139. package/dist/chunks/{state-fypnrcda.js → state-vh3jgmz8.js} +6 -6
  140. package/dist/chunks/{state-6dpj79be.js → state-vs2j5dte.js} +2 -2
  141. package/dist/chunks/{state-qsh6aavw.js → state-w5aydxy7.js} +3 -3
  142. package/dist/chunks/{state-20hhthrk.js → state-w946z2q4.js} +4 -4
  143. package/dist/chunks/{state-1jaejmkb.js → state-wgfqc61v.js} +2 -2
  144. package/dist/chunks/{state-eq90zxhy.js → state-x9z4espg.js} +3 -3
  145. package/dist/chunks/{state-c9tk9ghs.js → state-xfry7hk8.js} +1 -1
  146. package/dist/chunks/{state-j5tp9x2q.js → state-y2q46fcs.js} +10 -10
  147. package/dist/chunks/{state-c09ww48j.js → state-y5as78a2.js} +1 -1
  148. package/dist/chunks/{state-zbjdaqcp.js → state-yah8vtgx.js} +4 -4
  149. package/dist/chunks/{state-fywp5vae.js → state-yv2xx3v3.js} +3 -3
  150. package/dist/chunks/{state-zrbk8s17.js → state-yx107q08.js} +9 -9
  151. package/dist/chunks/{state-crg4yysy.js → state-yxz07vzv.js} +1 -1
  152. package/dist/chunks/{state-0vgt3zn6.js → state-z6xdhe6c.js} +1 -1
  153. package/dist/chunks/{state-kb2qf3qs.js → state-zh7kq3j8.js} +3 -3
  154. package/dist/chunks/{state-77cj1yb3.js → state-zma7gfkw.js} +4 -4
  155. package/dist/chunks/{state-s4ame7nd.js → state-zmtjwfap.js} +4 -4
  156. package/dist/chunks/{state-hk8exvw2.js → state-zv8psbr7.js} +2 -2
  157. package/dist/command.js +49 -53
  158. package/dist/config/normalize.js +12 -12
  159. package/dist/config/plugin/agent.js +82 -86
  160. package/dist/config/plugin/command.js +71 -75
  161. package/dist/config/plugin/compaction.js +110 -114
  162. package/dist/config/plugin/entry-observer.js +68 -72
  163. package/dist/config/plugin/formatter.js +71 -75
  164. package/dist/config/plugin/image.js +79 -83
  165. package/dist/config/plugin/instruction.js +54 -58
  166. package/dist/config/plugin/location-watcher.js +70 -74
  167. package/dist/config/plugin/mcp.js +78 -82
  168. package/dist/config/plugin/policy.js +70 -74
  169. package/dist/config/plugin/provider.js +69 -73
  170. package/dist/config/plugin/reference.js +73 -77
  171. package/dist/config/plugin/shell.js +71 -75
  172. package/dist/config/plugin/skill-file.js +67 -71
  173. package/dist/config/plugin/skill.js +84 -88
  174. package/dist/config/plugin/snapshot.js +71 -75
  175. package/dist/config/plugin/source.js +69 -73
  176. package/dist/config/plugin/tool-output.js +72 -76
  177. package/dist/config/plugin/websearch.js +69 -73
  178. package/dist/config.js +68 -72
  179. package/dist/credential.js +52 -51
  180. package/dist/database/database.js +46 -50
  181. package/dist/database/drizzle/effect-sqlite/driver.js +8 -11
  182. package/dist/database/drizzle/effect-sqlite/index.js +8 -11
  183. package/dist/database/drizzle/effect-sqlite/session.js +7 -10
  184. package/dist/database/drizzle/index.js +9 -16
  185. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  186. package/dist/database/drizzle/sqlite-core/effect/index.js +16 -21
  187. package/dist/database/drizzle/sqlite-core/effect/session.js +7 -12
  188. package/dist/database/drizzle.js +9 -16
  189. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  190. package/dist/database/migration.gen.js +35 -35
  191. package/dist/database/migration.js +36 -36
  192. package/dist/database/v1-migration.bun.js +52 -56
  193. package/dist/effect/app-node-builder.js +254 -260
  194. package/dist/environment/environment.js +55 -59
  195. package/dist/environment/index.js +57 -61
  196. package/dist/event-logger.js +48 -52
  197. package/dist/file-mutation.js +56 -60
  198. package/dist/filesystem/location-watcher.js +237 -243
  199. package/dist/filesystem/search.js +58 -62
  200. package/dist/filesystem.js +58 -62
  201. package/dist/form.js +49 -53
  202. package/dist/formatter.js +53 -57
  203. package/dist/generate.js +58 -62
  204. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
  205. package/dist/github-copilot/copilot-provider.js +8 -8
  206. package/dist/github-copilot/models.js +3 -3
  207. package/dist/github-copilot/responses/openai-responses-language-model.js +4 -4
  208. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
  209. package/dist/image/photon.js +60 -64
  210. package/dist/image.js +60 -64
  211. package/dist/instruction-discovery.js +50 -54
  212. package/dist/instructions/builtins.js +53 -57
  213. package/dist/integration.js +51 -55
  214. package/dist/job.js +1 -1
  215. package/dist/kv.js +47 -51
  216. package/dist/location-activity.js +51 -55
  217. package/dist/location-mutation.js +52 -56
  218. package/dist/location-service-map.js +51 -55
  219. package/dist/location-services.js +254 -260
  220. package/dist/location.js +51 -55
  221. package/dist/mcp/client.js +56 -60
  222. package/dist/mcp/index.js +62 -66
  223. package/dist/mcp/instructions.js +83 -87
  224. package/dist/mcp/stdio.js +56 -60
  225. package/dist/model-resolver.js +57 -61
  226. package/dist/model.js +2 -2
  227. package/dist/models-dev.js +52 -56
  228. package/dist/permission/saved.js +51 -55
  229. package/dist/permission/sql.js +1 -1
  230. package/dist/permission.js +65 -69
  231. package/dist/persistent-pty/index.js +49 -53
  232. package/dist/persistent-pty.js +49 -53
  233. package/dist/plugin/agent.js +66 -70
  234. package/dist/plugin/command.js +63 -67
  235. package/dist/plugin/host.js +117 -121
  236. package/dist/plugin/internal.js +229 -235
  237. package/dist/plugin/models-dev.js +53 -57
  238. package/dist/plugin/plan.js +66 -70
  239. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  240. package/dist/plugin/provider/anthropic.js +2 -2
  241. package/dist/plugin/provider/azure.js +75 -79
  242. package/dist/plugin/provider/cerebras.js +2 -2
  243. package/dist/plugin/provider/cloudflare-ai-gateway.js +76 -80
  244. package/dist/plugin/provider/cloudflare-workers-ai.js +76 -80
  245. package/dist/plugin/provider/configured.js +74 -78
  246. package/dist/plugin/provider/github-copilot.js +57 -61
  247. package/dist/plugin/provider/gitlab.js +2 -2
  248. package/dist/plugin/provider/google-vertex.js +2 -2
  249. package/dist/plugin/provider/kilo.js +2 -2
  250. package/dist/plugin/provider/llmgateway.js +53 -57
  251. package/dist/plugin/provider/lmstudio.js +69 -73
  252. package/dist/plugin/provider/nvidia.js +2 -2
  253. package/dist/plugin/provider/ollama.js +69 -73
  254. package/dist/plugin/provider/openai.js +53 -57
  255. package/dist/plugin/provider/opencode.js +63 -67
  256. package/dist/plugin/provider/openrouter.js +3 -3
  257. package/dist/plugin/provider/sap-ai-core.js +2 -2
  258. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  259. package/dist/plugin/provider/vercel.js +2 -2
  260. package/dist/plugin/provider/vllm.js +69 -73
  261. package/dist/plugin/provider/xai.js +53 -57
  262. package/dist/plugin/provider/zenmux.js +2 -2
  263. package/dist/plugin/provider.js +108 -114
  264. package/dist/plugin/runtime.js +103 -107
  265. package/dist/plugin/sdk.js +49 -53
  266. package/dist/plugin/skill.js +84 -88
  267. package/dist/plugin/supervisor.js +238 -244
  268. package/dist/plugin/variant.js +3 -3
  269. package/dist/plugin/vcs/git.js +52 -56
  270. package/dist/plugin/vcs/hg.js +52 -56
  271. package/dist/plugin/warming.js +70 -74
  272. package/dist/plugin/websearch/index.js +4 -4
  273. package/dist/plugin.js +118 -122
  274. package/dist/project/sql.js +1 -1
  275. package/dist/project.js +50 -54
  276. package/dist/provider.js +1 -1
  277. package/dist/pty/ticket.js +48 -52
  278. package/dist/pty.js +54 -58
  279. package/dist/reference/instructions.js +52 -56
  280. package/dist/reference.js +50 -54
  281. package/dist/ripgrep.js +57 -61
  282. package/dist/session/compaction.js +94 -98
  283. package/dist/session/context.js +242 -248
  284. package/dist/session/execution/restart.js +79 -83
  285. package/dist/session/execution.js +79 -83
  286. package/dist/session/generate-node.js +243 -249
  287. package/dist/session/history.js +50 -54
  288. package/dist/session/inbox.js +50 -54
  289. package/dist/session/info.js +58 -62
  290. package/dist/session/instruction-entry.js +49 -53
  291. package/dist/session/instruction-state.js +2 -2
  292. package/dist/session/instructions.js +62 -66
  293. package/dist/session/model-request.js +91 -95
  294. package/dist/session/model-transport.js +1 -1
  295. package/dist/session/projector.js +57 -61
  296. package/dist/session/revert.js +55 -59
  297. package/dist/session/runner/index.js +59 -63
  298. package/dist/session/runner/llm.js +246 -252
  299. package/dist/session/runner/model.js +59 -63
  300. package/dist/session/runner/retry.js +48 -52
  301. package/dist/session/runner/to-llm-message.js +1 -1
  302. package/dist/session/sql.js +1 -1
  303. package/dist/session/stats.js +47 -51
  304. package/dist/session/store.js +61 -65
  305. package/dist/session/title.js +92 -96
  306. package/dist/session/to-session-error.js +76 -80
  307. package/dist/session/transfer.js +102 -105
  308. package/dist/session.js +105 -109
  309. package/dist/shell/parse.js +3 -3
  310. package/dist/shell/select.js +2 -2
  311. package/dist/shell.js +61 -65
  312. package/dist/skill/instructions.js +67 -71
  313. package/dist/skill.js +68 -70
  314. package/dist/snapshot.js +53 -57
  315. package/dist/tool/mcp.js +82 -86
  316. package/dist/tool/plugin/edit.js +72 -76
  317. package/dist/tool/plugin/glob.js +74 -78
  318. package/dist/tool/plugin/grep.js +74 -78
  319. package/dist/tool/plugin/patch.js +72 -76
  320. package/dist/tool/plugin/question.js +67 -71
  321. package/dist/tool/plugin/read.js +76 -80
  322. package/dist/tool/plugin/shell.js +122 -126
  323. package/dist/tool/plugin/skill.js +67 -71
  324. package/dist/tool/plugin/subagent.js +119 -123
  325. package/dist/tool/plugin/webfetch.js +67 -71
  326. package/dist/tool/plugin/websearch.js +70 -74
  327. package/dist/tool/plugin/write.js +72 -76
  328. package/dist/tool/read-filesystem.js +59 -63
  329. package/dist/tool.js +75 -79
  330. package/dist/types/bus.d.ts +1 -0
  331. package/dist/types/credential.d.ts +156 -1
  332. package/dist/types/database/drizzle/index.d.ts +0 -1
  333. package/dist/types/database/drizzle/sqlite-core/effect/session.d.ts +0 -6
  334. package/dist/types/database/migration.d.ts +2 -2
  335. package/dist/types/integration.d.ts +4 -0
  336. package/dist/types/model.d.ts +3 -0
  337. package/dist/types/session/compaction.d.ts +1 -0
  338. package/dist/types/session/history.d.ts +5 -0
  339. package/dist/types/session/inbox.d.ts +5 -0
  340. package/dist/types/session/transfer.d.ts +2 -0
  341. package/dist/types/skill.d.ts +6 -0
  342. package/dist/types/v1/config/migrate.d.ts +1 -0
  343. package/dist/types/worktree.d.ts +20 -0
  344. package/dist/v1/config/config.js +7 -7
  345. package/dist/v1/config/migrate.js +11 -11
  346. package/dist/vcs.js +53 -57
  347. package/dist/websearch.js +50 -54
  348. package/dist/wellknown/plugin.js +51 -55
  349. package/dist/wellknown.js +50 -54
  350. package/dist/workspace.js +48 -52
  351. package/dist/worktree/sql.js +1 -1
  352. package/dist/worktree.js +52 -56
  353. package/package.json +8 -11
  354. package/dist/chunks/state-4pxf671z.js +0 -97
  355. package/dist/chunks/state-4zg0gww9.js +0 -55
  356. package/dist/chunks/state-f84sxdqn.js +0 -49
  357. package/dist/chunks/state-hsyk7kfz.js +0 -56
  358. package/dist/chunks/state-jssy2dr3.js +0 -18
  359. package/dist/chunks/state-pfqehjmy.js +0 -18
  360. package/dist/chunks/state-qqevkq7v.js +0 -12
  361. package/dist/database/drizzle/effect-sqlite/migrator.js +0 -20
  362. package/dist/database/drizzle/up-migrations/effect-sqlite.js +0 -9
  363. package/dist/database/drizzle/up-migrations/sqlite.js +0 -9
  364. package/dist/database/drizzle/up-migrations/utils.js +0 -9
  365. package/dist/plugin/provider/deepinfra.js +0 -8
  366. package/dist/plugin/provider/togetherai.js +0 -8
  367. package/dist/types/database/drizzle/effect-sqlite/migrator.d.ts +0 -4
  368. package/dist/types/database/drizzle/up-migrations/effect-sqlite.d.ts +0 -8
  369. package/dist/types/database/drizzle/up-migrations/sqlite.d.ts +0 -26
  370. package/dist/types/database/drizzle/up-migrations/utils.d.ts +0 -21
  371. package/dist/types/plugin/provider/deepinfra.d.ts +0 -1
  372. package/dist/types/plugin/provider/togetherai.d.ts +0 -1
  373. package/dist/chunks/{state-wrw92r0k.js → state-6embh6xw.js} +3 -3
  374. package/dist/chunks/{state-p1xvm7za.js → state-a8bn7nwa.js} +3 -3
  375. package/dist/chunks/{state-wvjbjymc.js → state-dnt65mkc.js} +0 -0
  376. package/dist/chunks/{state-shg9btfn.js → state-kfxvy8fx.js} +6 -6
  377. package/dist/chunks/{state-sh61temt.js → state-ky29wa5d.js} +17 -17
  378. package/dist/chunks/{state-rrc4sky2.js → state-qzaqf2fn.js} +3 -3
  379. package/dist/chunks/{state-7fr2g77j.js → state-xd2p33y8.js} +7 -7
  380. package/dist/chunks/{state-46qzmhmr.js → state-zaz2fh21.js} +10 -10
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  exports_models
3
- } from "./state-5xrsrne4.js";
3
+ } from "./state-dvt8wt6j.js";
4
4
  import {
5
5
  exports_app
6
6
  } from "./state-50jxp3hw.js";
7
- import {
8
- exports_agent
9
- } from "./state-gwpydf4a.js";
10
7
  import {
11
8
  exports_catalog
12
- } from "./state-jm68rb0q.js";
9
+ } from "./state-bkk1b4ms.js";
13
10
  import {
14
11
  exports_integration
15
- } from "./state-ayfpp7hf.js";
12
+ } from "./state-61ba6bgr.js";
16
13
  import {
17
14
  exports_credential
18
- } from "./state-4pxf671z.js";
15
+ } from "./state-e3fd12s5.js";
16
+ import {
17
+ exports_agent
18
+ } from "./state-2zjhyv5q.js";
19
19
  import {
20
20
  exports_model
21
- } from "./state-1a3a2s70.js";
21
+ } from "./state-3zyjx98r.js";
22
22
  import {
23
23
  exports_provider
24
- } from "./state-djkt4gex.js";
24
+ } from "./state-hhajr42d.js";
25
25
  import {
26
26
  exports_bus
27
- } from "./state-4ce5qhvd.js";
27
+ } from "./state-kxp8ef5p.js";
28
28
  import {
29
29
  __require
30
30
  } from "./state-rvfvac9x.js";
@@ -208,7 +208,7 @@ var GithubCopilotPlugin = define({
208
208
  }
209
209
  });
210
210
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
211
- yield* bus.subscribe(exports_integration.Event.ConnectionUpdated).pipe(Stream.filter((event) => event.data.integrationID === exports_integration.ID.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
211
+ yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => event.data.integrationID === exports_integration.ID.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
212
212
  yield* refresh().pipe(Effect.forkScoped);
213
213
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
214
214
  if (evt.model.providerID !== exports_provider.ID.githubCopilot)
@@ -1,12 +1,12 @@
1
+ import {
2
+ configuredSettings
3
+ } from "./state-ss47qkgm.js";
1
4
  import {
2
5
  iife
3
6
  } from "./state-ehj9csmv.js";
4
- import {
5
- configuredSettings
6
- } from "./state-wyhq3myq.js";
7
7
  import {
8
8
  exports_provider
9
- } from "./state-djkt4gex.js";
9
+ } from "./state-hhajr42d.js";
10
10
  import {
11
11
  __require
12
12
  } from "./state-rvfvac9x.js";
@@ -3,25 +3,25 @@ import {
3
3
  } from "./state-6ky7rqk7.js";
4
4
  import {
5
5
  exports_select
6
- } from "./state-p1xvm7za.js";
6
+ } from "./state-a8bn7nwa.js";
7
+ import {
8
+ exports_file_retention
9
+ } from "./state-hp6rpdnc.js";
7
10
  import {
8
11
  exports_hooks
9
12
  } from "./state-v2wshkax.js";
10
13
  import {
11
- exports_file_retention
12
- } from "./state-hp6rpdnc.js";
14
+ SessionSchema
15
+ } from "./state-bjwj8hwv.js";
13
16
  import {
14
17
  exports_environment1 as exports_environment
15
- } from "./state-te0cypm2.js";
18
+ } from "./state-8mcwjqk5.js";
16
19
  import {
17
20
  exports_location
18
- } from "./state-efvmw2xw.js";
19
- import {
20
- SessionSchema
21
- } from "./state-bjwj8hwv.js";
21
+ } from "./state-1jg449r0.js";
22
22
  import {
23
23
  exports_bus
24
- } from "./state-4ce5qhvd.js";
24
+ } from "./state-kxp8ef5p.js";
25
25
  import {
26
26
  __export,
27
27
  __require
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_entry_observer
3
3
  } from "./state-kp1t5rcy.js";
4
- import {
5
- exports_reference
6
- } from "./state-625h1wqn.js";
7
4
  import {
8
5
  exports_config
9
- } from "./state-effdwybp.js";
6
+ } from "./state-b17xd5mf.js";
7
+ import {
8
+ exports_reference
9
+ } from "./state-91frc5mm.js";
10
10
  import {
11
11
  exports_location
12
- } from "./state-efvmw2xw.js";
12
+ } from "./state-1jg449r0.js";
13
13
  import {
14
14
  AbsolutePath
15
15
  } from "./state-j07kk359.js";
@@ -1,24 +1,24 @@
1
1
  import {
2
- exports_promise
3
- } from "./state-5vcssjzn.js";
2
+ exports_sdk
3
+ } from "./state-yxz07vzv.js";
4
4
  import {
5
5
  exports_internal
6
- } from "./state-5cj22h72.js";
6
+ } from "./state-4p1mqhwg.js";
7
7
  import {
8
- exports_source
9
- } from "./state-mc1mz2pc.js";
8
+ exports_promise
9
+ } from "./state-5vcssjzn.js";
10
10
  import {
11
- exports_sdk
12
- } from "./state-crg4yysy.js";
11
+ exports_source
12
+ } from "./state-2q2hjh4d.js";
13
13
  import {
14
14
  exports_plugin
15
- } from "./state-1fqmpy8k.js";
15
+ } from "./state-b64x4rkh.js";
16
16
  import {
17
17
  Service
18
18
  } from "./state-s33fw6zm.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./state-4ce5qhvd.js";
21
+ } from "./state-kxp8ef5p.js";
22
22
  import {
23
23
  __export
24
24
  } from "./state-rvfvac9x.js";
@@ -100,7 +100,7 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (pre, post, operat
100
100
  });
101
101
  var load = Effect.fn("PluginSupervisor.load")(function* (operation) {
102
102
  const npm = yield* Npm.Service;
103
- const entrypoint = path.isAbsolute(operation.target) ? pathToFileURL(operation.target).href : (yield* npm.add(operation.target, { subpaths: ["server", ""] })).entrypoint;
103
+ const entrypoint = path.isAbsolute(operation.target) ? pathToFileURL(operation.target).href : (yield* npm.add(operation.target, { subpaths: ["server", ""], refresh: true })).entrypoint;
104
104
  if (!entrypoint)
105
105
  return yield* Effect.fail(new Error(`Plugin entrypoint not found: ${operation.target}`));
106
106
  const source = operation.mtime === undefined ? entrypoint : typeof Bun !== "undefined" ? `${operation.target.replaceAll("\\", "/")}?mtime=${operation.mtime}` : `${entrypoint}?mtime=${operation.mtime}`;
@@ -1,23 +1,23 @@
1
- import {
2
- exports_aisdk_native
3
- } from "./state-rn9r0ddn.js";
4
1
  import {
5
2
  exports_catalog
6
- } from "./state-jm68rb0q.js";
3
+ } from "./state-bkk1b4ms.js";
7
4
  import {
8
5
  exports_integration
9
- } from "./state-ayfpp7hf.js";
6
+ } from "./state-61ba6bgr.js";
7
+ import {
8
+ exports_aisdk_native
9
+ } from "./state-5dwqq0br.js";
10
+ import {
11
+ exports_aisdk
12
+ } from "./state-m0ebj05k.js";
10
13
  import {
11
14
  ID,
12
15
  Ref,
13
16
  VariantID
14
- } from "./state-1a3a2s70.js";
15
- import {
16
- exports_aisdk
17
- } from "./state-2zf7hxjt.js";
17
+ } from "./state-3zyjx98r.js";
18
18
  import {
19
19
  exports_provider
20
- } from "./state-djkt4gex.js";
20
+ } from "./state-hhajr42d.js";
21
21
  import {
22
22
  __export
23
23
  } from "./state-rvfvac9x.js";
@@ -243,7 +243,7 @@ function hasConfiguredAuth(model) {
243
243
  }
244
244
  function usesAPIKeyAuth(packageName) {
245
245
  const name = exports_provider.packageName(packageName);
246
- return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode-ai/ai/providers/openai" || name?.startsWith("@opencode-ai/ai/providers/openai/") === true || name === "@opencode-ai/ai/providers/anthropic" || name === "@opencode-ai/ai/providers/anthropic-compatible" || name === "@opencode-ai/ai/providers/openai-compatible" || name === "@opencode-ai/ai/providers/google" || name === "@opencode-ai/ai/providers/xai" || name === "@opencode-ai/ai/providers/openrouter" || name === "@opencode-ai/ai/providers/azure" || name?.startsWith("@opencode-ai/ai/providers/azure/") === true;
246
+ 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/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode-ai/ai/providers/openai" || name?.startsWith("@opencode-ai/ai/providers/openai/") === true || name === "@opencode-ai/ai/providers/anthropic" || name === "@opencode-ai/ai/providers/anthropic-compatible" || name === "@opencode-ai/ai/providers/cerebras" || name === "@opencode-ai/ai/providers/deepinfra" || name === "@opencode-ai/ai/providers/openai-compatible" || name === "@opencode-ai/ai/providers/google" || name === "@opencode-ai/ai/providers/togetherai" || name === "@opencode-ai/ai/providers/xai" || name === "@opencode-ai/ai/providers/openrouter" || name === "@opencode-ai/ai/providers/azure" || name?.startsWith("@opencode-ai/ai/providers/azure/") === true;
247
247
  }
248
248
  var node = makeLocationNode({
249
249
  service: Service,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./state-rmr740y4.js";
3
+ } from "./state-jsm51fhb.js";
4
4
  import {
5
5
  exports_state
6
6
  } from "./state-qhdqjp31.js";
7
7
  import {
8
8
  exports_bus
9
- } from "./state-4ce5qhvd.js";
9
+ } from "./state-kxp8ef5p.js";
10
10
  import {
11
11
  __export
12
12
  } from "./state-rvfvac9x.js";
@@ -15,6 +15,7 @@ import {
15
15
  var exports_skill = {};
16
16
  __export(exports_skill, {
17
17
  toModelOutput: () => toModelOutput,
18
+ prepare: () => prepare,
18
19
  node: () => node,
19
20
  available: () => available,
20
21
  UrlSource: () => UrlSource,
@@ -60,6 +61,14 @@ var toModelOutput = (skill, files) => {
60
61
  ].join(`
61
62
  `);
62
63
  };
64
+ var prepare = Effect.fn("Skill.prepare")(function* (fs, skill) {
65
+ const directory = path.dirname(skill.location);
66
+ const files = path.basename(skill.location) === "SKILL.md" ? (yield* fs.scan("**/*", { cwd: directory, absolute: true, include: "file", dot: true })).filter((file) => path.basename(file) !== "SKILL.md").toSorted().slice(0, 10) : [];
67
+ return {
68
+ directory,
69
+ output: toModelOutput(skill, files)
70
+ };
71
+ });
63
72
 
64
73
  class Service extends Context.Service()("@opencode/Skill") {
65
74
  }
@@ -89,6 +98,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
89
98
  return Service.of({
90
99
  transform: state.transform,
91
100
  reload: state.reload,
101
+ get: Effect.fn("Skill.get")(function* (id) {
102
+ return state.get().skills.get(id);
103
+ }),
92
104
  list: Effect.fn("Skill.list")(function* () {
93
105
  return Array.from(state.get().skills.values());
94
106
  })
@@ -100,4 +112,4 @@ var node = makeLocationNode({
100
112
  deps: [exports_bus.node]
101
113
  });
102
114
 
103
- export { DirectorySource, UrlSource, EmbeddedSource, Source, Info, ID, Name, available, toModelOutput, Service, node, exports_skill, Event };
115
+ export { DirectorySource, UrlSource, EmbeddedSource, Source, Info, ID, Name, available, toModelOutput, prepare, Service, node, exports_skill, Event };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_permission
3
- } from "./state-rmr740y4.js";
3
+ } from "./state-jsm51fhb.js";
4
4
  import {
5
5
  exports_agent
6
- } from "./state-gwpydf4a.js";
6
+ } from "./state-2zjhyv5q.js";
7
7
  import {
8
8
  __export
9
9
  } from "./state-rvfvac9x.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
- makeLocalDriver
3
- } from "./state-zxe9jjhn.js";
2
+ makeMemoryDriver
3
+ } from "./state-yf0knd5z.js";
4
4
  import {
5
5
  execDefaults
6
6
  } from "./state-3g8vftxb.js";
7
7
  import {
8
- makeMemoryDriver
9
- } from "./state-yf0knd5z.js";
8
+ makeLocalDriver
9
+ } from "./state-zxe9jjhn.js";
10
10
  import {
11
11
  Failed,
12
12
  NotFound,
@@ -15,10 +15,10 @@ import {
15
15
  } from "./state-xczfw7dq.js";
16
16
  import {
17
17
  exports_workspace
18
- } from "./state-cb46h7pc.js";
18
+ } from "./state-9y48xc9h.js";
19
19
  import {
20
20
  exports_location
21
- } from "./state-efvmw2xw.js";
21
+ } from "./state-1jg449r0.js";
22
22
  import {
23
23
  __export
24
24
  } from "./state-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_environment1 as exports_environment
3
- } from "./state-te0cypm2.js";
3
+ } from "./state-8mcwjqk5.js";
4
4
  import {
5
5
  exports_keyed_mutex
6
6
  } from "./state-0kvmztkf.js";
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  exports_repository
6
6
  } from "./state-y198y2ra.js";
7
- import {
8
- AbsolutePath
9
- } from "./state-j07kk359.js";
10
7
  import {
11
8
  exports_state
12
9
  } from "./state-qhdqjp31.js";
10
+ import {
11
+ AbsolutePath
12
+ } from "./state-j07kk359.js";
13
13
  import {
14
14
  exports_bus
15
- } from "./state-4ce5qhvd.js";
15
+ } from "./state-kxp8ef5p.js";
16
16
  import {
17
17
  __export
18
18
  } from "./state-rvfvac9x.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./state-vz89hfgr.js";
11
11
  import {
12
12
  exports_location
13
- } from "./state-efvmw2xw.js";
13
+ } from "./state-1jg449r0.js";
14
14
  import {
15
15
  __export
16
16
  } from "./state-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./state-djkt4gex.js";
3
+ } from "./state-hhajr42d.js";
4
4
 
5
5
  // src/plugin/provider/sap-ai-core.ts
6
6
  import { Effect } from "effect";
@@ -1,9 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./state-djkt4gex.js";
4
- import {
5
- __require
6
- } from "./state-rvfvac9x.js";
3
+ } from "./state-hhajr42d.js";
7
4
 
8
5
  // src/plugin/provider/cerebras.ts
9
6
  import { Effect } from "effect";
@@ -13,21 +10,14 @@ var CerebrasPlugin = define({
13
10
  effect: Effect.fn(function* (ctx) {
14
11
  yield* ctx.catalog.transform((evt) => {
15
12
  for (const item of evt.provider.list()) {
16
- if (!exports_provider.isAISDK(item.provider.package))
17
- continue;
18
- if (exports_provider.packageName(item.provider.package) !== "@ai-sdk/cerebras")
13
+ const name = exports_provider.packageName(item.provider.package);
14
+ if (name !== "@ai-sdk/cerebras" && name !== "@opencode-ai/ai/providers/cerebras")
19
15
  continue;
20
16
  evt.provider.update(item.provider.id, (provider) => {
21
17
  provider.headers = { ...provider.headers, "X-Cerebras-3rd-Party-Integration": "opencode" };
22
18
  });
23
19
  }
24
20
  });
25
- yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
26
- if (evt.package !== "@ai-sdk/cerebras")
27
- return;
28
- const mod = yield* Effect.promise(() => import("@ai-sdk/cerebras"));
29
- evt.sdk = mod.createCerebras(evt.options);
30
- }));
31
21
  })
32
22
  });
33
23
 
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  exports_driver
6
6
  } from "./state-t14kykx1.js";
7
+ import {
8
+ exports_database
9
+ } from "./state-1z63g373.js";
7
10
  import {
8
11
  exports_keyed_mutex
9
12
  } from "./state-0kvmztkf.js";
10
- import {
11
- exports_database
12
- } from "./state-x07gtesk.js";
13
13
  import {
14
14
  __export
15
15
  } from "./state-rvfvac9x.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_instructions
3
3
  } from "./state-ec8vrfw5.js";
4
- import {
5
- AbsolutePath
6
- } from "./state-j07kk359.js";
7
4
  import {
8
5
  exports_state
9
6
  } from "./state-qhdqjp31.js";
7
+ import {
8
+ AbsolutePath
9
+ } from "./state-j07kk359.js";
10
10
  import {
11
11
  exports_bus
12
- } from "./state-4ce5qhvd.js";
12
+ } from "./state-kxp8ef5p.js";
13
13
  import {
14
14
  __export
15
15
  } from "./state-rvfvac9x.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  EffectSQLiteSession
3
- } from "./state-dhccyx0v.js";
3
+ } from "./state-5qgmwqxx.js";
4
4
  import {
5
5
  SQLiteEffectDatabase
6
- } from "./state-46qzmhmr.js";
6
+ } from "./state-zaz2fh21.js";
7
7
  import {
8
8
  jitCompatCheck
9
9
  } from "./state-k8b45nas.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_bus
3
- } from "./state-4ce5qhvd.js";
3
+ } from "./state-kxp8ef5p.js";
4
4
  import {
5
5
  __export
6
6
  } from "./state-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_skill
3
- } from "./state-z88k6s2w.js";
3
+ } from "./state-8en9tkxq.js";
4
4
  import {
5
5
  exports_instructions
6
6
  } from "./state-ec8vrfw5.js";
@@ -32,7 +32,6 @@ var entries = (skills) => skills.flatMap((skill) => [
32
32
  var render = (skills) => [
33
33
  "Skills provide specialized instructions and workflows for specific tasks.",
34
34
  "Use the skill tool to load a skill when a task matches its description.",
35
- "When the user references a skill with @skill-id, load that skill with the skill tool.",
36
35
  ...skills.length === 0 ? ["No skills are currently available."] : ["<available_skills>", ...entries(skills), "</available_skills>"]
37
36
  ].join(`
38
37
  `);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./state-djkt4gex.js";
3
+ } from "./state-hhajr42d.js";
4
4
 
5
5
  // src/plugin/provider/kilo.ts
6
6
  import { Effect } from "effect";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./state-df3v2q6j.js";
11
11
  import {
12
12
  exports_location
13
- } from "./state-efvmw2xw.js";
13
+ } from "./state-1jg449r0.js";
14
14
  import {
15
15
  exports_schema
16
16
  } from "./state-wptv627x.js";
@@ -28,10 +28,10 @@ import {
28
28
  } from "./state-j07kk359.js";
29
29
  import {
30
30
  exports_bus
31
- } from "./state-4ce5qhvd.js";
31
+ } from "./state-kxp8ef5p.js";
32
32
  import {
33
33
  exports_database
34
- } from "./state-x07gtesk.js";
34
+ } from "./state-1z63g373.js";
35
35
  import {
36
36
  __export
37
37
  } from "./state-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_select
3
- } from "./state-p1xvm7za.js";
3
+ } from "./state-a8bn7nwa.js";
4
4
  import {
5
5
  __export,
6
6
  __require
@@ -6,22 +6,22 @@ import {
6
6
  } from "./state-d2gk9vpf.js";
7
7
  import {
8
8
  exports_normalize
9
- } from "./state-6msxydxg.js";
9
+ } from "./state-k6ybxbw4.js";
10
10
  import {
11
11
  exports_wellknown
12
- } from "./state-8tw3qzpt.js";
12
+ } from "./state-e4xwk5z4.js";
13
+ import {
14
+ exports_credential
15
+ } from "./state-e3fd12s5.js";
13
16
  import {
14
17
  exports_location
15
- } from "./state-efvmw2xw.js";
18
+ } from "./state-1jg449r0.js";
16
19
  import {
17
20
  AbsolutePath
18
21
  } from "./state-j07kk359.js";
19
- import {
20
- exports_credential
21
- } from "./state-4pxf671z.js";
22
22
  import {
23
23
  exports_bus
24
- } from "./state-4ce5qhvd.js";
24
+ } from "./state-kxp8ef5p.js";
25
25
  import {
26
26
  __export
27
27
  } from "./state-rvfvac9x.js";
@@ -55,7 +55,6 @@ import {
55
55
  Info,
56
56
  Event
57
57
  } from "@opencode-ai/schema/config";
58
- import { Integration } from "@opencode-ai/schema/integration";
59
58
  import { isRecord } from "@opencode-ai/ai/utils/record";
60
59
  import { FSUtil } from "@opencode-ai/util/fs-util";
61
60
  import { Global } from "@opencode-ai/util/global";
@@ -160,7 +159,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
160
159
  const auth = entry.manifest.auth;
161
160
  if (!auth)
162
161
  return [];
163
- const credential = (yield* credentials.list(entry.integrationID)).findLast((credential2) => credential2.value.type === "key");
162
+ const credential = (yield* credentials.list(entry.integrationID)).at(-1);
164
163
  if (!credential || credential.value.type !== "key")
165
164
  return [];
166
165
  const variables = { [auth.env]: credential.value.key };
@@ -267,7 +266,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
267
266
  yield* bus.publish(Event.Updated, {});
268
267
  })));
269
268
  yield* Stream.fromPubSub(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach((update2) => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { path: update2.path, cause })))), Effect.forkScoped({ startImmediately: true }));
270
- yield* bus.subscribe(Integration.Event.ConnectionUpdated).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
269
+ yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
271
270
  yield* bus.subscribe(exports_wellknown.Event.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
272
271
  yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
273
272
  if (!wellknown.snapshot().length)
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_reference
3
- } from "./state-625h1wqn.js";
3
+ } from "./state-91frc5mm.js";
4
4
  import {
5
5
  exports_instructions
6
6
  } from "./state-ec8vrfw5.js";