@copado/agentia-cli 0.95.0-alpha.0 → 0.96.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/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.95.0-alpha.0",
4
+ "version": "0.96.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
  },
@@ -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 `resume`, `pause`, `kill`, or `run --restart` only after confirming the current status and user intent.
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.