@copado/agentia-cli 0.95.0-alpha.0 → 0.97.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 +269 -183
- package/dist/commands/cicd/credential/list.d.ts +12 -0
- package/dist/commands/cicd/credential/list.js +58 -0
- package/dist/commands/cicd/credential/list.js.map +1 -0
- package/dist/commands/cicd/environment/get.js +3 -2
- package/dist/commands/cicd/environment/get.js.map +1 -1
- package/dist/commands/cicd/environment/update.js +3 -2
- package/dist/commands/cicd/environment/update.js.map +1 -1
- package/dist/commands/cicd/job/result-file/get.d.ts +14 -0
- package/dist/commands/cicd/job/result-file/get.js +51 -0
- package/dist/commands/cicd/job/result-file/get.js.map +1 -0
- package/dist/commands/cicd/job/result-file/list.d.ts +10 -0
- package/dist/commands/cicd/job/result-file/list.js +34 -0
- package/dist/commands/cicd/job/result-file/list.js.map +1 -0
- package/dist/lib/environment-credential-flags.d.ts +3 -0
- package/dist/lib/environment-credential-flags.js +3 -0
- package/dist/lib/environment-credential-flags.js.map +1 -1
- package/dist/lib/environment-credential-operations.d.ts +5 -1
- package/dist/lib/environment-credential-operations.js +26 -0
- package/dist/lib/environment-credential-operations.js.map +1 -1
- package/dist/lib/environment-types.d.ts +3 -0
- package/dist/lib/environment-types.js +3 -3
- package/dist/lib/environment-types.js.map +1 -1
- package/dist/lib/job-types.d.ts +30 -0
- package/dist/lib/job-types.js +57 -0
- package/dist/lib/job-types.js.map +1 -1
- package/dist/lib/mcp/command-id.js +2 -0
- package/dist/lib/mcp/command-id.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +35 -1
- package/dist/lib/mcp/tools.js +50 -6
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/setup-templates.d.ts +2 -0
- package/dist/lib/setup-templates.js +143 -0
- package/dist/lib/setup-templates.js.map +1 -1
- package/oclif.manifest.json +4448 -4307
- package/package.json +4 -1
- package/templates/skills/agentia-cicd/references/environments-and-credentials.md +4 -1
- package/templates/skills/agentia-cicd/references/jobs.md +8 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copado/agentia-cli",
|
|
3
3
|
"description": "Command-line interface for Agentia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.97.0-alpha.0",
|
|
5
5
|
"author": "Copado Solutions",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentia": "./bin/run.js"
|
|
@@ -137,6 +137,9 @@
|
|
|
137
137
|
"cicd:job:log": {
|
|
138
138
|
"description": "Inspect Copado job execution logs"
|
|
139
139
|
},
|
|
140
|
+
"cicd:job:result-file": {
|
|
141
|
+
"description": "Inspect Files linked to Copado job Results"
|
|
142
|
+
},
|
|
140
143
|
"cicd:metadata": {
|
|
141
144
|
"description": "Inspect and compare Copado metadata"
|
|
142
145
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Use this reference for `agentia cicd environment ...`, `agentia cicd environment auth ...`, and `agentia cicd credential ...`.
|
|
6
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.
|
|
7
|
+
`auth set --cicd` stores the API key used by the CLI. `cicd credential` lists, creates, or updates Copado environment credential records. They are different credential types.
|
|
8
8
|
|
|
9
9
|
## Environment Commands
|
|
10
10
|
|
|
@@ -30,12 +30,14 @@ agentia cicd environment auth status <environment-id> --credentialid <credential
|
|
|
30
30
|
|
|
31
31
|
| Command | Use For | Notes |
|
|
32
32
|
| --- | --- | --- |
|
|
33
|
+
| `credential list` | Find credentials in one environment | Requires `--environmentid`; returns the environment's embedded credentials. OAuth signatures are never returned. |
|
|
33
34
|
| `credential create` | Create a Copado environment credential | Requires `--environmentid` and `--name`; `--default` marks it default. |
|
|
34
35
|
| `credential update ID` | Update a Copado environment credential | Requires `--environmentid`; use `--default` or `--no-default`. |
|
|
35
36
|
|
|
36
37
|
Examples:
|
|
37
38
|
|
|
38
39
|
```sh
|
|
40
|
+
agentia cicd credential list --environmentid <environment-id> --json
|
|
39
41
|
agentia cicd credential create --environmentid <environment-id> --name "CI User" --default --json
|
|
40
42
|
agentia cicd credential update <credential-id> --environmentid <environment-id> --no-default --json
|
|
41
43
|
```
|
|
@@ -43,6 +45,7 @@ agentia cicd credential update <credential-id> --environmentid <environment-id>
|
|
|
43
45
|
## When To Use Which Credential
|
|
44
46
|
|
|
45
47
|
- Use `agentia auth set --cicd` when the CLI cannot authenticate to the Copado CICD API.
|
|
48
|
+
- Use `agentia cicd credential list` to inspect an environment's credential records before changing authentication or defaults.
|
|
46
49
|
- Use `agentia cicd credential create/update` when a Copado environment needs a Salesforce org credential record.
|
|
47
50
|
- Use `agentia cicd environment auth web login` when a credential exists but needs browser-based OAuth authentication.
|
|
48
51
|
- Use `agentia auth get --cicd --json` to inspect local CLI auth status without exposing the raw API key.
|
|
@@ -13,6 +13,8 @@ Use this reference for Copado CICD JobExecution commands under `agentia cicd job
|
|
|
13
13
|
| `job list` | Search job executions | Filter by `--status`, `--type`, `--parent`, `--context`, `--mine`, cursor, and page size. |
|
|
14
14
|
| `job get ID` | Inspect a job and ordered steps | Read before action commands or log lookup. |
|
|
15
15
|
| `job log get ID` | Read execution logs | Use `--step <step-id>` when a specific step is needed. |
|
|
16
|
+
| `job result-file list RESULT_ID` | Discover files linked to a job-step Result | Returns file metadata; use its `fileId` with `get`. |
|
|
17
|
+
| `job result-file get RESULT_ID --file-id CONTENT_VERSION_ID` | Retrieve one Result-linked Salesforce File | Use `--output-file <path>` to write validated decoded bytes; JSON and MCP return Base64 content. |
|
|
16
18
|
| `job run ID` | Run all steps | Use `--restart` only when the user asks to restart from the beginning. |
|
|
17
19
|
| `job resume ID` | Resume outstanding steps | Good after a paused or partially completed job. |
|
|
18
20
|
| `job pause ID` | Pause/cancel resumably | Confirm intent before interrupting active work. |
|
|
@@ -25,6 +27,8 @@ Examples:
|
|
|
25
27
|
agentia cicd job list --status "In Progress" --json
|
|
26
28
|
agentia cicd job get <job-execution-id> --json
|
|
27
29
|
agentia cicd job log get <job-execution-id> --step <step-id> --json
|
|
30
|
+
agentia cicd job result-file list <result-id> --json
|
|
31
|
+
agentia cicd job result-file get <result-id> --file-id <content-version-id> --output-file ./artifact.zip
|
|
28
32
|
agentia cicd job resume <job-execution-id> --json
|
|
29
33
|
```
|
|
30
34
|
|
|
@@ -33,10 +37,13 @@ agentia cicd job resume <job-execution-id> --json
|
|
|
33
37
|
1. Use `job list --mine --status "In Progress" --json` or use the job ID returned by another command.
|
|
34
38
|
2. Run `job get <id> --json` to inspect status and step ordering.
|
|
35
39
|
3. Use `job log get <id> --step <step-id>` only when logs are needed for diagnosis.
|
|
36
|
-
4. Use `
|
|
40
|
+
4. Use `job result-file list <result-id> --json` to discover artifacts for a completed step, then retrieve only the selected `fileId`.
|
|
41
|
+
5. Use `resume`, `pause`, `kill`, or `run --restart` only after confirming the current status and user intent.
|
|
37
42
|
|
|
38
43
|
## Gotchas
|
|
39
44
|
|
|
40
45
|
- 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
46
|
- Logs can be large. Prefer a specific step when available.
|
|
47
|
+
- Result-file commands require the job-step Result ID, not the JobExecution ID. They accept only 15- or 18-character Salesforce IDs and never derive output paths from remote filenames.
|
|
48
|
+
- `--output-file` can replace an existing file after Base64 validation. Use an explicitly controlled destination; malformed content leaves an existing target unchanged.
|
|
42
49
|
- Do not use CICD job commands for Robot Framework builds; use the `agentia-testing` skill for CRT run status and logs.
|