@autifyhq/autify-cli 0.70.0 → 0.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -81,7 +81,7 @@ EXAMPLES
81
81
  $ autify connect access-point create --name NAME --web-workspace-id ID
82
82
  ```
83
83
 
84
- _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/connect/access-point/create.ts)_
85
85
 
86
86
  ## `autify connect access-point set`
87
87
 
@@ -107,7 +107,7 @@ EXAMPLES
107
107
  $ autify connect access-point set --name=NAME < key.txt
108
108
  ```
109
109
 
110
- _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/connect/access-point/set.ts)_
111
111
 
112
112
  ## `autify connect client install [VERSION]`
113
113
 
@@ -137,7 +137,7 @@ EXAMPLES
137
137
  $ autify connect client install stable
138
138
  ```
139
139
 
140
- _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/connect/client/install.ts)_
140
+ _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/connect/client/install.ts)_
141
141
 
142
142
  ## `autify connect client start`
143
143
 
@@ -171,7 +171,7 @@ EXAMPLES
171
171
  $ autify connect client start --web-workspace-id 000
172
172
  ```
173
173
 
174
- _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/connect/client/start.ts)_
174
+ _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/connect/client/start.ts)_
175
175
 
176
176
  ## `autify help [COMMAND]`
177
177
 
@@ -212,7 +212,7 @@ EXAMPLES
212
212
  $ autify mobile api describe-test-result
213
213
  ```
214
214
 
215
- _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/mobile/api/describe-test-result.ts)_
216
216
 
217
217
  ## `autify mobile api list-test-results`
218
218
 
@@ -236,7 +236,7 @@ EXAMPLES
236
236
  $ autify mobile api list-test-results
237
237
  ```
238
238
 
239
- _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/mobile/api/list-test-results.ts)_
240
240
 
241
241
  ## `autify mobile api run-test-plan`
242
242
 
@@ -258,7 +258,7 @@ EXAMPLES
258
258
  $ autify mobile api run-test-plan
259
259
  ```
260
260
 
261
- _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/mobile/api/run-test-plan.ts)_
262
262
 
263
263
  ## `autify mobile api upload-build`
264
264
 
@@ -279,7 +279,7 @@ EXAMPLES
279
279
  $ autify mobile api upload-build
280
280
  ```
281
281
 
282
- _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.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.73.0/src/commands/mobile/api/upload-build.ts)_
283
283
 
284
284
  ## `autify mobile auth login`
285
285
 
@@ -302,7 +302,7 @@ EXAMPLES
302
302
  $ autify mobile auth login < token.txt
303
303
  ```
304
304
 
305
- _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/auth/login.ts)_
305
+ _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/auth/login.ts)_
306
306
 
307
307
  ## `autify mobile build upload BUILD-PATH`
308
308
 
@@ -336,7 +336,7 @@ EXAMPLES
336
336
  $ autify mobile build upload --workspace-id AAA ./my.app --json
337
337
  ```
338
338
 
339
- _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/build/upload.ts)_
339
+ _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/build/upload.ts)_
340
340
 
341
341
  ## `autify mobile link doctor`
342
342
 
@@ -358,7 +358,7 @@ EXAMPLES
358
358
  $ autify mobile link doctor
359
359
  ```
360
360
 
361
- _See code: [src/commands/mobile/link/doctor.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/link/doctor.ts)_
361
+ _See code: [src/commands/mobile/link/doctor.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/link/doctor.ts)_
362
362
 
363
363
  ## `autify mobile link exec [THINGS]`
364
364
 
@@ -377,7 +377,7 @@ EXAMPLES
377
377
  $ autify mobile link exec ABC XYZ
378
378
  ```
379
379
 
380
- _See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/link/exec.ts)_
380
+ _See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/link/exec.ts)_
381
381
 
382
382
  ## `autify mobile link install`
383
383
 
@@ -396,7 +396,7 @@ EXAMPLES
396
396
  $ autify mobile link install
397
397
  ```
398
398
 
399
- _See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/link/install.ts)_
399
+ _See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/link/install.ts)_
400
400
 
401
401
  ## `autify mobile link setup`
402
402
 
@@ -415,7 +415,7 @@ EXAMPLES
415
415
  $ autify mobile link setup
416
416
  ```
417
417
 
418
- _See code: [src/commands/mobile/link/setup.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/link/setup.ts)_
418
+ _See code: [src/commands/mobile/link/setup.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/link/setup.ts)_
419
419
 
420
420
  ## `autify mobile link start [WORKSPACEID]`
421
421
 
@@ -440,7 +440,7 @@ EXAMPLES
440
440
  $ autify mobile link start ABC XYZ
441
441
  ```
442
442
 
443
- _See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/link/start.ts)_
443
+ _See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/link/start.ts)_
444
444
 
445
445
  ## `autify mobile test run TEST-PLAN-URL`
446
446
 
@@ -481,7 +481,7 @@ EXAMPLES
481
481
  --timeout 600
482
482
  ```
483
483
 
484
- _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/test/run.ts)_
484
+ _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/test/run.ts)_
485
485
 
486
486
  ## `autify mobile test wait TEST-RESULT-URL`
487
487
 
@@ -505,7 +505,7 @@ EXAMPLES
505
505
  $ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
506
506
  ```
507
507
 
508
- _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/mobile/test/wait.ts)_
508
+ _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/mobile/test/wait.ts)_
509
509
 
510
510
  ## `autify update [CHANNEL]`
511
511
 
@@ -566,7 +566,7 @@ EXAMPLES
566
566
  $ autify web api create-access-point
567
567
  ```
568
568
 
569
- _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/create-access-point.ts)_
569
+ _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/create-access-point.ts)_
570
570
 
571
571
  ## `autify web api create-test-plan-variable`
572
572
 
@@ -589,7 +589,7 @@ EXAMPLES
589
589
  $ autify web api create-test-plan-variable
590
590
  ```
591
591
 
592
- _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/create-test-plan-variable.ts)_
592
+ _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/create-test-plan-variable.ts)_
593
593
 
594
594
  ## `autify web api create-url-replacement`
595
595
 
@@ -612,7 +612,7 @@ EXAMPLES
612
612
  $ autify web api create-url-replacement
613
613
  ```
614
614
 
615
- _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/create-url-replacement.ts)_
615
+ _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/create-url-replacement.ts)_
616
616
 
617
617
  ## `autify web api delete-access-point`
618
618
 
@@ -635,7 +635,7 @@ EXAMPLES
635
635
  $ autify web api delete-access-point
636
636
  ```
637
637
 
638
- _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/delete-access-point.ts)_
638
+ _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/delete-access-point.ts)_
639
639
 
640
640
  ## `autify web api delete-test-plan-variable`
641
641
 
@@ -657,7 +657,7 @@ EXAMPLES
657
657
  $ autify web api delete-test-plan-variable
658
658
  ```
659
659
 
660
- _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/delete-test-plan-variable.ts)_
660
+ _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/delete-test-plan-variable.ts)_
661
661
 
662
662
  ## `autify web api delete-url-replacement`
663
663
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ autify web api delete-url-replacement
680
680
  ```
681
681
 
682
- _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/delete-url-replacement.ts)_
682
+ _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/delete-url-replacement.ts)_
683
683
 
684
684
  ## `autify web api describe-result`
685
685
 
@@ -701,7 +701,7 @@ EXAMPLES
701
701
  $ autify web api describe-result
702
702
  ```
703
703
 
704
- _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/describe-result.ts)_
704
+ _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/describe-result.ts)_
705
705
 
706
706
  ## `autify web api describe-scenario`
707
707
 
@@ -722,7 +722,7 @@ EXAMPLES
722
722
  $ autify web api describe-scenario
723
723
  ```
724
724
 
725
- _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/describe-scenario.ts)_
725
+ _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/describe-scenario.ts)_
726
726
 
727
727
  ## `autify web api execute-scenarios`
728
728
 
@@ -750,7 +750,7 @@ EXAMPLES
750
750
  $ autify web api execute-scenarios
751
751
  ```
752
752
 
753
- _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/execute-scenarios.ts)_
753
+ _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/execute-scenarios.ts)_
754
754
 
755
755
  ## `autify web api execute-schedule`
756
756
 
@@ -773,7 +773,7 @@ EXAMPLES
773
773
  $ autify web api execute-schedule
774
774
  ```
775
775
 
776
- _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/execute-schedule.ts)_
776
+ _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/execute-schedule.ts)_
777
777
 
778
778
  ## `autify web api get-credit-usage`
779
779
 
@@ -805,7 +805,7 @@ EXAMPLES
805
805
  $ autify web api get-credit-usage
806
806
  ```
807
807
 
808
- _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/get-credit-usage.ts)_
808
+ _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/get-credit-usage.ts)_
809
809
 
810
810
  ## `autify web api get-project-info`
811
811
 
@@ -825,7 +825,7 @@ EXAMPLES
825
825
  $ autify web api get-project-info
826
826
  ```
827
827
 
828
- _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/get-project-info.ts)_
828
+ _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/get-project-info.ts)_
829
829
 
830
830
  ## `autify web api list-access-points`
831
831
 
@@ -846,7 +846,7 @@ EXAMPLES
846
846
  $ autify web api list-access-points
847
847
  ```
848
848
 
849
- _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-access-points.ts)_
849
+ _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-access-points.ts)_
850
850
 
851
851
  ## `autify web api list-capabilities`
852
852
 
@@ -873,7 +873,7 @@ EXAMPLES
873
873
  $ autify web api list-capabilities
874
874
  ```
875
875
 
876
- _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-capabilities.ts)_
876
+ _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-capabilities.ts)_
877
877
 
878
878
  ## `autify web api list-results`
879
879
 
@@ -896,7 +896,7 @@ EXAMPLES
896
896
  $ autify web api list-results
897
897
  ```
898
898
 
899
- _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-results.ts)_
899
+ _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-results.ts)_
900
900
 
901
901
  ## `autify web api list-scenarios`
902
902
 
@@ -917,7 +917,7 @@ EXAMPLES
917
917
  $ autify web api list-scenarios
918
918
  ```
919
919
 
920
- _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-scenarios.ts)_
920
+ _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-scenarios.ts)_
921
921
 
922
922
  ## `autify web api list-test-plan-variable`
923
923
 
@@ -938,7 +938,7 @@ EXAMPLES
938
938
  $ autify web api list-test-plan-variable
939
939
  ```
940
940
 
941
- _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-test-plan-variable.ts)_
941
+ _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-test-plan-variable.ts)_
942
942
 
943
943
  ## `autify web api list-url-replacements`
944
944
 
@@ -959,7 +959,7 @@ EXAMPLES
959
959
  $ autify web api list-url-replacements
960
960
  ```
961
961
 
962
- _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/list-url-replacements.ts)_
962
+ _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/list-url-replacements.ts)_
963
963
 
964
964
  ## `autify web api update-test-plan-variable`
965
965
 
@@ -985,7 +985,7 @@ EXAMPLES
985
985
  $ autify web api update-test-plan-variable
986
986
  ```
987
987
 
988
- _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/update-test-plan-variable.ts)_
988
+ _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/update-test-plan-variable.ts)_
989
989
 
990
990
  ## `autify web api update-url-replacement`
991
991
 
@@ -1011,7 +1011,7 @@ EXAMPLES
1011
1011
  $ autify web api update-url-replacement
1012
1012
  ```
1013
1013
 
1014
- _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/api/update-url-replacement.ts)_
1014
+ _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/api/update-url-replacement.ts)_
1015
1015
 
1016
1016
  ## `autify web auth login`
1017
1017
 
@@ -1034,7 +1034,7 @@ EXAMPLES
1034
1034
  $ autify web auth login < token.txt
1035
1035
  ```
1036
1036
 
1037
- _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/auth/login.ts)_
1037
+ _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/auth/login.ts)_
1038
1038
 
1039
1039
  ## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
1040
1040
 
@@ -1115,7 +1115,7 @@ EXAMPLES
1115
1115
  $ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
1116
1116
  ```
1117
1117
 
1118
- _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/test/run.ts)_
1118
+ _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/test/run.ts)_
1119
1119
 
1120
1120
  ## `autify web test wait TEST-RESULT-URL`
1121
1121
 
@@ -1139,5 +1139,5 @@ EXAMPLES
1139
1139
  $ autify web test wait https://app.autify.com/projects/0000/results/0000
1140
1140
  ```
1141
1141
 
1142
- _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.70.0/src/commands/web/test/wait.ts)_
1142
+ _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.73.0/src/commands/web/test/wait.ts)_
1143
1143
  <!-- commandsstop -->
@@ -1,11 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMobileClient = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable unicorn/filename-case */
6
+ const node_http_1 = tslib_1.__importDefault(require("node:http"));
7
+ const node_https_1 = tslib_1.__importDefault(require("node:https"));
8
+ const axios_1 = tslib_1.__importDefault(require("axios"));
5
9
  const autify_sdk_1 = require("@autifyhq/autify-sdk");
6
10
  const config_1 = require("../../config");
7
11
  const getMobileClient = (configDir, userAgent) => {
8
12
  var _a;
13
+ // Node.js v19+ changed http.globalAgent to keepAlive: true by default.
14
+ // @autifyhq/autify-sdk uses the global axios instance, which reuses sockets
15
+ // across polling requests, eventually emitting a MaxListenersExceededWarning.
16
+ axios_1.default.defaults.httpAgent = new node_http_1.default.Agent({ keepAlive: false });
17
+ axios_1.default.defaults.httpsAgent = new node_https_1.default.Agent({ keepAlive: false });
9
18
  const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
10
19
  const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
11
20
  const userAgentSuffix = (_a = (0, config_1.get)(configDir, "AUTIFY_CLI_USER_AGENT_SUFFIX")) !== null && _a !== void 0 ? _a : "";
@@ -13,8 +13,9 @@ const unzip_stream_1 = require("unzip-stream");
13
13
  const node_child_process_1 = require("node:child_process");
14
14
  const tar = tslib_1.__importStar(require("tar"));
15
15
  const config_1 = require("../../../config");
16
- const MOBILE_LINK_VERSION = "0.6.3";
17
- const MOBILE_LINK_HASH = "d2ce35f34";
16
+ const mobilelink_json_1 = tslib_1.__importDefault(require("./mobilelink.json"));
17
+ const MOBILE_LINK_VERSION = mobilelink_json_1.default.version;
18
+ const MOBILE_LINK_HASH = mobilelink_json_1.default.hash;
18
19
  const getArch = () => {
19
20
  if (node_process_1.arch === "ia32")
20
21
  return "386";
@@ -37,6 +37,7 @@ export declare class MobileLinkManager {
37
37
  private readonly logger;
38
38
  private readonly clientLogger;
39
39
  private readonly service;
40
+ private readonly extraArgumentsValue?;
40
41
  private childProcess?;
41
42
  constructor(options: MobileLinkManagerOptions);
42
43
  private spawn;
@@ -42,8 +42,8 @@ class MobileLinkManager {
42
42
  }
43
43
  async doctor() {
44
44
  const argv = ["link", "doctor"];
45
- if (this.options.extraArguments) {
46
- argv.push("--extra-arguments", this.options.extraArguments);
45
+ if (this.extraArgumentsValue) {
46
+ argv.push("--extra-arguments", this.extraArgumentsValue);
47
47
  }
48
48
  this.exec(argv, this.integrationVariables);
49
49
  }
@@ -91,6 +91,14 @@ class MobileLinkManager {
91
91
  const level = "info";
92
92
  this.logger = (0, Logger_1.createManagerLogger)({ level });
93
93
  this.clientLogger = (0, Logger_1.createMobileLinkLogger)({ level });
94
+ // On Windows, something about the subprocess shell causes the extra
95
+ // arguments to be passed as unquoted and therefore interpreted as args for
96
+ // the mobile link process itself rather than the value of the
97
+ // --extra-arguments flag. Quoting the value again prevents this behavior.
98
+ this.extraArgumentsValue =
99
+ node_process_1.platform === "win32" && options.extraArguments
100
+ ? `"${options.extraArguments}"`
101
+ : options.extraArguments;
94
102
  this.service = (0, StateMachine_1.createService)({
95
103
  start: (workspaceId) => this.linkStart(workspaceId),
96
104
  terminate: () => this.terminate(),
@@ -142,8 +150,8 @@ class MobileLinkManager {
142
150
  const argv = ["link", "start"];
143
151
  if (workspaceId)
144
152
  argv.push(workspaceId);
145
- if (this.options.extraArguments) {
146
- argv.push("--extra-arguments", this.options.extraArguments);
153
+ if (this.extraArgumentsValue) {
154
+ argv.push("--extra-arguments", this.extraArgumentsValue);
147
155
  }
148
156
  this.spawn(argv, this.integrationVariables, false);
149
157
  if (this.childProcess) {
@@ -0,0 +1,4 @@
1
+ {
2
+ "version": "0.6.4",
3
+ "hash": "d2f8fb4b3"
4
+ }
@@ -353,32 +353,6 @@
353
353
  "upload-build.js"
354
354
  ]
355
355
  },
356
- "mobile:auth:login": {
357
- "aliases": [],
358
- "args": {},
359
- "description": "Login to Autify for Mobile",
360
- "examples": [
361
- "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
362
- "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
363
- ],
364
- "flags": {},
365
- "hasDynamicHelp": false,
366
- "hiddenAliases": [],
367
- "id": "mobile:auth:login",
368
- "pluginAlias": "@autifyhq/autify-cli",
369
- "pluginName": "@autifyhq/autify-cli",
370
- "pluginType": "core",
371
- "strict": true,
372
- "enableJsonFlag": false,
373
- "isESM": false,
374
- "relativePath": [
375
- "dist",
376
- "commands",
377
- "mobile",
378
- "auth",
379
- "login.js"
380
- ]
381
- },
382
356
  "mobile:build:upload": {
383
357
  "aliases": [],
384
358
  "args": {
@@ -429,6 +403,32 @@
429
403
  "upload.js"
430
404
  ]
431
405
  },
406
+ "mobile:auth:login": {
407
+ "aliases": [],
408
+ "args": {},
409
+ "description": "Login to Autify for Mobile",
410
+ "examples": [
411
+ "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
412
+ "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
413
+ ],
414
+ "flags": {},
415
+ "hasDynamicHelp": false,
416
+ "hiddenAliases": [],
417
+ "id": "mobile:auth:login",
418
+ "pluginAlias": "@autifyhq/autify-cli",
419
+ "pluginName": "@autifyhq/autify-cli",
420
+ "pluginType": "core",
421
+ "strict": true,
422
+ "enableJsonFlag": false,
423
+ "isESM": false,
424
+ "relativePath": [
425
+ "dist",
426
+ "commands",
427
+ "mobile",
428
+ "auth",
429
+ "login.js"
430
+ ]
431
+ },
432
432
  "mobile:link:doctor": {
433
433
  "aliases": [],
434
434
  "args": {},
@@ -719,32 +719,6 @@
719
719
  "wait.js"
720
720
  ]
721
721
  },
722
- "web:auth:login": {
723
- "aliases": [],
724
- "args": {},
725
- "description": "Login to Autify for Web",
726
- "examples": [
727
- "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
728
- "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
729
- ],
730
- "flags": {},
731
- "hasDynamicHelp": false,
732
- "hiddenAliases": [],
733
- "id": "web:auth:login",
734
- "pluginAlias": "@autifyhq/autify-cli",
735
- "pluginName": "@autifyhq/autify-cli",
736
- "pluginType": "core",
737
- "strict": true,
738
- "enableJsonFlag": false,
739
- "isESM": false,
740
- "relativePath": [
741
- "dist",
742
- "commands",
743
- "web",
744
- "auth",
745
- "login.js"
746
- ]
747
- },
748
722
  "web:api:create-access-point": {
749
723
  "aliases": [],
750
724
  "args": {},
@@ -1665,6 +1639,32 @@
1665
1639
  "update-url-replacement.js"
1666
1640
  ]
1667
1641
  },
1642
+ "web:auth:login": {
1643
+ "aliases": [],
1644
+ "args": {},
1645
+ "description": "Login to Autify for Web",
1646
+ "examples": [
1647
+ "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
1648
+ "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
1649
+ ],
1650
+ "flags": {},
1651
+ "hasDynamicHelp": false,
1652
+ "hiddenAliases": [],
1653
+ "id": "web:auth:login",
1654
+ "pluginAlias": "@autifyhq/autify-cli",
1655
+ "pluginName": "@autifyhq/autify-cli",
1656
+ "pluginType": "core",
1657
+ "strict": true,
1658
+ "enableJsonFlag": false,
1659
+ "isESM": false,
1660
+ "relativePath": [
1661
+ "dist",
1662
+ "commands",
1663
+ "web",
1664
+ "auth",
1665
+ "login.js"
1666
+ ]
1667
+ },
1668
1668
  "web:test:run": {
1669
1669
  "aliases": [],
1670
1670
  "args": {
@@ -1895,5 +1895,5 @@
1895
1895
  ]
1896
1896
  }
1897
1897
  },
1898
- "version": "0.70.0"
1898
+ "version": "0.73.0"
1899
1899
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli",
3
- "version": "0.70.0",
3
+ "version": "0.73.0",
4
4
  "description": "Autify Command Line Interface (CLI)",
5
5
  "author": "Autify",
6
6
  "bin": {
@@ -25,6 +25,7 @@
25
25
  "@oclif/plugin-warn-if-update-available": "^2.1.1",
26
26
  "abort-controller": "^3.0.0",
27
27
  "archiver": "^7.0.1",
28
+ "axios": "^1.15.2",
28
29
  "envfile": "^7.1.0",
29
30
  "get-port": "^7.1.0",
30
31
  "inquirer": "^12.11.1",
@@ -60,9 +61,7 @@
60
61
  "eslint-config-prettier": "^10.1.8",
61
62
  "eslint-plugin-unicorn": "^59.0.1",
62
63
  "execa": "^5.1.1",
63
- "husky": "^9.1.7",
64
64
  "jest": "^29.7.0",
65
- "lint-staged": "^16.2.7",
66
65
  "oclif": "^4.22.47",
67
66
  "prettier": "^3.6.2",
68
67
  "shx": "^0.4.0",
@@ -150,27 +149,15 @@
150
149
  "posttest": "npm run lint",
151
150
  "prepack": "npm run build && oclif manifest && oclif readme",
152
151
  "release": "ts-node ./scripts/release.ts",
153
- "test:integration": "npm run build -w integration-test && autify-cli-integration-test",
154
- "test:integration:dev": "npm run build -w integration-test && cross-env AUTIFY_CLI_PATH=../bin/dev autify-cli-integration-test",
155
- "test:proxy": "npm run build -w integration-test && cross-env AUTIFY_CLI_PATH=../bin/dev npm run test:proxy -w integration-test",
156
- "test:integration:record": "npm run build -w integration-test && cross-env AUTIFY_CLI_INTEGRATION_TEST_RECORD=1 AUTIFY_CONNECT_CLIENT_MODE=real autify-cli-integration-test",
157
- "test:integration:dev:record": "npm run build -w integration-test && cross-env AUTIFY_CLI_PATH=../bin/dev AUTIFY_CLI_INTEGRATION_TEST_RECORD=1 AUTIFY_CONNECT_CLIENT_MODE=real autify-cli-integration-test",
152
+ "test:integration": "autify-cli-integration-test",
153
+ "test:integration:dev": "cross-env AUTIFY_CLI_PATH=../autify-cli/bin/dev autify-cli-integration-test",
154
+ "test:integration:record": "cross-env AUTIFY_CLI_INTEGRATION_TEST_RECORD=1 AUTIFY_CONNECT_CLIENT_MODE=real autify-cli-integration-test",
155
+ "test:integration:dev:record": "cross-env AUTIFY_CLI_PATH=../autify-cli/bin/dev AUTIFY_CLI_INTEGRATION_TEST_RECORD=1 AUTIFY_CONNECT_CLIENT_MODE=real autify-cli-integration-test",
158
156
  "test:integration:connect": "AUTIFY_CONNECT_CLIENT_MODE=fake autify connect client install && npm run test:integration AutifyConnectClient",
159
157
  "test:integration:connect:dev": "AUTIFY_CONNECT_CLIENT_MODE=fake ./bin/dev connect client install && npm run test:integration:dev AutifyConnectClient",
160
158
  "test:integration:connect:record": "autify connect client install && npm run test:integration:record AutifyConnectClient",
161
159
  "test:integration:connect:dev:record": "./bin/dev connect client install && npm run test:integration:dev:record AutifyConnectClient",
162
- "test:e2e": "npx jest --config e2e-test/jest.config.js",
163
- "version": "oclif readme && git add README.md",
164
- "prepare": "per-env || true",
165
- "prepare:development": "husky install",
166
- "prepare:production": "true"
167
- },
168
- "lint-staged": {
169
- "**/*.{md,json,yml,js,cjs}": "prettier --write",
170
- "**/*.ts": [
171
- "eslint",
172
- "prettier --write"
173
- ]
160
+ "test:e2e": "npx jest --config e2e-test/jest.config.js"
174
161
  },
175
162
  "engines": {
176
163
  "node": ">=22.16.0"
@@ -179,8 +166,5 @@
179
166
  "keywords": [
180
167
  "oclif"
181
168
  ],
182
- "workspaces": [
183
- "integration-test"
184
- ],
185
169
  "types": "dist/index.d.ts"
186
170
  }