lorenz 0.1.0

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 (630) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +13 -0
  3. package/README.md +774 -0
  4. package/RELEASE-MANIFEST.json +211 -0
  5. package/apps/cli/bin/lorenz.js +25 -0
  6. package/apps/cli/dist/bin/cli.d.ts +3 -0
  7. package/apps/cli/dist/bin/cli.d.ts.map +1 -0
  8. package/apps/cli/dist/bin/cli.js +4 -0
  9. package/apps/cli/dist/bin/cli.js.map +1 -0
  10. package/apps/cli/dist/daemon.d.ts +76 -0
  11. package/apps/cli/dist/daemon.d.ts.map +1 -0
  12. package/apps/cli/dist/daemon.js +189 -0
  13. package/apps/cli/dist/daemon.js.map +1 -0
  14. package/apps/cli/dist/doctor.d.ts +40 -0
  15. package/apps/cli/dist/doctor.d.ts.map +1 -0
  16. package/apps/cli/dist/doctor.js +590 -0
  17. package/apps/cli/dist/doctor.js.map +1 -0
  18. package/apps/cli/dist/index.d.ts +32 -0
  19. package/apps/cli/dist/index.d.ts.map +1 -0
  20. package/apps/cli/dist/index.js +26 -0
  21. package/apps/cli/dist/index.js.map +1 -0
  22. package/apps/cli/dist/main.d.ts +40 -0
  23. package/apps/cli/dist/main.d.ts.map +1 -0
  24. package/apps/cli/dist/main.js +259 -0
  25. package/apps/cli/dist/main.js.map +1 -0
  26. package/apps/cli/dist/runs.d.ts +31 -0
  27. package/apps/cli/dist/runs.d.ts.map +1 -0
  28. package/apps/cli/dist/runs.js +281 -0
  29. package/apps/cli/dist/runs.js.map +1 -0
  30. package/apps/cli/dist/workerDriverLoader.d.ts +64 -0
  31. package/apps/cli/dist/workerDriverLoader.d.ts.map +1 -0
  32. package/apps/cli/dist/workerDriverLoader.js +211 -0
  33. package/apps/cli/dist/workerDriverLoader.js.map +1 -0
  34. package/apps/cli/package.json +57 -0
  35. package/apps/symphony-dashboard/dist/assets/index-B3owF3jd.css +1 -0
  36. package/apps/symphony-dashboard/dist/assets/index-DQ6XlL0d.js +227 -0
  37. package/apps/symphony-dashboard/dist/index.html +18 -0
  38. package/bin/lorenz +16 -0
  39. package/extensions/docker-worker/dist/index.d.ts +92 -0
  40. package/extensions/docker-worker/dist/index.d.ts.map +1 -0
  41. package/extensions/docker-worker/dist/index.js +283 -0
  42. package/extensions/docker-worker/dist/index.js.map +1 -0
  43. package/extensions/docker-worker/package.json +14 -0
  44. package/extensions/jira-tracker/dist/client.d.ts +50 -0
  45. package/extensions/jira-tracker/dist/client.d.ts.map +1 -0
  46. package/extensions/jira-tracker/dist/client.js +619 -0
  47. package/extensions/jira-tracker/dist/client.js.map +1 -0
  48. package/extensions/jira-tracker/dist/index.d.ts +5 -0
  49. package/extensions/jira-tracker/dist/index.d.ts.map +1 -0
  50. package/extensions/jira-tracker/dist/index.js +5 -0
  51. package/extensions/jira-tracker/dist/index.js.map +1 -0
  52. package/extensions/jira-tracker/dist/options.d.ts +38 -0
  53. package/extensions/jira-tracker/dist/options.d.ts.map +1 -0
  54. package/extensions/jira-tracker/dist/options.js +61 -0
  55. package/extensions/jira-tracker/dist/options.js.map +1 -0
  56. package/extensions/jira-tracker/dist/provider.d.ts +6 -0
  57. package/extensions/jira-tracker/dist/provider.d.ts.map +1 -0
  58. package/extensions/jira-tracker/dist/provider.js +178 -0
  59. package/extensions/jira-tracker/dist/provider.js.map +1 -0
  60. package/extensions/jira-tracker/dist/register.d.ts +10 -0
  61. package/extensions/jira-tracker/dist/register.d.ts.map +1 -0
  62. package/extensions/jira-tracker/dist/register.js +15 -0
  63. package/extensions/jira-tracker/dist/register.js.map +1 -0
  64. package/extensions/jira-tracker/package.json +16 -0
  65. package/extensions/linear-tracker/dist/client.d.ts +82 -0
  66. package/extensions/linear-tracker/dist/client.d.ts.map +1 -0
  67. package/extensions/linear-tracker/dist/client.js +622 -0
  68. package/extensions/linear-tracker/dist/client.js.map +1 -0
  69. package/extensions/linear-tracker/dist/index.d.ts +8 -0
  70. package/extensions/linear-tracker/dist/index.d.ts.map +1 -0
  71. package/extensions/linear-tracker/dist/index.js +7 -0
  72. package/extensions/linear-tracker/dist/index.js.map +1 -0
  73. package/extensions/linear-tracker/dist/options.d.ts +32 -0
  74. package/extensions/linear-tracker/dist/options.d.ts.map +1 -0
  75. package/extensions/linear-tracker/dist/options.js +59 -0
  76. package/extensions/linear-tracker/dist/options.js.map +1 -0
  77. package/extensions/linear-tracker/dist/provider.d.ts +4 -0
  78. package/extensions/linear-tracker/dist/provider.d.ts.map +1 -0
  79. package/extensions/linear-tracker/dist/provider.js +58 -0
  80. package/extensions/linear-tracker/dist/provider.js.map +1 -0
  81. package/extensions/linear-tracker/dist/register.d.ts +11 -0
  82. package/extensions/linear-tracker/dist/register.d.ts.map +1 -0
  83. package/extensions/linear-tracker/dist/register.js +19 -0
  84. package/extensions/linear-tracker/dist/register.js.map +1 -0
  85. package/extensions/linear-tracker/dist/toolOps.d.ts +8 -0
  86. package/extensions/linear-tracker/dist/toolOps.d.ts.map +1 -0
  87. package/extensions/linear-tracker/dist/toolOps.js +160 -0
  88. package/extensions/linear-tracker/dist/toolOps.js.map +1 -0
  89. package/extensions/linear-tracker/dist/tools.d.ts +7 -0
  90. package/extensions/linear-tracker/dist/tools.d.ts.map +1 -0
  91. package/extensions/linear-tracker/dist/tools.js +210 -0
  92. package/extensions/linear-tracker/dist/tools.js.map +1 -0
  93. package/extensions/linear-tracker/package.json +18 -0
  94. package/extensions/local-tracker/dist/boardStore.d.ts +116 -0
  95. package/extensions/local-tracker/dist/boardStore.d.ts.map +1 -0
  96. package/extensions/local-tracker/dist/boardStore.js +475 -0
  97. package/extensions/local-tracker/dist/boardStore.js.map +1 -0
  98. package/extensions/local-tracker/dist/client.d.ts +14 -0
  99. package/extensions/local-tracker/dist/client.d.ts.map +1 -0
  100. package/extensions/local-tracker/dist/client.js +27 -0
  101. package/extensions/local-tracker/dist/client.js.map +1 -0
  102. package/extensions/local-tracker/dist/index.d.ts +7 -0
  103. package/extensions/local-tracker/dist/index.d.ts.map +1 -0
  104. package/extensions/local-tracker/dist/index.js +7 -0
  105. package/extensions/local-tracker/dist/index.js.map +1 -0
  106. package/extensions/local-tracker/dist/options.d.ts +31 -0
  107. package/extensions/local-tracker/dist/options.d.ts.map +1 -0
  108. package/extensions/local-tracker/dist/options.js +69 -0
  109. package/extensions/local-tracker/dist/options.js.map +1 -0
  110. package/extensions/local-tracker/dist/provider.d.ts +9 -0
  111. package/extensions/local-tracker/dist/provider.d.ts.map +1 -0
  112. package/extensions/local-tracker/dist/provider.js +35 -0
  113. package/extensions/local-tracker/dist/provider.js.map +1 -0
  114. package/extensions/local-tracker/dist/register.d.ts +11 -0
  115. package/extensions/local-tracker/dist/register.d.ts.map +1 -0
  116. package/extensions/local-tracker/dist/register.js +19 -0
  117. package/extensions/local-tracker/dist/register.js.map +1 -0
  118. package/extensions/local-tracker/dist/resolveBoardDir.d.ts +24 -0
  119. package/extensions/local-tracker/dist/resolveBoardDir.d.ts.map +1 -0
  120. package/extensions/local-tracker/dist/resolveBoardDir.js +39 -0
  121. package/extensions/local-tracker/dist/resolveBoardDir.js.map +1 -0
  122. package/extensions/local-tracker/dist/toolOps.d.ts +9 -0
  123. package/extensions/local-tracker/dist/toolOps.d.ts.map +1 -0
  124. package/extensions/local-tracker/dist/toolOps.js +86 -0
  125. package/extensions/local-tracker/dist/toolOps.js.map +1 -0
  126. package/extensions/local-tracker/dist/tools.d.ts +7 -0
  127. package/extensions/local-tracker/dist/tools.d.ts.map +1 -0
  128. package/extensions/local-tracker/dist/tools.js +170 -0
  129. package/extensions/local-tracker/dist/tools.js.map +1 -0
  130. package/extensions/local-tracker/package.json +18 -0
  131. package/extensions/memory-tracker/dist/index.d.ts +24 -0
  132. package/extensions/memory-tracker/dist/index.d.ts.map +1 -0
  133. package/extensions/memory-tracker/dist/index.js +110 -0
  134. package/extensions/memory-tracker/dist/index.js.map +1 -0
  135. package/extensions/memory-tracker/package.json +16 -0
  136. package/extensions/slack-tracker/dist/client.d.ts +88 -0
  137. package/extensions/slack-tracker/dist/client.d.ts.map +1 -0
  138. package/extensions/slack-tracker/dist/client.js +246 -0
  139. package/extensions/slack-tracker/dist/client.js.map +1 -0
  140. package/extensions/slack-tracker/dist/inMemoryTransport.d.ts +42 -0
  141. package/extensions/slack-tracker/dist/inMemoryTransport.d.ts.map +1 -0
  142. package/extensions/slack-tracker/dist/inMemoryTransport.js +104 -0
  143. package/extensions/slack-tracker/dist/inMemoryTransport.js.map +1 -0
  144. package/extensions/slack-tracker/dist/index.d.ts +15 -0
  145. package/extensions/slack-tracker/dist/index.d.ts.map +1 -0
  146. package/extensions/slack-tracker/dist/index.js +11 -0
  147. package/extensions/slack-tracker/dist/index.js.map +1 -0
  148. package/extensions/slack-tracker/dist/mapping.d.ts +27 -0
  149. package/extensions/slack-tracker/dist/mapping.d.ts.map +1 -0
  150. package/extensions/slack-tracker/dist/mapping.js +109 -0
  151. package/extensions/slack-tracker/dist/mapping.js.map +1 -0
  152. package/extensions/slack-tracker/dist/operations.d.ts +41 -0
  153. package/extensions/slack-tracker/dist/operations.d.ts.map +1 -0
  154. package/extensions/slack-tracker/dist/operations.js +97 -0
  155. package/extensions/slack-tracker/dist/operations.js.map +1 -0
  156. package/extensions/slack-tracker/dist/options.d.ts +30 -0
  157. package/extensions/slack-tracker/dist/options.d.ts.map +1 -0
  158. package/extensions/slack-tracker/dist/options.js +49 -0
  159. package/extensions/slack-tracker/dist/options.js.map +1 -0
  160. package/extensions/slack-tracker/dist/provider.d.ts +9 -0
  161. package/extensions/slack-tracker/dist/provider.d.ts.map +1 -0
  162. package/extensions/slack-tracker/dist/provider.js +74 -0
  163. package/extensions/slack-tracker/dist/provider.js.map +1 -0
  164. package/extensions/slack-tracker/dist/register.d.ts +11 -0
  165. package/extensions/slack-tracker/dist/register.d.ts.map +1 -0
  166. package/extensions/slack-tracker/dist/register.js +19 -0
  167. package/extensions/slack-tracker/dist/register.js.map +1 -0
  168. package/extensions/slack-tracker/dist/threadState.d.ts +52 -0
  169. package/extensions/slack-tracker/dist/threadState.d.ts.map +1 -0
  170. package/extensions/slack-tracker/dist/threadState.js +192 -0
  171. package/extensions/slack-tracker/dist/threadState.js.map +1 -0
  172. package/extensions/slack-tracker/dist/toolOps.d.ts +13 -0
  173. package/extensions/slack-tracker/dist/toolOps.d.ts.map +1 -0
  174. package/extensions/slack-tracker/dist/toolOps.js +76 -0
  175. package/extensions/slack-tracker/dist/toolOps.js.map +1 -0
  176. package/extensions/slack-tracker/dist/tools.d.ts +8 -0
  177. package/extensions/slack-tracker/dist/tools.d.ts.map +1 -0
  178. package/extensions/slack-tracker/dist/tools.js +266 -0
  179. package/extensions/slack-tracker/dist/tools.js.map +1 -0
  180. package/extensions/slack-tracker/dist/transport.d.ts +63 -0
  181. package/extensions/slack-tracker/dist/transport.d.ts.map +1 -0
  182. package/extensions/slack-tracker/dist/transport.js +2 -0
  183. package/extensions/slack-tracker/dist/transport.js.map +1 -0
  184. package/extensions/slack-tracker/dist/webTransport.d.ts +44 -0
  185. package/extensions/slack-tracker/dist/webTransport.d.ts.map +1 -0
  186. package/extensions/slack-tracker/dist/webTransport.js +402 -0
  187. package/extensions/slack-tracker/dist/webTransport.js.map +1 -0
  188. package/extensions/slack-tracker/package.json +17 -0
  189. package/package.json +89 -0
  190. package/packages/acp/dist/childProcess.d.ts +4 -0
  191. package/packages/acp/dist/childProcess.d.ts.map +1 -0
  192. package/packages/acp/dist/childProcess.js +33 -0
  193. package/packages/acp/dist/childProcess.js.map +1 -0
  194. package/packages/acp/dist/index.d.ts +70 -0
  195. package/packages/acp/dist/index.d.ts.map +1 -0
  196. package/packages/acp/dist/index.js +701 -0
  197. package/packages/acp/dist/index.js.map +1 -0
  198. package/packages/acp/dist/options.d.ts +24 -0
  199. package/packages/acp/dist/options.d.ts.map +1 -0
  200. package/packages/acp/dist/options.js +92 -0
  201. package/packages/acp/dist/options.js.map +1 -0
  202. package/packages/acp/dist/toml.d.ts +2 -0
  203. package/packages/acp/dist/toml.d.ts.map +1 -0
  204. package/packages/acp/dist/toml.js +51 -0
  205. package/packages/acp/dist/toml.js.map +1 -0
  206. package/packages/acp/package.json +24 -0
  207. package/packages/agent-runner/dist/index.d.ts +58 -0
  208. package/packages/agent-runner/dist/index.d.ts.map +1 -0
  209. package/packages/agent-runner/dist/index.js +288 -0
  210. package/packages/agent-runner/dist/index.js.map +1 -0
  211. package/packages/agent-runner/package.json +19 -0
  212. package/packages/agent-sdk/dist/index.d.ts +2 -0
  213. package/packages/agent-sdk/dist/index.d.ts.map +1 -0
  214. package/packages/agent-sdk/dist/index.js +2 -0
  215. package/packages/agent-sdk/dist/index.js.map +1 -0
  216. package/packages/agent-sdk/dist/provider.d.ts +66 -0
  217. package/packages/agent-sdk/dist/provider.d.ts.map +1 -0
  218. package/packages/agent-sdk/dist/provider.js +38 -0
  219. package/packages/agent-sdk/dist/provider.js.map +1 -0
  220. package/packages/agent-sdk/package.json +14 -0
  221. package/packages/cli-kit/dist/index.d.ts +20 -0
  222. package/packages/cli-kit/dist/index.d.ts.map +1 -0
  223. package/packages/cli-kit/dist/index.js +72 -0
  224. package/packages/cli-kit/dist/index.js.map +1 -0
  225. package/packages/cli-kit/package.json +14 -0
  226. package/packages/config/dist/aliases.d.ts +10 -0
  227. package/packages/config/dist/aliases.d.ts.map +1 -0
  228. package/packages/config/dist/aliases.js +153 -0
  229. package/packages/config/dist/aliases.js.map +1 -0
  230. package/packages/config/dist/defaults.d.ts +12 -0
  231. package/packages/config/dist/defaults.d.ts.map +1 -0
  232. package/packages/config/dist/defaults.js +78 -0
  233. package/packages/config/dist/defaults.js.map +1 -0
  234. package/packages/config/dist/errors.d.ts +3 -0
  235. package/packages/config/dist/errors.d.ts.map +1 -0
  236. package/packages/config/dist/errors.js +56 -0
  237. package/packages/config/dist/errors.js.map +1 -0
  238. package/packages/config/dist/index.d.ts +5 -0
  239. package/packages/config/dist/index.d.ts.map +1 -0
  240. package/packages/config/dist/index.js +4 -0
  241. package/packages/config/dist/index.js.map +1 -0
  242. package/packages/config/dist/leaf-utils.d.ts +3 -0
  243. package/packages/config/dist/leaf-utils.d.ts.map +1 -0
  244. package/packages/config/dist/leaf-utils.js +9 -0
  245. package/packages/config/dist/leaf-utils.js.map +1 -0
  246. package/packages/config/dist/parse.d.ts +11 -0
  247. package/packages/config/dist/parse.d.ts.map +1 -0
  248. package/packages/config/dist/parse.js +821 -0
  249. package/packages/config/dist/parse.js.map +1 -0
  250. package/packages/config/dist/schemas.d.ts +214 -0
  251. package/packages/config/dist/schemas.d.ts.map +1 -0
  252. package/packages/config/dist/schemas.js +248 -0
  253. package/packages/config/dist/schemas.js.map +1 -0
  254. package/packages/config/package.json +19 -0
  255. package/packages/dispatch/dist/index.d.ts +22 -0
  256. package/packages/dispatch/dist/index.d.ts.map +1 -0
  257. package/packages/dispatch/dist/index.js +117 -0
  258. package/packages/dispatch/dist/index.js.map +1 -0
  259. package/packages/dispatch/package.json +16 -0
  260. package/packages/dispatch-coordinator/dist/coordinator.d.ts +158 -0
  261. package/packages/dispatch-coordinator/dist/coordinator.d.ts.map +1 -0
  262. package/packages/dispatch-coordinator/dist/coordinator.js +529 -0
  263. package/packages/dispatch-coordinator/dist/coordinator.js.map +1 -0
  264. package/packages/dispatch-coordinator/dist/gate.d.ts +24 -0
  265. package/packages/dispatch-coordinator/dist/gate.d.ts.map +1 -0
  266. package/packages/dispatch-coordinator/dist/gate.js +47 -0
  267. package/packages/dispatch-coordinator/dist/gate.js.map +1 -0
  268. package/packages/dispatch-coordinator/dist/index.d.ts +6 -0
  269. package/packages/dispatch-coordinator/dist/index.d.ts.map +1 -0
  270. package/packages/dispatch-coordinator/dist/index.js +16 -0
  271. package/packages/dispatch-coordinator/dist/index.js.map +1 -0
  272. package/packages/dispatch-coordinator/dist/mcpEndpointManager.d.ts +28 -0
  273. package/packages/dispatch-coordinator/dist/mcpEndpointManager.d.ts.map +1 -0
  274. package/packages/dispatch-coordinator/dist/mcpEndpointManager.js +54 -0
  275. package/packages/dispatch-coordinator/dist/mcpEndpointManager.js.map +1 -0
  276. package/packages/dispatch-coordinator/dist/nullEndpointManager.d.ts +18 -0
  277. package/packages/dispatch-coordinator/dist/nullEndpointManager.d.ts.map +1 -0
  278. package/packages/dispatch-coordinator/dist/nullEndpointManager.js +40 -0
  279. package/packages/dispatch-coordinator/dist/nullEndpointManager.js.map +1 -0
  280. package/packages/dispatch-coordinator/dist/types.d.ts +119 -0
  281. package/packages/dispatch-coordinator/dist/types.d.ts.map +1 -0
  282. package/packages/dispatch-coordinator/dist/types.js +17 -0
  283. package/packages/dispatch-coordinator/dist/types.js.map +1 -0
  284. package/packages/dispatch-coordinator/package.json +16 -0
  285. package/packages/domain/dist/index.d.ts +775 -0
  286. package/packages/domain/dist/index.d.ts.map +1 -0
  287. package/packages/domain/dist/index.js +124 -0
  288. package/packages/domain/dist/index.js.map +1 -0
  289. package/packages/domain/package.json +14 -0
  290. package/packages/humanize/dist/index.d.ts +4 -0
  291. package/packages/humanize/dist/index.d.ts.map +1 -0
  292. package/packages/humanize/dist/index.js +347 -0
  293. package/packages/humanize/dist/index.js.map +1 -0
  294. package/packages/humanize/package.json +11 -0
  295. package/packages/issue/dist/index.d.ts +7 -0
  296. package/packages/issue/dist/index.d.ts.map +1 -0
  297. package/packages/issue/dist/index.js +147 -0
  298. package/packages/issue/dist/index.js.map +1 -0
  299. package/packages/issue/package.json +14 -0
  300. package/packages/log-file/dist/index.d.ts +10 -0
  301. package/packages/log-file/dist/index.d.ts.map +1 -0
  302. package/packages/log-file/dist/index.js +200 -0
  303. package/packages/log-file/dist/index.js.map +1 -0
  304. package/packages/log-file/package.json +15 -0
  305. package/packages/mcp/dist/agentEndpoint.d.ts +31 -0
  306. package/packages/mcp/dist/agentEndpoint.d.ts.map +1 -0
  307. package/packages/mcp/dist/agentEndpoint.js +270 -0
  308. package/packages/mcp/dist/agentEndpoint.js.map +1 -0
  309. package/packages/mcp/dist/auth.d.ts +7 -0
  310. package/packages/mcp/dist/auth.d.ts.map +1 -0
  311. package/packages/mcp/dist/auth.js +48 -0
  312. package/packages/mcp/dist/auth.js.map +1 -0
  313. package/packages/mcp/dist/filter.d.ts +70 -0
  314. package/packages/mcp/dist/filter.d.ts.map +1 -0
  315. package/packages/mcp/dist/filter.js +231 -0
  316. package/packages/mcp/dist/filter.js.map +1 -0
  317. package/packages/mcp/dist/index.d.ts +7 -0
  318. package/packages/mcp/dist/index.d.ts.map +1 -0
  319. package/packages/mcp/dist/index.js +5 -0
  320. package/packages/mcp/dist/index.js.map +1 -0
  321. package/packages/mcp/dist/server.d.ts +31 -0
  322. package/packages/mcp/dist/server.d.ts.map +1 -0
  323. package/packages/mcp/dist/server.js +176 -0
  324. package/packages/mcp/dist/server.js.map +1 -0
  325. package/packages/mcp/dist/tools/linear.d.ts +5 -0
  326. package/packages/mcp/dist/tools/linear.d.ts.map +1 -0
  327. package/packages/mcp/dist/tools/linear.js +192 -0
  328. package/packages/mcp/dist/tools/linear.js.map +1 -0
  329. package/packages/mcp/dist/tools/local.d.ts +5 -0
  330. package/packages/mcp/dist/tools/local.d.ts.map +1 -0
  331. package/packages/mcp/dist/tools/local.js +161 -0
  332. package/packages/mcp/dist/tools/local.js.map +1 -0
  333. package/packages/mcp/dist/tools/result.d.ts +5 -0
  334. package/packages/mcp/dist/tools/result.d.ts.map +1 -0
  335. package/packages/mcp/dist/tools/result.js +15 -0
  336. package/packages/mcp/dist/tools/result.js.map +1 -0
  337. package/packages/mcp/dist/tools.d.ts +14 -0
  338. package/packages/mcp/dist/tools.d.ts.map +1 -0
  339. package/packages/mcp/dist/tools.js +58 -0
  340. package/packages/mcp/dist/tools.js.map +1 -0
  341. package/packages/mcp/package.json +20 -0
  342. package/packages/orchestrator/dist/index.d.ts +171 -0
  343. package/packages/orchestrator/dist/index.d.ts.map +1 -0
  344. package/packages/orchestrator/dist/index.js +524 -0
  345. package/packages/orchestrator/dist/index.js.map +1 -0
  346. package/packages/orchestrator/package.json +18 -0
  347. package/packages/policies/dist/index.d.ts +11 -0
  348. package/packages/policies/dist/index.d.ts.map +1 -0
  349. package/packages/policies/dist/index.js +6 -0
  350. package/packages/policies/dist/index.js.map +1 -0
  351. package/packages/policies/dist/reconciliation.d.ts +5 -0
  352. package/packages/policies/dist/reconciliation.d.ts.map +1 -0
  353. package/packages/policies/dist/reconciliation.js +17 -0
  354. package/packages/policies/dist/reconciliation.js.map +1 -0
  355. package/packages/policies/dist/resume.d.ts +14 -0
  356. package/packages/policies/dist/resume.d.ts.map +1 -0
  357. package/packages/policies/dist/resume.js +7 -0
  358. package/packages/policies/dist/resume.js.map +1 -0
  359. package/packages/policies/dist/retry.d.ts +4 -0
  360. package/packages/policies/dist/retry.d.ts.map +1 -0
  361. package/packages/policies/dist/retry.js +7 -0
  362. package/packages/policies/dist/retry.js.map +1 -0
  363. package/packages/policies/dist/stopReason.d.ts +4 -0
  364. package/packages/policies/dist/stopReason.d.ts.map +1 -0
  365. package/packages/policies/dist/stopReason.js +11 -0
  366. package/packages/policies/dist/stopReason.js.map +1 -0
  367. package/packages/policies/dist/usage.d.ts +14 -0
  368. package/packages/policies/dist/usage.d.ts.map +1 -0
  369. package/packages/policies/dist/usage.js +38 -0
  370. package/packages/policies/dist/usage.js.map +1 -0
  371. package/packages/policies/dist/workerHost.d.ts +8 -0
  372. package/packages/policies/dist/workerHost.d.ts.map +1 -0
  373. package/packages/policies/dist/workerHost.js +20 -0
  374. package/packages/policies/dist/workerHost.js.map +1 -0
  375. package/packages/policies/package.json +21 -0
  376. package/packages/presenter/dist/index.d.ts +81 -0
  377. package/packages/presenter/dist/index.d.ts.map +1 -0
  378. package/packages/presenter/dist/index.js +421 -0
  379. package/packages/presenter/dist/index.js.map +1 -0
  380. package/packages/presenter/package.json +16 -0
  381. package/packages/projections/dist/index.d.ts +10 -0
  382. package/packages/projections/dist/index.d.ts.map +1 -0
  383. package/packages/projections/dist/index.js +30 -0
  384. package/packages/projections/dist/index.js.map +1 -0
  385. package/packages/projections/package.json +15 -0
  386. package/packages/prompt/dist/index.d.ts +9 -0
  387. package/packages/prompt/dist/index.d.ts.map +1 -0
  388. package/packages/prompt/dist/index.js +71 -0
  389. package/packages/prompt/dist/index.js.map +1 -0
  390. package/packages/prompt/package.json +16 -0
  391. package/packages/retry-scheduler/dist/index.d.ts +12 -0
  392. package/packages/retry-scheduler/dist/index.d.ts.map +1 -0
  393. package/packages/retry-scheduler/dist/index.js +39 -0
  394. package/packages/retry-scheduler/dist/index.js.map +1 -0
  395. package/packages/retry-scheduler/package.json +15 -0
  396. package/packages/runtime/dist/index.d.ts +157 -0
  397. package/packages/runtime/dist/index.d.ts.map +1 -0
  398. package/packages/runtime/dist/index.js +1074 -0
  399. package/packages/runtime/dist/index.js.map +1 -0
  400. package/packages/runtime/package.json +26 -0
  401. package/packages/runtime-events/dist/index.d.ts +110 -0
  402. package/packages/runtime-events/dist/index.d.ts.map +1 -0
  403. package/packages/runtime-events/dist/index.js +25 -0
  404. package/packages/runtime-events/dist/index.js.map +1 -0
  405. package/packages/runtime-events/package.json +14 -0
  406. package/packages/server/dist/index.d.ts +25 -0
  407. package/packages/server/dist/index.d.ts.map +1 -0
  408. package/packages/server/dist/index.js +213 -0
  409. package/packages/server/dist/index.js.map +1 -0
  410. package/packages/server/dist/issue-store.d.ts +26 -0
  411. package/packages/server/dist/issue-store.d.ts.map +1 -0
  412. package/packages/server/dist/issue-store.js +88 -0
  413. package/packages/server/dist/issue-store.js.map +1 -0
  414. package/packages/server/dist/path-params.d.ts +6 -0
  415. package/packages/server/dist/path-params.d.ts.map +1 -0
  416. package/packages/server/dist/path-params.js +15 -0
  417. package/packages/server/dist/path-params.js.map +1 -0
  418. package/packages/server/dist/source.d.ts +12 -0
  419. package/packages/server/dist/source.d.ts.map +1 -0
  420. package/packages/server/dist/source.js +2 -0
  421. package/packages/server/dist/source.js.map +1 -0
  422. package/packages/server/dist/trace-routes.d.ts +21 -0
  423. package/packages/server/dist/trace-routes.d.ts.map +1 -0
  424. package/packages/server/dist/trace-routes.js +66 -0
  425. package/packages/server/dist/trace-routes.js.map +1 -0
  426. package/packages/server/dist/ws.d.ts +18 -0
  427. package/packages/server/dist/ws.d.ts.map +1 -0
  428. package/packages/server/dist/ws.js +168 -0
  429. package/packages/server/dist/ws.js.map +1 -0
  430. package/packages/server/package.json +22 -0
  431. package/packages/ssh/dist/index.d.ts +33 -0
  432. package/packages/ssh/dist/index.d.ts.map +1 -0
  433. package/packages/ssh/dist/index.js +281 -0
  434. package/packages/ssh/dist/index.js.map +1 -0
  435. package/packages/ssh/package.json +15 -0
  436. package/packages/static-worker/dist/index.d.ts +73 -0
  437. package/packages/static-worker/dist/index.d.ts.map +1 -0
  438. package/packages/static-worker/dist/index.js +150 -0
  439. package/packages/static-worker/dist/index.js.map +1 -0
  440. package/packages/static-worker/package.json +14 -0
  441. package/packages/tool-sdk/dist/filter.d.ts +70 -0
  442. package/packages/tool-sdk/dist/filter.d.ts.map +1 -0
  443. package/packages/tool-sdk/dist/filter.js +231 -0
  444. package/packages/tool-sdk/dist/filter.js.map +1 -0
  445. package/packages/tool-sdk/dist/index.d.ts +6 -0
  446. package/packages/tool-sdk/dist/index.d.ts.map +1 -0
  447. package/packages/tool-sdk/dist/index.js +4 -0
  448. package/packages/tool-sdk/dist/index.js.map +1 -0
  449. package/packages/tool-sdk/dist/provider.d.ts +51 -0
  450. package/packages/tool-sdk/dist/provider.d.ts.map +1 -0
  451. package/packages/tool-sdk/dist/provider.js +2 -0
  452. package/packages/tool-sdk/dist/provider.js.map +1 -0
  453. package/packages/tool-sdk/dist/registry.d.ts +35 -0
  454. package/packages/tool-sdk/dist/registry.d.ts.map +1 -0
  455. package/packages/tool-sdk/dist/registry.js +85 -0
  456. package/packages/tool-sdk/dist/registry.js.map +1 -0
  457. package/packages/tool-sdk/dist/result.d.ts +5 -0
  458. package/packages/tool-sdk/dist/result.d.ts.map +1 -0
  459. package/packages/tool-sdk/dist/result.js +15 -0
  460. package/packages/tool-sdk/dist/result.js.map +1 -0
  461. package/packages/tool-sdk/package.json +14 -0
  462. package/packages/traceviz-emitter/dist/index.d.ts +19 -0
  463. package/packages/traceviz-emitter/dist/index.d.ts.map +1 -0
  464. package/packages/traceviz-emitter/dist/index.js +97 -0
  465. package/packages/traceviz-emitter/dist/index.js.map +1 -0
  466. package/packages/traceviz-emitter/package.json +17 -0
  467. package/packages/traceviz-server/dist/index.d.ts +14 -0
  468. package/packages/traceviz-server/dist/index.d.ts.map +1 -0
  469. package/packages/traceviz-server/dist/index.js +10 -0
  470. package/packages/traceviz-server/dist/index.js.map +1 -0
  471. package/packages/traceviz-server/dist/models/api.d.ts +51 -0
  472. package/packages/traceviz-server/dist/models/api.d.ts.map +1 -0
  473. package/packages/traceviz-server/dist/models/api.js +5 -0
  474. package/packages/traceviz-server/dist/models/api.js.map +1 -0
  475. package/packages/traceviz-server/dist/models/display-events.d.ts +58 -0
  476. package/packages/traceviz-server/dist/models/display-events.d.ts.map +1 -0
  477. package/packages/traceviz-server/dist/models/display-events.js +6 -0
  478. package/packages/traceviz-server/dist/models/display-events.js.map +1 -0
  479. package/packages/traceviz-server/dist/parser.d.ts +14 -0
  480. package/packages/traceviz-server/dist/parser.d.ts.map +1 -0
  481. package/packages/traceviz-server/dist/parser.js +363 -0
  482. package/packages/traceviz-server/dist/parser.js.map +1 -0
  483. package/packages/traceviz-server/dist/stats.d.ts +7 -0
  484. package/packages/traceviz-server/dist/stats.d.ts.map +1 -0
  485. package/packages/traceviz-server/dist/stats.js +81 -0
  486. package/packages/traceviz-server/dist/stats.js.map +1 -0
  487. package/packages/traceviz-server/dist/watcher.d.ts +54 -0
  488. package/packages/traceviz-server/dist/watcher.d.ts.map +1 -0
  489. package/packages/traceviz-server/dist/watcher.js +368 -0
  490. package/packages/traceviz-server/dist/watcher.js.map +1 -0
  491. package/packages/traceviz-server/package.json +16 -0
  492. package/packages/tracker-sdk/dist/index.d.ts +5 -0
  493. package/packages/tracker-sdk/dist/index.d.ts.map +1 -0
  494. package/packages/tracker-sdk/dist/index.js +4 -0
  495. package/packages/tracker-sdk/dist/index.js.map +1 -0
  496. package/packages/tracker-sdk/dist/options.d.ts +20 -0
  497. package/packages/tracker-sdk/dist/options.d.ts.map +1 -0
  498. package/packages/tracker-sdk/dist/options.js +46 -0
  499. package/packages/tracker-sdk/dist/options.js.map +1 -0
  500. package/packages/tracker-sdk/dist/provider.d.ts +104 -0
  501. package/packages/tracker-sdk/dist/provider.d.ts.map +1 -0
  502. package/packages/tracker-sdk/dist/provider.js +2 -0
  503. package/packages/tracker-sdk/dist/provider.js.map +1 -0
  504. package/packages/tracker-sdk/dist/registry.d.ts +26 -0
  505. package/packages/tracker-sdk/dist/registry.d.ts.map +1 -0
  506. package/packages/tracker-sdk/dist/registry.js +52 -0
  507. package/packages/tracker-sdk/dist/registry.js.map +1 -0
  508. package/packages/tracker-sdk/dist/toolPack.d.ts +10 -0
  509. package/packages/tracker-sdk/dist/toolPack.d.ts.map +1 -0
  510. package/packages/tracker-sdk/dist/toolPack.js +185 -0
  511. package/packages/tracker-sdk/dist/toolPack.js.map +1 -0
  512. package/packages/tracker-sdk/package.json +15 -0
  513. package/packages/tui/dist/index.d.ts +35 -0
  514. package/packages/tui/dist/index.d.ts.map +1 -0
  515. package/packages/tui/dist/index.js +354 -0
  516. package/packages/tui/dist/index.js.map +1 -0
  517. package/packages/tui/package.json +18 -0
  518. package/packages/worker-host-pool/dist/index.d.ts +33 -0
  519. package/packages/worker-host-pool/dist/index.d.ts.map +1 -0
  520. package/packages/worker-host-pool/dist/index.js +311 -0
  521. package/packages/worker-host-pool/dist/index.js.map +1 -0
  522. package/packages/worker-host-pool/package.json +14 -0
  523. package/packages/worker-pool/dist/index.d.ts +6 -0
  524. package/packages/worker-pool/dist/index.d.ts.map +1 -0
  525. package/packages/worker-pool/dist/index.js +15 -0
  526. package/packages/worker-pool/dist/index.js.map +1 -0
  527. package/packages/worker-pool/dist/lease.d.ts +36 -0
  528. package/packages/worker-pool/dist/lease.d.ts.map +1 -0
  529. package/packages/worker-pool/dist/lease.js +53 -0
  530. package/packages/worker-pool/dist/lease.js.map +1 -0
  531. package/packages/worker-pool/dist/ledger.d.ts +51 -0
  532. package/packages/worker-pool/dist/ledger.d.ts.map +1 -0
  533. package/packages/worker-pool/dist/ledger.js +165 -0
  534. package/packages/worker-pool/dist/ledger.js.map +1 -0
  535. package/packages/worker-pool/dist/mutex.d.ts +10 -0
  536. package/packages/worker-pool/dist/mutex.d.ts.map +1 -0
  537. package/packages/worker-pool/dist/mutex.js +22 -0
  538. package/packages/worker-pool/dist/mutex.js.map +1 -0
  539. package/packages/worker-pool/dist/pool.d.ts +33 -0
  540. package/packages/worker-pool/dist/pool.d.ts.map +1 -0
  541. package/packages/worker-pool/dist/pool.js +1727 -0
  542. package/packages/worker-pool/dist/pool.js.map +1 -0
  543. package/packages/worker-pool/dist/reaper.d.ts +94 -0
  544. package/packages/worker-pool/dist/reaper.d.ts.map +1 -0
  545. package/packages/worker-pool/dist/reaper.js +295 -0
  546. package/packages/worker-pool/dist/reaper.js.map +1 -0
  547. package/packages/worker-pool/dist/types.d.ts +249 -0
  548. package/packages/worker-pool/dist/types.d.ts.map +1 -0
  549. package/packages/worker-pool/dist/types.js +2 -0
  550. package/packages/worker-pool/dist/types.js.map +1 -0
  551. package/packages/worker-pool/package.json +16 -0
  552. package/packages/worker-sdk/dist/conformance.d.ts +64 -0
  553. package/packages/worker-sdk/dist/conformance.d.ts.map +1 -0
  554. package/packages/worker-sdk/dist/conformance.js +109 -0
  555. package/packages/worker-sdk/dist/conformance.js.map +1 -0
  556. package/packages/worker-sdk/dist/fake.d.ts +76 -0
  557. package/packages/worker-sdk/dist/fake.d.ts.map +1 -0
  558. package/packages/worker-sdk/dist/fake.js +142 -0
  559. package/packages/worker-sdk/dist/fake.js.map +1 -0
  560. package/packages/worker-sdk/dist/index.d.ts +5 -0
  561. package/packages/worker-sdk/dist/index.d.ts.map +1 -0
  562. package/packages/worker-sdk/dist/index.js +10 -0
  563. package/packages/worker-sdk/dist/index.js.map +1 -0
  564. package/packages/worker-sdk/dist/module.d.ts +46 -0
  565. package/packages/worker-sdk/dist/module.d.ts.map +1 -0
  566. package/packages/worker-sdk/dist/module.js +59 -0
  567. package/packages/worker-sdk/dist/module.js.map +1 -0
  568. package/packages/worker-sdk/dist/registry.d.ts +24 -0
  569. package/packages/worker-sdk/dist/registry.d.ts.map +1 -0
  570. package/packages/worker-sdk/dist/registry.js +49 -0
  571. package/packages/worker-sdk/dist/registry.js.map +1 -0
  572. package/packages/worker-sdk/dist/types.d.ts +138 -0
  573. package/packages/worker-sdk/dist/types.d.ts.map +1 -0
  574. package/packages/worker-sdk/dist/types.js +21 -0
  575. package/packages/worker-sdk/dist/types.js.map +1 -0
  576. package/packages/worker-sdk/package.json +15 -0
  577. package/packages/workflow/dist/index.d.ts +33 -0
  578. package/packages/workflow/dist/index.d.ts.map +1 -0
  579. package/packages/workflow/dist/index.js +125 -0
  580. package/packages/workflow/dist/index.js.map +1 -0
  581. package/packages/workflow/package.json +19 -0
  582. package/packages/workspace/dist/index.d.ts +70 -0
  583. package/packages/workspace/dist/index.d.ts.map +1 -0
  584. package/packages/workspace/dist/index.js +1016 -0
  585. package/packages/workspace/dist/index.js.map +1 -0
  586. package/packages/workspace/package.json +17 -0
  587. package/runtime-deps/anthropic-claude-agent-sdk/LICENSE.md +1 -0
  588. package/runtime-deps/anthropic-claude-agent-sdk/README.md +65 -0
  589. package/runtime-deps/anthropic-claude-agent-sdk/agentSdkTypes.d.ts +1 -0
  590. package/runtime-deps/anthropic-claude-agent-sdk/assistant.d.ts +135 -0
  591. package/runtime-deps/anthropic-claude-agent-sdk/assistant.mjs +190 -0
  592. package/runtime-deps/anthropic-claude-agent-sdk/bridge.d.ts +231 -0
  593. package/runtime-deps/anthropic-claude-agent-sdk/bridge.mjs +168 -0
  594. package/runtime-deps/anthropic-claude-agent-sdk/browser-sdk.d.ts +53 -0
  595. package/runtime-deps/anthropic-claude-agent-sdk/browser-sdk.js +93 -0
  596. package/runtime-deps/anthropic-claude-agent-sdk/extractFromBunfs.d.ts +1 -0
  597. package/runtime-deps/anthropic-claude-agent-sdk/extractFromBunfs.js +156 -0
  598. package/runtime-deps/anthropic-claude-agent-sdk/manifest.json +47 -0
  599. package/runtime-deps/anthropic-claude-agent-sdk/manifest.zst.json +55 -0
  600. package/runtime-deps/anthropic-claude-agent-sdk/node_modules/.bin/anthropic-ai-sdk +21 -0
  601. package/runtime-deps/anthropic-claude-agent-sdk/package.json +81 -0
  602. package/runtime-deps/anthropic-claude-agent-sdk/sdk-tools.d.ts +3170 -0
  603. package/runtime-deps/anthropic-claude-agent-sdk/sdk.d.ts +6000 -0
  604. package/runtime-deps/anthropic-claude-agent-sdk/sdk.mjs +119 -0
  605. package/runtime-deps/openai-codex/README.md +60 -0
  606. package/runtime-deps/openai-codex/bin/codex.js +229 -0
  607. package/runtime-deps/openai-codex/bin/rg +79 -0
  608. package/runtime-deps/openai-codex/package.json +22 -0
  609. package/vendor/claude-agent-acp/dist/acp-agent.d.ts +239 -0
  610. package/vendor/claude-agent-acp/dist/acp-agent.d.ts.map +1 -0
  611. package/vendor/claude-agent-acp/dist/acp-agent.js +2693 -0
  612. package/vendor/claude-agent-acp/dist/bundle.js +41230 -0
  613. package/vendor/claude-agent-acp/dist/index.d.ts +3 -0
  614. package/vendor/claude-agent-acp/dist/index.d.ts.map +1 -0
  615. package/vendor/claude-agent-acp/dist/index.js +67 -0
  616. package/vendor/claude-agent-acp/dist/lib.d.ts +6 -0
  617. package/vendor/claude-agent-acp/dist/lib.d.ts.map +1 -0
  618. package/vendor/claude-agent-acp/dist/lib.js +5 -0
  619. package/vendor/claude-agent-acp/dist/settings.d.ts +68 -0
  620. package/vendor/claude-agent-acp/dist/settings.d.ts.map +1 -0
  621. package/vendor/claude-agent-acp/dist/settings.js +182 -0
  622. package/vendor/claude-agent-acp/dist/tools.d.ts +103 -0
  623. package/vendor/claude-agent-acp/dist/tools.d.ts.map +1 -0
  624. package/vendor/claude-agent-acp/dist/tools.js +713 -0
  625. package/vendor/claude-agent-acp/dist/utils.d.ts +16 -0
  626. package/vendor/claude-agent-acp/dist/utils.d.ts.map +1 -0
  627. package/vendor/claude-agent-acp/dist/utils.js +83 -0
  628. package/vendor/claude-agent-acp/package.json +23 -0
  629. package/vendor/codex-acp/dist/index.js +21280 -0
  630. package/vendor/codex-acp/package.json +17 -0
@@ -0,0 +1,3170 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ /**
9
+ * JSON Schema definitions for Claude CLI tool inputs
10
+ */
11
+ export type ToolInputSchemas =
12
+ | AgentInput
13
+ | BashInput
14
+ | TaskOutputInput
15
+ | ExitPlanModeInput
16
+ | FileEditInput
17
+ | FileReadInput
18
+ | FileWriteInput
19
+ | GlobInput
20
+ | GrepInput
21
+ | TaskStopInput
22
+ | ListMcpResourcesInput
23
+ | McpInput
24
+ | NotebookEditInput
25
+ | ReadMcpResourceInput
26
+ | TodoWriteInput
27
+ | WebFetchInput
28
+ | WebSearchInput
29
+ | AskUserQuestionInput
30
+ | EnterPlanModeInput
31
+ | TaskCreateInput
32
+ | TaskGetInput
33
+ | TaskUpdateInput
34
+ | TaskListInput
35
+ | REPLInput
36
+ | WorkflowInput
37
+ | CronCreateInput
38
+ | CronDeleteInput
39
+ | CronListInput
40
+ | ScheduleWakeupInput
41
+ | RemoteTriggerInput
42
+ | MonitorInput
43
+ | PushNotificationInput
44
+ | EnterWorktreeInput
45
+ | ExitWorktreeInput
46
+ | ToolOutputSchemas;
47
+ export type ToolOutputSchemas =
48
+ | AgentOutput
49
+ | BashOutput
50
+ | ExitPlanModeOutput
51
+ | FileEditOutput
52
+ | FileReadOutput
53
+ | FileWriteOutput
54
+ | GlobOutput
55
+ | GrepOutput
56
+ | TaskStopOutput
57
+ | ListMcpResourcesOutput
58
+ | McpOutput
59
+ | NotebookEditOutput
60
+ | ReadMcpResourceOutput
61
+ | TodoWriteOutput
62
+ | WebFetchOutput
63
+ | WebSearchOutput
64
+ | AskUserQuestionOutput
65
+ | EnterWorktreeOutput
66
+ | ExitWorktreeOutput
67
+ | TaskCreateOutput
68
+ | TaskGetOutput
69
+ | TaskUpdateOutput
70
+ | TaskListOutput
71
+ | RemoteTriggerOutput
72
+ | ScheduleWakeupOutput
73
+ | MonitorOutput
74
+ | EnterPlanModeOutput
75
+ | REPLOutput
76
+ | WorkflowOutput
77
+ | CronCreateOutput
78
+ | CronDeleteOutput
79
+ | CronListOutput
80
+ | PushNotificationOutput;
81
+ export type AgentOutput =
82
+ | {
83
+ agentId: string;
84
+ agentType?: string;
85
+ content: {
86
+ type: "text";
87
+ text: string;
88
+ }[];
89
+ totalToolUseCount: number;
90
+ totalDurationMs: number;
91
+ totalTokens: number;
92
+ usage: {
93
+ input_tokens: number;
94
+ output_tokens: number;
95
+ cache_creation_input_tokens: number | null;
96
+ cache_read_input_tokens: number | null;
97
+ server_tool_use: {
98
+ web_search_requests: number;
99
+ web_fetch_requests: number;
100
+ } | null;
101
+ service_tier: ("standard" | "priority" | "batch") | null;
102
+ cache_creation: {
103
+ ephemeral_1h_input_tokens: number;
104
+ ephemeral_5m_input_tokens: number;
105
+ } | null;
106
+ };
107
+ toolStats?: {
108
+ readCount: number;
109
+ searchCount: number;
110
+ bashCount: number;
111
+ editFileCount: number;
112
+ linesAdded: number;
113
+ linesRemoved: number;
114
+ otherToolCount: number;
115
+ };
116
+ status: "completed";
117
+ prompt: string;
118
+ }
119
+ | {
120
+ status: "async_launched";
121
+ /**
122
+ * The ID of the async agent
123
+ */
124
+ agentId: string;
125
+ /**
126
+ * The description of the task
127
+ */
128
+ description: string;
129
+ /**
130
+ * The prompt for the agent
131
+ */
132
+ prompt: string;
133
+ /**
134
+ * Path to the output file for checking agent progress
135
+ */
136
+ outputFile: string;
137
+ /**
138
+ * Whether the calling agent has Read/Bash tools to check progress
139
+ */
140
+ canReadOutputFile?: boolean;
141
+ };
142
+ export type FileReadOutput =
143
+ | {
144
+ type: "text";
145
+ file: {
146
+ /**
147
+ * The path to the file that was read
148
+ */
149
+ filePath: string;
150
+ /**
151
+ * The content of the file
152
+ */
153
+ content: string;
154
+ /**
155
+ * Number of lines in the returned content
156
+ */
157
+ numLines: number;
158
+ /**
159
+ * The starting line number
160
+ */
161
+ startLine: number;
162
+ /**
163
+ * Total number of lines in the file
164
+ */
165
+ totalLines: number;
166
+ /**
167
+ * True when a whole-file read was auto-paginated because it exceeded the token cap (the content is a partial first page). A programmatic signal for internal consumers; survives output reconstruction (unlike the render-time banner).
168
+ */
169
+ truncatedByTokenCap?: boolean;
170
+ };
171
+ }
172
+ | {
173
+ type: "image";
174
+ file: {
175
+ /**
176
+ * Base64-encoded image data
177
+ */
178
+ base64: string;
179
+ /**
180
+ * The MIME type of the image
181
+ */
182
+ type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
183
+ /**
184
+ * Original file size in bytes
185
+ */
186
+ originalSize: number;
187
+ /**
188
+ * Image dimension info for coordinate mapping
189
+ */
190
+ dimensions?: {
191
+ /**
192
+ * Original image width in pixels
193
+ */
194
+ originalWidth?: number;
195
+ /**
196
+ * Original image height in pixels
197
+ */
198
+ originalHeight?: number;
199
+ /**
200
+ * Displayed image width in pixels (after resizing)
201
+ */
202
+ displayWidth?: number;
203
+ /**
204
+ * Displayed image height in pixels (after resizing)
205
+ */
206
+ displayHeight?: number;
207
+ };
208
+ };
209
+ }
210
+ | {
211
+ type: "notebook";
212
+ file: {
213
+ /**
214
+ * The path to the notebook file
215
+ */
216
+ filePath: string;
217
+ /**
218
+ * Array of notebook cells
219
+ */
220
+ cells: unknown[];
221
+ };
222
+ }
223
+ | {
224
+ type: "pdf";
225
+ file: {
226
+ /**
227
+ * The path to the PDF file
228
+ */
229
+ filePath: string;
230
+ /**
231
+ * Base64-encoded PDF data
232
+ */
233
+ base64: string;
234
+ /**
235
+ * Original file size in bytes
236
+ */
237
+ originalSize: number;
238
+ };
239
+ }
240
+ | {
241
+ type: "parts";
242
+ file: {
243
+ /**
244
+ * The path to the PDF file
245
+ */
246
+ filePath: string;
247
+ /**
248
+ * Original file size in bytes
249
+ */
250
+ originalSize: number;
251
+ /**
252
+ * Number of pages extracted
253
+ */
254
+ count: number;
255
+ /**
256
+ * Directory containing extracted page images
257
+ */
258
+ outputDir: string;
259
+ };
260
+ }
261
+ | {
262
+ type: "file_unchanged";
263
+ file: {
264
+ /**
265
+ * The path to the file
266
+ */
267
+ filePath: string;
268
+ };
269
+ };
270
+ export type ListMcpResourcesOutput = {
271
+ /**
272
+ * Resource URI
273
+ */
274
+ uri: string;
275
+ /**
276
+ * Resource name
277
+ */
278
+ name: string;
279
+ /**
280
+ * MIME type of the resource
281
+ */
282
+ mimeType?: string;
283
+ /**
284
+ * Resource description
285
+ */
286
+ description?: string;
287
+ /**
288
+ * Server that provides this resource
289
+ */
290
+ server: string;
291
+ }[];
292
+ /**
293
+ * MCP tool execution result
294
+ */
295
+ export type McpOutput =
296
+ | string
297
+ | {
298
+ type: string;
299
+ [k: string]: unknown;
300
+ }[]
301
+ | {
302
+ [k: string]: unknown;
303
+ };
304
+
305
+ export interface AgentInput {
306
+ /**
307
+ * A short (3-5 word) description of the task
308
+ */
309
+ description: string;
310
+ /**
311
+ * The task for the agent to perform
312
+ */
313
+ prompt: string;
314
+ /**
315
+ * The type of specialized agent to use for this task
316
+ */
317
+ subagent_type?: string;
318
+ /**
319
+ * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
320
+ */
321
+ model?: "sonnet" | "opus" | "haiku";
322
+ /**
323
+ * Set to true to run this agent in the background. You will be notified when it completes.
324
+ */
325
+ run_in_background?: boolean;
326
+ /**
327
+ * Name for the spawned agent. Makes it addressable via SendMessage({to: name}) while running.
328
+ */
329
+ name?: string;
330
+ /**
331
+ * Team name for spawning. Uses current team context if omitted.
332
+ */
333
+ team_name?: string;
334
+ /**
335
+ * Permission mode for spawned teammate (e.g., "plan" to require plan approval).
336
+ */
337
+ mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | "bubble";
338
+ /**
339
+ * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.
340
+ */
341
+ isolation?: "worktree";
342
+ }
343
+ export interface BashInput {
344
+ /**
345
+ * The command to execute
346
+ */
347
+ command: string;
348
+ /**
349
+ * Optional timeout in milliseconds (max 600000)
350
+ */
351
+ timeout?: number;
352
+ /**
353
+ * Clear, concise description of what this command does in active voice. Never use words like "complex" or "risk" in the description - just describe what it does.
354
+ *
355
+ * For simple commands (git, npm, standard CLI tools), keep it brief (5-10 words):
356
+ * - ls → "List files in current directory"
357
+ * - git status → "Show working tree status"
358
+ * - npm install → "Install package dependencies"
359
+ *
360
+ * For commands that are harder to parse at a glance (piped commands, obscure flags, etc.), add enough context to clarify what it does:
361
+ * - find . -name "*.tmp" -exec rm {} \; → "Find and delete all .tmp files recursively"
362
+ * - git reset --hard origin/main → "Discard all local changes and match remote main"
363
+ * - curl -s url | jq '.data[]' → "Fetch JSON from URL and extract data array elements"
364
+ */
365
+ description?: string;
366
+ /**
367
+ * Set to true to run this command in the background.
368
+ */
369
+ run_in_background?: boolean;
370
+ /**
371
+ * Set this to true to dangerously override sandbox mode and run commands without sandboxing.
372
+ */
373
+ dangerouslyDisableSandbox?: boolean;
374
+ }
375
+ export interface TaskOutputInput {
376
+ /**
377
+ * The task ID to get output from
378
+ */
379
+ task_id: string;
380
+ /**
381
+ * Whether to wait for completion
382
+ */
383
+ block: boolean;
384
+ /**
385
+ * Max wait time in ms
386
+ */
387
+ timeout: number;
388
+ }
389
+ export interface ExitPlanModeInput {
390
+ /**
391
+ * Prompt-based permissions needed to implement the plan. These describe categories of actions rather than specific commands.
392
+ */
393
+ allowedPrompts?: {
394
+ /**
395
+ * The tool this prompt applies to
396
+ */
397
+ tool: "Bash";
398
+ /**
399
+ * Semantic description of the action, e.g. "run tests", "install dependencies"
400
+ */
401
+ prompt: string;
402
+ }[];
403
+ [k: string]: unknown;
404
+ }
405
+ export interface FileEditInput {
406
+ /**
407
+ * The absolute path to the file to modify
408
+ */
409
+ file_path: string;
410
+ /**
411
+ * The text to replace
412
+ */
413
+ old_string: string;
414
+ /**
415
+ * The text to replace it with (must be different from old_string)
416
+ */
417
+ new_string: string;
418
+ /**
419
+ * Replace all occurrences of old_string (default false)
420
+ */
421
+ replace_all?: boolean;
422
+ }
423
+ export interface FileReadInput {
424
+ /**
425
+ * The absolute path to the file to read
426
+ */
427
+ file_path: string;
428
+ /**
429
+ * The line number to start reading from. Only provide if the file is too large to read at once
430
+ */
431
+ offset?: number;
432
+ /**
433
+ * The number of lines to read. Only provide if the file is too large to read at once.
434
+ */
435
+ limit?: number;
436
+ /**
437
+ * Page range for PDF files (e.g., "1-5", "3", "10-20"). Only applicable to PDF files. Maximum 20 pages per request.
438
+ */
439
+ pages?: string;
440
+ }
441
+ export interface FileWriteInput {
442
+ /**
443
+ * The absolute path to the file to write (must be absolute, not relative)
444
+ */
445
+ file_path: string;
446
+ /**
447
+ * The content to write to the file
448
+ */
449
+ content: string;
450
+ }
451
+ export interface GlobInput {
452
+ /**
453
+ * The glob pattern to match files against
454
+ */
455
+ pattern: string;
456
+ /**
457
+ * 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.
458
+ */
459
+ path?: string;
460
+ }
461
+ export interface GrepInput {
462
+ /**
463
+ * The regular expression pattern to search for in file contents
464
+ */
465
+ pattern: string;
466
+ /**
467
+ * File or directory to search in (rg PATH). Defaults to current working directory.
468
+ */
469
+ path?: string;
470
+ /**
471
+ * Glob pattern to filter files (e.g. "*.js", "*.{ts,tsx}") - maps to rg --glob
472
+ */
473
+ glob?: string;
474
+ /**
475
+ * Output mode: "content" shows matching lines (supports -A/-B/-C context, -n line numbers, head_limit), "files_with_matches" shows file paths (supports head_limit), "count" shows match counts (supports head_limit). Defaults to "files_with_matches".
476
+ */
477
+ output_mode?: "content" | "files_with_matches" | "count";
478
+ /**
479
+ * Number of lines to show before each match (rg -B). Requires output_mode: "content", ignored otherwise.
480
+ */
481
+ "-B"?: number;
482
+ /**
483
+ * Number of lines to show after each match (rg -A). Requires output_mode: "content", ignored otherwise.
484
+ */
485
+ "-A"?: number;
486
+ /**
487
+ * Alias for context.
488
+ */
489
+ "-C"?: number;
490
+ /**
491
+ * Number of lines to show before and after each match (rg -C). Requires output_mode: "content", ignored otherwise.
492
+ */
493
+ context?: number;
494
+ /**
495
+ * Show line numbers in output (rg -n). Requires output_mode: "content", ignored otherwise. Defaults to true.
496
+ */
497
+ "-n"?: boolean;
498
+ /**
499
+ * Case insensitive search (rg -i)
500
+ */
501
+ "-i"?: boolean;
502
+ /**
503
+ * Print only the matched (non-empty) parts of each matching line, one match per output line (rg -o / --only-matching). Requires output_mode: "content", ignored otherwise. Defaults to false.
504
+ */
505
+ "-o"?: boolean;
506
+ /**
507
+ * File type to search (rg --type). Common types: js, py, rust, go, java, etc. More efficient than include for standard file types.
508
+ */
509
+ type?: string;
510
+ /**
511
+ * Limit output to first N lines/entries, equivalent to "| head -N". Works across all output modes: content (limits output lines), files_with_matches (limits file paths), count (limits count entries). Defaults to 250 when unspecified. Pass 0 for unlimited (use sparingly — large result sets waste context).
512
+ */
513
+ head_limit?: number;
514
+ /**
515
+ * Skip first N lines/entries before applying head_limit, equivalent to "| tail -n +N | head -N". Works across all output modes. Defaults to 0.
516
+ */
517
+ offset?: number;
518
+ /**
519
+ * Enable multiline mode where . matches newlines and patterns can span lines (rg -U --multiline-dotall). Default: false.
520
+ */
521
+ multiline?: boolean;
522
+ }
523
+ export interface TaskStopInput {
524
+ /**
525
+ * The ID of the background task to stop
526
+ */
527
+ task_id?: string;
528
+ /**
529
+ * Deprecated: use task_id instead
530
+ */
531
+ shell_id?: string;
532
+ }
533
+ export interface ListMcpResourcesInput {
534
+ /**
535
+ * Optional server name to filter resources by
536
+ */
537
+ server?: string;
538
+ }
539
+ export interface McpInput {
540
+ [k: string]: unknown;
541
+ }
542
+ export interface NotebookEditInput {
543
+ /**
544
+ * The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)
545
+ */
546
+ notebook_path: string;
547
+ /**
548
+ * The ID of the cell to edit. When inserting a new cell, the new cell will be inserted after the cell with this ID, or at the beginning if not specified.
549
+ */
550
+ cell_id?: string;
551
+ /**
552
+ * The new source for the cell
553
+ */
554
+ new_source: string;
555
+ /**
556
+ * The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.
557
+ */
558
+ cell_type?: "code" | "markdown";
559
+ /**
560
+ * The type of edit to make (replace, insert, delete). Defaults to replace.
561
+ */
562
+ edit_mode?: "replace" | "insert" | "delete";
563
+ }
564
+ export interface ReadMcpResourceInput {
565
+ /**
566
+ * The MCP server name
567
+ */
568
+ server: string;
569
+ /**
570
+ * The resource URI to read
571
+ */
572
+ uri: string;
573
+ }
574
+ export interface TodoWriteInput {
575
+ /**
576
+ * The updated todo list
577
+ */
578
+ todos: {
579
+ content: string;
580
+ status: "pending" | "in_progress" | "completed";
581
+ activeForm: string;
582
+ }[];
583
+ }
584
+ export interface WebFetchInput {
585
+ /**
586
+ * The URL to fetch content from
587
+ */
588
+ url: string;
589
+ /**
590
+ * The prompt to run on the fetched content
591
+ */
592
+ prompt: string;
593
+ }
594
+ export interface WebSearchInput {
595
+ /**
596
+ * The search query to use
597
+ */
598
+ query: string;
599
+ /**
600
+ * Only include search results from these domains
601
+ */
602
+ allowed_domains?: string[];
603
+ /**
604
+ * Never include search results from these domains
605
+ */
606
+ blocked_domains?: string[];
607
+ }
608
+ export interface AskUserQuestionInput {
609
+ /**
610
+ * Questions to ask the user (1-4 questions)
611
+ *
612
+ * @minItems 1
613
+ * @maxItems 4
614
+ */
615
+ questions:
616
+ | [
617
+ {
618
+ /**
619
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
620
+ */
621
+ question: string;
622
+ /**
623
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
624
+ */
625
+ header: string;
626
+ /**
627
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
628
+ *
629
+ * @minItems 2
630
+ * @maxItems 4
631
+ */
632
+ options:
633
+ | [
634
+ {
635
+ /**
636
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
637
+ */
638
+ label: string;
639
+ /**
640
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
641
+ */
642
+ description: string;
643
+ /**
644
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
645
+ */
646
+ preview?: string;
647
+ },
648
+ {
649
+ /**
650
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
651
+ */
652
+ label: string;
653
+ /**
654
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
655
+ */
656
+ description: string;
657
+ /**
658
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
659
+ */
660
+ preview?: string;
661
+ }
662
+ ]
663
+ | [
664
+ {
665
+ /**
666
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
667
+ */
668
+ label: string;
669
+ /**
670
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
671
+ */
672
+ description: string;
673
+ /**
674
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
675
+ */
676
+ preview?: string;
677
+ },
678
+ {
679
+ /**
680
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
681
+ */
682
+ label: string;
683
+ /**
684
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
685
+ */
686
+ description: string;
687
+ /**
688
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
689
+ */
690
+ preview?: string;
691
+ },
692
+ {
693
+ /**
694
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
695
+ */
696
+ label: string;
697
+ /**
698
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
699
+ */
700
+ description: string;
701
+ /**
702
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
703
+ */
704
+ preview?: string;
705
+ }
706
+ ]
707
+ | [
708
+ {
709
+ /**
710
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
711
+ */
712
+ label: string;
713
+ /**
714
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
715
+ */
716
+ description: string;
717
+ /**
718
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
719
+ */
720
+ preview?: string;
721
+ },
722
+ {
723
+ /**
724
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
725
+ */
726
+ label: string;
727
+ /**
728
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
729
+ */
730
+ description: string;
731
+ /**
732
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
733
+ */
734
+ preview?: string;
735
+ },
736
+ {
737
+ /**
738
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
739
+ */
740
+ label: string;
741
+ /**
742
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
743
+ */
744
+ description: string;
745
+ /**
746
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
747
+ */
748
+ preview?: string;
749
+ },
750
+ {
751
+ /**
752
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
753
+ */
754
+ label: string;
755
+ /**
756
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
757
+ */
758
+ description: string;
759
+ /**
760
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
761
+ */
762
+ preview?: string;
763
+ }
764
+ ];
765
+ /**
766
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
767
+ */
768
+ multiSelect: boolean;
769
+ }
770
+ ]
771
+ | [
772
+ {
773
+ /**
774
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
775
+ */
776
+ question: string;
777
+ /**
778
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
779
+ */
780
+ header: string;
781
+ /**
782
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
783
+ *
784
+ * @minItems 2
785
+ * @maxItems 4
786
+ */
787
+ options:
788
+ | [
789
+ {
790
+ /**
791
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
792
+ */
793
+ label: string;
794
+ /**
795
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
796
+ */
797
+ description: string;
798
+ /**
799
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
800
+ */
801
+ preview?: string;
802
+ },
803
+ {
804
+ /**
805
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
806
+ */
807
+ label: string;
808
+ /**
809
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
810
+ */
811
+ description: string;
812
+ /**
813
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
814
+ */
815
+ preview?: string;
816
+ }
817
+ ]
818
+ | [
819
+ {
820
+ /**
821
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
822
+ */
823
+ label: string;
824
+ /**
825
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
826
+ */
827
+ description: string;
828
+ /**
829
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
830
+ */
831
+ preview?: string;
832
+ },
833
+ {
834
+ /**
835
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
836
+ */
837
+ label: string;
838
+ /**
839
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
840
+ */
841
+ description: string;
842
+ /**
843
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
844
+ */
845
+ preview?: string;
846
+ },
847
+ {
848
+ /**
849
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
850
+ */
851
+ label: string;
852
+ /**
853
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
854
+ */
855
+ description: string;
856
+ /**
857
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
858
+ */
859
+ preview?: string;
860
+ }
861
+ ]
862
+ | [
863
+ {
864
+ /**
865
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
866
+ */
867
+ label: string;
868
+ /**
869
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
870
+ */
871
+ description: string;
872
+ /**
873
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
874
+ */
875
+ preview?: string;
876
+ },
877
+ {
878
+ /**
879
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
880
+ */
881
+ label: string;
882
+ /**
883
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
884
+ */
885
+ description: string;
886
+ /**
887
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
888
+ */
889
+ preview?: string;
890
+ },
891
+ {
892
+ /**
893
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
894
+ */
895
+ label: string;
896
+ /**
897
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
898
+ */
899
+ description: string;
900
+ /**
901
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
902
+ */
903
+ preview?: string;
904
+ },
905
+ {
906
+ /**
907
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
908
+ */
909
+ label: string;
910
+ /**
911
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
912
+ */
913
+ description: string;
914
+ /**
915
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
916
+ */
917
+ preview?: string;
918
+ }
919
+ ];
920
+ /**
921
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
922
+ */
923
+ multiSelect: boolean;
924
+ },
925
+ {
926
+ /**
927
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
928
+ */
929
+ question: string;
930
+ /**
931
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
932
+ */
933
+ header: string;
934
+ /**
935
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
936
+ *
937
+ * @minItems 2
938
+ * @maxItems 4
939
+ */
940
+ options:
941
+ | [
942
+ {
943
+ /**
944
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
945
+ */
946
+ label: string;
947
+ /**
948
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
949
+ */
950
+ description: string;
951
+ /**
952
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
953
+ */
954
+ preview?: string;
955
+ },
956
+ {
957
+ /**
958
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
959
+ */
960
+ label: string;
961
+ /**
962
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
963
+ */
964
+ description: string;
965
+ /**
966
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
967
+ */
968
+ preview?: string;
969
+ }
970
+ ]
971
+ | [
972
+ {
973
+ /**
974
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
975
+ */
976
+ label: string;
977
+ /**
978
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
979
+ */
980
+ description: string;
981
+ /**
982
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
983
+ */
984
+ preview?: string;
985
+ },
986
+ {
987
+ /**
988
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
989
+ */
990
+ label: string;
991
+ /**
992
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
993
+ */
994
+ description: string;
995
+ /**
996
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
997
+ */
998
+ preview?: string;
999
+ },
1000
+ {
1001
+ /**
1002
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1003
+ */
1004
+ label: string;
1005
+ /**
1006
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1007
+ */
1008
+ description: string;
1009
+ /**
1010
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1011
+ */
1012
+ preview?: string;
1013
+ }
1014
+ ]
1015
+ | [
1016
+ {
1017
+ /**
1018
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1019
+ */
1020
+ label: string;
1021
+ /**
1022
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1023
+ */
1024
+ description: string;
1025
+ /**
1026
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1027
+ */
1028
+ preview?: string;
1029
+ },
1030
+ {
1031
+ /**
1032
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1033
+ */
1034
+ label: string;
1035
+ /**
1036
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1037
+ */
1038
+ description: string;
1039
+ /**
1040
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1041
+ */
1042
+ preview?: string;
1043
+ },
1044
+ {
1045
+ /**
1046
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1047
+ */
1048
+ label: string;
1049
+ /**
1050
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1051
+ */
1052
+ description: string;
1053
+ /**
1054
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1055
+ */
1056
+ preview?: string;
1057
+ },
1058
+ {
1059
+ /**
1060
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1061
+ */
1062
+ label: string;
1063
+ /**
1064
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1065
+ */
1066
+ description: string;
1067
+ /**
1068
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1069
+ */
1070
+ preview?: string;
1071
+ }
1072
+ ];
1073
+ /**
1074
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1075
+ */
1076
+ multiSelect: boolean;
1077
+ }
1078
+ ]
1079
+ | [
1080
+ {
1081
+ /**
1082
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1083
+ */
1084
+ question: string;
1085
+ /**
1086
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1087
+ */
1088
+ header: string;
1089
+ /**
1090
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1091
+ *
1092
+ * @minItems 2
1093
+ * @maxItems 4
1094
+ */
1095
+ options:
1096
+ | [
1097
+ {
1098
+ /**
1099
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1100
+ */
1101
+ label: string;
1102
+ /**
1103
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1104
+ */
1105
+ description: string;
1106
+ /**
1107
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1108
+ */
1109
+ preview?: string;
1110
+ },
1111
+ {
1112
+ /**
1113
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1114
+ */
1115
+ label: string;
1116
+ /**
1117
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1118
+ */
1119
+ description: string;
1120
+ /**
1121
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1122
+ */
1123
+ preview?: string;
1124
+ }
1125
+ ]
1126
+ | [
1127
+ {
1128
+ /**
1129
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1130
+ */
1131
+ label: string;
1132
+ /**
1133
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1134
+ */
1135
+ description: string;
1136
+ /**
1137
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1138
+ */
1139
+ preview?: string;
1140
+ },
1141
+ {
1142
+ /**
1143
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1144
+ */
1145
+ label: string;
1146
+ /**
1147
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1148
+ */
1149
+ description: string;
1150
+ /**
1151
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1152
+ */
1153
+ preview?: string;
1154
+ },
1155
+ {
1156
+ /**
1157
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1158
+ */
1159
+ label: string;
1160
+ /**
1161
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1162
+ */
1163
+ description: string;
1164
+ /**
1165
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1166
+ */
1167
+ preview?: string;
1168
+ }
1169
+ ]
1170
+ | [
1171
+ {
1172
+ /**
1173
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1174
+ */
1175
+ label: string;
1176
+ /**
1177
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1178
+ */
1179
+ description: string;
1180
+ /**
1181
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1182
+ */
1183
+ preview?: string;
1184
+ },
1185
+ {
1186
+ /**
1187
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1188
+ */
1189
+ label: string;
1190
+ /**
1191
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1192
+ */
1193
+ description: string;
1194
+ /**
1195
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1196
+ */
1197
+ preview?: string;
1198
+ },
1199
+ {
1200
+ /**
1201
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1202
+ */
1203
+ label: string;
1204
+ /**
1205
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1206
+ */
1207
+ description: string;
1208
+ /**
1209
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1210
+ */
1211
+ preview?: string;
1212
+ },
1213
+ {
1214
+ /**
1215
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1216
+ */
1217
+ label: string;
1218
+ /**
1219
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1220
+ */
1221
+ description: string;
1222
+ /**
1223
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1224
+ */
1225
+ preview?: string;
1226
+ }
1227
+ ];
1228
+ /**
1229
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1230
+ */
1231
+ multiSelect: boolean;
1232
+ },
1233
+ {
1234
+ /**
1235
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1236
+ */
1237
+ question: string;
1238
+ /**
1239
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1240
+ */
1241
+ header: string;
1242
+ /**
1243
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1244
+ *
1245
+ * @minItems 2
1246
+ * @maxItems 4
1247
+ */
1248
+ options:
1249
+ | [
1250
+ {
1251
+ /**
1252
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1253
+ */
1254
+ label: string;
1255
+ /**
1256
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1257
+ */
1258
+ description: string;
1259
+ /**
1260
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1261
+ */
1262
+ preview?: string;
1263
+ },
1264
+ {
1265
+ /**
1266
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1267
+ */
1268
+ label: string;
1269
+ /**
1270
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1271
+ */
1272
+ description: string;
1273
+ /**
1274
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1275
+ */
1276
+ preview?: string;
1277
+ }
1278
+ ]
1279
+ | [
1280
+ {
1281
+ /**
1282
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1283
+ */
1284
+ label: string;
1285
+ /**
1286
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1287
+ */
1288
+ description: string;
1289
+ /**
1290
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1291
+ */
1292
+ preview?: string;
1293
+ },
1294
+ {
1295
+ /**
1296
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1297
+ */
1298
+ label: string;
1299
+ /**
1300
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1301
+ */
1302
+ description: string;
1303
+ /**
1304
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1305
+ */
1306
+ preview?: string;
1307
+ },
1308
+ {
1309
+ /**
1310
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1311
+ */
1312
+ label: string;
1313
+ /**
1314
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1315
+ */
1316
+ description: string;
1317
+ /**
1318
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1319
+ */
1320
+ preview?: string;
1321
+ }
1322
+ ]
1323
+ | [
1324
+ {
1325
+ /**
1326
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1327
+ */
1328
+ label: string;
1329
+ /**
1330
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1331
+ */
1332
+ description: string;
1333
+ /**
1334
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1335
+ */
1336
+ preview?: string;
1337
+ },
1338
+ {
1339
+ /**
1340
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1341
+ */
1342
+ label: string;
1343
+ /**
1344
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1345
+ */
1346
+ description: string;
1347
+ /**
1348
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1349
+ */
1350
+ preview?: string;
1351
+ },
1352
+ {
1353
+ /**
1354
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1355
+ */
1356
+ label: string;
1357
+ /**
1358
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1359
+ */
1360
+ description: string;
1361
+ /**
1362
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1363
+ */
1364
+ preview?: string;
1365
+ },
1366
+ {
1367
+ /**
1368
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1369
+ */
1370
+ label: string;
1371
+ /**
1372
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1373
+ */
1374
+ description: string;
1375
+ /**
1376
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1377
+ */
1378
+ preview?: string;
1379
+ }
1380
+ ];
1381
+ /**
1382
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1383
+ */
1384
+ multiSelect: boolean;
1385
+ },
1386
+ {
1387
+ /**
1388
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1389
+ */
1390
+ question: string;
1391
+ /**
1392
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1393
+ */
1394
+ header: string;
1395
+ /**
1396
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1397
+ *
1398
+ * @minItems 2
1399
+ * @maxItems 4
1400
+ */
1401
+ options:
1402
+ | [
1403
+ {
1404
+ /**
1405
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1406
+ */
1407
+ label: string;
1408
+ /**
1409
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1410
+ */
1411
+ description: string;
1412
+ /**
1413
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1414
+ */
1415
+ preview?: string;
1416
+ },
1417
+ {
1418
+ /**
1419
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1420
+ */
1421
+ label: string;
1422
+ /**
1423
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1424
+ */
1425
+ description: string;
1426
+ /**
1427
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1428
+ */
1429
+ preview?: string;
1430
+ }
1431
+ ]
1432
+ | [
1433
+ {
1434
+ /**
1435
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1436
+ */
1437
+ label: string;
1438
+ /**
1439
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1440
+ */
1441
+ description: string;
1442
+ /**
1443
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1444
+ */
1445
+ preview?: string;
1446
+ },
1447
+ {
1448
+ /**
1449
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1450
+ */
1451
+ label: string;
1452
+ /**
1453
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1454
+ */
1455
+ description: string;
1456
+ /**
1457
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1458
+ */
1459
+ preview?: string;
1460
+ },
1461
+ {
1462
+ /**
1463
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1464
+ */
1465
+ label: string;
1466
+ /**
1467
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1468
+ */
1469
+ description: string;
1470
+ /**
1471
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1472
+ */
1473
+ preview?: string;
1474
+ }
1475
+ ]
1476
+ | [
1477
+ {
1478
+ /**
1479
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1480
+ */
1481
+ label: string;
1482
+ /**
1483
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1484
+ */
1485
+ description: string;
1486
+ /**
1487
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1488
+ */
1489
+ preview?: string;
1490
+ },
1491
+ {
1492
+ /**
1493
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1494
+ */
1495
+ label: string;
1496
+ /**
1497
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1498
+ */
1499
+ description: string;
1500
+ /**
1501
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1502
+ */
1503
+ preview?: string;
1504
+ },
1505
+ {
1506
+ /**
1507
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1508
+ */
1509
+ label: string;
1510
+ /**
1511
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1512
+ */
1513
+ description: string;
1514
+ /**
1515
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1516
+ */
1517
+ preview?: string;
1518
+ },
1519
+ {
1520
+ /**
1521
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1522
+ */
1523
+ label: string;
1524
+ /**
1525
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1526
+ */
1527
+ description: string;
1528
+ /**
1529
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1530
+ */
1531
+ preview?: string;
1532
+ }
1533
+ ];
1534
+ /**
1535
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1536
+ */
1537
+ multiSelect: boolean;
1538
+ }
1539
+ ]
1540
+ | [
1541
+ {
1542
+ /**
1543
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1544
+ */
1545
+ question: string;
1546
+ /**
1547
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1548
+ */
1549
+ header: string;
1550
+ /**
1551
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1552
+ *
1553
+ * @minItems 2
1554
+ * @maxItems 4
1555
+ */
1556
+ options:
1557
+ | [
1558
+ {
1559
+ /**
1560
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1561
+ */
1562
+ label: string;
1563
+ /**
1564
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1565
+ */
1566
+ description: string;
1567
+ /**
1568
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1569
+ */
1570
+ preview?: string;
1571
+ },
1572
+ {
1573
+ /**
1574
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1575
+ */
1576
+ label: string;
1577
+ /**
1578
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1579
+ */
1580
+ description: string;
1581
+ /**
1582
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1583
+ */
1584
+ preview?: string;
1585
+ }
1586
+ ]
1587
+ | [
1588
+ {
1589
+ /**
1590
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1591
+ */
1592
+ label: string;
1593
+ /**
1594
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1595
+ */
1596
+ description: string;
1597
+ /**
1598
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1599
+ */
1600
+ preview?: string;
1601
+ },
1602
+ {
1603
+ /**
1604
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1605
+ */
1606
+ label: string;
1607
+ /**
1608
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1609
+ */
1610
+ description: string;
1611
+ /**
1612
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1613
+ */
1614
+ preview?: string;
1615
+ },
1616
+ {
1617
+ /**
1618
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1619
+ */
1620
+ label: string;
1621
+ /**
1622
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1623
+ */
1624
+ description: string;
1625
+ /**
1626
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1627
+ */
1628
+ preview?: string;
1629
+ }
1630
+ ]
1631
+ | [
1632
+ {
1633
+ /**
1634
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1635
+ */
1636
+ label: string;
1637
+ /**
1638
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1639
+ */
1640
+ description: string;
1641
+ /**
1642
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1643
+ */
1644
+ preview?: string;
1645
+ },
1646
+ {
1647
+ /**
1648
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1649
+ */
1650
+ label: string;
1651
+ /**
1652
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1653
+ */
1654
+ description: string;
1655
+ /**
1656
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1657
+ */
1658
+ preview?: string;
1659
+ },
1660
+ {
1661
+ /**
1662
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1663
+ */
1664
+ label: string;
1665
+ /**
1666
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1667
+ */
1668
+ description: string;
1669
+ /**
1670
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1671
+ */
1672
+ preview?: string;
1673
+ },
1674
+ {
1675
+ /**
1676
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1677
+ */
1678
+ label: string;
1679
+ /**
1680
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1681
+ */
1682
+ description: string;
1683
+ /**
1684
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1685
+ */
1686
+ preview?: string;
1687
+ }
1688
+ ];
1689
+ /**
1690
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1691
+ */
1692
+ multiSelect: boolean;
1693
+ },
1694
+ {
1695
+ /**
1696
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1697
+ */
1698
+ question: string;
1699
+ /**
1700
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1701
+ */
1702
+ header: string;
1703
+ /**
1704
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1705
+ *
1706
+ * @minItems 2
1707
+ * @maxItems 4
1708
+ */
1709
+ options:
1710
+ | [
1711
+ {
1712
+ /**
1713
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1714
+ */
1715
+ label: string;
1716
+ /**
1717
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1718
+ */
1719
+ description: string;
1720
+ /**
1721
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1722
+ */
1723
+ preview?: string;
1724
+ },
1725
+ {
1726
+ /**
1727
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1728
+ */
1729
+ label: string;
1730
+ /**
1731
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1732
+ */
1733
+ description: string;
1734
+ /**
1735
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1736
+ */
1737
+ preview?: string;
1738
+ }
1739
+ ]
1740
+ | [
1741
+ {
1742
+ /**
1743
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1744
+ */
1745
+ label: string;
1746
+ /**
1747
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1748
+ */
1749
+ description: string;
1750
+ /**
1751
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1752
+ */
1753
+ preview?: string;
1754
+ },
1755
+ {
1756
+ /**
1757
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1758
+ */
1759
+ label: string;
1760
+ /**
1761
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1762
+ */
1763
+ description: string;
1764
+ /**
1765
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1766
+ */
1767
+ preview?: string;
1768
+ },
1769
+ {
1770
+ /**
1771
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1772
+ */
1773
+ label: string;
1774
+ /**
1775
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1776
+ */
1777
+ description: string;
1778
+ /**
1779
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1780
+ */
1781
+ preview?: string;
1782
+ }
1783
+ ]
1784
+ | [
1785
+ {
1786
+ /**
1787
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1788
+ */
1789
+ label: string;
1790
+ /**
1791
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1792
+ */
1793
+ description: string;
1794
+ /**
1795
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1796
+ */
1797
+ preview?: string;
1798
+ },
1799
+ {
1800
+ /**
1801
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1802
+ */
1803
+ label: string;
1804
+ /**
1805
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1806
+ */
1807
+ description: string;
1808
+ /**
1809
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1810
+ */
1811
+ preview?: string;
1812
+ },
1813
+ {
1814
+ /**
1815
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1816
+ */
1817
+ label: string;
1818
+ /**
1819
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1820
+ */
1821
+ description: string;
1822
+ /**
1823
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1824
+ */
1825
+ preview?: string;
1826
+ },
1827
+ {
1828
+ /**
1829
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1830
+ */
1831
+ label: string;
1832
+ /**
1833
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1834
+ */
1835
+ description: string;
1836
+ /**
1837
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1838
+ */
1839
+ preview?: string;
1840
+ }
1841
+ ];
1842
+ /**
1843
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1844
+ */
1845
+ multiSelect: boolean;
1846
+ },
1847
+ {
1848
+ /**
1849
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
1850
+ */
1851
+ question: string;
1852
+ /**
1853
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
1854
+ */
1855
+ header: string;
1856
+ /**
1857
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
1858
+ *
1859
+ * @minItems 2
1860
+ * @maxItems 4
1861
+ */
1862
+ options:
1863
+ | [
1864
+ {
1865
+ /**
1866
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1867
+ */
1868
+ label: string;
1869
+ /**
1870
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1871
+ */
1872
+ description: string;
1873
+ /**
1874
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1875
+ */
1876
+ preview?: string;
1877
+ },
1878
+ {
1879
+ /**
1880
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1881
+ */
1882
+ label: string;
1883
+ /**
1884
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1885
+ */
1886
+ description: string;
1887
+ /**
1888
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1889
+ */
1890
+ preview?: string;
1891
+ }
1892
+ ]
1893
+ | [
1894
+ {
1895
+ /**
1896
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1897
+ */
1898
+ label: string;
1899
+ /**
1900
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1901
+ */
1902
+ description: string;
1903
+ /**
1904
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1905
+ */
1906
+ preview?: string;
1907
+ },
1908
+ {
1909
+ /**
1910
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1911
+ */
1912
+ label: string;
1913
+ /**
1914
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1915
+ */
1916
+ description: string;
1917
+ /**
1918
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1919
+ */
1920
+ preview?: string;
1921
+ },
1922
+ {
1923
+ /**
1924
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1925
+ */
1926
+ label: string;
1927
+ /**
1928
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1929
+ */
1930
+ description: string;
1931
+ /**
1932
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1933
+ */
1934
+ preview?: string;
1935
+ }
1936
+ ]
1937
+ | [
1938
+ {
1939
+ /**
1940
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1941
+ */
1942
+ label: string;
1943
+ /**
1944
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1945
+ */
1946
+ description: string;
1947
+ /**
1948
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1949
+ */
1950
+ preview?: string;
1951
+ },
1952
+ {
1953
+ /**
1954
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1955
+ */
1956
+ label: string;
1957
+ /**
1958
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1959
+ */
1960
+ description: string;
1961
+ /**
1962
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1963
+ */
1964
+ preview?: string;
1965
+ },
1966
+ {
1967
+ /**
1968
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1969
+ */
1970
+ label: string;
1971
+ /**
1972
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1973
+ */
1974
+ description: string;
1975
+ /**
1976
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1977
+ */
1978
+ preview?: string;
1979
+ },
1980
+ {
1981
+ /**
1982
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
1983
+ */
1984
+ label: string;
1985
+ /**
1986
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
1987
+ */
1988
+ description: string;
1989
+ /**
1990
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
1991
+ */
1992
+ preview?: string;
1993
+ }
1994
+ ];
1995
+ /**
1996
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
1997
+ */
1998
+ multiSelect: boolean;
1999
+ },
2000
+ {
2001
+ /**
2002
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
2003
+ */
2004
+ question: string;
2005
+ /**
2006
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
2007
+ */
2008
+ header: string;
2009
+ /**
2010
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
2011
+ *
2012
+ * @minItems 2
2013
+ * @maxItems 4
2014
+ */
2015
+ options:
2016
+ | [
2017
+ {
2018
+ /**
2019
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2020
+ */
2021
+ label: string;
2022
+ /**
2023
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2024
+ */
2025
+ description: string;
2026
+ /**
2027
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2028
+ */
2029
+ preview?: string;
2030
+ },
2031
+ {
2032
+ /**
2033
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2034
+ */
2035
+ label: string;
2036
+ /**
2037
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2038
+ */
2039
+ description: string;
2040
+ /**
2041
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2042
+ */
2043
+ preview?: string;
2044
+ }
2045
+ ]
2046
+ | [
2047
+ {
2048
+ /**
2049
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2050
+ */
2051
+ label: string;
2052
+ /**
2053
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2054
+ */
2055
+ description: string;
2056
+ /**
2057
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2058
+ */
2059
+ preview?: string;
2060
+ },
2061
+ {
2062
+ /**
2063
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2064
+ */
2065
+ label: string;
2066
+ /**
2067
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2068
+ */
2069
+ description: string;
2070
+ /**
2071
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2072
+ */
2073
+ preview?: string;
2074
+ },
2075
+ {
2076
+ /**
2077
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2078
+ */
2079
+ label: string;
2080
+ /**
2081
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2082
+ */
2083
+ description: string;
2084
+ /**
2085
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2086
+ */
2087
+ preview?: string;
2088
+ }
2089
+ ]
2090
+ | [
2091
+ {
2092
+ /**
2093
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2094
+ */
2095
+ label: string;
2096
+ /**
2097
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2098
+ */
2099
+ description: string;
2100
+ /**
2101
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2102
+ */
2103
+ preview?: string;
2104
+ },
2105
+ {
2106
+ /**
2107
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2108
+ */
2109
+ label: string;
2110
+ /**
2111
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2112
+ */
2113
+ description: string;
2114
+ /**
2115
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2116
+ */
2117
+ preview?: string;
2118
+ },
2119
+ {
2120
+ /**
2121
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2122
+ */
2123
+ label: string;
2124
+ /**
2125
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2126
+ */
2127
+ description: string;
2128
+ /**
2129
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2130
+ */
2131
+ preview?: string;
2132
+ },
2133
+ {
2134
+ /**
2135
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2136
+ */
2137
+ label: string;
2138
+ /**
2139
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2140
+ */
2141
+ description: string;
2142
+ /**
2143
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2144
+ */
2145
+ preview?: string;
2146
+ }
2147
+ ];
2148
+ /**
2149
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
2150
+ */
2151
+ multiSelect: boolean;
2152
+ }
2153
+ ];
2154
+ /**
2155
+ * User answers collected by the permission component
2156
+ */
2157
+ answers?: {
2158
+ [k: string]: string;
2159
+ };
2160
+ /**
2161
+ * Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.
2162
+ */
2163
+ annotations?: {
2164
+ [k: string]: {
2165
+ /**
2166
+ * The preview content of the selected option, if the question used previews.
2167
+ */
2168
+ preview?: string;
2169
+ /**
2170
+ * Free-text notes the user added to their selection.
2171
+ */
2172
+ notes?: string;
2173
+ };
2174
+ };
2175
+ /**
2176
+ * Optional metadata for tracking and analytics purposes. Not displayed to user.
2177
+ */
2178
+ metadata?: {
2179
+ /**
2180
+ * Optional identifier for the source of this question (e.g., "remember" for /remember command). Used for analytics tracking.
2181
+ */
2182
+ source?: string;
2183
+ };
2184
+ }
2185
+ export interface EnterPlanModeInput {}
2186
+ export interface TaskCreateInput {
2187
+ /**
2188
+ * A brief title for the task
2189
+ */
2190
+ subject: string;
2191
+ /**
2192
+ * What needs to be done
2193
+ */
2194
+ description: string;
2195
+ /**
2196
+ * Present continuous form shown in spinner when in_progress (e.g., "Running tests")
2197
+ */
2198
+ activeForm?: string;
2199
+ /**
2200
+ * Arbitrary metadata to attach to the task
2201
+ */
2202
+ metadata?: {
2203
+ [k: string]: unknown;
2204
+ };
2205
+ }
2206
+ export interface TaskGetInput {
2207
+ /**
2208
+ * The ID of the task to retrieve
2209
+ */
2210
+ taskId: string;
2211
+ }
2212
+ export interface TaskUpdateInput {
2213
+ /**
2214
+ * The ID of the task to update
2215
+ */
2216
+ taskId: string;
2217
+ /**
2218
+ * New subject for the task
2219
+ */
2220
+ subject?: string;
2221
+ /**
2222
+ * New description for the task
2223
+ */
2224
+ description?: string;
2225
+ /**
2226
+ * Present continuous form shown in spinner when in_progress (e.g., "Running tests")
2227
+ */
2228
+ activeForm?: string;
2229
+ /**
2230
+ * New status for the task
2231
+ */
2232
+ status?: ("pending" | "in_progress" | "completed") | "deleted";
2233
+ /**
2234
+ * Task IDs that this task blocks
2235
+ */
2236
+ addBlocks?: string[];
2237
+ /**
2238
+ * Task IDs that block this task
2239
+ */
2240
+ addBlockedBy?: string[];
2241
+ /**
2242
+ * New owner for the task
2243
+ */
2244
+ owner?: string;
2245
+ /**
2246
+ * Metadata keys to merge into the task. Set a key to null to delete it.
2247
+ */
2248
+ metadata?: {
2249
+ [k: string]: unknown;
2250
+ };
2251
+ }
2252
+ export interface TaskListInput {}
2253
+ export interface REPLInput {
2254
+ /**
2255
+ * JavaScript code to execute. Supports top-level await. State persists across calls.
2256
+ */
2257
+ code: string;
2258
+ /**
2259
+ * Clear, concise description of what this script does in active voice (5-10 words). E.g. "Trace upgrade message to its GrowthBook flag"
2260
+ */
2261
+ description?: string;
2262
+ /**
2263
+ * Optional timeout in milliseconds (default 30000, max 600000)
2264
+ */
2265
+ timeout?: number;
2266
+ }
2267
+ export interface WorkflowInput {
2268
+ /**
2269
+ * Self-contained workflow script. Must begin with `export const meta = { name, description, phases }` (pure literal, no computed values) followed by the script body using agent()/parallel()/pipeline()/phase().
2270
+ */
2271
+ script?: string;
2272
+ /**
2273
+ * Name of a predefined workflow (built-in or from .claude/workflows/). Resolves to a self-contained script.
2274
+ */
2275
+ name?: string;
2276
+ /**
2277
+ * Ignored — set the workflow description in the script's `meta` block.
2278
+ */
2279
+ description?: string;
2280
+ /**
2281
+ * Ignored — set the workflow title in the script's `meta` block.
2282
+ */
2283
+ title?: string;
2284
+ /**
2285
+ * Optional input value exposed to the script as the global `args`, verbatim. Pass arrays/objects as actual JSON values, NOT as a JSON-encoded string — a stringified list breaks `args.filter`/`args.map` in the script. Use for parameterized named workflows (e.g. a research question).
2286
+ */
2287
+ args?: {
2288
+ [k: string]: unknown;
2289
+ };
2290
+ /**
2291
+ * Path to a workflow script file on disk. Every Workflow invocation persists its script under the session directory and returns the path in the tool result. To iterate, edit that file with Write/Edit and re-invoke Workflow with the same `scriptPath` instead of re-sending the full script. Takes precedence over `script` and `name`.
2292
+ */
2293
+ scriptPath?: string;
2294
+ /**
2295
+ * Run ID of a prior Workflow invocation to resume from. Completed agent() calls with unchanged (prompt, opts) return their cached results instantly; only edited or new calls re-run. Same-session only. Stop the prior run first (TaskStop) before resuming.
2296
+ */
2297
+ resumeFromRunId?: string;
2298
+ }
2299
+ export interface CronCreateInput {
2300
+ /**
2301
+ * Standard 5-field cron expression in local time: "M H DoM Mon DoW" (e.g. "* /5 * * * *" = every 5 minutes, "30 14 28 2 *" = Feb 28 at 2:30pm local once).
2302
+ */
2303
+ cron: string;
2304
+ /**
2305
+ * The prompt to enqueue at each fire time.
2306
+ */
2307
+ prompt: string;
2308
+ /**
2309
+ * true (default) = fire on every cron match until deleted or auto-expired after 7 days. false = fire once at the next match, then auto-delete. Use false for "remind me at X" one-shot requests with pinned minute/hour/dom/month.
2310
+ */
2311
+ recurring?: boolean;
2312
+ /**
2313
+ * true = persist to .claude/scheduled_tasks.json and survive restarts. false (default) = in-memory only, dies when this Claude session ends. Use true only when the user asks the task to survive across sessions.
2314
+ */
2315
+ durable?: boolean;
2316
+ }
2317
+ export interface CronDeleteInput {
2318
+ /**
2319
+ * Job ID returned by CronCreate.
2320
+ */
2321
+ id: string;
2322
+ }
2323
+ export interface CronListInput {}
2324
+ export interface ScheduleWakeupInput {
2325
+ /**
2326
+ * Seconds from now to wake up. Clamped to [60, 3600] by the runtime.
2327
+ */
2328
+ delaySeconds: number;
2329
+ /**
2330
+ * One short sentence explaining the chosen delay. Goes to telemetry and is shown to the user. Be specific.
2331
+ */
2332
+ reason: string;
2333
+ /**
2334
+ * The /loop input to fire on wake-up. Pass the same /loop input verbatim each turn so the next firing re-enters the skill and continues the loop. For autonomous /loop (no user prompt), pass the literal sentinel `<<autonomous-loop-dynamic>>` instead (the dynamic-pacing variant, not the CronCreate-mode `<<autonomous-loop>>`).
2335
+ */
2336
+ prompt: string;
2337
+ }
2338
+ export interface RemoteTriggerInput {
2339
+ action: "list" | "get" | "create" | "update" | "run";
2340
+ /**
2341
+ * Required for get, update, and run
2342
+ */
2343
+ trigger_id?: string;
2344
+ /**
2345
+ * Required for create and update; optional for run
2346
+ */
2347
+ body?: {
2348
+ [k: string]: unknown;
2349
+ };
2350
+ }
2351
+ export interface MonitorInput {
2352
+ /**
2353
+ * Short human-readable description of what you are monitoring (shown in notifications).
2354
+ */
2355
+ description: string;
2356
+ /**
2357
+ * Kill the monitor after this deadline. Default 300000ms, max 3600000ms. Ignored when persistent is true.
2358
+ */
2359
+ timeout_ms: number;
2360
+ /**
2361
+ * Run for the lifetime of the session (no timeout). Use for session-length watches like PR monitoring or log tails. Stop with TaskStop.
2362
+ */
2363
+ persistent: boolean;
2364
+ /**
2365
+ * Shell command or script. Each stdout line is an event; exit ends the watch.
2366
+ */
2367
+ command: string;
2368
+ }
2369
+ export interface PushNotificationInput {
2370
+ /**
2371
+ * The notification body. Keep it under 200 characters; mobile OSes truncate.
2372
+ */
2373
+ message: string;
2374
+ status: "proactive";
2375
+ }
2376
+ export interface EnterWorktreeInput {
2377
+ /**
2378
+ * Optional name for a new worktree. Each "/"-separated segment may contain only letters, digits, dots, underscores, and dashes; max 64 chars total. A random name is generated if not provided. Mutually exclusive with `path`.
2379
+ */
2380
+ name?: string;
2381
+ /**
2382
+ * Path to an existing worktree of the current repository to switch into instead of creating a new one. Must appear in `git worktree list` for the current repo. Mutually exclusive with `name`.
2383
+ */
2384
+ path?: string;
2385
+ }
2386
+ export interface ExitWorktreeInput {
2387
+ /**
2388
+ * "keep" leaves the worktree and branch on disk; "remove" deletes both.
2389
+ */
2390
+ action: "keep" | "remove";
2391
+ /**
2392
+ * Required true when action is "remove" and the worktree has uncommitted files or unmerged commits. The tool will refuse and list them otherwise.
2393
+ */
2394
+ discard_changes?: boolean;
2395
+ }
2396
+ export interface BashOutput {
2397
+ /**
2398
+ * The standard output of the command
2399
+ */
2400
+ stdout: string;
2401
+ /**
2402
+ * The standard error output of the command
2403
+ */
2404
+ stderr: string;
2405
+ /**
2406
+ * Path to raw output file for large MCP tool outputs
2407
+ */
2408
+ rawOutputPath?: string;
2409
+ /**
2410
+ * Whether the command was interrupted
2411
+ */
2412
+ interrupted: boolean;
2413
+ /**
2414
+ * Flag to indicate if stdout contains image data
2415
+ */
2416
+ isImage?: boolean;
2417
+ /**
2418
+ * ID of the background task if command is running in background
2419
+ */
2420
+ backgroundTaskId?: string;
2421
+ /**
2422
+ * True if the user manually backgrounded the command with Ctrl+B
2423
+ */
2424
+ backgroundedByUser?: boolean;
2425
+ /**
2426
+ * True if assistant-mode auto-backgrounded a long-running blocking command
2427
+ */
2428
+ assistantAutoBackgrounded?: boolean;
2429
+ /**
2430
+ * Flag to indicate if sandbox mode was overridden
2431
+ */
2432
+ dangerouslyDisableSandbox?: boolean;
2433
+ /**
2434
+ * Semantic interpretation for non-error exit codes with special meaning
2435
+ */
2436
+ returnCodeInterpretation?: string;
2437
+ /**
2438
+ * Whether the command is expected to produce no output on success
2439
+ */
2440
+ noOutputExpected?: boolean;
2441
+ /**
2442
+ * Structured content blocks
2443
+ */
2444
+ structuredContent?: unknown[];
2445
+ /**
2446
+ * Path to the persisted full output in tool-results dir (set when output is too large for inline)
2447
+ */
2448
+ persistedOutputPath?: string;
2449
+ /**
2450
+ * Total size of the output in bytes (set when output is too large for inline)
2451
+ */
2452
+ persistedOutputSize?: number;
2453
+ /**
2454
+ * Model-facing note listing readFileState entries whose mtime bumped during this command (set when WRITE_COMMAND_MARKERS matches)
2455
+ */
2456
+ staleReadFileStateHint?: string;
2457
+ /**
2458
+ * Model-facing system-reminder appended when a gh command reports a GitHub API rate-limit error
2459
+ */
2460
+ ghRateLimitHint?: string;
2461
+ /**
2462
+ * @internal Structured classification of git/gh operations detected in this command (commit/push/merge/rebase/PR). Client-facing — lets clients render git activity without re-parsing stdout; not surfaced to the model.
2463
+ */
2464
+ gitOperation?: {
2465
+ commit?: {
2466
+ sha: string;
2467
+ kind: "committed" | "amended" | "cherry-picked";
2468
+ };
2469
+ push?: {
2470
+ branch: string;
2471
+ };
2472
+ branch?: {
2473
+ ref: string;
2474
+ action: "merged" | "rebased";
2475
+ };
2476
+ pr?: {
2477
+ number: number;
2478
+ url?: string;
2479
+ action:
2480
+ | "created"
2481
+ | "edited"
2482
+ | "merged"
2483
+ | "commented"
2484
+ | "closed"
2485
+ | "ready"
2486
+ | "draft"
2487
+ | "auto-merge-enabled"
2488
+ | "auto-merge-disabled";
2489
+ };
2490
+ };
2491
+ }
2492
+ export interface ExitPlanModeOutput {
2493
+ /**
2494
+ * The plan that was presented to the user
2495
+ */
2496
+ plan: string | null;
2497
+ isAgent: boolean;
2498
+ /**
2499
+ * The file path where the plan was saved
2500
+ */
2501
+ filePath?: string;
2502
+ /**
2503
+ * Whether the Agent tool is available in the current context
2504
+ */
2505
+ hasTaskTool?: boolean;
2506
+ /**
2507
+ * True when the user edited the plan (CCR web UI or Ctrl+G); determines whether the plan is echoed back in tool_result
2508
+ */
2509
+ planWasEdited?: boolean;
2510
+ /**
2511
+ * When true, the teammate has sent a plan approval request to the team leader
2512
+ */
2513
+ awaitingLeaderApproval?: boolean;
2514
+ /**
2515
+ * Unique identifier for the plan approval request
2516
+ */
2517
+ requestId?: string;
2518
+ }
2519
+ export interface FileEditOutput {
2520
+ /**
2521
+ * The file path that was edited
2522
+ */
2523
+ filePath: string;
2524
+ /**
2525
+ * The original string that was replaced
2526
+ */
2527
+ oldString: string;
2528
+ /**
2529
+ * The new string that replaced it
2530
+ */
2531
+ newString: string;
2532
+ /**
2533
+ * The original file contents before editing
2534
+ */
2535
+ originalFile: string | null;
2536
+ /**
2537
+ * Diff patch showing the changes
2538
+ */
2539
+ structuredPatch: {
2540
+ oldStart: number;
2541
+ oldLines: number;
2542
+ newStart: number;
2543
+ newLines: number;
2544
+ lines: string[];
2545
+ }[];
2546
+ /**
2547
+ * Whether the user modified the proposed changes
2548
+ */
2549
+ userModified: boolean;
2550
+ /**
2551
+ * Whether all occurrences were replaced
2552
+ */
2553
+ replaceAll: boolean;
2554
+ gitDiff?: {
2555
+ filename: string;
2556
+ status: "modified" | "added";
2557
+ additions: number;
2558
+ deletions: number;
2559
+ changes: number;
2560
+ patch: string;
2561
+ /**
2562
+ * GitHub owner/repo when available
2563
+ */
2564
+ repository?: string | null;
2565
+ };
2566
+ }
2567
+ export interface FileWriteOutput {
2568
+ /**
2569
+ * Whether a new file was created or an existing file was updated
2570
+ */
2571
+ type: "create" | "update";
2572
+ /**
2573
+ * The path to the file that was written
2574
+ */
2575
+ filePath: string;
2576
+ /**
2577
+ * The content that was written to the file
2578
+ */
2579
+ content: string;
2580
+ /**
2581
+ * Diff patch showing the changes
2582
+ */
2583
+ structuredPatch: {
2584
+ oldStart: number;
2585
+ oldLines: number;
2586
+ newStart: number;
2587
+ newLines: number;
2588
+ lines: string[];
2589
+ }[];
2590
+ /**
2591
+ * The original file content before the write (null for new files)
2592
+ */
2593
+ originalFile: string | null;
2594
+ gitDiff?: {
2595
+ filename: string;
2596
+ status: "modified" | "added";
2597
+ additions: number;
2598
+ deletions: number;
2599
+ changes: number;
2600
+ patch: string;
2601
+ /**
2602
+ * GitHub owner/repo when available
2603
+ */
2604
+ repository?: string | null;
2605
+ };
2606
+ /**
2607
+ * True when the user edited the proposed content in the permission dialog before accepting
2608
+ */
2609
+ userModified?: boolean;
2610
+ }
2611
+ export interface GlobOutput {
2612
+ /**
2613
+ * Time taken to execute the search in milliseconds
2614
+ */
2615
+ durationMs: number;
2616
+ /**
2617
+ * Total number of files found
2618
+ */
2619
+ numFiles: number;
2620
+ /**
2621
+ * Array of file paths that match the pattern
2622
+ */
2623
+ filenames: string[];
2624
+ /**
2625
+ * Whether results were truncated (limited to 100 files)
2626
+ */
2627
+ truncated: boolean;
2628
+ }
2629
+ export interface GrepOutput {
2630
+ mode?: "content" | "files_with_matches" | "count";
2631
+ numFiles: number;
2632
+ filenames: string[];
2633
+ content?: string;
2634
+ numLines?: number;
2635
+ numMatches?: number;
2636
+ appliedLimit?: number;
2637
+ appliedOffset?: number;
2638
+ }
2639
+ export interface TaskStopOutput {
2640
+ /**
2641
+ * Status message about the operation
2642
+ */
2643
+ message: string;
2644
+ /**
2645
+ * The ID of the task that was stopped
2646
+ */
2647
+ task_id: string;
2648
+ /**
2649
+ * The type of the task that was stopped
2650
+ */
2651
+ task_type: string;
2652
+ /**
2653
+ * The command or description of the stopped task
2654
+ */
2655
+ command?: string;
2656
+ }
2657
+ export interface NotebookEditOutput {
2658
+ /**
2659
+ * The new source code that was written to the cell
2660
+ */
2661
+ new_source: string;
2662
+ /**
2663
+ * The ID of the cell that was edited
2664
+ */
2665
+ cell_id?: string;
2666
+ /**
2667
+ * The type of the cell
2668
+ */
2669
+ cell_type: "code" | "markdown";
2670
+ /**
2671
+ * The programming language of the notebook
2672
+ */
2673
+ language: string;
2674
+ /**
2675
+ * The edit mode that was used
2676
+ */
2677
+ edit_mode: string;
2678
+ /**
2679
+ * Error message if the operation failed
2680
+ */
2681
+ error?: string;
2682
+ /**
2683
+ * The path to the notebook file
2684
+ */
2685
+ notebook_path: string;
2686
+ /**
2687
+ * The original notebook content before modification
2688
+ */
2689
+ original_file: string;
2690
+ /**
2691
+ * The updated notebook content after modification
2692
+ */
2693
+ updated_file: string;
2694
+ }
2695
+ export interface ReadMcpResourceOutput {
2696
+ contents: {
2697
+ /**
2698
+ * Resource URI
2699
+ */
2700
+ uri: string;
2701
+ /**
2702
+ * MIME type of the content
2703
+ */
2704
+ mimeType?: string;
2705
+ /**
2706
+ * Text content of the resource
2707
+ */
2708
+ text?: string;
2709
+ /**
2710
+ * Path where binary blob content was saved
2711
+ */
2712
+ blobSavedTo?: string;
2713
+ }[];
2714
+ }
2715
+ export interface TodoWriteOutput {
2716
+ /**
2717
+ * The todo list before the update
2718
+ */
2719
+ oldTodos: {
2720
+ content: string;
2721
+ status: "pending" | "in_progress" | "completed";
2722
+ activeForm: string;
2723
+ }[];
2724
+ /**
2725
+ * The todo list after the update
2726
+ */
2727
+ newTodos: {
2728
+ content: string;
2729
+ status: "pending" | "in_progress" | "completed";
2730
+ activeForm: string;
2731
+ }[];
2732
+ }
2733
+ export interface WebFetchOutput {
2734
+ /**
2735
+ * Size of the fetched content in bytes
2736
+ */
2737
+ bytes: number;
2738
+ /**
2739
+ * HTTP response code
2740
+ */
2741
+ code: number;
2742
+ /**
2743
+ * HTTP response code text
2744
+ */
2745
+ codeText: string;
2746
+ /**
2747
+ * Processed result from applying the prompt to the content
2748
+ */
2749
+ result: string;
2750
+ /**
2751
+ * Time taken to fetch and process the content
2752
+ */
2753
+ durationMs: number;
2754
+ /**
2755
+ * The URL that was fetched
2756
+ */
2757
+ url: string;
2758
+ }
2759
+ export interface WebSearchOutput {
2760
+ /**
2761
+ * The search query that was executed
2762
+ */
2763
+ query: string;
2764
+ /**
2765
+ * Search results and/or text commentary from the model
2766
+ */
2767
+ results: (
2768
+ | {
2769
+ /**
2770
+ * ID of the tool use
2771
+ */
2772
+ tool_use_id: string;
2773
+ /**
2774
+ * Array of search hits
2775
+ */
2776
+ content: {
2777
+ /**
2778
+ * The title of the search result
2779
+ */
2780
+ title: string;
2781
+ /**
2782
+ * The URL of the search result
2783
+ */
2784
+ url: string;
2785
+ }[];
2786
+ }
2787
+ | string
2788
+ )[];
2789
+ /**
2790
+ * Time taken to complete the search operation
2791
+ */
2792
+ durationSeconds: number;
2793
+ /**
2794
+ * Number of web searches performed
2795
+ */
2796
+ searchCount?: number;
2797
+ }
2798
+ export interface AskUserQuestionOutput {
2799
+ /**
2800
+ * The questions that were asked
2801
+ */
2802
+ questions: {
2803
+ /**
2804
+ * The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"
2805
+ */
2806
+ question: string;
2807
+ /**
2808
+ * Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".
2809
+ */
2810
+ header: string;
2811
+ /**
2812
+ * The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). There should be no 'Other' option, that will be provided automatically.
2813
+ *
2814
+ * @minItems 2
2815
+ * @maxItems 4
2816
+ */
2817
+ options:
2818
+ | [
2819
+ {
2820
+ /**
2821
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2822
+ */
2823
+ label: string;
2824
+ /**
2825
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2826
+ */
2827
+ description: string;
2828
+ /**
2829
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2830
+ */
2831
+ preview?: string;
2832
+ },
2833
+ {
2834
+ /**
2835
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2836
+ */
2837
+ label: string;
2838
+ /**
2839
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2840
+ */
2841
+ description: string;
2842
+ /**
2843
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2844
+ */
2845
+ preview?: string;
2846
+ }
2847
+ ]
2848
+ | [
2849
+ {
2850
+ /**
2851
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2852
+ */
2853
+ label: string;
2854
+ /**
2855
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2856
+ */
2857
+ description: string;
2858
+ /**
2859
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2860
+ */
2861
+ preview?: string;
2862
+ },
2863
+ {
2864
+ /**
2865
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2866
+ */
2867
+ label: string;
2868
+ /**
2869
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2870
+ */
2871
+ description: string;
2872
+ /**
2873
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2874
+ */
2875
+ preview?: string;
2876
+ },
2877
+ {
2878
+ /**
2879
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2880
+ */
2881
+ label: string;
2882
+ /**
2883
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2884
+ */
2885
+ description: string;
2886
+ /**
2887
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2888
+ */
2889
+ preview?: string;
2890
+ }
2891
+ ]
2892
+ | [
2893
+ {
2894
+ /**
2895
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2896
+ */
2897
+ label: string;
2898
+ /**
2899
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2900
+ */
2901
+ description: string;
2902
+ /**
2903
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2904
+ */
2905
+ preview?: string;
2906
+ },
2907
+ {
2908
+ /**
2909
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2910
+ */
2911
+ label: string;
2912
+ /**
2913
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2914
+ */
2915
+ description: string;
2916
+ /**
2917
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2918
+ */
2919
+ preview?: string;
2920
+ },
2921
+ {
2922
+ /**
2923
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2924
+ */
2925
+ label: string;
2926
+ /**
2927
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2928
+ */
2929
+ description: string;
2930
+ /**
2931
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2932
+ */
2933
+ preview?: string;
2934
+ },
2935
+ {
2936
+ /**
2937
+ * The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice.
2938
+ */
2939
+ label: string;
2940
+ /**
2941
+ * Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications.
2942
+ */
2943
+ description: string;
2944
+ /**
2945
+ * Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format.
2946
+ */
2947
+ preview?: string;
2948
+ }
2949
+ ];
2950
+ /**
2951
+ * Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive.
2952
+ */
2953
+ multiSelect: boolean;
2954
+ }[];
2955
+ /**
2956
+ * The answers provided by the user (question text -> answer string; multi-select answers are comma-separated)
2957
+ */
2958
+ answers: {
2959
+ [k: string]: string;
2960
+ };
2961
+ /**
2962
+ * Freeform text the user typed instead of selecting a structured option
2963
+ */
2964
+ response?: string;
2965
+ /**
2966
+ * Optional per-question annotations from the user (e.g., notes on preview selections). Keyed by question text.
2967
+ */
2968
+ annotations?: {
2969
+ [k: string]: {
2970
+ /**
2971
+ * The preview content of the selected option, if the question used previews.
2972
+ */
2973
+ preview?: string;
2974
+ /**
2975
+ * Free-text notes the user added to their selection.
2976
+ */
2977
+ notes?: string;
2978
+ };
2979
+ };
2980
+ }
2981
+ export interface EnterWorktreeOutput {
2982
+ worktreePath: string;
2983
+ worktreeBranch?: string;
2984
+ message: string;
2985
+ }
2986
+ export interface ExitWorktreeOutput {
2987
+ action: "keep" | "remove";
2988
+ originalCwd: string;
2989
+ worktreePath: string;
2990
+ worktreeBranch?: string;
2991
+ tmuxSessionName?: string;
2992
+ discardedFiles?: number;
2993
+ discardedCommits?: number;
2994
+ message: string;
2995
+ }
2996
+ export interface TaskCreateOutput {
2997
+ task: {
2998
+ id: string;
2999
+ subject: string;
3000
+ };
3001
+ }
3002
+ export interface TaskGetOutput {
3003
+ task: {
3004
+ id: string;
3005
+ subject: string;
3006
+ description: string;
3007
+ status: "pending" | "in_progress" | "completed";
3008
+ blocks: string[];
3009
+ blockedBy: string[];
3010
+ } | null;
3011
+ }
3012
+ export interface TaskUpdateOutput {
3013
+ success: boolean;
3014
+ taskId: string;
3015
+ updatedFields: string[];
3016
+ error?: string;
3017
+ statusChange?: {
3018
+ from: string;
3019
+ to: string;
3020
+ };
3021
+ }
3022
+ export interface TaskListOutput {
3023
+ tasks: {
3024
+ id: string;
3025
+ subject: string;
3026
+ status: "pending" | "in_progress" | "completed";
3027
+ owner?: string;
3028
+ blockedBy: string[];
3029
+ }[];
3030
+ }
3031
+ export interface RemoteTriggerOutput {
3032
+ status: number;
3033
+ json: string;
3034
+ summary?: string;
3035
+ }
3036
+ export interface ScheduleWakeupOutput {
3037
+ /**
3038
+ * Epoch ms timestamp when the next wakeup will fire
3039
+ */
3040
+ scheduledFor: number;
3041
+ /**
3042
+ * Actual delay used after clamping to runtime bounds
3043
+ */
3044
+ clampedDelaySeconds: number;
3045
+ /**
3046
+ * True if the requested delaySeconds was outside [60, 3600]
3047
+ */
3048
+ wasClamped: boolean;
3049
+ }
3050
+ export interface MonitorOutput {
3051
+ /**
3052
+ * ID of the background monitor task.
3053
+ */
3054
+ taskId: string;
3055
+ /**
3056
+ * Timeout deadline in milliseconds (0 when persistent).
3057
+ */
3058
+ timeoutMs: number;
3059
+ /**
3060
+ * No timeout — runs until TaskStop or session end.
3061
+ */
3062
+ persistent?: boolean;
3063
+ }
3064
+ export interface EnterPlanModeOutput {
3065
+ /**
3066
+ * Confirmation that plan mode was entered
3067
+ */
3068
+ message: string;
3069
+ }
3070
+ export interface REPLOutput {
3071
+ /**
3072
+ * The code that was executed
3073
+ */
3074
+ code: string;
3075
+ /**
3076
+ * Return value from the code execution
3077
+ */
3078
+ result: {
3079
+ [k: string]: unknown;
3080
+ };
3081
+ /**
3082
+ * Captured console.log output
3083
+ */
3084
+ stdout: string;
3085
+ /**
3086
+ * Captured console.error output
3087
+ */
3088
+ stderr: string;
3089
+ /**
3090
+ * Error message if execution failed
3091
+ */
3092
+ error?: string;
3093
+ /**
3094
+ * Names of tools registered during this execution
3095
+ */
3096
+ registeredTools?: string[];
3097
+ /**
3098
+ * Images returned by inner Read calls — surfaced as image content blocks
3099
+ */
3100
+ images?: {
3101
+ base64: string;
3102
+ mediaType: string;
3103
+ }[];
3104
+ /**
3105
+ * PDFs returned by inner Read calls — surfaced as document content blocks
3106
+ */
3107
+ documents?: {
3108
+ base64: string;
3109
+ }[];
3110
+ }
3111
+ export interface WorkflowOutput {
3112
+ status: "async_launched" | "remote_launched";
3113
+ taskId: string;
3114
+ /**
3115
+ * Local workflow run identifier for resumeFromRunId. Absent for remote_launched (the CCR session URL is the resume handle there) and on transcripts written before this field existed.
3116
+ */
3117
+ runId?: string;
3118
+ summary?: string;
3119
+ /**
3120
+ * Directory where subagent transcripts are written during execution
3121
+ */
3122
+ transcriptDir?: string;
3123
+ /**
3124
+ * Path to the persisted workflow script for this invocation. Editable via Write/Edit; pass back as `scriptPath` to re-run without resending the script.
3125
+ */
3126
+ scriptPath?: string;
3127
+ /**
3128
+ * CCR session URL when status is remote_launched
3129
+ */
3130
+ sessionUrl?: string;
3131
+ /**
3132
+ * Non-blocking heads-up (e.g. local git state diverges from the pushed branch the remote session will clone)
3133
+ */
3134
+ warning?: string;
3135
+ /**
3136
+ * Set if syntax check failed
3137
+ */
3138
+ error?: string;
3139
+ }
3140
+ export interface CronCreateOutput {
3141
+ id: string;
3142
+ humanSchedule: string;
3143
+ recurring: boolean;
3144
+ durable?: boolean;
3145
+ }
3146
+ export interface CronDeleteOutput {
3147
+ id: string;
3148
+ }
3149
+ export interface CronListOutput {
3150
+ jobs: {
3151
+ id: string;
3152
+ cron: string;
3153
+ humanSchedule: string;
3154
+ prompt: string;
3155
+ recurring?: boolean;
3156
+ durable?: boolean;
3157
+ }[];
3158
+ }
3159
+ export interface PushNotificationOutput {
3160
+ message: string;
3161
+ pushSent?: boolean;
3162
+ localSent?: boolean;
3163
+ disabledReason?: "config_off" | "user_present" | "no_transport";
3164
+ idleSec?: number;
3165
+ hasFocus?: boolean;
3166
+ /**
3167
+ * ISO timestamp captured at tool execution on the emitting process. Optional — resumed sessions replay pre-sentAt outputs verbatim.
3168
+ */
3169
+ sentAt?: string;
3170
+ }