checkly 3.1.1 → 4.0.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 (227) hide show
  1. package/README.md +42 -110
  2. package/bin/dev +17 -0
  3. package/bin/run +5 -0
  4. package/bin/run.cmd +3 -0
  5. package/constructs.d.ts +1 -0
  6. package/constructs.js +1 -0
  7. package/dist/auth/index.d.ts +15 -0
  8. package/dist/auth/index.js +228 -0
  9. package/dist/auth/index.js.map +1 -0
  10. package/dist/commands/authCommand.d.ts +5 -0
  11. package/dist/commands/authCommand.js +14 -0
  12. package/dist/commands/authCommand.js.map +1 -0
  13. package/dist/commands/baseCommand.d.ts +9 -0
  14. package/dist/commands/baseCommand.js +21 -0
  15. package/dist/commands/baseCommand.js.map +1 -0
  16. package/dist/commands/deploy.d.ts +13 -0
  17. package/dist/commands/deploy.js +171 -0
  18. package/dist/commands/deploy.js.map +1 -0
  19. package/dist/commands/destroy.d.ts +10 -0
  20. package/dist/commands/destroy.js +47 -0
  21. package/dist/commands/destroy.js.map +1 -0
  22. package/dist/commands/env/add.d.ts +13 -0
  23. package/dist/commands/env/add.js +54 -0
  24. package/dist/commands/env/add.js.map +1 -0
  25. package/dist/commands/env/ls.d.ts +6 -0
  26. package/dist/commands/env/ls.js +21 -0
  27. package/dist/commands/env/ls.js.map +1 -0
  28. package/dist/commands/env/pull.d.ts +12 -0
  29. package/dist/commands/env/pull.js +63 -0
  30. package/dist/commands/env/pull.js.map +1 -0
  31. package/dist/commands/env/rm.d.ts +12 -0
  32. package/dist/commands/env/rm.js +56 -0
  33. package/dist/commands/env/rm.js.map +1 -0
  34. package/dist/commands/env/update.d.ts +13 -0
  35. package/dist/commands/env/update.js +54 -0
  36. package/dist/commands/env/update.js.map +1 -0
  37. package/dist/commands/login.d.ts +13 -0
  38. package/dist/commands/login.js +129 -0
  39. package/dist/commands/login.js.map +1 -0
  40. package/dist/commands/logout.d.ts +9 -0
  41. package/dist/commands/logout.js +40 -0
  42. package/dist/commands/logout.js.map +1 -0
  43. package/dist/commands/runtimes.d.ts +6 -0
  44. package/dist/commands/runtimes.js +26 -0
  45. package/dist/commands/runtimes.js.map +1 -0
  46. package/dist/commands/switch.d.ts +9 -0
  47. package/dist/commands/switch.js +59 -0
  48. package/dist/commands/switch.js.map +1 -0
  49. package/dist/commands/test.d.ts +36 -0
  50. package/dist/commands/test.js +247 -0
  51. package/dist/commands/test.js.map +1 -0
  52. package/dist/commands/whoami.d.ts +6 -0
  53. package/dist/commands/whoami.js +16 -0
  54. package/dist/commands/whoami.js.map +1 -0
  55. package/dist/config.d.ts +31 -0
  56. package/dist/config.js +8 -0
  57. package/dist/config.js.map +1 -0
  58. package/dist/constructs/alert-channel-subscription.d.ts +44 -0
  59. package/dist/constructs/alert-channel-subscription.js +39 -0
  60. package/dist/constructs/alert-channel-subscription.js.map +1 -0
  61. package/dist/constructs/alert-channel.d.ts +53 -0
  62. package/dist/constructs/alert-channel.js +55 -0
  63. package/dist/constructs/alert-channel.js.map +1 -0
  64. package/dist/constructs/api-check.d.ts +179 -0
  65. package/dist/constructs/api-check.js +248 -0
  66. package/dist/constructs/api-check.js.map +1 -0
  67. package/dist/constructs/browser-check.d.ts +59 -0
  68. package/dist/constructs/browser-check.js +102 -0
  69. package/dist/constructs/browser-check.js.map +1 -0
  70. package/dist/constructs/check-group.d.ts +116 -0
  71. package/dist/constructs/check-group.js +113 -0
  72. package/dist/constructs/check-group.js.map +1 -0
  73. package/dist/constructs/check.d.ts +111 -0
  74. package/dist/constructs/check.js +88 -0
  75. package/dist/constructs/check.js.map +1 -0
  76. package/dist/constructs/construct.d.ts +17 -0
  77. package/dist/constructs/construct.js +22 -0
  78. package/dist/constructs/construct.js.map +1 -0
  79. package/dist/constructs/email-alert-channel.d.ts +26 -0
  80. package/dist/constructs/email-alert-channel.js +37 -0
  81. package/dist/constructs/email-alert-channel.js.map +1 -0
  82. package/dist/constructs/environment-variable.d.ts +2 -0
  83. package/dist/constructs/environment-variable.js +3 -0
  84. package/dist/constructs/environment-variable.js.map +1 -0
  85. package/dist/constructs/frequency.d.ts +20 -0
  86. package/dist/constructs/frequency.js +26 -0
  87. package/dist/constructs/frequency.js.map +1 -0
  88. package/dist/constructs/http-header.d.ts +2 -0
  89. package/dist/constructs/http-header.js +3 -0
  90. package/dist/constructs/http-header.js.map +1 -0
  91. package/dist/constructs/index.d.ts +15 -0
  92. package/dist/constructs/index.js +32 -0
  93. package/dist/constructs/index.js.map +1 -0
  94. package/dist/constructs/key-value-pair.d.ts +5 -0
  95. package/dist/constructs/key-value-pair.js +3 -0
  96. package/dist/constructs/key-value-pair.js.map +1 -0
  97. package/dist/constructs/opsgenie-alert-channel.d.ts +45 -0
  98. package/dist/constructs/opsgenie-alert-channel.js +44 -0
  99. package/dist/constructs/opsgenie-alert-channel.js.map +1 -0
  100. package/dist/constructs/pagerduty-alert-channel.d.ts +39 -0
  101. package/dist/constructs/pagerduty-alert-channel.js +42 -0
  102. package/dist/constructs/pagerduty-alert-channel.js.map +1 -0
  103. package/dist/constructs/project.d.ts +57 -0
  104. package/dist/constructs/project.js +100 -0
  105. package/dist/constructs/project.js.map +1 -0
  106. package/dist/constructs/query-param.d.ts +2 -0
  107. package/dist/constructs/query-param.js +3 -0
  108. package/dist/constructs/query-param.js.map +1 -0
  109. package/dist/constructs/ref.d.ts +5 -0
  110. package/dist/constructs/ref.js +13 -0
  111. package/dist/constructs/ref.js.map +1 -0
  112. package/dist/constructs/slack-alert-channel.d.ts +26 -0
  113. package/dist/constructs/slack-alert-channel.js +40 -0
  114. package/dist/constructs/slack-alert-channel.js.map +1 -0
  115. package/dist/constructs/sms-alert-channel.d.ts +27 -0
  116. package/dist/constructs/sms-alert-channel.js +38 -0
  117. package/dist/constructs/sms-alert-channel.js.map +1 -0
  118. package/dist/constructs/validator-error.d.ts +2 -0
  119. package/dist/constructs/validator-error.js +7 -0
  120. package/dist/constructs/validator-error.js.map +1 -0
  121. package/dist/constructs/webhook-alert-channel.d.ts +59 -0
  122. package/dist/constructs/webhook-alert-channel.js +50 -0
  123. package/dist/constructs/webhook-alert-channel.js.map +1 -0
  124. package/dist/help/examples.d.ts +6 -0
  125. package/dist/help/examples.js +22 -0
  126. package/dist/help/examples.js.map +1 -0
  127. package/dist/help/help-extension.d.ts +4 -0
  128. package/dist/help/help-extension.js +41 -0
  129. package/dist/help/help-extension.js.map +1 -0
  130. package/dist/index.d.ts +3 -0
  131. package/dist/index.js +7 -0
  132. package/dist/index.js.map +1 -0
  133. package/dist/messages/common-messages.d.ts +5 -0
  134. package/dist/messages/common-messages.js +9 -0
  135. package/dist/messages/common-messages.js.map +1 -0
  136. package/dist/reporters/abstract-list.d.ts +34 -0
  137. package/dist/reporters/abstract-list.js +122 -0
  138. package/dist/reporters/abstract-list.js.map +1 -0
  139. package/dist/reporters/ci.d.ts +12 -0
  140. package/dist/reporters/ci.js +29 -0
  141. package/dist/reporters/ci.js.map +1 -0
  142. package/dist/reporters/dot.d.ts +12 -0
  143. package/dist/reporters/dot.js +28 -0
  144. package/dist/reporters/dot.js.map +1 -0
  145. package/dist/reporters/github.d.ts +33 -0
  146. package/dist/reporters/github.js +93 -0
  147. package/dist/reporters/github.js.map +1 -0
  148. package/dist/reporters/list.d.ts +13 -0
  149. package/dist/reporters/list.js +57 -0
  150. package/dist/reporters/list.js.map +1 -0
  151. package/dist/reporters/reporter.d.ts +14 -0
  152. package/dist/reporters/reporter.js +23 -0
  153. package/dist/reporters/reporter.js.map +1 -0
  154. package/dist/reporters/util.d.ts +15 -0
  155. package/dist/reporters/util.js +283 -0
  156. package/dist/reporters/util.js.map +1 -0
  157. package/dist/rest/accounts.d.ts +12 -0
  158. package/dist/rest/accounts.js +15 -0
  159. package/dist/rest/accounts.js.map +1 -0
  160. package/dist/rest/api.d.ts +27 -0
  161. package/dist/rest/api.js +90 -0
  162. package/dist/rest/api.js.map +1 -0
  163. package/dist/rest/assets.d.ts +13 -0
  164. package/dist/rest/assets.js +30 -0
  165. package/dist/rest/assets.js.map +1 -0
  166. package/dist/rest/environment-variables.d.ts +16 -0
  167. package/dist/rest/environment-variables.js +25 -0
  168. package/dist/rest/environment-variables.js.map +1 -0
  169. package/dist/rest/locations.d.ts +11 -0
  170. package/dist/rest/locations.js +12 -0
  171. package/dist/rest/locations.js.map +1 -0
  172. package/dist/rest/private-locations.d.ts +11 -0
  173. package/dist/rest/private-locations.js +12 -0
  174. package/dist/rest/private-locations.js.map +1 -0
  175. package/dist/rest/projects.d.ts +43 -0
  176. package/dist/rest/projects.js +24 -0
  177. package/dist/rest/projects.js.map +1 -0
  178. package/dist/rest/runtimes.d.ts +15 -0
  179. package/dist/rest/runtimes.js +15 -0
  180. package/dist/rest/runtimes.js.map +1 -0
  181. package/dist/rest/test-sessions.d.ts +26 -0
  182. package/dist/rest/test-sessions.js +12 -0
  183. package/dist/rest/test-sessions.js.map +1 -0
  184. package/dist/rest/users.d.ts +12 -0
  185. package/dist/rest/users.js +12 -0
  186. package/dist/rest/users.js.map +1 -0
  187. package/dist/services/abstract-check-runner.d.ts +50 -0
  188. package/dist/services/abstract-check-runner.js +151 -0
  189. package/dist/services/abstract-check-runner.js.map +1 -0
  190. package/dist/services/check-parser/collector.d.ts +33 -0
  191. package/dist/services/check-parser/collector.js +48 -0
  192. package/dist/services/check-parser/collector.js.map +1 -0
  193. package/dist/services/check-parser/errors.d.ts +8 -0
  194. package/dist/services/check-parser/errors.js +45 -0
  195. package/dist/services/check-parser/errors.js.map +1 -0
  196. package/dist/services/check-parser/parser.d.ts +39 -0
  197. package/dist/services/check-parser/parser.js +296 -0
  198. package/dist/services/check-parser/parser.js.map +1 -0
  199. package/dist/services/checkly-config-loader.d.ts +54 -0
  200. package/dist/services/checkly-config-loader.js +55 -0
  201. package/dist/services/checkly-config-loader.js.map +1 -0
  202. package/dist/services/config.d.ts +24 -0
  203. package/dist/services/config.js +73 -0
  204. package/dist/services/config.js.map +1 -0
  205. package/dist/services/project-parser.d.ts +19 -0
  206. package/dist/services/project-parser.js +87 -0
  207. package/dist/services/project-parser.js.map +1 -0
  208. package/dist/services/socket-client.d.ts +4 -0
  209. package/dist/services/socket-client.js +20 -0
  210. package/dist/services/socket-client.js.map +1 -0
  211. package/dist/services/test-filters.d.ts +2 -0
  212. package/dist/services/test-filters.js +16 -0
  213. package/dist/services/test-filters.js.map +1 -0
  214. package/dist/services/test-runner.d.ts +21 -0
  215. package/dist/services/test-runner.js +50 -0
  216. package/dist/services/test-runner.js.map +1 -0
  217. package/dist/services/util.d.ts +29 -0
  218. package/dist/services/util.js +147 -0
  219. package/dist/services/util.js.map +1 -0
  220. package/dist/tsconfig.tsbuildinfo +1 -0
  221. package/oclif.manifest.json +423 -0
  222. package/package.json +163 -18
  223. package/LICENSE +0 -121
  224. package/dist/checkly.min.js +0 -1
  225. package/index.js +0 -285
  226. package/logo.png +0 -0
  227. package/test.js +0 -183
@@ -0,0 +1,423 @@
1
+ {
2
+ "version": "4.0.0",
3
+ "commands": {
4
+ "authCommand": {
5
+ "id": "authCommand",
6
+ "strict": true,
7
+ "pluginName": "checkly",
8
+ "pluginAlias": "checkly",
9
+ "pluginType": "core",
10
+ "hidden": true,
11
+ "aliases": [],
12
+ "flags": {},
13
+ "args": {}
14
+ },
15
+ "baseCommand": {
16
+ "id": "baseCommand",
17
+ "strict": true,
18
+ "pluginName": "checkly",
19
+ "pluginAlias": "checkly",
20
+ "pluginType": "core",
21
+ "hidden": true,
22
+ "aliases": [],
23
+ "flags": {},
24
+ "args": {}
25
+ },
26
+ "deploy": {
27
+ "id": "deploy",
28
+ "description": "Deploy your project to your Checkly account.",
29
+ "strict": true,
30
+ "pluginName": "checkly",
31
+ "pluginAlias": "checkly",
32
+ "pluginType": "core",
33
+ "hidden": false,
34
+ "aliases": [],
35
+ "flags": {
36
+ "preview": {
37
+ "name": "preview",
38
+ "type": "boolean",
39
+ "char": "p",
40
+ "description": "Show a preview of the changes made by the deploy command.",
41
+ "allowNo": false
42
+ },
43
+ "output": {
44
+ "name": "output",
45
+ "type": "boolean",
46
+ "char": "o",
47
+ "description": "Shows the changes made after the deploy command.",
48
+ "allowNo": false
49
+ },
50
+ "force": {
51
+ "name": "force",
52
+ "type": "boolean",
53
+ "char": "f",
54
+ "description": "Force mode. Skips the confirmation dialog.",
55
+ "allowNo": false
56
+ },
57
+ "config": {
58
+ "name": "config",
59
+ "type": "option",
60
+ "char": "c",
61
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
62
+ "multiple": false
63
+ }
64
+ },
65
+ "args": {}
66
+ },
67
+ "destroy": {
68
+ "id": "destroy",
69
+ "description": "Destroy your project with all its related resources.",
70
+ "strict": true,
71
+ "pluginName": "checkly",
72
+ "pluginAlias": "checkly",
73
+ "pluginType": "core",
74
+ "hidden": false,
75
+ "aliases": [],
76
+ "flags": {
77
+ "force": {
78
+ "name": "force",
79
+ "type": "boolean",
80
+ "char": "f",
81
+ "description": "Force mode. Skips the confirmation dialog.",
82
+ "allowNo": false
83
+ },
84
+ "config": {
85
+ "name": "config",
86
+ "type": "option",
87
+ "char": "c",
88
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
89
+ "multiple": false
90
+ }
91
+ },
92
+ "args": {}
93
+ },
94
+ "login": {
95
+ "id": "login",
96
+ "description": "Login to your Checkly account or create a new one.",
97
+ "strict": true,
98
+ "pluginName": "checkly",
99
+ "pluginAlias": "checkly",
100
+ "pluginType": "core",
101
+ "hidden": false,
102
+ "aliases": [],
103
+ "flags": {
104
+ "api-key": {
105
+ "name": "api-key",
106
+ "type": "option",
107
+ "char": "k",
108
+ "description": "Checkly User API Key. \nIf you did not have one, create it at: https://app.checklyhq.com/settings/user/api-keys.",
109
+ "multiple": false
110
+ },
111
+ "account-id": {
112
+ "name": "account-id",
113
+ "type": "option",
114
+ "char": "i",
115
+ "description": "Checkly account ID. (This flag is required if you are using -k (--api-key) flag.",
116
+ "multiple": false
117
+ }
118
+ },
119
+ "args": {}
120
+ },
121
+ "logout": {
122
+ "id": "logout",
123
+ "description": "Log out and clear any local credentials.",
124
+ "strict": true,
125
+ "pluginName": "checkly",
126
+ "pluginAlias": "checkly",
127
+ "pluginType": "core",
128
+ "hidden": false,
129
+ "aliases": [],
130
+ "flags": {
131
+ "force": {
132
+ "name": "force",
133
+ "type": "boolean",
134
+ "char": "f",
135
+ "description": "Force mode. Skips the confirmation dialog.",
136
+ "allowNo": false
137
+ }
138
+ },
139
+ "args": {}
140
+ },
141
+ "runtimes": {
142
+ "id": "runtimes",
143
+ "description": "List all supported runtimes and dependencies.",
144
+ "strict": true,
145
+ "pluginName": "checkly",
146
+ "pluginAlias": "checkly",
147
+ "pluginType": "core",
148
+ "hidden": false,
149
+ "aliases": [],
150
+ "flags": {},
151
+ "args": {}
152
+ },
153
+ "switch": {
154
+ "id": "switch",
155
+ "description": "Switch user account.",
156
+ "strict": true,
157
+ "pluginName": "checkly",
158
+ "pluginAlias": "checkly",
159
+ "pluginType": "core",
160
+ "hidden": false,
161
+ "aliases": [],
162
+ "flags": {
163
+ "account-id": {
164
+ "name": "account-id",
165
+ "type": "option",
166
+ "char": "a",
167
+ "description": "The id of the account you want to switch to.",
168
+ "multiple": false
169
+ }
170
+ },
171
+ "args": {}
172
+ },
173
+ "test": {
174
+ "id": "test",
175
+ "description": "Test your checks on Checkly.",
176
+ "strict": false,
177
+ "pluginName": "checkly",
178
+ "pluginAlias": "checkly",
179
+ "pluginType": "core",
180
+ "hidden": false,
181
+ "aliases": [],
182
+ "flags": {
183
+ "location": {
184
+ "name": "location",
185
+ "type": "option",
186
+ "char": "l",
187
+ "description": "The location to run the checks at.",
188
+ "multiple": false
189
+ },
190
+ "private-location": {
191
+ "name": "private-location",
192
+ "type": "option",
193
+ "description": "The private location to run checks at.",
194
+ "multiple": false,
195
+ "exclusive": [
196
+ "location"
197
+ ]
198
+ },
199
+ "grep": {
200
+ "name": "grep",
201
+ "type": "option",
202
+ "char": "g",
203
+ "description": "Only run checks where the check name matches a regular expression.",
204
+ "multiple": false,
205
+ "default": ".*"
206
+ },
207
+ "env": {
208
+ "name": "env",
209
+ "type": "option",
210
+ "char": "e",
211
+ "description": "Env vars to be passed to the test run.",
212
+ "multiple": true,
213
+ "exclusive": [
214
+ "env-file"
215
+ ],
216
+ "default": []
217
+ },
218
+ "env-file": {
219
+ "name": "env-file",
220
+ "type": "option",
221
+ "description": "dotenv file path to be passed. For example --env-file=\"./.env\"",
222
+ "multiple": false,
223
+ "exclusive": [
224
+ "env"
225
+ ]
226
+ },
227
+ "list": {
228
+ "name": "list",
229
+ "type": "boolean",
230
+ "description": "list all checks but don't run them.",
231
+ "allowNo": false
232
+ },
233
+ "timeout": {
234
+ "name": "timeout",
235
+ "type": "option",
236
+ "description": "A timeout (in seconds) to wait for checks to complete.",
237
+ "multiple": false,
238
+ "default": 240
239
+ },
240
+ "verbose": {
241
+ "name": "verbose",
242
+ "type": "boolean",
243
+ "char": "v",
244
+ "description": "Always show the full logs of the checks.",
245
+ "allowNo": true
246
+ },
247
+ "reporter": {
248
+ "name": "reporter",
249
+ "type": "option",
250
+ "char": "r",
251
+ "description": "A list of custom reporters for the test output.",
252
+ "multiple": false,
253
+ "options": [
254
+ "list",
255
+ "dot",
256
+ "ci",
257
+ "github"
258
+ ]
259
+ },
260
+ "config": {
261
+ "name": "config",
262
+ "type": "option",
263
+ "char": "c",
264
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
265
+ "multiple": false
266
+ },
267
+ "record": {
268
+ "name": "record",
269
+ "type": "boolean",
270
+ "description": "Record test results in Checkly as a test session with full logs, traces and videos.",
271
+ "allowNo": false
272
+ }
273
+ },
274
+ "args": {
275
+ "fileArgs": {
276
+ "name": "fileArgs",
277
+ "description": "Only run checks where the file name matches a regular expression",
278
+ "required": false,
279
+ "default": ".*"
280
+ }
281
+ }
282
+ },
283
+ "whoami": {
284
+ "id": "whoami",
285
+ "description": "See your currently logged in account and user.",
286
+ "strict": true,
287
+ "pluginName": "checkly",
288
+ "pluginAlias": "checkly",
289
+ "pluginType": "core",
290
+ "hidden": false,
291
+ "aliases": [],
292
+ "flags": {},
293
+ "args": {}
294
+ },
295
+ "env:add": {
296
+ "id": "env:add",
297
+ "description": "Add environment variable via \"checkly env add <key> <value>\".",
298
+ "strict": true,
299
+ "pluginName": "checkly",
300
+ "pluginAlias": "checkly",
301
+ "pluginType": "core",
302
+ "hidden": false,
303
+ "aliases": [],
304
+ "flags": {
305
+ "locked": {
306
+ "name": "locked",
307
+ "type": "boolean",
308
+ "char": "l",
309
+ "description": "Indicate that the environment variable will be locked.",
310
+ "allowNo": false
311
+ }
312
+ },
313
+ "args": {
314
+ "key": {
315
+ "name": "key",
316
+ "description": "Environment variable key.",
317
+ "required": true
318
+ },
319
+ "value": {
320
+ "name": "value",
321
+ "description": "Environment variable value.",
322
+ "required": false
323
+ }
324
+ }
325
+ },
326
+ "env:ls": {
327
+ "id": "env:ls",
328
+ "description": "List all Checkly environment variables via \"checkly env ls\".",
329
+ "strict": true,
330
+ "pluginName": "checkly",
331
+ "pluginAlias": "checkly",
332
+ "pluginType": "core",
333
+ "hidden": false,
334
+ "aliases": [],
335
+ "flags": {},
336
+ "args": {}
337
+ },
338
+ "env:pull": {
339
+ "id": "env:pull",
340
+ "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
341
+ "strict": true,
342
+ "pluginName": "checkly",
343
+ "pluginAlias": "checkly",
344
+ "pluginType": "core",
345
+ "hidden": false,
346
+ "aliases": [],
347
+ "flags": {
348
+ "force": {
349
+ "name": "force",
350
+ "type": "boolean",
351
+ "char": "f",
352
+ "description": "Force to overwrite existing file.",
353
+ "allowNo": false
354
+ }
355
+ },
356
+ "args": {
357
+ "filename": {
358
+ "name": "filename",
359
+ "description": "Filename of the generated file.",
360
+ "required": false,
361
+ "default": ".env"
362
+ }
363
+ }
364
+ },
365
+ "env:rm": {
366
+ "id": "env:rm",
367
+ "description": "Remove environment variable via \"checkly env rm <key>\".",
368
+ "strict": true,
369
+ "pluginName": "checkly",
370
+ "pluginAlias": "checkly",
371
+ "pluginType": "core",
372
+ "hidden": false,
373
+ "aliases": [],
374
+ "flags": {
375
+ "force": {
376
+ "name": "force",
377
+ "type": "boolean",
378
+ "char": "f",
379
+ "description": "Force to skip the confirmation prompt.",
380
+ "allowNo": false
381
+ }
382
+ },
383
+ "args": {
384
+ "key": {
385
+ "name": "key",
386
+ "description": "Environment variable key to remove.",
387
+ "required": true
388
+ }
389
+ }
390
+ },
391
+ "env:update": {
392
+ "id": "env:update",
393
+ "description": "Update environment variable via \"checkly env update <key> <value>\".",
394
+ "strict": true,
395
+ "pluginName": "checkly",
396
+ "pluginAlias": "checkly",
397
+ "pluginType": "core",
398
+ "hidden": false,
399
+ "aliases": [],
400
+ "flags": {
401
+ "locked": {
402
+ "name": "locked",
403
+ "type": "boolean",
404
+ "char": "l",
405
+ "description": "Indicate if environment variable is locked.",
406
+ "allowNo": false
407
+ }
408
+ },
409
+ "args": {
410
+ "key": {
411
+ "name": "key",
412
+ "description": "Environment variable key.",
413
+ "required": true
414
+ },
415
+ "value": {
416
+ "name": "value",
417
+ "description": "Environment variable value.",
418
+ "required": false
419
+ }
420
+ }
421
+ }
422
+ }
423
+ }
package/package.json CHANGED
@@ -1,27 +1,172 @@
1
1
  {
2
2
  "name": "checkly",
3
- "version": "3.1.1",
4
- "description": "Truthy, falsey & equality checks simplified.",
5
- "main": "index.js",
3
+ "version": "4.0.0",
4
+ "description": "Checkly CLI",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "engines": {
8
+ "node": ">=16.0.0"
9
+ },
6
10
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "clean": "rimraf ./dist",
12
+ "test": "jest --selectProjects unit",
13
+ "version": "node -e \"console.log(require('./package.json').version)\"",
14
+ "test:e2e": "npm run prepare && cross-env NODE_CONFIG_DIR=./e2e/config jest --selectProjects E2E",
15
+ "watch": "tsc --watch",
16
+ "prepare": "npm run clean && tsc --build",
17
+ "prepack": "npx oclif manifest",
18
+ "lint": "eslint src"
8
19
  },
9
20
  "repository": {
10
21
  "type": "git",
11
- "url": "git+https://github.com/xemasiv/checkly.git"
12
- },
13
- "keywords": [
14
- "check",
15
- "truthy",
16
- "falsey",
17
- "falsy",
18
- "equality",
19
- "checks"
20
- ],
21
- "author": "xemasiv <xemasiv@gmail.com>",
22
- "license": "CC0-1.0",
22
+ "url": "git+https://github.com/checkly/checkly-cli.git"
23
+ },
24
+ "author": "Checkly Engineering <support@checklyhq.com>",
25
+ "license": "Apache-2.0",
23
26
  "bugs": {
24
- "url": "https://github.com/xemasiv/checkly/issues"
27
+ "url": "https://github.com/checkly/checkly-cli/issues"
28
+ },
29
+ "files": [
30
+ "/bin",
31
+ "/dist",
32
+ "/constructs.js",
33
+ "/constructs.d.ts",
34
+ "/oclif.manifest.json"
35
+ ],
36
+ "oclif": {
37
+ "bin": "checkly",
38
+ "commands": "./dist/commands",
39
+ "topicSeparator": " ",
40
+ "additionalHelpFlags": [
41
+ "-h"
42
+ ],
43
+ "additionalVersionFlags": [
44
+ "-v",
45
+ "version"
46
+ ],
47
+ "plugins": [
48
+ "@oclif/plugin-help",
49
+ "@oclif/plugin-warn-if-update-available",
50
+ "@oclif/plugin-not-found",
51
+ "@oclif/plugin-autocomplete"
52
+ ],
53
+ "warn-if-update-available": {
54
+ "timeoutInDays": 30,
55
+ "message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
56
+ },
57
+ "topics": {
58
+ "env": { "description": "Manage Checkly environment variables" }
59
+ },
60
+ "helpClass": "./dist/help/help-extension"
61
+ },
62
+ "bin": {
63
+ "checkly": "./bin/run"
64
+ },
65
+ "homepage": "https://github.com/checkly/checkly-cli#readme",
66
+ "dependencies": {
67
+ "@oclif/core": "2.0.7",
68
+ "@oclif/plugin-autocomplete": "2.1.8",
69
+ "@oclif/plugin-help": "5.1.20",
70
+ "@oclif/plugin-not-found": "2.3.23",
71
+ "@oclif/plugin-plugins": "2.3.0",
72
+ "@oclif/plugin-warn-if-update-available": "2.0.24",
73
+ "@typescript-eslint/typescript-estree": "5.46.1",
74
+ "acorn": "8.8.1",
75
+ "acorn-walk": "8.2.0",
76
+ "async-mqtt": "2.6.3",
77
+ "axios": "1.2.1",
78
+ "chalk": "4.1.2",
79
+ "ci-info": "3.7.1",
80
+ "conf": "10.2.0",
81
+ "dotenv": "16.0.3",
82
+ "git-repo-info": "2.1.1",
83
+ "glob": "8.0.3",
84
+ "indent-string": "4.0.0",
85
+ "inquirer": "8.2.3",
86
+ "jwt-decode": "3.1.2",
87
+ "log-symbols": "4.1.0",
88
+ "luxon": "3.2.1",
89
+ "open": "8.4.0",
90
+ "p-queue": "6.6.2",
91
+ "uuid": "9.0.0"
92
+ },
93
+ "devDependencies": {
94
+ "@checkly/eslint-config": "0.14.1",
95
+ "@types/config": "3.3.0",
96
+ "@types/glob": "8.0.0",
97
+ "@types/inquirer": "8.2.3",
98
+ "@types/jest": "29.2.4",
99
+ "@types/luxon": "3.2.0",
100
+ "@types/node": "18.11.18",
101
+ "@types/uuid": "9.0.1",
102
+ "@types/ws": "8.5.3",
103
+ "@typescript-eslint/eslint-plugin": "5.46.1",
104
+ "@typescript-eslint/parser": "5.46.1",
105
+ "config": "3.3.8",
106
+ "cross-env": "7.0.3",
107
+ "eslint": "8.30.0",
108
+ "jest": "29.3.1",
109
+ "oclif": "3.7.3",
110
+ "ts-jest": "29.0.3",
111
+ "ts-node": "10.9.1",
112
+ "typescript": "4.9.4"
113
+ },
114
+ "eslintConfig": {
115
+ "rules": {
116
+ "@typescript-eslint/type-annotation-spacing": 2,
117
+ "@typescript-eslint/no-explicit-any": 0,
118
+ "@typescript-eslint/ban-ts-comment": 0,
119
+ "no-console": 2,
120
+ "no-restricted-syntax": [
121
+ "error",
122
+ {
123
+ "selector": "TSEnumDeclaration",
124
+ "message": "Don't declare enums, use union types instead"
125
+ }
126
+ ]
127
+ },
128
+ "extends": [
129
+ "@checkly/eslint-config",
130
+ "plugin:@typescript-eslint/recommended"
131
+ ],
132
+ "parser": "@typescript-eslint/parser",
133
+ "plugins": [
134
+ "@typescript-eslint"
135
+ ],
136
+ "overrides": [
137
+ {
138
+ "files": [
139
+ "src/commands/*",
140
+ "src/reporters/*"
141
+ ],
142
+ "rules": {
143
+ "no-console": 0
144
+ }
145
+ }
146
+ ]
25
147
  },
26
- "homepage": "https://github.com/xemasiv/checkly#readme"
148
+ "jest": {
149
+ "projects": [
150
+ {
151
+ "displayName": "unit",
152
+ "testMatch": [
153
+ "<rootDir>/src/**/*.spec.ts"
154
+ ],
155
+ "preset": "ts-jest",
156
+ "testEnvironment": "node"
157
+ },
158
+ {
159
+ "displayName": "E2E",
160
+ "testMatch": [
161
+ "<rootDir>/e2e/__tests__/**/*.spec.ts"
162
+ ],
163
+ "preset": "ts-jest",
164
+ "testEnvironment": "node"
165
+ }
166
+ ],
167
+ "reporters": [
168
+ "default",
169
+ "github-actions"
170
+ ]
171
+ }
27
172
  }