checkly 9.5.0 → 10.0.0-rc.1

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 (372) hide show
  1. package/dist/ai-context/context.js +1 -0
  2. package/dist/ai-context/context.js.map +1 -1
  3. package/dist/ai-context/onboarding-boilerplate/checkly-config-template.ts +2 -0
  4. package/dist/ai-context/public-skills/checkly/SKILL.md +18 -5
  5. package/dist/ai-context/skills-command/references/communicate.md +6 -3
  6. package/dist/ai-context/skills-command/references/configure-api-checks.md +1 -9
  7. package/dist/ai-context/skills-command/references/configure-browser-checks.md +1 -8
  8. package/dist/ai-context/skills-command/references/configure-check-groups.md +1 -0
  9. package/dist/ai-context/skills-command/references/configure-dns-monitors.md +1 -9
  10. package/dist/ai-context/skills-command/references/configure-grpc-monitors.md +24 -0
  11. package/dist/ai-context/skills-command/references/configure-heartbeat-monitors.md +1 -9
  12. package/dist/ai-context/skills-command/references/configure-icmp-monitors.md +1 -9
  13. package/dist/ai-context/skills-command/references/configure-multistep-checks.md +1 -9
  14. package/dist/ai-context/skills-command/references/configure-playwright-checks.md +1 -1
  15. package/dist/ai-context/skills-command/references/configure-supporting-constructs.md +6 -2
  16. package/dist/ai-context/skills-command/references/configure-tcp-monitors.md +1 -10
  17. package/dist/ai-context/skills-command/references/configure-url-monitors.md +1 -10
  18. package/dist/ai-context/skills-command/references/configure.md +16 -5
  19. package/dist/ai-context/skills-command/references/initialize.md +11 -3
  20. package/dist/ai-context/skills-command/references/investigate-checks.md +1 -1
  21. package/dist/auth/api-key.d.ts +24 -0
  22. package/dist/auth/api-key.js +104 -0
  23. package/dist/auth/api-key.js.map +1 -0
  24. package/dist/auth/device-flow.d.ts +57 -0
  25. package/dist/auth/device-flow.js +221 -0
  26. package/dist/auth/device-flow.js.map +1 -0
  27. package/dist/auth/index.d.ts +6 -6
  28. package/dist/auth/index.js +64 -64
  29. package/dist/auth/index.js.map +1 -1
  30. package/dist/commands/api.js +43 -10
  31. package/dist/commands/api.js.map +1 -1
  32. package/dist/commands/authCommand.d.ts +2 -0
  33. package/dist/commands/authCommand.js +77 -7
  34. package/dist/commands/authCommand.js.map +1 -1
  35. package/dist/commands/debug/parse-project.d.ts +1 -0
  36. package/dist/commands/debug/parse-project.js +5 -2
  37. package/dist/commands/debug/parse-project.js.map +1 -1
  38. package/dist/commands/deploy.d.ts +7 -1
  39. package/dist/commands/deploy.js +627 -271
  40. package/dist/commands/deploy.js.map +1 -1
  41. package/dist/commands/import/plan.js +18 -4
  42. package/dist/commands/import/plan.js.map +1 -1
  43. package/dist/commands/init.js +29 -13
  44. package/dist/commands/init.js.map +1 -1
  45. package/dist/commands/login.d.ts +18 -2
  46. package/dist/commands/login.js +681 -48
  47. package/dist/commands/login.js.map +1 -1
  48. package/dist/commands/logout.js +7 -1
  49. package/dist/commands/logout.js.map +1 -1
  50. package/dist/commands/pw-test.js +3 -2
  51. package/dist/commands/pw-test.js.map +1 -1
  52. package/dist/commands/switch.js +23 -10
  53. package/dist/commands/switch.js.map +1 -1
  54. package/dist/commands/test.js +16 -17
  55. package/dist/commands/test.js.map +1 -1
  56. package/dist/commands/trigger.js +4 -3
  57. package/dist/commands/trigger.js.map +1 -1
  58. package/dist/commands/validate.js +1 -0
  59. package/dist/commands/validate.js.map +1 -1
  60. package/dist/constants.d.ts +1 -2
  61. package/dist/constants.js +0 -1
  62. package/dist/constants.js.map +1 -1
  63. package/dist/constructs/alert-channel-codegen.d.ts +6 -1
  64. package/dist/constructs/alert-channel-codegen.js +12 -6
  65. package/dist/constructs/alert-channel-codegen.js.map +1 -1
  66. package/dist/constructs/alert-escalation-policy-codegen.d.ts +7 -0
  67. package/dist/constructs/alert-escalation-policy-codegen.js +25 -8
  68. package/dist/constructs/alert-escalation-policy-codegen.js.map +1 -1
  69. package/dist/constructs/api-assertion.d.ts +0 -2
  70. package/dist/constructs/api-assertion.js +0 -4
  71. package/dist/constructs/api-assertion.js.map +1 -1
  72. package/dist/constructs/api-check-codegen.js +1 -1
  73. package/dist/constructs/api-check-codegen.js.map +1 -1
  74. package/dist/constructs/api-check.d.ts +4 -22
  75. package/dist/constructs/api-check.js +15 -17
  76. package/dist/constructs/api-check.js.map +1 -1
  77. package/dist/constructs/api-request-codegen.js +10 -8
  78. package/dist/constructs/api-request-codegen.js.map +1 -1
  79. package/dist/constructs/browser-check-bundle.d.ts +19 -13
  80. package/dist/constructs/browser-check-bundle.js +5 -1
  81. package/dist/constructs/browser-check-bundle.js.map +1 -1
  82. package/dist/constructs/browser-check.d.ts +1 -4
  83. package/dist/constructs/browser-check.js +1 -1
  84. package/dist/constructs/browser-check.js.map +1 -1
  85. package/dist/constructs/check-codegen.d.ts +39 -14
  86. package/dist/constructs/check-codegen.js +101 -23
  87. package/dist/constructs/check-codegen.js.map +1 -1
  88. package/dist/constructs/check-group-codegen.js +23 -9
  89. package/dist/constructs/check-group-codegen.js.map +1 -1
  90. package/dist/constructs/check-group-v1.d.ts +19 -14
  91. package/dist/constructs/check-group-v1.js +39 -14
  92. package/dist/constructs/check-group-v1.js.map +1 -1
  93. package/dist/constructs/check-group-v2.d.ts +0 -20
  94. package/dist/constructs/check-group-v2.js +0 -4
  95. package/dist/constructs/check-group-v2.js.map +1 -1
  96. package/dist/constructs/check.d.ts +45 -32
  97. package/dist/constructs/check.js +78 -17
  98. package/dist/constructs/check.js.map +1 -1
  99. package/dist/constructs/construct-codegen.d.ts +1 -2
  100. package/dist/constructs/construct-diagnostics.d.ts +3 -0
  101. package/dist/constructs/construct-diagnostics.js +11 -0
  102. package/dist/constructs/construct-diagnostics.js.map +1 -1
  103. package/dist/constructs/construct.d.ts +25 -4
  104. package/dist/constructs/construct.js +41 -5
  105. package/dist/constructs/construct.js.map +1 -1
  106. package/dist/constructs/dns-request-codegen.js +1 -1
  107. package/dist/constructs/dns-request-codegen.js.map +1 -1
  108. package/dist/constructs/email-alert-channel-codegen.js +1 -1
  109. package/dist/constructs/email-alert-channel-codegen.js.map +1 -1
  110. package/dist/constructs/frequency-codegen.js +10 -2
  111. package/dist/constructs/frequency-codegen.js.map +1 -1
  112. package/dist/constructs/frequency.d.ts +8 -3
  113. package/dist/constructs/frequency.js +7 -2
  114. package/dist/constructs/frequency.js.map +1 -1
  115. package/dist/constructs/grpc-monitor.js +19 -0
  116. package/dist/constructs/grpc-monitor.js.map +1 -1
  117. package/dist/constructs/grpc-request-codegen.js +13 -4
  118. package/dist/constructs/grpc-request-codegen.js.map +1 -1
  119. package/dist/constructs/grpc-request.d.ts +23 -0
  120. package/dist/constructs/heartbeat-monitor.d.ts +2 -1
  121. package/dist/constructs/heartbeat-monitor.js +2 -2
  122. package/dist/constructs/heartbeat-monitor.js.map +1 -1
  123. package/dist/constructs/icmp-request-codegen.js +1 -1
  124. package/dist/constructs/icmp-request-codegen.js.map +1 -1
  125. package/dist/constructs/incidentio-alert-channel-codegen.d.ts +1 -1
  126. package/dist/constructs/incidentio-alert-channel-codegen.js +14 -8
  127. package/dist/constructs/incidentio-alert-channel-codegen.js.map +1 -1
  128. package/dist/constructs/index.d.ts +1 -1
  129. package/dist/constructs/index.js +1 -1
  130. package/dist/constructs/index.js.map +1 -1
  131. package/dist/constructs/internal/assertion-validation.js +1 -2
  132. package/dist/constructs/internal/assertion-validation.js.map +1 -1
  133. package/dist/constructs/internal/codegen/context.d.ts +73 -6
  134. package/dist/constructs/internal/codegen/context.js +78 -6
  135. package/dist/constructs/internal/codegen/context.js.map +1 -1
  136. package/dist/constructs/internal/codegen/index.d.ts +3 -1
  137. package/dist/constructs/internal/codegen/index.js +2 -1
  138. package/dist/constructs/internal/codegen/index.js.map +1 -1
  139. package/dist/constructs/internal/codegen/render.d.ts +68 -0
  140. package/dist/constructs/internal/codegen/render.js +75 -0
  141. package/dist/constructs/internal/codegen/render.js.map +1 -0
  142. package/dist/constructs/internal/common-diagnostics.d.ts +1 -2
  143. package/dist/constructs/internal/common-diagnostics.js +6 -14
  144. package/dist/constructs/internal/common-diagnostics.js.map +1 -1
  145. package/dist/constructs/internal/declaring-file.d.ts +39 -0
  146. package/dist/constructs/internal/declaring-file.js +139 -0
  147. package/dist/constructs/internal/declaring-file.js.map +1 -0
  148. package/dist/constructs/internal/retry-strategy-defaults.d.ts +13 -0
  149. package/dist/constructs/internal/retry-strategy-defaults.js +14 -0
  150. package/dist/constructs/internal/retry-strategy-defaults.js.map +1 -0
  151. package/dist/constructs/key-value-pair-codegen.d.ts +6 -1
  152. package/dist/constructs/key-value-pair-codegen.js +24 -3
  153. package/dist/constructs/key-value-pair-codegen.js.map +1 -1
  154. package/dist/constructs/maintenance-window-codegen.d.ts +7 -0
  155. package/dist/constructs/maintenance-window-codegen.js +36 -19
  156. package/dist/constructs/maintenance-window-codegen.js.map +1 -1
  157. package/dist/constructs/maintenance-window.d.ts +35 -3
  158. package/dist/constructs/maintenance-window.js +35 -1
  159. package/dist/constructs/maintenance-window.js.map +1 -1
  160. package/dist/constructs/monitor.d.ts +1 -1
  161. package/dist/constructs/msteams-alert-channel-codegen.d.ts +1 -1
  162. package/dist/constructs/msteams-alert-channel-codegen.js +8 -18
  163. package/dist/constructs/msteams-alert-channel-codegen.js.map +1 -1
  164. package/dist/constructs/opsgenie-alert-channel-codegen.js +1 -1
  165. package/dist/constructs/opsgenie-alert-channel-codegen.js.map +1 -1
  166. package/dist/constructs/pagerduty-alert-channel-codegen.js +1 -1
  167. package/dist/constructs/pagerduty-alert-channel-codegen.js.map +1 -1
  168. package/dist/constructs/phone-call-alert-channel-codegen.js +1 -1
  169. package/dist/constructs/phone-call-alert-channel-codegen.js.map +1 -1
  170. package/dist/constructs/playwright-check-bundle.d.ts +7 -1
  171. package/dist/constructs/playwright-check-bundle.js +3 -0
  172. package/dist/constructs/playwright-check-bundle.js.map +1 -1
  173. package/dist/constructs/playwright-check-codegen.d.ts +85 -0
  174. package/dist/constructs/playwright-check-codegen.js +212 -0
  175. package/dist/constructs/playwright-check-codegen.js.map +1 -0
  176. package/dist/constructs/playwright-check.d.ts +14 -24
  177. package/dist/constructs/playwright-check.js +16 -52
  178. package/dist/constructs/playwright-check.js.map +1 -1
  179. package/dist/constructs/retry-strategy-codegen.d.ts +7 -1
  180. package/dist/constructs/retry-strategy-codegen.js +41 -32
  181. package/dist/constructs/retry-strategy-codegen.js.map +1 -1
  182. package/dist/constructs/retry-strategy.d.ts +0 -4
  183. package/dist/constructs/retry-strategy.js +5 -8
  184. package/dist/constructs/retry-strategy.js.map +1 -1
  185. package/dist/constructs/session.d.ts +26 -1
  186. package/dist/constructs/session.js +33 -2
  187. package/dist/constructs/session.js.map +1 -1
  188. package/dist/constructs/slack-alert-channel-codegen.js +1 -1
  189. package/dist/constructs/slack-alert-channel-codegen.js.map +1 -1
  190. package/dist/constructs/slack-app-alert-channel-codegen.js +1 -1
  191. package/dist/constructs/slack-app-alert-channel-codegen.js.map +1 -1
  192. package/dist/constructs/sms-alert-channel-codegen.js +1 -1
  193. package/dist/constructs/sms-alert-channel-codegen.js.map +1 -1
  194. package/dist/constructs/ssl-request-codegen.js +4 -3
  195. package/dist/constructs/ssl-request-codegen.js.map +1 -1
  196. package/dist/constructs/status-page-v3-automation-rule-codegen.js +5 -4
  197. package/dist/constructs/status-page-v3-automation-rule-codegen.js.map +1 -1
  198. package/dist/constructs/status-page-v3-codegen.js +3 -2
  199. package/dist/constructs/status-page-v3-codegen.js.map +1 -1
  200. package/dist/constructs/status-page-v3-component-codegen.js +8 -7
  201. package/dist/constructs/status-page-v3-component-codegen.js.map +1 -1
  202. package/dist/constructs/tcp-monitor-codegen.js +3 -2
  203. package/dist/constructs/tcp-monitor-codegen.js.map +1 -1
  204. package/dist/constructs/tcp-monitor.d.ts +4 -3
  205. package/dist/constructs/tcp-monitor.js +3 -2
  206. package/dist/constructs/tcp-monitor.js.map +1 -1
  207. package/dist/constructs/telegram-alert-channel-codegen.d.ts +1 -1
  208. package/dist/constructs/telegram-alert-channel-codegen.js +14 -8
  209. package/dist/constructs/telegram-alert-channel-codegen.js.map +1 -1
  210. package/dist/constructs/time-zone.d.ts +24 -0
  211. package/dist/constructs/time-zone.js +455 -0
  212. package/dist/constructs/time-zone.js.map +1 -0
  213. package/dist/constructs/traceroute-request-codegen.js +2 -2
  214. package/dist/constructs/traceroute-request-codegen.js.map +1 -1
  215. package/dist/constructs/url-monitor-codegen.js +1 -1
  216. package/dist/constructs/url-monitor-codegen.js.map +1 -1
  217. package/dist/constructs/url-monitor.d.ts +3 -2
  218. package/dist/constructs/url-monitor.js +3 -0
  219. package/dist/constructs/url-monitor.js.map +1 -1
  220. package/dist/constructs/url-request-codegen.js +4 -3
  221. package/dist/constructs/url-request-codegen.js.map +1 -1
  222. package/dist/constructs/webhook-alert-channel-codegen.js +3 -3
  223. package/dist/constructs/webhook-alert-channel-codegen.js.map +1 -1
  224. package/dist/formatters/check-result-detail.js +0 -185
  225. package/dist/formatters/check-result-detail.js.map +1 -1
  226. package/dist/helpers/activate-account.d.ts +14 -0
  227. package/dist/helpers/activate-account.js +25 -0
  228. package/dist/helpers/activate-account.js.map +1 -0
  229. package/dist/helpers/cli-mode.d.ts +18 -0
  230. package/dist/helpers/cli-mode.js +41 -2
  231. package/dist/helpers/cli-mode.js.map +1 -1
  232. package/dist/helpers/command-preview.d.ts +44 -0
  233. package/dist/helpers/command-preview.js +29 -9
  234. package/dist/helpers/command-preview.js.map +1 -1
  235. package/dist/helpers/flags.d.ts +10 -0
  236. package/dist/helpers/flags.js +17 -0
  237. package/dist/helpers/flags.js.map +1 -1
  238. package/dist/helpers/onboarding/boilerplate.js +13 -1
  239. package/dist/helpers/onboarding/boilerplate.js.map +1 -1
  240. package/dist/helpers/onboarding/index.d.ts +1 -1
  241. package/dist/helpers/onboarding/index.js +1 -1
  242. package/dist/helpers/onboarding/index.js.map +1 -1
  243. package/dist/helpers/onboarding/messages.d.ts +6 -0
  244. package/dist/helpers/onboarding/messages.js +14 -0
  245. package/dist/helpers/onboarding/messages.js.map +1 -1
  246. package/dist/helpers/onboarding/skill-install.js +2 -2
  247. package/dist/helpers/onboarding/skill-install.js.map +1 -1
  248. package/dist/helpers/wrap.js +1 -1
  249. package/dist/helpers/wrap.js.map +1 -1
  250. package/dist/reporters/abstract-list.js +11 -2
  251. package/dist/reporters/abstract-list.js.map +1 -1
  252. package/dist/reporters/github.js +3 -2
  253. package/dist/reporters/github.js.map +1 -1
  254. package/dist/reporters/util.d.ts +1 -0
  255. package/dist/reporters/util.js +5 -58
  256. package/dist/reporters/util.js.map +1 -1
  257. package/dist/rest/analytics.js +0 -4
  258. package/dist/rest/analytics.js.map +1 -1
  259. package/dist/rest/api.d.ts +8 -1
  260. package/dist/rest/api.js +21 -3
  261. package/dist/rest/api.js.map +1 -1
  262. package/dist/rest/check-results.d.ts +1 -50
  263. package/dist/rest/check-results.js.map +1 -1
  264. package/dist/rest/checkly-storage.d.ts +6 -1
  265. package/dist/rest/checkly-storage.js +13 -2
  266. package/dist/rest/checkly-storage.js.map +1 -1
  267. package/dist/rest/errors.d.ts +13 -0
  268. package/dist/rest/errors.js +5 -1
  269. package/dist/rest/errors.js.map +1 -1
  270. package/dist/rest/projects.d.ts +254 -4
  271. package/dist/rest/projects.js +184 -12
  272. package/dist/rest/projects.js.map +1 -1
  273. package/dist/services/abstract-check-runner.d.ts +11 -0
  274. package/dist/services/abstract-check-runner.js +98 -46
  275. package/dist/services/abstract-check-runner.js.map +1 -1
  276. package/dist/services/check-parser/bundler.d.ts +26 -0
  277. package/dist/services/check-parser/bundler.js +81 -7
  278. package/dist/services/check-parser/bundler.js.map +1 -1
  279. package/dist/services/check-parser/cache-hash.d.ts +1 -4
  280. package/dist/services/check-parser/cache-hash.js.map +1 -1
  281. package/dist/services/checkly-config-codegen.js +1 -4
  282. package/dist/services/checkly-config-codegen.js.map +1 -1
  283. package/dist/services/checkly-config-loader.d.ts +7 -33
  284. package/dist/services/checkly-config-loader.js +50 -47
  285. package/dist/services/checkly-config-loader.js.map +1 -1
  286. package/dist/services/config.d.ts +2 -0
  287. package/dist/services/config.js +14 -0
  288. package/dist/services/config.js.map +1 -1
  289. package/dist/services/content-hash.d.ts +14 -0
  290. package/dist/services/content-hash.js +22 -0
  291. package/dist/services/content-hash.js.map +1 -0
  292. package/dist/services/deploy-diff/diff-lines.d.ts +38 -0
  293. package/dist/services/deploy-diff/diff-lines.js +191 -0
  294. package/dist/services/deploy-diff/diff-lines.js.map +1 -0
  295. package/dist/services/deploy-diff/import-shape.d.ts +171 -0
  296. package/dist/services/deploy-diff/import-shape.js +633 -0
  297. package/dist/services/deploy-diff/import-shape.js.map +1 -0
  298. package/dist/services/deploy-diff/legacy-payload.d.ts +22 -0
  299. package/dist/services/deploy-diff/legacy-payload.js +51 -0
  300. package/dist/services/deploy-diff/legacy-payload.js.map +1 -0
  301. package/dist/services/deploy-diff/plan-summary.d.ts +37 -0
  302. package/dist/services/deploy-diff/plan-summary.js +154 -0
  303. package/dist/services/deploy-diff/plan-summary.js.map +1 -0
  304. package/dist/services/deploy-diff/preview-output.d.ts +61 -0
  305. package/dist/services/deploy-diff/preview-output.js +394 -0
  306. package/dist/services/deploy-diff/preview-output.js.map +1 -0
  307. package/dist/services/deploy-diff/render.d.ts +53 -0
  308. package/dist/services/deploy-diff/render.js +317 -0
  309. package/dist/services/deploy-diff/render.js.map +1 -0
  310. package/dist/services/deploy-diff/shape-changes.d.ts +2 -0
  311. package/dist/services/deploy-diff/shape-changes.js +35 -0
  312. package/dist/services/deploy-diff/shape-changes.js.map +1 -0
  313. package/dist/services/deploy-diff/source-index.d.ts +18 -0
  314. package/dist/services/deploy-diff/source-index.js +48 -0
  315. package/dist/services/deploy-diff/source-index.js.map +1 -0
  316. package/dist/services/deploy-diff/variable-names.d.ts +30 -0
  317. package/dist/services/deploy-diff/variable-names.js +64 -0
  318. package/dist/services/deploy-diff/variable-names.js.map +1 -0
  319. package/dist/services/project-parser.d.ts +5 -0
  320. package/dist/services/project-parser.js +25 -13
  321. package/dist/services/project-parser.js.map +1 -1
  322. package/dist/services/snapshot-service.d.ts +25 -8
  323. package/dist/services/snapshot-service.js +46 -4
  324. package/dist/services/snapshot-service.js.map +1 -1
  325. package/dist/services/test-filters.d.ts +18 -0
  326. package/dist/services/test-filters.js +10 -0
  327. package/dist/services/test-filters.js.map +1 -1
  328. package/dist/services/test-runner.js +7 -3
  329. package/dist/services/test-runner.js.map +1 -1
  330. package/dist/services/test-session-cancel.js +1 -1
  331. package/dist/services/test-session-cancel.js.map +1 -1
  332. package/dist/services/util.d.ts +17 -2
  333. package/dist/services/util.js +118 -11
  334. package/dist/services/util.js.map +1 -1
  335. package/dist/services/write-back/apply-edits.d.ts +29 -0
  336. package/dist/services/write-back/apply-edits.js +255 -0
  337. package/dist/services/write-back/apply-edits.js.map +1 -0
  338. package/dist/services/write-back/helper-edit.d.ts +135 -0
  339. package/dist/services/write-back/helper-edit.js +343 -0
  340. package/dist/services/write-back/helper-edit.js.map +1 -0
  341. package/dist/services/write-back/imports.d.ts +30 -0
  342. package/dist/services/write-back/imports.js +82 -0
  343. package/dist/services/write-back/imports.js.map +1 -0
  344. package/dist/services/write-back/literal-edit.d.ts +183 -0
  345. package/dist/services/write-back/literal-edit.js +359 -0
  346. package/dist/services/write-back/literal-edit.js.map +1 -0
  347. package/dist/services/write-back/output.d.ts +26 -0
  348. package/dist/services/write-back/output.js +110 -0
  349. package/dist/services/write-back/output.js.map +1 -0
  350. package/dist/services/write-back/plan.d.ts +173 -0
  351. package/dist/services/write-back/plan.js +968 -0
  352. package/dist/services/write-back/plan.js.map +1 -0
  353. package/dist/services/write-back/source-file.d.ts +118 -0
  354. package/dist/services/write-back/source-file.js +432 -0
  355. package/dist/services/write-back/source-file.js.map +1 -0
  356. package/dist/sourcegen/index.d.ts +1 -1
  357. package/dist/sourcegen/index.js +1 -1
  358. package/dist/sourcegen/index.js.map +1 -1
  359. package/dist/sourcegen/program.d.ts +19 -1
  360. package/dist/sourcegen/program.js +32 -7
  361. package/dist/sourcegen/program.js.map +1 -1
  362. package/oclif.manifest.json +676 -635
  363. package/package.json +13 -13
  364. package/dist/commands/rules.d.ts +0 -9
  365. package/dist/commands/rules.js +0 -13
  366. package/dist/commands/rules.js.map +0 -1
  367. package/dist/constructs/agentic-check-codegen.d.ts +0 -22
  368. package/dist/constructs/agentic-check-codegen.js +0 -59
  369. package/dist/constructs/agentic-check-codegen.js.map +0 -1
  370. package/dist/constructs/agentic-check.d.ts +0 -237
  371. package/dist/constructs/agentic-check.js +0 -100
  372. package/dist/constructs/agentic-check.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"msteams-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/msteams-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACrF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAQhE,MAAM,SAAS,GAAG,qBAAqB,CAAA;AAEvC,MAAM,OAAO,0BAA2B,SAAQ,OAAoC;IAClF,cAAc,CAAE,QAAqC;QACnD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAA;QAE3B,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC7B,MAAM,IAAI,qBAAqB,CAAC,2DAA2D,CAAC,CAAA;QAC9F,CAAC;QAED,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChE,MAAM,IAAI,qBAAqB,CAAC,gFAAgF,CAAC,CAAA;QACnH,CAAC;QAED,IAAI,MAAM,CAAC,eAAe,KAAK,SAAS,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChF,MAAM,IAAI,qBAAqB,CAAC,wFAAwF,CAAC,CAAA;QAC3H,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,OAAO,CAAC,EAAE;wBACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;wBACnC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAA;wBAEjC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;4BACpB,IAAI,MAAM,CAAC,QAAQ,KAAK,mBAAmB,CAAC,eAAe,IAAI,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gCAC7F,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAA;4BAC5C,CAAC;wBACH,CAAC;wBAED,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;oBACpD,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
@@ -26,7 +26,7 @@ export class OpsgenieAlertChannelCodegen extends Codegen {
26
26
  builder.string('apiKey', config.apiKey);
27
27
  builder.string('region', config.region);
28
28
  builder.string('priority', config.priority);
29
- buildAlertChannelProps(builder, resource);
29
+ buildAlertChannelProps(builder, resource, context);
30
30
  });
31
31
  });
32
32
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"opsgenie-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/opsgenie-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAwB,MAAM,4BAA4B,CAAA;AAYzF,MAAM,SAAS,GAAG,sBAAsB,CAAA;AAExC,MAAM,OAAO,2BAA4B,SAAQ,OAAqC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', config.serviceKey);
41
- buildAlertChannelProps(builder, resource);
41
+ buildAlertChannelProps(builder, resource, context);
42
42
  });
43
43
  });
44
44
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"pagerduty-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/pagerduty-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAwB,MAAM,4BAA4B,CAAA;AAWzF,MAAM,SAAS,GAAG,uBAAuB,CAAA;AAEzC,MAAM,OAAO,4BAA6B,SAAQ,OAAsC;IACtF,QAAQ,CAAE,QAAuC;QAC/C,IAAI,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAC5B,OAAO,4BAA4B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,CAAA;QAC9D,CAAC;QAED,IAAI,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;YAChC,OAAO,4BAA4B,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAA;QAClE,CAAC;QAED,OAAO,yBAAyB,CAAA;IAClC,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAuC,EAAE,OAAgB;QACnF,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAA;QAE5D,MAAM,MAAM,GAAG,WAAW,IAAI,OAAO,CAAA;QACrC,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QACvC,MAAM,YAAY,GAAG,aAAa,UAAU,EAAE,CAAA;QAE9C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,oCAAoC,EAAE,MAAM,IAAI,YAAY,EAAE;YAC9F,MAAM,EAAE,IAAI;SACb,CAAC,CA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D,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
@@ -31,7 +31,7 @@ export class PhoneCallAlertChannelCodegen extends Codegen {
31
31
  builder.string('name', config.name);
32
32
  }
33
33
  builder.string('phoneNumber', config.number);
34
- buildAlertChannelProps(builder, resource);
34
+ buildAlertChannelProps(builder, resource, context);
35
35
  });
36
36
  });
37
37
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"phone-call-alert-channel-codegen.js","sourceRoot":"","sources":["../../src/constructs/phone-call-alert-channel-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAwB,MAAM,4BAA4B,CAAA;AAUzF,MAAM,SAAS,GAAG,uBAAuB,CAAA;AAEzC,MAAM,OAAO,4BAA6B,SAAQ,OAAsC;IACtF,QAAQ,CAAE,QAAuC;QAC/C,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,6BAA6B,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;QAC5D,CAAC;QAED,OAAO,6BAA6B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;IAC9D,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAuC,EAAE,OAAgB;QACnF,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAA;QAExC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QACpC,MAAM,YAAY,GAAG,cAAc,WAAW,EAAE,CAAA;QAEhD,MAAM,QAAQ,GAAG,OAAO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CAAC,QAAQ,CAAC,QAAQ,CAAC,CACvD,CAAA;IACH,CAAC;IAED,OAAO,CAAE,SAAiB,EAAE,QAAuC,EAAE,OAAgB;QACnF,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAE5D,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAA;QAEjD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAA;QAE3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE;YAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE;gBAChD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;oBACpB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;oBACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;wBACvB,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;4BAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;wBACrC,CAAC;wBAED,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;wBAE5C,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;oBACpD,CAAC,CAAC,CAAA;gBACJ,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAC,CAAA;YAEH,OAAO,CAAC,MAAM,EAAE,CAAA;QAClB,CAAC,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
@@ -1,10 +1,11 @@
1
1
  import { Bundle } from './construct.js';
2
- import { BundlePathMarker, CacheHashMarker } from '../services/check-parser/bundler.js';
2
+ import { BundlePathMarker, CacheHashMarker, CodeBundleChecksumMarker } from '../services/check-parser/bundler.js';
3
3
  import { PlaywrightCheck } from './playwright-check.js';
4
4
  import { Ref } from './ref.js';
5
5
  export interface PlaywrightCheckBundleProps {
6
6
  groupId?: Ref;
7
7
  codeBundlePath: BundlePathMarker;
8
+ codeBundleSha256?: CodeBundleChecksumMarker;
8
9
  browsers?: string[];
9
10
  cacheHash?: CacheHashMarker;
10
11
  playwrightVersion?: string;
@@ -16,6 +17,7 @@ export declare class PlaywrightCheckBundle implements Bundle {
16
17
  playwrightCheck: PlaywrightCheck;
17
18
  groupId?: Ref;
18
19
  codeBundlePath: BundlePathMarker;
20
+ codeBundleSha256?: CodeBundleChecksumMarker;
19
21
  browsers?: string[];
20
22
  cacheHash?: CacheHashMarker;
21
23
  playwrightVersion?: string;
@@ -26,6 +28,7 @@ export declare class PlaywrightCheckBundle implements Bundle {
26
28
  synthesize(): {
27
29
  groupId: Ref | undefined;
28
30
  codeBundlePath: BundlePathMarker;
31
+ codeBundleSha256: CodeBundleChecksumMarker | undefined;
29
32
  browsers: string[] | undefined;
30
33
  cacheHash: CacheHashMarker | undefined;
31
34
  playwrightVersion: string | undefined;
@@ -64,6 +67,7 @@ export declare class PlaywrightCheckBundle implements Bundle {
64
67
  } | {
65
68
  groupId: Ref | undefined;
66
69
  codeBundlePath: BundlePathMarker;
70
+ codeBundleSha256: CodeBundleChecksumMarker | undefined;
67
71
  browsers: string[] | undefined;
68
72
  cacheHash: CacheHashMarker | undefined;
69
73
  playwrightVersion: string | undefined;
@@ -102,6 +106,7 @@ export declare class PlaywrightCheckBundle implements Bundle {
102
106
  } | {
103
107
  groupId: Ref | undefined;
104
108
  codeBundlePath: BundlePathMarker;
109
+ codeBundleSha256: CodeBundleChecksumMarker | undefined;
105
110
  browsers: string[] | undefined;
106
111
  cacheHash: CacheHashMarker | undefined;
107
112
  playwrightVersion: string | undefined;
@@ -146,6 +151,7 @@ export declare class PlaywrightCheckBundle implements Bundle {
146
151
  } | {
147
152
  groupId: Ref | undefined;
148
153
  codeBundlePath: BundlePathMarker;
154
+ codeBundleSha256: CodeBundleChecksumMarker | undefined;
149
155
  browsers: string[] | undefined;
150
156
  cacheHash: CacheHashMarker | undefined;
151
157
  playwrightVersion: string | undefined;
@@ -2,6 +2,7 @@ export class PlaywrightCheckBundle {
2
2
  playwrightCheck;
3
3
  groupId;
4
4
  codeBundlePath;
5
+ codeBundleSha256;
5
6
  browsers;
6
7
  cacheHash;
7
8
  playwrightVersion;
@@ -12,6 +13,7 @@ export class PlaywrightCheckBundle {
12
13
  this.playwrightCheck = playwrightCheck;
13
14
  this.groupId = props.groupId;
14
15
  this.codeBundlePath = props.codeBundlePath;
16
+ this.codeBundleSha256 = props.codeBundleSha256;
15
17
  this.browsers = props.browsers;
16
18
  this.cacheHash = props.cacheHash;
17
19
  this.playwrightVersion = props.playwrightVersion;
@@ -24,6 +26,7 @@ export class PlaywrightCheckBundle {
24
26
  ...this.playwrightCheck.synthesize(),
25
27
  groupId: this.groupId,
26
28
  codeBundlePath: this.codeBundlePath,
29
+ codeBundleSha256: this.codeBundleSha256,
27
30
  browsers: this.browsers,
28
31
  cacheHash: this.cacheHash,
29
32
  playwrightVersion: this.playwrightVersion,
@@ -1 +1 @@
1
- {"version":3,"file":"playwright-check-bundle.js","sourceRoot":"","sources":["../../src/constructs/playwright-check-bundle.ts"],"names":[],"mappings":"AAgBA,MAAM,OAAO,qBAAqB;IAChC,eAAe,CAAiB;IAChC,OAAO,CAAM;IACb,cAAc,CAAkB;IAChC,QAAQ,CAAW;IACnB,SAAS,CAAkB;IAC3B,iBAAiB,CAAS;IAC1B,cAAc,CAAS;IACvB,WAAW,CAAQ;IACnB,UAAU,CAAS;IAEnB,YAAa,eAAgC,EAAE,KAAiC;QAC9E,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;QACtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QAC1C,IAAI,CAAC,QAAQ,GAAG,KAAK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AAG,KAAK,CAAC,gBAAgB,CAAA;QAC9C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAA;QAChC,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAChD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;QAC1C,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QACpC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,CAAA;IACpC,CAAC;IAED,UAAU;QACR,OAAO;YACL,GAAG,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;YACpC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAA;IACH,CAAC;CACF"}
@@ -0,0 +1,85 @@
1
+ import { Codegen, Context } from './internal/codegen/index.js';
2
+ import { RuntimeCheckResource } from './check-codegen.js';
3
+ /**
4
+ * The check props `PlaywrightCheckProps` leaves out that the codegen could
5
+ * otherwise spell; `doubleCheck` it never spells for any class.
6
+ */
7
+ export declare const PLAYWRIGHT_CHECK_OMITTED_PROPS: readonly ["retryStrategy"];
8
+ /**
9
+ * Generates a `PlaywrightCheck` construct from a Playwright check suite's
10
+ * API representation.
11
+ *
12
+ * The deploy preview is this codegen's consumer: it renders the deployed and
13
+ * the local version of an updated suite as constructs and prints the
14
+ * difference. `checkly import` never writes a suite: the API leaves them out
15
+ * of import plans, because a suite is defined by its uploaded code bundle,
16
+ * which an import plan cannot hand back as source, and the import command
17
+ * refuses one on its own too (`PREVIEW_ONLY_CHECK_TYPES` in
18
+ * `check-codegen.ts`). The code generated here is displayed, not written to
19
+ * a project.
20
+ *
21
+ * What the API holds differs from what the construct takes. The construct's
22
+ * `playwrightConfigPath`, `pwProjects` and `pwTags` are not stored: the CLI
23
+ * folds them into `testCommand` on deploy (`PlaywrightCheck.buildTestCommand`
24
+ * appends `--config <path>`, `--project <name>…` and `--grep <tag>|<tag>` to
25
+ * the user's command, or to the package manager's `playwright test`). This
26
+ * codegen unfolds that command again, so the construct reads as the user
27
+ * wrote it, and prints `testCommand` only when the user's part differs from
28
+ * the package manager's default (the project's current one: a suite deployed
29
+ * under another package manager shows its old default as a `testCommand`
30
+ * the new deploy removes). A command that is not in the CLI's own
31
+ * format is printed whole and `playwrightConfigPath` is left out: the
32
+ * construct requires the prop, but a made-up path would show a change that
33
+ * did not happen. Such a construct would not type-check; the preview only
34
+ * displays it.
35
+ *
36
+ * Deliberately not printed: the code bundle (`codeBundlePath`,
37
+ * `codeBundleSha256`), the dependency cache hash, the Playwright version, the
38
+ * browsers and the working directory. They describe the bundled project
39
+ * rather than the construct's props; the API reports the bundle, the version
40
+ * and the cache as changes with a cause, which the preview prints as notes
41
+ * beside the construct. A `browsers` or `workingDir` change has no cause and
42
+ * is not listed beside a construct diff; both derive from the bundled
43
+ * Playwright project, whose change the code bundle note announces.
44
+ *
45
+ * A suite has no retry strategy and no double check (Playwright retries
46
+ * tests itself), and no automatic check repair, so none of those is printed
47
+ * whatever the API sends.
48
+ */
49
+ export interface PlaywrightCheckResource extends RuntimeCheckResource {
50
+ checkType: 'PLAYWRIGHT';
51
+ /** The full command the runner executes; see {@link unfoldTestCommand}. */
52
+ testCommand?: string | null;
53
+ installCommand?: string | null;
54
+ /** The JavaScript engine's name (`node`, `bun`) and version. */
55
+ engine?: string | null;
56
+ engineVersion?: string | null;
57
+ }
58
+ /** A test command split into the construct props it was built from. */
59
+ export interface UnfoldedTestCommand {
60
+ /**
61
+ * The command without the flags the CLI appends; the whole command when it
62
+ * could not be unfolded.
63
+ */
64
+ command: string;
65
+ playwrightConfigPath?: string;
66
+ pwProjects?: string[];
67
+ pwTags?: string[];
68
+ }
69
+ /**
70
+ * Splits a stored test command back into the user's command and the
71
+ * construct props the CLI folded into it. A bare `--config` word marks where
72
+ * the CLI's part may start; the earliest one whose tail reads as the CLI's
73
+ * format wins, so a user's own command keeps whatever it had before it
74
+ * (spacing and quoting included) and a quoted value that merely spells a
75
+ * flag is never mistaken for the boundary. A command with no such boundary
76
+ * was not built by the CLI and is returned whole.
77
+ *
78
+ * The `--grep` pattern joins the tags with `|`, so a single tag that itself
79
+ * contains `|` cannot be told from two tags and comes back as two.
80
+ */
81
+ export declare function unfoldTestCommand(testCommand: string): UnfoldedTestCommand;
82
+ export declare class PlaywrightCheckCodegen extends Codegen<PlaywrightCheckResource> {
83
+ describe(resource: PlaywrightCheckResource): string;
84
+ gencode(logicalId: string, resource: PlaywrightCheckResource, context: Context): void;
85
+ }
@@ -0,0 +1,212 @@
1
+ import { Codegen } from './internal/codegen/index.js';
2
+ import { expr, ident, unknown } from '../sourcegen/index.js';
3
+ import { buildRuntimeCheckProps } from './check-codegen.js';
4
+ import { PlaywrightCheck } from './playwright-check.js';
5
+ /**
6
+ * The check props `PlaywrightCheckProps` leaves out that the codegen could
7
+ * otherwise spell; `doubleCheck` it never spells for any class.
8
+ */
9
+ export const PLAYWRIGHT_CHECK_OMITTED_PROPS = ['retryStrategy'];
10
+ /** The characters a backslash escapes inside double quotes in a POSIX shell. */
11
+ const DOUBLE_QUOTE_ESCAPABLE = new Set(['$', '`', '"', '\\']);
12
+ /**
13
+ * Splits a command into words the way a POSIX shell would: whitespace
14
+ * separates, single quotes take everything literally, double quotes let a
15
+ * backslash escape the few characters the shell would expand, a backslash
16
+ * outside quotes escapes the next character, and a backslash before a
17
+ * newline continues the line. This covers what
18
+ * `shellQuote` produces (bare words and single-quoted words with `'"'"'` for
19
+ * an embedded quote) and the usual hand-written forms. An unterminated quote
20
+ * makes the command unreadable.
21
+ */
22
+ function shellWords(command) {
23
+ const words = [];
24
+ let current;
25
+ let quote;
26
+ for (let index = 0; index < command.length; index++) {
27
+ const char = command[index];
28
+ if (quote === undefined) {
29
+ if (char === ' ' || char === '\t' || char === '\n') {
30
+ if (current !== undefined) {
31
+ words.push(current);
32
+ current = undefined;
33
+ }
34
+ continue;
35
+ }
36
+ if (char === '\\' && command[index + 1] === '\n') {
37
+ index++;
38
+ continue;
39
+ }
40
+ current ??= { text: '', start: index, quoted: false };
41
+ if (char === '\'' || char === '"') {
42
+ quote = char;
43
+ current.quoted = true;
44
+ }
45
+ else if (char === '\\' && index + 1 < command.length) {
46
+ current.text += command[++index];
47
+ current.quoted = true;
48
+ }
49
+ else {
50
+ current.text += char;
51
+ }
52
+ continue;
53
+ }
54
+ if (char === quote) {
55
+ quote = undefined;
56
+ }
57
+ else if (quote === '"' && char === '\\' && command[index + 1] === '\n') {
58
+ index++;
59
+ }
60
+ else if (quote === '"' && char === '\\' && DOUBLE_QUOTE_ESCAPABLE.has(command[index + 1] ?? '')) {
61
+ current.text += command[++index];
62
+ }
63
+ else {
64
+ current.text += char;
65
+ }
66
+ }
67
+ if (quote !== undefined) {
68
+ return undefined;
69
+ }
70
+ if (current !== undefined) {
71
+ words.push(current);
72
+ }
73
+ return words;
74
+ }
75
+ const isFlag = (word) => !word.quoted && word.text.startsWith('--');
76
+ /**
77
+ * Reads the part the CLI appended, starting at the word after `--config`:
78
+ * the config path, then `--project <name>…` and `--grep <tag>|<tag>`, each at
79
+ * most once. A value never looks like a flag: `shellQuote` leaves a bare
80
+ * `--foo` project name as it is, and reading such a tail could put the
81
+ * user's own trailing flag together with the CLI's config path, so the
82
+ * command is left whole instead. Anything else means the CLI did not build
83
+ * this tail.
84
+ */
85
+ function readAppendedFlags(words) {
86
+ const [config, ...rest] = words;
87
+ if (config === undefined) {
88
+ return undefined;
89
+ }
90
+ let pwProjects;
91
+ let pwTags;
92
+ for (let index = 0; index < rest.length;) {
93
+ const flag = rest[index++].text;
94
+ const values = [];
95
+ while (index < rest.length && !isFlag(rest[index])) {
96
+ values.push(rest[index++].text);
97
+ }
98
+ if (flag === '--project' && pwProjects === undefined && values.length > 0) {
99
+ pwProjects = values;
100
+ }
101
+ else if (flag === '--grep' && pwTags === undefined && values.length === 1) {
102
+ pwTags = values[0].split('|');
103
+ }
104
+ else {
105
+ return undefined;
106
+ }
107
+ }
108
+ return { playwrightConfigPath: config.text, pwProjects, pwTags };
109
+ }
110
+ /**
111
+ * Splits a stored test command back into the user's command and the
112
+ * construct props the CLI folded into it. A bare `--config` word marks where
113
+ * the CLI's part may start; the earliest one whose tail reads as the CLI's
114
+ * format wins, so a user's own command keeps whatever it had before it
115
+ * (spacing and quoting included) and a quoted value that merely spells a
116
+ * flag is never mistaken for the boundary. A command with no such boundary
117
+ * was not built by the CLI and is returned whole.
118
+ *
119
+ * The `--grep` pattern joins the tags with `|`, so a single tag that itself
120
+ * contains `|` cannot be told from two tags and comes back as two.
121
+ */
122
+ export function unfoldTestCommand(testCommand) {
123
+ const words = shellWords(testCommand) ?? [];
124
+ for (let index = 1; index < words.length; index++) {
125
+ if (!isFlag(words[index]) || words[index].text !== '--config') {
126
+ continue;
127
+ }
128
+ const appended = readAppendedFlags(words.slice(index + 1));
129
+ if (appended !== undefined) {
130
+ // Whitespace and a line continuation before the boundary belong to
131
+ // neither side.
132
+ const command = testCommand.slice(0, words[index].start).replace(/(\s|\\\n)+$/, '');
133
+ return { command, ...appended };
134
+ }
135
+ }
136
+ return { command: testCommand };
137
+ }
138
+ const construct = 'PlaywrightCheck';
139
+ export class PlaywrightCheckCodegen extends Codegen {
140
+ describe(resource) {
141
+ return `Playwright Check Suite: ${resource.name}`;
142
+ }
143
+ gencode(logicalId, resource, context) {
144
+ const filePath = context.filePath('resources/playwright-check-suites', resource.name, {
145
+ tags: resource.tags,
146
+ isolate: true,
147
+ unique: true,
148
+ });
149
+ const file = this.program.generatedConstructFile(filePath.fullPath);
150
+ file.namedImport(construct, 'checkly/constructs');
151
+ file.section(expr(ident(construct), builder => {
152
+ builder.new(builder => {
153
+ builder.string(logicalId);
154
+ builder.object(builder => {
155
+ const { command, playwrightConfigPath, pwProjects, pwTags } = resource.testCommand != null ? unfoldTestCommand(resource.testCommand) : {};
156
+ if (playwrightConfigPath !== undefined) {
157
+ builder.string('playwrightConfigPath', playwrightConfigPath);
158
+ }
159
+ if (pwProjects !== undefined) {
160
+ builder.array('pwProjects', builder => {
161
+ for (const project of pwProjects) {
162
+ builder.string(project);
163
+ }
164
+ });
165
+ }
166
+ if (pwTags !== undefined) {
167
+ builder.array('pwTags', builder => {
168
+ for (const tag of pwTags) {
169
+ builder.string(tag);
170
+ }
171
+ });
172
+ }
173
+ // The construct fills in the package manager's `playwright test`
174
+ // when no command is given, so that command is not spelled out.
175
+ if (command !== undefined
176
+ && (command !== PlaywrightCheck.defaultTestCommand() || context.spelledOut('testCommand'))) {
177
+ builder.string('testCommand', command);
178
+ }
179
+ if (resource.installCommand != null) {
180
+ builder.string('installCommand', resource.installCommand);
181
+ }
182
+ // An engine without a version cannot be spelled as the construct's
183
+ // `Engine` (which always carries one) and is left out.
184
+ if (resource.engine != null && resource.engineVersion != null) {
185
+ builder.value('engine', valueForEngine(file, resource.engine, resource.engineVersion));
186
+ }
187
+ buildRuntimeCheckProps(this.program, file, builder, resource, context, {
188
+ omit: PLAYWRIGHT_CHECK_OMITTED_PROPS,
189
+ });
190
+ });
191
+ });
192
+ }));
193
+ }
194
+ }
195
+ /**
196
+ * `Engine.node(version)` or `Engine.bun(version)` for the engines the
197
+ * construct offers; any other name as a plain object of the same shape,
198
+ * which the prop's type accepts, so an unfamiliar engine still shows.
199
+ */
200
+ function valueForEngine(file, name, version) {
201
+ if (name === 'node' || name === 'bun') {
202
+ file.namedImport('Engine', 'checkly/constructs');
203
+ return expr(ident('Engine'), builder => {
204
+ builder.member(ident(name));
205
+ builder.call(builder => {
206
+ builder.string(version);
207
+ });
208
+ });
209
+ }
210
+ return unknown({ name, version });
211
+ }
212
+ //# sourceMappingURL=playwright-check-codegen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playwright-check-codegen.js","sourceRoot":"","sources":["../../src/constructs/playwright-check-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAW,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,IAAI,EAAiB,KAAK,EAAE,OAAO,EAAS,MAAM,uBAAuB,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAiD,MAAM,oBAAoB,CAAA;AAC1G,OAAO,EAAE,eAAe,EAAmC,MAAM,uBAAuB,CAAA;AAExF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,eAAe,CAAiF,CAAA;AAyE/I,gFAAgF;AAChF,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA;AAE7D;;;;;;;;;GASG;AACH,SAAS,UAAU,CAAE,OAAe;IAClC,MAAM,KAAK,GAAW,EAAE,CAAA;IACxB,IAAI,OAAyB,CAAA;IAC7B,IAAI,KAA6B,CAAA;IACjC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAA;QAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBACnD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;oBAC1B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;oBACnB,OAAO,GAAG,SAAS,CAAA;gBACrB,CAAC;gBAC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IG;AACH,SAAS,cAAc,CAAE,IAAmB,EAAE,IAAY,EAAE,OAAe;IACzE,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAA;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE;YACrC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;YAC3B,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBACrB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;YACzB,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAA;AACnC,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { RuntimeCheck, RuntimeCheckProps } from './check.js';
2
2
  import { Diagnostics } from './diagnostics.js';
3
3
  import { PlaywrightCheckBundle } from './playwright-check-bundle.js';
4
- import { Ref } from './ref.js';
5
4
  import { ConfigDefaultsGetter } from './check-config.js';
6
5
  import { CheckConfigDefaults } from '../services/checkly-config-loader.js';
7
6
  import { Bundler } from '../services/check-parser/bundler.js';
8
7
  import { Engine } from './engine.js';
9
- export interface PlaywrightCheckProps extends Omit<RuntimeCheckProps, 'retryStrategy' | 'doubleCheck'> {
8
+ /** The check props a Playwright check does not take. */
9
+ export type PlaywrightCheckOmittedProp = 'retryStrategy';
10
+ export interface PlaywrightCheckProps extends Omit<RuntimeCheckProps, PlaywrightCheckOmittedProp> {
10
11
  /**
11
12
  * The JavaScript engine used to run the Playwright tests.
12
13
  * Use {@link Engine.node} or {@link Engine.bun} to create an engine instance.
@@ -73,17 +74,6 @@ export interface PlaywrightCheckProps extends Omit<RuntimeCheckProps, 'retryStra
73
74
  * @example ["fixtures/**\/*.json", "docs/**\/*.md"]
74
75
  */
75
76
  include?: string | string[];
76
- /**
77
- * Name of the check group to assign this check to.
78
- * The group must exist in your project configuration.
79
- *
80
- * @deprecated Use {@link group} instead. Depending on load order, group
81
- * defaults may not work correctly when using {@link groupName} to attach the
82
- * check to a group.
83
- * @example "E2E Tests"
84
- * @example "Critical User Flows"
85
- */
86
- groupName?: string;
87
77
  }
88
78
  /**
89
79
  * Creates a Playwright Check to run end-to-end tests using Playwright Test.
@@ -112,7 +102,7 @@ export interface PlaywrightCheckProps extends Omit<RuntimeCheckProps, 'retryStra
112
102
  * // `include` is for non-code assets read via `fs` at runtime;
113
103
  * // imported files are bundled automatically.
114
104
  * include: ['fixtures/**\/*.json'],
115
- * groupName: 'E2E Tests',
105
+ * group: e2eGroup,
116
106
  * frequency: Frequency.EVERY_5M
117
107
  * })
118
108
  * ```
@@ -130,8 +120,6 @@ export declare class PlaywrightCheck extends RuntimeCheck {
130
120
  pwTags: string[];
131
121
  include: string[];
132
122
  engine?: Engine;
133
- /** @deprecated Use {@link groupId} instead. Kept for compatibility with earlier versions. */
134
- groupName?: string;
135
123
  constructor(logicalId: string, props: PlaywrightCheckProps);
136
124
  describe(): string;
137
125
  protected configDefaultsGetter(props: PlaywrightCheckProps): ConfigDefaultsGetter<CheckConfigDefaults>;
@@ -144,6 +132,8 @@ export declare class PlaywrightCheck extends RuntimeCheck {
144
132
  getSourceFile(): string | undefined;
145
133
  static buildTestCommand(testCommand: string, playwrightConfigPath: string, playwrightProject?: string[], playwrightTag?: string[]): string;
146
134
  bundle(bundler: Bundler): Promise<PlaywrightCheckBundle>;
135
+ /** The test command a suite runs when none is given: the package manager's `playwright test`. */
136
+ static defaultTestCommand(): string;
147
137
  synthesize(): {
148
138
  engine?: string | undefined;
149
139
  engineVersion?: string | undefined;
@@ -159,13 +149,13 @@ export declare class PlaywrightCheck extends RuntimeCheck {
159
149
  tags: string[] | undefined;
160
150
  frequency: number | undefined;
161
151
  frequencyOffset: number | undefined;
162
- groupId: Ref | null;
152
+ groupId: import("./ref.js").Ref | null;
163
153
  retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
164
154
  alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
165
155
  useGlobalAlertSettings: boolean | undefined;
166
156
  runParallel: boolean | undefined;
167
157
  triggerIncident: {
168
- serviceId: Ref;
158
+ serviceId: import("./ref.js").Ref;
169
159
  severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
170
160
  name: string;
171
161
  description: string;
@@ -190,13 +180,13 @@ export declare class PlaywrightCheck extends RuntimeCheck {
190
180
  tags: string[] | undefined;
191
181
  frequency: number | undefined;
192
182
  frequencyOffset: number | undefined;
193
- groupId: Ref | null;
183
+ groupId: import("./ref.js").Ref | null;
194
184
  retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
195
185
  alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
196
186
  useGlobalAlertSettings: boolean | undefined;
197
187
  runParallel: boolean | undefined;
198
188
  triggerIncident: {
199
- serviceId: Ref;
189
+ serviceId: import("./ref.js").Ref;
200
190
  severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
201
191
  name: string;
202
192
  description: string;
@@ -221,13 +211,13 @@ export declare class PlaywrightCheck extends RuntimeCheck {
221
211
  tags: string[] | undefined;
222
212
  frequency: number | undefined;
223
213
  frequencyOffset: number | undefined;
224
- groupId: Ref | null;
214
+ groupId: import("./ref.js").Ref | null;
225
215
  retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
226
216
  alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
227
217
  useGlobalAlertSettings: boolean | undefined;
228
218
  runParallel: boolean | undefined;
229
219
  triggerIncident: {
230
- serviceId: Ref;
220
+ serviceId: import("./ref.js").Ref;
231
221
  severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
232
222
  name: string;
233
223
  description: string;
@@ -258,13 +248,13 @@ export declare class PlaywrightCheck extends RuntimeCheck {
258
248
  tags: string[] | undefined;
259
249
  frequency: number | undefined;
260
250
  frequencyOffset: number | undefined;
261
- groupId: Ref | null;
251
+ groupId: import("./ref.js").Ref | null;
262
252
  retryStrategy: import("./retry-strategy.js").LinearRetryStrategy | import("./retry-strategy.js").ExponentialRetryStrategy | import("./retry-strategy.js").FixedRetryStrategy | import("./retry-strategy.js").SingleRetryRetryStrategy | null | undefined;
263
253
  alertSettings: import("./alert-escalation-policy.js").AlertEscalation | undefined;
264
254
  useGlobalAlertSettings: boolean | undefined;
265
255
  runParallel: boolean | undefined;
266
256
  triggerIncident: {
267
- serviceId: Ref;
257
+ serviceId: import("./ref.js").Ref;
268
258
  severity: "MINOR" | "MEDIUM" | "MAJOR" | "CRITICAL";
269
259
  name: string;
270
260
  description: string;