@copado/agentia-cli 1.2.0 → 1.4.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 (302) hide show
  1. package/CHANGELOG.md +58 -1
  2. package/README.md +2299 -1615
  3. package/dist/commands/auth/get.js +21 -1
  4. package/dist/commands/auth/set.js +13 -0
  5. package/dist/commands/auth/unset.js +37 -0
  6. package/dist/commands/cicd/cloud/commit.js +6 -5
  7. package/dist/commands/cicd/cloud/promote.js +44 -8
  8. package/dist/commands/cicd/credential/auth/status.js +2 -2
  9. package/dist/commands/cicd/credential/auth/web/login.js +2 -2
  10. package/dist/commands/cicd/credential/create.js +2 -2
  11. package/dist/commands/cicd/credential/list.js +4 -3
  12. package/dist/commands/cicd/credential/open.js +2 -2
  13. package/dist/commands/cicd/credential/update.js +2 -2
  14. package/dist/commands/cicd/data/commit/create.js +2 -2
  15. package/dist/commands/cicd/data/commit/list.js +2 -2
  16. package/dist/commands/cicd/data/dataset-file/content.js +2 -2
  17. package/dist/commands/cicd/data/dataset-file/list.js +2 -2
  18. package/dist/commands/cicd/data/filter/add.js +2 -2
  19. package/dist/commands/cicd/data/filter/delete.js +2 -2
  20. package/dist/commands/cicd/data/filter/list.js +2 -2
  21. package/dist/commands/cicd/data/filter/update.js +2 -2
  22. package/dist/commands/cicd/data/formula/create.js +2 -2
  23. package/dist/commands/cicd/data/formula/list.js +2 -2
  24. package/dist/commands/cicd/data/formula/update.js +2 -2
  25. package/dist/commands/cicd/data/records/match.js +2 -2
  26. package/dist/commands/cicd/data/records/search.js +2 -2
  27. package/dist/commands/cicd/data/sobject/fields.js +2 -2
  28. package/dist/commands/cicd/data/sobject/relationships.js +2 -2
  29. package/dist/commands/cicd/data/sync/apply.js +2 -2
  30. package/dist/commands/cicd/data/sync/preview-updates.js +2 -2
  31. package/dist/commands/cicd/data/template/convert-old.js +2 -2
  32. package/dist/commands/cicd/data/template/create.js +2 -2
  33. package/dist/commands/cicd/data/template/delete.js +2 -2
  34. package/dist/commands/cicd/data/template/get-detail.js +2 -2
  35. package/dist/commands/cicd/data/template/get.js +2 -2
  36. package/dist/commands/cicd/data/template/list.js +2 -2
  37. package/dist/commands/cicd/data/template/open.js +2 -2
  38. package/dist/commands/cicd/data/template/save-detail.js +2 -2
  39. package/dist/commands/cicd/environment/auth/status.js +2 -2
  40. package/dist/commands/cicd/environment/auth/web/login.js +2 -2
  41. package/dist/commands/cicd/environment/create.js +2 -2
  42. package/dist/commands/cicd/environment/get.js +2 -2
  43. package/dist/commands/cicd/environment/list.js +4 -3
  44. package/dist/commands/cicd/environment/open.js +2 -2
  45. package/dist/commands/cicd/environment/update.js +2 -2
  46. package/dist/commands/cicd/extension/create.js +2 -2
  47. package/dist/commands/cicd/extension/install.js +2 -2
  48. package/dist/commands/cicd/extension/package.js +2 -2
  49. package/dist/commands/cicd/extension/publish.js +2 -2
  50. package/dist/commands/cicd/extension/uninstall.js +2 -2
  51. package/dist/commands/cicd/extension/validate.js +2 -2
  52. package/dist/commands/cicd/extension-configuration/get.js +2 -2
  53. package/dist/commands/cicd/extension-configuration/list.js +4 -3
  54. package/dist/commands/cicd/extension-configuration/open.js +2 -2
  55. package/dist/commands/cicd/function/defaults.js +2 -2
  56. package/dist/commands/cicd/function/delete.js +2 -2
  57. package/dist/commands/cicd/function/get.js +2 -2
  58. package/dist/commands/cicd/function/list.js +12 -15
  59. package/dist/commands/cicd/function/open.js +2 -2
  60. package/dist/commands/cicd/function/result/get.js +2 -2
  61. package/dist/commands/cicd/function/result/log/get.js +2 -2
  62. package/dist/commands/cicd/function/run-local.js +2 -2
  63. package/dist/commands/cicd/function/run.js +2 -2
  64. package/dist/commands/cicd/function/upsert.js +2 -2
  65. package/dist/commands/cicd/health-check.js +2 -2
  66. package/dist/commands/cicd/job/get.js +2 -2
  67. package/dist/commands/cicd/job/kill.js +2 -2
  68. package/dist/commands/cicd/job/list.js +4 -3
  69. package/dist/commands/cicd/job/log/get.js +2 -2
  70. package/dist/commands/cicd/job/open.js +2 -2
  71. package/dist/commands/cicd/job/pause.js +2 -2
  72. package/dist/commands/cicd/job/result-file/get.js +13 -8
  73. package/dist/commands/cicd/job/result-file/list.js +2 -2
  74. package/dist/commands/cicd/job/resume.js +2 -2
  75. package/dist/commands/cicd/job/run.js +2 -2
  76. package/dist/commands/cicd/metadata/content/compare.js +2 -2
  77. package/dist/commands/cicd/metadata/content/get.js +2 -2
  78. package/dist/commands/cicd/metadata/dependency/list.js +44 -21
  79. package/dist/commands/cicd/metadata/explore.js +2 -2
  80. package/dist/commands/cicd/metadata/index/compare.js +2 -2
  81. package/dist/commands/cicd/metadata/list.js +2 -2
  82. package/dist/commands/cicd/metadata/refresh/deleted.js +2 -2
  83. package/dist/commands/cicd/metadata/refresh/run.js +2 -2
  84. package/dist/commands/cicd/metadata/refresh/status.js +2 -2
  85. package/dist/commands/cicd/notification/configure.js +2 -2
  86. package/dist/commands/cicd/notification/get.js +2 -2
  87. package/dist/commands/cicd/pipeline/automation/activate.js +2 -2
  88. package/dist/commands/cicd/pipeline/automation/create.js +2 -2
  89. package/dist/commands/cicd/pipeline/automation/deactivate.js +2 -2
  90. package/dist/commands/cicd/pipeline/automation/delete.js +2 -2
  91. package/dist/commands/cicd/pipeline/automation/get.js +2 -2
  92. package/dist/commands/cicd/pipeline/automation/list.js +4 -3
  93. package/dist/commands/cicd/pipeline/automation/open.js +2 -2
  94. package/dist/commands/cicd/pipeline/automation/update.js +2 -2
  95. package/dist/commands/cicd/pipeline/connection/create.js +2 -2
  96. package/dist/commands/cicd/pipeline/connection/delete.js +2 -2
  97. package/dist/commands/cicd/pipeline/connection/list.js +2 -2
  98. package/dist/commands/cicd/pipeline/connection/open.js +2 -2
  99. package/dist/commands/cicd/pipeline/connection/update.js +2 -2
  100. package/dist/commands/cicd/pipeline/create.js +2 -2
  101. package/dist/commands/cicd/pipeline/get.js +2 -2
  102. package/dist/commands/cicd/pipeline/list.js +4 -3
  103. package/dist/commands/cicd/pipeline/open.js +2 -2
  104. package/dist/commands/cicd/pipeline/quality-gate/activate.js +2 -2
  105. package/dist/commands/cicd/pipeline/quality-gate/create.js +2 -2
  106. package/dist/commands/cicd/pipeline/quality-gate/deactivate.js +2 -2
  107. package/dist/commands/cicd/pipeline/quality-gate/delete.js +2 -2
  108. package/dist/commands/cicd/pipeline/quality-gate/get.js +2 -2
  109. package/dist/commands/cicd/pipeline/quality-gate/list.js +4 -3
  110. package/dist/commands/cicd/pipeline/quality-gate/open.js +2 -2
  111. package/dist/commands/cicd/pipeline/quality-gate/update.js +2 -2
  112. package/dist/commands/cicd/pipeline/stage-connection/create.js +2 -2
  113. package/dist/commands/cicd/pipeline/stage-connection/delete.js +2 -2
  114. package/dist/commands/cicd/pipeline/stage-connection/list.js +2 -2
  115. package/dist/commands/cicd/pipeline/stage-connection/open.js +2 -2
  116. package/dist/commands/cicd/pipeline/stage-connection/update.js +2 -2
  117. package/dist/commands/cicd/pipeline/update.js +2 -2
  118. package/dist/commands/cicd/project/create.js +2 -2
  119. package/dist/commands/cicd/project/default/get.js +2 -2
  120. package/dist/commands/cicd/project/default/set.js +2 -2
  121. package/dist/commands/cicd/project/default/unset.js +2 -2
  122. package/dist/commands/cicd/project/delete.js +2 -2
  123. package/dist/commands/cicd/project/get.js +2 -2
  124. package/dist/commands/cicd/project/list.js +4 -3
  125. package/dist/commands/cicd/project/open.js +2 -2
  126. package/dist/commands/cicd/project/update.js +2 -2
  127. package/dist/commands/cicd/promotion/conflict/get.js +2 -2
  128. package/dist/commands/cicd/promotion/conflict/list.js +2 -2
  129. package/dist/commands/cicd/promotion/conflict/resolve.js +2 -2
  130. package/dist/commands/cicd/promotion/conflict/unresolve.js +2 -2
  131. package/dist/commands/cicd/promotion/get.js +2 -2
  132. package/dist/commands/cicd/promotion/job-step/update.js +2 -2
  133. package/dist/commands/cicd/promotion/list.js +4 -3
  134. package/dist/commands/cicd/promotion/open.js +2 -2
  135. package/dist/commands/cicd/promotion/queue/list.js +28 -0
  136. package/dist/commands/cicd/promotion/queue/remove.js +37 -0
  137. package/dist/commands/cicd/promotion/run.js +2 -2
  138. package/dist/commands/cicd/promotion/status.js +29 -0
  139. package/dist/commands/cicd/repository/auth/https/configure.js +2 -2
  140. package/dist/commands/cicd/repository/auth/oauth/login.js +2 -2
  141. package/dist/commands/cicd/repository/auth/setup.js +2 -2
  142. package/dist/commands/cicd/repository/auth/ssh/configure.js +2 -2
  143. package/dist/commands/cicd/repository/create.js +2 -2
  144. package/dist/commands/cicd/repository/delete.js +2 -2
  145. package/dist/commands/cicd/repository/get.js +2 -2
  146. package/dist/commands/cicd/repository/list.js +7 -10
  147. package/dist/commands/cicd/repository/open.js +2 -2
  148. package/dist/commands/cicd/repository/reset.js +2 -2
  149. package/dist/commands/cicd/repository/update.js +2 -2
  150. package/dist/commands/cicd/repository/validate.js +2 -2
  151. package/dist/commands/cicd/stage/create.js +2 -2
  152. package/dist/commands/cicd/stage/delete.js +2 -2
  153. package/dist/commands/cicd/stage/get.js +2 -2
  154. package/dist/commands/cicd/stage/list.js +4 -3
  155. package/dist/commands/cicd/stage/open.js +2 -2
  156. package/dist/commands/cicd/stage/update.js +2 -2
  157. package/dist/commands/cicd/template/defaults.js +2 -2
  158. package/dist/commands/cicd/template/delete.js +2 -2
  159. package/dist/commands/cicd/template/get.js +2 -2
  160. package/dist/commands/cicd/template/list.js +11 -14
  161. package/dist/commands/cicd/template/upsert.js +2 -2
  162. package/dist/commands/cicd/user/get.js +2 -2
  163. package/dist/commands/cicd/work/ahead-behind.js +2 -2
  164. package/dist/commands/cicd/work/create.js +2 -2
  165. package/dist/commands/cicd/work/delete.js +4 -4
  166. package/dist/commands/cicd/work/deployment-step/create.js +2 -2
  167. package/dist/commands/cicd/work/deployment-step/delete.js +2 -2
  168. package/dist/commands/cicd/work/deployment-step/list.js +2 -2
  169. package/dist/commands/cicd/work/deployment-step/reorder.js +2 -2
  170. package/dist/commands/cicd/work/deployment-step/salesforce-flows.js +2 -2
  171. package/dist/commands/cicd/work/deployment-step/types.js +2 -2
  172. package/dist/commands/cicd/work/deployment-step/update.js +2 -2
  173. package/dist/commands/cicd/work/done.js +2 -2
  174. package/dist/commands/cicd/work/environment-sync.js +140 -64
  175. package/dist/commands/cicd/work/get.js +4 -4
  176. package/dist/commands/cicd/work/list.js +4 -3
  177. package/dist/commands/cicd/work/open.js +2 -2
  178. package/dist/commands/cicd/work/promote.js +2 -2
  179. package/dist/commands/cicd/work/publish.js +2 -2
  180. package/dist/commands/cicd/work/push.js +2 -2
  181. package/dist/commands/cicd/work/set.js +2 -2
  182. package/dist/commands/cicd/work/status.js +2 -2
  183. package/dist/commands/cicd/work/submit.js +2 -2
  184. package/dist/commands/cicd/work/test/apex.js +20 -35
  185. package/dist/commands/cicd/work/test.js +116 -11
  186. package/dist/commands/cicd/work/update.js +4 -4
  187. package/dist/commands/help-agent.js +15 -0
  188. package/dist/commands/help.js +38 -0
  189. package/dist/commands/history/clear.js +42 -0
  190. package/dist/commands/history/list.js +50 -0
  191. package/dist/commands/support.js +15 -0
  192. package/dist/commands/testing/browser/execute.js +49 -0
  193. package/dist/commands/testing/browser/history.js +49 -0
  194. package/dist/commands/testing/browser/inspect.js +35 -0
  195. package/dist/commands/testing/browser/recorder.js +52 -0
  196. package/dist/commands/testing/browser/screenshot.js +27 -0
  197. package/dist/commands/testing/browser/set-options.js +35 -0
  198. package/dist/commands/testing/browser/start.js +51 -0
  199. package/dist/commands/testing/browser/status.js +26 -0
  200. package/dist/commands/testing/browser/stop.js +34 -0
  201. package/dist/commands/testing/browser/view.js +35 -0
  202. package/dist/commands/testing/job/runs/abort.js +1 -1
  203. package/dist/commands/testing/job/runs/get.js +1 -1
  204. package/dist/commands/testing/job/runs/list.js +1 -1
  205. package/dist/commands/testing/job/runs/logs.js +1 -1
  206. package/dist/commands/testing/job/runs/search.js +1 -1
  207. package/dist/hooks/init/cicd-connection.js +59 -0
  208. package/dist/lib/agentia-command.js +69 -6
  209. package/dist/lib/cicd-command.js +3 -0
  210. package/dist/lib/cicd-connection.js +22 -0
  211. package/dist/lib/cicd-gateway.js +2 -1
  212. package/dist/lib/command-history-sanitization.js +9 -0
  213. package/dist/lib/command-history.js +11 -0
  214. package/dist/lib/command-output-buffer.js +6 -1
  215. package/dist/lib/defaults-store.js +5 -1
  216. package/dist/lib/dependency-from-changes.js +3 -1
  217. package/dist/lib/dependency-source-context.js +3 -0
  218. package/dist/lib/function-list.js +3 -0
  219. package/dist/lib/git-worktree.js +4 -1
  220. package/dist/lib/help-agent-command.js +3 -0
  221. package/dist/lib/help-agent-interaction-history.js +10 -0
  222. package/dist/lib/help-agent-session.js +3 -0
  223. package/dist/lib/job-get.js +2 -1
  224. package/dist/lib/job-types.js +2 -1
  225. package/dist/lib/list-pagination.js +6 -1
  226. package/dist/lib/local-quality-gates.js +4 -1
  227. package/dist/lib/mcp/result.js +41 -3
  228. package/dist/lib/mcp/server.js +3 -2
  229. package/dist/lib/mcp/testing-browser-tools.js +179 -0
  230. package/dist/lib/mcp/testing-tools.js +4 -3
  231. package/dist/lib/mcp/tool-annotations.js +31 -12
  232. package/dist/lib/mcp/tools.js +115 -59
  233. package/dist/lib/mcp/work-tools.js +100 -47
  234. package/dist/lib/promotion-queue.js +5 -0
  235. package/dist/lib/promotion-run.js +4 -1
  236. package/dist/lib/promotion-status.js +12 -0
  237. package/dist/lib/quality-gates.js +13 -0
  238. package/dist/lib/repository-list.js +3 -0
  239. package/dist/lib/runtime.js +1 -1
  240. package/dist/lib/stock-quality-gates.js +2 -1
  241. package/dist/lib/support-ai-context.js +11 -0
  242. package/dist/lib/support-ai-stream-parser.js +4 -0
  243. package/dist/lib/support-ai.js +9 -0
  244. package/dist/lib/template-list.js +3 -0
  245. package/dist/lib/testing-browser-command.js +6 -0
  246. package/dist/lib/testing-browser-operations.js +16 -0
  247. package/dist/lib/testing-browser-requests.js +11 -0
  248. package/dist/lib/testing-browser-robot.js +9 -0
  249. package/dist/lib/testing-browser-session.js +13 -0
  250. package/dist/lib/testing-browser-state.js +17 -0
  251. package/dist/lib/testing-browser-stream.js +7 -0
  252. package/dist/lib/testing-browser-types.js +3 -0
  253. package/dist/lib/testing-browser-viewer-key.js +7 -0
  254. package/dist/lib/testing-gateway.js +2 -1
  255. package/dist/lib/testing-operations.js +21 -1
  256. package/dist/lib/testing-sanitization.js +2 -1
  257. package/dist/lib/work-apex-test-failures.js +2 -1
  258. package/dist/lib/work-environment-sync-ready.js +7 -1
  259. package/dist/lib/work-environment-sync.js +8 -1
  260. package/dist/lib/work-local-run-tests.js +2 -1
  261. package/dist/lib/work-promote-deploy.js +3 -1
  262. package/dist/lib/work-promote.js +2 -1
  263. package/dist/lib/work-types.js +3 -1
  264. package/oclif.manifest.json +3544 -1828
  265. package/package.json +11 -4
  266. package/templates/skills/agentia-ai/SKILL.md +6 -2
  267. package/templates/skills/agentia-ai/references/ai-agents.md +19 -1
  268. package/templates/skills/agentia-cicd/SKILL.md +6 -5
  269. package/templates/skills/agentia-cicd/references/environments-and-credentials.md +16 -0
  270. package/templates/skills/agentia-cicd/references/jobs.md +3 -2
  271. package/templates/skills/agentia-cicd/references/promotions.md +26 -5
  272. package/templates/skills/agentia-cicd/references/work.md +25 -11
  273. package/templates/skills/agentia-metadata/SKILL.md +9 -3
  274. package/templates/skills/agentia-metadata/references/metadata-dependency.md +70 -0
  275. package/templates/skills/agentia-metadata/references/metadata-explore.md +8 -4
  276. package/templates/skills/agentia-testing/SKILL.md +9 -4
  277. package/templates/skills/agentia-testing/references/browser-testing.md +92 -0
  278. package/templates/skills/agentia-testing/references/flow-automation.md +112 -0
  279. package/templates/skills/agentia-testing/references/qforce.md +88 -0
  280. package/templates/skills/agentia-testing/references/qweb.md +103 -0
  281. package/templates/skills/agentia-testing/references/tests.md +17 -9
  282. package/vendor/java/var-replace-command.jar +0 -0
  283. package/dist/commands/testing/live/continue.js +0 -16
  284. package/dist/commands/testing/live/execute.js +0 -43
  285. package/dist/commands/testing/live/history.js +0 -40
  286. package/dist/commands/testing/live/inspect.js +0 -31
  287. package/dist/commands/testing/live/interrupt.js +0 -16
  288. package/dist/commands/testing/live/recorder.js +0 -42
  289. package/dist/commands/testing/live/reports.js +0 -31
  290. package/dist/commands/testing/live/screenshot.js +0 -25
  291. package/dist/commands/testing/live/set-options.js +0 -35
  292. package/dist/commands/testing/live/start.js +0 -58
  293. package/dist/commands/testing/live/status.js +0 -24
  294. package/dist/commands/testing/live/stop.js +0 -36
  295. package/dist/commands/testing/live/view.js +0 -36
  296. package/dist/lib/mcp/testing-live-tools.js +0 -226
  297. package/dist/lib/testing-live-command.js +0 -8
  298. package/dist/lib/testing-live-operations.js +0 -25
  299. package/dist/lib/testing-live-recorder.js +0 -11
  300. package/dist/lib/testing-live-robot.js +0 -9
  301. package/dist/lib/testing-live-state.js +0 -12
  302. package/dist/lib/testing-live-types.js +0 -3
package/CHANGELOG.md CHANGED
@@ -4,10 +4,65 @@ All published sections are mapped to immutable npm publication metadata. New use
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.4.0] - 2026-11-06
8
+
9
+ ### Added
10
+
11
+ - `cicd promotion status` (MCP `agentia_promotion_status`) reports actionable promotion state: user stories, current job step, queue summary, and whether a Manual Task or queue item needs attention. Prefer it when asking if a promotion is blocked or what is running. `promotion get` human output now lists user stories and queue summary and points agents at `promotion status`.
12
+ - MCP `agentia_cloud_promote` matches `cicd cloud promote` when no Promotion contains the User Story: it creates a forward Draft promotion, adds the story, then runs. CLI and MCP JSON include optional `createdPromotion` when a promotion was created.
13
+ - `cicd work environment-sync` waits for the cloud deployment JobExecution after a successful sync by default (`--[no-]wait`, `--wait-timeout`, default 900s), matching `cicd cloud promote`. After the sync result and first `Elapsed` line it notes that stopping the CLI leaves the deployment running in the background, then prints `Elapsed` again when the wait finishes.
14
+ - `cicd work test --gate <id>` (repeatable) runs only selected local quality gates, `--all` runs the whole script, and `--list-gates` shows the gates a script declares with `# agentia-gate: <id> - <description>`. The selection reaches the script as `AGENTIA_GATES`; `--gate apex` runs the Apex tests directly. The sample `.sh` and `.cmd` scripts now declare and conditionally run the standard `lint`, `apex` and `lwc` gates; the sample lint gate now scans only files changed on the branch (merge-base with the pipeline base branch, plus uncommitted and untracked files) and falls back to a full scan outside git, or when `LINT_SCOPE=all`. MCP `agentia_work_test` accepts `gates`, `all` and `listGates`.
15
+
16
+ ### Changed
17
+
18
+ - `cicd work environment-sync` is marked experimental (`This command is experimental and may change without notice.` in human stderr and `--json` `warnings`).
19
+ - `cicd cloud commit` help documents multi-component commits via `--file` / `--stdin` `changes[]` and clarifies that simple metadata flags commit exactly one component.
20
+ - `cicd work environment-sync` accepts `--deployment=none|local|cloud|auto` (default `auto`) and `--sf-alias`. Resolved `none|local|cloud` is sent to `promote-action/complete` (never `auto`). `auto` picks `local` when every back-promotion change is Add and `--sf-alias` is set, otherwise `cloud`. `local` runs `sf project deploy start --ignore-conflicts` before complete (Add-only; rejects Delete/RetrieveOnly/Full). Cloud deployment wait runs only when the resolved deployment is `cloud`.
21
+ - `cicd work environment-sync` stops on a feature branch when unpublished commits are present (HEAD ahead of `origin/<feature>` or the remote ref is missing) and suggests `cicd work publish` before syncing.
22
+ - `cicd work environment-sync` creates `promotion/<promotionName>` from the dest org branch, merges next-env pathspecs into that branch, merges the promotion branch into dest, and pushes both refs (instead of merging next-env directly into feature/dest). When the run started on a feature branch, it then refreshes that branch's changed files from dest and tells you to re-check and publish again.
23
+
24
+ ### Fixed
25
+
26
+ - `cicd job result-file get` and MCP `agentia_job_result_file_get` download Result-linked files using the list response `fileId` (ContentVersion, 068 prefix). A ContentDocument id (069) is resolved through the list endpoint before download. The list table includes a FILE ID column.
27
+ - Environment-variable replacement during `cicd work publish` applies to newly added files and handles Windows paths correctly.
28
+ - `cicd work environment-sync --deployment=local` deploys from the dest org branch (after merge/push) before refreshing the feature branch, so `sf project deploy start --manifest` can resolve source-backed components. Deploy failures now include the full `package.xml` (and destructive manifest when present) plus sanitized Salesforce CLI stdout/stderr in the human and `--json` error message.
29
+ - Cursor-paginated CICD lists (`--cursor` / MCP `cursor`) no longer fail hard when the API returns category `SF-014` for an expired or invalid cursor. Agentia retries once without the cursor, returns the first page, and surfaces a `warnings` entry in human output, `--json`, and MCP results.
30
+
31
+ ### Removed
32
+
33
+ - Remove `agentia testing browser reports` (and its deprecated `testing live reports` alias and `agentia_testing_browser_reports` MCP tool).
34
+
35
+ ## [1.3.0] - 2026-11-03
36
+
37
+ ### Added
38
+
39
+ - Experimental `agentia help-agent`, `agentia support`, and `agentia help --agent` start the same multi-turn Copado support conversation without an eager CICD credential preflight. Responses render as SSE deltas arrive. Every request obtains a fresh non-persisted HMAC, refreshes bounded runtime/recent-command context and dominant CLI/IDE/MCP usage, and sends a redacted digest of up to six successful prior messages. The system prompt asks one brief question when tooling or local-versus-cloud operations cannot be determined.
40
+ - `agentia history list` and `agentia history clear` inspect or remove owner-private temporary history. Command history retains at most 100 sanitized CLI/IDE summaries or metadata-only MCP summaries. Successful Help Agent turn pairs are separately redacted, capped at 4 KiB per message, and retained for a rolling 24 hours/100 pairs without restoring them into later chats; `history clear --yes` deletes both stores.
41
+ - Named CICD connections: `agentia auth set --cicd <key> --connection <name> [--kind sandbox|production]` stores an alternate Copado API key and endpoint without changing the active/default connection. Use `--cicd-connection <name>` only on `agentia cicd ...` commands (or `AGENTIA_CICD_CONNECTION`, or MCP `cicdConnection` on CICD tools) for that invocation only—not on `ai`, `adv`, `testing`, or `auth`. Production-tagged connections require confirmation (CLI), `--yes`, or `AGENTIA_CICD_ALLOW_PRODUCTION=true` (required for MCP). Combining a named connection with `AGENTIA_CICD_API_KEY` / `AGENTIA_CICD_BASE_URL` errors instead of silently choosing one. `auth get` lists named connections with masked keys; `auth unset --connection` removes one.
42
+ - `cicd promotion queue list` and `cicd promotion queue remove` (MCP `agentia_promotion_queue_list`, `agentia_promotion_queue_remove`) show and clear the job queue of a promotion; removal requires the Manage Queue permission and `--yes` for headless runs.
43
+ - `agentia testing browser view` provisions a session-scoped CRT user parameter (`agentia_cli_lt_<sessionId>`) for the web noVNC viewer and includes `projectId` and `orgId` in the `/browser/session/<sessionId>` viewer URL; `testing browser stop` deletes the parameter on teardown.
44
+ - `agentia testing browser execute --stdin` reads Robot Framework lines or suite content from standard input; `testing browser history` adds `--lines-only`, `--keyword`, `--include-failed`, and `--job` while preserving 4-space Robot Framework argument separators and redacting `TypeSecret` values; `testing browser inspect --dom --json` returns raw DOM in JSON without requiring `--output`; and `testing browser recorder` adds `--force` and `--json`.
45
+ - `agentia-testing` skill pack adds `references/browser-testing.md`, `references/flow-automation.md`, `references/qweb.md`, and `references/qforce.md`.
46
+
47
+ ### Changed
48
+
49
+ - `cicd cloud promote` creates a forward Draft promotion for the User Story and adds it when no promotion contains the story, then runs it, instead of failing and requiring you to create the promotion by hand.
50
+ - Rename `agentia testing live` commands to `agentia testing browser` (`start|stop|status|execute|inspect|screenshot|reports|set-options|history|view|recorder`) with hidden deprecated `testing live ...` CLI aliases, and replace `agentia_testing_live_*` MCP tools with `agentia_testing_browser_*`.
51
+
52
+ ### Removed
53
+
54
+ - Remove unused `testing live continue` and `testing live interrupt` commands and their `agentia_testing_live_continue` / `agentia_testing_live_interrupt` MCP tools.
55
+
56
+ ### Fixed
57
+
58
+ - MCP server and `testing job runs` commands failed to load in 1.2.0 packaged builds.
59
+
7
60
  ## [1.2.0] - 2026-10-28
8
61
 
9
62
  ### Added
10
63
 
64
+ - `cicd metadata dependency list --path` (and MCP `agentia_metadata_dependency_list` `path`) resolves one or more local Salesforce source file paths into metadata selections via the existing SDR path helpers, then runs the same dependency gateway request with `localPaths` enrichment. Mutually exclusive with `--file`, `--stdin`, and `--from-changes`.
65
+ - `cicd metadata dependency list` (and MCP `agentia_metadata_dependency_list`) resolves omitted `--pipeline-id`, `--source-credential-id`, `--source-org-id`, and `--platform-experience` from the active work item, then from project defaults for pipeline/credential/org. Platform falls back to `sfdx` when still unset. `--target-org-id` is never inferred.
11
66
  - Automatic proxy support: Agentia honors `HTTPS_PROXY`, `HTTP_PROXY`, `NO_PROXY`, and npm-style proxy environment variables on CICD, AI, CRT, Pipelines Advanced, version check, plugin trust, and CRT live WebSocket traffic, with proxy-aware transport errors and masked proxy credentials in debug output.
12
67
  - `cicd work get`, `cicd work create`, and `cicd work update` (and MCP `agentia_work_get`, `agentia_work_create`, `agentia_work_update`) support subscriber User Story `customFields`: get surfaces the gateway read DTOs in human and `--json` output; create/update accept writes via repeatable `--custom-field ApiName=value`, and MCP accepts the same data as a `customFields` array.
13
68
  - `cicd metadata explore` (experimental; MCP `agentia_metadata_explore`) explores Salesforce metadata through Org Intelligence. `agentia setup` can install the `agentia-metadata` skill for agent workflows.
@@ -18,6 +73,8 @@ All published sections are mapped to immutable npm publication metadata. New use
18
73
 
19
74
  ### Changed
20
75
 
76
+ - `cicd metadata dependency list` human output is a single table with parent (evaluated metadata), relation (`used by` / `dependant`), name, type, and compare status field (status column omitted when absent, for example without a target org). Agentia metadata skill templates document `--path`, context defaults, and when to prefer the Copado dependency graph over Org Intelligence `find_references`.
77
+ - Project Cursor rule `skill-management` (scoped to `src/commands`, `src/lib`, and `templates/skills`) requires updating `templates/skills` (and syncing installed skill copies) whenever CLI/MCP or agent workflow contracts change.
21
78
  - Consolidate Copado Robotic Testing job definitions, files, and runs under `agentia testing job`: `testing job create|update|run|list|get|delete|refs`, `testing job files list|upload|download`, `testing job runs list|search|get|logs|abort`, and `testing job schedule get|set|remove`. Older `testing create|update|status|logs|run`, `testing test ...`, `testing build ...`, and `testing job files|upload|download` forms remain as hidden deprecated aliases that print a migration warning.
22
79
  - `testing job run` now waits for a terminal CRT build result and streams sanitized Robot Framework logs by default in human output (printing `Run ID:` and a `Run is queued...` progress indicator while queued, treating `finished` as a transitional status during polling, and exiting nonzero when the run does not succeed unless `--no-exit-code` is set). Use `--no-wait` to return once queued (`--wait-for-result` is a deprecated alias for `--wait`), or `--no-stream-logs` to show a spinner instead; `--datatable` batch runs never wait, `--save-artifacts` and `--xunit` require waiting, and `--json` never streams.
23
80
  - `testing job runs get` fetches the full build record in human output so the summary includes xUnit test totals, while `--json` continues to return the compact record unless `--full` is passed.
@@ -33,7 +90,7 @@ All published sections are mapped to immutable npm publication metadata. New use
33
90
  - `cicd environment open` opens environments only; use `cicd credential open` for credentials.
34
91
  - `cicd environment auth status` and `cicd environment auth web login` (and MCP `agentia_environment_auth_status`) accept `--credentialid` / `credentialId` without an environment ID and resolve the environment from the credential.
35
92
  - Installed plugins can contribute agent skills through an `agentia:contribute` hook. `agentia setup skills list` shows what plugins offer and why invalid skills are skipped, interactive `setup skills create` lets you tick plugin skills (none preselected), `setup skills create|update --plugin <name>` installs them headless, and `setup skills update` refreshes plugin skills already in the project and warns about skills whose plugin was removed; `setup skills update --prune` deletes those orphaned plugin skills. Plugin skills are Markdown only and validated before install.
36
- - `agentia ai agent ask|chat` and MCP `agentia_ai_ask` default to the Orchestrate agent, which routes work to the right specialist; `--agent` is optional and still accepts `plan`, `build`, `test`, `release`, `operate`, or `knowledge`. The plugin SDK `host.ai.ask` follows the same default; plugins that need the previous behavior pass `agent: 'knowledge'`.
93
+ - `agentia ai agent ask|chat` and MCP `agentia_ai_ask` default to the Orchestrate agent, which routes work to the right specialist; `--agent` is optional and still accepts `plan`, `build`, `test`, `release`, `operate`, or `knowledge`. The plugin SDK `host.ai.ask` follows the same default; plugins that need the previous behavior pass `agent: 'knowledge'`.
37
94
 
38
95
  ### Fixed
39
96