@copado/agentia-cli 0.119.0-alpha.0 → 0.121.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.
Files changed (34) hide show
  1. package/README.md +235 -234
  2. package/dist/commands/cicd/work/done.js +2 -1
  3. package/dist/commands/cicd/work/done.js.map +1 -1
  4. package/dist/commands/cicd/work/publish.js +2 -1
  5. package/dist/commands/cicd/work/publish.js.map +1 -1
  6. package/dist/commands/cicd/work/push.js +2 -1
  7. package/dist/commands/cicd/work/push.js.map +1 -1
  8. package/dist/commands/cicd/work/submit.js +134 -132
  9. package/dist/commands/cicd/work/submit.js.map +1 -1
  10. package/dist/lib/agentia-command.d.ts +1 -0
  11. package/dist/lib/agentia-command.js +14 -1
  12. package/dist/lib/agentia-command.js.map +1 -1
  13. package/dist/lib/command-output-buffer.d.ts +31 -0
  14. package/dist/lib/command-output-buffer.js +124 -0
  15. package/dist/lib/command-output-buffer.js.map +1 -0
  16. package/dist/lib/loopback-callback-server.d.ts +1 -0
  17. package/dist/lib/loopback-callback-server.js +13 -6
  18. package/dist/lib/loopback-callback-server.js.map +1 -1
  19. package/dist/lib/mcp/tools.d.ts +20 -8
  20. package/dist/lib/mcp/work-tools.d.ts +20 -8
  21. package/dist/lib/mcp/work-tools.js +96 -95
  22. package/dist/lib/mcp/work-tools.js.map +1 -1
  23. package/dist/lib/work-publish-command.js +1 -1
  24. package/dist/lib/work-publish-command.js.map +1 -1
  25. package/dist/lib/work-push.d.ts +2 -0
  26. package/dist/lib/work-push.js +20 -6
  27. package/dist/lib/work-push.js.map +1 -1
  28. package/dist/lib/work-types.d.ts +10 -0
  29. package/dist/lib/work-types.js.map +1 -1
  30. package/dist/lib/yaml-replacement.d.ts +1 -0
  31. package/dist/lib/yaml-replacement.js +1 -0
  32. package/dist/lib/yaml-replacement.js.map +1 -1
  33. package/oclif.manifest.json +121 -121
  34. package/package.json +13 -3
@@ -6208,7 +6208,7 @@
6208
6208
  "cicd:work:publish": {
6209
6209
  "aliases": [],
6210
6210
  "args": {},
6211
- "description": "Publish 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`. Fetches origin/<lastBaseBranch>, then registers only commits in origin/<lastBaseBranch>..HEAD and diffs nested parent XML at merge-base(origin/<lastBaseBranch>, HEAD) versus HEAD, so origin/base-only history is ignored. When there are no commits since origin/<lastBaseBranch>, or origin already has HEAD, fails with \"No changes to publish\" unless `--permissions` and/or `--full-metadata` is set, in which case it creates an empty commit so a tip commit id exists. 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. `cicd work push` is a compatibility alias of this command.",
6211
+ "description": "Publish 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`. Fetches origin/<lastBaseBranch>, then registers only commits in origin/<lastBaseBranch>..HEAD and diffs nested parent XML at merge-base(origin/<lastBaseBranch>, HEAD) versus HEAD, so origin/base-only history is ignored. When there are no commits since origin/<lastBaseBranch>, or origin already has HEAD, fails with \"No changes to publish\" unless `--permissions` and/or `--full-metadata` is set, in which case it creates an empty commit so a tip commit id exists. Applies Copado environment-variable then yaml replacements to the added and modified files in origin/<lastBaseBranch>..HEAD (passed to the jars as `--include`; yaml `-b` is the feature branch, matching Copado Commit), 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. `cicd work push` is a compatibility alias of this command.",
6212
6212
  "examples": [
6213
6213
  "<%= config.bin %> <%= command.id %>",
6214
6214
  "<%= config.bin %> <%= command.id %> --permissions CustomField:Account.SLA__c,ApexClass:AccountService",
@@ -13043,19 +13043,13 @@
13043
13043
  "list.js"
13044
13044
  ]
13045
13045
  },
13046
- "cicd:data:dataset-file:content": {
13046
+ "cicd:data:commit:create": {
13047
13047
  "aliases": [],
13048
- "args": {
13049
- "contentVersionId": {
13050
- "description": "ContentVersion Id",
13051
- "name": "contentVersionId",
13052
- "required": true
13053
- }
13054
- },
13055
- "description": "Get dataset file content by ContentVersion Id",
13048
+ "args": {},
13049
+ "description": "Create a data commit for a user story",
13056
13050
  "examples": [
13057
- "<%= config.bin %> <%= command.id %> 068000000000001",
13058
- "<%= config.bin %> <%= command.id %> 068000000000001 --json"
13051
+ "<%= config.bin %> <%= command.id %> --file commit.json",
13052
+ "<%= config.bin %> <%= command.id %> --stdin --json"
13059
13053
  ],
13060
13054
  "flags": {
13061
13055
  "json": {
@@ -13064,11 +13058,31 @@
13064
13058
  "name": "json",
13065
13059
  "allowNo": false,
13066
13060
  "type": "boolean"
13061
+ },
13062
+ "file": {
13063
+ "char": "f",
13064
+ "description": "Path to a JSON file body",
13065
+ "exclusive": [
13066
+ "stdin"
13067
+ ],
13068
+ "name": "file",
13069
+ "hasDynamicHelp": false,
13070
+ "multiple": false,
13071
+ "type": "option"
13072
+ },
13073
+ "stdin": {
13074
+ "description": "Read the JSON body from stdin",
13075
+ "exclusive": [
13076
+ "file"
13077
+ ],
13078
+ "name": "stdin",
13079
+ "allowNo": false,
13080
+ "type": "boolean"
13067
13081
  }
13068
13082
  },
13069
13083
  "hasDynamicHelp": false,
13070
13084
  "hiddenAliases": [],
13071
- "id": "cicd:data:dataset-file:content",
13085
+ "id": "cicd:data:commit:create",
13072
13086
  "pluginAlias": "@copado/agentia-cli",
13073
13087
  "pluginName": "@copado/agentia-cli",
13074
13088
  "pluginType": "core",
@@ -13080,23 +13094,23 @@
13080
13094
  "commands",
13081
13095
  "cicd",
13082
13096
  "data",
13083
- "dataset-file",
13084
- "content.js"
13097
+ "commit",
13098
+ "create.js"
13085
13099
  ]
13086
13100
  },
13087
- "cicd:data:dataset-file:list": {
13101
+ "cicd:data:commit:list": {
13088
13102
  "aliases": [],
13089
13103
  "args": {
13090
- "userStoryDataCommitId": {
13091
- "description": "User story data commit Id",
13092
- "name": "userStoryDataCommitId",
13104
+ "userStoryId": {
13105
+ "description": "User story Id",
13106
+ "name": "userStoryId",
13093
13107
  "required": true
13094
13108
  }
13095
13109
  },
13096
- "description": "List dataset files for a user story data commit",
13110
+ "description": "List data commits for a user story",
13097
13111
  "examples": [
13098
- "<%= config.bin %> <%= command.id %> a1A000000000001",
13099
- "<%= config.bin %> <%= command.id %> a1A000000000001 --json"
13112
+ "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK",
13113
+ "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK --json"
13100
13114
  ],
13101
13115
  "flags": {
13102
13116
  "json": {
@@ -13109,7 +13123,7 @@
13109
13123
  },
13110
13124
  "hasDynamicHelp": false,
13111
13125
  "hiddenAliases": [],
13112
- "id": "cicd:data:dataset-file:list",
13126
+ "id": "cicd:data:commit:list",
13113
13127
  "pluginAlias": "@copado/agentia-cli",
13114
13128
  "pluginName": "@copado/agentia-cli",
13115
13129
  "pluginType": "core",
@@ -13121,7 +13135,7 @@
13121
13135
  "commands",
13122
13136
  "cicd",
13123
13137
  "data",
13124
- "dataset-file",
13138
+ "commit",
13125
13139
  "list.js"
13126
13140
  ]
13127
13141
  },
@@ -14335,6 +14349,88 @@
14335
14349
  "status.js"
14336
14350
  ]
14337
14351
  },
14352
+ "cicd:data:dataset-file:content": {
14353
+ "aliases": [],
14354
+ "args": {
14355
+ "contentVersionId": {
14356
+ "description": "ContentVersion Id",
14357
+ "name": "contentVersionId",
14358
+ "required": true
14359
+ }
14360
+ },
14361
+ "description": "Get dataset file content by ContentVersion Id",
14362
+ "examples": [
14363
+ "<%= config.bin %> <%= command.id %> 068000000000001",
14364
+ "<%= config.bin %> <%= command.id %> 068000000000001 --json"
14365
+ ],
14366
+ "flags": {
14367
+ "json": {
14368
+ "description": "Format output as json.",
14369
+ "helpGroup": "GLOBAL",
14370
+ "name": "json",
14371
+ "allowNo": false,
14372
+ "type": "boolean"
14373
+ }
14374
+ },
14375
+ "hasDynamicHelp": false,
14376
+ "hiddenAliases": [],
14377
+ "id": "cicd:data:dataset-file:content",
14378
+ "pluginAlias": "@copado/agentia-cli",
14379
+ "pluginName": "@copado/agentia-cli",
14380
+ "pluginType": "core",
14381
+ "strict": true,
14382
+ "enableJsonFlag": true,
14383
+ "isESM": true,
14384
+ "relativePath": [
14385
+ "dist",
14386
+ "commands",
14387
+ "cicd",
14388
+ "data",
14389
+ "dataset-file",
14390
+ "content.js"
14391
+ ]
14392
+ },
14393
+ "cicd:data:dataset-file:list": {
14394
+ "aliases": [],
14395
+ "args": {
14396
+ "userStoryDataCommitId": {
14397
+ "description": "User story data commit Id",
14398
+ "name": "userStoryDataCommitId",
14399
+ "required": true
14400
+ }
14401
+ },
14402
+ "description": "List dataset files for a user story data commit",
14403
+ "examples": [
14404
+ "<%= config.bin %> <%= command.id %> a1A000000000001",
14405
+ "<%= config.bin %> <%= command.id %> a1A000000000001 --json"
14406
+ ],
14407
+ "flags": {
14408
+ "json": {
14409
+ "description": "Format output as json.",
14410
+ "helpGroup": "GLOBAL",
14411
+ "name": "json",
14412
+ "allowNo": false,
14413
+ "type": "boolean"
14414
+ }
14415
+ },
14416
+ "hasDynamicHelp": false,
14417
+ "hiddenAliases": [],
14418
+ "id": "cicd:data:dataset-file:list",
14419
+ "pluginAlias": "@copado/agentia-cli",
14420
+ "pluginName": "@copado/agentia-cli",
14421
+ "pluginType": "core",
14422
+ "strict": true,
14423
+ "enableJsonFlag": true,
14424
+ "isESM": true,
14425
+ "relativePath": [
14426
+ "dist",
14427
+ "commands",
14428
+ "cicd",
14429
+ "data",
14430
+ "dataset-file",
14431
+ "list.js"
14432
+ ]
14433
+ },
14338
14434
  "cicd:function:result:get": {
14339
14435
  "aliases": [],
14340
14436
  "args": {
@@ -16444,102 +16540,6 @@
16444
16540
  "unresolve.js"
16445
16541
  ]
16446
16542
  },
16447
- "cicd:data:commit:create": {
16448
- "aliases": [],
16449
- "args": {},
16450
- "description": "Create a data commit for a user story",
16451
- "examples": [
16452
- "<%= config.bin %> <%= command.id %> --file commit.json",
16453
- "<%= config.bin %> <%= command.id %> --stdin --json"
16454
- ],
16455
- "flags": {
16456
- "json": {
16457
- "description": "Format output as json.",
16458
- "helpGroup": "GLOBAL",
16459
- "name": "json",
16460
- "allowNo": false,
16461
- "type": "boolean"
16462
- },
16463
- "file": {
16464
- "char": "f",
16465
- "description": "Path to a JSON file body",
16466
- "exclusive": [
16467
- "stdin"
16468
- ],
16469
- "name": "file",
16470
- "hasDynamicHelp": false,
16471
- "multiple": false,
16472
- "type": "option"
16473
- },
16474
- "stdin": {
16475
- "description": "Read the JSON body from stdin",
16476
- "exclusive": [
16477
- "file"
16478
- ],
16479
- "name": "stdin",
16480
- "allowNo": false,
16481
- "type": "boolean"
16482
- }
16483
- },
16484
- "hasDynamicHelp": false,
16485
- "hiddenAliases": [],
16486
- "id": "cicd:data:commit:create",
16487
- "pluginAlias": "@copado/agentia-cli",
16488
- "pluginName": "@copado/agentia-cli",
16489
- "pluginType": "core",
16490
- "strict": true,
16491
- "enableJsonFlag": true,
16492
- "isESM": true,
16493
- "relativePath": [
16494
- "dist",
16495
- "commands",
16496
- "cicd",
16497
- "data",
16498
- "commit",
16499
- "create.js"
16500
- ]
16501
- },
16502
- "cicd:data:commit:list": {
16503
- "aliases": [],
16504
- "args": {
16505
- "userStoryId": {
16506
- "description": "User story Id",
16507
- "name": "userStoryId",
16508
- "required": true
16509
- }
16510
- },
16511
- "description": "List data commits for a user story",
16512
- "examples": [
16513
- "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK",
16514
- "<%= config.bin %> <%= command.id %> a16P7000006AyU5IAK --json"
16515
- ],
16516
- "flags": {
16517
- "json": {
16518
- "description": "Format output as json.",
16519
- "helpGroup": "GLOBAL",
16520
- "name": "json",
16521
- "allowNo": false,
16522
- "type": "boolean"
16523
- }
16524
- },
16525
- "hasDynamicHelp": false,
16526
- "hiddenAliases": [],
16527
- "id": "cicd:data:commit:list",
16528
- "pluginAlias": "@copado/agentia-cli",
16529
- "pluginName": "@copado/agentia-cli",
16530
- "pluginType": "core",
16531
- "strict": true,
16532
- "enableJsonFlag": true,
16533
- "isESM": true,
16534
- "relativePath": [
16535
- "dist",
16536
- "commands",
16537
- "cicd",
16538
- "data",
16539
- "commit",
16540
- "list.js"
16541
- ]
16542
- },
16543
16543
  "cicd:work:deployment-step:create": {
16544
16544
  "aliases": [],
16545
16545
  "args": {},
@@ -17722,5 +17722,5 @@
17722
17722
  ]
17723
17723
  }
17724
17724
  },
17725
- "version": "0.119.0-alpha.0"
17725
+ "version": "0.121.0-alpha.0"
17726
17726
  }
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.119.0-alpha.0",
4
+ "version": "0.121.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -214,7 +214,15 @@
214
214
  "overrides": {
215
215
  "exceljs": {
216
216
  "uuid": "11.1.1"
217
- }
217
+ },
218
+ "brace-expansion@1": "1.1.18",
219
+ "brace-expansion@2": "2.1.4",
220
+ "brace-expansion@5": "5.0.9",
221
+ "browserslist": "4.28.9",
222
+ "fast-uri": "3.1.6",
223
+ "js-yaml": "4.3.2",
224
+ "npm": "11.19.1",
225
+ "serialize-javascript": "7.0.5"
218
226
  },
219
227
  "repository": "Copado/agentia-cli",
220
228
  "scripts": {
@@ -229,8 +237,10 @@
229
237
  "posttest": "npm run lint",
230
238
  "pretest": "shx rm -rf dist oclif.manifest.json",
231
239
  "package:prepare": "npm run build && oclif manifest && oclif readme && node scripts/align-alpha-readme.mjs",
232
- "package:verify": "node scripts/verify-package.mjs",
240
+ "package:verify": "npm run security:gate && node scripts/verify-package.mjs",
233
241
  "prepack": "npm run package:prepare",
242
+ "security:gate": "node scripts/security-scan.mjs --gate",
243
+ "security:scan": "node scripts/security-scan.mjs",
234
244
  "pretest:integration": "shx rm -rf dist oclif.manifest.json",
235
245
  "setup:local-gateway": "node scripts/setup-local-gateway.mjs",
236
246
  "smoke:local-gateway": "node scripts/smoke-local-gateway.mjs",