@copado/agentia-cli 0.16.0-alpha.0 → 0.17.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.
@@ -1617,6 +1617,39 @@
1617
1617
  "delete.js"
1618
1618
  ]
1619
1619
  },
1620
+ "work:done": {
1621
+ "aliases": [],
1622
+ "args": {},
1623
+ "description": "Mark the current feature/US-XXXX work item done and promote it to the next environment. Pushes and registers commits when the branch is ahead of origin, then calls headless work/done (Promote Action with validate=false).",
1624
+ "examples": [
1625
+ "<%= config.bin %> <%= command.id %>",
1626
+ "<%= config.bin %> <%= command.id %> --json"
1627
+ ],
1628
+ "flags": {
1629
+ "json": {
1630
+ "description": "Format output as json.",
1631
+ "helpGroup": "GLOBAL",
1632
+ "name": "json",
1633
+ "allowNo": false,
1634
+ "type": "boolean"
1635
+ }
1636
+ },
1637
+ "hasDynamicHelp": false,
1638
+ "hiddenAliases": [],
1639
+ "id": "work:done",
1640
+ "pluginAlias": "@copado/agentia-cli",
1641
+ "pluginName": "@copado/agentia-cli",
1642
+ "pluginType": "core",
1643
+ "strict": true,
1644
+ "enableJsonFlag": true,
1645
+ "isESM": true,
1646
+ "relativePath": [
1647
+ "dist",
1648
+ "commands",
1649
+ "work",
1650
+ "done.js"
1651
+ ]
1652
+ },
1620
1653
  "work:get": {
1621
1654
  "aliases": [],
1622
1655
  "args": {
@@ -1767,6 +1800,119 @@
1767
1800
  "list.js"
1768
1801
  ]
1769
1802
  },
1803
+ "work:push": {
1804
+ "aliases": [],
1805
+ "args": {},
1806
+ "description": "Push the current feature/US-XXXX branch and register commits with Copado. Requires a clean working tree and a base branch from `agentia work set`. Locks the tip commit, runs `git push origin <branch>`, then calls headless work/push.",
1807
+ "examples": [
1808
+ "<%= config.bin %> <%= command.id %>",
1809
+ "<%= config.bin %> <%= command.id %> --json"
1810
+ ],
1811
+ "flags": {
1812
+ "json": {
1813
+ "description": "Format output as json.",
1814
+ "helpGroup": "GLOBAL",
1815
+ "name": "json",
1816
+ "allowNo": false,
1817
+ "type": "boolean"
1818
+ }
1819
+ },
1820
+ "hasDynamicHelp": false,
1821
+ "hiddenAliases": [],
1822
+ "id": "work:push",
1823
+ "pluginAlias": "@copado/agentia-cli",
1824
+ "pluginName": "@copado/agentia-cli",
1825
+ "pluginType": "core",
1826
+ "strict": true,
1827
+ "enableJsonFlag": true,
1828
+ "isESM": true,
1829
+ "relativePath": [
1830
+ "dist",
1831
+ "commands",
1832
+ "work",
1833
+ "push.js"
1834
+ ]
1835
+ },
1836
+ "work:set": {
1837
+ "aliases": [],
1838
+ "args": {
1839
+ "id": {
1840
+ "description": "User story ID or name",
1841
+ "name": "id",
1842
+ "required": true
1843
+ }
1844
+ },
1845
+ "description": "Set the active work item and prepare a local feature branch. Calls the CICD gateway work/set endpoint, requires a clean tracked working tree, fetches the work item base branch from origin, then creates or checks out feature/<user-story-name>.",
1846
+ "examples": [
1847
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
1848
+ "<%= config.bin %> <%= command.id %> US-0001 --json",
1849
+ "<%= config.bin %> <%= command.id %> US-0001 --base-branch develop"
1850
+ ],
1851
+ "flags": {
1852
+ "json": {
1853
+ "description": "Format output as json.",
1854
+ "helpGroup": "GLOBAL",
1855
+ "name": "json",
1856
+ "allowNo": false,
1857
+ "type": "boolean"
1858
+ },
1859
+ "base-branch": {
1860
+ "description": "Override the base branch returned by the work/set endpoint",
1861
+ "name": "base-branch",
1862
+ "hasDynamicHelp": false,
1863
+ "multiple": false,
1864
+ "type": "option"
1865
+ }
1866
+ },
1867
+ "hasDynamicHelp": false,
1868
+ "hiddenAliases": [],
1869
+ "id": "work:set",
1870
+ "pluginAlias": "@copado/agentia-cli",
1871
+ "pluginName": "@copado/agentia-cli",
1872
+ "pluginType": "core",
1873
+ "strict": true,
1874
+ "enableJsonFlag": true,
1875
+ "isESM": true,
1876
+ "relativePath": [
1877
+ "dist",
1878
+ "commands",
1879
+ "work",
1880
+ "set.js"
1881
+ ]
1882
+ },
1883
+ "work:submit": {
1884
+ "aliases": [],
1885
+ "args": {},
1886
+ "description": "Submit the current feature/US-XXXX work item for pipeline quality gates and validation. Pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).",
1887
+ "examples": [
1888
+ "<%= config.bin %> <%= command.id %>",
1889
+ "<%= config.bin %> <%= command.id %> --json"
1890
+ ],
1891
+ "flags": {
1892
+ "json": {
1893
+ "description": "Format output as json.",
1894
+ "helpGroup": "GLOBAL",
1895
+ "name": "json",
1896
+ "allowNo": false,
1897
+ "type": "boolean"
1898
+ }
1899
+ },
1900
+ "hasDynamicHelp": false,
1901
+ "hiddenAliases": [],
1902
+ "id": "work:submit",
1903
+ "pluginAlias": "@copado/agentia-cli",
1904
+ "pluginName": "@copado/agentia-cli",
1905
+ "pluginType": "core",
1906
+ "strict": true,
1907
+ "enableJsonFlag": true,
1908
+ "isESM": true,
1909
+ "relativePath": [
1910
+ "dist",
1911
+ "commands",
1912
+ "work",
1913
+ "submit.js"
1914
+ ]
1915
+ },
1770
1916
  "work:update": {
1771
1917
  "aliases": [],
1772
1918
  "args": {
@@ -3442,5 +3588,5 @@
3442
3588
  ]
3443
3589
  }
3444
3590
  },
3445
- "version": "0.16.0-alpha.0"
3591
+ "version": "0.17.0-alpha.0"
3446
3592
  }
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.16.0-alpha.0",
4
+ "version": "0.17.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"