@useconductor/conductor 1.0.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 (504) hide show
  1. package/.claude-plugin/marketplace.json +33 -0
  2. package/.claude-plugin/plugin.json +23 -0
  3. package/.eslintrc.json +23 -0
  4. package/.gitattributes +6 -0
  5. package/.github/FUNDING.yml +15 -0
  6. package/.github/ISSUE_TEMPLATE/bug_report.yml +91 -0
  7. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  8. package/.github/ISSUE_TEMPLATE/feature_request.yml +63 -0
  9. package/.github/ISSUE_TEMPLATE/plugin_request.yml +71 -0
  10. package/.github/README.md +13 -0
  11. package/.github/workflows/README.md +22 -0
  12. package/.github/workflows/auto-release.yml +112 -0
  13. package/.github/workflows/ci.yml +49 -0
  14. package/.github/workflows/claude-code-review.yml +44 -0
  15. package/.github/workflows/claude.yml +36 -0
  16. package/.github/workflows/sync-install.yml +47 -0
  17. package/.mcp.json +9 -0
  18. package/.prettierrc.json +7 -0
  19. package/C.png +0 -0
  20. package/CHANGELOG.md +74 -0
  21. package/CLAUDE.md +118 -0
  22. package/CONTRIBUTING.md +231 -0
  23. package/LICENSE +201 -0
  24. package/README.md +179 -0
  25. package/SECURITY.md +47 -0
  26. package/commands/conductor-setup.md +11 -0
  27. package/commands/conductor-status.md +7 -0
  28. package/dist/ai/base.d.ts +44 -0
  29. package/dist/ai/base.d.ts.map +1 -0
  30. package/dist/ai/base.js +47 -0
  31. package/dist/ai/base.js.map +1 -0
  32. package/dist/ai/claude.d.ts +11 -0
  33. package/dist/ai/claude.d.ts.map +1 -0
  34. package/dist/ai/claude.js +149 -0
  35. package/dist/ai/claude.js.map +1 -0
  36. package/dist/ai/gemini.d.ts +15 -0
  37. package/dist/ai/gemini.d.ts.map +1 -0
  38. package/dist/ai/gemini.js +156 -0
  39. package/dist/ai/gemini.js.map +1 -0
  40. package/dist/ai/maestro.d.ts +22 -0
  41. package/dist/ai/maestro.d.ts.map +1 -0
  42. package/dist/ai/maestro.js +142 -0
  43. package/dist/ai/maestro.js.map +1 -0
  44. package/dist/ai/manager.d.ts +47 -0
  45. package/dist/ai/manager.d.ts.map +1 -0
  46. package/dist/ai/manager.js +450 -0
  47. package/dist/ai/manager.js.map +1 -0
  48. package/dist/ai/ollama.d.ts +16 -0
  49. package/dist/ai/ollama.d.ts.map +1 -0
  50. package/dist/ai/ollama.js +151 -0
  51. package/dist/ai/ollama.js.map +1 -0
  52. package/dist/ai/openai.d.ts +11 -0
  53. package/dist/ai/openai.d.ts.map +1 -0
  54. package/dist/ai/openai.js +132 -0
  55. package/dist/ai/openai.js.map +1 -0
  56. package/dist/ai/openrouter.d.ts +11 -0
  57. package/dist/ai/openrouter.d.ts.map +1 -0
  58. package/dist/ai/openrouter.js +139 -0
  59. package/dist/ai/openrouter.js.map +1 -0
  60. package/dist/bot/slack.d.ts +17 -0
  61. package/dist/bot/slack.d.ts.map +1 -0
  62. package/dist/bot/slack.js +144 -0
  63. package/dist/bot/slack.js.map +1 -0
  64. package/dist/bot/telegram.d.ts +19 -0
  65. package/dist/bot/telegram.d.ts.map +1 -0
  66. package/dist/bot/telegram.js +157 -0
  67. package/dist/bot/telegram.js.map +1 -0
  68. package/dist/cli/commands/ai.d.ts +4 -0
  69. package/dist/cli/commands/ai.d.ts.map +1 -0
  70. package/dist/cli/commands/ai.js +161 -0
  71. package/dist/cli/commands/ai.js.map +1 -0
  72. package/dist/cli/commands/doctor.d.ts +18 -0
  73. package/dist/cli/commands/doctor.d.ts.map +1 -0
  74. package/dist/cli/commands/doctor.js +213 -0
  75. package/dist/cli/commands/doctor.js.map +1 -0
  76. package/dist/cli/commands/init.d.ts +15 -0
  77. package/dist/cli/commands/init.d.ts.map +1 -0
  78. package/dist/cli/commands/init.js +281 -0
  79. package/dist/cli/commands/init.js.map +1 -0
  80. package/dist/cli/commands/install.d.ts +16 -0
  81. package/dist/cli/commands/install.d.ts.map +1 -0
  82. package/dist/cli/commands/install.js +750 -0
  83. package/dist/cli/commands/install.js.map +1 -0
  84. package/dist/cli/commands/lifecycle.d.ts +4 -0
  85. package/dist/cli/commands/lifecycle.d.ts.map +1 -0
  86. package/dist/cli/commands/lifecycle.js +84 -0
  87. package/dist/cli/commands/lifecycle.js.map +1 -0
  88. package/dist/cli/commands/marketplace.d.ts +13 -0
  89. package/dist/cli/commands/marketplace.d.ts.map +1 -0
  90. package/dist/cli/commands/marketplace.js +197 -0
  91. package/dist/cli/commands/marketplace.js.map +1 -0
  92. package/dist/cli/commands/mcp.d.ts +6 -0
  93. package/dist/cli/commands/mcp.d.ts.map +1 -0
  94. package/dist/cli/commands/mcp.js +83 -0
  95. package/dist/cli/commands/mcp.js.map +1 -0
  96. package/dist/cli/commands/onboard.d.ts +10 -0
  97. package/dist/cli/commands/onboard.d.ts.map +1 -0
  98. package/dist/cli/commands/onboard.js +207 -0
  99. package/dist/cli/commands/onboard.js.map +1 -0
  100. package/dist/cli/commands/plugin-create.d.ts +13 -0
  101. package/dist/cli/commands/plugin-create.d.ts.map +1 -0
  102. package/dist/cli/commands/plugin-create.js +122 -0
  103. package/dist/cli/commands/plugin-create.js.map +1 -0
  104. package/dist/cli/commands/plugins.d.ts +5 -0
  105. package/dist/cli/commands/plugins.d.ts.map +1 -0
  106. package/dist/cli/commands/plugins.js +30 -0
  107. package/dist/cli/commands/plugins.js.map +1 -0
  108. package/dist/cli/commands/release.d.ts +13 -0
  109. package/dist/cli/commands/release.d.ts.map +1 -0
  110. package/dist/cli/commands/release.js +243 -0
  111. package/dist/cli/commands/release.js.map +1 -0
  112. package/dist/cli/commands/telegram.d.ts +3 -0
  113. package/dist/cli/commands/telegram.d.ts.map +1 -0
  114. package/dist/cli/commands/telegram.js +20 -0
  115. package/dist/cli/commands/telegram.js.map +1 -0
  116. package/dist/cli/index.d.ts +3 -0
  117. package/dist/cli/index.d.ts.map +1 -0
  118. package/dist/cli/index.js +402 -0
  119. package/dist/cli/index.js.map +1 -0
  120. package/dist/config/oauth.d.ts +8 -0
  121. package/dist/config/oauth.d.ts.map +1 -0
  122. package/dist/config/oauth.js +13 -0
  123. package/dist/config/oauth.js.map +1 -0
  124. package/dist/core/audit.d.ts +91 -0
  125. package/dist/core/audit.d.ts.map +1 -0
  126. package/dist/core/audit.js +233 -0
  127. package/dist/core/audit.js.map +1 -0
  128. package/dist/core/circuit-breaker.d.ts +56 -0
  129. package/dist/core/circuit-breaker.d.ts.map +1 -0
  130. package/dist/core/circuit-breaker.js +107 -0
  131. package/dist/core/circuit-breaker.js.map +1 -0
  132. package/dist/core/conductor.d.ts +44 -0
  133. package/dist/core/conductor.d.ts.map +1 -0
  134. package/dist/core/conductor.js +200 -0
  135. package/dist/core/conductor.js.map +1 -0
  136. package/dist/core/config.d.ts +66 -0
  137. package/dist/core/config.d.ts.map +1 -0
  138. package/dist/core/config.js +86 -0
  139. package/dist/core/config.js.map +1 -0
  140. package/dist/core/database.d.ts +59 -0
  141. package/dist/core/database.d.ts.map +1 -0
  142. package/dist/core/database.js +342 -0
  143. package/dist/core/database.js.map +1 -0
  144. package/dist/core/errors.d.ts +231 -0
  145. package/dist/core/errors.d.ts.map +1 -0
  146. package/dist/core/errors.js +254 -0
  147. package/dist/core/errors.js.map +1 -0
  148. package/dist/core/health.d.ts +72 -0
  149. package/dist/core/health.d.ts.map +1 -0
  150. package/dist/core/health.js +116 -0
  151. package/dist/core/health.js.map +1 -0
  152. package/dist/core/interfaces.d.ts +62 -0
  153. package/dist/core/interfaces.d.ts.map +1 -0
  154. package/dist/core/interfaces.js +8 -0
  155. package/dist/core/interfaces.js.map +1 -0
  156. package/dist/core/logger.d.ts +15 -0
  157. package/dist/core/logger.d.ts.map +1 -0
  158. package/dist/core/logger.js +30 -0
  159. package/dist/core/logger.js.map +1 -0
  160. package/dist/core/rbac.d.ts +132 -0
  161. package/dist/core/rbac.d.ts.map +1 -0
  162. package/dist/core/rbac.js +230 -0
  163. package/dist/core/rbac.js.map +1 -0
  164. package/dist/core/retry.d.ts +22 -0
  165. package/dist/core/retry.d.ts.map +1 -0
  166. package/dist/core/retry.js +41 -0
  167. package/dist/core/retry.js.map +1 -0
  168. package/dist/core/webhooks.d.ts +92 -0
  169. package/dist/core/webhooks.d.ts.map +1 -0
  170. package/dist/core/webhooks.js +176 -0
  171. package/dist/core/webhooks.js.map +1 -0
  172. package/dist/core/zero-config.d.ts +22 -0
  173. package/dist/core/zero-config.d.ts.map +1 -0
  174. package/dist/core/zero-config.js +59 -0
  175. package/dist/core/zero-config.js.map +1 -0
  176. package/dist/dashboard/cli.d.ts +6 -0
  177. package/dist/dashboard/cli.d.ts.map +1 -0
  178. package/dist/dashboard/cli.js +42 -0
  179. package/dist/dashboard/cli.js.map +1 -0
  180. package/dist/dashboard/index.html +3426 -0
  181. package/dist/dashboard/server.d.ts +7 -0
  182. package/dist/dashboard/server.d.ts.map +1 -0
  183. package/dist/dashboard/server.js +1427 -0
  184. package/dist/dashboard/server.js.map +1 -0
  185. package/dist/mcp/server.d.ts +27 -0
  186. package/dist/mcp/server.d.ts.map +1 -0
  187. package/dist/mcp/server.js +380 -0
  188. package/dist/mcp/server.js.map +1 -0
  189. package/dist/mcp/tools/misc.d.ts +15 -0
  190. package/dist/mcp/tools/misc.d.ts.map +1 -0
  191. package/dist/mcp/tools/misc.js +49 -0
  192. package/dist/mcp/tools/misc.js.map +1 -0
  193. package/dist/plugins/builtin/calculator.d.ts +11 -0
  194. package/dist/plugins/builtin/calculator.d.ts.map +1 -0
  195. package/dist/plugins/builtin/calculator.js +166 -0
  196. package/dist/plugins/builtin/calculator.js.map +1 -0
  197. package/dist/plugins/builtin/colors.d.ts +15 -0
  198. package/dist/plugins/builtin/colors.d.ts.map +1 -0
  199. package/dist/plugins/builtin/colors.js +193 -0
  200. package/dist/plugins/builtin/colors.js.map +1 -0
  201. package/dist/plugins/builtin/cron.d.ts +40 -0
  202. package/dist/plugins/builtin/cron.d.ts.map +1 -0
  203. package/dist/plugins/builtin/cron.js +578 -0
  204. package/dist/plugins/builtin/cron.js.map +1 -0
  205. package/dist/plugins/builtin/crypto.d.ts +11 -0
  206. package/dist/plugins/builtin/crypto.d.ts.map +1 -0
  207. package/dist/plugins/builtin/crypto.js +83 -0
  208. package/dist/plugins/builtin/crypto.js.map +1 -0
  209. package/dist/plugins/builtin/database.d.ts +29 -0
  210. package/dist/plugins/builtin/database.d.ts.map +1 -0
  211. package/dist/plugins/builtin/database.js +230 -0
  212. package/dist/plugins/builtin/database.js.map +1 -0
  213. package/dist/plugins/builtin/docker.d.ts +12 -0
  214. package/dist/plugins/builtin/docker.d.ts.map +1 -0
  215. package/dist/plugins/builtin/docker.js +436 -0
  216. package/dist/plugins/builtin/docker.js.map +1 -0
  217. package/dist/plugins/builtin/fun.d.ts +11 -0
  218. package/dist/plugins/builtin/fun.d.ts.map +1 -0
  219. package/dist/plugins/builtin/fun.js +114 -0
  220. package/dist/plugins/builtin/fun.js.map +1 -0
  221. package/dist/plugins/builtin/gcal.d.ts +38 -0
  222. package/dist/plugins/builtin/gcal.d.ts.map +1 -0
  223. package/dist/plugins/builtin/gcal.js +280 -0
  224. package/dist/plugins/builtin/gcal.js.map +1 -0
  225. package/dist/plugins/builtin/gdrive.d.ts +26 -0
  226. package/dist/plugins/builtin/gdrive.d.ts.map +1 -0
  227. package/dist/plugins/builtin/gdrive.js +295 -0
  228. package/dist/plugins/builtin/gdrive.js.map +1 -0
  229. package/dist/plugins/builtin/github-actions.d.ts +38 -0
  230. package/dist/plugins/builtin/github-actions.d.ts.map +1 -0
  231. package/dist/plugins/builtin/github-actions.js +629 -0
  232. package/dist/plugins/builtin/github-actions.js.map +1 -0
  233. package/dist/plugins/builtin/github.d.ts +26 -0
  234. package/dist/plugins/builtin/github.d.ts.map +1 -0
  235. package/dist/plugins/builtin/github.js +800 -0
  236. package/dist/plugins/builtin/github.js.map +1 -0
  237. package/dist/plugins/builtin/gmail.d.ts +50 -0
  238. package/dist/plugins/builtin/gmail.d.ts.map +1 -0
  239. package/dist/plugins/builtin/gmail.js +445 -0
  240. package/dist/plugins/builtin/gmail.js.map +1 -0
  241. package/dist/plugins/builtin/hash.d.ts +11 -0
  242. package/dist/plugins/builtin/hash.d.ts.map +1 -0
  243. package/dist/plugins/builtin/hash.js +95 -0
  244. package/dist/plugins/builtin/hash.js.map +1 -0
  245. package/dist/plugins/builtin/homekit.d.ts +53 -0
  246. package/dist/plugins/builtin/homekit.d.ts.map +1 -0
  247. package/dist/plugins/builtin/homekit.js +341 -0
  248. package/dist/plugins/builtin/homekit.js.map +1 -0
  249. package/dist/plugins/builtin/index.d.ts +4 -0
  250. package/dist/plugins/builtin/index.d.ts.map +1 -0
  251. package/dist/plugins/builtin/index.js +96 -0
  252. package/dist/plugins/builtin/index.js.map +1 -0
  253. package/dist/plugins/builtin/jira.d.ts +50 -0
  254. package/dist/plugins/builtin/jira.d.ts.map +1 -0
  255. package/dist/plugins/builtin/jira.js +353 -0
  256. package/dist/plugins/builtin/jira.js.map +1 -0
  257. package/dist/plugins/builtin/linear.d.ts +35 -0
  258. package/dist/plugins/builtin/linear.d.ts.map +1 -0
  259. package/dist/plugins/builtin/linear.js +397 -0
  260. package/dist/plugins/builtin/linear.js.map +1 -0
  261. package/dist/plugins/builtin/lumen.d.ts +21 -0
  262. package/dist/plugins/builtin/lumen.d.ts.map +1 -0
  263. package/dist/plugins/builtin/lumen.js +404 -0
  264. package/dist/plugins/builtin/lumen.js.map +1 -0
  265. package/dist/plugins/builtin/memory.d.ts +22 -0
  266. package/dist/plugins/builtin/memory.d.ts.map +1 -0
  267. package/dist/plugins/builtin/memory.js +184 -0
  268. package/dist/plugins/builtin/memory.js.map +1 -0
  269. package/dist/plugins/builtin/n8n.d.ts +60 -0
  270. package/dist/plugins/builtin/n8n.d.ts.map +1 -0
  271. package/dist/plugins/builtin/n8n.js +519 -0
  272. package/dist/plugins/builtin/n8n.js.map +1 -0
  273. package/dist/plugins/builtin/network.d.ts +11 -0
  274. package/dist/plugins/builtin/network.d.ts.map +1 -0
  275. package/dist/plugins/builtin/network.js +88 -0
  276. package/dist/plugins/builtin/network.js.map +1 -0
  277. package/dist/plugins/builtin/notes.d.ts +47 -0
  278. package/dist/plugins/builtin/notes.d.ts.map +1 -0
  279. package/dist/plugins/builtin/notes.js +641 -0
  280. package/dist/plugins/builtin/notes.js.map +1 -0
  281. package/dist/plugins/builtin/notion.d.ts +47 -0
  282. package/dist/plugins/builtin/notion.d.ts.map +1 -0
  283. package/dist/plugins/builtin/notion.js +317 -0
  284. package/dist/plugins/builtin/notion.js.map +1 -0
  285. package/dist/plugins/builtin/shell.d.ts +12 -0
  286. package/dist/plugins/builtin/shell.d.ts.map +1 -0
  287. package/dist/plugins/builtin/shell.js +310 -0
  288. package/dist/plugins/builtin/shell.js.map +1 -0
  289. package/dist/plugins/builtin/slack.d.ts +31 -0
  290. package/dist/plugins/builtin/slack.d.ts.map +1 -0
  291. package/dist/plugins/builtin/slack.js +295 -0
  292. package/dist/plugins/builtin/slack.js.map +1 -0
  293. package/dist/plugins/builtin/spotify.d.ts +55 -0
  294. package/dist/plugins/builtin/spotify.d.ts.map +1 -0
  295. package/dist/plugins/builtin/spotify.js +623 -0
  296. package/dist/plugins/builtin/spotify.js.map +1 -0
  297. package/dist/plugins/builtin/stripe.d.ts +35 -0
  298. package/dist/plugins/builtin/stripe.d.ts.map +1 -0
  299. package/dist/plugins/builtin/stripe.js +376 -0
  300. package/dist/plugins/builtin/stripe.js.map +1 -0
  301. package/dist/plugins/builtin/system.d.ts +11 -0
  302. package/dist/plugins/builtin/system.d.ts.map +1 -0
  303. package/dist/plugins/builtin/system.js +91 -0
  304. package/dist/plugins/builtin/system.js.map +1 -0
  305. package/dist/plugins/builtin/text-tools.d.ts +11 -0
  306. package/dist/plugins/builtin/text-tools.d.ts.map +1 -0
  307. package/dist/plugins/builtin/text-tools.js +146 -0
  308. package/dist/plugins/builtin/text-tools.js.map +1 -0
  309. package/dist/plugins/builtin/timezone.d.ts +13 -0
  310. package/dist/plugins/builtin/timezone.d.ts.map +1 -0
  311. package/dist/plugins/builtin/timezone.js +164 -0
  312. package/dist/plugins/builtin/timezone.js.map +1 -0
  313. package/dist/plugins/builtin/todoist.d.ts +49 -0
  314. package/dist/plugins/builtin/todoist.d.ts.map +1 -0
  315. package/dist/plugins/builtin/todoist.js +540 -0
  316. package/dist/plugins/builtin/todoist.js.map +1 -0
  317. package/dist/plugins/builtin/translate.d.ts +11 -0
  318. package/dist/plugins/builtin/translate.d.ts.map +1 -0
  319. package/dist/plugins/builtin/translate.js +42 -0
  320. package/dist/plugins/builtin/translate.js.map +1 -0
  321. package/dist/plugins/builtin/url-tools.d.ts +11 -0
  322. package/dist/plugins/builtin/url-tools.d.ts.map +1 -0
  323. package/dist/plugins/builtin/url-tools.js +70 -0
  324. package/dist/plugins/builtin/url-tools.js.map +1 -0
  325. package/dist/plugins/builtin/vercel.d.ts +55 -0
  326. package/dist/plugins/builtin/vercel.d.ts.map +1 -0
  327. package/dist/plugins/builtin/vercel.js +514 -0
  328. package/dist/plugins/builtin/vercel.js.map +1 -0
  329. package/dist/plugins/builtin/weather.d.ts +13 -0
  330. package/dist/plugins/builtin/weather.d.ts.map +1 -0
  331. package/dist/plugins/builtin/weather.js +103 -0
  332. package/dist/plugins/builtin/weather.js.map +1 -0
  333. package/dist/plugins/builtin/x.d.ts +54 -0
  334. package/dist/plugins/builtin/x.d.ts.map +1 -0
  335. package/dist/plugins/builtin/x.js +402 -0
  336. package/dist/plugins/builtin/x.js.map +1 -0
  337. package/dist/plugins/manager.d.ts +77 -0
  338. package/dist/plugins/manager.d.ts.map +1 -0
  339. package/dist/plugins/manager.js +141 -0
  340. package/dist/plugins/manager.js.map +1 -0
  341. package/dist/plugins/validation.d.ts +18 -0
  342. package/dist/plugins/validation.d.ts.map +1 -0
  343. package/dist/plugins/validation.js +81 -0
  344. package/dist/plugins/validation.js.map +1 -0
  345. package/dist/security/auth.d.ts +23 -0
  346. package/dist/security/auth.d.ts.map +1 -0
  347. package/dist/security/auth.js +56 -0
  348. package/dist/security/auth.js.map +1 -0
  349. package/dist/security/keychain.d.ts +60 -0
  350. package/dist/security/keychain.d.ts.map +1 -0
  351. package/dist/security/keychain.js +213 -0
  352. package/dist/security/keychain.js.map +1 -0
  353. package/dist/utils/google-auth.d.ts +21 -0
  354. package/dist/utils/google-auth.d.ts.map +1 -0
  355. package/dist/utils/google-auth.js +135 -0
  356. package/dist/utils/google-auth.js.map +1 -0
  357. package/dist/utils/retry.d.ts +5 -0
  358. package/dist/utils/retry.d.ts.map +1 -0
  359. package/dist/utils/retry.js +34 -0
  360. package/dist/utils/retry.js.map +1 -0
  361. package/docs/README.md +13 -0
  362. package/docs/api.md +210 -0
  363. package/docs/getting-started.md +100 -0
  364. package/docs/plugins.md +306 -0
  365. package/docs-site/.vitepress/config.ts +59 -0
  366. package/docs-site/README.md +12 -0
  367. package/docs-site/index.md +30 -0
  368. package/eslint.config.js +29 -0
  369. package/install.ps1 +334 -0
  370. package/install.sh +1119 -0
  371. package/local-install.sh +304 -0
  372. package/package.json +90 -0
  373. package/packages/README.md +11 -0
  374. package/packages/plugin-sdk/README.md +12 -0
  375. package/packages/plugin-sdk/package.json +22 -0
  376. package/packages/plugin-sdk/src/README.md +11 -0
  377. package/packages/plugin-sdk/src/index.ts +191 -0
  378. package/sdks/README.md +26 -0
  379. package/sdks/csharp/ConductorClient.cs +65 -0
  380. package/sdks/csharp/README.md +11 -0
  381. package/sdks/go/README.md +11 -0
  382. package/sdks/go/conductor.go +257 -0
  383. package/sdks/java/ConductorClient.java +27 -0
  384. package/sdks/java/README.md +11 -0
  385. package/sdks/php/README.md +11 -0
  386. package/sdks/php/src/Client.php +72 -0
  387. package/sdks/python/README.md +12 -0
  388. package/sdks/python/conductor/__init__.py +227 -0
  389. package/sdks/python/pyproject.toml +30 -0
  390. package/sdks/ruby/README.md +11 -0
  391. package/sdks/ruby/lib/conductor.rb +46 -0
  392. package/sdks/rust/Cargo.toml +14 -0
  393. package/sdks/rust/README.md +11 -0
  394. package/sdks/swift/README.md +11 -0
  395. package/sdks/swift/Sources/Conductor/ConductorClient.swift +65 -0
  396. package/skills/conductor-mcp/SKILL.md +38 -0
  397. package/src/README.md +20 -0
  398. package/src/ai/README.md +18 -0
  399. package/src/ai/base.ts +93 -0
  400. package/src/ai/claude.ts +162 -0
  401. package/src/ai/gemini.ts +188 -0
  402. package/src/ai/maestro.ts +168 -0
  403. package/src/ai/manager.ts +537 -0
  404. package/src/ai/ollama.ts +186 -0
  405. package/src/ai/openai.ts +147 -0
  406. package/src/ai/openrouter.ts +152 -0
  407. package/src/bot/README.md +12 -0
  408. package/src/bot/slack.ts +164 -0
  409. package/src/bot/telegram.ts +185 -0
  410. package/src/cli/README.md +24 -0
  411. package/src/cli/commands/README.md +20 -0
  412. package/src/cli/commands/ai.ts +170 -0
  413. package/src/cli/commands/doctor.ts +221 -0
  414. package/src/cli/commands/init.ts +348 -0
  415. package/src/cli/commands/install.ts +792 -0
  416. package/src/cli/commands/lifecycle.ts +95 -0
  417. package/src/cli/commands/marketplace.ts +253 -0
  418. package/src/cli/commands/mcp.ts +92 -0
  419. package/src/cli/commands/onboard.ts +248 -0
  420. package/src/cli/commands/plugin-create.ts +130 -0
  421. package/src/cli/commands/plugins.ts +36 -0
  422. package/src/cli/commands/release.ts +251 -0
  423. package/src/cli/commands/telegram.ts +25 -0
  424. package/src/cli/index.ts +450 -0
  425. package/src/config/README.md +11 -0
  426. package/src/config/oauth.ts +26 -0
  427. package/src/core/README.md +22 -0
  428. package/src/core/audit.ts +291 -0
  429. package/src/core/circuit-breaker.ts +129 -0
  430. package/src/core/conductor.ts +240 -0
  431. package/src/core/config.ts +149 -0
  432. package/src/core/database.ts +411 -0
  433. package/src/core/errors.ts +275 -0
  434. package/src/core/health.ts +159 -0
  435. package/src/core/interfaces.ts +75 -0
  436. package/src/core/logger.ts +33 -0
  437. package/src/core/rbac.ts +321 -0
  438. package/src/core/retry.ts +61 -0
  439. package/src/core/webhooks.ts +234 -0
  440. package/src/core/zero-config.ts +72 -0
  441. package/src/dashboard/README.md +15 -0
  442. package/src/dashboard/cli.ts +48 -0
  443. package/src/dashboard/index.html +3426 -0
  444. package/src/dashboard/server.ts +1544 -0
  445. package/src/mcp/README.md +20 -0
  446. package/src/mcp/server.ts +475 -0
  447. package/src/mcp/tools/README.md +11 -0
  448. package/src/mcp/tools/misc.ts +61 -0
  449. package/src/plugins/README.md +28 -0
  450. package/src/plugins/builtin/README.md +23 -0
  451. package/src/plugins/builtin/calculator.ts +178 -0
  452. package/src/plugins/builtin/colors.ts +201 -0
  453. package/src/plugins/builtin/cron.ts +649 -0
  454. package/src/plugins/builtin/crypto.ts +85 -0
  455. package/src/plugins/builtin/database.ts +235 -0
  456. package/src/plugins/builtin/docker.ts +426 -0
  457. package/src/plugins/builtin/fun.ts +118 -0
  458. package/src/plugins/builtin/gcal.ts +305 -0
  459. package/src/plugins/builtin/gdrive.ts +326 -0
  460. package/src/plugins/builtin/github-actions.ts +666 -0
  461. package/src/plugins/builtin/github.ts +912 -0
  462. package/src/plugins/builtin/gmail.ts +492 -0
  463. package/src/plugins/builtin/hash.ts +98 -0
  464. package/src/plugins/builtin/homekit.ts +389 -0
  465. package/src/plugins/builtin/index.ts +116 -0
  466. package/src/plugins/builtin/jira.ts +380 -0
  467. package/src/plugins/builtin/linear.ts +448 -0
  468. package/src/plugins/builtin/lumen.ts +497 -0
  469. package/src/plugins/builtin/memory.ts +200 -0
  470. package/src/plugins/builtin/n8n.ts +565 -0
  471. package/src/plugins/builtin/network.ts +92 -0
  472. package/src/plugins/builtin/notes.ts +689 -0
  473. package/src/plugins/builtin/notion.ts +348 -0
  474. package/src/plugins/builtin/shell.ts +334 -0
  475. package/src/plugins/builtin/slack.ts +327 -0
  476. package/src/plugins/builtin/spotify.ts +665 -0
  477. package/src/plugins/builtin/stripe.ts +388 -0
  478. package/src/plugins/builtin/system.ts +93 -0
  479. package/src/plugins/builtin/text-tools.ts +150 -0
  480. package/src/plugins/builtin/timezone.ts +173 -0
  481. package/src/plugins/builtin/todoist.ts +625 -0
  482. package/src/plugins/builtin/translate.ts +47 -0
  483. package/src/plugins/builtin/url-tools.ts +73 -0
  484. package/src/plugins/builtin/vercel.ts +546 -0
  485. package/src/plugins/builtin/weather.ts +112 -0
  486. package/src/plugins/builtin/x.ts +440 -0
  487. package/src/plugins/manager.ts +213 -0
  488. package/src/plugins/validation.ts +94 -0
  489. package/src/security/README.md +12 -0
  490. package/src/security/auth.ts +72 -0
  491. package/src/security/keychain.ts +226 -0
  492. package/src/utils/README.md +12 -0
  493. package/src/utils/google-auth.ts +159 -0
  494. package/src/utils/retry.ts +41 -0
  495. package/test-all.mjs +1256 -0
  496. package/test.mjs +633 -0
  497. package/tests/README.md +19 -0
  498. package/tests/calculator.test.ts +54 -0
  499. package/tests/docker.test.ts +42 -0
  500. package/tests/load.test.ts +129 -0
  501. package/tests/mcp.test.ts +14 -0
  502. package/tests/shell.test.ts +42 -0
  503. package/tsconfig.json +21 -0
  504. package/vitest.config.ts +14 -0
@@ -0,0 +1,70 @@
1
+ export class URLToolsPlugin {
2
+ name = 'url-tools';
3
+ description = 'URL utilities — expand short links, check status, extract headers';
4
+ version = '1.0.0';
5
+ async initialize(_conductor) { }
6
+ isConfigured() {
7
+ return true;
8
+ }
9
+ getTools() {
10
+ return [
11
+ {
12
+ name: 'url_expand',
13
+ description: 'Expand a shortened URL to its final destination',
14
+ inputSchema: {
15
+ type: 'object',
16
+ properties: { url: { type: 'string', description: 'Short URL to expand' } },
17
+ required: ['url'],
18
+ },
19
+ handler: async (input) => {
20
+ const res = await fetch(input.url, { method: 'HEAD', redirect: 'follow' });
21
+ return { original: input.url, expanded: res.url, status: res.status };
22
+ },
23
+ },
24
+ {
25
+ name: 'url_status',
26
+ description: 'Check if a URL is accessible and get response details',
27
+ inputSchema: {
28
+ type: 'object',
29
+ properties: { url: { type: 'string', description: 'URL to check' } },
30
+ required: ['url'],
31
+ },
32
+ handler: async (input) => {
33
+ const start = Date.now();
34
+ try {
35
+ const res = await fetch(input.url, { method: 'HEAD', signal: AbortSignal.timeout(10000) });
36
+ const ms = Date.now() - start;
37
+ const headers = {};
38
+ for (const [k, v] of res.headers.entries()) {
39
+ if (['content-type', 'server', 'x-powered-by', 'content-length'].includes(k.toLowerCase())) {
40
+ headers[k] = v;
41
+ }
42
+ }
43
+ return { url: input.url, status: res.status, ok: res.ok, response_ms: ms, headers };
44
+ }
45
+ catch (e) {
46
+ return { url: input.url, ok: false, error: e.message, response_ms: Date.now() - start };
47
+ }
48
+ },
49
+ },
50
+ {
51
+ name: 'url_headers',
52
+ description: 'Get all HTTP response headers for a URL',
53
+ inputSchema: {
54
+ type: 'object',
55
+ properties: { url: { type: 'string', description: 'URL to inspect' } },
56
+ required: ['url'],
57
+ },
58
+ handler: async (input) => {
59
+ const res = await fetch(input.url, { method: 'HEAD' });
60
+ const headers = {};
61
+ res.headers.forEach((v, k) => {
62
+ headers[k] = v;
63
+ });
64
+ return { url: input.url, status: res.status, headers };
65
+ },
66
+ },
67
+ ];
68
+ }
69
+ }
70
+ //# sourceMappingURL=url-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-tools.js","sourceRoot":"","sources":["../../../src/plugins/builtin/url-tools.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Vercel Plugin — TheAlxLabs / Conductor
3
+ *
4
+ * Full Vercel project and deployment management:
5
+ * - Deployments: list, inspect, redeploy, cancel, rollback
6
+ * - Projects: list, create, update settings
7
+ * - Domains: list, add, verify, check DNS
8
+ * - Environment variables: read, add, update, delete (all environments)
9
+ * - Logs: stream deployment build logs
10
+ * - Teams: list projects across teams
11
+ * - Aliases: manage custom domains on deployments
12
+ *
13
+ * Setup:
14
+ * 1. https://vercel.com/account/tokens → Create Token
15
+ * 2. Run: conductor plugins config vercel token <YOUR_TOKEN>
16
+ *
17
+ * Keychain: vercel / token
18
+ * Optional: vercel / team_id (for team scoping)
19
+ */
20
+ import { Plugin, PluginTool } from '../manager.js';
21
+ import { Conductor } from '../../core/conductor.js';
22
+ export declare class VercelPlugin implements Plugin {
23
+ name: string;
24
+ description: string;
25
+ version: string;
26
+ configSchema: {
27
+ fields: ({
28
+ key: string;
29
+ label: string;
30
+ type: "password";
31
+ required: boolean;
32
+ secret: boolean;
33
+ service: string;
34
+ description: string;
35
+ } | {
36
+ key: string;
37
+ label: string;
38
+ type: "string";
39
+ required: boolean;
40
+ secret: boolean;
41
+ description: string;
42
+ service?: undefined;
43
+ })[];
44
+ setupInstructions: string;
45
+ };
46
+ private keychain;
47
+ initialize(conductor: Conductor): Promise<void>;
48
+ isConfigured(): boolean;
49
+ private getAuth;
50
+ private vercelFetch;
51
+ private formatDeployment;
52
+ private formatProject;
53
+ getTools(): PluginTool[];
54
+ }
55
+ //# sourceMappingURL=vercel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vercel.d.ts","sourceRoot":"","sources":["../../../src/plugins/builtin/vercel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKpD,qBAAa,YAAa,YAAW,MAAM;IACzC,IAAI,SAAY;IAChB,WAAW,SAAqG;IAChH,OAAO,SAAW;IAElB,YAAY;;;;;;;;;;;;;;;;;;;MAsBV;IAEF,OAAO,CAAC,QAAQ,CAAY;IAEtB,UAAU,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,YAAY,IAAI,OAAO;YAIT,OAAO;YAaP,WAAW;IA8BzB,OAAO,CAAC,gBAAgB;IA+BxB,OAAO,CAAC,aAAa;IA4BrB,QAAQ,IAAI,UAAU,EAAE;CA0XzB"}
@@ -0,0 +1,514 @@
1
+ /**
2
+ * Vercel Plugin — TheAlxLabs / Conductor
3
+ *
4
+ * Full Vercel project and deployment management:
5
+ * - Deployments: list, inspect, redeploy, cancel, rollback
6
+ * - Projects: list, create, update settings
7
+ * - Domains: list, add, verify, check DNS
8
+ * - Environment variables: read, add, update, delete (all environments)
9
+ * - Logs: stream deployment build logs
10
+ * - Teams: list projects across teams
11
+ * - Aliases: manage custom domains on deployments
12
+ *
13
+ * Setup:
14
+ * 1. https://vercel.com/account/tokens → Create Token
15
+ * 2. Run: conductor plugins config vercel token <YOUR_TOKEN>
16
+ *
17
+ * Keychain: vercel / token
18
+ * Optional: vercel / team_id (for team scoping)
19
+ */
20
+ import { Keychain } from '../../security/keychain.js';
21
+ const VERCEL_BASE = 'https://api.vercel.com';
22
+ export class VercelPlugin {
23
+ name = 'vercel';
24
+ description = 'Manage Vercel deployments, projects, domains, and environment variables — requires Vercel token';
25
+ version = '1.0.0';
26
+ configSchema = {
27
+ fields: [
28
+ {
29
+ key: 'token',
30
+ label: 'Vercel API Token',
31
+ type: 'password',
32
+ required: true,
33
+ secret: true,
34
+ service: 'vercel',
35
+ description: 'Copy your token from Vercel Account Settings > Tokens.',
36
+ },
37
+ {
38
+ key: 'team_id',
39
+ label: 'Vercel Team ID (Optional)',
40
+ type: 'string',
41
+ required: false,
42
+ secret: false,
43
+ description: 'Enter your Team ID to scope API calls to a specific team.',
44
+ },
45
+ ],
46
+ setupInstructions: '1. Go to vercel.com/account/tokens and create a new token. 2. If you are part of a team, copy the Team ID from your team settings page.',
47
+ };
48
+ keychain;
49
+ async initialize(conductor) {
50
+ this.keychain = new Keychain(conductor.getConfig().getConfigDir());
51
+ }
52
+ isConfigured() {
53
+ return true;
54
+ }
55
+ async getAuth() {
56
+ const token = await this.keychain.get('vercel', 'token');
57
+ if (!token) {
58
+ throw new Error('Vercel token not configured.\n' +
59
+ 'Get one at https://vercel.com/account/tokens\n' +
60
+ 'Then run: conductor plugins config vercel token <TOKEN>');
61
+ }
62
+ const teamId = await this.keychain.get('vercel', 'team_id');
63
+ return { token, teamId };
64
+ }
65
+ async vercelFetch(path, options = {}) {
66
+ const { token, teamId } = await this.getAuth();
67
+ const url = new URL(`${VERCEL_BASE}${path}`);
68
+ if (options.params) {
69
+ for (const [k, v] of Object.entries(options.params))
70
+ url.searchParams.set(k, v);
71
+ }
72
+ if (teamId)
73
+ url.searchParams.set('teamId', teamId);
74
+ const res = await fetch(url.toString(), {
75
+ method: options.method ?? 'GET',
76
+ headers: {
77
+ Authorization: `Bearer ${token}`,
78
+ 'Content-Type': 'application/json',
79
+ },
80
+ body: options.body ? JSON.stringify(options.body) : undefined,
81
+ });
82
+ if (res.status === 204)
83
+ return {};
84
+ if (!res.ok) {
85
+ const err = (await res.json().catch(() => ({})));
86
+ throw new Error(`Vercel API ${res.status}: ${err.error?.message ?? err.message ?? res.statusText}`);
87
+ }
88
+ return res.json();
89
+ }
90
+ // ── Formatters ──────────────────────────────────────────────────────────────
91
+ formatDeployment(d) {
92
+ const stateEmoji = {
93
+ READY: '✅',
94
+ ERROR: '❌',
95
+ BUILDING: '🔨',
96
+ QUEUED: '⏳',
97
+ CANCELED: '🚫',
98
+ INITIALIZING: '🔄',
99
+ };
100
+ return {
101
+ id: d.uid ?? d.id,
102
+ name: d.name,
103
+ url: d.url ? `https://${d.url}` : null,
104
+ state: d.readyState ?? d.state ?? 'UNKNOWN',
105
+ stateIcon: stateEmoji[d.readyState ?? d.state] ?? '❓',
106
+ target: d.target ?? 'preview',
107
+ branch: d.meta?.githubCommitRef ?? d.gitSource?.ref ?? null,
108
+ commit: {
109
+ sha: (d.meta?.githubCommitSha ?? d.gitSource?.sha ?? '').slice(0, 8),
110
+ message: d.meta?.githubCommitMessage ?? null,
111
+ author: d.meta?.githubCommitAuthorLogin ?? null,
112
+ },
113
+ createdAt: d.createdAt ? new Date(d.createdAt).toISOString() : null,
114
+ buildingAt: d.buildingAt ? new Date(d.buildingAt).toISOString() : null,
115
+ ready: d.ready ? new Date(d.ready).toISOString() : null,
116
+ buildDuration: d.buildingAt && d.ready ? `${Math.round((d.ready - d.buildingAt) / 1000)}s` : null,
117
+ aliases: d.aliases ?? [],
118
+ inspectUrl: `https://vercel.com/deployments/${d.uid ?? d.id}`,
119
+ };
120
+ }
121
+ formatProject(p) {
122
+ return {
123
+ id: p.id,
124
+ name: p.name,
125
+ framework: p.framework ?? 'unknown',
126
+ nodeVersion: p.nodeVersion ?? null,
127
+ latestDeployment: p.latestDeployments?.[0]
128
+ ? {
129
+ url: `https://${p.latestDeployments[0].url}`,
130
+ state: p.latestDeployments[0].readyState,
131
+ target: p.latestDeployments[0].target,
132
+ }
133
+ : null,
134
+ productionUrl: p.alias?.[0]?.domain ? `https://${p.alias[0].domain}` : null,
135
+ createdAt: p.createdAt ? new Date(p.createdAt).toISOString() : null,
136
+ updatedAt: p.updatedAt ? new Date(p.updatedAt).toISOString() : null,
137
+ gitRepo: p.link
138
+ ? {
139
+ provider: p.link.type,
140
+ repo: p.link.repo ?? p.link.projectName,
141
+ branch: p.link.productionBranch ?? 'main',
142
+ }
143
+ : null,
144
+ };
145
+ }
146
+ // ── Tools ───────────────────────────────────────────────────────────────────
147
+ getTools() {
148
+ return [
149
+ // ── vercel_projects ────────────────────────────────────────────────────
150
+ {
151
+ name: 'vercel_projects',
152
+ description: 'List all Vercel projects with their latest deployment status',
153
+ inputSchema: {
154
+ type: 'object',
155
+ properties: {
156
+ limit: { type: 'number', description: 'Max projects to return (default: 20)' },
157
+ search: { type: 'string', description: 'Filter by project name' },
158
+ },
159
+ },
160
+ handler: async ({ limit = 20, search }) => {
161
+ const params = { limit: String(Math.min(limit, 100)) };
162
+ if (search)
163
+ params.search = search;
164
+ const data = await this.vercelFetch('/v9/projects', { params });
165
+ return {
166
+ count: data.projects?.length ?? 0,
167
+ projects: (data.projects ?? []).map(this.formatProject.bind(this)),
168
+ };
169
+ },
170
+ },
171
+ // ── vercel_project ─────────────────────────────────────────────────────
172
+ {
173
+ name: 'vercel_project',
174
+ description: 'Get details about a specific Vercel project',
175
+ inputSchema: {
176
+ type: 'object',
177
+ properties: {
178
+ nameOrId: { type: 'string', description: 'Project name or ID' },
179
+ },
180
+ required: ['nameOrId'],
181
+ },
182
+ handler: async ({ nameOrId }) => {
183
+ const data = await this.vercelFetch(`/v9/projects/${encodeURIComponent(nameOrId)}`);
184
+ return this.formatProject(data);
185
+ },
186
+ },
187
+ // ── vercel_deployments ─────────────────────────────────────────────────
188
+ {
189
+ name: 'vercel_deployments',
190
+ description: 'List recent deployments, optionally filtered by project or state',
191
+ inputSchema: {
192
+ type: 'object',
193
+ properties: {
194
+ projectId: { type: 'string', description: 'Filter by project name or ID' },
195
+ state: {
196
+ type: 'string',
197
+ enum: ['BUILDING', 'ERROR', 'INITIALIZING', 'QUEUED', 'READY', 'CANCELED'],
198
+ description: 'Filter by deployment state',
199
+ },
200
+ target: {
201
+ type: 'string',
202
+ enum: ['production', 'preview'],
203
+ description: 'Filter by deployment target',
204
+ },
205
+ limit: { type: 'number', description: 'Max deployments (default: 10)' },
206
+ },
207
+ },
208
+ handler: async ({ projectId, state, target, limit = 10 }) => {
209
+ const params = { limit: String(Math.min(limit, 100)) };
210
+ if (projectId)
211
+ params.projectId = projectId;
212
+ if (state)
213
+ params.state = state;
214
+ if (target)
215
+ params.target = target;
216
+ const data = await this.vercelFetch('/v6/deployments', { params });
217
+ return {
218
+ count: data.deployments?.length ?? 0,
219
+ deployments: (data.deployments ?? []).map(this.formatDeployment.bind(this)),
220
+ };
221
+ },
222
+ },
223
+ // ── vercel_deployment ──────────────────────────────────────────────────
224
+ {
225
+ name: 'vercel_deployment',
226
+ description: 'Get full details of a specific deployment by ID or URL',
227
+ inputSchema: {
228
+ type: 'object',
229
+ properties: {
230
+ id: { type: 'string', description: 'Deployment ID (dpl_xxx) or URL' },
231
+ },
232
+ required: ['id'],
233
+ },
234
+ handler: async ({ id }) => {
235
+ // Accept full URLs
236
+ const deployId = id.includes('vercel.app') || id.includes('vercel.com') ? id.split('/').pop() : id;
237
+ const data = await this.vercelFetch(`/v13/deployments/${encodeURIComponent(deployId)}`);
238
+ return this.formatDeployment(data);
239
+ },
240
+ },
241
+ // ── vercel_redeploy ────────────────────────────────────────────────────
242
+ {
243
+ name: 'vercel_redeploy',
244
+ description: 'Redeploy an existing deployment (great for retrying failed builds)',
245
+ inputSchema: {
246
+ type: 'object',
247
+ properties: {
248
+ deploymentId: { type: 'string', description: 'Deployment ID to redeploy' },
249
+ target: {
250
+ type: 'string',
251
+ enum: ['production', 'preview'],
252
+ description: 'Override target environment',
253
+ },
254
+ },
255
+ required: ['deploymentId'],
256
+ },
257
+ handler: async ({ deploymentId, target }) => {
258
+ const body = {};
259
+ if (target)
260
+ body.target = target;
261
+ const data = await this.vercelFetch(`/v13/deployments/${deploymentId}/redeploy`, {
262
+ method: 'POST',
263
+ body,
264
+ });
265
+ return {
266
+ redeployed: true,
267
+ newDeployment: this.formatDeployment(data),
268
+ };
269
+ },
270
+ },
271
+ // ── vercel_cancel ──────────────────────────────────────────────────────
272
+ {
273
+ name: 'vercel_cancel',
274
+ description: 'Cancel a deployment that is currently building or queued',
275
+ requiresApproval: true,
276
+ inputSchema: {
277
+ type: 'object',
278
+ properties: {
279
+ deploymentId: { type: 'string', description: 'Deployment ID to cancel' },
280
+ },
281
+ required: ['deploymentId'],
282
+ },
283
+ handler: async ({ deploymentId }) => {
284
+ await this.vercelFetch(`/v12/deployments/${deploymentId}/cancel`, { method: 'PATCH' });
285
+ return { cancelled: true, deploymentId };
286
+ },
287
+ },
288
+ // ── vercel_logs ────────────────────────────────────────────────────────
289
+ {
290
+ name: 'vercel_logs',
291
+ description: 'Get build logs for a deployment',
292
+ inputSchema: {
293
+ type: 'object',
294
+ properties: {
295
+ deploymentId: { type: 'string', description: 'Deployment ID' },
296
+ limit: { type: 'number', description: 'Max log lines (default: 100)' },
297
+ direction: {
298
+ type: 'string',
299
+ enum: ['forward', 'backward'],
300
+ description: 'Log order — backward = most recent first (default)',
301
+ },
302
+ },
303
+ required: ['deploymentId'],
304
+ },
305
+ handler: async ({ deploymentId, limit = 100, direction = 'backward' }) => {
306
+ const data = await this.vercelFetch(`/v2/deployments/${deploymentId}/events`, {
307
+ params: { limit: String(Math.min(limit, 2000)), direction },
308
+ });
309
+ const events = Array.isArray(data) ? data : (data.events ?? []);
310
+ const lines = events
311
+ .filter((e) => e.type === 'stdout' || e.type === 'stderr' || e.type === 'command')
312
+ .map((e) => ({
313
+ type: e.type,
314
+ text: e.payload?.text ?? e.text ?? '',
315
+ date: e.date ? new Date(e.date).toISOString() : null,
316
+ }));
317
+ return {
318
+ count: lines.length,
319
+ deploymentId,
320
+ logs: lines,
321
+ };
322
+ },
323
+ },
324
+ // ── vercel_env_list ────────────────────────────────────────────────────
325
+ {
326
+ name: 'vercel_env_list',
327
+ description: 'List environment variables for a Vercel project',
328
+ inputSchema: {
329
+ type: 'object',
330
+ properties: {
331
+ projectId: { type: 'string', description: 'Project name or ID' },
332
+ },
333
+ required: ['projectId'],
334
+ },
335
+ handler: async ({ projectId }) => {
336
+ const data = await this.vercelFetch(`/v9/projects/${encodeURIComponent(projectId)}/env`);
337
+ return {
338
+ count: data.envs?.length ?? 0,
339
+ envs: (data.envs ?? []).map((e) => ({
340
+ id: e.id,
341
+ key: e.key,
342
+ value: e.value ?? '[encrypted]',
343
+ type: e.type,
344
+ targets: e.target ?? [],
345
+ createdAt: e.createdAt ? new Date(e.createdAt).toISOString() : null,
346
+ updatedAt: e.updatedAt ? new Date(e.updatedAt).toISOString() : null,
347
+ })),
348
+ };
349
+ },
350
+ },
351
+ // ── vercel_env_add ─────────────────────────────────────────────────────
352
+ {
353
+ name: 'vercel_env_add',
354
+ description: 'Add or update an environment variable on a Vercel project',
355
+ inputSchema: {
356
+ type: 'object',
357
+ properties: {
358
+ projectId: { type: 'string', description: 'Project name or ID' },
359
+ key: { type: 'string', description: 'Environment variable name' },
360
+ value: { type: 'string', description: 'Environment variable value' },
361
+ targets: {
362
+ type: 'array',
363
+ items: { type: 'string', enum: ['production', 'preview', 'development'] },
364
+ description: 'Deployment targets (default: all three)',
365
+ },
366
+ type: {
367
+ type: 'string',
368
+ enum: ['plain', 'secret', 'encrypted'],
369
+ description: 'Variable type (default: encrypted)',
370
+ },
371
+ },
372
+ required: ['projectId', 'key', 'value'],
373
+ },
374
+ handler: async ({ projectId, key, value, targets = ['production', 'preview', 'development'], type = 'encrypted', }) => {
375
+ const data = await this.vercelFetch(`/v10/projects/${encodeURIComponent(projectId)}/env`, {
376
+ method: 'POST',
377
+ body: { key, value, target: targets, type },
378
+ });
379
+ const created = Array.isArray(data) ? data[0] : data;
380
+ return {
381
+ added: true,
382
+ id: created?.id,
383
+ key,
384
+ targets,
385
+ type,
386
+ };
387
+ },
388
+ },
389
+ // ── vercel_env_delete ──────────────────────────────────────────────────
390
+ {
391
+ name: 'vercel_env_delete',
392
+ description: 'Delete an environment variable from a Vercel project',
393
+ requiresApproval: true,
394
+ inputSchema: {
395
+ type: 'object',
396
+ properties: {
397
+ projectId: { type: 'string', description: 'Project name or ID' },
398
+ envId: { type: 'string', description: 'Env var ID (from vercel_env_list)' },
399
+ },
400
+ required: ['projectId', 'envId'],
401
+ },
402
+ handler: async ({ projectId, envId }) => {
403
+ await this.vercelFetch(`/v9/projects/${encodeURIComponent(projectId)}/env/${envId}`, { method: 'DELETE' });
404
+ return { deleted: true, envId };
405
+ },
406
+ },
407
+ // ── vercel_domains ─────────────────────────────────────────────────────
408
+ {
409
+ name: 'vercel_domains',
410
+ description: 'List domains for a project or your entire account',
411
+ inputSchema: {
412
+ type: 'object',
413
+ properties: {
414
+ projectId: {
415
+ type: 'string',
416
+ description: 'Project name or ID (omit for account-level domains)',
417
+ },
418
+ },
419
+ },
420
+ handler: async ({ projectId }) => {
421
+ let data;
422
+ if (projectId) {
423
+ data = await this.vercelFetch(`/v9/projects/${encodeURIComponent(projectId)}/domains`);
424
+ }
425
+ else {
426
+ data = await this.vercelFetch('/v5/domains');
427
+ }
428
+ const domains = data.domains ?? data;
429
+ return {
430
+ count: domains.length,
431
+ domains: domains.map((d) => ({
432
+ name: d.name,
433
+ apexName: d.apexName ?? d.name,
434
+ verified: d.verified ?? false,
435
+ configured: d.misconfigured === false,
436
+ redirect: d.redirect ?? null,
437
+ createdAt: d.createdAt ? new Date(d.createdAt).toISOString() : null,
438
+ })),
439
+ };
440
+ },
441
+ },
442
+ // ── vercel_add_domain ──────────────────────────────────────────────────
443
+ {
444
+ name: 'vercel_add_domain',
445
+ description: 'Add a custom domain to a Vercel project',
446
+ requiresApproval: true,
447
+ inputSchema: {
448
+ type: 'object',
449
+ properties: {
450
+ projectId: { type: 'string', description: 'Project name or ID' },
451
+ domain: { type: 'string', description: 'Domain name to add (e.g. app.yourdomain.com)' },
452
+ },
453
+ required: ['projectId', 'domain'],
454
+ },
455
+ handler: async ({ projectId, domain }) => {
456
+ const data = await this.vercelFetch(`/v10/projects/${encodeURIComponent(projectId)}/domains`, {
457
+ method: 'POST',
458
+ body: { name: domain },
459
+ });
460
+ return {
461
+ added: true,
462
+ name: data.name,
463
+ verified: data.verified,
464
+ verification: data.verification ?? [],
465
+ };
466
+ },
467
+ },
468
+ // ── vercel_team_info ───────────────────────────────────────────────────
469
+ {
470
+ name: 'vercel_team_info',
471
+ description: 'Get your Vercel account or team info and usage',
472
+ inputSchema: { type: 'object', properties: {} },
473
+ handler: async () => {
474
+ const { teamId } = await this.getAuth();
475
+ const data = teamId ? await this.vercelFetch(`/v2/teams/${teamId}`) : await this.vercelFetch('/v2/user');
476
+ return {
477
+ id: data.id ?? data.uid,
478
+ name: data.name ?? data.username,
479
+ email: data.email ?? null,
480
+ plan: data.plan?.id ?? data.subscription?.plan ?? null,
481
+ avatar: data.avatar ?? null,
482
+ createdAt: data.createdAt ? new Date(data.createdAt).toISOString() : null,
483
+ };
484
+ },
485
+ },
486
+ // ── vercel_set_team ────────────────────────────────────────────────────
487
+ {
488
+ name: 'vercel_set_team',
489
+ description: 'Set the active Vercel team scope for all API calls',
490
+ inputSchema: {
491
+ type: 'object',
492
+ properties: {
493
+ teamId: {
494
+ type: 'string',
495
+ description: 'Team ID or slug (set to empty string to use personal account)',
496
+ },
497
+ },
498
+ required: ['teamId'],
499
+ },
500
+ handler: async ({ teamId }) => {
501
+ if (teamId) {
502
+ await this.keychain.set('vercel', 'team_id', teamId);
503
+ return { set: true, teamId, scope: 'team' };
504
+ }
505
+ else {
506
+ await this.keychain.set('vercel', 'team_id', '');
507
+ return { set: true, teamId: null, scope: 'personal' };
508
+ }
509
+ },
510
+ },
511
+ ];
512
+ }
513
+ }
514
+ //# sourceMappingURL=vercel.js.map