alchemylab-opencode 1.0.7 → 1.0.8

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 (358) hide show
  1. package/package.json +2 -15
  2. package/build.mjs +0 -192
  3. package/packages/opencode/package.json +0 -138
  4. package/packages/opencode/src/account/account.sql.ts +0 -39
  5. package/packages/opencode/src/account/index.ts +0 -463
  6. package/packages/opencode/src/account/repo.ts +0 -163
  7. package/packages/opencode/src/account/schema.ts +0 -91
  8. package/packages/opencode/src/acp/README.md +0 -174
  9. package/packages/opencode/src/acp/agent.ts +0 -1847
  10. package/packages/opencode/src/acp/session.ts +0 -116
  11. package/packages/opencode/src/acp/types.ts +0 -24
  12. package/packages/opencode/src/agent/agent.ts +0 -420
  13. package/packages/opencode/src/agent/generate.txt +0 -75
  14. package/packages/opencode/src/agent/prompt/compaction.txt +0 -15
  15. package/packages/opencode/src/agent/prompt/explore.txt +0 -18
  16. package/packages/opencode/src/agent/prompt/summary.txt +0 -11
  17. package/packages/opencode/src/agent/prompt/title.txt +0 -44
  18. package/packages/opencode/src/auth/index.ts +0 -110
  19. package/packages/opencode/src/bus/bus-event.ts +0 -40
  20. package/packages/opencode/src/bus/global.ts +0 -10
  21. package/packages/opencode/src/bus/index.ts +0 -185
  22. package/packages/opencode/src/cli/bootstrap.ts +0 -17
  23. package/packages/opencode/src/cli/cmd/cmd.ts +0 -7
  24. package/packages/opencode/src/cli/cmd/run.ts +0 -689
  25. package/packages/opencode/src/cli/cmd/serve.ts +0 -24
  26. package/packages/opencode/src/cli/cmd/tui/event.ts +0 -49
  27. package/packages/opencode/src/cli/effect/prompt.ts +0 -25
  28. package/packages/opencode/src/cli/error.ts +0 -46
  29. package/packages/opencode/src/cli/heap.ts +0 -59
  30. package/packages/opencode/src/cli/logo.ts +0 -6
  31. package/packages/opencode/src/cli/network.ts +0 -60
  32. package/packages/opencode/src/cli/ui.ts +0 -133
  33. package/packages/opencode/src/cli/upgrade.ts +0 -31
  34. package/packages/opencode/src/command/index.ts +0 -195
  35. package/packages/opencode/src/command/template/initialize.txt +0 -66
  36. package/packages/opencode/src/command/template/review.txt +0 -101
  37. package/packages/opencode/src/config/config.ts +0 -1599
  38. package/packages/opencode/src/config/console-state.ts +0 -15
  39. package/packages/opencode/src/config/markdown.ts +0 -99
  40. package/packages/opencode/src/config/paths.ts +0 -167
  41. package/packages/opencode/src/config/tui-migrate.ts +0 -155
  42. package/packages/opencode/src/config/tui-schema.ts +0 -37
  43. package/packages/opencode/src/config/tui.ts +0 -179
  44. package/packages/opencode/src/control-plane/adaptors/index.ts +0 -20
  45. package/packages/opencode/src/control-plane/adaptors/worktree.ts +0 -42
  46. package/packages/opencode/src/control-plane/schema.ts +0 -17
  47. package/packages/opencode/src/control-plane/sse.ts +0 -66
  48. package/packages/opencode/src/control-plane/types.ts +0 -32
  49. package/packages/opencode/src/control-plane/workspace.sql.ts +0 -17
  50. package/packages/opencode/src/control-plane/workspace.ts +0 -168
  51. package/packages/opencode/src/effect/cross-spawn-spawner.ts +0 -502
  52. package/packages/opencode/src/effect/instance-ref.ts +0 -6
  53. package/packages/opencode/src/effect/instance-registry.ts +0 -12
  54. package/packages/opencode/src/effect/instance-state.ts +0 -82
  55. package/packages/opencode/src/effect/run-service.ts +0 -33
  56. package/packages/opencode/src/effect/runner.ts +0 -216
  57. package/packages/opencode/src/env/index.ts +0 -28
  58. package/packages/opencode/src/file/ignore.ts +0 -82
  59. package/packages/opencode/src/file/index.ts +0 -686
  60. package/packages/opencode/src/file/protected.ts +0 -59
  61. package/packages/opencode/src/file/ripgrep.ts +0 -376
  62. package/packages/opencode/src/file/time.ts +0 -133
  63. package/packages/opencode/src/file/watcher.ts +0 -173
  64. package/packages/opencode/src/filesystem/index.ts +0 -236
  65. package/packages/opencode/src/flag/flag.ts +0 -156
  66. package/packages/opencode/src/format/formatter.ts +0 -413
  67. package/packages/opencode/src/format/index.ts +0 -203
  68. package/packages/opencode/src/git/index.ts +0 -303
  69. package/packages/opencode/src/global/index.ts +0 -56
  70. package/packages/opencode/src/id/id.ts +0 -85
  71. package/packages/opencode/src/ide/index.ts +0 -74
  72. package/packages/opencode/src/installation/index.ts +0 -355
  73. package/packages/opencode/src/installation/meta.ts +0 -7
  74. package/packages/opencode/src/lsp/client.ts +0 -252
  75. package/packages/opencode/src/lsp/index.ts +0 -558
  76. package/packages/opencode/src/lsp/language.ts +0 -120
  77. package/packages/opencode/src/lsp/launch.ts +0 -21
  78. package/packages/opencode/src/lsp/server.ts +0 -1968
  79. package/packages/opencode/src/mcp/auth.ts +0 -173
  80. package/packages/opencode/src/mcp/index.ts +0 -931
  81. package/packages/opencode/src/mcp/oauth-callback.ts +0 -216
  82. package/packages/opencode/src/mcp/oauth-provider.ts +0 -185
  83. package/packages/opencode/src/node-loader.mjs +0 -104
  84. package/packages/opencode/src/node-preload.mjs +0 -39
  85. package/packages/opencode/src/node.ts +0 -1
  86. package/packages/opencode/src/npm/index.ts +0 -188
  87. package/packages/opencode/src/patch/index.ts +0 -680
  88. package/packages/opencode/src/permission/arity.ts +0 -163
  89. package/packages/opencode/src/permission/evaluate.ts +0 -15
  90. package/packages/opencode/src/permission/index.ts +0 -325
  91. package/packages/opencode/src/permission/schema.ts +0 -17
  92. package/packages/opencode/src/plugin/cloudflare.ts +0 -67
  93. package/packages/opencode/src/plugin/codex.ts +0 -608
  94. package/packages/opencode/src/plugin/github-copilot/copilot.ts +0 -361
  95. package/packages/opencode/src/plugin/github-copilot/models.ts +0 -144
  96. package/packages/opencode/src/plugin/index.ts +0 -299
  97. package/packages/opencode/src/plugin/install.ts +0 -439
  98. package/packages/opencode/src/plugin/loader.ts +0 -174
  99. package/packages/opencode/src/plugin/meta.ts +0 -188
  100. package/packages/opencode/src/plugin/shared.ts +0 -323
  101. package/packages/opencode/src/project/bootstrap.ts +0 -31
  102. package/packages/opencode/src/project/instance.ts +0 -175
  103. package/packages/opencode/src/project/project.sql.ts +0 -16
  104. package/packages/opencode/src/project/project.ts +0 -519
  105. package/packages/opencode/src/project/schema.ts +0 -16
  106. package/packages/opencode/src/project/state.ts +0 -70
  107. package/packages/opencode/src/project/vcs.ts +0 -240
  108. package/packages/opencode/src/provider/auth.ts +0 -253
  109. package/packages/opencode/src/provider/error.ts +0 -197
  110. package/packages/opencode/src/provider/models.ts +0 -162
  111. package/packages/opencode/src/provider/provider.ts +0 -1709
  112. package/packages/opencode/src/provider/schema.ts +0 -38
  113. package/packages/opencode/src/provider/sdk/copilot/README.md +0 -5
  114. package/packages/opencode/src/provider/sdk/copilot/chat/convert-to-openai-compatible-chat-messages.ts +0 -170
  115. package/packages/opencode/src/provider/sdk/copilot/chat/get-response-metadata.ts +0 -15
  116. package/packages/opencode/src/provider/sdk/copilot/chat/map-openai-compatible-finish-reason.ts +0 -19
  117. package/packages/opencode/src/provider/sdk/copilot/chat/openai-compatible-api-types.ts +0 -64
  118. package/packages/opencode/src/provider/sdk/copilot/chat/openai-compatible-chat-language-model.ts +0 -815
  119. package/packages/opencode/src/provider/sdk/copilot/chat/openai-compatible-chat-options.ts +0 -28
  120. package/packages/opencode/src/provider/sdk/copilot/chat/openai-compatible-metadata-extractor.ts +0 -44
  121. package/packages/opencode/src/provider/sdk/copilot/chat/openai-compatible-prepare-tools.ts +0 -83
  122. package/packages/opencode/src/provider/sdk/copilot/copilot-provider.ts +0 -100
  123. package/packages/opencode/src/provider/sdk/copilot/index.ts +0 -2
  124. package/packages/opencode/src/provider/sdk/copilot/openai-compatible-error.ts +0 -27
  125. package/packages/opencode/src/provider/sdk/copilot/responses/convert-to-openai-responses-input.ts +0 -335
  126. package/packages/opencode/src/provider/sdk/copilot/responses/map-openai-responses-finish-reason.ts +0 -22
  127. package/packages/opencode/src/provider/sdk/copilot/responses/openai-config.ts +0 -18
  128. package/packages/opencode/src/provider/sdk/copilot/responses/openai-error.ts +0 -22
  129. package/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-api-types.ts +0 -214
  130. package/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-language-model.ts +0 -1769
  131. package/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-prepare-tools.ts +0 -173
  132. package/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-settings.ts +0 -1
  133. package/packages/opencode/src/provider/sdk/copilot/responses/tool/code-interpreter.ts +0 -87
  134. package/packages/opencode/src/provider/sdk/copilot/responses/tool/file-search.ts +0 -127
  135. package/packages/opencode/src/provider/sdk/copilot/responses/tool/image-generation.ts +0 -114
  136. package/packages/opencode/src/provider/sdk/copilot/responses/tool/local-shell.ts +0 -64
  137. package/packages/opencode/src/provider/sdk/copilot/responses/tool/web-search-preview.ts +0 -103
  138. package/packages/opencode/src/provider/sdk/copilot/responses/tool/web-search.ts +0 -102
  139. package/packages/opencode/src/provider/transform.ts +0 -1050
  140. package/packages/opencode/src/pty/index.ts +0 -397
  141. package/packages/opencode/src/pty/pty.node.ts +0 -27
  142. package/packages/opencode/src/pty/pty.ts +0 -25
  143. package/packages/opencode/src/pty/schema.ts +0 -17
  144. package/packages/opencode/src/question/index.ts +0 -224
  145. package/packages/opencode/src/question/schema.ts +0 -17
  146. package/packages/opencode/src/run.ts +0 -28
  147. package/packages/opencode/src/serve.ts +0 -45
  148. package/packages/opencode/src/server/error.ts +0 -36
  149. package/packages/opencode/src/server/event.ts +0 -7
  150. package/packages/opencode/src/server/instance.ts +0 -324
  151. package/packages/opencode/src/server/mdns.ts +0 -60
  152. package/packages/opencode/src/server/middleware.ts +0 -33
  153. package/packages/opencode/src/server/projectors.ts +0 -28
  154. package/packages/opencode/src/server/proxy.ts +0 -131
  155. package/packages/opencode/src/server/router.ts +0 -105
  156. package/packages/opencode/src/server/routes/config.ts +0 -92
  157. package/packages/opencode/src/server/routes/event.ts +0 -83
  158. package/packages/opencode/src/server/routes/experimental.ts +0 -374
  159. package/packages/opencode/src/server/routes/file.ts +0 -197
  160. package/packages/opencode/src/server/routes/global.ts +0 -312
  161. package/packages/opencode/src/server/routes/mcp.ts +0 -225
  162. package/packages/opencode/src/server/routes/permission.ts +0 -69
  163. package/packages/opencode/src/server/routes/project.ts +0 -118
  164. package/packages/opencode/src/server/routes/provider.ts +0 -171
  165. package/packages/opencode/src/server/routes/pty.ts +0 -210
  166. package/packages/opencode/src/server/routes/question.ts +0 -99
  167. package/packages/opencode/src/server/routes/session.ts +0 -1030
  168. package/packages/opencode/src/server/routes/tui.ts +0 -379
  169. package/packages/opencode/src/server/routes/workspace.ts +0 -94
  170. package/packages/opencode/src/server/server.ts +0 -353
  171. package/packages/opencode/src/session/compaction.ts +0 -428
  172. package/packages/opencode/src/session/index.ts +0 -887
  173. package/packages/opencode/src/session/instruction.ts +0 -258
  174. package/packages/opencode/src/session/llm.ts +0 -354
  175. package/packages/opencode/src/session/message-v2.ts +0 -1031
  176. package/packages/opencode/src/session/message.ts +0 -191
  177. package/packages/opencode/src/session/overflow.ts +0 -22
  178. package/packages/opencode/src/session/processor.ts +0 -523
  179. package/packages/opencode/src/session/projectors.ts +0 -135
  180. package/packages/opencode/src/session/prompt/anthropic.txt +0 -105
  181. package/packages/opencode/src/session/prompt/beast.txt +0 -147
  182. package/packages/opencode/src/session/prompt/build-switch.txt +0 -5
  183. package/packages/opencode/src/session/prompt/codex.txt +0 -79
  184. package/packages/opencode/src/session/prompt/copilot-gpt-5.txt +0 -143
  185. package/packages/opencode/src/session/prompt/default.txt +0 -105
  186. package/packages/opencode/src/session/prompt/gemini.txt +0 -155
  187. package/packages/opencode/src/session/prompt/gpt.txt +0 -107
  188. package/packages/opencode/src/session/prompt/kimi.txt +0 -95
  189. package/packages/opencode/src/session/prompt/max-steps.txt +0 -16
  190. package/packages/opencode/src/session/prompt/plan-reminder-anthropic.txt +0 -67
  191. package/packages/opencode/src/session/prompt/plan.txt +0 -26
  192. package/packages/opencode/src/session/prompt/trinity.txt +0 -97
  193. package/packages/opencode/src/session/prompt.ts +0 -1911
  194. package/packages/opencode/src/session/retry.ts +0 -106
  195. package/packages/opencode/src/session/revert.ts +0 -176
  196. package/packages/opencode/src/session/schema.ts +0 -38
  197. package/packages/opencode/src/session/session.sql.ts +0 -103
  198. package/packages/opencode/src/session/status.ts +0 -102
  199. package/packages/opencode/src/session/summary.ts +0 -177
  200. package/packages/opencode/src/session/system.ts +0 -76
  201. package/packages/opencode/src/session/todo.ts +0 -95
  202. package/packages/opencode/src/share/share-next.ts +0 -369
  203. package/packages/opencode/src/share/share.sql.ts +0 -13
  204. package/packages/opencode/src/shell/shell.ts +0 -110
  205. package/packages/opencode/src/skill/discovery.ts +0 -116
  206. package/packages/opencode/src/skill/index.ts +0 -277
  207. package/packages/opencode/src/snapshot/index.ts +0 -726
  208. package/packages/opencode/src/sql.d.ts +0 -4
  209. package/packages/opencode/src/storage/db.node.ts +0 -8
  210. package/packages/opencode/src/storage/db.ts +0 -177
  211. package/packages/opencode/src/storage/json-migration.ts +0 -425
  212. package/packages/opencode/src/storage/schema.sql.ts +0 -10
  213. package/packages/opencode/src/storage/schema.ts +0 -5
  214. package/packages/opencode/src/storage/storage.ts +0 -353
  215. package/packages/opencode/src/sync/README.md +0 -179
  216. package/packages/opencode/src/sync/event.sql.ts +0 -16
  217. package/packages/opencode/src/sync/index.ts +0 -263
  218. package/packages/opencode/src/sync/schema.ts +0 -14
  219. package/packages/opencode/src/tool/apply_patch.ts +0 -281
  220. package/packages/opencode/src/tool/apply_patch.txt +0 -33
  221. package/packages/opencode/src/tool/bash.ts +0 -496
  222. package/packages/opencode/src/tool/bash.txt +0 -117
  223. package/packages/opencode/src/tool/batch.ts +0 -183
  224. package/packages/opencode/src/tool/batch.txt +0 -24
  225. package/packages/opencode/src/tool/codesearch.ts +0 -132
  226. package/packages/opencode/src/tool/codesearch.txt +0 -12
  227. package/packages/opencode/src/tool/edit.ts +0 -667
  228. package/packages/opencode/src/tool/edit.txt +0 -10
  229. package/packages/opencode/src/tool/external-directory.ts +0 -46
  230. package/packages/opencode/src/tool/glob.ts +0 -78
  231. package/packages/opencode/src/tool/glob.txt +0 -6
  232. package/packages/opencode/src/tool/grep.ts +0 -156
  233. package/packages/opencode/src/tool/grep.txt +0 -8
  234. package/packages/opencode/src/tool/invalid.ts +0 -17
  235. package/packages/opencode/src/tool/ls.ts +0 -121
  236. package/packages/opencode/src/tool/ls.txt +0 -1
  237. package/packages/opencode/src/tool/lsp.ts +0 -97
  238. package/packages/opencode/src/tool/lsp.txt +0 -19
  239. package/packages/opencode/src/tool/multiedit.ts +0 -46
  240. package/packages/opencode/src/tool/multiedit.txt +0 -41
  241. package/packages/opencode/src/tool/plan-enter.txt +0 -14
  242. package/packages/opencode/src/tool/plan-exit.txt +0 -13
  243. package/packages/opencode/src/tool/plan.ts +0 -131
  244. package/packages/opencode/src/tool/question.ts +0 -46
  245. package/packages/opencode/src/tool/question.txt +0 -10
  246. package/packages/opencode/src/tool/read.ts +0 -332
  247. package/packages/opencode/src/tool/read.txt +0 -14
  248. package/packages/opencode/src/tool/registry.ts +0 -265
  249. package/packages/opencode/src/tool/schema.ts +0 -17
  250. package/packages/opencode/src/tool/skill.ts +0 -105
  251. package/packages/opencode/src/tool/task.ts +0 -166
  252. package/packages/opencode/src/tool/task.txt +0 -60
  253. package/packages/opencode/src/tool/todo.ts +0 -48
  254. package/packages/opencode/src/tool/todowrite.txt +0 -167
  255. package/packages/opencode/src/tool/tool.ts +0 -112
  256. package/packages/opencode/src/tool/truncate.ts +0 -144
  257. package/packages/opencode/src/tool/truncation-dir.ts +0 -4
  258. package/packages/opencode/src/tool/webfetch.ts +0 -206
  259. package/packages/opencode/src/tool/webfetch.txt +0 -13
  260. package/packages/opencode/src/tool/websearch.ts +0 -150
  261. package/packages/opencode/src/tool/websearch.txt +0 -14
  262. package/packages/opencode/src/tool/write.ts +0 -84
  263. package/packages/opencode/src/tool/write.txt +0 -8
  264. package/packages/opencode/src/util/abort.ts +0 -35
  265. package/packages/opencode/src/util/archive.ts +0 -17
  266. package/packages/opencode/src/util/color.ts +0 -19
  267. package/packages/opencode/src/util/context.ts +0 -25
  268. package/packages/opencode/src/util/data-url.ts +0 -9
  269. package/packages/opencode/src/util/defer.ts +0 -12
  270. package/packages/opencode/src/util/effect-http-client.ts +0 -11
  271. package/packages/opencode/src/util/effect-zod.ts +0 -98
  272. package/packages/opencode/src/util/error.ts +0 -77
  273. package/packages/opencode/src/util/filesystem.ts +0 -245
  274. package/packages/opencode/src/util/flock.ts +0 -333
  275. package/packages/opencode/src/util/fn.ts +0 -21
  276. package/packages/opencode/src/util/format.ts +0 -20
  277. package/packages/opencode/src/util/glob.ts +0 -34
  278. package/packages/opencode/src/util/hash.ts +0 -7
  279. package/packages/opencode/src/util/iife.ts +0 -3
  280. package/packages/opencode/src/util/keybind.ts +0 -103
  281. package/packages/opencode/src/util/lazy.ts +0 -23
  282. package/packages/opencode/src/util/locale.ts +0 -81
  283. package/packages/opencode/src/util/lock.ts +0 -98
  284. package/packages/opencode/src/util/log.ts +0 -182
  285. package/packages/opencode/src/util/network.ts +0 -9
  286. package/packages/opencode/src/util/process.ts +0 -176
  287. package/packages/opencode/src/util/queue.ts +0 -32
  288. package/packages/opencode/src/util/record.ts +0 -3
  289. package/packages/opencode/src/util/rpc.ts +0 -66
  290. package/packages/opencode/src/util/schema.ts +0 -53
  291. package/packages/opencode/src/util/scrap.ts +0 -10
  292. package/packages/opencode/src/util/signal.ts +0 -12
  293. package/packages/opencode/src/util/timeout.ts +0 -14
  294. package/packages/opencode/src/util/token.ts +0 -7
  295. package/packages/opencode/src/util/update-schema.ts +0 -13
  296. package/packages/opencode/src/util/which.ts +0 -14
  297. package/packages/opencode/src/util/wildcard.ts +0 -59
  298. package/packages/opencode/src/worktree/index.ts +0 -612
  299. package/packages/plugin/package.json +0 -38
  300. package/packages/plugin/src/example.ts +0 -18
  301. package/packages/plugin/src/index.ts +0 -282
  302. package/packages/plugin/src/shell.ts +0 -136
  303. package/packages/plugin/src/tool.ts +0 -38
  304. package/packages/plugin/src/tui.ts +0 -508
  305. package/packages/script/package.json +0 -16
  306. package/packages/script/src/index.ts +0 -77
  307. package/packages/sdk/package.json +0 -33
  308. package/packages/sdk/src/client.ts +0 -55
  309. package/packages/sdk/src/gen/client/client.gen.ts +0 -212
  310. package/packages/sdk/src/gen/client/index.ts +0 -25
  311. package/packages/sdk/src/gen/client/types.gen.ts +0 -222
  312. package/packages/sdk/src/gen/client/utils.gen.ts +0 -287
  313. package/packages/sdk/src/gen/client.gen.ts +0 -22
  314. package/packages/sdk/src/gen/core/auth.gen.ts +0 -41
  315. package/packages/sdk/src/gen/core/bodySerializer.gen.ts +0 -74
  316. package/packages/sdk/src/gen/core/params.gen.ts +0 -144
  317. package/packages/sdk/src/gen/core/pathSerializer.gen.ts +0 -167
  318. package/packages/sdk/src/gen/core/queryKeySerializer.gen.ts +0 -111
  319. package/packages/sdk/src/gen/core/serverSentEvents.gen.ts +0 -210
  320. package/packages/sdk/src/gen/core/types.gen.ts +0 -91
  321. package/packages/sdk/src/gen/core/utils.gen.ts +0 -109
  322. package/packages/sdk/src/gen/sdk.gen.ts +0 -1197
  323. package/packages/sdk/src/gen/types.gen.ts +0 -3904
  324. package/packages/sdk/src/index.ts +0 -21
  325. package/packages/sdk/src/process.ts +0 -31
  326. package/packages/sdk/src/server.ts +0 -134
  327. package/packages/sdk/src/v2/client.ts +0 -81
  328. package/packages/sdk/src/v2/gen/client/client.gen.ts +0 -285
  329. package/packages/sdk/src/v2/gen/client/index.ts +0 -25
  330. package/packages/sdk/src/v2/gen/client/types.gen.ts +0 -202
  331. package/packages/sdk/src/v2/gen/client/utils.gen.ts +0 -289
  332. package/packages/sdk/src/v2/gen/client.gen.ts +0 -18
  333. package/packages/sdk/src/v2/gen/core/auth.gen.ts +0 -41
  334. package/packages/sdk/src/v2/gen/core/bodySerializer.gen.ts +0 -82
  335. package/packages/sdk/src/v2/gen/core/params.gen.ts +0 -169
  336. package/packages/sdk/src/v2/gen/core/pathSerializer.gen.ts +0 -167
  337. package/packages/sdk/src/v2/gen/core/queryKeySerializer.gen.ts +0 -111
  338. package/packages/sdk/src/v2/gen/core/serverSentEvents.gen.ts +0 -239
  339. package/packages/sdk/src/v2/gen/core/types.gen.ts +0 -86
  340. package/packages/sdk/src/v2/gen/core/utils.gen.ts +0 -137
  341. package/packages/sdk/src/v2/gen/sdk.gen.ts +0 -4223
  342. package/packages/sdk/src/v2/gen/types.gen.ts +0 -5265
  343. package/packages/sdk/src/v2/index.ts +0 -21
  344. package/packages/sdk/src/v2/server.ts +0 -134
  345. package/packages/util/package.json +0 -20
  346. package/packages/util/src/array.ts +0 -10
  347. package/packages/util/src/binary.ts +0 -41
  348. package/packages/util/src/encode.ts +0 -51
  349. package/packages/util/src/error.ts +0 -54
  350. package/packages/util/src/fn.ts +0 -11
  351. package/packages/util/src/identifier.ts +0 -48
  352. package/packages/util/src/iife.ts +0 -3
  353. package/packages/util/src/lazy.ts +0 -11
  354. package/packages/util/src/module.ts +0 -10
  355. package/packages/util/src/path.ts +0 -37
  356. package/packages/util/src/retry.ts +0 -41
  357. package/packages/util/src/slug.ts +0 -74
  358. package/postinstall.cjs +0 -55
@@ -1,46 +0,0 @@
1
- import path from "path"
2
- import { Effect } from "effect"
3
- import type { Tool } from "./tool"
4
- import { Instance } from "../project/instance"
5
- import { AppFileSystem } from "../filesystem"
6
-
7
- type Kind = "file" | "directory"
8
-
9
- type Options = {
10
- bypass?: boolean
11
- kind?: Kind
12
- }
13
-
14
- export async function assertExternalDirectory(ctx: Tool.Context, target?: string, options?: Options) {
15
- if (!target) return
16
-
17
- if (options?.bypass) return
18
-
19
- const full = process.platform === "win32" ? AppFileSystem.normalizePath(target) : target
20
- if (Instance.containsPath(full)) return
21
-
22
- const kind = options?.kind ?? "file"
23
- const dir = kind === "directory" ? full : path.dirname(full)
24
- const glob =
25
- process.platform === "win32"
26
- ? AppFileSystem.normalizePathPattern(path.join(dir, "*"))
27
- : path.join(dir, "*").replaceAll("\\", "/")
28
-
29
- await ctx.ask({
30
- permission: "external_directory",
31
- patterns: [glob],
32
- always: [glob],
33
- metadata: {
34
- filepath: full,
35
- parentDir: dir,
36
- },
37
- })
38
- }
39
-
40
- export const assertExternalDirectoryEffect = Effect.fn("Tool.assertExternalDirectory")(function* (
41
- ctx: Tool.Context,
42
- target?: string,
43
- options?: Options,
44
- ) {
45
- yield* Effect.promise(() => assertExternalDirectory(ctx, target, options))
46
- })
@@ -1,78 +0,0 @@
1
- import z from "zod"
2
- import path from "path"
3
- import { Tool } from "./tool"
4
- import { Filesystem } from "../util/filesystem"
5
- import DESCRIPTION from "./glob.txt"
6
- import { Ripgrep } from "../file/ripgrep"
7
- import { Instance } from "../project/instance"
8
- import { assertExternalDirectory } from "./external-directory"
9
-
10
- export const GlobTool = Tool.define("glob", {
11
- description: DESCRIPTION,
12
- parameters: z.object({
13
- pattern: z.string().describe("The glob pattern to match files against"),
14
- path: z
15
- .string()
16
- .optional()
17
- .describe(
18
- `The directory to search in. If not specified, the current working directory will be used. IMPORTANT: Omit this field to use the default directory. DO NOT enter "undefined" or "null" - simply omit it for the default behavior. Must be a valid directory path if provided.`,
19
- ),
20
- }),
21
- async execute(params, ctx) {
22
- await ctx.ask({
23
- permission: "glob",
24
- patterns: [params.pattern],
25
- always: ["*"],
26
- metadata: {
27
- pattern: params.pattern,
28
- path: params.path,
29
- },
30
- })
31
-
32
- let search = params.path ?? Instance.directory
33
- search = path.isAbsolute(search) ? search : path.resolve(Instance.directory, search)
34
- await assertExternalDirectory(ctx, search, { kind: "directory" })
35
-
36
- const limit = 100
37
- const files = []
38
- let truncated = false
39
- for await (const file of Ripgrep.files({
40
- cwd: search,
41
- glob: [params.pattern],
42
- signal: ctx.abort,
43
- })) {
44
- if (files.length >= limit) {
45
- truncated = true
46
- break
47
- }
48
- const full = path.resolve(search, file)
49
- const stats = Filesystem.stat(full)?.mtime.getTime() ?? 0
50
- files.push({
51
- path: full,
52
- mtime: stats,
53
- })
54
- }
55
- files.sort((a, b) => b.mtime - a.mtime)
56
-
57
- const output = []
58
- if (files.length === 0) output.push("No files found")
59
- if (files.length > 0) {
60
- output.push(...files.map((f) => f.path))
61
- if (truncated) {
62
- output.push("")
63
- output.push(
64
- `(Results are truncated: showing first ${limit} results. Consider using a more specific path or pattern.)`,
65
- )
66
- }
67
- }
68
-
69
- return {
70
- title: path.relative(Instance.worktree, search),
71
- metadata: {
72
- count: files.length,
73
- truncated,
74
- },
75
- output: output.join("\n"),
76
- }
77
- },
78
- })
@@ -1,6 +0,0 @@
1
- - Fast file pattern matching tool that works with any codebase size
2
- - Supports glob patterns like "**/*.js" or "src/**/*.ts"
3
- - Returns matching file paths sorted by modification time
4
- - Use this tool when you need to find files by name patterns
5
- - When you are doing an open-ended search that may require multiple rounds of globbing and grepping, use the Task tool instead
6
- - You have the capability to call multiple tools in a single response. It is always better to speculatively perform multiple searches as a batch that are potentially useful.
@@ -1,156 +0,0 @@
1
- import z from "zod"
2
- import { text } from "node:stream/consumers"
3
- import { Tool } from "./tool"
4
- import { Filesystem } from "../util/filesystem"
5
- import { Ripgrep } from "../file/ripgrep"
6
- import { Process } from "../util/process"
7
-
8
- import DESCRIPTION from "./grep.txt"
9
- import { Instance } from "../project/instance"
10
- import path from "path"
11
- import { assertExternalDirectory } from "./external-directory"
12
-
13
- const MAX_LINE_LENGTH = 2000
14
-
15
- export const GrepTool = Tool.define("grep", {
16
- description: DESCRIPTION,
17
- parameters: z.object({
18
- pattern: z.string().describe("The regex pattern to search for in file contents"),
19
- path: z.string().optional().describe("The directory to search in. Defaults to the current working directory."),
20
- include: z.string().optional().describe('File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")'),
21
- }),
22
- async execute(params, ctx) {
23
- if (!params.pattern) {
24
- throw new Error("pattern is required")
25
- }
26
-
27
- await ctx.ask({
28
- permission: "grep",
29
- patterns: [params.pattern],
30
- always: ["*"],
31
- metadata: {
32
- pattern: params.pattern,
33
- path: params.path,
34
- include: params.include,
35
- },
36
- })
37
-
38
- let searchPath = params.path ?? Instance.directory
39
- searchPath = path.isAbsolute(searchPath) ? searchPath : path.resolve(Instance.directory, searchPath)
40
- await assertExternalDirectory(ctx, searchPath, { kind: "directory" })
41
-
42
- const rgPath = await Ripgrep.filepath()
43
- const args = ["-nH", "--hidden", "--no-messages", "--field-match-separator=|", "--regexp", params.pattern]
44
- if (params.include) {
45
- args.push("--glob", params.include)
46
- }
47
- args.push(searchPath)
48
-
49
- const proc = Process.spawn([rgPath, ...args], {
50
- stdout: "pipe",
51
- stderr: "pipe",
52
- abort: ctx.abort,
53
- })
54
-
55
- if (!proc.stdout || !proc.stderr) {
56
- throw new Error("Process output not available")
57
- }
58
-
59
- const output = await text(proc.stdout)
60
- const errorOutput = await text(proc.stderr)
61
- const exitCode = await proc.exited
62
-
63
- // Exit codes: 0 = matches found, 1 = no matches, 2 = errors (but may still have matches)
64
- // With --no-messages, we suppress error output but still get exit code 2 for broken symlinks etc.
65
- // Only fail if exit code is 2 AND no output was produced
66
- if (exitCode === 1 || (exitCode === 2 && !output.trim())) {
67
- return {
68
- title: params.pattern,
69
- metadata: { matches: 0, truncated: false },
70
- output: "No files found",
71
- }
72
- }
73
-
74
- if (exitCode !== 0 && exitCode !== 2) {
75
- throw new Error(`ripgrep failed: ${errorOutput}`)
76
- }
77
-
78
- const hasErrors = exitCode === 2
79
-
80
- // Handle both Unix (\n) and Windows (\r\n) line endings
81
- const lines = output.trim().split(/\r?\n/)
82
- const matches = []
83
-
84
- for (const line of lines) {
85
- if (!line) continue
86
-
87
- const [filePath, lineNumStr, ...lineTextParts] = line.split("|")
88
- if (!filePath || !lineNumStr || lineTextParts.length === 0) continue
89
-
90
- const lineNum = parseInt(lineNumStr, 10)
91
- const lineText = lineTextParts.join("|")
92
-
93
- const stats = Filesystem.stat(filePath)
94
- if (!stats) continue
95
-
96
- matches.push({
97
- path: filePath,
98
- modTime: stats.mtime.getTime(),
99
- lineNum,
100
- lineText,
101
- })
102
- }
103
-
104
- matches.sort((a, b) => b.modTime - a.modTime)
105
-
106
- const limit = 100
107
- const truncated = matches.length > limit
108
- const finalMatches = truncated ? matches.slice(0, limit) : matches
109
-
110
- if (finalMatches.length === 0) {
111
- return {
112
- title: params.pattern,
113
- metadata: { matches: 0, truncated: false },
114
- output: "No files found",
115
- }
116
- }
117
-
118
- const totalMatches = matches.length
119
- const outputLines = [`Found ${totalMatches} matches${truncated ? ` (showing first ${limit})` : ""}`]
120
-
121
- let currentFile = ""
122
- for (const match of finalMatches) {
123
- if (currentFile !== match.path) {
124
- if (currentFile !== "") {
125
- outputLines.push("")
126
- }
127
- currentFile = match.path
128
- outputLines.push(`${match.path}:`)
129
- }
130
- const truncatedLineText =
131
- match.lineText.length > MAX_LINE_LENGTH ? match.lineText.substring(0, MAX_LINE_LENGTH) + "..." : match.lineText
132
- outputLines.push(` Line ${match.lineNum}: ${truncatedLineText}`)
133
- }
134
-
135
- if (truncated) {
136
- outputLines.push("")
137
- outputLines.push(
138
- `(Results truncated: showing ${limit} of ${totalMatches} matches (${totalMatches - limit} hidden). Consider using a more specific path or pattern.)`,
139
- )
140
- }
141
-
142
- if (hasErrors) {
143
- outputLines.push("")
144
- outputLines.push("(Some paths were inaccessible and skipped)")
145
- }
146
-
147
- return {
148
- title: params.pattern,
149
- metadata: {
150
- matches: totalMatches,
151
- truncated,
152
- },
153
- output: outputLines.join("\n"),
154
- }
155
- },
156
- })
@@ -1,8 +0,0 @@
1
- - Fast content search tool that works with any codebase size
2
- - Searches file contents using regular expressions
3
- - Supports full regex syntax (eg. "log.*Error", "function\s+\w+", etc.)
4
- - Filter files by pattern with the include parameter (eg. "*.js", "*.{ts,tsx}")
5
- - Returns file paths and line numbers with at least one match sorted by modification time
6
- - Use this tool when you need to find files containing specific patterns
7
- - If you need to identify/count the number of matches within files, use the Bash tool with `rg` (ripgrep) directly. Do NOT use `grep`.
8
- - When you are doing an open-ended search that may require multiple rounds of globbing and grepping, use the Task tool instead
@@ -1,17 +0,0 @@
1
- import z from "zod"
2
- import { Tool } from "./tool"
3
-
4
- export const InvalidTool = Tool.define("invalid", {
5
- description: "Do not use",
6
- parameters: z.object({
7
- tool: z.string(),
8
- error: z.string(),
9
- }),
10
- async execute(params) {
11
- return {
12
- title: "Invalid Tool",
13
- output: `The arguments provided to the tool are invalid: ${params.error}`,
14
- metadata: {},
15
- }
16
- },
17
- })
@@ -1,121 +0,0 @@
1
- import z from "zod"
2
- import { Tool } from "./tool"
3
- import * as path from "path"
4
- import DESCRIPTION from "./ls.txt"
5
- import { Instance } from "../project/instance"
6
- import { Ripgrep } from "../file/ripgrep"
7
- import { assertExternalDirectory } from "./external-directory"
8
-
9
- export const IGNORE_PATTERNS = [
10
- "node_modules/",
11
- "__pycache__/",
12
- ".git/",
13
- "dist/",
14
- "build/",
15
- "target/",
16
- "vendor/",
17
- "bin/",
18
- "obj/",
19
- ".idea/",
20
- ".vscode/",
21
- ".zig-cache/",
22
- "zig-out",
23
- ".coverage",
24
- "coverage/",
25
- "vendor/",
26
- "tmp/",
27
- "temp/",
28
- ".cache/",
29
- "cache/",
30
- "logs/",
31
- ".venv/",
32
- "venv/",
33
- "env/",
34
- ]
35
-
36
- const LIMIT = 100
37
-
38
- export const ListTool = Tool.define("list", {
39
- description: DESCRIPTION,
40
- parameters: z.object({
41
- path: z.string().describe("The absolute path to the directory to list (must be absolute, not relative)").optional(),
42
- ignore: z.array(z.string()).describe("List of glob patterns to ignore").optional(),
43
- }),
44
- async execute(params, ctx) {
45
- const searchPath = path.resolve(Instance.directory, params.path || ".")
46
- await assertExternalDirectory(ctx, searchPath, { kind: "directory" })
47
-
48
- await ctx.ask({
49
- permission: "list",
50
- patterns: [searchPath],
51
- always: ["*"],
52
- metadata: {
53
- path: searchPath,
54
- },
55
- })
56
-
57
- const ignoreGlobs = IGNORE_PATTERNS.map((p) => `!${p}*`).concat(params.ignore?.map((p) => `!${p}`) || [])
58
- const files = []
59
- for await (const file of Ripgrep.files({ cwd: searchPath, glob: ignoreGlobs, signal: ctx.abort })) {
60
- files.push(file)
61
- if (files.length >= LIMIT) break
62
- }
63
-
64
- // Build directory structure
65
- const dirs = new Set<string>()
66
- const filesByDir = new Map<string, string[]>()
67
-
68
- for (const file of files) {
69
- const dir = path.dirname(file)
70
- const parts = dir === "." ? [] : dir.split("/")
71
-
72
- // Add all parent directories
73
- for (let i = 0; i <= parts.length; i++) {
74
- const dirPath = i === 0 ? "." : parts.slice(0, i).join("/")
75
- dirs.add(dirPath)
76
- }
77
-
78
- // Add file to its directory
79
- if (!filesByDir.has(dir)) filesByDir.set(dir, [])
80
- filesByDir.get(dir)!.push(path.basename(file))
81
- }
82
-
83
- function renderDir(dirPath: string, depth: number): string {
84
- const indent = " ".repeat(depth)
85
- let output = ""
86
-
87
- if (depth > 0) {
88
- output += `${indent}${path.basename(dirPath)}/\n`
89
- }
90
-
91
- const childIndent = " ".repeat(depth + 1)
92
- const children = Array.from(dirs)
93
- .filter((d) => path.dirname(d) === dirPath && d !== dirPath)
94
- .sort()
95
-
96
- // Render subdirectories first
97
- for (const child of children) {
98
- output += renderDir(child, depth + 1)
99
- }
100
-
101
- // Render files
102
- const files = filesByDir.get(dirPath) || []
103
- for (const file of files.sort()) {
104
- output += `${childIndent}${file}\n`
105
- }
106
-
107
- return output
108
- }
109
-
110
- const output = `${searchPath}/\n` + renderDir(".", 0)
111
-
112
- return {
113
- title: path.relative(Instance.worktree, searchPath),
114
- metadata: {
115
- count: files.length,
116
- truncated: files.length >= LIMIT,
117
- },
118
- output,
119
- }
120
- },
121
- })
@@ -1 +0,0 @@
1
- Lists files and directories in a given path. The path parameter must be absolute; omit it to use the current workspace directory. You can optionally provide an array of glob patterns to ignore with the ignore parameter. You should generally prefer the Glob and Grep tools, if you know which directories to search.
@@ -1,97 +0,0 @@
1
- import z from "zod"
2
- import { Tool } from "./tool"
3
- import path from "path"
4
- import { LSP } from "../lsp"
5
- import DESCRIPTION from "./lsp.txt"
6
- import { Instance } from "../project/instance"
7
- import { pathToFileURL } from "url"
8
- import { assertExternalDirectory } from "./external-directory"
9
- import { Filesystem } from "../util/filesystem"
10
-
11
- const operations = [
12
- "goToDefinition",
13
- "findReferences",
14
- "hover",
15
- "documentSymbol",
16
- "workspaceSymbol",
17
- "goToImplementation",
18
- "prepareCallHierarchy",
19
- "incomingCalls",
20
- "outgoingCalls",
21
- ] as const
22
-
23
- export const LspTool = Tool.define("lsp", {
24
- description: DESCRIPTION,
25
- parameters: z.object({
26
- operation: z.enum(operations).describe("The LSP operation to perform"),
27
- filePath: z.string().describe("The absolute or relative path to the file"),
28
- line: z.number().int().min(1).describe("The line number (1-based, as shown in editors)"),
29
- character: z.number().int().min(1).describe("The character offset (1-based, as shown in editors)"),
30
- }),
31
- execute: async (args, ctx) => {
32
- const file = path.isAbsolute(args.filePath) ? args.filePath : path.join(Instance.directory, args.filePath)
33
- await assertExternalDirectory(ctx, file)
34
-
35
- await ctx.ask({
36
- permission: "lsp",
37
- patterns: ["*"],
38
- always: ["*"],
39
- metadata: {},
40
- })
41
- const uri = pathToFileURL(file).href
42
- const position = {
43
- file,
44
- line: args.line - 1,
45
- character: args.character - 1,
46
- }
47
-
48
- const relPath = path.relative(Instance.worktree, file)
49
- const title = `${args.operation} ${relPath}:${args.line}:${args.character}`
50
-
51
- const exists = await Filesystem.exists(file)
52
- if (!exists) {
53
- throw new Error(`File not found: ${file}`)
54
- }
55
-
56
- const available = await LSP.hasClients(file)
57
- if (!available) {
58
- throw new Error("No LSP server available for this file type.")
59
- }
60
-
61
- await LSP.touchFile(file, true)
62
-
63
- const result: unknown[] = await (async () => {
64
- switch (args.operation) {
65
- case "goToDefinition":
66
- return LSP.definition(position)
67
- case "findReferences":
68
- return LSP.references(position)
69
- case "hover":
70
- return LSP.hover(position)
71
- case "documentSymbol":
72
- return LSP.documentSymbol(uri)
73
- case "workspaceSymbol":
74
- return LSP.workspaceSymbol("")
75
- case "goToImplementation":
76
- return LSP.implementation(position)
77
- case "prepareCallHierarchy":
78
- return LSP.prepareCallHierarchy(position)
79
- case "incomingCalls":
80
- return LSP.incomingCalls(position)
81
- case "outgoingCalls":
82
- return LSP.outgoingCalls(position)
83
- }
84
- })()
85
-
86
- const output = (() => {
87
- if (result.length === 0) return `No results found for ${args.operation}`
88
- return JSON.stringify(result, null, 2)
89
- })()
90
-
91
- return {
92
- title,
93
- metadata: { result },
94
- output,
95
- }
96
- },
97
- })
@@ -1,19 +0,0 @@
1
- Interact with Language Server Protocol (LSP) servers to get code intelligence features.
2
-
3
- Supported operations:
4
- - goToDefinition: Find where a symbol is defined
5
- - findReferences: Find all references to a symbol
6
- - hover: Get hover information (documentation, type info) for a symbol
7
- - documentSymbol: Get all symbols (functions, classes, variables) in a document
8
- - workspaceSymbol: Search for symbols across the entire workspace
9
- - goToImplementation: Find implementations of an interface or abstract method
10
- - prepareCallHierarchy: Get call hierarchy item at a position (functions/methods)
11
- - incomingCalls: Find all functions/methods that call the function at a position
12
- - outgoingCalls: Find all functions/methods called by the function at a position
13
-
14
- All operations require:
15
- - filePath: The file to operate on
16
- - line: The line number (1-based, as shown in editors)
17
- - character: The character offset (1-based, as shown in editors)
18
-
19
- Note: LSP servers must be configured for the file type. If no server is available, an error will be returned.
@@ -1,46 +0,0 @@
1
- import z from "zod"
2
- import { Tool } from "./tool"
3
- import { EditTool } from "./edit"
4
- import DESCRIPTION from "./multiedit.txt"
5
- import path from "path"
6
- import { Instance } from "../project/instance"
7
-
8
- export const MultiEditTool = Tool.define("multiedit", {
9
- description: DESCRIPTION,
10
- parameters: z.object({
11
- filePath: z.string().describe("The absolute path to the file to modify"),
12
- edits: z
13
- .array(
14
- z.object({
15
- filePath: z.string().describe("The absolute path to the file to modify"),
16
- oldString: z.string().describe("The text to replace"),
17
- newString: z.string().describe("The text to replace it with (must be different from oldString)"),
18
- replaceAll: z.boolean().optional().describe("Replace all occurrences of oldString (default false)"),
19
- }),
20
- )
21
- .describe("Array of edit operations to perform sequentially on the file"),
22
- }),
23
- async execute(params, ctx) {
24
- const tool = await EditTool.init()
25
- const results = []
26
- for (const [, edit] of params.edits.entries()) {
27
- const result = await tool.execute(
28
- {
29
- filePath: params.filePath,
30
- oldString: edit.oldString,
31
- newString: edit.newString,
32
- replaceAll: edit.replaceAll,
33
- },
34
- ctx,
35
- )
36
- results.push(result)
37
- }
38
- return {
39
- title: path.relative(Instance.worktree, params.filePath),
40
- metadata: {
41
- results: results.map((r) => r.metadata),
42
- },
43
- output: results.at(-1)!.output,
44
- }
45
- },
46
- })
@@ -1,41 +0,0 @@
1
- This is a tool for making multiple edits to a single file in one operation. It is built on top of the Edit tool and allows you to perform multiple find-and-replace operations efficiently. Prefer this tool over the Edit tool when you need to make multiple edits to the same file.
2
-
3
- Before using this tool:
4
-
5
- 1. Use the Read tool to understand the file's contents and context
6
- 2. Verify the directory path is correct
7
-
8
- To make multiple file edits, provide the following:
9
- 1. file_path: The absolute path to the file to modify (must be absolute, not relative)
10
- 2. edits: An array of edit operations to perform, where each edit contains:
11
- - oldString: The text to replace (must match the file contents exactly, including all whitespace and indentation)
12
- - newString: The edited text to replace the oldString
13
- - replaceAll: Replace all occurrences of oldString. This parameter is optional and defaults to false.
14
-
15
- IMPORTANT:
16
- - All edits are applied in sequence, in the order they are provided
17
- - Each edit operates on the result of the previous edit
18
- - All edits must be valid for the operation to succeed - if any edit fails, none will be applied
19
- - This tool is ideal when you need to make several changes to different parts of the same file
20
-
21
- CRITICAL REQUIREMENTS:
22
- 1. All edits follow the same requirements as the single Edit tool
23
- 2. The edits are atomic - either all succeed or none are applied
24
- 3. Plan your edits carefully to avoid conflicts between sequential operations
25
-
26
- WARNING:
27
- - The tool will fail if edits.oldString doesn't match the file contents exactly (including whitespace)
28
- - The tool will fail if edits.oldString and edits.newString are the same
29
- - Since edits are applied in sequence, ensure that earlier edits don't affect the text that later edits are trying to find
30
-
31
- When making edits:
32
- - Ensure all edits result in idiomatic, correct code
33
- - Do not leave the code in a broken state
34
- - Always use absolute file paths (starting with /)
35
- - Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
36
- - Use replaceAll for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance.
37
-
38
- If you want to create a new file, use:
39
- - A new file path, including dir name if needed
40
- - First edit: empty oldString and the new file's contents as newString
41
- - Subsequent edits: normal edit operations on the created content
@@ -1,14 +0,0 @@
1
- Use this tool to suggest switching to plan agent when the user's request would benefit from planning before implementation.
2
-
3
- If they explicitly mention wanting to create a plan ALWAYS call this tool first.
4
-
5
- This tool will ask the user if they want to switch to plan agent.
6
-
7
- Call this tool when:
8
- - The user's request is complex and would benefit from planning first
9
- - You want to research and design before making changes
10
- - The task involves multiple files or significant architectural decisions
11
-
12
- Do NOT call this tool:
13
- - For simple, straightforward tasks
14
- - When the user explicitly wants immediate implementation
@@ -1,13 +0,0 @@
1
- Use this tool when you have completed the planning phase and are ready to exit plan agent.
2
-
3
- This tool will ask the user if they want to switch to build agent to start implementing the plan.
4
-
5
- Call this tool:
6
- - After you have written a complete plan to the plan file
7
- - After you have clarified any questions with the user
8
- - When you are confident the plan is ready for implementation
9
-
10
- Do NOT call this tool:
11
- - Before you have created or finalized the plan
12
- - If you still have unanswered questions about the implementation
13
- - If the user has indicated they want to continue planning