@reshotdev/screenshot 0.0.1-beta.0 → 0.0.1-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reshotdev/screenshot",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.1-beta.1",
4
4
  "description": "CI/CD screenshot and video capture CLI",
5
5
  "author": "Reshot <hello@reshot.dev>",
6
6
  "license": "MIT",
@@ -465,6 +465,26 @@ async function runCommand(options = {}) {
465
465
 
466
466
  console.log(chalk.gray(`\nOutput saved to: ${outputBaseDir}`));
467
467
 
468
+ // Offer to open Studio for review (interactive TTY only, on success)
469
+ if (result.success && process.stdin.isTTY && !noExit) {
470
+ const inquirer = require("inquirer");
471
+ const { openStudio } = await inquirer.prompt([
472
+ {
473
+ type: "confirm",
474
+ name: "openStudio",
475
+ message: "Open Reshot Studio to review captures?",
476
+ default: true,
477
+ },
478
+ ]);
479
+
480
+ if (openStudio) {
481
+ console.log(chalk.cyan("\nšŸŽ¬ Launching Reshot Studio...\n"));
482
+ const uiCommand = require("./ui");
483
+ await uiCommand({ open: true });
484
+ return { success: result.success, results: result.results };
485
+ }
486
+ }
487
+
468
488
  // Ensure process exits cleanly (Playwright CDP connections can keep event loop alive)
469
489
  if (!noExit) {
470
490
  setImmediate(() => process.exit(process.exitCode || 0));
@@ -673,7 +673,21 @@ async function setupWizard(options = {}) {
673
673
  journeyMappings:
674
674
  Object.keys(journeyMappings).length > 0 ? journeyMappings : undefined,
675
675
  };
676
- newConfig.assetDir = ".reshot/output";
676
+
677
+ if (!useCloud) {
678
+ const { customAssetDir } = await inquirer.prompt([
679
+ {
680
+ type: "input",
681
+ name: "customAssetDir",
682
+ message: "Where should screenshots be saved?",
683
+ default: ".reshot/output",
684
+ },
685
+ ]);
686
+ newConfig.assetDir = customAssetDir;
687
+ } else {
688
+ newConfig.assetDir = ".reshot/output";
689
+ }
690
+
677
691
  newConfig.scenarios = existingConfig?.scenarios || [];
678
692
  }
679
693