@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.
@@ -6294,6 +6294,164 @@
6294
6294
  "update.js"
6295
6295
  ]
6296
6296
  },
6297
+ "setup:skills:create": {
6298
+ "aliases": [],
6299
+ "args": {},
6300
+ "description": "Create portable Markdown-only Agentia CLI skills in this project without overwriting managed files",
6301
+ "examples": [
6302
+ "<%= config.bin %> <%= command.id %>",
6303
+ "<%= config.bin %> <%= command.id %> --cicd --target agents --no-prompt",
6304
+ "<%= config.bin %> <%= command.id %> --testing --ai --target cursor --no-prompt",
6305
+ "<%= config.bin %> <%= command.id %> --json"
6306
+ ],
6307
+ "flags": {
6308
+ "json": {
6309
+ "description": "Format output as json.",
6310
+ "helpGroup": "GLOBAL",
6311
+ "name": "json",
6312
+ "allowNo": false,
6313
+ "type": "boolean"
6314
+ },
6315
+ "ai": {
6316
+ "description": "Create the Copado AI agent skill pack",
6317
+ "name": "ai",
6318
+ "allowNo": false,
6319
+ "type": "boolean"
6320
+ },
6321
+ "cicd": {
6322
+ "description": "Create the Copado CICD skill pack",
6323
+ "name": "cicd",
6324
+ "allowNo": false,
6325
+ "type": "boolean"
6326
+ },
6327
+ "force": {
6328
+ "description": "Replace conflicting unmanaged Agentia skill files",
6329
+ "name": "force",
6330
+ "allowNo": false,
6331
+ "type": "boolean"
6332
+ },
6333
+ "no-prompt": {
6334
+ "char": "n",
6335
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6336
+ "name": "no-prompt",
6337
+ "allowNo": false,
6338
+ "type": "boolean"
6339
+ },
6340
+ "target": {
6341
+ "description": "Project skill root to write",
6342
+ "name": "target",
6343
+ "hasDynamicHelp": false,
6344
+ "multiple": false,
6345
+ "options": [
6346
+ "agents",
6347
+ "cursor",
6348
+ "claude"
6349
+ ],
6350
+ "type": "option"
6351
+ },
6352
+ "testing": {
6353
+ "description": "Create the Copado Robotic Testing skill pack",
6354
+ "name": "testing",
6355
+ "allowNo": false,
6356
+ "type": "boolean"
6357
+ }
6358
+ },
6359
+ "hasDynamicHelp": false,
6360
+ "hiddenAliases": [],
6361
+ "id": "setup:skills:create",
6362
+ "pluginAlias": "@copado/agentia-cli",
6363
+ "pluginName": "@copado/agentia-cli",
6364
+ "pluginType": "core",
6365
+ "strict": true,
6366
+ "enableJsonFlag": true,
6367
+ "isESM": true,
6368
+ "relativePath": [
6369
+ "dist",
6370
+ "commands",
6371
+ "setup",
6372
+ "skills",
6373
+ "create.js"
6374
+ ]
6375
+ },
6376
+ "setup:skills:update": {
6377
+ "aliases": [],
6378
+ "args": {},
6379
+ "description": "Update Agentia-managed Markdown skill files and restore missing files in this project",
6380
+ "examples": [
6381
+ "<%= config.bin %> <%= command.id %>",
6382
+ "<%= config.bin %> <%= command.id %> --ai --target cursor --no-prompt",
6383
+ "<%= config.bin %> <%= command.id %> --cicd --testing --target agents --no-prompt",
6384
+ "<%= config.bin %> <%= command.id %> --force --json"
6385
+ ],
6386
+ "flags": {
6387
+ "json": {
6388
+ "description": "Format output as json.",
6389
+ "helpGroup": "GLOBAL",
6390
+ "name": "json",
6391
+ "allowNo": false,
6392
+ "type": "boolean"
6393
+ },
6394
+ "ai": {
6395
+ "description": "Update the Copado AI agent skill pack",
6396
+ "name": "ai",
6397
+ "allowNo": false,
6398
+ "type": "boolean"
6399
+ },
6400
+ "cicd": {
6401
+ "description": "Update the Copado CICD skill pack",
6402
+ "name": "cicd",
6403
+ "allowNo": false,
6404
+ "type": "boolean"
6405
+ },
6406
+ "force": {
6407
+ "description": "Replace conflicting unmanaged Agentia skill files",
6408
+ "name": "force",
6409
+ "allowNo": false,
6410
+ "type": "boolean"
6411
+ },
6412
+ "no-prompt": {
6413
+ "char": "n",
6414
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6415
+ "name": "no-prompt",
6416
+ "allowNo": false,
6417
+ "type": "boolean"
6418
+ },
6419
+ "target": {
6420
+ "description": "Project skill root to write",
6421
+ "name": "target",
6422
+ "hasDynamicHelp": false,
6423
+ "multiple": false,
6424
+ "options": [
6425
+ "agents",
6426
+ "cursor",
6427
+ "claude"
6428
+ ],
6429
+ "type": "option"
6430
+ },
6431
+ "testing": {
6432
+ "description": "Update the Copado Robotic Testing skill pack",
6433
+ "name": "testing",
6434
+ "allowNo": false,
6435
+ "type": "boolean"
6436
+ }
6437
+ },
6438
+ "hasDynamicHelp": false,
6439
+ "hiddenAliases": [],
6440
+ "id": "setup:skills:update",
6441
+ "pluginAlias": "@copado/agentia-cli",
6442
+ "pluginName": "@copado/agentia-cli",
6443
+ "pluginType": "core",
6444
+ "strict": true,
6445
+ "enableJsonFlag": true,
6446
+ "isESM": true,
6447
+ "relativePath": [
6448
+ "dist",
6449
+ "commands",
6450
+ "setup",
6451
+ "skills",
6452
+ "update.js"
6453
+ ]
6454
+ },
6297
6455
  "testing:build:abort": {
6298
6456
  "aliases": [],
6299
6457
  "args": {
@@ -13470,5 +13628,5 @@
13470
13628
  ]
13471
13629
  }
13472
13630
  },
13473
- "version": "0.85.0-alpha.0"
13631
+ "version": "0.86.0-alpha.0"
13474
13632
  }
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.85.0-alpha.0",
4
+ "version": "0.86.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -44,6 +44,7 @@
44
44
  "./bin",
45
45
  "./dist",
46
46
  "./oclif.manifest.json",
47
+ "./templates",
47
48
  "./vendor/java"
48
49
  ],
49
50
  "homepage": "https://github.com/Copado/agentia-cli",
@@ -183,6 +184,12 @@
183
184
  "mcp": {
184
185
  "description": "Start a local Model Context Protocol server for MCP-compatible clients"
185
186
  },
187
+ "setup": {
188
+ "description": "Prepare Agentia local project assets"
189
+ },
190
+ "setup:skills": {
191
+ "description": "Create and update Agentia Agent Skills"
192
+ },
186
193
  "testing": {
187
194
  "description": "Manage Copado Robotic Testing projects, tests, runs, logs, and variables"
188
195
  }
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: agentia-ai
3
+ description: Use this skill when prompting Copado AI agents through the Agentia CLI or MCP, including `agentia ai agent ask`, `agentia ai agent chat`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
4
+ ---
5
+
6
+ <!-- Agentia managed skill file: agentia setup skills -->
7
+
8
+ # Agentia AI
9
+
10
+ Use this skill to ask Copado AI agents through Agentia with the right agent selector, workspace context, and output mode.
11
+
12
+ Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompts. Use CLI examples as the fallback. Use `agentia ai agent chat` only for interactive terminal sessions.
13
+
14
+ ## Start Here
15
+
16
+ 1. Confirm AI auth with `agentia auth get --ai --json`, or provide `--pat`, `--domain`, `--org`, and optional `--gateway-url`.
17
+ 2. Choose exactly one agent selector for `ask`: `--plan`, `--build`, `--test`, `--release`, `--operate`, or `--knowledge`.
18
+ 3. Add useful context flags when available: `--workspace`, `--dialogue`, `--user-story`, `--sf-org`, and `--component`.
19
+ 4. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response.
20
+
21
+ ## Reference
22
+
23
+ - Copado AI agent prompts, chat sessions, workspace context, MCP parity, and gotchas: [references/ai-agents.md](references/ai-agents.md)
24
+
25
+ ## General Rules
26
+
27
+ - Keep prompts specific and include IDs or names read from Copado or the local project.
28
+ - Use the Knowledge agent for Copado AI Knowledge grounding and product questions.
29
+ - Use the Plan, Build, Test, Release, and Operate agents according to the lifecycle intent.
30
+ - Do not paste PATs or secrets into prompts.
31
+
32
+ ## Report Back
33
+
34
+ Report the selected AI agent, workspace/dialogue identifiers when returned, whether the response was streamed or buffered, and any follow-up action. Do not include secrets.
@@ -0,0 +1,70 @@
1
+ <!-- Agentia managed skill file: agentia setup skills -->
2
+
3
+ # AI Agents Reference
4
+
5
+ Use this reference for `agentia ai agent ask`, `agentia ai agent chat`, and the matching `agentia_ai_ask` MCP tool.
6
+
7
+ ## Authentication And Context
8
+
9
+ Configure AI once:
10
+
11
+ ```sh
12
+ agentia auth set --ai --ai-domain <domain> --ai-org <organization-id> --ai-workspace <workspace-id>
13
+ agentia auth get --ai --json
14
+ ```
15
+
16
+ Per-command overrides include `--pat`, `--domain`, `--org`, `--workspace`, `--gateway-url`, and `--timeout`. Do not print PAT values.
17
+
18
+ ## Agent Selectors
19
+
20
+ | Selector | Use For |
21
+ | --- | --- |
22
+ | `--plan` | Break requirements into delivery plans and acceptance criteria. |
23
+ | `--build` | Implementation guidance, code-level questions, and construction tasks. |
24
+ | `--test` | Test strategy, regression selection, and test troubleshooting. |
25
+ | `--release` | Release, promotion, packaging, and deployment questions. |
26
+ | `--operate` | Operational diagnostics, monitoring, and runbook style questions. |
27
+ | `--knowledge` | Copado AI Knowledge grounding, product documentation, personas, and troubleshooting. |
28
+ | `--orchestrate` | Chat-only orchestration mode for interactive sessions. |
29
+
30
+ Choose one selector that matches the user's intent. `ask` requires a prompt with `-p` or `--prompt`; `chat` is TTY-only and prompts interactively.
31
+
32
+ ## Single-Turn Ask
33
+
34
+ Use `ask` for automation and agent-to-agent workflows:
35
+
36
+ ```sh
37
+ agentia ai agent ask --plan -p "Break this user story into implementation steps" --json
38
+ agentia ai agent ask --knowledge -p "Summarize Copado guidance for data template sync" --no-stream --json
39
+ agentia ai agent ask --build --user-story US-1042 --component AccountService -p "Review the implementation approach" --json
40
+ ```
41
+
42
+ MCP `agentia_ai_ask` mirrors the buffered JSON-safe ask flow. It does not provide interactive chat.
43
+
44
+ ## Interactive Chat
45
+
46
+ Use `chat` only when a human is present in a terminal:
47
+
48
+ ```sh
49
+ agentia ai agent chat --build --user-story US-1042
50
+ agentia ai agent chat --orchestrate --workspace <workspace-id>
51
+ ```
52
+
53
+ Chat creates or reuses one dialogue for the session and supports session slash commands. It is not suitable for headless JSON workflows.
54
+
55
+ ## Workspace And Quota Helpers
56
+
57
+ Use these adjacent commands when the prompt workflow needs context setup:
58
+
59
+ | Command | Use For |
60
+ | --- | --- |
61
+ | `ai workspace list|get|create|update` | Inspect or manage Copado AI workspaces. |
62
+ | `ai workspace member list|invite` | Inspect or invite workspace members. |
63
+ | `ai quota get` | Check organization quota before large AI activity. |
64
+
65
+ ## Gotchas
66
+
67
+ - `--workspace` selects the workspace; `--dialogue` reuses a conversation inside that workspace.
68
+ - `--user-story`, `--sf-org`, and `--component` enrich prompt context but do not replace a clear prompt.
69
+ - Streaming is human-friendly. For tools, CI, or follow-up parsing, use `--json` and consider `--no-stream`.
70
+ - `chat` has no MCP equivalent and should not be used in non-interactive shells.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: agentia-cicd
3
+ description: Use this skill when managing Copado CICD work with the Agentia CLI or Agentia MCP tools: user stories, work commit/push/submit/done, promotion runs and conflicts, job executions, environments, credentials, pipelines, stages, and release data templates. Use it whenever the user asks an agent to operate Copado CICD from a terminal, IDE, or headless workflow.
4
+ ---
5
+
6
+ <!-- Agentia managed skill file: agentia setup skills -->
7
+
8
+ # Agentia CICD
9
+
10
+ Use this skill to operate Copado CICD through Agentia without guessing command order, IDs, or JSON fields.
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 `agentia auth get --cicd --json` is configured, or that the current process supplies `AGENTIA_CICD_API_KEY` and `AGENTIA_CICD_BASE_URL`.
17
+ 2. Identify the domain below and read only the matching reference file.
18
+ 3. Before mutating data, read the target record first with the matching `get`, `list`, or `status` command.
19
+ 4. Never print credentials, PATs, OAuth signatures, or unmasked environment variables.
20
+
21
+ ## References
22
+
23
+ - User stories, local commits, cloud commits, push, submit, done, quality gates, and deployment steps: [references/work.md](references/work.md)
24
+ - Promotion lookup, run, resume, merge conflicts, and story-centric promotion: [references/promotions.md](references/promotions.md)
25
+ - Copado JobExecution lookup, actions, logs, and monitoring: [references/jobs.md](references/jobs.md)
26
+ - Copado environments, environment credentials, and browser authentication: [references/environments-and-credentials.md](references/environments-and-credentials.md)
27
+ - Pipelines, environment connections, stages, and stage connections: [references/pipelines.md](references/pipelines.md)
28
+ - Release data templates, records, matching, sync, dataset files, and data commits: [references/data.md](references/data.md)
29
+
30
+ ## General Rules
31
+
32
+ - Use Salesforce record IDs or generated names read from Copado. Do not invent story names, promotion IDs, job IDs, credential IDs, or pipeline IDs.
33
+ - Keep human output off stdout in JSON workflows. Prefer `--json`, then parse the result object.
34
+ - For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work push`, `work submit`, and `work done`.
35
+ - Treat `cicd job` as Copado CICD JobExecution. It is different from CRT `testing job`.
36
+ - Treat `cicd work test --local` as local quality gates. It is different from CRT `testing test run`.
37
+ - Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
38
+
39
+ ## Report Back
40
+
41
+ When you finish a CICD operation, report the command path used, target IDs or names, final status, whether JSON was used, and any remaining manual action. Do not include secrets.
@@ -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.