@copado/agentia-cli 0.92.0-alpha.0 → 0.93.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.
- package/README.md +213 -200
- package/dist/commands/cicd/work/commit.js +2 -2
- package/dist/commands/cicd/work/commit.js.map +1 -1
- package/dist/commands/cicd/work/done.d.ts +4 -0
- package/dist/commands/cicd/work/done.js +11 -124
- package/dist/commands/cicd/work/done.js.map +1 -1
- package/dist/commands/cicd/work/push.js +4 -3
- package/dist/commands/cicd/work/push.js.map +1 -1
- package/dist/commands/cicd/work/submit.d.ts +4 -3
- package/dist/commands/cicd/work/submit.js +13 -4
- package/dist/commands/cicd/work/submit.js.map +1 -1
- package/dist/lib/defaults-store.js +9 -0
- package/dist/lib/defaults-store.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +14 -0
- package/dist/lib/mcp/work-tools.d.ts +15 -0
- package/dist/lib/mcp/work-tools.js +50 -34
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/nested-metadata-changes.d.ts +41 -3
- package/dist/lib/nested-metadata-changes.js +110 -16
- package/dist/lib/nested-metadata-changes.js.map +1 -1
- package/dist/lib/nested-metadata-registry.d.ts +13 -1
- package/dist/lib/nested-metadata-registry.js +87 -28
- package/dist/lib/nested-metadata-registry.js.map +1 -1
- package/dist/lib/setup-templates.d.ts +1 -1
- package/dist/lib/setup-templates.js +9 -19
- package/dist/lib/setup-templates.js.map +1 -1
- package/dist/lib/work-done.d.ts +22 -0
- package/dist/lib/work-done.js +136 -0
- package/dist/lib/work-done.js.map +1 -0
- package/dist/lib/work-local-commit.js +18 -2
- package/dist/lib/work-local-commit.js.map +1 -1
- package/dist/lib/work-push.d.ts +18 -5
- package/dist/lib/work-push.js +101 -30
- package/dist/lib/work-push.js.map +1 -1
- package/dist/lib/work-types.d.ts +22 -23
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +1422 -1413
- package/package.json +1 -1
- package/templates/skills/agentia-cicd/SKILL.md +1 -1
- package/templates/skills/agentia-cicd/references/promotions.md +1 -1
- package/templates/skills/agentia-cicd/references/work.md +7 -8
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
31
31
|
|
|
32
32
|
- Use Salesforce record IDs or generated names read from Copado. Do not invent story names, promotion IDs, job IDs, credential IDs, or pipeline IDs.
|
|
33
33
|
- Keep human output off stdout in JSON workflows. Prefer `--json`, then parse the result object.
|
|
34
|
-
- For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work push`,
|
|
34
|
+
- For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work push`, and `work submit`.
|
|
35
35
|
- Treat `cicd job` as Copado CICD JobExecution. It is different from CRT `testing job`.
|
|
36
36
|
- Treat `cicd work test --local` as local quality gates. It is different from CRT `testing test run`.
|
|
37
37
|
- Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
|
|
@@ -10,7 +10,7 @@ Use this reference for `agentia cicd promotion ...`, `agentia cicd promotion con
|
|
|
10
10
|
| --- | --- | --- |
|
|
11
11
|
| `agentia cicd promotion run <promotion-id>` | Promotion ID | You already know the Promotion record and want explicit merge or merge-and-deploy control. |
|
|
12
12
|
| `agentia cicd work promote [story-id] --cloud` | User Story | You want Agentia to resolve the story's Promotion before running it. |
|
|
13
|
-
| `agentia cicd work done` | Active User Story branch | The story is approved and should move to the next stage
|
|
13
|
+
| `agentia cicd work submit --done` | Active User Story branch | The story is approved and should move to the next stage (Copado UI Submit promote). |
|
|
14
14
|
|
|
15
15
|
Prefer `work promote` when the user talks about a story. Prefer `promotion run` when the user provides a Promotion ID.
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CICD Work Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia cicd work ...` and matching MCP tools such as `agentia_work_get`, `agentia_work_commit`, `agentia_work_push`,
|
|
5
|
+
Use this reference for `agentia cicd work ...` and matching MCP tools such as `agentia_work_get`, `agentia_work_commit`, `agentia_work_push`, and `agentia_work_submit`.
|
|
6
6
|
|
|
7
7
|
## Workflow
|
|
8
8
|
|
|
@@ -14,9 +14,9 @@ Use this reference for `agentia cicd work ...` and matching MCP tools such as `a
|
|
|
14
14
|
- Copado cloud metadata: `agentia cicd work commit <story-id> --cloud --metadata-name <name> --metadata-type <type> --metadata-category SFDX --json`
|
|
15
15
|
5. Register local commits: `agentia cicd work push --json`
|
|
16
16
|
6. Validate and submit: `agentia cicd work submit --json`
|
|
17
|
-
7. Promote only on explicit approval: `agentia cicd work done --json`
|
|
17
|
+
7. Promote only on explicit approval: `agentia cicd work submit --done --json`
|
|
18
18
|
|
|
19
|
-
`work set`, `work push`,
|
|
19
|
+
`work set`, `work push`, and `work submit` expect a clean tracked working tree and the active story context recorded by `work set`.
|
|
20
20
|
|
|
21
21
|
## Core Commands
|
|
22
22
|
|
|
@@ -30,10 +30,9 @@ Use this reference for `agentia cicd work ...` and matching MCP tools such as `a
|
|
|
30
30
|
| `work commit` | Local or cloud commit | `--local` is default; `--cloud` calls Copado commit APIs and can poll a job. |
|
|
31
31
|
| `work push` | Push local commits and register with Copado | Requires active story context and clean tree. Sends stored retrieve-only permissions. |
|
|
32
32
|
| `work test --local` | Run local quality gate scripts | Runs `.agentia_quality_gates.sh` or `.agentia_quality_gates.cmd` from repo root. |
|
|
33
|
-
| `work submit` | Submit for review/validation | Runs local gates unless `--skip-local-tests`; can push ahead commits. |
|
|
34
|
-
| `work done` | Promote after approval | Pushes if needed, then promotes without validate-only behavior. |
|
|
33
|
+
| `work submit` | Submit for review/validation or promote | Runs local gates unless `--skip-local-tests`; can push ahead commits. `--done` matches Copado UI Submit when promoting. |
|
|
35
34
|
| `work promote` | Story-centric promotion run | Requires `--cloud`; use `--deploy` for merge and deploy. |
|
|
36
|
-
| `work status [ID]` | Check story and related executions | Useful after submit,
|
|
35
|
+
| `work status [ID]` | Check story and related executions | Useful after submit, promote, or commit jobs. |
|
|
37
36
|
| `work open [ID]` | Open story in browser | CLI-only browser helper. |
|
|
38
37
|
|
|
39
38
|
## Local Commit Path
|
|
@@ -79,6 +78,6 @@ Prefer explicit flags for standard step types. Use `--config-json`, `--file`, or
|
|
|
79
78
|
## Gotchas
|
|
80
79
|
|
|
81
80
|
- `work test --local` is not CRT. For Robot Framework execution, use the `agentia-testing` skill.
|
|
82
|
-
- `work submit`
|
|
83
|
-
- `work done` promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|
|
81
|
+
- `work submit` may push ahead commits, but `work set` is still required first.
|
|
82
|
+
- `work submit --done` promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|
|
84
83
|
- `work delete` is destructive; read the story and confirm intent first.
|