checkly 9.0.0 → 9.1.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 (58) hide show
  1. package/README.md +1 -1
  2. package/bin/check-node-version.cjs +21 -0
  3. package/bin/launch.cjs +16 -0
  4. package/bin/run.cjs +32 -0
  5. package/dist/ai-context/skills-command/references/configure-playwright-checks.md +1 -1
  6. package/dist/commands/authCommand.d.ts +6 -0
  7. package/dist/commands/authCommand.js +17 -0
  8. package/dist/commands/authCommand.js.map +1 -1
  9. package/dist/commands/baseCommand.d.ts +11 -0
  10. package/dist/commands/baseCommand.js +34 -13
  11. package/dist/commands/baseCommand.js.map +1 -1
  12. package/dist/commands/debug/parse-project.d.ts +1 -1
  13. package/dist/commands/debug/parse-project.js +41 -15
  14. package/dist/commands/debug/parse-project.js.map +1 -1
  15. package/dist/commands/deploy.js +5 -24
  16. package/dist/commands/deploy.js.map +1 -1
  17. package/dist/commands/destroy.js +2 -1
  18. package/dist/commands/destroy.js.map +1 -1
  19. package/dist/commands/import/apply.js +2 -1
  20. package/dist/commands/import/apply.js.map +1 -1
  21. package/dist/commands/import/cancel.js +2 -1
  22. package/dist/commands/import/cancel.js.map +1 -1
  23. package/dist/commands/import/commit.js +2 -1
  24. package/dist/commands/import/commit.js.map +1 -1
  25. package/dist/commands/import/plan.js +11 -29
  26. package/dist/commands/import/plan.js.map +1 -1
  27. package/dist/commands/pw-test.js +5 -24
  28. package/dist/commands/pw-test.js.map +1 -1
  29. package/dist/commands/test.js +5 -24
  30. package/dist/commands/test.js.map +1 -1
  31. package/dist/commands/trigger.js +10 -3
  32. package/dist/commands/trigger.js.map +1 -1
  33. package/dist/commands/validate.js +5 -22
  34. package/dist/commands/validate.js.map +1 -1
  35. package/dist/helpers/command-style.d.ts +2 -0
  36. package/dist/helpers/command-style.js +13 -0
  37. package/dist/helpers/command-style.js.map +1 -1
  38. package/dist/services/check-parser/cache-hash.d.ts +5 -2
  39. package/dist/services/check-parser/cache-hash.js +2 -2
  40. package/dist/services/check-parser/cache-hash.js.map +1 -1
  41. package/dist/services/check-parser/package-prune.d.ts +12 -4
  42. package/dist/services/check-parser/package-prune.js +184 -76
  43. package/dist/services/check-parser/package-prune.js.map +1 -1
  44. package/dist/services/checkly-config-loader.d.ts +60 -18
  45. package/dist/services/checkly-config-loader.js +131 -45
  46. package/dist/services/checkly-config-loader.js.map +1 -1
  47. package/dist/services/config-diagnostics.d.ts +31 -0
  48. package/dist/services/config-diagnostics.js +57 -0
  49. package/dist/services/config-diagnostics.js.map +1 -0
  50. package/dist/services/embedded-packages/spec.js +2 -2
  51. package/dist/services/embedded-packages/spec.js.map +1 -1
  52. package/dist/services/runner/registries.d.ts +17 -5
  53. package/dist/services/runner/registries.js +129 -61
  54. package/dist/services/runner/registries.js.map +1 -1
  55. package/oclif.manifest.json +628 -628
  56. package/package.json +3 -3
  57. package/bin/run +0 -8
  58. package/bin/run.cmd +0 -3
@@ -1488,6 +1488,211 @@
1488
1488
  "logs.js"
1489
1489
  ]
1490
1490
  },
1491
+ "assets:download": {
1492
+ "aliases": [],
1493
+ "args": {},
1494
+ "description": "Download result assets.",
1495
+ "flags": {
1496
+ "check-id": {
1497
+ "description": "Check ID for a scheduled check result.",
1498
+ "name": "check-id",
1499
+ "hasDynamicHelp": false,
1500
+ "multiple": false,
1501
+ "type": "option"
1502
+ },
1503
+ "test-session-id": {
1504
+ "description": "Test session ID for a test-session result.",
1505
+ "name": "test-session-id",
1506
+ "hasDynamicHelp": false,
1507
+ "multiple": false,
1508
+ "type": "option"
1509
+ },
1510
+ "result-id": {
1511
+ "description": "Check result ID or test-session result ID.",
1512
+ "name": "result-id",
1513
+ "required": true,
1514
+ "hasDynamicHelp": false,
1515
+ "multiple": false,
1516
+ "type": "option"
1517
+ },
1518
+ "type": {
1519
+ "description": "Select assets by type.",
1520
+ "name": "type",
1521
+ "hasDynamicHelp": false,
1522
+ "multiple": false,
1523
+ "options": [
1524
+ "log",
1525
+ "trace",
1526
+ "video",
1527
+ "screenshot",
1528
+ "pcap",
1529
+ "report",
1530
+ "file",
1531
+ "all"
1532
+ ],
1533
+ "type": "option"
1534
+ },
1535
+ "asset": {
1536
+ "description": "Select an asset by exact Asset/Name value or glob.",
1537
+ "name": "asset",
1538
+ "hasDynamicHelp": false,
1539
+ "multiple": false,
1540
+ "type": "option"
1541
+ },
1542
+ "dir": {
1543
+ "description": "Directory to write assets into.",
1544
+ "name": "dir",
1545
+ "hasDynamicHelp": false,
1546
+ "multiple": false,
1547
+ "type": "option"
1548
+ },
1549
+ "force": {
1550
+ "description": "Overwrite existing files.",
1551
+ "name": "force",
1552
+ "allowNo": false,
1553
+ "type": "boolean"
1554
+ },
1555
+ "skip-existing": {
1556
+ "description": "Skip files that already exist.",
1557
+ "name": "skip-existing",
1558
+ "allowNo": false,
1559
+ "type": "boolean"
1560
+ },
1561
+ "output": {
1562
+ "char": "o",
1563
+ "description": "Output format.",
1564
+ "name": "output",
1565
+ "default": "table",
1566
+ "hasDynamicHelp": false,
1567
+ "multiple": false,
1568
+ "options": [
1569
+ "table",
1570
+ "json"
1571
+ ],
1572
+ "type": "option"
1573
+ }
1574
+ },
1575
+ "hasDynamicHelp": false,
1576
+ "hidden": false,
1577
+ "hiddenAliases": [],
1578
+ "id": "assets:download",
1579
+ "pluginAlias": "checkly",
1580
+ "pluginName": "checkly",
1581
+ "pluginType": "core",
1582
+ "strict": true,
1583
+ "enableJsonFlag": false,
1584
+ "coreCommand": false,
1585
+ "readOnly": true,
1586
+ "destructive": false,
1587
+ "idempotent": true,
1588
+ "isESM": true,
1589
+ "relativePath": [
1590
+ "dist",
1591
+ "commands",
1592
+ "assets",
1593
+ "download.js"
1594
+ ]
1595
+ },
1596
+ "assets:list": {
1597
+ "aliases": [],
1598
+ "args": {},
1599
+ "description": "List result assets.",
1600
+ "flags": {
1601
+ "check-id": {
1602
+ "description": "Check ID for a scheduled check result.",
1603
+ "name": "check-id",
1604
+ "hasDynamicHelp": false,
1605
+ "multiple": false,
1606
+ "type": "option"
1607
+ },
1608
+ "test-session-id": {
1609
+ "description": "Test session ID for a test-session result.",
1610
+ "name": "test-session-id",
1611
+ "hasDynamicHelp": false,
1612
+ "multiple": false,
1613
+ "type": "option"
1614
+ },
1615
+ "result-id": {
1616
+ "description": "Check result ID or test-session result ID.",
1617
+ "name": "result-id",
1618
+ "required": true,
1619
+ "hasDynamicHelp": false,
1620
+ "multiple": false,
1621
+ "type": "option"
1622
+ },
1623
+ "type": {
1624
+ "description": "Filter assets by type.",
1625
+ "name": "type",
1626
+ "default": "all",
1627
+ "hasDynamicHelp": false,
1628
+ "multiple": false,
1629
+ "options": [
1630
+ "log",
1631
+ "trace",
1632
+ "video",
1633
+ "screenshot",
1634
+ "pcap",
1635
+ "report",
1636
+ "file",
1637
+ "all"
1638
+ ],
1639
+ "type": "option"
1640
+ },
1641
+ "asset": {
1642
+ "description": "Filter assets by exact Asset/Name value or glob.",
1643
+ "name": "asset",
1644
+ "hasDynamicHelp": false,
1645
+ "multiple": false,
1646
+ "type": "option"
1647
+ },
1648
+ "view": {
1649
+ "description": "Human output view. Ignored with --output json.",
1650
+ "name": "view",
1651
+ "default": "table",
1652
+ "hasDynamicHelp": false,
1653
+ "multiple": false,
1654
+ "options": [
1655
+ "table",
1656
+ "tree"
1657
+ ],
1658
+ "type": "option"
1659
+ },
1660
+ "output": {
1661
+ "char": "o",
1662
+ "description": "Output format.",
1663
+ "name": "output",
1664
+ "default": "table",
1665
+ "hasDynamicHelp": false,
1666
+ "multiple": false,
1667
+ "options": [
1668
+ "table",
1669
+ "json",
1670
+ "md"
1671
+ ],
1672
+ "type": "option"
1673
+ }
1674
+ },
1675
+ "hasDynamicHelp": false,
1676
+ "hidden": false,
1677
+ "hiddenAliases": [],
1678
+ "id": "assets:list",
1679
+ "pluginAlias": "checkly",
1680
+ "pluginName": "checkly",
1681
+ "pluginType": "core",
1682
+ "strict": true,
1683
+ "enableJsonFlag": false,
1684
+ "coreCommand": false,
1685
+ "readOnly": true,
1686
+ "destructive": false,
1687
+ "idempotent": true,
1688
+ "isESM": true,
1689
+ "relativePath": [
1690
+ "dist",
1691
+ "commands",
1692
+ "assets",
1693
+ "list.js"
1694
+ ]
1695
+ },
1491
1696
  "checks:delete": {
1492
1697
  "aliases": [],
1493
1698
  "args": {
@@ -1988,239 +2193,34 @@
1988
2193
  "stats.js"
1989
2194
  ]
1990
2195
  },
1991
- "assets:download": {
2196
+ "debug:parse-file": {
1992
2197
  "aliases": [],
1993
2198
  "args": {},
1994
- "description": "Download result assets.",
2199
+ "description": "Parses and outputs relevant details of a code file.",
1995
2200
  "flags": {
1996
- "check-id": {
1997
- "description": "Check ID for a scheduled check result.",
1998
- "name": "check-id",
2201
+ "file": {
2202
+ "name": "file",
2203
+ "required": true,
1999
2204
  "hasDynamicHelp": false,
2000
2205
  "multiple": false,
2001
2206
  "type": "option"
2002
2207
  },
2003
- "test-session-id": {
2004
- "description": "Test session ID for a test-session result.",
2005
- "name": "test-session-id",
2006
- "hasDynamicHelp": false,
2007
- "multiple": false,
2008
- "type": "option"
2208
+ "restricted": {
2209
+ "name": "restricted",
2210
+ "allowNo": false,
2211
+ "type": "boolean"
2009
2212
  },
2010
- "result-id": {
2011
- "description": "Check result ID or test-session result ID.",
2012
- "name": "result-id",
2013
- "required": true,
2014
- "hasDynamicHelp": false,
2015
- "multiple": false,
2016
- "type": "option"
2213
+ "detect-workspace": {
2214
+ "name": "detect-workspace",
2215
+ "allowNo": true,
2216
+ "type": "boolean"
2017
2217
  },
2018
- "type": {
2019
- "description": "Select assets by type.",
2020
- "name": "type",
2218
+ "supported-module": {
2219
+ "name": "supported-module",
2220
+ "default": [],
2221
+ "delimiter": ",",
2021
2222
  "hasDynamicHelp": false,
2022
- "multiple": false,
2023
- "options": [
2024
- "log",
2025
- "trace",
2026
- "video",
2027
- "screenshot",
2028
- "pcap",
2029
- "report",
2030
- "file",
2031
- "all"
2032
- ],
2033
- "type": "option"
2034
- },
2035
- "asset": {
2036
- "description": "Select an asset by exact Asset/Name value or glob.",
2037
- "name": "asset",
2038
- "hasDynamicHelp": false,
2039
- "multiple": false,
2040
- "type": "option"
2041
- },
2042
- "dir": {
2043
- "description": "Directory to write assets into.",
2044
- "name": "dir",
2045
- "hasDynamicHelp": false,
2046
- "multiple": false,
2047
- "type": "option"
2048
- },
2049
- "force": {
2050
- "description": "Overwrite existing files.",
2051
- "name": "force",
2052
- "allowNo": false,
2053
- "type": "boolean"
2054
- },
2055
- "skip-existing": {
2056
- "description": "Skip files that already exist.",
2057
- "name": "skip-existing",
2058
- "allowNo": false,
2059
- "type": "boolean"
2060
- },
2061
- "output": {
2062
- "char": "o",
2063
- "description": "Output format.",
2064
- "name": "output",
2065
- "default": "table",
2066
- "hasDynamicHelp": false,
2067
- "multiple": false,
2068
- "options": [
2069
- "table",
2070
- "json"
2071
- ],
2072
- "type": "option"
2073
- }
2074
- },
2075
- "hasDynamicHelp": false,
2076
- "hidden": false,
2077
- "hiddenAliases": [],
2078
- "id": "assets:download",
2079
- "pluginAlias": "checkly",
2080
- "pluginName": "checkly",
2081
- "pluginType": "core",
2082
- "strict": true,
2083
- "enableJsonFlag": false,
2084
- "coreCommand": false,
2085
- "readOnly": true,
2086
- "destructive": false,
2087
- "idempotent": true,
2088
- "isESM": true,
2089
- "relativePath": [
2090
- "dist",
2091
- "commands",
2092
- "assets",
2093
- "download.js"
2094
- ]
2095
- },
2096
- "assets:list": {
2097
- "aliases": [],
2098
- "args": {},
2099
- "description": "List result assets.",
2100
- "flags": {
2101
- "check-id": {
2102
- "description": "Check ID for a scheduled check result.",
2103
- "name": "check-id",
2104
- "hasDynamicHelp": false,
2105
- "multiple": false,
2106
- "type": "option"
2107
- },
2108
- "test-session-id": {
2109
- "description": "Test session ID for a test-session result.",
2110
- "name": "test-session-id",
2111
- "hasDynamicHelp": false,
2112
- "multiple": false,
2113
- "type": "option"
2114
- },
2115
- "result-id": {
2116
- "description": "Check result ID or test-session result ID.",
2117
- "name": "result-id",
2118
- "required": true,
2119
- "hasDynamicHelp": false,
2120
- "multiple": false,
2121
- "type": "option"
2122
- },
2123
- "type": {
2124
- "description": "Filter assets by type.",
2125
- "name": "type",
2126
- "default": "all",
2127
- "hasDynamicHelp": false,
2128
- "multiple": false,
2129
- "options": [
2130
- "log",
2131
- "trace",
2132
- "video",
2133
- "screenshot",
2134
- "pcap",
2135
- "report",
2136
- "file",
2137
- "all"
2138
- ],
2139
- "type": "option"
2140
- },
2141
- "asset": {
2142
- "description": "Filter assets by exact Asset/Name value or glob.",
2143
- "name": "asset",
2144
- "hasDynamicHelp": false,
2145
- "multiple": false,
2146
- "type": "option"
2147
- },
2148
- "view": {
2149
- "description": "Human output view. Ignored with --output json.",
2150
- "name": "view",
2151
- "default": "table",
2152
- "hasDynamicHelp": false,
2153
- "multiple": false,
2154
- "options": [
2155
- "table",
2156
- "tree"
2157
- ],
2158
- "type": "option"
2159
- },
2160
- "output": {
2161
- "char": "o",
2162
- "description": "Output format.",
2163
- "name": "output",
2164
- "default": "table",
2165
- "hasDynamicHelp": false,
2166
- "multiple": false,
2167
- "options": [
2168
- "table",
2169
- "json",
2170
- "md"
2171
- ],
2172
- "type": "option"
2173
- }
2174
- },
2175
- "hasDynamicHelp": false,
2176
- "hidden": false,
2177
- "hiddenAliases": [],
2178
- "id": "assets:list",
2179
- "pluginAlias": "checkly",
2180
- "pluginName": "checkly",
2181
- "pluginType": "core",
2182
- "strict": true,
2183
- "enableJsonFlag": false,
2184
- "coreCommand": false,
2185
- "readOnly": true,
2186
- "destructive": false,
2187
- "idempotent": true,
2188
- "isESM": true,
2189
- "relativePath": [
2190
- "dist",
2191
- "commands",
2192
- "assets",
2193
- "list.js"
2194
- ]
2195
- },
2196
- "debug:parse-file": {
2197
- "aliases": [],
2198
- "args": {},
2199
- "description": "Parses and outputs relevant details of a code file.",
2200
- "flags": {
2201
- "file": {
2202
- "name": "file",
2203
- "required": true,
2204
- "hasDynamicHelp": false,
2205
- "multiple": false,
2206
- "type": "option"
2207
- },
2208
- "restricted": {
2209
- "name": "restricted",
2210
- "allowNo": false,
2211
- "type": "boolean"
2212
- },
2213
- "detect-workspace": {
2214
- "name": "detect-workspace",
2215
- "allowNo": true,
2216
- "type": "boolean"
2217
- },
2218
- "supported-module": {
2219
- "name": "supported-module",
2220
- "default": [],
2221
- "delimiter": ",",
2222
- "hasDynamicHelp": false,
2223
- "multiple": true,
2223
+ "multiple": true,
2224
2224
  "type": "option"
2225
2225
  },
2226
2226
  "check-unsupported-modules": {
@@ -2355,29 +2355,36 @@
2355
2355
  "parse-project.js"
2356
2356
  ]
2357
2357
  },
2358
- "import:apply": {
2358
+ "env:add": {
2359
2359
  "aliases": [],
2360
- "args": {},
2361
- "description": "Attach imported resources into your project in a pending state.",
2362
- "flags": {
2363
- "config": {
2364
- "char": "c",
2365
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2366
- "name": "config",
2367
- "hasDynamicHelp": false,
2368
- "multiple": false,
2369
- "type": "option"
2360
+ "args": {
2361
+ "key": {
2362
+ "description": "Environment variable key.",
2363
+ "name": "key",
2364
+ "required": true
2370
2365
  },
2371
- "plan-id": {
2372
- "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2373
- "name": "plan-id",
2374
- "hasDynamicHelp": false,
2375
- "multiple": false,
2376
- "type": "option"
2366
+ "value": {
2367
+ "description": "Environment variable value.",
2368
+ "name": "value",
2369
+ "required": false
2370
+ }
2371
+ },
2372
+ "description": "Add environment variable via \"checkly env add <key> <value>\".",
2373
+ "flags": {
2374
+ "locked": {
2375
+ "char": "l",
2376
+ "description": "Indicate that the environment variable will be locked.",
2377
+ "name": "locked",
2378
+ "allowNo": false,
2379
+ "type": "boolean"
2377
2380
  },
2378
- "no-commit": {
2379
- "description": "Apply only. Leave the plan pending and skip the commit prompt.",
2380
- "name": "no-commit",
2381
+ "secret": {
2382
+ "char": "s",
2383
+ "description": "Indicate that the environment variable will be secret.",
2384
+ "exclusive": [
2385
+ "locked"
2386
+ ],
2387
+ "name": "secret",
2381
2388
  "allowNo": false,
2382
2389
  "type": "boolean"
2383
2390
  }
@@ -2385,7 +2392,7 @@
2385
2392
  "hasDynamicHelp": false,
2386
2393
  "hidden": false,
2387
2394
  "hiddenAliases": [],
2388
- "id": "import:apply",
2395
+ "id": "env:add",
2389
2396
  "pluginAlias": "checkly",
2390
2397
  "pluginName": "checkly",
2391
2398
  "pluginType": "core",
@@ -2399,208 +2406,118 @@
2399
2406
  "relativePath": [
2400
2407
  "dist",
2401
2408
  "commands",
2402
- "import",
2403
- "apply.js"
2409
+ "env",
2410
+ "add.js"
2404
2411
  ]
2405
2412
  },
2406
- "import:cancel": {
2413
+ "env:ls": {
2407
2414
  "aliases": [],
2408
2415
  "args": {},
2409
- "description": "Cancels an ongoing import plan that has not been committed yet.",
2410
- "flags": {
2411
- "config": {
2412
- "char": "c",
2413
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2414
- "name": "config",
2415
- "hasDynamicHelp": false,
2416
- "multiple": false,
2417
- "type": "option"
2418
- },
2419
- "all": {
2420
- "description": "Cancel all plans.",
2421
- "name": "all",
2422
- "allowNo": false,
2423
- "type": "boolean"
2424
- },
2425
- "plan-id": {
2426
- "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2427
- "name": "plan-id",
2428
- "hasDynamicHelp": false,
2429
- "multiple": false,
2430
- "type": "option"
2431
- },
2432
- "force": {
2433
- "char": "f",
2434
- "description": "Skip confirmation prompt.",
2435
- "name": "force",
2436
- "allowNo": false,
2437
- "type": "boolean"
2438
- },
2439
- "dry-run": {
2440
- "description": "Preview what would happen without executing.",
2441
- "name": "dry-run",
2442
- "allowNo": false,
2443
- "type": "boolean"
2444
- }
2445
- },
2416
+ "description": "List all Checkly environment variables via \"checkly env ls\".",
2417
+ "flags": {},
2446
2418
  "hasDynamicHelp": false,
2447
2419
  "hidden": false,
2448
2420
  "hiddenAliases": [],
2449
- "id": "import:cancel",
2421
+ "id": "env:ls",
2450
2422
  "pluginAlias": "checkly",
2451
2423
  "pluginName": "checkly",
2452
2424
  "pluginType": "core",
2453
2425
  "strict": true,
2454
2426
  "enableJsonFlag": false,
2455
2427
  "coreCommand": false,
2456
- "readOnly": false,
2457
- "destructive": true,
2428
+ "readOnly": true,
2429
+ "destructive": false,
2458
2430
  "idempotent": true,
2459
2431
  "isESM": true,
2460
2432
  "relativePath": [
2461
2433
  "dist",
2462
2434
  "commands",
2463
- "import",
2464
- "cancel.js"
2435
+ "env",
2436
+ "ls.js"
2465
2437
  ]
2466
2438
  },
2467
- "import:commit": {
2439
+ "env:pull": {
2468
2440
  "aliases": [],
2469
- "args": {},
2470
- "description": "Permanently commit imported resources into your project.",
2441
+ "args": {
2442
+ "filename": {
2443
+ "default": ".env",
2444
+ "description": "Filename of the generated file.",
2445
+ "name": "filename",
2446
+ "required": false
2447
+ }
2448
+ },
2449
+ "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
2471
2450
  "flags": {
2472
- "config": {
2473
- "char": "c",
2474
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2475
- "name": "config",
2476
- "hasDynamicHelp": false,
2477
- "multiple": false,
2478
- "type": "option"
2479
- },
2480
- "plan-id": {
2481
- "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2482
- "name": "plan-id",
2483
- "hasDynamicHelp": false,
2484
- "multiple": false,
2485
- "type": "option"
2486
- },
2487
2451
  "force": {
2488
2452
  "char": "f",
2489
- "description": "Skip confirmation prompt.",
2453
+ "description": "Force to overwrite existing file.",
2490
2454
  "name": "force",
2491
2455
  "allowNo": false,
2492
2456
  "type": "boolean"
2493
- },
2494
- "dry-run": {
2495
- "description": "Preview what would happen without executing.",
2496
- "name": "dry-run",
2497
- "allowNo": false,
2498
- "type": "boolean"
2499
2457
  }
2500
2458
  },
2501
2459
  "hasDynamicHelp": false,
2502
2460
  "hidden": false,
2503
2461
  "hiddenAliases": [],
2504
- "id": "import:commit",
2462
+ "id": "env:pull",
2505
2463
  "pluginAlias": "checkly",
2506
2464
  "pluginName": "checkly",
2507
2465
  "pluginType": "core",
2508
2466
  "strict": true,
2509
2467
  "enableJsonFlag": false,
2510
2468
  "coreCommand": false,
2511
- "readOnly": false,
2469
+ "readOnly": true,
2512
2470
  "destructive": false,
2513
- "idempotent": false,
2471
+ "idempotent": true,
2514
2472
  "isESM": true,
2515
2473
  "relativePath": [
2516
2474
  "dist",
2517
2475
  "commands",
2518
- "import",
2519
- "commit.js"
2476
+ "env",
2477
+ "pull.js"
2520
2478
  ]
2521
2479
  },
2522
- "import:plan": {
2480
+ "env:rm": {
2523
2481
  "aliases": [],
2524
2482
  "args": {
2525
- "resource": {
2526
- "description": "A specific resource to import.",
2527
- "name": "resource",
2528
- "required": false
2483
+ "key": {
2484
+ "description": "Environment variable key to remove.",
2485
+ "name": "key",
2486
+ "required": true
2529
2487
  }
2530
2488
  },
2531
- "description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
2489
+ "description": "Remove environment variable via \"checkly env rm <key>\".",
2532
2490
  "flags": {
2533
- "config": {
2534
- "char": "c",
2535
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2536
- "name": "config",
2537
- "hasDynamicHelp": false,
2538
- "multiple": false,
2539
- "type": "option"
2540
- },
2541
- "root": {
2542
- "description": "The root folder in which to write generated code files.",
2543
- "name": "root",
2544
- "default": "__checks__",
2545
- "hasDynamicHelp": false,
2546
- "multiple": false,
2547
- "type": "option"
2548
- },
2549
- "preview": {
2550
- "description": "Preview generated code without creating an actual import plan.",
2551
- "name": "preview",
2552
- "allowNo": false,
2553
- "type": "boolean"
2554
- },
2555
- "debug-import-plan": {
2556
- "description": "Output the import plan to a file.",
2557
- "hidden": true,
2558
- "name": "debug-import-plan",
2491
+ "force": {
2492
+ "char": "f",
2493
+ "description": "Skip confirmation prompt.",
2494
+ "name": "force",
2559
2495
  "allowNo": false,
2560
2496
  "type": "boolean"
2561
- },
2562
- "debug-import-plan-input-file": {
2563
- "description": "A file to load an import plan from.",
2564
- "hidden": true,
2565
- "name": "debug-import-plan-input-file",
2566
- "hasDynamicHelp": false,
2567
- "multiple": false,
2568
- "type": "option"
2569
- },
2570
- "debug-import-plan-output-file": {
2571
- "description": "The file to output the import plan to.",
2572
- "hidden": true,
2573
- "name": "debug-import-plan-output-file",
2574
- "default": "./debug-import-plan.json",
2575
- "hasDynamicHelp": false,
2576
- "multiple": false,
2577
- "type": "option"
2578
2497
  }
2579
2498
  },
2580
2499
  "hasDynamicHelp": false,
2581
2500
  "hidden": false,
2582
- "hiddenAliases": [
2583
- "import"
2584
- ],
2585
- "id": "import:plan",
2501
+ "hiddenAliases": [],
2502
+ "id": "env:rm",
2586
2503
  "pluginAlias": "checkly",
2587
2504
  "pluginName": "checkly",
2588
2505
  "pluginType": "core",
2589
- "strict": false,
2506
+ "strict": true,
2590
2507
  "enableJsonFlag": false,
2591
2508
  "coreCommand": false,
2592
- "readOnly": true,
2593
- "destructive": false,
2594
- "idempotent": true,
2509
+ "readOnly": false,
2510
+ "destructive": true,
2511
+ "idempotent": false,
2595
2512
  "isESM": true,
2596
2513
  "relativePath": [
2597
2514
  "dist",
2598
2515
  "commands",
2599
- "import",
2600
- "plan.js"
2516
+ "env",
2517
+ "rm.js"
2601
2518
  ]
2602
2519
  },
2603
- "env:add": {
2520
+ "env:update": {
2604
2521
  "aliases": [],
2605
2522
  "args": {
2606
2523
  "key": {
@@ -2614,18 +2531,18 @@
2614
2531
  "required": false
2615
2532
  }
2616
2533
  },
2617
- "description": "Add environment variable via \"checkly env add <key> <value>\".",
2534
+ "description": "Update environment variable via \"checkly env update <key> <value>\".",
2618
2535
  "flags": {
2619
2536
  "locked": {
2620
2537
  "char": "l",
2621
- "description": "Indicate that the environment variable will be locked.",
2538
+ "description": "Indicate if environment variable is locked.",
2622
2539
  "name": "locked",
2623
2540
  "allowNo": false,
2624
2541
  "type": "boolean"
2625
2542
  },
2626
2543
  "secret": {
2627
2544
  "char": "s",
2628
- "description": "Indicate that the environment variable will be secret.",
2545
+ "description": "Indicate if environment variable is secret.",
2629
2546
  "exclusive": [
2630
2547
  "locked"
2631
2548
  ],
@@ -2637,7 +2554,7 @@
2637
2554
  "hasDynamicHelp": false,
2638
2555
  "hidden": false,
2639
2556
  "hiddenAliases": [],
2640
- "id": "env:add",
2557
+ "id": "env:update",
2641
2558
  "pluginAlias": "checkly",
2642
2559
  "pluginName": "checkly",
2643
2560
  "pluginType": "core",
@@ -2646,105 +2563,162 @@
2646
2563
  "coreCommand": false,
2647
2564
  "readOnly": false,
2648
2565
  "destructive": false,
2649
- "idempotent": false,
2566
+ "idempotent": true,
2650
2567
  "isESM": true,
2651
2568
  "relativePath": [
2652
2569
  "dist",
2653
2570
  "commands",
2654
2571
  "env",
2655
- "add.js"
2572
+ "update.js"
2656
2573
  ]
2657
2574
  },
2658
- "env:ls": {
2575
+ "import:apply": {
2659
2576
  "aliases": [],
2660
2577
  "args": {},
2661
- "description": "List all Checkly environment variables via \"checkly env ls\".",
2662
- "flags": {},
2578
+ "description": "Attach imported resources into your project in a pending state.",
2579
+ "flags": {
2580
+ "config": {
2581
+ "char": "c",
2582
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2583
+ "name": "config",
2584
+ "hasDynamicHelp": false,
2585
+ "multiple": false,
2586
+ "type": "option"
2587
+ },
2588
+ "plan-id": {
2589
+ "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2590
+ "name": "plan-id",
2591
+ "hasDynamicHelp": false,
2592
+ "multiple": false,
2593
+ "type": "option"
2594
+ },
2595
+ "no-commit": {
2596
+ "description": "Apply only. Leave the plan pending and skip the commit prompt.",
2597
+ "name": "no-commit",
2598
+ "allowNo": false,
2599
+ "type": "boolean"
2600
+ }
2601
+ },
2663
2602
  "hasDynamicHelp": false,
2664
2603
  "hidden": false,
2665
2604
  "hiddenAliases": [],
2666
- "id": "env:ls",
2605
+ "id": "import:apply",
2667
2606
  "pluginAlias": "checkly",
2668
2607
  "pluginName": "checkly",
2669
2608
  "pluginType": "core",
2670
2609
  "strict": true,
2671
2610
  "enableJsonFlag": false,
2672
2611
  "coreCommand": false,
2673
- "readOnly": true,
2612
+ "readOnly": false,
2674
2613
  "destructive": false,
2675
- "idempotent": true,
2614
+ "idempotent": false,
2676
2615
  "isESM": true,
2677
2616
  "relativePath": [
2678
2617
  "dist",
2679
2618
  "commands",
2680
- "env",
2681
- "ls.js"
2619
+ "import",
2620
+ "apply.js"
2682
2621
  ]
2683
2622
  },
2684
- "env:pull": {
2623
+ "import:cancel": {
2685
2624
  "aliases": [],
2686
- "args": {
2687
- "filename": {
2688
- "default": ".env",
2689
- "description": "Filename of the generated file.",
2690
- "name": "filename",
2691
- "required": false
2692
- }
2693
- },
2694
- "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
2625
+ "args": {},
2626
+ "description": "Cancels an ongoing import plan that has not been committed yet.",
2695
2627
  "flags": {
2628
+ "config": {
2629
+ "char": "c",
2630
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2631
+ "name": "config",
2632
+ "hasDynamicHelp": false,
2633
+ "multiple": false,
2634
+ "type": "option"
2635
+ },
2636
+ "all": {
2637
+ "description": "Cancel all plans.",
2638
+ "name": "all",
2639
+ "allowNo": false,
2640
+ "type": "boolean"
2641
+ },
2642
+ "plan-id": {
2643
+ "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2644
+ "name": "plan-id",
2645
+ "hasDynamicHelp": false,
2646
+ "multiple": false,
2647
+ "type": "option"
2648
+ },
2696
2649
  "force": {
2697
2650
  "char": "f",
2698
- "description": "Force to overwrite existing file.",
2651
+ "description": "Skip confirmation prompt.",
2699
2652
  "name": "force",
2700
2653
  "allowNo": false,
2701
2654
  "type": "boolean"
2655
+ },
2656
+ "dry-run": {
2657
+ "description": "Preview what would happen without executing.",
2658
+ "name": "dry-run",
2659
+ "allowNo": false,
2660
+ "type": "boolean"
2702
2661
  }
2703
2662
  },
2704
2663
  "hasDynamicHelp": false,
2705
2664
  "hidden": false,
2706
2665
  "hiddenAliases": [],
2707
- "id": "env:pull",
2666
+ "id": "import:cancel",
2708
2667
  "pluginAlias": "checkly",
2709
2668
  "pluginName": "checkly",
2710
2669
  "pluginType": "core",
2711
2670
  "strict": true,
2712
2671
  "enableJsonFlag": false,
2713
2672
  "coreCommand": false,
2714
- "readOnly": true,
2715
- "destructive": false,
2673
+ "readOnly": false,
2674
+ "destructive": true,
2716
2675
  "idempotent": true,
2717
2676
  "isESM": true,
2718
2677
  "relativePath": [
2719
2678
  "dist",
2720
2679
  "commands",
2721
- "env",
2722
- "pull.js"
2680
+ "import",
2681
+ "cancel.js"
2723
2682
  ]
2724
2683
  },
2725
- "env:rm": {
2684
+ "import:commit": {
2726
2685
  "aliases": [],
2727
- "args": {
2728
- "key": {
2729
- "description": "Environment variable key to remove.",
2730
- "name": "key",
2731
- "required": true
2732
- }
2733
- },
2734
- "description": "Remove environment variable via \"checkly env rm <key>\".",
2686
+ "args": {},
2687
+ "description": "Permanently commit imported resources into your project.",
2735
2688
  "flags": {
2689
+ "config": {
2690
+ "char": "c",
2691
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2692
+ "name": "config",
2693
+ "hasDynamicHelp": false,
2694
+ "multiple": false,
2695
+ "type": "option"
2696
+ },
2697
+ "plan-id": {
2698
+ "description": "Target a specific import plan by ID, skipping interactive plan selection.",
2699
+ "name": "plan-id",
2700
+ "hasDynamicHelp": false,
2701
+ "multiple": false,
2702
+ "type": "option"
2703
+ },
2736
2704
  "force": {
2737
2705
  "char": "f",
2738
2706
  "description": "Skip confirmation prompt.",
2739
2707
  "name": "force",
2740
2708
  "allowNo": false,
2741
2709
  "type": "boolean"
2710
+ },
2711
+ "dry-run": {
2712
+ "description": "Preview what would happen without executing.",
2713
+ "name": "dry-run",
2714
+ "allowNo": false,
2715
+ "type": "boolean"
2742
2716
  }
2743
2717
  },
2744
2718
  "hasDynamicHelp": false,
2745
2719
  "hidden": false,
2746
2720
  "hiddenAliases": [],
2747
- "id": "env:rm",
2721
+ "id": "import:commit",
2748
2722
  "pluginAlias": "checkly",
2749
2723
  "pluginName": "checkly",
2750
2724
  "pluginType": "core",
@@ -2752,69 +2726,95 @@
2752
2726
  "enableJsonFlag": false,
2753
2727
  "coreCommand": false,
2754
2728
  "readOnly": false,
2755
- "destructive": true,
2729
+ "destructive": false,
2756
2730
  "idempotent": false,
2757
2731
  "isESM": true,
2758
2732
  "relativePath": [
2759
2733
  "dist",
2760
2734
  "commands",
2761
- "env",
2762
- "rm.js"
2735
+ "import",
2736
+ "commit.js"
2763
2737
  ]
2764
2738
  },
2765
- "env:update": {
2739
+ "import:plan": {
2766
2740
  "aliases": [],
2767
2741
  "args": {
2768
- "key": {
2769
- "description": "Environment variable key.",
2770
- "name": "key",
2771
- "required": true
2772
- },
2773
- "value": {
2774
- "description": "Environment variable value.",
2775
- "name": "value",
2742
+ "resource": {
2743
+ "description": "A specific resource to import.",
2744
+ "name": "resource",
2776
2745
  "required": false
2777
2746
  }
2778
2747
  },
2779
- "description": "Update environment variable via \"checkly env update <key> <value>\".",
2748
+ "description": "Import existing resources from your Checkly account to your project.\n\nBy default, all resources that can be imported will be imported. However, you\nmay fine-tune the process by including or excluding any combination of\nresources.\n\nThe import process consists of three steps:\n\n1. Creating a plan, which generates the appropriate code for your resources\n2. Applying the plan, which links your resources to the generated code\n3. Committing the plan, which finalizes the import session\n\nCREATING A PLAN\n\nCreating a plan carries no risk as no concrete links to your Checkly resources\nare made at this point. However, if you accidentally deploy the generated code\nbefore applying the plan, you will end up with duplicate resources and will\nnot be able to complete the import session without first deleting the\nduplicates.\n\nFor the curious, you may also preview the generated code with the '--preview'\noption. No plan will be created, allowing you to leisurely inspect the\ngenerated code. However keep in mind that you will need to create a plan to\nactually import any resources, at which point the code will be generated\nagain.\n\nYou may cancel any plan you've created without affecting any of the\nunderlying resources.\n\nAPPLYING A PLAN\n\nApplying a plan links your existing resources to the generated code. You\nshould carefully review the generated code to make sure that it contains the\nresources you expect before applying a plan. After a plan has been applied,\nany deployments of those resources will irreversibly modify the underlying\nCheckly resources. However, as a fail safe against concurrent use, any\ndeployments not including the imported resources will not delete the\nunderlying resources (or the links to the resources). This means that there\nis no need to block deployments while working on an import session.\n\nEven after you've applied a plan, you may still cancel it, which will unlink\nthe underlying resources from your project once more. However, keep in mind\nthat any changes to the resources that you've already deployed cannot be\nundone.\n\nCOMMITTING A PLAN\n\nFinally, committing a plan removes all fail safes and permanently links the\nimported resources to your project. Any resources you remove from your code\nwill result in the underlying resources also getting irrevocably deleted on\nthe next deploy. You should only commit your plan once you are sure that all\nfuture deployments include the imported resources.",
2780
2749
  "flags": {
2781
- "locked": {
2782
- "char": "l",
2783
- "description": "Indicate if environment variable is locked.",
2784
- "name": "locked",
2750
+ "config": {
2751
+ "char": "c",
2752
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2753
+ "name": "config",
2754
+ "hasDynamicHelp": false,
2755
+ "multiple": false,
2756
+ "type": "option"
2757
+ },
2758
+ "root": {
2759
+ "description": "The root folder in which to write generated code files.",
2760
+ "name": "root",
2761
+ "default": "__checks__",
2762
+ "hasDynamicHelp": false,
2763
+ "multiple": false,
2764
+ "type": "option"
2765
+ },
2766
+ "preview": {
2767
+ "description": "Preview generated code without creating an actual import plan.",
2768
+ "name": "preview",
2785
2769
  "allowNo": false,
2786
2770
  "type": "boolean"
2787
2771
  },
2788
- "secret": {
2789
- "char": "s",
2790
- "description": "Indicate if environment variable is secret.",
2791
- "exclusive": [
2792
- "locked"
2793
- ],
2794
- "name": "secret",
2772
+ "debug-import-plan": {
2773
+ "description": "Output the import plan to a file.",
2774
+ "hidden": true,
2775
+ "name": "debug-import-plan",
2795
2776
  "allowNo": false,
2796
2777
  "type": "boolean"
2778
+ },
2779
+ "debug-import-plan-input-file": {
2780
+ "description": "A file to load an import plan from.",
2781
+ "hidden": true,
2782
+ "name": "debug-import-plan-input-file",
2783
+ "hasDynamicHelp": false,
2784
+ "multiple": false,
2785
+ "type": "option"
2786
+ },
2787
+ "debug-import-plan-output-file": {
2788
+ "description": "The file to output the import plan to.",
2789
+ "hidden": true,
2790
+ "name": "debug-import-plan-output-file",
2791
+ "default": "./debug-import-plan.json",
2792
+ "hasDynamicHelp": false,
2793
+ "multiple": false,
2794
+ "type": "option"
2797
2795
  }
2798
2796
  },
2799
2797
  "hasDynamicHelp": false,
2800
2798
  "hidden": false,
2801
- "hiddenAliases": [],
2802
- "id": "env:update",
2799
+ "hiddenAliases": [
2800
+ "import"
2801
+ ],
2802
+ "id": "import:plan",
2803
2803
  "pluginAlias": "checkly",
2804
2804
  "pluginName": "checkly",
2805
2805
  "pluginType": "core",
2806
- "strict": true,
2806
+ "strict": false,
2807
2807
  "enableJsonFlag": false,
2808
2808
  "coreCommand": false,
2809
- "readOnly": false,
2809
+ "readOnly": true,
2810
2810
  "destructive": false,
2811
2811
  "idempotent": true,
2812
2812
  "isESM": true,
2813
2813
  "relativePath": [
2814
2814
  "dist",
2815
2815
  "commands",
2816
- "env",
2817
- "update.js"
2816
+ "import",
2817
+ "plan.js"
2818
2818
  ]
2819
2819
  },
2820
2820
  "incidents:create": {
@@ -3047,107 +3047,7 @@
3047
3047
  "hasDynamicHelp": false,
3048
3048
  "hidden": false,
3049
3049
  "hiddenAliases": [],
3050
- "id": "incidents:resolve",
3051
- "pluginAlias": "checkly",
3052
- "pluginName": "checkly",
3053
- "pluginType": "core",
3054
- "strict": true,
3055
- "enableJsonFlag": false,
3056
- "coreCommand": false,
3057
- "readOnly": false,
3058
- "destructive": false,
3059
- "idempotent": false,
3060
- "isESM": true,
3061
- "relativePath": [
3062
- "dist",
3063
- "commands",
3064
- "incidents",
3065
- "resolve.js"
3066
- ]
3067
- },
3068
- "incidents:update": {
3069
- "aliases": [],
3070
- "args": {
3071
- "id": {
3072
- "description": "The incident ID.",
3073
- "name": "id",
3074
- "required": true
3075
- }
3076
- },
3077
- "description": "Post a progress update to an incident.",
3078
- "flags": {
3079
- "message": {
3080
- "description": "Update message.",
3081
- "name": "message",
3082
- "required": true,
3083
- "hasDynamicHelp": false,
3084
- "multiple": false,
3085
- "type": "option"
3086
- },
3087
- "status": {
3088
- "description": "Incident progress status.",
3089
- "name": "status",
3090
- "default": "investigating",
3091
- "hasDynamicHelp": false,
3092
- "multiple": false,
3093
- "options": [
3094
- "investigating",
3095
- "identified",
3096
- "monitoring"
3097
- ],
3098
- "type": "option"
3099
- },
3100
- "severity": {
3101
- "description": "Update the overall incident severity.",
3102
- "name": "severity",
3103
- "hasDynamicHelp": false,
3104
- "multiple": false,
3105
- "options": [
3106
- "minor",
3107
- "medium",
3108
- "major",
3109
- "critical"
3110
- ],
3111
- "type": "option"
3112
- },
3113
- "notify-subscribers": {
3114
- "description": "Notify status page subscribers about this incident update.",
3115
- "name": "notify-subscribers",
3116
- "allowNo": true,
3117
- "type": "boolean"
3118
- },
3119
- "output": {
3120
- "char": "o",
3121
- "description": "Output format.",
3122
- "name": "output",
3123
- "default": "table",
3124
- "hasDynamicHelp": false,
3125
- "multiple": false,
3126
- "options": [
3127
- "table",
3128
- "json",
3129
- "md"
3130
- ],
3131
- "type": "option"
3132
- },
3133
- "force": {
3134
- "char": "f",
3135
- "description": "Skip confirmation prompt.",
3136
- "name": "force",
3137
- "allowNo": false,
3138
- "type": "boolean"
3139
- },
3140
- "dry-run": {
3141
- "description": "Preview what would happen without executing.",
3142
- "name": "dry-run",
3143
- "allowNo": false,
3144
- "type": "boolean"
3145
- }
3146
- },
3147
- "hasDynamicHelp": false,
3148
- "hidden": false,
3149
- "hiddenAliases": [],
3150
- "id": "incidents:update",
3050
+ "id": "incidents:resolve",
3151
3051
  "pluginAlias": "checkly",
3152
3052
  "pluginName": "checkly",
3153
3053
  "pluginType": "core",
@@ -3162,125 +3062,96 @@
3162
3062
  "dist",
3163
3063
  "commands",
3164
3064
  "incidents",
3165
- "update.js"
3065
+ "resolve.js"
3166
3066
  ]
3167
3067
  },
3168
- "rca:get": {
3068
+ "incidents:update": {
3169
3069
  "aliases": [],
3170
3070
  "args": {
3171
3071
  "id": {
3172
- "description": "The RCA ID to retrieve.",
3072
+ "description": "The incident ID.",
3173
3073
  "name": "id",
3174
3074
  "required": true
3175
3075
  }
3176
3076
  },
3177
- "description": "Retrieve a root cause analysis by ID.",
3178
- "flags": {
3179
- "watch": {
3180
- "char": "w",
3181
- "description": "Wait for the analysis to complete if still generating.",
3182
- "name": "watch",
3183
- "allowNo": false,
3184
- "type": "boolean"
3185
- },
3186
- "output": {
3187
- "char": "o",
3188
- "description": "Output format.",
3189
- "name": "output",
3190
- "default": "detail",
3191
- "hasDynamicHelp": false,
3192
- "multiple": false,
3193
- "options": [
3194
- "detail",
3195
- "json",
3196
- "md"
3197
- ],
3198
- "type": "option"
3199
- }
3200
- },
3201
- "hasDynamicHelp": false,
3202
- "hidden": false,
3203
- "hiddenAliases": [],
3204
- "id": "rca:get",
3205
- "pluginAlias": "checkly",
3206
- "pluginName": "checkly",
3207
- "pluginType": "core",
3208
- "strict": true,
3209
- "enableJsonFlag": false,
3210
- "coreCommand": false,
3211
- "readOnly": true,
3212
- "destructive": false,
3213
- "idempotent": true,
3214
- "isESM": true,
3215
- "relativePath": [
3216
- "dist",
3217
- "commands",
3218
- "rca",
3219
- "get.js"
3220
- ]
3221
- },
3222
- "rca:run": {
3223
- "aliases": [],
3224
- "args": {},
3225
- "description": "Trigger a root cause analysis for a check or test session error group.",
3077
+ "description": "Post a progress update to an incident.",
3226
3078
  "flags": {
3227
- "error-group": {
3228
- "char": "e",
3229
- "description": "The error group ID to analyze.",
3230
- "exclusive": [
3231
- "test-session-error-group"
3232
- ],
3233
- "name": "error-group",
3079
+ "message": {
3080
+ "description": "Update message.",
3081
+ "name": "message",
3082
+ "required": true,
3234
3083
  "hasDynamicHelp": false,
3235
3084
  "multiple": false,
3236
3085
  "type": "option"
3237
3086
  },
3238
- "test-session-error-group": {
3239
- "description": "The test session error group ID to analyze.",
3240
- "helpLabel": "-te, --test-session-error-group",
3241
- "name": "test-session-error-group",
3087
+ "status": {
3088
+ "description": "Incident progress status.",
3089
+ "name": "status",
3090
+ "default": "investigating",
3242
3091
  "hasDynamicHelp": false,
3243
3092
  "multiple": false,
3093
+ "options": [
3094
+ "investigating",
3095
+ "identified",
3096
+ "monitoring"
3097
+ ],
3244
3098
  "type": "option"
3245
3099
  },
3246
- "user-context": {
3247
- "description": "Extra context to pass into the root cause analysis.",
3248
- "name": "user-context",
3100
+ "severity": {
3101
+ "description": "Update the overall incident severity.",
3102
+ "name": "severity",
3249
3103
  "hasDynamicHelp": false,
3250
3104
  "multiple": false,
3105
+ "options": [
3106
+ "minor",
3107
+ "medium",
3108
+ "major",
3109
+ "critical"
3110
+ ],
3251
3111
  "type": "option"
3252
3112
  },
3253
- "watch": {
3254
- "char": "w",
3255
- "description": "Wait for the analysis to complete and display the result.",
3256
- "name": "watch",
3257
- "allowNo": false,
3113
+ "notify-subscribers": {
3114
+ "description": "Notify status page subscribers about this incident update.",
3115
+ "name": "notify-subscribers",
3116
+ "allowNo": true,
3258
3117
  "type": "boolean"
3259
3118
  },
3260
3119
  "output": {
3261
3120
  "char": "o",
3262
3121
  "description": "Output format.",
3263
3122
  "name": "output",
3264
- "default": "detail",
3123
+ "default": "table",
3265
3124
  "hasDynamicHelp": false,
3266
3125
  "multiple": false,
3267
3126
  "options": [
3268
- "detail",
3127
+ "table",
3269
3128
  "json",
3270
3129
  "md"
3271
3130
  ],
3272
3131
  "type": "option"
3132
+ },
3133
+ "force": {
3134
+ "char": "f",
3135
+ "description": "Skip confirmation prompt.",
3136
+ "name": "force",
3137
+ "allowNo": false,
3138
+ "type": "boolean"
3139
+ },
3140
+ "dry-run": {
3141
+ "description": "Preview what would happen without executing.",
3142
+ "name": "dry-run",
3143
+ "allowNo": false,
3144
+ "type": "boolean"
3273
3145
  }
3274
3146
  },
3275
3147
  "hasDynamicHelp": false,
3276
3148
  "hidden": false,
3277
3149
  "hiddenAliases": [],
3278
- "id": "rca:run",
3150
+ "id": "incidents:update",
3279
3151
  "pluginAlias": "checkly",
3280
3152
  "pluginName": "checkly",
3281
3153
  "pluginType": "core",
3282
3154
  "strict": true,
3283
- "usage": "rca run [-e <value> | -te <value>] [--user-context <text>] [-w] [-o detail|json|md]",
3284
3155
  "enableJsonFlag": false,
3285
3156
  "coreCommand": false,
3286
3157
  "readOnly": false,
@@ -3290,8 +3161,8 @@
3290
3161
  "relativePath": [
3291
3162
  "dist",
3292
3163
  "commands",
3293
- "rca",
3294
- "run.js"
3164
+ "incidents",
3165
+ "update.js"
3295
3166
  ]
3296
3167
  },
3297
3168
  "members:delete": {
@@ -3449,6 +3320,135 @@
3449
3320
  "update.js"
3450
3321
  ]
3451
3322
  },
3323
+ "rca:get": {
3324
+ "aliases": [],
3325
+ "args": {
3326
+ "id": {
3327
+ "description": "The RCA ID to retrieve.",
3328
+ "name": "id",
3329
+ "required": true
3330
+ }
3331
+ },
3332
+ "description": "Retrieve a root cause analysis by ID.",
3333
+ "flags": {
3334
+ "watch": {
3335
+ "char": "w",
3336
+ "description": "Wait for the analysis to complete if still generating.",
3337
+ "name": "watch",
3338
+ "allowNo": false,
3339
+ "type": "boolean"
3340
+ },
3341
+ "output": {
3342
+ "char": "o",
3343
+ "description": "Output format.",
3344
+ "name": "output",
3345
+ "default": "detail",
3346
+ "hasDynamicHelp": false,
3347
+ "multiple": false,
3348
+ "options": [
3349
+ "detail",
3350
+ "json",
3351
+ "md"
3352
+ ],
3353
+ "type": "option"
3354
+ }
3355
+ },
3356
+ "hasDynamicHelp": false,
3357
+ "hidden": false,
3358
+ "hiddenAliases": [],
3359
+ "id": "rca:get",
3360
+ "pluginAlias": "checkly",
3361
+ "pluginName": "checkly",
3362
+ "pluginType": "core",
3363
+ "strict": true,
3364
+ "enableJsonFlag": false,
3365
+ "coreCommand": false,
3366
+ "readOnly": true,
3367
+ "destructive": false,
3368
+ "idempotent": true,
3369
+ "isESM": true,
3370
+ "relativePath": [
3371
+ "dist",
3372
+ "commands",
3373
+ "rca",
3374
+ "get.js"
3375
+ ]
3376
+ },
3377
+ "rca:run": {
3378
+ "aliases": [],
3379
+ "args": {},
3380
+ "description": "Trigger a root cause analysis for a check or test session error group.",
3381
+ "flags": {
3382
+ "error-group": {
3383
+ "char": "e",
3384
+ "description": "The error group ID to analyze.",
3385
+ "exclusive": [
3386
+ "test-session-error-group"
3387
+ ],
3388
+ "name": "error-group",
3389
+ "hasDynamicHelp": false,
3390
+ "multiple": false,
3391
+ "type": "option"
3392
+ },
3393
+ "test-session-error-group": {
3394
+ "description": "The test session error group ID to analyze.",
3395
+ "helpLabel": "-te, --test-session-error-group",
3396
+ "name": "test-session-error-group",
3397
+ "hasDynamicHelp": false,
3398
+ "multiple": false,
3399
+ "type": "option"
3400
+ },
3401
+ "user-context": {
3402
+ "description": "Extra context to pass into the root cause analysis.",
3403
+ "name": "user-context",
3404
+ "hasDynamicHelp": false,
3405
+ "multiple": false,
3406
+ "type": "option"
3407
+ },
3408
+ "watch": {
3409
+ "char": "w",
3410
+ "description": "Wait for the analysis to complete and display the result.",
3411
+ "name": "watch",
3412
+ "allowNo": false,
3413
+ "type": "boolean"
3414
+ },
3415
+ "output": {
3416
+ "char": "o",
3417
+ "description": "Output format.",
3418
+ "name": "output",
3419
+ "default": "detail",
3420
+ "hasDynamicHelp": false,
3421
+ "multiple": false,
3422
+ "options": [
3423
+ "detail",
3424
+ "json",
3425
+ "md"
3426
+ ],
3427
+ "type": "option"
3428
+ }
3429
+ },
3430
+ "hasDynamicHelp": false,
3431
+ "hidden": false,
3432
+ "hiddenAliases": [],
3433
+ "id": "rca:run",
3434
+ "pluginAlias": "checkly",
3435
+ "pluginName": "checkly",
3436
+ "pluginType": "core",
3437
+ "strict": true,
3438
+ "usage": "rca run [-e <value> | -te <value>] [--user-context <text>] [-w] [-o detail|json|md]",
3439
+ "enableJsonFlag": false,
3440
+ "coreCommand": false,
3441
+ "readOnly": false,
3442
+ "destructive": false,
3443
+ "idempotent": false,
3444
+ "isESM": true,
3445
+ "relativePath": [
3446
+ "dist",
3447
+ "commands",
3448
+ "rca",
3449
+ "run.js"
3450
+ ]
3451
+ },
3452
3452
  "skills": {
3453
3453
  "aliases": [],
3454
3454
  "args": {
@@ -3866,5 +3866,5 @@
3866
3866
  ]
3867
3867
  }
3868
3868
  },
3869
- "version": "9.0.0"
3869
+ "version": "9.1.0"
3870
3870
  }