@sudobility/testomniac_runner_service 0.1.28 → 0.1.30
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/analyzer/index.d.ts +2 -0
- package/dist/analyzer/index.d.ts.map +1 -0
- package/dist/analyzer/index.js +2 -0
- package/dist/analyzer/index.js.map +1 -0
- package/dist/analyzer/page-analyzer.d.ts +47 -0
- package/dist/analyzer/page-analyzer.d.ts.map +1 -0
- package/dist/analyzer/page-analyzer.js +232 -0
- package/dist/analyzer/page-analyzer.js.map +1 -0
- package/dist/api/client.d.ts +14 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +65 -0
- package/dist/api/client.js.map +1 -1
- package/dist/browser/page-utils.d.ts.map +1 -1
- package/dist/browser/page-utils.js +1 -1
- package/dist/browser/page-utils.js.map +1 -1
- package/dist/expertise/index.d.ts +9 -0
- package/dist/expertise/index.d.ts.map +1 -0
- package/dist/expertise/index.js +22 -0
- package/dist/expertise/index.js.map +1 -0
- package/dist/expertise/noop-expertise.d.ts +11 -0
- package/dist/expertise/noop-expertise.d.ts.map +1 -0
- package/dist/expertise/noop-expertise.js +14 -0
- package/dist/expertise/noop-expertise.js.map +1 -0
- package/dist/expertise/performance-expertise.d.ts +10 -0
- package/dist/expertise/performance-expertise.d.ts.map +1 -0
- package/dist/expertise/performance-expertise.js +41 -0
- package/dist/expertise/performance-expertise.js.map +1 -0
- package/dist/expertise/security-expertise.d.ts +12 -0
- package/dist/expertise/security-expertise.d.ts.map +1 -0
- package/dist/expertise/security-expertise.js +61 -0
- package/dist/expertise/security-expertise.js.map +1 -0
- package/dist/expertise/seo-expertise.d.ts +14 -0
- package/dist/expertise/seo-expertise.d.ts.map +1 -0
- package/dist/expertise/seo-expertise.js +84 -0
- package/dist/expertise/seo-expertise.js.map +1 -0
- package/dist/expertise/tester-expertise.d.ts +14 -0
- package/dist/expertise/tester-expertise.d.ts.map +1 -0
- package/dist/expertise/tester-expertise.js +87 -0
- package/dist/expertise/tester-expertise.js.map +1 -0
- package/dist/expertise/types.d.ts +21 -0
- package/dist/expertise/types.d.ts.map +1 -0
- package/dist/expertise/types.js +1 -0
- package/dist/expertise/types.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/orchestrator/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator/orchestrator.js +4 -4
- package/dist/orchestrator/orchestrator.js.map +1 -1
- package/dist/orchestrator/runner.d.ts +12 -0
- package/dist/orchestrator/runner.d.ts.map +1 -0
- package/dist/orchestrator/runner.js +163 -0
- package/dist/orchestrator/runner.js.map +1 -0
- package/dist/orchestrator/test-case-executor.d.ts +15 -0
- package/dist/orchestrator/test-case-executor.d.ts.map +1 -0
- package/dist/orchestrator/test-case-executor.js +259 -0
- package/dist/orchestrator/test-case-executor.js.map +1 -0
- package/dist/orchestrator/test-execution.d.ts.map +1 -1
- package/dist/orchestrator/test-execution.js +21 -2
- package/dist/orchestrator/test-execution.js.map +1 -1
- package/dist/orchestrator/types.d.ts +18 -6
- package/dist/orchestrator/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const RENDER_BLOCKING_TYPES = [
|
|
2
|
+
"text/html",
|
|
3
|
+
"text/css",
|
|
4
|
+
"application/javascript",
|
|
5
|
+
"text/javascript",
|
|
6
|
+
];
|
|
7
|
+
const THRESHOLD_MS = 500;
|
|
8
|
+
/**
|
|
9
|
+
* Checks network log timing to ensure render-blocking content
|
|
10
|
+
* is returned within the threshold (500ms).
|
|
11
|
+
*/
|
|
12
|
+
export class PerformanceExpertise {
|
|
13
|
+
name = "performance";
|
|
14
|
+
evaluate(context) {
|
|
15
|
+
const outcomes = [];
|
|
16
|
+
const renderBlockingLogs = context.networkLogs.filter(log => RENDER_BLOCKING_TYPES.some(type => log.contentType?.includes(type)));
|
|
17
|
+
// Check if any render-blocking resources had slow responses
|
|
18
|
+
// NetworkLogEntry currently only has method/url/status/contentType,
|
|
19
|
+
// so we check for server errors as a proxy for performance issues.
|
|
20
|
+
// When timing data is available, this will check actual duration.
|
|
21
|
+
const slowOrFailed = renderBlockingLogs.filter(log => log.status >= 500 || log.status === 0);
|
|
22
|
+
if (slowOrFailed.length > 0) {
|
|
23
|
+
for (const log of slowOrFailed) {
|
|
24
|
+
outcomes.push({
|
|
25
|
+
expected: `Render-blocking resource should respond within ${THRESHOLD_MS}ms`,
|
|
26
|
+
observed: `Resource failed or timed out: ${log.url.slice(0, 120)} (status: ${log.status})`,
|
|
27
|
+
result: "warning",
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (outcomes.length === 0) {
|
|
32
|
+
outcomes.push({
|
|
33
|
+
expected: `All render-blocking resources should respond within ${THRESHOLD_MS}ms`,
|
|
34
|
+
observed: `${renderBlockingLogs.length} render-blocking resource(s) loaded successfully`,
|
|
35
|
+
result: "pass",
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return outcomes;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=performance-expertise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance-expertise.js","sourceRoot":"","sources":["../../src/expertise/performance-expertise.ts"],"names":[],"mappings":"AAEA,MAAM,qBAAqB,GAAG;IAC5B,WAAW;IACX,UAAU;IACV,wBAAwB;IACxB,iBAAiB;CAClB,CAAC;AAEF,MAAM,YAAY,GAAG,GAAG,CAAC;AAEzB;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAC/B,IAAI,GAAG,aAAa,CAAC;IAErB,QAAQ,CAAC,OAAyB;QAChC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAC/B,MAAM,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAC1D,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CACpE,CAAC;QAEF,4DAA4D;QAC5D,oEAAoE;QACpE,mEAAmE;QACnE,kEAAkE;QAClE,MAAM,YAAY,GAAG,kBAAkB,CAAC,MAAM,CAC5C,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,CAC7C,CAAC;QAEF,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;gBAC/B,QAAQ,CAAC,IAAI,CAAC;oBACZ,QAAQ,EAAE,kDAAkD,YAAY,IAAI;oBAC5E,QAAQ,EAAE,iCAAiC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,aAAa,GAAG,CAAC,MAAM,GAAG;oBAC1F,MAAM,EAAE,SAAS;iBAClB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,QAAQ,CAAC,IAAI,CAAC;gBACZ,QAAQ,EAAE,uDAAuD,YAAY,IAAI;gBACjF,QAAQ,EAAE,GAAG,kBAAkB,CAAC,MAAM,kDAAkD;gBACxF,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Expertise, ExpertiseContext, Outcome } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Checks network calls for insecure practices.
|
|
4
|
+
* Flags API keys in URLs and non-HTTPS requests.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SecurityExpertise implements Expertise {
|
|
7
|
+
name: string;
|
|
8
|
+
evaluate(context: ExpertiseContext): Outcome[];
|
|
9
|
+
private checkApiKeysInUrls;
|
|
10
|
+
private checkInsecureRequests;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=security-expertise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-expertise.d.ts","sourceRoot":"","sources":["../../src/expertise/security-expertise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAOpE;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,SAAS;IACjD,IAAI,SAAc;IAElB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,EAAE;IAS9C,OAAO,CAAC,kBAAkB;IA4B1B,OAAO,CAAC,qBAAqB;CAwB9B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
const API_KEY_PATTERNS = [
|
|
2
|
+
/[?&](api[_-]?key|apikey|key|token|secret|access[_-]?token)=([^&]+)/i,
|
|
3
|
+
/[?&](authorization)=([^&]+)/i,
|
|
4
|
+
];
|
|
5
|
+
/**
|
|
6
|
+
* Checks network calls for insecure practices.
|
|
7
|
+
* Flags API keys in URLs and non-HTTPS requests.
|
|
8
|
+
*/
|
|
9
|
+
export class SecurityExpertise {
|
|
10
|
+
name = "security";
|
|
11
|
+
evaluate(context) {
|
|
12
|
+
const outcomes = [];
|
|
13
|
+
outcomes.push(...this.checkApiKeysInUrls(context));
|
|
14
|
+
outcomes.push(...this.checkInsecureRequests(context));
|
|
15
|
+
return outcomes;
|
|
16
|
+
}
|
|
17
|
+
checkApiKeysInUrls(context) {
|
|
18
|
+
const outcomes = [];
|
|
19
|
+
for (const log of context.networkLogs) {
|
|
20
|
+
for (const pattern of API_KEY_PATTERNS) {
|
|
21
|
+
const match = pattern.exec(log.url);
|
|
22
|
+
if (match) {
|
|
23
|
+
outcomes.push({
|
|
24
|
+
expected: "API keys should not be exposed in URLs",
|
|
25
|
+
observed: `Found "${match[1]}" parameter in URL: ${log.url.slice(0, 120)}`,
|
|
26
|
+
result: "error",
|
|
27
|
+
});
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (outcomes.length === 0) {
|
|
33
|
+
outcomes.push({
|
|
34
|
+
expected: "API keys should not be exposed in URLs",
|
|
35
|
+
observed: "No API keys detected in request URLs",
|
|
36
|
+
result: "pass",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return outcomes;
|
|
40
|
+
}
|
|
41
|
+
checkInsecureRequests(context) {
|
|
42
|
+
const insecure = context.networkLogs.filter(log => log.url.startsWith("http://") && !log.url.startsWith("http://localhost"));
|
|
43
|
+
if (insecure.length > 0) {
|
|
44
|
+
return [
|
|
45
|
+
{
|
|
46
|
+
expected: "All requests should use HTTPS",
|
|
47
|
+
observed: `${insecure.length} insecure HTTP request(s): ${insecure[0].url.slice(0, 120)}`,
|
|
48
|
+
result: "warning",
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
return [
|
|
53
|
+
{
|
|
54
|
+
expected: "All requests should use HTTPS",
|
|
55
|
+
observed: "All requests use HTTPS",
|
|
56
|
+
result: "pass",
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=security-expertise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-expertise.js","sourceRoot":"","sources":["../../src/expertise/security-expertise.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG;IACvB,qEAAqE;IACrE,8BAA8B;CAC/B,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAC5B,IAAI,GAAG,UAAU,CAAC;IAElB,QAAQ,CAAC,OAAyB;QAChC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAE/B,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC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AO;gBACL;oBACE,QAAQ,EAAE,+BAA+B;oBACzC,QAAQ,EAAE,GAAG,QAAQ,CAAC,MAAM,8BAA8B,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;oBACzF,MAAM,EAAE,SAAS;iBAClB;aACF,CAAC;QACJ,CAAC;QAED,OAAO;YACL;gBACE,QAAQ,EAAE,+BAA+B;gBACzC,QAAQ,EAAE,wBAAwB;gBAClC,MAAM,EAAE,MAAM;aACf;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Expertise, ExpertiseContext, Outcome } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if essential SEO meta tags are present in the page HTML.
|
|
4
|
+
* Creates warning outcomes for missing tags.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SeoExpertise implements Expertise {
|
|
7
|
+
name: string;
|
|
8
|
+
evaluate(context: ExpertiseContext): Outcome[];
|
|
9
|
+
private checkTag;
|
|
10
|
+
private checkMetaTag;
|
|
11
|
+
private checkLinkTag;
|
|
12
|
+
private checkMetaProperty;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=seo-expertise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seo-expertise.d.ts","sourceRoot":"","sources":["../../src/expertise/seo-expertise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEpE;;;GAGG;AACH,qBAAa,YAAa,YAAW,SAAS;IAC5C,IAAI,SAAS;IAEb,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,EAAE;IAgB9C,OAAO,CAAC,QAAQ;IAgBhB,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,iBAAiB;CAuB1B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if essential SEO meta tags are present in the page HTML.
|
|
3
|
+
* Creates warning outcomes for missing tags.
|
|
4
|
+
*/
|
|
5
|
+
export class SeoExpertise {
|
|
6
|
+
name = "seo";
|
|
7
|
+
evaluate(context) {
|
|
8
|
+
const outcomes = [];
|
|
9
|
+
const html = context.html;
|
|
10
|
+
outcomes.push(this.checkTag(html, /<title[^>]*>([^<]+)<\/title>/i, "title"));
|
|
11
|
+
outcomes.push(this.checkMetaTag(html, "description"));
|
|
12
|
+
outcomes.push(this.checkMetaTag(html, "keywords"));
|
|
13
|
+
outcomes.push(this.checkLinkTag(html, "canonical"));
|
|
14
|
+
outcomes.push(this.checkMetaProperty(html, "og:title"));
|
|
15
|
+
outcomes.push(this.checkMetaProperty(html, "og:description"));
|
|
16
|
+
return outcomes;
|
|
17
|
+
}
|
|
18
|
+
checkTag(html, regex, tagName) {
|
|
19
|
+
const match = regex.exec(html);
|
|
20
|
+
if (match && match[1]?.trim()) {
|
|
21
|
+
return {
|
|
22
|
+
expected: `Page should have a <${tagName}> tag`,
|
|
23
|
+
observed: `Found <${tagName}>: "${match[1].trim().slice(0, 80)}"`,
|
|
24
|
+
result: "pass",
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
expected: `Page should have a <${tagName}> tag`,
|
|
29
|
+
observed: `Missing <${tagName}> tag`,
|
|
30
|
+
result: "warning",
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
checkMetaTag(html, name) {
|
|
34
|
+
const regex = new RegExp(`<meta[^>]+name=["']${name}["'][^>]+content=["']([^"']+)["']`, "i");
|
|
35
|
+
const regexAlt = new RegExp(`<meta[^>]+content=["']([^"']+)["'][^>]+name=["']${name}["']`, "i");
|
|
36
|
+
const match = regex.exec(html) || regexAlt.exec(html);
|
|
37
|
+
if (match && match[1]?.trim()) {
|
|
38
|
+
return {
|
|
39
|
+
expected: `Page should have meta ${name}`,
|
|
40
|
+
observed: `Found meta ${name}: "${match[1].trim().slice(0, 80)}"`,
|
|
41
|
+
result: "pass",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
expected: `Page should have meta ${name}`,
|
|
46
|
+
observed: `Missing meta ${name}`,
|
|
47
|
+
result: "warning",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
checkLinkTag(html, rel) {
|
|
51
|
+
const regex = new RegExp(`<link[^>]+rel=["']${rel}["'][^>]+href=["']([^"']+)["']`, "i");
|
|
52
|
+
const match = regex.exec(html);
|
|
53
|
+
if (match && match[1]?.trim()) {
|
|
54
|
+
return {
|
|
55
|
+
expected: `Page should have <link rel="${rel}">`,
|
|
56
|
+
observed: `Found ${rel}: "${match[1].trim()}"`,
|
|
57
|
+
result: "pass",
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
expected: `Page should have <link rel="${rel}">`,
|
|
62
|
+
observed: `Missing <link rel="${rel}">`,
|
|
63
|
+
result: "warning",
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
checkMetaProperty(html, property) {
|
|
67
|
+
const regex = new RegExp(`<meta[^>]+property=["']${property}["'][^>]+content=["']([^"']+)["']`, "i");
|
|
68
|
+
const regexAlt = new RegExp(`<meta[^>]+content=["']([^"']+)["'][^>]+property=["']${property}["']`, "i");
|
|
69
|
+
const match = regex.exec(html) || regexAlt.exec(html);
|
|
70
|
+
if (match && match[1]?.trim()) {
|
|
71
|
+
return {
|
|
72
|
+
expected: `Page should have meta property ${property}`,
|
|
73
|
+
observed: `Found ${property}: "${match[1].trim().slice(0, 80)}"`,
|
|
74
|
+
result: "pass",
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
expected: `Page should have meta property ${property}`,
|
|
79
|
+
observed: `Missing meta property ${property}`,
|
|
80
|
+
result: "warning",
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
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ise, ExpertiseContext, Outcome } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Checks each test case expectation is met.
|
|
4
|
+
* Creates error outcomes for unmet expectations.
|
|
5
|
+
*/
|
|
6
|
+
export declare class TesterExpertise implements Expertise {
|
|
7
|
+
name: string;
|
|
8
|
+
evaluate(context: ExpertiseContext): Outcome[];
|
|
9
|
+
private checkExpectation;
|
|
10
|
+
private checkPageLoaded;
|
|
11
|
+
private checkNoConsoleErrors;
|
|
12
|
+
private checkNoNetworkErrors;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=tester-expertise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tester-expertise.d.ts","sourceRoot":"","sources":["../../src/expertise/tester-expertise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEpE;;;GAGG;AACH,qBAAa,eAAgB,YAAW,SAAS;IAC/C,IAAI,SAAY;IAEhB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,EAAE;IAW9C,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,eAAe;IAmCvB,OAAO,CAAC,oBAAoB;IAuB5B,OAAO,CAAC,oBAAoB;CAoB7B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks each test case expectation is met.
|
|
3
|
+
* Creates error outcomes for unmet expectations.
|
|
4
|
+
*/
|
|
5
|
+
export class TesterExpertise {
|
|
6
|
+
name = "tester";
|
|
7
|
+
evaluate(context) {
|
|
8
|
+
const outcomes = [];
|
|
9
|
+
for (const expectation of context.expectations) {
|
|
10
|
+
const result = this.checkExpectation(expectation, context);
|
|
11
|
+
outcomes.push(result);
|
|
12
|
+
}
|
|
13
|
+
return outcomes;
|
|
14
|
+
}
|
|
15
|
+
checkExpectation(expectation, context) {
|
|
16
|
+
switch (expectation.expectationType) {
|
|
17
|
+
case "page_loaded":
|
|
18
|
+
return this.checkPageLoaded(context, expectation.description);
|
|
19
|
+
case "no_console_errors":
|
|
20
|
+
return this.checkNoConsoleErrors(context, expectation.description);
|
|
21
|
+
case "no_network_errors":
|
|
22
|
+
return this.checkNoNetworkErrors(context, expectation.description);
|
|
23
|
+
default:
|
|
24
|
+
// For expectations we don't have specific logic for yet, pass them
|
|
25
|
+
return {
|
|
26
|
+
expected: expectation.description,
|
|
27
|
+
observed: "Check not implemented — assumed pass",
|
|
28
|
+
result: "pass",
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
checkPageLoaded(context, description) {
|
|
33
|
+
const hasHtml = context.html.length > 0 && context.html.includes("<");
|
|
34
|
+
const hasHttpError = context.networkLogs.some(log => log.status >= 400 && log.url === context.networkLogs[0]?.url);
|
|
35
|
+
if (hasHttpError) {
|
|
36
|
+
const errorLog = context.networkLogs.find(log => log.status >= 400 && log.url === context.networkLogs[0]?.url);
|
|
37
|
+
return {
|
|
38
|
+
expected: description,
|
|
39
|
+
observed: `HTTP ${errorLog?.status} error on page load`,
|
|
40
|
+
result: "error",
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (!hasHtml) {
|
|
44
|
+
return {
|
|
45
|
+
expected: description,
|
|
46
|
+
observed: "Page returned empty or non-HTML response",
|
|
47
|
+
result: "error",
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
expected: description,
|
|
52
|
+
observed: "Page loaded successfully with HTML content",
|
|
53
|
+
result: "pass",
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
checkNoConsoleErrors(context, description) {
|
|
57
|
+
const errors = context.consoleLogs.filter(log => log.toLowerCase().startsWith("error") || log.includes("[ERROR]"));
|
|
58
|
+
if (errors.length > 0) {
|
|
59
|
+
return {
|
|
60
|
+
expected: description,
|
|
61
|
+
observed: `${errors.length} console error(s): ${errors[0]}`,
|
|
62
|
+
result: "error",
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
expected: description,
|
|
67
|
+
observed: "No console errors detected",
|
|
68
|
+
result: "pass",
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
checkNoNetworkErrors(context, description) {
|
|
72
|
+
const errors = context.networkLogs.filter(log => log.status >= 400);
|
|
73
|
+
if (errors.length > 0) {
|
|
74
|
+
return {
|
|
75
|
+
expected: description,
|
|
76
|
+
observed: `${errors.length} network error(s): ${errors[0].url} (${errors[0].status})`,
|
|
77
|
+
result: "error",
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
expected: description,
|
|
82
|
+
observed: "No network errors detected",
|
|
83
|
+
result: "pass",
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=tester-expertise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tester-expertise.js","sourceRoot":"","sources":["../../src/expertise/tester-expertise.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,eAAe;IAC1B,IAAI,GAAG,QAAQ,CAAC;IAEhB,QAAQ,CAAC,OAAyB;QAChC,MAAM,QAAQ,GAAc,EAAE,CAAC;QAE/B,KAAK,MAAM,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YAC3D,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEO,gBAAgB,CACtB,WAIC,EACD,OAAyB;QAEzB,QAAQ,WAAW,CAAC,eAAe,EAAE,CAAC;YACpC,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;YAChE,KAAK,mBAAmB;gB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C;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Expectation, NetworkLogEntry } from "@sudobility/testomniac_types";
|
|
2
|
+
import type { DetectedScaffoldRegion } from "../scanner/component-detector";
|
|
3
|
+
import type { DetectedPatternWithInstances } from "../scanner/pattern-detector";
|
|
4
|
+
export interface Outcome {
|
|
5
|
+
expected: string;
|
|
6
|
+
observed: string;
|
|
7
|
+
result: "pass" | "warning" | "error";
|
|
8
|
+
}
|
|
9
|
+
export interface ExpertiseContext {
|
|
10
|
+
html: string;
|
|
11
|
+
scaffolds: DetectedScaffoldRegion[];
|
|
12
|
+
patterns: DetectedPatternWithInstances[];
|
|
13
|
+
consoleLogs: string[];
|
|
14
|
+
networkLogs: NetworkLogEntry[];
|
|
15
|
+
expectations: Expectation[];
|
|
16
|
+
}
|
|
17
|
+
export interface Expertise {
|
|
18
|
+
name: string;
|
|
19
|
+
evaluate(context: ExpertiseContext): Outcome[];
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/expertise/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,sBAAsB,EAAE,CAAC;IACpC,QAAQ,EAAE,4BAA4B,EAAE,CAAC;IACzC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,EAAE,CAAC;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/expertise/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -38,10 +38,16 @@ export { generateFormNegativeTests } from "./generation/form-negative";
|
|
|
38
38
|
export { generatePasswordTests, type PasswordTestCase, } from "./generation/password";
|
|
39
39
|
export { generateNavigationTest } from "./generation/navigation";
|
|
40
40
|
export { generateE2ETest, enumerateE2EPaths } from "./generation/e2e";
|
|
41
|
+
export { runTestRun } from "./orchestrator/runner";
|
|
42
|
+
export { executeTestCase } from "./orchestrator/test-case-executor";
|
|
43
|
+
export type { RunConfig, ScanEventHandler, ScanResult, } from "./orchestrator/types";
|
|
41
44
|
export { runScan } from "./orchestrator/orchestrator";
|
|
42
45
|
export { processDecompositionJob } from "./orchestrator/decomposition";
|
|
43
46
|
export { executeTestCases } from "./orchestrator/test-execution";
|
|
44
|
-
export type { ScanConfig
|
|
47
|
+
export type { ScanConfig } from "./orchestrator/types";
|
|
48
|
+
export { PageAnalyzer, type AnalyzerContext } from "./analyzer";
|
|
49
|
+
export type { Outcome, ExpertiseContext, Expertise } from "./expertise";
|
|
50
|
+
export { TesterExpertise, SeoExpertise, SecurityExpertise, PerformanceExpertise, NoopExpertise, createDefaultExpertises, } from "./expertise";
|
|
45
51
|
export type { Plugin, PluginContext, PluginResult, PluginIssue, } from "./plugins/types";
|
|
46
52
|
export { registerPlugin, getPlugin, getEnabledPlugins, getAllPluginNames, } from "./plugins/registry";
|
|
47
53
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,cAAc,0BAA0B,CAAC;AAEzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAGzC,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,sBAAsB,GAC5B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,cAAc,aAAa,CAAC;AAG5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AAGvC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGvD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,cAA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AAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGhE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACL,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,MAAM,EACN,aAAa,EACb,YAAY,EACZ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,SAAS,EACT,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -48,9 +48,15 @@ export { generateFormNegativeTests } from "./generation/form-negative";
|
|
|
48
48
|
export { generatePasswordTests, } from "./generation/password";
|
|
49
49
|
export { generateNavigationTest } from "./generation/navigation";
|
|
50
50
|
export { generateE2ETest, enumerateE2EPaths } from "./generation/e2e";
|
|
51
|
-
// Orchestrator
|
|
51
|
+
// Orchestrator (new)
|
|
52
|
+
export { runTestRun } from "./orchestrator/runner";
|
|
53
|
+
export { executeTestCase } from "./orchestrator/test-case-executor";
|
|
54
|
+
// Orchestrator (deprecated — use runTestRun)
|
|
52
55
|
export { runScan } from "./orchestrator/orchestrator";
|
|
53
56
|
export { processDecompositionJob } from "./orchestrator/decomposition";
|
|
54
57
|
export { executeTestCases } from "./orchestrator/test-execution";
|
|
58
|
+
// Analyzer
|
|
59
|
+
export { PageAnalyzer } from "./analyzer";
|
|
60
|
+
export { TesterExpertise, SeoExpertise, SecurityExpertise, PerformanceExpertise, NoopExpertise, createDefaultExpertises, } from "./expertise";
|
|
55
61
|
export { registerPlugin, getPlugin, getEnabledPlugins, getAllPluginNames, } from "./plugins/registry";
|
|
56
62
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,6BAA6B;AAC7B,cAAc,0BAA0B,CAAC;AACzC,iDAAiD;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAEzC,wBAAwB;AACxB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAuB,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,qBAAqB,EACrB,wBAAwB,GAEzB,MAAM,8BAA8B,CAAC;AAEtC,iBAAiB;AACjB,OAAO,EACL,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6BAA6B;AAC7B,cAAc,aAAa,CAAC;AAE5B,eAAe;AACf,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AAEvC,YAAY;AACZ,cAAc,oBAAoB,CAAC;AAEnC,aAAa;AACb,OAAO,EAAE,S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sources":["../../src/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMxE,wBAAsB,OAAO,CAC3B,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,UAAU,EAClB,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,gBAAgB,GAC7B,OAAO,CAAC,UAAU,CAAC,CAkJrB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { processDecompositionJob } from "./decomposition";
|
|
2
2
|
import { executeTestCases } from "./test-execution";
|
|
3
|
+
import { computeHashes } from "../browser/page-utils";
|
|
4
|
+
import { extractActionableItems } from "../extractors";
|
|
3
5
|
export async function runScan(adapter, config, api, eventHandler) {
|
|
4
6
|
const startTime = Date.now();
|
|
5
7
|
let pagesFound = 0;
|
|
@@ -46,9 +48,7 @@ export async function runScan(adapter, config, api, eventHandler) {
|
|
|
46
48
|
const relativePath = scanUrlObj.pathname;
|
|
47
49
|
const page = await api.findOrCreatePage(config.runnerId, relativePath);
|
|
48
50
|
wrappedHandler.onPageFound({ relativePath, pageId: page.id });
|
|
49
|
-
//
|
|
50
|
-
const { computeHashes } = await import("../browser/page-utils");
|
|
51
|
-
const { extractActionableItems } = await import("../extractors");
|
|
51
|
+
// Extract actionable items and compute hashes
|
|
52
52
|
const items = await extractActionableItems(adapter);
|
|
53
53
|
const hashes = await computeHashes(initialHtml, items);
|
|
54
54
|
const initialPageState = await api.createPageState({
|
|
@@ -100,7 +100,7 @@ export async function runScan(adapter, config, api, eventHandler) {
|
|
|
100
100
|
testRunsCompleted,
|
|
101
101
|
});
|
|
102
102
|
const result = {
|
|
103
|
-
|
|
103
|
+
testRunId: config.scanId,
|
|
104
104
|
pagesFound,
|
|
105
105
|
pageStatesFound,
|
|
106
106
|
testRunsCompleted,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../src/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../src/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,OAAuB,EACvB,MAAkB,EAClB,GAAc,EACd,YAA8B;IAE9B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,eAAe,GAAG,CAAC,CAAC;IACxB,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,aAAa,GAAG,CAAC,CAAC;IAEtB,MAAM,cAAc,GAAqB;QACvC,GAAG,YAAY;QACf,WAAW,CAAC,IAAI;YACd,UAAU,EAAE,CAAC;YACb,YAAY,CAAC,W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AAC,EAAE,CAAC,CAAC;gBAC3C,cAAc,CAAC,2BAA2B,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;YAChE,CAAC;YAED,+DAA+D;YAC/D,MAAM,cAAc,GAAG,MAAM,gBAAgB,CAC3C,MAAM,EACN,OAAO,EACP,GAAG,EACH,cAAc,CACf,CAAC;YAEF,wDAAwD;YACxD,IAAI,CAAC,cAAc;gBAAE,MAAM;QAC7B,CAAC;QAED,uBAAuB;QACvB,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;QAC1C,MAAM,GAAG,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE;YACvC,MAAM,EAAE,WAAW;YACnB,eAAe,EAAE,UAAU;YAC3B,UAAU;YACV,eAAe;YACf,iBAAiB;SAClB,CAAC,CAAC;QAEH,MAAM,MAAM,GAAe;YACzB,SAAS,EAAE,MAAM,CAAC,MAAM;YACxB,UAAU;YACV,eAAe;YACf,iBAAiB;YACjB,aAAa;YACb,UAAU;SACX,CAAC;QAEF,cAAc,CAAC,cAAc,CAAC;YAC5B,UAAU,EAAE,UAAU;YACtB,aAAa,EAAE,aAAa;YAC5B,UAAU;SACX,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,OAAO,GACX,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC;QAChE,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACpC,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BrowserAdapter } from "../adapter";
|
|
2
|
+
import type { ApiClient } from "../api/client";
|
|
3
|
+
import type { RunConfig, ScanEventHandler, ScanResult } from "./types";
|
|
4
|
+
import type { Expertise } from "../expertise/types";
|
|
5
|
+
/**
|
|
6
|
+
* Main entry point for the new runner execution loop.
|
|
7
|
+
* Replaces the old runScan/processDecompositionJob/executeTestCases orchestrator.
|
|
8
|
+
*
|
|
9
|
+
* Execution: bundle → iterate suites → iterate cases → run case
|
|
10
|
+
*/
|
|
11
|
+
export declare function runTestRun(adapter: BrowserAdapter, config: RunConfig, api: ApiClient, expertises: Expertise[], events: ScanEventHandler): Promise<ScanResult>;
|
|
12
|
+
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/orchestrator/runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,SAAS,EACd,UAAU,EAAE,SAAS,EAAE,EACvB,MAAM,EAAE,gBAAgB,GACvB,OAAO,CAAC,UAAU,CAAC,CAkMrB"}
|