@agentuity/cli 1.0.31 → 1.0.33

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 (345) hide show
  1. package/dist/agent-detection.js +1 -1
  2. package/dist/agent-detection.js.map +1 -1
  3. package/dist/api.d.ts +1 -1
  4. package/dist/api.d.ts.map +1 -1
  5. package/dist/api.js +1 -1
  6. package/dist/api.js.map +1 -1
  7. package/dist/cache/agent-intro.d.ts.map +1 -1
  8. package/dist/cache/agent-intro.js.map +1 -1
  9. package/dist/cache/resource-region.d.ts.map +1 -1
  10. package/dist/cache/resource-region.js.map +1 -1
  11. package/dist/cache/user-cache.d.ts.map +1 -1
  12. package/dist/cache/user-cache.js.map +1 -1
  13. package/dist/catalyst.d.ts +3 -1
  14. package/dist/catalyst.d.ts.map +1 -1
  15. package/dist/catalyst.js +5 -1
  16. package/dist/catalyst.js.map +1 -1
  17. package/dist/cmd/ai/opencode/install.js +1 -1
  18. package/dist/cmd/ai/opencode/install.js.map +1 -1
  19. package/dist/cmd/build/ast.js +2 -2
  20. package/dist/cmd/build/ast.js.map +1 -1
  21. package/dist/cmd/build/patch/_util.d.ts +1 -1
  22. package/dist/cmd/build/patch/_util.d.ts.map +1 -1
  23. package/dist/cmd/build/patch/_util.js +2 -2
  24. package/dist/cmd/build/patch/_util.js.map +1 -1
  25. package/dist/cmd/build/vite/bun-dev-server.js +9 -1
  26. package/dist/cmd/build/vite/bun-dev-server.js.map +1 -1
  27. package/dist/cmd/build/vite/config-loader.js +9 -1
  28. package/dist/cmd/build/vite/config-loader.js.map +1 -1
  29. package/dist/cmd/build/vite/registry-generator.js.map +1 -1
  30. package/dist/cmd/build/vite/server-bundler.js +9 -1
  31. package/dist/cmd/build/vite/server-bundler.js.map +1 -1
  32. package/dist/cmd/build/vite/static-renderer.js +11 -3
  33. package/dist/cmd/build/vite/static-renderer.js.map +1 -1
  34. package/dist/cmd/build/vite/vite-asset-server-config.js +9 -1
  35. package/dist/cmd/build/vite/vite-asset-server-config.js.map +1 -1
  36. package/dist/cmd/build/vite/vite-asset-server.js +9 -1
  37. package/dist/cmd/build/vite/vite-asset-server.js.map +1 -1
  38. package/dist/cmd/build/vite/vite-builder.js +10 -2
  39. package/dist/cmd/build/vite/vite-builder.js.map +1 -1
  40. package/dist/cmd/build/vite/workbench-generator.d.ts +1 -1
  41. package/dist/cmd/build/vite/workbench-generator.d.ts.map +1 -1
  42. package/dist/cmd/build/vite/workbench-generator.js +1 -1
  43. package/dist/cmd/build/vite/workbench-generator.js.map +1 -1
  44. package/dist/cmd/cloud/db/create.d.ts.map +1 -1
  45. package/dist/cmd/cloud/db/create.js +8 -10
  46. package/dist/cmd/cloud/db/create.js.map +1 -1
  47. package/dist/cmd/cloud/db/delete.d.ts.map +1 -1
  48. package/dist/cmd/cloud/db/delete.js +12 -14
  49. package/dist/cmd/cloud/db/delete.js.map +1 -1
  50. package/dist/cmd/cloud/db/get.d.ts.map +1 -1
  51. package/dist/cmd/cloud/db/get.js +7 -7
  52. package/dist/cmd/cloud/db/get.js.map +1 -1
  53. package/dist/cmd/cloud/db/list.d.ts.map +1 -1
  54. package/dist/cmd/cloud/db/list.js +5 -5
  55. package/dist/cmd/cloud/db/list.js.map +1 -1
  56. package/dist/cmd/cloud/db/logs.d.ts.map +1 -1
  57. package/dist/cmd/cloud/db/logs.js +7 -7
  58. package/dist/cmd/cloud/db/logs.js.map +1 -1
  59. package/dist/cmd/cloud/db/sql.js +5 -5
  60. package/dist/cmd/cloud/db/sql.js.map +1 -1
  61. package/dist/cmd/cloud/db/stats.d.ts.map +1 -1
  62. package/dist/cmd/cloud/db/stats.js +5 -5
  63. package/dist/cmd/cloud/db/stats.js.map +1 -1
  64. package/dist/cmd/cloud/deploy.d.ts.map +1 -1
  65. package/dist/cmd/cloud/deploy.js +1 -1
  66. package/dist/cmd/cloud/deploy.js.map +1 -1
  67. package/dist/cmd/cloud/email/stats.d.ts.map +1 -1
  68. package/dist/cmd/cloud/email/stats.js +5 -5
  69. package/dist/cmd/cloud/email/stats.js.map +1 -1
  70. package/dist/cmd/cloud/email/util.d.ts +2 -2
  71. package/dist/cmd/cloud/email/util.d.ts.map +1 -1
  72. package/dist/cmd/cloud/email/util.js +2 -2
  73. package/dist/cmd/cloud/email/util.js.map +1 -1
  74. package/dist/cmd/cloud/keyvalue/repl.d.ts.map +1 -1
  75. package/dist/cmd/cloud/keyvalue/repl.js +4 -2
  76. package/dist/cmd/cloud/keyvalue/repl.js.map +1 -1
  77. package/dist/cmd/cloud/keyvalue/search.d.ts.map +1 -1
  78. package/dist/cmd/cloud/keyvalue/search.js.map +1 -1
  79. package/dist/cmd/cloud/keyvalue/util.d.ts.map +1 -1
  80. package/dist/cmd/cloud/keyvalue/util.js +1 -1
  81. package/dist/cmd/cloud/keyvalue/util.js.map +1 -1
  82. package/dist/cmd/cloud/machine/delete.d.ts.map +1 -1
  83. package/dist/cmd/cloud/machine/delete.js +6 -6
  84. package/dist/cmd/cloud/machine/delete.js.map +1 -1
  85. package/dist/cmd/cloud/machine/deployments.d.ts.map +1 -1
  86. package/dist/cmd/cloud/machine/deployments.js +5 -5
  87. package/dist/cmd/cloud/machine/deployments.js.map +1 -1
  88. package/dist/cmd/cloud/machine/get.d.ts.map +1 -1
  89. package/dist/cmd/cloud/machine/get.js +5 -5
  90. package/dist/cmd/cloud/machine/get.js.map +1 -1
  91. package/dist/cmd/cloud/machine/list.d.ts.map +1 -1
  92. package/dist/cmd/cloud/machine/list.js +5 -5
  93. package/dist/cmd/cloud/machine/list.js.map +1 -1
  94. package/dist/cmd/cloud/queue/util.d.ts +1 -1
  95. package/dist/cmd/cloud/queue/util.d.ts.map +1 -1
  96. package/dist/cmd/cloud/queue/util.js +1 -1
  97. package/dist/cmd/cloud/queue/util.js.map +1 -1
  98. package/dist/cmd/cloud/redis/get.js +5 -5
  99. package/dist/cmd/cloud/redis/get.js.map +1 -1
  100. package/dist/cmd/cloud/sandbox/cp.js +2 -2
  101. package/dist/cmd/cloud/sandbox/cp.js.map +1 -1
  102. package/dist/cmd/cloud/sandbox/execution/get.d.ts.map +1 -1
  103. package/dist/cmd/cloud/sandbox/execution/get.js +4 -4
  104. package/dist/cmd/cloud/sandbox/execution/get.js.map +1 -1
  105. package/dist/cmd/cloud/sandbox/execution/list.d.ts.map +1 -1
  106. package/dist/cmd/cloud/sandbox/execution/list.js +5 -5
  107. package/dist/cmd/cloud/sandbox/execution/list.js.map +1 -1
  108. package/dist/cmd/cloud/sandbox/runtime/list.d.ts.map +1 -1
  109. package/dist/cmd/cloud/sandbox/runtime/list.js +4 -4
  110. package/dist/cmd/cloud/sandbox/runtime/list.js.map +1 -1
  111. package/dist/cmd/cloud/sandbox/snapshot/build.js +1 -1
  112. package/dist/cmd/cloud/sandbox/snapshot/build.js.map +1 -1
  113. package/dist/cmd/cloud/sandbox/snapshot/create.d.ts.map +1 -1
  114. package/dist/cmd/cloud/sandbox/snapshot/create.js +5 -5
  115. package/dist/cmd/cloud/sandbox/snapshot/create.js.map +1 -1
  116. package/dist/cmd/cloud/sandbox/snapshot/delete.d.ts.map +1 -1
  117. package/dist/cmd/cloud/sandbox/snapshot/delete.js +4 -4
  118. package/dist/cmd/cloud/sandbox/snapshot/delete.js.map +1 -1
  119. package/dist/cmd/cloud/sandbox/snapshot/get.d.ts.map +1 -1
  120. package/dist/cmd/cloud/sandbox/snapshot/get.js +4 -4
  121. package/dist/cmd/cloud/sandbox/snapshot/get.js.map +1 -1
  122. package/dist/cmd/cloud/sandbox/snapshot/list.d.ts.map +1 -1
  123. package/dist/cmd/cloud/sandbox/snapshot/list.js +4 -4
  124. package/dist/cmd/cloud/sandbox/snapshot/list.js.map +1 -1
  125. package/dist/cmd/cloud/sandbox/snapshot/tag.d.ts.map +1 -1
  126. package/dist/cmd/cloud/sandbox/snapshot/tag.js +4 -4
  127. package/dist/cmd/cloud/sandbox/snapshot/tag.js.map +1 -1
  128. package/dist/cmd/cloud/sandbox/stats.d.ts.map +1 -1
  129. package/dist/cmd/cloud/sandbox/stats.js +5 -5
  130. package/dist/cmd/cloud/sandbox/stats.js.map +1 -1
  131. package/dist/cmd/cloud/sandbox/util.d.ts +3 -3
  132. package/dist/cmd/cloud/sandbox/util.d.ts.map +1 -1
  133. package/dist/cmd/cloud/sandbox/util.js +5 -5
  134. package/dist/cmd/cloud/sandbox/util.js.map +1 -1
  135. package/dist/cmd/cloud/schedule/stats.d.ts.map +1 -1
  136. package/dist/cmd/cloud/schedule/stats.js +5 -5
  137. package/dist/cmd/cloud/schedule/stats.js.map +1 -1
  138. package/dist/cmd/cloud/schedule/util.d.ts +1 -1
  139. package/dist/cmd/cloud/schedule/util.d.ts.map +1 -1
  140. package/dist/cmd/cloud/schedule/util.js +1 -1
  141. package/dist/cmd/cloud/schedule/util.js.map +1 -1
  142. package/dist/cmd/cloud/services/stats.d.ts.map +1 -1
  143. package/dist/cmd/cloud/services/stats.js +5 -5
  144. package/dist/cmd/cloud/services/stats.js.map +1 -1
  145. package/dist/cmd/cloud/session/get.d.ts.map +1 -1
  146. package/dist/cmd/cloud/session/get.js +5 -5
  147. package/dist/cmd/cloud/session/get.js.map +1 -1
  148. package/dist/cmd/cloud/session/list.d.ts.map +1 -1
  149. package/dist/cmd/cloud/session/list.js +5 -5
  150. package/dist/cmd/cloud/session/list.js.map +1 -1
  151. package/dist/cmd/cloud/storage/config.d.ts.map +1 -1
  152. package/dist/cmd/cloud/storage/config.js +8 -9
  153. package/dist/cmd/cloud/storage/config.js.map +1 -1
  154. package/dist/cmd/cloud/storage/create.d.ts.map +1 -1
  155. package/dist/cmd/cloud/storage/create.js +8 -10
  156. package/dist/cmd/cloud/storage/create.js.map +1 -1
  157. package/dist/cmd/cloud/storage/delete.d.ts.map +1 -1
  158. package/dist/cmd/cloud/storage/delete.js +12 -14
  159. package/dist/cmd/cloud/storage/delete.js.map +1 -1
  160. package/dist/cmd/cloud/storage/download.d.ts.map +1 -1
  161. package/dist/cmd/cloud/storage/download.js +6 -6
  162. package/dist/cmd/cloud/storage/download.js.map +1 -1
  163. package/dist/cmd/cloud/storage/get.d.ts.map +1 -1
  164. package/dist/cmd/cloud/storage/get.js +6 -6
  165. package/dist/cmd/cloud/storage/get.js.map +1 -1
  166. package/dist/cmd/cloud/storage/list.d.ts.map +1 -1
  167. package/dist/cmd/cloud/storage/list.js +6 -6
  168. package/dist/cmd/cloud/storage/list.js.map +1 -1
  169. package/dist/cmd/cloud/storage/upload.d.ts.map +1 -1
  170. package/dist/cmd/cloud/storage/upload.js +7 -7
  171. package/dist/cmd/cloud/storage/upload.js.map +1 -1
  172. package/dist/cmd/cloud/stream/create.js +1 -1
  173. package/dist/cmd/cloud/stream/create.js.map +1 -1
  174. package/dist/cmd/cloud/stream/stats.d.ts.map +1 -1
  175. package/dist/cmd/cloud/stream/stats.js +5 -5
  176. package/dist/cmd/cloud/stream/stats.js.map +1 -1
  177. package/dist/cmd/cloud/task/delete.d.ts.map +1 -1
  178. package/dist/cmd/cloud/task/delete.js +6 -1
  179. package/dist/cmd/cloud/task/delete.js.map +1 -1
  180. package/dist/cmd/cloud/task/stats.d.ts.map +1 -1
  181. package/dist/cmd/cloud/task/stats.js +5 -5
  182. package/dist/cmd/cloud/task/stats.js.map +1 -1
  183. package/dist/cmd/cloud/task/util.d.ts +1 -1
  184. package/dist/cmd/cloud/task/util.d.ts.map +1 -1
  185. package/dist/cmd/cloud/task/util.js +2 -2
  186. package/dist/cmd/cloud/task/util.js.map +1 -1
  187. package/dist/cmd/cloud/thread/delete.d.ts.map +1 -1
  188. package/dist/cmd/cloud/thread/delete.js +5 -5
  189. package/dist/cmd/cloud/thread/delete.js.map +1 -1
  190. package/dist/cmd/cloud/thread/get.d.ts.map +1 -1
  191. package/dist/cmd/cloud/thread/get.js +5 -5
  192. package/dist/cmd/cloud/thread/get.js.map +1 -1
  193. package/dist/cmd/cloud/thread/list.d.ts.map +1 -1
  194. package/dist/cmd/cloud/thread/list.js +5 -5
  195. package/dist/cmd/cloud/thread/list.js.map +1 -1
  196. package/dist/cmd/cloud/vector/util.d.ts.map +1 -1
  197. package/dist/cmd/cloud/vector/util.js +1 -1
  198. package/dist/cmd/cloud/vector/util.js.map +1 -1
  199. package/dist/cmd/cloud/webhook/util.d.ts +1 -1
  200. package/dist/cmd/cloud/webhook/util.d.ts.map +1 -1
  201. package/dist/cmd/cloud/webhook/util.js +1 -1
  202. package/dist/cmd/cloud/webhook/util.js.map +1 -1
  203. package/dist/cmd/dev/dev-lock.js +2 -2
  204. package/dist/cmd/dev/dev-lock.js.map +1 -1
  205. package/dist/cmd/dev/templates.d.ts.map +1 -1
  206. package/dist/cmd/dev/templates.js +0 -1
  207. package/dist/cmd/dev/templates.js.map +1 -1
  208. package/dist/cmd/git/api.d.ts +38 -0
  209. package/dist/cmd/git/api.d.ts.map +1 -1
  210. package/dist/cmd/git/api.js +55 -0
  211. package/dist/cmd/git/api.js.map +1 -1
  212. package/dist/cmd/project/add/database.js +8 -8
  213. package/dist/cmd/project/add/database.js.map +1 -1
  214. package/dist/cmd/project/add/storage.js +8 -8
  215. package/dist/cmd/project/add/storage.js.map +1 -1
  216. package/dist/cmd/project/auth/init.d.ts.map +1 -1
  217. package/dist/cmd/project/auth/init.js +7 -6
  218. package/dist/cmd/project/auth/init.js.map +1 -1
  219. package/dist/cmd/project/auth/shared.d.ts +2 -3
  220. package/dist/cmd/project/auth/shared.d.ts.map +1 -1
  221. package/dist/cmd/project/auth/shared.js +7 -7
  222. package/dist/cmd/project/auth/shared.js.map +1 -1
  223. package/dist/cmd/project/download.d.ts +12 -1
  224. package/dist/cmd/project/download.d.ts.map +1 -1
  225. package/dist/cmd/project/download.js +38 -15
  226. package/dist/cmd/project/download.js.map +1 -1
  227. package/dist/cmd/project/import.d.ts.map +1 -1
  228. package/dist/cmd/project/import.js +67 -9
  229. package/dist/cmd/project/import.js.map +1 -1
  230. package/dist/cmd/project/remote-import.d.ts +41 -0
  231. package/dist/cmd/project/remote-import.d.ts.map +1 -0
  232. package/dist/cmd/project/remote-import.js +1074 -0
  233. package/dist/cmd/project/remote-import.js.map +1 -0
  234. package/dist/cmd/project/template-flow.d.ts +1 -1
  235. package/dist/cmd/project/template-flow.d.ts.map +1 -1
  236. package/dist/cmd/project/template-flow.js +27 -11
  237. package/dist/cmd/project/template-flow.js.map +1 -1
  238. package/dist/config.d.ts +29 -5
  239. package/dist/config.d.ts.map +1 -1
  240. package/dist/config.js +13 -14
  241. package/dist/config.js.map +1 -1
  242. package/dist/domain.js +1 -1
  243. package/dist/domain.js.map +1 -1
  244. package/dist/schema-generator.d.ts +1 -1
  245. package/dist/schema-generator.d.ts.map +1 -1
  246. package/dist/schema-generator.js +1 -1
  247. package/dist/schema-generator.js.map +1 -1
  248. package/dist/schema-parser.d.ts.map +1 -1
  249. package/dist/schema-parser.js +48 -6
  250. package/dist/schema-parser.js.map +1 -1
  251. package/dist/terminal.d.ts.map +1 -1
  252. package/dist/terminal.js +12 -17
  253. package/dist/terminal.js.map +1 -1
  254. package/dist/tui.js +1 -1
  255. package/dist/tui.js.map +1 -1
  256. package/dist/types.d.ts +28 -3
  257. package/dist/types.d.ts.map +1 -1
  258. package/dist/types.js +42 -0
  259. package/dist/types.js.map +1 -1
  260. package/dist/utils/date.js +1 -1
  261. package/dist/utils/date.js.map +1 -1
  262. package/package.json +6 -6
  263. package/src/agent-detection.ts +1 -1
  264. package/src/api.ts +1 -1
  265. package/src/cache/agent-intro.ts +3 -4
  266. package/src/cache/resource-region.ts +3 -1
  267. package/src/cache/user-cache.ts +3 -4
  268. package/src/catalyst.ts +9 -1
  269. package/src/cmd/ai/opencode/install.ts +1 -1
  270. package/src/cmd/build/ast.ts +2 -2
  271. package/src/cmd/build/patch/_util.ts +2 -2
  272. package/src/cmd/build/vite/registry-generator.ts +4 -4
  273. package/src/cmd/build/vite/workbench-generator.ts +1 -1
  274. package/src/cmd/cloud/db/create.ts +8 -9
  275. package/src/cmd/cloud/db/delete.ts +18 -13
  276. package/src/cmd/cloud/db/get.ts +13 -7
  277. package/src/cmd/cloud/db/list.ts +11 -5
  278. package/src/cmd/cloud/db/logs.ts +13 -7
  279. package/src/cmd/cloud/db/sql.ts +5 -5
  280. package/src/cmd/cloud/db/stats.ts +11 -5
  281. package/src/cmd/cloud/deploy.ts +7 -1
  282. package/src/cmd/cloud/email/stats.ts +11 -5
  283. package/src/cmd/cloud/email/util.ts +4 -4
  284. package/src/cmd/cloud/keyvalue/repl.ts +6 -2
  285. package/src/cmd/cloud/keyvalue/search.ts +2 -1
  286. package/src/cmd/cloud/keyvalue/util.ts +2 -2
  287. package/src/cmd/cloud/machine/delete.ts +12 -6
  288. package/src/cmd/cloud/machine/deployments.ts +11 -5
  289. package/src/cmd/cloud/machine/get.ts +11 -5
  290. package/src/cmd/cloud/machine/list.ts +11 -5
  291. package/src/cmd/cloud/queue/util.ts +2 -2
  292. package/src/cmd/cloud/redis/get.ts +5 -5
  293. package/src/cmd/cloud/sandbox/cp.ts +2 -2
  294. package/src/cmd/cloud/sandbox/execution/get.ts +10 -4
  295. package/src/cmd/cloud/sandbox/execution/list.ts +6 -5
  296. package/src/cmd/cloud/sandbox/runtime/list.ts +10 -4
  297. package/src/cmd/cloud/sandbox/snapshot/build.ts +1 -1
  298. package/src/cmd/cloud/sandbox/snapshot/create.ts +12 -5
  299. package/src/cmd/cloud/sandbox/snapshot/delete.ts +10 -4
  300. package/src/cmd/cloud/sandbox/snapshot/get.ts +12 -6
  301. package/src/cmd/cloud/sandbox/snapshot/list.ts +10 -4
  302. package/src/cmd/cloud/sandbox/snapshot/tag.ts +10 -4
  303. package/src/cmd/cloud/sandbox/stats.ts +11 -5
  304. package/src/cmd/cloud/sandbox/util.ts +14 -7
  305. package/src/cmd/cloud/schedule/stats.ts +11 -5
  306. package/src/cmd/cloud/schedule/util.ts +3 -3
  307. package/src/cmd/cloud/services/stats.ts +13 -7
  308. package/src/cmd/cloud/session/get.ts +14 -8
  309. package/src/cmd/cloud/session/list.ts +11 -5
  310. package/src/cmd/cloud/storage/config.ts +27 -20
  311. package/src/cmd/cloud/storage/create.ts +8 -9
  312. package/src/cmd/cloud/storage/delete.ts +18 -13
  313. package/src/cmd/cloud/storage/download.ts +12 -6
  314. package/src/cmd/cloud/storage/get.ts +12 -6
  315. package/src/cmd/cloud/storage/list.ts +20 -9
  316. package/src/cmd/cloud/storage/upload.ts +13 -7
  317. package/src/cmd/cloud/stream/create.ts +1 -1
  318. package/src/cmd/cloud/stream/stats.ts +11 -5
  319. package/src/cmd/cloud/task/delete.ts +13 -2
  320. package/src/cmd/cloud/task/stats.ts +11 -5
  321. package/src/cmd/cloud/task/util.ts +4 -4
  322. package/src/cmd/cloud/thread/delete.ts +11 -5
  323. package/src/cmd/cloud/thread/get.ts +11 -5
  324. package/src/cmd/cloud/thread/list.ts +11 -5
  325. package/src/cmd/cloud/vector/util.ts +2 -2
  326. package/src/cmd/cloud/webhook/util.ts +2 -2
  327. package/src/cmd/dev/dev-lock.ts +2 -2
  328. package/src/cmd/dev/templates.ts +0 -1
  329. package/src/cmd/git/api.ts +127 -0
  330. package/src/cmd/project/add/database.ts +9 -9
  331. package/src/cmd/project/add/storage.ts +9 -9
  332. package/src/cmd/project/auth/init.ts +11 -10
  333. package/src/cmd/project/auth/shared.ts +15 -10
  334. package/src/cmd/project/download.ts +53 -17
  335. package/src/cmd/project/import.ts +71 -9
  336. package/src/cmd/project/remote-import.ts +1347 -0
  337. package/src/cmd/project/template-flow.ts +38 -22
  338. package/src/config.ts +23 -18
  339. package/src/domain.ts +3 -3
  340. package/src/schema-generator.ts +1 -1
  341. package/src/schema-parser.ts +49 -6
  342. package/src/terminal.ts +12 -14
  343. package/src/tui.ts +1 -1
  344. package/src/types.ts +45 -0
  345. package/src/utils/date.ts +1 -1
@@ -1,11 +1,11 @@
1
+ import { DbQueryLogSchema, dbLogs, listOrgResources } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createSubcommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
- import { dbLogs, DbQueryLogSchema, listOrgResources } from '@agentuity/server';
5
- import { getGlobalCatalystAPIClient, getCatalystAPIClient } from '../../../config';
3
+ import { getResourceInfo, setResourceInfo } from '../../../cache';
6
4
  import { getCommand } from '../../../command-prefix';
5
+ import { getCatalystAPIClient, getGlobalCatalystAPIClient } from '../../../config';
7
6
  import { ErrorCode } from '../../../errors';
8
- import { getResourceInfo, setResourceInfo } from '../../../cache';
7
+ import * as tui from '../../../tui';
8
+ import { createSubcommand } from '../../../types';
9
9
 
10
10
  const DbLogsResponseSchema = z.array(DbQueryLogSchema);
11
11
 
@@ -89,7 +89,13 @@ export const logsSubcommand = createSubcommand({
89
89
  const profileName = config?.name ?? 'production';
90
90
 
91
91
  try {
92
- const globalClient = await getGlobalCatalystAPIClient(logger, auth, profileName);
92
+ const globalClient = await getGlobalCatalystAPIClient(
93
+ logger,
94
+ auth,
95
+ profileName,
96
+ undefined,
97
+ config
98
+ );
93
99
 
94
100
  // Check cache first for orgId
95
101
  const cachedInfo = await getResourceInfo('db', profileName, args.database);
@@ -114,7 +120,7 @@ export const logsSubcommand = createSubcommand({
114
120
  await setResourceInfo('db', profileName, database.name, region, orgId);
115
121
 
116
122
  // Use regional client for logs (ClickHouse queries are region-specific)
117
- const catalystClient = getCatalystAPIClient(logger, auth, region);
123
+ const catalystClient = getCatalystAPIClient(logger, auth, region, undefined, config);
118
124
 
119
125
  const logs = await dbLogs(catalystClient, {
120
126
  database: args.database,
@@ -1,9 +1,9 @@
1
- import { z } from 'zod';
2
1
  import { dbQuery } from '@agentuity/server';
3
- import { createSubcommand } from '../../../types';
4
- import * as tui from '../../../tui';
5
- import { getCatalystAPIClient } from '../../../config';
2
+ import { z } from 'zod';
6
3
  import { getCommand } from '../../../command-prefix';
4
+ import { getCatalystAPIClient } from '../../../config';
5
+ import * as tui from '../../../tui';
6
+ import { createSubcommand } from '../../../types';
7
7
 
8
8
  const DBSQLResponseSchema = z.object({
9
9
  rows: z.array(z.record(z.string(), z.unknown())).describe('Query results'),
@@ -44,7 +44,7 @@ export const sqlSubcommand = createSubcommand({
44
44
  async handler(ctx) {
45
45
  const { logger, args, options, orgId, region, auth } = ctx;
46
46
 
47
- const catalystClient = getCatalystAPIClient(logger, auth, region);
47
+ const catalystClient = getCatalystAPIClient(logger, auth, region, undefined, ctx.config);
48
48
 
49
49
  const result = await tui.spinner({
50
50
  message: `Executing query on ${args.name}`,
@@ -1,9 +1,9 @@
1
+ import { getServiceStats, type ServiceStatsData } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
- import { getGlobalCatalystAPIClient } from '../../../config';
5
3
  import { getCommand } from '../../../command-prefix';
6
- import { getServiceStats, type ServiceStatsData } from '@agentuity/server';
4
+ import { getGlobalCatalystAPIClient } from '../../../config';
5
+ import * as tui from '../../../tui';
6
+ import { createCommand } from '../../../types';
7
7
 
8
8
  function formatNumber(n: number): string {
9
9
  if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M`;
@@ -46,7 +46,13 @@ export const statsSubcommand = createCommand({
46
46
 
47
47
  async handler(ctx) {
48
48
  const { opts, options } = ctx;
49
- const client = await getGlobalCatalystAPIClient(ctx.logger, ctx.auth, ctx.config?.name);
49
+ const client = await getGlobalCatalystAPIClient(
50
+ ctx.logger,
51
+ ctx.auth,
52
+ ctx.config?.name,
53
+ undefined,
54
+ ctx.config
55
+ );
50
56
  const orgId = ctx.orgId ?? ctx.options.orgId ?? ctx.config?.preferences?.orgId;
51
57
 
52
58
  if (!orgId) {
@@ -449,7 +449,13 @@ export const deploySubcommand = createSubcommand({
449
449
  }
450
450
  logger.debug('Checking %d packages for malware', packages.length);
451
451
  // Use Catalyst client directly for malware check (security routes are on Catalyst)
452
- const catalystClient = await getGlobalCatalystAPIClient(logger, auth, config?.name);
452
+ const catalystClient = await getGlobalCatalystAPIClient(
453
+ logger,
454
+ auth,
455
+ config?.name,
456
+ undefined,
457
+ config
458
+ );
453
459
  const result = await projectDeploymentMalwareCheck(
454
460
  catalystClient,
455
461
  deployment!.id,
@@ -1,9 +1,9 @@
1
+ import { getServiceStats, type ServiceStatsData } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
- import { getGlobalCatalystAPIClient } from '../../../config';
5
3
  import { getCommand } from '../../../command-prefix';
6
- import { getServiceStats, type ServiceStatsData } from '@agentuity/server';
4
+ import { getGlobalCatalystAPIClient } from '../../../config';
5
+ import * as tui from '../../../tui';
6
+ import { createCommand } from '../../../types';
7
7
 
8
8
  function formatNumber(n: number): string {
9
9
  if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M`;
@@ -47,7 +47,13 @@ export const statsSubcommand = createCommand({
47
47
 
48
48
  async handler(ctx) {
49
49
  const { opts, options } = ctx;
50
- const client = await getGlobalCatalystAPIClient(ctx.logger, ctx.auth, ctx.config?.name);
50
+ const client = await getGlobalCatalystAPIClient(
51
+ ctx.logger,
52
+ ctx.auth,
53
+ ctx.config?.name,
54
+ undefined,
55
+ ctx.config
56
+ );
51
57
  const orgId = ctx.orgId ?? ctx.options.orgId ?? ctx.config?.preferences?.orgId;
52
58
 
53
59
  if (!orgId) {
@@ -1,17 +1,17 @@
1
- import { z } from 'zod';
2
1
  import { EmailStorageService, type Logger } from '@agentuity/core';
3
2
  import { createServerFetchAdapter } from '@agentuity/server';
4
- import type { AuthData, Config, GlobalOptions } from '../../../types';
3
+ import { z } from 'zod';
5
4
  import { getCatalystUrl } from '../../../catalyst';
6
5
  import { defaultProfileName, getDefaultRegion } from '../../../config';
7
6
  import * as tui from '../../../tui';
7
+ import type { AuthData, Config, GlobalOptions } from '../../../types';
8
8
 
9
9
  export type {
10
10
  EmailAddress,
11
+ EmailAttachment,
11
12
  EmailDestination,
12
13
  EmailInbound,
13
14
  EmailOutbound,
14
- EmailAttachment,
15
15
  EmailSendParams,
16
16
  } from '@agentuity/core';
17
17
 
@@ -63,6 +63,6 @@ export async function createEmailAdapter(ctx: EmailContext, region?: string) {
63
63
 
64
64
  const resolvedRegion =
65
65
  region ?? (await getDefaultRegion(ctx.config?.name ?? defaultProfileName, ctx.config));
66
- const baseUrl = getCatalystUrl(resolvedRegion);
66
+ const baseUrl = getCatalystUrl(resolvedRegion, ctx.config?.overrides);
67
67
  return new EmailStorageService(baseUrl, adapter);
68
68
  }
@@ -52,7 +52,8 @@ export const replSubcommand = createCommand({
52
52
  const contentType = isPossiblyJSON(ctx.parsed.args[2]!)
53
53
  ? 'application/json'
54
54
  : 'text/plain';
55
- const ttl = ctx.parsed.args.length > 3 ? parseInt(ctx.parsed.args[3]!) : undefined;
55
+ const ttl =
56
+ ctx.parsed.args.length > 3 ? parseInt(ctx.parsed.args[3]!, 10) : undefined;
56
57
  await storage.set(ctx.parsed.args[0]!, ctx.parsed.args[1]!, ctx.parsed.args[2]!, {
57
58
  contentType,
58
59
  ttl,
@@ -172,7 +173,10 @@ export const replSubcommand = createCommand({
172
173
  const item = results[key];
173
174
  if (!item) continue;
174
175
  const sizeMB = (item.size / (1024 * 1024)).toFixed(2);
175
- const date = item.lastUsed != null ? new Date(item.lastUsed).toLocaleString() : 'unknown';
176
+ const date =
177
+ item.lastUsed != null
178
+ ? new Date(item.lastUsed).toLocaleString()
179
+ : 'unknown';
176
180
  ctx.write(
177
181
  ` ${tui.bold(key)}: ${sizeMB} MB, ${item.contentType}, updated ${date}`
178
182
  );
@@ -58,7 +58,8 @@ export const searchSubcommand = createCommand({
58
58
  const item = results[key];
59
59
  if (!item) continue;
60
60
  const sizeMB = (item.size / (1024 * 1024)).toFixed(2);
61
- const date = item.lastUsed != null ? new Date(item.lastUsed).toLocaleString() : 'unknown';
61
+ const date =
62
+ item.lastUsed != null ? new Date(item.lastUsed).toLocaleString() : 'unknown';
62
63
  tui.info(` ${tui.bold(key)}: ${sizeMB} MB, ${item.contentType}, updated ${date}`);
63
64
  }
64
65
  }
@@ -1,8 +1,8 @@
1
1
  import { KeyValueStorageService, type Logger } from '@agentuity/core';
2
2
  import { createServerFetchAdapter } from '@agentuity/server';
3
- import type { AuthData, Config, GlobalOptions, ProjectConfig } from '../../../types';
4
3
  import { getCatalystUrl } from '../../../catalyst';
5
4
  import * as tui from '../../../tui';
5
+ import type { AuthData, Config, GlobalOptions, ProjectConfig } from '../../../types';
6
6
 
7
7
  export function createStorageAdapter(
8
8
  ctx: {
@@ -36,6 +36,6 @@ export function createStorageAdapter(
36
36
  ctx.logger
37
37
  );
38
38
 
39
- const baseUrl = getCatalystUrl(ctx.region);
39
+ const baseUrl = getCatalystUrl(ctx.region, ctx.config?.overrides);
40
40
  return new KeyValueStorageService(baseUrl, adapter);
41
41
  }
@@ -1,11 +1,11 @@
1
- import { z } from 'zod';
2
- import { createSubcommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
1
  import { machineDelete, machineGet } from '@agentuity/server';
2
+ import enquirer from 'enquirer';
3
+ import { z } from 'zod';
5
4
  import { getCommand } from '../../../command-prefix';
6
- import { ErrorCode } from '../../../errors';
7
5
  import { getGlobalCatalystAPIClient } from '../../../config';
8
- import enquirer from 'enquirer';
6
+ import { ErrorCode } from '../../../errors';
7
+ import * as tui from '../../../tui';
8
+ import { createSubcommand } from '../../../types';
9
9
 
10
10
  const MachineDeleteResponseSchema = z.object({
11
11
  success: z.boolean().describe('Whether the deletion succeeded'),
@@ -41,7 +41,13 @@ export const deleteSubcommand = createSubcommand({
41
41
  async handler(ctx) {
42
42
  const { args, opts, options, logger, auth, config, orgId } = ctx;
43
43
 
44
- const catalystClient = await getGlobalCatalystAPIClient(logger, auth, config?.name, orgId);
44
+ const catalystClient = await getGlobalCatalystAPIClient(
45
+ logger,
46
+ auth,
47
+ config?.name,
48
+ orgId,
49
+ config
50
+ );
45
51
 
46
52
  try {
47
53
  const machine = await machineGet(catalystClient, args.machine_id);
@@ -1,10 +1,10 @@
1
- import { z } from 'zod';
2
- import { createSubcommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
1
  import { machineDeployments } from '@agentuity/server';
2
+ import { z } from 'zod';
5
3
  import { getCommand } from '../../../command-prefix';
6
- import { ErrorCode } from '../../../errors';
7
4
  import { getGlobalCatalystAPIClient } from '../../../config';
5
+ import { ErrorCode } from '../../../errors';
6
+ import * as tui from '../../../tui';
7
+ import { createSubcommand } from '../../../types';
8
8
 
9
9
  const MachineDeploymentResponseSchema = z.array(
10
10
  z.object({
@@ -41,7 +41,13 @@ export const deploymentsSubcommand = createSubcommand({
41
41
  async handler(ctx) {
42
42
  const { args, options, logger, auth, config, orgId } = ctx;
43
43
 
44
- const catalystClient = await getGlobalCatalystAPIClient(logger, auth, config?.name, orgId);
44
+ const catalystClient = await getGlobalCatalystAPIClient(
45
+ logger,
46
+ auth,
47
+ config?.name,
48
+ orgId,
49
+ config
50
+ );
45
51
 
46
52
  try {
47
53
  const deployments = await machineDeployments(catalystClient, args.machine_id);
@@ -1,10 +1,10 @@
1
- import { z } from 'zod';
2
- import { createSubcommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
1
  import { machineGet } from '@agentuity/server';
2
+ import { z } from 'zod';
5
3
  import { getCommand } from '../../../command-prefix';
6
- import { ErrorCode } from '../../../errors';
7
4
  import { getGlobalCatalystAPIClient } from '../../../config';
5
+ import { ErrorCode } from '../../../errors';
6
+ import * as tui from '../../../tui';
7
+ import { createSubcommand } from '../../../types';
8
8
 
9
9
  const MachineGetResponseSchema = z.object({
10
10
  id: z.string().describe('Machine ID'),
@@ -46,7 +46,13 @@ export const getSubcommand = createSubcommand({
46
46
  async handler(ctx) {
47
47
  const { args, options, logger, auth, config, orgId } = ctx;
48
48
 
49
- const catalystClient = await getGlobalCatalystAPIClient(logger, auth, config?.name, orgId);
49
+ const catalystClient = await getGlobalCatalystAPIClient(
50
+ logger,
51
+ auth,
52
+ config?.name,
53
+ orgId,
54
+ config
55
+ );
50
56
 
51
57
  try {
52
58
  const machine = await machineGet(catalystClient, args.machine_id);
@@ -1,10 +1,10 @@
1
- import { z } from 'zod';
2
- import { createSubcommand } from '../../../types';
3
- import * as tui from '../../../tui';
4
1
  import { machineList } from '@agentuity/server';
2
+ import { z } from 'zod';
5
3
  import { getCommand } from '../../../command-prefix';
6
- import { ErrorCode } from '../../../errors';
7
4
  import { getGlobalCatalystAPIClient } from '../../../config';
5
+ import { ErrorCode } from '../../../errors';
6
+ import * as tui from '../../../tui';
7
+ import { createSubcommand } from '../../../types';
8
8
 
9
9
  const MachineListResponseSchema = z.array(
10
10
  z.object({
@@ -43,7 +43,13 @@ export const listSubcommand = createSubcommand({
43
43
  async handler(ctx) {
44
44
  const { options, opts, logger, auth, config } = ctx;
45
45
 
46
- const catalystClient = await getGlobalCatalystAPIClient(logger, auth, config?.name);
46
+ const catalystClient = await getGlobalCatalystAPIClient(
47
+ logger,
48
+ auth,
49
+ config?.name,
50
+ undefined,
51
+ config
52
+ );
47
53
 
48
54
  try {
49
55
  const machines = await machineList(catalystClient, { orgId: opts?.orgId });
@@ -1,5 +1,5 @@
1
1
  import type { Logger } from '@agentuity/core';
2
- import { APIClient, type QueueApiOptions } from '@agentuity/server';
2
+ import type { APIClient, QueueApiOptions } from '@agentuity/server';
3
3
  import { getGlobalCatalystAPIClient } from '../../../config';
4
4
  import type { AuthData, Config, GlobalOptions } from '../../../types';
5
5
 
@@ -21,7 +21,7 @@ export interface QueueContext {
21
21
  * Uses the global Catalyst API client with user authentication.
22
22
  */
23
23
  export async function createQueueAPIClient(ctx: QueueContext): Promise<APIClient> {
24
- return getGlobalCatalystAPIClient(ctx.logger, ctx.auth, ctx.config?.name);
24
+ return getGlobalCatalystAPIClient(ctx.logger, ctx.auth, ctx.config?.name, undefined, ctx.config);
25
25
  }
26
26
 
27
27
  /**
@@ -1,9 +1,9 @@
1
- import { z } from 'zod';
2
1
  import { listResources } from '@agentuity/server';
3
- import { createSubcommand } from '../../../types';
4
- import * as tui from '../../../tui';
5
- import { getCatalystAPIClient } from '../../../config';
2
+ import { z } from 'zod';
6
3
  import { getCommand } from '../../../command-prefix';
4
+ import { getCatalystAPIClient } from '../../../config';
5
+ import * as tui from '../../../tui';
6
+ import { createSubcommand } from '../../../types';
7
7
 
8
8
  const RedisGetResponseSchema = z.object({
9
9
  url: z.string().optional().describe('Redis connection URL'),
@@ -42,7 +42,7 @@ export const showSubcommand = createSubcommand({
42
42
  async handler(ctx) {
43
43
  const { logger, opts, options, orgId, region, auth } = ctx;
44
44
 
45
- const catalystClient = getCatalystAPIClient(logger, auth, region);
45
+ const catalystClient = getCatalystAPIClient(logger, auth, region, undefined, ctx.config);
46
46
 
47
47
  const resources = await tui.spinner({
48
48
  message: `Fetching Redis for ${orgId} in ${region}`,
@@ -209,7 +209,7 @@ async function uploadToSandbox(
209
209
 
210
210
  async function uploadSingleFile(
211
211
  client: APIClient,
212
- logger: Logger,
212
+ _logger: Logger,
213
213
  orgId: string,
214
214
  sandboxId: string,
215
215
  resolvedPath: string,
@@ -327,7 +327,7 @@ async function downloadFromSandbox(
327
327
 
328
328
  async function downloadSingleFile(
329
329
  client: APIClient,
330
- logger: Logger,
330
+ _logger: Logger,
331
331
  orgId: string,
332
332
  sandboxId: string,
333
333
  remotePath: string,
@@ -1,9 +1,9 @@
1
+ import { executionGet } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
3
  import { getCommand } from '../../../../command-prefix';
5
- import { executionGet } from '@agentuity/server';
6
4
  import { getGlobalCatalystAPIClient } from '../../../../config';
5
+ import * as tui from '../../../../tui';
6
+ import { createCommand } from '../../../../types';
7
7
 
8
8
  const ExecutionGetResponseSchema = z.object({
9
9
  executionId: z.string().describe('Execution ID'),
@@ -41,7 +41,13 @@ export const getSubcommand = createCommand({
41
41
 
42
42
  async handler(ctx) {
43
43
  const { args, options, auth, logger, orgId, config } = ctx;
44
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
44
+ const client = await getGlobalCatalystAPIClient(
45
+ logger,
46
+ auth,
47
+ config?.name,
48
+ undefined,
49
+ config
50
+ );
45
51
 
46
52
  const result = await executionGet(client, { executionId: args.executionId, orgId });
47
53
 
@@ -1,9 +1,9 @@
1
+ import { executionList } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
- import { getSandboxRegion, createSandboxClient } from '../util';
5
3
  import { getCommand } from '../../../../command-prefix';
6
- import { executionList } from '@agentuity/server';
4
+ import * as tui from '../../../../tui';
5
+ import { createCommand } from '../../../../types';
6
+ import { createSandboxClient, getSandboxRegion } from '../util';
7
7
 
8
8
  const ExecutionInfoSchema = z.object({
9
9
  executionId: z.string().describe('Execution ID'),
@@ -56,7 +56,8 @@ export const listSubcommand = createCommand({
56
56
  auth,
57
57
  config?.name,
58
58
  args.sandboxId,
59
- effectiveOrgId
59
+ effectiveOrgId,
60
+ config
60
61
  );
61
62
  const client = createSandboxClient(logger, auth, region);
62
63
 
@@ -1,9 +1,9 @@
1
+ import { runtimeList } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
3
  import { getCommand } from '../../../../command-prefix';
5
- import { runtimeList } from '@agentuity/server';
6
4
  import { getGlobalCatalystAPIClient } from '../../../../config';
5
+ import * as tui from '../../../../tui';
6
+ import { createCommand } from '../../../../types';
7
7
 
8
8
  const RuntimeInfoSchema = z.object({
9
9
  id: z.string().describe('Runtime ID'),
@@ -45,7 +45,13 @@ export const listSubcommand = createCommand({
45
45
 
46
46
  async handler(ctx) {
47
47
  const { opts, options, orgId: ctxOrgId, logger, auth, config } = ctx;
48
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
48
+ const client = await getGlobalCatalystAPIClient(
49
+ logger,
50
+ auth,
51
+ config?.name,
52
+ undefined,
53
+ config
54
+ );
49
55
  const effectiveOrgId = opts?.orgId || ctxOrgId;
50
56
 
51
57
  const result = await runtimeList(client, {
@@ -757,7 +757,7 @@ export const buildSubcommand = createCommand({
757
757
  const archiveFile = Bun.file(archivePath);
758
758
  const archiveSize = archiveFile.size;
759
759
 
760
- const client = getCatalystAPIClient(logger, auth, region);
760
+ const client = getCatalystAPIClient(logger, auth, region, undefined, config);
761
761
 
762
762
  // Auto-detect git info and merge with CLI overrides
763
763
  const autoDetectedGit = await getGitInfo(directory, logger);
@@ -1,9 +1,9 @@
1
+ import { snapshotCreate } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
- import { getSandboxRegion, createSandboxClient } from '../util';
5
3
  import { getCommand } from '../../../../command-prefix';
6
- import { snapshotCreate } from '@agentuity/server';
4
+ import * as tui from '../../../../tui';
5
+ import { createCommand } from '../../../../types';
6
+ import { createSandboxClient, getSandboxRegion } from '../util';
7
7
 
8
8
  const SNAPSHOT_NAME_REGEX = /^[a-zA-Z0-9_-]+$/;
9
9
  const SNAPSHOT_TAG_REGEX = /^[a-zA-Z0-9][a-zA-Z0-9._-]*$/;
@@ -87,7 +87,14 @@ export const createSubcommand = createCommand({
87
87
  }
88
88
 
89
89
  const profileName = config?.name;
90
- const region = await getSandboxRegion(logger, auth, profileName, args.sandboxId, orgId);
90
+ const region = await getSandboxRegion(
91
+ logger,
92
+ auth,
93
+ profileName,
94
+ args.sandboxId,
95
+ orgId,
96
+ config
97
+ );
91
98
  const client = createSandboxClient(logger, auth, region);
92
99
 
93
100
  const snapshot = await snapshotCreate(client, {
@@ -1,9 +1,9 @@
1
+ import { snapshotDelete } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
3
  import { getCommand } from '../../../../command-prefix';
5
- import { snapshotDelete } from '@agentuity/server';
6
4
  import { getGlobalCatalystAPIClient } from '../../../../config';
5
+ import * as tui from '../../../../tui';
6
+ import { createCommand } from '../../../../types';
7
7
 
8
8
  const SnapshotDeleteResponseSchema = z.object({
9
9
  success: z.boolean().describe('Whether the operation succeeded'),
@@ -53,7 +53,13 @@ export const deleteSubcommand = createCommand({
53
53
  }
54
54
  }
55
55
 
56
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
56
+ const client = await getGlobalCatalystAPIClient(
57
+ logger,
58
+ auth,
59
+ config?.name,
60
+ undefined,
61
+ config
62
+ );
57
63
 
58
64
  await snapshotDelete(client, {
59
65
  snapshotId: args.snapshotId,
@@ -1,11 +1,11 @@
1
+ import type { SandboxInfo } from '@agentuity/core';
2
+ import type { SnapshotFileInfo } from '@agentuity/server';
3
+ import { sandboxList, snapshotGet } from '@agentuity/server';
1
4
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
5
  import { getCommand } from '../../../../command-prefix';
5
- import { snapshotGet, sandboxList } from '@agentuity/server';
6
- import type { SnapshotFileInfo } from '@agentuity/server';
7
- import type { SandboxInfo } from '@agentuity/core';
8
6
  import { getGlobalCatalystAPIClient } from '../../../../config';
7
+ import * as tui from '../../../../tui';
8
+ import { createCommand } from '../../../../types';
9
9
 
10
10
  const SnapshotFileSchema = z.object({
11
11
  path: z.string(),
@@ -87,7 +87,13 @@ export const getSubcommand = createCommand({
87
87
 
88
88
  async handler(ctx) {
89
89
  const { args, options, auth, logger, orgId, config } = ctx;
90
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
90
+ const client = await getGlobalCatalystAPIClient(
91
+ logger,
92
+ auth,
93
+ config?.name,
94
+ undefined,
95
+ config
96
+ );
91
97
 
92
98
  const snapshot = await snapshotGet(client, {
93
99
  snapshotId: args.snapshotId,
@@ -1,9 +1,9 @@
1
+ import { snapshotList } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
3
  import { getCommand } from '../../../../command-prefix';
5
- import { snapshotList } from '@agentuity/server';
6
4
  import { getGlobalCatalystAPIClient } from '../../../../config';
5
+ import * as tui from '../../../../tui';
6
+ import { createCommand } from '../../../../types';
7
7
 
8
8
  const SnapshotInfoSchema = z.object({
9
9
  snapshotId: z.string(),
@@ -58,7 +58,13 @@ export const listSubcommand = createCommand({
58
58
 
59
59
  async handler(ctx) {
60
60
  const { opts, options, orgId: ctxOrgId, logger, auth, config } = ctx;
61
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
61
+ const client = await getGlobalCatalystAPIClient(
62
+ logger,
63
+ auth,
64
+ config?.name,
65
+ undefined,
66
+ config
67
+ );
62
68
  const effectiveOrgId = opts?.orgId || ctxOrgId;
63
69
 
64
70
  const result = await snapshotList(client, {
@@ -1,9 +1,9 @@
1
+ import { snapshotTag } from '@agentuity/server';
1
2
  import { z } from 'zod';
2
- import { createCommand } from '../../../../types';
3
- import * as tui from '../../../../tui';
4
3
  import { getCommand } from '../../../../command-prefix';
5
- import { snapshotTag } from '@agentuity/server';
6
4
  import { getGlobalCatalystAPIClient } from '../../../../config';
5
+ import * as tui from '../../../../tui';
6
+ import { createCommand } from '../../../../types';
7
7
 
8
8
  const SNAPSHOT_TAG_REGEX = /^[a-zA-Z0-9_][a-zA-Z0-9._-]*$/;
9
9
  const MAX_SNAPSHOT_TAG_LENGTH = 128;
@@ -41,7 +41,13 @@ export const tagSubcommand = createCommand({
41
41
 
42
42
  async handler(ctx) {
43
43
  const { args, opts, options, auth, logger, orgId, config } = ctx;
44
- const client = await getGlobalCatalystAPIClient(logger, auth, config?.name);
44
+ const client = await getGlobalCatalystAPIClient(
45
+ logger,
46
+ auth,
47
+ config?.name,
48
+ undefined,
49
+ config
50
+ );
45
51
 
46
52
  if (!args.tag && !opts.clear) {
47
53
  throw new Error('Either provide a tag name or use --clear to remove the tag');