checkly 0.0.0-pr.686.4c0f5e3

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 (228) hide show
  1. package/README.md +43 -0
  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 +237 -0
  51. package/dist/commands/test.js.map +1 -0
  52. package/dist/commands/trigger.d.ts +32 -0
  53. package/dist/commands/trigger.js +173 -0
  54. package/dist/commands/trigger.js.map +1 -0
  55. package/dist/commands/whoami.d.ts +6 -0
  56. package/dist/commands/whoami.js +16 -0
  57. package/dist/commands/whoami.js.map +1 -0
  58. package/dist/config.d.ts +31 -0
  59. package/dist/config.js +8 -0
  60. package/dist/config.js.map +1 -0
  61. package/dist/constructs/alert-channel-subscription.d.ts +44 -0
  62. package/dist/constructs/alert-channel-subscription.js +39 -0
  63. package/dist/constructs/alert-channel-subscription.js.map +1 -0
  64. package/dist/constructs/alert-channel.d.ts +53 -0
  65. package/dist/constructs/alert-channel.js +55 -0
  66. package/dist/constructs/alert-channel.js.map +1 -0
  67. package/dist/constructs/api-check.d.ts +179 -0
  68. package/dist/constructs/api-check.js +248 -0
  69. package/dist/constructs/api-check.js.map +1 -0
  70. package/dist/constructs/browser-check.d.ts +59 -0
  71. package/dist/constructs/browser-check.js +102 -0
  72. package/dist/constructs/browser-check.js.map +1 -0
  73. package/dist/constructs/check-group.d.ts +116 -0
  74. package/dist/constructs/check-group.js +113 -0
  75. package/dist/constructs/check-group.js.map +1 -0
  76. package/dist/constructs/check.d.ts +111 -0
  77. package/dist/constructs/check.js +88 -0
  78. package/dist/constructs/check.js.map +1 -0
  79. package/dist/constructs/construct.d.ts +17 -0
  80. package/dist/constructs/construct.js +22 -0
  81. package/dist/constructs/construct.js.map +1 -0
  82. package/dist/constructs/email-alert-channel.d.ts +26 -0
  83. package/dist/constructs/email-alert-channel.js +37 -0
  84. package/dist/constructs/email-alert-channel.js.map +1 -0
  85. package/dist/constructs/environment-variable.d.ts +2 -0
  86. package/dist/constructs/environment-variable.js +3 -0
  87. package/dist/constructs/environment-variable.js.map +1 -0
  88. package/dist/constructs/frequency.d.ts +20 -0
  89. package/dist/constructs/frequency.js +26 -0
  90. package/dist/constructs/frequency.js.map +1 -0
  91. package/dist/constructs/http-header.d.ts +2 -0
  92. package/dist/constructs/http-header.js +3 -0
  93. package/dist/constructs/http-header.js.map +1 -0
  94. package/dist/constructs/index.d.ts +15 -0
  95. package/dist/constructs/index.js +32 -0
  96. package/dist/constructs/index.js.map +1 -0
  97. package/dist/constructs/key-value-pair.d.ts +5 -0
  98. package/dist/constructs/key-value-pair.js +3 -0
  99. package/dist/constructs/key-value-pair.js.map +1 -0
  100. package/dist/constructs/opsgenie-alert-channel.d.ts +45 -0
  101. package/dist/constructs/opsgenie-alert-channel.js +44 -0
  102. package/dist/constructs/opsgenie-alert-channel.js.map +1 -0
  103. package/dist/constructs/pagerduty-alert-channel.d.ts +39 -0
  104. package/dist/constructs/pagerduty-alert-channel.js +42 -0
  105. package/dist/constructs/pagerduty-alert-channel.js.map +1 -0
  106. package/dist/constructs/project.d.ts +57 -0
  107. package/dist/constructs/project.js +100 -0
  108. package/dist/constructs/project.js.map +1 -0
  109. package/dist/constructs/query-param.d.ts +2 -0
  110. package/dist/constructs/query-param.js +3 -0
  111. package/dist/constructs/query-param.js.map +1 -0
  112. package/dist/constructs/ref.d.ts +5 -0
  113. package/dist/constructs/ref.js +13 -0
  114. package/dist/constructs/ref.js.map +1 -0
  115. package/dist/constructs/slack-alert-channel.d.ts +26 -0
  116. package/dist/constructs/slack-alert-channel.js +40 -0
  117. package/dist/constructs/slack-alert-channel.js.map +1 -0
  118. package/dist/constructs/sms-alert-channel.d.ts +27 -0
  119. package/dist/constructs/sms-alert-channel.js +38 -0
  120. package/dist/constructs/sms-alert-channel.js.map +1 -0
  121. package/dist/constructs/validator-error.d.ts +2 -0
  122. package/dist/constructs/validator-error.js +7 -0
  123. package/dist/constructs/validator-error.js.map +1 -0
  124. package/dist/constructs/webhook-alert-channel.d.ts +59 -0
  125. package/dist/constructs/webhook-alert-channel.js +50 -0
  126. package/dist/constructs/webhook-alert-channel.js.map +1 -0
  127. package/dist/help/examples.d.ts +6 -0
  128. package/dist/help/examples.js +22 -0
  129. package/dist/help/examples.js.map +1 -0
  130. package/dist/help/help-extension.d.ts +4 -0
  131. package/dist/help/help-extension.js +41 -0
  132. package/dist/help/help-extension.js.map +1 -0
  133. package/dist/index.d.ts +3 -0
  134. package/dist/index.js +7 -0
  135. package/dist/index.js.map +1 -0
  136. package/dist/messages/common-messages.d.ts +5 -0
  137. package/dist/messages/common-messages.js +9 -0
  138. package/dist/messages/common-messages.js.map +1 -0
  139. package/dist/reporters/abstract-list.d.ts +35 -0
  140. package/dist/reporters/abstract-list.js +135 -0
  141. package/dist/reporters/abstract-list.js.map +1 -0
  142. package/dist/reporters/ci.d.ts +12 -0
  143. package/dist/reporters/ci.js +29 -0
  144. package/dist/reporters/ci.js.map +1 -0
  145. package/dist/reporters/dot.d.ts +12 -0
  146. package/dist/reporters/dot.js +28 -0
  147. package/dist/reporters/dot.js.map +1 -0
  148. package/dist/reporters/github.d.ts +34 -0
  149. package/dist/reporters/github.js +95 -0
  150. package/dist/reporters/github.js.map +1 -0
  151. package/dist/reporters/list.d.ts +14 -0
  152. package/dist/reporters/list.js +56 -0
  153. package/dist/reporters/list.js.map +1 -0
  154. package/dist/reporters/reporter.d.ts +15 -0
  155. package/dist/reporters/reporter.js +23 -0
  156. package/dist/reporters/reporter.js.map +1 -0
  157. package/dist/reporters/util.d.ts +15 -0
  158. package/dist/reporters/util.js +283 -0
  159. package/dist/reporters/util.js.map +1 -0
  160. package/dist/rest/accounts.d.ts +12 -0
  161. package/dist/rest/accounts.js +15 -0
  162. package/dist/rest/accounts.js.map +1 -0
  163. package/dist/rest/api.d.ts +27 -0
  164. package/dist/rest/api.js +90 -0
  165. package/dist/rest/api.js.map +1 -0
  166. package/dist/rest/assets.d.ts +13 -0
  167. package/dist/rest/assets.js +30 -0
  168. package/dist/rest/assets.js.map +1 -0
  169. package/dist/rest/environment-variables.d.ts +16 -0
  170. package/dist/rest/environment-variables.js +25 -0
  171. package/dist/rest/environment-variables.js.map +1 -0
  172. package/dist/rest/locations.d.ts +11 -0
  173. package/dist/rest/locations.js +12 -0
  174. package/dist/rest/locations.js.map +1 -0
  175. package/dist/rest/private-locations.d.ts +11 -0
  176. package/dist/rest/private-locations.js +12 -0
  177. package/dist/rest/private-locations.js.map +1 -0
  178. package/dist/rest/projects.d.ts +43 -0
  179. package/dist/rest/projects.js +24 -0
  180. package/dist/rest/projects.js.map +1 -0
  181. package/dist/rest/runtimes.d.ts +15 -0
  182. package/dist/rest/runtimes.js +15 -0
  183. package/dist/rest/runtimes.js.map +1 -0
  184. package/dist/rest/test-sessions.d.ts +57 -0
  185. package/dist/rest/test-sessions.js +21 -0
  186. package/dist/rest/test-sessions.js.map +1 -0
  187. package/dist/rest/users.d.ts +12 -0
  188. package/dist/rest/users.js +12 -0
  189. package/dist/rest/users.js.map +1 -0
  190. package/dist/services/abstract-check-runner.d.ts +55 -0
  191. package/dist/services/abstract-check-runner.js +154 -0
  192. package/dist/services/abstract-check-runner.js.map +1 -0
  193. package/dist/services/check-parser/collector.d.ts +33 -0
  194. package/dist/services/check-parser/collector.js +48 -0
  195. package/dist/services/check-parser/collector.js.map +1 -0
  196. package/dist/services/check-parser/errors.d.ts +8 -0
  197. package/dist/services/check-parser/errors.js +45 -0
  198. package/dist/services/check-parser/errors.js.map +1 -0
  199. package/dist/services/check-parser/parser.d.ts +39 -0
  200. package/dist/services/check-parser/parser.js +296 -0
  201. package/dist/services/check-parser/parser.js.map +1 -0
  202. package/dist/services/checkly-config-loader.d.ts +54 -0
  203. package/dist/services/checkly-config-loader.js +55 -0
  204. package/dist/services/checkly-config-loader.js.map +1 -0
  205. package/dist/services/config.d.ts +24 -0
  206. package/dist/services/config.js +75 -0
  207. package/dist/services/config.js.map +1 -0
  208. package/dist/services/project-parser.d.ts +19 -0
  209. package/dist/services/project-parser.js +87 -0
  210. package/dist/services/project-parser.js.map +1 -0
  211. package/dist/services/socket-client.d.ts +4 -0
  212. package/dist/services/socket-client.js +20 -0
  213. package/dist/services/socket-client.js.map +1 -0
  214. package/dist/services/test-filters.d.ts +2 -0
  215. package/dist/services/test-filters.js +16 -0
  216. package/dist/services/test-filters.js.map +1 -0
  217. package/dist/services/test-runner.d.ts +21 -0
  218. package/dist/services/test-runner.js +50 -0
  219. package/dist/services/test-runner.js.map +1 -0
  220. package/dist/services/trigger-runner.d.ts +26 -0
  221. package/dist/services/trigger-runner.js +47 -0
  222. package/dist/services/trigger-runner.js.map +1 -0
  223. package/dist/services/util.d.ts +30 -0
  224. package/dist/services/util.js +157 -0
  225. package/dist/services/util.js.map +1 -0
  226. package/dist/tsconfig.tsbuildinfo +1 -0
  227. package/oclif.manifest.json +527 -0
  228. package/package.json +174 -0
@@ -0,0 +1,527 @@
1
+ {
2
+ "version": "0.0.0-pr.686.4c0f5e3",
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
+ "trigger": {
284
+ "id": "trigger",
285
+ "description": "Trigger checks on Checkly",
286
+ "strict": true,
287
+ "pluginName": "checkly",
288
+ "pluginAlias": "checkly",
289
+ "pluginType": "core",
290
+ "hidden": false,
291
+ "aliases": [],
292
+ "flags": {
293
+ "location": {
294
+ "name": "location",
295
+ "type": "option",
296
+ "char": "l",
297
+ "description": "The location to run the checks at.",
298
+ "multiple": false
299
+ },
300
+ "private-location": {
301
+ "name": "private-location",
302
+ "type": "option",
303
+ "description": "The private location to run checks at.",
304
+ "multiple": false,
305
+ "exclusive": [
306
+ "location"
307
+ ]
308
+ },
309
+ "tags": {
310
+ "name": "tags",
311
+ "type": "option",
312
+ "char": "t",
313
+ "description": "Filter the checks to be run using a comma separated list of tags. Checks will only be run if they contain all of the specified tags. Multiple --tags flags can be passed, in which case checks will be run if they match any of the --tags filters. F.ex. `--tags production,webapp --tags production,backend` will run checks with tags (production AND webapp) OR (production AND backend).",
314
+ "required": false,
315
+ "multiple": true
316
+ },
317
+ "config": {
318
+ "name": "config",
319
+ "type": "option",
320
+ "char": "c",
321
+ "description": "The Checkly CLI config filename.",
322
+ "multiple": false
323
+ },
324
+ "timeout": {
325
+ "name": "timeout",
326
+ "type": "option",
327
+ "description": "A timeout (in seconds) to wait for checks to complete.",
328
+ "multiple": false,
329
+ "default": 240
330
+ },
331
+ "verbose": {
332
+ "name": "verbose",
333
+ "type": "boolean",
334
+ "char": "v",
335
+ "description": "Always show the full logs of the checks.",
336
+ "allowNo": true
337
+ },
338
+ "reporter": {
339
+ "name": "reporter",
340
+ "type": "option",
341
+ "char": "r",
342
+ "description": "A list of custom reporters for the test output.",
343
+ "multiple": false,
344
+ "options": [
345
+ "list",
346
+ "dot",
347
+ "ci",
348
+ "github"
349
+ ]
350
+ },
351
+ "env": {
352
+ "name": "env",
353
+ "type": "option",
354
+ "char": "e",
355
+ "description": "Env vars to be passed to the check run.",
356
+ "multiple": true,
357
+ "exclusive": [
358
+ "env-file"
359
+ ],
360
+ "default": []
361
+ },
362
+ "env-file": {
363
+ "name": "env-file",
364
+ "type": "option",
365
+ "description": "dotenv file path to be passed. For example --env-file=\"./.env\"",
366
+ "multiple": false,
367
+ "exclusive": [
368
+ "env"
369
+ ]
370
+ },
371
+ "record": {
372
+ "name": "record",
373
+ "type": "boolean",
374
+ "description": "Record check results in Checkly as a test session with full logs, traces and videos.",
375
+ "allowNo": false
376
+ },
377
+ "test-session-name": {
378
+ "name": "test-session-name",
379
+ "type": "option",
380
+ "char": "n",
381
+ "description": "A name to use when storing results in Checkly with --record.",
382
+ "multiple": false
383
+ }
384
+ },
385
+ "args": {}
386
+ },
387
+ "whoami": {
388
+ "id": "whoami",
389
+ "description": "See your currently logged in account and user.",
390
+ "strict": true,
391
+ "pluginName": "checkly",
392
+ "pluginAlias": "checkly",
393
+ "pluginType": "core",
394
+ "hidden": false,
395
+ "aliases": [],
396
+ "flags": {},
397
+ "args": {}
398
+ },
399
+ "env:add": {
400
+ "id": "env:add",
401
+ "description": "Add environment variable via \"checkly env add <key> <value>\".",
402
+ "strict": true,
403
+ "pluginName": "checkly",
404
+ "pluginAlias": "checkly",
405
+ "pluginType": "core",
406
+ "hidden": false,
407
+ "aliases": [],
408
+ "flags": {
409
+ "locked": {
410
+ "name": "locked",
411
+ "type": "boolean",
412
+ "char": "l",
413
+ "description": "Indicate that the environment variable will be locked.",
414
+ "allowNo": false
415
+ }
416
+ },
417
+ "args": {
418
+ "key": {
419
+ "name": "key",
420
+ "description": "Environment variable key.",
421
+ "required": true
422
+ },
423
+ "value": {
424
+ "name": "value",
425
+ "description": "Environment variable value.",
426
+ "required": false
427
+ }
428
+ }
429
+ },
430
+ "env:ls": {
431
+ "id": "env:ls",
432
+ "description": "List all Checkly environment variables via \"checkly env ls\".",
433
+ "strict": true,
434
+ "pluginName": "checkly",
435
+ "pluginAlias": "checkly",
436
+ "pluginType": "core",
437
+ "hidden": false,
438
+ "aliases": [],
439
+ "flags": {},
440
+ "args": {}
441
+ },
442
+ "env:pull": {
443
+ "id": "env:pull",
444
+ "description": "Pull Checkly environment variables via \"checkly env pull <filename>\".",
445
+ "strict": true,
446
+ "pluginName": "checkly",
447
+ "pluginAlias": "checkly",
448
+ "pluginType": "core",
449
+ "hidden": false,
450
+ "aliases": [],
451
+ "flags": {
452
+ "force": {
453
+ "name": "force",
454
+ "type": "boolean",
455
+ "char": "f",
456
+ "description": "Force to overwrite existing file.",
457
+ "allowNo": false
458
+ }
459
+ },
460
+ "args": {
461
+ "filename": {
462
+ "name": "filename",
463
+ "description": "Filename of the generated file.",
464
+ "required": false,
465
+ "default": ".env"
466
+ }
467
+ }
468
+ },
469
+ "env:rm": {
470
+ "id": "env:rm",
471
+ "description": "Remove environment variable via \"checkly env rm <key>\".",
472
+ "strict": true,
473
+ "pluginName": "checkly",
474
+ "pluginAlias": "checkly",
475
+ "pluginType": "core",
476
+ "hidden": false,
477
+ "aliases": [],
478
+ "flags": {
479
+ "force": {
480
+ "name": "force",
481
+ "type": "boolean",
482
+ "char": "f",
483
+ "description": "Force to skip the confirmation prompt.",
484
+ "allowNo": false
485
+ }
486
+ },
487
+ "args": {
488
+ "key": {
489
+ "name": "key",
490
+ "description": "Environment variable key to remove.",
491
+ "required": true
492
+ }
493
+ }
494
+ },
495
+ "env:update": {
496
+ "id": "env:update",
497
+ "description": "Update environment variable via \"checkly env update <key> <value>\".",
498
+ "strict": true,
499
+ "pluginName": "checkly",
500
+ "pluginAlias": "checkly",
501
+ "pluginType": "core",
502
+ "hidden": false,
503
+ "aliases": [],
504
+ "flags": {
505
+ "locked": {
506
+ "name": "locked",
507
+ "type": "boolean",
508
+ "char": "l",
509
+ "description": "Indicate if environment variable is locked.",
510
+ "allowNo": false
511
+ }
512
+ },
513
+ "args": {
514
+ "key": {
515
+ "name": "key",
516
+ "description": "Environment variable key.",
517
+ "required": true
518
+ },
519
+ "value": {
520
+ "name": "value",
521
+ "description": "Environment variable value.",
522
+ "required": false
523
+ }
524
+ }
525
+ }
526
+ }
527
+ }
package/package.json ADDED
@@ -0,0 +1,174 @@
1
+ {
2
+ "name": "checkly",
3
+ "version": "0.0.0-pr.686.4c0f5e3",
4
+ "description": "Checkly CLI",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "engines": {
8
+ "node": ">=16.0.0"
9
+ },
10
+ "scripts": {
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"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/checkly/checkly-cli.git"
23
+ },
24
+ "author": "Checkly Engineering <support@checklyhq.com>",
25
+ "license": "Apache-2.0",
26
+ "bugs": {
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": {
59
+ "description": "Manage Checkly environment variables"
60
+ }
61
+ },
62
+ "helpClass": "./dist/help/help-extension"
63
+ },
64
+ "bin": {
65
+ "checkly": "./bin/run"
66
+ },
67
+ "homepage": "https://github.com/checkly/checkly-cli#readme",
68
+ "dependencies": {
69
+ "@oclif/core": "2.0.7",
70
+ "@oclif/plugin-autocomplete": "2.1.8",
71
+ "@oclif/plugin-help": "5.1.20",
72
+ "@oclif/plugin-not-found": "2.3.23",
73
+ "@oclif/plugin-plugins": "2.3.0",
74
+ "@oclif/plugin-warn-if-update-available": "2.0.24",
75
+ "@typescript-eslint/typescript-estree": "5.46.1",
76
+ "acorn": "8.8.1",
77
+ "acorn-walk": "8.2.0",
78
+ "async-mqtt": "2.6.3",
79
+ "axios": "1.2.1",
80
+ "chalk": "4.1.2",
81
+ "ci-info": "3.7.1",
82
+ "conf": "10.2.0",
83
+ "dotenv": "16.0.3",
84
+ "git-repo-info": "2.1.1",
85
+ "glob": "8.0.3",
86
+ "indent-string": "4.0.0",
87
+ "inquirer": "8.2.3",
88
+ "jwt-decode": "3.1.2",
89
+ "log-symbols": "4.1.0",
90
+ "luxon": "3.2.1",
91
+ "open": "8.4.0",
92
+ "p-queue": "6.6.2",
93
+ "uuid": "9.0.0"
94
+ },
95
+ "devDependencies": {
96
+ "@checkly/eslint-config": "0.14.1",
97
+ "@types/config": "3.3.0",
98
+ "@types/glob": "8.0.0",
99
+ "@types/inquirer": "8.2.3",
100
+ "@types/jest": "29.2.4",
101
+ "@types/luxon": "3.2.0",
102
+ "@types/node": "18.11.18",
103
+ "@types/uuid": "9.0.1",
104
+ "@types/ws": "8.5.3",
105
+ "@typescript-eslint/eslint-plugin": "5.46.1",
106
+ "@typescript-eslint/parser": "5.46.1",
107
+ "config": "3.3.8",
108
+ "cross-env": "7.0.3",
109
+ "eslint": "8.30.0",
110
+ "jest": "29.3.1",
111
+ "oclif": "3.7.3",
112
+ "ts-jest": "29.0.3",
113
+ "ts-node": "10.9.1",
114
+ "typescript": "4.9.4"
115
+ },
116
+ "eslintConfig": {
117
+ "rules": {
118
+ "@typescript-eslint/type-annotation-spacing": 2,
119
+ "@typescript-eslint/no-explicit-any": 0,
120
+ "@typescript-eslint/ban-ts-comment": 0,
121
+ "no-console": 2,
122
+ "no-restricted-syntax": [
123
+ "error",
124
+ {
125
+ "selector": "TSEnumDeclaration",
126
+ "message": "Don't declare enums, use union types instead"
127
+ }
128
+ ]
129
+ },
130
+ "extends": [
131
+ "@checkly/eslint-config",
132
+ "plugin:@typescript-eslint/recommended"
133
+ ],
134
+ "parser": "@typescript-eslint/parser",
135
+ "plugins": [
136
+ "@typescript-eslint"
137
+ ],
138
+ "overrides": [
139
+ {
140
+ "files": [
141
+ "src/commands/*",
142
+ "src/reporters/*"
143
+ ],
144
+ "rules": {
145
+ "no-console": 0
146
+ }
147
+ }
148
+ ]
149
+ },
150
+ "jest": {
151
+ "projects": [
152
+ {
153
+ "displayName": "unit",
154
+ "testMatch": [
155
+ "<rootDir>/src/**/*.spec.ts"
156
+ ],
157
+ "preset": "ts-jest",
158
+ "testEnvironment": "node"
159
+ },
160
+ {
161
+ "displayName": "E2E",
162
+ "testMatch": [
163
+ "<rootDir>/e2e/__tests__/**/*.spec.ts"
164
+ ],
165
+ "preset": "ts-jest",
166
+ "testEnvironment": "node"
167
+ }
168
+ ],
169
+ "reporters": [
170
+ "default",
171
+ "github-actions"
172
+ ]
173
+ }
174
+ }