@autifyhq/autify-cli 0.51.0 → 0.53.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.
Files changed (44) hide show
  1. package/README.md +143 -39
  2. package/dist/autify/connect/accessPointConfig.js +2 -2
  3. package/dist/autify/connect/client-manager/ClientManager.d.ts +2 -2
  4. package/dist/autify/connect/client-manager/ClientManager.js +4 -4
  5. package/dist/autify/connect/client-manager/DebugServerClient.js +3 -3
  6. package/dist/autify/connect/installClient.d.ts +2 -2
  7. package/dist/autify/connect/installClient.js +10 -10
  8. package/dist/autify/mobile/createZip.js +3 -3
  9. package/dist/autify/mobile/inspectBuildFile.js +3 -3
  10. package/dist/autify/mobile/mobilelink/installBinary.d.ts +8 -0
  11. package/dist/autify/mobile/mobilelink/installBinary.js +133 -0
  12. package/dist/autify/mobile/mobilelink/mobile-link-manager/Logger.d.ts +11 -0
  13. package/dist/autify/mobile/mobilelink/mobile-link-manager/Logger.js +47 -0
  14. package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.d.ts +53 -0
  15. package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.js +215 -0
  16. package/dist/autify/mobile/mobilelink/mobile-link-manager/StateMachine.d.ts +51 -0
  17. package/dist/autify/mobile/mobilelink/mobile-link-manager/StateMachine.js +120 -0
  18. package/dist/autify/mobile/parseTestPlanUrl.js +2 -2
  19. package/dist/autify/mobile/parseTestResultUrl.js +2 -2
  20. package/dist/autify/mobile/uploadBuild.js +2 -2
  21. package/dist/autify/mobile/waitTestResult.js +2 -2
  22. package/dist/autify/web/parseAutifyTestUrl.js +2 -2
  23. package/dist/autify/web/parseTestResultUrl.js +2 -2
  24. package/dist/autify/web/runTest.js +6 -6
  25. package/dist/autify/web/waitTestResult.js +3 -3
  26. package/dist/commands/connect/access-point/set.js +2 -2
  27. package/dist/commands/mobile/auth/login.js +2 -2
  28. package/dist/commands/mobile/link/doctor.d.ts +6 -0
  29. package/dist/commands/mobile/link/doctor.js +19 -0
  30. package/dist/commands/mobile/link/exec.d.ts +10 -0
  31. package/dist/commands/mobile/link/exec.js +23 -0
  32. package/dist/commands/mobile/link/install.d.ts +7 -0
  33. package/dist/commands/mobile/link/install.js +22 -0
  34. package/dist/commands/mobile/link/setup.d.ts +6 -0
  35. package/dist/commands/mobile/link/setup.js +45 -0
  36. package/dist/commands/mobile/link/start.d.ts +11 -0
  37. package/dist/commands/mobile/link/start.js +37 -0
  38. package/dist/commands/mobile/test/run.d.ts +1 -0
  39. package/dist/commands/mobile/test/run.js +10 -3
  40. package/dist/commands/web/auth/login.js +2 -2
  41. package/dist/commands/web/test/run.js +2 -3
  42. package/dist/config.d.ts +1 -1
  43. package/oclif.manifest.json +782 -641
  44. package/package.json +20 -22
package/README.md CHANGED
@@ -30,6 +30,11 @@ See our official document: https://help.autify.com/docs/autify-command-line-inte
30
30
  * [`autify mobile api upload-build`](#autify-mobile-api-upload-build)
31
31
  * [`autify mobile auth login`](#autify-mobile-auth-login)
32
32
  * [`autify mobile build upload BUILD-PATH`](#autify-mobile-build-upload-build-path)
33
+ * [`autify mobile link doctor`](#autify-mobile-link-doctor)
34
+ * [`autify mobile link exec [THINGS]`](#autify-mobile-link-exec-things)
35
+ * [`autify mobile link install`](#autify-mobile-link-install)
36
+ * [`autify mobile link setup`](#autify-mobile-link-setup)
37
+ * [`autify mobile link start [WORKSPACEID]`](#autify-mobile-link-start-workspaceid)
33
38
  * [`autify mobile test run TEST-PLAN-URL`](#autify-mobile-test-run-test-plan-url)
34
39
  * [`autify mobile test wait TEST-RESULT-URL`](#autify-mobile-test-wait-test-result-url)
35
40
  * [`autify update [CHANNEL]`](#autify-update-channel)
@@ -76,7 +81,7 @@ EXAMPLES
76
81
  $ autify connect access-point create --name NAME --web-workspace-id ID
77
82
  ```
78
83
 
79
- _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/connect/access-point/create.ts)_
84
+ _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/connect/access-point/create.ts)_
80
85
 
81
86
  ## `autify connect access-point set`
82
87
 
@@ -102,7 +107,7 @@ EXAMPLES
102
107
  $ autify connect access-point set --name=NAME < key.txt
103
108
  ```
104
109
 
105
- _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/connect/access-point/set.ts)_
110
+ _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/connect/access-point/set.ts)_
106
111
 
107
112
  ## `autify connect client install [VERSION]`
108
113
 
@@ -132,7 +137,7 @@ EXAMPLES
132
137
  $ autify connect client install stable
133
138
  ```
134
139
 
135
- _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/connect/client/install.ts)_
140
+ _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/connect/client/install.ts)_
136
141
 
137
142
  ## `autify connect client start`
138
143
 
@@ -166,7 +171,7 @@ EXAMPLES
166
171
  $ autify connect client start --web-workspace-id 000
167
172
  ```
168
173
 
169
- _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/connect/client/start.ts)_
174
+ _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/connect/client/start.ts)_
170
175
 
171
176
  ## `autify help [COMMAND]`
172
177
 
@@ -186,7 +191,7 @@ DESCRIPTION
186
191
  Display help for autify.
187
192
  ```
188
193
 
189
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.25/src/commands/help.ts)_
194
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.27/src/commands/help.ts)_
190
195
 
191
196
  ## `autify mobile api describe-test-result`
192
197
 
@@ -207,7 +212,7 @@ EXAMPLES
207
212
  $ autify mobile api describe-test-result
208
213
  ```
209
214
 
210
- _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/api/describe-test-result.ts)_
215
+ _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/api/describe-test-result.ts)_
211
216
 
212
217
  ## `autify mobile api list-test-results`
213
218
 
@@ -231,7 +236,7 @@ EXAMPLES
231
236
  $ autify mobile api list-test-results
232
237
  ```
233
238
 
234
- _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/api/list-test-results.ts)_
239
+ _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/api/list-test-results.ts)_
235
240
 
236
241
  ## `autify mobile api run-test-plan`
237
242
 
@@ -253,7 +258,7 @@ EXAMPLES
253
258
  $ autify mobile api run-test-plan
254
259
  ```
255
260
 
256
- _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/api/run-test-plan.ts)_
261
+ _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/api/run-test-plan.ts)_
257
262
 
258
263
  ## `autify mobile api upload-build`
259
264
 
@@ -274,7 +279,7 @@ EXAMPLES
274
279
  $ autify mobile api upload-build
275
280
  ```
276
281
 
277
- _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/api/upload-build.ts)_
282
+ _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/api/upload-build.ts)_
278
283
 
279
284
  ## `autify mobile auth login`
280
285
 
@@ -297,7 +302,7 @@ EXAMPLES
297
302
  $ autify mobile auth login < token.txt
298
303
  ```
299
304
 
300
- _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/auth/login.ts)_
305
+ _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/auth/login.ts)_
301
306
 
302
307
  ## `autify mobile build upload BUILD-PATH`
303
308
 
@@ -331,7 +336,105 @@ EXAMPLES
331
336
  $ autify mobile build upload --workspace-id AAA ./my.app --json
332
337
  ```
333
338
 
334
- _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/build/upload.ts)_
339
+ _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/build/upload.ts)_
340
+
341
+ ## `autify mobile link doctor`
342
+
343
+ Check MobileLink configuration
344
+
345
+ ```
346
+ USAGE
347
+ $ autify mobile link doctor
348
+
349
+ DESCRIPTION
350
+ Check MobileLink configuration
351
+
352
+ EXAMPLES
353
+ Check MobileLink configuration:
354
+
355
+ $ autify mobile link doctor
356
+ ```
357
+
358
+ _See code: [src/commands/mobile/link/doctor.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/link/doctor.ts)_
359
+
360
+ ## `autify mobile link exec [THINGS]`
361
+
362
+ Execute arbitrary MobileLink subcommand
363
+
364
+ ```
365
+ USAGE
366
+ $ autify mobile link exec [THINGS...]
367
+
368
+ DESCRIPTION
369
+ Execute arbitrary MobileLink subcommand
370
+
371
+ EXAMPLES
372
+ Pass subcommand arguments to mobilelink:
373
+
374
+ $ autify mobile link exec ABC XYZ
375
+ ```
376
+
377
+ _See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/link/exec.ts)_
378
+
379
+ ## `autify mobile link install`
380
+
381
+ Install MobileLink
382
+
383
+ ```
384
+ USAGE
385
+ $ autify mobile link install
386
+
387
+ DESCRIPTION
388
+ Install MobileLink
389
+
390
+ EXAMPLES
391
+ Install the stable version:
392
+
393
+ $ autify mobile link install
394
+ ```
395
+
396
+ _See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/link/install.ts)_
397
+
398
+ ## `autify mobile link setup`
399
+
400
+ Set up MobileLink
401
+
402
+ ```
403
+ USAGE
404
+ $ autify mobile link setup
405
+
406
+ DESCRIPTION
407
+ Set up MobileLink
408
+
409
+ EXAMPLES
410
+ Set up MobileLink configuration:
411
+
412
+ $ autify mobile link setup
413
+ ```
414
+
415
+ _See code: [src/commands/mobile/link/setup.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/link/setup.ts)_
416
+
417
+ ## `autify mobile link start [WORKSPACEID]`
418
+
419
+ Start MobileLink session
420
+
421
+ ```
422
+ USAGE
423
+ $ autify mobile link start [WORKSPACEID...]
424
+
425
+ ARGUMENTS
426
+ WORKSPACEID... Specify the target version of Autify Connect Client.
427
+
428
+ DESCRIPTION
429
+ Start MobileLink session
430
+
431
+ EXAMPLES
432
+ Pass subcommand arguments to mobilelink:
433
+
434
+ $ autify mobile link start ABC XYZ
435
+ ```
436
+
437
+ _See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/link/start.ts)_
335
438
 
336
439
  ## `autify mobile test run TEST-PLAN-URL`
337
440
 
@@ -339,8 +442,8 @@ Run a test plan.
339
442
 
340
443
  ```
341
444
  USAGE
342
- $ autify mobile test run TEST-PLAN-URL [--build-id <value> | --build-path <value>] [-w] [-t <value>] [-v]
343
- [--max-retry-count <value>]
445
+ $ autify mobile test run TEST-PLAN-URL [--build-id <value> | --build-path <value>] [--device-ids <value>] [-w] [-t
446
+ <value>] [-v] [--max-retry-count <value>]
344
447
 
345
448
  ARGUMENTS
346
449
  TEST-PLAN-URL Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>
@@ -351,6 +454,7 @@ FLAGS
351
454
  -w, --wait Wait until the test finishes.
352
455
  --build-id=<value> ID of the already uploaded build.
353
456
  --build-path=<value> File path to the iOS app (*.app, *.ipa) or Android app (*.apk).
457
+ --device-ids=<value> Comma-separated device IDs to run the test plan.
354
458
  --max-retry-count=<value> Maximum retry count. The command can take up to timeout * (max-retry-count + 1).
355
459
 
356
460
  DESCRIPTION
@@ -371,7 +475,7 @@ EXAMPLES
371
475
  --timeout 600
372
476
  ```
373
477
 
374
- _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/test/run.ts)_
478
+ _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/test/run.ts)_
375
479
 
376
480
  ## `autify mobile test wait TEST-RESULT-URL`
377
481
 
@@ -395,7 +499,7 @@ EXAMPLES
395
499
  $ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
396
500
  ```
397
501
 
398
- _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/mobile/test/wait.ts)_
502
+ _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/mobile/test/wait.ts)_
399
503
 
400
504
  ## `autify update [CHANNEL]`
401
505
 
@@ -433,7 +537,7 @@ EXAMPLES
433
537
  $ autify update --available
434
538
  ```
435
539
 
436
- _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.31/src/commands/update.ts)_
540
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.35/src/commands/update.ts)_
437
541
 
438
542
  ## `autify web api create-access-point`
439
543
 
@@ -456,7 +560,7 @@ EXAMPLES
456
560
  $ autify web api create-access-point
457
561
  ```
458
562
 
459
- _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/create-access-point.ts)_
563
+ _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/create-access-point.ts)_
460
564
 
461
565
  ## `autify web api create-test-plan-variable`
462
566
 
@@ -479,7 +583,7 @@ EXAMPLES
479
583
  $ autify web api create-test-plan-variable
480
584
  ```
481
585
 
482
- _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/create-test-plan-variable.ts)_
586
+ _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/create-test-plan-variable.ts)_
483
587
 
484
588
  ## `autify web api create-url-replacement`
485
589
 
@@ -502,7 +606,7 @@ EXAMPLES
502
606
  $ autify web api create-url-replacement
503
607
  ```
504
608
 
505
- _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/create-url-replacement.ts)_
609
+ _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/create-url-replacement.ts)_
506
610
 
507
611
  ## `autify web api delete-access-point`
508
612
 
@@ -525,7 +629,7 @@ EXAMPLES
525
629
  $ autify web api delete-access-point
526
630
  ```
527
631
 
528
- _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/delete-access-point.ts)_
632
+ _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/delete-access-point.ts)_
529
633
 
530
634
  ## `autify web api delete-test-plan-variable`
531
635
 
@@ -547,7 +651,7 @@ EXAMPLES
547
651
  $ autify web api delete-test-plan-variable
548
652
  ```
549
653
 
550
- _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/delete-test-plan-variable.ts)_
654
+ _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/delete-test-plan-variable.ts)_
551
655
 
552
656
  ## `autify web api delete-url-replacement`
553
657
 
@@ -569,7 +673,7 @@ EXAMPLES
569
673
  $ autify web api delete-url-replacement
570
674
  ```
571
675
 
572
- _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/delete-url-replacement.ts)_
676
+ _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/delete-url-replacement.ts)_
573
677
 
574
678
  ## `autify web api describe-result`
575
679
 
@@ -591,7 +695,7 @@ EXAMPLES
591
695
  $ autify web api describe-result
592
696
  ```
593
697
 
594
- _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/describe-result.ts)_
698
+ _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/describe-result.ts)_
595
699
 
596
700
  ## `autify web api describe-scenario`
597
701
 
@@ -612,7 +716,7 @@ EXAMPLES
612
716
  $ autify web api describe-scenario
613
717
  ```
614
718
 
615
- _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/describe-scenario.ts)_
719
+ _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/describe-scenario.ts)_
616
720
 
617
721
  ## `autify web api execute-scenarios`
618
722
 
@@ -640,7 +744,7 @@ EXAMPLES
640
744
  $ autify web api execute-scenarios
641
745
  ```
642
746
 
643
- _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/execute-scenarios.ts)_
747
+ _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/execute-scenarios.ts)_
644
748
 
645
749
  ## `autify web api execute-schedule`
646
750
 
@@ -663,7 +767,7 @@ EXAMPLES
663
767
  $ autify web api execute-schedule
664
768
  ```
665
769
 
666
- _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/execute-schedule.ts)_
770
+ _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/execute-schedule.ts)_
667
771
 
668
772
  ## `autify web api get-credit-usage`
669
773
 
@@ -695,7 +799,7 @@ EXAMPLES
695
799
  $ autify web api get-credit-usage
696
800
  ```
697
801
 
698
- _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/get-credit-usage.ts)_
802
+ _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/get-credit-usage.ts)_
699
803
 
700
804
  ## `autify web api get-project-info`
701
805
 
@@ -715,7 +819,7 @@ EXAMPLES
715
819
  $ autify web api get-project-info
716
820
  ```
717
821
 
718
- _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/get-project-info.ts)_
822
+ _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/get-project-info.ts)_
719
823
 
720
824
  ## `autify web api list-access-points`
721
825
 
@@ -736,7 +840,7 @@ EXAMPLES
736
840
  $ autify web api list-access-points
737
841
  ```
738
842
 
739
- _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-access-points.ts)_
843
+ _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-access-points.ts)_
740
844
 
741
845
  ## `autify web api list-capabilities`
742
846
 
@@ -763,7 +867,7 @@ EXAMPLES
763
867
  $ autify web api list-capabilities
764
868
  ```
765
869
 
766
- _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-capabilities.ts)_
870
+ _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-capabilities.ts)_
767
871
 
768
872
  ## `autify web api list-results`
769
873
 
@@ -786,7 +890,7 @@ EXAMPLES
786
890
  $ autify web api list-results
787
891
  ```
788
892
 
789
- _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-results.ts)_
893
+ _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-results.ts)_
790
894
 
791
895
  ## `autify web api list-scenarios`
792
896
 
@@ -807,7 +911,7 @@ EXAMPLES
807
911
  $ autify web api list-scenarios
808
912
  ```
809
913
 
810
- _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-scenarios.ts)_
914
+ _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-scenarios.ts)_
811
915
 
812
916
  ## `autify web api list-test-plan-variable`
813
917
 
@@ -828,7 +932,7 @@ EXAMPLES
828
932
  $ autify web api list-test-plan-variable
829
933
  ```
830
934
 
831
- _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-test-plan-variable.ts)_
935
+ _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-test-plan-variable.ts)_
832
936
 
833
937
  ## `autify web api list-url-replacements`
834
938
 
@@ -849,7 +953,7 @@ EXAMPLES
849
953
  $ autify web api list-url-replacements
850
954
  ```
851
955
 
852
- _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/list-url-replacements.ts)_
956
+ _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/list-url-replacements.ts)_
853
957
 
854
958
  ## `autify web api update-test-plan-variable`
855
959
 
@@ -875,7 +979,7 @@ EXAMPLES
875
979
  $ autify web api update-test-plan-variable
876
980
  ```
877
981
 
878
- _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/update-test-plan-variable.ts)_
982
+ _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/update-test-plan-variable.ts)_
879
983
 
880
984
  ## `autify web api update-url-replacement`
881
985
 
@@ -901,7 +1005,7 @@ EXAMPLES
901
1005
  $ autify web api update-url-replacement
902
1006
  ```
903
1007
 
904
- _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/api/update-url-replacement.ts)_
1008
+ _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/api/update-url-replacement.ts)_
905
1009
 
906
1010
  ## `autify web auth login`
907
1011
 
@@ -924,7 +1028,7 @@ EXAMPLES
924
1028
  $ autify web auth login < token.txt
925
1029
  ```
926
1030
 
927
- _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/auth/login.ts)_
1031
+ _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/auth/login.ts)_
928
1032
 
929
1033
  ## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
930
1034
 
@@ -1005,7 +1109,7 @@ EXAMPLES
1005
1109
  $ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
1006
1110
  ```
1007
1111
 
1008
- _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/test/run.ts)_
1112
+ _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/test/run.ts)_
1009
1113
 
1010
1114
  ## `autify web test wait TEST-RESULT-URL`
1011
1115
 
@@ -1029,5 +1133,5 @@ EXAMPLES
1029
1133
  $ autify web test wait https://app.autify.com/projects/0000/results/0000
1030
1134
  ```
1031
1135
 
1032
- _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.51.0/src/commands/web/test/wait.ts)_
1136
+ _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.53.0/src/commands/web/test/wait.ts)_
1033
1137
  <!-- commandsstop -->
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.saveAccessPoint = exports.confirmOverwriteAccessPoint = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable unicorn/filename-case */
6
- const errors_1 = require("@oclif/errors");
6
+ const core_1 = require("@oclif/core");
7
7
  const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
8
8
  const config_1 = require("../../config");
9
9
  const confirmOverwriteAccessPoint = async (configDir) => {
@@ -19,7 +19,7 @@ const confirmOverwriteAccessPoint = async (configDir) => {
19
19
  },
20
20
  ]);
21
21
  if (!res.confirmed) {
22
- throw new errors_1.CLIError(`Cancelled to overwrite the existing Access Point. It stays as is (name: ${existingName})`);
22
+ throw new core_1.Errors.CLIError(`Cancelled to overwrite the existing Access Point. It stays as is (name: ${existingName})`);
23
23
  }
24
24
  }
25
25
  };
@@ -1,4 +1,4 @@
1
- import { CLIError } from "@oclif/errors";
1
+ import { Errors } from "@oclif/core";
2
2
  import TypedEmitter from "typed-emitter";
3
3
  export type ClientEvents = TypedEmitter<{
4
4
  log: (msg: string) => void;
@@ -11,7 +11,7 @@ export type ProcessExit = Readonly<{
11
11
  code: number | null;
12
12
  signal: NodeJS.Signals | null;
13
13
  }>;
14
- export declare class StateMachineTimeoutError extends CLIError {
14
+ export declare class StateMachineTimeoutError extends Errors.CLIError {
15
15
  constructor(state: string);
16
16
  }
17
17
  type ClientManagerOptions = Readonly<{
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClientManager = exports.StateMachineTimeoutError = void 0;
4
- const errors_1 = require("@oclif/errors");
4
+ const core_1 = require("@oclif/core");
5
5
  const node_child_process_1 = require("node:child_process");
6
6
  const node_process_1 = require("node:process");
7
7
  const node_stream_1 = require("node:stream");
@@ -24,7 +24,7 @@ async function importGetPort() {
24
24
  eval(`import("get-port").then((esm) => resolve(esm.default));`);
25
25
  });
26
26
  }
27
- class StateMachineTimeoutError extends errors_1.CLIError {
27
+ class StateMachineTimeoutError extends core_1.Errors.CLIError {
28
28
  constructor(state) {
29
29
  super(`Autify Connect Manager faced timeout at ${state} state.`);
30
30
  }
@@ -43,7 +43,7 @@ class ClientManager {
43
43
  const name = (0, config_1.get)(options.configDir, "AUTIFY_CONNECT_ACCESS_POINT_NAME");
44
44
  const key = (0, config_1.get)(options.configDir, "AUTIFY_CONNECT_ACCESS_POINT_KEY");
45
45
  if (!name || !key)
46
- throw new errors_1.CLIError("Access Point is not saved. Run `autify connect access-point create/set` first.");
46
+ throw new core_1.Errors.CLIError("Access Point is not saved. Run `autify connect access-point create/set` first.");
47
47
  const accessPoint = (0, AccessPoint_1.createStaticAccessPoint)(name, key);
48
48
  return new ClientManager(accessPoint, options);
49
49
  }
@@ -225,7 +225,7 @@ class ClientManager {
225
225
  });
226
226
  }
227
227
  catch {
228
- throw new errors_1.CLIError(`Unknown state transition: ${this.service.getSnapshot().value}`);
228
+ throw new core_1.Errors.CLIError(`Unknown state transition: ${this.service.getSnapshot().value}`);
229
229
  }
230
230
  if (state.value === "failed")
231
231
  this.logger.warn(`Failed (${state.context.errors})`);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DebugServerClient = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable unicorn/filename-case */
6
- const errors_1 = require("@oclif/errors");
6
+ const core_1 = require("@oclif/core");
7
7
  const abort_controller_1 = tslib_1.__importDefault(require("abort-controller"));
8
8
  class DebugServerClient {
9
9
  constructor(port, clientEvents) {
@@ -27,7 +27,7 @@ class DebugServerClient {
27
27
  const res = (await this.request(req));
28
28
  if (res.status && res.message)
29
29
  return res;
30
- throw new errors_1.CLIError(`Invalid response from ${JSON.stringify(req)}: ${JSON.stringify(res)}`);
30
+ throw new core_1.Errors.CLIError(`Invalid response from ${JSON.stringify(req)}: ${JSON.stringify(res)}`);
31
31
  }
32
32
  async requestTerminate() {
33
33
  const req = { method: "POST", path: "/terminate" };
@@ -48,7 +48,7 @@ class DebugServerClient {
48
48
  }
49
49
  if (response.ok)
50
50
  return response.json();
51
- throw new errors_1.CLIError(`Request to debug server failed: ${method} ${path} => ${response.status} ${response.statusText}`);
51
+ throw new core_1.Errors.CLIError(`Request to debug server failed: ${method} ${path} => ${response.status} ${response.statusText}`);
52
52
  }
53
53
  }
54
54
  exports.DebugServerClient = DebugServerClient;
@@ -1,10 +1,10 @@
1
- import { CLIError } from "@oclif/errors";
1
+ import { Errors } from "@oclif/core";
2
2
  export declare const AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.2";
3
3
  export declare const getConnectClientSourceUrl: (configDir: string, version: string) => {
4
4
  url: URL;
5
5
  expectedVersion: string | undefined;
6
6
  };
7
- export declare class ConnectClientVersionMismatchError extends CLIError {
7
+ export declare class ConnectClientVersionMismatchError extends Errors.CLIError {
8
8
  readonly expected: string;
9
9
  readonly reality: string;
10
10
  constructor(expected: string, reality: string);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.installClient = exports.getInstallVersion = exports.getInstallPath = exports.validateVersion = exports.ConnectClientVersionMismatchError = exports.getConnectClientSourceUrl = exports.AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable unicorn/filename-case */
6
- const errors_1 = require("@oclif/errors");
6
+ const core_1 = require("@oclif/core");
7
7
  const node_process_1 = require("node:process");
8
8
  const node_fs_1 = require("node:fs");
9
9
  const node_stream_1 = require("node:stream");
@@ -20,7 +20,7 @@ const getMode = (configDir) => {
20
20
  if (!mode)
21
21
  return "real";
22
22
  if (!["fake", "real"].includes(mode))
23
- throw new errors_1.CLIError(`Unknown value is specified by AUTIFY_CONNECT_CLIENT_MODE: ${mode}`);
23
+ throw new core_1.Errors.CLIError(`Unknown value is specified by AUTIFY_CONNECT_CLIENT_MODE: ${mode}`);
24
24
  return mode;
25
25
  };
26
26
  const getOs = () => {
@@ -31,7 +31,7 @@ const getOs = () => {
31
31
  return "darwin";
32
32
  if (os === "win32")
33
33
  return "windows";
34
- throw new errors_1.CLIError(`Unsupported OS: ${os}`);
34
+ throw new core_1.Errors.CLIError(`Unsupported OS: ${os}`);
35
35
  };
36
36
  const getArch = () => {
37
37
  if (node_process_1.arch === "ia32")
@@ -40,7 +40,7 @@ const getArch = () => {
40
40
  return "amd64";
41
41
  if (node_process_1.arch === "arm64")
42
42
  return "arm64";
43
- throw new errors_1.CLIError(`Unsupported Architecture: ${node_process_1.arch}`);
43
+ throw new core_1.Errors.CLIError(`Unsupported Architecture: ${node_process_1.arch}`);
44
44
  };
45
45
  const getExt = () => (getOs() === "windows" ? "zip" : "tar.gz");
46
46
  const realBaseUrl = "https://autifyconnect.s3.ap-northeast-1.amazonaws.com/autifyconnect/versions";
@@ -68,7 +68,7 @@ const download = async (workspaceDir, url) => {
68
68
  const downloadPath = (0, node_path_1.join)(workspaceDir, (0, node_path_1.basename)(url.pathname));
69
69
  const response = await fetch(url);
70
70
  if (!response.ok)
71
- throw new errors_1.CLIError(`Failed to fetch ${url}: ${response.status}`);
71
+ throw new core_1.Errors.CLIError(`Failed to fetch ${url}: ${response.status}`);
72
72
  const streamPipeline = (0, node_util_1.promisify)(node_stream_1.pipeline);
73
73
  if (response.body) {
74
74
  await streamPipeline(response.body, (0, node_fs_1.createWriteStream)(downloadPath));
@@ -88,15 +88,15 @@ const extract = async (downloadPath) => {
88
88
  (0, unzip_stream_1.Extract)({ path: dir }));
89
89
  }
90
90
  else {
91
- throw new errors_1.CLIError(`Unsupported file format: ${downloadPath}`);
91
+ throw new core_1.Errors.CLIError(`Unsupported file format: ${downloadPath}`);
92
92
  }
93
93
  const files = (0, node_fs_1.readdirSync)(dir);
94
94
  const binary = files.find((file) => file.startsWith("autifyconnect"));
95
95
  if (!binary)
96
- throw new errors_1.CLIError(`Cannot find any autifyconnect binary in ${dir}`);
96
+ throw new core_1.Errors.CLIError(`Cannot find any autifyconnect binary in ${dir}`);
97
97
  return (0, node_path_1.join)(dir, binary);
98
98
  };
99
- class ConnectClientVersionMismatchError extends errors_1.CLIError {
99
+ class ConnectClientVersionMismatchError extends core_1.Errors.CLIError {
100
100
  constructor(expected, reality) {
101
101
  super(`Autify Connect Client version mismatch: ${reality} !== ${expected} (expected)`);
102
102
  this.expected = expected;
@@ -124,14 +124,14 @@ const getInstallPath = (configDir, cacheDir) => {
124
124
  exports.getInstallPath = getInstallPath;
125
125
  const getInstallVersion = async (path) => {
126
126
  if (!(0, node_fs_1.existsSync)(path)) {
127
- throw new errors_1.CLIError(`Autify Connect Client isn't installed yet at ${path}. Run \`autify connect client install\` first.`);
127
+ throw new core_1.Errors.CLIError(`Autify Connect Client isn't installed yet at ${path}. Run \`autify connect client install\` first.`);
128
128
  }
129
129
  const { stderr } = await (0, node_util_1.promisify)(node_child_process_1.execFile)(path, ["--version"], {
130
130
  env: node_process_1.env,
131
131
  });
132
132
  const version = stderr.trim();
133
133
  if (version === "")
134
- throw new errors_1.CLIError("Version is empty");
134
+ throw new core_1.Errors.CLIError("Version is empty");
135
135
  return version;
136
136
  };
137
137
  exports.getInstallVersion = getInstallVersion;