quality-intelligence-engine 2.2.18 → 2.2.24
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/dist/bin/qi.js +2 -2
- package/dist/src/adapters/playwright-folder.adapter.js +68 -0
- package/dist/src/adapters/playwright-json.adapter.js +46 -0
- package/dist/src/adapters/playwright.adapter.js +36 -0
- package/dist/src/cli/qi-test.js +20 -0
- package/dist/src/cli/qi.js +59 -0
- package/dist/src/cli/ui/divider.js +10 -0
- package/dist/src/cli/ui/failureLogger.js +24 -0
- package/dist/src/configLoader.js +60 -0
- package/dist/src/console/issue-view.js +81 -0
- package/dist/src/failure-analysis/failure-analyzer.js +38 -0
- package/dist/src/final-run.js +131 -0
- package/dist/src/final-runner.js +27 -0
- package/dist/src/fixtures/networkCollector.js +18 -0
- package/dist/src/history/failure-history.store.js +25 -0
- package/dist/src/history/failure-history.types.js +4 -0
- package/dist/src/history/failure-trend.analyzer.js +31 -0
- package/dist/src/index.js +10 -0
- package/dist/src/integrations/ci/ci-annotator.js +26 -0
- package/dist/src/intelligence/confidence-calibration.engine.js +21 -0
- package/dist/src/intelligence/decision-intelligence/confidence.engine.js +16 -0
- package/dist/src/intelligence/decision-intelligence/decision.config.js +21 -0
- package/dist/src/intelligence/decision-intelligence/decision.engine.js +23 -0
- package/dist/src/intelligence/decision-intelligence/decision.types.js +2 -0
- package/dist/src/intelligence/failure-fingerprinting/failure.classifier.js +32 -0
- package/dist/src/intelligence/failure-fingerprinting/failure.store.js +17 -0
- package/dist/src/intelligence/failure-fingerprinting/failure.tracker.js +19 -0
- package/dist/src/intelligence/failure-fingerprinting/fingerprint.generator.js +28 -0
- package/dist/src/intelligence/failure-fingerprinting/fingerprint.types.js +2 -0
- package/dist/src/intelligence/flakiness-intelligence/flakiness.analyzer.js +21 -0
- package/dist/src/intelligence/flakiness-intelligence/flakiness.fingerprint.js +16 -0
- package/dist/src/intelligence/flakiness-intelligence/flakiness.store.js +24 -0
- package/dist/src/intelligence/flakiness-intelligence/flakiness.tracker.js +28 -0
- package/dist/src/intelligence/flakiness-intelligence/flakiness.types.js +2 -0
- package/dist/src/intelligence/intelligence.pipeline.js +17 -0
- package/dist/src/intelligence/llm-explainer.js +19 -0
- package/dist/src/intelligence/root-cause/rootcause.engine.js +25 -0
- package/dist/src/intelligence/trend-intelligence/trend.engine.js +25 -0
- package/dist/src/markdownWriter.js +64 -0
- package/dist/src/normalizer.js +17 -0
- package/dist/src/passAnalyzer.js +38 -0
- package/dist/src/pipeline/ai.summarizer.js +32 -0
- package/dist/src/pipeline/failure-analysis.pipeline.js +11 -0
- package/dist/src/pipeline/failure-grouping.pipeline.js +59 -0
- package/dist/src/playwright/qi.reporter.js +17 -0
- package/dist/src/reporter.js +46 -0
- package/dist/src/rules.js +32 -0
- package/dist/src/runManager.js +19 -0
- package/dist/src/runner.js +13 -0
- package/dist/src/runtime/networkCollector.js +34 -0
- package/dist/src/stackParser.js +17 -0
- package/dist/src/test-run.js +48 -0
- package/dist/src/types/analysis-result.js +2 -0
- package/dist/src/types/failure.types.js +3 -0
- package/dist/src/types/playwright-failure.js +2 -0
- package/dist/src/types.js +5 -0
- package/dist/src/utils/artifact.locator.js +35 -0
- package/dist/src/utils/confidence-constants.js +90 -0
- package/dist/src/utils/file-utils.js +118 -0
- package/dist/src/v2/llm/llm-advisor.js +17 -0
- package/dist/src/v2/pipeline/v2-intelligence.pipeline.js +17 -0
- package/dist/src/v2/self-healing/self-healer.js +44 -0
- package/dist/src/v2/trace-intelligence/trace-analyzer.js +33 -0
- package/dist/src/v2-test-run.js +59 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/v2-test-run.ts
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const v2_intelligence_pipeline_1 = require("./v2/pipeline/v2-intelligence.pipeline");
|
|
10
|
+
function pickOneFailureFolder() {
|
|
11
|
+
const base = "playwright-results";
|
|
12
|
+
if (!fs_1.default.existsSync(base))
|
|
13
|
+
return null;
|
|
14
|
+
const entries = fs_1.default.readdirSync(base, { withFileTypes: true });
|
|
15
|
+
const folder = entries.find(e => e.isDirectory());
|
|
16
|
+
return folder ? path_1.default.join(base, folder.name) : null;
|
|
17
|
+
}
|
|
18
|
+
async function run() {
|
|
19
|
+
const failureFolder = pickOneFailureFolder();
|
|
20
|
+
if (!failureFolder) {
|
|
21
|
+
console.error("No Playwright failure folders found.");
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const result = await (0, v2_intelligence_pipeline_1.runV2Intelligence)(failureFolder, "NUMERIC_MISMATCH", "Expected 10, received 6");
|
|
25
|
+
console.log("==================================================");
|
|
26
|
+
console.log("V2 TRACE INTELLIGENCE OUTPUT");
|
|
27
|
+
console.log("==================================================");
|
|
28
|
+
console.log(`Failure Folder : ${failureFolder}`);
|
|
29
|
+
console.log(`Failure Type : NUMERIC_MISMATCH`);
|
|
30
|
+
console.log("\nEvidence:");
|
|
31
|
+
if (result.trace.screenshots.length > 0) {
|
|
32
|
+
console.log(" Screenshots:");
|
|
33
|
+
result.trace.screenshots.forEach(s => console.log(` - ${s}`));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
console.log(" Screenshots: none");
|
|
37
|
+
}
|
|
38
|
+
if (result.trace.traceFile) {
|
|
39
|
+
console.log(` Trace File : ${result.trace.traceFile}`);
|
|
40
|
+
console.log(` Open with : npx playwright show-trace ${result.trace.traceFile}`);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
console.log(" Trace File : none");
|
|
44
|
+
}
|
|
45
|
+
console.log("\nSelf-Healing:");
|
|
46
|
+
if (result.healing) {
|
|
47
|
+
console.log(` Reason : ${result.healing.reason}`);
|
|
48
|
+
console.log(` SuggestedFix : ${result.healing.suggestedFix}`);
|
|
49
|
+
console.log(` Confidence : ${result.healing.confidence}`);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log(" Not safe to auto-heal");
|
|
53
|
+
}
|
|
54
|
+
console.log("\nAI Advice:");
|
|
55
|
+
console.log(` Summary: ${result.llm.summary}`);
|
|
56
|
+
result.llm.fixRecommendation.forEach(r => console.log(` - ${r}`));
|
|
57
|
+
console.log("==================================================");
|
|
58
|
+
}
|
|
59
|
+
run();
|