roast-my-design-system 9.0.0 → 9.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roast-my-design-system",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "mcpName": "io.github.gregkozakiewicz/roast-my-design-system",
5
5
  "description": "Your AI can write the UI. This makes sure it writes your UI. A deterministic scanner scores your design system 0-100 against 112 public repos, reads React and web components (Stencil, Lit), hands you a copy-paste fix prompt for each top finding, writes rules for Claude, Cursor, Copilot and Windsurf with --apply, and runs as a local MCP server with --mcp.",
6
6
  "keywords": [
@@ -131,9 +131,12 @@ export function chartFindings({ file, colours, charts, tokenFile = null }) {
131
131
  }));
132
132
  }
133
133
  const where = tokenFile ?? 'the theme';
134
- if (tier === 2) {
135
- const prec = charts.precedents.find((p) => p.file !== file) ?? null;
136
- const shadcn = charts.palette?.shadcnDefault ? charts.palette : null;
134
+ // The scan already holds the file being judged, so a brand-new chart is
135
+ // its own precedent. A precedent is another file; with none, and no
136
+ // palette, this is the first chart in the repo (9.0.1).
137
+ const prec = charts.precedents.find((p) => p.file !== file) ?? null;
138
+ const shadcn = charts.palette?.shadcnDefault ? charts.palette : null;
139
+ if (tier === 2 && (prec || shadcn)) {
137
140
  return [{
138
141
  rule: 'chart-palette', severity: 'warning', index: first,
139
142
  message: `This chart paints its ${plural(distinct.length, 'series colour')} by hand (${list(distinct)}); the repo has no chart palette${prec ? `, and ${prec.file} already does the same with ${prec.count}` : ''}.`,
@@ -1,7 +1,7 @@
1
1
  // Single version constant for the engine — imported by diagnose (report
2
2
  // footer) and rules (generated-by line). This is the bump spot that used to
3
3
  // live as a const inside diagnose/index.mjs.
4
- export const VERSION = '9.0.0';
4
+ export const VERSION = '9.0.1';
5
5
  // The shape of harvest.json and summary.json. Bumped only when a field is
6
6
  // renamed, removed or changes meaning; a new field is not a new schema. A
7
7
  // tool comparing two scans compares like with like by this number, not by VERSION.