@copado/agentia-cli 1.0.0-beta.4 → 1.0.0-beta.5
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 +19 -0
- package/README.md +265 -244
- package/dist/commands/cicd/work/test/apex.js +37 -4
- package/dist/commands/cicd/work/test.js +20 -1
- package/dist/lib/cicd-gateway.js +2 -1
- package/dist/lib/local-quality-gates.js +4 -1
- package/dist/lib/mcp/work-tools.js +42 -8
- package/dist/lib/plugin-host/event-log.js +3 -0
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/setup-templates.js +2 -1
- package/dist/lib/work-apex-test-failures.js +13 -0
- package/dist/lib/work-apex-test.js +4 -1
- package/oclif.manifest.json +72 -49
- package/package.json +1 -1
- package/templates/skills/agentia-cicd/SKILL.md +1 -1
- package/templates/skills/agentia-cicd/references/work.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All published sections are mapped to immutable npm publication metadata. New use
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [1.0.0-beta.5] - 2026-10-08
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `cicd work test` accepts repeatable `-e` / `--env NAME=value` (MCP `agentia_work_test` `env` string array) to inject extra variables into the local quality-gate script environment for custom skips, tool API keys, and similar script-owned knobs. Reserved `AGENTIA_APEX_*` values from dedicated flags still override conflicting `-e` names.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- `cicd work test apex` (`-t` / `--apex-test-classes`) is optional. When omitted or empty, the command reports that no Apex tests were specified and exits without calling Salesforce CLI, so quality-gate scripts can pass `-t "${AGENTIA_APEX_TEST_CLASSES}"` unconditionally. MCP `agentia_work_test_apex` matches. Sample Unix/Windows quality-gate scripts no longer wrap that call in an env-var `if`.
|
|
16
|
+
- `cicd work test` and `cicd work test apex` accept `--rerun-failed-apex-tests`. Failed Apex runs save `.agentia/apex.tests.<user-story>.json`; a later successful run deletes it. That flag reruns those failed classes (`work test` sets `AGENTIA_APEX_RERUN_FAILED` to `--rerun-failed-apex-tests` or empty for sample quality-gate scripts). MCP uses `rerunFailedApexTests`. Subset reruns merge with the saved failure list so classes not in the run stay queued.
|
|
17
|
+
- `cicd work test` / `work submit` always inject `AGENTIA_APEX_TEST_CLASSES` and `AGENTIA_APEX_RERUN_FAILED` into the quality-gate script environment (empty string when the flags are omitted), so `set -u` scripts can expand them without inheriting a stale shell value.
|
|
18
|
+
- Sample Unix/Windows quality-gate scripts run `npx sfdx-lwc-jest -- --passWithNoTests` so LWC Jest does not fail when a project has no tests.
|
|
19
|
+
- Record plugin activity in the CICD `/eventlog` like AI and CRT traffic. Each plugin host call (`work.getWorkItem`, `organization.healthCheck`, `auth.status`) sends one best-effort event tagged `plugin:<command id>` with the host method name, a placeholder `plugin-host://` URL and the transaction id, and never arguments, results or credentials; delivery failures never affect the plugin call.
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- `agentia setup` and `agentia setup skills create|update` no longer preselect portable skills. The target prompt starts with nothing checked, and continuing without a selection is rejected. Headless `--target` and the omitted-target default of `.agents/skills` are unchanged.
|
|
24
|
+
- `cicd work test apex` exits with the same process exit code as Salesforce CLI (`sf`), including `100` when Apex tests fail (and other nonzero `sf` codes), instead of always exiting `1`.
|
|
25
|
+
|
|
7
26
|
## [1.0.0-beta.4] - 2026-10-07
|
|
8
27
|
|
|
9
28
|
### Added
|