@devicecloud.dev/dcd 4.4.1 → 4.4.3
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/dist/commands/cloud.js +4 -8
- package/dist/methods.js +9 -15
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/commands/cloud.js
CHANGED
|
@@ -167,14 +167,10 @@ class Cloud extends core_1.Command {
|
|
|
167
167
|
debug,
|
|
168
168
|
logger: this.log.bind(this),
|
|
169
169
|
});
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
this.
|
|
173
|
-
|
|
174
|
-
styling_1.colors.dim(`Maestro version ${resolvedMaestroVersion} is deprecated and will be removed on 27/03/2026. `) +
|
|
175
|
-
styling_1.colors.dim(`Please upgrade to a newer version. See: `) +
|
|
176
|
-
styling_1.colors.info('https://docs.devicecloud.dev/configuration/maestro-versions') + `\n` +
|
|
177
|
-
`${styling_1.dividers.light}\n`);
|
|
170
|
+
const REMOVED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7', '2.0.3'];
|
|
171
|
+
if (REMOVED_MAESTRO_VERSIONS.includes(resolvedMaestroVersion)) {
|
|
172
|
+
this.error(`Maestro version ${resolvedMaestroVersion} is no longer supported. ` +
|
|
173
|
+
`Please upgrade to a newer version. See: https://docs.devicecloud.dev/configuration/maestro-versions`);
|
|
178
174
|
}
|
|
179
175
|
if (retry && retry > 2) {
|
|
180
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."));
|
package/dist/methods.js
CHANGED
|
@@ -495,33 +495,27 @@ async function performUpload(config) {
|
|
|
495
495
|
finalPath,
|
|
496
496
|
});
|
|
497
497
|
let lastError = backblazeResult.error;
|
|
498
|
-
//
|
|
498
|
+
// Always upload to Supabase (re-enabled as always-on alongside Backblaze)
|
|
499
499
|
let supabaseResult = { error: null, success: false };
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
console.log('[DEBUG] Backblaze upload failed, falling back to Supabase...');
|
|
503
|
-
}
|
|
504
|
-
supabaseResult = await uploadToSupabase(env, tempPath, file, debug);
|
|
505
|
-
if (!supabaseResult.success && supabaseResult.error) {
|
|
506
|
-
lastError = supabaseResult.error;
|
|
507
|
-
}
|
|
500
|
+
if (debug) {
|
|
501
|
+
console.log('[DEBUG] Uploading to Supabase...');
|
|
508
502
|
}
|
|
509
|
-
|
|
510
|
-
|
|
503
|
+
supabaseResult = await uploadToSupabase(env, tempPath, file, debug);
|
|
504
|
+
if (!supabaseResult.success && supabaseResult.error) {
|
|
505
|
+
lastError = supabaseResult.error;
|
|
511
506
|
}
|
|
512
507
|
// Validate results
|
|
513
508
|
validateUploadResults(supabaseResult.success, backblazeResult.success, lastError, b2, debug);
|
|
514
509
|
// Log upload summary
|
|
515
510
|
if (debug) {
|
|
516
|
-
|
|
517
|
-
console.log(`[DEBUG] Upload summary - Backblaze: ${backblazeResult.success ? '✓' : '✗'}, Supabase: ${supabaseResult.success ? '✓' : '✗ (fallback ' + (backblazeResult.success ? 'not needed' : 'attempted') + ')'}`);
|
|
511
|
+
console.log(`[DEBUG] Upload summary - Backblaze: ${backblazeResult.success ? '✓' : '✗'}, Supabase: ${supabaseResult.success ? '✓' : '✗'}`);
|
|
518
512
|
console.log('[DEBUG] Finalizing upload...');
|
|
519
513
|
console.log(`[DEBUG] Target endpoint: ${apiUrl}/uploads/finaliseUpload`);
|
|
520
514
|
console.log(`[DEBUG] Uploaded to staging path: ${tempPath}`);
|
|
521
515
|
console.log(`[DEBUG] API will move to final path: ${finalPath}`);
|
|
522
516
|
console.log(`[DEBUG] Backblaze upload status: ${backblazeResult.success ? 'SUCCESS' : 'FAILED'}`);
|
|
523
|
-
console.log(`[DEBUG] Supabase upload status: ${supabaseResult.success ? 'SUCCESS
|
|
524
|
-
if (
|
|
517
|
+
console.log(`[DEBUG] Supabase upload status: ${supabaseResult.success ? 'SUCCESS' : 'FAILED'}`);
|
|
518
|
+
if (!backblazeResult.success && supabaseResult.success)
|
|
525
519
|
console.log('[DEBUG] ⚠ Warning: File only exists in Supabase (Backblaze failed)');
|
|
526
520
|
}
|
|
527
521
|
// Finalize upload
|
package/oclif.manifest.json
CHANGED