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