@agent-scope/tokens 1.20.0 → 1.20.2
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -187,7 +187,7 @@ interface ComplianceReport {
|
|
|
187
187
|
onSystem: number;
|
|
188
188
|
/** Number of properties that are off-system */
|
|
189
189
|
offSystem: number;
|
|
190
|
-
/** on-system count / total;
|
|
190
|
+
/** on-system count / total; 0 when total === 0 so zero-audit runs fail loudly */
|
|
191
191
|
compliance: number;
|
|
192
192
|
/** ISO timestamp of when the audit was run */
|
|
193
193
|
auditedAt: string;
|
|
@@ -202,7 +202,7 @@ interface BatchReport {
|
|
|
202
202
|
totalOnSystem: number;
|
|
203
203
|
/** Total off-system properties across all components */
|
|
204
204
|
totalOffSystem: number;
|
|
205
|
-
/** Aggregate compliance percentage across all components */
|
|
205
|
+
/** Aggregate compliance percentage across all components; 0 when no properties were audited */
|
|
206
206
|
aggregateCompliance: number;
|
|
207
207
|
/** ISO timestamp of when the batch audit was run */
|
|
208
208
|
auditedAt: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ interface ComplianceReport {
|
|
|
187
187
|
onSystem: number;
|
|
188
188
|
/** Number of properties that are off-system */
|
|
189
189
|
offSystem: number;
|
|
190
|
-
/** on-system count / total;
|
|
190
|
+
/** on-system count / total; 0 when total === 0 so zero-audit runs fail loudly */
|
|
191
191
|
compliance: number;
|
|
192
192
|
/** ISO timestamp of when the audit was run */
|
|
193
193
|
auditedAt: string;
|
|
@@ -202,7 +202,7 @@ interface BatchReport {
|
|
|
202
202
|
totalOnSystem: number;
|
|
203
203
|
/** Total off-system properties across all components */
|
|
204
204
|
totalOffSystem: number;
|
|
205
|
-
/** Aggregate compliance percentage across all components */
|
|
205
|
+
/** Aggregate compliance percentage across all components; 0 when no properties were audited */
|
|
206
206
|
aggregateCompliance: number;
|
|
207
207
|
/** ISO timestamp of when the batch audit was run */
|
|
208
208
|
auditedAt: string;
|
package/dist/index.js
CHANGED
|
@@ -7430,7 +7430,7 @@ var ComplianceEngine = class {
|
|
|
7430
7430
|
totalOnSystem += report.onSystem;
|
|
7431
7431
|
}
|
|
7432
7432
|
const totalOffSystem = totalProperties - totalOnSystem;
|
|
7433
|
-
const aggregateCompliance = totalProperties === 0 ?
|
|
7433
|
+
const aggregateCompliance = totalProperties === 0 ? 0 : totalOnSystem / totalProperties;
|
|
7434
7434
|
return {
|
|
7435
7435
|
components: componentReports,
|
|
7436
7436
|
totalProperties,
|
|
@@ -7548,7 +7548,7 @@ var ComplianceEngine = class {
|
|
|
7548
7548
|
const total = Object.keys(properties).length;
|
|
7549
7549
|
const onSystem = Object.values(properties).filter((r) => r.status === "on_system").length;
|
|
7550
7550
|
const offSystem = total - onSystem;
|
|
7551
|
-
const compliance = total === 0 ?
|
|
7551
|
+
const compliance = total === 0 ? 0 : onSystem / total;
|
|
7552
7552
|
return {
|
|
7553
7553
|
properties,
|
|
7554
7554
|
total,
|