@bussolabs/closeyourit-cli 0.0.13 → 0.0.14

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.
@@ -1389,6 +1389,175 @@
1389
1389
  "vote.js"
1390
1390
  ]
1391
1391
  },
1392
+ "invitations:create": {
1393
+ "aliases": [],
1394
+ "args": {
1395
+ "email": {
1396
+ "description": "Email address to invite",
1397
+ "name": "email",
1398
+ "required": true
1399
+ }
1400
+ },
1401
+ "description": "Invite a person to the organization. Prints the acceptance link (shown only once).",
1402
+ "examples": [
1403
+ "<%= config.bin %> invitations create client@acme.com",
1404
+ "<%= config.bin %> invitations create teammate@acme.com --role member"
1405
+ ],
1406
+ "flags": {
1407
+ "json": {
1408
+ "description": "Format output as json.",
1409
+ "helpGroup": "GLOBAL",
1410
+ "name": "json",
1411
+ "allowNo": false,
1412
+ "type": "boolean"
1413
+ },
1414
+ "role": {
1415
+ "description": "Membership role",
1416
+ "name": "role",
1417
+ "default": "customer",
1418
+ "hasDynamicHelp": false,
1419
+ "multiple": false,
1420
+ "options": [
1421
+ "customer",
1422
+ "member",
1423
+ "admin"
1424
+ ],
1425
+ "type": "option"
1426
+ }
1427
+ },
1428
+ "hasDynamicHelp": false,
1429
+ "hiddenAliases": [],
1430
+ "id": "invitations:create",
1431
+ "pluginAlias": "@bussolabs/closeyourit-cli",
1432
+ "pluginName": "@bussolabs/closeyourit-cli",
1433
+ "pluginType": "core",
1434
+ "strict": true,
1435
+ "enableJsonFlag": true,
1436
+ "isESM": false,
1437
+ "relativePath": [
1438
+ "dist",
1439
+ "commands",
1440
+ "invitations",
1441
+ "create.js"
1442
+ ]
1443
+ },
1444
+ "invitations:list": {
1445
+ "aliases": [],
1446
+ "args": {},
1447
+ "description": "List the pending/accepted invitations of your organization",
1448
+ "examples": [
1449
+ "<%= config.bin %> invitations list",
1450
+ "<%= config.bin %> invitations list --json"
1451
+ ],
1452
+ "flags": {
1453
+ "json": {
1454
+ "description": "Format output as json.",
1455
+ "helpGroup": "GLOBAL",
1456
+ "name": "json",
1457
+ "allowNo": false,
1458
+ "type": "boolean"
1459
+ },
1460
+ "page": {
1461
+ "description": "Page number",
1462
+ "name": "page",
1463
+ "default": 1,
1464
+ "hasDynamicHelp": false,
1465
+ "multiple": false,
1466
+ "type": "option"
1467
+ }
1468
+ },
1469
+ "hasDynamicHelp": false,
1470
+ "hiddenAliases": [],
1471
+ "id": "invitations:list",
1472
+ "pluginAlias": "@bussolabs/closeyourit-cli",
1473
+ "pluginName": "@bussolabs/closeyourit-cli",
1474
+ "pluginType": "core",
1475
+ "strict": true,
1476
+ "enableJsonFlag": true,
1477
+ "isESM": false,
1478
+ "relativePath": [
1479
+ "dist",
1480
+ "commands",
1481
+ "invitations",
1482
+ "list.js"
1483
+ ]
1484
+ },
1485
+ "invitations:resend": {
1486
+ "aliases": [],
1487
+ "args": {
1488
+ "id": {
1489
+ "description": "Invitation id (UUID)",
1490
+ "name": "id",
1491
+ "required": true
1492
+ }
1493
+ },
1494
+ "description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
1495
+ "examples": [
1496
+ "<%= config.bin %> invitations resend <invitation-uuid>"
1497
+ ],
1498
+ "flags": {
1499
+ "json": {
1500
+ "description": "Format output as json.",
1501
+ "helpGroup": "GLOBAL",
1502
+ "name": "json",
1503
+ "allowNo": false,
1504
+ "type": "boolean"
1505
+ }
1506
+ },
1507
+ "hasDynamicHelp": false,
1508
+ "hiddenAliases": [],
1509
+ "id": "invitations:resend",
1510
+ "pluginAlias": "@bussolabs/closeyourit-cli",
1511
+ "pluginName": "@bussolabs/closeyourit-cli",
1512
+ "pluginType": "core",
1513
+ "strict": true,
1514
+ "enableJsonFlag": true,
1515
+ "isESM": false,
1516
+ "relativePath": [
1517
+ "dist",
1518
+ "commands",
1519
+ "invitations",
1520
+ "resend.js"
1521
+ ]
1522
+ },
1523
+ "invitations:revoke": {
1524
+ "aliases": [],
1525
+ "args": {
1526
+ "id": {
1527
+ "description": "Invitation id (UUID)",
1528
+ "name": "id",
1529
+ "required": true
1530
+ }
1531
+ },
1532
+ "description": "Revoke a pending invitation",
1533
+ "examples": [
1534
+ "<%= config.bin %> invitations revoke <invitation-uuid>"
1535
+ ],
1536
+ "flags": {
1537
+ "json": {
1538
+ "description": "Format output as json.",
1539
+ "helpGroup": "GLOBAL",
1540
+ "name": "json",
1541
+ "allowNo": false,
1542
+ "type": "boolean"
1543
+ }
1544
+ },
1545
+ "hasDynamicHelp": false,
1546
+ "hiddenAliases": [],
1547
+ "id": "invitations:revoke",
1548
+ "pluginAlias": "@bussolabs/closeyourit-cli",
1549
+ "pluginName": "@bussolabs/closeyourit-cli",
1550
+ "pluginType": "core",
1551
+ "strict": true,
1552
+ "enableJsonFlag": true,
1553
+ "isESM": false,
1554
+ "relativePath": [
1555
+ "dist",
1556
+ "commands",
1557
+ "invitations",
1558
+ "revoke.js"
1559
+ ]
1560
+ },
1392
1561
  "errors:list": {
1393
1562
  "aliases": [],
1394
1563
  "args": {},
@@ -1728,19 +1897,18 @@
1728
1897
  "unmute.js"
1729
1898
  ]
1730
1899
  },
1731
- "invitations:create": {
1900
+ "kb:ask": {
1732
1901
  "aliases": [],
1733
1902
  "args": {
1734
- "email": {
1735
- "description": "Email address to invite",
1736
- "name": "email",
1737
- "required": true
1903
+ "question": {
1904
+ "description": "The question (all positional words are joined)",
1905
+ "name": "question"
1738
1906
  }
1739
1907
  },
1740
- "description": "Invite a person to the organization. Prints the acceptance link (shown only once).",
1908
+ "description": "Ask a natural-language question; the server AI answers from the knowledge base and cites the pages it used (may take a few seconds)",
1741
1909
  "examples": [
1742
- "<%= config.bin %> invitations create client@acme.com",
1743
- "<%= config.bin %> invitations create teammate@acme.com --role member"
1910
+ "<%= config.bin %> kb ask how do we roll back a kamal deploy",
1911
+ "<%= config.bin %> kb ask \"what is our retry/backoff policy?\" --json"
1744
1912
  ],
1745
1913
  "flags": {
1746
1914
  "json": {
@@ -1749,44 +1917,31 @@
1749
1917
  "name": "json",
1750
1918
  "allowNo": false,
1751
1919
  "type": "boolean"
1752
- },
1753
- "role": {
1754
- "description": "Membership role",
1755
- "name": "role",
1756
- "default": "customer",
1757
- "hasDynamicHelp": false,
1758
- "multiple": false,
1759
- "options": [
1760
- "customer",
1761
- "member",
1762
- "admin"
1763
- ],
1764
- "type": "option"
1765
1920
  }
1766
1921
  },
1767
1922
  "hasDynamicHelp": false,
1768
1923
  "hiddenAliases": [],
1769
- "id": "invitations:create",
1924
+ "id": "kb:ask",
1770
1925
  "pluginAlias": "@bussolabs/closeyourit-cli",
1771
1926
  "pluginName": "@bussolabs/closeyourit-cli",
1772
1927
  "pluginType": "core",
1773
- "strict": true,
1928
+ "strict": false,
1774
1929
  "enableJsonFlag": true,
1775
1930
  "isESM": false,
1776
1931
  "relativePath": [
1777
1932
  "dist",
1778
1933
  "commands",
1779
- "invitations",
1780
- "create.js"
1934
+ "kb",
1935
+ "ask.js"
1781
1936
  ]
1782
1937
  },
1783
- "invitations:list": {
1938
+ "kb:create": {
1784
1939
  "aliases": [],
1785
1940
  "args": {},
1786
- "description": "List the pending/accepted invitations of your organization",
1941
+ "description": "Create a knowledge page in a project",
1787
1942
  "examples": [
1788
- "<%= config.bin %> invitations list",
1789
- "<%= config.bin %> invitations list --json"
1943
+ "<%= config.bin %> kb create --project acme-api --title \"Kamal rollback\" --body \"Steps…\"",
1944
+ "<%= config.bin %> kb create -p acme-api --title \"ADR: queue backend\" --kind decision --body-file ./adr.md"
1790
1945
  ],
1791
1946
  "flags": {
1792
1947
  "json": {
@@ -1796,10 +1951,41 @@
1796
1951
  "allowNo": false,
1797
1952
  "type": "boolean"
1798
1953
  },
1799
- "page": {
1800
- "description": "Page number",
1801
- "name": "page",
1802
- "default": 1,
1954
+ "project": {
1955
+ "char": "p",
1956
+ "description": "Project id (UUID) or key",
1957
+ "name": "project",
1958
+ "required": true,
1959
+ "hasDynamicHelp": false,
1960
+ "multiple": false,
1961
+ "type": "option"
1962
+ },
1963
+ "title": {
1964
+ "description": "Page title",
1965
+ "name": "title",
1966
+ "required": true,
1967
+ "hasDynamicHelp": false,
1968
+ "multiple": false,
1969
+ "type": "option"
1970
+ },
1971
+ "kind": {
1972
+ "description": "Page kind: note|decision|guide",
1973
+ "name": "kind",
1974
+ "default": "note",
1975
+ "hasDynamicHelp": false,
1976
+ "multiple": false,
1977
+ "type": "option"
1978
+ },
1979
+ "body": {
1980
+ "description": "Page body (markdown)",
1981
+ "name": "body",
1982
+ "hasDynamicHelp": false,
1983
+ "multiple": false,
1984
+ "type": "option"
1985
+ },
1986
+ "body-file": {
1987
+ "description": "Read the body (markdown) from a local file",
1988
+ "name": "body-file",
1803
1989
  "hasDynamicHelp": false,
1804
1990
  "multiple": false,
1805
1991
  "type": "option"
@@ -1807,7 +1993,7 @@
1807
1993
  },
1808
1994
  "hasDynamicHelp": false,
1809
1995
  "hiddenAliases": [],
1810
- "id": "invitations:list",
1996
+ "id": "kb:create",
1811
1997
  "pluginAlias": "@bussolabs/closeyourit-cli",
1812
1998
  "pluginName": "@bussolabs/closeyourit-cli",
1813
1999
  "pluginType": "core",
@@ -1817,22 +2003,22 @@
1817
2003
  "relativePath": [
1818
2004
  "dist",
1819
2005
  "commands",
1820
- "invitations",
1821
- "list.js"
2006
+ "kb",
2007
+ "create.js"
1822
2008
  ]
1823
2009
  },
1824
- "invitations:resend": {
2010
+ "kb:delete": {
1825
2011
  "aliases": [],
1826
2012
  "args": {
1827
2013
  "id": {
1828
- "description": "Invitation id (UUID)",
2014
+ "description": "Knowledge page id",
1829
2015
  "name": "id",
1830
2016
  "required": true
1831
2017
  }
1832
2018
  },
1833
- "description": "Resend a pending invitation. Prints the acceptance link (shown only once).",
2019
+ "description": "Delete a knowledge page (irreversible)",
1834
2020
  "examples": [
1835
- "<%= config.bin %> invitations resend <invitation-uuid>"
2021
+ "<%= config.bin %> kb delete <page-id> --confirm"
1836
2022
  ],
1837
2023
  "flags": {
1838
2024
  "json": {
@@ -1841,11 +2027,17 @@
1841
2027
  "name": "json",
1842
2028
  "allowNo": false,
1843
2029
  "type": "boolean"
2030
+ },
2031
+ "confirm": {
2032
+ "description": "Required: confirm the irreversible deletion",
2033
+ "name": "confirm",
2034
+ "allowNo": false,
2035
+ "type": "boolean"
1844
2036
  }
1845
2037
  },
1846
2038
  "hasDynamicHelp": false,
1847
2039
  "hiddenAliases": [],
1848
- "id": "invitations:resend",
2040
+ "id": "kb:delete",
1849
2041
  "pluginAlias": "@bussolabs/closeyourit-cli",
1850
2042
  "pluginName": "@bussolabs/closeyourit-cli",
1851
2043
  "pluginType": "core",
@@ -1855,22 +2047,18 @@
1855
2047
  "relativePath": [
1856
2048
  "dist",
1857
2049
  "commands",
1858
- "invitations",
1859
- "resend.js"
2050
+ "kb",
2051
+ "delete.js"
1860
2052
  ]
1861
2053
  },
1862
- "invitations:revoke": {
2054
+ "kb:list": {
1863
2055
  "aliases": [],
1864
- "args": {
1865
- "id": {
1866
- "description": "Invitation id (UUID)",
1867
- "name": "id",
1868
- "required": true
1869
- }
1870
- },
1871
- "description": "Revoke a pending invitation",
2056
+ "args": {},
2057
+ "description": "List knowledge pages across the projects you can see",
1872
2058
  "examples": [
1873
- "<%= config.bin %> invitations revoke <invitation-uuid>"
2059
+ "<%= config.bin %> kb list",
2060
+ "<%= config.bin %> kb list --project acme-api --kind decision",
2061
+ "<%= config.bin %> kb list --kind note,guide --per 50 --json"
1874
2062
  ],
1875
2063
  "flags": {
1876
2064
  "json": {
@@ -1879,11 +2067,41 @@
1879
2067
  "name": "json",
1880
2068
  "allowNo": false,
1881
2069
  "type": "boolean"
2070
+ },
2071
+ "project": {
2072
+ "char": "p",
2073
+ "description": "Filter by project (key or UUID)",
2074
+ "name": "project",
2075
+ "hasDynamicHelp": false,
2076
+ "multiple": false,
2077
+ "type": "option"
2078
+ },
2079
+ "kind": {
2080
+ "description": "Filter by kind: note|decision|guide (repeatable or comma-separated)",
2081
+ "name": "kind",
2082
+ "hasDynamicHelp": false,
2083
+ "multiple": true,
2084
+ "type": "option"
2085
+ },
2086
+ "per": {
2087
+ "description": "Page size",
2088
+ "name": "per",
2089
+ "hasDynamicHelp": false,
2090
+ "multiple": false,
2091
+ "type": "option"
2092
+ },
2093
+ "page": {
2094
+ "description": "Page number",
2095
+ "name": "page",
2096
+ "default": 1,
2097
+ "hasDynamicHelp": false,
2098
+ "multiple": false,
2099
+ "type": "option"
1882
2100
  }
1883
2101
  },
1884
2102
  "hasDynamicHelp": false,
1885
2103
  "hiddenAliases": [],
1886
- "id": "invitations:revoke",
2104
+ "id": "kb:list",
1887
2105
  "pluginAlias": "@bussolabs/closeyourit-cli",
1888
2106
  "pluginName": "@bussolabs/closeyourit-cli",
1889
2107
  "pluginType": "core",
@@ -1893,8 +2111,183 @@
1893
2111
  "relativePath": [
1894
2112
  "dist",
1895
2113
  "commands",
1896
- "invitations",
1897
- "revoke.js"
2114
+ "kb",
2115
+ "list.js"
2116
+ ]
2117
+ },
2118
+ "kb:search": {
2119
+ "aliases": [],
2120
+ "args": {
2121
+ "query": {
2122
+ "description": "Search query (all positional words are joined)",
2123
+ "name": "query"
2124
+ }
2125
+ },
2126
+ "description": "Search knowledge pages (semantic when available, ILIKE fallback on the title otherwise)",
2127
+ "examples": [
2128
+ "<%= config.bin %> kb search kamal deploy rollback",
2129
+ "<%= config.bin %> kb search \"connection pool timeout\" --project acme-api",
2130
+ "<%= config.bin %> kb search retry backoff --kind decision --json"
2131
+ ],
2132
+ "flags": {
2133
+ "json": {
2134
+ "description": "Format output as json.",
2135
+ "helpGroup": "GLOBAL",
2136
+ "name": "json",
2137
+ "allowNo": false,
2138
+ "type": "boolean"
2139
+ },
2140
+ "project": {
2141
+ "char": "p",
2142
+ "description": "Filter by project (key or UUID)",
2143
+ "name": "project",
2144
+ "hasDynamicHelp": false,
2145
+ "multiple": false,
2146
+ "type": "option"
2147
+ },
2148
+ "kind": {
2149
+ "description": "Filter by kind: note|decision|guide (repeatable or comma-separated)",
2150
+ "name": "kind",
2151
+ "hasDynamicHelp": false,
2152
+ "multiple": true,
2153
+ "type": "option"
2154
+ },
2155
+ "per": {
2156
+ "description": "Page size",
2157
+ "name": "per",
2158
+ "hasDynamicHelp": false,
2159
+ "multiple": false,
2160
+ "type": "option"
2161
+ },
2162
+ "page": {
2163
+ "description": "Page number",
2164
+ "name": "page",
2165
+ "default": 1,
2166
+ "hasDynamicHelp": false,
2167
+ "multiple": false,
2168
+ "type": "option"
2169
+ }
2170
+ },
2171
+ "hasDynamicHelp": false,
2172
+ "hiddenAliases": [],
2173
+ "id": "kb:search",
2174
+ "pluginAlias": "@bussolabs/closeyourit-cli",
2175
+ "pluginName": "@bussolabs/closeyourit-cli",
2176
+ "pluginType": "core",
2177
+ "strict": false,
2178
+ "enableJsonFlag": true,
2179
+ "isESM": false,
2180
+ "relativePath": [
2181
+ "dist",
2182
+ "commands",
2183
+ "kb",
2184
+ "search.js"
2185
+ ]
2186
+ },
2187
+ "kb:show": {
2188
+ "aliases": [],
2189
+ "args": {
2190
+ "id": {
2191
+ "description": "Knowledge page id",
2192
+ "name": "id",
2193
+ "required": true
2194
+ }
2195
+ },
2196
+ "description": "Show a single knowledge page: metadata header then the raw markdown body",
2197
+ "examples": [
2198
+ "<%= config.bin %> kb show <page-id>",
2199
+ "<%= config.bin %> kb show <page-id> --json"
2200
+ ],
2201
+ "flags": {
2202
+ "json": {
2203
+ "description": "Format output as json.",
2204
+ "helpGroup": "GLOBAL",
2205
+ "name": "json",
2206
+ "allowNo": false,
2207
+ "type": "boolean"
2208
+ }
2209
+ },
2210
+ "hasDynamicHelp": false,
2211
+ "hiddenAliases": [],
2212
+ "id": "kb:show",
2213
+ "pluginAlias": "@bussolabs/closeyourit-cli",
2214
+ "pluginName": "@bussolabs/closeyourit-cli",
2215
+ "pluginType": "core",
2216
+ "strict": true,
2217
+ "enableJsonFlag": true,
2218
+ "isESM": false,
2219
+ "relativePath": [
2220
+ "dist",
2221
+ "commands",
2222
+ "kb",
2223
+ "show.js"
2224
+ ]
2225
+ },
2226
+ "kb:update": {
2227
+ "aliases": [],
2228
+ "args": {
2229
+ "id": {
2230
+ "description": "Knowledge page id",
2231
+ "name": "id",
2232
+ "required": true
2233
+ }
2234
+ },
2235
+ "description": "Update a knowledge page (only the fields you pass; the others keep their current value)",
2236
+ "examples": [
2237
+ "<%= config.bin %> kb update <page-id> --title \"New title\"",
2238
+ "<%= config.bin %> kb update <page-id> --kind decision --body-file ./adr.md"
2239
+ ],
2240
+ "flags": {
2241
+ "json": {
2242
+ "description": "Format output as json.",
2243
+ "helpGroup": "GLOBAL",
2244
+ "name": "json",
2245
+ "allowNo": false,
2246
+ "type": "boolean"
2247
+ },
2248
+ "title": {
2249
+ "description": "New title",
2250
+ "name": "title",
2251
+ "hasDynamicHelp": false,
2252
+ "multiple": false,
2253
+ "type": "option"
2254
+ },
2255
+ "kind": {
2256
+ "description": "New kind: note|decision|guide",
2257
+ "name": "kind",
2258
+ "hasDynamicHelp": false,
2259
+ "multiple": false,
2260
+ "type": "option"
2261
+ },
2262
+ "body": {
2263
+ "description": "New body (markdown)",
2264
+ "name": "body",
2265
+ "hasDynamicHelp": false,
2266
+ "multiple": false,
2267
+ "type": "option"
2268
+ },
2269
+ "body-file": {
2270
+ "description": "Read the new body (markdown) from a local file",
2271
+ "name": "body-file",
2272
+ "hasDynamicHelp": false,
2273
+ "multiple": false,
2274
+ "type": "option"
2275
+ }
2276
+ },
2277
+ "hasDynamicHelp": false,
2278
+ "hiddenAliases": [],
2279
+ "id": "kb:update",
2280
+ "pluginAlias": "@bussolabs/closeyourit-cli",
2281
+ "pluginName": "@bussolabs/closeyourit-cli",
2282
+ "pluginType": "core",
2283
+ "strict": true,
2284
+ "enableJsonFlag": true,
2285
+ "isESM": false,
2286
+ "relativePath": [
2287
+ "dist",
2288
+ "commands",
2289
+ "kb",
2290
+ "update.js"
1898
2291
  ]
1899
2292
  },
1900
2293
  "logs:list": {
@@ -2118,13 +2511,13 @@
2118
2511
  "set-role.js"
2119
2512
  ]
2120
2513
  },
2121
- "metrics:list": {
2514
+ "milestones:create": {
2122
2515
  "aliases": [],
2123
2516
  "args": {},
2124
- "description": "List performance metric groups (slow queries/methods) for a project",
2517
+ "description": "Create a milestone for a project",
2125
2518
  "examples": [
2126
- "<%= config.bin %> metrics list --project acme-api",
2127
- "<%= config.bin %> metrics list -p acme-api --kind sql --json"
2519
+ "<%= config.bin %> milestones create --project acme-api --code v1 --label \"Version 1.0\"",
2520
+ "<%= config.bin %> milestones create -p acme-api --code v1 --label \"Version 1.0\" --due-on 2026-12-31"
2128
2521
  ],
2129
2522
  "flags": {
2130
2523
  "json": {
@@ -2143,25 +2536,46 @@
2143
2536
  "multiple": false,
2144
2537
  "type": "option"
2145
2538
  },
2146
- "page": {
2147
- "description": "Page number",
2148
- "name": "page",
2149
- "default": 1,
2539
+ "code": {
2540
+ "description": "Milestone code (short identifier)",
2541
+ "name": "code",
2542
+ "required": true,
2150
2543
  "hasDynamicHelp": false,
2151
2544
  "multiple": false,
2152
2545
  "type": "option"
2153
2546
  },
2154
- "kind": {
2155
- "description": "Filter by metric kind (e.g. sql, method)",
2156
- "name": "kind",
2547
+ "label": {
2548
+ "description": "Human-readable label",
2549
+ "name": "label",
2550
+ "required": true,
2551
+ "hasDynamicHelp": false,
2552
+ "multiple": false,
2553
+ "type": "option"
2554
+ },
2555
+ "color": {
2556
+ "description": "Color label",
2557
+ "name": "color",
2157
2558
  "hasDynamicHelp": false,
2158
2559
  "multiple": false,
2159
2560
  "type": "option"
2561
+ },
2562
+ "due-on": {
2563
+ "description": "Due date (YYYY-MM-DD)",
2564
+ "name": "due-on",
2565
+ "hasDynamicHelp": false,
2566
+ "multiple": false,
2567
+ "type": "option"
2568
+ },
2569
+ "active": {
2570
+ "description": "Whether the milestone is active",
2571
+ "name": "active",
2572
+ "allowNo": true,
2573
+ "type": "boolean"
2160
2574
  }
2161
2575
  },
2162
2576
  "hasDynamicHelp": false,
2163
2577
  "hiddenAliases": [],
2164
- "id": "metrics:list",
2578
+ "id": "milestones:create",
2165
2579
  "pluginAlias": "@bussolabs/closeyourit-cli",
2166
2580
  "pluginName": "@bussolabs/closeyourit-cli",
2167
2581
  "pluginType": "core",
@@ -2171,22 +2585,22 @@
2171
2585
  "relativePath": [
2172
2586
  "dist",
2173
2587
  "commands",
2174
- "metrics",
2175
- "list.js"
2588
+ "milestones",
2589
+ "create.js"
2176
2590
  ]
2177
2591
  },
2178
- "metrics:promote": {
2592
+ "milestones:delete": {
2179
2593
  "aliases": [],
2180
2594
  "args": {
2181
2595
  "id": {
2182
- "description": "Metric group id",
2596
+ "description": "Milestone id",
2183
2597
  "name": "id",
2184
2598
  "required": true
2185
2599
  }
2186
2600
  },
2187
- "description": "Promote a metric group (slow query/method) to a ticket",
2601
+ "description": "Delete a milestone (irreversible)",
2188
2602
  "examples": [
2189
- "<%= config.bin %> metrics promote <group-id> --project acme-api"
2603
+ "<%= config.bin %> milestones delete <milestone-id> --project acme-api --confirm"
2190
2604
  ],
2191
2605
  "flags": {
2192
2606
  "json": {
@@ -2204,11 +2618,17 @@
2204
2618
  "hasDynamicHelp": false,
2205
2619
  "multiple": false,
2206
2620
  "type": "option"
2621
+ },
2622
+ "confirm": {
2623
+ "description": "Required: confirm the deletion",
2624
+ "name": "confirm",
2625
+ "allowNo": false,
2626
+ "type": "boolean"
2207
2627
  }
2208
2628
  },
2209
2629
  "hasDynamicHelp": false,
2210
2630
  "hiddenAliases": [],
2211
- "id": "metrics:promote",
2631
+ "id": "milestones:delete",
2212
2632
  "pluginAlias": "@bussolabs/closeyourit-cli",
2213
2633
  "pluginName": "@bussolabs/closeyourit-cli",
2214
2634
  "pluginType": "core",
@@ -2218,22 +2638,17 @@
2218
2638
  "relativePath": [
2219
2639
  "dist",
2220
2640
  "commands",
2221
- "metrics",
2222
- "promote.js"
2641
+ "milestones",
2642
+ "delete.js"
2223
2643
  ]
2224
2644
  },
2225
- "metrics:show": {
2645
+ "milestones:list": {
2226
2646
  "aliases": [],
2227
- "args": {
2228
- "id": {
2229
- "description": "Metric group id",
2230
- "name": "id",
2231
- "required": true
2232
- }
2233
- },
2234
- "description": "Show a single metric group",
2647
+ "args": {},
2648
+ "description": "List the milestones for a project",
2235
2649
  "examples": [
2236
- "<%= config.bin %> metrics show <group-id> --project acme-api"
2650
+ "<%= config.bin %> milestones list --project acme-api",
2651
+ "<%= config.bin %> milestones list -p acme-api --json"
2237
2652
  ],
2238
2653
  "flags": {
2239
2654
  "json": {
@@ -2251,11 +2666,19 @@
2251
2666
  "hasDynamicHelp": false,
2252
2667
  "multiple": false,
2253
2668
  "type": "option"
2254
- }
2255
- },
2669
+ },
2670
+ "page": {
2671
+ "description": "Page number",
2672
+ "name": "page",
2673
+ "default": 1,
2674
+ "hasDynamicHelp": false,
2675
+ "multiple": false,
2676
+ "type": "option"
2677
+ }
2678
+ },
2256
2679
  "hasDynamicHelp": false,
2257
2680
  "hiddenAliases": [],
2258
- "id": "metrics:show",
2681
+ "id": "milestones:list",
2259
2682
  "pluginAlias": "@bussolabs/closeyourit-cli",
2260
2683
  "pluginName": "@bussolabs/closeyourit-cli",
2261
2684
  "pluginType": "core",
@@ -2265,17 +2688,22 @@
2265
2688
  "relativePath": [
2266
2689
  "dist",
2267
2690
  "commands",
2268
- "metrics",
2269
- "show.js"
2691
+ "milestones",
2692
+ "list.js"
2270
2693
  ]
2271
2694
  },
2272
- "milestones:create": {
2695
+ "milestones:show": {
2273
2696
  "aliases": [],
2274
- "args": {},
2275
- "description": "Create a milestone for a project",
2697
+ "args": {
2698
+ "id": {
2699
+ "description": "Milestone id",
2700
+ "name": "id",
2701
+ "required": true
2702
+ }
2703
+ },
2704
+ "description": "Show a single milestone",
2276
2705
  "examples": [
2277
- "<%= config.bin %> milestones create --project acme-api --code v1 --label \"Version 1.0\"",
2278
- "<%= config.bin %> milestones create -p acme-api --code v1 --label \"Version 1.0\" --due-on 2026-12-31"
2706
+ "<%= config.bin %> milestones show <milestone-id> --project acme-api"
2279
2707
  ],
2280
2708
  "flags": {
2281
2709
  "json": {
@@ -2293,47 +2721,11 @@
2293
2721
  "hasDynamicHelp": false,
2294
2722
  "multiple": false,
2295
2723
  "type": "option"
2296
- },
2297
- "code": {
2298
- "description": "Milestone code (short identifier)",
2299
- "name": "code",
2300
- "required": true,
2301
- "hasDynamicHelp": false,
2302
- "multiple": false,
2303
- "type": "option"
2304
- },
2305
- "label": {
2306
- "description": "Human-readable label",
2307
- "name": "label",
2308
- "required": true,
2309
- "hasDynamicHelp": false,
2310
- "multiple": false,
2311
- "type": "option"
2312
- },
2313
- "color": {
2314
- "description": "Color label",
2315
- "name": "color",
2316
- "hasDynamicHelp": false,
2317
- "multiple": false,
2318
- "type": "option"
2319
- },
2320
- "due-on": {
2321
- "description": "Due date (YYYY-MM-DD)",
2322
- "name": "due-on",
2323
- "hasDynamicHelp": false,
2324
- "multiple": false,
2325
- "type": "option"
2326
- },
2327
- "active": {
2328
- "description": "Whether the milestone is active",
2329
- "name": "active",
2330
- "allowNo": true,
2331
- "type": "boolean"
2332
2724
  }
2333
2725
  },
2334
2726
  "hasDynamicHelp": false,
2335
2727
  "hiddenAliases": [],
2336
- "id": "milestones:create",
2728
+ "id": "milestones:show",
2337
2729
  "pluginAlias": "@bussolabs/closeyourit-cli",
2338
2730
  "pluginName": "@bussolabs/closeyourit-cli",
2339
2731
  "pluginType": "core",
@@ -2344,10 +2736,10 @@
2344
2736
  "dist",
2345
2737
  "commands",
2346
2738
  "milestones",
2347
- "create.js"
2739
+ "show.js"
2348
2740
  ]
2349
2741
  },
2350
- "milestones:delete": {
2742
+ "milestones:update": {
2351
2743
  "aliases": [],
2352
2744
  "args": {
2353
2745
  "id": {
@@ -2356,9 +2748,10 @@
2356
2748
  "required": true
2357
2749
  }
2358
2750
  },
2359
- "description": "Delete a milestone (irreversible)",
2751
+ "description": "Update a milestone (send only the fields you want to change)",
2360
2752
  "examples": [
2361
- "<%= config.bin %> milestones delete <milestone-id> --project acme-api --confirm"
2753
+ "<%= config.bin %> milestones update <milestone-id> --project acme-api --label \"Version 1.1\"",
2754
+ "<%= config.bin %> milestones update <milestone-id> -p acme-api --due-on 2027-01-15 --no-active"
2362
2755
  ],
2363
2756
  "flags": {
2364
2757
  "json": {
@@ -2377,16 +2770,44 @@
2377
2770
  "multiple": false,
2378
2771
  "type": "option"
2379
2772
  },
2380
- "confirm": {
2381
- "description": "Required: confirm the deletion",
2382
- "name": "confirm",
2383
- "allowNo": false,
2773
+ "code": {
2774
+ "description": "Milestone code (short identifier)",
2775
+ "name": "code",
2776
+ "hasDynamicHelp": false,
2777
+ "multiple": false,
2778
+ "type": "option"
2779
+ },
2780
+ "label": {
2781
+ "description": "Human-readable label",
2782
+ "name": "label",
2783
+ "hasDynamicHelp": false,
2784
+ "multiple": false,
2785
+ "type": "option"
2786
+ },
2787
+ "color": {
2788
+ "description": "Color label",
2789
+ "name": "color",
2790
+ "hasDynamicHelp": false,
2791
+ "multiple": false,
2792
+ "type": "option"
2793
+ },
2794
+ "due-on": {
2795
+ "description": "Due date (YYYY-MM-DD)",
2796
+ "name": "due-on",
2797
+ "hasDynamicHelp": false,
2798
+ "multiple": false,
2799
+ "type": "option"
2800
+ },
2801
+ "active": {
2802
+ "description": "Whether the milestone is active",
2803
+ "name": "active",
2804
+ "allowNo": true,
2384
2805
  "type": "boolean"
2385
2806
  }
2386
2807
  },
2387
2808
  "hasDynamicHelp": false,
2388
2809
  "hiddenAliases": [],
2389
- "id": "milestones:delete",
2810
+ "id": "milestones:update",
2390
2811
  "pluginAlias": "@bussolabs/closeyourit-cli",
2391
2812
  "pluginName": "@bussolabs/closeyourit-cli",
2392
2813
  "pluginType": "core",
@@ -2397,16 +2818,16 @@
2397
2818
  "dist",
2398
2819
  "commands",
2399
2820
  "milestones",
2400
- "delete.js"
2821
+ "update.js"
2401
2822
  ]
2402
2823
  },
2403
- "milestones:list": {
2824
+ "metrics:list": {
2404
2825
  "aliases": [],
2405
2826
  "args": {},
2406
- "description": "List the milestones for a project",
2827
+ "description": "List performance metric groups (slow queries/methods) for a project",
2407
2828
  "examples": [
2408
- "<%= config.bin %> milestones list --project acme-api",
2409
- "<%= config.bin %> milestones list -p acme-api --json"
2829
+ "<%= config.bin %> metrics list --project acme-api",
2830
+ "<%= config.bin %> metrics list -p acme-api --kind sql --json"
2410
2831
  ],
2411
2832
  "flags": {
2412
2833
  "json": {
@@ -2432,11 +2853,18 @@
2432
2853
  "hasDynamicHelp": false,
2433
2854
  "multiple": false,
2434
2855
  "type": "option"
2856
+ },
2857
+ "kind": {
2858
+ "description": "Filter by metric kind (e.g. sql, method)",
2859
+ "name": "kind",
2860
+ "hasDynamicHelp": false,
2861
+ "multiple": false,
2862
+ "type": "option"
2435
2863
  }
2436
2864
  },
2437
2865
  "hasDynamicHelp": false,
2438
2866
  "hiddenAliases": [],
2439
- "id": "milestones:list",
2867
+ "id": "metrics:list",
2440
2868
  "pluginAlias": "@bussolabs/closeyourit-cli",
2441
2869
  "pluginName": "@bussolabs/closeyourit-cli",
2442
2870
  "pluginType": "core",
@@ -2446,22 +2874,22 @@
2446
2874
  "relativePath": [
2447
2875
  "dist",
2448
2876
  "commands",
2449
- "milestones",
2877
+ "metrics",
2450
2878
  "list.js"
2451
2879
  ]
2452
2880
  },
2453
- "milestones:show": {
2881
+ "metrics:promote": {
2454
2882
  "aliases": [],
2455
2883
  "args": {
2456
2884
  "id": {
2457
- "description": "Milestone id",
2885
+ "description": "Metric group id",
2458
2886
  "name": "id",
2459
2887
  "required": true
2460
2888
  }
2461
2889
  },
2462
- "description": "Show a single milestone",
2890
+ "description": "Promote a metric group (slow query/method) to a ticket",
2463
2891
  "examples": [
2464
- "<%= config.bin %> milestones show <milestone-id> --project acme-api"
2892
+ "<%= config.bin %> metrics promote <group-id> --project acme-api"
2465
2893
  ],
2466
2894
  "flags": {
2467
2895
  "json": {
@@ -2483,7 +2911,7 @@
2483
2911
  },
2484
2912
  "hasDynamicHelp": false,
2485
2913
  "hiddenAliases": [],
2486
- "id": "milestones:show",
2914
+ "id": "metrics:promote",
2487
2915
  "pluginAlias": "@bussolabs/closeyourit-cli",
2488
2916
  "pluginName": "@bussolabs/closeyourit-cli",
2489
2917
  "pluginType": "core",
@@ -2493,23 +2921,22 @@
2493
2921
  "relativePath": [
2494
2922
  "dist",
2495
2923
  "commands",
2496
- "milestones",
2497
- "show.js"
2924
+ "metrics",
2925
+ "promote.js"
2498
2926
  ]
2499
2927
  },
2500
- "milestones:update": {
2928
+ "metrics:show": {
2501
2929
  "aliases": [],
2502
2930
  "args": {
2503
2931
  "id": {
2504
- "description": "Milestone id",
2932
+ "description": "Metric group id",
2505
2933
  "name": "id",
2506
2934
  "required": true
2507
2935
  }
2508
2936
  },
2509
- "description": "Update a milestone (send only the fields you want to change)",
2937
+ "description": "Show a single metric group",
2510
2938
  "examples": [
2511
- "<%= config.bin %> milestones update <milestone-id> --project acme-api --label \"Version 1.1\"",
2512
- "<%= config.bin %> milestones update <milestone-id> -p acme-api --due-on 2027-01-15 --no-active"
2939
+ "<%= config.bin %> metrics show <group-id> --project acme-api"
2513
2940
  ],
2514
2941
  "flags": {
2515
2942
  "json": {
@@ -2527,45 +2954,11 @@
2527
2954
  "hasDynamicHelp": false,
2528
2955
  "multiple": false,
2529
2956
  "type": "option"
2530
- },
2531
- "code": {
2532
- "description": "Milestone code (short identifier)",
2533
- "name": "code",
2534
- "hasDynamicHelp": false,
2535
- "multiple": false,
2536
- "type": "option"
2537
- },
2538
- "label": {
2539
- "description": "Human-readable label",
2540
- "name": "label",
2541
- "hasDynamicHelp": false,
2542
- "multiple": false,
2543
- "type": "option"
2544
- },
2545
- "color": {
2546
- "description": "Color label",
2547
- "name": "color",
2548
- "hasDynamicHelp": false,
2549
- "multiple": false,
2550
- "type": "option"
2551
- },
2552
- "due-on": {
2553
- "description": "Due date (YYYY-MM-DD)",
2554
- "name": "due-on",
2555
- "hasDynamicHelp": false,
2556
- "multiple": false,
2557
- "type": "option"
2558
- },
2559
- "active": {
2560
- "description": "Whether the milestone is active",
2561
- "name": "active",
2562
- "allowNo": true,
2563
- "type": "boolean"
2564
2957
  }
2565
2958
  },
2566
2959
  "hasDynamicHelp": false,
2567
2960
  "hiddenAliases": [],
2568
- "id": "milestones:update",
2961
+ "id": "metrics:show",
2569
2962
  "pluginAlias": "@bussolabs/closeyourit-cli",
2570
2963
  "pluginName": "@bussolabs/closeyourit-cli",
2571
2964
  "pluginType": "core",
@@ -2575,8 +2968,8 @@
2575
2968
  "relativePath": [
2576
2969
  "dist",
2577
2970
  "commands",
2578
- "milestones",
2579
- "update.js"
2971
+ "metrics",
2972
+ "show.js"
2580
2973
  ]
2581
2974
  },
2582
2975
  "monitors:create": {
@@ -3958,23 +4351,18 @@
3958
4351
  "update.js"
3959
4352
  ]
3960
4353
  },
3961
- "teams:add-member": {
4354
+ "servers:delete": {
3962
4355
  "aliases": [],
3963
4356
  "args": {
3964
- "team": {
3965
- "description": "Team id (UUID) or name",
3966
- "name": "team",
3967
- "required": true
3968
- },
3969
- "member": {
3970
- "description": "Member account id or email (must be an org member)",
3971
- "name": "member",
4357
+ "id": {
4358
+ "description": "Server id",
4359
+ "name": "id",
3972
4360
  "required": true
3973
4361
  }
3974
4362
  },
3975
- "description": "Add a person to a team, keeping the existing members",
4363
+ "description": "Delete a server and all its metrics (a live agent would re-register it)",
3976
4364
  "examples": [
3977
- "<%= config.bin %> teams add-member DriverOne client@acme.com"
4365
+ "<%= config.bin %> servers delete <server-id> --confirm"
3978
4366
  ],
3979
4367
  "flags": {
3980
4368
  "json": {
@@ -3983,11 +4371,17 @@
3983
4371
  "name": "json",
3984
4372
  "allowNo": false,
3985
4373
  "type": "boolean"
4374
+ },
4375
+ "confirm": {
4376
+ "description": "Required: confirm the deletion",
4377
+ "name": "confirm",
4378
+ "allowNo": false,
4379
+ "type": "boolean"
3986
4380
  }
3987
4381
  },
3988
4382
  "hasDynamicHelp": false,
3989
4383
  "hiddenAliases": [],
3990
- "id": "teams:add-member",
4384
+ "id": "servers:delete",
3991
4385
  "pluginAlias": "@bussolabs/closeyourit-cli",
3992
4386
  "pluginName": "@bussolabs/closeyourit-cli",
3993
4387
  "pluginType": "core",
@@ -3997,23 +4391,17 @@
3997
4391
  "relativePath": [
3998
4392
  "dist",
3999
4393
  "commands",
4000
- "teams",
4001
- "add-member.js"
4394
+ "servers",
4395
+ "delete.js"
4002
4396
  ]
4003
4397
  },
4004
- "teams:create": {
4398
+ "servers:list": {
4005
4399
  "aliases": [],
4006
- "args": {
4007
- "name": {
4008
- "description": "Team name",
4009
- "name": "name",
4010
- "required": true
4011
- }
4012
- },
4013
- "description": "Create a team and (optionally) set its roles, group/project scope and members",
4400
+ "args": {},
4401
+ "description": "List the monitored servers in your organization (fleet snapshot)",
4014
4402
  "examples": [
4015
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
4016
- "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
4403
+ "<%= config.bin %> servers list",
4404
+ "<%= config.bin %> servers list --status down --json"
4017
4405
  ],
4018
4406
  "flags": {
4019
4407
  "json": {
@@ -4023,45 +4411,31 @@
4023
4411
  "allowNo": false,
4024
4412
  "type": "boolean"
4025
4413
  },
4026
- "color": {
4027
- "description": "Color label",
4028
- "name": "color",
4414
+ "page": {
4415
+ "description": "Page number",
4416
+ "name": "page",
4417
+ "default": 1,
4029
4418
  "hasDynamicHelp": false,
4030
4419
  "multiple": false,
4031
4420
  "type": "option"
4032
4421
  },
4033
- "group": {
4034
- "description": "Group id or name to scope the team to (repeatable)",
4035
- "name": "group",
4036
- "hasDynamicHelp": false,
4037
- "multiple": true,
4038
- "type": "option"
4039
- },
4040
- "member": {
4041
- "description": "Member account id or email (repeatable; must be an org member)",
4042
- "name": "member",
4043
- "hasDynamicHelp": false,
4044
- "multiple": true,
4045
- "type": "option"
4046
- },
4047
- "project": {
4048
- "description": "Project id or key to scope the team to (repeatable)",
4049
- "name": "project",
4050
- "hasDynamicHelp": false,
4051
- "multiple": true,
4052
- "type": "option"
4053
- },
4054
- "role": {
4055
- "description": "Role id or name to grant to the team (repeatable)",
4056
- "name": "role",
4422
+ "status": {
4423
+ "description": "Filter by status (repeatable)",
4424
+ "name": "status",
4057
4425
  "hasDynamicHelp": false,
4058
4426
  "multiple": true,
4427
+ "options": [
4428
+ "pending",
4429
+ "up",
4430
+ "down",
4431
+ "paused"
4432
+ ],
4059
4433
  "type": "option"
4060
4434
  }
4061
4435
  },
4062
4436
  "hasDynamicHelp": false,
4063
4437
  "hiddenAliases": [],
4064
- "id": "teams:create",
4438
+ "id": "servers:list",
4065
4439
  "pluginAlias": "@bussolabs/closeyourit-cli",
4066
4440
  "pluginName": "@bussolabs/closeyourit-cli",
4067
4441
  "pluginType": "core",
@@ -4071,22 +4445,22 @@
4071
4445
  "relativePath": [
4072
4446
  "dist",
4073
4447
  "commands",
4074
- "teams",
4075
- "create.js"
4448
+ "servers",
4449
+ "list.js"
4076
4450
  ]
4077
4451
  },
4078
- "teams:delete": {
4452
+ "servers:pause": {
4079
4453
  "aliases": [],
4080
4454
  "args": {
4081
- "team": {
4082
- "description": "Team id (UUID) or name",
4083
- "name": "team",
4455
+ "id": {
4456
+ "description": "Server id",
4457
+ "name": "id",
4084
4458
  "required": true
4085
4459
  }
4086
4460
  },
4087
- "description": "Delete a team (its members lose the access this team granted)",
4461
+ "description": "Pause a server (no staleness checks or alerts until resumed)",
4088
4462
  "examples": [
4089
- "<%= config.bin %> teams delete DriverOne"
4463
+ "<%= config.bin %> servers pause <server-id>"
4090
4464
  ],
4091
4465
  "flags": {
4092
4466
  "json": {
@@ -4099,7 +4473,7 @@
4099
4473
  },
4100
4474
  "hasDynamicHelp": false,
4101
4475
  "hiddenAliases": [],
4102
- "id": "teams:delete",
4476
+ "id": "servers:pause",
4103
4477
  "pluginAlias": "@bussolabs/closeyourit-cli",
4104
4478
  "pluginName": "@bussolabs/closeyourit-cli",
4105
4479
  "pluginType": "core",
@@ -4109,17 +4483,22 @@
4109
4483
  "relativePath": [
4110
4484
  "dist",
4111
4485
  "commands",
4112
- "teams",
4113
- "delete.js"
4486
+ "servers",
4487
+ "pause.js"
4114
4488
  ]
4115
4489
  },
4116
- "teams:list": {
4490
+ "servers:rename": {
4117
4491
  "aliases": [],
4118
- "args": {},
4119
- "description": "List the teams (people with scope) in your organization",
4492
+ "args": {
4493
+ "id": {
4494
+ "description": "Server id",
4495
+ "name": "id",
4496
+ "required": true
4497
+ }
4498
+ },
4499
+ "description": "Rename a monitored server (display name only)",
4120
4500
  "examples": [
4121
- "<%= config.bin %> teams list",
4122
- "<%= config.bin %> teams list --json"
4501
+ "<%= config.bin %> servers rename <server-id> --name apps-prod"
4123
4502
  ],
4124
4503
  "flags": {
4125
4504
  "json": {
@@ -4129,10 +4508,10 @@
4129
4508
  "allowNo": false,
4130
4509
  "type": "boolean"
4131
4510
  },
4132
- "page": {
4133
- "description": "Page number",
4134
- "name": "page",
4135
- "default": 1,
4511
+ "name": {
4512
+ "description": "New display name",
4513
+ "name": "name",
4514
+ "required": true,
4136
4515
  "hasDynamicHelp": false,
4137
4516
  "multiple": false,
4138
4517
  "type": "option"
@@ -4140,7 +4519,7 @@
4140
4519
  },
4141
4520
  "hasDynamicHelp": false,
4142
4521
  "hiddenAliases": [],
4143
- "id": "teams:list",
4522
+ "id": "servers:rename",
4144
4523
  "pluginAlias": "@bussolabs/closeyourit-cli",
4145
4524
  "pluginName": "@bussolabs/closeyourit-cli",
4146
4525
  "pluginType": "core",
@@ -4150,27 +4529,22 @@
4150
4529
  "relativePath": [
4151
4530
  "dist",
4152
4531
  "commands",
4153
- "teams",
4154
- "list.js"
4532
+ "servers",
4533
+ "rename.js"
4155
4534
  ]
4156
4535
  },
4157
- "teams:remove-member": {
4536
+ "servers:resume": {
4158
4537
  "aliases": [],
4159
4538
  "args": {
4160
- "team": {
4161
- "description": "Team id (UUID) or name",
4162
- "name": "team",
4163
- "required": true
4164
- },
4165
- "member": {
4166
- "description": "Member account id or email",
4167
- "name": "member",
4539
+ "id": {
4540
+ "description": "Server id",
4541
+ "name": "id",
4168
4542
  "required": true
4169
4543
  }
4170
4544
  },
4171
- "description": "Remove a person from a team, keeping the other members",
4545
+ "description": "Resume a paused server (back up at the next agent push)",
4172
4546
  "examples": [
4173
- "<%= config.bin %> teams remove-member DriverOne client@acme.com"
4547
+ "<%= config.bin %> servers resume <server-id>"
4174
4548
  ],
4175
4549
  "flags": {
4176
4550
  "json": {
@@ -4183,7 +4557,7 @@
4183
4557
  },
4184
4558
  "hasDynamicHelp": false,
4185
4559
  "hiddenAliases": [],
4186
- "id": "teams:remove-member",
4560
+ "id": "servers:resume",
4187
4561
  "pluginAlias": "@bussolabs/closeyourit-cli",
4188
4562
  "pluginName": "@bussolabs/closeyourit-cli",
4189
4563
  "pluginType": "core",
@@ -4193,22 +4567,22 @@
4193
4567
  "relativePath": [
4194
4568
  "dist",
4195
4569
  "commands",
4196
- "teams",
4197
- "remove-member.js"
4570
+ "servers",
4571
+ "resume.js"
4198
4572
  ]
4199
4573
  },
4200
- "teams:show": {
4574
+ "servers:revoke": {
4201
4575
  "aliases": [],
4202
4576
  "args": {
4203
- "team": {
4204
- "description": "Team id (UUID) or name",
4205
- "name": "team",
4577
+ "id": {
4578
+ "description": "Server id",
4579
+ "name": "id",
4206
4580
  "required": true
4207
4581
  }
4208
4582
  },
4209
- "description": "Show a team by id or name (roles, group/project scope, members)",
4583
+ "description": "Revoke a server: its agent gets 403 and stops (host stays, reversible)",
4210
4584
  "examples": [
4211
- "<%= config.bin %> teams show DriverOne"
4585
+ "<%= config.bin %> servers revoke <server-id> --confirm"
4212
4586
  ],
4213
4587
  "flags": {
4214
4588
  "json": {
@@ -4217,11 +4591,17 @@
4217
4591
  "name": "json",
4218
4592
  "allowNo": false,
4219
4593
  "type": "boolean"
4594
+ },
4595
+ "confirm": {
4596
+ "description": "Required: confirm the revocation",
4597
+ "name": "confirm",
4598
+ "allowNo": false,
4599
+ "type": "boolean"
4220
4600
  }
4221
4601
  },
4222
4602
  "hasDynamicHelp": false,
4223
4603
  "hiddenAliases": [],
4224
- "id": "teams:show",
4604
+ "id": "servers:revoke",
4225
4605
  "pluginAlias": "@bussolabs/closeyourit-cli",
4226
4606
  "pluginName": "@bussolabs/closeyourit-cli",
4227
4607
  "pluginType": "core",
@@ -4231,23 +4611,22 @@
4231
4611
  "relativePath": [
4232
4612
  "dist",
4233
4613
  "commands",
4234
- "teams",
4235
- "show.js"
4614
+ "servers",
4615
+ "revoke.js"
4236
4616
  ]
4237
4617
  },
4238
- "teams:update": {
4618
+ "servers:show": {
4239
4619
  "aliases": [],
4240
4620
  "args": {
4241
- "team": {
4242
- "description": "Team id (UUID) or name",
4243
- "name": "team",
4621
+ "id": {
4622
+ "description": "Server id",
4623
+ "name": "id",
4244
4624
  "required": true
4245
4625
  }
4246
4626
  },
4247
- "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
4627
+ "description": "Show a monitored server (latest snapshot)",
4248
4628
  "examples": [
4249
- "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
4250
- "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
4629
+ "<%= config.bin %> servers show <server-id>"
4251
4630
  ],
4252
4631
  "flags": {
4253
4632
  "json": {
@@ -4256,53 +4635,11 @@
4256
4635
  "name": "json",
4257
4636
  "allowNo": false,
4258
4637
  "type": "boolean"
4259
- },
4260
- "color": {
4261
- "description": "Color label",
4262
- "name": "color",
4263
- "hasDynamicHelp": false,
4264
- "multiple": false,
4265
- "type": "option"
4266
- },
4267
- "group": {
4268
- "description": "Group id or name (repeatable; replaces the group scope)",
4269
- "name": "group",
4270
- "hasDynamicHelp": false,
4271
- "multiple": true,
4272
- "type": "option"
4273
- },
4274
- "member": {
4275
- "description": "Member account id or email (repeatable; replaces the members)",
4276
- "name": "member",
4277
- "hasDynamicHelp": false,
4278
- "multiple": true,
4279
- "type": "option"
4280
- },
4281
- "name": {
4282
- "description": "New name",
4283
- "name": "name",
4284
- "hasDynamicHelp": false,
4285
- "multiple": false,
4286
- "type": "option"
4287
- },
4288
- "project": {
4289
- "description": "Project id or key (repeatable; replaces the project scope)",
4290
- "name": "project",
4291
- "hasDynamicHelp": false,
4292
- "multiple": true,
4293
- "type": "option"
4294
- },
4295
- "role": {
4296
- "description": "Role id or name (repeatable; replaces the roles)",
4297
- "name": "role",
4298
- "hasDynamicHelp": false,
4299
- "multiple": true,
4300
- "type": "option"
4301
4638
  }
4302
4639
  },
4303
4640
  "hasDynamicHelp": false,
4304
4641
  "hiddenAliases": [],
4305
- "id": "teams:update",
4642
+ "id": "servers:show",
4306
4643
  "pluginAlias": "@bussolabs/closeyourit-cli",
4307
4644
  "pluginName": "@bussolabs/closeyourit-cli",
4308
4645
  "pluginType": "core",
@@ -4312,11 +4649,11 @@
4312
4649
  "relativePath": [
4313
4650
  "dist",
4314
4651
  "commands",
4315
- "teams",
4316
- "update.js"
4652
+ "servers",
4653
+ "show.js"
4317
4654
  ]
4318
4655
  },
4319
- "servers:delete": {
4656
+ "servers:unrevoke": {
4320
4657
  "aliases": [],
4321
4658
  "args": {
4322
4659
  "id": {
@@ -4325,9 +4662,9 @@
4325
4662
  "required": true
4326
4663
  }
4327
4664
  },
4328
- "description": "Delete a server and all its metrics (a live agent would re-register it)",
4665
+ "description": "Restore a revoked server (its agent can push again)",
4329
4666
  "examples": [
4330
- "<%= config.bin %> servers delete <server-id> --confirm"
4667
+ "<%= config.bin %> servers unrevoke <server-id>"
4331
4668
  ],
4332
4669
  "flags": {
4333
4670
  "json": {
@@ -4336,17 +4673,11 @@
4336
4673
  "name": "json",
4337
4674
  "allowNo": false,
4338
4675
  "type": "boolean"
4339
- },
4340
- "confirm": {
4341
- "description": "Required: confirm the deletion",
4342
- "name": "confirm",
4343
- "allowNo": false,
4344
- "type": "boolean"
4345
4676
  }
4346
4677
  },
4347
4678
  "hasDynamicHelp": false,
4348
4679
  "hiddenAliases": [],
4349
- "id": "servers:delete",
4680
+ "id": "servers:unrevoke",
4350
4681
  "pluginAlias": "@bussolabs/closeyourit-cli",
4351
4682
  "pluginName": "@bussolabs/closeyourit-cli",
4352
4683
  "pluginType": "core",
@@ -4357,16 +4688,26 @@
4357
4688
  "dist",
4358
4689
  "commands",
4359
4690
  "servers",
4360
- "delete.js"
4691
+ "unrevoke.js"
4361
4692
  ]
4362
4693
  },
4363
- "servers:list": {
4694
+ "teams:add-member": {
4364
4695
  "aliases": [],
4365
- "args": {},
4366
- "description": "List the monitored servers in your organization (fleet snapshot)",
4696
+ "args": {
4697
+ "team": {
4698
+ "description": "Team id (UUID) or name",
4699
+ "name": "team",
4700
+ "required": true
4701
+ },
4702
+ "member": {
4703
+ "description": "Member account id or email (must be an org member)",
4704
+ "name": "member",
4705
+ "required": true
4706
+ }
4707
+ },
4708
+ "description": "Add a person to a team, keeping the existing members",
4367
4709
  "examples": [
4368
- "<%= config.bin %> servers list",
4369
- "<%= config.bin %> servers list --status down --json"
4710
+ "<%= config.bin %> teams add-member DriverOne client@acme.com"
4370
4711
  ],
4371
4712
  "flags": {
4372
4713
  "json": {
@@ -4375,32 +4716,11 @@
4375
4716
  "name": "json",
4376
4717
  "allowNo": false,
4377
4718
  "type": "boolean"
4378
- },
4379
- "page": {
4380
- "description": "Page number",
4381
- "name": "page",
4382
- "default": 1,
4383
- "hasDynamicHelp": false,
4384
- "multiple": false,
4385
- "type": "option"
4386
- },
4387
- "status": {
4388
- "description": "Filter by status (repeatable)",
4389
- "name": "status",
4390
- "hasDynamicHelp": false,
4391
- "multiple": true,
4392
- "options": [
4393
- "pending",
4394
- "up",
4395
- "down",
4396
- "paused"
4397
- ],
4398
- "type": "option"
4399
4719
  }
4400
4720
  },
4401
4721
  "hasDynamicHelp": false,
4402
4722
  "hiddenAliases": [],
4403
- "id": "servers:list",
4723
+ "id": "teams:add-member",
4404
4724
  "pluginAlias": "@bussolabs/closeyourit-cli",
4405
4725
  "pluginName": "@bussolabs/closeyourit-cli",
4406
4726
  "pluginType": "core",
@@ -4410,22 +4730,23 @@
4410
4730
  "relativePath": [
4411
4731
  "dist",
4412
4732
  "commands",
4413
- "servers",
4414
- "list.js"
4733
+ "teams",
4734
+ "add-member.js"
4415
4735
  ]
4416
4736
  },
4417
- "servers:pause": {
4737
+ "teams:create": {
4418
4738
  "aliases": [],
4419
4739
  "args": {
4420
- "id": {
4421
- "description": "Server id",
4422
- "name": "id",
4740
+ "name": {
4741
+ "description": "Team name",
4742
+ "name": "name",
4423
4743
  "required": true
4424
4744
  }
4425
4745
  },
4426
- "description": "Pause a server (no staleness checks or alerts until resumed)",
4746
+ "description": "Create a team and (optionally) set its roles, group/project scope and members",
4427
4747
  "examples": [
4428
- "<%= config.bin %> servers pause <server-id>"
4748
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne",
4749
+ "<%= config.bin %> teams create DriverOne --role Client --group DriverOne --member client@acme.com"
4429
4750
  ],
4430
4751
  "flags": {
4431
4752
  "json": {
@@ -4434,11 +4755,46 @@
4434
4755
  "name": "json",
4435
4756
  "allowNo": false,
4436
4757
  "type": "boolean"
4758
+ },
4759
+ "color": {
4760
+ "description": "Color label",
4761
+ "name": "color",
4762
+ "hasDynamicHelp": false,
4763
+ "multiple": false,
4764
+ "type": "option"
4765
+ },
4766
+ "group": {
4767
+ "description": "Group id or name to scope the team to (repeatable)",
4768
+ "name": "group",
4769
+ "hasDynamicHelp": false,
4770
+ "multiple": true,
4771
+ "type": "option"
4772
+ },
4773
+ "member": {
4774
+ "description": "Member account id or email (repeatable; must be an org member)",
4775
+ "name": "member",
4776
+ "hasDynamicHelp": false,
4777
+ "multiple": true,
4778
+ "type": "option"
4779
+ },
4780
+ "project": {
4781
+ "description": "Project id or key to scope the team to (repeatable)",
4782
+ "name": "project",
4783
+ "hasDynamicHelp": false,
4784
+ "multiple": true,
4785
+ "type": "option"
4786
+ },
4787
+ "role": {
4788
+ "description": "Role id or name to grant to the team (repeatable)",
4789
+ "name": "role",
4790
+ "hasDynamicHelp": false,
4791
+ "multiple": true,
4792
+ "type": "option"
4437
4793
  }
4438
4794
  },
4439
4795
  "hasDynamicHelp": false,
4440
4796
  "hiddenAliases": [],
4441
- "id": "servers:pause",
4797
+ "id": "teams:create",
4442
4798
  "pluginAlias": "@bussolabs/closeyourit-cli",
4443
4799
  "pluginName": "@bussolabs/closeyourit-cli",
4444
4800
  "pluginType": "core",
@@ -4448,22 +4804,22 @@
4448
4804
  "relativePath": [
4449
4805
  "dist",
4450
4806
  "commands",
4451
- "servers",
4452
- "pause.js"
4807
+ "teams",
4808
+ "create.js"
4453
4809
  ]
4454
4810
  },
4455
- "servers:rename": {
4811
+ "teams:delete": {
4456
4812
  "aliases": [],
4457
4813
  "args": {
4458
- "id": {
4459
- "description": "Server id",
4460
- "name": "id",
4814
+ "team": {
4815
+ "description": "Team id (UUID) or name",
4816
+ "name": "team",
4461
4817
  "required": true
4462
4818
  }
4463
4819
  },
4464
- "description": "Rename a monitored server (display name only)",
4820
+ "description": "Delete a team (its members lose the access this team granted)",
4465
4821
  "examples": [
4466
- "<%= config.bin %> servers rename <server-id> --name apps-prod"
4822
+ "<%= config.bin %> teams delete DriverOne"
4467
4823
  ],
4468
4824
  "flags": {
4469
4825
  "json": {
@@ -4472,19 +4828,11 @@
4472
4828
  "name": "json",
4473
4829
  "allowNo": false,
4474
4830
  "type": "boolean"
4475
- },
4476
- "name": {
4477
- "description": "New display name",
4478
- "name": "name",
4479
- "required": true,
4480
- "hasDynamicHelp": false,
4481
- "multiple": false,
4482
- "type": "option"
4483
4831
  }
4484
4832
  },
4485
4833
  "hasDynamicHelp": false,
4486
4834
  "hiddenAliases": [],
4487
- "id": "servers:rename",
4835
+ "id": "teams:delete",
4488
4836
  "pluginAlias": "@bussolabs/closeyourit-cli",
4489
4837
  "pluginName": "@bussolabs/closeyourit-cli",
4490
4838
  "pluginType": "core",
@@ -4494,22 +4842,17 @@
4494
4842
  "relativePath": [
4495
4843
  "dist",
4496
4844
  "commands",
4497
- "servers",
4498
- "rename.js"
4845
+ "teams",
4846
+ "delete.js"
4499
4847
  ]
4500
4848
  },
4501
- "servers:resume": {
4849
+ "teams:list": {
4502
4850
  "aliases": [],
4503
- "args": {
4504
- "id": {
4505
- "description": "Server id",
4506
- "name": "id",
4507
- "required": true
4508
- }
4509
- },
4510
- "description": "Resume a paused server (back up at the next agent push)",
4851
+ "args": {},
4852
+ "description": "List the teams (people with scope) in your organization",
4511
4853
  "examples": [
4512
- "<%= config.bin %> servers resume <server-id>"
4854
+ "<%= config.bin %> teams list",
4855
+ "<%= config.bin %> teams list --json"
4513
4856
  ],
4514
4857
  "flags": {
4515
4858
  "json": {
@@ -4518,11 +4861,19 @@
4518
4861
  "name": "json",
4519
4862
  "allowNo": false,
4520
4863
  "type": "boolean"
4864
+ },
4865
+ "page": {
4866
+ "description": "Page number",
4867
+ "name": "page",
4868
+ "default": 1,
4869
+ "hasDynamicHelp": false,
4870
+ "multiple": false,
4871
+ "type": "option"
4521
4872
  }
4522
4873
  },
4523
4874
  "hasDynamicHelp": false,
4524
4875
  "hiddenAliases": [],
4525
- "id": "servers:resume",
4876
+ "id": "teams:list",
4526
4877
  "pluginAlias": "@bussolabs/closeyourit-cli",
4527
4878
  "pluginName": "@bussolabs/closeyourit-cli",
4528
4879
  "pluginType": "core",
@@ -4532,22 +4883,27 @@
4532
4883
  "relativePath": [
4533
4884
  "dist",
4534
4885
  "commands",
4535
- "servers",
4536
- "resume.js"
4886
+ "teams",
4887
+ "list.js"
4537
4888
  ]
4538
4889
  },
4539
- "servers:revoke": {
4890
+ "teams:remove-member": {
4540
4891
  "aliases": [],
4541
4892
  "args": {
4542
- "id": {
4543
- "description": "Server id",
4544
- "name": "id",
4893
+ "team": {
4894
+ "description": "Team id (UUID) or name",
4895
+ "name": "team",
4896
+ "required": true
4897
+ },
4898
+ "member": {
4899
+ "description": "Member account id or email",
4900
+ "name": "member",
4545
4901
  "required": true
4546
4902
  }
4547
4903
  },
4548
- "description": "Revoke a server: its agent gets 403 and stops (host stays, reversible)",
4904
+ "description": "Remove a person from a team, keeping the other members",
4549
4905
  "examples": [
4550
- "<%= config.bin %> servers revoke <server-id> --confirm"
4906
+ "<%= config.bin %> teams remove-member DriverOne client@acme.com"
4551
4907
  ],
4552
4908
  "flags": {
4553
4909
  "json": {
@@ -4556,17 +4912,11 @@
4556
4912
  "name": "json",
4557
4913
  "allowNo": false,
4558
4914
  "type": "boolean"
4559
- },
4560
- "confirm": {
4561
- "description": "Required: confirm the revocation",
4562
- "name": "confirm",
4563
- "allowNo": false,
4564
- "type": "boolean"
4565
4915
  }
4566
4916
  },
4567
4917
  "hasDynamicHelp": false,
4568
4918
  "hiddenAliases": [],
4569
- "id": "servers:revoke",
4919
+ "id": "teams:remove-member",
4570
4920
  "pluginAlias": "@bussolabs/closeyourit-cli",
4571
4921
  "pluginName": "@bussolabs/closeyourit-cli",
4572
4922
  "pluginType": "core",
@@ -4576,22 +4926,22 @@
4576
4926
  "relativePath": [
4577
4927
  "dist",
4578
4928
  "commands",
4579
- "servers",
4580
- "revoke.js"
4929
+ "teams",
4930
+ "remove-member.js"
4581
4931
  ]
4582
4932
  },
4583
- "servers:show": {
4933
+ "teams:show": {
4584
4934
  "aliases": [],
4585
4935
  "args": {
4586
- "id": {
4587
- "description": "Server id",
4588
- "name": "id",
4936
+ "team": {
4937
+ "description": "Team id (UUID) or name",
4938
+ "name": "team",
4589
4939
  "required": true
4590
4940
  }
4591
4941
  },
4592
- "description": "Show a monitored server (latest snapshot)",
4942
+ "description": "Show a team by id or name (roles, group/project scope, members)",
4593
4943
  "examples": [
4594
- "<%= config.bin %> servers show <server-id>"
4944
+ "<%= config.bin %> teams show DriverOne"
4595
4945
  ],
4596
4946
  "flags": {
4597
4947
  "json": {
@@ -4604,7 +4954,7 @@
4604
4954
  },
4605
4955
  "hasDynamicHelp": false,
4606
4956
  "hiddenAliases": [],
4607
- "id": "servers:show",
4957
+ "id": "teams:show",
4608
4958
  "pluginAlias": "@bussolabs/closeyourit-cli",
4609
4959
  "pluginName": "@bussolabs/closeyourit-cli",
4610
4960
  "pluginType": "core",
@@ -4614,22 +4964,23 @@
4614
4964
  "relativePath": [
4615
4965
  "dist",
4616
4966
  "commands",
4617
- "servers",
4967
+ "teams",
4618
4968
  "show.js"
4619
4969
  ]
4620
4970
  },
4621
- "servers:unrevoke": {
4971
+ "teams:update": {
4622
4972
  "aliases": [],
4623
4973
  "args": {
4624
- "id": {
4625
- "description": "Server id",
4626
- "name": "id",
4974
+ "team": {
4975
+ "description": "Team id (UUID) or name",
4976
+ "name": "team",
4627
4977
  "required": true
4628
4978
  }
4629
4979
  },
4630
- "description": "Restore a revoked server (its agent can push again)",
4980
+ "description": "Update a team. Each given dimension REPLACES the whole set for that dimension.",
4631
4981
  "examples": [
4632
- "<%= config.bin %> servers unrevoke <server-id>"
4982
+ "<%= config.bin %> teams update DriverOne --role Client --group DriverOne",
4983
+ "<%= config.bin %> teams update DriverOne --name \"DriverOne clients\""
4633
4984
  ],
4634
4985
  "flags": {
4635
4986
  "json": {
@@ -4638,11 +4989,53 @@
4638
4989
  "name": "json",
4639
4990
  "allowNo": false,
4640
4991
  "type": "boolean"
4992
+ },
4993
+ "color": {
4994
+ "description": "Color label",
4995
+ "name": "color",
4996
+ "hasDynamicHelp": false,
4997
+ "multiple": false,
4998
+ "type": "option"
4999
+ },
5000
+ "group": {
5001
+ "description": "Group id or name (repeatable; replaces the group scope)",
5002
+ "name": "group",
5003
+ "hasDynamicHelp": false,
5004
+ "multiple": true,
5005
+ "type": "option"
5006
+ },
5007
+ "member": {
5008
+ "description": "Member account id or email (repeatable; replaces the members)",
5009
+ "name": "member",
5010
+ "hasDynamicHelp": false,
5011
+ "multiple": true,
5012
+ "type": "option"
5013
+ },
5014
+ "name": {
5015
+ "description": "New name",
5016
+ "name": "name",
5017
+ "hasDynamicHelp": false,
5018
+ "multiple": false,
5019
+ "type": "option"
5020
+ },
5021
+ "project": {
5022
+ "description": "Project id or key (repeatable; replaces the project scope)",
5023
+ "name": "project",
5024
+ "hasDynamicHelp": false,
5025
+ "multiple": true,
5026
+ "type": "option"
5027
+ },
5028
+ "role": {
5029
+ "description": "Role id or name (repeatable; replaces the roles)",
5030
+ "name": "role",
5031
+ "hasDynamicHelp": false,
5032
+ "multiple": true,
5033
+ "type": "option"
4641
5034
  }
4642
5035
  },
4643
5036
  "hasDynamicHelp": false,
4644
5037
  "hiddenAliases": [],
4645
- "id": "servers:unrevoke",
5038
+ "id": "teams:update",
4646
5039
  "pluginAlias": "@bussolabs/closeyourit-cli",
4647
5040
  "pluginName": "@bussolabs/closeyourit-cli",
4648
5041
  "pluginType": "core",
@@ -4652,8 +5045,8 @@
4652
5045
  "relativePath": [
4653
5046
  "dist",
4654
5047
  "commands",
4655
- "servers",
4656
- "unrevoke.js"
5048
+ "teams",
5049
+ "update.js"
4657
5050
  ]
4658
5051
  },
4659
5052
  "tokens:create": {
@@ -6321,5 +6714,5 @@
6321
6714
  ]
6322
6715
  }
6323
6716
  },
6324
- "version": "0.0.13"
6717
+ "version": "0.0.14"
6325
6718
  }