impeccable 2.2.0 → 2.3.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/README.repo.md +2 -4
- package/cli/engine/cli/main.mjs +13 -7
- package/package.json +2 -2
package/README.repo.md
CHANGED
|
@@ -157,16 +157,14 @@ cp -r dist/gemini/.gemini your-project/
|
|
|
157
157
|
```bash
|
|
158
158
|
# Project-local
|
|
159
159
|
cp -r dist/agents/.agents your-project/
|
|
160
|
-
mkdir -p your-project/.codex
|
|
161
|
-
cp -r dist/codex/.codex/agents your-project/.codex/
|
|
162
160
|
|
|
163
161
|
# Or user-wide
|
|
164
162
|
mkdir -p ~/.agents/skills
|
|
165
163
|
cp -r dist/agents/.agents/skills/* ~/.agents/skills/
|
|
166
|
-
mkdir -p ~/.codex
|
|
167
|
-
cp -r dist/codex/.codex/agents ~/.codex/
|
|
168
164
|
```
|
|
169
165
|
|
|
166
|
+
> The asset-producer subagent ships nested inside the skill's own `agents/` folder, which Codex auto-discovers. No separate `.codex/agents/` copy is needed.
|
|
167
|
+
|
|
170
168
|
**GitHub Copilot:**
|
|
171
169
|
```bash
|
|
172
170
|
cp -r dist/github/.github your-project/
|
package/cli/engine/cli/main.mjs
CHANGED
|
@@ -79,7 +79,6 @@ function printUsage() {
|
|
|
79
79
|
Scan files or URLs for UI anti-patterns and design quality issues.
|
|
80
80
|
|
|
81
81
|
Options:
|
|
82
|
-
--fast Regex-only mode (skip static HTML/CSS analysis, faster but misses linked stylesheets)
|
|
83
82
|
--json Output results as JSON
|
|
84
83
|
--gpt Also report GPT-specific provider tells (off by default)
|
|
85
84
|
--gemini Also report Gemini-specific provider tells (off by default)
|
|
@@ -89,13 +88,12 @@ Detection modes:
|
|
|
89
88
|
HTML files Static HTML/CSS analysis (default, catches linked CSS)
|
|
90
89
|
Non-HTML files Regex pattern matching (CSS, JSX, TSX, etc.)
|
|
91
90
|
URLs Puppeteer full browser rendering (auto-detected)
|
|
92
|
-
--fast Forces regex for all files
|
|
93
91
|
|
|
94
92
|
Examples:
|
|
95
93
|
impeccable detect src/
|
|
96
94
|
impeccable detect index.html
|
|
97
95
|
impeccable detect https://example.com
|
|
98
|
-
impeccable detect --
|
|
96
|
+
impeccable detect --json .`);
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
async function detectCli() {
|
|
@@ -107,7 +105,15 @@ async function detectCli() {
|
|
|
107
105
|
if (args[0] === 'detect') args = args.slice(1);
|
|
108
106
|
const jsonMode = args.includes('--json');
|
|
109
107
|
const helpMode = args.includes('--help');
|
|
110
|
-
|
|
108
|
+
// --fast (regex-only) is deprecated: since the jsdom removal, the static
|
|
109
|
+
// HTML/CSS analysis is fast and covers every rule, so the regex-only path
|
|
110
|
+
// only loses coverage for no real speed win. Accept the flag for back-compat
|
|
111
|
+
// but ignore it and run the full scan.
|
|
112
|
+
if (args.includes('--fast')) {
|
|
113
|
+
process.stderr.write(
|
|
114
|
+
'Note: --fast is deprecated and ignored. The full scan is fast now and runs every rule.\n',
|
|
115
|
+
);
|
|
116
|
+
}
|
|
111
117
|
const providers = [];
|
|
112
118
|
if (args.includes('--gpt')) providers.push('gpt');
|
|
113
119
|
if (args.includes('--gemini')) providers.push('gemini');
|
|
@@ -177,7 +183,7 @@ async function detectCli() {
|
|
|
177
183
|
process.stderr.write(
|
|
178
184
|
`\nFound ${files.length} files (${htmlCount} HTML) in ${target}.\n` +
|
|
179
185
|
`Scanning may take a while${htmlCount > 10 ? ' (static HTML/CSS processes each HTML file individually)' : ''}.\n` +
|
|
180
|
-
`
|
|
186
|
+
`Target a specific subdirectory to narrow scope.\n`
|
|
181
187
|
);
|
|
182
188
|
const ok = await confirm('Continue?');
|
|
183
189
|
if (!ok) { process.stderr.write('Aborted.\n'); process.exit(0); }
|
|
@@ -197,7 +203,7 @@ async function detectCli() {
|
|
|
197
203
|
for (const file of files) {
|
|
198
204
|
const ext = path.extname(file).toLowerCase();
|
|
199
205
|
let fileFindings;
|
|
200
|
-
if (
|
|
206
|
+
if (HTML_EXTENSIONS.has(ext)) {
|
|
201
207
|
fileFindings = await detectHtml(file, scanOptions);
|
|
202
208
|
} else {
|
|
203
209
|
fileFindings = detectText(fs.readFileSync(file, 'utf-8'), file, scanOptions);
|
|
@@ -214,7 +220,7 @@ async function detectCli() {
|
|
|
214
220
|
}
|
|
215
221
|
} else if (stat.isFile()) {
|
|
216
222
|
const ext = path.extname(resolved).toLowerCase();
|
|
217
|
-
if (
|
|
223
|
+
if (HTML_EXTENSIONS.has(ext)) {
|
|
218
224
|
allFindings.push(...await detectHtml(resolved, scanOptions));
|
|
219
225
|
} else {
|
|
220
226
|
allFindings.push(...detectText(fs.readFileSync(resolved, 'utf-8'), resolved, scanOptions));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impeccable",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"author": "Paul Bakaus",
|
|
5
5
|
"description": "Design skills, commands, and anti-pattern detection for AI coding agents",
|
|
6
6
|
"keywords": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dev": "npx astro dev",
|
|
51
51
|
"preview": "bun run build && npx astro preview",
|
|
52
52
|
"deploy": "bun run build && wrangler pages deploy build/",
|
|
53
|
-
"test": "bun test tests/build.test.js tests/detect-antipatterns.test.js tests/windows-path-fix.test.js tests/lib/detector-bundle.test.js tests/lib/provider-blocks.test.js tests/lib/transformers/provider-blocks.test.js tests/lib/utils.test.js tests/lib/transformers/factory.test.js tests/lib/transformers/providers.test.js tests/skills-cli.test.js && node --test tests/critique-storage.test.mjs && node --test tests/detect-antipatterns-fixtures.test.mjs && node --test tests/detect-antipatterns-browser.test.mjs && node --test tests/cleanup-deprecated.test.mjs && node --test tests/impeccable-paths.test.mjs && node --test tests/live-wrap.test.mjs && node --test tests/live-insert.test.mjs && node --test tests/live-insert-ui.test.mjs && node --test tests/live-event-validation.test.mjs && node --test tests/live-reference.test.mjs && node --test tests/live-e2e-agent-output.test.mjs && node --test tests/live-e2e-llm-agent.test.mjs && node --test tests/live-e2e-cli-options.test.mjs && node --test tests/live-accept.test.mjs && node --test tests/live-inject.test.mjs && node --test tests/live-poll.test.mjs && node --test tests/live-poll-stream.test.mjs && node --test tests/live-server.test.mjs && node --test tests/live-browser-regression.test.mjs && node --test tests/live-session-store.test.mjs && node --test tests/live-browser-session.test.mjs && node --test tests/live-browser-source.test.mjs && node --test tests/live-completion.test.mjs && node --test tests/live-recovery-commands.test.mjs && node --test tests/framework-fixtures.test.mjs",
|
|
53
|
+
"test": "bun test tests/build.test.js tests/detect-antipatterns.test.js tests/windows-path-fix.test.js tests/lib/detector-bundle.test.js tests/lib/provider-blocks.test.js tests/lib/transformers/provider-blocks.test.js tests/lib/utils.test.js tests/lib/transformers/factory.test.js tests/lib/transformers/providers.test.js tests/skills-cli.test.js && node --test tests/critique-storage.test.mjs && node --test tests/detect-antipatterns-fixtures.test.mjs && node --test tests/detect-antipatterns-browser.test.mjs && node --test tests/cleanup-deprecated.test.mjs && node --test tests/impeccable-paths.test.mjs && node --test tests/live-wrap.test.mjs && node --test tests/live-wrap-buffer-aware.test.mjs && node --test tests/live-insert.test.mjs && node --test tests/live-insert-ui.test.mjs && node --test tests/live-event-validation.test.mjs && node --test tests/live-reference.test.mjs && node --test tests/live-e2e-agent-output.test.mjs && node --test tests/live-e2e-llm-agent.test.mjs && node --test tests/live-e2e-cli-options.test.mjs && node --test tests/live-accept.test.mjs && node --test tests/live-accept-scrub.test.mjs && node --test tests/live-commit-manual-edits.test.mjs && node --test tests/live-discard-manual-edits.test.mjs && node --test tests/live-manual-edits-buffer.test.mjs && node --test tests/live-inject.test.mjs && node --test tests/live-poll.test.mjs && node --test tests/live-poll-stream.test.mjs && node --test tests/live-server.test.mjs && node --test tests/live-copy-edit-agent.test.mjs && node --test tests/live-browser-regression.test.mjs && node --test tests/live-session-store.test.mjs && node --test tests/live-browser-session.test.mjs && node --test tests/live-browser-source.test.mjs && node --test tests/live-completion.test.mjs && node --test tests/live-recovery-commands.test.mjs && node --test tests/framework-fixtures.test.mjs",
|
|
54
54
|
"test:cli-e2e": "IMPECCABLE_CLI_E2E=1 bun test tests/skills-cli.test.js",
|
|
55
55
|
"test:live-e2e": "node --test --test-timeout=600000 tests/live-e2e.test.mjs",
|
|
56
56
|
"test:live-e2e-agent": "node --test tests/live-e2e/agent-insert.test.mjs",
|