@greenarmor/ges-scoring-engine 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @greenarmor/ges-scoring-engine
2
2
 
3
- Compliance scoring across frameworks for the [Green Engineering Standard Framework (GESF)](https://github.com/greenarmor/gesf).
3
+ Compliance scoring across frameworks for the Green Engineering Standard Framework (GESF).
4
4
 
5
5
  Calculates per-framework and overall compliance scores based on evaluated controls. Produces structured score files for display and reporting.
6
6
 
@@ -48,9 +48,9 @@ Scores are stored in `.ges/score.json` and include:
48
48
 
49
49
  ## Related Packages
50
50
 
51
- - [`@greenarmor/ges-core`](https://www.npmjs.com/package/@greenarmor/ges-core) — Types and constants
52
- - [`@greenarmor/ges-compliance-engine`](https://www.npmjs.com/package/@greenarmor/ges-compliance-engine) — Control evaluation
53
- - [`@greenarmor/ges-report-generator`](https://www.npmjs.com/package/@greenarmor/ges-report-generator) — Report generation from scores
51
+ - `@greenarmor/ges-core` — Types and constants
52
+ - `@greenarmor/ges-compliance-engine` — Control evaluation
53
+ - `@greenarmor/ges-report-generator` — Report generation from scores
54
54
 
55
55
  ## License
56
56
 
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ function computeWeightedScore(controls) {
71
71
  return { score, maxPossible };
72
72
  }
73
73
  function countCriticalFailures(controls) {
74
- return controls.filter((c) => c.severity === "critical" && (c.status === "fail" || c.status === "not-implemented")).length;
74
+ return controls.filter((c) => c.severity === "critical" && c.status === "fail").length;
75
75
  }
76
76
  export function scoreByFramework(controls, frameworks) {
77
77
  const result = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greenarmor/ges-scoring-engine",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "GESF Scoring Engine - Compliance scoring across frameworks",
6
6
  "main": "./dist/index.js",
@@ -11,17 +11,17 @@
11
11
  "default": "./dist/index.js"
12
12
  }
13
13
  },
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
17
+ "test": "vitest run"
18
+ },
14
19
  "dependencies": {
15
- "@greenarmor/ges-core": "1.0.0"
20
+ "@greenarmor/ges-core": "workspace:*"
16
21
  },
17
22
  "devDependencies": {
18
23
  "@types/node": "^22.0.0",
19
24
  "typescript": "^6.0.0",
20
25
  "vitest": "^4.1.8"
21
- },
22
- "scripts": {
23
- "build": "tsc",
24
- "clean": "rm -rf dist tsconfig.tsbuildinfo",
25
- "test": "vitest run"
26
26
  }
27
- }
27
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025–2026 greenarmor
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- export {};