@prooflane/inspector-beta 0.1.0-beta.6 → 0.1.0-beta.7

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/cli.mjs CHANGED
@@ -6092,8 +6092,8 @@ function validateGovernedGateManifest(value) {
6092
6092
  if (!record2(value.settings) || !exactKeys(value.settings, ["executionMode", "evidenceSync"]) || value.settings.executionMode !== "ALL_CONTROLS" || value.settings.evidenceSync !== "COMPACT_ONLY") {
6093
6093
  return { ok: false, error: "Gate settings must execute all signed Suite controls and synchronize compact evidence only." };
6094
6094
  }
6095
- if (!record2(value.approvalRules) || !exactKeys(value.approvalRules, ["minimumApprovals", "requireDistinctReviewer"]) || value.approvalRules.minimumApprovals !== 1 || value.approvalRules.requireDistinctReviewer !== true) {
6096
- return { ok: false, error: "Gate approvalRules must require one approval from a distinct reviewer." };
6095
+ if (!record2(value.approvalRules) || !exactKeys(value.approvalRules, ["minimumApprovals", "requireDistinctReviewer"]) || value.approvalRules.minimumApprovals !== 1 || typeof value.approvalRules.requireDistinctReviewer !== "boolean") {
6096
+ return { ok: false, error: "Gate approvalRules must require one recorded approval and a boolean reviewer policy." };
6097
6097
  }
6098
6098
  return { ok: true, manifest: value };
6099
6099
  }