@agentuity/cli 0.0.50 → 0.0.52

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 (578) hide show
  1. package/AGENTS.md +17 -4
  2. package/README.md +26 -8
  3. package/dist/api.js +68 -0
  4. package/dist/api.js.map +1 -0
  5. package/dist/auth.js +225 -0
  6. package/dist/auth.js.map +1 -0
  7. package/dist/banner.js +35 -0
  8. package/dist/banner.js.map +1 -0
  9. package/dist/cli-logger.js +72 -0
  10. package/dist/cli-logger.js.map +1 -0
  11. package/dist/cli.d.ts.map +1 -1
  12. package/dist/cli.js +822 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/cmd/{capabilities → ai/capabilities}/index.d.ts +1 -1
  15. package/dist/cmd/ai/capabilities/index.d.ts.map +1 -0
  16. package/dist/cmd/ai/capabilities/index.js +10 -0
  17. package/dist/cmd/ai/capabilities/index.js.map +1 -0
  18. package/dist/cmd/{capabilities → ai/capabilities}/show.d.ts +1 -1
  19. package/dist/cmd/ai/capabilities/show.d.ts.map +1 -0
  20. package/dist/cmd/ai/capabilities/show.js +221 -0
  21. package/dist/cmd/ai/capabilities/show.js.map +1 -0
  22. package/dist/cmd/ai/index.d.ts.map +1 -0
  23. package/dist/cmd/ai/index.js +11 -0
  24. package/dist/cmd/ai/index.js.map +1 -0
  25. package/dist/cmd/ai/prompt/index.d.ts +4 -0
  26. package/dist/cmd/ai/prompt/index.d.ts.map +1 -0
  27. package/dist/cmd/ai/prompt/index.js +10 -0
  28. package/dist/cmd/ai/prompt/index.js.map +1 -0
  29. package/dist/cmd/ai/prompt/llm.d.ts +3 -0
  30. package/dist/cmd/ai/prompt/llm.d.ts.map +1 -0
  31. package/dist/cmd/ai/prompt/llm.js +365 -0
  32. package/dist/cmd/ai/prompt/llm.js.map +1 -0
  33. package/dist/cmd/ai/schema/index.d.ts +4 -0
  34. package/dist/cmd/ai/schema/index.d.ts.map +1 -0
  35. package/dist/cmd/ai/schema/index.js +10 -0
  36. package/dist/cmd/ai/schema/index.js.map +1 -0
  37. package/dist/cmd/ai/schema/show.d.ts +3 -0
  38. package/dist/cmd/ai/schema/show.d.ts.map +1 -0
  39. package/dist/cmd/ai/schema/show.js +23 -0
  40. package/dist/cmd/ai/schema/show.js.map +1 -0
  41. package/dist/cmd/auth/api.js +85 -0
  42. package/dist/cmd/auth/api.js.map +1 -0
  43. package/dist/cmd/auth/index.js +13 -0
  44. package/dist/cmd/auth/index.js.map +1 -0
  45. package/dist/cmd/auth/login.js +84 -0
  46. package/dist/cmd/auth/login.js.map +1 -0
  47. package/dist/cmd/auth/logout.js +17 -0
  48. package/dist/cmd/auth/logout.js.map +1 -0
  49. package/dist/cmd/auth/signup.js +55 -0
  50. package/dist/cmd/auth/signup.js.map +1 -0
  51. package/dist/cmd/auth/ssh/add.js +239 -0
  52. package/dist/cmd/auth/ssh/add.js.map +1 -0
  53. package/dist/cmd/auth/ssh/api.js +53 -0
  54. package/dist/cmd/auth/ssh/api.js.map +1 -0
  55. package/dist/cmd/auth/ssh/delete.js +126 -0
  56. package/dist/cmd/auth/ssh/delete.js.map +1 -0
  57. package/dist/cmd/auth/ssh/index.js +11 -0
  58. package/dist/cmd/auth/ssh/index.js.map +1 -0
  59. package/dist/cmd/auth/ssh/list.js +70 -0
  60. package/dist/cmd/auth/ssh/list.js.map +1 -0
  61. package/dist/cmd/auth/whoami.js +68 -0
  62. package/dist/cmd/auth/whoami.js.map +1 -0
  63. package/dist/cmd/build/ast.d.ts.map +1 -0
  64. package/dist/cmd/build/ast.js +608 -0
  65. package/dist/cmd/build/ast.js.map +1 -0
  66. package/dist/cmd/{bundle → build}/ast.test.d.ts.map +1 -1
  67. package/dist/cmd/build/ast.test.js +389 -0
  68. package/dist/cmd/build/ast.test.js.map +1 -0
  69. package/dist/cmd/build/bundler.d.ts.map +1 -0
  70. package/dist/cmd/build/bundler.js +304 -0
  71. package/dist/cmd/build/bundler.js.map +1 -0
  72. package/dist/cmd/build/file.d.ts.map +1 -0
  73. package/dist/cmd/build/file.js +10 -0
  74. package/dist/cmd/build/file.js.map +1 -0
  75. package/dist/cmd/build/fix-duplicate-exports.d.ts.map +1 -0
  76. package/dist/cmd/build/fix-duplicate-exports.js +167 -0
  77. package/dist/cmd/build/fix-duplicate-exports.js.map +1 -0
  78. package/dist/cmd/build/fix-duplicate-exports.test.d.ts.map +1 -0
  79. package/dist/cmd/build/fix-duplicate-exports.test.js +300 -0
  80. package/dist/cmd/build/fix-duplicate-exports.test.js.map +1 -0
  81. package/dist/cmd/build/index.d.ts.map +1 -0
  82. package/dist/cmd/build/index.js +79 -0
  83. package/dist/cmd/build/index.js.map +1 -0
  84. package/dist/cmd/build/patch/_util.d.ts.map +1 -0
  85. package/dist/cmd/build/patch/_util.js +42 -0
  86. package/dist/cmd/build/patch/_util.js.map +1 -0
  87. package/dist/cmd/build/patch/aisdk.d.ts.map +1 -0
  88. package/dist/cmd/build/patch/aisdk.js +65 -0
  89. package/dist/cmd/build/patch/aisdk.js.map +1 -0
  90. package/dist/cmd/build/patch/index.d.ts.map +1 -0
  91. package/dist/cmd/build/patch/index.js +97 -0
  92. package/dist/cmd/build/patch/index.js.map +1 -0
  93. package/dist/cmd/build/patch/llm.d.ts.map +1 -0
  94. package/dist/cmd/build/patch/llm.js +18 -0
  95. package/dist/cmd/build/patch/llm.js.map +1 -0
  96. package/dist/cmd/build/plugin.d.ts.map +1 -0
  97. package/dist/cmd/build/plugin.js +556 -0
  98. package/dist/cmd/build/plugin.js.map +1 -0
  99. package/dist/cmd/cloud/agents/index.d.ts +3 -0
  100. package/dist/cmd/cloud/agents/index.d.ts.map +1 -0
  101. package/dist/cmd/cloud/agents/index.js +133 -0
  102. package/dist/cmd/cloud/agents/index.js.map +1 -0
  103. package/dist/cmd/cloud/deploy.js +341 -0
  104. package/dist/cmd/cloud/deploy.js.map +1 -0
  105. package/dist/cmd/cloud/deployment/index.js +20 -0
  106. package/dist/cmd/cloud/deployment/index.js.map +1 -0
  107. package/dist/cmd/cloud/deployment/list.js +89 -0
  108. package/dist/cmd/cloud/deployment/list.js.map +1 -0
  109. package/dist/cmd/cloud/deployment/remove.js +60 -0
  110. package/dist/cmd/cloud/deployment/remove.js.map +1 -0
  111. package/dist/cmd/cloud/deployment/rollback.js +80 -0
  112. package/dist/cmd/cloud/deployment/rollback.js.map +1 -0
  113. package/dist/cmd/cloud/deployment/show.js +106 -0
  114. package/dist/cmd/cloud/deployment/show.js.map +1 -0
  115. package/dist/cmd/cloud/deployment/undeploy.js +45 -0
  116. package/dist/cmd/cloud/deployment/undeploy.js.map +1 -0
  117. package/dist/cmd/cloud/deployment/utils.js +10 -0
  118. package/dist/cmd/cloud/deployment/utils.js.map +1 -0
  119. package/dist/cmd/cloud/domain.js +77 -0
  120. package/dist/cmd/cloud/domain.js.map +1 -0
  121. package/dist/cmd/cloud/env/delete.d.ts +2 -0
  122. package/dist/cmd/cloud/env/delete.d.ts.map +1 -0
  123. package/dist/cmd/cloud/env/delete.js +50 -0
  124. package/dist/cmd/cloud/env/delete.js.map +1 -0
  125. package/dist/cmd/cloud/env/get.d.ts +2 -0
  126. package/dist/cmd/cloud/env/get.d.ts.map +1 -0
  127. package/dist/cmd/cloud/env/get.js +65 -0
  128. package/dist/cmd/cloud/env/get.js.map +1 -0
  129. package/dist/cmd/cloud/env/import.d.ts +2 -0
  130. package/dist/cmd/cloud/env/import.d.ts.map +1 -0
  131. package/dist/cmd/cloud/env/import.js +113 -0
  132. package/dist/cmd/cloud/env/import.js.map +1 -0
  133. package/dist/cmd/cloud/env/index.d.ts +3 -0
  134. package/dist/cmd/cloud/env/index.d.ts.map +1 -0
  135. package/dist/cmd/cloud/env/index.js +24 -0
  136. package/dist/cmd/cloud/env/index.js.map +1 -0
  137. package/dist/cmd/cloud/env/list.d.ts +2 -0
  138. package/dist/cmd/cloud/env/list.d.ts.map +1 -0
  139. package/dist/cmd/cloud/env/list.js +58 -0
  140. package/dist/cmd/cloud/env/list.js.map +1 -0
  141. package/dist/cmd/cloud/env/pull.d.ts +2 -0
  142. package/dist/cmd/cloud/env/pull.d.ts.map +1 -0
  143. package/dist/cmd/cloud/env/pull.js +81 -0
  144. package/dist/cmd/cloud/env/pull.js.map +1 -0
  145. package/dist/cmd/cloud/env/push.d.ts +2 -0
  146. package/dist/cmd/cloud/env/push.d.ts.map +1 -0
  147. package/dist/cmd/cloud/env/push.js +61 -0
  148. package/dist/cmd/cloud/env/push.js.map +1 -0
  149. package/dist/cmd/cloud/env/set.d.ts +2 -0
  150. package/dist/cmd/cloud/env/set.d.ts.map +1 -0
  151. package/dist/cmd/cloud/env/set.js +73 -0
  152. package/dist/cmd/cloud/env/set.js.map +1 -0
  153. package/dist/cmd/cloud/index.d.ts.map +1 -1
  154. package/dist/cmd/cloud/index.js +31 -0
  155. package/dist/cmd/cloud/index.js.map +1 -0
  156. package/dist/cmd/cloud/keyvalue/create-namespace.d.ts +3 -0
  157. package/dist/cmd/cloud/keyvalue/create-namespace.d.ts.map +1 -0
  158. package/dist/cmd/cloud/keyvalue/create-namespace.js +41 -0
  159. package/dist/cmd/cloud/keyvalue/create-namespace.js.map +1 -0
  160. package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts +3 -0
  161. package/dist/cmd/cloud/keyvalue/delete-namespace.d.ts.map +1 -0
  162. package/dist/cmd/cloud/keyvalue/delete-namespace.js +64 -0
  163. package/dist/cmd/cloud/keyvalue/delete-namespace.js.map +1 -0
  164. package/dist/cmd/cloud/keyvalue/delete.d.ts +3 -0
  165. package/dist/cmd/cloud/keyvalue/delete.d.ts.map +1 -0
  166. package/dist/cmd/cloud/keyvalue/delete.js +47 -0
  167. package/dist/cmd/cloud/keyvalue/delete.js.map +1 -0
  168. package/dist/cmd/cloud/keyvalue/get.d.ts +3 -0
  169. package/dist/cmd/cloud/keyvalue/get.d.ts.map +1 -0
  170. package/dist/cmd/cloud/keyvalue/get.js +65 -0
  171. package/dist/cmd/cloud/keyvalue/get.js.map +1 -0
  172. package/dist/cmd/cloud/keyvalue/index.d.ts +3 -0
  173. package/dist/cmd/cloud/keyvalue/index.d.ts.map +1 -0
  174. package/dist/cmd/cloud/keyvalue/index.js +32 -0
  175. package/dist/cmd/cloud/keyvalue/index.js.map +1 -0
  176. package/dist/cmd/cloud/keyvalue/keys.d.ts +3 -0
  177. package/dist/cmd/cloud/keyvalue/keys.d.ts.map +1 -0
  178. package/dist/cmd/cloud/keyvalue/keys.js +50 -0
  179. package/dist/cmd/cloud/keyvalue/keys.js.map +1 -0
  180. package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts +3 -0
  181. package/dist/cmd/cloud/keyvalue/list-namespaces.d.ts.map +1 -0
  182. package/dist/cmd/cloud/keyvalue/list-namespaces.js +37 -0
  183. package/dist/cmd/cloud/keyvalue/list-namespaces.js.map +1 -0
  184. package/dist/cmd/cloud/keyvalue/repl.d.ts +3 -0
  185. package/dist/cmd/cloud/keyvalue/repl.d.ts.map +1 -0
  186. package/dist/cmd/cloud/keyvalue/repl.js +277 -0
  187. package/dist/cmd/cloud/keyvalue/repl.js.map +1 -0
  188. package/dist/cmd/cloud/keyvalue/search.d.ts +3 -0
  189. package/dist/cmd/cloud/keyvalue/search.d.ts.map +1 -0
  190. package/dist/cmd/cloud/keyvalue/search.js +72 -0
  191. package/dist/cmd/cloud/keyvalue/search.js.map +1 -0
  192. package/dist/cmd/cloud/keyvalue/set.d.ts +3 -0
  193. package/dist/cmd/cloud/keyvalue/set.d.ts.map +1 -0
  194. package/dist/cmd/cloud/keyvalue/set.js +59 -0
  195. package/dist/cmd/cloud/keyvalue/set.js.map +1 -0
  196. package/dist/cmd/cloud/keyvalue/stats.d.ts +3 -0
  197. package/dist/cmd/cloud/keyvalue/stats.d.ts.map +1 -0
  198. package/dist/cmd/cloud/keyvalue/stats.js +82 -0
  199. package/dist/cmd/cloud/keyvalue/stats.js.map +1 -0
  200. package/dist/cmd/{kv → cloud/keyvalue}/util.d.ts +1 -1
  201. package/dist/cmd/cloud/keyvalue/util.d.ts.map +1 -0
  202. package/dist/cmd/cloud/keyvalue/util.js +19 -0
  203. package/dist/cmd/cloud/keyvalue/util.js.map +1 -0
  204. package/dist/cmd/cloud/objectstore/delete-bucket.d.ts +3 -0
  205. package/dist/cmd/cloud/objectstore/delete-bucket.d.ts.map +1 -0
  206. package/dist/cmd/cloud/objectstore/delete-bucket.js +66 -0
  207. package/dist/cmd/cloud/objectstore/delete-bucket.js.map +1 -0
  208. package/dist/cmd/cloud/objectstore/delete.d.ts +3 -0
  209. package/dist/cmd/cloud/objectstore/delete.d.ts.map +1 -0
  210. package/dist/cmd/cloud/objectstore/delete.js +56 -0
  211. package/dist/cmd/cloud/objectstore/delete.js.map +1 -0
  212. package/dist/cmd/cloud/objectstore/get.d.ts +3 -0
  213. package/dist/cmd/cloud/objectstore/get.d.ts.map +1 -0
  214. package/dist/cmd/cloud/objectstore/get.js +64 -0
  215. package/dist/cmd/cloud/objectstore/get.js.map +1 -0
  216. package/dist/cmd/cloud/objectstore/index.d.ts +3 -0
  217. package/dist/cmd/cloud/objectstore/index.d.ts.map +1 -0
  218. package/dist/cmd/cloud/objectstore/index.js +28 -0
  219. package/dist/cmd/cloud/objectstore/index.js.map +1 -0
  220. package/dist/cmd/cloud/objectstore/list-buckets.d.ts +3 -0
  221. package/dist/cmd/cloud/objectstore/list-buckets.d.ts.map +1 -0
  222. package/dist/cmd/cloud/objectstore/list-buckets.js +37 -0
  223. package/dist/cmd/cloud/objectstore/list-buckets.js.map +1 -0
  224. package/dist/cmd/cloud/objectstore/list-keys.d.ts +3 -0
  225. package/dist/cmd/cloud/objectstore/list-keys.d.ts.map +1 -0
  226. package/dist/cmd/cloud/objectstore/list-keys.js +52 -0
  227. package/dist/cmd/cloud/objectstore/list-keys.js.map +1 -0
  228. package/dist/cmd/cloud/objectstore/put.d.ts +3 -0
  229. package/dist/cmd/cloud/objectstore/put.d.ts.map +1 -0
  230. package/dist/cmd/cloud/objectstore/put.js +57 -0
  231. package/dist/cmd/cloud/objectstore/put.js.map +1 -0
  232. package/dist/cmd/cloud/objectstore/repl.d.ts +3 -0
  233. package/dist/cmd/cloud/objectstore/repl.d.ts.map +1 -0
  234. package/dist/cmd/cloud/objectstore/repl.js +219 -0
  235. package/dist/cmd/cloud/objectstore/repl.js.map +1 -0
  236. package/dist/cmd/cloud/objectstore/url.d.ts +3 -0
  237. package/dist/cmd/cloud/objectstore/url.d.ts.map +1 -0
  238. package/dist/cmd/cloud/objectstore/url.js +55 -0
  239. package/dist/cmd/cloud/objectstore/url.js.map +1 -0
  240. package/dist/cmd/{objectstore → cloud/objectstore}/util.d.ts +1 -1
  241. package/dist/cmd/cloud/objectstore/util.d.ts.map +1 -0
  242. package/dist/cmd/cloud/objectstore/util.js +18 -0
  243. package/dist/cmd/cloud/objectstore/util.js.map +1 -0
  244. package/dist/cmd/cloud/resource/add.js +70 -0
  245. package/dist/cmd/cloud/resource/add.js.map +1 -0
  246. package/dist/cmd/cloud/resource/delete.js +126 -0
  247. package/dist/cmd/cloud/resource/delete.js.map +1 -0
  248. package/dist/cmd/cloud/resource/index.js +12 -0
  249. package/dist/cmd/cloud/resource/index.js.map +1 -0
  250. package/dist/cmd/cloud/resource/list.js +89 -0
  251. package/dist/cmd/cloud/resource/list.js.map +1 -0
  252. package/dist/cmd/cloud/scp/download.js +72 -0
  253. package/dist/cmd/cloud/scp/download.js.map +1 -0
  254. package/dist/cmd/cloud/scp/index.js +10 -0
  255. package/dist/cmd/cloud/scp/index.js.map +1 -0
  256. package/dist/cmd/cloud/scp/upload.js +75 -0
  257. package/dist/cmd/cloud/scp/upload.js.map +1 -0
  258. package/dist/cmd/cloud/secret/delete.d.ts +2 -0
  259. package/dist/cmd/cloud/secret/delete.d.ts.map +1 -0
  260. package/dist/cmd/cloud/secret/delete.js +50 -0
  261. package/dist/cmd/cloud/secret/delete.js.map +1 -0
  262. package/dist/cmd/cloud/secret/get.d.ts +2 -0
  263. package/dist/cmd/cloud/secret/get.d.ts.map +1 -0
  264. package/dist/cmd/cloud/secret/get.js +69 -0
  265. package/dist/cmd/cloud/secret/get.js.map +1 -0
  266. package/dist/cmd/cloud/secret/import.d.ts +2 -0
  267. package/dist/cmd/cloud/secret/import.d.ts.map +1 -0
  268. package/dist/cmd/cloud/secret/import.js +88 -0
  269. package/dist/cmd/cloud/secret/import.js.map +1 -0
  270. package/dist/cmd/cloud/secret/index.d.ts +3 -0
  271. package/dist/cmd/cloud/secret/index.d.ts.map +1 -0
  272. package/dist/cmd/cloud/secret/index.js +24 -0
  273. package/dist/cmd/cloud/secret/index.js.map +1 -0
  274. package/dist/cmd/cloud/secret/list.d.ts +2 -0
  275. package/dist/cmd/cloud/secret/list.d.ts.map +1 -0
  276. package/dist/cmd/cloud/secret/list.js +58 -0
  277. package/dist/cmd/cloud/secret/list.js.map +1 -0
  278. package/dist/cmd/cloud/secret/pull.d.ts +2 -0
  279. package/dist/cmd/cloud/secret/pull.d.ts.map +1 -0
  280. package/dist/cmd/cloud/secret/pull.js +81 -0
  281. package/dist/cmd/cloud/secret/pull.js.map +1 -0
  282. package/dist/cmd/cloud/secret/push.d.ts +2 -0
  283. package/dist/cmd/cloud/secret/push.d.ts.map +1 -0
  284. package/dist/cmd/cloud/secret/push.js +61 -0
  285. package/dist/cmd/cloud/secret/push.js.map +1 -0
  286. package/dist/cmd/cloud/secret/set.d.ts +2 -0
  287. package/dist/cmd/cloud/secret/set.d.ts.map +1 -0
  288. package/dist/cmd/cloud/secret/set.js +57 -0
  289. package/dist/cmd/cloud/secret/set.js.map +1 -0
  290. package/dist/cmd/cloud/session/get.d.ts.map +1 -1
  291. package/dist/cmd/cloud/session/get.js +155 -0
  292. package/dist/cmd/cloud/session/get.js.map +1 -0
  293. package/dist/cmd/cloud/session/index.js +11 -0
  294. package/dist/cmd/cloud/session/index.js.map +1 -0
  295. package/dist/cmd/cloud/session/list.js +132 -0
  296. package/dist/cmd/cloud/session/list.js.map +1 -0
  297. package/dist/cmd/cloud/session/logs.js +56 -0
  298. package/dist/cmd/cloud/session/logs.js.map +1 -0
  299. package/dist/cmd/cloud/ssh.js +67 -0
  300. package/dist/cmd/cloud/ssh.js.map +1 -0
  301. package/dist/cmd/dev/agents.js +103 -0
  302. package/dist/cmd/dev/agents.js.map +1 -0
  303. package/dist/cmd/dev/api.js +26 -0
  304. package/dist/cmd/dev/api.js.map +1 -0
  305. package/dist/cmd/dev/download.js +77 -0
  306. package/dist/cmd/dev/download.js.map +1 -0
  307. package/dist/cmd/dev/index.js +745 -0
  308. package/dist/cmd/dev/index.js.map +1 -0
  309. package/dist/cmd/dev/sync.js +229 -0
  310. package/dist/cmd/dev/sync.js.map +1 -0
  311. package/dist/cmd/dev/templates.js +75 -0
  312. package/dist/cmd/dev/templates.js.map +1 -0
  313. package/dist/cmd/index.js +49 -0
  314. package/dist/cmd/index.js.map +1 -0
  315. package/dist/cmd/profile/create.js +89 -0
  316. package/dist/cmd/profile/create.js.map +1 -0
  317. package/dist/cmd/profile/delete.js +63 -0
  318. package/dist/cmd/profile/delete.js.map +1 -0
  319. package/dist/cmd/profile/index.d.ts.map +1 -1
  320. package/dist/cmd/profile/index.js +14 -0
  321. package/dist/cmd/profile/index.js.map +1 -0
  322. package/dist/cmd/profile/list.js +28 -0
  323. package/dist/cmd/profile/list.js.map +1 -0
  324. package/dist/cmd/profile/show.js +68 -0
  325. package/dist/cmd/profile/show.js.map +1 -0
  326. package/dist/cmd/profile/use.js +37 -0
  327. package/dist/cmd/profile/use.js.map +1 -0
  328. package/dist/cmd/project/create.js +92 -0
  329. package/dist/cmd/project/create.js.map +1 -0
  330. package/dist/cmd/project/delete.js +117 -0
  331. package/dist/cmd/project/delete.js.map +1 -0
  332. package/dist/cmd/project/download.js +217 -0
  333. package/dist/cmd/project/download.js.map +1 -0
  334. package/dist/cmd/project/index.js +12 -0
  335. package/dist/cmd/project/index.js.map +1 -0
  336. package/dist/cmd/project/list.js +51 -0
  337. package/dist/cmd/project/list.js.map +1 -0
  338. package/dist/cmd/project/show.js +54 -0
  339. package/dist/cmd/project/show.js.map +1 -0
  340. package/dist/cmd/project/template-flow.js +315 -0
  341. package/dist/cmd/project/template-flow.js.map +1 -0
  342. package/dist/cmd/project/templates.js +31 -0
  343. package/dist/cmd/project/templates.js.map +1 -0
  344. package/dist/cmd/repl/index.js +444 -0
  345. package/dist/cmd/repl/index.js.map +1 -0
  346. package/dist/cmd/version/index.js +29 -0
  347. package/dist/cmd/version/index.js.map +1 -0
  348. package/dist/command-prefix.js +37 -0
  349. package/dist/command-prefix.js.map +1 -0
  350. package/dist/config.js +536 -0
  351. package/dist/config.js.map +1 -0
  352. package/dist/crypto/box.js +382 -0
  353. package/dist/crypto/box.js.map +1 -0
  354. package/dist/crypto/box.test.js +317 -0
  355. package/dist/crypto/box.test.js.map +1 -0
  356. package/dist/download.js +64 -0
  357. package/dist/download.js.map +1 -0
  358. package/dist/env-util.js +219 -0
  359. package/dist/env-util.js.map +1 -0
  360. package/dist/env-util.test.js +146 -0
  361. package/dist/env-util.test.js.map +1 -0
  362. package/dist/errors.js +177 -0
  363. package/dist/errors.js.map +1 -0
  364. package/dist/explain.js +90 -0
  365. package/dist/explain.js.map +1 -0
  366. package/dist/index.js +23 -0
  367. package/dist/index.js.map +1 -0
  368. package/dist/json.js +29 -0
  369. package/dist/json.js.map +1 -0
  370. package/dist/legacy-check.js +104 -0
  371. package/dist/legacy-check.js.map +1 -0
  372. package/dist/output.js +207 -0
  373. package/dist/output.js.map +1 -0
  374. package/dist/repl.js +1176 -0
  375. package/dist/repl.js.map +1 -0
  376. package/dist/runtime.js +19 -0
  377. package/dist/runtime.js.map +1 -0
  378. package/dist/schema-generator.js +289 -0
  379. package/dist/schema-generator.js.map +1 -0
  380. package/dist/schema-parser.js +145 -0
  381. package/dist/schema-parser.js.map +1 -0
  382. package/dist/sound.js +44 -0
  383. package/dist/sound.js.map +1 -0
  384. package/dist/steps.js +293 -0
  385. package/dist/steps.js.map +1 -0
  386. package/dist/terminal.js +130 -0
  387. package/dist/terminal.js.map +1 -0
  388. package/dist/tui.js +1124 -0
  389. package/dist/tui.js.map +1 -0
  390. package/dist/types.js +163 -0
  391. package/dist/types.js.map +1 -0
  392. package/dist/utils/detectSubagent.js +25 -0
  393. package/dist/utils/detectSubagent.js.map +1 -0
  394. package/dist/utils/format.js +21 -0
  395. package/dist/utils/format.js.map +1 -0
  396. package/dist/utils/zip.js +33 -0
  397. package/dist/utils/zip.js.map +1 -0
  398. package/dist/version.js +24 -0
  399. package/dist/version.js.map +1 -0
  400. package/package.json +6 -6
  401. package/src/banner.ts +1 -1
  402. package/src/cli.ts +7 -2
  403. package/src/cmd/{capabilities → ai/capabilities}/index.ts +2 -2
  404. package/src/cmd/{capabilities → ai/capabilities}/show.ts +6 -6
  405. package/src/cmd/ai/index.ts +11 -0
  406. package/src/cmd/{prompt → ai/prompt}/index.ts +2 -2
  407. package/src/cmd/{prompt → ai/prompt}/llm.ts +6 -6
  408. package/src/cmd/{schema → ai/schema}/index.ts +2 -2
  409. package/src/cmd/{schema → ai/schema}/show.ts +3 -3
  410. package/src/cmd/build/index.ts +83 -0
  411. package/src/cmd/{bundle → build}/plugin.ts +2 -1
  412. package/src/cmd/{agents → cloud/agents}/index.ts +4 -3
  413. package/src/cmd/cloud/deploy.ts +1 -1
  414. package/src/cmd/{env → cloud/env}/delete.ts +4 -4
  415. package/src/cmd/{env → cloud/env}/get.ts +5 -5
  416. package/src/cmd/{env → cloud/env}/import.ts +4 -4
  417. package/src/cmd/{env → cloud/env}/index.ts +2 -1
  418. package/src/cmd/{env → cloud/env}/list.ts +4 -4
  419. package/src/cmd/{env → cloud/env}/pull.ts +4 -4
  420. package/src/cmd/{env → cloud/env}/push.ts +4 -4
  421. package/src/cmd/{env → cloud/env}/set.ts +4 -4
  422. package/src/cmd/cloud/index.ts +10 -0
  423. package/src/cmd/{kv → cloud/keyvalue}/create-namespace.ts +3 -3
  424. package/src/cmd/{kv → cloud/keyvalue}/delete-namespace.ts +4 -4
  425. package/src/cmd/{kv → cloud/keyvalue}/delete.ts +3 -3
  426. package/src/cmd/{kv → cloud/keyvalue}/get.ts +4 -4
  427. package/src/cmd/{kv → cloud/keyvalue}/index.ts +2 -1
  428. package/src/cmd/{kv → cloud/keyvalue}/keys.ts +3 -3
  429. package/src/cmd/{kv → cloud/keyvalue}/list-namespaces.ts +3 -3
  430. package/src/cmd/{kv → cloud/keyvalue}/repl.ts +6 -6
  431. package/src/cmd/{kv → cloud/keyvalue}/search.ts +3 -3
  432. package/src/cmd/{kv → cloud/keyvalue}/set.ts +4 -4
  433. package/src/cmd/{kv → cloud/keyvalue}/stats.ts +3 -3
  434. package/src/cmd/{kv → cloud/keyvalue}/util.ts +4 -4
  435. package/src/cmd/{objectstore → cloud/objectstore}/delete-bucket.ts +3 -3
  436. package/src/cmd/{objectstore → cloud/objectstore}/delete.ts +3 -3
  437. package/src/cmd/{objectstore → cloud/objectstore}/get.ts +4 -4
  438. package/src/cmd/{objectstore → cloud/objectstore}/index.ts +2 -1
  439. package/src/cmd/{objectstore → cloud/objectstore}/list-buckets.ts +3 -3
  440. package/src/cmd/{objectstore → cloud/objectstore}/list-keys.ts +3 -3
  441. package/src/cmd/{objectstore → cloud/objectstore}/put.ts +4 -4
  442. package/src/cmd/{objectstore → cloud/objectstore}/repl.ts +6 -6
  443. package/src/cmd/{objectstore → cloud/objectstore}/url.ts +3 -3
  444. package/src/cmd/{objectstore → cloud/objectstore}/util.ts +3 -3
  445. package/src/cmd/{secret → cloud/secret}/delete.ts +4 -4
  446. package/src/cmd/{secret → cloud/secret}/get.ts +5 -5
  447. package/src/cmd/{secret → cloud/secret}/import.ts +4 -4
  448. package/src/cmd/{secret → cloud/secret}/index.ts +2 -1
  449. package/src/cmd/{secret → cloud/secret}/list.ts +4 -4
  450. package/src/cmd/{secret → cloud/secret}/pull.ts +4 -4
  451. package/src/cmd/{secret → cloud/secret}/push.ts +4 -4
  452. package/src/cmd/{secret → cloud/secret}/set.ts +4 -4
  453. package/src/cmd/cloud/session/get.ts +20 -14
  454. package/src/cmd/cloud/session/list.ts +1 -1
  455. package/src/cmd/dev/index.ts +3 -3
  456. package/src/cmd/profile/index.ts +1 -0
  457. package/src/cmd/project/create.ts +1 -1
  458. package/src/cmd/project/index.ts +1 -1
  459. package/dist/cmd/agents/index.d.ts.map +0 -1
  460. package/dist/cmd/bundle/ast.d.ts.map +0 -1
  461. package/dist/cmd/bundle/bundler.d.ts.map +0 -1
  462. package/dist/cmd/bundle/file.d.ts.map +0 -1
  463. package/dist/cmd/bundle/fix-duplicate-exports.d.ts.map +0 -1
  464. package/dist/cmd/bundle/fix-duplicate-exports.test.d.ts.map +0 -1
  465. package/dist/cmd/bundle/index.d.ts.map +0 -1
  466. package/dist/cmd/bundle/patch/_util.d.ts.map +0 -1
  467. package/dist/cmd/bundle/patch/aisdk.d.ts.map +0 -1
  468. package/dist/cmd/bundle/patch/index.d.ts.map +0 -1
  469. package/dist/cmd/bundle/patch/llm.d.ts.map +0 -1
  470. package/dist/cmd/bundle/plugin.d.ts.map +0 -1
  471. package/dist/cmd/capabilities/index.d.ts.map +0 -1
  472. package/dist/cmd/capabilities/show.d.ts.map +0 -1
  473. package/dist/cmd/env/delete.d.ts +0 -2
  474. package/dist/cmd/env/delete.d.ts.map +0 -1
  475. package/dist/cmd/env/get.d.ts +0 -2
  476. package/dist/cmd/env/get.d.ts.map +0 -1
  477. package/dist/cmd/env/import.d.ts +0 -2
  478. package/dist/cmd/env/import.d.ts.map +0 -1
  479. package/dist/cmd/env/index.d.ts +0 -2
  480. package/dist/cmd/env/index.d.ts.map +0 -1
  481. package/dist/cmd/env/list.d.ts +0 -2
  482. package/dist/cmd/env/list.d.ts.map +0 -1
  483. package/dist/cmd/env/pull.d.ts +0 -2
  484. package/dist/cmd/env/pull.d.ts.map +0 -1
  485. package/dist/cmd/env/push.d.ts +0 -2
  486. package/dist/cmd/env/push.d.ts.map +0 -1
  487. package/dist/cmd/env/set.d.ts +0 -2
  488. package/dist/cmd/env/set.d.ts.map +0 -1
  489. package/dist/cmd/kv/create-namespace.d.ts +0 -3
  490. package/dist/cmd/kv/create-namespace.d.ts.map +0 -1
  491. package/dist/cmd/kv/delete-namespace.d.ts +0 -3
  492. package/dist/cmd/kv/delete-namespace.d.ts.map +0 -1
  493. package/dist/cmd/kv/delete.d.ts +0 -3
  494. package/dist/cmd/kv/delete.d.ts.map +0 -1
  495. package/dist/cmd/kv/get.d.ts +0 -3
  496. package/dist/cmd/kv/get.d.ts.map +0 -1
  497. package/dist/cmd/kv/index.d.ts +0 -2
  498. package/dist/cmd/kv/index.d.ts.map +0 -1
  499. package/dist/cmd/kv/keys.d.ts +0 -3
  500. package/dist/cmd/kv/keys.d.ts.map +0 -1
  501. package/dist/cmd/kv/list-namespaces.d.ts +0 -3
  502. package/dist/cmd/kv/list-namespaces.d.ts.map +0 -1
  503. package/dist/cmd/kv/repl.d.ts +0 -3
  504. package/dist/cmd/kv/repl.d.ts.map +0 -1
  505. package/dist/cmd/kv/search.d.ts +0 -3
  506. package/dist/cmd/kv/search.d.ts.map +0 -1
  507. package/dist/cmd/kv/set.d.ts +0 -3
  508. package/dist/cmd/kv/set.d.ts.map +0 -1
  509. package/dist/cmd/kv/stats.d.ts +0 -3
  510. package/dist/cmd/kv/stats.d.ts.map +0 -1
  511. package/dist/cmd/kv/util.d.ts.map +0 -1
  512. package/dist/cmd/objectstore/delete-bucket.d.ts +0 -3
  513. package/dist/cmd/objectstore/delete-bucket.d.ts.map +0 -1
  514. package/dist/cmd/objectstore/delete.d.ts +0 -3
  515. package/dist/cmd/objectstore/delete.d.ts.map +0 -1
  516. package/dist/cmd/objectstore/get.d.ts +0 -3
  517. package/dist/cmd/objectstore/get.d.ts.map +0 -1
  518. package/dist/cmd/objectstore/index.d.ts +0 -2
  519. package/dist/cmd/objectstore/index.d.ts.map +0 -1
  520. package/dist/cmd/objectstore/list-buckets.d.ts +0 -3
  521. package/dist/cmd/objectstore/list-buckets.d.ts.map +0 -1
  522. package/dist/cmd/objectstore/list-keys.d.ts +0 -3
  523. package/dist/cmd/objectstore/list-keys.d.ts.map +0 -1
  524. package/dist/cmd/objectstore/put.d.ts +0 -3
  525. package/dist/cmd/objectstore/put.d.ts.map +0 -1
  526. package/dist/cmd/objectstore/repl.d.ts +0 -3
  527. package/dist/cmd/objectstore/repl.d.ts.map +0 -1
  528. package/dist/cmd/objectstore/url.d.ts +0 -3
  529. package/dist/cmd/objectstore/url.d.ts.map +0 -1
  530. package/dist/cmd/objectstore/util.d.ts.map +0 -1
  531. package/dist/cmd/prompt/index.d.ts +0 -4
  532. package/dist/cmd/prompt/index.d.ts.map +0 -1
  533. package/dist/cmd/prompt/llm.d.ts +0 -3
  534. package/dist/cmd/prompt/llm.d.ts.map +0 -1
  535. package/dist/cmd/schema/index.d.ts +0 -4
  536. package/dist/cmd/schema/index.d.ts.map +0 -1
  537. package/dist/cmd/schema/show.d.ts +0 -3
  538. package/dist/cmd/schema/show.d.ts.map +0 -1
  539. package/dist/cmd/secret/delete.d.ts +0 -2
  540. package/dist/cmd/secret/delete.d.ts.map +0 -1
  541. package/dist/cmd/secret/get.d.ts +0 -2
  542. package/dist/cmd/secret/get.d.ts.map +0 -1
  543. package/dist/cmd/secret/import.d.ts +0 -2
  544. package/dist/cmd/secret/import.d.ts.map +0 -1
  545. package/dist/cmd/secret/index.d.ts +0 -2
  546. package/dist/cmd/secret/index.d.ts.map +0 -1
  547. package/dist/cmd/secret/list.d.ts +0 -2
  548. package/dist/cmd/secret/list.d.ts.map +0 -1
  549. package/dist/cmd/secret/pull.d.ts +0 -2
  550. package/dist/cmd/secret/pull.d.ts.map +0 -1
  551. package/dist/cmd/secret/push.d.ts +0 -2
  552. package/dist/cmd/secret/push.d.ts.map +0 -1
  553. package/dist/cmd/secret/set.d.ts +0 -2
  554. package/dist/cmd/secret/set.d.ts.map +0 -1
  555. package/src/cmd/bundle/index.ts +0 -58
  556. /package/dist/cmd/{agents → ai}/index.d.ts +0 -0
  557. /package/dist/cmd/{bundle → build}/ast.d.ts +0 -0
  558. /package/dist/cmd/{bundle → build}/ast.test.d.ts +0 -0
  559. /package/dist/cmd/{bundle → build}/bundler.d.ts +0 -0
  560. /package/dist/cmd/{bundle → build}/file.d.ts +0 -0
  561. /package/dist/cmd/{bundle → build}/fix-duplicate-exports.d.ts +0 -0
  562. /package/dist/cmd/{bundle → build}/fix-duplicate-exports.test.d.ts +0 -0
  563. /package/dist/cmd/{bundle → build}/index.d.ts +0 -0
  564. /package/dist/cmd/{bundle → build}/patch/_util.d.ts +0 -0
  565. /package/dist/cmd/{bundle → build}/patch/aisdk.d.ts +0 -0
  566. /package/dist/cmd/{bundle → build}/patch/index.d.ts +0 -0
  567. /package/dist/cmd/{bundle → build}/patch/llm.d.ts +0 -0
  568. /package/dist/cmd/{bundle → build}/plugin.d.ts +0 -0
  569. /package/src/cmd/{bundle → build}/ast.test.ts +0 -0
  570. /package/src/cmd/{bundle → build}/ast.ts +0 -0
  571. /package/src/cmd/{bundle → build}/bundler.ts +0 -0
  572. /package/src/cmd/{bundle → build}/file.ts +0 -0
  573. /package/src/cmd/{bundle → build}/fix-duplicate-exports.test.ts +0 -0
  574. /package/src/cmd/{bundle → build}/fix-duplicate-exports.ts +0 -0
  575. /package/src/cmd/{bundle → build}/patch/_util.ts +0 -0
  576. /package/src/cmd/{bundle → build}/patch/aisdk.ts +0 -0
  577. /package/src/cmd/{bundle → build}/patch/index.ts +0 -0
  578. /package/src/cmd/{bundle → build}/patch/llm.ts +0 -0
@@ -0,0 +1,83 @@
1
+ import { createCommand } from '../../types';
2
+ import { z } from 'zod';
3
+ import { bundle } from './bundler';
4
+ import * as tui from '../../tui';
5
+ import { getCommand } from '../../command-prefix';
6
+
7
+ const BuildResponseSchema = z.object({
8
+ success: z.boolean().describe('Whether the build succeeded'),
9
+ bundlePath: z.string().describe('Path to the build directory'),
10
+ projectName: z.string().describe('Project name'),
11
+ dev: z.boolean().describe('Whether dev mode was enabled'),
12
+ size: z.number().optional().describe('Build size in bytes'),
13
+ });
14
+
15
+ export const command = createCommand({
16
+ name: 'build',
17
+ description: 'Build Agentuity application for deployment',
18
+ tags: ['read-only', 'slow', 'requires-project'],
19
+ aliases: ['bundle'],
20
+ optional: { project: true },
21
+ idempotent: false,
22
+ examples: [getCommand('build'), getCommand('build --dev'), getCommand('bundle')],
23
+ schema: {
24
+ options: z.object({
25
+ dev: z.boolean().optional().describe('Enable development mode'),
26
+ }),
27
+ response: BuildResponseSchema,
28
+ },
29
+
30
+ async handler(ctx) {
31
+ const { opts, projectDir, project } = ctx;
32
+
33
+ try {
34
+ tui.info(`Bundling project at: ${projectDir}`);
35
+
36
+ // Generate agent registry FIRST (so types exist for typecheck)
37
+ tui.info('Generating agent registry...');
38
+ await bundle({
39
+ rootDir: projectDir,
40
+ dev: opts.dev || false,
41
+ project,
42
+ });
43
+
44
+ // Run TypeScript type checking after registry generation (skip in dev mode)
45
+ if (!opts.dev) {
46
+ try {
47
+ tui.info('Running type check...');
48
+ const { resolve } = await import('node:path');
49
+ const absoluteProjectDir = resolve(projectDir);
50
+ const result = await Bun.$`bunx tsc --noEmit --skipLibCheck`.cwd(absoluteProjectDir).nothrow();
51
+
52
+ if (result.exitCode === 0) {
53
+ tui.success('Type check passed');
54
+ } else {
55
+ tui.error('Type check failed:\n');
56
+ console.error(result.stderr.toString());
57
+ tui.fatal('Fix type errors before building');
58
+ }
59
+ } catch (error) {
60
+ // If tsc fails to run, show error and fail
61
+ const errorMsg = error instanceof Error ? error.message : String(error);
62
+ tui.error(`Type check failed to run: ${errorMsg}`);
63
+ tui.fatal('Unable to run TypeScript type checking. Ensure TypeScript is installed.');
64
+ }
65
+ }
66
+
67
+ tui.success('Bundle complete');
68
+
69
+ return {
70
+ success: true,
71
+ bundlePath: `${projectDir}/.agentuity`,
72
+ projectName: project?.projectId || 'unknown',
73
+ dev: opts.dev || false,
74
+ };
75
+ } catch (error) {
76
+ if (error instanceof Error) {
77
+ tui.fatal(`Bundle failed: ${error.message}`);
78
+ } else {
79
+ tui.fatal('Bundle failed');
80
+ }
81
+ }
82
+ },
83
+ });
@@ -151,7 +151,8 @@ function generateAgentRegistry(srcDir: string, agentInfo: Array<Record<string, s
151
151
  }
152
152
  const agentTypes = agentTypeLines.join('\n');
153
153
 
154
- const generatedContent = `// Auto-generated by Agentuity - do not edit manually
154
+ const generatedContent = `/// <reference types="hono" />
155
+ // Auto-generated by Agentuity - do not edit manually
155
156
  ${imports}${evalsImportsStr}
156
157
  import type { AgentRunner, Logger } from '@agentuity/runtime';
157
158
  import type { KeyValueStorage, ObjectStorage, StreamStorage, VectorStorage } from '@agentuity/core';
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { APIResponseSchema } from '@agentuity/server';
5
5
  import { Table } from 'console-table-printer';
6
- import { abbreviate, abbreviateDescription } from '../../utils/format';
6
+ import { abbreviate, abbreviateDescription } from '../../../utils/format';
7
7
 
8
8
  const AgentSchema = z.object({
9
9
  id: z.string(),
@@ -145,3 +145,4 @@ export const command = createCommand({
145
145
  }
146
146
  },
147
147
  });
148
+ export default command;
@@ -6,7 +6,7 @@ import { createSubcommand } from '../../types';
6
6
  import * as tui from '../../tui';
7
7
  import { saveProjectDir } from '../../config';
8
8
  import { runSteps, stepSuccess, stepSkipped, stepError, Step, ProgressCallback } from '../../steps';
9
- import { bundle } from '../bundle/bundler';
9
+ import { bundle } from '../build/bundler';
10
10
  import { loadBuildMetadata } from '../../config';
11
11
  import {
12
12
  projectEnvUpdate,
@@ -1,14 +1,14 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectEnvDelete } from '@agentuity/server';
5
5
  import {
6
6
  findExistingEnvFile,
7
7
  readEnvFile,
8
8
  writeEnvFile,
9
9
  filterAgentuitySdkKeys,
10
- } from '../../env-util';
11
- import { getCommand } from '../../command-prefix';
10
+ } from '../../../env-util';
11
+ import { getCommand } from '../../../command-prefix';
12
12
 
13
13
  const EnvDeleteResponseSchema = z.object({
14
14
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectGet } from '@agentuity/server';
5
- import { maskSecret } from '../../env-util';
6
- import { getCommand } from '../../command-prefix';
7
- import { ErrorCode } from '../../errors';
5
+ import { maskSecret } from '../../../env-util';
6
+ import { getCommand } from '../../../command-prefix';
7
+ import { ErrorCode } from '../../../errors';
8
8
 
9
9
  const EnvGetResponseSchema = z.object({
10
10
  key: z.string().describe('Environment variable key name'),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectEnvUpdate } from '@agentuity/server';
5
5
  import {
6
6
  findEnvFile,
@@ -10,8 +10,8 @@ import {
10
10
  mergeEnvVars,
11
11
  splitEnvAndSecrets,
12
12
  looksLikeSecret,
13
- } from '../../env-util';
14
- import { getCommand } from '../../command-prefix';
13
+ } from '../../../env-util';
14
+ import { getCommand } from '../../../command-prefix';
15
15
 
16
16
  const EnvImportResponseSchema = z.object({
17
17
  success: z.boolean().describe('Whether import succeeded'),
@@ -1,4 +1,4 @@
1
- import { createCommand } from '../../types';
1
+ import { createCommand } from '../../../types';
2
2
  import { pullSubcommand } from './pull';
3
3
  import { pushSubcommand } from './push';
4
4
  import { setSubcommand } from './set';
@@ -21,3 +21,4 @@ export const command = createCommand({
21
21
  importSubcommand,
22
22
  ],
23
23
  });
24
+ export default command;
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectGet } from '@agentuity/server';
5
- import { maskSecret } from '../../env-util';
6
- import { getCommand } from '../../command-prefix';
5
+ import { maskSecret } from '../../../env-util';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const EnvListResponseSchema = z.record(
9
9
  z.string(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { join } from 'node:path';
3
- import { createSubcommand } from '../../types';
4
- import * as tui from '../../tui';
3
+ import { createSubcommand } from '../../../types';
4
+ import * as tui from '../../../tui';
5
5
  import { projectGet } from '@agentuity/server';
6
6
  import {
7
7
  findEnvFile,
@@ -9,8 +9,8 @@ import {
9
9
  readEnvFile,
10
10
  writeEnvFile,
11
11
  mergeEnvVars,
12
- } from '../../env-util';
13
- import { getCommand } from '../../command-prefix';
12
+ } from '../../../env-util';
13
+ import { getCommand } from '../../../command-prefix';
14
14
 
15
15
  const EnvPullResponseSchema = z.object({
16
16
  success: z.boolean().describe('Whether pull succeeded'),
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectEnvUpdate } from '@agentuity/server';
5
- import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '../../env-util';
6
- import { getCommand } from '../../command-prefix';
5
+ import { findExistingEnvFile, readEnvFile, filterAgentuitySdkKeys } from '../../../env-util';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const EnvPushResponseSchema = z.object({
9
9
  success: z.boolean().describe('Whether push succeeded'),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectEnvUpdate } from '@agentuity/server';
5
5
  import {
6
6
  findEnvFile,
@@ -8,8 +8,8 @@ import {
8
8
  writeEnvFile,
9
9
  filterAgentuitySdkKeys,
10
10
  looksLikeSecret,
11
- } from '../../env-util';
12
- import { getCommand } from '../../command-prefix';
11
+ } from '../../../env-util';
12
+ import { getCommand } from '../../../command-prefix';
13
13
 
14
14
  const EnvSetResponseSchema = z.object({
15
15
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -5,12 +5,22 @@ import { sessionCommand } from './session';
5
5
  import { sshSubcommand } from './ssh';
6
6
  import { scpSubcommand } from './scp';
7
7
  import { deploymentCommand } from './deployment';
8
+ import keyvalueCommand from './keyvalue';
9
+ import agentsCommand from './agents';
10
+ import objectstoreCommand from './objectstore';
11
+ import envCommand from './env';
12
+ import secretCommand from './secret';
8
13
 
9
14
  export const command = createCommand({
10
15
  name: 'cloud',
11
16
  description: 'Cloud related commands',
12
17
  tags: ['slow', 'requires-auth'],
13
18
  subcommands: [
19
+ keyvalueCommand,
20
+ agentsCommand,
21
+ objectstoreCommand,
22
+ envCommand,
23
+ secretCommand,
14
24
  deploySubcommand,
15
25
  resourceSubcommand,
16
26
  sessionCommand,
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  export const createNamespaceSubcommand = createCommand({
8
8
  name: 'create-namespace',
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import { ErrorCode } from '../../errors';
4
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import { ErrorCode } from '../../../errors';
4
+ import * as tui from '../../../tui';
5
5
  import { createStorageAdapter } from './util';
6
- import { getCommand } from '../../command-prefix';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  export const deleteNamespaceSubcommand = createCommand({
9
9
  name: 'delete-namespace',
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const KVDeleteResponseSchema = z.object({
8
8
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
4
- import { tryParseJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
+ import { tryParseJSON } from '../../../json';
5
5
  import { createStorageAdapter } from './util';
6
- import { getCommand } from '../../command-prefix';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const KVGetResponseSchema = z.object({
9
9
  exists: z.boolean().describe('Whether the key exists'),
@@ -1,4 +1,4 @@
1
- import { createCommand } from '../../types';
1
+ import { createCommand } from '../../../types';
2
2
  import { createNamespaceSubcommand } from './create-namespace';
3
3
  import { deleteSubcommand } from './delete';
4
4
  import { deleteNamespaceSubcommand } from './delete-namespace';
@@ -29,3 +29,4 @@ export const command = createCommand({
29
29
  ],
30
30
  requires: { auth: true, project: true },
31
31
  });
32
+ export default command;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const KVKeysResponseSchema = z.object({
8
8
  namespace: z.string().describe('Namespace name'),
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const NamespaceListResponseSchema = z.array(z.string().describe('Namespace name'));
8
8
 
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import { createRepl, type ReplCommand } from '../../repl';
4
- import { showBanner } from '../../banner';
5
- import * as tui from '../../tui';
6
- import { isPossiblyJSON, tryParseJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import { createRepl, type ReplCommand } from '../../../repl';
4
+ import { showBanner } from '../../../banner';
5
+ import * as tui from '../../../tui';
6
+ import { isPossiblyJSON, tryParseJSON } from '../../../json';
7
7
  import { createStorageAdapter } from './util';
8
- import { getCommand } from '../../command-prefix';
8
+ import { getCommand } from '../../../command-prefix';
9
9
 
10
10
  export const replSubcommand = createCommand({
11
11
  name: 'repl',
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const KVSearchResponseSchema = z.object({
8
8
  namespace: z.string().describe('Namespace name'),
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
4
- import { isPossiblyJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
+ import { isPossiblyJSON } from '../../../json';
5
5
  import { createStorageAdapter } from './util';
6
- import { getCommand } from '../../command-prefix';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const KVSetResponseSchema = z.object({
9
9
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const KVStatsResponseSchema = z.union([
8
8
  z.object({
@@ -1,9 +1,9 @@
1
1
  import { KeyValueStorageService, Logger } from '@agentuity/core';
2
2
  import { createServerFetchAdapter } from '@agentuity/server';
3
- import { loadProjectSDKKey } from '../../config';
4
- import { ErrorCode } from '../../errors';
5
- import type { Config } from '../../types';
6
- import * as tui from '../../tui';
3
+ import { loadProjectSDKKey } from '../../../config';
4
+ import { ErrorCode } from '../../../errors';
5
+ import type { Config } from '../../../types';
6
+ import * as tui from '../../../tui';
7
7
 
8
8
  export async function createStorageAdapter(ctx: {
9
9
  logger: Logger;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  export const deleteBucketSubcommand = createCommand({
8
8
  name: 'delete-bucket',
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const ObjectStoreDeleteResponseSchema = z.object({
8
8
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
4
- import { tryParseJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
+ import { tryParseJSON } from '../../../json';
5
5
  import { createStorageAdapter } from './util';
6
- import { getCommand } from '../../command-prefix';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const ObjectGetResponseSchema = z.object({
9
9
  exists: z.boolean().describe('Whether the object exists'),
@@ -1,4 +1,4 @@
1
- import { createCommand } from '../../types';
1
+ import { createCommand } from '../../../types';
2
2
  import { deleteSubcommand } from './delete';
3
3
  import { deleteBucketSubcommand } from './delete-bucket';
4
4
  import { getSubcommand } from './get';
@@ -25,3 +25,4 @@ export const command = createCommand({
25
25
  ],
26
26
  requires: { auth: true, project: true },
27
27
  });
28
+ export default command;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const BucketListResponseSchema = z.array(
8
8
  z.object({
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  export const listKeysSubcommand = createCommand({
8
8
  name: 'list-keys',
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
4
- import { isPossiblyJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
+ import { isPossiblyJSON } from '../../../json';
5
5
  import { createStorageAdapter } from './util';
6
- import { getCommand } from '../../command-prefix';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const ObjectStorePutResponseSchema = z.object({
9
9
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import { createRepl, type ReplCommand } from '../../repl';
4
- import { showBanner } from '../../banner';
5
- import * as tui from '../../tui';
6
- import { isPossiblyJSON, tryParseJSON } from '../../json';
2
+ import { createCommand } from '../../../types';
3
+ import { createRepl, type ReplCommand } from '../../../repl';
4
+ import { showBanner } from '../../../banner';
5
+ import * as tui from '../../../tui';
6
+ import { isPossiblyJSON, tryParseJSON } from '../../../json';
7
7
  import { createStorageAdapter } from './util';
8
- import { getCommand } from '../../command-prefix';
8
+ import { getCommand } from '../../../command-prefix';
9
9
 
10
10
  export const replSubcommand = createCommand({
11
11
  name: 'repl',
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
- import { createCommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createCommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { createStorageAdapter } from './util';
5
- import { getCommand } from '../../command-prefix';
5
+ import { getCommand } from '../../../command-prefix';
6
6
 
7
7
  const ObjectStoreURLResponseSchema = z.object({
8
8
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,8 +1,8 @@
1
1
  import { Logger, ObjectStorageService } from '@agentuity/core';
2
2
  import { createServerFetchAdapter } from '@agentuity/server';
3
- import { loadProjectSDKKey } from '../../config';
4
- import type { Config } from '../../types';
5
- import * as tui from '../../tui';
3
+ import { loadProjectSDKKey } from '../../../config';
4
+ import type { Config } from '../../../types';
5
+ import * as tui from '../../../tui';
6
6
 
7
7
  export async function createStorageAdapter(ctx: {
8
8
  logger: Logger;
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectEnvDelete } from '@agentuity/server';
5
- import { findEnvFile, readEnvFile, writeEnvFile, filterAgentuitySdkKeys } from '../../env-util';
6
- import { getCommand } from '../../command-prefix';
5
+ import { findEnvFile, readEnvFile, writeEnvFile, filterAgentuitySdkKeys } from '../../../env-util';
6
+ import { getCommand } from '../../../command-prefix';
7
7
 
8
8
  const SecretDeleteResponseSchema = z.object({
9
9
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { createSubcommand } from '../../types';
3
- import * as tui from '../../tui';
2
+ import { createSubcommand } from '../../../types';
3
+ import * as tui from '../../../tui';
4
4
  import { projectGet } from '@agentuity/server';
5
- import { maskSecret } from '../../env-util';
6
- import { getCommand } from '../../command-prefix';
7
- import { ErrorCode } from '../../errors';
5
+ import { maskSecret } from '../../../env-util';
6
+ import { getCommand } from '../../../command-prefix';
7
+ import { ErrorCode } from '../../../errors';
8
8
 
9
9
  const SecretGetResponseSchema = z.object({
10
10
  key: z.string().describe('Secret key name'),