@agentuity/cli 1.0.52 → 1.0.54

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 (348) hide show
  1. package/dist/auth.d.ts +1 -1
  2. package/dist/auth.d.ts.map +1 -1
  3. package/dist/auth.js +12 -1
  4. package/dist/auth.js.map +1 -1
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +19 -5
  7. package/dist/cli.js.map +1 -1
  8. package/dist/cmd/auth/ssh/delete.js +1 -1
  9. package/dist/cmd/auth/ssh/delete.js.map +1 -1
  10. package/dist/cmd/build/ci.d.ts +18 -0
  11. package/dist/cmd/build/ci.d.ts.map +1 -0
  12. package/dist/cmd/build/ci.js +181 -0
  13. package/dist/cmd/build/ci.js.map +1 -0
  14. package/dist/cmd/build/index.d.ts.map +1 -1
  15. package/dist/cmd/build/index.js +45 -14
  16. package/dist/cmd/build/index.js.map +1 -1
  17. package/dist/cmd/cloud/agent/get.d.ts.map +1 -1
  18. package/dist/cmd/cloud/agent/get.js +1 -0
  19. package/dist/cmd/cloud/agent/get.js.map +1 -1
  20. package/dist/cmd/cloud/apikey/delete.js +1 -1
  21. package/dist/cmd/cloud/apikey/delete.js.map +1 -1
  22. package/dist/cmd/cloud/apikey/get.d.ts.map +1 -1
  23. package/dist/cmd/cloud/apikey/get.js +1 -0
  24. package/dist/cmd/cloud/apikey/get.js.map +1 -1
  25. package/dist/cmd/cloud/apikey/index.d.ts.map +1 -1
  26. package/dist/cmd/cloud/apikey/index.js +1 -0
  27. package/dist/cmd/cloud/apikey/index.js.map +1 -1
  28. package/dist/cmd/cloud/db/delete.js +1 -1
  29. package/dist/cmd/cloud/db/delete.js.map +1 -1
  30. package/dist/cmd/cloud/deployment/remove.js +17 -17
  31. package/dist/cmd/cloud/deployment/remove.js.map +1 -1
  32. package/dist/cmd/cloud/deployment/show.js +1 -1
  33. package/dist/cmd/cloud/deployment/show.js.map +1 -1
  34. package/dist/cmd/cloud/email/create.js +1 -1
  35. package/dist/cmd/cloud/email/create.js.map +1 -1
  36. package/dist/cmd/cloud/email/delete.js +1 -1
  37. package/dist/cmd/cloud/email/delete.js.map +1 -1
  38. package/dist/cmd/cloud/email/destination/delete.js +1 -1
  39. package/dist/cmd/cloud/email/destination/delete.js.map +1 -1
  40. package/dist/cmd/cloud/email/get.d.ts.map +1 -1
  41. package/dist/cmd/cloud/email/get.js +1 -0
  42. package/dist/cmd/cloud/email/get.js.map +1 -1
  43. package/dist/cmd/cloud/email/inbound/get.d.ts.map +1 -1
  44. package/dist/cmd/cloud/email/inbound/get.js +1 -0
  45. package/dist/cmd/cloud/email/inbound/get.js.map +1 -1
  46. package/dist/cmd/cloud/email/outbound/get.d.ts.map +1 -1
  47. package/dist/cmd/cloud/email/outbound/get.js +1 -0
  48. package/dist/cmd/cloud/email/outbound/get.js.map +1 -1
  49. package/dist/cmd/cloud/env/delete.js +1 -1
  50. package/dist/cmd/cloud/env/delete.js.map +1 -1
  51. package/dist/cmd/cloud/env/get.d.ts.map +1 -1
  52. package/dist/cmd/cloud/env/get.js +1 -0
  53. package/dist/cmd/cloud/env/get.js.map +1 -1
  54. package/dist/cmd/cloud/eval/get.d.ts.map +1 -1
  55. package/dist/cmd/cloud/eval/get.js +1 -0
  56. package/dist/cmd/cloud/eval/get.js.map +1 -1
  57. package/dist/cmd/cloud/eval/index.d.ts.map +1 -1
  58. package/dist/cmd/cloud/eval/index.js +1 -0
  59. package/dist/cmd/cloud/eval/index.js.map +1 -1
  60. package/dist/cmd/cloud/eval/list.js +1 -1
  61. package/dist/cmd/cloud/eval/list.js.map +1 -1
  62. package/dist/cmd/cloud/eval-run/get.d.ts.map +1 -1
  63. package/dist/cmd/cloud/eval-run/get.js +1 -0
  64. package/dist/cmd/cloud/eval-run/get.js.map +1 -1
  65. package/dist/cmd/cloud/eval-run/index.d.ts.map +1 -1
  66. package/dist/cmd/cloud/eval-run/index.js +1 -0
  67. package/dist/cmd/cloud/eval-run/index.js.map +1 -1
  68. package/dist/cmd/cloud/eval-run/list.js +1 -1
  69. package/dist/cmd/cloud/eval-run/list.js.map +1 -1
  70. package/dist/cmd/cloud/keyvalue/delete-namespace.js +1 -1
  71. package/dist/cmd/cloud/keyvalue/delete-namespace.js.map +1 -1
  72. package/dist/cmd/cloud/keyvalue/delete.js +1 -1
  73. package/dist/cmd/cloud/keyvalue/delete.js.map +1 -1
  74. package/dist/cmd/cloud/keyvalue/get.d.ts.map +1 -1
  75. package/dist/cmd/cloud/keyvalue/get.js +1 -0
  76. package/dist/cmd/cloud/keyvalue/get.js.map +1 -1
  77. package/dist/cmd/cloud/keyvalue/index.js +1 -1
  78. package/dist/cmd/cloud/keyvalue/index.js.map +1 -1
  79. package/dist/cmd/cloud/machine/delete.js +1 -1
  80. package/dist/cmd/cloud/machine/delete.js.map +1 -1
  81. package/dist/cmd/cloud/oidc/delete.js +1 -1
  82. package/dist/cmd/cloud/oidc/delete.js.map +1 -1
  83. package/dist/cmd/cloud/oidc/get.d.ts.map +1 -1
  84. package/dist/cmd/cloud/oidc/get.js +1 -0
  85. package/dist/cmd/cloud/oidc/get.js.map +1 -1
  86. package/dist/cmd/cloud/queue/create.d.ts.map +1 -1
  87. package/dist/cmd/cloud/queue/create.js +1 -0
  88. package/dist/cmd/cloud/queue/create.js.map +1 -1
  89. package/dist/cmd/cloud/queue/delete.js +1 -1
  90. package/dist/cmd/cloud/queue/delete.js.map +1 -1
  91. package/dist/cmd/cloud/queue/get.d.ts.map +1 -1
  92. package/dist/cmd/cloud/queue/get.js +1 -0
  93. package/dist/cmd/cloud/queue/get.js.map +1 -1
  94. package/dist/cmd/cloud/redis/get.js +1 -1
  95. package/dist/cmd/cloud/redis/get.js.map +1 -1
  96. package/dist/cmd/cloud/sandbox/checkpoint/create.d.ts.map +1 -1
  97. package/dist/cmd/cloud/sandbox/checkpoint/create.js +1 -0
  98. package/dist/cmd/cloud/sandbox/checkpoint/create.js.map +1 -1
  99. package/dist/cmd/cloud/sandbox/checkpoint/delete.js +1 -1
  100. package/dist/cmd/cloud/sandbox/checkpoint/delete.js.map +1 -1
  101. package/dist/cmd/cloud/sandbox/checkpoint/index.js +1 -1
  102. package/dist/cmd/cloud/sandbox/checkpoint/index.js.map +1 -1
  103. package/dist/cmd/cloud/sandbox/create.d.ts.map +1 -1
  104. package/dist/cmd/cloud/sandbox/create.js +1 -0
  105. package/dist/cmd/cloud/sandbox/create.js.map +1 -1
  106. package/dist/cmd/cloud/sandbox/delete.js +1 -1
  107. package/dist/cmd/cloud/sandbox/delete.js.map +1 -1
  108. package/dist/cmd/cloud/sandbox/execution/index.js +1 -1
  109. package/dist/cmd/cloud/sandbox/execution/index.js.map +1 -1
  110. package/dist/cmd/cloud/sandbox/execution/list.js +2 -2
  111. package/dist/cmd/cloud/sandbox/execution/list.js.map +1 -1
  112. package/dist/cmd/cloud/sandbox/fs/cp.d.ts +3 -0
  113. package/dist/cmd/cloud/sandbox/fs/cp.d.ts.map +1 -0
  114. package/dist/cmd/cloud/sandbox/{cp.js → fs/cp.js} +13 -13
  115. package/dist/cmd/cloud/sandbox/fs/cp.js.map +1 -0
  116. package/dist/cmd/cloud/sandbox/fs/download.d.ts +3 -0
  117. package/dist/cmd/cloud/sandbox/fs/download.d.ts.map +1 -0
  118. package/dist/cmd/cloud/sandbox/{download.js → fs/download.js} +7 -7
  119. package/dist/cmd/cloud/sandbox/fs/download.js.map +1 -0
  120. package/dist/cmd/cloud/sandbox/fs/index.d.ts +2 -0
  121. package/dist/cmd/cloud/sandbox/fs/index.d.ts.map +1 -0
  122. package/dist/cmd/cloud/sandbox/fs/index.js +36 -0
  123. package/dist/cmd/cloud/sandbox/fs/index.js.map +1 -0
  124. package/dist/cmd/cloud/sandbox/fs/ls.d.ts +3 -0
  125. package/dist/cmd/cloud/sandbox/fs/ls.d.ts.map +1 -0
  126. package/dist/cmd/cloud/sandbox/{ls.js → fs/ls.js} +10 -10
  127. package/dist/cmd/cloud/sandbox/fs/ls.js.map +1 -0
  128. package/dist/cmd/cloud/sandbox/fs/mkdir.d.ts +3 -0
  129. package/dist/cmd/cloud/sandbox/fs/mkdir.d.ts.map +1 -0
  130. package/dist/cmd/cloud/sandbox/{mkdir.js → fs/mkdir.js} +6 -6
  131. package/dist/cmd/cloud/sandbox/fs/mkdir.js.map +1 -0
  132. package/dist/cmd/cloud/sandbox/fs/rm.d.ts +3 -0
  133. package/dist/cmd/cloud/sandbox/fs/rm.d.ts.map +1 -0
  134. package/dist/cmd/cloud/sandbox/{rm.js → fs/rm.js} +6 -5
  135. package/dist/cmd/cloud/sandbox/fs/rm.js.map +1 -0
  136. package/dist/cmd/cloud/sandbox/fs/rmdir.d.ts +3 -0
  137. package/dist/cmd/cloud/sandbox/fs/rmdir.d.ts.map +1 -0
  138. package/dist/cmd/cloud/sandbox/{rmdir.js → fs/rmdir.js} +6 -6
  139. package/dist/cmd/cloud/sandbox/fs/rmdir.js.map +1 -0
  140. package/dist/cmd/cloud/sandbox/fs/upload.d.ts +3 -0
  141. package/dist/cmd/cloud/sandbox/fs/upload.d.ts.map +1 -0
  142. package/dist/cmd/cloud/sandbox/{upload.js → fs/upload.js} +7 -7
  143. package/dist/cmd/cloud/sandbox/fs/upload.js.map +1 -0
  144. package/dist/cmd/cloud/sandbox/index.d.ts.map +1 -1
  145. package/dist/cmd/cloud/sandbox/index.js +2 -14
  146. package/dist/cmd/cloud/sandbox/index.js.map +1 -1
  147. package/dist/cmd/cloud/sandbox/job/create.d.ts.map +1 -1
  148. package/dist/cmd/cloud/sandbox/job/create.js +1 -0
  149. package/dist/cmd/cloud/sandbox/job/create.js.map +1 -1
  150. package/dist/cmd/cloud/sandbox/job/get.d.ts.map +1 -1
  151. package/dist/cmd/cloud/sandbox/job/get.js +1 -0
  152. package/dist/cmd/cloud/sandbox/job/get.js.map +1 -1
  153. package/dist/cmd/cloud/sandbox/runtime/index.js +1 -1
  154. package/dist/cmd/cloud/sandbox/runtime/index.js.map +1 -1
  155. package/dist/cmd/cloud/sandbox/snapshot/create.d.ts.map +1 -1
  156. package/dist/cmd/cloud/sandbox/snapshot/create.js +1 -0
  157. package/dist/cmd/cloud/sandbox/snapshot/create.js.map +1 -1
  158. package/dist/cmd/cloud/sandbox/snapshot/delete.js +1 -1
  159. package/dist/cmd/cloud/sandbox/snapshot/delete.js.map +1 -1
  160. package/dist/cmd/cloud/sandbox/snapshot/index.js +1 -1
  161. package/dist/cmd/cloud/sandbox/snapshot/index.js.map +1 -1
  162. package/dist/cmd/cloud/schedule/create.d.ts.map +1 -1
  163. package/dist/cmd/cloud/schedule/create.js +1 -0
  164. package/dist/cmd/cloud/schedule/create.js.map +1 -1
  165. package/dist/cmd/cloud/schedule/delete.js +1 -1
  166. package/dist/cmd/cloud/schedule/delete.js.map +1 -1
  167. package/dist/cmd/cloud/schedule/delivery/get.d.ts.map +1 -1
  168. package/dist/cmd/cloud/schedule/delivery/get.js +1 -0
  169. package/dist/cmd/cloud/schedule/delivery/get.js.map +1 -1
  170. package/dist/cmd/cloud/schedule/destination/create.d.ts.map +1 -1
  171. package/dist/cmd/cloud/schedule/destination/create.js +1 -0
  172. package/dist/cmd/cloud/schedule/destination/create.js.map +1 -1
  173. package/dist/cmd/cloud/schedule/destination/delete.js +1 -1
  174. package/dist/cmd/cloud/schedule/destination/delete.js.map +1 -1
  175. package/dist/cmd/cloud/schedule/destination/get.d.ts.map +1 -1
  176. package/dist/cmd/cloud/schedule/destination/get.js +1 -0
  177. package/dist/cmd/cloud/schedule/destination/get.js.map +1 -1
  178. package/dist/cmd/cloud/schedule/get.d.ts.map +1 -1
  179. package/dist/cmd/cloud/schedule/get.js +1 -0
  180. package/dist/cmd/cloud/schedule/get.js.map +1 -1
  181. package/dist/cmd/cloud/session/get.d.ts.map +1 -1
  182. package/dist/cmd/cloud/session/get.js +1 -0
  183. package/dist/cmd/cloud/session/get.js.map +1 -1
  184. package/dist/cmd/cloud/session/index.d.ts.map +1 -1
  185. package/dist/cmd/cloud/session/index.js +1 -0
  186. package/dist/cmd/cloud/session/index.js.map +1 -1
  187. package/dist/cmd/cloud/session/list.js +1 -1
  188. package/dist/cmd/cloud/session/list.js.map +1 -1
  189. package/dist/cmd/cloud/storage/delete.js +1 -1
  190. package/dist/cmd/cloud/storage/delete.js.map +1 -1
  191. package/dist/cmd/cloud/stream/delete.js +1 -1
  192. package/dist/cmd/cloud/stream/delete.js.map +1 -1
  193. package/dist/cmd/cloud/stream/get.d.ts.map +1 -1
  194. package/dist/cmd/cloud/stream/get.js +1 -0
  195. package/dist/cmd/cloud/stream/get.js.map +1 -1
  196. package/dist/cmd/cloud/task/delete.js +1 -1
  197. package/dist/cmd/cloud/task/delete.js.map +1 -1
  198. package/dist/cmd/cloud/task/index.d.ts.map +1 -1
  199. package/dist/cmd/cloud/task/index.js +1 -0
  200. package/dist/cmd/cloud/task/index.js.map +1 -1
  201. package/dist/cmd/cloud/thread/delete.js +1 -1
  202. package/dist/cmd/cloud/thread/delete.js.map +1 -1
  203. package/dist/cmd/cloud/thread/get.d.ts.map +1 -1
  204. package/dist/cmd/cloud/thread/get.js +1 -0
  205. package/dist/cmd/cloud/thread/get.js.map +1 -1
  206. package/dist/cmd/cloud/thread/index.d.ts.map +1 -1
  207. package/dist/cmd/cloud/thread/index.js +1 -0
  208. package/dist/cmd/cloud/thread/index.js.map +1 -1
  209. package/dist/cmd/cloud/thread/list.js +1 -1
  210. package/dist/cmd/cloud/thread/list.js.map +1 -1
  211. package/dist/cmd/cloud/vector/delete-namespace.js +1 -1
  212. package/dist/cmd/cloud/vector/delete-namespace.js.map +1 -1
  213. package/dist/cmd/cloud/vector/delete.js +1 -1
  214. package/dist/cmd/cloud/vector/delete.js.map +1 -1
  215. package/dist/cmd/cloud/vector/get.d.ts.map +1 -1
  216. package/dist/cmd/cloud/vector/get.js +1 -0
  217. package/dist/cmd/cloud/vector/get.js.map +1 -1
  218. package/dist/cmd/cloud/vector/index.js +1 -1
  219. package/dist/cmd/cloud/vector/index.js.map +1 -1
  220. package/dist/cmd/cloud/webhook/create.d.ts.map +1 -1
  221. package/dist/cmd/cloud/webhook/create.js +1 -0
  222. package/dist/cmd/cloud/webhook/create.js.map +1 -1
  223. package/dist/cmd/cloud/webhook/delete.js +1 -1
  224. package/dist/cmd/cloud/webhook/delete.js.map +1 -1
  225. package/dist/cmd/cloud/webhook/get.d.ts.map +1 -1
  226. package/dist/cmd/cloud/webhook/get.js +1 -0
  227. package/dist/cmd/cloud/webhook/get.js.map +1 -1
  228. package/dist/cmd/git/account/remove.d.ts.map +1 -1
  229. package/dist/cmd/git/account/remove.js +1 -0
  230. package/dist/cmd/git/account/remove.js.map +1 -1
  231. package/dist/cmd/profile/delete.js +1 -1
  232. package/dist/cmd/profile/delete.js.map +1 -1
  233. package/dist/cmd/project/delete.js +1 -1
  234. package/dist/cmd/project/delete.js.map +1 -1
  235. package/dist/cmd/project/hostname/get.d.ts.map +1 -1
  236. package/dist/cmd/project/hostname/get.js +1 -0
  237. package/dist/cmd/project/hostname/get.js.map +1 -1
  238. package/package.json +6 -6
  239. package/src/auth.ts +12 -2
  240. package/src/cli.ts +19 -5
  241. package/src/cmd/auth/ssh/delete.ts +1 -1
  242. package/src/cmd/build/ci.ts +223 -0
  243. package/src/cmd/build/index.ts +55 -14
  244. package/src/cmd/cloud/agent/get.ts +1 -0
  245. package/src/cmd/cloud/apikey/delete.ts +1 -1
  246. package/src/cmd/cloud/apikey/get.ts +1 -0
  247. package/src/cmd/cloud/apikey/index.ts +1 -0
  248. package/src/cmd/cloud/db/delete.ts +1 -1
  249. package/src/cmd/cloud/deployment/remove.ts +17 -17
  250. package/src/cmd/cloud/deployment/show.ts +1 -1
  251. package/src/cmd/cloud/email/create.ts +1 -1
  252. package/src/cmd/cloud/email/delete.ts +1 -1
  253. package/src/cmd/cloud/email/destination/delete.ts +1 -1
  254. package/src/cmd/cloud/email/get.ts +1 -0
  255. package/src/cmd/cloud/email/inbound/get.ts +1 -0
  256. package/src/cmd/cloud/email/outbound/get.ts +1 -0
  257. package/src/cmd/cloud/env/delete.ts +1 -1
  258. package/src/cmd/cloud/env/get.ts +1 -0
  259. package/src/cmd/cloud/eval/get.ts +1 -0
  260. package/src/cmd/cloud/eval/index.ts +1 -0
  261. package/src/cmd/cloud/eval/list.ts +1 -1
  262. package/src/cmd/cloud/eval-run/get.ts +1 -0
  263. package/src/cmd/cloud/eval-run/index.ts +1 -0
  264. package/src/cmd/cloud/eval-run/list.ts +1 -1
  265. package/src/cmd/cloud/keyvalue/delete-namespace.ts +1 -1
  266. package/src/cmd/cloud/keyvalue/delete.ts +1 -1
  267. package/src/cmd/cloud/keyvalue/get.ts +1 -0
  268. package/src/cmd/cloud/keyvalue/index.ts +1 -1
  269. package/src/cmd/cloud/machine/delete.ts +1 -1
  270. package/src/cmd/cloud/oidc/delete.ts +1 -1
  271. package/src/cmd/cloud/oidc/get.ts +1 -0
  272. package/src/cmd/cloud/queue/create.ts +1 -0
  273. package/src/cmd/cloud/queue/delete.ts +1 -1
  274. package/src/cmd/cloud/queue/get.ts +1 -0
  275. package/src/cmd/cloud/redis/get.ts +1 -1
  276. package/src/cmd/cloud/sandbox/checkpoint/create.ts +1 -0
  277. package/src/cmd/cloud/sandbox/checkpoint/delete.ts +1 -1
  278. package/src/cmd/cloud/sandbox/checkpoint/index.ts +1 -1
  279. package/src/cmd/cloud/sandbox/create.ts +1 -0
  280. package/src/cmd/cloud/sandbox/delete.ts +1 -1
  281. package/src/cmd/cloud/sandbox/execution/index.ts +1 -1
  282. package/src/cmd/cloud/sandbox/execution/list.ts +2 -2
  283. package/src/cmd/cloud/sandbox/{cp.ts → fs/cp.ts} +13 -13
  284. package/src/cmd/cloud/sandbox/{download.ts → fs/download.ts} +7 -7
  285. package/src/cmd/cloud/sandbox/fs/index.ts +36 -0
  286. package/src/cmd/cloud/sandbox/{ls.ts → fs/ls.ts} +10 -10
  287. package/src/cmd/cloud/sandbox/{mkdir.ts → fs/mkdir.ts} +6 -6
  288. package/src/cmd/cloud/sandbox/{rm.ts → fs/rm.ts} +6 -5
  289. package/src/cmd/cloud/sandbox/{rmdir.ts → fs/rmdir.ts} +6 -6
  290. package/src/cmd/cloud/sandbox/{upload.ts → fs/upload.ts} +7 -7
  291. package/src/cmd/cloud/sandbox/index.ts +2 -14
  292. package/src/cmd/cloud/sandbox/job/create.ts +1 -0
  293. package/src/cmd/cloud/sandbox/job/get.ts +1 -0
  294. package/src/cmd/cloud/sandbox/runtime/index.ts +1 -1
  295. package/src/cmd/cloud/sandbox/snapshot/create.ts +1 -0
  296. package/src/cmd/cloud/sandbox/snapshot/delete.ts +1 -1
  297. package/src/cmd/cloud/sandbox/snapshot/index.ts +1 -1
  298. package/src/cmd/cloud/schedule/create.ts +1 -0
  299. package/src/cmd/cloud/schedule/delete.ts +1 -1
  300. package/src/cmd/cloud/schedule/delivery/get.ts +1 -0
  301. package/src/cmd/cloud/schedule/destination/create.ts +1 -0
  302. package/src/cmd/cloud/schedule/destination/delete.ts +1 -1
  303. package/src/cmd/cloud/schedule/destination/get.ts +1 -0
  304. package/src/cmd/cloud/schedule/get.ts +1 -0
  305. package/src/cmd/cloud/session/get.ts +1 -0
  306. package/src/cmd/cloud/session/index.ts +1 -0
  307. package/src/cmd/cloud/session/list.ts +1 -1
  308. package/src/cmd/cloud/storage/delete.ts +1 -1
  309. package/src/cmd/cloud/stream/delete.ts +1 -1
  310. package/src/cmd/cloud/stream/get.ts +1 -0
  311. package/src/cmd/cloud/task/delete.ts +1 -1
  312. package/src/cmd/cloud/task/index.ts +1 -0
  313. package/src/cmd/cloud/thread/delete.ts +1 -1
  314. package/src/cmd/cloud/thread/get.ts +1 -0
  315. package/src/cmd/cloud/thread/index.ts +1 -0
  316. package/src/cmd/cloud/thread/list.ts +1 -1
  317. package/src/cmd/cloud/vector/delete-namespace.ts +1 -1
  318. package/src/cmd/cloud/vector/delete.ts +1 -1
  319. package/src/cmd/cloud/vector/get.ts +1 -0
  320. package/src/cmd/cloud/vector/index.ts +1 -1
  321. package/src/cmd/cloud/webhook/create.ts +1 -0
  322. package/src/cmd/cloud/webhook/delete.ts +1 -1
  323. package/src/cmd/cloud/webhook/get.ts +1 -0
  324. package/src/cmd/git/account/remove.ts +1 -0
  325. package/src/cmd/profile/delete.ts +1 -1
  326. package/src/cmd/project/delete.ts +1 -1
  327. package/src/cmd/project/hostname/get.ts +1 -0
  328. package/dist/cmd/cloud/sandbox/cp.d.ts +0 -3
  329. package/dist/cmd/cloud/sandbox/cp.d.ts.map +0 -1
  330. package/dist/cmd/cloud/sandbox/cp.js.map +0 -1
  331. package/dist/cmd/cloud/sandbox/download.d.ts +0 -3
  332. package/dist/cmd/cloud/sandbox/download.d.ts.map +0 -1
  333. package/dist/cmd/cloud/sandbox/download.js.map +0 -1
  334. package/dist/cmd/cloud/sandbox/ls.d.ts +0 -3
  335. package/dist/cmd/cloud/sandbox/ls.d.ts.map +0 -1
  336. package/dist/cmd/cloud/sandbox/ls.js.map +0 -1
  337. package/dist/cmd/cloud/sandbox/mkdir.d.ts +0 -3
  338. package/dist/cmd/cloud/sandbox/mkdir.d.ts.map +0 -1
  339. package/dist/cmd/cloud/sandbox/mkdir.js.map +0 -1
  340. package/dist/cmd/cloud/sandbox/rm.d.ts +0 -3
  341. package/dist/cmd/cloud/sandbox/rm.d.ts.map +0 -1
  342. package/dist/cmd/cloud/sandbox/rm.js.map +0 -1
  343. package/dist/cmd/cloud/sandbox/rmdir.d.ts +0 -3
  344. package/dist/cmd/cloud/sandbox/rmdir.d.ts.map +0 -1
  345. package/dist/cmd/cloud/sandbox/rmdir.js.map +0 -1
  346. package/dist/cmd/cloud/sandbox/upload.d.ts +0 -3
  347. package/dist/cmd/cloud/sandbox/upload.d.ts.map +0 -1
  348. package/dist/cmd/cloud/sandbox/upload.js.map +0 -1
@@ -0,0 +1,223 @@
1
+ import type { Logger } from '@agentuity/core';
2
+ import { spawn } from 'bun';
3
+ import { mkdir, mkdtemp, readdir, realpath, rm, stat } from 'node:fs/promises';
4
+ import { tmpdir } from 'node:os';
5
+ import { join } from 'node:path';
6
+ import { ErrorCode } from '../../errors';
7
+ import * as tui from '../../tui';
8
+
9
+ export interface CIBuildOptions {
10
+ url: string;
11
+ directory?: string;
12
+ trigger?: string;
13
+ event?: string;
14
+ message?: string;
15
+ commit?: string;
16
+ commitUrl?: string;
17
+ branch?: string;
18
+ repo?: string;
19
+ provider?: string;
20
+ pullRequestNumber?: number;
21
+ pullRequestUrl?: string;
22
+ logsUrl?: string;
23
+ }
24
+
25
+ async function streamProcessOutput(proc: ReturnType<typeof spawn>): Promise<void> {
26
+ const forwardStream = async (
27
+ stream: ReadableStream<Uint8Array> | number | undefined,
28
+ isStderr: boolean
29
+ ) => {
30
+ if (typeof stream === 'number') return;
31
+ if (!stream) return;
32
+ const reader = stream.getReader();
33
+ const target = isStderr ? process.stderr : process.stdout;
34
+
35
+ while (true) {
36
+ const { done, value } = await reader.read();
37
+ if (done) break;
38
+ target.write(value);
39
+ }
40
+ };
41
+
42
+ await Promise.all([
43
+ forwardStream(proc.stdout, false),
44
+ forwardStream(proc.stderr, true),
45
+ proc.exited,
46
+ ]);
47
+ }
48
+
49
+ async function runCommand(cmd: string[], cwd: string): Promise<number> {
50
+ const proc = spawn({
51
+ cmd,
52
+ cwd,
53
+ env: { ...process.env, CI: 'true' },
54
+ stdin: 'ignore',
55
+ stdout: 'pipe',
56
+ stderr: 'pipe',
57
+ });
58
+
59
+ await streamProcessOutput(proc);
60
+ return proc.exitCode ?? 1;
61
+ }
62
+
63
+ async function downloadSource(url: string, targetPath: string): Promise<void> {
64
+ let lastError: unknown;
65
+
66
+ for (let attempt = 1; attempt <= 3; attempt++) {
67
+ try {
68
+ const response = await fetch(url, { signal: AbortSignal.timeout(60_000) });
69
+ if (!response.ok) {
70
+ throw new Error(`Download failed with status ${response.status}`);
71
+ }
72
+
73
+ await Bun.write(targetPath, await response.arrayBuffer());
74
+ return;
75
+ } catch (error) {
76
+ lastError = error;
77
+ if (attempt < 3) {
78
+ tui.info(`Download failed (attempt ${attempt}/3), retrying...`);
79
+ }
80
+ }
81
+ }
82
+
83
+ throw lastError instanceof Error ? lastError : new Error('Download failed');
84
+ }
85
+
86
+ function buildDeployArgs(opts: CIBuildOptions): string[] {
87
+ const args: string[] = [];
88
+
89
+ if (opts.trigger) args.push('--trigger', opts.trigger);
90
+ if (opts.event) args.push('--event', opts.event);
91
+ if (opts.message) args.push('--message', opts.message);
92
+ if (opts.commit) args.push('--commit', opts.commit);
93
+ if (opts.commitUrl) args.push('--commit-url', opts.commitUrl);
94
+ if (opts.branch) args.push('--branch', opts.branch);
95
+ if (opts.repo) args.push('--repo', opts.repo);
96
+ if (opts.provider) args.push('--provider', opts.provider);
97
+ if (opts.pullRequestNumber !== undefined) {
98
+ args.push('--pull-request-number', String(opts.pullRequestNumber));
99
+ }
100
+ if (opts.pullRequestUrl) args.push('--pull-request-url', opts.pullRequestUrl);
101
+ if (opts.logsUrl) args.push('--logs-url', opts.logsUrl);
102
+
103
+ return args;
104
+ }
105
+
106
+ export async function runCIBuild(opts: CIBuildOptions, _logger: Logger): Promise<void> {
107
+ let tempDir = '';
108
+
109
+ try {
110
+ tempDir = await mkdtemp(join(tmpdir(), 'agentuity-ci-build-'));
111
+ const sourceZipPath = join(tempDir, 'source.zip');
112
+ const extractPath = join(tempDir, 'build');
113
+
114
+ tui.info('1️⃣ Downloading source code from GitHub...');
115
+ await downloadSource(opts.url, sourceZipPath);
116
+
117
+ tui.info('2️⃣ Unzipping source code from GitHub...');
118
+ await mkdir(extractPath, { recursive: true });
119
+ const unzipExit = await runCommand(
120
+ ['unzip', '-q', sourceZipPath, '-d', extractPath],
121
+ tempDir
122
+ );
123
+ if (unzipExit !== 0 && unzipExit !== 1) {
124
+ tui.fatal(`Failed to unzip source archive (exit ${unzipExit})`, ErrorCode.BUILD_FAILED);
125
+ }
126
+
127
+ const extractedEntries = await readdir(extractPath, { withFileTypes: true });
128
+ const extractedDirs = extractedEntries.filter((entry) => entry.isDirectory());
129
+ if (extractedDirs.length !== 1) {
130
+ tui.fatal(
131
+ `Expected one root directory after unzip, found ${extractedDirs.length}`,
132
+ ErrorCode.BUILD_FAILED
133
+ );
134
+ }
135
+
136
+ const sourceRoot = extractedDirs.at(0);
137
+ if (!sourceRoot) {
138
+ tui.fatal('Could not determine extracted source directory', ErrorCode.BUILD_FAILED);
139
+ }
140
+
141
+ const sourceRootDir = join(extractPath, sourceRoot.name);
142
+ let projectDir = sourceRootDir;
143
+ if (opts.directory) {
144
+ projectDir = join(sourceRootDir, opts.directory);
145
+ }
146
+
147
+ const projectStats = await stat(projectDir).catch(() => null);
148
+ if (!projectStats?.isDirectory()) {
149
+ tui.fatal(`Build directory not found: ${projectDir}`, ErrorCode.CONFIG_INVALID);
150
+ }
151
+
152
+ // Resolve symlinks and verify the project dir is within the source root
153
+ const realProjectDir = await realpath(projectDir).catch(() => null);
154
+ const realSourceRoot = await realpath(sourceRootDir).catch(() => null);
155
+ if (!realProjectDir || !realSourceRoot || !realProjectDir.startsWith(realSourceRoot)) {
156
+ tui.fatal(
157
+ 'Directory path escapes the source root (path traversal denied)',
158
+ ErrorCode.CONFIG_INVALID
159
+ );
160
+ }
161
+ projectDir = realProjectDir;
162
+
163
+ const sdkKey = process.env.AGENTUITY_SDK_KEY;
164
+ if (sdkKey) {
165
+ await Bun.write(join(projectDir, '.env'), `AGENTUITY_SDK_KEY=${sdkKey}\n`);
166
+ }
167
+
168
+ tui.info('3️⃣ Installing your project dependencies...');
169
+ const installExit = await runCommand(['bun', 'install'], projectDir);
170
+ if (installExit !== 0) {
171
+ tui.fatal(`Dependency installation failed (exit ${installExit})`, ErrorCode.BUILD_FAILED);
172
+ }
173
+
174
+ const packageJsonPath = join(projectDir, 'package.json');
175
+ const packageJsonFile = Bun.file(packageJsonPath);
176
+ let scripts: Record<string, string> | undefined;
177
+ if (await packageJsonFile.exists()) {
178
+ const packageJson = (await packageJsonFile.json()) as {
179
+ scripts?: Record<string, string>;
180
+ };
181
+ scripts = packageJson.scripts;
182
+ }
183
+
184
+ if (scripts?.predeploy) {
185
+ tui.info('🔧 Running predeploy script...');
186
+ const predeployExit = await runCommand(['bun', 'run', '--bun', 'predeploy'], projectDir);
187
+ if (predeployExit !== 0) {
188
+ tui.fatal(`Predeploy failed (exit ${predeployExit})`, ErrorCode.BUILD_FAILED);
189
+ }
190
+ }
191
+
192
+ tui.info('4️⃣ Deploying your project...');
193
+ // Use the locally installed CLI binary instead of bunx to avoid
194
+ // bunx resolution crashes on certain Bun versions (e.g. arm64 segfaults)
195
+ const localCliBin = join(projectDir, 'node_modules', '.bin', 'agentuity');
196
+ const cliExists = await stat(localCliBin).catch(() => null);
197
+ const deployCmd = cliExists
198
+ ? ['bun', localCliBin, 'deploy', ...buildDeployArgs(opts)]
199
+ : ['bunx', '--bun', 'agentuity', 'deploy', ...buildDeployArgs(opts)];
200
+ tui.info(`Using CLI: ${cliExists ? localCliBin : 'bunx --bun agentuity'}`);
201
+ const deployExit = await runCommand(deployCmd, projectDir);
202
+ if (deployExit !== 0) {
203
+ tui.fatal(`Deploy failed (exit ${deployExit})`, ErrorCode.BUILD_FAILED);
204
+ }
205
+
206
+ if (scripts?.postdeploy) {
207
+ tui.info('🔧 Running postdeploy script...');
208
+ const postdeployExit = await runCommand(['bun', 'run', '--bun', 'postdeploy'], projectDir);
209
+ if (postdeployExit !== 0) {
210
+ tui.fatal(`Postdeploy failed (exit ${postdeployExit})`, ErrorCode.BUILD_FAILED);
211
+ }
212
+ }
213
+
214
+ tui.success('✅ Your project has been built...');
215
+ } catch (error) {
216
+ const message = error instanceof Error ? error.message : String(error);
217
+ tui.fatal(`CI build failed: ${message}`, ErrorCode.BUILD_FAILED);
218
+ } finally {
219
+ if (tempDir) {
220
+ await rm(tempDir, { recursive: true, force: true });
221
+ }
222
+ }
223
+ }
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { resolve, join, relative } from 'node:path';
3
- import { createCommand } from '../../types';
3
+ import { createCommand, DeployOptionsSchema } from '../../types';
4
4
  import { viteBundle } from './vite-bundler';
5
5
  import * as tui from '../../tui';
6
6
  import { getCommand } from '../../command-prefix';
@@ -16,6 +16,22 @@ const BuildResponseSchema = z.object({
16
16
  size: z.number().optional().describe('Build size in bytes'),
17
17
  });
18
18
 
19
+ const BuildOptionsSchema = z.intersection(
20
+ DeployOptionsSchema,
21
+ z.object({
22
+ dev: z.boolean().optional().describe('Enable development mode'),
23
+ outdir: z.string().optional().describe('Output directory for build artifacts'),
24
+ skipTypeCheck: z.boolean().default(false).optional().describe('Skip typecheck after build'),
25
+ reportFile: z
26
+ .string()
27
+ .optional()
28
+ .describe('file path to save build report JSON with errors, warnings, and diagnostics'),
29
+ ci: z.boolean().optional().describe('Enable CI build mode'),
30
+ url: z.string().optional().describe('Source code download URL (required with --ci)'),
31
+ directory: z.string().optional().describe('Subdirectory within extracted source'),
32
+ })
33
+ );
34
+
19
35
  export const command = createCommand({
20
36
  name: 'build',
21
37
  description: 'Build Agentuity application for deployment',
@@ -26,28 +42,53 @@ export const command = createCommand({
26
42
  examples: [
27
43
  { command: getCommand('build'), description: 'Build the project' },
28
44
  { command: getCommand('build --dev'), description: 'Run in development mode' },
45
+ {
46
+ command: getCommand('build --ci --url https://example.com/source.zip'),
47
+ description: 'Run CI build from source URL',
48
+ },
29
49
  { command: getCommand('bundle'), description: 'Bundle the project' },
30
50
  ],
31
51
  schema: {
32
- options: z.object({
33
- dev: z.boolean().optional().describe('Enable development mode'),
34
- outdir: z.string().optional().describe('Output directory for build artifacts'),
35
- skipTypeCheck: z
36
- .boolean()
37
- .default(false)
38
- .optional()
39
- .describe('Skip typecheck after build'),
40
- reportFile: z
41
- .string()
42
- .optional()
43
- .describe('file path to save build report JSON with errors, warnings, and diagnostics'),
44
- }),
52
+ options: BuildOptionsSchema,
45
53
  response: BuildResponseSchema,
46
54
  },
47
55
 
48
56
  async handler(ctx) {
49
57
  const { opts, projectDir, project } = ctx;
50
58
 
59
+ if (opts.ci) {
60
+ if (!opts.url) {
61
+ tui.fatal('--url is required when using --ci mode', ErrorCode.CONFIG_INVALID);
62
+ }
63
+
64
+ const { runCIBuild } = await import('./ci');
65
+ await runCIBuild(
66
+ {
67
+ url: opts.url,
68
+ directory: opts.directory,
69
+ trigger: opts.trigger,
70
+ event: opts.event,
71
+ message: opts.message,
72
+ commit: opts.commit,
73
+ commitUrl: opts.commitUrl,
74
+ branch: opts.branch,
75
+ repo: opts.repo,
76
+ provider: opts.provider,
77
+ pullRequestNumber: opts.pullRequestNumber,
78
+ pullRequestUrl: opts.pullRequestUrl,
79
+ logsUrl: opts.logsUrl,
80
+ },
81
+ ctx.logger
82
+ );
83
+
84
+ return {
85
+ success: true,
86
+ bundlePath: projectDir,
87
+ projectName: project?.projectId || 'unknown',
88
+ dev: false,
89
+ };
90
+ }
91
+
51
92
  // Initialize build report collector if reportFile is specified
52
93
  const collector = new BuildReportCollector();
53
94
  if (opts.reportFile) {
@@ -8,6 +8,7 @@ import { AgentSchema } from './schema';
8
8
 
9
9
  export const getSubcommand = createSubcommand({
10
10
  name: 'get',
11
+ aliases: ['show', 'info'],
11
12
  description: 'Get details about a specific agent',
12
13
  requires: { auth: true, apiClient: true, project: true },
13
14
  examples: [
@@ -12,7 +12,7 @@ const APIKeyDeleteResponseSchema = z.object({
12
12
 
13
13
  export const deleteSubcommand = createSubcommand({
14
14
  name: 'delete',
15
- aliases: ['del', 'rm'],
15
+ aliases: ['rm', 'del', 'remove', 'terminate'],
16
16
  description: 'Delete an API key (soft delete)',
17
17
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth'],
18
18
  idempotent: true,
@@ -7,6 +7,7 @@ import { ErrorCode } from '../../../errors';
7
7
 
8
8
  export const getSubcommand = createSubcommand({
9
9
  name: 'get',
10
+ aliases: ['show', 'info'],
10
11
  description: 'Get a specific API key by id',
11
12
  tags: ['read-only', 'fast', 'requires-auth'],
12
13
  examples: [{ command: getCommand('cloud apikey get <id>'), description: 'Get item details' }],
@@ -7,6 +7,7 @@ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  export const command = createCommand({
9
9
  name: 'apikey',
10
+ aliases: ['apikeys'],
10
11
  description: 'Manage API keys',
11
12
  tags: ['fast', 'requires-auth'],
12
13
  examples: [
@@ -12,7 +12,7 @@ import { createSubcommand } from '../../../types';
12
12
 
13
13
  export const deleteSubcommand = createSubcommand({
14
14
  name: 'delete',
15
- aliases: ['rm', 'del'],
15
+ aliases: ['rm', 'del', 'remove', 'terminate'],
16
16
  description: 'Delete a database resource',
17
17
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth', 'requires-deployment'],
18
18
  idempotent: false,
@@ -4,33 +4,33 @@ import * as tui from '../../../tui';
4
4
  import { projectDeploymentDelete } from '@agentuity/server';
5
5
  import { resolveProjectId } from './utils';
6
6
  import { getCommand } from '../../../command-prefix';
7
- const DeploymentRemoveResponseSchema = z.object({
8
- success: z.boolean().describe('Whether the removal succeeded'),
7
+ const DeploymentDeleteResponseSchema = z.object({
8
+ success: z.boolean().describe('Whether the deletion succeeded'),
9
9
  projectId: z.string().describe('Project ID'),
10
- deploymentId: z.string().describe('Deployment ID that was removed'),
10
+ deploymentId: z.string().describe('Deployment ID that was deleted'),
11
11
  });
12
12
 
13
13
  export const removeSubcommand = createSubcommand({
14
- name: 'remove',
15
- description: 'Remove a specific deployment',
14
+ name: 'delete',
15
+ aliases: ['rm', 'del', 'remove', 'terminate'],
16
+ description: 'Delete a specific deployment',
16
17
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth', 'requires-deployment'],
17
18
  examples: [
18
19
  {
19
- command: getCommand('cloud deployment remove dep_abc123xyz'),
20
- description: 'Remove with confirmation',
20
+ command: getCommand('cloud deployment delete deploy_abc123xyz'),
21
+ description: 'Delete with confirmation',
21
22
  },
22
23
  {
23
- command: getCommand('cloud deployment remove dep_abc123xyz --force'),
24
- description: 'Remove without confirmation',
24
+ command: getCommand('cloud deployment delete deploy_abc123xyz --force'),
25
+ description: 'Delete without confirmation',
25
26
  },
26
27
  {
27
28
  command: getCommand(
28
- 'cloud deployment remove deployment-2024-11-20 --project-id=proj_abc123xyz'
29
+ 'cloud deployment delete deploy_2024-11-20 --project-id=proj_abc123xyz'
29
30
  ),
30
- description: 'Remove deployment from specific project',
31
+ description: 'Delete deployment from specific project',
31
32
  },
32
33
  ],
33
- aliases: ['rm', 'delete'],
34
34
  idempotent: false,
35
35
  requires: { auth: true, apiClient: true },
36
36
  optional: { project: true },
@@ -41,9 +41,9 @@ export const removeSubcommand = createSubcommand({
41
41
  }),
42
42
  options: z.object({
43
43
  projectId: z.string().optional().describe('filter by project id'),
44
- force: z.boolean().default(false).describe('Force removal without confirmation'),
44
+ force: z.boolean().default(false).describe('Force deletion without confirmation'),
45
45
  }),
46
- response: DeploymentRemoveResponseSchema,
46
+ response: DeploymentDeleteResponseSchema,
47
47
  },
48
48
  async handler(ctx) {
49
49
  const projectId = resolveProjectId(ctx, { projectId: ctx.opts.projectId });
@@ -51,7 +51,7 @@ export const removeSubcommand = createSubcommand({
51
51
 
52
52
  if (!opts.force) {
53
53
  const confirmed = await tui.confirm(
54
- `Are you sure you want to remove deployment ${args.deployment_id}?`
54
+ `Are you sure you want to delete deployment ${args.deployment_id}?`
55
55
  );
56
56
  if (!confirmed) {
57
57
  tui.info('Operation cancelled');
@@ -61,7 +61,7 @@ export const removeSubcommand = createSubcommand({
61
61
 
62
62
  try {
63
63
  await projectDeploymentDelete(apiClient, projectId, args.deployment_id);
64
- tui.success(`Deployment ${args.deployment_id} removed successfully.`);
64
+ tui.success(`Deployment ${args.deployment_id} deleted successfully.`);
65
65
 
66
66
  return {
67
67
  success: true,
@@ -69,7 +69,7 @@ export const removeSubcommand = createSubcommand({
69
69
  deploymentId: args.deployment_id,
70
70
  };
71
71
  } catch (ex) {
72
- tui.fatal(`Failed to remove deployment: ${ex}`);
72
+ tui.fatal(`Failed to delete deployment: ${ex}`);
73
73
  }
74
74
  },
75
75
  });
@@ -60,7 +60,7 @@ export const showSubcommand = createSubcommand({
60
60
  tags: ['read-only', 'fast', 'requires-auth', 'requires-deployment'],
61
61
  examples: [
62
62
  {
63
- command: `${getCommand('cloud deployment show')} dep_abc123xyz`,
63
+ command: `${getCommand('cloud deployment show')} deploy_abc123xyz`,
64
64
  description: 'Show deployment details by ID',
65
65
  },
66
66
  {
@@ -8,7 +8,7 @@ import { defaultProfileName, getDefaultRegion } from '../../../config';
8
8
 
9
9
  export const createSubcommand = createCommand({
10
10
  name: 'create',
11
- aliases: ['add'],
11
+ aliases: ['new', 'add'],
12
12
  description: 'Create an email address',
13
13
  tags: ['mutating', 'creates-resource', 'requires-auth'],
14
14
  requires: { auth: true },
@@ -10,7 +10,7 @@ const DeleteResponseSchema = z.object({
10
10
 
11
11
  export const deleteSubcommand = createCommand({
12
12
  name: 'delete',
13
- aliases: ['rm', 'del'],
13
+ aliases: ['rm', 'del', 'remove', 'terminate'],
14
14
  description: 'Delete an email address',
15
15
  tags: ['destructive', 'deletes-resource', 'requires-auth'],
16
16
  requires: { auth: true },
@@ -11,7 +11,7 @@ const DeleteDestinationResponseSchema = z.object({
11
11
 
12
12
  export const deleteSubcommand = createCommand({
13
13
  name: 'delete',
14
- aliases: ['rm', 'del'],
14
+ aliases: ['rm', 'del', 'remove', 'terminate'],
15
15
  description: 'Delete a destination from an email address',
16
16
  tags: ['destructive', 'deletes-resource', 'requires-auth'],
17
17
  requires: { auth: true },
@@ -5,6 +5,7 @@ import { createEmailAdapter, EmailAddressSchema } from './util';
5
5
 
6
6
  export const getSubcommand = createCommand({
7
7
  name: 'get',
8
+ aliases: ['show', 'info'],
8
9
  description: 'Get an email address by ID',
9
10
  tags: ['read-only', 'requires-auth'],
10
11
  requires: { auth: true },
@@ -6,6 +6,7 @@ import { EmailInboundSchema } from './schemas';
6
6
 
7
7
  export const getSubcommand = createCommand({
8
8
  name: 'get',
9
+ aliases: ['show', 'info'],
9
10
  description: 'Get a received email by ID',
10
11
  tags: ['read-only', 'requires-auth'],
11
12
  requires: { auth: true },
@@ -6,6 +6,7 @@ import { EmailOutboundSchema } from './schemas';
6
6
 
7
7
  export const getSubcommand = createCommand({
8
8
  name: 'get',
9
+ aliases: ['show', 'info'],
9
10
  description: 'Get a sent email by ID',
10
11
  tags: ['read-only', 'requires-auth'],
11
12
  requires: { auth: true },
@@ -18,7 +18,7 @@ const EnvDeleteResponseSchema = z.object({
18
18
 
19
19
  export const deleteSubcommand = createSubcommand({
20
20
  name: 'delete',
21
- aliases: ['del', 'remove', 'rm'],
21
+ aliases: ['rm', 'del', 'remove', 'terminate'],
22
22
  description: 'Delete one or more environment variables or secrets',
23
23
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth'],
24
24
  idempotent: true,
@@ -15,6 +15,7 @@ const EnvGetResponseSchema = z.object({
15
15
 
16
16
  export const getSubcommand = createSubcommand({
17
17
  name: 'get',
18
+ aliases: ['show', 'info'],
18
19
  description: 'Get an environment variable or secret value',
19
20
  tags: ['read-only', 'fast', 'requires-auth'],
20
21
  examples: [
@@ -20,6 +20,7 @@ const EvalGetResponseSchema = z.object({
20
20
 
21
21
  export const getSubcommand = createSubcommand({
22
22
  name: 'get',
23
+ aliases: ['show', 'info'],
23
24
  description: 'Get details about a specific eval',
24
25
  tags: ['read-only', 'fast', 'requires-auth'],
25
26
  examples: [
@@ -5,6 +5,7 @@ import { getCommand } from '../../../command-prefix';
5
5
 
6
6
  export const evalCommand = createCommand({
7
7
  name: 'eval',
8
+ aliases: ['evals'],
8
9
  description: 'Manage evals',
9
10
  tags: ['requires-auth'],
10
11
  examples: [
@@ -21,6 +21,7 @@ const EvalListResponseSchema = z.array(
21
21
 
22
22
  export const listSubcommand = createSubcommand({
23
23
  name: 'list',
24
+ aliases: ['ls'],
24
25
  description: 'List evals',
25
26
  tags: ['read-only', 'fast', 'requires-auth'],
26
27
  examples: [
@@ -42,7 +43,6 @@ export const listSubcommand = createSubcommand({
42
43
  description: 'List all evals regardless of project context',
43
44
  },
44
45
  ],
45
- aliases: ['ls'],
46
46
  requires: { auth: true, apiClient: true },
47
47
  optional: { project: true },
48
48
  idempotent: true,
@@ -25,6 +25,7 @@ const EvalRunGetResponseSchema = z.object({
25
25
 
26
26
  export const getSubcommand = createSubcommand({
27
27
  name: 'get',
28
+ aliases: ['show', 'info'],
28
29
  description: 'Get details about a specific eval run',
29
30
  tags: ['read-only', 'fast', 'requires-auth'],
30
31
  examples: [
@@ -5,6 +5,7 @@ import { getCommand } from '../../../command-prefix';
5
5
 
6
6
  export const evalRunCommand = createCommand({
7
7
  name: 'eval-run',
8
+ aliases: ['eval-runs'],
8
9
  description: 'Manage eval runs',
9
10
  tags: ['requires-auth'],
10
11
  examples: [
@@ -22,6 +22,7 @@ const EvalRunListResponseSchema = z.array(
22
22
 
23
23
  export const listSubcommand = createSubcommand({
24
24
  name: 'list',
25
+ aliases: ['ls'],
25
26
  description: 'List eval runs',
26
27
  tags: ['read-only', 'fast', 'requires-auth'],
27
28
  examples: [
@@ -51,7 +52,6 @@ export const listSubcommand = createSubcommand({
51
52
  description: 'List all eval runs regardless of project context',
52
53
  },
53
54
  ],
54
- aliases: ['ls'],
55
55
  requires: { auth: true, apiClient: true },
56
56
  optional: { project: true },
57
57
  idempotent: true,
@@ -6,7 +6,7 @@ import { createStorageAdapter } from './util';
6
6
  import { getCommand } from '../../../command-prefix';
7
7
  export const deleteNamespaceSubcommand = createCommand({
8
8
  name: 'delete-namespace',
9
- aliases: ['rm-namespace'],
9
+ aliases: ['rm-namespace', 'del-namespace', 'remove-namespace', 'terminate-namespace'],
10
10
  description: 'Delete a keyvalue namespace and all its keys',
11
11
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth'],
12
12
  idempotent: true,
@@ -12,7 +12,7 @@ const KVDeleteResponseSchema = z.object({
12
12
 
13
13
  export const deleteSubcommand = createCommand({
14
14
  name: 'delete',
15
- aliases: ['del', 'rm', 'remove'],
15
+ aliases: ['rm', 'del', 'remove', 'terminate'],
16
16
  description: 'Delete a key from the keyvalue storage',
17
17
  tags: ['destructive', 'deletes-resource', 'slow', 'requires-auth'],
18
18
  idempotent: true,
@@ -13,6 +13,7 @@ const KVGetResponseSchema = z.object({
13
13
 
14
14
  export const getSubcommand = createCommand({
15
15
  name: 'get',
16
+ aliases: ['show', 'info'],
16
17
  description: 'Get a value from the keyvalue storage',
17
18
  tags: ['read-only', 'fast', 'requires-auth'],
18
19
  requires: { auth: true, region: true },
@@ -13,7 +13,7 @@ import { getCommand } from '../../../command-prefix';
13
13
 
14
14
  export const command = createCommand({
15
15
  name: 'keyvalue',
16
- aliases: ['kv'],
16
+ aliases: ['kv', 'keyvalues'],
17
17
  description: 'Manage keyvalue storage for your projects',
18
18
  tags: ['read-only', 'fast', 'requires-auth'],
19
19
  examples: [
@@ -26,7 +26,7 @@ export const deleteSubcommand = createSubcommand({
26
26
  description: 'Delete a machine without confirmation',
27
27
  },
28
28
  ],
29
- aliases: ['rm', 'remove'],
29
+ aliases: ['rm', 'del', 'remove', 'terminate'],
30
30
  requires: { auth: true, org: true },
31
31
  idempotent: false,
32
32
  schema: {