@copado/agentia-cli 0.91.0-alpha.0 → 0.93.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 +234 -220
- package/dist/commands/auth/get.d.ts +1 -0
- package/dist/commands/auth/get.js +35 -21
- package/dist/commands/auth/get.js.map +1 -1
- package/dist/commands/auth/set.d.ts +1 -2
- package/dist/commands/auth/set.js +16 -23
- package/dist/commands/auth/set.js.map +1 -1
- package/dist/commands/auth/unset.d.ts +2 -0
- package/dist/commands/auth/unset.js +12 -1
- package/dist/commands/auth/unset.js.map +1 -1
- package/dist/commands/cicd/work/commit.js +2 -2
- package/dist/commands/cicd/work/commit.js.map +1 -1
- package/dist/commands/cicd/work/done.d.ts +4 -0
- package/dist/commands/cicd/work/done.js +11 -124
- package/dist/commands/cicd/work/done.js.map +1 -1
- package/dist/commands/cicd/work/push.js +4 -3
- package/dist/commands/cicd/work/push.js.map +1 -1
- package/dist/commands/cicd/work/submit.d.ts +4 -3
- package/dist/commands/cicd/work/submit.js +13 -4
- package/dist/commands/cicd/work/submit.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/lib/ai-config.js +33 -7
- package/dist/lib/ai-config.js.map +1 -1
- package/dist/lib/auth-config.d.ts +6 -3
- package/dist/lib/auth-config.js +127 -56
- package/dist/lib/auth-config.js.map +1 -1
- package/dist/lib/auth-profile.d.ts +25 -0
- package/dist/lib/auth-profile.js +112 -0
- package/dist/lib/auth-profile.js.map +1 -0
- package/dist/lib/cicd-gateway.js +19 -6
- package/dist/lib/cicd-gateway.js.map +1 -1
- package/dist/lib/credential-store.d.ts +3 -0
- package/dist/lib/credential-store.js +15 -3
- package/dist/lib/credential-store.js.map +1 -1
- package/dist/lib/defaults-store.js +9 -0
- package/dist/lib/defaults-store.js.map +1 -1
- package/dist/lib/mcp/command-id.js +1 -0
- package/dist/lib/mcp/command-id.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +33 -20
- package/dist/lib/mcp/tools.js +29 -36
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/mcp/work-tools.d.ts +15 -0
- package/dist/lib/mcp/work-tools.js +50 -34
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/nested-metadata-changes.d.ts +41 -3
- package/dist/lib/nested-metadata-changes.js +110 -16
- package/dist/lib/nested-metadata-changes.js.map +1 -1
- package/dist/lib/nested-metadata-registry.d.ts +13 -1
- package/dist/lib/nested-metadata-registry.js +87 -28
- package/dist/lib/nested-metadata-registry.js.map +1 -1
- package/dist/lib/setup-templates.d.ts +1 -1
- package/dist/lib/setup-templates.js +9 -19
- package/dist/lib/setup-templates.js.map +1 -1
- package/dist/lib/setup-wizard.d.ts +3 -1
- package/dist/lib/setup-wizard.js +152 -30
- package/dist/lib/setup-wizard.js.map +1 -1
- package/dist/lib/testing-config.js +14 -5
- package/dist/lib/testing-config.js.map +1 -1
- package/dist/lib/user-context.js +3 -2
- package/dist/lib/user-context.js.map +1 -1
- package/dist/lib/work-done.d.ts +22 -0
- package/dist/lib/work-done.js +136 -0
- package/dist/lib/work-done.js.map +1 -0
- package/dist/lib/work-local-commit.js +18 -2
- package/dist/lib/work-local-commit.js.map +1 -1
- package/dist/lib/work-push.d.ts +18 -5
- package/dist/lib/work-push.js +101 -30
- package/dist/lib/work-push.js.map +1 -1
- package/dist/lib/work-types.d.ts +22 -23
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +95 -82
- package/package.json +1 -1
- package/templates/skills/agentia-cicd/SKILL.md +1 -1
- package/templates/skills/agentia-cicd/references/promotions.md +1 -1
- package/templates/skills/agentia-cicd/references/work.md +7 -8
package/oclif.manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"setup": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Prepare this machine and the current project for Agentia. Guides CICD and CRT authentication, Cursor MCP, local quality gates, and AGENTS.md. Git is optional: .gitignore is updated only inside a repository, and generated files are not committed.",
|
|
6
|
+
"description": "Prepare this machine and the current project for Agentia. Guides CICD, AI, and CRT authentication, Cursor MCP, local quality gates, and AGENTS.md. Git is optional: .gitignore is updated only inside a repository, and generated files are not committed.",
|
|
7
7
|
"examples": [
|
|
8
8
|
"<%= config.bin %> <%= command.id %>",
|
|
9
9
|
"<%= config.bin %> <%= command.id %> --no-prompt",
|
|
@@ -152,17 +152,17 @@
|
|
|
152
152
|
"args": {},
|
|
153
153
|
"description": "Store authentication credentials securely in the system keychain",
|
|
154
154
|
"examples": [
|
|
155
|
-
"<%= config.bin %> <%= command.id %> --ai
|
|
156
|
-
"<%= config.bin %> <%= command.id %> --ai
|
|
157
|
-
"<%= config.bin %> <%= command.id %> --ai
|
|
155
|
+
"<%= config.bin %> <%= command.id %> --ai <pak> --ai-domain robotic.copado.com --ai-org 42888",
|
|
156
|
+
"<%= config.bin %> <%= command.id %> --ai <pak> --ai-domain robotic.copado.com --ai-org 42888 --ai-workspace 42d0b908-37b7-4565-9ec9-86eda40c9782",
|
|
157
|
+
"<%= config.bin %> <%= command.id %> --ai <pak> --ai-gateway-url http://localhost:8080/organizations/42888",
|
|
158
158
|
"<%= config.bin %> <%= command.id %> --ai-workspace 42d0b908-37b7-4565-9ec9-86eda40c9782",
|
|
159
159
|
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key> --region na",
|
|
160
160
|
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key> --custom-url https://dev.api.copado.com",
|
|
161
161
|
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key>",
|
|
162
|
-
"<%= config.bin %> <%= command.id %> --crt
|
|
163
|
-
"<%= config.bin %> <%= command.id %> --crt
|
|
164
|
-
"<%= config.bin %> <%= command.id %> --crt
|
|
165
|
-
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key> --region na --crt
|
|
162
|
+
"<%= config.bin %> <%= command.id %> --crt <pak>",
|
|
163
|
+
"<%= config.bin %> <%= command.id %> --crt <pak> --crt-org <crt-org-id>",
|
|
164
|
+
"<%= config.bin %> <%= command.id %> --crt <pak> --crt-domain robotic.copado.com --crt-org <crt-org-id>",
|
|
165
|
+
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key> --region na --crt <pak>",
|
|
166
166
|
"<%= config.bin %> <%= command.id %> --cicd <copado-api-key> --region na --json"
|
|
167
167
|
],
|
|
168
168
|
"flags": {
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"type": "boolean"
|
|
175
175
|
},
|
|
176
176
|
"ai": {
|
|
177
|
-
"description": "
|
|
177
|
+
"description": "PAK for Copado AI authentication",
|
|
178
178
|
"name": "ai",
|
|
179
179
|
"hasDynamicHelp": false,
|
|
180
180
|
"multiple": false,
|
|
@@ -201,13 +201,6 @@
|
|
|
201
201
|
"multiple": false,
|
|
202
202
|
"type": "option"
|
|
203
203
|
},
|
|
204
|
-
"ai-pak": {
|
|
205
|
-
"description": "PAK for Copado AI authentication",
|
|
206
|
-
"name": "ai-pak",
|
|
207
|
-
"hasDynamicHelp": false,
|
|
208
|
-
"multiple": false,
|
|
209
|
-
"type": "option"
|
|
210
|
-
},
|
|
211
204
|
"ai-workspace": {
|
|
212
205
|
"description": "Copado AI workspace UUID to validate and store as the default",
|
|
213
206
|
"name": "ai-workspace",
|
|
@@ -223,7 +216,7 @@
|
|
|
223
216
|
"type": "option"
|
|
224
217
|
},
|
|
225
218
|
"crt": {
|
|
226
|
-
"description": "
|
|
219
|
+
"description": "PAK for CRT authentication",
|
|
227
220
|
"name": "crt",
|
|
228
221
|
"hasDynamicHelp": false,
|
|
229
222
|
"multiple": false,
|
|
@@ -243,13 +236,6 @@
|
|
|
243
236
|
"multiple": false,
|
|
244
237
|
"type": "option"
|
|
245
238
|
},
|
|
246
|
-
"crt-pak": {
|
|
247
|
-
"description": "PAK for CRT authentication",
|
|
248
|
-
"name": "crt-pak",
|
|
249
|
-
"hasDynamicHelp": false,
|
|
250
|
-
"multiple": false,
|
|
251
|
-
"type": "option"
|
|
252
|
-
},
|
|
253
239
|
"custom-url": {
|
|
254
240
|
"description": "CICD gateway base URL used instead of regional mapping",
|
|
255
241
|
"name": "custom-url",
|
|
@@ -257,6 +243,12 @@
|
|
|
257
243
|
"multiple": false,
|
|
258
244
|
"type": "option"
|
|
259
245
|
},
|
|
246
|
+
"local": {
|
|
247
|
+
"description": "Store authentication for the current project and user.",
|
|
248
|
+
"name": "local",
|
|
249
|
+
"allowNo": false,
|
|
250
|
+
"type": "boolean"
|
|
251
|
+
},
|
|
260
252
|
"region": {
|
|
261
253
|
"description": "CICD region used to resolve the gateway endpoint",
|
|
262
254
|
"name": "region",
|
|
@@ -326,6 +318,18 @@
|
|
|
326
318
|
"allowNo": false,
|
|
327
319
|
"type": "boolean"
|
|
328
320
|
},
|
|
321
|
+
"global": {
|
|
322
|
+
"description": "Remove global authentication (the default scope).",
|
|
323
|
+
"name": "global",
|
|
324
|
+
"allowNo": false,
|
|
325
|
+
"type": "boolean"
|
|
326
|
+
},
|
|
327
|
+
"local": {
|
|
328
|
+
"description": "Remove authentication for the current project and user.",
|
|
329
|
+
"name": "local",
|
|
330
|
+
"allowNo": false,
|
|
331
|
+
"type": "boolean"
|
|
332
|
+
},
|
|
329
333
|
"yes": {
|
|
330
334
|
"char": "y",
|
|
331
335
|
"description": "Confirm removal without prompting (required for --json)",
|
|
@@ -5207,50 +5211,6 @@
|
|
|
5207
5211
|
"update.js"
|
|
5208
5212
|
]
|
|
5209
5213
|
},
|
|
5210
|
-
"cicd:user:get": {
|
|
5211
|
-
"aliases": [],
|
|
5212
|
-
"args": {},
|
|
5213
|
-
"description": "Get a Copado user by ID (defaults to the authenticated user)",
|
|
5214
|
-
"examples": [
|
|
5215
|
-
"<%= config.bin %> <%= command.id %>",
|
|
5216
|
-
"<%= config.bin %> <%= command.id %> --id me",
|
|
5217
|
-
"<%= config.bin %> <%= command.id %> --id 005000000000000",
|
|
5218
|
-
"<%= config.bin %> <%= command.id %> --json"
|
|
5219
|
-
],
|
|
5220
|
-
"flags": {
|
|
5221
|
-
"json": {
|
|
5222
|
-
"description": "Format output as json.",
|
|
5223
|
-
"helpGroup": "GLOBAL",
|
|
5224
|
-
"name": "json",
|
|
5225
|
-
"allowNo": false,
|
|
5226
|
-
"type": "boolean"
|
|
5227
|
-
},
|
|
5228
|
-
"id": {
|
|
5229
|
-
"description": "User ID, or \"me\" for the authenticated user",
|
|
5230
|
-
"name": "id",
|
|
5231
|
-
"default": "me",
|
|
5232
|
-
"hasDynamicHelp": false,
|
|
5233
|
-
"multiple": false,
|
|
5234
|
-
"type": "option"
|
|
5235
|
-
}
|
|
5236
|
-
},
|
|
5237
|
-
"hasDynamicHelp": false,
|
|
5238
|
-
"hiddenAliases": [],
|
|
5239
|
-
"id": "cicd:user:get",
|
|
5240
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
5241
|
-
"pluginName": "@copado/agentia-cli",
|
|
5242
|
-
"pluginType": "core",
|
|
5243
|
-
"strict": true,
|
|
5244
|
-
"enableJsonFlag": true,
|
|
5245
|
-
"isESM": true,
|
|
5246
|
-
"relativePath": [
|
|
5247
|
-
"dist",
|
|
5248
|
-
"commands",
|
|
5249
|
-
"cicd",
|
|
5250
|
-
"user",
|
|
5251
|
-
"get.js"
|
|
5252
|
-
]
|
|
5253
|
-
},
|
|
5254
5214
|
"cicd:work:commit": {
|
|
5255
5215
|
"aliases": [],
|
|
5256
5216
|
"args": {
|
|
@@ -5340,7 +5300,7 @@
|
|
|
5340
5300
|
"type": "option"
|
|
5341
5301
|
},
|
|
5342
5302
|
"full-metadata": {
|
|
5343
|
-
"description": "Local commit only. Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, stored as lastFullMetadataSelected and sent as
|
|
5303
|
+
"description": "Local commit only. Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, stored as lastFullMetadataSelected and sent as `cicd work push` fullMetadata corrections. The named metadata is committed as a complete file, so every permission it contains is applied instead of only the permissions selected with --permissions. Pass an empty value to clear it.",
|
|
5344
5304
|
"name": "full-metadata",
|
|
5345
5305
|
"hasDynamicHelp": false,
|
|
5346
5306
|
"multiple": false,
|
|
@@ -5396,7 +5356,7 @@
|
|
|
5396
5356
|
"type": "option"
|
|
5397
5357
|
},
|
|
5398
5358
|
"permissions": {
|
|
5399
|
-
"description": "Local commit only. Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, stored as lastPermissionSelected and sent as
|
|
5359
|
+
"description": "Local commit only. Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, stored as lastPermissionSelected and sent as `cicd work push` RetrieveOnly corrections. The named metadata is not committed or deployed; it filters which permissions are updated inside the committed permission sets and profiles so other permissions are not overwritten. Pass an empty value to clear it.",
|
|
5400
5360
|
"name": "permissions",
|
|
5401
5361
|
"hasDynamicHelp": false,
|
|
5402
5362
|
"multiple": false,
|
|
@@ -5723,8 +5683,9 @@
|
|
|
5723
5683
|
"cicd:work:done": {
|
|
5724
5684
|
"aliases": [],
|
|
5725
5685
|
"args": {},
|
|
5726
|
-
"description": "
|
|
5686
|
+
"description": "Alias of cicd work submit --done. Matches Copado UI Submit when promoting (not validate-only). Prefer: agentia cicd work submit --done.",
|
|
5727
5687
|
"examples": [
|
|
5688
|
+
"<%= config.bin %> cicd work submit --done",
|
|
5728
5689
|
"<%= config.bin %> <%= command.id %>",
|
|
5729
5690
|
"<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
|
|
5730
5691
|
"<%= config.bin %> <%= command.id %> --json"
|
|
@@ -6073,7 +6034,7 @@
|
|
|
6073
6034
|
"cicd:work:push": {
|
|
6074
6035
|
"aliases": [],
|
|
6075
6036
|
"args": {},
|
|
6076
|
-
"description": "Push the current feature/<lastWorkItem> branch and register commits with Copado. Requires a clean working tree, base branch, and dev org branch from `.agentia/config.user.json`. Applies Copado environment-variable then yaml replacements when needed, commits both as a single follow-up commit, locks the tip commit, runs `git push origin <branch>`, reports the nested metadata changed across the branch, such as the CustomField behind a profile field-permission edit, plus the parent components it would ignore, calls headless work/push with lastPermissionSelected and --permissions plus the nested metadata of the changed profiles and permission sets as
|
|
6037
|
+
"description": "Push the current feature/<lastWorkItem> branch and register commits with Copado. Requires a clean working tree, base branch, and dev org branch from `.agentia/config.user.json`. Applies Copado environment-variable then yaml replacements when needed, commits both as a single follow-up commit, locks the tip commit, runs `git push origin <branch>`, reports the nested metadata changed across the branch, such as the CustomField behind a profile field-permission edit, plus the parent components it would ignore, calls headless work/push with one changeListUpdate list of Action:MetadataType:MetadataName corrections: lastPermissionSelected and --permissions plus the nested metadata of the changed profiles and permission sets as RetrieveOnly, lastFullMetadataSelected and --full-metadata plus brand-new nested parent files as fullMetadata, the ignored parents as unchanged, the nested metadata deleted on the branch as Del, and the remaining nested metadata as Add, then merges the feature branch into the recorded dev org branch. The changed profiles and permission sets themselves are never sent as corrections, so they stay in the change list and deploy only the permissions their RetrieveOnly entries select. Brand-new nested parent files are an exception: they are sent as fullMetadata so the complete file travels.",
|
|
6077
6038
|
"examples": [
|
|
6078
6039
|
"<%= config.bin %> <%= command.id %>",
|
|
6079
6040
|
"<%= config.bin %> <%= command.id %> --permissions CustomField:Account.SLA__c,ApexClass:AccountService",
|
|
@@ -6090,14 +6051,14 @@
|
|
|
6090
6051
|
"type": "boolean"
|
|
6091
6052
|
},
|
|
6092
6053
|
"full-metadata": {
|
|
6093
|
-
"description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added to lastFullMetadataSelected for this push and sent as
|
|
6054
|
+
"description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added to lastFullMetadataSelected for this push and sent as headless push fullMetadata corrections. The named metadata is committed as a complete file, so it is never decomposed into nested metadata. Not stored; use `cicd work commit --full-metadata` to record it.",
|
|
6094
6055
|
"name": "full-metadata",
|
|
6095
6056
|
"hasDynamicHelp": false,
|
|
6096
6057
|
"multiple": false,
|
|
6097
6058
|
"type": "option"
|
|
6098
6059
|
},
|
|
6099
6060
|
"permissions": {
|
|
6100
|
-
"description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added to lastPermissionSelected for this push and sent as
|
|
6061
|
+
"description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added to lastPermissionSelected for this push and sent as headless push RetrieveOnly corrections. Not stored; use `cicd work commit --permissions` to record it.",
|
|
6101
6062
|
"name": "permissions",
|
|
6102
6063
|
"hasDynamicHelp": false,
|
|
6103
6064
|
"multiple": false,
|
|
@@ -6219,12 +6180,14 @@
|
|
|
6219
6180
|
"cicd:work:submit": {
|
|
6220
6181
|
"aliases": [],
|
|
6221
6182
|
"args": {},
|
|
6222
|
-
"description": "Submit the current feature/<lastWorkItem> work item for pipeline quality gates and validation. Runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present, pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).",
|
|
6183
|
+
"description": "Submit the current feature/<lastWorkItem> work item for pipeline quality gates and validation. Runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present, pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true). With --done, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
|
|
6223
6184
|
"examples": [
|
|
6224
6185
|
"<%= config.bin %> <%= command.id %>",
|
|
6225
6186
|
"<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
|
|
6226
6187
|
"<%= config.bin %> <%= command.id %> --skip-local-tests",
|
|
6227
6188
|
"<%= config.bin %> <%= command.id %> --skip-pull-request",
|
|
6189
|
+
"<%= config.bin %> <%= command.id %> --done",
|
|
6190
|
+
"<%= config.bin %> <%= command.id %> --done --skip-nested-metadata-detection",
|
|
6228
6191
|
"<%= config.bin %> <%= command.id %> --json"
|
|
6229
6192
|
],
|
|
6230
6193
|
"flags": {
|
|
@@ -6235,6 +6198,12 @@
|
|
|
6235
6198
|
"allowNo": false,
|
|
6236
6199
|
"type": "boolean"
|
|
6237
6200
|
},
|
|
6201
|
+
"skip-nested-metadata-detection": {
|
|
6202
|
+
"description": "Do not detect the nested metadata changed across the branch when pushing (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
|
|
6203
|
+
"name": "skip-nested-metadata-detection",
|
|
6204
|
+
"allowNo": false,
|
|
6205
|
+
"type": "boolean"
|
|
6206
|
+
},
|
|
6238
6207
|
"apex-test-classes": {
|
|
6239
6208
|
"description": "Comma-separated Apex test class names passed to local quality gates as AGENTIA_APEX_TEST_CLASSES",
|
|
6240
6209
|
"name": "apex-test-classes",
|
|
@@ -6242,15 +6211,15 @@
|
|
|
6242
6211
|
"multiple": false,
|
|
6243
6212
|
"type": "option"
|
|
6244
6213
|
},
|
|
6245
|
-
"
|
|
6246
|
-
"description": "
|
|
6247
|
-
"name": "
|
|
6214
|
+
"done": {
|
|
6215
|
+
"description": "Promote instead of validate-only (Copado UI Submit promote); honors --skip-nested-metadata-detection",
|
|
6216
|
+
"name": "done",
|
|
6248
6217
|
"allowNo": false,
|
|
6249
6218
|
"type": "boolean"
|
|
6250
6219
|
},
|
|
6251
|
-
"skip-
|
|
6252
|
-
"description": "
|
|
6253
|
-
"name": "skip-
|
|
6220
|
+
"skip-local-tests": {
|
|
6221
|
+
"description": "Skip running local quality gates scripts in the project root",
|
|
6222
|
+
"name": "skip-local-tests",
|
|
6254
6223
|
"allowNo": false,
|
|
6255
6224
|
"type": "boolean"
|
|
6256
6225
|
},
|
|
@@ -13390,6 +13359,50 @@
|
|
|
13390
13359
|
"unresolve.js"
|
|
13391
13360
|
]
|
|
13392
13361
|
},
|
|
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
|
+
},
|
|
13393
13406
|
"cicd:work:deployment-step:create": {
|
|
13394
13407
|
"aliases": [],
|
|
13395
13408
|
"args": {},
|
|
@@ -14106,5 +14119,5 @@
|
|
|
14106
14119
|
]
|
|
14107
14120
|
}
|
|
14108
14121
|
},
|
|
14109
|
-
"version": "0.
|
|
14122
|
+
"version": "0.93.0-alpha.0"
|
|
14110
14123
|
}
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ Prefer Agentia MCP tools when they are available and match the task. Use CLI exa
|
|
|
31
31
|
|
|
32
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
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`,
|
|
34
|
+
- For local project work, keep the tracked working tree clean before commands that require it: `work set`, `work push`, and `work submit`.
|
|
35
35
|
- Treat `cicd job` as Copado CICD JobExecution. It is different from CRT `testing job`.
|
|
36
36
|
- Treat `cicd work test --local` as local quality gates. It is different from CRT `testing test run`.
|
|
37
37
|
- Treat `auth` credentials as keychain/API credentials and `cicd credential` records as Copado environment credentials.
|
|
@@ -10,7 +10,7 @@ Use this reference for `agentia cicd promotion ...`, `agentia cicd promotion con
|
|
|
10
10
|
| --- | --- | --- |
|
|
11
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
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
|
|
13
|
+
| `agentia cicd work submit --done` | Active User Story branch | The story is approved and should move to the next stage (Copado UI Submit promote). |
|
|
14
14
|
|
|
15
15
|
Prefer `work promote` when the user talks about a story. Prefer `promotion run` when the user provides a Promotion ID.
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CICD Work Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia cicd work ...` and matching MCP tools such as `agentia_work_get`, `agentia_work_commit`, `agentia_work_push`,
|
|
5
|
+
Use this reference for `agentia cicd work ...` and matching MCP tools such as `agentia_work_get`, `agentia_work_commit`, `agentia_work_push`, and `agentia_work_submit`.
|
|
6
6
|
|
|
7
7
|
## Workflow
|
|
8
8
|
|
|
@@ -14,9 +14,9 @@ Use this reference for `agentia cicd work ...` and matching MCP tools such as `a
|
|
|
14
14
|
- Copado cloud metadata: `agentia cicd work commit <story-id> --cloud --metadata-name <name> --metadata-type <type> --metadata-category SFDX --json`
|
|
15
15
|
5. Register local commits: `agentia cicd work push --json`
|
|
16
16
|
6. Validate and submit: `agentia cicd work submit --json`
|
|
17
|
-
7. Promote only on explicit approval: `agentia cicd work done --json`
|
|
17
|
+
7. Promote only on explicit approval: `agentia cicd work submit --done --json`
|
|
18
18
|
|
|
19
|
-
`work set`, `work push`,
|
|
19
|
+
`work set`, `work push`, and `work submit` expect a clean tracked working tree and the active story context recorded by `work set`.
|
|
20
20
|
|
|
21
21
|
## Core Commands
|
|
22
22
|
|
|
@@ -30,10 +30,9 @@ Use this reference for `agentia cicd work ...` and matching MCP tools such as `a
|
|
|
30
30
|
| `work commit` | Local or cloud commit | `--local` is default; `--cloud` calls Copado commit APIs and can poll a job. |
|
|
31
31
|
| `work push` | Push local commits and register with Copado | Requires active story context and clean tree. Sends stored retrieve-only permissions. |
|
|
32
32
|
| `work test --local` | Run local quality gate scripts | Runs `.agentia_quality_gates.sh` or `.agentia_quality_gates.cmd` from repo root. |
|
|
33
|
-
| `work submit` | Submit for review/validation | Runs local gates unless `--skip-local-tests`; can push ahead commits. |
|
|
34
|
-
| `work done` | Promote after approval | Pushes if needed, then promotes without validate-only behavior. |
|
|
33
|
+
| `work submit` | Submit for review/validation or promote | Runs local gates unless `--skip-local-tests`; can push ahead commits. `--done` matches Copado UI Submit when promoting. |
|
|
35
34
|
| `work promote` | Story-centric promotion run | Requires `--cloud`; use `--deploy` for merge and deploy. |
|
|
36
|
-
| `work status [ID]` | Check story and related executions | Useful after submit,
|
|
35
|
+
| `work status [ID]` | Check story and related executions | Useful after submit, promote, or commit jobs. |
|
|
37
36
|
| `work open [ID]` | Open story in browser | CLI-only browser helper. |
|
|
38
37
|
|
|
39
38
|
## Local Commit Path
|
|
@@ -79,6 +78,6 @@ Prefer explicit flags for standard step types. Use `--config-json`, `--file`, or
|
|
|
79
78
|
## Gotchas
|
|
80
79
|
|
|
81
80
|
- `work test --local` is not CRT. For Robot Framework execution, use the `agentia-testing` skill.
|
|
82
|
-
- `work submit`
|
|
83
|
-
- `work done` promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|
|
81
|
+
- `work submit` may push ahead commits, but `work set` is still required first.
|
|
82
|
+
- `work submit --done` promotes/deploys. Do not run it unless the user explicitly asked to promote or finish the story.
|
|
84
83
|
- `work delete` is destructive; read the story and confirm intent first.
|