checkly 6.9.10 → 7.0.0-prerelease-061f48a

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 (151) hide show
  1. package/assets/runtimes/snapshots/20260130/runtimes.json +349 -0
  2. package/dist/{rules → ai-context}/checkly.rules.md +72 -34
  3. package/dist/ai-context/context.d.ts +6 -0
  4. package/dist/ai-context/context.js +137 -0
  5. package/dist/ai-context/context.js.map +1 -0
  6. package/dist/ai-context/skills/monitoring/README.md +44 -0
  7. package/dist/ai-context/skills/monitoring/SKILL.md +600 -0
  8. package/dist/auth/index.js +2 -2
  9. package/dist/auth/index.js.map +1 -1
  10. package/dist/commands/baseCommand.js +9 -5
  11. package/dist/commands/baseCommand.js.map +1 -1
  12. package/dist/commands/debug/parse-file.d.ts +13 -0
  13. package/dist/commands/debug/parse-file.js +79 -0
  14. package/dist/commands/debug/parse-file.js.map +1 -0
  15. package/dist/commands/debug/parse-playwright-config.d.ts +9 -0
  16. package/dist/commands/debug/parse-playwright-config.js +31 -0
  17. package/dist/commands/debug/parse-playwright-config.js.map +1 -0
  18. package/dist/commands/debug/parse-project.d.ts +41 -0
  19. package/dist/commands/debug/parse-project.js +109 -0
  20. package/dist/commands/debug/parse-project.js.map +1 -0
  21. package/dist/commands/deploy.js +41 -7
  22. package/dist/commands/deploy.js.map +1 -1
  23. package/dist/commands/import/plan.js +7 -6
  24. package/dist/commands/import/plan.js.map +1 -1
  25. package/dist/commands/pw-test.d.ts +3 -2
  26. package/dist/commands/pw-test.js +65 -17
  27. package/dist/commands/pw-test.js.map +1 -1
  28. package/dist/commands/rules.js +1 -1
  29. package/dist/commands/rules.js.map +1 -1
  30. package/dist/commands/runtimes.js +1 -1
  31. package/dist/commands/runtimes.js.map +1 -1
  32. package/dist/commands/sync-playwright.js +3 -2
  33. package/dist/commands/sync-playwright.js.map +1 -1
  34. package/dist/commands/test.js +42 -6
  35. package/dist/commands/test.js.map +1 -1
  36. package/dist/commands/validate.js +2 -2
  37. package/dist/commands/validate.js.map +1 -1
  38. package/dist/constructs/api-check.js +6 -0
  39. package/dist/constructs/api-check.js.map +1 -1
  40. package/dist/constructs/browser-check.d.ts +2 -1
  41. package/dist/constructs/browser-check.js +7 -3
  42. package/dist/constructs/browser-check.js.map +1 -1
  43. package/dist/constructs/check-config.d.ts +2 -3
  44. package/dist/constructs/check-config.js.map +1 -1
  45. package/dist/constructs/check-group-v1.js +1 -2
  46. package/dist/constructs/check-group-v1.js.map +1 -1
  47. package/dist/constructs/check.d.ts +2 -1
  48. package/dist/constructs/check.js.map +1 -1
  49. package/dist/constructs/construct-diagnostics.d.ts +3 -0
  50. package/dist/constructs/construct-diagnostics.js +14 -1
  51. package/dist/constructs/construct-diagnostics.js.map +1 -1
  52. package/dist/constructs/internal/codegen/snippet.js +2 -2
  53. package/dist/constructs/internal/codegen/snippet.js.map +1 -1
  54. package/dist/constructs/multi-step-check.d.ts +2 -1
  55. package/dist/constructs/multi-step-check.js.map +1 -1
  56. package/dist/constructs/playwright-check-bundle.d.ts +52 -6
  57. package/dist/constructs/playwright-check-bundle.js +51 -6
  58. package/dist/constructs/playwright-check-bundle.js.map +1 -1
  59. package/dist/constructs/playwright-check.d.ts +8 -13
  60. package/dist/constructs/playwright-check.js +102 -30
  61. package/dist/constructs/playwright-check.js.map +1 -1
  62. package/dist/constructs/project.d.ts +11 -1
  63. package/dist/constructs/project.js +34 -0
  64. package/dist/constructs/project.js.map +1 -1
  65. package/dist/helpers/recast-acorn-parser.d.ts +2 -0
  66. package/dist/helpers/recast-acorn-parser.js +49 -0
  67. package/dist/helpers/recast-acorn-parser.js.map +1 -0
  68. package/dist/loader/jiti.js +20 -3
  69. package/dist/loader/jiti.js.map +1 -1
  70. package/dist/loader/ts-node.js +10 -0
  71. package/dist/loader/ts-node.js.map +1 -1
  72. package/dist/reporters/abstract-list.d.ts +4 -1
  73. package/dist/reporters/abstract-list.js +4 -2
  74. package/dist/reporters/abstract-list.js.map +1 -1
  75. package/dist/reporters/reporter.d.ts +4 -1
  76. package/dist/reporters/reporter.js +7 -7
  77. package/dist/reporters/reporter.js.map +1 -1
  78. package/dist/rest/api.d.ts +1 -0
  79. package/dist/rest/api.js +27 -3
  80. package/dist/rest/api.js.map +1 -1
  81. package/dist/rest/runtimes.d.ts +3 -10
  82. package/dist/rest/runtimes.js +6 -4
  83. package/dist/rest/runtimes.js.map +1 -1
  84. package/dist/runtimes/index.d.ts +2 -0
  85. package/dist/runtimes/index.js +6 -0
  86. package/dist/runtimes/index.js.map +1 -0
  87. package/dist/runtimes/runtime.d.ts +8 -0
  88. package/dist/runtimes/runtime.js +3 -0
  89. package/dist/runtimes/runtime.js.map +1 -0
  90. package/dist/runtimes/snapshot.d.ts +2 -0
  91. package/dist/runtimes/snapshot.js +16 -0
  92. package/dist/runtimes/snapshot.js.map +1 -0
  93. package/dist/services/check-parser/errors.js +1 -0
  94. package/dist/services/check-parser/errors.js.map +1 -1
  95. package/dist/services/check-parser/faux-package.d.ts +3 -0
  96. package/dist/services/check-parser/faux-package.js +19 -0
  97. package/dist/services/check-parser/faux-package.js.map +1 -0
  98. package/dist/services/check-parser/package-files/extension.d.ts +3 -1
  99. package/dist/services/check-parser/package-files/extension.js +11 -2
  100. package/dist/services/check-parser/package-files/extension.js.map +1 -1
  101. package/dist/services/check-parser/package-files/json-source-file.d.ts +1 -0
  102. package/dist/services/check-parser/package-files/json-source-file.js +8 -0
  103. package/dist/services/check-parser/package-files/json-source-file.js.map +1 -1
  104. package/dist/services/check-parser/package-files/json-text-source-file-parser.js +2 -1
  105. package/dist/services/check-parser/package-files/json-text-source-file-parser.js.map +1 -1
  106. package/dist/services/check-parser/package-files/package-json-file.d.ts +14 -3
  107. package/dist/services/check-parser/package-files/package-json-file.js +59 -0
  108. package/dist/services/check-parser/package-files/package-json-file.js.map +1 -1
  109. package/dist/services/check-parser/package-files/package-manager.d.ts +48 -0
  110. package/dist/services/check-parser/package-files/package-manager.js +278 -19
  111. package/dist/services/check-parser/package-files/package-manager.js.map +1 -1
  112. package/dist/services/check-parser/package-files/paths.d.ts +6 -0
  113. package/dist/services/check-parser/package-files/paths.js +23 -1
  114. package/dist/services/check-parser/package-files/paths.js.map +1 -1
  115. package/dist/services/check-parser/package-files/resolver.d.ts +67 -11
  116. package/dist/services/check-parser/package-files/resolver.js +168 -23
  117. package/dist/services/check-parser/package-files/resolver.js.map +1 -1
  118. package/dist/services/check-parser/package-files/result.d.ts +38 -0
  119. package/dist/services/check-parser/package-files/result.js +58 -0
  120. package/dist/services/check-parser/package-files/result.js.map +1 -0
  121. package/dist/services/check-parser/package-files/workspace.d.ts +60 -0
  122. package/dist/services/check-parser/package-files/workspace.js +103 -0
  123. package/dist/services/check-parser/package-files/workspace.js.map +1 -0
  124. package/dist/services/check-parser/parser.d.ts +27 -6
  125. package/dist/services/check-parser/parser.js +130 -55
  126. package/dist/services/check-parser/parser.js.map +1 -1
  127. package/dist/services/checkly-config-loader.d.ts +4 -0
  128. package/dist/services/checkly-config-loader.js +26 -3
  129. package/dist/services/checkly-config-loader.js.map +1 -1
  130. package/dist/services/playwright-config.js +2 -2
  131. package/dist/services/playwright-config.js.map +1 -1
  132. package/dist/services/project-parser.d.ts +4 -1
  133. package/dist/services/project-parser.js +69 -2
  134. package/dist/services/project-parser.js.map +1 -1
  135. package/dist/services/proxy.d.ts +2 -0
  136. package/dist/services/proxy.js +40 -0
  137. package/dist/services/proxy.js.map +1 -0
  138. package/dist/services/shell.d.ts +2 -0
  139. package/dist/services/shell.js +20 -0
  140. package/dist/services/shell.js.map +1 -0
  141. package/dist/services/test-runner.js +1 -1
  142. package/dist/services/test-runner.js.map +1 -1
  143. package/dist/services/util.d.ts +2 -4
  144. package/dist/services/util.js +27 -88
  145. package/dist/services/util.js.map +1 -1
  146. package/dist/testing/fixture-sandbox.d.ts +54 -0
  147. package/dist/testing/fixture-sandbox.js +102 -0
  148. package/dist/testing/fixture-sandbox.js.map +1 -0
  149. package/dist/tsconfig.tsbuildinfo +1 -1
  150. package/oclif.manifest.json +179 -2
  151. package/package.json +9 -5
@@ -334,11 +334,43 @@
334
334
  "allowNo": false,
335
335
  "type": "boolean"
336
336
  },
337
+ "frequency": {
338
+ "char": "f",
339
+ "description": "The frequency in minutes for the created check.",
340
+ "name": "frequency",
341
+ "default": 10,
342
+ "hasDynamicHelp": false,
343
+ "multiple": false,
344
+ "options": [
345
+ "1",
346
+ "2",
347
+ "5",
348
+ "10",
349
+ "15",
350
+ "30",
351
+ "60",
352
+ "120",
353
+ "180",
354
+ "360",
355
+ "720",
356
+ "1440"
357
+ ],
358
+ "type": "option"
359
+ },
337
360
  "stream-logs": {
338
361
  "description": "Stream logs from the test run to the console.",
339
362
  "name": "stream-logs",
340
363
  "allowNo": true,
341
364
  "type": "boolean"
365
+ },
366
+ "include": {
367
+ "char": "i",
368
+ "description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
369
+ "name": "include",
370
+ "default": [],
371
+ "hasDynamicHelp": false,
372
+ "multiple": true,
373
+ "type": "option"
342
374
  }
343
375
  },
344
376
  "hasDynamicHelp": false,
@@ -348,7 +380,6 @@
348
380
  "pluginAlias": "checkly",
349
381
  "pluginName": "checkly",
350
382
  "pluginType": "core",
351
- "state": "beta",
352
383
  "strict": true,
353
384
  "enableJsonFlag": false,
354
385
  "coreCommand": true,
@@ -820,6 +851,152 @@
820
851
  "whoami.js"
821
852
  ]
822
853
  },
854
+ "debug:parse-file": {
855
+ "aliases": [],
856
+ "args": {},
857
+ "description": "Parses and outputs relevant details of a code file.",
858
+ "flags": {
859
+ "file": {
860
+ "name": "file",
861
+ "required": true,
862
+ "hasDynamicHelp": false,
863
+ "multiple": false,
864
+ "type": "option"
865
+ },
866
+ "restricted": {
867
+ "name": "restricted",
868
+ "allowNo": false,
869
+ "type": "boolean"
870
+ },
871
+ "detect-workspace": {
872
+ "name": "detect-workspace",
873
+ "allowNo": true,
874
+ "type": "boolean"
875
+ },
876
+ "supported-module": {
877
+ "name": "supported-module",
878
+ "default": [],
879
+ "hasDynamicHelp": false,
880
+ "multiple": true,
881
+ "type": "option"
882
+ },
883
+ "check-unsupported-modules": {
884
+ "name": "check-unsupported-modules",
885
+ "allowNo": false,
886
+ "type": "boolean"
887
+ }
888
+ },
889
+ "hasDynamicHelp": false,
890
+ "hidden": true,
891
+ "hiddenAliases": [],
892
+ "id": "debug:parse-file",
893
+ "pluginAlias": "checkly",
894
+ "pluginName": "checkly",
895
+ "pluginType": "core",
896
+ "strict": true,
897
+ "enableJsonFlag": false,
898
+ "isESM": false,
899
+ "relativePath": [
900
+ "dist",
901
+ "commands",
902
+ "debug",
903
+ "parse-file.js"
904
+ ]
905
+ },
906
+ "debug:parse-playwright-config": {
907
+ "aliases": [],
908
+ "args": {},
909
+ "description": "Parses and outputs relevant details of a Playwright configuration file.",
910
+ "flags": {
911
+ "file": {
912
+ "env": "CHECKLY_PLAYWRIGHT_CONFIG_FILE",
913
+ "name": "file",
914
+ "default": "/home/runner/work/checkly-cli/checkly-cli/packages/cli/playwright.config.ts",
915
+ "hasDynamicHelp": false,
916
+ "multiple": false,
917
+ "type": "option"
918
+ }
919
+ },
920
+ "hasDynamicHelp": false,
921
+ "hidden": true,
922
+ "hiddenAliases": [],
923
+ "id": "debug:parse-playwright-config",
924
+ "pluginAlias": "checkly",
925
+ "pluginName": "checkly",
926
+ "pluginType": "core",
927
+ "strict": true,
928
+ "enableJsonFlag": false,
929
+ "isESM": false,
930
+ "relativePath": [
931
+ "dist",
932
+ "commands",
933
+ "debug",
934
+ "parse-playwright-config.js"
935
+ ]
936
+ },
937
+ "debug:parse-project": {
938
+ "aliases": [],
939
+ "args": {},
940
+ "description": "Parses a Checkly project.",
941
+ "flags": {
942
+ "config": {
943
+ "char": "c",
944
+ "description": "The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory.",
945
+ "env": "CHECKLY_CONFIG_FILE",
946
+ "name": "config",
947
+ "hasDynamicHelp": false,
948
+ "multiple": false,
949
+ "type": "option"
950
+ },
951
+ "default-runtime": {
952
+ "description": "The default runtime to use if none is specified.",
953
+ "env": "CHECKLY_DEFAULT_RUNTIME",
954
+ "name": "default-runtime",
955
+ "default": "2025.04",
956
+ "hasDynamicHelp": false,
957
+ "multiple": false,
958
+ "type": "option"
959
+ },
960
+ "verify-runtime-dependencies": {
961
+ "description": "[default: true] Return an error if checks import dependencies that are not supported by the selected runtime.",
962
+ "env": "CHECKLY_VERIFY_RUNTIME_DEPENDENCIES",
963
+ "name": "verify-runtime-dependencies",
964
+ "allowNo": true,
965
+ "type": "boolean"
966
+ },
967
+ "emulate-pw-test": {
968
+ "description": "Pretend to be the pw-test command. Affects validation.",
969
+ "env": "CHECKLY_EMULATE_PW_TEST",
970
+ "name": "emulate-pw-test",
971
+ "allowNo": false,
972
+ "type": "boolean"
973
+ },
974
+ "include": {
975
+ "description": "File patterns to include when bundling the test project (e.g., \"utils/**/*\").",
976
+ "name": "include",
977
+ "default": [],
978
+ "hasDynamicHelp": false,
979
+ "multiple": true,
980
+ "type": "option"
981
+ }
982
+ },
983
+ "hasDynamicHelp": false,
984
+ "hidden": true,
985
+ "hiddenAliases": [],
986
+ "id": "debug:parse-project",
987
+ "pluginAlias": "checkly",
988
+ "pluginName": "checkly",
989
+ "pluginType": "core",
990
+ "strict": true,
991
+ "enableJsonFlag": false,
992
+ "isESM": false,
993
+ "relativePath": [
994
+ "dist",
995
+ "commands",
996
+ "debug",
997
+ "parse-project.js"
998
+ ]
999
+ },
823
1000
  "env:add": {
824
1001
  "aliases": [],
825
1002
  "args": {
@@ -1203,5 +1380,5 @@
1203
1380
  ]
1204
1381
  }
1205
1382
  },
1206
- "version": "6.9.10"
1383
+ "version": "7.0.0-prerelease-061f48a"
1207
1384
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "checkly",
3
- "version": "6.9.10",
3
+ "version": "7.0.0-prerelease-061f48a",
4
4
  "description": "Checkly CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,11 +18,11 @@
18
18
  "clean:gen": "rimraf ./gen",
19
19
  "clean": "npm run clean:dist && npm run clean:gen",
20
20
  "prepack": "npx oclif manifest",
21
- "generate:rules": "cross-env CHECKLY_SKIP_AUTH=1 CHECKLY_CLI_VERSION=99.0.0 ./bin/run import plan --root gen --debug-import-plan-input-file ./src/rules/rules.fixtures.json && ts-node ./scripts/compile-rules.ts",
21
+ "prepare:ai-context": "cross-env CHECKLY_SKIP_AUTH=1 CHECKLY_CLI_VERSION=99.0.0 ./bin/run import plan --root gen --debug-import-plan-input-file ./src/ai-context/context.fixtures.json && ts-node ./scripts/prepare-ai-context.ts",
22
22
  "prepare:dist": "tsc --build",
23
- "prepare": "npm run clean && npm run prepare:dist && npm run generate:rules",
24
- "test": "vitest",
25
- "test:e2e": "npm run prepare && cross-env NODE_CONFIG_DIR=./e2e/config vitest -c ./vitest.config.e2e.mts",
23
+ "prepare": "npm run clean && npm run prepare:dist && npm run prepare:ai-context",
24
+ "test": "npm pack && vitest --run",
25
+ "test:e2e": "npm pack && cross-env NODE_CONFIG_DIR=./e2e/config vitest --run -c ./vitest.config.e2e.mts",
26
26
  "test:e2e:local": "cross-env CHECKLY_BASE_URL=http://localhost:3000 CHECKLY_ENV=local npm run test:e2e",
27
27
  "watch": "tsc --watch"
28
28
  },
@@ -38,6 +38,7 @@
38
38
  "files": [
39
39
  "/bin",
40
40
  "/dist",
41
+ "/assets",
41
42
  "/constructs.js",
42
43
  "/constructs.d.ts",
43
44
  "/oclif.manifest.json"
@@ -89,6 +90,7 @@
89
90
  "chalk": "^4.1.2",
90
91
  "ci-info": "^4.3.1",
91
92
  "conf": "^10.2.0",
93
+ "debug": "^4.4.3",
92
94
  "dotenv": "^16.5.0",
93
95
  "execa": "^9.6.1",
94
96
  "git-repo-info": "^2.1.1",
@@ -114,6 +116,7 @@
114
116
  "@playwright/test": "^1.57.0",
115
117
  "@types/archiver": "6.0.3",
116
118
  "@types/config": "^3.3.5",
119
+ "@types/debug": "^4.1.12",
117
120
  "@types/glob": "^8.1.0",
118
121
  "@types/luxon": "^3.7.1",
119
122
  "@types/node": "^22.14.1",
@@ -129,6 +132,7 @@
129
132
  "oclif": "^4.22.56",
130
133
  "rimraf": "^5.0.10",
131
134
  "simple-git-hooks": "^2.12.1",
135
+ "tar": "^7.5.7",
132
136
  "ts-node": "^10.9.2",
133
137
  "typescript": "^5.3.3",
134
138
  "vitest": "3.1.2"