@agent-scope/tokens 1.20.0 → 1.20.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/dist/index.cjs CHANGED
@@ -7432,7 +7432,7 @@ var ComplianceEngine = class {
7432
7432
  totalOnSystem += report.onSystem;
7433
7433
  }
7434
7434
  const totalOffSystem = totalProperties - totalOnSystem;
7435
- const aggregateCompliance = totalProperties === 0 ? 1 : totalOnSystem / totalProperties;
7435
+ const aggregateCompliance = totalProperties === 0 ? 0 : totalOnSystem / totalProperties;
7436
7436
  return {
7437
7437
  components: componentReports,
7438
7438
  totalProperties,
@@ -7550,7 +7550,7 @@ var ComplianceEngine = class {
7550
7550
  const total = Object.keys(properties).length;
7551
7551
  const onSystem = Object.values(properties).filter((r) => r.status === "on_system").length;
7552
7552
  const offSystem = total - onSystem;
7553
- const compliance = total === 0 ? 1 : onSystem / total;
7553
+ const compliance = total === 0 ? 0 : onSystem / total;
7554
7554
  return {
7555
7555
  properties,
7556
7556
  total,