@copado/agentia-cli 1.0.0-beta.2 → 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 +55 -0
- package/README.md +416 -293
- package/dist/commands/cicd/data/template/save-detail.js +2 -2
- package/dist/commands/cicd/repository/auth/https/configure.js +21 -0
- package/dist/commands/cicd/repository/auth/oauth/login.js +56 -0
- package/dist/commands/cicd/repository/auth/setup.js +28 -0
- package/dist/commands/cicd/repository/auth/ssh/configure.js +22 -0
- package/dist/commands/cicd/repository/create.js +2 -2
- package/dist/commands/cicd/repository/reset.js +17 -5
- package/dist/commands/cicd/repository/update.js +6 -14
- package/dist/commands/cicd/work/environment-sync.js +66 -61
- package/dist/commands/cicd/work/get.js +5 -9
- package/dist/commands/cicd/work/submit.js +1 -1
- package/dist/commands/cicd/work/test/apex.js +37 -4
- package/dist/commands/cicd/work/test.js +20 -1
- package/dist/commands/runtime.js +26 -0
- package/dist/hooks/finally/ide-command-event.js +1 -1
- package/dist/hooks/init/plugin-host.js +6 -0
- package/dist/lib/agentia-command.js +16 -0
- package/dist/lib/cicd-gateway.js +2 -1
- package/dist/lib/cursor-mcp-config.js +3 -1
- package/dist/lib/data-types.js +3 -1
- package/dist/lib/git-worktree.js +2 -1
- package/dist/lib/local-quality-gates.js +4 -1
- package/dist/lib/mcp/data-tools.js +2 -2
- package/dist/lib/mcp/server.js +33 -7
- package/dist/lib/mcp/tool-annotations.js +3 -0
- package/dist/lib/mcp/tools.js +55 -12
- package/dist/lib/mcp/work-tools.js +44 -13
- package/dist/lib/plugin-host/auth.js +4 -0
- package/dist/lib/plugin-host/event-log.js +3 -0
- package/dist/lib/plugin-host/format.js +3 -0
- package/dist/lib/plugin-host/index.js +7 -0
- package/dist/lib/plugin-host/organization.js +4 -0
- package/dist/lib/plugin-host/projection-utils.js +6 -0
- package/dist/lib/plugin-host/registry.js +6 -0
- package/dist/lib/plugin-host/request-scope.js +4 -0
- package/dist/lib/plugin-host/work.js +4 -0
- package/dist/lib/project-root.js +3 -1
- package/dist/lib/repository-auth.js +8 -0
- package/dist/lib/repository-flags.js +2 -2
- package/dist/lib/repository-types.js +6 -1
- package/dist/lib/repository-url-prefill.js +4 -0
- package/dist/lib/runtime-invoke-context.js +6 -0
- package/dist/lib/runtime-rpc.js +14 -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/dist/lib/work-environment-sync.js +1 -2
- package/dist/lib/work-get.js +3 -0
- package/oclif.manifest.json +315 -174
- package/package.json +4 -3
- package/templates/skills/agentia-cicd/SKILL.md +1 -1
- package/templates/skills/agentia-cicd/references/work.md +2 -2
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"theme.json",
|
|
34
34
|
"vendor/java"
|
|
35
35
|
],
|
|
36
|
-
"homepage": "https://
|
|
36
|
+
"homepage": "https://developer.copado.com/docs",
|
|
37
37
|
"keywords": [
|
|
38
38
|
"oclif"
|
|
39
39
|
],
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
],
|
|
51
51
|
"init": [
|
|
52
52
|
"./dist/hooks/init/version-warning",
|
|
53
|
-
"./dist/hooks/init/migrate-user-config"
|
|
53
|
+
"./dist/hooks/init/migrate-user-config",
|
|
54
|
+
"./dist/hooks/init/plugin-host"
|
|
54
55
|
]
|
|
55
56
|
},
|
|
56
57
|
"plugins": [
|
|
@@ -201,7 +202,7 @@
|
|
|
201
202
|
}
|
|
202
203
|
},
|
|
203
204
|
"type": "module",
|
|
204
|
-
"version": "1.0.0-beta.
|
|
205
|
+
"version": "1.0.0-beta.5",
|
|
205
206
|
"x-agentia-protected-build": true,
|
|
206
207
|
"x-agentia-protected-files": [
|
|
207
208
|
"dist/lib/runtime.js"
|
|
@@ -34,7 +34,7 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
34
34
|
- For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work publish`, and `work submit`. If `work set` returns `status: "warning"`, show the message and do not assume a feature branch was created; branch keys are cleared and the work item id/name/title are still recorded in config.user.json.
|
|
35
35
|
- Treat `cicd job` as Copado CICD JobExecution. It is different from CRT `testing job`.
|
|
36
36
|
- Treat `cicd work test` as local quality gates (`--local` is the default). It is different from CRT `testing test run`.
|
|
37
|
-
- Treat `cicd work test apex` as the Apex test runner that local quality gates (`.agentia_quality_gates.*`) usually call
|
|
37
|
+
- Treat `cicd work test apex` as the Apex test runner that local quality gates (`.agentia_quality_gates.*`) usually call. An empty `--apex-test-classes` list skips Salesforce CLI. It can also be invoked directly. It is different from CRT.
|
|
38
38
|
- Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
|
|
39
39
|
|
|
40
40
|
## Report Back
|
|
@@ -47,7 +47,7 @@ Cloud commit checks Story readiness and source credentials before submission. Av
|
|
|
47
47
|
| `cloud commit` | Copado cloud metadata commit | For local Git work, use `git commit` then `work publish`. `work commit` is a hidden compatibility alias. |
|
|
48
48
|
| `work publish` | Publish local commits and register with Copado | Requires active story context and clean tree. Accepts `--permissions` and `--full-metadata` when nested detection is not enough. `work push` is a compatibility alias. |
|
|
49
49
|
| `work test` | Run local quality gate scripts | `--local` is default. Runs `.agentia_quality_gates.sh` or `.agentia_quality_gates.cmd` from repo root. If missing, warns and runs the stock setup sample from a temp file. `--cloud` is not implemented yet. |
|
|
50
|
-
| `work test apex` | Run named Apex test classes |
|
|
50
|
+
| `work test apex` | Run named Apex test classes | Optional `--apex-test-classes`. Omit or pass empty to log a skip and exit 0 without calling Salesforce CLI. `--rerun-failed-apex-tests` reruns classes from `.agentia/apex.tests.<user-story>.json`. Optional `--wait` minutes (default 60). Usually invoked from `.agentia_quality_gates.*`. |
|
|
51
51
|
| `work submit` | Submit for review/validation or promote | Runs local gates unless `--skip-local-tests`; can push ahead commits. Waits up to 5 minutes when the last pending related job template contains `Commit`. `--skip-pull-request` skips opening the MR URL. `--done` and `--deploy` match Copado UI Submit when promoting. |
|
|
52
52
|
| `work done` | Compatibility alias | Prefer `work submit --done`; both promote and deploy rather than validate-only. |
|
|
53
53
|
| `work promote` | Experimental local promotion | Skips Quality Gates. Requires `enableLocalPromote: true` in `.agentia/config.json`. Merges `feature/<name>` into `promotion/<promotionName>`. Use `--backpromote --destination-branch` for back promotions; `--continue` after conflict resolution. |
|
|
@@ -118,7 +118,7 @@ Prefer explicit flags for standard step types. Use `--config-json`, `--file`, or
|
|
|
118
118
|
## Gotchas
|
|
119
119
|
|
|
120
120
|
- `work test` is not CRT. For Robot Framework execution, use the `agentia-testing` skill.
|
|
121
|
-
- `work test apex` runs named Apex classes. Local quality gates (`.agentia_quality_gates.*`) usually call it
|
|
121
|
+
- `work test apex` runs named Apex classes. Local quality gates (`.agentia_quality_gates.*`) usually call it with `-t "${AGENTIA_APEX_TEST_CLASSES}"` and `${AGENTIA_APEX_RERUN_FAILED}` (empty or `--rerun-failed-apex-tests`); an empty class list skips Apex without failing the script. `--rerun-failed-apex-tests` reruns classes saved in `.agentia/apex.tests.<user-story>.json` after a failure. Direct use is for a targeted rerun without the rest of the gates.
|
|
122
122
|
- Local Git work uses `git commit` then `work publish`. Cloud `cloud commit` is a separate path.
|
|
123
123
|
- `work submit` may push ahead commits, but the local flow still needs story and branch context from `work set`.
|
|
124
124
|
- `work submit --done` (or `--deploy`) promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|