@agent-scope/tokens 1.19.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,
@@ -7653,7 +7653,7 @@ function setNested(obj, segments, value) {
7653
7653
  }
7654
7654
  current = current[seg];
7655
7655
  }
7656
- const last = segments[segments.length - 1];
7656
+ const last = segments.at(-1);
7657
7657
  current[last] = value;
7658
7658
  }
7659
7659
  function exportTailwind(tokens, options) {
@@ -7702,7 +7702,7 @@ function exportFigma(tokens, options) {
7702
7702
  }
7703
7703
  current = current[seg];
7704
7704
  }
7705
- const last = segs[segs.length - 1];
7705
+ const last = segs.at(-1);
7706
7706
  current[last] = {
7707
7707
  value: token.resolvedValue,
7708
7708
  type: token.type,
@@ -7725,7 +7725,7 @@ function exportFigma(tokens, options) {
7725
7725
  }
7726
7726
  current = current[seg];
7727
7727
  }
7728
- const last = segs[segs.length - 1];
7728
+ const last = segs.at(-1);
7729
7729
  const baseToken = tokens.find((t) => t.path === path);
7730
7730
  current[last] = {
7731
7731
  value,