@copado/agentia-cli 0.85.0-alpha.0 → 0.86.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 +260 -176
- 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/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 +159 -1
- package/package.json +8 -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,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.
|