@copado/agentia-cli 1.3.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.
- package/CHANGELOG.md +28 -0
- package/README.md +436 -427
- package/dist/commands/cicd/cloud/commit.js +4 -3
- package/dist/commands/cicd/cloud/promote.js +40 -18
- package/dist/commands/cicd/credential/list.js +2 -1
- package/dist/commands/cicd/environment/list.js +2 -1
- package/dist/commands/cicd/extension-configuration/list.js +2 -1
- package/dist/commands/cicd/function/list.js +10 -13
- package/dist/commands/cicd/job/list.js +2 -1
- package/dist/commands/cicd/job/result-file/get.js +11 -6
- package/dist/commands/cicd/pipeline/automation/list.js +2 -1
- package/dist/commands/cicd/pipeline/list.js +2 -1
- package/dist/commands/cicd/pipeline/quality-gate/list.js +2 -1
- package/dist/commands/cicd/project/list.js +2 -1
- package/dist/commands/cicd/promotion/list.js +2 -1
- package/dist/commands/cicd/promotion/status.js +29 -0
- package/dist/commands/cicd/repository/list.js +5 -8
- package/dist/commands/cicd/stage/list.js +2 -1
- package/dist/commands/cicd/template/list.js +9 -12
- package/dist/commands/cicd/work/delete.js +2 -2
- package/dist/commands/cicd/work/environment-sync.js +138 -62
- package/dist/commands/cicd/work/get.js +2 -2
- package/dist/commands/cicd/work/list.js +2 -1
- package/dist/commands/cicd/work/test/apex.js +18 -33
- package/dist/commands/cicd/work/test.js +114 -9
- package/dist/commands/cicd/work/update.js +2 -2
- package/dist/lib/defaults-store.js +3 -1
- package/dist/lib/function-list.js +3 -0
- package/dist/lib/git-worktree.js +4 -1
- package/dist/lib/job-get.js +2 -1
- package/dist/lib/job-types.js +2 -1
- package/dist/lib/list-pagination.js +6 -1
- package/dist/lib/local-quality-gates.js +4 -1
- package/dist/lib/mcp/testing-browser-tools.js +1 -16
- package/dist/lib/mcp/tool-annotations.js +0 -1
- package/dist/lib/mcp/tools.js +30 -25
- package/dist/lib/mcp/work-tools.js +100 -47
- package/dist/lib/promotion-run.js +3 -1
- package/dist/lib/promotion-status.js +12 -0
- package/dist/lib/quality-gates.js +13 -0
- package/dist/lib/repository-list.js +3 -0
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/stock-quality-gates.js +2 -1
- package/dist/lib/template-list.js +3 -0
- package/dist/lib/testing-browser-operations.js +1 -2
- package/dist/lib/testing-browser-session.js +1 -2
- package/dist/lib/work-apex-test-failures.js +2 -1
- package/dist/lib/work-environment-sync-ready.js +7 -1
- package/dist/lib/work-environment-sync.js +8 -1
- package/dist/lib/work-local-run-tests.js +2 -1
- package/dist/lib/work-promote-deploy.js +3 -1
- package/dist/lib/work-types.js +3 -1
- package/oclif.manifest.json +477 -419
- package/package.json +1 -1
- package/templates/skills/agentia-cicd/SKILL.md +4 -3
- package/templates/skills/agentia-cicd/references/jobs.md +3 -2
- package/templates/skills/agentia-cicd/references/promotions.md +16 -4
- package/templates/skills/agentia-cicd/references/work.md +25 -11
- package/templates/skills/agentia-testing/references/browser-testing.md +0 -1
- package/templates/skills/agentia-testing/references/tests.md +1 -1
- package/vendor/java/var-replace-command.jar +0 -0
- package/dist/commands/testing/browser/reports.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ 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
|
+
|
|
7
35
|
## [1.3.0] - 2026-11-03
|
|
8
36
|
|
|
9
37
|
### Added
|