@speedkit/cli 4.51.0-run-control.1 → 4.51.0-run-control.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/README.md +81 -29
  2. package/dist/build-info.json +3 -3
  3. package/dist/commands/diff.d.ts +1 -0
  4. package/dist/commands/login.d.ts +3 -0
  5. package/dist/commands/login.js +14 -3
  6. package/dist/commands/onboarding/browser/emulate.d.ts +12 -0
  7. package/dist/commands/onboarding/browser/emulate.js +3 -0
  8. package/dist/commands/onboarding/browser/navigate.d.ts +8 -0
  9. package/dist/commands/onboarding/browser/navigate.js +2 -1
  10. package/dist/commands/onboarding/cache/prewarm.js +1 -1
  11. package/dist/commands/onboarding/debug/arm.d.ts +6 -0
  12. package/dist/commands/onboarding/debug/arm.js +2 -1
  13. package/dist/commands/onboarding/files/rebuild.d.ts +6 -6
  14. package/dist/commands/onboarding/logs.js +3 -2
  15. package/dist/commands/onboarding/status.js +2 -2
  16. package/dist/commands/onboarding/stop.d.ts +13 -0
  17. package/dist/commands/onboarding/stop.js +17 -0
  18. package/dist/commands/onboarding.d.ts +1 -1
  19. package/dist/commands/onboarding.js +1 -1
  20. package/dist/services/diff/diff-service-build-context.d.ts +4 -0
  21. package/dist/services/diff/diff-service-build-context.js +5 -0
  22. package/dist/services/diff/diff-service-factory.js +17 -5
  23. package/dist/services/diff/run-runtime-config.d.ts +33 -0
  24. package/dist/services/diff/run-runtime-config.js +74 -0
  25. package/dist/services/diff/spec/run-runtime-config.spec.d.ts +1 -0
  26. package/dist/services/diff/spec/run-runtime-config.spec.js +87 -0
  27. package/dist/services/onboarding/browse/browse-service.d.ts +13 -1
  28. package/dist/services/onboarding/browse/browse-service.js +40 -7
  29. package/dist/services/onboarding/browser/answer-dialogs.d.ts +12 -0
  30. package/dist/services/onboarding/browser/answer-dialogs.js +25 -0
  31. package/dist/services/onboarding/browser/emulate-device.d.ts +12 -1
  32. package/dist/services/onboarding/browser/emulate-device.js +33 -6
  33. package/dist/services/onboarding/browser/launch-browser.d.ts +2 -1
  34. package/dist/services/onboarding/browser/launch-browser.js +6 -1
  35. package/dist/services/onboarding/browser/resume-restarted-workers.d.ts +14 -0
  36. package/dist/services/onboarding/browser/resume-restarted-workers.js +26 -0
  37. package/dist/services/onboarding/control/browser-session.d.ts +26 -12
  38. package/dist/services/onboarding/control/browser-session.js +118 -91
  39. package/dist/services/onboarding/control/control-protocol.d.ts +39 -1
  40. package/dist/services/onboarding/control/control-protocol.js +0 -11
  41. package/dist/services/onboarding/control/control-server.d.ts +8 -0
  42. package/dist/services/onboarding/control/control-server.js +22 -2
  43. package/dist/services/onboarding/control/debug-session.d.ts +30 -1
  44. package/dist/services/onboarding/control/debug-session.js +106 -10
  45. package/dist/services/onboarding/control/navigate-wait.d.ts +33 -0
  46. package/dist/services/onboarding/control/navigate-wait.js +56 -0
  47. package/dist/services/onboarding/control/service-worker-tracker.js +1 -0
  48. package/dist/services/onboarding/control/watch.js +9 -1
  49. package/dist/services/onboarding/fetch-event-handler.js +9 -0
  50. package/dist/services/onboarding/inject/inject-service.js +1 -1
  51. package/dist/services/onboarding/onboarding-model.js +2 -1
  52. package/dist/services/onboarding/onboarding-service-build-context.js +1 -1
  53. package/dist/services/onboarding/onboarding-service-factory.js +20 -7
  54. package/dist/services/onboarding/onboarding-service.js +1 -1
  55. package/dist/services/onboarding/spec/browser/answer-dialogs.spec.d.ts +1 -0
  56. package/dist/services/onboarding/spec/browser/answer-dialogs.spec.js +66 -0
  57. package/dist/services/onboarding/spec/browser/resume-restarted-workers.spec.d.ts +1 -0
  58. package/dist/services/onboarding/spec/browser/resume-restarted-workers.spec.js +45 -0
  59. package/dist/services/onboarding/spec/control/browser-session.spec.js +127 -2
  60. package/dist/services/onboarding/spec/control/control-server.spec.js +33 -0
  61. package/dist/services/onboarding/spec/control/debug-session.spec.js +58 -0
  62. package/dist/services/onboarding/spec/control/navigate-wait.spec.d.ts +1 -0
  63. package/dist/services/onboarding/spec/control/navigate-wait.spec.js +47 -0
  64. package/dist/services/onboarding/spec/control/watch.spec.js +15 -0
  65. package/dist/services/onboarding/spec/fetch-event-handler.spec.js +17 -0
  66. package/dist/services/onboarding/spec/onboarding-model.spec.js +2 -3
  67. package/dist/services/onboarding/spec/onboarding-service-factory.spec.js +24 -1
  68. package/dist/services/onboarding/spec/virtual-orestes-app/virtual-orestes-app.spec.d.ts +1 -0
  69. package/dist/services/onboarding/spec/virtual-orestes-app/virtual-orestes-app.spec.js +65 -0
  70. package/dist/services/onboarding/virtual-orestes-app/index.d.ts +4 -0
  71. package/dist/services/onboarding/virtual-orestes-app/index.js +31 -0
  72. package/dist/services/origin-request/runtime-config-source.d.ts +6 -0
  73. package/dist/services/origin-request/runtime-config-source.js +6 -0
  74. package/dist/services/run-control/browser/run-browser-contexts.d.ts +16 -0
  75. package/dist/services/run-control/browser/run-browser-contexts.js +14 -1
  76. package/dist/services/run-control/browser/run-browser-service.d.ts +5 -1
  77. package/dist/services/run-control/browser/run-browser-service.js +16 -9
  78. package/dist/services/run-control/debug/run-debug-contexts.d.ts +5 -0
  79. package/dist/services/run-control/debug/run-debug-contexts.js +3 -0
  80. package/dist/services/run-control/debug/run-debug-service.d.ts +1 -0
  81. package/dist/services/run-control/debug/run-debug-service.js +3 -0
  82. package/dist/services/run-control/files/run-files-contexts.d.ts +5 -5
  83. package/dist/services/run-control/inject/run-inject-contexts.js +7 -1
  84. package/dist/services/run-control/inject/run-inject-service.d.ts +2 -2
  85. package/dist/services/run-control/inject/run-inject-service.js +32 -8
  86. package/dist/services/run-control/probe/run-probe-service.js +1 -0
  87. package/dist/services/run-control/session/run-session-service.d.ts +8 -1
  88. package/dist/services/run-control/session/run-session-service.js +58 -2
  89. package/dist/services/run-control/spec/cache/run-cache-service.spec.js +1 -1
  90. package/dist/services/run-control/spec/inject/run-inject-service.spec.js +27 -0
  91. package/dist/services/run-control/spec/session/run-session-service.spec.js +49 -0
  92. package/dist/services/run-log/request-log.d.ts +3 -1
  93. package/dist/services/run-registry/run-registry.d.ts +7 -2
  94. package/dist/services/run-registry/run-registry.js +26 -5
  95. package/dist/services/run-registry/spec/run-registry.spec.js +17 -0
  96. package/oclif.manifest.json +281 -181
  97. package/package.json +1 -1
package/README.md CHANGED
@@ -122,7 +122,7 @@ By either...
122
122
  * [`sk onboarding inject add`](#sk-onboarding-inject-add)
123
123
  * [`sk onboarding inject clear`](#sk-onboarding-inject-clear)
124
124
  * [`sk onboarding inject list`](#sk-onboarding-inject-list)
125
- * [`sk onboarding inject read PRELOAD`](#sk-onboarding-inject-read-preload)
125
+ * [`sk onboarding inject read [PRELOAD]`](#sk-onboarding-inject-read-preload)
126
126
  * [`sk onboarding inject recipes`](#sk-onboarding-inject-recipes)
127
127
  * [`sk onboarding inject remove PRELOAD`](#sk-onboarding-inject-remove-preload)
128
128
  * [`sk onboarding list`](#sk-onboarding-list)
@@ -134,6 +134,7 @@ By either...
134
134
  * [`sk onboarding rum key KEY`](#sk-onboarding-rum-key-key)
135
135
  * [`sk onboarding rum previous`](#sk-onboarding-rum-previous)
136
136
  * [`sk onboarding status`](#sk-onboarding-status)
137
+ * [`sk onboarding stop`](#sk-onboarding-stop)
137
138
  * [`sk onboarding todo`](#sk-onboarding-todo)
138
139
  * [`sk onboarding viewport`](#sk-onboarding-viewport)
139
140
  * [`sk onboarding watch EXPRESSION`](#sk-onboarding-watch-expression)
@@ -528,7 +529,8 @@ Diff a page with and without its query parameters, across variations, against an
528
529
  USAGE
529
530
  $ sk diff [CUSTOMERPATH] [PAGEURL] [-c <value>] [--variations <value>...] [--against <value>]
530
531
  [--variation <value>] [--base <value>] [--html <value>] [--baseline] [--params] [--param <value>...] [-o
531
- tool|patch|json|none] [--raw] [--ignore <value>...] [--browserFetch] [--host <value>] [--variationsFile <value>]
532
+ tool|patch|json|none] [--raw] [--ignore <value>...] [--browserFetch] [--host <value>] [--run <value> |
533
+ --variationsFile <value>]
532
534
 
533
535
  ARGUMENTS
534
536
  [CUSTOMERPATH] The customer config path; optional with --raw, which then compares the origin's HTML with Speed Kit's
@@ -558,6 +560,8 @@ FLAGS
558
560
  --params With --variations, also check the query parameters, once for each of the two variations.
559
561
  Without --variations it is what sk diff does
560
562
  --raw Compare the origin's HTML as it is, without running the customer's documentHandler
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
561
565
  --variation=<value> The one variation the pages are requested in, for --against, --base or the parameter
562
566
  check: mobile, tablet or a custom one; an empty one asks which. Defaults to desktop
563
567
  --variations=<value>... One variation to compare against desktop, or two to compare with each other: mobile, or
@@ -820,11 +824,15 @@ Login to your app
820
824
 
821
825
  ```
822
826
  USAGE
823
- $ sk login [APP]
827
+ $ sk login [APP] [--auth password|google|facebook|github]
824
828
 
825
829
  ARGUMENTS
826
830
  [APP] [default: bbq] The customers appName
827
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
+
828
836
  DESCRIPTION
829
837
  Login to your app
830
838
 
@@ -832,6 +840,8 @@ EXAMPLES
832
840
  $ sk login <app>
833
841
 
834
842
  $ sk login appName
843
+
844
+ $ sk login appName --auth google
835
845
  ```
836
846
 
837
847
  ## `sk onboarding [CUSTOMERPATH]`
@@ -863,8 +873,8 @@ FLAGS
863
873
  --browserFetch Fetch every origin document with a second headless Chrome instead of a direct
864
874
  request. Only needed when bot protection refuses the CLI outright — a refusal is
865
875
  otherwise detected and rerouted on its own.
866
- --debugPort=<value> [default: 9222] Chrome remote debugging port (only used with -p/--headless). Use
867
- distinct ports to run multiple onboarding processes at once.
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.
868
878
  --device=<option> Emulate a device in every page and Service Worker: user agent, client hints,
869
879
  viewport, pointer and touch. Without it, Chrome runs as it launches.
870
880
  <options: mobile|tablet|desktop>
@@ -886,7 +896,7 @@ EXAMPLES
886
896
 
887
897
  $ sk onboarding customers/decathlon.de -c production -d www.decathlon.de
888
898
 
889
- $ sk onboarding --browse -d www.decathlon.de --headless --debugPort 9290
899
+ $ sk onboarding --browse -d www.decathlon.de --headless
890
900
 
891
901
  $ sk onboarding customers/decathlon.de --browse -p
892
902
 
@@ -935,23 +945,26 @@ Emulate a device until switched off: viewport, touch and user agent, on the page
935
945
  ```
936
946
  USAGE
937
947
  $ sk onboarding browser emulate DEVICE [--run <value>] [--json] [--timeout <value>] [--width <value>] [--height <value>]
938
- [--dpr <value>] [--reload] [--tab <value>]
948
+ [--dpr <value>] [--user-agent <value>] [--touch] [--reload] [--tab <value>]
939
949
 
940
950
  ARGUMENTS
941
951
  DEVICE (mobile|tablet|desktop|off) mobile is 390×844 at DPR 3 with touch, tablet 834×1112 at DPR 2, desktop
942
952
  1920×1080; off puts the browser back
943
953
 
944
954
  FLAGS
945
- --dpr=<value> Override the preset's device pixel ratio
946
- --height=<value> Override the preset's height
947
- --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
948
- --[no-]reload Load the page again as the device. --no-reload leaves the loaded document as it was
949
- --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
950
- live.
951
- --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
952
- own page
953
- --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
954
- --width=<value> Override the preset's width
955
+ --dpr=<value> Override the preset's device pixel ratio
956
+ --height=<value> Override the preset's height
957
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
958
+ --[no-]reload Load the page again as the device. --no-reload leaves the loaded document as it was
959
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run
960
+ is live.
961
+ --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the
962
+ run's own page
963
+ --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
964
+ --[no-]touch Override the preset's touch: --touch or --no-touch
965
+ --user-agent=<value> Override the preset's user agent, on the page and the service worker; sends no client hints, as
966
+ Safari does
967
+ --width=<value> Override the preset's width
955
968
 
956
969
  DESCRIPTION
957
970
  Emulate a device until switched off: viewport, touch and user agent, on the page and on Speed Kit's service worker
@@ -961,6 +974,8 @@ EXAMPLES
961
974
 
962
975
  $ sk onboarding browser emulate desktop --width 1440 --height 900
963
976
 
977
+ $ 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"
978
+
964
979
  $ sk onboarding browser emulate off
965
980
  ```
966
981
 
@@ -970,7 +985,8 @@ Navigate the page, to any origin the app covers
970
985
 
971
986
  ```
972
987
  USAGE
973
- $ sk onboarding browser navigate URL [--run <value>] [--json] [--timeout <value>] [--tab <value>]
988
+ $ sk onboarding browser navigate URL [--run <value>] [--json] [--timeout <value>] [--wait load|bp1|bp2|bp3|bp4] [--tab
989
+ <value>]
974
990
 
975
991
  ARGUMENTS
976
992
  URL Absolute, or relative to the origin the page is on
@@ -982,6 +998,11 @@ FLAGS
982
998
  --tab=<value> Which tab: its index from `sk onboarding browser tabs`, or part of its url. Omitted means the run's
983
999
  own page
984
1000
  --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1001
+ --wait=<option> [default: load] Where to return: the load event, or the Speed Kit lifecycle mark of a breakpoint
1002
+ (bp1 before the merge, bp2 after it, bp3 the SSR comparison, bp4 the SSR container removed). It
1003
+ waits for the mark and never pauses; a mark that cannot come returns at once with the reason.
1004
+ --timeout bounds it (default 30000)
1005
+ <options: load|bp1|bp2|bp3|bp4>
985
1006
 
986
1007
  DESCRIPTION
987
1008
  Navigate the page, to any origin the app covers
@@ -990,6 +1011,8 @@ EXAMPLES
990
1011
  $ sk onboarding browser navigate /checkout
991
1012
 
992
1013
  $ sk onboarding browser navigate https://www.decathlon.de/
1014
+
1015
+ $ sk onboarding browser navigate https://www.decathlon.de/ --wait bp2 --json
993
1016
  ```
994
1017
 
995
1018
  ## `sk onboarding browser panel`
@@ -1269,7 +1292,7 @@ EXAMPLES
1269
1292
 
1270
1293
  ## `sk onboarding cache prewarm URL`
1271
1294
 
1272
- Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all
1295
+ 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
1273
1296
 
1274
1297
  ```
1275
1298
  USAGE
@@ -1290,7 +1313,9 @@ FLAGS
1290
1313
  --timeout=<value> How long to wait for the run to answer, in ms. The default suits the op
1291
1314
 
1292
1315
  DESCRIPTION
1293
- Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all
1316
+ Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all. An
1317
+ entry already cached, by a request or a config-change rebuild, is left as it is and reported as alreadyCached, not
1318
+ built
1294
1319
 
1295
1320
  EXAMPLES
1296
1321
  $ sk onboarding cache prewarm /p/123 -v default -v mobile
@@ -1366,10 +1391,12 @@ Arm breakpoints in the Speed Kit page lifecycle and, by default, reload so they
1366
1391
  ```
1367
1392
  USAGE
1368
1393
  $ sk onboarding debug arm [--run <value>] [--json] [--timeout <value>] [--bp <value>...] [--then reload|next-nav|none]
1369
- [--tab <value>]
1394
+ [--compared] [--tab <value>]
1370
1395
 
1371
1396
  FLAGS
1372
1397
  --bp=<value>... Which breakpoint, 1–4; repeat for several. Omitted arms all four
1398
+ --compared Pause BP1 and BP3 where their change-detection pass compares, and expose both sides as
1399
+ window.__skCD
1373
1400
  --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
1374
1401
  --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
1375
1402
  live.
@@ -1387,6 +1414,8 @@ EXAMPLES
1387
1414
  $ sk onboarding debug arm
1388
1415
 
1389
1416
  $ sk onboarding debug arm --bp 3 --then next-nav
1417
+
1418
+ $ sk onboarding debug arm --bp 1 --compared
1390
1419
  ```
1391
1420
 
1392
1421
  ## `sk onboarding debug await`
@@ -1768,16 +1797,16 @@ EXAMPLES
1768
1797
  $ sk onboarding inject list
1769
1798
  ```
1770
1799
 
1771
- ## `sk onboarding inject read PRELOAD`
1800
+ ## `sk onboarding inject read [PRELOAD]`
1772
1801
 
1773
1802
  Drain what an injected script recorded, newest last
1774
1803
 
1775
1804
  ```
1776
1805
  USAGE
1777
- $ sk onboarding inject read PRELOAD [--run <value>] [--json] [--timeout <value>] [--limit <value>] [--tab <value>]
1806
+ $ sk onboarding inject read [PRELOAD] [--run <value>] [--json] [--timeout <value>] [--limit <value>] [--tab <value>]
1778
1807
 
1779
1808
  ARGUMENTS
1780
- PRELOAD The preload id, e.g. p1. `list` names them
1809
+ [PRELOAD] The preload id, e.g. p1. Without one, the answer names them
1781
1810
 
1782
1811
  FLAGS
1783
1812
  --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
@@ -1874,7 +1903,7 @@ Read what an onboarding run did, live or long after it ended
1874
1903
  USAGE
1875
1904
  $ sk onboarding logs [RUN] [--run <value> | --list] [--since <value>] [--until <value>] [--sinceSeq <value>]
1876
1905
  [--level <value>] [--scope <value>] [--grep <value>] [--url <value>] [--tail <value>] [-f] [--requests] [--outcome
1877
- fulfilled|failed|continued|error] [--handler <value>] [--summary] [--json]
1906
+ fulfilled|failed|continued|error|cancelled] [--handler <value>] [--summary] [--json]
1878
1907
 
1879
1908
  ARGUMENTS
1880
1909
  [RUN] Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is live.
@@ -1886,8 +1915,8 @@ FLAGS
1886
1915
  --json Raw events, one JSON object per line, to stdout
1887
1916
  --level=<value> This level and above: debug, info, success, warn, error
1888
1917
  --list List the recorded runs instead of reading one
1889
- --outcome=<option> With --requests: only fulfilled, failed, continued or error
1890
- <options: fulfilled|failed|continued|error>
1918
+ --outcome=<option> With --requests: only fulfilled, failed, continued, error or cancelled
1919
+ <options: fulfilled|failed|continued|error|cancelled>
1891
1920
  --requests Read the intercepted requests instead of the narration: what the CLI served, aborted or handed
1892
1921
  straight to Chrome
1893
1922
  --run=<value> Which run, as every other `sk onboarding <tool> <op>` names it; the same as the argument
@@ -2087,7 +2116,7 @@ EXAMPLES
2087
2116
 
2088
2117
  ## `sk onboarding status`
2089
2118
 
2090
- The live onboarding run, or the one --run names
2119
+ 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
2091
2120
 
2092
2121
  ```
2093
2122
  USAGE
@@ -2099,7 +2128,8 @@ FLAGS
2099
2128
  live.
2100
2129
 
2101
2130
  DESCRIPTION
2102
- The live onboarding run, or the one --run names
2131
+ The live onboarding run, or the one --run names. A live run's page is probed: `page.answers` says whether it answers
2132
+ CDP within 3 s
2103
2133
 
2104
2134
  EXAMPLES
2105
2135
  $ sk onboarding status
@@ -2107,6 +2137,28 @@ EXAMPLES
2107
2137
  $ sk onboarding status --run decathlon.de --json
2108
2138
  ```
2109
2139
 
2140
+ ## `sk onboarding stop`
2141
+
2142
+ End the live onboarding run, or the one --run names, as Ctrl+C does
2143
+
2144
+ ```
2145
+ USAGE
2146
+ $ sk onboarding stop [--run <value>] [--json]
2147
+
2148
+ FLAGS
2149
+ --json The answer as one JSON document on stdout; a failure as { code, message } with exit code 1
2150
+ --run=<value> Which run: its id, its customer name, or the path it was started with. Omit when exactly one run is
2151
+ live.
2152
+
2153
+ DESCRIPTION
2154
+ End the live onboarding run, or the one --run names, as Ctrl+C does
2155
+
2156
+ EXAMPLES
2157
+ $ sk onboarding stop
2158
+
2159
+ $ sk onboarding stop --run worktree/my-task/customers/decathlon.de --json
2160
+ ```
2161
+
2110
2162
  ## `sk onboarding todo`
2111
2163
 
2112
2164
  List the TODOs left in the config files of a live run, with the file and line to open
@@ -1,6 +1,6 @@
1
1
  {
2
- "commit": "17684574",
2
+ "commit": "2279a78f",
3
3
  "dirty": true,
4
- "buildId": "5b06eca442f2",
5
- "builtAt": "2026-11-07T13:18:37.197Z"
4
+ "buildId": "50473481d0e3",
5
+ "builtAt": "2026-11-08T16:53:50.621Z"
6
6
  }
@@ -25,6 +25,7 @@ export default class Diff extends SkCommand<DiffServiceBuildContext> {
25
25
  browserFetch: Interfaces.BooleanFlag<boolean>;
26
26
  host: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
27
27
  variationsFile: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
28
+ run: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
28
29
  hideDiff: Interfaces.BooleanFlag<boolean>;
29
30
  configName: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
30
31
  };
@@ -4,6 +4,9 @@ export default class Login extends SkCommand {
4
4
  static args: {
5
5
  app: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
6
  };
7
+ static flags: {
8
+ auth: import("@oclif/core/interfaces").OptionFlag<"password" | "google" | "facebook" | "github", import("@oclif/core/interfaces").CustomOptions>;
9
+ };
7
10
  static examples: string[];
8
11
  run(): Promise<void>;
9
12
  private createLoginTokenFileIfNotExists;
@@ -1,4 +1,4 @@
1
- import { Args } from "@oclif/core";
1
+ import { Args, Flags } from "@oclif/core";
2
2
  import { SkCommand } from "../base/sk-command.js";
3
3
  import { account } from "baqend/cli";
4
4
  import { existsSync, writeFileSync } from "node:fs";
@@ -13,12 +13,23 @@ export default class Login extends SkCommand {
13
13
  description: "The customers appName", // help description
14
14
  }),
15
15
  };
16
- static examples = [`$ sk login <app>`, "$ sk login appName"];
16
+ static flags = {
17
+ auth: Flags.option({
18
+ options: ["password", "google", "facebook", "github"],
19
+ description: "How to log in. Without it, the login asks for the provider",
20
+ })(),
21
+ };
22
+ static examples = [
23
+ `$ sk login <app>`,
24
+ "$ sk login appName",
25
+ "$ sk login appName --auth google",
26
+ ];
17
27
  async run() {
18
28
  const parsedLogin = await this.parse(Login);
19
29
  const { app } = parsedLogin.args;
30
+ const { auth } = parsedLogin.flags;
20
31
  this.createLoginTokenFileIfNotExists();
21
- await account.persistLogin({ app });
32
+ await account.persistLogin({ app, auth });
22
33
  }
23
34
  createLoginTokenFileIfNotExists() {
24
35
  if (!existsSync(path.resolve(this.config.home, ".baqend"))) {
@@ -9,6 +9,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
9
9
  width: number;
10
10
  height: number;
11
11
  dpr: number;
12
+ "user-agent": string;
13
+ touch: any;
12
14
  reload: any;
13
15
  tab: string;
14
16
  json: boolean | undefined;
@@ -23,6 +25,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
23
25
  width: number;
24
26
  height: number;
25
27
  dpr: number;
28
+ "user-agent": string;
29
+ touch: any;
26
30
  reload: any;
27
31
  tab: string;
28
32
  json: boolean | undefined;
@@ -40,6 +44,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
40
44
  width: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
41
45
  height: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
42
46
  dpr: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
47
+ "user-agent": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
48
+ touch: import("@oclif/core/interfaces").BooleanFlag<any>;
43
49
  reload: import("@oclif/core/interfaces").BooleanFlag<any>;
44
50
  } & {
45
51
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -53,6 +59,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
53
59
  width: number;
54
60
  height: number;
55
61
  dpr: number;
62
+ "user-agent": string;
63
+ touch: any;
56
64
  reload: any;
57
65
  tab: string;
58
66
  }, environment: import("../../../services/cli/cli-environment.js").CliEnvironment): {
@@ -66,6 +74,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
66
74
  width: number;
67
75
  height: number;
68
76
  dpr: number;
77
+ "user-agent": string;
78
+ touch: any;
69
79
  reload: any;
70
80
  tab: string;
71
81
  json: boolean | undefined;
@@ -84,6 +94,8 @@ export default class BrowserEmulate extends RunControlCommand<InstanceType<typeo
84
94
  width: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
85
95
  height: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
86
96
  dpr: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
97
+ "user-agent": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
98
+ touch: import("@oclif/core/interfaces").BooleanFlag<any>;
87
99
  reload: import("@oclif/core/interfaces").BooleanFlag<any>;
88
100
  } & {
89
101
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -8,6 +8,7 @@ export default class BrowserEmulate extends RunControlCommand {
8
8
  static examples = [
9
9
  `$ sk onboarding browser emulate mobile`,
10
10
  `$ sk onboarding browser emulate desktop --width 1440 --height 900`,
11
+ `$ 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"`,
11
12
  `$ sk onboarding browser emulate off`,
12
13
  ];
13
14
  async run() {
@@ -17,6 +18,8 @@ export default class BrowserEmulate extends RunControlCommand {
17
18
  width: input.width,
18
19
  height: input.height,
19
20
  dpr: input.dpr,
21
+ userAgent: input["user-agent"],
22
+ touch: input.touch,
20
23
  reload: input.reload,
21
24
  });
22
25
  }
@@ -6,6 +6,7 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
6
6
  new (values: import("../../../services/run-control/run-control-context.js").RunControlBuildContextValues<{
7
7
  url: string;
8
8
  } & {
9
+ wait: "load" | "bp1" | "bp2" | "bp3" | "bp4";
9
10
  tab: string;
10
11
  json: boolean | undefined;
11
12
  }>): {
@@ -16,6 +17,7 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
16
17
  readonly input: {
17
18
  url: string;
18
19
  } & {
20
+ wait: "load" | "bp1" | "bp2" | "bp3" | "bp4";
19
21
  tab: string;
20
22
  json: boolean | undefined;
21
23
  };
@@ -28,6 +30,8 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
28
30
  run: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
29
31
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
30
32
  timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
33
+ } & {
34
+ wait: import("@oclif/core/interfaces").OptionFlag<"load" | "bp1" | "bp2" | "bp3" | "bp4", import("@oclif/core/interfaces").CustomOptions>;
31
35
  } & {
32
36
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
33
37
  };
@@ -37,6 +41,7 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
37
41
  run: string;
38
42
  json: boolean | undefined;
39
43
  timeout: number;
44
+ wait: "load" | "bp1" | "bp2" | "bp3" | "bp4";
40
45
  tab: string;
41
46
  }, environment: import("../../../services/cli/cli-environment.js").CliEnvironment): {
42
47
  readonly run?: string;
@@ -46,6 +51,7 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
46
51
  readonly input: {
47
52
  url: string;
48
53
  } & {
54
+ wait: "load" | "bp1" | "bp2" | "bp3" | "bp4";
49
55
  tab: string;
50
56
  json: boolean | undefined;
51
57
  };
@@ -59,6 +65,8 @@ export default class BrowserNavigate extends RunControlCommand<InstanceType<type
59
65
  run: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
60
66
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
61
67
  timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
68
+ } & {
69
+ wait: import("@oclif/core/interfaces").OptionFlag<"load" | "bp1" | "bp2" | "bp3" | "bp4", import("@oclif/core/interfaces").CustomOptions>;
62
70
  } & {
63
71
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
64
72
  };
@@ -8,11 +8,12 @@ export default class BrowserNavigate extends RunControlCommand {
8
8
  static examples = [
9
9
  `$ sk onboarding browser navigate /checkout`,
10
10
  `$ sk onboarding browser navigate https://www.decathlon.de/`,
11
+ `$ sk onboarding browser navigate https://www.decathlon.de/ --wait bp2 --json`,
11
12
  ];
12
13
  async run() {
13
14
  const { input } = this.context;
14
15
  await new RunBrowserServiceFactory(this.context)
15
16
  .buildService()
16
- .navigate(input.url);
17
+ .navigate(input.url, input.wait, this.context.timeout);
17
18
  }
18
19
  }
@@ -1,7 +1,7 @@
1
1
  import { RunControlCommand } from "../../../base/run-control-command.js";
2
2
  import { CachePrewarmBuildContext, RunCacheServiceFactory, } from "../../../services/run-control/index.js";
3
3
  export default class CachePrewarm extends RunControlCommand {
4
- static description = "Build cache entries for a url nothing has requested: default, each --variation given, or every one with --all";
4
+ static description = "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";
5
5
  static buildContext = CachePrewarmBuildContext;
6
6
  static args = CachePrewarmBuildContext.args;
7
7
  static flags = CachePrewarmBuildContext.flags;
@@ -8,6 +8,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
8
8
  } & {
9
9
  bp: number[];
10
10
  then: "none" | "reload" | "next-nav";
11
+ compared: any;
11
12
  tab: string;
12
13
  json: boolean | undefined;
13
14
  }>): {
@@ -20,6 +21,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
20
21
  } & {
21
22
  bp: number[];
22
23
  then: "none" | "reload" | "next-nav";
24
+ compared: any;
23
25
  tab: string;
24
26
  json: boolean | undefined;
25
27
  };
@@ -33,6 +35,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
33
35
  } & {
34
36
  bp: import("@oclif/core/interfaces").OptionFlag<number[], import("@oclif/core/interfaces").CustomOptions>;
35
37
  then: import("@oclif/core/interfaces").OptionFlag<"none" | "reload" | "next-nav", import("@oclif/core/interfaces").CustomOptions>;
38
+ compared: import("@oclif/core/interfaces").BooleanFlag<any>;
36
39
  } & {
37
40
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
38
41
  };
@@ -44,6 +47,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
44
47
  timeout: number;
45
48
  bp: number[];
46
49
  then: "none" | "reload" | "next-nav";
50
+ compared: any;
47
51
  tab: string;
48
52
  }, environment: import("../../../services/cli/cli-environment.js").CliEnvironment): {
49
53
  readonly run?: string;
@@ -55,6 +59,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
55
59
  } & {
56
60
  bp: number[];
57
61
  then: "none" | "reload" | "next-nav";
62
+ compared: any;
58
63
  tab: string;
59
64
  json: boolean | undefined;
60
65
  };
@@ -69,6 +74,7 @@ export default class DebugArm extends RunControlCommand<InstanceType<typeof Debu
69
74
  } & {
70
75
  bp: import("@oclif/core/interfaces").OptionFlag<number[], import("@oclif/core/interfaces").CustomOptions>;
71
76
  then: import("@oclif/core/interfaces").OptionFlag<"none" | "reload" | "next-nav", import("@oclif/core/interfaces").CustomOptions>;
77
+ compared: import("@oclif/core/interfaces").BooleanFlag<any>;
72
78
  } & {
73
79
  tab: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
74
80
  };
@@ -8,11 +8,12 @@ export default class DebugArm extends RunControlCommand {
8
8
  static examples = [
9
9
  `$ sk onboarding debug arm`,
10
10
  `$ sk onboarding debug arm --bp 3 --then next-nav`,
11
+ `$ sk onboarding debug arm --bp 1 --compared`,
11
12
  ];
12
13
  async run() {
13
14
  const { input } = this.context;
14
15
  await new RunDebugServiceFactory(this.context)
15
16
  .buildService()
16
- .arm({ bps: input.bp, then: input.then });
17
+ .arm({ bps: input.bp, then: input.then, compared: input.compared });
17
18
  }
18
19
  }
@@ -6,7 +6,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
6
6
  new (values: import("../../../services/run-control/run-control-context.js").RunControlBuildContextValues<{
7
7
  [x: string]: any;
8
8
  } & {
9
- target: "documentHandler" | "install" | "all";
9
+ target: "documentHandler" | "all" | "install";
10
10
  json: boolean | undefined;
11
11
  }>): {
12
12
  readonly run?: string;
@@ -16,7 +16,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
16
16
  readonly input: {
17
17
  [x: string]: any;
18
18
  } & {
19
- target: "documentHandler" | "install" | "all";
19
+ target: "documentHandler" | "all" | "install";
20
20
  json: boolean | undefined;
21
21
  };
22
22
  readonly environment: import("../../../services/cli/cli-environment.js").CliEnvironment;
@@ -27,7 +27,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
27
27
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
28
28
  timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
29
29
  } & {
30
- target: import("@oclif/core/interfaces").OptionFlag<"documentHandler" | "install" | "all", import("@oclif/core/interfaces").CustomOptions>;
30
+ target: import("@oclif/core/interfaces").OptionFlag<"documentHandler" | "all" | "install", import("@oclif/core/interfaces").CustomOptions>;
31
31
  };
32
32
  create(parsedArgs: {
33
33
  [x: string]: any;
@@ -35,7 +35,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
35
35
  run: string;
36
36
  json: boolean | undefined;
37
37
  timeout: number;
38
- target: "documentHandler" | "install" | "all";
38
+ target: "documentHandler" | "all" | "install";
39
39
  }, environment: import("../../../services/cli/cli-environment.js").CliEnvironment): {
40
40
  readonly run?: string;
41
41
  readonly json: boolean;
@@ -44,7 +44,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
44
44
  readonly input: {
45
45
  [x: string]: any;
46
46
  } & {
47
- target: "documentHandler" | "install" | "all";
47
+ target: "documentHandler" | "all" | "install";
48
48
  json: boolean | undefined;
49
49
  };
50
50
  readonly environment: import("../../../services/cli/cli-environment.js").CliEnvironment;
@@ -56,7 +56,7 @@ export default class FilesRebuild extends RunControlCommand<InstanceType<typeof
56
56
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
57
57
  timeout: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
58
58
  } & {
59
- target: import("@oclif/core/interfaces").OptionFlag<"documentHandler" | "install" | "all", import("@oclif/core/interfaces").CustomOptions>;
59
+ target: import("@oclif/core/interfaces").OptionFlag<"documentHandler" | "all" | "install", import("@oclif/core/interfaces").CustomOptions>;
60
60
  };
61
61
  static examples: string[];
62
62
  run(): Promise<void>;
@@ -56,8 +56,8 @@ export default class Logs extends SkCommand {
56
56
  description: "Read the intercepted requests instead of the narration: what the CLI served, aborted or handed straight to Chrome",
57
57
  }),
58
58
  outcome: Flags.string({
59
- description: "With --requests: only fulfilled, failed, continued or error",
60
- options: ["fulfilled", "failed", "continued", "error"],
59
+ description: "With --requests: only fulfilled, failed, continued, error or cancelled",
60
+ options: ["fulfilled", "failed", "continued", "error", "cancelled"],
61
61
  }),
62
62
  handler: Flags.string({
63
63
  description: "With --requests: only the requests this handler answered",
@@ -246,6 +246,7 @@ const OUTCOME_TAG = {
246
246
  failed: "aborted ",
247
247
  continued: "continued",
248
248
  error: "error ",
249
+ cancelled: "cancelled",
249
250
  };
250
251
  const LEVEL_TAG = {
251
252
  debug: "debug ",
@@ -1,7 +1,7 @@
1
1
  import { RunControlCommand } from "../../base/run-control-command.js";
2
2
  import { RunSessionBuildContext, RunSessionServiceFactory, } from "../../services/run-control/index.js";
3
3
  export default class Status extends RunControlCommand {
4
- static description = "The live onboarding run, or the one --run names";
4
+ static description = "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";
5
5
  static buildContext = RunSessionBuildContext;
6
6
  static args = RunSessionBuildContext.args;
7
7
  static flags = RunSessionBuildContext.flags;
@@ -10,7 +10,7 @@ export default class Status extends RunControlCommand {
10
10
  `$ sk onboarding status --run decathlon.de --json`,
11
11
  ];
12
12
  async run() {
13
- new RunSessionServiceFactory(this.context)
13
+ await new RunSessionServiceFactory(this.context)
14
14
  .buildService()
15
15
  .status(this.context.run);
16
16
  }