@autifyhq/autify-cli 0.49.0 → 0.51.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
@@ -76,7 +76,7 @@ EXAMPLES
76
76
  $ autify connect access-point create --name NAME --web-workspace-id ID
77
77
  ```
78
78
 
79
- _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/connect/access-point/create.ts)_
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)_
80
80
 
81
81
  ## `autify connect access-point set`
82
82
 
@@ -102,7 +102,7 @@ EXAMPLES
102
102
  $ autify connect access-point set --name=NAME < key.txt
103
103
  ```
104
104
 
105
- _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/connect/access-point/set.ts)_
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)_
106
106
 
107
107
  ## `autify connect client install [VERSION]`
108
108
 
@@ -132,7 +132,7 @@ EXAMPLES
132
132
  $ autify connect client install stable
133
133
  ```
134
134
 
135
- _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/connect/client/install.ts)_
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)_
136
136
 
137
137
  ## `autify connect client start`
138
138
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ autify connect client start --web-workspace-id 000
167
167
  ```
168
168
 
169
- _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/connect/client/start.ts)_
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)_
170
170
 
171
171
  ## `autify help [COMMAND]`
172
172
 
@@ -186,7 +186,7 @@ DESCRIPTION
186
186
  Display help for autify.
187
187
  ```
188
188
 
189
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.16/src/commands/help.ts)_
189
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.25/src/commands/help.ts)_
190
190
 
191
191
  ## `autify mobile api describe-test-result`
192
192
 
@@ -207,7 +207,7 @@ EXAMPLES
207
207
  $ autify mobile api describe-test-result
208
208
  ```
209
209
 
210
- _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/api/describe-test-result.ts)_
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)_
211
211
 
212
212
  ## `autify mobile api list-test-results`
213
213
 
@@ -231,7 +231,7 @@ EXAMPLES
231
231
  $ autify mobile api list-test-results
232
232
  ```
233
233
 
234
- _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/api/list-test-results.ts)_
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)_
235
235
 
236
236
  ## `autify mobile api run-test-plan`
237
237
 
@@ -253,7 +253,7 @@ EXAMPLES
253
253
  $ autify mobile api run-test-plan
254
254
  ```
255
255
 
256
- _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/api/run-test-plan.ts)_
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)_
257
257
 
258
258
  ## `autify mobile api upload-build`
259
259
 
@@ -274,7 +274,7 @@ EXAMPLES
274
274
  $ autify mobile api upload-build
275
275
  ```
276
276
 
277
- _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/api/upload-build.ts)_
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)_
278
278
 
279
279
  ## `autify mobile auth login`
280
280
 
@@ -297,7 +297,7 @@ EXAMPLES
297
297
  $ autify mobile auth login < token.txt
298
298
  ```
299
299
 
300
- _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/auth/login.ts)_
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)_
301
301
 
302
302
  ## `autify mobile build upload BUILD-PATH`
303
303
 
@@ -331,7 +331,7 @@ EXAMPLES
331
331
  $ autify mobile build upload --workspace-id AAA ./my.app --json
332
332
  ```
333
333
 
334
- _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/build/upload.ts)_
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)_
335
335
 
336
336
  ## `autify mobile test run TEST-PLAN-URL`
337
337
 
@@ -371,7 +371,7 @@ EXAMPLES
371
371
  --timeout 600
372
372
  ```
373
373
 
374
- _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/test/run.ts)_
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)_
375
375
 
376
376
  ## `autify mobile test wait TEST-RESULT-URL`
377
377
 
@@ -395,7 +395,7 @@ EXAMPLES
395
395
  $ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
396
396
  ```
397
397
 
398
- _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/mobile/test/wait.ts)_
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)_
399
399
 
400
400
  ## `autify update [CHANNEL]`
401
401
 
@@ -433,7 +433,7 @@ EXAMPLES
433
433
  $ autify update --available
434
434
  ```
435
435
 
436
- _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.6/src/commands/update.ts)_
436
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.6.31/src/commands/update.ts)_
437
437
 
438
438
  ## `autify web api create-access-point`
439
439
 
@@ -456,7 +456,7 @@ EXAMPLES
456
456
  $ autify web api create-access-point
457
457
  ```
458
458
 
459
- _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/create-access-point.ts)_
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)_
460
460
 
461
461
  ## `autify web api create-test-plan-variable`
462
462
 
@@ -479,7 +479,7 @@ EXAMPLES
479
479
  $ autify web api create-test-plan-variable
480
480
  ```
481
481
 
482
- _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/create-test-plan-variable.ts)_
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)_
483
483
 
484
484
  ## `autify web api create-url-replacement`
485
485
 
@@ -502,7 +502,7 @@ EXAMPLES
502
502
  $ autify web api create-url-replacement
503
503
  ```
504
504
 
505
- _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/create-url-replacement.ts)_
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)_
506
506
 
507
507
  ## `autify web api delete-access-point`
508
508
 
@@ -525,7 +525,7 @@ EXAMPLES
525
525
  $ autify web api delete-access-point
526
526
  ```
527
527
 
528
- _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/delete-access-point.ts)_
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)_
529
529
 
530
530
  ## `autify web api delete-test-plan-variable`
531
531
 
@@ -547,7 +547,7 @@ EXAMPLES
547
547
  $ autify web api delete-test-plan-variable
548
548
  ```
549
549
 
550
- _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/delete-test-plan-variable.ts)_
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)_
551
551
 
552
552
  ## `autify web api delete-url-replacement`
553
553
 
@@ -569,7 +569,7 @@ EXAMPLES
569
569
  $ autify web api delete-url-replacement
570
570
  ```
571
571
 
572
- _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/delete-url-replacement.ts)_
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)_
573
573
 
574
574
  ## `autify web api describe-result`
575
575
 
@@ -591,7 +591,7 @@ EXAMPLES
591
591
  $ autify web api describe-result
592
592
  ```
593
593
 
594
- _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/describe-result.ts)_
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)_
595
595
 
596
596
  ## `autify web api describe-scenario`
597
597
 
@@ -612,7 +612,7 @@ EXAMPLES
612
612
  $ autify web api describe-scenario
613
613
  ```
614
614
 
615
- _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/describe-scenario.ts)_
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)_
616
616
 
617
617
  ## `autify web api execute-scenarios`
618
618
 
@@ -640,7 +640,7 @@ EXAMPLES
640
640
  $ autify web api execute-scenarios
641
641
  ```
642
642
 
643
- _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/execute-scenarios.ts)_
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)_
644
644
 
645
645
  ## `autify web api execute-schedule`
646
646
 
@@ -663,7 +663,7 @@ EXAMPLES
663
663
  $ autify web api execute-schedule
664
664
  ```
665
665
 
666
- _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/execute-schedule.ts)_
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)_
667
667
 
668
668
  ## `autify web api get-credit-usage`
669
669
 
@@ -695,7 +695,7 @@ EXAMPLES
695
695
  $ autify web api get-credit-usage
696
696
  ```
697
697
 
698
- _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/get-credit-usage.ts)_
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)_
699
699
 
700
700
  ## `autify web api get-project-info`
701
701
 
@@ -715,7 +715,7 @@ EXAMPLES
715
715
  $ autify web api get-project-info
716
716
  ```
717
717
 
718
- _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/get-project-info.ts)_
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)_
719
719
 
720
720
  ## `autify web api list-access-points`
721
721
 
@@ -736,7 +736,7 @@ EXAMPLES
736
736
  $ autify web api list-access-points
737
737
  ```
738
738
 
739
- _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-access-points.ts)_
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)_
740
740
 
741
741
  ## `autify web api list-capabilities`
742
742
 
@@ -763,7 +763,7 @@ EXAMPLES
763
763
  $ autify web api list-capabilities
764
764
  ```
765
765
 
766
- _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-capabilities.ts)_
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)_
767
767
 
768
768
  ## `autify web api list-results`
769
769
 
@@ -786,7 +786,7 @@ EXAMPLES
786
786
  $ autify web api list-results
787
787
  ```
788
788
 
789
- _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-results.ts)_
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)_
790
790
 
791
791
  ## `autify web api list-scenarios`
792
792
 
@@ -807,7 +807,7 @@ EXAMPLES
807
807
  $ autify web api list-scenarios
808
808
  ```
809
809
 
810
- _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-scenarios.ts)_
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)_
811
811
 
812
812
  ## `autify web api list-test-plan-variable`
813
813
 
@@ -828,7 +828,7 @@ EXAMPLES
828
828
  $ autify web api list-test-plan-variable
829
829
  ```
830
830
 
831
- _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-test-plan-variable.ts)_
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)_
832
832
 
833
833
  ## `autify web api list-url-replacements`
834
834
 
@@ -849,7 +849,7 @@ EXAMPLES
849
849
  $ autify web api list-url-replacements
850
850
  ```
851
851
 
852
- _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/list-url-replacements.ts)_
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)_
853
853
 
854
854
  ## `autify web api update-test-plan-variable`
855
855
 
@@ -875,7 +875,7 @@ EXAMPLES
875
875
  $ autify web api update-test-plan-variable
876
876
  ```
877
877
 
878
- _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/update-test-plan-variable.ts)_
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)_
879
879
 
880
880
  ## `autify web api update-url-replacement`
881
881
 
@@ -901,7 +901,7 @@ EXAMPLES
901
901
  $ autify web api update-url-replacement
902
902
  ```
903
903
 
904
- _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/api/update-url-replacement.ts)_
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)_
905
905
 
906
906
  ## `autify web auth login`
907
907
 
@@ -924,7 +924,7 @@ EXAMPLES
924
924
  $ autify web auth login < token.txt
925
925
  ```
926
926
 
927
- _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/auth/login.ts)_
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)_
928
928
 
929
929
  ## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
930
930
 
@@ -1005,7 +1005,7 @@ EXAMPLES
1005
1005
  $ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
1006
1006
  ```
1007
1007
 
1008
- _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/test/run.ts)_
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)_
1009
1009
 
1010
1010
  ## `autify web test wait TEST-RESULT-URL`
1011
1011
 
@@ -1029,5 +1029,5 @@ EXAMPLES
1029
1029
  $ autify web test wait https://app.autify.com/projects/0000/results/0000
1030
1030
  ```
1031
1031
 
1032
- _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.49.0/src/commands/web/test/wait.ts)_
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)_
1033
1033
  <!-- commandsstop -->
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClientManager = exports.StateMachineTimeoutError = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const errors_1 = require("@oclif/errors");
6
5
  const node_child_process_1 = require("node:child_process");
7
6
  const node_process_1 = require("node:process");
@@ -14,9 +13,17 @@ const DebugServerClient_1 = require("./DebugServerClient");
14
13
  const StateMachine_1 = require("./StateMachine");
15
14
  const Logger_1 = require("./Logger");
16
15
  const node_path_1 = require("node:path");
17
- const get_port_1 = tslib_1.__importDefault(require("get-port"));
18
16
  const getWebClient_1 = require("../../web/getWebClient");
19
17
  const shell_quote_1 = require("shell-quote");
18
+ // Workaround to import get-port, which is an ES module, dynamically and avoid
19
+ // having typescript transpile that import into a require.
20
+ async function importGetPort() {
21
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
22
+ return new Promise((resolve) => {
23
+ // eslint-disable-next-line no-eval
24
+ eval(`import("get-port").then((esm) => resolve(esm.default));`);
25
+ });
26
+ }
20
27
  class StateMachineTimeoutError extends errors_1.CLIError {
21
28
  constructor(state) {
22
29
  super(`Autify Connect Manager faced timeout at ${state} state.`);
@@ -49,7 +56,8 @@ class ClientManager {
49
56
  try {
50
57
  this.logger.debug("start");
51
58
  const version = await this.getClientVersion();
52
- const debugServerPort = (_a = this.options.debugServerPort) !== null && _a !== void 0 ? _a : (await (0, get_port_1.default)());
59
+ const getPort = await importGetPort();
60
+ const debugServerPort = (_a = this.options.debugServerPort) !== null && _a !== void 0 ? _a : (await getPort());
53
61
  this.logger.info(`Starting Autify Connect Client (accessPoint: ${this.accessPointName}, debugServerPort: ${debugServerPort}, path: ${this.clientPath}, version: ${version})`);
54
62
  this.service.send("SPAWN", { debugServerPort });
55
63
  }
@@ -11,7 +11,7 @@ const node_util_1 = require("node:util");
11
11
  const node_path_1 = require("node:path");
12
12
  const unzip_stream_1 = require("unzip-stream");
13
13
  const node_child_process_1 = require("node:child_process");
14
- const tar_1 = tslib_1.__importDefault(require("tar"));
14
+ const tar = tslib_1.__importStar(require("tar"));
15
15
  const config_1 = require("../../config");
16
16
  // Update whenever to bump supported version.
17
17
  exports.AUTIFY_CONNECT_CLIENT_SUPPORTED_VERSION = "v1.0.2";
@@ -79,7 +79,7 @@ const extract = async (downloadPath) => {
79
79
  const dir = (0, node_path_1.dirname)(downloadPath);
80
80
  if (downloadPath.endsWith(".tar.gz")) {
81
81
  const streamPipeline = (0, node_util_1.promisify)(node_stream_1.pipeline);
82
- await streamPipeline((0, node_fs_1.createReadStream)(downloadPath), tar_1.default.x({ cwd: dir }));
82
+ await streamPipeline((0, node_fs_1.createReadStream)(downloadPath), tar.x({ cwd: dir }));
83
83
  }
84
84
  else if (downloadPath.endsWith(".zip")) {
85
85
  const streamPipeline = (0, node_util_1.promisify)(node_stream_1.pipeline);
@@ -13,7 +13,6 @@ const node_events_1 = require("node:events");
13
13
  const node_stream_zip_1 = tslib_1.__importDefault(require("node-stream-zip"));
14
14
  const node_os_1 = require("node:os");
15
15
  const promises_1 = require("node:fs/promises");
16
- const node_path_2 = require("node:path");
17
16
  const checkBuildPath = (buildPath) => {
18
17
  if (!(0, node_fs_1.lstatSync)(buildPath).isDirectory()) {
19
18
  throw new errors_1.CLIError(`Build path (${buildPath}) is expected to directory.`);
@@ -25,7 +24,7 @@ const checkBuildPath = (buildPath) => {
25
24
  const findZip = () => which_1.default.sync("zip", { nothrow: true });
26
25
  const createZip = async (buildPath) => {
27
26
  const [parentPath, name] = checkBuildPath(buildPath);
28
- const zipFile = (0, node_path_2.join)(await (0, promises_1.mkdtemp)((0, node_path_2.join)((0, node_os_1.tmpdir)(), "autify-cli-")), "build.zip");
27
+ const zipFile = (0, node_path_1.join)(await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "autify-cli-")), "build.zip");
29
28
  const zip = findZip();
30
29
  if (zip) {
31
30
  (0, node_child_process_1.execFileSync)(zip, ["-r", zipFile, name], { cwd: parentPath });
@@ -6,7 +6,7 @@ const tslib_1 = require("tslib");
6
6
  const errors_1 = require("@oclif/errors");
7
7
  const listr_1 = tslib_1.__importDefault(require("listr"));
8
8
  const promises_1 = require("node:timers/promises");
9
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
9
+ const emoji = tslib_1.__importStar(require("node-emoji"));
10
10
  const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
11
11
  const task = new listr_1.default([
12
12
  {
@@ -34,18 +34,18 @@ const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
34
34
  };
35
35
  const emojiStatus = (status) => {
36
36
  if (status === "queuing")
37
- return node_emoji_1.default.get("cyclone") + " Queuing";
37
+ return emoji.get("cyclone") + " Queuing";
38
38
  if (status === "waiting")
39
- return node_emoji_1.default.get("hourglass_flowing_sand") + " Waiting";
39
+ return emoji.get("hourglass_flowing_sand") + " Waiting";
40
40
  if (status === "running")
41
- return node_emoji_1.default.get("car") + " Running";
41
+ return emoji.get("red_car") + " Running";
42
42
  if (status === "passed")
43
- return node_emoji_1.default.get("+1") + " Passed ";
43
+ return emoji.get("+1") + " Passed ";
44
44
  if (status === "failed")
45
- return node_emoji_1.default.get("rotating_light") + " Failed ";
45
+ return emoji.get("rotating_light") + " Failed ";
46
46
  if (status === "skipped")
47
- return node_emoji_1.default.get("zzz") + " Skipped";
48
- return node_emoji_1.default.get("grey_question") + " None ";
47
+ return emoji.get("zzz") + " Skipped";
48
+ return emoji.get("grey_question") + " None ";
49
49
  };
50
50
  const describeTestResult = (client, workspaceId, resultId) => async (task) => {
51
51
  var _a;
@@ -6,7 +6,7 @@ const tslib_1 = require("tslib");
6
6
  const errors_1 = require("@oclif/errors");
7
7
  const listr_1 = tslib_1.__importDefault(require("listr"));
8
8
  const promises_1 = require("node:timers/promises");
9
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
9
+ const emoji = tslib_1.__importStar(require("node-emoji"));
10
10
  const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
11
11
  const task = new listr_1.default([
12
12
  {
@@ -43,18 +43,18 @@ const waitUntil = async (callback, timeoutSecond, intervalSecond, verbose) => {
43
43
  };
44
44
  const emojiStatus = (status) => {
45
45
  if (status === "queuing")
46
- return node_emoji_1.default.get("cyclone") + " Queuing";
46
+ return emoji.get("cyclone") + " Queuing";
47
47
  if (status === "waiting")
48
- return node_emoji_1.default.get("hourglass_flowing_sand") + " Waiting";
48
+ return emoji.get("hourglass_flowing_sand") + " Waiting";
49
49
  if (status === "running")
50
- return node_emoji_1.default.get("car") + " Running";
50
+ return emoji.get("red_car") + " Running";
51
51
  if (status === "passed")
52
- return node_emoji_1.default.get("+1") + " Passed ";
52
+ return emoji.get("+1") + " Passed ";
53
53
  if (status === "failed")
54
- return node_emoji_1.default.get("rotating_light") + " Failed ";
54
+ return emoji.get("rotating_light") + " Failed ";
55
55
  if (status === "skipped")
56
- return node_emoji_1.default.get("zzz") + " Skipped";
57
- return node_emoji_1.default.get("grey_question") + " None ";
56
+ return emoji.get("zzz") + " Skipped";
57
+ return emoji.get("grey_question") + " None ";
58
58
  };
59
59
  const describeResult = (client, workspaceId, resultId) => async (task) => {
60
60
  var _a, _b;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
5
+ const emoji = tslib_1.__importStar(require("node-emoji"));
6
6
  const getBuildDetailUrl_1 = require("../../../autify/mobile/getBuildDetailUrl");
7
7
  const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const uploadBuild_1 = require("../../../autify/mobile/uploadBuild");
@@ -15,7 +15,7 @@ class MobileBuildUpload extends core_1.Command {
15
15
  const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
16
16
  const [buildId, os] = await (0, uploadBuild_1.uploadBuild)(client, workspaceId, buildPath);
17
17
  const buildDetailUrl = (0, getBuildDetailUrl_1.getBuildDetailUrl)(configDir, workspaceId, os, buildId);
18
- this.log(`${node_emoji_1.default.get("white_check_mark")} Successfully uploaded ${buildPath} (ID: ${buildId}). See ${buildDetailUrl}`);
18
+ this.log(`${emoji.get("white_check_mark")} Successfully uploaded ${buildPath} (ID: ${buildId}). See ${buildDetailUrl}`);
19
19
  return { buildId };
20
20
  }
21
21
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const errors_1 = require("@oclif/errors");
6
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
6
+ const emoji = tslib_1.__importStar(require("node-emoji"));
7
7
  const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const getTestResultUrl_1 = require("../../../autify/mobile/getTestResultUrl");
9
9
  const parseTestPlanUrl_1 = require("../../../autify/mobile/parseTestPlanUrl");
@@ -31,7 +31,7 @@ class MobileTestRun extends core_1.Command {
31
31
  if (!res.data.id)
32
32
  throw new errors_1.CLIError(`Failed to run a test plan.`);
33
33
  const testResultUrl = (0, getTestResultUrl_1.getMobileTestResultUrl)(configDir, workspaceId, res.data.id);
34
- this.log(`${node_emoji_1.default.get("white_check_mark")} Successfully started: ${testResultUrl}`);
34
+ this.log(`${emoji.get("white_check_mark")} Successfully started: ${testResultUrl}`);
35
35
  return testResultUrl;
36
36
  };
37
37
  let testResultUrl = await runTestPlanOnce();
@@ -61,14 +61,14 @@ class MobileTestRun extends core_1.Command {
61
61
  else if (i === maxRetryCount)
62
62
  throw error;
63
63
  else {
64
- this.log(`${node_emoji_1.default.get("repeat")} Retrying... (attempt: ${i + 1}/${maxRetryCount})`);
64
+ this.log(`${emoji.get("repeat")} Retrying... (attempt: ${i + 1}/${maxRetryCount})`);
65
65
  testResultUrl = await runTestPlanOnce();
66
66
  }
67
67
  }
68
68
  }
69
69
  else {
70
70
  this.log("To wait for the test result, run the command below:");
71
- this.log(`${node_emoji_1.default.get("computer")} $ autify mobile test wait ${testResultUrl}`);
71
+ this.log(`${emoji.get("computer")} $ autify mobile test wait ${testResultUrl}`);
72
72
  }
73
73
  }
74
74
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
5
+ const emoji = tslib_1.__importStar(require("node-emoji"));
6
6
  const getWaitIntervalSecond_1 = require("../../../autify/getWaitIntervalSecond");
7
7
  const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const getTestResultUrl_1 = require("../../../autify/mobile/getTestResultUrl");
@@ -16,18 +16,18 @@ class MobileTestWait extends core_1.Command {
16
16
  const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
17
17
  const { workspaceId, resultId } = (0, parseTestResultUrl_1.parseTestResultUrl)(args["test-result-url"]);
18
18
  const testResultUrl = (0, getTestResultUrl_1.getMobileTestResultUrl)(configDir, workspaceId, resultId);
19
- this.log(`${node_emoji_1.default.get("clock1")} Waiting for the test result: ${testResultUrl}`);
19
+ this.log(`${emoji.get("clock1")} Waiting for the test result: ${testResultUrl}`);
20
20
  const { isPassed, data } = await (0, waitTestResult_1.waitTestResult)(client, workspaceId, resultId, {
21
21
  timeoutSecond: flags.timeout,
22
22
  verbose: flags.verbose,
23
23
  intervalSecond: waitIntervalSecond,
24
24
  });
25
25
  if (isPassed) {
26
- this.log(`${node_emoji_1.default.get("white_check_mark")} Test passed!: ${testResultUrl}`);
26
+ this.log(`${emoji.get("white_check_mark")} Test passed!: ${testResultUrl}`);
27
27
  this.exit();
28
28
  }
29
29
  else {
30
- this.log(`${node_emoji_1.default.get("x")} Test didn't pass. See ${testResultUrl}: ${JSON.stringify(data)}`);
30
+ this.log(`${emoji.get("x")} Test didn't pass. See ${testResultUrl}: ${JSON.stringify(data)}`);
31
31
  this.exit(1);
32
32
  }
33
33
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
5
+ const emoji = tslib_1.__importStar(require("node-emoji"));
6
6
  const runTest_1 = require("../../../autify/web/runTest");
7
7
  const getTestResultUrl_1 = require("../../../autify/web/getTestResultUrl");
8
8
  const wait_1 = tslib_1.__importDefault(require("./wait"));
@@ -32,7 +32,7 @@ class WebTestRun extends core_1.Command {
32
32
  };
33
33
  const urlReplacements = this.parseUrlReplacements((_a = flags["url-replacements"]) !== null && _a !== void 0 ? _a : []);
34
34
  if (urlReplacements.length > 0)
35
- this.log(`${node_emoji_1.default.get("memo")} Using URL replacements: ${urlReplacementsToString(urlReplacements)}`);
35
+ this.log(`${emoji.get("memo")} Using URL replacements: ${urlReplacementsToString(urlReplacements)}`);
36
36
  const { configDir, cacheDir, userAgent } = this.config;
37
37
  const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
38
38
  const parsedTest = (0, parseAutifyTestUrl_1.parseAutifyTestUrl)(args["scenario-or-test-plan-url"]);
@@ -47,7 +47,7 @@ class WebTestRun extends core_1.Command {
47
47
  autifyConnectAccessPoint,
48
48
  });
49
49
  const testResultUrl = (0, getTestResultUrl_1.getWebTestResultUrl)(configDir, workspaceId, resultId);
50
- this.log(`${node_emoji_1.default.get("white_check_mark")} Successfully started: ${testResultUrl} (Capability is ${capability})`);
50
+ this.log(`${emoji.get("white_check_mark")} Successfully started: ${testResultUrl} (Capability is ${capability})`);
51
51
  return testResultUrl;
52
52
  };
53
53
  try {
@@ -96,14 +96,14 @@ class WebTestRun extends core_1.Command {
96
96
  else if (i === maxRetryCount)
97
97
  throw error;
98
98
  else {
99
- this.log(`${node_emoji_1.default.get("repeat")} Retrying... (attempt: ${i + 1}/${maxRetryCount})`);
99
+ this.log(`${emoji.get("repeat")} Retrying... (attempt: ${i + 1}/${maxRetryCount})`);
100
100
  testResultUrl = await runTestOnce();
101
101
  }
102
102
  }
103
103
  }
104
104
  else {
105
105
  this.log("To wait for the test result, run the command below:");
106
- this.log(`${node_emoji_1.default.get("computer")} $ autify web test wait ${testResultUrl}`);
106
+ this.log(`${emoji.get("computer")} $ autify web test wait ${testResultUrl}`);
107
107
  }
108
108
  }
109
109
  catch (error) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
- const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
5
+ const emoji = tslib_1.__importStar(require("node-emoji"));
6
6
  const parseTestResultUrl_1 = require("../../../autify/web/parseTestResultUrl");
7
7
  const waitTestResult_1 = require("../../../autify/web/waitTestResult");
8
8
  const getTestResultUrl_1 = require("../../../autify/web/getTestResultUrl");
@@ -16,18 +16,18 @@ class WebTestWait extends core_1.Command {
16
16
  const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
17
17
  const { workspaceId, resultId } = (0, parseTestResultUrl_1.parseTestResultUrl)(args["test-result-url"]);
18
18
  const testResultUrl = (0, getTestResultUrl_1.getWebTestResultUrl)(configDir, workspaceId, resultId);
19
- this.log(`${node_emoji_1.default.get("clock1")} Waiting for the test result: ${testResultUrl}`);
19
+ this.log(`${emoji.get("clock1")} Waiting for the test result: ${testResultUrl}`);
20
20
  const { isPassed, data } = await (0, waitTestResult_1.waitTestResult)(client, workspaceId, resultId, {
21
21
  timeoutSecond: flags.timeout,
22
22
  verbose: flags.verbose,
23
23
  intervalSecond: waitIntervalSecond,
24
24
  });
25
25
  if (isPassed) {
26
- this.log(`${node_emoji_1.default.get("white_check_mark")} Test passed!: ${testResultUrl}`);
26
+ this.log(`${emoji.get("white_check_mark")} Test passed!: ${testResultUrl}`);
27
27
  this.exit();
28
28
  }
29
29
  else {
30
- this.log(`${node_emoji_1.default.get("x")} Test didn't pass. See ${testResultUrl}: ${JSON.stringify(data)}`);
30
+ this.log(`${emoji.get("x")} Test didn't pass. See ${testResultUrl}: ${JSON.stringify(data)}`);
31
31
  this.exit(1);
32
32
  }
33
33
  }
package/dist/config.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOrThrow = exports.get = exports.set = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ /* eslint-disable unicorn/import-style */
5
6
  const envfile = tslib_1.__importStar(require("envfile"));
6
7
  const fs = tslib_1.__importStar(require("node:fs"));
7
8
  const path = tslib_1.__importStar(require("node:path"));