@speedkit/cli 4.36.1 → 4.36.2

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 (293) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/base/sk-command.d.ts +41 -0
  3. package/dist/base/sk-command.js +56 -0
  4. package/dist/commands/auto-prewarm.d.ts +6 -4
  5. package/dist/commands/auto-prewarm.js +13 -66
  6. package/dist/commands/autocomplete/fish.d.ts +2 -2
  7. package/dist/commands/autocomplete/fish.js +3 -2
  8. package/dist/commands/browser/clean.d.ts +2 -2
  9. package/dist/commands/browser/clean.js +6 -6
  10. package/dist/commands/browser/list.d.ts +2 -2
  11. package/dist/commands/browser/list.js +6 -7
  12. package/dist/commands/browser/update.d.ts +2 -2
  13. package/dist/commands/browser/update.js +9 -11
  14. package/dist/commands/bulk-deploy.d.ts +4 -2
  15. package/dist/commands/bulk-deploy.js +7 -37
  16. package/dist/commands/config/edit.d.ts +2 -2
  17. package/dist/commands/config/edit.js +2 -2
  18. package/dist/commands/config/setup.d.ts +5 -2
  19. package/dist/commands/config/setup.js +9 -19
  20. package/dist/commands/deploy.d.ts +12 -3
  21. package/dist/commands/deploy.js +14 -20
  22. package/dist/commands/diff-url-parameters.d.ts +3 -2
  23. package/dist/commands/diff-url-parameters.js +19 -16
  24. package/dist/commands/extension/add.d.ts +2 -2
  25. package/dist/commands/extension/add.js +6 -6
  26. package/dist/commands/extension/devtools.d.ts +2 -2
  27. package/dist/commands/extension/devtools.js +6 -7
  28. package/dist/commands/extension/list.d.ts +2 -2
  29. package/dist/commands/extension/list.js +5 -6
  30. package/dist/commands/extension/remove.d.ts +2 -2
  31. package/dist/commands/extension/remove.js +6 -6
  32. package/dist/commands/extension/update.d.ts +2 -2
  33. package/dist/commands/extension/update.js +5 -6
  34. package/dist/commands/find-pops.d.ts +2 -2
  35. package/dist/commands/find-pops.js +10 -11
  36. package/dist/commands/generate-customer-config.d.ts +5 -2
  37. package/dist/commands/generate-customer-config.js +9 -27
  38. package/dist/commands/generate-pop-config.d.ts +2 -2
  39. package/dist/commands/generate-pop-config.js +19 -15
  40. package/dist/commands/login.d.ts +2 -2
  41. package/dist/commands/login.js +6 -9
  42. package/dist/commands/onboarding.d.ts +18 -3
  43. package/dist/commands/onboarding.js +13 -11
  44. package/dist/commands/origin-request.d.ts +4 -2
  45. package/dist/commands/origin-request.js +10 -42
  46. package/dist/commands/prewarm.d.ts +4 -2
  47. package/dist/commands/prewarm.js +12 -56
  48. package/dist/commands/pull.d.ts +4 -2
  49. package/dist/commands/pull.js +9 -14
  50. package/dist/commands/query/parameter.d.ts +4 -2
  51. package/dist/commands/query/parameter.js +12 -19
  52. package/dist/commands/query/prewarm.d.ts +4 -2
  53. package/dist/commands/query/prewarm.js +16 -23
  54. package/dist/commands/revalidate.d.ts +4 -2
  55. package/dist/commands/revalidate.js +13 -56
  56. package/dist/commands/wpt-launcher.d.ts +2 -2
  57. package/dist/commands/wpt-launcher.js +16 -17
  58. package/dist/hooks/init/first-run.js +9 -10
  59. package/dist/models/context.d.ts +24 -0
  60. package/dist/models/context.js +31 -0
  61. package/dist/services/athena/athena-flags.d.ts +18 -0
  62. package/dist/services/athena/athena-flags.js +29 -0
  63. package/dist/services/athena/athena-service-build-context.d.ts +25 -0
  64. package/dist/services/athena/athena-service-build-context.js +4 -0
  65. package/dist/services/athena/athena-service-factory.d.ts +3 -16
  66. package/dist/services/athena/athena-service-factory.js +11 -27
  67. package/dist/services/athena/baqend-athena-service.d.ts +3 -14
  68. package/dist/services/athena/baqend-athena-service.js +8 -16
  69. package/dist/services/athena/index.d.ts +1 -0
  70. package/dist/services/athena/index.js +1 -0
  71. package/dist/services/athena/spec/baqend-athena-service.spec.js +2 -2
  72. package/dist/services/browser-fetch/browser-origin-fetch.d.ts +2 -2
  73. package/dist/services/browser-fetch/browser-origin-fetch.js +1 -1
  74. package/dist/services/browser-fetch/browser-origin-fetcher.d.ts +3 -3
  75. package/dist/services/browser-fetch/browser-origin-fetcher.js +5 -5
  76. package/dist/services/browser-fetch/spec/browser-origin-fetch.spec.js +10 -10
  77. package/dist/services/cli/cli-environment-factory.d.ts +25 -0
  78. package/dist/services/cli/cli-environment-factory.js +30 -0
  79. package/dist/services/cli/cli-environment.d.ts +73 -0
  80. package/dist/services/cli/cli-environment.js +216 -0
  81. package/dist/services/cli/cli-service-build-context.d.ts +10 -0
  82. package/dist/services/cli/cli-service-build-context.js +4 -0
  83. package/dist/services/cli/cli-service-factory.d.ts +7 -7
  84. package/dist/services/cli/cli-service-factory.js +7 -7
  85. package/dist/services/cli/cli-service-model.d.ts +0 -4
  86. package/dist/services/cli/cli-service-model.js +0 -6
  87. package/dist/services/cli/cli-service.d.ts +16 -2
  88. package/dist/services/cli/cli-service.js +17 -18
  89. package/dist/services/cli/cli-settings.d.ts +37 -0
  90. package/dist/services/cli/cli-settings.js +23 -0
  91. package/dist/services/cli/command-build-context.d.ts +23 -0
  92. package/dist/services/cli/index.d.ts +5 -1
  93. package/dist/services/cli/index.js +5 -1
  94. package/dist/services/cli/spec/cli-environment-detection.spec.js +52 -0
  95. package/dist/services/cli/spec/cli-environment.spec.js +125 -0
  96. package/dist/services/cli/spec/cli-service.spec.js +9 -19
  97. package/dist/services/config-api/client.d.ts +3 -3
  98. package/dist/services/config-api/client.js +4 -4
  99. package/dist/services/config-api/config-api-factory.js +3 -3
  100. package/dist/services/config-api/entity-manager-provider.d.ts +11 -0
  101. package/dist/services/config-api/{entity-manager-factory.js → entity-manager-provider.js} +7 -1
  102. package/dist/services/customer-config/customer-config-service-build-context.d.ts +33 -0
  103. package/dist/services/customer-config/customer-config-service-build-context.js +36 -0
  104. package/dist/services/customer-config/customer-config-service-factory.d.ts +3 -4
  105. package/dist/services/customer-config/customer-config-service-factory.js +5 -8
  106. package/dist/services/customer-config/customer-config-service.d.ts +2 -2
  107. package/dist/services/customer-config/index.d.ts +1 -1
  108. package/dist/services/customer-config/index.js +1 -1
  109. package/dist/services/customer-config/site-analyzer/index.d.ts +1 -0
  110. package/dist/services/customer-config/site-analyzer/index.js +1 -0
  111. package/dist/services/customer-config/site-analyzer/site-analyzer-service-build-context.d.ts +6 -0
  112. package/dist/services/customer-config/site-analyzer/site-analyzer-service-build-context.js +4 -0
  113. package/dist/services/customer-config/site-analyzer/site-analyzer-service-factory.d.ts +3 -3
  114. package/dist/services/customer-config/site-analyzer/site-analyzer-service-factory.js +4 -5
  115. package/dist/services/deploy/bulk/bulk-deploy-model.d.ts +0 -25
  116. package/dist/services/deploy/bulk/bulk-deploy-model.js +1 -27
  117. package/dist/services/deploy/bulk/bulk-deploy-service-build-context.d.ts +51 -0
  118. package/dist/services/deploy/bulk/bulk-deploy-service-build-context.js +50 -0
  119. package/dist/services/deploy/bulk/bulk-deploy-service-factory.d.ts +2 -4
  120. package/dist/services/deploy/bulk/bulk-deploy-service-factory.js +2 -5
  121. package/dist/services/deploy/bulk/bulk-deploy-service.d.ts +3 -2
  122. package/dist/services/deploy/bulk/config-deploy-factory.d.ts +3 -3
  123. package/dist/services/deploy/bulk/config-deploy-factory.js +16 -8
  124. package/dist/services/deploy/bulk/index.d.ts +1 -0
  125. package/dist/services/deploy/bulk/index.js +1 -0
  126. package/dist/services/deploy/checks/activation/customer-approval-check.d.ts +3 -1
  127. package/dist/services/deploy/checks/activation/customer-approval-check.js +4 -2
  128. package/dist/services/deploy/checks/pre-deploy/device-detection-changed-check.d.ts +3 -1
  129. package/dist/services/deploy/checks/pre-deploy/device-detection-changed-check.js +4 -2
  130. package/dist/services/deploy/checks/pre-deploy/split-change-check.d.ts +3 -1
  131. package/dist/services/deploy/checks/pre-deploy/split-change-check.js +4 -2
  132. package/dist/services/deploy/deploy-service-build-context.d.ts +63 -0
  133. package/dist/services/deploy/deploy-service-build-context.js +64 -0
  134. package/dist/services/deploy/deploy-service-factory.d.ts +5 -8
  135. package/dist/services/deploy/deploy-service-factory.js +28 -19
  136. package/dist/services/deploy/mr/base-config-reader.d.ts +6 -4
  137. package/dist/services/deploy/mr/base-config-reader.js +6 -8
  138. package/dist/services/deploy/mr/index.d.ts +1 -0
  139. package/dist/services/deploy/mr/index.js +1 -0
  140. package/dist/services/deploy/mr/merge-request-deploy-model.d.ts +0 -35
  141. package/dist/services/deploy/mr/merge-request-deploy-model.js +0 -34
  142. package/dist/services/deploy/mr/merge-request-deploy-service-build-context.d.ts +32 -0
  143. package/dist/services/deploy/mr/merge-request-deploy-service-build-context.js +20 -0
  144. package/dist/services/deploy/mr/merge-request-deploy-service-factory.d.ts +2 -4
  145. package/dist/services/deploy/mr/merge-request-deploy-service-factory.js +31 -10
  146. package/dist/services/deploy/mr/merge-request-deploy-service.d.ts +3 -2
  147. package/dist/services/deploy/spec/bulk/bulk-deploy-service.spec.js +14 -3
  148. package/dist/services/deploy/spec/checks/activation/customer-approval-check.spec.js +7 -5
  149. package/dist/services/deploy/spec/checks/pre-deploy/split-change-check.spec.js +2 -1
  150. package/dist/services/diff/diff-service-build-context.d.ts +14 -0
  151. package/dist/services/diff/diff-service-build-context.js +4 -0
  152. package/dist/services/diff/diff-service-factory.d.ts +4 -5
  153. package/dist/services/diff/diff-service-factory.js +4 -7
  154. package/dist/services/diff/index.d.ts +1 -1
  155. package/dist/services/diff/index.js +1 -1
  156. package/dist/services/document-handler-runtime/{context/document-handler-runtime-context.d.ts → document-handler-runtime-model.d.ts} +0 -5
  157. package/dist/services/document-handler-runtime/document-handler-runtime-service-build-context.d.ts +11 -0
  158. package/dist/services/document-handler-runtime/document-handler-runtime-service-build-context.js +4 -0
  159. package/dist/services/document-handler-runtime/document-handler-server.js +2 -2
  160. package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.d.ts +3 -6
  161. package/dist/services/document-handler-runtime/factory/document-handler-runtime-service-factory.js +14 -14
  162. package/dist/services/document-handler-runtime/server/request.js +1 -1
  163. package/dist/services/document-handler-runtime/templates/database-mock.d.ts +1 -1
  164. package/dist/services/document-handler-runtime/templates/database-mock.js +1 -1
  165. package/dist/services/integration-api/customer-config-flags.d.ts +16 -0
  166. package/dist/services/integration-api/customer-config-flags.js +30 -0
  167. package/dist/services/integration-api/handler/install-resource-handler.d.ts +8 -0
  168. package/dist/services/integration-api/handler/install-resource-handler.js +10 -1
  169. package/dist/services/integration-api/index.d.ts +1 -0
  170. package/dist/services/integration-api/index.js +1 -0
  171. package/dist/services/integration-api/integration-api-factory.d.ts +4 -6
  172. package/dist/services/integration-api/integration-api-factory.js +11 -11
  173. package/dist/services/integration-api/integration-api-model.d.ts +0 -9
  174. package/dist/services/integration-api/integration-api-model.js +0 -16
  175. package/dist/services/integration-api/integration-api-service-build-context.d.ts +19 -0
  176. package/dist/services/integration-api/integration-api-service-build-context.js +4 -0
  177. package/dist/services/integration-api/spec/config-plugin.spec.js +1 -1
  178. package/dist/services/integration-api/spec/integration-api-service.spec.js +7 -3
  179. package/dist/services/integration-api/spec/speed-kit-config-file.spec.js +9 -2
  180. package/dist/services/integration-api/struct/config-plugin.d.ts +1 -1
  181. package/dist/services/integration-api/struct/config-plugin.js +12 -7
  182. package/dist/services/integration-api/struct/speed-kit-config-file.d.ts +18 -2
  183. package/dist/services/integration-api/struct/speed-kit-config-file.js +22 -12
  184. package/dist/services/integration-api/struct/speed-kit-config.d.ts +1 -1
  185. package/dist/services/onboarding/browser/config/browser-config.d.ts +3 -3
  186. package/dist/services/onboarding/browser/config/browser-config.js +5 -5
  187. package/dist/services/onboarding/browser/executable/executable-validator.d.ts +3 -3
  188. package/dist/services/onboarding/browser/executable/executable-validator.js +17 -15
  189. package/dist/services/onboarding/browser/extension/extension-downloader.d.ts +3 -3
  190. package/dist/services/onboarding/browser/extension/extension-downloader.js +6 -6
  191. package/dist/services/onboarding/browser/extension/extension-validator.d.ts +3 -3
  192. package/dist/services/onboarding/browser/extension/extension-validator.js +4 -4
  193. package/dist/services/onboarding/file-events/file-watcher.js +1 -0
  194. package/dist/services/onboarding/index.d.ts +1 -1
  195. package/dist/services/onboarding/index.js +1 -1
  196. package/dist/services/onboarding/onboarding-model.d.ts +8 -24
  197. package/dist/services/onboarding/onboarding-model.js +19 -87
  198. package/dist/services/onboarding/onboarding-service-build-context.d.ts +57 -0
  199. package/dist/services/onboarding/onboarding-service-build-context.js +67 -0
  200. package/dist/services/onboarding/onboarding-service-factory.d.ts +2 -5
  201. package/dist/services/onboarding/onboarding-service-factory.js +47 -34
  202. package/dist/services/onboarding/spec/onboarding-model.spec.js +11 -6
  203. package/dist/services/origin-request/index.d.ts +1 -1
  204. package/dist/services/origin-request/index.js +1 -1
  205. package/dist/services/origin-request/origin-request-service-build-context.d.ts +52 -0
  206. package/dist/services/origin-request/origin-request-service-build-context.js +54 -0
  207. package/dist/services/origin-request/origin-request-service-factory.d.ts +2 -5
  208. package/dist/services/origin-request/origin-request-service-factory.js +12 -12
  209. package/dist/services/origin-request/origin-request-service.d.ts +2 -2
  210. package/dist/services/pop-config/index.d.ts +1 -0
  211. package/dist/services/pop-config/index.js +1 -0
  212. package/dist/services/pop-config/pop-config-factory.d.ts +4 -1
  213. package/dist/services/pop-config/pop-config-factory.js +10 -3
  214. package/dist/services/pop-config/pop-config-service-build-context.d.ts +10 -0
  215. package/dist/services/pop-config/pop-config-service-build-context.js +4 -0
  216. package/dist/services/prewarm/auto-pre-warm-factory.d.ts +3 -31
  217. package/dist/services/prewarm/auto-pre-warm-factory.js +6 -11
  218. package/dist/services/prewarm/auto-pre-warm-service-build-context.d.ts +84 -0
  219. package/dist/services/prewarm/auto-pre-warm-service-build-context.js +68 -0
  220. package/dist/services/prewarm/index.d.ts +2 -0
  221. package/dist/services/prewarm/index.js +2 -0
  222. package/dist/services/prewarm/pre-warm-factory.d.ts +4 -5
  223. package/dist/services/prewarm/pre-warm-factory.js +6 -8
  224. package/dist/services/prewarm/pre-warm-model.d.ts +0 -10
  225. package/dist/services/prewarm/pre-warm-model.js +0 -18
  226. package/dist/services/prewarm/pre-warm-service-build-context.d.ts +47 -0
  227. package/dist/services/prewarm/pre-warm-service-build-context.js +64 -0
  228. package/dist/services/pull/index.d.ts +1 -0
  229. package/dist/services/pull/index.js +1 -0
  230. package/dist/services/pull/pull-service-build-context.d.ts +28 -0
  231. package/dist/services/pull/pull-service-build-context.js +17 -0
  232. package/dist/services/pull/pull-service-factory.d.ts +3 -5
  233. package/dist/services/pull/pull-service-factory.js +13 -14
  234. package/dist/services/pull/pull-service-model.d.ts +0 -5
  235. package/dist/services/pull/pull-service-model.js +0 -9
  236. package/dist/services/query-builder/query-builder-factory.d.ts +9 -7
  237. package/dist/services/query-builder/query-builder-factory.js +26 -15
  238. package/dist/{models/cli-parameters.d.ts → services/query-builder/query-builder-flags.d.ts} +1 -120
  239. package/dist/services/query-builder/query-builder-flags.js +150 -0
  240. package/dist/services/query-builder/query-builder-model.d.ts +1 -14
  241. package/dist/services/query-builder/query-builder-service-build-context.d.ts +113 -0
  242. package/dist/services/query-builder/query-builder-service-build-context.js +68 -0
  243. package/dist/services/query-builder/query-builder-service.d.ts +3 -3
  244. package/dist/services/query-builder/spec/query-builder-flags.spec.d.ts +1 -0
  245. package/dist/{models/spec/cli-parameters.spec.js → services/query-builder/spec/query-builder-flags.spec.js} +1 -1
  246. package/dist/services/revalidate/index.d.ts +1 -0
  247. package/dist/services/revalidate/index.js +1 -0
  248. package/dist/services/revalidate/revalidate-factory.d.ts +3 -5
  249. package/dist/services/revalidate/revalidate-factory.js +2 -6
  250. package/dist/services/revalidate/revalidate-model.d.ts +0 -9
  251. package/dist/services/revalidate/revalidate-model.js +0 -8
  252. package/dist/services/revalidate/revalidate-service-build-context.d.ts +38 -0
  253. package/dist/services/revalidate/revalidate-service-build-context.js +59 -0
  254. package/dist/services/setup/browser/browser-setup-service.d.ts +3 -4
  255. package/dist/services/setup/browser/browser-setup-service.js +16 -18
  256. package/dist/services/setup/difftool/difftool-setup-service.d.ts +3 -4
  257. package/dist/services/setup/difftool/difftool-setup-service.js +5 -7
  258. package/dist/services/setup/extension/extension-setup-service.d.ts +3 -4
  259. package/dist/services/setup/extension/extension-setup-service.js +8 -10
  260. package/dist/services/setup/index.d.ts +1 -1
  261. package/dist/services/setup/index.js +1 -1
  262. package/dist/services/setup/setup-service-build-context.d.ts +27 -0
  263. package/dist/services/setup/setup-service-build-context.js +26 -0
  264. package/dist/services/setup/setup-service-factory.d.ts +2 -6
  265. package/dist/services/setup/setup-service-factory.js +10 -18
  266. package/dist/services/setup/setup-service.d.ts +4 -5
  267. package/dist/services/setup/setup-service.js +6 -7
  268. package/oclif.manifest.json +1 -1
  269. package/package.json +4 -2
  270. package/dist/models/cli-parameters.js +0 -297
  271. package/dist/services/cli/cli-config.d.ts +0 -59
  272. package/dist/services/cli/cli-config.js +0 -180
  273. package/dist/services/cli/environment.d.ts +0 -15
  274. package/dist/services/cli/environment.js +0 -40
  275. package/dist/services/cli/spec/cli-config.spec.js +0 -117
  276. package/dist/services/cli/spec/environment.spec.js +0 -28
  277. package/dist/services/config-api/entity-manager-factory.d.ts +0 -5
  278. package/dist/services/customer-config/customer-config-service-context.d.ts +0 -13
  279. package/dist/services/customer-config/customer-config-service-context.js +0 -21
  280. package/dist/services/deploy/context/deploy-context.d.ts +0 -32
  281. package/dist/services/deploy/context/deploy-context.js +0 -72
  282. package/dist/services/diff/diff-model.d.ts +0 -9
  283. package/dist/services/diff/diff-model.js +0 -12
  284. package/dist/services/origin-request/origin-request-context.d.ts +0 -13
  285. package/dist/services/origin-request/origin-request-context.js +0 -23
  286. package/dist/services/query-builder/query-command.d.ts +0 -28
  287. package/dist/services/query-builder/query-command.js +0 -37
  288. package/dist/services/setup/setup-context.d.ts +0 -14
  289. package/dist/services/setup/setup-context.js +0 -15
  290. /package/dist/{models/spec/cli-parameters.spec.d.ts → services/cli/command-build-context.js} +0 -0
  291. /package/dist/services/cli/spec/{cli-config.spec.d.ts → cli-environment-detection.spec.d.ts} +0 -0
  292. /package/dist/services/cli/spec/{environment.spec.d.ts → cli-environment.spec.d.ts} +0 -0
  293. /package/dist/services/document-handler-runtime/{context/document-handler-runtime-context.js → document-handler-runtime-model.js} +0 -0
@@ -1,180 +0,0 @@
1
- import * as dotenv from "dotenv";
2
- import fs from "node:fs";
3
- import path, { resolve } from "node:path";
4
- import { parseChromeFlags } from "../../helpers/chrome-flags.js";
5
- dotenv.config({ quiet: true });
6
- const environmentMapping = {
7
- chromeExtensionPaths: "CHROME_EXTENSION_PATHS",
8
- chromeFlags: "CHROME_FLAGS",
9
- chromePath: "CHROME_PATH",
10
- chromeUserProfilePath: "CHROME_USER_PROFILE_PATH",
11
- diffExec: "DIFF_EXEC",
12
- diffExecTemplate: "DIFF_EXEC_TEMPLATE",
13
- ideaDirectory: "IDEA_INITIAL_DIRECTORY",
14
- slackToken: "SLACK_TOKEN",
15
- testApp: "TEST_APP",
16
- };
17
- const CONFIG_FILE_NAME = "config.json";
18
- // keys that only exist at runtime and must never be written to config.json
19
- const RUNTIME_ONLY_KEYS = [
20
- "tempFolder",
21
- "runtimeConfig",
22
- "nodeModulesPath",
23
- ];
24
- export class CliConfig {
25
- config;
26
- userCliConfig = {
27
- chromeExtensionPaths: "",
28
- chromeFlags: [],
29
- chromePath: "",
30
- chromeUserProfilePath: "",
31
- diffExec: "",
32
- diffExecTemplate: "$exec $file1 $file2",
33
- diffTool: "",
34
- ideaDirectory: "",
35
- slackToken: "",
36
- testApp: "",
37
- browserChannel: "",
38
- browserBuildId: "",
39
- browserAutoUpdate: false,
40
- updateReminderDays: 3,
41
- lastBrowserUpdateCheck: "",
42
- managedChromeExtensions: [],
43
- lastExtensionUpdateCheck: "",
44
- firstRunCompleted: false,
45
- tempFolder: "/tmp",
46
- runtimeConfig: {},
47
- };
48
- constructor(config) {
49
- this.config = config;
50
- }
51
- load(customerPath) {
52
- // load config from configFile
53
- this.loadConfigFromConfigFile();
54
- // override config from environment
55
- this.loadConfigFromEnvironment();
56
- // The environment holds a string, config.json an array.
57
- this.userCliConfig.chromeFlags = parseChromeFlags(this.userCliConfig.chromeFlags);
58
- this.resolveExtensionConfigPaths();
59
- this.userCliConfig.tempFolder = this.config.cacheDir;
60
- this.userCliConfig.runtimeConfig = this.config;
61
- this.userCliConfig.nodeModulesPath = resolve(this.config.cacheDir, "additional_node_modules", customerPath || "");
62
- return this.userCliConfig;
63
- }
64
- createEmptyConfigFile() {
65
- fs.mkdirSync(path.resolve(this.config.configDir), { recursive: true });
66
- fs.writeFileSync(this.getConfigFilePath(), JSON.stringify(this.createEmptyUserConfig(), null, `\t`));
67
- }
68
- createEmptyUserConfig() {
69
- return {
70
- chromeExtensionPaths: "",
71
- chromeFlags: [],
72
- chromePath: "",
73
- chromeUserProfilePath: "",
74
- diffExec: "",
75
- diffExecTemplate: "$exec $file1 $file2",
76
- diffTool: "",
77
- ideaDirectory: "",
78
- slackToken: "",
79
- testApp: "",
80
- browserChannel: "",
81
- browserBuildId: "",
82
- browserAutoUpdate: false,
83
- updateReminderDays: 3,
84
- lastBrowserUpdateCheck: "",
85
- managedChromeExtensions: [],
86
- lastExtensionUpdateCheck: "",
87
- firstRunCompleted: false,
88
- };
89
- }
90
- /**
91
- * Persists the given settings into the user config.json, merging with what
92
- * is already there. Runtime-only keys are stripped so they never leak into
93
- * the file. Also reflects the change in the in-memory config so the running
94
- * command sees it immediately.
95
- */
96
- save(partial) {
97
- const sanitized = {};
98
- for (const [key, value] of Object.entries(partial)) {
99
- if (!RUNTIME_ONLY_KEYS.includes(key)) {
100
- sanitized[key] = value;
101
- }
102
- }
103
- const existing = this.readRawConfigFile() ?? {};
104
- const merged = { ...existing, ...sanitized };
105
- fs.mkdirSync(path.resolve(this.config.configDir), { recursive: true });
106
- fs.writeFileSync(this.getConfigFilePath(), JSON.stringify(merged, null, `\t`));
107
- Object.assign(this.userCliConfig, sanitized);
108
- }
109
- getConfigFilePath() {
110
- return path.resolve(this.config.configDir, CONFIG_FILE_NAME);
111
- }
112
- loadConfigFromConfigFile() {
113
- const configJson = this.readCliConfigFromFile();
114
- if (!configJson) {
115
- return;
116
- }
117
- for (const configKey in this.userCliConfig) {
118
- if (!(configKey in configJson)) {
119
- continue;
120
- }
121
- const value = configJson[configKey];
122
- // skip null/undefined and empty strings so file values only override
123
- // defaults when they carry an actual setting (keeps booleans/numbers,
124
- // unlike the previous `.length`-only check which dropped them)
125
- if (value === undefined || value === null) {
126
- continue;
127
- }
128
- if (typeof value === "string" && value.length === 0) {
129
- continue;
130
- }
131
- this.userCliConfig[configKey] = value;
132
- }
133
- }
134
- loadConfigFromEnvironment() {
135
- for (const configKey in this.userCliConfig) {
136
- if (!(configKey in environmentMapping)) {
137
- continue;
138
- }
139
- const environmentVariable = environmentMapping[configKey];
140
- if (environmentVariable in process.env &&
141
- process.env[environmentVariable].length > 0) {
142
- this.userCliConfig[configKey] = process.env[environmentVariable];
143
- }
144
- }
145
- }
146
- resolveExtensionConfigPaths() {
147
- const pathKeys = [
148
- "chromeExtensionPaths",
149
- "chromeUserProfilePath",
150
- "chromePath",
151
- "ideaDirectory",
152
- ];
153
- for (const key of pathKeys) {
154
- this.userCliConfig[key] = this.userCliConfig[key].replaceAll(new RegExp("~", "g"), this.config.home);
155
- }
156
- }
157
- readCliConfigFromFile() {
158
- if (!fs.existsSync(this.getConfigFilePath())) {
159
- this.createEmptyConfigFile();
160
- return;
161
- }
162
- return this.readRawConfigFile();
163
- }
164
- /**
165
- * Reads and parses config.json without any side effects. Returns null when
166
- * the file is missing or cannot be parsed.
167
- */
168
- readRawConfigFile() {
169
- if (!fs.existsSync(this.getConfigFilePath())) {
170
- return null;
171
- }
172
- try {
173
- const configFileContent = fs.readFileSync(this.getConfigFilePath(), "utf8");
174
- return JSON.parse(configFileContent);
175
- }
176
- catch {
177
- return null;
178
- }
179
- }
180
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Environment detection helpers used to decide whether interactive flows
3
- * (e.g. the first-run wizard) may prompt the user.
4
- */
5
- /**
6
- * Detects common CI environments. Most CI providers set `CI=true`, and several
7
- * set their own dedicated variable, so we check both.
8
- */
9
- export declare function isCI(env?: NodeJS.ProcessEnv): boolean;
10
- /**
11
- * True when we cannot safely prompt the user: running in CI, without an
12
- * attached TTY (e.g. piped output, npm background install), or when the user
13
- * explicitly opted out via SK_NON_INTERACTIVE.
14
- */
15
- export declare function isNonInteractive(env?: NodeJS.ProcessEnv): boolean;
@@ -1,40 +0,0 @@
1
- /**
2
- * Environment detection helpers used to decide whether interactive flows
3
- * (e.g. the first-run wizard) may prompt the user.
4
- */
5
- /**
6
- * Detects common CI environments. Most CI providers set `CI=true`, and several
7
- * set their own dedicated variable, so we check both.
8
- */
9
- export function isCI(env = process.env) {
10
- if (env.CI !== undefined && env.CI !== "false" && env.CI !== "0") {
11
- return true;
12
- }
13
- const ciMarkers = [
14
- "CONTINUOUS_INTEGRATION",
15
- "BUILD_NUMBER",
16
- "GITLAB_CI",
17
- "GITHUB_ACTIONS",
18
- "JENKINS_URL",
19
- "TEAMCITY_VERSION",
20
- "TF_BUILD",
21
- "BITBUCKET_BUILD_NUMBER",
22
- "CIRCLECI",
23
- "TRAVIS",
24
- ];
25
- return ciMarkers.some((marker) => Boolean(env[marker]));
26
- }
27
- /**
28
- * True when we cannot safely prompt the user: running in CI, without an
29
- * attached TTY (e.g. piped output, npm background install), or when the user
30
- * explicitly opted out via SK_NON_INTERACTIVE.
31
- */
32
- export function isNonInteractive(env = process.env) {
33
- if (env.SK_NON_INTERACTIVE !== undefined && env.SK_NON_INTERACTIVE !== "") {
34
- return true;
35
- }
36
- if (isCI(env)) {
37
- return true;
38
- }
39
- return !process.stdin.isTTY || !process.stdout.isTTY;
40
- }
@@ -1,117 +0,0 @@
1
- import { expect } from "chai";
2
- import { describe, beforeEach, afterEach, it } from "mocha";
3
- import { mkdtempSync, rmSync, readFileSync } from "node:fs";
4
- import { tmpdir } from "node:os";
5
- import path from "node:path";
6
- import { CliConfig } from "../cli-config.js";
7
- function fakeOclifConfig(dir) {
8
- return {
9
- configDir: dir,
10
- cacheDir: dir,
11
- home: "/home/tester",
12
- windows: false,
13
- };
14
- }
15
- describe("CliConfig save/load", () => {
16
- let dir;
17
- beforeEach(() => {
18
- dir = mkdtempSync(path.join(tmpdir(), "sk-cli-config-"));
19
- });
20
- afterEach(() => {
21
- rmSync(dir, { recursive: true, force: true });
22
- });
23
- it("persists and reloads boolean and number settings with their types", () => {
24
- const cfg = new CliConfig(fakeOclifConfig(dir));
25
- cfg.load();
26
- cfg.save({
27
- browserAutoUpdate: true,
28
- updateReminderDays: 7,
29
- firstRunCompleted: true,
30
- browserChannel: "stable",
31
- });
32
- const reloaded = new CliConfig(fakeOclifConfig(dir)).load();
33
- expect(reloaded.browserAutoUpdate).to.equal(true);
34
- expect(reloaded.updateReminderDays).to.equal(7);
35
- expect(reloaded.firstRunCompleted).to.equal(true);
36
- expect(reloaded.browserChannel).to.equal("stable");
37
- });
38
- it("merges partial saves instead of overwriting the whole file", () => {
39
- const cfg = new CliConfig(fakeOclifConfig(dir));
40
- cfg.load();
41
- cfg.save({ diffTool: "code", diffExec: "/usr/bin/code" });
42
- cfg.save({ browserChannel: "experimental" });
43
- const reloaded = new CliConfig(fakeOclifConfig(dir)).load();
44
- expect(reloaded.diffTool).to.equal("code");
45
- expect(reloaded.diffExec).to.equal("/usr/bin/code");
46
- expect(reloaded.browserChannel).to.equal("experimental");
47
- });
48
- it("never writes runtime-only keys to config.json", () => {
49
- const cfg = new CliConfig(fakeOclifConfig(dir));
50
- cfg.load();
51
- cfg.save({
52
- firstRunCompleted: true,
53
- // runtime-only keys must be stripped
54
- tempFolder: "/should/not/be/persisted",
55
- nodeModulesPath: "/should/not/be/persisted",
56
- });
57
- const raw = JSON.parse(readFileSync(path.join(dir, "config.json"), "utf8"));
58
- expect(raw).to.not.have.property("tempFolder");
59
- expect(raw).to.not.have.property("nodeModulesPath");
60
- expect(raw).to.not.have.property("runtimeConfig");
61
- expect(raw.firstRunCompleted).to.equal(true);
62
- });
63
- it("keeps defaults for a false boolean stored in the file", () => {
64
- const cfg = new CliConfig(fakeOclifConfig(dir));
65
- cfg.load();
66
- cfg.save({ browserAutoUpdate: false });
67
- const reloaded = new CliConfig(fakeOclifConfig(dir)).load();
68
- expect(reloaded.browserAutoUpdate).to.equal(false);
69
- });
70
- it("round-trips the managedChromeExtensions array", () => {
71
- const cfg = new CliConfig(fakeOclifConfig(dir));
72
- cfg.load();
73
- cfg.save({
74
- managedChromeExtensions: [
75
- { id: "abc", name: "Ext", version: "1.0.0", path: "/tmp/ext/abc" },
76
- ],
77
- });
78
- const reloaded = new CliConfig(fakeOclifConfig(dir)).load();
79
- expect(reloaded.managedChromeExtensions).to.have.length(1);
80
- expect(reloaded.managedChromeExtensions[0].id).to.equal("abc");
81
- expect(reloaded.managedChromeExtensions[0].version).to.equal("1.0.0");
82
- });
83
- describe("chromeFlags", () => {
84
- const previous = process.env.CHROME_FLAGS;
85
- afterEach(() => {
86
- if (previous === undefined) {
87
- delete process.env.CHROME_FLAGS;
88
- }
89
- else {
90
- process.env.CHROME_FLAGS = previous;
91
- }
92
- });
93
- it("reads the array from config.json", () => {
94
- delete process.env.CHROME_FLAGS;
95
- new CliConfig(fakeOclifConfig(dir)).save({
96
- chromeFlags: ["--ozone-platform=wayland"],
97
- });
98
- const loaded = new CliConfig(fakeOclifConfig(dir)).load();
99
- expect(loaded.chromeFlags).to.deep.equal(["--ozone-platform=wayland"]);
100
- });
101
- it("lets CHROME_FLAGS replace config.json, parsed into an array", () => {
102
- new CliConfig(fakeOclifConfig(dir)).save({
103
- chromeFlags: ["--ozone-platform=wayland"],
104
- });
105
- process.env.CHROME_FLAGS = "--enable-features=A,B --mute-audio";
106
- const loaded = new CliConfig(fakeOclifConfig(dir)).load();
107
- expect(loaded.chromeFlags).to.deep.equal([
108
- "--enable-features=A,B",
109
- "--mute-audio",
110
- ]);
111
- });
112
- it("defaults to no flags", () => {
113
- delete process.env.CHROME_FLAGS;
114
- expect(new CliConfig(fakeOclifConfig(dir)).load().chromeFlags).to.deep.equal([]);
115
- });
116
- });
117
- });
@@ -1,28 +0,0 @@
1
- import { expect } from "chai";
2
- import { describe, it } from "mocha";
3
- import { isCI, isNonInteractive } from "../environment.js";
4
- describe("environment.isCI", () => {
5
- it("is false for an empty environment", () => {
6
- expect(isCI({})).to.equal(false);
7
- });
8
- it("is true when CI is set to a truthy value", () => {
9
- expect(isCI({ CI: "true" })).to.equal(true);
10
- expect(isCI({ CI: "1" })).to.equal(true);
11
- });
12
- it("treats CI=false / CI=0 as not CI", () => {
13
- expect(isCI({ CI: "false" })).to.equal(false);
14
- expect(isCI({ CI: "0" })).to.equal(false);
15
- });
16
- it("detects provider-specific markers", () => {
17
- expect(isCI({ GITLAB_CI: "true" })).to.equal(true);
18
- expect(isCI({ GITHUB_ACTIONS: "true" })).to.equal(true);
19
- });
20
- });
21
- describe("environment.isNonInteractive", () => {
22
- it("is true when SK_NON_INTERACTIVE is set", () => {
23
- expect(isNonInteractive({ SK_NON_INTERACTIVE: "1" })).to.equal(true);
24
- });
25
- it("is true when running in CI", () => {
26
- expect(isNonInteractive({ CI: "true" })).to.equal(true);
27
- });
28
- });
@@ -1,5 +0,0 @@
1
- import { EntityManager } from "baqend";
2
- export declare class EntityManagerFactory {
3
- EntityManager: EntityManager;
4
- getEntityManager(app: string): Promise<EntityManager>;
5
- }
@@ -1,13 +0,0 @@
1
- export declare class CustomerConfigServiceContext {
2
- appName: string;
3
- customersDirectory: string;
4
- /** Explicit templates/ root; overrides checkout detection and the remote fetch. */
5
- templatesPath?: string;
6
- /** Template set = wizard mode: "customer-config" (default) or "pre-poc". */
7
- mode: string;
8
- constructor(appName?: string, customersDirectory?: string,
9
- /** Explicit templates/ root; overrides checkout detection and the remote fetch. */
10
- templatesPath?: string,
11
- /** Template set = wizard mode: "customer-config" (default) or "pre-poc". */
12
- mode?: string);
13
- }
@@ -1,21 +0,0 @@
1
- import { CLIParametersExample } from "../../models/cli-parameters.js";
2
- export class CustomerConfigServiceContext {
3
- appName;
4
- customersDirectory;
5
- templatesPath;
6
- mode;
7
- constructor(appName = "", customersDirectory = CLIParametersExample.CustomersDirectory,
8
- /** Explicit templates/ root; overrides checkout detection and the remote fetch. */
9
- templatesPath,
10
- /** Template set = wizard mode: "customer-config" (default) or "pre-poc". */
11
- mode = "customer-config") {
12
- this.appName = appName;
13
- this.customersDirectory = customersDirectory;
14
- this.templatesPath = templatesPath;
15
- this.mode = mode;
16
- this.appName = appName;
17
- this.customersDirectory = customersDirectory;
18
- this.templatesPath = templatesPath;
19
- this.mode = mode;
20
- }
21
- }
@@ -1,32 +0,0 @@
1
- import { Command } from "@oclif/core/command";
2
- export default class DeployContext {
3
- readonly customerPath: string;
4
- readonly configName: string;
5
- readonly dryRun: boolean;
6
- readonly useTestConfig: boolean;
7
- /** Leave out the modules and the server config, which a bulk never deploys. */
8
- readonly installFilesOnly: boolean;
9
- /**
10
- * Leave out the checks that run after the upload. Each of them asks the
11
- * app for its jobs and its modules, which a run over many customers pays
12
- * for once per customer.
13
- */
14
- readonly skipPostDeployChecks: boolean;
15
- /** Open the diff tool for a file that differs, as a person expects. */
16
- readonly opensDiffTool: boolean;
17
- static flags: Record<string, Command.Flag>;
18
- readonly artifacts?: string[];
19
- readonly isProduction: boolean;
20
- constructor(customerPath: string, configName?: string, artifacts?: string, dryRun?: boolean, useTestConfig?: boolean,
21
- /** Leave out the modules and the server config, which a bulk never deploys. */
22
- installFilesOnly?: boolean,
23
- /**
24
- * Leave out the checks that run after the upload. Each of them asks the
25
- * app for its jobs and its modules, which a run over many customers pays
26
- * for once per customer.
27
- */
28
- skipPostDeployChecks?: boolean,
29
- /** Open the diff tool for a file that differs, as a person expects. */
30
- opensDiffTool?: boolean);
31
- hasArtifacts(): boolean;
32
- }
@@ -1,72 +0,0 @@
1
- import * as dotenv from "dotenv";
2
- import { CLI_CONFIG_IS_TEST, CLI_CONFIG_NAME, } from "../../../models/cli-parameters.js";
3
- import { Flags } from "@oclif/core";
4
- dotenv.config({ quiet: true });
5
- const DEFAULT_CONFIG_NAME = "production";
6
- const ARTIFACTS_SEPARATOR = ",";
7
- export default class DeployContext {
8
- customerPath;
9
- configName;
10
- dryRun;
11
- useTestConfig;
12
- installFilesOnly;
13
- skipPostDeployChecks;
14
- opensDiffTool;
15
- static flags = {
16
- ...CLI_CONFIG_NAME,
17
- ...CLI_CONFIG_IS_TEST,
18
- dryRun: Flags.boolean({
19
- char: "d",
20
- default: false,
21
- description: "dry run",
22
- }),
23
- verboseLevel: Flags.boolean({
24
- char: "v",
25
- default: false,
26
- description: "Show all messages",
27
- }),
28
- artifacts: Flags.string({
29
- char: "a",
30
- description: "which files to upload",
31
- }),
32
- mr: Flags.integer({
33
- description: "deploy the reviewed change of this merged merge request, without questions",
34
- }),
35
- description: Flags.string({
36
- dependsOn: ["mr"],
37
- description: "the description every installation of the run gets, asked while it is left out",
38
- }),
39
- approval: Flags.string({
40
- options: ["approved", "testing", "skip"],
41
- // No default: oclif counts a defaulted flag as given, so dependsOn would fail every deploy.
42
- dependsOn: ["mr"],
43
- description: "what to do with a customer that approves every rollout themselves",
44
- }),
45
- };
46
- artifacts;
47
- isProduction;
48
- constructor(customerPath, configName = DEFAULT_CONFIG_NAME, artifacts, dryRun = false, useTestConfig = false,
49
- /** Leave out the modules and the server config, which a bulk never deploys. */
50
- installFilesOnly = false,
51
- /**
52
- * Leave out the checks that run after the upload. Each of them asks the
53
- * app for its jobs and its modules, which a run over many customers pays
54
- * for once per customer.
55
- */
56
- skipPostDeployChecks = false,
57
- /** Open the diff tool for a file that differs, as a person expects. */
58
- opensDiffTool = true) {
59
- this.customerPath = customerPath;
60
- this.configName = configName;
61
- this.dryRun = dryRun;
62
- this.useTestConfig = useTestConfig;
63
- this.installFilesOnly = installFilesOnly;
64
- this.skipPostDeployChecks = skipPostDeployChecks;
65
- this.opensDiffTool = opensDiffTool;
66
- this.artifacts = artifacts ? artifacts.split(ARTIFACTS_SEPARATOR) : [];
67
- this.isProduction = configName.toLowerCase().includes("prod");
68
- }
69
- hasArtifacts() {
70
- return this.artifacts?.length > 0;
71
- }
72
- }
@@ -1,9 +0,0 @@
1
- export declare class DiffContext {
2
- readonly executablePath: string;
3
- readonly executableTemplate: string;
4
- /** A deploy that nobody drives never opens a diff tool. */
5
- readonly opensDiffTool: boolean;
6
- constructor(executablePath: string, executableTemplate: string,
7
- /** A deploy that nobody drives never opens a diff tool. */
8
- opensDiffTool?: boolean);
9
- }
@@ -1,12 +0,0 @@
1
- export class DiffContext {
2
- executablePath;
3
- executableTemplate;
4
- opensDiffTool;
5
- constructor(executablePath, executableTemplate,
6
- /** A deploy that nobody drives never opens a diff tool. */
7
- opensDiffTool = true) {
8
- this.executablePath = executablePath;
9
- this.executableTemplate = executableTemplate;
10
- this.opensDiffTool = opensDiffTool;
11
- }
12
- }
@@ -1,13 +0,0 @@
1
- /** Inputs for `sk origin-request`. No logic. */
2
- export declare class OriginRequestContext {
3
- readonly customerPath: string;
4
- readonly configName: string;
5
- readonly pageUrl: string;
6
- readonly variation?: string;
7
- readonly host?: string;
8
- readonly bodyFile?: string;
9
- readonly grep?: string;
10
- readonly json?: boolean;
11
- readonly variationsFile?: string;
12
- constructor(customerPath: string, configName: string, pageUrl: string, variation?: string, host?: string, bodyFile?: string, grep?: string, json?: boolean, variationsFile?: string);
13
- }
@@ -1,23 +0,0 @@
1
- /** Inputs for `sk origin-request`. No logic. */
2
- export class OriginRequestContext {
3
- customerPath;
4
- configName;
5
- pageUrl;
6
- variation;
7
- host;
8
- bodyFile;
9
- grep;
10
- json;
11
- variationsFile;
12
- constructor(customerPath, configName, pageUrl, variation, host, bodyFile, grep, json, variationsFile) {
13
- this.customerPath = customerPath;
14
- this.configName = configName;
15
- this.pageUrl = pageUrl;
16
- this.variation = variation;
17
- this.host = host;
18
- this.bodyFile = bodyFile;
19
- this.grep = grep;
20
- this.json = json;
21
- this.variationsFile = variationsFile;
22
- }
23
- }
@@ -1,28 +0,0 @@
1
- import { Config } from "@oclif/core";
2
- import { ParameterOptions, PrewarmOptions } from "./queries/query-model.js";
3
- import { QueryFilterOptions, QueryType } from "./query-builder-model.js";
4
- /**
5
- * The flags a query command parses; each takes the ones it offers.
6
- *
7
- * `--device` and `--variation` are named as the flags are, singular, and are
8
- * the two the caller gives rather than the list the builder works on.
9
- */
10
- export interface QueryCommandFlags extends ParameterOptions, Omit<PrewarmOptions, "devices" | "variations">, QueryFilterOptions {
11
- readonly catalog?: string;
12
- readonly configName: string;
13
- readonly device?: readonly string[];
14
- readonly execute?: boolean;
15
- readonly explain?: boolean;
16
- readonly quiet?: boolean;
17
- readonly variation?: readonly string[];
18
- readonly workgroup?: string;
19
- }
20
- /**
21
- * Builds one of the config-derived queries and hands it over.
22
- *
23
- * Both `sk query` commands differ only in which query they ask for, so the
24
- * wiring lives here rather than twice in the command layer — the two of them
25
- * drifting apart is what left a diverged copy of the parameter query behind
26
- * once already.
27
- */
28
- export declare function runQuery(queryType: QueryType, customerPath: string, flags: QueryCommandFlags, config: Config): Promise<void>;
@@ -1,37 +0,0 @@
1
- import { QueryBuilderFactory } from "./query-builder-factory.js";
2
- import { normalizeDevices } from "./queries/device.js";
3
- import { CliConfig } from "../cli/index.js";
4
- /**
5
- * Builds one of the config-derived queries and hands it over.
6
- *
7
- * Both `sk query` commands differ only in which query they ask for, so the
8
- * wiring lives here rather than twice in the command layer — the two of them
9
- * drifting apart is what left a diverged copy of the parameter query behind
10
- * once already.
11
- */
12
- export async function runQuery(queryType, customerPath, flags, config) {
13
- const service = await new QueryBuilderFactory({
14
- bySet: flags.bySet,
15
- catalog: flags.catalog,
16
- configName: flags.configName,
17
- count: flags.count,
18
- customerPath,
19
- days: flags.days,
20
- devices: normalizeDevices(flags.device),
21
- excludeNotFound: flags.excludeNotFound,
22
- excludeNoindex: flags.excludeNoindex,
23
- excludeSuspicious: flags.excludeSuspicious,
24
- execute: flags.execute,
25
- explain: flags.explain,
26
- hardNavigationsOnly: flags.hardNavigationsOnly,
27
- isWindows: config.windows,
28
- limit: flags.limit,
29
- match: flags.match,
30
- minHits: flags.minHits,
31
- minImpressions: flags.minImpressions,
32
- quiet: flags.quiet,
33
- variations: flags.variation,
34
- workgroup: flags.workgroup,
35
- }, new CliConfig(config).load()).buildService(queryType);
36
- await service.run();
37
- }