@copado/agentia-cli 1.0.0-beta.9 → 1.0.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.
@@ -33,11 +33,19 @@
33
33
  "setup": {
34
34
  "aliases": [],
35
35
  "args": {},
36
- "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.",
36
+ "description": "Prepare this machine and the current project for Agentia. Guides CICD, AI, and CRT authentication, Cursor MCP, local quality gates, and AGENTS.md. Use --skip-auth to skip authentication and continue with Cursor MCP and project setup. Git is optional: .gitignore is updated only inside a repository, and generated files are not committed.",
37
37
  "examples": [
38
- "<%= config.bin %> <%= command.id %>"
38
+ "<%= config.bin %> <%= command.id %>",
39
+ "<%= config.bin %> <%= command.id %> --skip-auth"
39
40
  ],
40
- "flags": {},
41
+ "flags": {
42
+ "skip-auth": {
43
+ "description": "Skip CICD, AI, and CRT authentication; continue with Cursor MCP and project setup",
44
+ "name": "skip-auth",
45
+ "allowNo": false,
46
+ "type": "boolean"
47
+ }
48
+ },
41
49
  "hasDynamicHelp": false,
42
50
  "hiddenAliases": [],
43
51
  "id": "setup",
@@ -57,10 +65,12 @@
57
65
  "update": {
58
66
  "aliases": [],
59
67
  "args": {},
60
- "description": "Update the globally installed Agentia CLI to the newest beta release",
68
+ "description": "Update the globally installed Agentia CLI to the newest release for the selected channel",
61
69
  "examples": [
62
70
  "<%= config.bin %> <%= command.id %>",
63
71
  "<%= config.bin %> <%= command.id %> --check",
72
+ "<%= config.bin %> <%= command.id %> --channel latest --check",
73
+ "<%= config.bin %> <%= command.id %> --channel rc",
64
74
  "<%= config.bin %> <%= command.id %> --check --json"
65
75
  ],
66
76
  "flags": {
@@ -71,8 +81,19 @@
71
81
  "allowNo": false,
72
82
  "type": "boolean"
73
83
  },
84
+ "channel": {
85
+ "description": "npm dist-tag to check or install (rc or latest). Also saves that channel as the preferred update channel when an install runs. Omit to auto-select from the stored preference or install type: prerelease installs and an rc preference compare rc and latest; stable installs with a latest preference (or no preference) use latest only.",
86
+ "name": "channel",
87
+ "hasDynamicHelp": false,
88
+ "multiple": false,
89
+ "options": [
90
+ "rc",
91
+ "latest"
92
+ ],
93
+ "type": "option"
94
+ },
74
95
  "check": {
75
- "description": "Check for an update without installing it",
96
+ "description": "Check for an update without installing it or changing the preferred channel",
76
97
  "name": "check",
77
98
  "allowNo": false,
78
99
  "type": "boolean"
@@ -389,32 +410,6 @@
389
410
  "unset.js"
390
411
  ]
391
412
  },
392
- "mcp:start": {
393
- "aliases": [],
394
- "args": {},
395
- "description": "Start the local Agentia MCP server over stdio",
396
- "examples": [
397
- "<%= config.bin %> <%= command.id %>",
398
- "<%= config.bin %> <%= command.id %> # long-running stdio MCP server for Cursor and other clients"
399
- ],
400
- "flags": {},
401
- "hasDynamicHelp": false,
402
- "hiddenAliases": [],
403
- "id": "mcp:start",
404
- "pluginAlias": "@copado/agentia-cli",
405
- "pluginName": "@copado/agentia-cli",
406
- "pluginType": "core",
407
- "strict": true,
408
- "enableJsonFlag": false,
409
- "experimental": false,
410
- "isESM": true,
411
- "relativePath": [
412
- "dist",
413
- "commands",
414
- "mcp",
415
- "start.js"
416
- ]
417
- },
418
413
  "cicd:health-check": {
419
414
  "aliases": [],
420
415
  "args": {},
@@ -467,6 +462,32 @@
467
462
  "health-check.js"
468
463
  ]
469
464
  },
465
+ "mcp:start": {
466
+ "aliases": [],
467
+ "args": {},
468
+ "description": "Start the local Agentia MCP server over stdio",
469
+ "examples": [
470
+ "<%= config.bin %> <%= command.id %>",
471
+ "<%= config.bin %> <%= command.id %> # long-running stdio MCP server for Cursor and other clients"
472
+ ],
473
+ "flags": {},
474
+ "hasDynamicHelp": false,
475
+ "hiddenAliases": [],
476
+ "id": "mcp:start",
477
+ "pluginAlias": "@copado/agentia-cli",
478
+ "pluginName": "@copado/agentia-cli",
479
+ "pluginType": "core",
480
+ "strict": true,
481
+ "enableJsonFlag": false,
482
+ "experimental": false,
483
+ "isESM": true,
484
+ "relativePath": [
485
+ "dist",
486
+ "commands",
487
+ "mcp",
488
+ "start.js"
489
+ ]
490
+ },
470
491
  "plugins:install": {
471
492
  "aliases": [
472
493
  "plugins:add"
@@ -4504,175 +4525,6 @@
4504
4525
  "upsert.js"
4505
4526
  ]
4506
4527
  },
4507
- "cicd:metadata:list": {
4508
- "aliases": [],
4509
- "args": {},
4510
- "description": "Search the metadata index for an org via the CICD gateway",
4511
- "examples": [
4512
- "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
4513
- "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
4514
- "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
4515
- ],
4516
- "flags": {
4517
- "json": {
4518
- "description": "Format output as json.",
4519
- "helpGroup": "GLOBAL",
4520
- "name": "json",
4521
- "allowNo": false,
4522
- "type": "boolean"
4523
- },
4524
- "avoid-source-tracking": {
4525
- "description": "Pass avoidSourceTracking=true to the gateway index route",
4526
- "name": "avoid-source-tracking",
4527
- "allowNo": false,
4528
- "type": "boolean"
4529
- },
4530
- "change-date-from": {
4531
- "description": "Optional change-date-from filter (ISO datetime)",
4532
- "name": "change-date-from",
4533
- "hasDynamicHelp": false,
4534
- "multiple": false,
4535
- "type": "option"
4536
- },
4537
- "change-date-to": {
4538
- "description": "Optional change-date-to filter (ISO datetime)",
4539
- "name": "change-date-to",
4540
- "hasDynamicHelp": false,
4541
- "multiple": false,
4542
- "type": "option"
4543
- },
4544
- "filter-type": {
4545
- "description": "Optional metadata type name filter, for example ApexClass",
4546
- "name": "filter-type",
4547
- "hasDynamicHelp": false,
4548
- "multiple": false,
4549
- "type": "option"
4550
- },
4551
- "find-managed-packages": {
4552
- "description": "Include managed package metadata in the search",
4553
- "name": "find-managed-packages",
4554
- "allowNo": false,
4555
- "type": "boolean"
4556
- },
4557
- "limit": {
4558
- "description": "Maximum number of records to return",
4559
- "name": "limit",
4560
- "hasDynamicHelp": false,
4561
- "multiple": false,
4562
- "type": "option"
4563
- },
4564
- "metadata-types": {
4565
- "description": "Optional comma-separated metadata types to include",
4566
- "name": "metadata-types",
4567
- "hasDynamicHelp": false,
4568
- "multiple": false,
4569
- "type": "option"
4570
- },
4571
- "modified-by": {
4572
- "description": "Filter by last modified user",
4573
- "name": "modified-by",
4574
- "hasDynamicHelp": false,
4575
- "multiple": false,
4576
- "type": "option"
4577
- },
4578
- "module-type": {
4579
- "description": "Optional addon module type",
4580
- "name": "module-type",
4581
- "hasDynamicHelp": false,
4582
- "multiple": false,
4583
- "options": [
4584
- "vlocity",
4585
- "data_cloud"
4586
- ],
4587
- "type": "option"
4588
- },
4589
- "order-direction": {
4590
- "description": "Sort direction for last modified date",
4591
- "name": "order-direction",
4592
- "hasDynamicHelp": false,
4593
- "multiple": false,
4594
- "options": [
4595
- "ASC",
4596
- "DESC"
4597
- ],
4598
- "type": "option"
4599
- },
4600
- "pipeline-id": {
4601
- "description": "Pipeline Id",
4602
- "name": "pipeline-id",
4603
- "hasDynamicHelp": false,
4604
- "multiple": false,
4605
- "type": "option"
4606
- },
4607
- "platform-experience": {
4608
- "description": "Gateway platform experience header",
4609
- "name": "platform-experience",
4610
- "default": "salesforce",
4611
- "hasDynamicHelp": false,
4612
- "multiple": false,
4613
- "options": [
4614
- "salesforce",
4615
- "sfdx",
4616
- "metacache",
4617
- "db"
4618
- ],
4619
- "type": "option"
4620
- },
4621
- "source": {
4622
- "description": "Index source filter",
4623
- "name": "source",
4624
- "hasDynamicHelp": false,
4625
- "multiple": false,
4626
- "options": [
4627
- "All",
4628
- "Changed",
4629
- "Deleted",
4630
- "New",
4631
- "NewAndChanged",
4632
- "PreviouslyCommitted"
4633
- ],
4634
- "type": "option"
4635
- },
4636
- "source-credential-id": {
4637
- "description": "Source org credential Id",
4638
- "name": "source-credential-id",
4639
- "hasDynamicHelp": false,
4640
- "multiple": false,
4641
- "type": "option"
4642
- },
4643
- "source-org-id": {
4644
- "description": "Source org Id",
4645
- "name": "source-org-id",
4646
- "hasDynamicHelp": false,
4647
- "multiple": false,
4648
- "type": "option"
4649
- },
4650
- "target-org-id": {
4651
- "description": "Optional target org Id",
4652
- "name": "target-org-id",
4653
- "hasDynamicHelp": false,
4654
- "multiple": false,
4655
- "type": "option"
4656
- }
4657
- },
4658
- "hasDynamicHelp": false,
4659
- "hiddenAliases": [],
4660
- "id": "cicd:metadata:list",
4661
- "pluginAlias": "@copado/agentia-cli",
4662
- "pluginName": "@copado/agentia-cli",
4663
- "pluginType": "core",
4664
- "strict": true,
4665
- "enableJsonFlag": true,
4666
- "experimental": false,
4667
- "isESM": true,
4668
- "relativePath": [
4669
- "dist",
4670
- "commands",
4671
- "cicd",
4672
- "metadata",
4673
- "list.js"
4674
- ]
4675
- },
4676
4528
  "cicd:job:get": {
4677
4529
  "aliases": [],
4678
4530
  "args": {
@@ -5024,14 +4876,14 @@
5024
4876
  "run.js"
5025
4877
  ]
5026
4878
  },
5027
- "cicd:notification:configure": {
4879
+ "cicd:metadata:list": {
5028
4880
  "aliases": [],
5029
4881
  "args": {},
5030
- "description": "Configure one Slack notification subscription for the current user on a pipeline",
4882
+ "description": "Search the metadata index for an org via the CICD gateway",
5031
4883
  "examples": [
5032
- "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event Promotion_Failed --destination-type user --destination-id U0123ABCD --subscription user",
5033
- "<%= config.bin %> <%= command.id %> -p <pipeline-id> --event Commit_Failed --destination-type channel --destination-id C0123ABCD --subscription all",
5034
- "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event \"Test_Not Started\" --destination-type user --destination-id @jane --subscription user --json"
4884
+ "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
4885
+ "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
4886
+ "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
5035
4887
  ],
5036
4888
  "flags": {
5037
4889
  "json": {
@@ -5041,13 +4893,182 @@
5041
4893
  "allowNo": false,
5042
4894
  "type": "boolean"
5043
4895
  },
5044
- "destination-id": {
5045
- "description": "Slack user or channel id or name",
5046
- "name": "destination-id",
5047
- "required": true,
5048
- "hasDynamicHelp": false,
5049
- "multiple": false,
5050
- "type": "option"
4896
+ "avoid-source-tracking": {
4897
+ "description": "Pass avoidSourceTracking=true to the gateway index route",
4898
+ "name": "avoid-source-tracking",
4899
+ "allowNo": false,
4900
+ "type": "boolean"
4901
+ },
4902
+ "change-date-from": {
4903
+ "description": "Optional change-date-from filter (ISO datetime)",
4904
+ "name": "change-date-from",
4905
+ "hasDynamicHelp": false,
4906
+ "multiple": false,
4907
+ "type": "option"
4908
+ },
4909
+ "change-date-to": {
4910
+ "description": "Optional change-date-to filter (ISO datetime)",
4911
+ "name": "change-date-to",
4912
+ "hasDynamicHelp": false,
4913
+ "multiple": false,
4914
+ "type": "option"
4915
+ },
4916
+ "filter-type": {
4917
+ "description": "Optional metadata type name filter, for example ApexClass",
4918
+ "name": "filter-type",
4919
+ "hasDynamicHelp": false,
4920
+ "multiple": false,
4921
+ "type": "option"
4922
+ },
4923
+ "find-managed-packages": {
4924
+ "description": "Include managed package metadata in the search",
4925
+ "name": "find-managed-packages",
4926
+ "allowNo": false,
4927
+ "type": "boolean"
4928
+ },
4929
+ "limit": {
4930
+ "description": "Maximum number of records to return",
4931
+ "name": "limit",
4932
+ "hasDynamicHelp": false,
4933
+ "multiple": false,
4934
+ "type": "option"
4935
+ },
4936
+ "metadata-types": {
4937
+ "description": "Optional comma-separated metadata types to include",
4938
+ "name": "metadata-types",
4939
+ "hasDynamicHelp": false,
4940
+ "multiple": false,
4941
+ "type": "option"
4942
+ },
4943
+ "modified-by": {
4944
+ "description": "Filter by last modified user",
4945
+ "name": "modified-by",
4946
+ "hasDynamicHelp": false,
4947
+ "multiple": false,
4948
+ "type": "option"
4949
+ },
4950
+ "module-type": {
4951
+ "description": "Optional addon module type",
4952
+ "name": "module-type",
4953
+ "hasDynamicHelp": false,
4954
+ "multiple": false,
4955
+ "options": [
4956
+ "vlocity",
4957
+ "data_cloud"
4958
+ ],
4959
+ "type": "option"
4960
+ },
4961
+ "order-direction": {
4962
+ "description": "Sort direction for last modified date",
4963
+ "name": "order-direction",
4964
+ "hasDynamicHelp": false,
4965
+ "multiple": false,
4966
+ "options": [
4967
+ "ASC",
4968
+ "DESC"
4969
+ ],
4970
+ "type": "option"
4971
+ },
4972
+ "pipeline-id": {
4973
+ "description": "Pipeline Id",
4974
+ "name": "pipeline-id",
4975
+ "hasDynamicHelp": false,
4976
+ "multiple": false,
4977
+ "type": "option"
4978
+ },
4979
+ "platform-experience": {
4980
+ "description": "Gateway platform experience header",
4981
+ "name": "platform-experience",
4982
+ "default": "salesforce",
4983
+ "hasDynamicHelp": false,
4984
+ "multiple": false,
4985
+ "options": [
4986
+ "salesforce",
4987
+ "sfdx",
4988
+ "metacache",
4989
+ "db"
4990
+ ],
4991
+ "type": "option"
4992
+ },
4993
+ "source": {
4994
+ "description": "Index source filter",
4995
+ "name": "source",
4996
+ "hasDynamicHelp": false,
4997
+ "multiple": false,
4998
+ "options": [
4999
+ "All",
5000
+ "Changed",
5001
+ "Deleted",
5002
+ "New",
5003
+ "NewAndChanged",
5004
+ "PreviouslyCommitted"
5005
+ ],
5006
+ "type": "option"
5007
+ },
5008
+ "source-credential-id": {
5009
+ "description": "Source org credential Id",
5010
+ "name": "source-credential-id",
5011
+ "hasDynamicHelp": false,
5012
+ "multiple": false,
5013
+ "type": "option"
5014
+ },
5015
+ "source-org-id": {
5016
+ "description": "Source org Id",
5017
+ "name": "source-org-id",
5018
+ "hasDynamicHelp": false,
5019
+ "multiple": false,
5020
+ "type": "option"
5021
+ },
5022
+ "target-org-id": {
5023
+ "description": "Optional target org Id",
5024
+ "name": "target-org-id",
5025
+ "hasDynamicHelp": false,
5026
+ "multiple": false,
5027
+ "type": "option"
5028
+ }
5029
+ },
5030
+ "hasDynamicHelp": false,
5031
+ "hiddenAliases": [],
5032
+ "id": "cicd:metadata:list",
5033
+ "pluginAlias": "@copado/agentia-cli",
5034
+ "pluginName": "@copado/agentia-cli",
5035
+ "pluginType": "core",
5036
+ "strict": true,
5037
+ "enableJsonFlag": true,
5038
+ "experimental": false,
5039
+ "isESM": true,
5040
+ "relativePath": [
5041
+ "dist",
5042
+ "commands",
5043
+ "cicd",
5044
+ "metadata",
5045
+ "list.js"
5046
+ ]
5047
+ },
5048
+ "cicd:notification:configure": {
5049
+ "aliases": [],
5050
+ "args": {},
5051
+ "description": "Configure one Slack notification subscription for the current user on a pipeline",
5052
+ "examples": [
5053
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event Promotion_Failed --destination-type user --destination-id U0123ABCD --subscription user",
5054
+ "<%= config.bin %> <%= command.id %> -p <pipeline-id> --event Commit_Failed --destination-type channel --destination-id C0123ABCD --subscription all",
5055
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --event \"Test_Not Started\" --destination-type user --destination-id @jane --subscription user --json"
5056
+ ],
5057
+ "flags": {
5058
+ "json": {
5059
+ "description": "Format output as json.",
5060
+ "helpGroup": "GLOBAL",
5061
+ "name": "json",
5062
+ "allowNo": false,
5063
+ "type": "boolean"
5064
+ },
5065
+ "destination-id": {
5066
+ "description": "Slack user or channel id or name",
5067
+ "name": "destination-id",
5068
+ "required": true,
5069
+ "hasDynamicHelp": false,
5070
+ "multiple": false,
5071
+ "type": "option"
5051
5072
  },
5052
5073
  "destination-type": {
5053
5074
  "description": "Slack destination type",
@@ -7473,6 +7494,56 @@
7473
7494
  "get.js"
7474
7495
  ]
7475
7496
  },
7497
+ "cicd:work:ahead-behind": {
7498
+ "aliases": [],
7499
+ "args": {
7500
+ "environment": {
7501
+ "description": "Copado environment Id or name (defaults to the configured project default environment)",
7502
+ "name": "environment",
7503
+ "required": false
7504
+ }
7505
+ },
7506
+ "description": "Compare user stories ahead of and behind the next pipeline environment. Resolves the project (and its pipeline) from the project default or --project, finds the unique next environment from pipeline connections for the given or default environment, then GET /agentia/headless/work/user-stories-ahead-behind.",
7507
+ "examples": [
7508
+ "<%= config.bin %> <%= command.id %>",
7509
+ "<%= config.bin %> <%= command.id %> dev1",
7510
+ "<%= config.bin %> <%= command.id %> a0E... --project a0w...",
7511
+ "<%= config.bin %> <%= command.id %> --json"
7512
+ ],
7513
+ "flags": {
7514
+ "json": {
7515
+ "description": "Format output as json.",
7516
+ "helpGroup": "GLOBAL",
7517
+ "name": "json",
7518
+ "allowNo": false,
7519
+ "type": "boolean"
7520
+ },
7521
+ "project": {
7522
+ "description": "Copado project Id (defaults to the configured project default)",
7523
+ "name": "project",
7524
+ "hasDynamicHelp": false,
7525
+ "multiple": false,
7526
+ "type": "option"
7527
+ }
7528
+ },
7529
+ "hasDynamicHelp": false,
7530
+ "hiddenAliases": [],
7531
+ "id": "cicd:work:ahead-behind",
7532
+ "pluginAlias": "@copado/agentia-cli",
7533
+ "pluginName": "@copado/agentia-cli",
7534
+ "pluginType": "core",
7535
+ "strict": true,
7536
+ "enableJsonFlag": true,
7537
+ "experimental": false,
7538
+ "isESM": true,
7539
+ "relativePath": [
7540
+ "dist",
7541
+ "commands",
7542
+ "cicd",
7543
+ "work",
7544
+ "ahead-behind.js"
7545
+ ]
7546
+ },
7476
7547
  "cicd:work:commit": {
7477
7548
  "aliases": [],
7478
7549
  "args": {
@@ -7943,7 +8014,7 @@
7943
8014
  "cicd:work:environment-sync": {
7944
8015
  "aliases": [],
7945
8016
  "args": {},
7946
- "description": "Sync committed metadata from the next environment onto the destination environment (or current feature branch). Back-promotes every user story behind the destination environment from the next environment branch. GET user stories ahead and behind. If none are behind, log that and stop. Otherwise create a back-promotion and POST those behind stories onto the promotion. Resolves the next-environment Git branch from --destination-environment or --dev-org-branch (the dest pipeline connection destinationBranch, or that destination environment's outbound branch). Merges origin/<next-env> with --no-ff --no-commit, restores every other path from HEAD, commits the guessed pathspecs, and pushes the dest org branch (and the feature branch when HEAD starts with feature/). If guessed pathspecs still conflict, PATCH the back-promotion status to Merge Conflict, resolve the files, and re-run with --promotion and --continue. The promotion destination environment supplies the dest org branch and the next-env branch. To discard a conflicted merge, re-run with --promotion and --abort (runs git merge --abort and sets the back-promotion status to Draft). After a successful sync, PATCH the back-promotion status to Completed.",
8017
+ "description": "Sync committed metadata from the next environment onto the destination environment (or current feature branch). Back-promotes every user story behind the destination environment from the next environment branch. GET user stories ahead and behind. If none are behind, log that and stop. Otherwise create a back-promotion and POST those behind stories onto the promotion. Resolves the next-environment Git branch from --destination-environment or --dev-org-branch (the dest pipeline connection destinationBranch, or that destination environment's outbound branch). Merges origin/<next-env> with --no-ff --no-commit, restores every other path from HEAD, commits the guessed pathspecs, and pushes the dest org branch (and the feature branch when HEAD starts with feature/). If guessed pathspecs still conflict, PATCH the back-promotion status to Merge Conflict, resolve the files, and re-run with --promotion and --continue. The promotion destination environment supplies the dest org branch and the next-env branch. To discard a conflicted merge, re-run with --promotion and --abort (runs git merge --abort and sets the back-promotion status to Draft). After a successful sync, PATCH the back-promotion status to Completed. On git/merge failure (including conflicts) and after a successful --continue, uploads the captured command transcript as a Salesforce File on the back-promotion (`Environment Sync Logs <name-or-id> <datetime>.txt`) via `/agentia/headless/file/upload`. HTTP 404 is ignored until that endpoint is rolled out; other upload failures are warned and do not change the environment-sync outcome.",
7947
8018
  "examples": [
7948
8019
  "<%= config.bin %> <%= command.id %> --destination-environment=dev1",
7949
8020
  "<%= config.bin %> <%= command.id %> --dev-org-branch=dev1-sfp",
@@ -8380,7 +8451,7 @@
8380
8451
  "cicd:work:publish": {
8381
8452
  "aliases": [],
8382
8453
  "args": {},
8383
- "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. `--dry-run` runs commit collection, replacements, and nested detection, logs the changeListUpdate that would be sent, skips empty/replacement commits, tip lock, git push, headless register, and dev-org sync, then restores only the tracked files dirtied by replacements (untracked files are left alone). `cicd work push` is a compatibility alias of this command.",
8454
+ "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. After a successful register, uploads the captured command output as a Salesforce File on the user story (`Local Commit Logs <commitId> <datetime>.txt`) via `/agentia/headless/file/upload`. HTTP 404 is ignored until that endpoint is rolled out; other upload failures are warned and do not fail the publish. `--dry-run` runs commit collection, replacements, and nested detection, logs the changeListUpdate that would be sent, skips empty/replacement commits, tip lock, git push, headless register, log upload, and dev-org sync, then restores only the tracked files dirtied by replacements (untracked files are left alone). `cicd work push` is a compatibility alias of this command.",
8384
8455
  "examples": [
8385
8456
  "<%= config.bin %> <%= command.id %>",
8386
8457
  "<%= config.bin %> <%= command.id %> --dry-run",
@@ -8613,7 +8684,7 @@
8613
8684
  "cicd:work:submit": {
8614
8685
  "aliases": [],
8615
8686
  "args": {},
8616
- "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). When the last pending related job template name contains Commit, waits up to 5 minutes for that job before submitting. Before submit or promote, counts user stories ahead and behind between the source environment and the next pipeline environment, and warns when stories behind might cause promotion conflicts (advising `agentia cicd work environment-sync`). With --done or --deploy, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
8687
+ "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). When the last pending related job template name contains Commit, waits up to 5 minutes for that job before submitting. Before submit or promote, counts user stories ahead and behind between the source environment and the next pipeline environment, and warns when stories behind might cause promotion conflicts (advising `agentia cicd work environment-sync`). After a successful submit or promote, uploads the captured command output as a Salesforce File on the user story (`Local Commit Logs <commitId> <datetime>.txt`) via `/agentia/headless/file/upload`. HTTP 404 is ignored until that endpoint is rolled out; other upload failures are warned and do not fail the command. With --done or --deploy, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
8617
8688
  "examples": [
8618
8689
  "<%= config.bin %> <%= command.id %>",
8619
8690
  "<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
@@ -16783,14 +16854,20 @@
16783
16854
  "get.js"
16784
16855
  ]
16785
16856
  },
16786
- "cicd:metadata:content:compare": {
16857
+ "cicd:job:log:get": {
16787
16858
  "aliases": [],
16788
- "args": {},
16789
- "description": "Compare metadata file content between two orgs or Git branches",
16859
+ "args": {
16860
+ "id": {
16861
+ "description": "JobExecution Id",
16862
+ "name": "id",
16863
+ "required": true
16864
+ }
16865
+ },
16866
+ "description": "Get log output for a Copado job execution step",
16790
16867
  "examples": [
16791
- "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
16792
- "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --source REPOSITORY --source-branch feature/us-123 --target-source REPOSITORY --target-branch main",
16793
- "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --json"
16868
+ "<%= config.bin %> <%= command.id %> <job-id>",
16869
+ "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
16870
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
16794
16871
  ],
16795
16872
  "flags": {
16796
16873
  "json": {
@@ -16800,31 +16877,175 @@
16800
16877
  "allowNo": false,
16801
16878
  "type": "boolean"
16802
16879
  },
16803
- "api-name": {
16804
- "description": "Metadata API name",
16805
- "name": "api-name",
16806
- "required": true,
16807
- "hasDynamicHelp": false,
16808
- "multiple": false,
16809
- "type": "option"
16810
- },
16811
- "file-name": {
16812
- "description": "Optional metadata file name",
16813
- "name": "file-name",
16814
- "hasDynamicHelp": false,
16815
- "multiple": false,
16816
- "type": "option"
16817
- },
16818
- "metadata-type": {
16819
- "description": "Metadata type, for example ApexClass",
16820
- "name": "metadata-type",
16821
- "required": true,
16880
+ "step": {
16881
+ "description": "Job step Id (defaults to the first step with a result Id)",
16882
+ "name": "step",
16822
16883
  "hasDynamicHelp": false,
16823
16884
  "multiple": false,
16824
16885
  "type": "option"
16825
- },
16826
- "pipeline-id": {
16827
- "description": "Pipeline Id",
16886
+ }
16887
+ },
16888
+ "hasDynamicHelp": false,
16889
+ "hiddenAliases": [],
16890
+ "id": "cicd:job:log:get",
16891
+ "pluginAlias": "@copado/agentia-cli",
16892
+ "pluginName": "@copado/agentia-cli",
16893
+ "pluginType": "core",
16894
+ "strict": true,
16895
+ "enableJsonFlag": true,
16896
+ "experimental": false,
16897
+ "isESM": true,
16898
+ "relativePath": [
16899
+ "dist",
16900
+ "commands",
16901
+ "cicd",
16902
+ "job",
16903
+ "log",
16904
+ "get.js"
16905
+ ]
16906
+ },
16907
+ "cicd:job:result-file:get": {
16908
+ "aliases": [],
16909
+ "args": {
16910
+ "resultId": {
16911
+ "description": "Copado Result Id",
16912
+ "name": "resultId",
16913
+ "required": true
16914
+ }
16915
+ },
16916
+ "description": "Get a File linked to a Copado job Result",
16917
+ "examples": [
16918
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id>",
16919
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --output-file ./result.zip",
16920
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --json"
16921
+ ],
16922
+ "flags": {
16923
+ "json": {
16924
+ "description": "Format output as json.",
16925
+ "helpGroup": "GLOBAL",
16926
+ "name": "json",
16927
+ "allowNo": false,
16928
+ "type": "boolean"
16929
+ },
16930
+ "file-id": {
16931
+ "description": "File Id returned by result-file list",
16932
+ "name": "file-id",
16933
+ "required": true,
16934
+ "hasDynamicHelp": false,
16935
+ "multiple": false,
16936
+ "type": "option"
16937
+ },
16938
+ "output-file": {
16939
+ "description": "Explicit file path to receive decoded content",
16940
+ "name": "output-file",
16941
+ "hasDynamicHelp": false,
16942
+ "multiple": false,
16943
+ "type": "option"
16944
+ }
16945
+ },
16946
+ "hasDynamicHelp": false,
16947
+ "hiddenAliases": [],
16948
+ "id": "cicd:job:result-file:get",
16949
+ "pluginAlias": "@copado/agentia-cli",
16950
+ "pluginName": "@copado/agentia-cli",
16951
+ "pluginType": "core",
16952
+ "strict": true,
16953
+ "enableJsonFlag": true,
16954
+ "experimental": false,
16955
+ "isESM": true,
16956
+ "relativePath": [
16957
+ "dist",
16958
+ "commands",
16959
+ "cicd",
16960
+ "job",
16961
+ "result-file",
16962
+ "get.js"
16963
+ ]
16964
+ },
16965
+ "cicd:job:result-file:list": {
16966
+ "aliases": [],
16967
+ "args": {
16968
+ "resultId": {
16969
+ "description": "Copado Result Id",
16970
+ "name": "resultId",
16971
+ "required": true
16972
+ }
16973
+ },
16974
+ "description": "List Files linked to a Copado job Result",
16975
+ "examples": [
16976
+ "<%= config.bin %> <%= command.id %> <result-id>",
16977
+ "<%= config.bin %> <%= command.id %> <result-id> --json"
16978
+ ],
16979
+ "flags": {
16980
+ "json": {
16981
+ "description": "Format output as json.",
16982
+ "helpGroup": "GLOBAL",
16983
+ "name": "json",
16984
+ "allowNo": false,
16985
+ "type": "boolean"
16986
+ }
16987
+ },
16988
+ "hasDynamicHelp": false,
16989
+ "hiddenAliases": [],
16990
+ "id": "cicd:job:result-file:list",
16991
+ "pluginAlias": "@copado/agentia-cli",
16992
+ "pluginName": "@copado/agentia-cli",
16993
+ "pluginType": "core",
16994
+ "strict": true,
16995
+ "enableJsonFlag": true,
16996
+ "experimental": false,
16997
+ "isESM": true,
16998
+ "relativePath": [
16999
+ "dist",
17000
+ "commands",
17001
+ "cicd",
17002
+ "job",
17003
+ "result-file",
17004
+ "list.js"
17005
+ ]
17006
+ },
17007
+ "cicd:metadata:content:compare": {
17008
+ "aliases": [],
17009
+ "args": {},
17010
+ "description": "Compare metadata file content between two orgs or Git branches",
17011
+ "examples": [
17012
+ "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
17013
+ "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --source REPOSITORY --source-branch feature/us-123 --target-source REPOSITORY --target-branch main",
17014
+ "<%= config.bin %> <%= command.id %> --metadata-type ApexClass --api-name MyClass --json"
17015
+ ],
17016
+ "flags": {
17017
+ "json": {
17018
+ "description": "Format output as json.",
17019
+ "helpGroup": "GLOBAL",
17020
+ "name": "json",
17021
+ "allowNo": false,
17022
+ "type": "boolean"
17023
+ },
17024
+ "api-name": {
17025
+ "description": "Metadata API name",
17026
+ "name": "api-name",
17027
+ "required": true,
17028
+ "hasDynamicHelp": false,
17029
+ "multiple": false,
17030
+ "type": "option"
17031
+ },
17032
+ "file-name": {
17033
+ "description": "Optional metadata file name",
17034
+ "name": "file-name",
17035
+ "hasDynamicHelp": false,
17036
+ "multiple": false,
17037
+ "type": "option"
17038
+ },
17039
+ "metadata-type": {
17040
+ "description": "Metadata type, for example ApexClass",
17041
+ "name": "metadata-type",
17042
+ "required": true,
17043
+ "hasDynamicHelp": false,
17044
+ "multiple": false,
17045
+ "type": "option"
17046
+ },
17047
+ "pipeline-id": {
17048
+ "description": "Pipeline Id",
16828
17049
  "name": "pipeline-id",
16829
17050
  "hasDynamicHelp": false,
16830
17051
  "multiple": false,
@@ -17564,156 +17785,6 @@
17564
17785
  "status.js"
17565
17786
  ]
17566
17787
  },
17567
- "cicd:job:log:get": {
17568
- "aliases": [],
17569
- "args": {
17570
- "id": {
17571
- "description": "JobExecution Id",
17572
- "name": "id",
17573
- "required": true
17574
- }
17575
- },
17576
- "description": "Get log output for a Copado job execution step",
17577
- "examples": [
17578
- "<%= config.bin %> <%= command.id %> <job-id>",
17579
- "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
17580
- "<%= config.bin %> <%= command.id %> <job-id> --json"
17581
- ],
17582
- "flags": {
17583
- "json": {
17584
- "description": "Format output as json.",
17585
- "helpGroup": "GLOBAL",
17586
- "name": "json",
17587
- "allowNo": false,
17588
- "type": "boolean"
17589
- },
17590
- "step": {
17591
- "description": "Job step Id (defaults to the first step with a result Id)",
17592
- "name": "step",
17593
- "hasDynamicHelp": false,
17594
- "multiple": false,
17595
- "type": "option"
17596
- }
17597
- },
17598
- "hasDynamicHelp": false,
17599
- "hiddenAliases": [],
17600
- "id": "cicd:job:log:get",
17601
- "pluginAlias": "@copado/agentia-cli",
17602
- "pluginName": "@copado/agentia-cli",
17603
- "pluginType": "core",
17604
- "strict": true,
17605
- "enableJsonFlag": true,
17606
- "experimental": false,
17607
- "isESM": true,
17608
- "relativePath": [
17609
- "dist",
17610
- "commands",
17611
- "cicd",
17612
- "job",
17613
- "log",
17614
- "get.js"
17615
- ]
17616
- },
17617
- "cicd:job:result-file:get": {
17618
- "aliases": [],
17619
- "args": {
17620
- "resultId": {
17621
- "description": "Copado Result Id",
17622
- "name": "resultId",
17623
- "required": true
17624
- }
17625
- },
17626
- "description": "Get a File linked to a Copado job Result",
17627
- "examples": [
17628
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id>",
17629
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --output-file ./result.zip",
17630
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --json"
17631
- ],
17632
- "flags": {
17633
- "json": {
17634
- "description": "Format output as json.",
17635
- "helpGroup": "GLOBAL",
17636
- "name": "json",
17637
- "allowNo": false,
17638
- "type": "boolean"
17639
- },
17640
- "file-id": {
17641
- "description": "File Id returned by result-file list",
17642
- "name": "file-id",
17643
- "required": true,
17644
- "hasDynamicHelp": false,
17645
- "multiple": false,
17646
- "type": "option"
17647
- },
17648
- "output-file": {
17649
- "description": "Explicit file path to receive decoded content",
17650
- "name": "output-file",
17651
- "hasDynamicHelp": false,
17652
- "multiple": false,
17653
- "type": "option"
17654
- }
17655
- },
17656
- "hasDynamicHelp": false,
17657
- "hiddenAliases": [],
17658
- "id": "cicd:job:result-file:get",
17659
- "pluginAlias": "@copado/agentia-cli",
17660
- "pluginName": "@copado/agentia-cli",
17661
- "pluginType": "core",
17662
- "strict": true,
17663
- "enableJsonFlag": true,
17664
- "experimental": false,
17665
- "isESM": true,
17666
- "relativePath": [
17667
- "dist",
17668
- "commands",
17669
- "cicd",
17670
- "job",
17671
- "result-file",
17672
- "get.js"
17673
- ]
17674
- },
17675
- "cicd:job:result-file:list": {
17676
- "aliases": [],
17677
- "args": {
17678
- "resultId": {
17679
- "description": "Copado Result Id",
17680
- "name": "resultId",
17681
- "required": true
17682
- }
17683
- },
17684
- "description": "List Files linked to a Copado job Result",
17685
- "examples": [
17686
- "<%= config.bin %> <%= command.id %> <result-id>",
17687
- "<%= config.bin %> <%= command.id %> <result-id> --json"
17688
- ],
17689
- "flags": {
17690
- "json": {
17691
- "description": "Format output as json.",
17692
- "helpGroup": "GLOBAL",
17693
- "name": "json",
17694
- "allowNo": false,
17695
- "type": "boolean"
17696
- }
17697
- },
17698
- "hasDynamicHelp": false,
17699
- "hiddenAliases": [],
17700
- "id": "cicd:job:result-file:list",
17701
- "pluginAlias": "@copado/agentia-cli",
17702
- "pluginName": "@copado/agentia-cli",
17703
- "pluginType": "core",
17704
- "strict": true,
17705
- "enableJsonFlag": true,
17706
- "experimental": false,
17707
- "isESM": true,
17708
- "relativePath": [
17709
- "dist",
17710
- "commands",
17711
- "cicd",
17712
- "job",
17713
- "result-file",
17714
- "list.js"
17715
- ]
17716
- },
17717
17788
  "cicd:pipeline:connection:create": {
17718
17789
  "aliases": [],
17719
17790
  "args": {},
@@ -20370,5 +20441,5 @@
20370
20441
  ]
20371
20442
  }
20372
20443
  },
20373
- "version": "1.0.0-beta.9"
20444
+ "version": "1.0.0"
20374
20445
  }