@copado/agentia-cli 0.85.0-alpha.0 → 0.87.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 +315 -176
- package/dist/commands/cicd/notification/configure.d.ts +14 -0
- package/dist/commands/cicd/notification/configure.js +62 -0
- package/dist/commands/cicd/notification/configure.js.map +1 -0
- package/dist/commands/setup/skills/create.d.ts +15 -0
- package/dist/commands/setup/skills/create.js +64 -0
- package/dist/commands/setup/skills/create.js.map +1 -0
- package/dist/commands/setup/skills/update.d.ts +15 -0
- package/dist/commands/setup/skills/update.js +64 -0
- package/dist/commands/setup/skills/update.js.map +1 -0
- package/dist/lib/notifications-configure.d.ts +34 -0
- package/dist/lib/notifications-configure.js +101 -0
- package/dist/lib/notifications-configure.js.map +1 -0
- package/dist/lib/setup-skills.d.ts +67 -0
- package/dist/lib/setup-skills.js +251 -0
- package/dist/lib/setup-skills.js.map +1 -0
- package/oclif.manifest.json +367 -97
- package/package.json +11 -1
- package/templates/skills/agentia-ai/SKILL.md +34 -0
- package/templates/skills/agentia-ai/references/ai-agents.md +70 -0
- package/templates/skills/agentia-cicd/SKILL.md +41 -0
- package/templates/skills/agentia-cicd/references/data.md +65 -0
- package/templates/skills/agentia-cicd/references/environments-and-credentials.md +55 -0
- package/templates/skills/agentia-cicd/references/jobs.md +42 -0
- package/templates/skills/agentia-cicd/references/pipelines.md +63 -0
- package/templates/skills/agentia-cicd/references/promotions.md +58 -0
- package/templates/skills/agentia-cicd/references/work.md +84 -0
- package/templates/skills/agentia-testing/SKILL.md +34 -0
- package/templates/skills/agentia-testing/references/tests.md +65 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Data Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for Release Data Template commands under `agentia cicd data ...`.
|
|
6
|
+
|
|
7
|
+
Data commands often accept large JSON bodies. Prefer `--file` or `--stdin` for complex payloads and `--json` for machine-readable responses.
|
|
8
|
+
|
|
9
|
+
## Template Commands
|
|
10
|
+
|
|
11
|
+
| Command | Use For | Notes |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `data template list` | Find templates | Filter by name, main object, active flag, and related records. |
|
|
14
|
+
| `data template get ID` | Export selected-column graph | Good for agent inspection and lightweight export. |
|
|
15
|
+
| `data template get-detail ID` | Get raw v2 detail | Use before editing or saving detail JSON. |
|
|
16
|
+
| `data template create` | Create a template | Requires credential, template/API name, and main object fields. |
|
|
17
|
+
| `data template save-detail ID` | Save v2 detail JSON | Use `--file` or `--stdin`. |
|
|
18
|
+
| `data template convert-old ID` | Convert legacy templates | Read current template first. |
|
|
19
|
+
| `data template delete ID` | Delete a template | Destructive; confirm target and intent. |
|
|
20
|
+
| `data template open ID` | Open in browser | CLI-only navigation helper. |
|
|
21
|
+
|
|
22
|
+
Example:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
agentia cicd data template list --active --fetch-related --json
|
|
26
|
+
agentia cicd data template create --credential-id <credential-id> --template-name Accounts --api-name Accounts --main-object-api-name Account --main-object-label Account --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Records, Matching, Filters, And Formulas
|
|
30
|
+
|
|
31
|
+
| Command | Use For |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `data records search` | Search source records for a template and credential. |
|
|
34
|
+
| `data records match` | Match source records to destination records from JSON input. |
|
|
35
|
+
| `data filter list/add/update/delete` | Manage advanced filters attached to a template. |
|
|
36
|
+
| `data formula list/create/update` | Manage record matching formulas, with up to three fields. |
|
|
37
|
+
| `data sobject fields` | Describe available fields for an sObject and credential. |
|
|
38
|
+
| `data sobject relationships` | Describe relationships for an sObject and credential. |
|
|
39
|
+
| `data sync preview-updates` | Preview data template field sync changes. |
|
|
40
|
+
| `data sync apply` | Apply data template field sync changes. |
|
|
41
|
+
|
|
42
|
+
Use describe commands before generating payloads that mention fields or relationships.
|
|
43
|
+
|
|
44
|
+
## Data Commits And Dataset Files
|
|
45
|
+
|
|
46
|
+
| Command | Use For |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `data commit create` | Create a data commit on a User Story from JSON input. |
|
|
49
|
+
| `data commit list <user-story-id>` | List data commits attached to a story. |
|
|
50
|
+
| `data dataset-file list <data-commit-id>` | List generated dataset files. |
|
|
51
|
+
| `data dataset-file content <content-version-id>` | Fetch one dataset file's content. |
|
|
52
|
+
|
|
53
|
+
Example:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
agentia cicd data commit list <user-story-id> --json
|
|
57
|
+
agentia cicd data dataset-file list <data-commit-id> --json
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Gotchas
|
|
61
|
+
|
|
62
|
+
- Template IDs, credential IDs, data commit IDs, and ContentVersion IDs are different values. Read the parent record before using child commands.
|
|
63
|
+
- JSON payload commands should use exactly one input source: inline JSON flags, `--file`, or `--stdin`.
|
|
64
|
+
- `data template get` and `data template get-detail` serve different audiences: selected graph export versus raw v2 detail.
|
|
65
|
+
- `data template open` is CLI-only; MCP covers data operations but not browser navigation.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Environments And Credentials Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for `agentia cicd environment ...`, `agentia cicd environment auth ...`, and `agentia cicd credential ...`.
|
|
6
|
+
|
|
7
|
+
`auth set --cicd` stores the API key used by the CLI. `cicd credential` creates or updates Copado environment credential records. They are different credential types.
|
|
8
|
+
|
|
9
|
+
## Environment Commands
|
|
10
|
+
|
|
11
|
+
| Command | Use For | Notes |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `environment list` | Find environments | Filter by `--name`, `--org-id`, `--platform`, `--type`, cursor, and page size. |
|
|
14
|
+
| `environment get ID` | Inspect one environment | Read before updates, credential changes, or auth checks. |
|
|
15
|
+
| `environment create NAME` | Create an environment | Set `--type`; platform defaults to SFDX. |
|
|
16
|
+
| `environment update ID` | Sparse environment changes | Use only the fields the user wants changed. |
|
|
17
|
+
| `environment open [ID]` | Open environment or credential | `--credentialid` opens a credential. CLI-only navigation helper. |
|
|
18
|
+
| `environment auth status ID` | Validate org credential auth | Use `--credentialid` when multiple credentials need disambiguation. |
|
|
19
|
+
| `environment auth web login ID` | Complete browser OAuth login | CLI-only, interactive browser flow. Supports bounded port and timeout flags. |
|
|
20
|
+
|
|
21
|
+
Examples:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
agentia cicd environment list --type Sandbox --json
|
|
25
|
+
agentia cicd environment get <environment-id> --json
|
|
26
|
+
agentia cicd environment auth status <environment-id> --credentialid <credential-id> --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Environment Credential Commands
|
|
30
|
+
|
|
31
|
+
| Command | Use For | Notes |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| `credential create` | Create a Copado environment credential | Requires `--environmentid` and `--name`; `--default` marks it default. |
|
|
34
|
+
| `credential update ID` | Update a Copado environment credential | Requires `--environmentid`; use `--default` or `--no-default`. |
|
|
35
|
+
|
|
36
|
+
Examples:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
agentia cicd credential create --environmentid <environment-id> --name "CI User" --default --json
|
|
40
|
+
agentia cicd credential update <credential-id> --environmentid <environment-id> --no-default --json
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## When To Use Which Credential
|
|
44
|
+
|
|
45
|
+
- Use `agentia auth set --cicd` when the CLI cannot authenticate to the Copado CICD API.
|
|
46
|
+
- Use `agentia cicd credential create/update` when a Copado environment needs a Salesforce org credential record.
|
|
47
|
+
- Use `agentia cicd environment auth web login` when a credential exists but needs browser-based OAuth authentication.
|
|
48
|
+
- Use `agentia auth get --cicd --json` to inspect local CLI auth status without exposing the raw API key.
|
|
49
|
+
|
|
50
|
+
## Gotchas
|
|
51
|
+
|
|
52
|
+
- Custom Domain environments are not supported by the credential create/update helpers.
|
|
53
|
+
- The credential helper reads the environment first and copies its org type into the credential payload.
|
|
54
|
+
- Environment authentication can auto-select only when there is a single obvious credential. Pass `--credentialid` if multiple credentials exist.
|
|
55
|
+
- Browser login is intentionally CLI-only; there is no equivalent MCP flow.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Jobs Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for Copado CICD JobExecution commands under `agentia cicd job ...`.
|
|
6
|
+
|
|
7
|
+
`cicd job` is for Copado CICD execution records. It is not the same as CRT `agentia testing job ...` or CRT build runs.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
| Command | Use For | Notes |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `job list` | Search job executions | Filter by `--status`, `--type`, `--parent`, `--context`, `--mine`, cursor, and page size. |
|
|
14
|
+
| `job get ID` | Inspect a job and ordered steps | Read before action commands or log lookup. |
|
|
15
|
+
| `job log get ID` | Read execution logs | Use `--step <step-id>` when a specific step is needed. |
|
|
16
|
+
| `job run ID` | Run all steps | Use `--restart` only when the user asks to restart from the beginning. |
|
|
17
|
+
| `job resume ID` | Resume outstanding steps | Good after a paused or partially completed job. |
|
|
18
|
+
| `job pause ID` | Pause/cancel resumably | Confirm intent before interrupting active work. |
|
|
19
|
+
| `job kill ID` | Cancel a job | Destructive operational action; confirm target and impact. |
|
|
20
|
+
| `job open ID` | Open in browser | CLI-only navigation helper. |
|
|
21
|
+
|
|
22
|
+
Examples:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
agentia cicd job list --status "In Progress" --json
|
|
26
|
+
agentia cicd job get <job-execution-id> --json
|
|
27
|
+
agentia cicd job log get <job-execution-id> --step <step-id> --json
|
|
28
|
+
agentia cicd job resume <job-execution-id> --json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Monitoring Pattern
|
|
32
|
+
|
|
33
|
+
1. Use `job list --mine --status "In Progress" --json` or use the job ID returned by another command.
|
|
34
|
+
2. Run `job get <id> --json` to inspect status and step ordering.
|
|
35
|
+
3. Use `job log get <id> --step <step-id>` only when logs are needed for diagnosis.
|
|
36
|
+
4. Use `resume`, `pause`, `kill`, or `run --restart` only after confirming the current status and user intent.
|
|
37
|
+
|
|
38
|
+
## Gotchas
|
|
39
|
+
|
|
40
|
+
- Some job tools require user and organization context at the gateway layer. If the CLI reports missing context, inspect auth and user context before retrying.
|
|
41
|
+
- Logs can be large. Prefer a specific step when available.
|
|
42
|
+
- Do not use CICD job commands for Robot Framework builds; use the `agentia-testing` skill for CRT run status and logs.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Pipelines Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for `agentia cicd pipeline ...`, `agentia cicd pipeline connection ...`, `agentia cicd pipeline stage-connection ...`, and `agentia cicd stage ...`.
|
|
6
|
+
|
|
7
|
+
Pipeline connections, stage connections, and stages are related but distinct. Read the target object before mutating it.
|
|
8
|
+
|
|
9
|
+
## Pipeline Commands
|
|
10
|
+
|
|
11
|
+
| Command | Use For | Notes |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| `pipeline list` | Find pipelines | Filter by `--active`, `--name`, `--platform`, cursor, and page size. |
|
|
14
|
+
| `pipeline get ID` | Inspect one pipeline | Returns describe-style details, including embedded connections. |
|
|
15
|
+
| `pipeline create NAME` | Create a pipeline | Common flags: `--platform`, `--main-branch`, `--git-repository-id`. |
|
|
16
|
+
| `pipeline update ID` | Sparse pipeline changes | Set `--name`, branch, repository, or conflict strategy fields. |
|
|
17
|
+
| `pipeline open ID` | Open in browser | CLI-only navigation helper. |
|
|
18
|
+
|
|
19
|
+
Example:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
agentia cicd pipeline list --platform SFDX --active --json
|
|
23
|
+
agentia cicd pipeline get <pipeline-id> --json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Environment Connections
|
|
27
|
+
|
|
28
|
+
Pipeline connections define source-to-destination environment promotion edges.
|
|
29
|
+
|
|
30
|
+
| Command | Use For |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| `pipeline connection list --pipeline-id <id>` | List environment edges in a pipeline. |
|
|
33
|
+
| `pipeline connection create --pipeline-id <id> ...` | Create one edge or pass a JSON file for bulk creation. |
|
|
34
|
+
| `pipeline connection update --pipeline-id <id> ...` | Update one edge or pass a JSON file for bulk update. |
|
|
35
|
+
| `pipeline connection delete --pipeline-id <id> ... --yes` | Delete one or more edges. |
|
|
36
|
+
| `pipeline connection open ID` | Open one connection in the browser. |
|
|
37
|
+
|
|
38
|
+
Single-create example:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
agentia cicd pipeline connection create --pipeline-id <pipeline-id> --source-environment-id <dev-id> --destination-environment-id <uat-id> --branch main --json
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Stages And Stage Connections
|
|
45
|
+
|
|
46
|
+
Stages are reusable stage records. Stage connections order those stages inside a pipeline.
|
|
47
|
+
|
|
48
|
+
| Command | Use For |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `stage list|get|create|update|delete|open` | Manage stage records. |
|
|
51
|
+
| `pipeline stage-connection list --pipeline-id <id>` | Read ordered stages for a pipeline. |
|
|
52
|
+
| `pipeline stage-connection create --pipeline-id <id> --stage-id <id>` | Add a stage to a pipeline chain. |
|
|
53
|
+
| `pipeline stage-connection update ID --pipeline-id <id>` | Rewire the next stage connection. |
|
|
54
|
+
| `pipeline stage-connection delete ID --pipeline-id <id> --yes` | Remove a stage connection. |
|
|
55
|
+
| `pipeline stage-connection open ID` | Open the stage connection in a browser. |
|
|
56
|
+
|
|
57
|
+
## Gotchas
|
|
58
|
+
|
|
59
|
+
- `pipeline connection` is an environment promotion edge.
|
|
60
|
+
- `pipeline stage-connection` is the ordered stage chain inside a pipeline.
|
|
61
|
+
- `cicd stage` manages stage records that can be referenced by stage connections.
|
|
62
|
+
- Delete commands prompt in interactive mode. Use `--yes` only when the user already confirmed the destructive action.
|
|
63
|
+
- Repository setup is a neighboring domain: pipelines can reference `--git-repository-id`, but repository lifecycle commands are under `agentia cicd repository`.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Promotions Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for `agentia cicd promotion ...`, `agentia cicd promotion conflict ...`, and `agentia cicd work promote`.
|
|
6
|
+
|
|
7
|
+
## Entry Points
|
|
8
|
+
|
|
9
|
+
| Command | Starts From | Use When |
|
|
10
|
+
| --- | --- | --- |
|
|
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
|
+
| `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 through the normal work lifecycle. |
|
|
14
|
+
|
|
15
|
+
Prefer `work promote` when the user talks about a story. Prefer `promotion run` when the user provides a Promotion ID.
|
|
16
|
+
|
|
17
|
+
## Promotion Commands
|
|
18
|
+
|
|
19
|
+
| Command | Use For | Notes |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `promotion list` | Find promotions | Filter by `--work-id`, status, project, pipeline, source/destination environment, or back-promotion flags. |
|
|
22
|
+
| `promotion get ID` | Inspect one promotion | Read this before running, resuming, or resolving conflicts. |
|
|
23
|
+
| `promotion run ID` | Preflight and submit a run | Requires `--operation merge` or `--operation merge_and_deploy` unless `--resume` is used. |
|
|
24
|
+
| `promotion open ID` | Open in browser | CLI-only navigation helper. |
|
|
25
|
+
| `work promote [ID] --cloud` | Story-centric run | Use `--deploy` for merge and deploy; use `--promotion-id` if the story has multiple promotions. |
|
|
26
|
+
|
|
27
|
+
Example:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
agentia cicd promotion list --work-id <story-id> --json
|
|
31
|
+
agentia cicd promotion run <promotion-id> --operation merge_and_deploy --json
|
|
32
|
+
agentia cicd work promote <story-id> --cloud --deploy --json
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Resume And Wait
|
|
36
|
+
|
|
37
|
+
`promotion run` and `work promote` can poll job execution status. Use the default wait for normal agent workflows and lower it only when the user wants a fire-and-follow-up flow.
|
|
38
|
+
|
|
39
|
+
Use `--resume <job-execution-id>` to resume the original execution after conflict resolution instead of starting a new `/run` request.
|
|
40
|
+
|
|
41
|
+
## Conflict Commands
|
|
42
|
+
|
|
43
|
+
| Command | Use For |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `promotion conflict list -p <promotion-id>` | List merge conflicts for a promotion. |
|
|
46
|
+
| `promotion conflict get <conflict-id> -p <promotion-id>` | Fetch raw conflict content; use `--output` to write a file. |
|
|
47
|
+
| `promotion conflict resolve <conflict-id> -p <promotion-id> --mode auto` | Let Copado apply automatic resolution. |
|
|
48
|
+
| `promotion conflict resolve <conflict-id> -p <promotion-id> --mode manual --file <path>` | Submit reviewed manual content. |
|
|
49
|
+
| `promotion conflict unresolve <conflict-id> -p <promotion-id>` | Undo a prior resolution. |
|
|
50
|
+
|
|
51
|
+
Read conflict content before manual resolution. Do not invent resolved content; use the user's reviewed file or ask for confirmation.
|
|
52
|
+
|
|
53
|
+
## Gotchas
|
|
54
|
+
|
|
55
|
+
- Promotion IDs are not User Story IDs. Use `work promote` if you only have the story.
|
|
56
|
+
- `--deploy` on `work promote` maps to promotion operation `merge_and_deploy`; without it, the default is merge only.
|
|
57
|
+
- `--recreate-promotion-branch` is a sensitive run option and should be paired with explicit user intent and `--yes` when required.
|
|
58
|
+
- If conflicts exist, resolve them first and then resume the same execution.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CICD Work Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for `agentia cicd work ...` and matching MCP tools such as `agentia_work_get`, `agentia_work_commit`, `agentia_work_push`, `agentia_work_submit`, and `agentia_work_done`.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. Discover: `agentia cicd work list --assigned-to-me --json`
|
|
10
|
+
2. Inspect: `agentia cicd work get <id-or-name> --json`
|
|
11
|
+
3. Activate: `agentia cicd work set <id-or-name> --json`
|
|
12
|
+
4. Implement and choose one commit path:
|
|
13
|
+
- Local Git: `agentia cicd work commit --local --all --json`
|
|
14
|
+
- Copado cloud metadata: `agentia cicd work commit <story-id> --cloud --metadata-name <name> --metadata-type <type> --metadata-category SFDX --json`
|
|
15
|
+
5. Register local commits: `agentia cicd work push --json`
|
|
16
|
+
6. Validate and submit: `agentia cicd work submit --json`
|
|
17
|
+
7. Promote only on explicit approval: `agentia cicd work done --json`
|
|
18
|
+
|
|
19
|
+
`work set`, `work push`, `work submit`, and `work done` expect a clean tracked working tree and the active story context recorded by `work set`.
|
|
20
|
+
|
|
21
|
+
## Core Commands
|
|
22
|
+
|
|
23
|
+
| Command | Use For | Notes |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| `work list` | Find candidate stories | Use `--assigned-to-me`, `--status`, `--project-name`, `--name`, pagination flags. |
|
|
26
|
+
| `work get [ID]` | Read story details | ID is optional after `work set`. Human output redacts OAuth signatures; JSON preserves structured fields. |
|
|
27
|
+
| `work create` | Create a story | Use `--title`, project/team/assignee/theme fields, specs, and short acceptance criteria. |
|
|
28
|
+
| `work update [ID]` | Mutate story fields or status | ID is optional after `work set`. Acceptance criteria must be fewer than 255 chars. |
|
|
29
|
+
| `work set ID` | Mark active and prepare branch | Fetches base branch, creates/checks out `feature/<story-name>`, stores local context. |
|
|
30
|
+
| `work commit` | Local or cloud commit | `--local` is default; `--cloud` calls Copado commit APIs and can poll a job. |
|
|
31
|
+
| `work push` | Push local commits and register with Copado | Requires active story context and clean tree. Sends stored retrieve-only permissions. |
|
|
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. |
|
|
35
|
+
| `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, done, promote, or commit jobs. |
|
|
37
|
+
| `work open [ID]` | Open story in browser | CLI-only browser helper. |
|
|
38
|
+
|
|
39
|
+
## Local Commit Path
|
|
40
|
+
|
|
41
|
+
Use local commits for normal source changes:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
agentia cicd work commit --local --all --permissions CustomField:Account.SLA__c,ApexClass:AccountService --json
|
|
45
|
+
agentia cicd work push --json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`--permissions` records metadata that Copado should treat as Retrieve Only during push. List the metadata the permissions point at, not the permission set or profile files themselves. The value is sticky in local user config until replaced or cleared with `--permissions ""`.
|
|
49
|
+
|
|
50
|
+
`--apex-test-classes` records story-related test class names for later reference. `work test --local` and `work submit` still take `--apex-test-classes` explicitly when you want the local gate script to receive them.
|
|
51
|
+
|
|
52
|
+
## Cloud Commit Path
|
|
53
|
+
|
|
54
|
+
Use cloud commits when Copado should retrieve metadata itself:
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
agentia cicd work commit <story-id> --cloud --message "Commit AccountService" --metadata-name AccountService --metadata-type ApexClass --metadata-category SFDX --json
|
|
58
|
+
agentia cicd work commit <story-id> --cloud --file commit-request.json --json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
For Salesforce metadata, include `--metadata-category SFDX`. Without the SFDX category, Copado deploy logs can report "Salesforce changes not found."
|
|
62
|
+
|
|
63
|
+
## Deployment Steps
|
|
64
|
+
|
|
65
|
+
Deployment steps are attached to a user story and run during promotion.
|
|
66
|
+
|
|
67
|
+
| Command | Use For |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| `work deployment-step types` | List supported standard/custom step types. |
|
|
70
|
+
| `work deployment-step salesforce-flows` | List directly invocable Salesforce Flows. |
|
|
71
|
+
| `work deployment-step list` | Inspect current story steps. |
|
|
72
|
+
| `work deployment-step create` | Add Manual Task, Salesforce Flow, Function, Apex, Data Set, Data Template, or Robotic Test steps. |
|
|
73
|
+
| `work deployment-step update` | Apply sparse step updates. |
|
|
74
|
+
| `work deployment-step reorder` | Submit a complete before/after ordering snapshot from file or stdin. |
|
|
75
|
+
| `work deployment-step delete` | Delete an owned step by ID. |
|
|
76
|
+
|
|
77
|
+
Prefer explicit flags for standard step types. Use `--config-json`, `--file`, or `--stdin` only when the step has expert configuration not covered by flags. Read `types` first when unsure.
|
|
78
|
+
|
|
79
|
+
## Gotchas
|
|
80
|
+
|
|
81
|
+
- `work test --local` is not CRT. For Robot Framework execution, use the `agentia-testing` skill.
|
|
82
|
+
- `work submit` and `work done` may push ahead commits, but `work set` is still required first.
|
|
83
|
+
- `work done` promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|
|
84
|
+
- `work delete` is destructive; read the story and confirm intent first.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentia-testing
|
|
3
|
+
description: Use this skill when creating, updating, running, inspecting, or troubleshooting Copado Robotic Testing tests with the Agentia CLI, especially commands under `agentia testing test`, CRT projects, robots, jobs, builds, logs, variables, PAT authentication, Git-backed test storage, and Robot Framework execution.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
7
|
+
|
|
8
|
+
# Agentia Testing
|
|
9
|
+
|
|
10
|
+
Use this skill to operate Copado Robotic Testing through Agentia without confusing CRT projects, robots, jobs, tests, and builds.
|
|
11
|
+
|
|
12
|
+
Prefer Agentia MCP tools when they are available and match the task. Use CLI examples as the fallback, and add `--json` whenever the result will be parsed or reused.
|
|
13
|
+
|
|
14
|
+
## Start Here
|
|
15
|
+
|
|
16
|
+
1. Confirm CRT auth with `agentia auth get --crt --json`, or provide `--pat`, `--domain`, and `--org` on the command.
|
|
17
|
+
2. Identify or create the CRT Project and Robot before creating or running tests.
|
|
18
|
+
3. Use `testing test ...` as the canonical namespace for test workflows. The shorter `testing run|logs|status|create|update` forms exist for compatibility.
|
|
19
|
+
4. Never expose PATs, organization secrets, or generated log content that contains secrets.
|
|
20
|
+
|
|
21
|
+
## Reference
|
|
22
|
+
|
|
23
|
+
- CRT test creation, updates, execution, status, logs, and related project/robot/job/build prerequisites: [references/tests.md](references/tests.md)
|
|
24
|
+
|
|
25
|
+
## General Rules
|
|
26
|
+
|
|
27
|
+
- `agentia testing test run` starts CRT Robot Framework execution. It is different from `agentia cicd work test --local`.
|
|
28
|
+
- `agentia testing job` manages CRT job/test definitions. It is different from `agentia cicd job`, which manages Copado CICD JobExecution records.
|
|
29
|
+
- Use `--wait-for-result` on `testing test run` when the agent must return the final build result in one turn.
|
|
30
|
+
- Use Git-backed job flags only when the user or project clearly uses repository-backed CRT test storage.
|
|
31
|
+
|
|
32
|
+
## Report Back
|
|
33
|
+
|
|
34
|
+
Report the CRT project, robot, job/test ID, build ID when present, final status, and where logs were written or fetched. Do not include PATs or other secrets.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!-- Agentia managed skill file: agentia setup skills -->
|
|
2
|
+
|
|
3
|
+
# CRT Testing Reference
|
|
4
|
+
|
|
5
|
+
Use this reference for `agentia testing test ...` and related Copado Robotic Testing commands.
|
|
6
|
+
|
|
7
|
+
## Authentication And Context
|
|
8
|
+
|
|
9
|
+
Configure CRT once:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
agentia auth set --crt --crt-domain <domain> --crt-org <organization-id>
|
|
13
|
+
agentia auth get --crt --json
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Most CRT commands also accept per-command `--pat`, `--domain`, and `--org` overrides. Do not print PAT values.
|
|
17
|
+
|
|
18
|
+
## Canonical Test Workflow
|
|
19
|
+
|
|
20
|
+
1. List or create a project: `agentia testing project list --json`
|
|
21
|
+
2. List or create a robot: `agentia testing robot list --json`
|
|
22
|
+
3. Create or update a test: `agentia testing test create ... --json`
|
|
23
|
+
4. Run the test: `agentia testing test run <job-id> --project <project-id> --wait-for-result --json`
|
|
24
|
+
5. Inspect status and logs: `agentia testing test status ... --json` and `agentia testing test logs ... --json`
|
|
25
|
+
|
|
26
|
+
## Test Commands
|
|
27
|
+
|
|
28
|
+
| Command | Use For | Notes |
|
|
29
|
+
| --- | --- | --- |
|
|
30
|
+
| `testing test create` | Create a CRT test and upload Robot files | Requires project, robot, name, and `--file` or `--dir`. |
|
|
31
|
+
| `testing test update ID` | Update files for a test | Use `--add`, `--remove`, `--replace`, or Git branch options. |
|
|
32
|
+
| `testing test run ID` | Run a CRT test | Use `--project`; use `--wait-for-result` when the final status is required. |
|
|
33
|
+
| `testing test status` | List build/run status | Filter by project, job, and status. |
|
|
34
|
+
| `testing test logs ID` | Fetch build logs | Use `--project`, `--job`, and optional `--output`. |
|
|
35
|
+
|
|
36
|
+
Examples:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
agentia testing test create --project <project-id> --robot <robot-id> --name "Smoke" --file tests/smoke.robot --json
|
|
40
|
+
agentia testing test run <job-id> --project <project-id> --wait-for-result --json
|
|
41
|
+
agentia testing test logs <build-id> --project <project-id> --job <job-id> --output ./crt.log --json
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Related CRT Commands
|
|
45
|
+
|
|
46
|
+
| Area | Commands | Use For |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| Projects | `testing project list/create/get/delete` | Top-level CRT project lifecycle. |
|
|
49
|
+
| Robots | `testing robot list/create/get/delete` | Robot worker definitions. |
|
|
50
|
+
| Jobs | `testing job list/create/get/update/delete/files/upload/download` | CRT job/test definitions and file storage. |
|
|
51
|
+
| Builds | `testing build run/list/logs/abort` | Lower-level run/build management. |
|
|
52
|
+
| Variables | `testing variable list/create/update/delete` | CRT variables, with value redaction in output. |
|
|
53
|
+
|
|
54
|
+
Use related commands to discover IDs needed by `testing test`.
|
|
55
|
+
|
|
56
|
+
## Git-Backed Tests
|
|
57
|
+
|
|
58
|
+
Some CRT tests store Robot files in Git. Use Git-backed flags only when the project already expects Git storage or the user asks for it. Preserve branch, path, and credential values from existing job details when updating.
|
|
59
|
+
|
|
60
|
+
## Gotchas
|
|
61
|
+
|
|
62
|
+
- The `testing test` namespace and the shorter `testing` namespace overlap. Prefer `testing test` in generated guidance because it makes the CRT domain explicit.
|
|
63
|
+
- There is no `testing test get` or `testing test delete`; use `testing job get` or `testing job delete` for CRT job/test definitions.
|
|
64
|
+
- `testing test run --wait-for-result` can poll until a terminal build status. Without it, the command may return only the started build.
|
|
65
|
+
- Log commands may write files. In JSON mode, keep stdout structured and report the output path instead of mixing log text with JSON.
|