@copado/agentia-cli 0.53.0-alpha.0 → 0.56.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 (36) hide show
  1. package/README.md +232 -112
  2. package/dist/commands/cicd/credential/create.d.ts +12 -0
  3. package/dist/commands/cicd/credential/create.js +39 -0
  4. package/dist/commands/cicd/credential/create.js.map +1 -0
  5. package/dist/commands/cicd/credential/update.d.ts +15 -0
  6. package/dist/commands/cicd/credential/update.js +57 -0
  7. package/dist/commands/cicd/credential/update.js.map +1 -0
  8. package/dist/commands/cicd/work/commit.d.ts +31 -0
  9. package/dist/commands/cicd/work/commit.js +254 -0
  10. package/dist/commands/cicd/work/commit.js.map +1 -0
  11. package/dist/lib/environment-credential-flags.d.ts +26 -0
  12. package/dist/lib/environment-credential-flags.js +70 -0
  13. package/dist/lib/environment-credential-flags.js.map +1 -0
  14. package/dist/lib/environment-credential-operations.d.ts +15 -0
  15. package/dist/lib/environment-credential-operations.js +41 -0
  16. package/dist/lib/environment-credential-operations.js.map +1 -0
  17. package/dist/lib/environment-types.d.ts +7 -0
  18. package/dist/lib/environment-types.js +6 -0
  19. package/dist/lib/environment-types.js.map +1 -1
  20. package/dist/lib/mcp/result.d.ts +4 -0
  21. package/dist/lib/mcp/result.js +6 -2
  22. package/dist/lib/mcp/result.js.map +1 -1
  23. package/dist/lib/mcp/tools.d.ts +40 -0
  24. package/dist/lib/mcp/tools.js +60 -0
  25. package/dist/lib/mcp/tools.js.map +1 -1
  26. package/dist/lib/mcp/work-tools.d.ts +24 -0
  27. package/dist/lib/mcp/work-tools.js +106 -0
  28. package/dist/lib/mcp/work-tools.js.map +1 -1
  29. package/dist/lib/setup-templates.d.ts +1 -1
  30. package/dist/lib/setup-templates.js +17 -6
  31. package/dist/lib/setup-templates.js.map +1 -1
  32. package/dist/lib/work-commit.d.ts +118 -0
  33. package/dist/lib/work-commit.js +348 -0
  34. package/dist/lib/work-commit.js.map +1 -0
  35. package/oclif.manifest.json +297 -1
  36. package/package.json +4 -1
@@ -1643,6 +1643,125 @@
1643
1643
  "update.js"
1644
1644
  ]
1645
1645
  },
1646
+ "cicd:credential:create": {
1647
+ "aliases": [],
1648
+ "args": {},
1649
+ "description": "Create a Copado environment credential",
1650
+ "examples": [
1651
+ "<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\"",
1652
+ "<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --default",
1653
+ "<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --json"
1654
+ ],
1655
+ "flags": {
1656
+ "json": {
1657
+ "description": "Format output as json.",
1658
+ "helpGroup": "GLOBAL",
1659
+ "name": "json",
1660
+ "allowNo": false,
1661
+ "type": "boolean"
1662
+ },
1663
+ "default": {
1664
+ "description": "Mark this credential as the environment default",
1665
+ "name": "default",
1666
+ "allowNo": true,
1667
+ "type": "boolean"
1668
+ },
1669
+ "environmentid": {
1670
+ "description": "Copado environment ID",
1671
+ "name": "environmentid",
1672
+ "required": true,
1673
+ "hasDynamicHelp": false,
1674
+ "multiple": false,
1675
+ "type": "option"
1676
+ },
1677
+ "name": {
1678
+ "description": "Credential name",
1679
+ "name": "name",
1680
+ "required": true,
1681
+ "hasDynamicHelp": false,
1682
+ "multiple": false,
1683
+ "type": "option"
1684
+ }
1685
+ },
1686
+ "hasDynamicHelp": false,
1687
+ "hiddenAliases": [],
1688
+ "id": "cicd:credential:create",
1689
+ "pluginAlias": "@copado/agentia-cli",
1690
+ "pluginName": "@copado/agentia-cli",
1691
+ "pluginType": "core",
1692
+ "strict": true,
1693
+ "enableJsonFlag": true,
1694
+ "isESM": true,
1695
+ "relativePath": [
1696
+ "dist",
1697
+ "commands",
1698
+ "cicd",
1699
+ "credential",
1700
+ "create.js"
1701
+ ]
1702
+ },
1703
+ "cicd:credential:update": {
1704
+ "aliases": [],
1705
+ "args": {
1706
+ "id": {
1707
+ "description": "Copado credential ID",
1708
+ "name": "id",
1709
+ "required": true
1710
+ }
1711
+ },
1712
+ "description": "Update a Copado environment credential by ID",
1713
+ "examples": [
1714
+ "<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --name \"CI User\"",
1715
+ "<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --default",
1716
+ "<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --no-default --json"
1717
+ ],
1718
+ "flags": {
1719
+ "json": {
1720
+ "description": "Format output as json.",
1721
+ "helpGroup": "GLOBAL",
1722
+ "name": "json",
1723
+ "allowNo": false,
1724
+ "type": "boolean"
1725
+ },
1726
+ "default": {
1727
+ "description": "Mark this credential as the environment default",
1728
+ "name": "default",
1729
+ "allowNo": true,
1730
+ "type": "boolean"
1731
+ },
1732
+ "environmentid": {
1733
+ "description": "Copado environment ID",
1734
+ "name": "environmentid",
1735
+ "required": true,
1736
+ "hasDynamicHelp": false,
1737
+ "multiple": false,
1738
+ "type": "option"
1739
+ },
1740
+ "name": {
1741
+ "description": "Credential name",
1742
+ "name": "name",
1743
+ "hasDynamicHelp": false,
1744
+ "multiple": false,
1745
+ "type": "option"
1746
+ }
1747
+ },
1748
+ "hasDynamicHelp": false,
1749
+ "hiddenAliases": [],
1750
+ "id": "cicd:credential:update",
1751
+ "pluginAlias": "@copado/agentia-cli",
1752
+ "pluginName": "@copado/agentia-cli",
1753
+ "pluginType": "core",
1754
+ "strict": true,
1755
+ "enableJsonFlag": true,
1756
+ "isESM": true,
1757
+ "relativePath": [
1758
+ "dist",
1759
+ "commands",
1760
+ "cicd",
1761
+ "credential",
1762
+ "update.js"
1763
+ ]
1764
+ },
1646
1765
  "cicd:environment:create": {
1647
1766
  "aliases": [],
1648
1767
  "args": {
@@ -3632,6 +3751,183 @@
3632
3751
  "get.js"
3633
3752
  ]
3634
3753
  },
3754
+ "cicd:work:commit": {
3755
+ "aliases": [],
3756
+ "args": {
3757
+ "id": {
3758
+ "description": "User story ID (defaults to the active work item from `work set`)",
3759
+ "name": "id",
3760
+ "required": false
3761
+ }
3762
+ },
3763
+ "description": "Create and optionally wait for a Copado cloud commit job for a user story. Preflights the story, submits POST /release/commit, and polls the job monitor by default.",
3764
+ "examples": [
3765
+ "<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --action Add",
3766
+ "<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --message \"Update Aura files\" --metadata-name accountEditor --metadata-type AuraDefinitionBundle --action SelectiveCommit --selection accountEditor/accountEditor.cmp --selection accountEditor/accountEditorController.js",
3767
+ "cat commit-request.json | <%= config.bin %> <%= command.id %> --cloud --stdin --json"
3768
+ ],
3769
+ "flags": {
3770
+ "json": {
3771
+ "description": "Format output as json.",
3772
+ "helpGroup": "GLOBAL",
3773
+ "name": "json",
3774
+ "allowNo": false,
3775
+ "type": "boolean"
3776
+ },
3777
+ "action": {
3778
+ "description": "Metadata action for simple flag input. Defaults to Add.",
3779
+ "name": "action",
3780
+ "hasDynamicHelp": false,
3781
+ "multiple": false,
3782
+ "options": [
3783
+ "Add",
3784
+ "Delete",
3785
+ "RetrieveOnly",
3786
+ "SelectiveCommit",
3787
+ "Full"
3788
+ ],
3789
+ "type": "option"
3790
+ },
3791
+ "base-branch": {
3792
+ "description": "Optional base branch to include in the commit request.",
3793
+ "name": "base-branch",
3794
+ "hasDynamicHelp": false,
3795
+ "multiple": false,
3796
+ "type": "option"
3797
+ },
3798
+ "cloud": {
3799
+ "description": "Use the Copado cloud commit API. Required for this command.",
3800
+ "name": "cloud",
3801
+ "allowNo": false,
3802
+ "type": "boolean"
3803
+ },
3804
+ "commit-id": {
3805
+ "description": "Existing local Git commit identifier to register when --no-execute-commit is used.",
3806
+ "name": "commit-id",
3807
+ "hasDynamicHelp": false,
3808
+ "multiple": false,
3809
+ "type": "option"
3810
+ },
3811
+ "execute-commit": {
3812
+ "description": "Execute the Copado commit job. Use --no-execute-commit only with --commit-id.",
3813
+ "name": "execute-commit",
3814
+ "allowNo": true,
3815
+ "type": "boolean"
3816
+ },
3817
+ "file": {
3818
+ "char": "f",
3819
+ "description": "Path to a JSON commit request body.",
3820
+ "name": "file",
3821
+ "hasDynamicHelp": false,
3822
+ "multiple": false,
3823
+ "type": "option"
3824
+ },
3825
+ "message": {
3826
+ "char": "m",
3827
+ "description": "Commit message. Required unless provided by JSON input.",
3828
+ "name": "message",
3829
+ "hasDynamicHelp": false,
3830
+ "multiple": false,
3831
+ "type": "option"
3832
+ },
3833
+ "metadata-category": {
3834
+ "description": "Optional metadata category for simple flag input, usually SFDX.",
3835
+ "name": "metadata-category",
3836
+ "hasDynamicHelp": false,
3837
+ "multiple": false,
3838
+ "type": "option"
3839
+ },
3840
+ "metadata-message": {
3841
+ "description": "Optional per-change message for simple flag input.",
3842
+ "name": "metadata-message",
3843
+ "hasDynamicHelp": false,
3844
+ "multiple": false,
3845
+ "type": "option"
3846
+ },
3847
+ "metadata-name": {
3848
+ "description": "Metadata full name for simple flag input.",
3849
+ "name": "metadata-name",
3850
+ "hasDynamicHelp": false,
3851
+ "multiple": false,
3852
+ "type": "option"
3853
+ },
3854
+ "metadata-raw-json": {
3855
+ "description": "Optional raw metadata JSON value for simple flag input.",
3856
+ "name": "metadata-raw-json",
3857
+ "hasDynamicHelp": false,
3858
+ "multiple": false,
3859
+ "type": "option"
3860
+ },
3861
+ "metadata-type": {
3862
+ "description": "Metadata type for simple flag input, for example ApexClass.",
3863
+ "name": "metadata-type",
3864
+ "hasDynamicHelp": false,
3865
+ "multiple": false,
3866
+ "type": "option"
3867
+ },
3868
+ "platform-experience": {
3869
+ "description": "Initial platform-experience header for preflight. The preflight response wins for commit.",
3870
+ "name": "platform-experience",
3871
+ "default": "sfdx",
3872
+ "hasDynamicHelp": false,
3873
+ "multiple": false,
3874
+ "options": [
3875
+ "sfdx",
3876
+ "salesforce"
3877
+ ],
3878
+ "type": "option"
3879
+ },
3880
+ "recreate-feature-branch": {
3881
+ "description": "Ask Copado to recreate the feature branch before committing.",
3882
+ "name": "recreate-feature-branch",
3883
+ "allowNo": false,
3884
+ "type": "boolean"
3885
+ },
3886
+ "selection": {
3887
+ "description": "Selected file inside a bundle for SelectiveCommit. Can be provided multiple times.",
3888
+ "name": "selection",
3889
+ "hasDynamicHelp": false,
3890
+ "multiple": true,
3891
+ "type": "option"
3892
+ },
3893
+ "stdin": {
3894
+ "description": "Read a JSON commit request body from stdin.",
3895
+ "name": "stdin",
3896
+ "allowNo": false,
3897
+ "type": "boolean"
3898
+ },
3899
+ "wait": {
3900
+ "description": "Poll the commit job to a terminal status when a jobExecution Id is returned.",
3901
+ "name": "wait",
3902
+ "allowNo": true,
3903
+ "type": "boolean"
3904
+ },
3905
+ "wait-timeout": {
3906
+ "description": "Maximum seconds to wait for the commit job.",
3907
+ "name": "wait-timeout",
3908
+ "default": 300,
3909
+ "hasDynamicHelp": false,
3910
+ "multiple": false,
3911
+ "type": "option"
3912
+ }
3913
+ },
3914
+ "hasDynamicHelp": false,
3915
+ "hiddenAliases": [],
3916
+ "id": "cicd:work:commit",
3917
+ "pluginAlias": "@copado/agentia-cli",
3918
+ "pluginName": "@copado/agentia-cli",
3919
+ "pluginType": "core",
3920
+ "strict": true,
3921
+ "enableJsonFlag": true,
3922
+ "isESM": true,
3923
+ "relativePath": [
3924
+ "dist",
3925
+ "commands",
3926
+ "cicd",
3927
+ "work",
3928
+ "commit.js"
3929
+ ]
3930
+ },
3635
3931
  "cicd:work:create": {
3636
3932
  "aliases": [],
3637
3933
  "args": {},
@@ -9123,5 +9419,5 @@
9123
9419
  ]
9124
9420
  }
9125
9421
  },
9126
- "version": "0.53.0-alpha.0"
9422
+ "version": "0.56.0-alpha.0"
9127
9423
  }
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.53.0-alpha.0",
4
+ "version": "0.56.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -88,6 +88,9 @@
88
88
  "cicd": {
89
89
  "description": "Manage Copado CICD workflows"
90
90
  },
91
+ "cicd:credential": {
92
+ "description": "Manage Copado environment credentials"
93
+ },
91
94
  "cicd:environment": {
92
95
  "description": "Manage Copado environments"
93
96
  },