@copado/agentia-cli 0.111.0-alpha.0 → 0.113.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/README.md +1965 -410
  2. package/dist/commands/testing/build/abort.d.ts +7 -1
  3. package/dist/commands/testing/build/abort.js +13 -3
  4. package/dist/commands/testing/build/abort.js.map +1 -1
  5. package/dist/commands/testing/build/get.d.ts +18 -0
  6. package/dist/commands/testing/build/get.js +38 -0
  7. package/dist/commands/testing/build/get.js.map +1 -0
  8. package/dist/commands/testing/build/latest.d.ts +12 -0
  9. package/dist/commands/testing/build/latest.js +40 -0
  10. package/dist/commands/testing/build/latest.js.map +1 -0
  11. package/dist/commands/testing/build/list.d.ts +6 -1
  12. package/dist/commands/testing/build/list.js +23 -1
  13. package/dist/commands/testing/build/list.js.map +1 -1
  14. package/dist/commands/testing/build/logs.d.ts +6 -0
  15. package/dist/commands/testing/build/logs.js +8 -1
  16. package/dist/commands/testing/build/logs.js.map +1 -1
  17. package/dist/commands/testing/build/run.d.ts +27 -4
  18. package/dist/commands/testing/build/run.js +4 -18
  19. package/dist/commands/testing/build/run.js.map +1 -1
  20. package/dist/commands/testing/build/search.d.ts +21 -0
  21. package/dist/commands/testing/build/search.js +57 -0
  22. package/dist/commands/testing/build/search.js.map +1 -0
  23. package/dist/commands/testing/create.d.ts +1 -15
  24. package/dist/commands/testing/create.js +1 -43
  25. package/dist/commands/testing/create.js.map +1 -1
  26. package/dist/commands/testing/data-table/create.d.ts +30 -0
  27. package/dist/commands/testing/data-table/create.js +52 -0
  28. package/dist/commands/testing/data-table/create.js.map +1 -0
  29. package/dist/commands/testing/data-table/delete.d.ts +25 -0
  30. package/dist/commands/testing/data-table/delete.js +40 -0
  31. package/dist/commands/testing/data-table/delete.js.map +1 -0
  32. package/dist/commands/testing/data-table/export.d.ts +33 -0
  33. package/dist/commands/testing/data-table/export.js +59 -0
  34. package/dist/commands/testing/data-table/export.js.map +1 -0
  35. package/dist/commands/testing/data-table/get.d.ts +21 -0
  36. package/dist/commands/testing/data-table/get.js +35 -0
  37. package/dist/commands/testing/data-table/get.js.map +1 -0
  38. package/dist/commands/testing/data-table/list.d.ts +16 -0
  39. package/dist/commands/testing/data-table/list.js +33 -0
  40. package/dist/commands/testing/data-table/list.js.map +1 -0
  41. package/dist/commands/testing/data-table/update.d.ts +34 -0
  42. package/dist/commands/testing/data-table/update.js +64 -0
  43. package/dist/commands/testing/data-table/update.js.map +1 -0
  44. package/dist/commands/testing/job/create.d.ts +18 -0
  45. package/dist/commands/testing/job/create.js +60 -4
  46. package/dist/commands/testing/job/create.js.map +1 -1
  47. package/dist/commands/testing/job/delete.d.ts +6 -1
  48. package/dist/commands/testing/job/delete.js +13 -3
  49. package/dist/commands/testing/job/delete.js.map +1 -1
  50. package/dist/commands/testing/job/refs.d.ts +17 -0
  51. package/dist/commands/testing/job/refs.js +30 -0
  52. package/dist/commands/testing/job/refs.js.map +1 -0
  53. package/dist/commands/testing/job/schedule/get.d.ts +23 -0
  54. package/dist/commands/testing/job/schedule/get.js +31 -0
  55. package/dist/commands/testing/job/schedule/get.js.map +1 -0
  56. package/dist/commands/testing/job/schedule/remove.d.ts +24 -0
  57. package/dist/commands/testing/job/schedule/remove.js +34 -0
  58. package/dist/commands/testing/job/schedule/remove.js.map +1 -0
  59. package/dist/commands/testing/job/schedule/set.d.ts +23 -0
  60. package/dist/commands/testing/job/schedule/set.js +39 -0
  61. package/dist/commands/testing/job/schedule/set.js.map +1 -0
  62. package/dist/commands/testing/job/update.d.ts +2 -0
  63. package/dist/commands/testing/job/update.js +7 -1
  64. package/dist/commands/testing/job/update.js.map +1 -1
  65. package/dist/commands/testing/job/upload.d.ts +6 -0
  66. package/dist/commands/testing/job/upload.js +22 -0
  67. package/dist/commands/testing/job/upload.js.map +1 -1
  68. package/dist/commands/testing/live/continue.d.ts +20 -0
  69. package/dist/commands/testing/live/continue.js +21 -0
  70. package/dist/commands/testing/live/continue.js.map +1 -0
  71. package/dist/commands/testing/live/execute.d.ts +30 -0
  72. package/dist/commands/testing/live/execute.js +43 -0
  73. package/dist/commands/testing/live/execute.js.map +1 -0
  74. package/dist/commands/testing/live/history.d.ts +23 -0
  75. package/dist/commands/testing/live/history.js +35 -0
  76. package/dist/commands/testing/live/history.js.map +1 -0
  77. package/dist/commands/testing/live/inspect.d.ts +18 -0
  78. package/dist/commands/testing/live/inspect.js +30 -0
  79. package/dist/commands/testing/live/inspect.js.map +1 -0
  80. package/dist/commands/testing/live/interrupt.d.ts +20 -0
  81. package/dist/commands/testing/live/interrupt.js +21 -0
  82. package/dist/commands/testing/live/interrupt.js.map +1 -0
  83. package/dist/commands/testing/live/recorder.d.ts +23 -0
  84. package/dist/commands/testing/live/recorder.js +134 -0
  85. package/dist/commands/testing/live/recorder.js.map +1 -0
  86. package/dist/commands/testing/live/reports.d.ts +20 -0
  87. package/dist/commands/testing/live/reports.js +31 -0
  88. package/dist/commands/testing/live/reports.js.map +1 -0
  89. package/dist/commands/testing/live/screenshot.d.ts +23 -0
  90. package/dist/commands/testing/live/screenshot.js +25 -0
  91. package/dist/commands/testing/live/screenshot.js.map +1 -0
  92. package/dist/commands/testing/live/set-options.d.ts +27 -0
  93. package/dist/commands/testing/live/set-options.js +28 -0
  94. package/dist/commands/testing/live/set-options.js.map +1 -0
  95. package/dist/commands/testing/live/start.d.ts +29 -0
  96. package/dist/commands/testing/live/start.js +53 -0
  97. package/dist/commands/testing/live/start.js.map +1 -0
  98. package/dist/commands/testing/live/status.d.ts +19 -0
  99. package/dist/commands/testing/live/status.js +27 -0
  100. package/dist/commands/testing/live/status.js.map +1 -0
  101. package/dist/commands/testing/live/stop.d.ts +24 -0
  102. package/dist/commands/testing/live/stop.js +38 -0
  103. package/dist/commands/testing/live/stop.js.map +1 -0
  104. package/dist/commands/testing/live/view.d.ts +16 -0
  105. package/dist/commands/testing/live/view.js +36 -0
  106. package/dist/commands/testing/live/view.js.map +1 -0
  107. package/dist/commands/testing/logs.d.ts +6 -0
  108. package/dist/commands/testing/logs.js +8 -1
  109. package/dist/commands/testing/logs.js.map +1 -1
  110. package/dist/commands/testing/project/create.d.ts +3 -0
  111. package/dist/commands/testing/project/create.js +17 -1
  112. package/dist/commands/testing/project/create.js.map +1 -1
  113. package/dist/commands/testing/project/delete.d.ts +7 -2
  114. package/dist/commands/testing/project/delete.js +15 -3
  115. package/dist/commands/testing/project/delete.js.map +1 -1
  116. package/dist/commands/testing/project/get.js +1 -1
  117. package/dist/commands/testing/project/get.js.map +1 -1
  118. package/dist/commands/testing/project/permission/get.d.ts +13 -0
  119. package/dist/commands/testing/project/permission/get.js +21 -0
  120. package/dist/commands/testing/project/permission/get.js.map +1 -0
  121. package/dist/commands/testing/project/permission/list.d.ts +13 -0
  122. package/dist/commands/testing/project/permission/list.js +21 -0
  123. package/dist/commands/testing/project/permission/list.js.map +1 -0
  124. package/dist/commands/testing/project/permission/set.d.ts +19 -0
  125. package/dist/commands/testing/project/permission/set.js +33 -0
  126. package/dist/commands/testing/project/permission/set.js.map +1 -0
  127. package/dist/commands/testing/project/permission/update.d.ts +19 -0
  128. package/dist/commands/testing/project/permission/update.js +33 -0
  129. package/dist/commands/testing/project/permission/update.js.map +1 -0
  130. package/dist/commands/testing/project/update.d.ts +14 -0
  131. package/dist/commands/testing/project/update.js +28 -0
  132. package/dist/commands/testing/project/update.js.map +1 -0
  133. package/dist/commands/testing/robot/create.d.ts +4 -1
  134. package/dist/commands/testing/robot/create.js +20 -5
  135. package/dist/commands/testing/robot/create.js.map +1 -1
  136. package/dist/commands/testing/robot/delete.d.ts +6 -1
  137. package/dist/commands/testing/robot/delete.js +13 -3
  138. package/dist/commands/testing/robot/delete.js.map +1 -1
  139. package/dist/commands/testing/robot/update.d.ts +19 -0
  140. package/dist/commands/testing/robot/update.js +49 -0
  141. package/dist/commands/testing/robot/update.js.map +1 -0
  142. package/dist/commands/testing/run.d.ts +27 -4
  143. package/dist/commands/testing/run.js +4 -11
  144. package/dist/commands/testing/run.js.map +1 -1
  145. package/dist/commands/testing/test/run.d.ts +27 -11
  146. package/dist/commands/testing/test/run.js +5 -37
  147. package/dist/commands/testing/test/run.js.map +1 -1
  148. package/dist/commands/testing/update.d.ts +6 -0
  149. package/dist/commands/testing/update.js +10 -0
  150. package/dist/commands/testing/update.js.map +1 -1
  151. package/dist/commands/testing/user-parameter/create.d.ts +19 -0
  152. package/dist/commands/testing/user-parameter/create.js +45 -0
  153. package/dist/commands/testing/user-parameter/create.js.map +1 -0
  154. package/dist/commands/testing/user-parameter/delete.d.ts +21 -0
  155. package/dist/commands/testing/user-parameter/delete.js +33 -0
  156. package/dist/commands/testing/user-parameter/delete.js.map +1 -0
  157. package/dist/commands/testing/user-parameter/get.d.ts +13 -0
  158. package/dist/commands/testing/user-parameter/get.js +21 -0
  159. package/dist/commands/testing/user-parameter/get.js.map +1 -0
  160. package/dist/commands/testing/user-parameter/list.d.ts +12 -0
  161. package/dist/commands/testing/user-parameter/list.js +23 -0
  162. package/dist/commands/testing/user-parameter/list.js.map +1 -0
  163. package/dist/commands/testing/user-parameter/update.d.ts +23 -0
  164. package/dist/commands/testing/user-parameter/update.js +45 -0
  165. package/dist/commands/testing/user-parameter/update.js.map +1 -0
  166. package/dist/commands/testing/variable/create.d.ts +6 -2
  167. package/dist/commands/testing/variable/create.js +14 -5
  168. package/dist/commands/testing/variable/create.js.map +1 -1
  169. package/dist/commands/testing/variable/delete.d.ts +6 -1
  170. package/dist/commands/testing/variable/delete.js +13 -3
  171. package/dist/commands/testing/variable/delete.js.map +1 -1
  172. package/dist/commands/testing/variable/get.d.ts +13 -0
  173. package/dist/commands/testing/variable/get.js +25 -0
  174. package/dist/commands/testing/variable/get.js.map +1 -0
  175. package/dist/commands/testing/variable/list.d.ts +4 -0
  176. package/dist/commands/testing/variable/list.js +15 -3
  177. package/dist/commands/testing/variable/list.js.map +1 -1
  178. package/dist/commands/testing/variable/update.d.ts +6 -2
  179. package/dist/commands/testing/variable/update.js +11 -5
  180. package/dist/commands/testing/variable/update.js.map +1 -1
  181. package/dist/lib/ai-gateway.js +2 -0
  182. package/dist/lib/ai-gateway.js.map +1 -1
  183. package/dist/lib/cicd-gateway.d.ts +4 -2
  184. package/dist/lib/cicd-gateway.js +14 -0
  185. package/dist/lib/cicd-gateway.js.map +1 -1
  186. package/dist/lib/credential-store.d.ts +3 -0
  187. package/dist/lib/credential-store.js +16 -0
  188. package/dist/lib/credential-store.js.map +1 -1
  189. package/dist/lib/mcp/command-id.js +3 -0
  190. package/dist/lib/mcp/command-id.js.map +1 -1
  191. package/dist/lib/mcp/testing-live-tools.d.ts +126 -0
  192. package/dist/lib/mcp/testing-live-tools.js +215 -0
  193. package/dist/lib/mcp/testing-live-tools.js.map +1 -0
  194. package/dist/lib/mcp/testing-tools.d.ts +455 -9
  195. package/dist/lib/mcp/testing-tools.js +677 -37
  196. package/dist/lib/mcp/testing-tools.js.map +1 -1
  197. package/dist/lib/mcp/tools.d.ts +551 -14
  198. package/dist/lib/testing-config.d.ts +3 -0
  199. package/dist/lib/testing-config.js +9 -0
  200. package/dist/lib/testing-config.js.map +1 -1
  201. package/dist/lib/testing-confirmation.d.ts +14 -0
  202. package/dist/lib/testing-confirmation.js +17 -0
  203. package/dist/lib/testing-confirmation.js.map +1 -0
  204. package/dist/lib/testing-data-command.d.ts +21 -0
  205. package/dist/lib/testing-data-command.js +49 -0
  206. package/dist/lib/testing-data-command.js.map +1 -0
  207. package/dist/lib/testing-data-core.d.ts +22 -0
  208. package/dist/lib/testing-data-core.js +208 -0
  209. package/dist/lib/testing-data-core.js.map +1 -0
  210. package/dist/lib/testing-data-export.d.ts +1 -0
  211. package/dist/lib/testing-data-export.js +2 -0
  212. package/dist/lib/testing-data-export.js.map +1 -0
  213. package/dist/lib/testing-data-import.d.ts +1 -0
  214. package/dist/lib/testing-data-import.js +2 -0
  215. package/dist/lib/testing-data-import.js.map +1 -0
  216. package/dist/lib/testing-data-io.d.ts +21 -0
  217. package/dist/lib/testing-data-io.js +236 -0
  218. package/dist/lib/testing-data-io.js.map +1 -0
  219. package/dist/lib/testing-data-operations.d.ts +36 -0
  220. package/dist/lib/testing-data-operations.js +91 -0
  221. package/dist/lib/testing-data-operations.js.map +1 -0
  222. package/dist/lib/testing-data-types.d.ts +41 -0
  223. package/dist/lib/testing-data-types.js +3 -0
  224. package/dist/lib/testing-data-types.js.map +1 -0
  225. package/dist/lib/testing-flags.d.ts +62 -1
  226. package/dist/lib/testing-flags.js +177 -1
  227. package/dist/lib/testing-flags.js.map +1 -1
  228. package/dist/lib/testing-gateway.d.ts +17 -3
  229. package/dist/lib/testing-gateway.js +176 -45
  230. package/dist/lib/testing-gateway.js.map +1 -1
  231. package/dist/lib/testing-live-command.d.ts +24 -0
  232. package/dist/lib/testing-live-command.js +56 -0
  233. package/dist/lib/testing-live-command.js.map +1 -0
  234. package/dist/lib/testing-live-endpoints.d.ts +14 -0
  235. package/dist/lib/testing-live-endpoints.js +34 -0
  236. package/dist/lib/testing-live-endpoints.js.map +1 -0
  237. package/dist/lib/testing-live-history.d.ts +11 -0
  238. package/dist/lib/testing-live-history.js +96 -0
  239. package/dist/lib/testing-live-history.js.map +1 -0
  240. package/dist/lib/testing-live-operations.d.ts +118 -0
  241. package/dist/lib/testing-live-operations.js +676 -0
  242. package/dist/lib/testing-live-operations.js.map +1 -0
  243. package/dist/lib/testing-live-recorder.d.ts +14 -0
  244. package/dist/lib/testing-live-recorder.js +122 -0
  245. package/dist/lib/testing-live-recorder.js.map +1 -0
  246. package/dist/lib/testing-live-robot.d.ts +16 -0
  247. package/dist/lib/testing-live-robot.js +158 -0
  248. package/dist/lib/testing-live-robot.js.map +1 -0
  249. package/dist/lib/testing-live-state.d.ts +4 -0
  250. package/dist/lib/testing-live-state.js +90 -0
  251. package/dist/lib/testing-live-state.js.map +1 -0
  252. package/dist/lib/testing-live-types.d.ts +92 -0
  253. package/dist/lib/testing-live-types.js +2 -0
  254. package/dist/lib/testing-live-types.js.map +1 -0
  255. package/dist/lib/testing-operations.d.ts +157 -5
  256. package/dist/lib/testing-operations.js +830 -66
  257. package/dist/lib/testing-operations.js.map +1 -1
  258. package/dist/lib/testing-run-command.d.ts +25 -0
  259. package/dist/lib/testing-run-command.js +94 -0
  260. package/dist/lib/testing-run-command.js.map +1 -0
  261. package/dist/lib/testing-sanitization.d.ts +11 -0
  262. package/dist/lib/testing-sanitization.js +135 -0
  263. package/dist/lib/testing-sanitization.js.map +1 -0
  264. package/dist/lib/testing-schedule.d.ts +23 -0
  265. package/dist/lib/testing-schedule.js +48 -0
  266. package/dist/lib/testing-schedule.js.map +1 -0
  267. package/dist/lib/testing-secret-input.d.ts +12 -0
  268. package/dist/lib/testing-secret-input.js +56 -0
  269. package/dist/lib/testing-secret-input.js.map +1 -0
  270. package/dist/lib/testing-session.d.ts +8 -0
  271. package/dist/lib/testing-session.js +82 -0
  272. package/dist/lib/testing-session.js.map +1 -0
  273. package/dist/lib/testing-types.d.ts +143 -13
  274. package/dist/lib/testing-types.js +110 -5
  275. package/dist/lib/testing-types.js.map +1 -1
  276. package/dist/lib/testing-watch.d.ts +4 -0
  277. package/dist/lib/testing-watch.js +45 -0
  278. package/dist/lib/testing-watch.js.map +1 -0
  279. package/oclif.manifest.json +8721 -4127
  280. package/package.json +12 -1
  281. package/templates/skills/agentia-testing/SKILL.md +9 -6
  282. package/templates/skills/agentia-testing/references/tests.md +70 -36
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copado/agentia-cli",
3
3
  "description": "Command-line interface for Agentia",
4
- "version": "0.111.0-alpha.0",
4
+ "version": "0.113.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -17,11 +17,13 @@
17
17
  "@resvg/resvg-js": "^2.6.2",
18
18
  "@xmldom/xmldom": "^0.9.12",
19
19
  "beautiful-mermaid": "^1.1.3",
20
+ "exceljs": "^4.4.0",
20
21
  "ink": "5.2.1",
21
22
  "react": "18.3.1",
22
23
  "semver": "^7.8.5",
23
24
  "tty-table": "^5.0.0",
24
25
  "uuid": "^14.0.1",
26
+ "ws": "^8.21.3",
25
27
  "zod": "^4.4.3"
26
28
  },
27
29
  "devDependencies": {
@@ -33,6 +35,7 @@
33
35
  "@types/node": "^18",
34
36
  "@types/react": "18.3.18",
35
37
  "@types/semver": "^7.8.0",
38
+ "@types/ws": "^8.18.1",
36
39
  "chai": "^4",
37
40
  "eslint": "^9",
38
41
  "eslint-config-oclif": "^6",
@@ -208,9 +211,17 @@
208
211
  },
209
212
  "testing": {
210
213
  "description": "Manage Copado Robotic Testing projects, tests, runs, logs, and variables"
214
+ },
215
+ "testing:live": {
216
+ "description": "Manage Copado Robotic Testing live sessions"
211
217
  }
212
218
  }
213
219
  },
220
+ "overrides": {
221
+ "exceljs": {
222
+ "uuid": "11.1.1"
223
+ }
224
+ },
214
225
  "repository": "Copado/agentia-cli",
215
226
  "scripts": {
216
227
  "build": "node scripts/build.mjs",
@@ -1,26 +1,26 @@
1
1
  ---
2
2
  name: agentia-testing
3
- description: Use this skill when creating, updating, running, inspecting, or troubleshooting Copado Robotic Testing tests with the Agentia CLI, especially commands under `agentia testing test`, CRT projects, robots, jobs, builds, logs, variables, PAT authentication, Git-backed test storage, and Robot Framework execution.
3
+ description: Use this skill when creating, updating, running, inspecting, or troubleshooting Copado Robotic Testing with the Agentia CLI, including projects, permissions, robots, jobs, builds, schedules, data tables, variables, user parameters, live testing, Git-backed storage, and Robot Framework execution.
4
4
  ---
5
5
 
6
6
  <!-- Agentia managed skill file: agentia setup skills -->
7
7
 
8
8
  # Agentia Testing
9
9
 
10
- Use this skill to operate Copado Robotic Testing through Agentia without confusing CRT projects, robots, jobs, tests, and builds.
10
+ Use this skill to operate Copado Robotic Testing through Agentia without confusing CRT resources, executions, live sessions, and Copado CICD records.
11
11
 
12
12
  Prefer Agentia MCP tools when they are available and match the task. Use CLI examples as the fallback, and add `--json` whenever the result will be parsed or reused.
13
13
 
14
14
  ## Start Here
15
15
 
16
16
  1. Confirm CRT auth with `agentia auth get --crt --json`. Configure missing credentials with `agentia auth set --crt ...` or the supported `AGENTIA_CRT_*` environment variables.
17
- 2. Identify or create the CRT Project and Robot before creating or running tests.
17
+ 2. Identify or create the CRT Project and Robot before creating or running tests. Use explicit project and job IDs; do not invent hidden active-resource defaults.
18
18
  3. Use `testing test ...` as the canonical namespace for test workflows. The shorter `testing run|logs|status|create|update` forms exist for compatibility.
19
- 4. Never expose PATs, organization secrets, or generated log content that contains secrets.
19
+ 4. Never expose PAKs, session cookies, viewer keys, variable values, or generated log content that contains secrets.
20
20
 
21
21
  ## Reference
22
22
 
23
- - CRT test creation, updates, execution, status, logs, and related project/robot/job/build prerequisites: [references/tests.md](references/tests.md)
23
+ - CRT lifecycle, execution, schedules, data tables, live testing, and safety rules: [references/tests.md](references/tests.md)
24
24
 
25
25
  ## General Rules
26
26
 
@@ -28,7 +28,10 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
28
28
  - `agentia testing job` manages CRT job/test definitions. It is different from `agentia cicd job`, which manages Copado CICD JobExecution records.
29
29
  - Use `--wait-for-result` on `testing test run` when the agent must return the final build result in one turn.
30
30
  - Use Git-backed job flags only when the user or project clearly uses repository-backed CRT test storage.
31
+ - In JSON or non-interactive CLI calls, destructive actions require `--yes`; matching MCP tools require `confirm: true`.
32
+ - Prefer `--value-stdin` and `--git-password-stdin` over putting secrets in process arguments.
33
+ - Use the currently configured CRT credential context for validation. Test14 credentials belong to CICD and must not be substituted for CRT credentials.
31
34
 
32
35
  ## Report Back
33
36
 
34
- Report the CRT project, robot, job/test ID, build ID when present, final status, and where logs were written or fetched. Do not include PATs or other secrets.
37
+ Report the CRT project, robot, job/test ID, build or live-session ID when present, final status, cleanup, and where outputs were written. Do not include PAKs or other secrets.
@@ -2,64 +2,98 @@
2
2
 
3
3
  # CRT Testing Reference
4
4
 
5
- Use this reference for `agentia testing test ...` and related Copado Robotic Testing commands.
5
+ Use this reference for Copado Robotic Testing commands under `agentia testing`.
6
6
 
7
7
  ## Authentication And Context
8
8
 
9
- Configure CRT once:
10
-
11
9
  ```sh
12
10
  agentia auth set --crt <pak> --crt-domain <domain> --crt-org <organization-id>
13
11
  agentia auth get --crt --json
14
12
  ```
15
13
 
16
- CRT commands resolve authentication from `agentia auth set`, supported `AGENTIA_CRT_*` environment variables, or the configured profile. Do not print PAT values.
17
-
18
- ## Canonical Test Workflow
14
+ Proceed only when the CRT credential entry reports `ready: true`. CRT commands resolve the configured CRT keychain context or supported `AGENTIA_CRT_*` process overrides. Do not pass PAKs in URLs or report them in output. Test14 is a CICD environment and is not a substitute for CRT credentials.
19
15
 
20
- 1. List or create a project: `agentia testing project list --json`
21
- 2. List or create a robot: `agentia testing robot list --json`
22
- 3. Create or update a test: `agentia testing test create ... --json`
23
- 4. Run the test: `agentia testing test run <job-id> --project <project-id> --wait-for-result --json`
24
- 5. Inspect status and logs: `agentia testing test status ... --json` and `agentia testing test logs ... --json`
16
+ Use explicit `--project` and `--job` context. Agentia does not reproduce the legacy CLI's hidden active project/job selection.
25
17
 
26
- ## Test Commands
27
-
28
- | Command | Use For | Notes |
29
- | --- | --- | --- |
30
- | `testing test create` | Create a CRT test and upload Robot files | Requires project, robot, name, and `--file` or `--dir`. |
31
- | `testing test update ID` | Update files for a test | Use `--add`, `--remove`, `--replace`, or Git branch options. |
32
- | `testing test run ID` | Run a CRT test | Use `--project`; use `--wait-for-result` when the final status is required. |
33
- | `testing test status` | List build/run status | Filter by project, job, and status. |
34
- | `testing test logs ID` | Fetch build logs | Use `--project`, `--job`, and optional `--output`. |
18
+ ## Canonical Test Workflow
35
19
 
36
- Examples:
20
+ 1. Discover or create a project and robot.
21
+ 2. Create a job/test using snapshot files or validated Git-backed storage.
22
+ 3. Run through `testing test run` and optionally wait for the terminal build.
23
+ 4. Inspect build detail, search, logs, artifacts, or xUnit.
24
+ 5. Update the job or data inputs as needed.
25
+ 6. Clean up regression-owned resources in reverse order with explicit confirmation.
37
26
 
38
27
  ```sh
28
+ agentia testing project list --json
29
+ agentia testing robot list --json
39
30
  agentia testing test create --project <project-id> --robot <robot-id> --name "Smoke" --file tests/smoke.robot --json
40
31
  agentia testing test run <job-id> --project <project-id> --wait-for-result --json
32
+ agentia testing build get <build-id> --project <project-id> --job <job-id> --json
41
33
  agentia testing test logs <build-id> --project <project-id> --job <job-id> --output ./crt.log --json
42
34
  ```
43
35
 
44
- ## Related CRT Commands
36
+ ## Command Areas
37
+
38
+ | Area | Commands |
39
+ | --- | --- |
40
+ | Projects | `testing project list|get|create|update|delete`; `project permission list|get|set|update` |
41
+ | Robots | `testing robot list|get|create|update|delete` |
42
+ | Jobs | `testing job list|get|create|update|delete|run|files|refs|upload|download` |
43
+ | Schedules | `testing job schedule get|set|remove` |
44
+ | Builds | `testing build run|list|get|latest|search|logs|abort` |
45
+ | Variables | `testing variable list|get|create|update|delete` |
46
+ | User parameters | `testing user-parameter list|get|create|update|delete` |
47
+ | Data tables | `testing data-table list|get|create|update|delete|export` |
48
+ | Live testing | `testing live start|stop|status|execute|continue|interrupt|inspect|screenshot|reports|set-options|history|view|recorder` |
49
+
50
+ `testing create|update|run|status|logs` remain compatibility aliases. Prefer `testing test` for test workflows and canonical resource commands for new automation.
51
+
52
+ ## Execution And Builds
53
+
54
+ - Use `--wait-for-result` when the result must include terminal build data.
55
+ - `--timeout` bounds waiting; `--no-exit-code` keeps a failed remote run from failing the local command when explicitly desired.
56
+ - `--save-artifacts` and `--xunit` write only to validated explicit paths.
57
+ - `--stream-logs` and `--watch` are human-only and cannot be combined with `--json`.
58
+ - Repeated `--datatable TABLE_ID:SELECTION` starts data-driven batch execution. It cannot be combined with wait, stream, artifact-save, or xUnit modes.
59
+ - Use build `get`, `latest`, and `search` instead of assuming list order.
60
+
61
+ ## Schedules And Data Tables
62
+
63
+ Schedules support get, set with cron/timezone/record policy, and remove. Data tables accept CSV, TSV, JSON, and XLSX imports and support bounded preview and dataset selection. Export supports CSV, TSV, and XLSX.
64
+
65
+ Data-table create/update/delete and existing-file overwrite are protected operations. Never overwrite or delete without user intent.
66
+
67
+ ## Live Testing
68
+
69
+ Use a regression-owned job:
70
+
71
+ ```sh
72
+ agentia testing live start <job-id> --project <project-id> --json
73
+ agentia testing live status --project <project-id> --json
74
+ agentia testing live execute --project <project-id> --line "GoTo https://example.com" --json
75
+ agentia testing live inspect --project <project-id> --json
76
+ agentia testing live stop --project <project-id> --yes --json
77
+ ```
78
+
79
+ Live viewer secrets remain in the keychain. Session cookies and XSRF values are in-memory only. `view` opens an authenticated page without putting secrets in the URL. `recorder` is long-running and uses an owner-scoped local lock; neither `view` nor `recorder` is exposed through MCP.
80
+
81
+ ## Secret Inputs And Redaction
45
82
 
46
- | Area | Commands | Use For |
47
- | --- | --- | --- |
48
- | Projects | `testing project list/create/get/delete` | Top-level CRT project lifecycle. |
49
- | Robots | `testing robot list/create/get/delete` | Robot worker definitions. |
50
- | Jobs | `testing job list/create/get/update/delete/files/upload/download` | CRT job/test definitions and file storage. |
51
- | Builds | `testing build run/list/logs/abort` | Lower-level run/build management. |
52
- | Variables | `testing variable list/create/update/delete` | CRT variables, with value redaction in output. |
83
+ - Prefer `--value-stdin`/`--value-file` for variable values.
84
+ - Prefer `--git-password-stdin`/`--git-password-file` or a CRT domain credential for Git authentication.
85
+ - Sensitive variable and user-parameter values must remain redacted in human, JSON, MCP, debug, and error output.
86
+ - Validate local paths, remote paths, and Git refs before mutation.
53
87
 
54
- Use related commands to discover IDs needed by `testing test`.
88
+ ## Confirmation
55
89
 
56
- ## Git-Backed Tests
90
+ Destructive or protected CLI actions prompt in an interactive TTY. JSON and non-TTY calls require `--yes`. Matching MCP tools require `confirm: true`, not a `yes` field.
57
91
 
58
- Some CRT tests store Robot files in Git. Use Git-backed flags only when the project already expects Git storage or the user asks for it. Preserve branch, path, and credential values from existing job details when updating.
92
+ This applies to resource deletion, build abort, schedule removal, live stop, protected data-table imports/deletion, and output overwrite.
59
93
 
60
94
  ## Gotchas
61
95
 
62
- - The `testing test` namespace and the shorter `testing` namespace overlap. Prefer `testing test` in generated guidance because it makes the CRT domain explicit.
63
- - There is no `testing test get` or `testing test delete`; use `testing job get` or `testing job delete` for CRT job/test definitions.
64
- - `testing test run --wait-for-result` can poll until a terminal build status. Without it, the command may return only the started build.
65
- - Log commands may write files. In JSON mode, keep stdout structured and report the output path instead of mixing log text with JSON.
96
+ - `testing job` is a CRT test definition; `cicd job` is a Copado CICD JobExecution.
97
+ - There is no `testing test get` or `testing test delete`; use `testing job get` and `testing job delete`.
98
+ - CRT tenant users, organizations, groups, roles, licenses, and cross-region migration are intentionally not Agentia testing commands.
99
+ - Log, artifact, data-table, DOM, screenshot, and report commands may write files. Keep JSON stdout structured and report only sanitized output metadata.