@lunora/advisor 1.0.0-alpha.128 → 1.0.0-alpha.129
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 +5 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ console.log(map.score, map.grade); // e.g. 84 "good"
|
|
|
112
112
|
console.log(map.summary); // { clean: 9, exempt: 0, failing: 1, procedures: 12, rulesFired: 6, warned: 2 }
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Each procedure starts at 100 and loses each fired **rule's** weight (`
|
|
115
|
+
Each procedure starts at 100 and loses each fired **rule's** severity weight (`ERROR` 20 / `WARN` 10 / `INFO` 5 — severity is the only input; a lint carries no weight of its own) — charged once however many times that rule fires — then rolls up into a weighted global mean: public handlers count double, internal ones and queries half. Findings that name no procedure (schema shape, wrangler config) land in a project bucket weighted against the procedure population, so schema debt genuinely moves the grade.
|
|
116
116
|
|
|
117
117
|
The verdicts are `clean` / `warned` / `failing` / `exempt` — named for severity, because the score is driven by every lint family rather than an observability family.
|
|
118
118
|
|
|
@@ -124,8 +124,10 @@ import { compareToBaseline, parseAdvisorMap } from "@lunora/advisor";
|
|
|
124
124
|
const baseline = parseAdvisorMap(JSON.parse(await readFile("lunora.advisor.map.json", "utf8")));
|
|
125
125
|
|
|
126
126
|
if (baseline === undefined) {
|
|
127
|
-
// Missing
|
|
128
|
-
//
|
|
127
|
+
// Missing or unreadable (hand-edited, truncated). Fail loudly — treating it
|
|
128
|
+
// as "no regression" would silently disable the gate forever. A version
|
|
129
|
+
// mismatch is not rejected here: `compareToBaseline` reports it as
|
|
130
|
+
// `comparable: false`.
|
|
129
131
|
throw new Error("advisor baseline is unreadable; regenerate lunora.advisor.map.json");
|
|
130
132
|
}
|
|
131
133
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/advisor",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.129",
|
|
4
4
|
"description": "Schema & query lints (splinter-style advisors) for Lunora, feeding the Studio Advisors view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@lunora/errors": "1.0.0-alpha.36",
|
|
50
|
-
"@lunora/server": "1.0.0-alpha.
|
|
50
|
+
"@lunora/server": "1.0.0-alpha.122"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": "^22.15.0 || >=24.11.0"
|