@copado/agentia-cli 0.16.0-alpha.0 → 0.18.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 +160 -51
- package/dist/commands/auth/get.d.ts +2 -0
- package/dist/commands/auth/get.js +46 -8
- package/dist/commands/auth/get.js.map +1 -1
- package/dist/commands/work/done.d.ts +7 -0
- package/dist/commands/work/done.js +99 -0
- package/dist/commands/work/done.js.map +1 -0
- package/dist/commands/work/get.d.ts +1 -1
- package/dist/commands/work/get.js +18 -3
- package/dist/commands/work/get.js.map +1 -1
- package/dist/commands/work/push.d.ts +7 -0
- package/dist/commands/work/push.js +67 -0
- package/dist/commands/work/push.js.map +1 -0
- package/dist/commands/work/set.d.ts +13 -0
- package/dist/commands/work/set.js +103 -0
- package/dist/commands/work/set.js.map +1 -0
- package/dist/commands/work/submit.d.ts +7 -0
- package/dist/commands/work/submit.js +99 -0
- package/dist/commands/work/submit.js.map +1 -0
- package/dist/commands/work/update.d.ts +1 -1
- package/dist/commands/work/update.js +21 -6
- package/dist/commands/work/update.js.map +1 -1
- package/dist/lib/cicd-gateway.d.ts +9 -1
- package/dist/lib/cicd-gateway.js +91 -9
- package/dist/lib/cicd-gateway.js.map +1 -1
- package/dist/lib/defaults-store.d.ts +9 -0
- package/dist/lib/defaults-store.js +31 -0
- package/dist/lib/defaults-store.js.map +1 -1
- package/dist/lib/git-worktree.d.ts +22 -0
- package/dist/lib/git-worktree.js +75 -0
- package/dist/lib/git-worktree.js.map +1 -0
- package/dist/lib/mcp/tools.d.ts +3 -3
- package/dist/lib/mcp/tools.js +11 -8
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/work-active.d.ts +4 -0
- package/dist/lib/work-active.js +23 -0
- package/dist/lib/work-active.js.map +1 -0
- package/dist/lib/work-push.d.ts +20 -0
- package/dist/lib/work-push.js +92 -0
- package/dist/lib/work-push.js.map +1 -0
- package/dist/lib/work-types.d.ts +72 -0
- package/dist/lib/work-types.js +107 -0
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +153 -5
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1617,17 +1617,51 @@
|
|
|
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": {
|
|
1623
1656
|
"id": {
|
|
1624
|
-
"description": "User story ID",
|
|
1657
|
+
"description": "User story ID (defaults to the active work item from `work set`)",
|
|
1625
1658
|
"name": "id",
|
|
1626
|
-
"required":
|
|
1659
|
+
"required": false
|
|
1627
1660
|
}
|
|
1628
1661
|
},
|
|
1629
1662
|
"description": "Get a Copado user story by ID",
|
|
1630
1663
|
"examples": [
|
|
1664
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1631
1665
|
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
|
|
1632
1666
|
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
|
|
1633
1667
|
],
|
|
@@ -1767,17 +1801,131 @@
|
|
|
1767
1801
|
"list.js"
|
|
1768
1802
|
]
|
|
1769
1803
|
},
|
|
1770
|
-
"work:
|
|
1804
|
+
"work:push": {
|
|
1805
|
+
"aliases": [],
|
|
1806
|
+
"args": {},
|
|
1807
|
+
"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.",
|
|
1808
|
+
"examples": [
|
|
1809
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1810
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
1811
|
+
],
|
|
1812
|
+
"flags": {
|
|
1813
|
+
"json": {
|
|
1814
|
+
"description": "Format output as json.",
|
|
1815
|
+
"helpGroup": "GLOBAL",
|
|
1816
|
+
"name": "json",
|
|
1817
|
+
"allowNo": false,
|
|
1818
|
+
"type": "boolean"
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
"hasDynamicHelp": false,
|
|
1822
|
+
"hiddenAliases": [],
|
|
1823
|
+
"id": "work:push",
|
|
1824
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
1825
|
+
"pluginName": "@copado/agentia-cli",
|
|
1826
|
+
"pluginType": "core",
|
|
1827
|
+
"strict": true,
|
|
1828
|
+
"enableJsonFlag": true,
|
|
1829
|
+
"isESM": true,
|
|
1830
|
+
"relativePath": [
|
|
1831
|
+
"dist",
|
|
1832
|
+
"commands",
|
|
1833
|
+
"work",
|
|
1834
|
+
"push.js"
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
"work:set": {
|
|
1771
1838
|
"aliases": [],
|
|
1772
1839
|
"args": {
|
|
1773
1840
|
"id": {
|
|
1774
|
-
"description": "User story ID",
|
|
1841
|
+
"description": "User story ID or name",
|
|
1775
1842
|
"name": "id",
|
|
1776
1843
|
"required": true
|
|
1777
1844
|
}
|
|
1778
1845
|
},
|
|
1846
|
+
"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>.",
|
|
1847
|
+
"examples": [
|
|
1848
|
+
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
|
|
1849
|
+
"<%= config.bin %> <%= command.id %> US-0001 --json",
|
|
1850
|
+
"<%= config.bin %> <%= command.id %> US-0001 --base-branch develop"
|
|
1851
|
+
],
|
|
1852
|
+
"flags": {
|
|
1853
|
+
"json": {
|
|
1854
|
+
"description": "Format output as json.",
|
|
1855
|
+
"helpGroup": "GLOBAL",
|
|
1856
|
+
"name": "json",
|
|
1857
|
+
"allowNo": false,
|
|
1858
|
+
"type": "boolean"
|
|
1859
|
+
},
|
|
1860
|
+
"base-branch": {
|
|
1861
|
+
"description": "Override the base branch returned by the work/set endpoint",
|
|
1862
|
+
"name": "base-branch",
|
|
1863
|
+
"hasDynamicHelp": false,
|
|
1864
|
+
"multiple": false,
|
|
1865
|
+
"type": "option"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"hasDynamicHelp": false,
|
|
1869
|
+
"hiddenAliases": [],
|
|
1870
|
+
"id": "work:set",
|
|
1871
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
1872
|
+
"pluginName": "@copado/agentia-cli",
|
|
1873
|
+
"pluginType": "core",
|
|
1874
|
+
"strict": true,
|
|
1875
|
+
"enableJsonFlag": true,
|
|
1876
|
+
"isESM": true,
|
|
1877
|
+
"relativePath": [
|
|
1878
|
+
"dist",
|
|
1879
|
+
"commands",
|
|
1880
|
+
"work",
|
|
1881
|
+
"set.js"
|
|
1882
|
+
]
|
|
1883
|
+
},
|
|
1884
|
+
"work:submit": {
|
|
1885
|
+
"aliases": [],
|
|
1886
|
+
"args": {},
|
|
1887
|
+
"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).",
|
|
1888
|
+
"examples": [
|
|
1889
|
+
"<%= config.bin %> <%= command.id %>",
|
|
1890
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
1891
|
+
],
|
|
1892
|
+
"flags": {
|
|
1893
|
+
"json": {
|
|
1894
|
+
"description": "Format output as json.",
|
|
1895
|
+
"helpGroup": "GLOBAL",
|
|
1896
|
+
"name": "json",
|
|
1897
|
+
"allowNo": false,
|
|
1898
|
+
"type": "boolean"
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"hasDynamicHelp": false,
|
|
1902
|
+
"hiddenAliases": [],
|
|
1903
|
+
"id": "work:submit",
|
|
1904
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
1905
|
+
"pluginName": "@copado/agentia-cli",
|
|
1906
|
+
"pluginType": "core",
|
|
1907
|
+
"strict": true,
|
|
1908
|
+
"enableJsonFlag": true,
|
|
1909
|
+
"isESM": true,
|
|
1910
|
+
"relativePath": [
|
|
1911
|
+
"dist",
|
|
1912
|
+
"commands",
|
|
1913
|
+
"work",
|
|
1914
|
+
"submit.js"
|
|
1915
|
+
]
|
|
1916
|
+
},
|
|
1917
|
+
"work:update": {
|
|
1918
|
+
"aliases": [],
|
|
1919
|
+
"args": {
|
|
1920
|
+
"id": {
|
|
1921
|
+
"description": "User story ID (defaults to the active work item from `work set`)",
|
|
1922
|
+
"name": "id",
|
|
1923
|
+
"required": false
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1779
1926
|
"description": "Update a Copado user story by ID",
|
|
1780
1927
|
"examples": [
|
|
1928
|
+
"<%= config.bin %> <%= command.id %> --title \"Updated story\"",
|
|
1781
1929
|
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --title \"Updated story\"",
|
|
1782
1930
|
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --status \"In Progress\" --json"
|
|
1783
1931
|
],
|
|
@@ -3442,5 +3590,5 @@
|
|
|
3442
3590
|
]
|
|
3443
3591
|
}
|
|
3444
3592
|
},
|
|
3445
|
-
"version": "0.
|
|
3593
|
+
"version": "0.18.0-alpha.0"
|
|
3446
3594
|
}
|