impeccable 3.2.1 → 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.
- package/README.md +2 -2
- package/README.npm.md +2 -2
- package/README.repo.md +30 -9
- package/cli/bin/commands/ignores.mjs +27 -6
- package/cli/bin/commands/skills.mjs +17 -3
- package/cli/engine/browser/injected/index.mjs +69 -6
- package/cli/engine/cli/main.mjs +32 -9
- package/cli/engine/design-system.mjs +119 -12
- package/cli/engine/detect-antipatterns-browser.js +2752 -152
- package/cli/engine/engines/browser/detect-url.mjs +67 -4
- package/cli/engine/engines/regex/detect-text.mjs +240 -64
- package/cli/engine/engines/static-html/css-cascade.mjs +161 -5
- package/cli/engine/engines/static-html/detect-html.mjs +18 -5
- package/cli/engine/findings.mjs +1 -1
- package/cli/engine/registry/antipatterns.mjs +114 -36
- package/cli/engine/rules/checks.mjs +2611 -138
- package/cli/lib/download-providers.js +2 -0
- package/cli/lib/impeccable-config.mjs +11 -4
- package/package.json +6 -19
|
@@ -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
|
-
|
|
350
|
-
|
|
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
|
-
|
|
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.
|
|
@@ -494,6 +500,7 @@ export function extractFindingIgnoreValue(finding) {
|
|
|
494
500
|
'design-system-font',
|
|
495
501
|
'design-system-color',
|
|
496
502
|
'design-system-radius',
|
|
503
|
+
'design-system-font-size',
|
|
497
504
|
]);
|
|
498
505
|
if (!directValueRules.has(rule)) return '';
|
|
499
506
|
return normalizeIgnoreValue(extractFindingIgnoreValueRaw(finding, rule));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impeccable",
|
|
3
|
-
"version": "3.
|
|
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": [
|
|
@@ -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
|
|
46
|
-
"build": "bun run build:skills &&
|
|
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",
|
|
@@ -93,18 +87,11 @@
|
|
|
93
87
|
"@ai-sdk/google": "^4.0.8",
|
|
94
88
|
"@ai-sdk/openai": "^4.0.7",
|
|
95
89
|
"@anthropic-ai/claude-agent-sdk": "^0.3.165",
|
|
96
|
-
"@anthropic-ai/sdk": "^0.
|
|
97
|
-
"@
|
|
98
|
-
"@paper-design/shaders": "^0.0.77",
|
|
90
|
+
"@anthropic-ai/sdk": "^0.112.3",
|
|
91
|
+
"@babel/parser": "^7.29.3",
|
|
99
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
|
}
|