@testver/testver 1.2.2 → 1.2.3
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 +308 -229
- package/dist/index.js +83591 -71636
- package/dist/py-agent/testver_appium.py +61 -1
- package/dist/py-agent/testver_robot.py +110 -0
- package/dist/wdio-attach-service/index.cjs +27 -5
- package/dist/wdio-bootstrap/bootstrap.cjs +37 -31
- package/dist/wdio-json-reporter/index.cjs +209 -57
- package/package.json +51 -42
- package/src/ui/static/assets/index-BBCLwDZq.js +2237 -0
- package/src/ui/static/assets/{index-C6AoJ_AR.js → index-CikEFyJw.js} +16 -16
- package/src/ui/static/assets/index-DGpu60KK.css +7 -0
- package/src/ui/static/index.html +2 -2
- package/src/ui/static/assets/index-BNXq08Lj.css +0 -7
- package/src/ui/static/assets/index-Cr7cD-P1.js +0 -2295
|
@@ -12,6 +12,23 @@
|
|
|
12
12
|
* generated overlay (`wdio.testver.conf.*`) injects THIS reporter inline so
|
|
13
13
|
* structured per-test results land on disk regardless of command form.
|
|
14
14
|
*
|
|
15
|
+
* Each row also carries what the plain Mocha shape can't:
|
|
16
|
+
* - `browser` / `cid` — one row per capability (a test that fails on
|
|
17
|
+
* Firefox but passes on Chrome is two rows, never one hidden result);
|
|
18
|
+
* - `state` — the row's own status (membership in passes/failures is
|
|
19
|
+
* ambiguous once the same title runs on several browsers);
|
|
20
|
+
* - `retryAttempts` — failed attempts before the final result (Mocha
|
|
21
|
+
* `retries`), so a fail-then-pass shows as a retried pass;
|
|
22
|
+
* - `steps` / `tags` — for Cucumber, where WDIO reports each STEP as a
|
|
23
|
+
* "test": the scenario becomes the row and its steps become its steps;
|
|
24
|
+
* - hook failures (`before all` / `after each` …) as failed rows, so a
|
|
25
|
+
* broken hook is visible instead of silently skipping tests.
|
|
26
|
+
*
|
|
27
|
+
* Parallel workers: every worker writes its OWN part file under
|
|
28
|
+
* `<outputFile>.parts/` (no shared read-modify-write → no lost results),
|
|
29
|
+
* then rebuilds the merged file from all parts. The parser prefers the
|
|
30
|
+
* parts, so a merge that raced another worker can't drop anything.
|
|
31
|
+
*
|
|
15
32
|
* Loaded INLINE (`[ReporterClass, options]`) by the overlay — never as a
|
|
16
33
|
* path STRING (WDIO would mangle a Windows path into a `wdio-<path>-reporter`
|
|
17
34
|
* package name and fail under the ESM loader, exactly like services).
|
|
@@ -58,6 +75,37 @@ function fileUrlToPath(f) {
|
|
|
58
75
|
return f;
|
|
59
76
|
}
|
|
60
77
|
|
|
78
|
+
/** Browser (or device) label for a worker's capabilities. */
|
|
79
|
+
function browserLabel(caps) {
|
|
80
|
+
if (!caps || typeof caps !== 'object') return undefined;
|
|
81
|
+
// multiremote: { instanceName: { capabilities: {...} } } — label by names
|
|
82
|
+
if (!caps.browserName && !caps.platformName && !caps['appium:deviceName']) {
|
|
83
|
+
const names = Object.keys(caps).filter((k) => caps[k] && typeof caps[k] === 'object' && caps[k].capabilities);
|
|
84
|
+
if (names.length) return names.join('+');
|
|
85
|
+
}
|
|
86
|
+
const device = caps['appium:deviceName'] || caps.deviceName;
|
|
87
|
+
if (device) return String(device);
|
|
88
|
+
const raw = String(caps.browserName || '').toLowerCase();
|
|
89
|
+
if (!raw) return undefined;
|
|
90
|
+
const name = raw === 'microsoftedge' || raw === 'msedge' ? 'edge' : raw;
|
|
91
|
+
const version = caps.browserVersion || caps.version;
|
|
92
|
+
return version && version !== 'latest' && version !== 'stable' ? `${name} ${version}` : name;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function errorOf(stat) {
|
|
96
|
+
const e = stat && (stat.error || (Array.isArray(stat.errors) && stat.errors[0]));
|
|
97
|
+
if (!e) return undefined;
|
|
98
|
+
return { message: e.message || String(e), stack: e.stack || '' };
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function durationOf(stat) {
|
|
102
|
+
if (!stat) return 0;
|
|
103
|
+
if (typeof stat._duration === 'number') return stat._duration;
|
|
104
|
+
if (typeof stat.duration === 'number') return stat.duration;
|
|
105
|
+
if (stat.start && stat.end) return new Date(stat.end).getTime() - new Date(stat.start).getTime();
|
|
106
|
+
return 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
61
109
|
class TestverJsonReporter extends WDIOReporter {
|
|
62
110
|
constructor(options) {
|
|
63
111
|
// `stdout: false` — the user's `spec` reporter owns the terminal; we
|
|
@@ -69,38 +117,141 @@ class TestverJsonReporter extends WDIOReporter {
|
|
|
69
117
|
process.env.TESTVER_WDIO_RESULTS ||
|
|
70
118
|
path.join(process.cwd(), '.testver-results.json');
|
|
71
119
|
this._collected = [];
|
|
72
|
-
this._suites = [];
|
|
120
|
+
this._suites = []; // stack of { title, file, type, tags, steps? }
|
|
121
|
+
this._retries = new Map(); // test key → failed attempts so far
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
_cid() {
|
|
125
|
+
return (this.runnerStat && this.runnerStat.cid) || String(process.pid);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
_browser() {
|
|
129
|
+
const rs = this.runnerStat;
|
|
130
|
+
if (!rs) return undefined;
|
|
131
|
+
return browserLabel(rs.capabilities) || browserLabel(rs.config && rs.config.capabilities);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
_file(stat) {
|
|
135
|
+
const fromStat = stat && (stat.file || stat.specFile);
|
|
136
|
+
if (fromStat) return fileUrlToPath(fromStat);
|
|
137
|
+
for (let i = this._suites.length - 1; i >= 0; i--) {
|
|
138
|
+
if (this._suites[i].file) return fileUrlToPath(this._suites[i].file);
|
|
139
|
+
}
|
|
140
|
+
const specs = this.runnerStat && Array.isArray(this.runnerStat.specs) ? this.runnerStat.specs : [];
|
|
141
|
+
return fileUrlToPath(specs[0]);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
_scenario() {
|
|
145
|
+
for (let i = this._suites.length - 1; i >= 0; i--) {
|
|
146
|
+
if (this._suites[i].type === 'scenario') return this._suites[i];
|
|
147
|
+
}
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
_key(stat) {
|
|
152
|
+
return `${this._cid()}|${(stat && (stat.fullTitle || stat.title)) || ''}`;
|
|
73
153
|
}
|
|
74
154
|
|
|
75
155
|
onSuiteStart(suite) {
|
|
76
|
-
|
|
156
|
+
this._suites.push({
|
|
157
|
+
title: (suite && suite.title) || '',
|
|
158
|
+
file: suite && suite.file,
|
|
159
|
+
type: suite && suite.type,
|
|
160
|
+
tags: suite && Array.isArray(suite.tags) ? suite.tags.map((t) => (t && t.name) || String(t)) : [],
|
|
161
|
+
steps: suite && suite.type === 'scenario' ? [] : undefined,
|
|
162
|
+
start: Date.now(),
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
onSuiteEnd(suite) {
|
|
167
|
+
const s = this._suites.pop();
|
|
168
|
+
if (!s || s.type !== 'scenario') return;
|
|
169
|
+
// Cucumber: the scenario is the test; its steps are the rows WDIO sent.
|
|
170
|
+
const steps = s.steps || [];
|
|
171
|
+
const failed = steps.find((st) => st.status === 'failed');
|
|
172
|
+
const allSkipped = steps.length > 0 && steps.every((st) => st.status === 'skipped');
|
|
173
|
+
const feature = this._suites.length ? this._suites[this._suites.length - 1].title : '';
|
|
174
|
+
const title = (suite && suite.title) || s.title || '(unnamed scenario)';
|
|
175
|
+
this._collected.push({
|
|
176
|
+
title,
|
|
177
|
+
fullTitle: [feature, title].filter(Boolean).join(' ').trim(),
|
|
178
|
+
file: fileUrlToPath((suite && suite.file) || s.file) || this._file(null),
|
|
179
|
+
duration: durationOf(suite) || steps.reduce((sum, st) => sum + (st.duration || 0), 0),
|
|
180
|
+
state: failed ? 'failed' : allSkipped || steps.length === 0 ? 'skipped' : 'passed',
|
|
181
|
+
err: failed && failed.error ? failed.error : undefined,
|
|
182
|
+
steps,
|
|
183
|
+
tags: s.tags && s.tags.length ? s.tags : undefined,
|
|
184
|
+
start: s.start,
|
|
185
|
+
});
|
|
77
186
|
}
|
|
78
|
-
|
|
79
|
-
|
|
187
|
+
|
|
188
|
+
onTestRetry(test) {
|
|
189
|
+
const key = this._key(test);
|
|
190
|
+
const list = this._retries.get(key) || [];
|
|
191
|
+
const e = errorOf(test);
|
|
192
|
+
list.push({ status: 'failed', duration: durationOf(test), error: e ? e.message : undefined });
|
|
193
|
+
this._retries.set(key, list);
|
|
80
194
|
}
|
|
81
195
|
|
|
82
196
|
onTestPass(test) { this._add(test, 'passed'); }
|
|
83
197
|
onTestFail(test) { this._add(test, 'failed'); }
|
|
84
198
|
onTestSkip(test) { this._add(test, 'skipped'); }
|
|
85
199
|
|
|
200
|
+
onHookEnd(hook) {
|
|
201
|
+
const e = errorOf(hook);
|
|
202
|
+
if (!e) return;
|
|
203
|
+
const scenario = this._scenario();
|
|
204
|
+
if (scenario) {
|
|
205
|
+
// Cucumber Before/After hook failure fails the scenario.
|
|
206
|
+
scenario.steps.push({ title: hook.title || 'Hook', status: 'failed', duration: durationOf(hook), error: e });
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const title = hook.title || 'hook';
|
|
210
|
+
const suiteChain = this._suites.map((s) => s.title).filter(Boolean);
|
|
211
|
+
this._collected.push({
|
|
212
|
+
title,
|
|
213
|
+
fullTitle: [...suiteChain, title].join(' ').trim(),
|
|
214
|
+
file: this._file(hook),
|
|
215
|
+
duration: durationOf(hook),
|
|
216
|
+
state: 'failed',
|
|
217
|
+
err: e,
|
|
218
|
+
hook: true,
|
|
219
|
+
start: Date.now(),
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
86
223
|
_add(test, state) {
|
|
224
|
+
const scenario = this._scenario();
|
|
225
|
+
if (scenario) {
|
|
226
|
+
// Cucumber step — becomes a step of the scenario row.
|
|
227
|
+
scenario.steps.push({
|
|
228
|
+
title: (test && test.title) || '',
|
|
229
|
+
status: state,
|
|
230
|
+
duration: durationOf(test),
|
|
231
|
+
error: state === 'failed' ? errorOf(test) : undefined,
|
|
232
|
+
});
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
87
235
|
const title = (test && test.title) || '(unnamed test)';
|
|
236
|
+
// Mocha-style "Suite Inner title" from our own suite stack — WDIO's
|
|
237
|
+
// fullTitle joins with "." ("Suite A.passes"), which isn't the shape the
|
|
238
|
+
// parser derives the suite from.
|
|
88
239
|
const fullTitle =
|
|
240
|
+
[...this._suites.map((s) => s.title).filter(Boolean), title].join(' ').trim() ||
|
|
89
241
|
(test && test.fullTitle) ||
|
|
90
|
-
[...this._suites, title].join(' ').trim() ||
|
|
91
242
|
title;
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const errObj =
|
|
96
|
-
(test && (test.error || (Array.isArray(test.errors) && test.errors[0]))) || null;
|
|
243
|
+
const key = this._key(test);
|
|
244
|
+
const attempts = this._retries.get(key);
|
|
245
|
+
this._retries.delete(key);
|
|
97
246
|
this._collected.push({
|
|
98
247
|
title,
|
|
99
248
|
fullTitle,
|
|
100
|
-
file:
|
|
101
|
-
duration: (test
|
|
249
|
+
file: this._file(test),
|
|
250
|
+
duration: durationOf(test),
|
|
102
251
|
state,
|
|
103
|
-
err:
|
|
252
|
+
err: state === 'failed' ? errorOf(test) : undefined,
|
|
253
|
+
retryAttempts: attempts && attempts.length ? attempts : undefined,
|
|
254
|
+
start: test && test.start ? new Date(test.start).getTime() : Date.now(),
|
|
104
255
|
});
|
|
105
256
|
}
|
|
106
257
|
|
|
@@ -108,56 +259,57 @@ class TestverJsonReporter extends WDIOReporter {
|
|
|
108
259
|
try { this._flush(); } catch (_e) { /* best-effort — never break the run */ }
|
|
109
260
|
}
|
|
110
261
|
|
|
111
|
-
/**
|
|
112
|
-
* Merge this worker's results into the shared output file. WDIO runs each
|
|
113
|
-
* spec in its own worker, so multiple reporter instances may append —
|
|
114
|
-
* we read-merge-write (sequential mobile runs don't race; the runner
|
|
115
|
-
* clears the file before the run so the first writer starts fresh).
|
|
116
|
-
*/
|
|
117
262
|
_flush() {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
duration: t.duration,
|
|
137
|
-
err: t.state === 'failed' && t.err ? t.err : {},
|
|
138
|
-
};
|
|
139
|
-
tests.push(entry);
|
|
140
|
-
if (t.state === 'passed') passes.push(entry);
|
|
141
|
-
else if (t.state === 'failed') failures.push(entry);
|
|
142
|
-
else pending.push(entry);
|
|
143
|
-
}
|
|
263
|
+
const browser = this._browser();
|
|
264
|
+
const cid = this._cid();
|
|
265
|
+
const rows = this._collected.map((t) => ({
|
|
266
|
+
title: t.title,
|
|
267
|
+
fullTitle: t.fullTitle,
|
|
268
|
+
file: t.file,
|
|
269
|
+
duration: t.duration,
|
|
270
|
+
state: t.state,
|
|
271
|
+
currentRetry: t.retryAttempts ? t.retryAttempts.length : 0,
|
|
272
|
+
err: t.state === 'failed' && t.err ? t.err : {},
|
|
273
|
+
browser,
|
|
274
|
+
cid,
|
|
275
|
+
retryAttempts: t.retryAttempts,
|
|
276
|
+
steps: t.steps,
|
|
277
|
+
tags: t.tags,
|
|
278
|
+
hook: t.hook || undefined,
|
|
279
|
+
start: t.start,
|
|
280
|
+
}));
|
|
144
281
|
|
|
145
|
-
|
|
146
|
-
const
|
|
282
|
+
// 1. This worker's own part — never touched by any other worker.
|
|
283
|
+
const partsDir = `${this.outputFile}.parts`;
|
|
284
|
+
fs.mkdirSync(partsDir, { recursive: true });
|
|
285
|
+
const part = path.join(partsDir, `${String(cid).replace(/[^\w.-]/g, '_')}-${process.pid}-${Date.now()}.json`);
|
|
286
|
+
fs.writeFileSync(part, JSON.stringify({ cid, browser, tests: rows }), 'utf-8');
|
|
287
|
+
|
|
288
|
+
// 2. Rebuild the merged Mocha-shaped file from every part so far.
|
|
289
|
+
const all = [];
|
|
290
|
+
for (const name of fs.readdirSync(partsDir)) {
|
|
291
|
+
if (!name.endsWith('.json')) continue;
|
|
292
|
+
try {
|
|
293
|
+
const p = JSON.parse(fs.readFileSync(path.join(partsDir, name), 'utf-8'));
|
|
294
|
+
if (p && Array.isArray(p.tests)) all.push(...p.tests);
|
|
295
|
+
} catch { /* a part mid-write — the parser re-reads parts later */ }
|
|
296
|
+
}
|
|
147
297
|
const report = {
|
|
148
298
|
stats: {
|
|
149
|
-
tests:
|
|
150
|
-
passes:
|
|
151
|
-
failures:
|
|
152
|
-
pending:
|
|
153
|
-
duration:
|
|
299
|
+
tests: all.length,
|
|
300
|
+
passes: all.filter((t) => t.state === 'passed').length,
|
|
301
|
+
failures: all.filter((t) => t.state === 'failed').length,
|
|
302
|
+
pending: all.filter((t) => t.state === 'skipped').length,
|
|
303
|
+
duration: all.reduce((s, t) => s + (t.duration || 0), 0),
|
|
154
304
|
},
|
|
155
|
-
tests,
|
|
156
|
-
passes,
|
|
157
|
-
failures,
|
|
158
|
-
pending,
|
|
305
|
+
tests: all,
|
|
306
|
+
passes: all.filter((t) => t.state === 'passed'),
|
|
307
|
+
failures: all.filter((t) => t.state === 'failed'),
|
|
308
|
+
pending: all.filter((t) => t.state === 'skipped'),
|
|
159
309
|
};
|
|
160
|
-
|
|
310
|
+
const tmp = `${this.outputFile}.${process.pid}.tmp`;
|
|
311
|
+
fs.writeFileSync(tmp, JSON.stringify(report, null, 2), 'utf-8');
|
|
312
|
+
fs.renameSync(tmp, this.outputFile);
|
|
161
313
|
}
|
|
162
314
|
}
|
|
163
315
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testver/testver",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "AI-powered interactive CLI for test automation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -37,27 +37,29 @@
|
|
|
37
37
|
"dev:ui": "cd ui-app && npx vite --port 3701",
|
|
38
38
|
"start": "node bin/testver.js",
|
|
39
39
|
"typecheck": "tsc --noEmit",
|
|
40
|
-
"test": "vitest",
|
|
41
|
-
"
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest",
|
|
42
|
+
"test:smoke": "node scripts/run-verify.mjs",
|
|
43
|
+
"verify:tools": "esbuild scripts/verify-tool-consistency.ts --bundle --platform=node --outfile=dist/verify-tool-consistency.cjs --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/verify-tool-consistency.cjs",
|
|
42
44
|
"verify:modes": "esbuild scripts/ai-modes-smoke.ts --bundle --platform=node --format=esm --outfile=dist/ai-modes-smoke.mjs --banner:js=\"import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --log-level=error && node dist/ai-modes-smoke.mjs",
|
|
43
45
|
"verify:testgen": "esbuild scripts/testgen-smoke.ts --bundle --platform=node --format=esm --outfile=dist/testgen-smoke.mjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --external:mammoth --external:pdf-parse --external:debug --log-level=error && node dist/testgen-smoke.mjs",
|
|
44
46
|
"verify:boot": "npm run build && esbuild scripts/boot-smoke.ts --bundle --platform=node --outfile=dist/boot-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/boot-smoke.cjs",
|
|
45
47
|
"verify:scanner": "esbuild scripts/scanner-smoke.ts --bundle --platform=node --outfile=dist/scanner-smoke.cjs --log-level=error && node dist/scanner-smoke.cjs",
|
|
46
48
|
"verify:runner-input": "esbuild scripts/runner-input-smoke.ts --bundle --platform=node --outfile=dist/runner-input-smoke.cjs --log-level=error && node dist/runner-input-smoke.cjs",
|
|
47
|
-
"verify:uploads": "esbuild scripts/uploads-smoke.ts --bundle --platform=node --outfile=dist/uploads-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --external:pdf-parse --external:mammoth --
|
|
49
|
+
"verify:uploads": "esbuild scripts/uploads-smoke.ts --bundle --platform=node --outfile=dist/uploads-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --external:pdf-parse --external:mammoth --log-level=error && node dist/uploads-smoke.cjs",
|
|
48
50
|
"verify:failures": "esbuild scripts/failures-smoke.ts --bundle --platform=node --outfile=dist/failures-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --log-level=error && node dist/failures-smoke.cjs",
|
|
49
|
-
"verify:skills": "esbuild scripts/skills-audit.ts --bundle --platform=node --outfile=dist/skills-audit.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --log-level=error && node dist/skills-audit.cjs",
|
|
51
|
+
"verify:skills": "esbuild scripts/skills-audit.ts --bundle --platform=node --outfile=dist/skills-audit.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/skills-audit.cjs",
|
|
50
52
|
"verify:explore": "esbuild scripts/explore-smoke.ts --bundle --platform=node --format=esm --outfile=dist/explore-smoke.mjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:appium --external:mammoth --external:pdf-parse --external:debug --log-level=error && node dist/explore-smoke.mjs",
|
|
51
53
|
"verify:explore-live": "esbuild scripts/explore-live-smoke.ts --bundle --platform=node --format=esm --outfile=dist/explore-live-smoke.mjs --external:better-sqlite3 --external:playwright-core --external:playwright --external:appium --external:debug --external:mammoth --external:pdf-parse --log-level=error && node dist/explore-live-smoke.mjs",
|
|
52
54
|
"clean": "rimraf dist",
|
|
53
55
|
"verify:settings-audit": "esbuild scripts/settings-audit-smoke.ts --bundle --platform=node --outfile=dist/settings-audit-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/settings-audit-smoke.cjs",
|
|
54
56
|
"verify:api-contract": "esbuild scripts/api-contract-smoke.ts --bundle --platform=node --outfile=dist/api-contract-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/api-contract-smoke.cjs",
|
|
55
57
|
"verify:api-microservices": "esbuild scripts/api-microservices-smoke.ts --bundle --platform=node --outfile=dist/api-microservices-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:@grpc/grpc-js --external:@grpc/proto-loader --external:kafkajs --external:amqplib --external:undici --external:ws --log-level=error && node dist/api-microservices-smoke.cjs",
|
|
56
|
-
"verify:codemap": "esbuild scripts/codemap-smoke.ts --bundle --platform=node --outfile=dist/codemap-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --
|
|
58
|
+
"verify:codemap": "esbuild scripts/codemap-smoke.ts --bundle --platform=node --outfile=dist/codemap-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/codemap-smoke.cjs",
|
|
57
59
|
"verify:session": "esbuild scripts/session-smoke.ts --bundle --platform=node --outfile=dist/session-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/session-smoke.cjs",
|
|
58
|
-
"verify:api-files": "esbuild scripts/api-files-smoke.ts --bundle --platform=node --outfile=dist/api-files-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:pdf-parse --external:mammoth --external:
|
|
60
|
+
"verify:api-files": "esbuild scripts/api-files-smoke.ts --bundle --platform=node --outfile=dist/api-files-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:pdf-parse --external:mammoth --external:undici --log-level=error && node dist/api-files-smoke.cjs",
|
|
59
61
|
"verify:auto-heal": "esbuild scripts/auto-heal-smoke.ts --bundle --platform=node --outfile=dist/auto-heal-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/auto-heal-smoke.cjs",
|
|
60
|
-
"verify:run-targets": "esbuild scripts/run-targets-smoke.ts --bundle --platform=node --outfile=dist/run-targets-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --
|
|
62
|
+
"verify:run-targets": "esbuild scripts/run-targets-smoke.ts --bundle --platform=node --outfile=dist/run-targets-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/run-targets-smoke.cjs",
|
|
61
63
|
"verify:git": "esbuild scripts/git-smoke.ts --bundle --platform=node --outfile=dist/git-smoke.cjs --external:better-sqlite3 --log-level=error && node dist/git-smoke.cjs",
|
|
62
64
|
"verify:test-search": "esbuild scripts/test-search-smoke.ts --bundle --platform=node --outfile=dist/test-search-smoke.cjs --log-level=error && node dist/test-search-smoke.cjs",
|
|
63
65
|
"verify:test-titles": "esbuild scripts/test-titles-smoke.ts --bundle --platform=node --outfile=dist/test-titles-smoke.cjs --external:typescript --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/test-titles-smoke.cjs",
|
|
@@ -69,13 +71,14 @@
|
|
|
69
71
|
"verify:recorder-routes": "esbuild scripts/recorder-routes-smoke.ts --bundle --platform=node --format=esm --outfile=dist/recorder-routes-smoke.mjs \"--banner:js=import { createRequire as __tvCreateRequire } from 'module'; const require = __tvCreateRequire(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:ws --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/recorder-routes-smoke.mjs",
|
|
70
72
|
"verify:recorder-codegen": "esbuild scripts/recorder-codegen-smoke.ts --bundle --platform=node --format=esm --outfile=dist/recorder-codegen-smoke.mjs \"--banner:js=import { createRequire as __tvCreateRequire } from 'module'; const require = __tvCreateRequire(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:ws --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/recorder-codegen-smoke.mjs",
|
|
71
73
|
"verify:recorder-mobile": "esbuild scripts/recorder-mobile-smoke.ts --bundle --platform=node --format=esm --outfile=dist/recorder-mobile-smoke.mjs \"--banner:js=import { createRequire as __tvCreateRequire } from 'module'; const require = __tvCreateRequire(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:webdriverio --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:ws --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/recorder-mobile-smoke.mjs",
|
|
72
|
-
"verify:custom-steps": "esbuild scripts/custom-steps-smoke.ts --bundle --platform=node --format=esm --outfile=dist/custom-steps-smoke.mjs \"--banner:js=import { createRequire as __tvCreateRequire } from 'module'; const require = __tvCreateRequire(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:webdriverio --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:ws --external:openai --external:
|
|
74
|
+
"verify:custom-steps": "esbuild scripts/custom-steps-smoke.ts --bundle --platform=node --format=esm --outfile=dist/custom-steps-smoke.mjs \"--banner:js=import { createRequire as __tvCreateRequire } from 'module'; const require = __tvCreateRequire(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:webdriverio --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:ws --external:openai --external:exceljs --external:@modelcontextprotocol/sdk --log-level=error && node dist/custom-steps-smoke.mjs",
|
|
73
75
|
"verify:llm-models": "esbuild scripts/llm-models-smoke.ts --bundle --platform=node --format=esm --outfile=dist/llm-models-smoke.mjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/llm-models-smoke.mjs",
|
|
74
76
|
"verify:tool-activity": "esbuild scripts/tool-activity-smoke.ts --bundle --platform=node --outfile=dist/tool-activity-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/tool-activity-smoke.cjs",
|
|
75
77
|
"verify:trace-viewer": "esbuild scripts/trace-viewer-smoke.ts --bundle --platform=node --outfile=dist/trace-viewer-smoke.cjs --log-level=error && node dist/trace-viewer-smoke.cjs",
|
|
76
|
-
"verify:traces": "esbuild scripts/traces-smoke.ts --bundle --platform=node --outfile=dist/traces-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --external:
|
|
77
|
-
"verify:reporting": "esbuild scripts/reporting-smoke.ts --bundle --platform=node --format=esm --outfile=dist/reporting-smoke.mjs --banner:js=\"import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:openai --external:@modelcontextprotocol/sdk --external:
|
|
78
|
-
"verify:ci": "esbuild scripts/ci-smoke.ts --bundle --platform=node --outfile=dist/ci-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --external:
|
|
78
|
+
"verify:traces": "esbuild scripts/traces-smoke.ts --bundle --platform=node --outfile=dist/traces-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --external:undici --external:ws --log-level=error && node dist/traces-smoke.cjs",
|
|
79
|
+
"verify:reporting": "esbuild scripts/reporting-smoke.ts --bundle --platform=node --format=esm --outfile=dist/reporting-smoke.mjs --banner:js=\"import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:openai --external:@modelcontextprotocol/sdk --external:pdfkit --external:svg-to-pdfkit --external:docx --external:nodemailer --log-level=error && node dist/reporting-smoke.mjs",
|
|
80
|
+
"verify:ci": "esbuild scripts/ci-smoke.ts --bundle --platform=node --outfile=dist/ci-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:openai --external:@modelcontextprotocol/sdk --external:undici --external:ws --log-level=error && node dist/ci-smoke.cjs",
|
|
81
|
+
"verify:ai-resilience": "esbuild scripts/ai-resilience-smoke.ts --bundle --platform=node --format=esm --outfile=dist/ai-resilience-smoke.mjs --banner:js=\"import { createRequire as __cr } from 'module'; const require = __cr(import.meta.url);\" --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --external:mammoth --external:pdf-parse --external:debug --external:express --external:multer --external:openai --external:@modelcontextprotocol/sdk --log-level=error && node dist/ai-resilience-smoke.mjs",
|
|
79
82
|
"verify:artifacts": "esbuild scripts/artifacts-smoke.ts --bundle --platform=node --outfile=dist/artifacts-smoke.cjs --external:better-sqlite3 --external:@resvg/resvg-js --external:playwright --external:playwright-core --external:appium --log-level=error && node dist/artifacts-smoke.cjs"
|
|
80
83
|
},
|
|
81
84
|
"keywords": [
|
|
@@ -91,65 +94,70 @@
|
|
|
91
94
|
],
|
|
92
95
|
"license": "SEE LICENSE IN LICENSE",
|
|
93
96
|
"dependencies": {
|
|
94
|
-
"@anthropic-ai/sdk": "^0.
|
|
97
|
+
"@anthropic-ai/sdk": "^0.135.0",
|
|
95
98
|
"@google/generative-ai": "^0.24.1",
|
|
96
|
-
"@grpc/grpc-js": "^1.14.
|
|
99
|
+
"@grpc/grpc-js": "^1.14.6",
|
|
97
100
|
"@grpc/proto-loader": "^0.7.15",
|
|
98
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
101
|
+
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
99
102
|
"@resvg/resvg-js": "^2.6.2",
|
|
103
|
+
"@simple-git/argv-parser": "2.0.1",
|
|
100
104
|
"@types/archiver": "^7.0.0",
|
|
101
|
-
"ajv": "^8.
|
|
105
|
+
"ajv": "^8.20.0",
|
|
102
106
|
"ajv-formats": "^3.0.1",
|
|
103
107
|
"amqplib": "^0.10.9",
|
|
104
108
|
"archiver": "^7.0.1",
|
|
105
|
-
"better-sqlite3": "^12.
|
|
109
|
+
"better-sqlite3": "^12.11.1",
|
|
106
110
|
"chalk": "^5.6.2",
|
|
107
111
|
"chart.js": "^4.5.1",
|
|
108
112
|
"chokidar": "^5.0.0",
|
|
109
113
|
"cli-highlight": "^2.1.11",
|
|
110
114
|
"conf": "^15.1.0",
|
|
111
|
-
"csv-parse": "^
|
|
115
|
+
"csv-parse": "^7.0.3",
|
|
112
116
|
"debug": "^4.4.3",
|
|
113
|
-
"dotenv": "^17.
|
|
114
|
-
"express": "^4.
|
|
115
|
-
"
|
|
117
|
+
"dotenv": "^17.4.2",
|
|
118
|
+
"express": "^4.22.3",
|
|
119
|
+
"fflate": "0.8.3",
|
|
120
|
+
"form-data": "^4.0.6",
|
|
116
121
|
"glob": "^13.0.6",
|
|
117
122
|
"kafkajs": "^2.2.4",
|
|
118
|
-
"mammoth": "^1.
|
|
123
|
+
"mammoth": "^1.13.0",
|
|
119
124
|
"marked": "^15.0.12",
|
|
120
125
|
"marked-terminal": "^7.3.0",
|
|
121
|
-
"multer": "^2.
|
|
122
|
-
"nodemailer": "^
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
+
"multer": "^2.4.0",
|
|
127
|
+
"nodemailer": "^10.1.4",
|
|
128
|
+
"numfmt": "3.2.6",
|
|
129
|
+
"open": "^11.0.4",
|
|
130
|
+
"openai": "^6.49.0",
|
|
131
|
+
"ora": "^9.4.1",
|
|
126
132
|
"pdf-parse": "^2.4.5",
|
|
127
133
|
"pdfkit": "^0.18.0",
|
|
128
|
-
"playwright-core": "^1.
|
|
129
|
-
"
|
|
134
|
+
"playwright-core": "^1.64.1",
|
|
135
|
+
"read-excel-file": "9.3.12",
|
|
136
|
+
"simple-git": "^4.0.2",
|
|
130
137
|
"strip-ansi": "^7.2.0",
|
|
131
138
|
"svg-to-pdfkit": "^0.1.8",
|
|
132
|
-
"undici": "^6.
|
|
133
|
-
"
|
|
134
|
-
"
|
|
139
|
+
"undici": "^6.29.1",
|
|
140
|
+
"write-excel-file": "4.1.1",
|
|
141
|
+
"ws": "^8.22.0",
|
|
135
142
|
"yaml": "^2.9.1",
|
|
136
|
-
"zod": "^4.
|
|
143
|
+
"zod": "^4.6.7"
|
|
137
144
|
},
|
|
138
145
|
"devDependencies": {
|
|
139
146
|
"@types/amqplib": "^0.10.8",
|
|
140
147
|
"@types/better-sqlite3": "^7.6.13",
|
|
141
148
|
"@types/debug": "^4.1.13",
|
|
142
|
-
"@types/express": "^4.17.
|
|
143
|
-
"@types/multer": "^2.
|
|
144
|
-
"@types/node": "^25.
|
|
145
|
-
"@types/nodemailer": "^
|
|
149
|
+
"@types/express": "^4.17.25",
|
|
150
|
+
"@types/multer": "^2.3.0",
|
|
151
|
+
"@types/node": "^25.9.9",
|
|
152
|
+
"@types/nodemailer": "^8.0.2",
|
|
146
153
|
"@types/pdf-parse": "^1.1.5",
|
|
147
|
-
"@types/ws": "^8.18.
|
|
148
|
-
"docx": "^9.
|
|
154
|
+
"@types/ws": "^8.18.2",
|
|
155
|
+
"docx": "^9.12.0",
|
|
149
156
|
"rimraf": "^6.1.3",
|
|
150
157
|
"tsup": "^8.5.1",
|
|
151
|
-
"typescript": "^6.0.
|
|
152
|
-
"
|
|
158
|
+
"typescript": "^6.0.3",
|
|
159
|
+
"vite": "^7.3.7",
|
|
160
|
+
"vitest": "^4.1.12"
|
|
153
161
|
},
|
|
154
162
|
"pnpm": {
|
|
155
163
|
"onlyBuiltDependencies": [
|
|
@@ -157,7 +165,8 @@
|
|
|
157
165
|
"esbuild"
|
|
158
166
|
],
|
|
159
167
|
"overrides": {
|
|
160
|
-
"@types/express": "^4.17.21"
|
|
168
|
+
"@types/express": "^4.17.21",
|
|
169
|
+
"tsup>esbuild": "^0.28.1"
|
|
161
170
|
}
|
|
162
171
|
}
|
|
163
172
|
}
|