checkly 7.7.0 → 7.8.0-prerelease-9bdcdb2

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 (119) hide show
  1. package/dist/ai-context/checkly.rules.md +36 -32
  2. package/dist/ai-context/onboarding-boilerplate/__checks__/api.check.ts +22 -0
  3. package/dist/ai-context/onboarding-boilerplate/__checks__/heartbeat.check.ts +16 -0
  4. package/dist/ai-context/onboarding-boilerplate/__checks__/homepage.spec.ts +12 -0
  5. package/dist/ai-context/onboarding-boilerplate/__checks__/url.check.ts +18 -0
  6. package/dist/ai-context/onboarding-boilerplate/checkly-config-template.ts +50 -0
  7. package/dist/ai-context/onboarding-prompts/base.md +1 -0
  8. package/dist/ai-context/onboarding-prompts/playwright.md +1 -0
  9. package/dist/ai-context/public-skills/checkly/SKILL.md +1 -1
  10. package/dist/ai-context/skills-command/references/configure-api-checks.md +16 -7
  11. package/dist/ai-context/skills-command/references/configure-browser-checks.md +3 -6
  12. package/dist/ai-context/skills-command/references/configure-dns-monitors.md +1 -0
  13. package/dist/ai-context/skills-command/references/configure-heartbeat-monitors.md +1 -6
  14. package/dist/ai-context/skills-command/references/configure-icmp-monitors.md +1 -0
  15. package/dist/ai-context/skills-command/references/configure-tcp-monitors.md +2 -6
  16. package/dist/ai-context/skills-command/references/configure-url-monitors.md +3 -6
  17. package/dist/ai-context/skills-command/references/configure.md +9 -1
  18. package/dist/ai-context/skills-command/references/initialize.md +8 -8
  19. package/dist/ai-context/skills-command/references/manage.md +23 -0
  20. package/dist/commands/authCommand.d.ts +2 -1
  21. package/dist/commands/authCommand.js +5 -7
  22. package/dist/commands/authCommand.js.map +1 -1
  23. package/dist/commands/baseCommand.js +0 -1
  24. package/dist/commands/baseCommand.js.map +1 -1
  25. package/dist/commands/checks/get.js +19 -2
  26. package/dist/commands/checks/get.js.map +1 -1
  27. package/dist/commands/deploy.js +21 -17
  28. package/dist/commands/deploy.js.map +1 -1
  29. package/dist/commands/destroy.js +34 -18
  30. package/dist/commands/destroy.js.map +1 -1
  31. package/dist/commands/env/rm.js +16 -21
  32. package/dist/commands/env/rm.js.map +1 -1
  33. package/dist/commands/init.d.ts +23 -0
  34. package/dist/commands/init.js +278 -0
  35. package/dist/commands/init.js.map +1 -0
  36. package/dist/commands/pw-test.d.ts +1 -0
  37. package/dist/commands/pw-test.js +6 -2
  38. package/dist/commands/pw-test.js.map +1 -1
  39. package/dist/commands/rca/get.d.ts +15 -0
  40. package/dist/commands/rca/get.js +95 -0
  41. package/dist/commands/rca/get.js.map +1 -0
  42. package/dist/commands/rca/run.d.ts +13 -0
  43. package/dist/commands/rca/run.js +102 -0
  44. package/dist/commands/rca/run.js.map +1 -0
  45. package/dist/commands/skills/install.d.ts +6 -0
  46. package/dist/commands/skills/install.js +82 -48
  47. package/dist/commands/skills/install.js.map +1 -1
  48. package/dist/commands/test.d.ts +1 -0
  49. package/dist/commands/test.js +6 -2
  50. package/dist/commands/test.js.map +1 -1
  51. package/dist/commands/trigger.d.ts +1 -0
  52. package/dist/commands/trigger.js +6 -2
  53. package/dist/commands/trigger.js.map +1 -1
  54. package/dist/formatters/checks.js +19 -1
  55. package/dist/formatters/checks.js.map +1 -1
  56. package/dist/formatters/rca.d.ts +36 -0
  57. package/dist/formatters/rca.js +149 -0
  58. package/dist/formatters/rca.js.map +1 -0
  59. package/dist/help/help-extension.js +22 -0
  60. package/dist/help/help-extension.js.map +1 -1
  61. package/dist/help/skills.d.ts +7 -0
  62. package/dist/help/skills.js +23 -0
  63. package/dist/help/skills.js.map +1 -0
  64. package/dist/helpers/cli-mode.d.ts +1 -0
  65. package/dist/helpers/cli-mode.js +13 -1
  66. package/dist/helpers/cli-mode.js.map +1 -1
  67. package/dist/helpers/command-preview.js +5 -0
  68. package/dist/helpers/command-preview.js.map +1 -1
  69. package/dist/helpers/onboarding/boilerplate.d.ts +15 -0
  70. package/dist/helpers/onboarding/boilerplate.js +176 -0
  71. package/dist/helpers/onboarding/boilerplate.js.map +1 -0
  72. package/dist/helpers/onboarding/clipboard.d.ts +1 -0
  73. package/dist/helpers/onboarding/clipboard.js +32 -0
  74. package/dist/helpers/onboarding/clipboard.js.map +1 -0
  75. package/dist/helpers/onboarding/detect-project.d.ts +10 -0
  76. package/dist/helpers/onboarding/detect-project.js +35 -0
  77. package/dist/helpers/onboarding/detect-project.js.map +1 -0
  78. package/dist/helpers/onboarding/index.d.ts +7 -0
  79. package/dist/helpers/onboarding/index.js +26 -0
  80. package/dist/helpers/onboarding/index.js.map +1 -0
  81. package/dist/helpers/onboarding/messages.d.ts +5 -0
  82. package/dist/helpers/onboarding/messages.js +152 -0
  83. package/dist/helpers/onboarding/messages.js.map +1 -0
  84. package/dist/helpers/onboarding/prompt-display.d.ts +1 -0
  85. package/dist/helpers/onboarding/prompt-display.js +83 -0
  86. package/dist/helpers/onboarding/prompt-display.js.map +1 -0
  87. package/dist/helpers/onboarding/prompts-helpers.d.ts +2 -0
  88. package/dist/helpers/onboarding/prompts-helpers.js +19 -0
  89. package/dist/helpers/onboarding/prompts-helpers.js.map +1 -0
  90. package/dist/helpers/onboarding/skill-install.d.ts +10 -0
  91. package/dist/helpers/onboarding/skill-install.js +93 -0
  92. package/dist/helpers/onboarding/skill-install.js.map +1 -0
  93. package/dist/helpers/onboarding/template-prompt.d.ts +2 -0
  94. package/dist/helpers/onboarding/template-prompt.js +16 -0
  95. package/dist/helpers/onboarding/template-prompt.js.map +1 -0
  96. package/dist/rest/api.d.ts +2 -0
  97. package/dist/rest/api.js +3 -1
  98. package/dist/rest/api.js.map +1 -1
  99. package/dist/rest/error-groups.d.ts +31 -0
  100. package/dist/rest/error-groups.js.map +1 -1
  101. package/dist/rest/rca.d.ts +13 -0
  102. package/dist/rest/rca.js +27 -0
  103. package/dist/rest/rca.js.map +1 -0
  104. package/dist/rest/test-sessions.d.ts +2 -0
  105. package/dist/rest/test-sessions.js.map +1 -1
  106. package/dist/services/check-parser/package-files/package-manager.d.ts +2 -0
  107. package/dist/services/check-parser/package-files/package-manager.js +8 -6
  108. package/dist/services/check-parser/package-files/package-manager.js.map +1 -1
  109. package/dist/services/test-runner.d.ts +2 -1
  110. package/dist/services/test-runner.js +4 -1
  111. package/dist/services/test-runner.js.map +1 -1
  112. package/dist/services/trigger-runner.d.ts +2 -1
  113. package/dist/services/trigger-runner.js +4 -1
  114. package/dist/services/trigger-runner.js.map +1 -1
  115. package/dist/services/util.js +1 -1
  116. package/dist/services/util.js.map +1 -1
  117. package/dist/tsconfig.tsbuildinfo +1 -1
  118. package/oclif.manifest.json +309 -141
  119. package/package.json +4 -1
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "force": {
77
77
  "char": "f",
78
- "description": "Force mode. Skips the confirmation dialog.",
78
+ "description": "Skip confirmation prompt.",
79
79
  "name": "force",
80
80
  "allowNo": false,
81
81
  "type": "boolean"
@@ -139,7 +139,7 @@
139
139
  "flags": {
140
140
  "force": {
141
141
  "char": "f",
142
- "description": "Force mode. Skips the confirmation dialog.",
142
+ "description": "Skip confirmation prompt.",
143
143
  "name": "force",
144
144
  "allowNo": false,
145
145
  "type": "boolean"
@@ -198,6 +198,45 @@
198
198
  "help.js"
199
199
  ]
200
200
  },
201
+ "init": {
202
+ "aliases": [],
203
+ "args": {},
204
+ "description": "Initialize Checkly in your project",
205
+ "examples": [
206
+ "$ npx checkly init",
207
+ "$ npx checkly init --target claude",
208
+ "$ CI=true npx checkly init"
209
+ ],
210
+ "flags": {
211
+ "target": {
212
+ "char": "t",
213
+ "description": "Install the Checkly skill for a specific AI agent (amp, claude, cline, codex, continue, cursor, gemini-cli, github-copilot, goose, opencode, roo, windsurf).",
214
+ "name": "target",
215
+ "hasDynamicHelp": false,
216
+ "multiple": false,
217
+ "type": "option"
218
+ }
219
+ },
220
+ "hasDynamicHelp": false,
221
+ "hidden": false,
222
+ "hiddenAliases": [],
223
+ "id": "init",
224
+ "pluginAlias": "checkly",
225
+ "pluginName": "checkly",
226
+ "pluginType": "core",
227
+ "strict": true,
228
+ "enableJsonFlag": false,
229
+ "coreCommand": true,
230
+ "readOnly": false,
231
+ "destructive": false,
232
+ "idempotent": true,
233
+ "isESM": false,
234
+ "relativePath": [
235
+ "dist",
236
+ "commands",
237
+ "init.js"
238
+ ]
239
+ },
201
240
  "login": {
202
241
  "aliases": [],
203
242
  "args": {},
@@ -400,6 +439,12 @@
400
439
  "hasDynamicHelp": false,
401
440
  "multiple": false,
402
441
  "type": "option"
442
+ },
443
+ "refresh-cache": {
444
+ "description": "Force a fresh install of dependencies and update the cached version.",
445
+ "name": "refresh-cache",
446
+ "allowNo": false,
447
+ "type": "boolean"
403
448
  }
404
449
  },
405
450
  "hasDynamicHelp": false,
@@ -680,6 +725,12 @@
680
725
  "name": "verify-runtime-dependencies",
681
726
  "allowNo": true,
682
727
  "type": "boolean"
728
+ },
729
+ "refresh-cache": {
730
+ "description": "Force a fresh install of dependencies and update the cached version.",
731
+ "name": "refresh-cache",
732
+ "allowNo": false,
733
+ "type": "boolean"
683
734
  }
684
735
  },
685
736
  "hasDynamicHelp": false,
@@ -821,6 +872,12 @@
821
872
  "hasDynamicHelp": false,
822
873
  "multiple": false,
823
874
  "type": "option"
875
+ },
876
+ "refresh-cache": {
877
+ "description": "Force a fresh install of dependencies and update the cached version.",
878
+ "name": "refresh-cache",
879
+ "allowNo": false,
880
+ "type": "boolean"
824
881
  }
825
882
  },
826
883
  "hasDynamicHelp": false,
@@ -1624,7 +1681,7 @@
1624
1681
  "flags": {
1625
1682
  "force": {
1626
1683
  "char": "f",
1627
- "description": "Force to skip the confirmation prompt.",
1684
+ "description": "Skip confirmation prompt.",
1628
1685
  "name": "force",
1629
1686
  "allowNo": false,
1630
1687
  "type": "boolean"
@@ -1706,6 +1763,198 @@
1706
1763
  "update.js"
1707
1764
  ]
1708
1765
  },
1766
+ "import:apply": {
1767
+ "aliases": [],
1768
+ "args": {},
1769
+ "description": "Attach imported resources into your project in a pending state.",
1770
+ "flags": {
1771
+ "config": {
1772
+ "char": "c",
1773
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1774
+ "name": "config",
1775
+ "hasDynamicHelp": false,
1776
+ "multiple": false,
1777
+ "type": "option"
1778
+ }
1779
+ },
1780
+ "hasDynamicHelp": false,
1781
+ "hidden": false,
1782
+ "hiddenAliases": [],
1783
+ "id": "import:apply",
1784
+ "pluginAlias": "checkly",
1785
+ "pluginName": "checkly",
1786
+ "pluginType": "core",
1787
+ "strict": true,
1788
+ "enableJsonFlag": false,
1789
+ "coreCommand": false,
1790
+ "readOnly": false,
1791
+ "destructive": false,
1792
+ "idempotent": false,
1793
+ "isESM": false,
1794
+ "relativePath": [
1795
+ "dist",
1796
+ "commands",
1797
+ "import",
1798
+ "apply.js"
1799
+ ]
1800
+ },
1801
+ "import:cancel": {
1802
+ "aliases": [],
1803
+ "args": {},
1804
+ "description": "Cancels an ongoing import plan that has not been committed yet.",
1805
+ "flags": {
1806
+ "config": {
1807
+ "char": "c",
1808
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1809
+ "name": "config",
1810
+ "hasDynamicHelp": false,
1811
+ "multiple": false,
1812
+ "type": "option"
1813
+ },
1814
+ "all": {
1815
+ "description": "Cancel all plans.",
1816
+ "name": "all",
1817
+ "allowNo": false,
1818
+ "type": "boolean"
1819
+ }
1820
+ },
1821
+ "hasDynamicHelp": false,
1822
+ "hidden": false,
1823
+ "hiddenAliases": [],
1824
+ "id": "import:cancel",
1825
+ "pluginAlias": "checkly",
1826
+ "pluginName": "checkly",
1827
+ "pluginType": "core",
1828
+ "strict": true,
1829
+ "enableJsonFlag": false,
1830
+ "coreCommand": false,
1831
+ "readOnly": false,
1832
+ "destructive": false,
1833
+ "idempotent": true,
1834
+ "isESM": false,
1835
+ "relativePath": [
1836
+ "dist",
1837
+ "commands",
1838
+ "import",
1839
+ "cancel.js"
1840
+ ]
1841
+ },
1842
+ "import:commit": {
1843
+ "aliases": [],
1844
+ "args": {},
1845
+ "description": "Permanently commit imported resources into your project.",
1846
+ "flags": {
1847
+ "config": {
1848
+ "char": "c",
1849
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1850
+ "name": "config",
1851
+ "hasDynamicHelp": false,
1852
+ "multiple": false,
1853
+ "type": "option"
1854
+ }
1855
+ },
1856
+ "hasDynamicHelp": false,
1857
+ "hidden": false,
1858
+ "hiddenAliases": [],
1859
+ "id": "import:commit",
1860
+ "pluginAlias": "checkly",
1861
+ "pluginName": "checkly",
1862
+ "pluginType": "core",
1863
+ "strict": true,
1864
+ "enableJsonFlag": false,
1865
+ "coreCommand": false,
1866
+ "readOnly": false,
1867
+ "destructive": false,
1868
+ "idempotent": false,
1869
+ "isESM": false,
1870
+ "relativePath": [
1871
+ "dist",
1872
+ "commands",
1873
+ "import",
1874
+ "commit.js"
1875
+ ]
1876
+ },
1877
+ "import:plan": {
1878
+ "aliases": [],
1879
+ "args": {
1880
+ "resource": {
1881
+ "description": "A specific resource to import.",
1882
+ "name": "resource",
1883
+ "required": false
1884
+ }
1885
+ },
1886
+ "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.",
1887
+ "flags": {
1888
+ "config": {
1889
+ "char": "c",
1890
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
1891
+ "name": "config",
1892
+ "hasDynamicHelp": false,
1893
+ "multiple": false,
1894
+ "type": "option"
1895
+ },
1896
+ "root": {
1897
+ "description": "The root folder in which to write generated code files.",
1898
+ "name": "root",
1899
+ "default": "__checks__",
1900
+ "hasDynamicHelp": false,
1901
+ "multiple": false,
1902
+ "type": "option"
1903
+ },
1904
+ "preview": {
1905
+ "description": "Preview generated code without creating an actual import plan.",
1906
+ "name": "preview",
1907
+ "allowNo": false,
1908
+ "type": "boolean"
1909
+ },
1910
+ "debug-import-plan": {
1911
+ "description": "Output the import plan to a file.",
1912
+ "hidden": true,
1913
+ "name": "debug-import-plan",
1914
+ "allowNo": false,
1915
+ "type": "boolean"
1916
+ },
1917
+ "debug-import-plan-input-file": {
1918
+ "description": "A file to load an import plan from.",
1919
+ "hidden": true,
1920
+ "name": "debug-import-plan-input-file",
1921
+ "hasDynamicHelp": false,
1922
+ "multiple": false,
1923
+ "type": "option"
1924
+ },
1925
+ "debug-import-plan-output-file": {
1926
+ "description": "The file to output the import plan to.",
1927
+ "hidden": true,
1928
+ "name": "debug-import-plan-output-file",
1929
+ "default": "./debug-import-plan.json",
1930
+ "hasDynamicHelp": false,
1931
+ "multiple": false,
1932
+ "type": "option"
1933
+ }
1934
+ },
1935
+ "hasDynamicHelp": false,
1936
+ "hidden": false,
1937
+ "hiddenAliases": [
1938
+ "import"
1939
+ ],
1940
+ "id": "import:plan",
1941
+ "pluginAlias": "checkly",
1942
+ "pluginName": "checkly",
1943
+ "pluginType": "core",
1944
+ "strict": false,
1945
+ "enableJsonFlag": false,
1946
+ "coreCommand": false,
1947
+ "readOnly": true,
1948
+ "destructive": false,
1949
+ "idempotent": true,
1950
+ "isESM": false,
1951
+ "relativePath": [
1952
+ "dist",
1953
+ "commands",
1954
+ "import",
1955
+ "plan.js"
1956
+ ]
1957
+ },
1709
1958
  "incidents:create": {
1710
1959
  "aliases": [],
1711
1960
  "args": {},
@@ -2054,196 +2303,115 @@
2054
2303
  "update.js"
2055
2304
  ]
2056
2305
  },
2057
- "import:apply": {
2306
+ "rca:get": {
2058
2307
  "aliases": [],
2059
- "args": {},
2060
- "description": "Attach imported resources into your project in a pending state.",
2061
- "flags": {
2062
- "config": {
2063
- "char": "c",
2064
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2065
- "name": "config",
2066
- "hasDynamicHelp": false,
2067
- "multiple": false,
2068
- "type": "option"
2308
+ "args": {
2309
+ "id": {
2310
+ "description": "The RCA ID to retrieve.",
2311
+ "name": "id",
2312
+ "required": true
2069
2313
  }
2070
2314
  },
2071
- "hasDynamicHelp": false,
2072
- "hidden": false,
2073
- "hiddenAliases": [],
2074
- "id": "import:apply",
2075
- "pluginAlias": "checkly",
2076
- "pluginName": "checkly",
2077
- "pluginType": "core",
2078
- "strict": true,
2079
- "enableJsonFlag": false,
2080
- "coreCommand": false,
2081
- "readOnly": false,
2082
- "destructive": false,
2083
- "idempotent": false,
2084
- "isESM": false,
2085
- "relativePath": [
2086
- "dist",
2087
- "commands",
2088
- "import",
2089
- "apply.js"
2090
- ]
2091
- },
2092
- "import:cancel": {
2093
- "aliases": [],
2094
- "args": {},
2095
- "description": "Cancels an ongoing import plan that has not been committed yet.",
2315
+ "description": "Retrieve a root cause analysis by ID.",
2096
2316
  "flags": {
2097
- "config": {
2098
- "char": "c",
2099
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2100
- "name": "config",
2101
- "hasDynamicHelp": false,
2102
- "multiple": false,
2103
- "type": "option"
2104
- },
2105
- "all": {
2106
- "description": "Cancel all plans.",
2107
- "name": "all",
2317
+ "watch": {
2318
+ "char": "w",
2319
+ "description": "Wait for the analysis to complete if still generating.",
2320
+ "name": "watch",
2108
2321
  "allowNo": false,
2109
2322
  "type": "boolean"
2110
- }
2111
- },
2112
- "hasDynamicHelp": false,
2113
- "hidden": false,
2114
- "hiddenAliases": [],
2115
- "id": "import:cancel",
2116
- "pluginAlias": "checkly",
2117
- "pluginName": "checkly",
2118
- "pluginType": "core",
2119
- "strict": true,
2120
- "enableJsonFlag": false,
2121
- "coreCommand": false,
2122
- "readOnly": false,
2123
- "destructive": false,
2124
- "idempotent": true,
2125
- "isESM": false,
2126
- "relativePath": [
2127
- "dist",
2128
- "commands",
2129
- "import",
2130
- "cancel.js"
2131
- ]
2132
- },
2133
- "import:commit": {
2134
- "aliases": [],
2135
- "args": {},
2136
- "description": "Permanently commit imported resources into your project.",
2137
- "flags": {
2138
- "config": {
2139
- "char": "c",
2140
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2141
- "name": "config",
2323
+ },
2324
+ "output": {
2325
+ "char": "o",
2326
+ "description": "Output format.",
2327
+ "name": "output",
2328
+ "default": "detail",
2142
2329
  "hasDynamicHelp": false,
2143
2330
  "multiple": false,
2331
+ "options": [
2332
+ "detail",
2333
+ "json",
2334
+ "md"
2335
+ ],
2144
2336
  "type": "option"
2145
2337
  }
2146
2338
  },
2147
2339
  "hasDynamicHelp": false,
2148
2340
  "hidden": false,
2149
2341
  "hiddenAliases": [],
2150
- "id": "import:commit",
2342
+ "id": "rca:get",
2151
2343
  "pluginAlias": "checkly",
2152
2344
  "pluginName": "checkly",
2153
2345
  "pluginType": "core",
2154
2346
  "strict": true,
2155
2347
  "enableJsonFlag": false,
2156
2348
  "coreCommand": false,
2157
- "readOnly": false,
2349
+ "readOnly": true,
2158
2350
  "destructive": false,
2159
- "idempotent": false,
2351
+ "idempotent": true,
2160
2352
  "isESM": false,
2161
2353
  "relativePath": [
2162
2354
  "dist",
2163
2355
  "commands",
2164
- "import",
2165
- "commit.js"
2356
+ "rca",
2357
+ "get.js"
2166
2358
  ]
2167
2359
  },
2168
- "import:plan": {
2360
+ "rca:run": {
2169
2361
  "aliases": [],
2170
- "args": {
2171
- "resource": {
2172
- "description": "A specific resource to import.",
2173
- "name": "resource",
2174
- "required": false
2175
- }
2176
- },
2177
- "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.",
2362
+ "args": {},
2363
+ "description": "Trigger a root cause analysis for an error group.",
2178
2364
  "flags": {
2179
- "config": {
2180
- "char": "c",
2181
- "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
2182
- "name": "config",
2183
- "hasDynamicHelp": false,
2184
- "multiple": false,
2185
- "type": "option"
2186
- },
2187
- "root": {
2188
- "description": "The root folder in which to write generated code files.",
2189
- "name": "root",
2190
- "default": "__checks__",
2365
+ "error-group": {
2366
+ "char": "e",
2367
+ "description": "The error group ID to analyze.",
2368
+ "name": "error-group",
2369
+ "required": true,
2191
2370
  "hasDynamicHelp": false,
2192
2371
  "multiple": false,
2193
2372
  "type": "option"
2194
2373
  },
2195
- "preview": {
2196
- "description": "Preview generated code without creating an actual import plan.",
2197
- "name": "preview",
2198
- "allowNo": false,
2199
- "type": "boolean"
2200
- },
2201
- "debug-import-plan": {
2202
- "description": "Output the import plan to a file.",
2203
- "hidden": true,
2204
- "name": "debug-import-plan",
2374
+ "watch": {
2375
+ "char": "w",
2376
+ "description": "Wait for the analysis to complete and display the result.",
2377
+ "name": "watch",
2205
2378
  "allowNo": false,
2206
2379
  "type": "boolean"
2207
2380
  },
2208
- "debug-import-plan-input-file": {
2209
- "description": "A file to load an import plan from.",
2210
- "hidden": true,
2211
- "name": "debug-import-plan-input-file",
2212
- "hasDynamicHelp": false,
2213
- "multiple": false,
2214
- "type": "option"
2215
- },
2216
- "debug-import-plan-output-file": {
2217
- "description": "The file to output the import plan to.",
2218
- "hidden": true,
2219
- "name": "debug-import-plan-output-file",
2220
- "default": "./debug-import-plan.json",
2381
+ "output": {
2382
+ "char": "o",
2383
+ "description": "Output format.",
2384
+ "name": "output",
2385
+ "default": "detail",
2221
2386
  "hasDynamicHelp": false,
2222
2387
  "multiple": false,
2388
+ "options": [
2389
+ "detail",
2390
+ "json",
2391
+ "md"
2392
+ ],
2223
2393
  "type": "option"
2224
2394
  }
2225
2395
  },
2226
2396
  "hasDynamicHelp": false,
2227
2397
  "hidden": false,
2228
- "hiddenAliases": [
2229
- "import"
2230
- ],
2231
- "id": "import:plan",
2398
+ "hiddenAliases": [],
2399
+ "id": "rca:run",
2232
2400
  "pluginAlias": "checkly",
2233
2401
  "pluginName": "checkly",
2234
2402
  "pluginType": "core",
2235
- "strict": false,
2403
+ "strict": true,
2236
2404
  "enableJsonFlag": false,
2237
2405
  "coreCommand": false,
2238
- "readOnly": true,
2406
+ "readOnly": false,
2239
2407
  "destructive": false,
2240
- "idempotent": true,
2408
+ "idempotent": false,
2241
2409
  "isESM": false,
2242
2410
  "relativePath": [
2243
2411
  "dist",
2244
2412
  "commands",
2245
- "import",
2246
- "plan.js"
2413
+ "rca",
2414
+ "run.js"
2247
2415
  ]
2248
2416
  },
2249
2417
  "skills": {
@@ -2450,5 +2618,5 @@
2450
2618
  ]
2451
2619
  }
2452
2620
  },
2453
- "version": "7.7.0"
2621
+ "version": "7.8.0-prerelease-9bdcdb2"
2454
2622
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "checkly",
3
- "version": "7.7.0",
3
+ "version": "7.8.0-prerelease-9bdcdb2",
4
4
  "description": "Checkly CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -79,6 +79,9 @@
79
79
  "import": {
80
80
  "description": "Import existing resources from your Checkly account to your project."
81
81
  },
82
+ "rca": {
83
+ "description": "Trigger and retrieve root cause analyses."
84
+ },
82
85
  "status-pages": {
83
86
  "description": "List and manage status pages in your Checkly account."
84
87
  }