impeccable 3.2.0 → 3.3.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.
@@ -0,0 +1,30 @@
1
+ const GOOGLE_FONTS_URL_RE = /fonts\.googleapis\.com\/css2?\?[^"'\s)<>]*/gi;
2
+
3
+ function normalizeGoogleFontFamilyParam(value) {
4
+ return String(value || '')
5
+ .split('|')
6
+ .map(part => part.split(':')[0].trim().toLowerCase())
7
+ .filter(Boolean);
8
+ }
9
+
10
+ function extractGoogleFontFamilies(text) {
11
+ const families = [];
12
+ if (!text) return families;
13
+
14
+ GOOGLE_FONTS_URL_RE.lastIndex = 0;
15
+ let urlMatch;
16
+ while ((urlMatch = GOOGLE_FONTS_URL_RE.exec(text)) !== null) {
17
+ const url = urlMatch[0];
18
+ const queryStart = url.indexOf('?');
19
+ if (queryStart === -1) continue;
20
+
21
+ const params = new URLSearchParams(url.slice(queryStart + 1).replace(/&amp;/g, '&'));
22
+ for (const value of params.getAll('family')) {
23
+ families.push(...normalizeGoogleFontFamilyParam(value));
24
+ }
25
+ }
26
+
27
+ return families;
28
+ }
29
+
30
+ export { extractGoogleFontFamilies };
@@ -5,10 +5,12 @@ export const FILE_DOWNLOAD_PROVIDER_CONFIG_DIRS = Object.freeze({
5
5
  codex: '.codex',
6
6
  agents: '.agents',
7
7
  github: '.github',
8
+ grok: '.grok',
8
9
  kiro: '.kiro',
9
10
  opencode: '.opencode',
10
11
  pi: '.pi',
11
12
  qoder: '.qoder',
13
+ vibe: '.vibe',
12
14
  });
13
15
 
14
16
  export const FILE_DOWNLOAD_PROVIDERS = Object.freeze(
@@ -346,12 +346,16 @@ export function normalizeIgnoreValueEntries(entries) {
346
346
  ...(Array.isArray(entry.files) ? entry.files.filter(v => typeof v === 'string' && v.trim()).map(v => v.trim()) : []),
347
347
  ]);
348
348
  if (files.length > 0) normalized.files = files;
349
- if (typeof entry.reason === 'string' && entry.reason.trim()) {
350
- normalized.reason = entry.reason.trim();
351
- }
349
+ // Key order is rule, value, files, createdAt, reason and must stay that way:
350
+ // normalizing runs on every write, so emitting a different order than the one
351
+ // already on disk rewrites every untouched entry and churns the diff. Keep in
352
+ // step with normalizeIgnoreValueEntries in skill/scripts/hook-lib.mjs.
352
353
  if (typeof entry.createdAt === 'string' && entry.createdAt.trim()) {
353
354
  normalized.createdAt = entry.createdAt.trim();
354
355
  }
356
+ if (typeof entry.reason === 'string' && entry.reason.trim()) {
357
+ normalized.reason = entry.reason.trim();
358
+ }
355
359
  out.push(normalized);
356
360
  }
357
361
  return out;
@@ -369,7 +373,9 @@ function mergeIgnoreValues(existing, incoming) {
369
373
  }
370
374
 
371
375
  function ignoreValueFilesKey(files) {
372
- return Array.isArray(files) && files.length > 0 ? files.join('\x1f') : '';
376
+ // Sort before joining: a scope is a set, so an entry already on disk in another
377
+ // order must compare equal rather than dedup as two distinct entries.
378
+ return Array.isArray(files) && files.length > 0 ? [...files].sort().join('\x1f') : '';
373
379
  }
374
380
 
375
381
  // Glob -> RegExp. Supports `**`, `*`, `?`, and `{a,b}` alternation.
@@ -459,11 +465,13 @@ export function filterDetectionFindings(findings, config) {
459
465
  function isIgnoredFindingValue(finding, ignoreValues) {
460
466
  if (!Array.isArray(ignoreValues) || ignoreValues.length === 0) return false;
461
467
  const rule = normalizeIgnoreRule(finding.antipattern);
468
+ if (!rule) return false;
469
+ // File-scoped wildcards suppress rules with no extractable value, such as side-tab.
462
470
  const value = extractFindingIgnoreValue(finding);
463
- if (!rule || !value) return false;
464
471
  return ignoreValues.some((entry) => {
472
+ if (entry.rule !== rule) return false;
465
473
  const wildcardValue = entry.value === '*';
466
- if (entry.rule !== rule || (!wildcardValue && !ignoreValueMatches(rule, entry.value, value))) return false;
474
+ if (!wildcardValue && (!value || !ignoreValueMatches(rule, entry.value, value))) return false;
467
475
  if (!Array.isArray(entry.files) || entry.files.length === 0) return !wildcardValue;
468
476
  return findingMatchesScopedIgnoreFile(finding, entry.files);
469
477
  });
@@ -492,6 +500,7 @@ export function extractFindingIgnoreValue(finding) {
492
500
  'design-system-font',
493
501
  'design-system-color',
494
502
  'design-system-radius',
503
+ 'design-system-font-size',
495
504
  ]);
496
505
  if (!directValueRules.has(rule)) return '';
497
506
  return normalizeIgnoreValue(extractFindingIgnoreValueRaw(finding, rule));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impeccable",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "author": "Paul Bakaus",
5
5
  "description": "Design skills, commands, and anti-pattern detection for AI coding agents",
6
6
  "keywords": [
@@ -24,7 +24,7 @@
24
24
  "url": "git+https://github.com/pbakaus/impeccable.git"
25
25
  },
26
26
  "engines": {
27
- "node": ">=24"
27
+ "node": ">=22.12.0"
28
28
  },
29
29
  "type": "module",
30
30
  "bin": {
@@ -42,17 +42,13 @@
42
42
  "scripts": {
43
43
  "build:skills": "bun run scripts/build.js --skip-root-sync",
44
44
  "build:skills:release": "bun run scripts/build.js",
45
- "build:site": "npx astro build",
46
- "build": "bun run build:skills && bun run build:site && cp -R dist build/_data/dist",
47
- "build:release": "bun run build:skills:release && bun run build:site && cp -R dist build/_data/dist",
45
+ "build": "bun run build:skills && mkdir -p build/_data && rm -rf build/_data/dist && cp -R dist build/_data/dist",
46
+ "build:release": "bun run build:skills:release && mkdir -p build/_data && rm -rf build/_data/dist && cp -R dist build/_data/dist",
48
47
  "build:browser": "node scripts/build-browser-detector.js",
49
48
  "build:extension": "node scripts/build-extension.js",
50
49
  "clean": "rm -rf dist build",
51
50
  "rebuild": "bun run clean && bun run build",
52
51
  "rebuild:release": "bun run clean && bun run build:release",
53
- "dev": "bun run scripts/gen-dev-api.mjs && npx astro dev",
54
- "preview": "bun run build && npx astro preview",
55
- "deploy": "bun run build && wrangler pages deploy build/",
56
52
  "test": "node scripts/run-tests.mjs default",
57
53
  "test:core": "node scripts/run-tests.mjs core",
58
54
  "test:detector": "node scripts/run-tests.mjs detector",
@@ -73,9 +69,7 @@
73
69
  "postpack": "cp README.repo.md README.md && rm README.repo.md",
74
70
  "release:skill": "node scripts/release.mjs skill",
75
71
  "release:cli": "node scripts/release.mjs cli",
76
- "release:ext": "node scripts/release.mjs extension",
77
- "screenshot": "bun run scripts/screenshot-antipatterns.js",
78
- "og-image": "bun run scripts/generate-og-image.js"
72
+ "release:ext": "node scripts/release.mjs extension"
79
73
  },
80
74
  "dependencies": {
81
75
  "css-select": "^7.0.0",
@@ -89,22 +83,15 @@
89
83
  "puppeteer": "^25.1.0"
90
84
  },
91
85
  "devDependencies": {
92
- "@ai-sdk/anthropic": "^3.0.71",
93
- "@ai-sdk/google": "^3.0.75",
94
- "@ai-sdk/openai": "^3.0.53",
86
+ "@ai-sdk/anthropic": "^4.0.7",
87
+ "@ai-sdk/google": "^4.0.8",
88
+ "@ai-sdk/openai": "^4.0.7",
95
89
  "@anthropic-ai/claude-agent-sdk": "^0.3.165",
96
- "@anthropic-ai/sdk": "^0.105.0",
97
- "@google/genai": "^2.8.0",
98
- "@paper-design/shaders": "^0.0.76",
99
- "ai": "^6.0.168",
90
+ "@anthropic-ai/sdk": "^0.112.3",
91
+ "@babel/parser": "^7.29.3",
92
+ "ai": "^7.0.14",
100
93
  "archiver": "^8.0.0",
101
- "astro": "^7.0.0",
102
- "fontkit": "^2.0.4",
103
- "modern-screenshot": "^4.7.0",
104
- "motion": "^12.38.0",
105
- "opentype.js": "^2.0.0",
106
94
  "playwright": "^1.59.1",
107
- "wrangler": "^4.85.0",
108
95
  "zod": "^4.3.6"
109
96
  }
110
97
  }