@opencode-ai/core 0.0.0-dev-18666 → 0.0.0-dev-18668

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 (320) hide show
  1. package/dist/agent.js +51 -51
  2. package/dist/aisdk.js +1 -1
  3. package/dist/bus.js +50 -50
  4. package/dist/catalog.js +57 -57
  5. package/dist/chunks/{command-nrvqkfkb.js → command-04sm12e3.js} +11 -11
  6. package/dist/chunks/{command-fa55f9df.js → command-09gdnj31.js} +7 -7
  7. package/dist/chunks/{command-edy0r6ye.js → command-0cghev36.js} +1 -1
  8. package/dist/chunks/{command-avxz7gad.js → command-0qkvq4qz.js} +1 -1
  9. package/dist/chunks/{command-kp48nxz7.js → command-0xn50h6w.js} +5 -5
  10. package/dist/chunks/{command-3qen4mqr.js → command-12t3nrx0.js} +1 -1
  11. package/dist/chunks/{command-s0e6pyv1.js → command-21kafjd0.js} +8 -8
  12. package/dist/chunks/{command-92rs8vws.js → command-2fc1v0sz.js} +7 -7
  13. package/dist/chunks/{command-xx0sgaps.js → command-2ft5gea5.js} +14 -14
  14. package/dist/chunks/{command-0wh5jxya.js → command-2m3aea0y.js} +5 -5
  15. package/dist/chunks/{command-8t9x8w30.js → command-2zpe8jjq.js} +10 -10
  16. package/dist/chunks/{command-pkr4c9x5.js → command-31r8bnrn.js} +2 -2
  17. package/dist/chunks/{command-h5y38bzp.js → command-35bc9abw.js} +32 -32
  18. package/dist/chunks/{command-pspzm58k.js → command-37nb1dct.js} +1 -1
  19. package/dist/chunks/{command-7m8stqzx.js → command-3a4gm1e0.js} +7 -7
  20. package/dist/chunks/{command-rf3etfg3.js → command-3f00tj09.js} +4 -4
  21. package/dist/chunks/{command-gzyge54s.js → command-3nfp4ds2.js} +4 -4
  22. package/dist/chunks/{command-wjn10rk5.js → command-3pcs6ypa.js} +9 -9
  23. package/dist/chunks/{command-8msa2dg7.js → command-3sz5rbx3.js} +8 -8
  24. package/dist/chunks/{command-92ybq839.js → command-3vrd3seq.js} +1 -1
  25. package/dist/chunks/{command-ws7hshkn.js → command-3x59s1s5.js} +5 -5
  26. package/dist/chunks/{command-84n411sp.js → command-3ytqms96.js} +4 -4
  27. package/dist/chunks/{command-v2fx9tst.js → command-4gcz18ae.js} +4 -4
  28. package/dist/chunks/{command-e7x8er92.js → command-58q0cr1d.js} +1 -1
  29. package/dist/chunks/{command-w9e9m363.js → command-5f0f0wsf.js} +8 -8
  30. package/dist/chunks/{command-g796af3y.js → command-5k7by7f9.js} +3 -3
  31. package/dist/chunks/{command-e7npwrjc.js → command-5nf770jx.js} +3 -3
  32. package/dist/chunks/{command-5sy0g0hn.js → command-5qxmeaab.js} +1 -1
  33. package/dist/chunks/{command-xa6b11n3.js → command-61j9ghde.js} +3 -3
  34. package/dist/chunks/{command-sjfmrh6v.js → command-62yk3dhd.js} +9 -9
  35. package/dist/chunks/{command-wydr32w9.js → command-65w4qdsj.js} +8 -8
  36. package/dist/chunks/{command-zkqbszgq.js → command-6kknymzr.js} +13 -13
  37. package/dist/chunks/{command-pef8cs1e.js → command-703h6n82.js} +6 -6
  38. package/dist/chunks/{command-301eewqm.js → command-71tjtg6c.js} +2 -2
  39. package/dist/chunks/{command-cd5b2abk.js → command-7d10jk4c.js} +8 -8
  40. package/dist/chunks/{command-s8nxa6xr.js → command-7hx8jps4.js} +1 -1
  41. package/dist/chunks/{command-9xkgfdsw.js → command-7kn2r3gn.js} +2 -2
  42. package/dist/chunks/{command-45dcqads.js → command-7n90q60g.js} +6 -6
  43. package/dist/chunks/{command-0bb31gvj.js → command-7p84bq3x.js} +1 -1
  44. package/dist/chunks/{command-c95xqmky.js → command-8858p69e.js} +9 -9
  45. package/dist/chunks/{command-ee0jwf6e.js → command-8c2q1q6r.js} +1 -1
  46. package/dist/chunks/{command-163vcvhw.js → command-8pt7maek.js} +43 -37
  47. package/dist/chunks/{command-j96e3rgt.js → command-8z3wt96g.js} +8 -8
  48. package/dist/chunks/{command-0zcdge0s.js → command-90161may.js} +1 -1
  49. package/dist/chunks/{command-ed3q4w6r.js → command-9a51g7sg.js} +2 -2
  50. package/dist/chunks/{command-v9n0hcpt.js → command-9v1hmyz0.js} +3 -3
  51. package/dist/chunks/{command-ckv89kwr.js → command-a1t6mhxh.js} +2 -2
  52. package/dist/chunks/{command-kr8tzym4.js → command-a7edf9rn.js} +2 -2
  53. package/dist/chunks/{command-zjf5a0yc.js → command-atz2tx5a.js} +2 -2
  54. package/dist/chunks/{command-v4szcjk6.js → command-b0gag4kv.js} +2 -2
  55. package/dist/chunks/{command-58he138c.js → command-b4660xhk.js} +1 -1
  56. package/dist/chunks/{command-jzm946wd.js → command-bjf9bk2a.js} +7 -7
  57. package/dist/chunks/{command-xxfn8bcc.js → command-cqb54cet.js} +5 -5
  58. package/dist/chunks/{command-cj643j2w.js → command-cxb2tmz6.js} +2 -2
  59. package/dist/chunks/{command-q22d8q91.js → command-d009wc0p.js} +2 -2
  60. package/dist/chunks/{command-bw05gdks.js → command-d4qc24e3.js} +3 -3
  61. package/dist/chunks/{command-hhqdrs2x.js → command-ddtjqmhr.js} +4 -4
  62. package/dist/chunks/{command-5tz5y5ph.js → command-deb9berb.js} +1 -1
  63. package/dist/chunks/{command-cejbe1tk.js → command-dfe9bb8p.js} +22 -22
  64. package/dist/chunks/{command-1ngwwz9r.js → command-dk4d61ep.js} +1 -1
  65. package/dist/chunks/{command-mfdf2sys.js → command-dmfng1b3.js} +3 -3
  66. package/dist/chunks/{command-ympccj0p.js → command-dx1926bq.js} +8 -8
  67. package/dist/chunks/{command-gmv13kwg.js → command-eebchv2d.js} +3 -3
  68. package/dist/chunks/{command-4gzye1qn.js → command-efdt4yer.js} +10 -10
  69. package/dist/chunks/{command-2bdb184y.js → command-ej59606g.js} +10 -10
  70. package/dist/chunks/{command-s7e9tmqe.js → command-ekb86d3q.js} +1 -1
  71. package/dist/chunks/{command-v9nzbbrj.js → command-esfnd0cw.js} +9 -9
  72. package/dist/chunks/{command-kdmghh1n.js → command-eypxtpm5.js} +2 -2
  73. package/dist/chunks/{command-vs24af36.js → command-f11ypskv.js} +3 -3
  74. package/dist/chunks/{command-n5qseywc.js → command-fk0j9mat.js} +4 -4
  75. package/dist/chunks/{command-3v4ptp50.js → command-fvm5g9nk.js} +7 -7
  76. package/dist/chunks/{command-1cwndmbp.js → command-fz463vvs.js} +1 -1
  77. package/dist/chunks/{command-vhebj28f.js → command-g94fdv89.js} +4 -4
  78. package/dist/chunks/{command-075vry2e.js → command-g9ae7rtf.js} +1 -1
  79. package/dist/chunks/{command-r5w3s7f3.js → command-hct7g4zq.js} +7 -7
  80. package/dist/chunks/{command-8y6rhxm7.js → command-hg5vwb2v.js} +4 -4
  81. package/dist/chunks/{command-y85nmh9b.js → command-hk7bvhkg.js} +6 -6
  82. package/dist/chunks/{command-gty0camg.js → command-hqtxscnk.js} +3 -3
  83. package/dist/chunks/{command-de5esam2.js → command-j281xcgt.js} +1 -1
  84. package/dist/chunks/{command-y67bkcvh.js → command-j2ky44gt.js} +2 -2
  85. package/dist/chunks/{command-wn2gsfjx.js → command-j4gh2p0h.js} +80 -80
  86. package/dist/chunks/{command-x5g04qh7.js → command-j6ymn7ym.js} +1 -1
  87. package/dist/chunks/{command-tr6w0h2z.js → command-j7zsxm4h.js} +4 -4
  88. package/dist/chunks/{command-772d9n0x.js → command-jcr0kr8b.js} +3 -3
  89. package/dist/chunks/{command-f6p6ryk3.js → command-jfr9syp8.js} +8 -8
  90. package/dist/chunks/{command-bj643xt5.js → command-jwrx2cj7.js} +2 -2
  91. package/dist/chunks/{command-xkbeztkk.js → command-k1qy4h3f.js} +2 -2
  92. package/dist/chunks/{command-7jskk6es.js → command-k328m9gb.js} +2 -2
  93. package/dist/chunks/{command-a9tb9fcm.js → command-k3pm51yt.js} +1 -1
  94. package/dist/chunks/{command-x4rdp18t.js → command-k828h0dz.js} +1 -1
  95. package/dist/chunks/{command-pjf26mtw.js → command-kxys3y9d.js} +4 -4
  96. package/dist/chunks/{command-pr8hexw5.js → command-kybe6n22.js} +1 -1
  97. package/dist/chunks/{command-d9mahe2a.js → command-kzn44r7q.js} +2 -2
  98. package/dist/chunks/{command-gpqqamc4.js → command-m1a9wjth.js} +2 -2
  99. package/dist/chunks/{command-7sqzdvxt.js → command-m1kmy8ka.js} +3 -3
  100. package/dist/chunks/{command-095wx2hx.js → command-mdmajrgb.js} +31 -31
  101. package/dist/chunks/{command-f4k1krf1.js → command-mtzq81c0.js} +1 -1
  102. package/dist/chunks/{command-tfrwzvc7.js → command-n0jre7db.js} +4 -4
  103. package/dist/chunks/{command-mp17610w.js → command-ngq9smrr.js} +2 -2
  104. package/dist/chunks/{command-zwmydvar.js → command-pz3h2j2e.js} +2 -2
  105. package/dist/chunks/{command-84rr8a2c.js → command-q60bxv6r.js} +5 -5
  106. package/dist/chunks/{command-ys08cqyw.js → command-qcqj5amz.js} +4 -4
  107. package/dist/chunks/{command-hqhf28q2.js → command-qwmw4cd6.js} +5 -5
  108. package/dist/chunks/{command-nh2mp9yp.js → command-r8xfnj54.js} +1 -1
  109. package/dist/chunks/{command-aggjjrq7.js → command-rb0fca5n.js} +3 -3
  110. package/dist/chunks/{command-fk7mptbv.js → command-rp9m1jf9.js} +2 -2
  111. package/dist/chunks/{command-h550aad1.js → command-rvnwsds8.js} +2 -2
  112. package/dist/chunks/{command-xdb7f87g.js → command-rx7m7hj5.js} +1 -1
  113. package/dist/chunks/{command-av4kst6y.js → command-ryt5s2a6.js} +1 -1
  114. package/dist/chunks/{command-hrqqxyw5.js → command-s14t6zsq.js} +1 -1
  115. package/dist/chunks/{command-krbecca2.js → command-s3tfznvp.js} +8 -8
  116. package/dist/chunks/{command-tb9t3d7k.js → command-sjbbz6zv.js} +1 -1
  117. package/dist/chunks/{command-dfyjewjv.js → command-sqca200z.js} +9 -9
  118. package/dist/chunks/{command-hq5yxge1.js → command-swf32vq8.js} +1 -1
  119. package/dist/chunks/{command-ab27t4cz.js → command-swz1kz5j.js} +8 -8
  120. package/dist/chunks/{command-hwkhj2eq.js → command-tkazpfmd.js} +62 -13
  121. package/dist/chunks/{command-wjfe8r21.js → command-v60a5n3g.js} +40 -40
  122. package/dist/chunks/{command-h1jh2aqp.js → command-vfb23vgf.js} +4 -4
  123. package/dist/chunks/{command-z8hpqfqs.js → command-vm0yyddh.js} +1 -1
  124. package/dist/chunks/{command-zpwdb2he.js → command-wkck8q21.js} +2 -2
  125. package/dist/chunks/{command-fhg50cq7.js → command-wpr4c6r5.js} +2 -2
  126. package/dist/chunks/{command-xcvvhh15.js → command-wqdd5pzq.js} +2 -2
  127. package/dist/chunks/{command-pr4qte1b.js → command-wzka52dv.js} +55 -55
  128. package/dist/chunks/{command-1mzcp10y.js → command-xh8hs6r9.js} +9 -9
  129. package/dist/chunks/{command-6b4cx7j3.js → command-xrk7fegf.js} +1 -1
  130. package/dist/chunks/{command-9aea9mcr.js → command-xzez02fr.js} +2 -2
  131. package/dist/chunks/{command-9055axa1.js → command-y5mjz9m4.js} +151 -151
  132. package/dist/chunks/{command-efmszg8z.js → command-y5xqcm33.js} +3 -3
  133. package/dist/chunks/{command-2da1bvhg.js → command-y88zne5r.js} +5 -5
  134. package/dist/chunks/{command-cgw4nxwy.js → command-ycnh085e.js} +9 -9
  135. package/dist/chunks/{command-yzavgpck.js → command-ymta27h3.js} +4 -4
  136. package/dist/chunks/{command-xc9webet.js → command-ytk4mmhh.js} +57 -57
  137. package/dist/chunks/{command-4saa3z41.js → command-yyqs966q.js} +1 -1
  138. package/dist/chunks/{command-zeb9ae7r.js → command-zrk4eedd.js} +1 -1
  139. package/dist/command.js +51 -51
  140. package/dist/config/normalize.js +11 -11
  141. package/dist/config/plugin/agent.js +97 -97
  142. package/dist/config/plugin/command.js +83 -83
  143. package/dist/config/plugin/compaction.js +109 -109
  144. package/dist/config/plugin/entry-observer.js +79 -79
  145. package/dist/config/plugin/formatter.js +84 -84
  146. package/dist/config/plugin/image.js +96 -96
  147. package/dist/config/plugin/instruction.js +64 -64
  148. package/dist/config/plugin/location-watcher.js +81 -81
  149. package/dist/config/plugin/mcp.js +93 -93
  150. package/dist/config/plugin/policy.js +81 -81
  151. package/dist/config/plugin/provider.js +80 -80
  152. package/dist/config/plugin/reference.js +84 -84
  153. package/dist/config/plugin/shell.js +83 -83
  154. package/dist/config/plugin/skill-file.js +73 -73
  155. package/dist/config/plugin/skill.js +100 -100
  156. package/dist/config/plugin/snapshot.js +82 -82
  157. package/dist/config/plugin/source.js +80 -80
  158. package/dist/config/plugin/tool-output.js +84 -84
  159. package/dist/config/plugin/websearch.js +80 -80
  160. package/dist/config.js +79 -79
  161. package/dist/credential.js +52 -52
  162. package/dist/database/database.js +48 -48
  163. package/dist/database/drizzle/effect-sqlite/driver.js +6 -6
  164. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  165. package/dist/database/drizzle/effect-sqlite/session.js +5 -5
  166. package/dist/database/drizzle/index.js +7 -7
  167. package/dist/database/drizzle/sqlite-core/effect/db.js +3 -3
  168. package/dist/database/drizzle/sqlite-core/effect/index.js +8 -8
  169. package/dist/database/drizzle/sqlite-core/effect/session.js +4 -4
  170. package/dist/database/drizzle.js +7 -7
  171. package/dist/database/migration.gen.js +38 -38
  172. package/dist/database/migration.js +40 -40
  173. package/dist/database/v1-migration.bun.js +50 -50
  174. package/dist/effect/app-node-builder.js +278 -278
  175. package/dist/environment/environment.js +64 -64
  176. package/dist/environment/index.js +66 -66
  177. package/dist/event-logger.js +50 -50
  178. package/dist/file-mutation.js +65 -65
  179. package/dist/filesystem/location-watcher.js +257 -257
  180. package/dist/filesystem/search.js +66 -66
  181. package/dist/filesystem.js +67 -67
  182. package/dist/form.js +51 -51
  183. package/dist/formatter.js +62 -62
  184. package/dist/generate.js +60 -60
  185. package/dist/git.js +2 -2
  186. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
  187. package/dist/github-copilot/copilot-provider.js +12 -12
  188. package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
  189. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -4
  190. package/dist/image/photon.js +69 -69
  191. package/dist/image.js +69 -69
  192. package/dist/instance.js +277 -277
  193. package/dist/instruction-discovery.js +52 -52
  194. package/dist/instructions/builtins.js +61 -61
  195. package/dist/integration.js +54 -54
  196. package/dist/job.js +51 -51
  197. package/dist/kv.js +49 -49
  198. package/dist/location-activity.js +60 -60
  199. package/dist/location-mutation.js +61 -61
  200. package/dist/location-service-map.js +60 -60
  201. package/dist/location-services.js +278 -278
  202. package/dist/location.js +60 -60
  203. package/dist/mcp/client.js +65 -65
  204. package/dist/mcp/index.js +71 -71
  205. package/dist/mcp/instructions.js +90 -90
  206. package/dist/mcp/stdio.js +65 -65
  207. package/dist/model-resolver.js +59 -59
  208. package/dist/models-dev.js +53 -53
  209. package/dist/permission/saved.js +50 -50
  210. package/dist/permission/sql.js +1 -1
  211. package/dist/permission.js +71 -71
  212. package/dist/persistent-pty/index.js +51 -51
  213. package/dist/persistent-pty.js +51 -51
  214. package/dist/plugin/agent.js +72 -72
  215. package/dist/plugin/command.js +72 -72
  216. package/dist/plugin/host.js +134 -134
  217. package/dist/plugin/internal.js +251 -251
  218. package/dist/plugin/models-dev.js +54 -54
  219. package/dist/plugin/plan.js +72 -72
  220. package/dist/plugin/provider/azure.js +88 -88
  221. package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
  222. package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
  223. package/dist/plugin/provider/configured.js +85 -85
  224. package/dist/plugin/provider/github-copilot.js +60 -60
  225. package/dist/plugin/provider/llmgateway.js +56 -56
  226. package/dist/plugin/provider/lmstudio.js +86 -86
  227. package/dist/plugin/provider/ollama.js +86 -86
  228. package/dist/plugin/provider/openai.js +57 -57
  229. package/dist/plugin/provider/opencode.js +67 -67
  230. package/dist/plugin/provider/vllm.js +86 -86
  231. package/dist/plugin/provider/xai.js +57 -57
  232. package/dist/plugin/provider.js +118 -118
  233. package/dist/plugin/runtime.js +122 -122
  234. package/dist/plugin/sdk.js +51 -51
  235. package/dist/plugin/skill.js +99 -99
  236. package/dist/plugin/supervisor.js +258 -258
  237. package/dist/plugin/vcs/git.js +61 -61
  238. package/dist/plugin/vcs/hg.js +61 -61
  239. package/dist/plugin/warming.js +80 -80
  240. package/dist/plugin/websearch/index.js +3 -3
  241. package/dist/plugin.js +135 -135
  242. package/dist/project/markers.js +54 -54
  243. package/dist/project/sql.js +1 -1
  244. package/dist/project.js +59 -59
  245. package/dist/pty.js +63 -63
  246. package/dist/reference/instructions.js +57 -57
  247. package/dist/reference.js +55 -55
  248. package/dist/repository-cache.js +3 -3
  249. package/dist/ripgrep.js +65 -65
  250. package/dist/session/compaction.js +86 -86
  251. package/dist/session/context.js +266 -266
  252. package/dist/session/execution/restart.js +119 -119
  253. package/dist/session/execution.js +89 -89
  254. package/dist/session/generate-node.js +267 -267
  255. package/dist/session/history.js +53 -53
  256. package/dist/session/inbox.js +54 -54
  257. package/dist/session/instruction-entry.js +51 -51
  258. package/dist/session/instruction-state.js +4 -4
  259. package/dist/session/instructions.js +67 -67
  260. package/dist/session/message-updater.js +1 -1
  261. package/dist/session/model-request.js +100 -100
  262. package/dist/session/projector.js +58 -58
  263. package/dist/session/revert.js +64 -64
  264. package/dist/session/runner/index.js +60 -60
  265. package/dist/session/runner/llm.js +270 -270
  266. package/dist/session/runner/model.js +60 -60
  267. package/dist/session/runner/retry.js +51 -51
  268. package/dist/session/runner/step.js +105 -105
  269. package/dist/session/sql.js +1 -1
  270. package/dist/session/stats.js +50 -50
  271. package/dist/session/store.js +55 -55
  272. package/dist/session/title.js +267 -267
  273. package/dist/session/to-session-error.js +84 -84
  274. package/dist/session/transfer.js +125 -125
  275. package/dist/session.js +121 -121
  276. package/dist/shell/parse.js +3 -3
  277. package/dist/shell.js +69 -69
  278. package/dist/skill/instructions.js +73 -73
  279. package/dist/skill.js +72 -72
  280. package/dist/snapshot.js +62 -62
  281. package/dist/tool/mcp.js +89 -89
  282. package/dist/tool/plugin/edit.js +81 -81
  283. package/dist/tool/plugin/glob.js +82 -82
  284. package/dist/tool/plugin/grep.js +82 -82
  285. package/dist/tool/plugin/patch.js +81 -81
  286. package/dist/tool/plugin/question.js +73 -73
  287. package/dist/tool/plugin/read.js +85 -85
  288. package/dist/tool/plugin/shell.js +150 -150
  289. package/dist/tool/plugin/skill.js +73 -73
  290. package/dist/tool/plugin/subagent.js +147 -147
  291. package/dist/tool/plugin/webfetch.js +73 -73
  292. package/dist/tool/plugin/websearch.js +75 -75
  293. package/dist/tool/plugin/write.js +81 -81
  294. package/dist/tool/read-filesystem.js +68 -68
  295. package/dist/tool-output.js +2 -2
  296. package/dist/tool.js +82 -82
  297. package/dist/types/github-copilot/responses/openai-responses-prepare-tools.d.ts +9 -1
  298. package/dist/v1/config/config.js +9 -9
  299. package/dist/v1/config/migrate.js +10 -10
  300. package/dist/vcs.js +62 -62
  301. package/dist/websearch.js +53 -53
  302. package/dist/wellknown/plugin.js +54 -54
  303. package/dist/wellknown.js +53 -53
  304. package/dist/workspace.js +50 -50
  305. package/dist/worktree/git.js +3 -3
  306. package/dist/worktree/sql.js +1 -1
  307. package/dist/worktree.js +62 -62
  308. package/package.json +7 -7
  309. package/dist/chunks/{command-93cftm1g.js → command-18e29k9r.js} +0 -0
  310. package/dist/chunks/{command-f7q7a28y.js → command-7ccgh94t.js} +3 -3
  311. package/dist/chunks/{command-r50y34q5.js → command-bas9pqrz.js} +10 -10
  312. package/dist/chunks/{command-6jx6ecw1.js → command-dyj7wa6j.js} +3 -3
  313. package/dist/chunks/{command-rvx401a0.js → command-ecft2zb7.js} +3 -3
  314. package/dist/chunks/{command-0687t5rp.js → command-hxcd35r2.js} +3 -3
  315. package/dist/chunks/{command-dchkjjs1.js → command-j2xgznzj.js} +5 -5
  316. package/dist/chunks/{command-b8d32hxk.js → command-k0f7dv5s.js} +5 -5
  317. package/dist/chunks/{command-q183ty6f.js → command-kk75ejxm.js} +21 -21
  318. package/dist/chunks/{command-1z84d9n2.js → command-ymk4t6jd.js} +6 -6
  319. package/dist/chunks/{command-g4g9s37e.js → command-yy4eeyx3.js} +85 -85
  320. package/dist/chunks/{command-8a4hfbqs.js → command-zn8r3q6e.js} +4 -4
@@ -3,7 +3,7 @@ import {
3
3
  } from "./command-bjwj8hwv.js";
4
4
  import {
5
5
  exports_model_resolver
6
- } from "./command-jzm946wd.js";
6
+ } from "./command-bjf9bk2a.js";
7
7
  import {
8
8
  __export
9
9
  } from "./command-rvfvac9x.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_model
3
- } from "./command-nh2mp9yp.js";
3
+ } from "./command-r8xfnj54.js";
4
4
  import {
5
5
  exports_permission
6
- } from "./command-cgw4nxwy.js";
6
+ } from "./command-ycnh085e.js";
7
7
  import {
8
8
  AgentNotFoundError,
9
9
  StepFailedError,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./command-fb7nfzf2.js";
12
12
  import {
13
13
  exports_integration
14
- } from "./command-mfdf2sys.js";
14
+ } from "./command-dmfng1b3.js";
15
15
 
16
16
  // src/session/to-session-error.ts
17
17
  import { AIError, ToolFailure } from "@opencode-ai/ai";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./command-sw84ckhj.js";
7
7
  import {
8
8
  toSessionError
9
- } from "./command-aggjjrq7.js";
9
+ } from "./command-rb0fca5n.js";
10
10
  import {
11
11
  SessionEvent
12
12
  } from "./command-a83yvq99.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./command-x89rah0x.js";
19
19
  import {
20
20
  exports_bus
21
- } from "./command-g796af3y.js";
21
+ } from "./command-5k7by7f9.js";
22
22
  import {
23
23
  __export
24
24
  } from "./command-rvfvac9x.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_wellknown
3
- } from "./command-7jskk6es.js";
3
+ } from "./command-k328m9gb.js";
4
4
  import {
5
5
  exports_bus
6
- } from "./command-g796af3y.js";
6
+ } from "./command-5k7by7f9.js";
7
7
  import {
8
8
  __export
9
9
  } from "./command-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_environment1 as exports_environment
3
- } from "./command-pef8cs1e.js";
3
+ } from "./command-703h6n82.js";
4
4
  import {
5
5
  __export
6
6
  } from "./command-rvfvac9x.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./command-ec8vrfw5.js";
4
4
  import {
5
5
  exports_location
6
- } from "./command-zeb9ae7r.js";
6
+ } from "./command-zrk4eedd.js";
7
7
  import {
8
8
  __export
9
9
  } from "./command-rvfvac9x.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./command-wmxdh12w.js";
4
4
  import {
5
5
  exports_database
6
- } from "./command-mp17610w.js";
6
+ } from "./command-ngq9smrr.js";
7
7
  import {
8
8
  __export
9
9
  } from "./command-rvfvac9x.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  exports_markdown
3
3
  } from "./command-7wcmqxrc.js";
4
+ import {
5
+ exports_agent as exports_agent2
6
+ } from "./command-7p84bq3x.js";
4
7
  import {
5
8
  exports_config
6
- } from "./command-dfyjewjv.js";
9
+ } from "./command-sqca200z.js";
7
10
  import {
8
11
  exports_migrate
9
12
  } from "./command-mxjff6xk.js";
10
- import {
11
- exports_agent as exports_agent2
12
- } from "./command-h5wnyjzw.js";
13
13
  import {
14
14
  exports_agent
15
- } from "./command-0bb31gvj.js";
15
+ } from "./command-h5wnyjzw.js";
16
16
  import {
17
17
  AbsolutePath
18
18
  } from "./command-j07kk359.js";
@@ -39,7 +39,7 @@ var legacySources = [
39
39
  ];
40
40
  var sourceDirectories = ["agent", "agents", "mode", "modes"];
41
41
  var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
42
- var decodeLegacyAgent = Schema.decodeUnknownOption(exports_agent2.Info);
42
+ var decodeLegacyAgent = Schema.decodeUnknownOption(exports_agent.Info);
43
43
  var decodeConfig = Schema.decodeUnknownOption(Info);
44
44
  var pathActions = ["external_directory", "read", "edit"];
45
45
  var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
@@ -72,13 +72,13 @@ var Plugin = define({
72
72
  const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
73
73
  const configuredDefault = exports_config.latest(loaded.documents, "default_agent");
74
74
  if (configuredDefault !== undefined)
75
- draft.default(exports_agent.ID.make(configuredDefault));
75
+ draft.default(exports_agent2.ID.make(configuredDefault));
76
76
  for (const current of draft.list()) {
77
77
  draft.update(current.id, (agent) => agent.permissions.push(...permissions));
78
78
  }
79
79
  for (const document of loaded.documents) {
80
80
  for (const [id, item] of Object.entries(document.info.agents ?? {})) {
81
- const agentID = exports_agent.ID.make(id);
81
+ const agentID = exports_agent2.ID.make(id);
82
82
  if (item.disabled) {
83
83
  draft.remove(agentID);
84
84
  continue;
@@ -3,7 +3,7 @@ import {
3
3
  } from "./command-kp1t5rcy.js";
4
4
  import {
5
5
  exports_config
6
- } from "./command-dfyjewjv.js";
6
+ } from "./command-sqca200z.js";
7
7
  import {
8
8
  __export
9
9
  } from "./command-rvfvac9x.js";
@@ -3,25 +3,25 @@ import {
3
3
  } from "./command-ns0sdez7.js";
4
4
  import {
5
5
  exports_normalize
6
- } from "./command-r50y34q5.js";
6
+ } from "./command-bas9pqrz.js";
7
7
  import {
8
8
  exports_variable
9
9
  } from "./command-d2gk9vpf.js";
10
10
  import {
11
11
  exports_wellknown
12
- } from "./command-7jskk6es.js";
13
- import {
14
- exports_credential
15
- } from "./command-v4szcjk6.js";
12
+ } from "./command-k328m9gb.js";
16
13
  import {
17
14
  exports_location
18
- } from "./command-zeb9ae7r.js";
19
- import {
20
- exports_bus
21
- } from "./command-g796af3y.js";
15
+ } from "./command-zrk4eedd.js";
22
16
  import {
23
17
  AbsolutePath
24
18
  } from "./command-j07kk359.js";
19
+ import {
20
+ exports_credential
21
+ } from "./command-b0gag4kv.js";
22
+ import {
23
+ exports_bus
24
+ } from "./command-5k7by7f9.js";
25
25
  import {
26
26
  __export
27
27
  } from "./command-rvfvac9x.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./command-vz89hfgr.js";
11
11
  import {
12
12
  exports_location
13
- } from "./command-zeb9ae7r.js";
13
+ } from "./command-zrk4eedd.js";
14
14
  import {
15
15
  __export
16
16
  } from "./command-rvfvac9x.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_git as exports_git2
3
- } from "./command-de5esam2.js";
3
+ } from "./command-j281xcgt.js";
4
4
  import {
5
5
  DirectoryUnavailableError,
6
6
  canonical
@@ -10,7 +10,7 @@ import {
10
10
  } from "./command-df3v2q6j.js";
11
11
  import {
12
12
  exports_location
13
- } from "./command-zeb9ae7r.js";
13
+ } from "./command-zrk4eedd.js";
14
14
  import {
15
15
  WorktreeTable
16
16
  } from "./command-gb1z7yet.js";
@@ -22,16 +22,16 @@ import {
22
22
  } from "./command-c8ya26sa.js";
23
23
  import {
24
24
  exports_git
25
- } from "./command-6jx6ecw1.js";
25
+ } from "./command-dyj7wa6j.js";
26
+ import {
27
+ AbsolutePath
28
+ } from "./command-j07kk359.js";
26
29
  import {
27
30
  exports_bus
28
- } from "./command-g796af3y.js";
31
+ } from "./command-5k7by7f9.js";
29
32
  import {
30
33
  exports_database
31
- } from "./command-mp17610w.js";
32
- import {
33
- AbsolutePath
34
- } from "./command-j07kk359.js";
34
+ } from "./command-ngq9smrr.js";
35
35
  import {
36
36
  __export
37
37
  } from "./command-rvfvac9x.js";
@@ -1,21 +1,38 @@
1
- import {
2
- fileSearchArgsSchema
3
- } from "./command-wj4sxzqa.js";
4
- import {
5
- webSearchPreviewArgsSchema
6
- } from "./command-7n9qwqk4.js";
7
1
  import {
8
2
  imageGenerationArgsSchema
9
3
  } from "./command-4b2tz2m9.js";
10
4
  import {
11
5
  codeInterpreterArgsSchema
12
6
  } from "./command-5a5ch9ts.js";
7
+ import {
8
+ webSearchPreviewArgsSchema
9
+ } from "./command-7n9qwqk4.js";
13
10
  import {
14
11
  webSearchArgsSchema
15
12
  } from "./command-gy500k2r.js";
13
+ import {
14
+ fileSearchArgsSchema
15
+ } from "./command-wj4sxzqa.js";
16
16
 
17
17
  // src/github-copilot/responses/openai-responses-prepare-tools.ts
18
- import { UnsupportedFunctionalityError } from "@ai-sdk/provider";
18
+ import {
19
+ UnsupportedFunctionalityError
20
+ } from "@ai-sdk/provider";
21
+ function getResponsesHostedTool(tool) {
22
+ switch (tool.id) {
23
+ case "openai.file_search":
24
+ return { name: tool.name, type: "file_search", responseType: "file_search" };
25
+ case "openai.web_search_preview":
26
+ return { name: tool.name, type: "web_search_preview", responseType: "web_search" };
27
+ case "openai.web_search":
28
+ return { name: tool.name, type: "web_search", responseType: "web_search" };
29
+ case "openai.code_interpreter":
30
+ return { name: tool.name, type: "code_interpreter", responseType: "code_interpreter" };
31
+ case "openai.image_generation":
32
+ return { name: tool.name, type: "image_generation", responseType: "image_generation" };
33
+ }
34
+ return;
35
+ }
19
36
  function prepareResponsesTools({
20
37
  tools,
21
38
  toolChoice,
@@ -24,7 +41,36 @@ function prepareResponsesTools({
24
41
  tools = tools?.length ? tools : undefined;
25
42
  const toolWarnings = [];
26
43
  if (tools == null) {
27
- return { tools: undefined, toolChoice: undefined, toolWarnings };
44
+ return { tools: undefined, toolChoice: undefined, hostedTools: [], toolWarnings };
45
+ }
46
+ const hostedTools = tools.flatMap((tool) => {
47
+ if (tool.type !== "provider")
48
+ return [];
49
+ const hostedTool = getResponsesHostedTool(tool);
50
+ return hostedTool ? [hostedTool] : [];
51
+ });
52
+ const selectedToolName = toolChoice?.type === "tool" ? toolChoice.toolName : undefined;
53
+ const selectedTools = selectedToolName === undefined ? [] : tools.filter((tool) => tool.name === selectedToolName);
54
+ if (selectedTools.length > 1) {
55
+ throw new UnsupportedFunctionalityError({
56
+ functionality: `ambiguous tool choice '${selectedToolName}': multiple tool definitions share this name`
57
+ });
58
+ }
59
+ const selectedHostedTool = selectedTools[0]?.type === "provider" ? getResponsesHostedTool(selectedTools[0]) : undefined;
60
+ const ambiguousHostedResponse = toolChoice?.type === "none" || toolChoice?.type === "tool" ? undefined : hostedTools.find((tool) => new Set(hostedTools.filter((candidate) => candidate.responseType === tool.responseType).map((item) => item.name)).size > 1);
61
+ if (ambiguousHostedResponse) {
62
+ const names = new Set(hostedTools.filter((tool) => tool.responseType === ambiguousHostedResponse.responseType).map((tool) => tool.name));
63
+ throw new UnsupportedFunctionalityError({
64
+ functionality: `ambiguous ${ambiguousHostedResponse.responseType} response for hosted tools: ${[...names].join(", ")}`
65
+ });
66
+ }
67
+ if (selectedHostedTool) {
68
+ const names = new Set(hostedTools.filter((tool) => tool.type === selectedHostedTool.type).map((tool) => tool.name));
69
+ if (names.size > 1) {
70
+ throw new UnsupportedFunctionalityError({
71
+ functionality: `ambiguous ${selectedHostedTool.type} tool choice for hosted tools: ${[...names].join(", ")}`
72
+ });
73
+ }
28
74
  }
29
75
  const openaiTools = [];
30
76
  for (const tool of tools) {
@@ -110,20 +156,23 @@ function prepareResponsesTools({
110
156
  }
111
157
  }
112
158
  if (toolChoice == null) {
113
- return { tools: openaiTools, toolChoice: undefined, toolWarnings };
159
+ return { tools: openaiTools, toolChoice: undefined, hostedTools, selectedHostedTool, toolWarnings };
114
160
  }
115
161
  const type = toolChoice.type;
116
162
  switch (type) {
117
163
  case "auto":
118
164
  case "none":
119
165
  case "required":
120
- return { tools: openaiTools, toolChoice: type, toolWarnings };
121
- case "tool":
166
+ return { tools: openaiTools, toolChoice: type, hostedTools, selectedHostedTool, toolWarnings };
167
+ case "tool": {
122
168
  return {
123
169
  tools: openaiTools,
124
- toolChoice: toolChoice.toolName === "code_interpreter" || toolChoice.toolName === "file_search" || toolChoice.toolName === "image_generation" || toolChoice.toolName === "web_search_preview" || toolChoice.toolName === "web_search" ? { type: toolChoice.toolName } : { type: "function", name: toolChoice.toolName },
170
+ toolChoice: selectedHostedTool ? { type: selectedHostedTool.type } : { type: "function", name: toolChoice.toolName },
171
+ hostedTools,
172
+ selectedHostedTool,
125
173
  toolWarnings
126
174
  };
175
+ }
127
176
  default: {
128
177
  const _exhaustiveCheck = type;
129
178
  throw new UnsupportedFunctionalityError({
@@ -133,4 +182,4 @@ function prepareResponsesTools({
133
182
  }
134
183
  }
135
184
 
136
- export { prepareResponsesTools };
185
+ export { getResponsesHostedTool, prepareResponsesTools };
@@ -1,75 +1,75 @@
1
1
  import {
2
2
  exports_runtime
3
- } from "./command-sjfmrh6v.js";
3
+ } from "./command-62yk3dhd.js";
4
4
  import {
5
5
  exports_mcp
6
- } from "./command-s0e6pyv1.js";
6
+ } from "./command-21kafjd0.js";
7
7
  import {
8
- exports_vcs
9
- } from "./command-vhebj28f.js";
8
+ exports_tool
9
+ } from "./command-8c2q1q6r.js";
10
10
  import {
11
11
  exports_reference
12
- } from "./command-hqhf28q2.js";
12
+ } from "./command-qwmw4cd6.js";
13
13
  import {
14
14
  exports_websearch
15
- } from "./command-d9mahe2a.js";
16
- import {
17
- exports_tool
18
- } from "./command-ee0jwf6e.js";
15
+ } from "./command-kzn44r7q.js";
19
16
  import {
20
17
  exports_skill
21
- } from "./command-kr8tzym4.js";
18
+ } from "./command-a7edf9rn.js";
22
19
  import {
23
20
  exports_permission
24
- } from "./command-cgw4nxwy.js";
21
+ } from "./command-ycnh085e.js";
22
+ import {
23
+ exports_agent
24
+ } from "./command-7p84bq3x.js";
25
+ import {
26
+ exports_app
27
+ } from "./command-50jxp3hw.js";
25
28
  import {
26
29
  exports_hooks
27
30
  } from "./command-v2wshkax.js";
28
31
  import {
29
- exports_generate
30
- } from "./command-6b4cx7j3.js";
32
+ exports_command
33
+ } from "./command-j6ymn7ym.js";
31
34
  import {
32
- exports_catalog
33
- } from "./command-0wh5jxya.js";
35
+ exports_workspace
36
+ } from "./command-jcr0kr8b.js";
34
37
  import {
35
- exports_aisdk
36
- } from "./command-zygzxh1b.js";
38
+ exports_vcs
39
+ } from "./command-g94fdv89.js";
37
40
  import {
38
- exports_integration
39
- } from "./command-mfdf2sys.js";
41
+ exports_kv
42
+ } from "./command-s14t6zsq.js";
40
43
  import {
41
- exports_agent
42
- } from "./command-0bb31gvj.js";
44
+ exports_location
45
+ } from "./command-zrk4eedd.js";
43
46
  import {
44
- exports_command
45
- } from "./command-x5g04qh7.js";
47
+ AbsolutePath
48
+ } from "./command-j07kk359.js";
46
49
  import {
47
- exports_app
48
- } from "./command-50jxp3hw.js";
50
+ exports_generate
51
+ } from "./command-xrk7fegf.js";
49
52
  import {
50
- exports_kv
51
- } from "./command-hrqqxyw5.js";
53
+ exports_catalog
54
+ } from "./command-2m3aea0y.js";
55
+ import {
56
+ exports_integration
57
+ } from "./command-dmfng1b3.js";
58
+ import {
59
+ exports_aisdk
60
+ } from "./command-zygzxh1b.js";
61
+ import {
62
+ exports_credential
63
+ } from "./command-b0gag4kv.js";
52
64
  import {
53
65
  exports_model
54
66
  } from "./command-r13w8t0w.js";
55
67
  import {
56
68
  exports_provider
57
69
  } from "./command-krsqcmnj.js";
58
- import {
59
- exports_workspace
60
- } from "./command-772d9n0x.js";
61
- import {
62
- exports_credential
63
- } from "./command-v4szcjk6.js";
64
- import {
65
- exports_location
66
- } from "./command-zeb9ae7r.js";
67
70
  import {
68
71
  exports_bus
69
- } from "./command-g796af3y.js";
70
- import {
71
- AbsolutePath
72
- } from "./command-j07kk359.js";
72
+ } from "./command-5k7by7f9.js";
73
73
  import {
74
74
  __export
75
75
  } from "./command-rvfvac9x.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_mcp
3
- } from "./command-s0e6pyv1.js";
3
+ } from "./command-21kafjd0.js";
4
4
  import {
5
5
  exports_tool
6
- } from "./command-ee0jwf6e.js";
6
+ } from "./command-8c2q1q6r.js";
7
7
  import {
8
8
  exports_permission
9
- } from "./command-cgw4nxwy.js";
9
+ } from "./command-ycnh085e.js";
10
10
  import {
11
11
  exports_bus
12
- } from "./command-g796af3y.js";
12
+ } from "./command-5k7by7f9.js";
13
13
  import {
14
14
  __export
15
15
  } from "./command-rvfvac9x.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./command-7wcmqxrc.js";
4
4
  import {
5
5
  exports_skill
6
- } from "./command-kr8tzym4.js";
6
+ } from "./command-a7edf9rn.js";
7
7
  import {
8
8
  AbsolutePath
9
9
  } from "./command-j07kk359.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_config
3
- } from "./command-dfyjewjv.js";
3
+ } from "./command-sqca200z.js";
4
4
  import {
5
5
  exports_catalog
6
- } from "./command-0wh5jxya.js";
6
+ } from "./command-2m3aea0y.js";
7
7
  import {
8
8
  exports_provider
9
9
  } from "./command-krsqcmnj.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  exports_source
3
- } from "./command-301eewqm.js";
3
+ } from "./command-71tjtg6c.js";
4
4
  import {
5
5
  exports_skill
6
- } from "./command-kr8tzym4.js";
6
+ } from "./command-a7edf9rn.js";
7
7
  import {
8
8
  AbsolutePath
9
9
  } from "./command-j07kk359.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./command-dhphtf1x.js";
4
4
  import {
5
5
  exports_filesystem
6
- } from "./command-bj643xt5.js";
6
+ } from "./command-jwrx2cj7.js";
7
7
  import {
8
8
  exports_environment1 as exports_environment
9
- } from "./command-pef8cs1e.js";
9
+ } from "./command-703h6n82.js";
10
10
  import {
11
11
  NonNegativeInt,
12
12
  PositiveInt,