@autifyhq/autify-cli 0.51.0 → 0.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.
Files changed (39) hide show
  1. package/README.md +100 -37
  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 +47 -0
  15. package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.js +204 -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/exec.d.ts +10 -0
  29. package/dist/commands/mobile/link/exec.js +23 -0
  30. package/dist/commands/mobile/link/install.d.ts +7 -0
  31. package/dist/commands/mobile/link/install.js +22 -0
  32. package/dist/commands/mobile/link/start.d.ts +11 -0
  33. package/dist/commands/mobile/link/start.js +37 -0
  34. package/dist/commands/mobile/test/run.js +2 -3
  35. package/dist/commands/web/auth/login.js +2 -2
  36. package/dist/commands/web/test/run.js +2 -3
  37. package/dist/config.d.ts +1 -1
  38. package/oclif.manifest.json +727 -643
  39. package/package.json +20 -22
package/README.md CHANGED
@@ -30,6 +30,9 @@ 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 exec [THINGS]`](#autify-mobile-link-exec-things)
34
+ * [`autify mobile link install`](#autify-mobile-link-install)
35
+ * [`autify mobile link start [WORKSPACEID]`](#autify-mobile-link-start-workspaceid)
33
36
  * [`autify mobile test run TEST-PLAN-URL`](#autify-mobile-test-run-test-plan-url)
34
37
  * [`autify mobile test wait TEST-RESULT-URL`](#autify-mobile-test-wait-test-result-url)
35
38
  * [`autify update [CHANNEL]`](#autify-update-channel)
@@ -76,7 +79,7 @@ EXAMPLES
76
79
  $ autify connect access-point create --name NAME --web-workspace-id ID
77
80
  ```
78
81
 
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)_
82
+ _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/connect/access-point/create.ts)_
80
83
 
81
84
  ## `autify connect access-point set`
82
85
 
@@ -102,7 +105,7 @@ EXAMPLES
102
105
  $ autify connect access-point set --name=NAME < key.txt
103
106
  ```
104
107
 
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)_
108
+ _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/connect/access-point/set.ts)_
106
109
 
107
110
  ## `autify connect client install [VERSION]`
108
111
 
@@ -132,7 +135,7 @@ EXAMPLES
132
135
  $ autify connect client install stable
133
136
  ```
134
137
 
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)_
138
+ _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/connect/client/install.ts)_
136
139
 
137
140
  ## `autify connect client start`
138
141
 
@@ -166,7 +169,7 @@ EXAMPLES
166
169
  $ autify connect client start --web-workspace-id 000
167
170
  ```
168
171
 
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)_
172
+ _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/connect/client/start.ts)_
170
173
 
171
174
  ## `autify help [COMMAND]`
172
175
 
@@ -186,7 +189,7 @@ DESCRIPTION
186
189
  Display help for autify.
187
190
  ```
188
191
 
189
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.25/src/commands/help.ts)_
192
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.27/src/commands/help.ts)_
190
193
 
191
194
  ## `autify mobile api describe-test-result`
192
195
 
@@ -207,7 +210,7 @@ EXAMPLES
207
210
  $ autify mobile api describe-test-result
208
211
  ```
209
212
 
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)_
213
+ _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/api/describe-test-result.ts)_
211
214
 
212
215
  ## `autify mobile api list-test-results`
213
216
 
@@ -231,7 +234,7 @@ EXAMPLES
231
234
  $ autify mobile api list-test-results
232
235
  ```
233
236
 
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)_
237
+ _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/api/list-test-results.ts)_
235
238
 
236
239
  ## `autify mobile api run-test-plan`
237
240
 
@@ -253,7 +256,7 @@ EXAMPLES
253
256
  $ autify mobile api run-test-plan
254
257
  ```
255
258
 
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)_
259
+ _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/api/run-test-plan.ts)_
257
260
 
258
261
  ## `autify mobile api upload-build`
259
262
 
@@ -274,7 +277,7 @@ EXAMPLES
274
277
  $ autify mobile api upload-build
275
278
  ```
276
279
 
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)_
280
+ _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/api/upload-build.ts)_
278
281
 
279
282
  ## `autify mobile auth login`
280
283
 
@@ -297,7 +300,7 @@ EXAMPLES
297
300
  $ autify mobile auth login < token.txt
298
301
  ```
299
302
 
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)_
303
+ _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/auth/login.ts)_
301
304
 
302
305
  ## `autify mobile build upload BUILD-PATH`
303
306
 
@@ -331,7 +334,67 @@ EXAMPLES
331
334
  $ autify mobile build upload --workspace-id AAA ./my.app --json
332
335
  ```
333
336
 
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)_
337
+ _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/build/upload.ts)_
338
+
339
+ ## `autify mobile link exec [THINGS]`
340
+
341
+ Execute arbitrary MobileLink subcommand
342
+
343
+ ```
344
+ USAGE
345
+ $ autify mobile link exec [THINGS...]
346
+
347
+ DESCRIPTION
348
+ Execute arbitrary MobileLink subcommand
349
+
350
+ EXAMPLES
351
+ Pass subcommand arguments to mobilelink:
352
+
353
+ $ autify mobile link exec ABC XYZ
354
+ ```
355
+
356
+ _See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/link/exec.ts)_
357
+
358
+ ## `autify mobile link install`
359
+
360
+ Install Mobile Link
361
+
362
+ ```
363
+ USAGE
364
+ $ autify mobile link install
365
+
366
+ DESCRIPTION
367
+ Install Mobile Link
368
+
369
+ EXAMPLES
370
+ (Recommended) Install the stable version:
371
+
372
+ $ autify mobile link install
373
+ ```
374
+
375
+ _See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/link/install.ts)_
376
+
377
+ ## `autify mobile link start [WORKSPACEID]`
378
+
379
+ Start MobileLink session
380
+
381
+ ```
382
+ USAGE
383
+ $ autify mobile link start [WORKSPACEID...]
384
+
385
+ ARGUMENTS
386
+ WORKSPACEID... Specify the target version of Autify Connect Client.
387
+
388
+ DESCRIPTION
389
+ Start MobileLink session
390
+
391
+ EXAMPLES
392
+ Pass subcommand arguments to mobilelink:
393
+
394
+ $ autify mobile link start ABC XYZ
395
+ ```
396
+
397
+ _See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/link/start.ts)_
335
398
 
336
399
  ## `autify mobile test run TEST-PLAN-URL`
337
400
 
@@ -371,7 +434,7 @@ EXAMPLES
371
434
  --timeout 600
372
435
  ```
373
436
 
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)_
437
+ _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/test/run.ts)_
375
438
 
376
439
  ## `autify mobile test wait TEST-RESULT-URL`
377
440
 
@@ -395,7 +458,7 @@ EXAMPLES
395
458
  $ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
396
459
  ```
397
460
 
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)_
461
+ _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/mobile/test/wait.ts)_
399
462
 
400
463
  ## `autify update [CHANNEL]`
401
464
 
@@ -433,7 +496,7 @@ EXAMPLES
433
496
  $ autify update --available
434
497
  ```
435
498
 
436
- _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.31/src/commands/update.ts)_
499
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.35/src/commands/update.ts)_
437
500
 
438
501
  ## `autify web api create-access-point`
439
502
 
@@ -456,7 +519,7 @@ EXAMPLES
456
519
  $ autify web api create-access-point
457
520
  ```
458
521
 
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)_
522
+ _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/create-access-point.ts)_
460
523
 
461
524
  ## `autify web api create-test-plan-variable`
462
525
 
@@ -479,7 +542,7 @@ EXAMPLES
479
542
  $ autify web api create-test-plan-variable
480
543
  ```
481
544
 
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)_
545
+ _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/create-test-plan-variable.ts)_
483
546
 
484
547
  ## `autify web api create-url-replacement`
485
548
 
@@ -502,7 +565,7 @@ EXAMPLES
502
565
  $ autify web api create-url-replacement
503
566
  ```
504
567
 
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)_
568
+ _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/create-url-replacement.ts)_
506
569
 
507
570
  ## `autify web api delete-access-point`
508
571
 
@@ -525,7 +588,7 @@ EXAMPLES
525
588
  $ autify web api delete-access-point
526
589
  ```
527
590
 
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)_
591
+ _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/delete-access-point.ts)_
529
592
 
530
593
  ## `autify web api delete-test-plan-variable`
531
594
 
@@ -547,7 +610,7 @@ EXAMPLES
547
610
  $ autify web api delete-test-plan-variable
548
611
  ```
549
612
 
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)_
613
+ _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/delete-test-plan-variable.ts)_
551
614
 
552
615
  ## `autify web api delete-url-replacement`
553
616
 
@@ -569,7 +632,7 @@ EXAMPLES
569
632
  $ autify web api delete-url-replacement
570
633
  ```
571
634
 
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)_
635
+ _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/delete-url-replacement.ts)_
573
636
 
574
637
  ## `autify web api describe-result`
575
638
 
@@ -591,7 +654,7 @@ EXAMPLES
591
654
  $ autify web api describe-result
592
655
  ```
593
656
 
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)_
657
+ _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/describe-result.ts)_
595
658
 
596
659
  ## `autify web api describe-scenario`
597
660
 
@@ -612,7 +675,7 @@ EXAMPLES
612
675
  $ autify web api describe-scenario
613
676
  ```
614
677
 
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)_
678
+ _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/describe-scenario.ts)_
616
679
 
617
680
  ## `autify web api execute-scenarios`
618
681
 
@@ -640,7 +703,7 @@ EXAMPLES
640
703
  $ autify web api execute-scenarios
641
704
  ```
642
705
 
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)_
706
+ _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/execute-scenarios.ts)_
644
707
 
645
708
  ## `autify web api execute-schedule`
646
709
 
@@ -663,7 +726,7 @@ EXAMPLES
663
726
  $ autify web api execute-schedule
664
727
  ```
665
728
 
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)_
729
+ _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/execute-schedule.ts)_
667
730
 
668
731
  ## `autify web api get-credit-usage`
669
732
 
@@ -695,7 +758,7 @@ EXAMPLES
695
758
  $ autify web api get-credit-usage
696
759
  ```
697
760
 
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)_
761
+ _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/get-credit-usage.ts)_
699
762
 
700
763
  ## `autify web api get-project-info`
701
764
 
@@ -715,7 +778,7 @@ EXAMPLES
715
778
  $ autify web api get-project-info
716
779
  ```
717
780
 
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)_
781
+ _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/get-project-info.ts)_
719
782
 
720
783
  ## `autify web api list-access-points`
721
784
 
@@ -736,7 +799,7 @@ EXAMPLES
736
799
  $ autify web api list-access-points
737
800
  ```
738
801
 
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)_
802
+ _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-access-points.ts)_
740
803
 
741
804
  ## `autify web api list-capabilities`
742
805
 
@@ -763,7 +826,7 @@ EXAMPLES
763
826
  $ autify web api list-capabilities
764
827
  ```
765
828
 
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)_
829
+ _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-capabilities.ts)_
767
830
 
768
831
  ## `autify web api list-results`
769
832
 
@@ -786,7 +849,7 @@ EXAMPLES
786
849
  $ autify web api list-results
787
850
  ```
788
851
 
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)_
852
+ _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-results.ts)_
790
853
 
791
854
  ## `autify web api list-scenarios`
792
855
 
@@ -807,7 +870,7 @@ EXAMPLES
807
870
  $ autify web api list-scenarios
808
871
  ```
809
872
 
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)_
873
+ _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-scenarios.ts)_
811
874
 
812
875
  ## `autify web api list-test-plan-variable`
813
876
 
@@ -828,7 +891,7 @@ EXAMPLES
828
891
  $ autify web api list-test-plan-variable
829
892
  ```
830
893
 
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)_
894
+ _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-test-plan-variable.ts)_
832
895
 
833
896
  ## `autify web api list-url-replacements`
834
897
 
@@ -849,7 +912,7 @@ EXAMPLES
849
912
  $ autify web api list-url-replacements
850
913
  ```
851
914
 
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)_
915
+ _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/list-url-replacements.ts)_
853
916
 
854
917
  ## `autify web api update-test-plan-variable`
855
918
 
@@ -875,7 +938,7 @@ EXAMPLES
875
938
  $ autify web api update-test-plan-variable
876
939
  ```
877
940
 
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)_
941
+ _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/update-test-plan-variable.ts)_
879
942
 
880
943
  ## `autify web api update-url-replacement`
881
944
 
@@ -901,7 +964,7 @@ EXAMPLES
901
964
  $ autify web api update-url-replacement
902
965
  ```
903
966
 
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)_
967
+ _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/api/update-url-replacement.ts)_
905
968
 
906
969
  ## `autify web auth login`
907
970
 
@@ -924,7 +987,7 @@ EXAMPLES
924
987
  $ autify web auth login < token.txt
925
988
  ```
926
989
 
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)_
990
+ _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/auth/login.ts)_
928
991
 
929
992
  ## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
930
993
 
@@ -1005,7 +1068,7 @@ EXAMPLES
1005
1068
  $ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
1006
1069
  ```
1007
1070
 
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)_
1071
+ _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/test/run.ts)_
1009
1072
 
1010
1073
  ## `autify web test wait TEST-RESULT-URL`
1011
1074
 
@@ -1029,5 +1092,5 @@ EXAMPLES
1029
1092
  $ autify web test wait https://app.autify.com/projects/0000/results/0000
1030
1093
  ```
1031
1094
 
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)_
1095
+ _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.52.0/src/commands/web/test/wait.ts)_
1033
1096
  <!-- 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;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.createZip = void 0;
5
5
  const tslib_1 = require("tslib");
6
- const errors_1 = require("@oclif/errors");
6
+ const core_1 = require("@oclif/core");
7
7
  const node_child_process_1 = require("node:child_process");
8
8
  const node_fs_1 = require("node:fs");
9
9
  const node_path_1 = require("node:path");
@@ -15,7 +15,7 @@ const node_os_1 = require("node:os");
15
15
  const promises_1 = require("node:fs/promises");
16
16
  const checkBuildPath = (buildPath) => {
17
17
  if (!(0, node_fs_1.lstatSync)(buildPath).isDirectory()) {
18
- throw new errors_1.CLIError(`Build path (${buildPath}) is expected to directory.`);
18
+ throw new core_1.Errors.CLIError(`Build path (${buildPath}) is expected to directory.`);
19
19
  }
20
20
  const parentPath = (0, node_path_1.resolve)((0, node_path_1.dirname)(buildPath));
21
21
  const name = (0, node_path_1.basename)(buildPath);
@@ -45,7 +45,7 @@ const createZip = async (buildPath) => {
45
45
  await zipStream.close();
46
46
  }
47
47
  catch (error) {
48
- throw new errors_1.CLIError(`Failed to create a valid zip file (${zipFile}): ${error}`);
48
+ throw new core_1.Errors.CLIError(`Failed to create a valid zip file (${zipFile}): ${error}`);
49
49
  }
50
50
  return zipFile;
51
51
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.inspectBuildFile = void 0;
4
4
  /* eslint-disable unicorn/filename-case */
5
- const errors_1 = require("@oclif/errors");
5
+ const core_1 = require("@oclif/core");
6
6
  const node_fs_1 = require("node:fs");
7
7
  const createZip_1 = require("./createZip");
8
8
  const isIosApp = (buildPath) => {
@@ -18,7 +18,7 @@ const getOs = (buildPath) => {
18
18
  return "ios";
19
19
  if (isAndroidApp(buildPath))
20
20
  return "android";
21
- throw new errors_1.CLIError(`${buildPath} doesn't look like iOS app nor Android apk.`);
21
+ throw new core_1.Errors.CLIError(`${buildPath} doesn't look like iOS app nor Android apk.`);
22
22
  };
23
23
  const getUploadPath = async (buildPath, os) => {
24
24
  if (os === "ios") {
@@ -28,7 +28,7 @@ const getUploadPath = async (buildPath, os) => {
28
28
  }
29
29
  if (os === "android")
30
30
  return buildPath;
31
- throw new errors_1.CLIError(`Invalid os: ${os}`);
31
+ throw new core_1.Errors.CLIError(`Invalid os: ${os}`);
32
32
  };
33
33
  const inspectBuildFile = async (buildPath) => {
34
34
  const os = getOs(buildPath);
@@ -0,0 +1,8 @@
1
+ export declare const getMobileLinkSourceUrl: (configDir: string) => URL;
2
+ export declare const getInstallPath: (cacheDir: string) => string;
3
+ export declare const getBinaryPath: (cacheDir: string) => string;
4
+ export declare const getInstallVersion: (path: string) => Promise<string>;
5
+ export declare const installBinary: (cacheDir: string, url: URL) => Promise<{
6
+ version: string;
7
+ path: string;
8
+ }>;