@devicecloud.dev/dcd 4.4.5 → 4.4.8

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
@@ -1,10 +1,5 @@
1
1
  # devicecloud.dev CLI
2
2
 
3
- > **Notice:** This CLI is being replaced by a new standalone repository at
4
- > [moropo-com/cli](https://github.com/moropo-com/cli). Active development,
5
- > releases, and new features (including `dcd login`) live there. The version
6
- > in this directory is retained for historical reference and will be removed
7
- > once the migration is complete.
8
3
 
9
4
  ---
10
5
 
@@ -96,4 +96,5 @@ export default class Cloud extends Command {
96
96
  * @throws Error for infrastructure or configuration errors
97
97
  */
98
98
  run(): Promise<any>;
99
+ protected toErrorJson(err: unknown): unknown;
99
100
  }
@@ -167,19 +167,11 @@ class Cloud extends core_1.Command {
167
167
  debug,
168
168
  logger: this.log.bind(this),
169
169
  });
170
- const REMOVED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7', '2.0.3'];
170
+ const REMOVED_MAESTRO_VERSIONS = ['1.39.1', '1.39.2', '1.39.7', '2.0.3', '2.4.0'];
171
171
  if (REMOVED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
172
172
  this.error(`Maestro version ${resolvedMaestroVersion} is no longer supported. ` +
173
173
  `Please upgrade to a newer version. See: https://docs.devicecloud.dev/configuration/maestro-versions`);
174
174
  }
175
- const DEPRECATED_MAESTRO_VERSIONS = ['1.39.1', '2.4.0'];
176
- if (DEPRECATED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
177
- this.log(`\n${styling_1.dividers.light}\n` +
178
- `${styling_1.colors.warning('⚠')} ${styling_1.colors.bold('Deprecation Warning')}\n` +
179
- styling_1.colors.dim(` Maestro version ${resolvedMaestroVersion} is deprecated and will be removed in a future release.\n`) +
180
- styling_1.colors.dim(` Please upgrade to a newer version. See: `) + styling_1.colors.info('https://docs.devicecloud.dev/configuration/maestro-versions') + `\n` +
181
- `${styling_1.dividers.light}\n`);
182
- }
183
175
  if (retry && retry > 2) {
184
176
  this.log(styling_1.colors.warning('⚠') + ' ' + styling_1.colors.dim("Retries are now free of charge but limited to 2. If your test is still failing after 2 retries, please ask for help on Discord."));
185
177
  flags.retry = 2;
@@ -620,5 +612,16 @@ class Cloud extends core_1.Command {
620
612
  }
621
613
  }
622
614
  }
615
+ toErrorJson(err) {
616
+ if (err instanceof Error) {
617
+ return {
618
+ error: {
619
+ message: err.message,
620
+ ...(err.code ? { code: err.code } : {}),
621
+ },
622
+ };
623
+ }
624
+ return { error: { message: String(err) } };
625
+ }
623
626
  }
624
627
  exports.default = Cloud;
@@ -16,4 +16,5 @@ export default class Upload extends Command {
16
16
  run(): Promise<{
17
17
  appBinaryId: string;
18
18
  }>;
19
+ protected toErrorJson(err: unknown): unknown;
19
20
  }
@@ -94,5 +94,16 @@ class Upload extends core_1.Command {
94
94
  }
95
95
  }
96
96
  }
97
+ toErrorJson(err) {
98
+ if (err instanceof Error) {
99
+ return {
100
+ error: {
101
+ message: err.message,
102
+ ...(err.code ? { code: err.code } : {}),
103
+ },
104
+ };
105
+ }
106
+ return { error: { message: String(err) } };
107
+ }
97
108
  }
98
109
  exports.default = Upload;
@@ -14,6 +14,7 @@ export declare enum EiOSDevices {
14
14
  'iphone-16-pro-max' = "iphone-16-pro-max"
15
15
  }
16
16
  export declare enum EAndroidDevices {
17
+ 'generic-tablet' = "generic-tablet",
17
18
  'pixel-6' = "pixel-6",
18
19
  'pixel-6-pro' = "pixel-6-pro",
19
20
  'pixel-7' = "pixel-7",
@@ -19,6 +19,7 @@ var EiOSDevices;
19
19
  })(EiOSDevices || (exports.EiOSDevices = EiOSDevices = {}));
20
20
  var EAndroidDevices;
21
21
  (function (EAndroidDevices) {
22
+ EAndroidDevices["generic-tablet"] = "generic-tablet";
22
23
  EAndroidDevices["pixel-6"] = "pixel-6";
23
24
  EAndroidDevices["pixel-6-pro"] = "pixel-6-pro";
24
25
  EAndroidDevices["pixel-7"] = "pixel-7";
@@ -1357,7 +1357,6 @@ export interface operations {
1357
1357
  * "maestro": {
1358
1358
  * "supportedVersions": [
1359
1359
  * "1.39.0",
1360
- * "1.39.1",
1361
1360
  * "1.39.2",
1362
1361
  * "1.39.5",
1363
1362
  * "1.39.7",
@@ -2020,7 +2020,6 @@ export interface operations {
2020
2020
  * "maestro": {
2021
2021
  * "supportedVersions": [
2022
2022
  * "1.39.0",
2023
- * "1.39.1",
2024
2023
  * "1.39.2",
2025
2024
  * "1.39.5",
2026
2025
  * "1.39.7",
@@ -247,6 +247,7 @@
247
247
  "hasDynamicHelp": false,
248
248
  "multiple": false,
249
249
  "options": [
250
+ "generic-tablet",
250
251
  "pixel-6",
251
252
  "pixel-6-pro",
252
253
  "pixel-7",
@@ -879,5 +880,5 @@
879
880
  ]
880
881
  }
881
882
  },
882
- "version": "4.4.5"
883
+ "version": "4.4.8"
883
884
  }
package/package.json CHANGED
@@ -69,7 +69,7 @@
69
69
  "type": "git",
70
70
  "url": "https://devicecloud.dev"
71
71
  },
72
- "version": "4.4.5",
72
+ "version": "4.4.8",
73
73
  "bugs": {
74
74
  "url": "https://discord.gg/gm3mJwcNw8"
75
75
  },