@copado/agentia-cli 1.0.0-beta.6 → 1.0.0-beta.8

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +311 -324
  3. package/dist/commands/adv/component/add.js +1 -1
  4. package/dist/commands/adv/component/remove.js +1 -1
  5. package/dist/commands/adv/component/types.js +1 -1
  6. package/dist/commands/adv/deployment/deploy.js +4 -1
  7. package/dist/commands/adv/deployment/list.js +1 -1
  8. package/dist/commands/adv/deployment/options.js +1 -1
  9. package/dist/commands/adv/deployment/quick-deploy.js +5 -2
  10. package/dist/commands/adv/deployment/validate.js +4 -1
  11. package/dist/commands/adv/job/list.js +3 -3
  12. package/dist/commands/adv/job/wait.js +7 -3
  13. package/dist/commands/cicd/environment/get.js +3 -6
  14. package/dist/commands/cicd/environment/list.js +2 -7
  15. package/dist/commands/cicd/job/get.js +3 -7
  16. package/dist/commands/cicd/job/list.js +3 -7
  17. package/dist/commands/cicd/pipeline/get.js +3 -7
  18. package/dist/commands/cicd/pipeline/list.js +3 -7
  19. package/dist/commands/cicd/project/get.js +3 -7
  20. package/dist/commands/cicd/project/list.js +3 -7
  21. package/dist/commands/cicd/promotion/get.js +3 -7
  22. package/dist/commands/cicd/promotion/list.js +3 -7
  23. package/dist/commands/cicd/stage/list.js +5 -6
  24. package/dist/commands/cicd/user/get.js +3 -7
  25. package/dist/commands/cicd/work/get.js +2 -2
  26. package/dist/commands/cicd/work/list.js +3 -7
  27. package/dist/commands/cicd/work/promote.js +1 -0
  28. package/dist/commands/plugins/install.js +76 -0
  29. package/dist/lib/adv-operations.js +4 -1
  30. package/dist/lib/agentia-command.js +38 -2
  31. package/dist/lib/ai-config.js +3 -1
  32. package/dist/lib/auth-profile.js +2 -1
  33. package/dist/lib/environment-get.js +4 -0
  34. package/dist/lib/job-get.js +4 -0
  35. package/dist/lib/mcp/adv-tools.js +12 -6
  36. package/dist/lib/mcp/tools.js +25 -67
  37. package/dist/lib/mcp/work-tools.js +4 -8
  38. package/dist/lib/pipeline-get.js +4 -0
  39. package/dist/lib/plugin-host/ai.js +5 -0
  40. package/dist/lib/plugin-host/environment.js +4 -0
  41. package/dist/lib/plugin-host/event-log.js +2 -1
  42. package/dist/lib/plugin-host/input.js +7 -0
  43. package/dist/lib/plugin-host/job.js +4 -0
  44. package/dist/lib/plugin-host/pipeline.js +4 -0
  45. package/dist/lib/plugin-host/project.js +5 -0
  46. package/dist/lib/plugin-host/projection-utils.js +6 -1
  47. package/dist/lib/plugin-host/promotion.js +4 -0
  48. package/dist/lib/plugin-host/stage.js +4 -0
  49. package/dist/lib/plugin-host/user.js +4 -0
  50. package/dist/lib/plugin-host/workspace.js +3 -0
  51. package/dist/lib/plugin-trust/catalog.js +6 -0
  52. package/dist/lib/plugin-trust/gate.js +14 -0
  53. package/dist/lib/plugin-trust/http.js +5 -0
  54. package/dist/lib/plugin-trust/policy.js +3 -0
  55. package/dist/lib/project-get.js +4 -0
  56. package/dist/lib/promotion-get.js +4 -0
  57. package/dist/lib/runtime.js +1 -1
  58. package/dist/lib/stage-list.js +3 -0
  59. package/dist/lib/testing-gateway.js +2 -1
  60. package/dist/lib/user-get.js +3 -0
  61. package/dist/lib/work-get.js +3 -2
  62. package/oclif.manifest.json +340 -20
  63. package/package.json +1 -1
  64. package/templates/skills/agentia-adv/SKILL.md +3 -1
  65. package/templates/skills/agentia-adv/references/pipelines-advanced.md +19 -3
package/package.json CHANGED
@@ -235,7 +235,7 @@
235
235
  }
236
236
  },
237
237
  "type": "module",
238
- "version": "1.0.0-beta.6",
238
+ "version": "1.0.0-beta.8",
239
239
  "x-agentia-protected-build": true,
240
240
  "x-agentia-protected-files": [
241
241
  "dist/lib/runtime.js"
@@ -5,7 +5,7 @@ Use this skill when working with Copado Pipelines Advanced through the Agentia C
5
5
 
6
6
  ## Commands
7
7
 
8
- - Configure authentication once with `agentia auth set --adv <PAT>`. The CLI stores the PAT in the keychain and auto-discovers the Pipelines Advanced endpoint unless `--adv-base-url` is supplied.
8
+ - Configure global authentication with `agentia auth set --adv <PAT>`, or add `--local` for current-project/current-user scope. Both store the PAT in the keychain and auto-discover the Pipelines Advanced endpoint unless `--adv-base-url` is supplied.
9
9
  - Use `agentia adv organization list|get|validate` to inspect accessible organizations and verify connectivity.
10
10
  - Use `agentia adv deployment list|get|create|options|validate|deploy|quick-deploy|cancel` to define deployments, update options, and run or stop deployments.
11
11
  - Use `agentia adv component types|list|refresh|selected|add|remove` to discover metadata types and manage selected deployment components.
@@ -16,5 +16,7 @@ Use this skill when working with Copado Pipelines Advanced through the Agentia C
16
16
  - Never pass PATs to `agentia adv ...` commands. Use `agentia auth set --adv` or project-scoped auth.
17
17
  - Prefer `--json` for automation and agents.
18
18
  - For component JSON files, use `--json-file`; `--json` remains the standard Agentia output flag.
19
+ - In JSON or non-interactive CLI runs, deploy, quick deploy, cancel, and auth removal require `--yes`. The matching MCP deployment mutations require `confirm: true`; validation does not.
20
+ - Treat a nonzero exit from a waited run as failure. JSON errors retain the command transaction ID and failed waited runs include `error.result.job`.
19
21
 
20
22
  See `references/pipelines-advanced.md` for command flows and examples.
@@ -8,7 +8,7 @@ agentia auth set --adv <PAT>
8
8
  agentia adv auth status --json
9
9
  ```
10
10
 
11
- Use `--adv-base-url` only for QA, UAT, or local development endpoints.
11
+ Authentication is global by default. Add `--local` to `auth set` for current-project/current-user scope; the PAT still stays in the keychain. Remove global auth with `auth unset --adv [--global]` or local auth with `auth unset --adv --local`; JSON/non-interactive removal requires `--yes`. Use `--adv-base-url` only for approved non-standard endpoints.
12
12
 
13
13
  ## Deployment Journey
14
14
 
@@ -28,7 +28,23 @@ agentia adv job get <deployment-id> --json
28
28
  ## Notes
29
29
 
30
30
  - `deployment list` exposes the API `flowId` as `id`; do not use the raw list row link id.
31
- - `deployment options` reads current options, merges `--set` or `--file`, and sends the complete options object because the API replaces the entire object.
32
- - `component add` and `component remove` accept `--component Type/Name`. File inputs are `--file` for text and `--json-file` for JSON component objects.
31
+ - `deployment list` returns at most 500 rows and has no filter.
32
+ - `deployment options` reads current options, merges `--set` or `--file`, and sends the complete options object because the API replaces the entire object. `--set` converts exact booleans/null and finite JavaScript Number forms, including hex and exponent notation. Supported test levels include `NO_TEST_RUN`, `RUN_SPECIFIED_TESTS`, `RUN_LOCAL_TESTS`, and `RUN_ALL_TESTS_IN_ORG`.
33
+ - `component types` can report the same type name in several views.
34
+ - `component add` and `component remove` accept `--component Type/Name`. Add supports a text `--file`; remove does not. `--json-file` must be a bare array and accepts `{type, fullName}`, rows extracted from `result.components`, or `{nodeType: {name}, fullName}`. Remove returns the submitted array in `requested`, not a count.
33
35
  - `validate`, `deploy`, `quick-deploy`, and `cancel` are asynchronous; use `--wait` or `agentia adv job wait`.
34
36
  - `deploy`, `quick-deploy`, and `cancel` prompt interactively. JSON and non-interactive runs require `--yes`; matching MCP tools require `confirm: true`.
37
+ - `quick-deploy --backup` invokes the server's `backupThenDeploy` action instead of a quick deploy.
38
+ - Polling defaults to 3 seconds with a 3600-second timeout. Failed or cancelled waited runs exit nonzero; JSON errors include the normalized job.
39
+ - `job list` excludes validation runs. Page numbering starts at 0, page size defaults to 50, and the server caps it at 100.
40
+ - API JSON errors expose sanitized code/status/method/URL/name/message plus `transactionId`; validation errors expose name/message plus `transactionId`.
41
+
42
+ ## MCP Argument Names
43
+
44
+ - Organizations and deployments use `id`; selected/components/jobs use `deploymentId`; component list/refresh use `flow`.
45
+ - Deployment validate: `id`, optional `wait`, `interval`, `timeout` (no confirmation).
46
+ - Deploy: the validation inputs plus `confirm: true`.
47
+ - Quick deploy: deploy inputs plus optional `backup`.
48
+ - Cancel: `id`, `confirm: true`, optional `wait`, `interval`, `timeout`.
49
+ - Component add/remove: `deploymentId`, `components` (`Type/Name` strings or `{type, fullName, excluded?}` objects).
50
+ - Job list: `deploymentId`, optional `page`, `pageSize`.