@copado/agentia-cli 0.93.0-alpha.0 → 0.94.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 +201 -196
- package/dist/commands/setup/skills/create.d.ts +1 -1
- package/dist/commands/setup/skills/create.js +3 -2
- package/dist/commands/setup/skills/create.js.map +1 -1
- package/dist/commands/setup/skills/update.d.ts +1 -1
- package/dist/commands/setup/skills/update.js +3 -2
- package/dist/commands/setup/skills/update.js.map +1 -1
- package/dist/commands/setup.d.ts +3 -0
- package/dist/commands/setup.js +20 -0
- package/dist/commands/setup.js.map +1 -1
- package/dist/lib/project-setup.d.ts +16 -8
- package/dist/lib/project-setup.js +81 -80
- package/dist/lib/project-setup.js.map +1 -1
- package/dist/lib/setup-prompts.d.ts +8 -0
- package/dist/lib/setup-prompts.js +2 -1
- package/dist/lib/setup-prompts.js.map +1 -1
- package/dist/lib/setup-skills.d.ts +18 -2
- package/dist/lib/setup-skills.js +48 -36
- package/dist/lib/setup-skills.js.map +1 -1
- package/dist/lib/setup-templates.d.ts +2 -7
- package/dist/lib/setup-templates.js +3 -149
- package/dist/lib/setup-templates.js.map +1 -1
- package/dist/lib/setup-wizard.d.ts +2 -0
- package/dist/lib/setup-wizard.js +3 -0
- package/dist/lib/setup-wizard.js.map +1 -1
- package/oclif.manifest.json +73 -49
- package/package.json +1 -1
- package/templates/AGENTS.md +24 -0
- package/templates/skills/agentia-cicd/references/data.md +70 -1
package/oclif.manifest.json
CHANGED
|
@@ -30,12 +30,36 @@
|
|
|
30
30
|
"allowNo": false,
|
|
31
31
|
"type": "boolean"
|
|
32
32
|
},
|
|
33
|
+
"force-skills": {
|
|
34
|
+
"description": "Replace unmanaged files at Agentia skill paths",
|
|
35
|
+
"name": "force-skills",
|
|
36
|
+
"allowNo": false,
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
33
39
|
"no-prompt": {
|
|
34
40
|
"char": "n",
|
|
35
41
|
"description": "Skip interactive prompts; only run checks, notifications, and flagged actions",
|
|
36
42
|
"name": "no-prompt",
|
|
37
43
|
"allowNo": false,
|
|
38
44
|
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"setup-skills": {
|
|
47
|
+
"description": "Create or update Agentia-managed project skills and AGENTS.md guidance",
|
|
48
|
+
"name": "setup-skills",
|
|
49
|
+
"allowNo": false,
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"skills-target": {
|
|
53
|
+
"description": "Skill target root (repeatable)",
|
|
54
|
+
"name": "skills-target",
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"multiple": true,
|
|
57
|
+
"options": [
|
|
58
|
+
"agents",
|
|
59
|
+
"cursor",
|
|
60
|
+
"claude"
|
|
61
|
+
],
|
|
62
|
+
"type": "option"
|
|
39
63
|
}
|
|
40
64
|
},
|
|
41
65
|
"hasDynamicHelp": false,
|
|
@@ -5211,6 +5235,50 @@
|
|
|
5211
5235
|
"update.js"
|
|
5212
5236
|
]
|
|
5213
5237
|
},
|
|
5238
|
+
"cicd:user:get": {
|
|
5239
|
+
"aliases": [],
|
|
5240
|
+
"args": {},
|
|
5241
|
+
"description": "Get a Copado user by ID (defaults to the authenticated user)",
|
|
5242
|
+
"examples": [
|
|
5243
|
+
"<%= config.bin %> <%= command.id %>",
|
|
5244
|
+
"<%= config.bin %> <%= command.id %> --id me",
|
|
5245
|
+
"<%= config.bin %> <%= command.id %> --id 005000000000000",
|
|
5246
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
5247
|
+
],
|
|
5248
|
+
"flags": {
|
|
5249
|
+
"json": {
|
|
5250
|
+
"description": "Format output as json.",
|
|
5251
|
+
"helpGroup": "GLOBAL",
|
|
5252
|
+
"name": "json",
|
|
5253
|
+
"allowNo": false,
|
|
5254
|
+
"type": "boolean"
|
|
5255
|
+
},
|
|
5256
|
+
"id": {
|
|
5257
|
+
"description": "User ID, or \"me\" for the authenticated user",
|
|
5258
|
+
"name": "id",
|
|
5259
|
+
"default": "me",
|
|
5260
|
+
"hasDynamicHelp": false,
|
|
5261
|
+
"multiple": false,
|
|
5262
|
+
"type": "option"
|
|
5263
|
+
}
|
|
5264
|
+
},
|
|
5265
|
+
"hasDynamicHelp": false,
|
|
5266
|
+
"hiddenAliases": [],
|
|
5267
|
+
"id": "cicd:user:get",
|
|
5268
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
5269
|
+
"pluginName": "@copado/agentia-cli",
|
|
5270
|
+
"pluginType": "core",
|
|
5271
|
+
"strict": true,
|
|
5272
|
+
"enableJsonFlag": true,
|
|
5273
|
+
"isESM": true,
|
|
5274
|
+
"relativePath": [
|
|
5275
|
+
"dist",
|
|
5276
|
+
"commands",
|
|
5277
|
+
"cicd",
|
|
5278
|
+
"user",
|
|
5279
|
+
"get.js"
|
|
5280
|
+
]
|
|
5281
|
+
},
|
|
5214
5282
|
"cicd:work:commit": {
|
|
5215
5283
|
"aliases": [],
|
|
5216
5284
|
"args": {
|
|
@@ -6561,10 +6629,10 @@
|
|
|
6561
6629
|
"type": "boolean"
|
|
6562
6630
|
},
|
|
6563
6631
|
"target": {
|
|
6564
|
-
"description": "Project skill root to write",
|
|
6632
|
+
"description": "Project skill root to write (repeatable)",
|
|
6565
6633
|
"name": "target",
|
|
6566
6634
|
"hasDynamicHelp": false,
|
|
6567
|
-
"multiple":
|
|
6635
|
+
"multiple": true,
|
|
6568
6636
|
"options": [
|
|
6569
6637
|
"agents",
|
|
6570
6638
|
"cursor",
|
|
@@ -6640,10 +6708,10 @@
|
|
|
6640
6708
|
"type": "boolean"
|
|
6641
6709
|
},
|
|
6642
6710
|
"target": {
|
|
6643
|
-
"description": "Project skill root to write",
|
|
6711
|
+
"description": "Project skill root to write (repeatable)",
|
|
6644
6712
|
"name": "target",
|
|
6645
6713
|
"hasDynamicHelp": false,
|
|
6646
|
-
"multiple":
|
|
6714
|
+
"multiple": true,
|
|
6647
6715
|
"options": [
|
|
6648
6716
|
"agents",
|
|
6649
6717
|
"cursor",
|
|
@@ -13359,50 +13427,6 @@
|
|
|
13359
13427
|
"unresolve.js"
|
|
13360
13428
|
]
|
|
13361
13429
|
},
|
|
13362
|
-
"cicd:user:get": {
|
|
13363
|
-
"aliases": [],
|
|
13364
|
-
"args": {},
|
|
13365
|
-
"description": "Get a Copado user by ID (defaults to the authenticated user)",
|
|
13366
|
-
"examples": [
|
|
13367
|
-
"<%= config.bin %> <%= command.id %>",
|
|
13368
|
-
"<%= config.bin %> <%= command.id %> --id me",
|
|
13369
|
-
"<%= config.bin %> <%= command.id %> --id 005000000000000",
|
|
13370
|
-
"<%= config.bin %> <%= command.id %> --json"
|
|
13371
|
-
],
|
|
13372
|
-
"flags": {
|
|
13373
|
-
"json": {
|
|
13374
|
-
"description": "Format output as json.",
|
|
13375
|
-
"helpGroup": "GLOBAL",
|
|
13376
|
-
"name": "json",
|
|
13377
|
-
"allowNo": false,
|
|
13378
|
-
"type": "boolean"
|
|
13379
|
-
},
|
|
13380
|
-
"id": {
|
|
13381
|
-
"description": "User ID, or \"me\" for the authenticated user",
|
|
13382
|
-
"name": "id",
|
|
13383
|
-
"default": "me",
|
|
13384
|
-
"hasDynamicHelp": false,
|
|
13385
|
-
"multiple": false,
|
|
13386
|
-
"type": "option"
|
|
13387
|
-
}
|
|
13388
|
-
},
|
|
13389
|
-
"hasDynamicHelp": false,
|
|
13390
|
-
"hiddenAliases": [],
|
|
13391
|
-
"id": "cicd:user:get",
|
|
13392
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
13393
|
-
"pluginName": "@copado/agentia-cli",
|
|
13394
|
-
"pluginType": "core",
|
|
13395
|
-
"strict": true,
|
|
13396
|
-
"enableJsonFlag": true,
|
|
13397
|
-
"isESM": true,
|
|
13398
|
-
"relativePath": [
|
|
13399
|
-
"dist",
|
|
13400
|
-
"commands",
|
|
13401
|
-
"cicd",
|
|
13402
|
-
"user",
|
|
13403
|
-
"get.js"
|
|
13404
|
-
]
|
|
13405
|
-
},
|
|
13406
13430
|
"cicd:work:deployment-step:create": {
|
|
13407
13431
|
"aliases": [],
|
|
13408
13432
|
"args": {},
|
|
@@ -14119,5 +14143,5 @@
|
|
|
14119
14143
|
]
|
|
14120
14144
|
}
|
|
14121
14145
|
},
|
|
14122
|
-
"version": "0.
|
|
14146
|
+
"version": "0.94.0-alpha.0"
|
|
14123
14147
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Agentia CLI for AI Agents
|
|
2
|
+
|
|
3
|
+
<!-- agentia:managed:start -->
|
|
4
|
+
|
|
5
|
+
Use Agentia to manage Copado work items. Prefer registered Agentia MCP tools; otherwise use the CLI with `--json`.
|
|
6
|
+
|
|
7
|
+
Authentication must be configured before operational commands. Never print credentials, tokens, or unmasked environment variables.
|
|
8
|
+
|
|
9
|
+
## Copado workflow
|
|
10
|
+
|
|
11
|
+
`list → get → set → commit → push → submit → done`
|
|
12
|
+
|
|
13
|
+
Read records before changing them and use IDs returned by Copado. Do not skip `work set` before coding; use one story per feature branch. Keep the working tree clean for lifecycle commands, and confirm promotion/deployment intent before `done`.
|
|
14
|
+
|
|
15
|
+
## Agent Skills
|
|
16
|
+
|
|
17
|
+
Load exactly one copy of each applicable Agentia skill. Prefer the client-specific root when available (`.cursor/skills` in Cursor or `.claude/skills` in Claude); otherwise use `.agents/skills`.
|
|
18
|
+
|
|
19
|
+
- `agentia-cicd/SKILL.md`: Copado stories, commits, push, submit, done, promotions, jobs, environments, pipelines, and data.
|
|
20
|
+
- `agentia-testing/SKILL.md`: Copado Robotic Testing operations.
|
|
21
|
+
- `agentia-ai/SKILL.md`: Copado AI operations.
|
|
22
|
+
|
|
23
|
+
Project rules in this file take precedence over managed skill guidance. Refresh managed skills with `agentia setup skills update`; do not hand-edit managed files.
|
|
24
|
+
<!-- agentia:managed:end -->
|
|
@@ -6,6 +6,75 @@ Use this reference for Release Data Template commands under `agentia cicd data .
|
|
|
6
6
|
|
|
7
7
|
Data commands often accept large JSON bodies. Prefer `--file` or `--stdin` for complex payloads and `--json` for machine-readable responses.
|
|
8
8
|
|
|
9
|
+
## Operating Rules
|
|
10
|
+
|
|
11
|
+
- Read the target template, credential, User Story, or data commit before mutating it.
|
|
12
|
+
- Use IDs returned by Copado. Do not infer template, credential, commit, or ContentVersion IDs.
|
|
13
|
+
- Use `data sobject fields` and `data sobject relationships` before constructing payloads that reference Salesforce fields or relationships.
|
|
14
|
+
- For JSON payload commands, use exactly one input source: inline JSON flags, `--file`, or `--stdin`.
|
|
15
|
+
- Prefer `--file` when a payload should be reviewed, edited, or reused. Prefer `--stdin` for generated, one-use payloads.
|
|
16
|
+
- After every mutation, read the affected resource back or run its corresponding `list` command.
|
|
17
|
+
|
|
18
|
+
## Choose A Workflow
|
|
19
|
+
|
|
20
|
+
| Intent | Workflow |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| Find or export an existing template | Inspect A Template |
|
|
23
|
+
| Test source records and destination matching | Validate Records And Matching |
|
|
24
|
+
| Update templates after metadata changes | Synchronize Metadata Changes |
|
|
25
|
+
| Attach data to a User Story and inspect generated files | Create A Data Commit |
|
|
26
|
+
| Convert or remove a template | Legacy Conversion And Deletion |
|
|
27
|
+
|
|
28
|
+
## Inspect A Template
|
|
29
|
+
|
|
30
|
+
1. Discover candidates with `data template list --json`.
|
|
31
|
+
2. Inspect the selected-column graph with `data template get <template-id> --json`.
|
|
32
|
+
3. Use `data template get-detail <template-id> --json` only when raw v2 configuration is needed for editing or troubleshooting.
|
|
33
|
+
4. Inspect attached filters and formulas with `data filter list` and `data formula list` when relevant.
|
|
34
|
+
|
|
35
|
+
Finish when the correct template and its current configuration have been identified. Keep `get-detail` output as a baseline before changing template detail.
|
|
36
|
+
|
|
37
|
+
## Validate Records And Matching
|
|
38
|
+
|
|
39
|
+
1. Inspect the template and source/destination credentials.
|
|
40
|
+
2. Search representative source records with `data records search`.
|
|
41
|
+
3. Match selected source records against the destination with `data records match`.
|
|
42
|
+
4. Review unmatched or ambiguous results.
|
|
43
|
+
5. Adjust filters or formulas when needed, then repeat the search and match checks.
|
|
44
|
+
|
|
45
|
+
Treat this as a feedback loop. Finish when representative records produce the intended source selection and destination matches.
|
|
46
|
+
|
|
47
|
+
## Synchronize Metadata Changes
|
|
48
|
+
|
|
49
|
+
1. Prepare the metadata-change request in a JSON file.
|
|
50
|
+
2. Run `data sync preview-updates --file <preview-request> --json`.
|
|
51
|
+
3. Review every preview entry, especially `needsAttention` and `autoUpdate`.
|
|
52
|
+
4. Build an apply payload containing only approved sync entries.
|
|
53
|
+
5. Run `data sync apply --file <sync-entries> --json`.
|
|
54
|
+
6. Read each affected template back to verify its fields and relationships.
|
|
55
|
+
|
|
56
|
+
Never apply preview results without reviewing them first. Stop for user input when an entry needs attention and the intended field change is unclear.
|
|
57
|
+
|
|
58
|
+
## Create A Data Commit - Full template
|
|
59
|
+
|
|
60
|
+
1. Resolve and inspect the target User Story; see [work.md](work.md).
|
|
61
|
+
2. Inspect the selected template and credentials.
|
|
62
|
+
3. Prepare the data commit request in a JSON file.
|
|
63
|
+
4. Run `data commit create --file <commit-request> --json`.
|
|
64
|
+
5. If the response contains a JobExecution ID, inspect and monitor it using [jobs.md](jobs.md).
|
|
65
|
+
6. Confirm the commit is attached to the intended story with `data commit list <user-story-id> --json`.
|
|
66
|
+
7. List generated artifacts with `data dataset-file list <data-commit-id> --json`.
|
|
67
|
+
8. Fetch required content with `data dataset-file content <content-version-id>`.
|
|
68
|
+
|
|
69
|
+
Finish when the data commit belongs to the intended story, any returned job has reached the expected status, and generated dataset files are accounted for.
|
|
70
|
+
|
|
71
|
+
## Legacy Conversion And Deletion
|
|
72
|
+
|
|
73
|
+
1. Discover and inspect the exact template.
|
|
74
|
+
2. Save its `get` and `get-detail` output before conversion or deletion.
|
|
75
|
+
3. For legacy conversion, run `data template convert-old <template-id> --json`, then read the converted template back.
|
|
76
|
+
4. For deletion, confirm the target and destructive intent before running `data template delete <template-id> --json`.
|
|
77
|
+
|
|
9
78
|
## Template Commands
|
|
10
79
|
|
|
11
80
|
| Command | Use For | Notes |
|
|
@@ -60,6 +129,6 @@ agentia cicd data dataset-file list <data-commit-id> --json
|
|
|
60
129
|
## Gotchas
|
|
61
130
|
|
|
62
131
|
- 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
132
|
- `data template get` and `data template get-detail` serve different audiences: selected graph export versus raw v2 detail.
|
|
65
133
|
- `data template open` is CLI-only; MCP covers data operations but not browser navigation.
|
|
134
|
+
- A data commit can hand off to a CICD JobExecution. Continue with `agentia cicd job ...`, not CRT `agentia testing job ...`.
|