@reshotdev/screenshot 0.0.1-beta.23 → 0.0.1-beta.24

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.23",
3
+ "version": "0.0.1-beta.24",
4
4
  "description": "Screenshot and video capture CLI",
5
5
  "author": "Reshot <hello@reshot.dev>",
6
6
  "license": "MIT",
@@ -464,11 +464,17 @@ async function runDoctorTarget(options = {}) {
464
464
  );
465
465
  }
466
466
 
467
- let readyContractOk = hasDeterministicReadyContract(scenario);
467
+ // A strict app-owned readiness CONTRACT is only required for the "certified"
468
+ // tier. For self-serve/local (custom) targets, the actual page-readiness
469
+ // audit below is what matters — don't fail the scenario (with no reason)
470
+ // just because it lacks a deterministic ready contract (audit run-18 R18-1).
471
+ const requireReadyContract = target.tier === "certified";
472
+ let readyContractOk = !requireReadyContract || hasDeterministicReadyContract(scenario);
468
473
  let contractFailure = null;
469
- if (target.tier === "certified" && !readyContractOk) {
474
+ if (requireReadyContract && !hasDeterministicReadyContract(scenario)) {
475
+ readyContractOk = false;
470
476
  contractFailure = "Scenario is missing an app-owned readiness contract.";
471
- } else if (target.tier === "certified" && usesSleepOnlyReadiness(scenario)) {
477
+ } else if (requireReadyContract && usesSleepOnlyReadiness(scenario)) {
472
478
  readyContractOk = false;
473
479
  contractFailure = "Scenario relies on waits without a deterministic ready contract.";
474
480
  }