@reshotdev/screenshot 0.0.1-beta.25 → 0.0.1-beta.27

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.25",
3
+ "version": "0.0.1-beta.27",
4
4
  "description": "Screenshot and video capture CLI",
5
5
  "author": "Reshot <hello@reshot.dev>",
6
6
  "license": "Apache-2.0",
@@ -49,12 +49,12 @@
49
49
  "pack:check": "npm pack --dry-run"
50
50
  },
51
51
  "dependencies": {
52
- "@reshot/compose": "workspace:*",
53
52
  "axios": "^1.6.2",
54
53
  "chalk": "^4.1.2",
55
54
  "commander": "^11.1.0",
56
55
  "cors": "^2.8.5",
57
56
  "dotenv": "^16.3.1",
57
+ "esbuild": "^0.27.2",
58
58
  "express": "^4.18.2",
59
59
  "form-data": "^4.0.0",
60
60
  "fs-extra": "^11.2.0",
@@ -64,6 +64,7 @@
64
64
  "ora": "^7.0.1",
65
65
  "pixelmatch": "^5.3.0",
66
66
  "playwright": "^1.40.0",
67
+ "playwright-core": "^1.57.0",
67
68
  "pngjs": "^7.0.0",
68
69
  "sharp": "^0.33.2",
69
70
  "socket.io": "^4.7.2",
@@ -84,11 +84,21 @@ async function doctorTargetCommand(options = {}) {
84
84
  } else {
85
85
  console.log(chalk.cyan("\n🩺 Certified Target Doctor\n"));
86
86
  console.log(chalk.gray(`Target: ${report.target.displayName} (${report.target.tier})`));
87
- console.log(
88
- report.ok
89
- ? chalk.green(" āœ” Target contract is healthy")
90
- : chalk.red(" āœ– Target contract check failed"),
91
- );
87
+ if (report.scenarioCount === 0) {
88
+ // Nothing was audited — don't show a green "healthy" that misleads a
89
+ // first-time user who hasn't configured scenarios yet (audit run-20 M-2).
90
+ console.log(
91
+ chalk.yellow(
92
+ " ⚠ No scenarios configured — nothing to audit. Add scenarios to reshot.config.json (or run `reshot run` to capture one), then re-run.",
93
+ ),
94
+ );
95
+ } else {
96
+ console.log(
97
+ report.ok
98
+ ? chalk.green(" āœ” Target contract is healthy")
99
+ : chalk.red(" āœ– Target contract check failed"),
100
+ );
101
+ }
92
102
  for (const audit of report.readinessAudits) {
93
103
  if (audit.ok) {
94
104
  console.log(chalk.green(` āœ” ${audit.scenario}`));
@@ -597,6 +597,10 @@ async function runDoctorTarget(options = {}) {
597
597
  captureSafe,
598
598
  routeAudits,
599
599
  readinessAudits,
600
+ // Surface how many scenarios were actually audited so callers don't read a
601
+ // vacuously-true "healthy" (every([]) === true) as a real pass when nothing
602
+ // was configured to check (audit run-20 M-2).
603
+ scenarioCount: scenarios.length,
600
604
  summary: buildSummary(blockingIssues, advisories, info),
601
605
  ok,
602
606
  };