@speedkit/cli 4.50.5 → 4.51.0-run-control.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 (406) hide show
  1. package/README.md +1369 -10
  2. package/dist/base/run-control-command.d.ts +15 -0
  3. package/dist/base/run-control-command.js +20 -0
  4. package/dist/build-info.json +6 -0
  5. package/dist/commands/diff.d.ts +6 -1
  6. package/dist/commands/diff.js +9 -3
  7. package/dist/commands/onboarding/browser/click.d.ts +75 -0
  8. package/dist/commands/onboarding/browser/click.js +19 -0
  9. package/dist/commands/onboarding/browser/emulate.d.ts +93 -0
  10. package/dist/commands/onboarding/browser/emulate.js +23 -0
  11. package/dist/commands/onboarding/browser/navigate.d.ts +67 -0
  12. package/dist/commands/onboarding/browser/navigate.js +18 -0
  13. package/dist/commands/onboarding/browser/panel.d.ts +63 -0
  14. package/dist/commands/onboarding/browser/panel.js +12 -0
  15. package/dist/commands/onboarding/browser/reinstall-sw.d.ts +63 -0
  16. package/dist/commands/onboarding/browser/reinstall-sw.js +14 -0
  17. package/dist/commands/onboarding/browser/reset.d.ts +71 -0
  18. package/dist/commands/onboarding/browser/reset.js +18 -0
  19. package/dist/commands/onboarding/browser/screenshot.d.ts +77 -0
  20. package/dist/commands/onboarding/browser/screenshot.js +19 -0
  21. package/dist/commands/onboarding/browser/state.d.ts +63 -0
  22. package/dist/commands/onboarding/browser/state.js +12 -0
  23. package/dist/commands/onboarding/browser/tabs.d.ts +58 -0
  24. package/dist/commands/onboarding/browser/tabs.js +16 -0
  25. package/dist/commands/onboarding/cache/clear.d.ts +58 -0
  26. package/dist/commands/onboarding/cache/clear.js +12 -0
  27. package/dist/commands/onboarding/cache/errors.d.ts +58 -0
  28. package/dist/commands/onboarding/cache/errors.js +12 -0
  29. package/dist/commands/onboarding/cache/evict.d.ts +62 -0
  30. package/dist/commands/onboarding/cache/evict.js +15 -0
  31. package/dist/commands/onboarding/cache/get.d.ts +85 -0
  32. package/dist/commands/onboarding/cache/get.js +17 -0
  33. package/dist/commands/onboarding/cache/list.d.ts +58 -0
  34. package/dist/commands/onboarding/cache/list.js +15 -0
  35. package/dist/commands/onboarding/cache/prewarm.d.ts +73 -0
  36. package/dist/commands/onboarding/cache/prewarm.js +20 -0
  37. package/dist/commands/onboarding/cache/refresh.d.ts +62 -0
  38. package/dist/commands/onboarding/cache/refresh.js +18 -0
  39. package/dist/commands/onboarding/cdp.d.ts +81 -0
  40. package/dist/commands/onboarding/cdp.js +18 -0
  41. package/dist/commands/onboarding/debug/arm.d.ts +77 -0
  42. package/dist/commands/onboarding/debug/arm.js +18 -0
  43. package/dist/commands/onboarding/debug/await.d.ts +71 -0
  44. package/dist/commands/onboarding/debug/await.js +18 -0
  45. package/dist/commands/onboarding/debug/disarm.d.ts +63 -0
  46. package/dist/commands/onboarding/debug/disarm.js +12 -0
  47. package/dist/commands/onboarding/debug/eval.d.ts +75 -0
  48. package/dist/commands/onboarding/debug/eval.js +16 -0
  49. package/dist/commands/onboarding/debug/release.d.ts +63 -0
  50. package/dist/commands/onboarding/debug/release.js +12 -0
  51. package/dist/commands/onboarding/debug/resume.d.ts +63 -0
  52. package/dist/commands/onboarding/debug/resume.js +12 -0
  53. package/dist/commands/onboarding/debug/status.d.ts +63 -0
  54. package/dist/commands/onboarding/debug/status.js +12 -0
  55. package/dist/commands/onboarding/debug/step.d.ts +67 -0
  56. package/dist/commands/onboarding/debug/step.js +15 -0
  57. package/dist/commands/onboarding/files/list.d.ts +58 -0
  58. package/dist/commands/onboarding/files/list.js +12 -0
  59. package/dist/commands/onboarding/files/read.d.ts +73 -0
  60. package/dist/commands/onboarding/files/read.js +16 -0
  61. package/dist/commands/onboarding/files/rebuild.d.ts +63 -0
  62. package/dist/commands/onboarding/files/rebuild.js +18 -0
  63. package/dist/commands/onboarding/files/validate.d.ts +58 -0
  64. package/dist/commands/onboarding/files/validate.js +12 -0
  65. package/dist/commands/onboarding/fouc.d.ts +77 -0
  66. package/dist/commands/onboarding/fouc.js +16 -0
  67. package/dist/commands/onboarding/inject/add.d.ts +89 -0
  68. package/dist/commands/onboarding/inject/add.js +17 -0
  69. package/dist/commands/onboarding/inject/clear.d.ts +63 -0
  70. package/dist/commands/onboarding/inject/clear.js +12 -0
  71. package/dist/commands/onboarding/inject/list.d.ts +63 -0
  72. package/dist/commands/onboarding/inject/list.js +12 -0
  73. package/dist/commands/onboarding/inject/read.d.ts +75 -0
  74. package/dist/commands/onboarding/inject/read.js +18 -0
  75. package/dist/commands/onboarding/inject/recipes.d.ts +63 -0
  76. package/dist/commands/onboarding/inject/recipes.js +12 -0
  77. package/dist/commands/onboarding/inject/remove.d.ts +67 -0
  78. package/dist/commands/onboarding/inject/remove.js +15 -0
  79. package/dist/commands/onboarding/list.d.ts +13 -0
  80. package/dist/commands/onboarding/list.js +12 -0
  81. package/dist/commands/onboarding/logs.d.ts +41 -0
  82. package/dist/commands/onboarding/logs.js +256 -0
  83. package/dist/commands/onboarding/navwalk.d.ts +95 -0
  84. package/dist/commands/onboarding/navwalk.js +19 -0
  85. package/dist/commands/onboarding/response.d.ts +67 -0
  86. package/dist/commands/onboarding/response.js +18 -0
  87. package/dist/commands/onboarding/rum/beacons.d.ts +75 -0
  88. package/dist/commands/onboarding/rum/beacons.js +16 -0
  89. package/dist/commands/onboarding/rum/get.d.ts +77 -0
  90. package/dist/commands/onboarding/rum/get.js +18 -0
  91. package/dist/commands/onboarding/rum/key.d.ts +67 -0
  92. package/dist/commands/onboarding/rum/key.js +13 -0
  93. package/dist/commands/onboarding/rum/previous.d.ts +63 -0
  94. package/dist/commands/onboarding/rum/previous.js +12 -0
  95. package/dist/commands/onboarding/status.d.ts +13 -0
  96. package/dist/commands/onboarding/status.js +17 -0
  97. package/dist/commands/onboarding/todo.d.ts +58 -0
  98. package/dist/commands/onboarding/todo.js +12 -0
  99. package/dist/commands/onboarding/viewport.d.ts +101 -0
  100. package/dist/commands/onboarding/viewport.js +18 -0
  101. package/dist/commands/onboarding/watch.d.ts +93 -0
  102. package/dist/commands/onboarding/watch.js +16 -0
  103. package/dist/commands/onboarding.d.ts +26 -0
  104. package/dist/commands/onboarding.js +220 -3
  105. package/dist/commands/origin-request.d.ts +4 -0
  106. package/dist/commands/origin-request.js +4 -0
  107. package/dist/commands/spec/onboarding.spec.d.ts +1 -0
  108. package/dist/commands/spec/onboarding.spec.js +127 -0
  109. package/dist/services/cli/build-info.d.ts +33 -0
  110. package/dist/services/cli/build-info.js +63 -0
  111. package/dist/services/cli/cli-environment-factory.d.ts +3 -0
  112. package/dist/services/cli/cli-environment-factory.js +1 -0
  113. package/dist/services/cli/cli-service-build-context.d.ts +3 -0
  114. package/dist/services/cli/cli-service-factory.js +1 -1
  115. package/dist/services/cli/cli-service-model.d.ts +29 -10
  116. package/dist/services/cli/cli-service.d.ts +60 -11
  117. package/dist/services/cli/cli-service.js +196 -32
  118. package/dist/services/cli/index.d.ts +2 -0
  119. package/dist/services/cli/index.js +2 -0
  120. package/dist/services/cli/sink.d.ts +47 -0
  121. package/dist/services/cli/sink.js +31 -0
  122. package/dist/services/cli/spec/build-identity.spec.d.ts +1 -0
  123. package/dist/services/cli/spec/build-identity.spec.js +85 -0
  124. package/dist/services/cli/spec/build-info.spec.d.ts +1 -0
  125. package/dist/services/cli/spec/build-info.spec.js +10 -0
  126. package/dist/services/cli/spec/cli-service-log.spec.d.ts +1 -0
  127. package/dist/services/cli/spec/cli-service-log.spec.js +133 -0
  128. package/dist/services/cli/spec/cli-service.spec.js +113 -50
  129. package/dist/services/cli/spec/memory-cli.d.ts +9 -0
  130. package/dist/services/cli/spec/memory-cli.js +9 -0
  131. package/dist/services/diff/config-at-ref.d.ts +20 -0
  132. package/dist/services/diff/config-at-ref.js +33 -0
  133. package/dist/services/diff/diff-service-build-context.d.ts +8 -0
  134. package/dist/services/diff/diff-service-build-context.js +40 -1
  135. package/dist/services/diff/diff-service-factory.d.ts +2 -0
  136. package/dist/services/diff/diff-service-factory.js +48 -20
  137. package/dist/services/diff/diff-service.d.ts +11 -0
  138. package/dist/services/diff/diff-service.js +37 -11
  139. package/dist/services/diff/page-source.d.ts +12 -0
  140. package/dist/services/diff/page-source.js +16 -11
  141. package/dist/services/diff/sinks/tool-diff-sink.d.ts +3 -2
  142. package/dist/services/diff/sinks/tool-diff-sink.js +3 -2
  143. package/dist/services/diff/spec/config-at-ref.spec.d.ts +1 -0
  144. package/dist/services/diff/spec/config-at-ref.spec.js +46 -0
  145. package/dist/services/diff/spec/diff-service-build-context.spec.js +19 -0
  146. package/dist/services/diff/spec/diff-service.spec.js +95 -0
  147. package/dist/services/git/git-repository.d.ts +2 -0
  148. package/dist/services/git/git-repository.js +6 -0
  149. package/dist/services/integration-api/customer-config-flags.js +1 -0
  150. package/dist/services/onboarding/browser/baqend-response.d.ts +17 -1
  151. package/dist/services/onboarding/browser/baqend-response.js +23 -0
  152. package/dist/services/onboarding/browser/console-log.d.ts +9 -0
  153. package/dist/services/onboarding/browser/console-log.js +27 -0
  154. package/dist/services/onboarding/browser/executable/executable-validator.js +4 -2
  155. package/dist/services/onboarding/browser/extension/extension-bridge.js +5 -3
  156. package/dist/services/onboarding/browser/extension/extension-downloader.js +17 -8
  157. package/dist/services/onboarding/browser/extension/extension-validator.js +9 -4
  158. package/dist/services/onboarding/control/body-inspect.d.ts +24 -0
  159. package/dist/services/onboarding/control/body-inspect.js +106 -0
  160. package/dist/services/onboarding/control/browser-session.d.ts +521 -0
  161. package/dist/services/onboarding/control/browser-session.js +1273 -0
  162. package/dist/services/onboarding/control/config-validation.d.ts +17 -0
  163. package/dist/services/onboarding/control/config-validation.js +46 -0
  164. package/dist/services/onboarding/control/control-protocol.d.ts +1390 -0
  165. package/dist/services/onboarding/control/control-protocol.js +69 -0
  166. package/dist/services/onboarding/control/control-server.d.ts +284 -0
  167. package/dist/services/onboarding/control/control-server.js +1609 -0
  168. package/dist/services/onboarding/control/debug-session.d.ts +190 -0
  169. package/dist/services/onboarding/control/debug-session.js +801 -0
  170. package/dist/services/onboarding/control/fouc.d.ts +23 -0
  171. package/dist/services/onboarding/control/fouc.js +151 -0
  172. package/dist/services/onboarding/control/index.d.ts +4 -0
  173. package/dist/services/onboarding/control/index.js +4 -0
  174. package/dist/services/onboarding/control/navwalk.d.ts +65 -0
  175. package/dist/services/onboarding/control/navwalk.js +248 -0
  176. package/dist/services/onboarding/control/preload-registry.d.ts +150 -0
  177. package/dist/services/onboarding/control/preload-registry.js +829 -0
  178. package/dist/services/onboarding/control/response-explainer.d.ts +24 -0
  179. package/dist/services/onboarding/control/response-explainer.js +257 -0
  180. package/dist/services/onboarding/control/rum.d.ts +8 -0
  181. package/dist/services/onboarding/control/rum.js +220 -0
  182. package/dist/services/onboarding/control/service-worker-tracker.d.ts +68 -0
  183. package/dist/services/onboarding/control/service-worker-tracker.js +119 -0
  184. package/dist/services/onboarding/control/viewport.d.ts +45 -0
  185. package/dist/services/onboarding/control/viewport.js +344 -0
  186. package/dist/services/onboarding/control/watch.d.ts +26 -0
  187. package/dist/services/onboarding/control/watch.js +149 -0
  188. package/dist/services/onboarding/dashboard/diff-against-current-page.js +3 -1
  189. package/dist/services/onboarding/dashboard/index.js +7 -2
  190. package/dist/services/onboarding/fetch-event-handler.d.ts +24 -5
  191. package/dist/services/onboarding/fetch-event-handler.js +94 -32
  192. package/dist/services/onboarding/fetch-events/speed-kit-install-js.js +11 -2
  193. package/dist/services/onboarding/fetch-events/speed-kit-rum-pi-request.d.ts +14 -0
  194. package/dist/services/onboarding/fetch-events/speed-kit-rum-pi-request.js +30 -0
  195. package/dist/services/onboarding/fetch-events/speed-kit-service-worker-js.d.ts +13 -0
  196. package/dist/services/onboarding/fetch-events/speed-kit-service-worker-js.js +28 -1
  197. package/dist/services/onboarding/file-events/file-watcher.d.ts +42 -1
  198. package/dist/services/onboarding/file-events/file-watcher.js +117 -12
  199. package/dist/services/onboarding/onboarding-model.d.ts +30 -0
  200. package/dist/services/onboarding/onboarding-model.js +10 -0
  201. package/dist/services/onboarding/onboarding-service-build-context.d.ts +4 -0
  202. package/dist/services/onboarding/onboarding-service-build-context.js +6 -0
  203. package/dist/services/onboarding/onboarding-service-factory.d.ts +17 -1
  204. package/dist/services/onboarding/onboarding-service-factory.js +131 -17
  205. package/dist/services/onboarding/onboarding-service.d.ts +40 -1
  206. package/dist/services/onboarding/onboarding-service.js +135 -22
  207. package/dist/services/onboarding/request-cache/asset-key.d.ts +61 -0
  208. package/dist/services/onboarding/request-cache/asset-key.js +115 -0
  209. package/dist/services/onboarding/request-cache/cache.d.ts +62 -5
  210. package/dist/services/onboarding/request-cache/cache.js +128 -17
  211. package/dist/services/onboarding/spec/browser/console-log.spec.d.ts +1 -0
  212. package/dist/services/onboarding/spec/browser/console-log.spec.js +42 -0
  213. package/dist/services/onboarding/spec/control/browser-session.spec.d.ts +1 -0
  214. package/dist/services/onboarding/spec/control/browser-session.spec.js +526 -0
  215. package/dist/services/onboarding/spec/control/control-server.spec.d.ts +1 -0
  216. package/dist/services/onboarding/spec/control/control-server.spec.js +338 -0
  217. package/dist/services/onboarding/spec/control/debug-session.spec.d.ts +1 -0
  218. package/dist/services/onboarding/spec/control/debug-session.spec.js +693 -0
  219. package/dist/services/onboarding/spec/control/fakes.d.ts +31 -0
  220. package/dist/services/onboarding/spec/control/fakes.js +66 -0
  221. package/dist/services/onboarding/spec/control/fouc.spec.d.ts +1 -0
  222. package/dist/services/onboarding/spec/control/fouc.spec.js +167 -0
  223. package/dist/services/onboarding/spec/control/navwalk.spec.d.ts +1 -0
  224. package/dist/services/onboarding/spec/control/navwalk.spec.js +222 -0
  225. package/dist/services/onboarding/spec/control/preload-registry.spec.d.ts +1 -0
  226. package/dist/services/onboarding/spec/control/preload-registry.spec.js +432 -0
  227. package/dist/services/onboarding/spec/control/response-explainer.spec.d.ts +1 -0
  228. package/dist/services/onboarding/spec/control/response-explainer.spec.js +324 -0
  229. package/dist/services/onboarding/spec/control/rum.spec.d.ts +1 -0
  230. package/dist/services/onboarding/spec/control/rum.spec.js +222 -0
  231. package/dist/services/onboarding/spec/control/service-worker-tracker.spec.d.ts +1 -0
  232. package/dist/services/onboarding/spec/control/service-worker-tracker.spec.js +193 -0
  233. package/dist/services/onboarding/spec/control/viewport.spec.d.ts +1 -0
  234. package/dist/services/onboarding/spec/control/viewport.spec.js +200 -0
  235. package/dist/services/onboarding/spec/control/watch.spec.d.ts +1 -0
  236. package/dist/services/onboarding/spec/control/watch.spec.js +172 -0
  237. package/dist/services/onboarding/spec/fetch-event-handler.spec.d.ts +1 -0
  238. package/dist/services/onboarding/spec/fetch-event-handler.spec.js +202 -0
  239. package/dist/services/onboarding/spec/fetch-events/speed-kit-service-worker-js.spec.d.ts +1 -0
  240. package/dist/services/onboarding/spec/fetch-events/speed-kit-service-worker-js.spec.js +41 -0
  241. package/dist/services/onboarding/spec/onboarding-model.spec.js +37 -0
  242. package/dist/services/onboarding/spec/onboarding-service-factory.spec.js +1 -0
  243. package/dist/services/onboarding/spec/request-cache/cache.spec.d.ts +1 -0
  244. package/dist/services/onboarding/spec/request-cache/cache.spec.js +107 -0
  245. package/dist/services/onboarding/spec/todo-collector.spec.d.ts +1 -0
  246. package/dist/services/onboarding/spec/todo-collector.spec.js +136 -0
  247. package/dist/services/onboarding/todo-collector.d.ts +7 -2
  248. package/dist/services/onboarding/todo-collector.js +49 -12
  249. package/dist/services/onboarding/virtual-orestes-app/index.d.ts +34 -0
  250. package/dist/services/onboarding/virtual-orestes-app/index.js +82 -27
  251. package/dist/services/origin-request/asset-variations.d.ts +14 -0
  252. package/dist/services/origin-request/asset-variations.js +11 -4
  253. package/dist/services/origin-request/origin-fetcher.d.ts +7 -0
  254. package/dist/services/origin-request/origin-fetcher.js +43 -5
  255. package/dist/services/origin-request/origin-request-service-build-context.d.ts +17 -0
  256. package/dist/services/origin-request/origin-request-service-build-context.js +8 -0
  257. package/dist/services/origin-request/origin-request-service-factory.d.ts +0 -5
  258. package/dist/services/origin-request/origin-request-service-factory.js +2 -30
  259. package/dist/services/origin-request/origin-request-service.d.ts +121 -6
  260. package/dist/services/origin-request/origin-request-service.js +273 -49
  261. package/dist/services/origin-request/runtime-config-source.js +9 -4
  262. package/dist/services/origin-request/spec/asset-variations.spec.js +20 -0
  263. package/dist/services/origin-request/spec/origin-request-service.spec.js +329 -6
  264. package/dist/services/query-builder/rules/rule-match.d.ts +35 -0
  265. package/dist/services/query-builder/rules/rule-match.js +70 -0
  266. package/dist/services/query-builder/spec/rules/rule-match.spec.d.ts +1 -0
  267. package/dist/services/query-builder/spec/rules/rule-match.spec.js +121 -0
  268. package/dist/services/run-control/browser/run-browser-contexts.d.ts +541 -0
  269. package/dist/services/run-control/browser/run-browser-contexts.js +78 -0
  270. package/dist/services/run-control/browser/run-browser-service-factory.d.ts +5 -0
  271. package/dist/services/run-control/browser/run-browser-service-factory.js +7 -0
  272. package/dist/services/run-control/browser/run-browser-service.d.ts +64 -0
  273. package/dist/services/run-control/browser/run-browser-service.js +199 -0
  274. package/dist/services/run-control/cache/run-cache-contexts.d.ts +349 -0
  275. package/dist/services/run-control/cache/run-cache-contexts.js +51 -0
  276. package/dist/services/run-control/cache/run-cache-service-factory.d.ts +6 -0
  277. package/dist/services/run-control/cache/run-cache-service-factory.js +12 -0
  278. package/dist/services/run-control/cache/run-cache-service.d.ts +35 -0
  279. package/dist/services/run-control/cache/run-cache-service.js +151 -0
  280. package/dist/services/run-control/control-client.d.ts +36 -0
  281. package/dist/services/run-control/control-client.js +147 -0
  282. package/dist/services/run-control/debug/run-debug-contexts.d.ts +411 -0
  283. package/dist/services/run-control/debug/run-debug-contexts.js +44 -0
  284. package/dist/services/run-control/debug/run-debug-service-factory.d.ts +5 -0
  285. package/dist/services/run-control/debug/run-debug-service-factory.js +7 -0
  286. package/dist/services/run-control/debug/run-debug-service.d.ts +38 -0
  287. package/dist/services/run-control/debug/run-debug-service.js +161 -0
  288. package/dist/services/run-control/files/run-files-contexts.d.ts +238 -0
  289. package/dist/services/run-control/files/run-files-contexts.js +26 -0
  290. package/dist/services/run-control/files/run-files-service-factory.d.ts +5 -0
  291. package/dist/services/run-control/files/run-files-service-factory.js +7 -0
  292. package/dist/services/run-control/files/run-files-service.d.ts +29 -0
  293. package/dist/services/run-control/files/run-files-service.js +120 -0
  294. package/dist/services/run-control/index.d.ts +32 -0
  295. package/dist/services/run-control/index.js +31 -0
  296. package/dist/services/run-control/inject/run-inject-contexts.d.ts +319 -0
  297. package/dist/services/run-control/inject/run-inject-contexts.js +32 -0
  298. package/dist/services/run-control/inject/run-inject-service-factory.d.ts +5 -0
  299. package/dist/services/run-control/inject/run-inject-service-factory.js +7 -0
  300. package/dist/services/run-control/inject/run-inject-service.d.ts +31 -0
  301. package/dist/services/run-control/inject/run-inject-service.js +203 -0
  302. package/dist/services/run-control/live-run.d.ts +37 -0
  303. package/dist/services/run-control/live-run.js +56 -0
  304. package/dist/services/run-control/probe/run-probe-contexts.d.ts +333 -0
  305. package/dist/services/run-control/probe/run-probe-contexts.js +73 -0
  306. package/dist/services/run-control/probe/run-probe-service-factory.d.ts +5 -0
  307. package/dist/services/run-control/probe/run-probe-service-factory.js +7 -0
  308. package/dist/services/run-control/probe/run-probe-service.d.ts +54 -0
  309. package/dist/services/run-control/probe/run-probe-service.js +193 -0
  310. package/dist/services/run-control/rum/run-rum-contexts.d.ts +216 -0
  311. package/dist/services/run-control/rum/run-rum-contexts.js +34 -0
  312. package/dist/services/run-control/rum/run-rum-service-factory.d.ts +5 -0
  313. package/dist/services/run-control/rum/run-rum-service-factory.js +7 -0
  314. package/dist/services/run-control/rum/run-rum-service.d.ts +36 -0
  315. package/dist/services/run-control/rum/run-rum-service.js +122 -0
  316. package/dist/services/run-control/run-answer.d.ts +28 -0
  317. package/dist/services/run-control/run-answer.js +58 -0
  318. package/dist/services/run-control/run-control-context.d.ts +102 -0
  319. package/dist/services/run-control/run-control-context.js +36 -0
  320. package/dist/services/run-control/run-control-flags.d.ts +12 -0
  321. package/dist/services/run-control/run-control-flags.js +22 -0
  322. package/dist/services/run-control/run-control-model.d.ts +9 -0
  323. package/dist/services/run-control/run-control-model.js +1 -0
  324. package/dist/services/run-control/run-control-service-factory.d.ts +14 -0
  325. package/dist/services/run-control/run-control-service-factory.js +26 -0
  326. package/dist/services/run-control/session/run-session-contexts.d.ts +25 -0
  327. package/dist/services/run-control/session/run-session-contexts.js +20 -0
  328. package/dist/services/run-control/session/run-session-service-factory.d.ts +8 -0
  329. package/dist/services/run-control/session/run-session-service-factory.js +18 -0
  330. package/dist/services/run-control/session/run-session-service.d.ts +25 -0
  331. package/dist/services/run-control/session/run-session-service.js +95 -0
  332. package/dist/services/run-control/spec/browser/run-browser-service.spec.d.ts +1 -0
  333. package/dist/services/run-control/spec/browser/run-browser-service.spec.js +327 -0
  334. package/dist/services/run-control/spec/cache/run-cache-service.spec.d.ts +1 -0
  335. package/dist/services/run-control/spec/cache/run-cache-service.spec.js +454 -0
  336. package/dist/services/run-control/spec/debug/run-debug-service.spec.d.ts +1 -0
  337. package/dist/services/run-control/spec/debug/run-debug-service.spec.js +113 -0
  338. package/dist/services/run-control/spec/files/run-files-service.spec.d.ts +1 -0
  339. package/dist/services/run-control/spec/files/run-files-service.spec.js +234 -0
  340. package/dist/services/run-control/spec/inject/run-inject-service.spec.d.ts +1 -0
  341. package/dist/services/run-control/spec/inject/run-inject-service.spec.js +224 -0
  342. package/dist/services/run-control/spec/live-run-fixture.d.ts +32 -0
  343. package/dist/services/run-control/spec/live-run-fixture.js +109 -0
  344. package/dist/services/run-control/spec/probe/run-probe-service.spec.d.ts +1 -0
  345. package/dist/services/run-control/spec/probe/run-probe-service.spec.js +108 -0
  346. package/dist/services/run-control/spec/rum/run-rum-service.spec.d.ts +1 -0
  347. package/dist/services/run-control/spec/rum/run-rum-service.spec.js +47 -0
  348. package/dist/services/run-control/spec/run-answer.spec.d.ts +1 -0
  349. package/dist/services/run-control/spec/run-answer.spec.js +57 -0
  350. package/dist/services/run-control/spec/session/run-session-service.spec.d.ts +1 -0
  351. package/dist/services/run-control/spec/session/run-session-service.spec.js +101 -0
  352. package/dist/services/run-log/crash-mirror.d.ts +31 -0
  353. package/dist/services/run-log/crash-mirror.js +69 -0
  354. package/dist/services/run-log/index.d.ts +11 -0
  355. package/dist/services/run-log/index.js +11 -0
  356. package/dist/services/run-log/jsonl-appender.d.ts +46 -0
  357. package/dist/services/run-log/jsonl-appender.js +91 -0
  358. package/dist/services/run-log/log-event-model.d.ts +104 -0
  359. package/dist/services/run-log/log-event-model.js +56 -0
  360. package/dist/services/run-log/log-query-service-factory.d.ts +11 -0
  361. package/dist/services/run-log/log-query-service-factory.js +14 -0
  362. package/dist/services/run-log/log-query-service.d.ts +59 -0
  363. package/dist/services/run-log/log-query-service.js +111 -0
  364. package/dist/services/run-log/log-reader.d.ts +84 -0
  365. package/dist/services/run-log/log-reader.js +180 -0
  366. package/dist/services/run-log/log-summary.d.ts +72 -0
  367. package/dist/services/run-log/log-summary.js +208 -0
  368. package/dist/services/run-log/redaction.d.ts +34 -0
  369. package/dist/services/run-log/redaction.js +124 -0
  370. package/dist/services/run-log/request-log.d.ts +80 -0
  371. package/dist/services/run-log/request-log.js +69 -0
  372. package/dist/services/run-log/request-summary.d.ts +76 -0
  373. package/dist/services/run-log/request-summary.js +0 -0
  374. package/dist/services/run-log/run-log.d.ts +61 -0
  375. package/dist/services/run-log/run-log.js +102 -0
  376. package/dist/services/run-log/spec/log-query-service.spec.d.ts +1 -0
  377. package/dist/services/run-log/spec/log-query-service.spec.js +197 -0
  378. package/dist/services/run-log/spec/log-reader.spec.d.ts +1 -0
  379. package/dist/services/run-log/spec/log-reader.spec.js +109 -0
  380. package/dist/services/run-log/spec/log-summary.spec.d.ts +1 -0
  381. package/dist/services/run-log/spec/log-summary.spec.js +153 -0
  382. package/dist/services/run-log/spec/redaction.spec.d.ts +1 -0
  383. package/dist/services/run-log/spec/redaction.spec.js +61 -0
  384. package/dist/services/run-log/spec/request-log.spec.d.ts +1 -0
  385. package/dist/services/run-log/spec/request-log.spec.js +101 -0
  386. package/dist/services/run-log/spec/request-summary.spec.d.ts +1 -0
  387. package/dist/services/run-log/spec/request-summary.spec.js +171 -0
  388. package/dist/services/run-log/spec/run-log.spec.d.ts +1 -0
  389. package/dist/services/run-log/spec/run-log.spec.js +122 -0
  390. package/dist/services/run-registry/exit-classification.d.ts +39 -0
  391. package/dist/services/run-registry/exit-classification.js +42 -0
  392. package/dist/services/run-registry/index.d.ts +3 -0
  393. package/dist/services/run-registry/index.js +3 -0
  394. package/dist/services/run-registry/process-identity.d.ts +28 -0
  395. package/dist/services/run-registry/process-identity.js +80 -0
  396. package/dist/services/run-registry/run-registry-model.d.ts +128 -0
  397. package/dist/services/run-registry/run-registry-model.js +16 -0
  398. package/dist/services/run-registry/run-registry.d.ts +150 -0
  399. package/dist/services/run-registry/run-registry.js +409 -0
  400. package/dist/services/run-registry/spec/exit-classification.spec.d.ts +1 -0
  401. package/dist/services/run-registry/spec/exit-classification.spec.js +82 -0
  402. package/dist/services/run-registry/spec/run-registry.spec.d.ts +1 -0
  403. package/dist/services/run-registry/spec/run-registry.spec.js +509 -0
  404. package/dist/services/setup/os/tool-registry.js +2 -2
  405. package/oclif.manifest.json +3293 -272
  406. package/package.json +20 -2
package/README.md CHANGED
@@ -89,6 +89,54 @@ By either...
89
89
  * [`sk help [COMMAND]`](#sk-help-command)
90
90
  * [`sk login [APP]`](#sk-login-app)
91
91
  * [`sk onboarding [CUSTOMERPATH]`](#sk-onboarding-customerpath)
92
+ * [`sk onboarding browser click [SELECTOR]`](#sk-onboarding-browser-click-selector)
93
+ * [`sk onboarding browser emulate DEVICE`](#sk-onboarding-browser-emulate-device)
94
+ * [`sk onboarding browser navigate URL`](#sk-onboarding-browser-navigate-url)
95
+ * [`sk onboarding browser panel`](#sk-onboarding-browser-panel)
96
+ * [`sk onboarding browser reinstall-sw`](#sk-onboarding-browser-reinstall-sw)
97
+ * [`sk onboarding browser reset`](#sk-onboarding-browser-reset)
98
+ * [`sk onboarding browser screenshot`](#sk-onboarding-browser-screenshot)
99
+ * [`sk onboarding browser state`](#sk-onboarding-browser-state)
100
+ * [`sk onboarding browser tabs`](#sk-onboarding-browser-tabs)
101
+ * [`sk onboarding cache clear`](#sk-onboarding-cache-clear)
102
+ * [`sk onboarding cache errors`](#sk-onboarding-cache-errors)
103
+ * [`sk onboarding cache evict KEY`](#sk-onboarding-cache-evict-key)
104
+ * [`sk onboarding cache get KEY`](#sk-onboarding-cache-get-key)
105
+ * [`sk onboarding cache list`](#sk-onboarding-cache-list)
106
+ * [`sk onboarding cache prewarm URL`](#sk-onboarding-cache-prewarm-url)
107
+ * [`sk onboarding cache refresh [KEY]`](#sk-onboarding-cache-refresh-key)
108
+ * [`sk onboarding cdp METHOD [PARAMS]`](#sk-onboarding-cdp-method-params)
109
+ * [`sk onboarding debug arm`](#sk-onboarding-debug-arm)
110
+ * [`sk onboarding debug await`](#sk-onboarding-debug-await)
111
+ * [`sk onboarding debug disarm`](#sk-onboarding-debug-disarm)
112
+ * [`sk onboarding debug eval [EXPRESSION]`](#sk-onboarding-debug-eval-expression)
113
+ * [`sk onboarding debug release`](#sk-onboarding-debug-release)
114
+ * [`sk onboarding debug resume`](#sk-onboarding-debug-resume)
115
+ * [`sk onboarding debug status`](#sk-onboarding-debug-status)
116
+ * [`sk onboarding debug step KIND`](#sk-onboarding-debug-step-kind)
117
+ * [`sk onboarding files list`](#sk-onboarding-files-list)
118
+ * [`sk onboarding files read NAME`](#sk-onboarding-files-read-name)
119
+ * [`sk onboarding files rebuild`](#sk-onboarding-files-rebuild)
120
+ * [`sk onboarding files validate`](#sk-onboarding-files-validate)
121
+ * [`sk onboarding fouc`](#sk-onboarding-fouc)
122
+ * [`sk onboarding inject add`](#sk-onboarding-inject-add)
123
+ * [`sk onboarding inject clear`](#sk-onboarding-inject-clear)
124
+ * [`sk onboarding inject list`](#sk-onboarding-inject-list)
125
+ * [`sk onboarding inject read PRELOAD`](#sk-onboarding-inject-read-preload)
126
+ * [`sk onboarding inject recipes`](#sk-onboarding-inject-recipes)
127
+ * [`sk onboarding inject remove PRELOAD`](#sk-onboarding-inject-remove-preload)
128
+ * [`sk onboarding list`](#sk-onboarding-list)
129
+ * [`sk onboarding logs [RUN]`](#sk-onboarding-logs-run)
130
+ * [`sk onboarding navwalk`](#sk-onboarding-navwalk)
131
+ * [`sk onboarding response [URL]`](#sk-onboarding-response-url)
132
+ * [`sk onboarding rum beacons`](#sk-onboarding-rum-beacons)
133
+ * [`sk onboarding rum get`](#sk-onboarding-rum-get)
134
+ * [`sk onboarding rum key KEY`](#sk-onboarding-rum-key-key)
135
+ * [`sk onboarding rum previous`](#sk-onboarding-rum-previous)
136
+ * [`sk onboarding status`](#sk-onboarding-status)
137
+ * [`sk onboarding todo`](#sk-onboarding-todo)
138
+ * [`sk onboarding viewport`](#sk-onboarding-viewport)
139
+ * [`sk onboarding watch EXPRESSION`](#sk-onboarding-watch-expression)
92
140
  * [`sk origin-request [CUSTOMERPATH] [PAGEURL]`](#sk-origin-request-customerpath-pageurl)
93
141
  * [`sk prewarm APP PATH`](#sk-prewarm-app-path)
94
142
  * [`sk pull CUSTOMERPATH`](#sk-pull-customerpath)
@@ -474,13 +522,13 @@ EXAMPLES
474
522
 
475
523
  ## `sk diff [CUSTOMERPATH] [PAGEURL]`
476
524
 
477
- Diff a page with and without its query parameters, across variations, or against another page, as Speed Kit requests it from origin and the customer's documentHandler renders it. Exits with 1 when a diff is found, with 2 when the pages could not be compared, and with 3 when the documentHandler aborts a page, so Speed Kit never caches it
525
+ Diff a page with and without its query parameters, across variations, against another page, or with the customer config at another git ref, as Speed Kit requests it from origin and the customer's documentHandler renders it. Exits with 1 when a diff is found, with 2 when the pages could not be compared, and with 3 when the documentHandler aborts a page, so Speed Kit never caches it
478
526
 
479
527
  ```
480
528
  USAGE
481
529
  $ sk diff [CUSTOMERPATH] [PAGEURL] [-c <value>] [--variations <value>...] [--against <value>]
482
- [--variation <value>] [--baseline] [--params] [--param <value>...] [-o tool|patch|json|none] [--raw] [--ignore
483
- <value>...] [--browserFetch] [--host <value>] [--variationsFile <value>]
530
+ [--variation <value>] [--base <value>] [--html <value>] [--baseline] [--params] [--param <value>...] [-o
531
+ tool|patch|json|none] [--raw] [--ignore <value>...] [--browserFetch] [--host <value>] [--variationsFile <value>]
484
532
 
485
533
  ARGUMENTS
486
534
  [CUSTOMERPATH] The customer config path; optional with --raw, which then compares the origin's HTML with Speed Kit's
@@ -494,11 +542,15 @@ FLAGS
494
542
  <options: tool|patch|json|none>
495
543
  --against=<value> Compare the page against this other page, both requested and rendered the same way:
496
544
  ?color=red against ?color=blue. Replaces the parameter check
545
+ --base=<value> Render the page with the customer config where HEAD left this git ref (their merge base)
546
+ and with the working tree, and diff the two: what a config change does to the page.
547
+ Replaces the parameter check; takes --variation and --html
497
548
  --baseline Fetch every side twice and ignore what differs between the two, such as nonces,
498
549
  timestamps or reordered preloads. Doubles the requests: 4 per comparison
499
550
  --browserFetch Fetch every page through a headless Chrome, for an origin whose bot protection refuses a
500
551
  direct request. Needs the customer path
501
552
  --host=<value> Send this Host header, emulating an origin-map host override
553
+ --html=<value> With --base, render this saved origin HTML instead of requesting the page
502
554
  --ignore=<value>... Remove what this regex matches from both sides before comparing, e.g. a nonce or a
503
555
  timestamp
504
556
  --param=<value>... Check only this query parameter of the url: sort. Several, as sort,page or repeated, are
@@ -506,17 +558,18 @@ FLAGS
506
558
  --params With --variations, also check the query parameters, once for each of the two variations.
507
559
  Without --variations it is what sk diff does
508
560
  --raw Compare the origin's HTML as it is, without running the customer's documentHandler
509
- --variation=<value> The one variation the pages are requested in, for --against or the parameter check:
510
- mobile, tablet or a custom one; an empty one asks which. Defaults to desktop
561
+ --variation=<value> The one variation the pages are requested in, for --against, --base or the parameter
562
+ check: mobile, tablet or a custom one; an empty one asks which. Defaults to desktop
511
563
  --variations=<value>... One variation to compare against desktop, or two to compare with each other: mobile, or
512
564
  tablet,mobile. A custom variation works too; an empty one asks which
513
565
  --variationsFile=<value> Resolve the requests against a runtime config in a local file instead of the app's
514
566
  deployed one
515
567
 
516
568
  DESCRIPTION
517
- Diff a page with and without its query parameters, across variations, or against another page, as Speed Kit requests
518
- it from origin and the customer's documentHandler renders it. Exits with 1 when a diff is found, with 2 when the pages
519
- could not be compared, and with 3 when the documentHandler aborts a page, so Speed Kit never caches it
569
+ Diff a page with and without its query parameters, across variations, against another page, or with the customer
570
+ config at another git ref, as Speed Kit requests it from origin and the customer's documentHandler renders it. Exits
571
+ with 1 when a diff is found, with 2 when the pages could not be compared, and with 3 when the documentHandler aborts a
572
+ page, so Speed Kit never caches it
520
573
 
521
574
  EXAMPLES
522
575
  $ sk diff <customerPath> <pageUrl>
@@ -544,6 +597,10 @@ EXAMPLES
544
597
  $ sk diff --raw "https://www.decathlon.de/?sort=price" --variations mobile
545
598
 
546
599
  $ sk diff customers/decathlon.de "https://www.decathlon.de/?sort=price" --variations mobile --params
600
+
601
+ $ sk diff customers/decathlon.de https://www.decathlon.de/c/shoes --base origin/main
602
+
603
+ $ sk diff customers/decathlon.de https://www.decathlon.de/c/shoes --base HEAD~1 --html saved-page.html --variation mobile
547
604
  ```
548
605
 
549
606
  ## `sk extension add [REF]`
@@ -783,7 +840,7 @@ Start a local dev environment for building and testing the Speed Kit configurati
783
840
 
784
841
  ```
785
842
  USAGE
786
- $ sk onboarding [CUSTOMERPATH] [-c <value>] [-t] [-d <value>] [-p] [--debugPort <value>] [-v] [-s]
843
+ $ sk onboarding [CUSTOMERPATH] [-c <value>] [-t] [-d <value>] [-p] [--debugPort <value>] [-v] [--logFile] [-s]
787
844
  [--headless] [-m | --device mobile|tablet|desktop] [--app <value> [--inject [<installationId>] | --browse]]
788
845
  [--browserFetch]
789
846
 
@@ -817,6 +874,9 @@ FLAGS
817
874
  installed Speed Kit. Without a value it uses the latest deployed installation. With
818
875
  an id it uses that testing installation. Needs no local config: without a
819
876
  CUSTOMERPATH, pass --app and -d.
877
+ --[no-]logFile Write a structured copy of this run's output to log.jsonl in the run directory,
878
+ readable afterwards with `sk onboarding logs`. Use --no-log-file to keep the run
879
+ off disk entirely.
820
880
 
821
881
  DESCRIPTION
822
882
  Start a local dev environment for building and testing the Speed Kit configuration
@@ -837,6 +897,1303 @@ EXAMPLES
837
897
  $ sk onboarding customers/decathlon.de --inject <installationId>
838
898
  ```
839
899
 
900
+ ## `sk onboarding browser click [SELECTOR]`
901
+
902
+ Click an element the way a visitor does — a trusted mouse click at its centre — by selector or by its text
903
+
904
+ ```
905
+ USAGE
906
+ $ sk onboarding browser click [SELECTOR] [--run <value>] [--json] [--timeout <value>] [--text <value>] [--tab <value>]
907
+
908
+ ARGUMENTS
909
+ [SELECTOR] A CSS selector. Or --text
910
+
911
+ FLAGS
912
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
913
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
914
+ live.
915
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
916
+ own page
917
+ --text=<value> The visible text, aria-label or value of a link or button, e.g. 'In den Warenkorb'
918
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
919
+
920
+ DESCRIPTION
921
+ Click an element the way a visitor does — a trusted mouse click at its centre — by selector or by its text
922
+
923
+ EXAMPLES
924
+ $ sk onboarding browser click '#onetrust-accept-btn-handler'
925
+
926
+ $ sk onboarding browser click --text 'In den Warenkorb'
927
+
928
+ $ sk onboarding browser click --text 'Sign in with Shop' --tab 0
929
+ ```
930
+
931
+ ## `sk onboarding browser emulate DEVICE`
932
+
933
+ Emulate a device until switched off: viewport, touch and user agent, on the page and on Speed Kit's service worker
934
+
935
+ ```
936
+ USAGE
937
+ $ sk onboarding browser emulate DEVICE [--run <value>] [--json] [--timeout <value>] [--width <value>] [--height <value>]
938
+ [--dpr <value>] [--reload] [--tab <value>]
939
+
940
+ ARGUMENTS
941
+ DEVICE (mobile|tablet|desktop|off) mobile is 390×844 at DPR 3 with touch, tablet 834×1112 at DPR 2, desktop
942
+ 1920×1080; off puts the browser back
943
+
944
+ FLAGS
945
+ --dpr=<value> Override the preset's device pixel ratio
946
+ --height=<value> Override the preset's height
947
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
948
+ --[no-]reload Load the page again as the device. --no-reload leaves the loaded document as it was
949
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
950
+ live.
951
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
952
+ own page
953
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
954
+ --width=<value> Override the preset's width
955
+
956
+ DESCRIPTION
957
+ Emulate a device until switched off: viewport, touch and user agent, on the page and on Speed Kit's service worker
958
+
959
+ EXAMPLES
960
+ $ sk onboarding browser emulate mobile
961
+
962
+ $ sk onboarding browser emulate desktop --width 1440 --height 900
963
+
964
+ $ sk onboarding browser emulate off
965
+ ```
966
+
967
+ ## `sk onboarding browser navigate URL`
968
+
969
+ Navigate the page, to any origin the app covers
970
+
971
+ ```
972
+ USAGE
973
+ $ sk onboarding browser navigate URL [--run <value>] [--json] [--timeout <value>] [--tab <value>]
974
+
975
+ ARGUMENTS
976
+ URL Absolute, or relative to the origin the page is on
977
+
978
+ FLAGS
979
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
980
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
981
+ live.
982
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
983
+ own page
984
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
985
+
986
+ DESCRIPTION
987
+ Navigate the page, to any origin the app covers
988
+
989
+ EXAMPLES
990
+ $ sk onboarding browser navigate /checkout
991
+
992
+ $ sk onboarding browser navigate https://www.decathlon.de/
993
+ ```
994
+
995
+ ## `sk onboarding browser panel`
996
+
997
+ Show the Speed Kit devtools panel, opening DevTools if it is closed
998
+
999
+ ```
1000
+ USAGE
1001
+ $ sk onboarding browser panel [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1002
+
1003
+ FLAGS
1004
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1005
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1006
+ live.
1007
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1008
+ own page
1009
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1010
+
1011
+ DESCRIPTION
1012
+ Show the Speed Kit devtools panel, opening DevTools if it is closed
1013
+
1014
+ EXAMPLES
1015
+ $ sk onboarding browser panel
1016
+ ```
1017
+
1018
+ ## `sk onboarding browser reinstall-sw`
1019
+
1020
+ Put the local Speed Kit build back after the deployed one took over
1021
+
1022
+ ```
1023
+ USAGE
1024
+ $ sk onboarding browser reinstall-sw [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1025
+
1026
+ FLAGS
1027
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1028
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1029
+ live.
1030
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1031
+ own page
1032
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1033
+
1034
+ DESCRIPTION
1035
+ Put the local Speed Kit build back after the deployed one took over
1036
+
1037
+ EXAMPLES
1038
+ $ sk onboarding browser reinstall-sw
1039
+ ```
1040
+
1041
+ ## `sk onboarding browser reset`
1042
+
1043
+ Clear the origin the page is on. The default scope keeps cookies, and with them a login
1044
+
1045
+ ```
1046
+ USAGE
1047
+ $ sk onboarding browser reset [--run <value>] [--json] [--timeout <value>] [--scope cache|all] [--tab <value>]
1048
+
1049
+ FLAGS
1050
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1051
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1052
+ live.
1053
+ --scope=<option> [default: cache] cache: cache storage only, keeping cookies and a login. all: also cookies, and
1054
+ unregister the service worker
1055
+ <options: cache|all>
1056
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1057
+ own page
1058
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1059
+
1060
+ DESCRIPTION
1061
+ Clear the origin the page is on. The default scope keeps cookies, and with them a login
1062
+
1063
+ EXAMPLES
1064
+ $ sk onboarding browser reset
1065
+
1066
+ $ sk onboarding browser reset --scope all
1067
+ ```
1068
+
1069
+ ## `sk onboarding browser screenshot`
1070
+
1071
+ Screenshot the page a live run is on — the viewport, the whole page, or one element — into the run's folder
1072
+
1073
+ ```
1074
+ USAGE
1075
+ $ sk onboarding browser screenshot [--run <value>] [--json] [--timeout <value>] [--fullPage | --selector <value>]
1076
+ [--tab <value>]
1077
+
1078
+ FLAGS
1079
+ --fullPage The whole page rather than the viewport
1080
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1081
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
1082
+ is live.
1083
+ --selector=<value> Only the first element this CSS selector matches
1084
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
1085
+ run's own page
1086
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1087
+
1088
+ DESCRIPTION
1089
+ Screenshot the page a live run is on — the viewport, the whole page, or one element — into the run's folder
1090
+
1091
+ EXAMPLES
1092
+ $ sk onboarding browser screenshot
1093
+
1094
+ $ sk onboarding browser screenshot --fullPage
1095
+
1096
+ $ sk onboarding browser screenshot --selector .hero
1097
+ ```
1098
+
1099
+ ## `sk onboarding browser state`
1100
+
1101
+ Which service worker is in charge of the page, and whether the deployed build took over from the local one
1102
+
1103
+ ```
1104
+ USAGE
1105
+ $ sk onboarding browser state [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1106
+
1107
+ FLAGS
1108
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1109
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1110
+ live.
1111
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1112
+ own page
1113
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1114
+
1115
+ DESCRIPTION
1116
+ Which service worker is in charge of the page, and whether the deployed build took over from the local one
1117
+
1118
+ EXAMPLES
1119
+ $ sk onboarding browser state
1120
+ ```
1121
+
1122
+ ## `sk onboarding browser tabs`
1123
+
1124
+ List the tabs of a live run's browser — popups included — as --tab addresses them
1125
+
1126
+ ```
1127
+ USAGE
1128
+ $ sk onboarding browser tabs [--run <value>] [--json] [--timeout <value>]
1129
+
1130
+ FLAGS
1131
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1132
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1133
+ live.
1134
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1135
+
1136
+ DESCRIPTION
1137
+ List the tabs of a live run's browser — popups included — as --tab addresses them
1138
+
1139
+ EXAMPLES
1140
+ $ sk onboarding browser tabs
1141
+
1142
+ $ sk onboarding browser screenshot --tab 1
1143
+
1144
+ $ sk onboarding rum get --tab shop.app
1145
+ ```
1146
+
1147
+ ## `sk onboarding cache clear`
1148
+
1149
+ Empty the local documentHandler cache of a live run
1150
+
1151
+ ```
1152
+ USAGE
1153
+ $ sk onboarding cache clear [--run <value>] [--json] [--timeout <value>]
1154
+
1155
+ FLAGS
1156
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1157
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1158
+ live.
1159
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1160
+
1161
+ DESCRIPTION
1162
+ Empty the local documentHandler cache of a live run
1163
+
1164
+ EXAMPLES
1165
+ $ sk onboarding cache clear
1166
+ ```
1167
+
1168
+ ## `sk onboarding cache errors`
1169
+
1170
+ List the urls the documentHandler is currently failing to build
1171
+
1172
+ ```
1173
+ USAGE
1174
+ $ sk onboarding cache errors [--run <value>] [--json] [--timeout <value>]
1175
+
1176
+ FLAGS
1177
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1178
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1179
+ live.
1180
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1181
+
1182
+ DESCRIPTION
1183
+ List the urls the documentHandler is currently failing to build
1184
+
1185
+ EXAMPLES
1186
+ $ sk onboarding cache errors
1187
+ ```
1188
+
1189
+ ## `sk onboarding cache evict KEY`
1190
+
1191
+ Drop the cached entries whose key contains the given string, so the next request rebuilds them
1192
+
1193
+ ```
1194
+ USAGE
1195
+ $ sk onboarding cache evict KEY [--run <value>] [--json] [--timeout <value>]
1196
+
1197
+ ARGUMENTS
1198
+ KEY Matched as a substring: a homepage url can take every url on the site. The answer names every key that went
1199
+
1200
+ FLAGS
1201
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1202
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1203
+ live.
1204
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1205
+
1206
+ DESCRIPTION
1207
+ Drop the cached entries whose key contains the given string, so the next request rebuilds them
1208
+
1209
+ EXAMPLES
1210
+ $ sk onboarding cache evict /p/123
1211
+ ```
1212
+
1213
+ ## `sk onboarding cache get KEY`
1214
+
1215
+ Read one cached entry. The body goes to a file; --select and --grep answer what is in it
1216
+
1217
+ ```
1218
+ USAGE
1219
+ $ sk onboarding cache get KEY [--run <value>] [--json] [--timeout <value>] [-v <value>] [--select <value>] [--grep
1220
+ <value>] [--maxMatches <value>]
1221
+
1222
+ ARGUMENTS
1223
+ KEY A cache key, or an origin url that names exactly one entry. An ambiguous one is refused with the candidates
1224
+
1225
+ FLAGS
1226
+ -v, --variation=<value> Only this variation's entry, e.g. mobile; default for the one without. With an origin url,
1227
+ names one entry without a cache key
1228
+ --grep=<value> Match this regular expression against the body, line by line
1229
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1230
+ --maxMatches=<value> How many select/grep matches to sample. Default 10
1231
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one
1232
+ run is live.
1233
+ --select=<value> Count and sample what this CSS selector matches in the body
1234
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1235
+
1236
+ DESCRIPTION
1237
+ Read one cached entry. The body goes to a file; --select and --grep answer what is in it
1238
+
1239
+ EXAMPLES
1240
+ $ sk onboarding cache get https://www.decathlon.de/
1241
+
1242
+ $ sk onboarding cache get https://www.decathlon.de/ --select 'script[src*="analytics"]'
1243
+
1244
+ $ sk onboarding cache get /p/123 --grep storeId
1245
+ ```
1246
+
1247
+ ## `sk onboarding cache list`
1248
+
1249
+ List what the local documentHandler cache of a live run holds
1250
+
1251
+ ```
1252
+ USAGE
1253
+ $ sk onboarding cache list [--run <value>] [--json] [--timeout <value>]
1254
+
1255
+ FLAGS
1256
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1257
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1258
+ live.
1259
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1260
+
1261
+ DESCRIPTION
1262
+ List what the local documentHandler cache of a live run holds
1263
+
1264
+ EXAMPLES
1265
+ $ sk onboarding cache list
1266
+
1267
+ $ sk onboarding cache list --run decathlon.de --json
1268
+ ```
1269
+
1270
+ ## `sk onboarding cache prewarm URL`
1271
+
1272
+ Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all
1273
+
1274
+ ```
1275
+ USAGE
1276
+ $ sk onboarding cache prewarm URL [--run <value>] [--json] [--timeout <value>] [--all | -v <value>...]
1277
+
1278
+ ARGUMENTS
1279
+ URL The page to build, absolute or relative to the origin the run is on. Taken verbatim: a query parameter is part of
1280
+ the identity
1281
+
1282
+ FLAGS
1283
+ -v, --variation=<value>... A cache variation to build; repeat for several. Omitted means default alone; --all for
1284
+ every one
1285
+ --all Default, every variation the page has produced in this run, and every one the runtime
1286
+ config names. Not tablet unless the page made one
1287
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1288
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly
1289
+ one run is live.
1290
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1291
+
1292
+ DESCRIPTION
1293
+ Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all
1294
+
1295
+ EXAMPLES
1296
+ $ sk onboarding cache prewarm /p/123 -v default -v mobile
1297
+
1298
+ $ sk onboarding cache prewarm /p/123 --all
1299
+ ```
1300
+
1301
+ ## `sk onboarding cache refresh [KEY]`
1302
+
1303
+ Rebuild cached entries from origin and say whether the origin's bytes changed
1304
+
1305
+ ```
1306
+ USAGE
1307
+ $ sk onboarding cache refresh [KEY] [--run <value>] [--json] [--timeout <value>]
1308
+
1309
+ ARGUMENTS
1310
+ [KEY] Which entries to rebuild: a cache key or an origin url. Omit for all
1311
+
1312
+ FLAGS
1313
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1314
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1315
+ live.
1316
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1317
+
1318
+ DESCRIPTION
1319
+ Rebuild cached entries from origin and say whether the origin's bytes changed
1320
+
1321
+ EXAMPLES
1322
+ $ sk onboarding cache refresh
1323
+
1324
+ $ sk onboarding cache refresh https://www.decathlon.de/
1325
+ ```
1326
+
1327
+ ## `sk onboarding cdp METHOD [PARAMS]`
1328
+
1329
+ Send one Chrome DevTools Protocol call through a live run — no debug port needed. Refuses Fetch, Target and calls that close the page or the browser
1330
+
1331
+ ```
1332
+ USAGE
1333
+ $ sk onboarding cdp METHOD [PARAMS] [--run <value>] [--json] [--timeout <value>] [-f <value>] [--tab <value>]
1334
+
1335
+ ARGUMENTS
1336
+ METHOD A CDP method, e.g. DOM.getDocument or Network.getCookies
1337
+ [PARAMS] Its parameters, as a JSON object. Or --file
1338
+
1339
+ FLAGS
1340
+ -f, --file=<value> Read the parameters from this JSON file instead
1341
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1342
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one
1343
+ run is live.
1344
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
1345
+ run's own page
1346
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1347
+
1348
+ DESCRIPTION
1349
+ Send one Chrome DevTools Protocol call through a live run — no debug port needed. Refuses Fetch, Target and calls that
1350
+ close the page or the browser
1351
+
1352
+ EXAMPLES
1353
+ $ sk onboarding cdp Network.getCookies
1354
+
1355
+ $ sk onboarding cdp DOM.getDocument '{"depth": 2}'
1356
+
1357
+ $ sk onboarding cdp Emulation.setCPUThrottlingRate '{"rate": 4}' --tab 1
1358
+
1359
+ $ sk onboarding cdp Page.printToPDF --file params.json --json
1360
+ ```
1361
+
1362
+ ## `sk onboarding debug arm`
1363
+
1364
+ Arm breakpoints in the Speed Kit page lifecycle and, by default, reload so they can fire
1365
+
1366
+ ```
1367
+ USAGE
1368
+ $ sk onboarding debug arm [--run <value>] [--json] [--timeout <value>] [--bp <value>...] [--then reload|next-nav|none]
1369
+ [--tab <value>]
1370
+
1371
+ FLAGS
1372
+ --bp=<value>... Which breakpoint, 1–4; repeat for several. Omitted arms all four
1373
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1374
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1375
+ live.
1376
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1377
+ own page
1378
+ --then=<option> [default: reload] reload: load the page again, as a navigation (Speed Kit does not serve a reload
1379
+ from cache). next-nav: catch the next navigation. none: only arm
1380
+ <options: reload|next-nav|none>
1381
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1382
+
1383
+ DESCRIPTION
1384
+ Arm breakpoints in the Speed Kit page lifecycle and, by default, reload so they can fire
1385
+
1386
+ EXAMPLES
1387
+ $ sk onboarding debug arm
1388
+
1389
+ $ sk onboarding debug arm --bp 3 --then next-nav
1390
+ ```
1391
+
1392
+ ## `sk onboarding debug await`
1393
+
1394
+ Wait until a breakpoint pauses the page, and say what silence means if none does
1395
+
1396
+ ```
1397
+ USAGE
1398
+ $ sk onboarding debug await [--run <value>] [--json] [--timeout <value>] [--wait <value>] [--tab <value>]
1399
+
1400
+ FLAGS
1401
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1402
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1403
+ live.
1404
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1405
+ own page
1406
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1407
+ --wait=<value> How long to wait for a pause, in ms. Default 15000
1408
+
1409
+ DESCRIPTION
1410
+ Wait until a breakpoint pauses the page, and say what silence means if none does
1411
+
1412
+ EXAMPLES
1413
+ $ sk onboarding debug await
1414
+
1415
+ $ sk onboarding debug await --wait 30000
1416
+ ```
1417
+
1418
+ ## `sk onboarding debug disarm`
1419
+
1420
+ Take every breakpoint this run armed out of the page
1421
+
1422
+ ```
1423
+ USAGE
1424
+ $ sk onboarding debug disarm [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1425
+
1426
+ FLAGS
1427
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1428
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1429
+ live.
1430
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1431
+ own page
1432
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1433
+
1434
+ DESCRIPTION
1435
+ Take every breakpoint this run armed out of the page
1436
+
1437
+ EXAMPLES
1438
+ $ sk onboarding debug disarm
1439
+ ```
1440
+
1441
+ ## `sk onboarding debug eval [EXPRESSION]`
1442
+
1443
+ Evaluate JavaScript on the paused frame, or in the page when it is not paused
1444
+
1445
+ ```
1446
+ USAGE
1447
+ $ sk onboarding debug eval [EXPRESSION] [--run <value>] [--json] [--timeout <value>] [-f <value>] [--tab <value>]
1448
+
1449
+ ARGUMENTS
1450
+ [EXPRESSION] JavaScript, evaluated on the paused frame when paused (its locals are in scope), in the page otherwise.
1451
+ Or --file
1452
+
1453
+ FLAGS
1454
+ -f, --file=<value> Read the JavaScript from this file instead: for anything longer than a line
1455
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1456
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one
1457
+ run is live.
1458
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
1459
+ run's own page
1460
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1461
+
1462
+ DESCRIPTION
1463
+ Evaluate JavaScript on the paused frame, or in the page when it is not paused
1464
+
1465
+ EXAMPLES
1466
+ $ sk onboarding debug eval 'document.documentElement.className'
1467
+
1468
+ $ sk onboarding debug eval --file probe.js
1469
+ ```
1470
+
1471
+ ## `sk onboarding debug release`
1472
+
1473
+ Get the page running, whoever paused it: disarm, clear the panel switches, resume a foreign pause
1474
+
1475
+ ```
1476
+ USAGE
1477
+ $ sk onboarding debug release [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1478
+
1479
+ FLAGS
1480
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1481
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1482
+ live.
1483
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1484
+ own page
1485
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1486
+
1487
+ DESCRIPTION
1488
+ Get the page running, whoever paused it: disarm, clear the panel switches, resume a foreign pause
1489
+
1490
+ EXAMPLES
1491
+ $ sk onboarding debug release
1492
+ ```
1493
+
1494
+ ## `sk onboarding debug resume`
1495
+
1496
+ Let a paused page continue
1497
+
1498
+ ```
1499
+ USAGE
1500
+ $ sk onboarding debug resume [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1501
+
1502
+ FLAGS
1503
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1504
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1505
+ live.
1506
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1507
+ own page
1508
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1509
+
1510
+ DESCRIPTION
1511
+ Let a paused page continue
1512
+
1513
+ EXAMPLES
1514
+ $ sk onboarding debug resume
1515
+ ```
1516
+
1517
+ ## `sk onboarding debug status`
1518
+
1519
+ What is armed, what the page has reached, and who holds a pause
1520
+
1521
+ ```
1522
+ USAGE
1523
+ $ sk onboarding debug status [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1524
+
1525
+ FLAGS
1526
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1527
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1528
+ live.
1529
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1530
+ own page
1531
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1532
+
1533
+ DESCRIPTION
1534
+ What is armed, what the page has reached, and who holds a pause
1535
+
1536
+ EXAMPLES
1537
+ $ sk onboarding debug status
1538
+ ```
1539
+
1540
+ ## `sk onboarding debug step KIND`
1541
+
1542
+ Step over, into or out of the current call of a paused page
1543
+
1544
+ ```
1545
+ USAGE
1546
+ $ sk onboarding debug step KIND [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1547
+
1548
+ ARGUMENTS
1549
+ KIND (over|into|out) Step over, into or out of the current call
1550
+
1551
+ FLAGS
1552
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1553
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1554
+ live.
1555
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1556
+ own page
1557
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1558
+
1559
+ DESCRIPTION
1560
+ Step over, into or out of the current call of a paused page
1561
+
1562
+ EXAMPLES
1563
+ $ sk onboarding debug step over
1564
+ ```
1565
+
1566
+ ## `sk onboarding files list`
1567
+
1568
+ List the config files a live run is working with, including the ones it built in memory
1569
+
1570
+ ```
1571
+ USAGE
1572
+ $ sk onboarding files list [--run <value>] [--json] [--timeout <value>]
1573
+
1574
+ FLAGS
1575
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1576
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1577
+ live.
1578
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1579
+
1580
+ DESCRIPTION
1581
+ List the config files a live run is working with, including the ones it built in memory
1582
+
1583
+ EXAMPLES
1584
+ $ sk onboarding files list
1585
+ ```
1586
+
1587
+ ## `sk onboarding files read NAME`
1588
+
1589
+ Read one config file as the run has it. The content goes to a file; --grep answers what is in it
1590
+
1591
+ ```
1592
+ USAGE
1593
+ $ sk onboarding files read NAME [--run <value>] [--json] [--timeout <value>] [--grep <value>] [--maxMatches <value>]
1594
+
1595
+ ARGUMENTS
1596
+ NAME The logical name, e.g. config_SpeedKit, custom_documentHandler, bundle_install. `files list` names them
1597
+
1598
+ FLAGS
1599
+ --grep=<value> Match this regular expression line by line: "did my change survive the build" of a minified
1600
+ bundle
1601
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1602
+ --maxMatches=<value> How many grep matches to sample. Default 10
1603
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
1604
+ is live.
1605
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1606
+
1607
+ DESCRIPTION
1608
+ Read one config file as the run has it. The content goes to a file; --grep answers what is in it
1609
+
1610
+ EXAMPLES
1611
+ $ sk onboarding files read bundle_install --grep storeId
1612
+
1613
+ $ sk onboarding files read config_SpeedKit
1614
+ ```
1615
+
1616
+ ## `sk onboarding files rebuild`
1617
+
1618
+ Rebuild the install resource, the documentHandler or both, as a file change would
1619
+
1620
+ ```
1621
+ USAGE
1622
+ $ sk onboarding files rebuild [--run <value>] [--json] [--timeout <value>] [--target install|documentHandler|all]
1623
+
1624
+ FLAGS
1625
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1626
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1627
+ live.
1628
+ --target=<option> [default: all] install: the install resource, then a service worker reinstall. documentHandler: the
1629
+ DH bundle, emptying the dh-cache
1630
+ <options: install|documentHandler|all>
1631
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1632
+
1633
+ DESCRIPTION
1634
+ Rebuild the install resource, the documentHandler or both, as a file change would
1635
+
1636
+ EXAMPLES
1637
+ $ sk onboarding files rebuild
1638
+
1639
+ $ sk onboarding files rebuild --target documentHandler
1640
+ ```
1641
+
1642
+ ## `sk onboarding files validate`
1643
+
1644
+ Check the customer config and the mandatory files
1645
+
1646
+ ```
1647
+ USAGE
1648
+ $ sk onboarding files validate [--run <value>] [--json] [--timeout <value>]
1649
+
1650
+ FLAGS
1651
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1652
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1653
+ live.
1654
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1655
+
1656
+ DESCRIPTION
1657
+ Check the customer config and the mandatory files
1658
+
1659
+ EXAMPLES
1660
+ $ sk onboarding files validate
1661
+ ```
1662
+
1663
+ ## `sk onboarding fouc`
1664
+
1665
+ Reload and sample the load to catch a flash of unstyled content
1666
+
1667
+ ```
1668
+ USAGE
1669
+ $ sk onboarding fouc [--run <value>] [--json] [--timeout <value>] [--selector <value>] [--duration <value>] [--tab
1670
+ <value>]
1671
+
1672
+ FLAGS
1673
+ --duration=<value> How long to sample after the reload, in ms. Default 8000
1674
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1675
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
1676
+ is live.
1677
+ --selector=<value> The element whose styling decides whether the paint was styled, e.g. a hero. Default the body
1678
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
1679
+ run's own page
1680
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1681
+
1682
+ DESCRIPTION
1683
+ Reload and sample the load to catch a flash of unstyled content
1684
+
1685
+ EXAMPLES
1686
+ $ sk onboarding fouc
1687
+
1688
+ $ sk onboarding fouc --selector .hero
1689
+ ```
1690
+
1691
+ ## `sk onboarding inject add`
1692
+
1693
+ Inject a script into every navigation, from before the site's own scripts run
1694
+
1695
+ ```
1696
+ USAGE
1697
+ $ sk onboarding inject add [--run <value>] [--json] [--timeout <value>] [--recipe <value> | --source <value>] [--param
1698
+ <value>...] [--ttl <value>] [--tab <value>]
1699
+
1700
+ FLAGS
1701
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1702
+ --param=<value>... A recipe argument as name=value; repeat for several. The value is read as JSON when it parses,
1703
+ else as a string
1704
+ --recipe=<value> A recipe from `recipes`. Exclusive with --source
1705
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
1706
+ is live.
1707
+ --source=<value> Raw JavaScript, run inside the envelope; call record(value) to buffer something. Reach globals
1708
+ through window
1709
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
1710
+ run's own page
1711
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1712
+ --ttl=<value> Minutes until it removes itself. Default 30; 0 for no expiry
1713
+
1714
+ DESCRIPTION
1715
+ Inject a script into every navigation, from before the site's own scripts run
1716
+
1717
+ EXAMPLES
1718
+ $ sk onboarding inject add --recipe mark-timeline
1719
+
1720
+ $ sk onboarding inject add --recipe spy --param path=dataLayer.push
1721
+
1722
+ $ sk onboarding inject add --source 'record(window.SpeedKit?.lastNavigate)' --ttl 0
1723
+ ```
1724
+
1725
+ ## `sk onboarding inject clear`
1726
+
1727
+ Take every injected script out
1728
+
1729
+ ```
1730
+ USAGE
1731
+ $ sk onboarding inject clear [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1732
+
1733
+ FLAGS
1734
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1735
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1736
+ live.
1737
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1738
+ own page
1739
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1740
+
1741
+ DESCRIPTION
1742
+ Take every injected script out
1743
+
1744
+ EXAMPLES
1745
+ $ sk onboarding inject clear
1746
+ ```
1747
+
1748
+ ## `sk onboarding inject list`
1749
+
1750
+ List what is injected on a live run
1751
+
1752
+ ```
1753
+ USAGE
1754
+ $ sk onboarding inject list [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1755
+
1756
+ FLAGS
1757
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1758
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1759
+ live.
1760
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1761
+ own page
1762
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1763
+
1764
+ DESCRIPTION
1765
+ List what is injected on a live run
1766
+
1767
+ EXAMPLES
1768
+ $ sk onboarding inject list
1769
+ ```
1770
+
1771
+ ## `sk onboarding inject read PRELOAD`
1772
+
1773
+ Drain what an injected script recorded, newest last
1774
+
1775
+ ```
1776
+ USAGE
1777
+ $ sk onboarding inject read PRELOAD [--run <value>] [--json] [--timeout <value>] [--limit <value>] [--tab <value>]
1778
+
1779
+ ARGUMENTS
1780
+ PRELOAD The preload id, e.g. p1. `list` names them
1781
+
1782
+ FLAGS
1783
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1784
+ --limit=<value> How many records, newest last. Default 100
1785
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1786
+ live.
1787
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1788
+ own page
1789
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1790
+
1791
+ DESCRIPTION
1792
+ Drain what an injected script recorded, newest last
1793
+
1794
+ EXAMPLES
1795
+ $ sk onboarding inject read p1
1796
+
1797
+ $ sk onboarding inject read p1 --limit 20 --json
1798
+ ```
1799
+
1800
+ ## `sk onboarding inject recipes`
1801
+
1802
+ List the scripts that can be injected, and what each one takes
1803
+
1804
+ ```
1805
+ USAGE
1806
+ $ sk onboarding inject recipes [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1807
+
1808
+ FLAGS
1809
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1810
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1811
+ live.
1812
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1813
+ own page
1814
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1815
+
1816
+ DESCRIPTION
1817
+ List the scripts that can be injected, and what each one takes
1818
+
1819
+ EXAMPLES
1820
+ $ sk onboarding inject recipes
1821
+ ```
1822
+
1823
+ ## `sk onboarding inject remove PRELOAD`
1824
+
1825
+ Take one injected script out, including the copy running in the page
1826
+
1827
+ ```
1828
+ USAGE
1829
+ $ sk onboarding inject remove PRELOAD [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1830
+
1831
+ ARGUMENTS
1832
+ PRELOAD The preload id, e.g. p1. `list` names them
1833
+
1834
+ FLAGS
1835
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1836
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1837
+ live.
1838
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1839
+ own page
1840
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1841
+
1842
+ DESCRIPTION
1843
+ Take one injected script out, including the copy running in the page
1844
+
1845
+ EXAMPLES
1846
+ $ sk onboarding inject remove p1
1847
+ ```
1848
+
1849
+ ## `sk onboarding list`
1850
+
1851
+ List the onboarding runs on this machine, live and finished
1852
+
1853
+ ```
1854
+ USAGE
1855
+ $ sk onboarding list [--run <value>] [--json]
1856
+
1857
+ FLAGS
1858
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1859
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1860
+ live.
1861
+
1862
+ DESCRIPTION
1863
+ List the onboarding runs on this machine, live and finished
1864
+
1865
+ EXAMPLES
1866
+ $ sk onboarding list
1867
+ ```
1868
+
1869
+ ## `sk onboarding logs [RUN]`
1870
+
1871
+ Read what an onboarding run did, live or long after it ended
1872
+
1873
+ ```
1874
+ USAGE
1875
+ $ sk onboarding logs [RUN] [--run <value> | --list] [--since <value>] [--until <value>] [--sinceSeq <value>]
1876
+ [--level <value>] [--scope <value>] [--grep <value>] [--url <value>] [--tail <value>] [-f] [--requests] [--outcome
1877
+ fulfilled|failed|continued|error] [--handler <value>] [--summary] [--json]
1878
+
1879
+ ARGUMENTS
1880
+ [RUN] Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is live.
1881
+
1882
+ FLAGS
1883
+ -f, --follow Keep reading as the run writes. Ctrl+C to stop
1884
+ --grep=<value> Only lines whose message matches this regex (case-insensitive)
1885
+ --handler=<value> With --requests: only the requests this handler answered
1886
+ --json Raw events, one JSON object per line, to stdout
1887
+ --level=<value> This level and above: debug, info, success, warn, error
1888
+ --list List the recorded runs instead of reading one
1889
+ --outcome=<option> With --requests: only fulfilled, failed, continued or error
1890
+ <options: fulfilled|failed|continued|error>
1891
+ --requests Read the intercepted requests instead of the narration: what the CLI served, aborted or handed
1892
+ straight to Chrome
1893
+ --run=<value> Which run, as every other `sk onboarding <tool> <op>` names it; the same as the argument
1894
+ --scope=<value> Only these scopes, comma-separated: cli, browser, sw, fetch, documentHandler, config, cache,
1895
+ extension, athena, todo, appToken, process, console (the page's warnings and errors)
1896
+ --since=<value> Only lines after this: a span like 5m, 2h, 1d, or an ISO timestamp
1897
+ --sinceSeq=<value> Only lines after this sequence number — the cursor a previous read reported
1898
+ --summary One screen for the whole run: counts, deduplicated problems, failed actions, questions asked
1899
+ --tail=<value> Only the last n matching lines
1900
+ --until=<value> Only lines before this. Same formats as --since
1901
+ --url=<value> Only lines mentioning this url, in the message or in the data
1902
+
1903
+ DESCRIPTION
1904
+ Read what an onboarding run did, live or long after it ended
1905
+
1906
+ EXAMPLES
1907
+ $ sk onboarding logs
1908
+
1909
+ $ sk onboarding logs --list
1910
+
1911
+ $ sk onboarding logs decathlon.de --summary
1912
+
1913
+ $ sk onboarding logs --run decathlon.de --level warn --json
1914
+
1915
+ $ sk onboarding logs --level warn --since 10m
1916
+
1917
+ $ sk onboarding logs --scope sw,fetch --url /checkout
1918
+
1919
+ $ sk onboarding logs --follow
1920
+
1921
+ $ sk onboarding logs --requests --outcome continued --url /checkout
1922
+ ```
1923
+
1924
+ ## `sk onboarding navwalk`
1925
+
1926
+ Click into a login or checkout flow and list every same-origin document hop: the disabledScopes candidates
1927
+
1928
+ ```
1929
+ USAGE
1930
+ $ sk onboarding navwalk [--run <value>] [--json] [--timeout <value>] [--url <value>] [--wait <value>] [--all | --flow
1931
+ login|checkout | --click <value>] [--tab <value>]
1932
+
1933
+ FLAGS
1934
+ --all Walk both built-in flows, login then checkout, and report them together
1935
+ --click=<value> The control to click: a CSS selector, or text matched against links and buttons
1936
+ --flow=<option> The built-in trigger; checkout starts at /cart. Default login when no --click is given
1937
+ <options: login|checkout>
1938
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1939
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1940
+ live.
1941
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1942
+ own page
1943
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1944
+ --url=<value> Navigate here first, so the walk starts somewhere known
1945
+ --wait=<value> How long to collect after the click, in ms. Default 9000
1946
+
1947
+ DESCRIPTION
1948
+ Click into a login or checkout flow and list every same-origin document hop: the disabledScopes candidates
1949
+
1950
+ EXAMPLES
1951
+ $ sk onboarding navwalk
1952
+
1953
+ $ sk onboarding navwalk --flow checkout
1954
+
1955
+ $ sk onboarding navwalk --click Anmelden
1956
+ ```
1957
+
1958
+ ## `sk onboarding response [URL]`
1959
+
1960
+ Why a url came back the way it did: the rule verdict, the cache entry and what Speed Kit reported
1961
+
1962
+ ```
1963
+ USAGE
1964
+ $ sk onboarding response [URL] [--run <value>] [--json] [--timeout <value>] [--tab <value>]
1965
+
1966
+ ARGUMENTS
1967
+ [URL] Absolute, or relative to the customer origin. Omitted means the page the run is on
1968
+
1969
+ FLAGS
1970
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1971
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1972
+ live.
1973
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
1974
+ own page
1975
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1976
+
1977
+ DESCRIPTION
1978
+ Why a url came back the way it did: the rule verdict, the cache entry and what Speed Kit reported
1979
+
1980
+ EXAMPLES
1981
+ $ sk onboarding response
1982
+
1983
+ $ sk onboarding response /checkout
1984
+ ```
1985
+
1986
+ ## `sk onboarding rum beacons`
1987
+
1988
+ The RUM beacons as they left the page — which one carried a field, and when. --follow watches while you act
1989
+
1990
+ ```
1991
+ USAGE
1992
+ $ sk onboarding rum beacons [--run <value>] [--json] [--timeout <value>] [--key <value>] [-f] [--sinceSeq <value>]
1993
+
1994
+ FLAGS
1995
+ -f, --follow Keep printing new beacons until Ctrl+C: act, and watch
1996
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1997
+ --key=<value> Only beacons carrying this field, anywhere in the payload, with its value
1998
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one
1999
+ run is live.
2000
+ --sinceSeq=<value> Only beacons after this sequence number
2001
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2002
+
2003
+ DESCRIPTION
2004
+ The RUM beacons as they left the page — which one carried a field, and when. --follow watches while you act
2005
+
2006
+ EXAMPLES
2007
+ $ sk onboarding rum beacons
2008
+
2009
+ $ sk onboarding rum beacons --key addToCart --follow
2010
+ ```
2011
+
2012
+ ## `sk onboarding rum get`
2013
+
2014
+ Read what Speed Kit tracked for the page: sent data only, unless --flush
2015
+
2016
+ ```
2017
+ USAGE
2018
+ $ sk onboarding rum get [--run <value>] [--json] [--timeout <value>] [--key <value>...] [--flush] [--tab <value>]
2019
+
2020
+ FLAGS
2021
+ --flush Force a send first, so nothing is missing. It ends the impression being measured: prefer `rum key`
2022
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2023
+ --key=<value>... Only this field; repeat for several
2024
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2025
+ live.
2026
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
2027
+ own page
2028
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2029
+
2030
+ DESCRIPTION
2031
+ Read what Speed Kit tracked for the page: sent data only, unless --flush
2032
+
2033
+ EXAMPLES
2034
+ $ sk onboarding rum get
2035
+
2036
+ $ sk onboarding rum get --key pageType --key variation
2037
+ ```
2038
+
2039
+ ## `sk onboarding rum key KEY`
2040
+
2041
+ Read one RUM field, unsent data included, without ending the impression
2042
+
2043
+ ```
2044
+ USAGE
2045
+ $ sk onboarding rum key KEY [--run <value>] [--json] [--timeout <value>] [--tab <value>]
2046
+
2047
+ ARGUMENTS
2048
+ KEY The RUM field, e.g. a custom dimension. Unsent data included
2049
+
2050
+ FLAGS
2051
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2052
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2053
+ live.
2054
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
2055
+ own page
2056
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2057
+
2058
+ DESCRIPTION
2059
+ Read one RUM field, unsent data included, without ending the impression
2060
+
2061
+ EXAMPLES
2062
+ $ sk onboarding rum key myCustomDimension
2063
+ ```
2064
+
2065
+ ## `sk onboarding rum previous`
2066
+
2067
+ Read the previous page impression: on an SPA, the one that loaded the page
2068
+
2069
+ ```
2070
+ USAGE
2071
+ $ sk onboarding rum previous [--run <value>] [--json] [--timeout <value>] [--tab <value>]
2072
+
2073
+ FLAGS
2074
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2075
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2076
+ live.
2077
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
2078
+ own page
2079
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2080
+
2081
+ DESCRIPTION
2082
+ Read the previous page impression: on an SPA, the one that loaded the page
2083
+
2084
+ EXAMPLES
2085
+ $ sk onboarding rum previous
2086
+ ```
2087
+
2088
+ ## `sk onboarding status`
2089
+
2090
+ The live onboarding run, or the one --run names
2091
+
2092
+ ```
2093
+ USAGE
2094
+ $ sk onboarding status [--run <value>] [--json]
2095
+
2096
+ FLAGS
2097
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2098
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2099
+ live.
2100
+
2101
+ DESCRIPTION
2102
+ The live onboarding run, or the one --run names
2103
+
2104
+ EXAMPLES
2105
+ $ sk onboarding status
2106
+
2107
+ $ sk onboarding status --run decathlon.de --json
2108
+ ```
2109
+
2110
+ ## `sk onboarding todo`
2111
+
2112
+ List the TODOs left in the config files of a live run, with the file and line to open
2113
+
2114
+ ```
2115
+ USAGE
2116
+ $ sk onboarding todo [--run <value>] [--json] [--timeout <value>]
2117
+
2118
+ FLAGS
2119
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2120
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2121
+ live.
2122
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2123
+
2124
+ DESCRIPTION
2125
+ List the TODOs left in the config files of a live run, with the file and line to open
2126
+
2127
+ EXAMPLES
2128
+ $ sk onboarding todo
2129
+ ```
2130
+
2131
+ ## `sk onboarding viewport`
2132
+
2133
+ Sweep the viewport to find the widths where the page's JavaScript re-renders: what a device variation has to cover
2134
+
2135
+ ```
2136
+ USAGE
2137
+ $ sk onboarding viewport [--run <value>] [--json] [--timeout <value>] [--min <value>] [--max <value>] [--step <value>]
2138
+ [--settle <value>] [--height <value>] [--url <value>] [--tab <value>]
2139
+
2140
+ FLAGS
2141
+ --height=<value> Viewport height. Default 900
2142
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2143
+ --max=<value> Widest width. Default 1600
2144
+ --min=<value> Narrowest width. Default 360
2145
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2146
+ live.
2147
+ --settle=<value> How long the page gets to react to each resize, in ms. Default 350
2148
+ --step=<value> Coarse increment before pinning to the pixel. Default 20; lower it for breakpoints close together
2149
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
2150
+ own page
2151
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2152
+ --url=<value> Navigate here first, so the sweep is of a known page
2153
+
2154
+ DESCRIPTION
2155
+ Sweep the viewport to find the widths where the page's JavaScript re-renders: what a device variation has to cover
2156
+
2157
+ EXAMPLES
2158
+ $ sk onboarding viewport
2159
+
2160
+ $ sk onboarding viewport --min 700 --max 1100 --step 10
2161
+ ```
2162
+
2163
+ ## `sk onboarding watch EXPRESSION`
2164
+
2165
+ Sample an expression in the page across a load, with the console messages beside it
2166
+
2167
+ ```
2168
+ USAGE
2169
+ $ sk onboarding watch EXPRESSION [--run <value>] [--json] [--timeout <value>] [--interval <value>] [--duration
2170
+ <value>] [--reload] [--full] [--tab <value>]
2171
+
2172
+ ARGUMENTS
2173
+ EXPRESSION JavaScript returning a JSON-able value, evaluated every tick, e.g. '!!window.SpeedKit'
2174
+
2175
+ FLAGS
2176
+ --duration=<value> How long to watch, in ms. Default 15000, at most 120000
2177
+ --full Every sample, not only the ones where the value changed
2178
+ --interval=<value> Milliseconds between samples. Default 200
2179
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2180
+ --reload Reload first, so the timeline starts at t=0 of a fresh load. Almost always right for a question
2181
+ about page load
2182
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
2183
+ is live.
2184
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
2185
+ run's own page
2186
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
2187
+
2188
+ DESCRIPTION
2189
+ Sample an expression in the page across a load, with the console messages beside it
2190
+
2191
+ EXAMPLES
2192
+ $ sk onboarding watch '!!window.SpeedKit' --reload
2193
+
2194
+ $ sk onboarding watch 'document.title' --reload --duration 30000
2195
+ ```
2196
+
840
2197
  ## `sk origin-request [CUSTOMERPATH] [PAGEURL]`
841
2198
 
842
2199
  Request a page from origin with the exact headers Speed Kit's server sends for a cache variation, using the app's deployed runtime config
@@ -844,7 +2201,7 @@ Request a page from origin with the exact headers Speed Kit's server sends for a
844
2201
  ```
845
2202
  USAGE
846
2203
  $ sk origin-request [CUSTOMERPATH] [PAGEURL] [-c <value>] [-v <value>] [--host <value>] [--body <value>] [--grep
847
- <value>] [--json] [--variations <value>] [--raw]
2204
+ <value>] [--select <value>] [--maxMatches <value>] [--json] [--variations <value>] [--raw]
848
2205
 
849
2206
  ARGUMENTS
850
2207
  [CUSTOMERPATH] The customer config path; optional with --raw, which then sends Speed Kit's device defaults
@@ -858,8 +2215,10 @@ FLAGS
858
2215
  --grep=<value> Print body lines matching this regex, case-insensitive
859
2216
  --host=<value> Send this Host header, emulating an origin-map host override
860
2217
  --json Machine-readable output
2218
+ --maxMatches=<value> How many --select and --grep matches to show. Default 10
861
2219
  --raw Request without a customer: the customer path becomes optional, and the request carries
862
2220
  Speed Kit's device defaults (default, mobile, tablet) and no variation of an app
2221
+ --select=<value> Count and sample what this CSS selector matches in the body, e.g. 'script[src*="analytics"]'
863
2222
  --variations=<value> Simulate against a runtime config in a local file instead of the app's deployed one
864
2223
 
865
2224
  DESCRIPTION