impeccable 2.0.1 → 2.0.6
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/LICENSE +77 -191
- package/README.md +11 -2
- package/bin/cli.js +63 -0
- package/bin/commands/skills.mjs +514 -0
- package/package.json +20 -29
- package/{source/skills/critique/scripts → src}/detect-antipatterns-browser.js +30 -2
- package/{source/skills/critique/scripts → src}/detect-antipatterns.mjs +463 -12
- package/README.bak.md +0 -237
- package/README.npm.md +0 -67
- package/bin/impeccable +0 -49
package/LICENSE
CHANGED
|
@@ -1,191 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
-
where such license applies only to those patent claims licensable
|
|
80
|
-
by such Contributor that are necessarily infringed by their
|
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
-
institute patent litigation against any entity (including a
|
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
-
or contributory patent infringement, then any patent licenses
|
|
87
|
-
granted to You under this License for that Work shall terminate
|
|
88
|
-
as of the date such litigation is filed.
|
|
89
|
-
|
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
-
modifications, and in Source or Object form, provided that You
|
|
93
|
-
meet the following conditions:
|
|
94
|
-
|
|
95
|
-
(a) You must give any other recipients of the Work or
|
|
96
|
-
Derivative Works a copy of this License; and
|
|
97
|
-
|
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
|
99
|
-
stating that You changed the files; and
|
|
100
|
-
|
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
|
103
|
-
attribution notices from the Source form of the Work,
|
|
104
|
-
excluding those notices that do not pertain to any part of
|
|
105
|
-
the Derivative Works; and
|
|
106
|
-
|
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
|
109
|
-
include a readable copy of the attribution notices contained
|
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
|
112
|
-
of the following places: within a NOTICE text file distributed
|
|
113
|
-
as part of the Derivative Works; within the Source form or
|
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
|
115
|
-
within a display generated by the Derivative Works, if and
|
|
116
|
-
wherever such third-party notices normally appear. The contents
|
|
117
|
-
of the NOTICE file are for informational purposes only and
|
|
118
|
-
do not modify the License. You may add Your own attribution
|
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
-
that such additional attribution notices cannot be construed
|
|
122
|
-
as modifying the License.
|
|
123
|
-
|
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
|
125
|
-
may provide additional or different license terms and conditions
|
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
-
the conditions stated in this License.
|
|
130
|
-
|
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
-
this License, without any additional terms or conditions.
|
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
-
the terms of any separate license agreement you may have executed
|
|
137
|
-
with Licensor regarding such Contributions.
|
|
138
|
-
|
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
-
except as required for reasonable and customary use in describing the
|
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
-
|
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
|
153
|
-
|
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
|
159
|
-
incidental, or consequential damages of any character arising as a
|
|
160
|
-
result of this License or out of the use or inability to use the
|
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
-
other commercial damages or losses), even if such Contributor
|
|
164
|
-
has been advised of the possibility of such damages.
|
|
165
|
-
|
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
-
or other liability obligations and/or rights consistent with this
|
|
170
|
-
License. However, in accepting such obligations, You may act only
|
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
-
of your accepting any such warranty or additional liability.
|
|
176
|
-
|
|
177
|
-
END OF TERMS AND CONDITIONS
|
|
178
|
-
|
|
179
|
-
Copyright 2025 Paul Bakaus
|
|
180
|
-
|
|
181
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
182
|
-
you may not use this file except in compliance with the License.
|
|
183
|
-
You may obtain a copy of the License at
|
|
184
|
-
|
|
185
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
186
|
-
|
|
187
|
-
Unless required by applicable law or agreed to in writing, software
|
|
188
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
189
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
190
|
-
See the License for the specific language governing permissions and
|
|
191
|
-
limitations under the License.
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Parameters
|
|
4
|
+
|
|
5
|
+
Licensor: Paul Bakaus
|
|
6
|
+
Licensed Work: Impeccable CLI 2.0.6
|
|
7
|
+
The Licensed Work is (c) 2026 Paul Bakaus.
|
|
8
|
+
Additional Use Grant: You may make use of the Licensed Work, provided that
|
|
9
|
+
you do not use the Licensed Work for a Commercial
|
|
10
|
+
Purpose.
|
|
11
|
+
|
|
12
|
+
A "Commercial Purpose" means use of the Licensed Work
|
|
13
|
+
that meets ALL of the following conditions:
|
|
14
|
+
(a) the use is within or on behalf of an organization
|
|
15
|
+
with more than five (5) individuals (employees,
|
|
16
|
+
contractors, or agents) who access, interact with,
|
|
17
|
+
or benefit from the Licensed Work; AND
|
|
18
|
+
(b) that organization has annual recurring revenue
|
|
19
|
+
exceeding one million US dollars ($1,000,000 USD).
|
|
20
|
+
|
|
21
|
+
For the avoidance of doubt, the following are NOT
|
|
22
|
+
Commercial Purposes regardless of organization size
|
|
23
|
+
or revenue:
|
|
24
|
+
- Personal, educational, or evaluation use
|
|
25
|
+
- Use in open source projects licensed under an
|
|
26
|
+
OSI-approved license
|
|
27
|
+
- Non-commercial research
|
|
28
|
+
|
|
29
|
+
Change Date: 2030-04-03
|
|
30
|
+
Change License: Apache License, Version 2.0
|
|
31
|
+
|
|
32
|
+
For information about alternative licensing arrangements for the Licensed
|
|
33
|
+
Work, please contact paul.bakaus@gmail.com.
|
|
34
|
+
|
|
35
|
+
-----------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
Terms
|
|
38
|
+
|
|
39
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
40
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
41
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
42
|
+
production use.
|
|
43
|
+
|
|
44
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
45
|
+
available distribution of a specific version of the Licensed Work under this
|
|
46
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
47
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
48
|
+
above terminate.
|
|
49
|
+
|
|
50
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
51
|
+
currently in effect as described in this License, you must purchase a
|
|
52
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
53
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
54
|
+
|
|
55
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
56
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
57
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
58
|
+
for each version of the Licensed Work released by Licensor.
|
|
59
|
+
|
|
60
|
+
You must conspicuously display this License on each original or modified copy
|
|
61
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
62
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
63
|
+
License apply to your use of that work.
|
|
64
|
+
|
|
65
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
66
|
+
terminate your rights under this License for the current and all other
|
|
67
|
+
versions of the Licensed Work.
|
|
68
|
+
|
|
69
|
+
This License does not grant you any right in any trademark or logo of
|
|
70
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
71
|
+
Licensor as expressly required by this License).
|
|
72
|
+
|
|
73
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
74
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
75
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
76
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
77
|
+
TITLE.
|
package/README.md
CHANGED
|
@@ -5,7 +5,16 @@ Detect UI anti-patterns and design quality issues from the command line. Scans H
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
#
|
|
8
|
+
# Install skills into your AI harness (Claude, Cursor, Gemini, etc.)
|
|
9
|
+
npx impeccable skills install
|
|
10
|
+
|
|
11
|
+
# Update skills to the latest version
|
|
12
|
+
npx impeccable skills update
|
|
13
|
+
|
|
14
|
+
# List all available commands
|
|
15
|
+
npx impeccable skills help
|
|
16
|
+
|
|
17
|
+
# Scan files or directories for anti-patterns
|
|
9
18
|
npx impeccable detect src/
|
|
10
19
|
|
|
11
20
|
# Scan a live URL (requires Puppeteer)
|
|
@@ -64,4 +73,4 @@ This CLI is part of [Impeccable](https://impeccable.style), a cross-provider des
|
|
|
64
73
|
|
|
65
74
|
## License
|
|
66
75
|
|
|
67
|
-
|
|
76
|
+
[BSL 1.1](https://github.com/pbakaus/impeccable-detect/blob/main/LICENSE) -- free for individuals, open source projects, and small teams. Converts to Apache 2.0 on 2030-04-03.
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Impeccable CLI
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* npx impeccable detect [file-or-dir-or-url...]
|
|
8
|
+
* npx impeccable live [--port=PORT]
|
|
9
|
+
* npx impeccable live stop
|
|
10
|
+
* npx impeccable skills help|install|update
|
|
11
|
+
* npx impeccable --help
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { readFileSync } from 'node:fs';
|
|
15
|
+
import { join, dirname } from 'node:path';
|
|
16
|
+
import { fileURLToPath } from 'node:url';
|
|
17
|
+
|
|
18
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const args = process.argv.slice(2);
|
|
20
|
+
const command = args[0];
|
|
21
|
+
|
|
22
|
+
if (!command || command === '--help' || command === '-h') {
|
|
23
|
+
console.log(`Usage: impeccable <command> [options]
|
|
24
|
+
|
|
25
|
+
Commands:
|
|
26
|
+
detect [file-or-dir-or-url...] Scan for UI anti-patterns and design quality issues
|
|
27
|
+
live [--port=PORT] Start browser detection overlay server
|
|
28
|
+
live stop Stop a running live server
|
|
29
|
+
skills help List all available skills and commands
|
|
30
|
+
skills install Install impeccable skills into your project
|
|
31
|
+
skills update Update skills to the latest version
|
|
32
|
+
|
|
33
|
+
Options:
|
|
34
|
+
--help Show this help message
|
|
35
|
+
--version Show version number
|
|
36
|
+
|
|
37
|
+
Run 'impeccable <command> --help' for command-specific options.`);
|
|
38
|
+
process.exit(0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (command === '--version' || command === '-v') {
|
|
42
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
|
|
43
|
+
console.log(pkg.version);
|
|
44
|
+
process.exit(0);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (command === 'detect') {
|
|
48
|
+
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
49
|
+
const { detectCli } = await import('../src/detect-antipatterns.mjs');
|
|
50
|
+
await detectCli();
|
|
51
|
+
} else if (command === 'live') {
|
|
52
|
+
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
53
|
+
const { liveCli } = await import('../src/detect-antipatterns.mjs');
|
|
54
|
+
await liveCli();
|
|
55
|
+
} else if (command === 'skills') {
|
|
56
|
+
const { run } = await import('./commands/skills.mjs');
|
|
57
|
+
await run(args.slice(1));
|
|
58
|
+
} else {
|
|
59
|
+
// Default: treat as detect arguments (allow `npx impeccable src/` shorthand)
|
|
60
|
+
process.argv = [process.argv[0], process.argv[1], ...args];
|
|
61
|
+
const { detectCli } = await import('../src/detect-antipatterns.mjs');
|
|
62
|
+
await detectCli();
|
|
63
|
+
}
|