@a11yst/cli 1.0.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/LICENSE +373 -0
- package/NOTICE.md +11 -0
- package/README.md +60 -0
- package/TRADEMARKS.md +52 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +9 -0
- package/dist/bin.js.map +1 -0
- package/dist/ci-policy-options.d.ts +15 -0
- package/dist/ci-policy-options.d.ts.map +1 -0
- package/dist/ci-policy-options.js +54 -0
- package/dist/ci-policy-options.js.map +1 -0
- package/dist/cli-progress.d.ts +16 -0
- package/dist/cli-progress.d.ts.map +1 -0
- package/dist/cli-progress.js +35 -0
- package/dist/cli-progress.js.map +1 -0
- package/dist/command-program.d.ts +7 -0
- package/dist/command-program.d.ts.map +1 -0
- package/dist/command-program.js +950 -0
- package/dist/command-program.js.map +1 -0
- package/dist/commands/audit-flow-output.d.ts +4 -0
- package/dist/commands/audit-flow-output.d.ts.map +1 -0
- package/dist/commands/audit-flow-output.js +119 -0
- package/dist/commands/audit-flow-output.js.map +1 -0
- package/dist/commands/audit-policy-output.d.ts +9 -0
- package/dist/commands/audit-policy-output.d.ts.map +1 -0
- package/dist/commands/audit-policy-output.js +95 -0
- package/dist/commands/audit-policy-output.js.map +1 -0
- package/dist/commands/audit.d.ts +15 -0
- package/dist/commands/audit.d.ts.map +1 -0
- package/dist/commands/audit.js +178 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/commands/baseline-config.d.ts +14 -0
- package/dist/commands/baseline-config.d.ts.map +1 -0
- package/dist/commands/baseline-config.js +33 -0
- package/dist/commands/baseline-config.js.map +1 -0
- package/dist/commands/baseline.d.ts +86 -0
- package/dist/commands/baseline.d.ts.map +1 -0
- package/dist/commands/baseline.js +392 -0
- package/dist/commands/baseline.js.map +1 -0
- package/dist/commands/classify.d.ts +30 -0
- package/dist/commands/classify.d.ts.map +1 -0
- package/dist/commands/classify.js +105 -0
- package/dist/commands/classify.js.map +1 -0
- package/dist/commands/detect.d.ts +12 -0
- package/dist/commands/detect.d.ts.map +1 -0
- package/dist/commands/detect.js +213 -0
- package/dist/commands/detect.js.map +1 -0
- package/dist/commands/doctor.d.ts +16 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +404 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/findings.d.ts +45 -0
- package/dist/commands/findings.d.ts.map +1 -0
- package/dist/commands/findings.js +220 -0
- package/dist/commands/findings.js.map +1 -0
- package/dist/commands/flows.d.ts +30 -0
- package/dist/commands/flows.d.ts.map +1 -0
- package/dist/commands/flows.js +108 -0
- package/dist/commands/flows.js.map +1 -0
- package/dist/commands/init.d.ts +64 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +293 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/profiles.d.ts +5 -0
- package/dist/commands/profiles.d.ts.map +1 -0
- package/dist/commands/profiles.js +39 -0
- package/dist/commands/profiles.js.map +1 -0
- package/dist/commands/report.d.ts +72 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/report.js +284 -0
- package/dist/commands/report.js.map +1 -0
- package/dist/commands/results-loader.d.ts +15 -0
- package/dist/commands/results-loader.d.ts.map +1 -0
- package/dist/commands/results-loader.js +100 -0
- package/dist/commands/results-loader.js.map +1 -0
- package/dist/commands/routes.d.ts +35 -0
- package/dist/commands/routes.d.ts.map +1 -0
- package/dist/commands/routes.js +201 -0
- package/dist/commands/routes.js.map +1 -0
- package/dist/commands/unclassify.d.ts +22 -0
- package/dist/commands/unclassify.d.ts.map +1 -0
- package/dist/commands/unclassify.js +79 -0
- package/dist/commands/unclassify.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/output.d.ts +9 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +29 -0
- package/dist/output.js.map +1 -0
- package/dist/presentation/ansi.d.ts +12 -0
- package/dist/presentation/ansi.d.ts.map +1 -0
- package/dist/presentation/ansi.js +51 -0
- package/dist/presentation/ansi.js.map +1 -0
- package/dist/presentation/audit-presentation.d.ts +20 -0
- package/dist/presentation/audit-presentation.d.ts.map +1 -0
- package/dist/presentation/audit-presentation.js +409 -0
- package/dist/presentation/audit-presentation.js.map +1 -0
- package/dist/presentation/boundary.d.ts +5 -0
- package/dist/presentation/boundary.d.ts.map +1 -0
- package/dist/presentation/boundary.js +4 -0
- package/dist/presentation/boundary.js.map +1 -0
- package/dist/presentation/brand-header.d.ts +6 -0
- package/dist/presentation/brand-header.d.ts.map +1 -0
- package/dist/presentation/brand-header.js +18 -0
- package/dist/presentation/brand-header.js.map +1 -0
- package/dist/presentation/capabilities.d.ts +4 -0
- package/dist/presentation/capabilities.d.ts.map +1 -0
- package/dist/presentation/capabilities.js +25 -0
- package/dist/presentation/capabilities.js.map +1 -0
- package/dist/presentation/color.d.ts +13 -0
- package/dist/presentation/color.d.ts.map +1 -0
- package/dist/presentation/color.js +27 -0
- package/dist/presentation/color.js.map +1 -0
- package/dist/presentation/disclaimers.d.ts +3 -0
- package/dist/presentation/disclaimers.d.ts.map +1 -0
- package/dist/presentation/disclaimers.js +3 -0
- package/dist/presentation/disclaimers.js.map +1 -0
- package/dist/presentation/finding-groups.d.ts +14 -0
- package/dist/presentation/finding-groups.d.ts.map +1 -0
- package/dist/presentation/finding-groups.js +77 -0
- package/dist/presentation/finding-groups.js.map +1 -0
- package/dist/presentation/finding-source-report.d.ts +21 -0
- package/dist/presentation/finding-source-report.d.ts.map +1 -0
- package/dist/presentation/finding-source-report.js +134 -0
- package/dist/presentation/finding-source-report.js.map +1 -0
- package/dist/presentation/human-output.d.ts +4 -0
- package/dist/presentation/human-output.d.ts.map +1 -0
- package/dist/presentation/human-output.js +8 -0
- package/dist/presentation/human-output.js.map +1 -0
- package/dist/presentation/index.d.ts +15 -0
- package/dist/presentation/index.d.ts.map +1 -0
- package/dist/presentation/index.js +13 -0
- package/dist/presentation/index.js.map +1 -0
- package/dist/presentation/mode.d.ts +4 -0
- package/dist/presentation/mode.d.ts.map +1 -0
- package/dist/presentation/mode.js +8 -0
- package/dist/presentation/mode.js.map +1 -0
- package/dist/presentation/progress-mode.d.ts +20 -0
- package/dist/presentation/progress-mode.d.ts.map +1 -0
- package/dist/presentation/progress-mode.js +38 -0
- package/dist/presentation/progress-mode.js.map +1 -0
- package/dist/presentation/progress-reporter.d.ts +18 -0
- package/dist/presentation/progress-reporter.d.ts.map +1 -0
- package/dist/presentation/progress-reporter.js +236 -0
- package/dist/presentation/progress-reporter.js.map +1 -0
- package/dist/presentation/progress-signals.d.ts +2 -0
- package/dist/presentation/progress-signals.d.ts.map +1 -0
- package/dist/presentation/progress-signals.js +14 -0
- package/dist/presentation/progress-signals.js.map +1 -0
- package/dist/presentation/status.d.ts +11 -0
- package/dist/presentation/status.d.ts.map +1 -0
- package/dist/presentation/status.js +14 -0
- package/dist/presentation/status.js.map +1 -0
- package/dist/presentation/types.d.ts +23 -0
- package/dist/presentation/types.d.ts.map +1 -0
- package/dist/presentation/types.js +2 -0
- package/dist/presentation/types.js.map +1 -0
- package/dist/run-cli.d.ts +6 -0
- package/dist/run-cli.d.ts.map +1 -0
- package/dist/run-cli.js +15 -0
- package/dist/run-cli.js.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { styleText } from "./ansi.js";
|
|
2
|
+
import { resolveColorEnabled } from "./color.js";
|
|
3
|
+
import { resolveProgressAnimationEnabled, resolveProgressStaticEnabled, } from "./progress-mode.js";
|
|
4
|
+
const SPINNER_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
|
5
|
+
const SPINNER_INTERVAL_MS = 100;
|
|
6
|
+
const SPINNER_DELAY_MS = 150;
|
|
7
|
+
// Clear current stderr line before redraw
|
|
8
|
+
const CLEAR_LINE = "\r\u001b[2K";
|
|
9
|
+
let activeReporter;
|
|
10
|
+
export function stopActiveProgressReporter() {
|
|
11
|
+
activeReporter?.stop();
|
|
12
|
+
}
|
|
13
|
+
class TerminalProgressReporter {
|
|
14
|
+
#stream;
|
|
15
|
+
#animate;
|
|
16
|
+
#static;
|
|
17
|
+
#colorEnabled;
|
|
18
|
+
#setIntervalFn;
|
|
19
|
+
#clearIntervalFn;
|
|
20
|
+
#setTimeoutFn;
|
|
21
|
+
#clearTimeoutFn;
|
|
22
|
+
#interval;
|
|
23
|
+
#delayTimer;
|
|
24
|
+
#frameIndex = 0;
|
|
25
|
+
#label = "";
|
|
26
|
+
#active = false;
|
|
27
|
+
#paused = false;
|
|
28
|
+
#mode = "spinner";
|
|
29
|
+
#countCurrent = 0;
|
|
30
|
+
#countTotal = 0;
|
|
31
|
+
constructor(options) {
|
|
32
|
+
const input = {
|
|
33
|
+
mode: options.mode,
|
|
34
|
+
machineOutput: options.machineOutput,
|
|
35
|
+
capabilities: options.capabilities,
|
|
36
|
+
};
|
|
37
|
+
this.#stream = options.stream ?? process.stderr;
|
|
38
|
+
this.#animate = resolveProgressAnimationEnabled(input);
|
|
39
|
+
this.#static = resolveProgressStaticEnabled(input);
|
|
40
|
+
this.#colorEnabled = resolveColorEnabled(options.colorMode ?? "auto", options.capabilities);
|
|
41
|
+
this.#setIntervalFn = options.setIntervalFn ?? setInterval;
|
|
42
|
+
this.#clearIntervalFn = options.clearIntervalFn ?? clearInterval;
|
|
43
|
+
this.#setTimeoutFn = options.setTimeoutFn ?? setTimeout;
|
|
44
|
+
this.#clearTimeoutFn = options.clearTimeoutFn ?? clearTimeout;
|
|
45
|
+
}
|
|
46
|
+
#enabled() {
|
|
47
|
+
return this.#animate || this.#static;
|
|
48
|
+
}
|
|
49
|
+
#register() {
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias -- module-level active reporter for signal cleanup
|
|
51
|
+
activeReporter = this;
|
|
52
|
+
}
|
|
53
|
+
#unregister() {
|
|
54
|
+
if (activeReporter === this) {
|
|
55
|
+
activeReporter = undefined;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
start(label) {
|
|
59
|
+
this.#label = label;
|
|
60
|
+
if (!this.#enabled()) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
this.#mode = "spinner";
|
|
64
|
+
this.#clearDelay();
|
|
65
|
+
if (this.#animate) {
|
|
66
|
+
this.#delayTimer = this.#setTimeoutFn(() => {
|
|
67
|
+
this.#delayTimer = undefined;
|
|
68
|
+
this.#beginSpinner();
|
|
69
|
+
}, SPINNER_DELAY_MS);
|
|
70
|
+
this.#register();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.#writeStatic(`${label}…`);
|
|
74
|
+
}
|
|
75
|
+
update(label) {
|
|
76
|
+
this.#label = label;
|
|
77
|
+
if (!this.#active || this.#paused) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
this.#render();
|
|
81
|
+
}
|
|
82
|
+
succeed(label) {
|
|
83
|
+
this.#finish(`${this.#symbol("✓", "ok")} ${label}`);
|
|
84
|
+
}
|
|
85
|
+
warn(label) {
|
|
86
|
+
this.#finish(`${this.#symbol("!", "warn")} ${label}`);
|
|
87
|
+
}
|
|
88
|
+
fail(label) {
|
|
89
|
+
this.#finish(`${this.#symbol("✗", "fail")} ${label}`);
|
|
90
|
+
}
|
|
91
|
+
progress(current, total, label) {
|
|
92
|
+
if (total <= 0) {
|
|
93
|
+
this.start(label);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this.#label = label;
|
|
97
|
+
this.#mode = "count";
|
|
98
|
+
this.#countCurrent = current;
|
|
99
|
+
this.#countTotal = total;
|
|
100
|
+
if (!this.#enabled()) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (!this.#active) {
|
|
104
|
+
this.#clearDelay();
|
|
105
|
+
if (this.#animate) {
|
|
106
|
+
this.#beginSpinner();
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
this.#writeStatic(this.#countLine());
|
|
110
|
+
}
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.#render();
|
|
114
|
+
}
|
|
115
|
+
stop() {
|
|
116
|
+
this.#clearDelay();
|
|
117
|
+
this.#clearSpinnerFrame();
|
|
118
|
+
this.#unregister();
|
|
119
|
+
}
|
|
120
|
+
pause() {
|
|
121
|
+
if (!this.#active) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
this.#paused = true;
|
|
125
|
+
this.#clearSpinnerFrame();
|
|
126
|
+
}
|
|
127
|
+
resume() {
|
|
128
|
+
if (!this.#paused) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
this.#paused = false;
|
|
132
|
+
if (this.#animate) {
|
|
133
|
+
this.#beginSpinner();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
#symbol(text, kind) {
|
|
137
|
+
if (!this.#colorEnabled) {
|
|
138
|
+
return text;
|
|
139
|
+
}
|
|
140
|
+
const fg = kind === "ok" ? "\x1b[32m" : kind === "warn" ? "\x1b[33m" : "\x1b[31m";
|
|
141
|
+
return styleText(text, { bold: true, fg }, true);
|
|
142
|
+
}
|
|
143
|
+
#countLine() {
|
|
144
|
+
return `${this.#countCurrent}/${this.#countTotal} · ${this.#label}`;
|
|
145
|
+
}
|
|
146
|
+
#renderLine() {
|
|
147
|
+
if (this.#mode === "count") {
|
|
148
|
+
const frame = SPINNER_FRAMES[this.#frameIndex % SPINNER_FRAMES.length];
|
|
149
|
+
return `${frame} ${this.#countLine()}…`;
|
|
150
|
+
}
|
|
151
|
+
const frame = SPINNER_FRAMES[this.#frameIndex % SPINNER_FRAMES.length];
|
|
152
|
+
return `${frame} ${this.#label}${this.#label.endsWith("…") ? "" : "…"}`;
|
|
153
|
+
}
|
|
154
|
+
#beginSpinner() {
|
|
155
|
+
this.#active = true;
|
|
156
|
+
this.#paused = false;
|
|
157
|
+
this.#register();
|
|
158
|
+
this.#render();
|
|
159
|
+
this.#interval = this.#setIntervalFn(() => {
|
|
160
|
+
this.#frameIndex += 1;
|
|
161
|
+
if (!this.#paused) {
|
|
162
|
+
this.#render();
|
|
163
|
+
}
|
|
164
|
+
}, SPINNER_INTERVAL_MS);
|
|
165
|
+
}
|
|
166
|
+
#render() {
|
|
167
|
+
if (!this.#animate || this.#paused) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this.#stream.write(`${CLEAR_LINE}${this.#renderLine()}`);
|
|
171
|
+
}
|
|
172
|
+
#writeStatic(line) {
|
|
173
|
+
this.#stream.write(`${line}\n`);
|
|
174
|
+
}
|
|
175
|
+
#finish(line) {
|
|
176
|
+
this.#clearDelay();
|
|
177
|
+
this.#clearSpinnerFrame();
|
|
178
|
+
if (!this.#enabled()) {
|
|
179
|
+
this.#unregister();
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (this.#animate) {
|
|
183
|
+
this.#stream.write(`${CLEAR_LINE}${line}\n`);
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.#stream.write(`${line}\n`);
|
|
187
|
+
}
|
|
188
|
+
this.#active = false;
|
|
189
|
+
this.#unregister();
|
|
190
|
+
}
|
|
191
|
+
#clearDelay() {
|
|
192
|
+
if (this.#delayTimer !== undefined) {
|
|
193
|
+
this.#clearTimeoutFn(this.#delayTimer);
|
|
194
|
+
this.#delayTimer = undefined;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
#clearSpinnerFrame() {
|
|
198
|
+
if (this.#interval !== undefined) {
|
|
199
|
+
this.#clearIntervalFn(this.#interval);
|
|
200
|
+
this.#interval = undefined;
|
|
201
|
+
}
|
|
202
|
+
if (this.#active && this.#animate) {
|
|
203
|
+
this.#stream.write(CLEAR_LINE);
|
|
204
|
+
}
|
|
205
|
+
this.#active = false;
|
|
206
|
+
this.#paused = false;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
export function createProgressReporter(options) {
|
|
210
|
+
if (options.mode === "never" ||
|
|
211
|
+
options.machineOutput ||
|
|
212
|
+
(!resolveProgressAnimationEnabled({
|
|
213
|
+
mode: options.mode,
|
|
214
|
+
machineOutput: options.machineOutput,
|
|
215
|
+
capabilities: options.capabilities,
|
|
216
|
+
}) &&
|
|
217
|
+
!resolveProgressStaticEnabled({
|
|
218
|
+
mode: options.mode,
|
|
219
|
+
machineOutput: options.machineOutput,
|
|
220
|
+
capabilities: options.capabilities,
|
|
221
|
+
}))) {
|
|
222
|
+
return {
|
|
223
|
+
start() { },
|
|
224
|
+
update() { },
|
|
225
|
+
succeed() { },
|
|
226
|
+
warn() { },
|
|
227
|
+
fail() { },
|
|
228
|
+
progress() { },
|
|
229
|
+
stop() { },
|
|
230
|
+
pause() { },
|
|
231
|
+
resume() { },
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
return new TerminalProgressReporter(options);
|
|
235
|
+
}
|
|
236
|
+
//# sourceMappingURL=progress-reporter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-reporter.js","sourceRoot":"","sources":["../../src/presentation/progress-reporter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,GAE7B,MAAM,oBAAoB,CAAC;AAG5B,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAU,CAAC;AACnF,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B,0CAA0C;AAC1C,MAAM,UAAU,GAAG,aAAa,CAAC;AAcjC,IAAI,cAAoD,CAAC;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YACV,MAAM,KAAI,CAAC;YACX,OAAO,KAAI,CAAC;YACZ,IAAI,KAAI,CAAC;YACT,IAAI,KAAI,CAAC;YACT,QAAQ,KAAI,CAAC;YACb,IAAI,KAAI,CAAC;YACT,KAAK,KAAI,CAAC;YACV,MAAM,KAAI,CAAC;SACZ,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-signals.d.ts","sourceRoot":"","sources":["../../src/presentation/progress-signals.ts"],"names":[],"mappings":"AAIA,wBAAgB,8BAA8B,IAAI,IAAI,CAUrD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { stopActiveProgressReporter } from "./progress-reporter.js";
|
|
2
|
+
let signalsRegistered = false;
|
|
3
|
+
export function registerProgressSignalHandlers() {
|
|
4
|
+
if (signalsRegistered) {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
signalsRegistered = true;
|
|
8
|
+
const cleanup = () => {
|
|
9
|
+
stopActiveProgressReporter();
|
|
10
|
+
};
|
|
11
|
+
process.once("SIGINT", cleanup);
|
|
12
|
+
process.once("SIGTERM", cleanup);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=progress-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-signals.js","sourceRoot":"","sources":["../../src/presentation/progress-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAE9B,MAAM,UAAU,8BAA8B;IAC5C,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO;IACT,CAAC;IACD,iBAAiB,GAAG,IAAI,CAAC;IACzB,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,0BAA0B,EAAE,CAAC;IAC/B,CAAC,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const HUMAN_STATUS_LABELS: {
|
|
2
|
+
readonly success: "Success";
|
|
3
|
+
readonly warning: "Warning";
|
|
4
|
+
readonly error: "Error";
|
|
5
|
+
readonly info: "Info";
|
|
6
|
+
readonly review: "Review";
|
|
7
|
+
};
|
|
8
|
+
export type HumanStatusKind = keyof typeof HUMAN_STATUS_LABELS;
|
|
9
|
+
export declare function formatHumanStatus(kind: HumanStatusKind, detail: string): string;
|
|
10
|
+
export declare function formatHumanHint(message: string): string;
|
|
11
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/presentation/status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const HUMAN_STATUS_LABELS = {
|
|
2
|
+
success: "Success",
|
|
3
|
+
warning: "Warning",
|
|
4
|
+
error: "Error",
|
|
5
|
+
info: "Info",
|
|
6
|
+
review: "Review",
|
|
7
|
+
};
|
|
8
|
+
export function formatHumanStatus(kind, detail) {
|
|
9
|
+
return `${HUMAN_STATUS_LABELS[kind]}: ${detail}`;
|
|
10
|
+
}
|
|
11
|
+
export function formatHumanHint(message) {
|
|
12
|
+
return `Hint: ${message}`;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/presentation/status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX,MAAM,UAAU,iBAAiB,CAAC,IAAqB,EAAE,MAAc;IACrE,OAAO,GAAG,mBAAmB,CAAC,IAAI,CAAC,KAAK,MAAM,EAAE,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,SAAS,OAAO,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type TerminalPresentationMode = "plain" | "interactive";
|
|
2
|
+
export type TerminalCapabilities = {
|
|
3
|
+
isTTY: boolean;
|
|
4
|
+
isStderrTTY: boolean;
|
|
5
|
+
isCI: boolean;
|
|
6
|
+
isDumbTerminal: boolean;
|
|
7
|
+
noColor: boolean;
|
|
8
|
+
supportsColor: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** Injectable inputs for terminal capability detection (tests and CLI boundary). */
|
|
11
|
+
export type TerminalCapabilitiesInput = {
|
|
12
|
+
isTTY?: boolean;
|
|
13
|
+
isStderrTTY?: boolean;
|
|
14
|
+
isCI?: boolean;
|
|
15
|
+
term?: string;
|
|
16
|
+
noColor?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type OutputKind = "human" | "machine" | "artifact";
|
|
19
|
+
export type BrandHeaderOptions = {
|
|
20
|
+
mode?: TerminalPresentationMode;
|
|
21
|
+
tagline?: boolean;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/presentation/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,aAAa,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,oFAAoF;AACpF,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/presentation/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAYzE"}
|
package/dist/run-cli.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createCliProgram } from "./command-program.js";
|
|
2
|
+
import { writeStderr } from "./output.js";
|
|
3
|
+
export async function runCli(options = {}) {
|
|
4
|
+
const argv = options.argv ?? process.argv;
|
|
5
|
+
const program = createCliProgram({ ...options, argv });
|
|
6
|
+
try {
|
|
7
|
+
await program.parseAsync(argv);
|
|
8
|
+
}
|
|
9
|
+
catch (error) {
|
|
10
|
+
writeStderr(error instanceof Error ? error.message : String(error));
|
|
11
|
+
return 1;
|
|
12
|
+
}
|
|
13
|
+
return typeof process.exitCode === "number" ? process.exitCode : 0;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=run-cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-cli.js","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO1C,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,UAAyB,EAAE;IACtD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAC1C,MAAM,OAAO,GAAG,gBAAgB,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAEvD,IAAI,CAAC;QACH,MAAM,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACpE,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@a11yst/cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Command-line interface for a11yst",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"accessibility",
|
|
7
|
+
"a11y",
|
|
8
|
+
"testing",
|
|
9
|
+
"regression",
|
|
10
|
+
"playwright",
|
|
11
|
+
"axe",
|
|
12
|
+
"cli"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"bin": {
|
|
16
|
+
"a11yst": "./dist/bin.js"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"NOTICE.md",
|
|
31
|
+
"TRADEMARKS.md"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=22.12.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"commander": "^12.1.0",
|
|
38
|
+
"@a11yst/adapters": "1.0.0",
|
|
39
|
+
"@a11yst/baseline": "1.0.0",
|
|
40
|
+
"@a11yst/core": "1.0.0",
|
|
41
|
+
"@a11yst/flows": "1.0.0",
|
|
42
|
+
"@a11yst/reporters": "1.0.0",
|
|
43
|
+
"@a11yst/types": "1.0.0",
|
|
44
|
+
"@a11yst/policy": "1.0.0",
|
|
45
|
+
"@a11yst/config": "1.0.0",
|
|
46
|
+
"@a11yst/profiles": "1.0.0",
|
|
47
|
+
"@a11yst/detect": "1.0.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"typescript": "^5.7.2"
|
|
51
|
+
},
|
|
52
|
+
"license": "MPL-2.0",
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/angelabenavente/a11yst.git"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://github.com/angelabenavente/a11yst#readme",
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/angelabenavente/a11yst/issues"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsc -p tsconfig.json",
|
|
66
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
67
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
68
|
+
}
|
|
69
|
+
}
|