sentinel-qa 0.0.1
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/__tests__/capture-patterns.test.d.ts +2 -0
- package/dist/__tests__/capture-patterns.test.d.ts.map +1 -0
- package/dist/__tests__/capture-patterns.test.js +82 -0
- package/dist/__tests__/capture-patterns.test.js.map +1 -0
- package/dist/__tests__/event-spec-schema.test.d.ts +2 -0
- package/dist/__tests__/event-spec-schema.test.d.ts.map +1 -0
- package/dist/__tests__/event-spec-schema.test.js +75 -0
- package/dist/__tests__/event-spec-schema.test.js.map +1 -0
- package/dist/__tests__/event-validation.test.d.ts +2 -0
- package/dist/__tests__/event-validation.test.d.ts.map +1 -0
- package/dist/__tests__/event-validation.test.js +146 -0
- package/dist/__tests__/event-validation.test.js.map +1 -0
- package/dist/__tests__/markdown-report.test.d.ts +2 -0
- package/dist/__tests__/markdown-report.test.d.ts.map +1 -0
- package/dist/__tests__/markdown-report.test.js +104 -0
- package/dist/__tests__/markdown-report.test.js.map +1 -0
- package/dist/__tests__/test-status-store.test.d.ts +2 -0
- package/dist/__tests__/test-status-store.test.d.ts.map +1 -0
- package/dist/__tests__/test-status-store.test.js +197 -0
- package/dist/__tests__/test-status-store.test.js.map +1 -0
- package/dist/event-validation/capture-patterns.d.ts +26 -0
- package/dist/event-validation/capture-patterns.d.ts.map +1 -0
- package/dist/event-validation/capture-patterns.js +152 -0
- package/dist/event-validation/capture-patterns.js.map +1 -0
- package/dist/event-validation/index.d.ts +6 -0
- package/dist/event-validation/index.d.ts.map +1 -0
- package/dist/event-validation/index.js +4 -0
- package/dist/event-validation/index.js.map +1 -0
- package/dist/event-validation/schema.d.ts +59 -0
- package/dist/event-validation/schema.d.ts.map +1 -0
- package/dist/event-validation/schema.js +22 -0
- package/dist/event-validation/schema.js.map +1 -0
- package/dist/event-validation/types.d.ts +43 -0
- package/dist/event-validation/types.d.ts.map +1 -0
- package/dist/event-validation/types.js +2 -0
- package/dist/event-validation/types.js.map +1 -0
- package/dist/event-validation/validator.d.ts +14 -0
- package/dist/event-validation/validator.d.ts.map +1 -0
- package/dist/event-validation/validator.js +97 -0
- package/dist/event-validation/validator.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/registry/registry.d.ts +12 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +51 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/registry/types.d.ts +28 -0
- package/dist/registry/types.d.ts.map +1 -0
- package/dist/registry/types.js +2 -0
- package/dist/registry/types.js.map +1 -0
- package/dist/report/markdown.d.ts +13 -0
- package/dist/report/markdown.d.ts.map +1 -0
- package/dist/report/markdown.js +137 -0
- package/dist/report/markdown.js.map +1 -0
- package/dist/report/report-store.d.ts +28 -0
- package/dist/report/report-store.d.ts.map +1 -0
- package/dist/report/report-store.js +69 -0
- package/dist/report/report-store.js.map +1 -0
- package/dist/schemas/tools.d.ts +40 -0
- package/dist/schemas/tools.d.ts.map +1 -0
- package/dist/schemas/tools.js +26 -0
- package/dist/schemas/tools.js.map +1 -0
- package/dist/store/test-status-store.d.ts +18 -0
- package/dist/store/test-status-store.d.ts.map +1 -0
- package/dist/store/test-status-store.js +79 -0
- package/dist/store/test-status-store.js.map +1 -0
- package/dist/store/test-store.d.ts +15 -0
- package/dist/store/test-store.d.ts.map +1 -0
- package/dist/store/test-store.js +24 -0
- package/dist/store/test-store.js.map +1 -0
- package/dist/tools/get-report.d.ts +4 -0
- package/dist/tools/get-report.d.ts.map +1 -0
- package/dist/tools/get-report.js +48 -0
- package/dist/tools/get-report.js.map +1 -0
- package/dist/tools/get-selectors.d.ts +4 -0
- package/dist/tools/get-selectors.d.ts.map +1 -0
- package/dist/tools/get-selectors.js +19 -0
- package/dist/tools/get-selectors.js.map +1 -0
- package/dist/tools/list-apps.d.ts +4 -0
- package/dist/tools/list-apps.d.ts.map +1 -0
- package/dist/tools/list-apps.js +8 -0
- package/dist/tools/list-apps.js.map +1 -0
- package/dist/tools/run-tests.d.ts +7 -0
- package/dist/tools/run-tests.d.ts.map +1 -0
- package/dist/tools/run-tests.js +233 -0
- package/dist/tools/run-tests.js.map +1 -0
- package/dist/tools/save-tests.d.ts +4 -0
- package/dist/tools/save-tests.d.ts.map +1 -0
- package/dist/tools/save-tests.js +13 -0
- package/dist/tools/save-tests.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +11 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/yaml-loader.d.ts +2 -0
- package/dist/utils/yaml-loader.d.ts.map +1 -0
- package/dist/utils/yaml-loader.js +7 -0
- package/dist/utils/yaml-loader.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TestStatus {
|
|
2
|
+
id: string;
|
|
3
|
+
status: 'new' | 'stable' | 'quarantine' | 'rejected';
|
|
4
|
+
passRate: number;
|
|
5
|
+
runHistory: boolean[];
|
|
6
|
+
lastRun: string;
|
|
7
|
+
failureReason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class TestStatusStore {
|
|
10
|
+
private baseDir;
|
|
11
|
+
constructor(baseDir: string);
|
|
12
|
+
private filePath;
|
|
13
|
+
load(appId: string): Promise<TestStatus[]>;
|
|
14
|
+
save(appId: string, statuses: TestStatus[]): Promise<void>;
|
|
15
|
+
getStatus(appId: string, testId: string): Promise<TestStatus | null>;
|
|
16
|
+
recordRun(appId: string, testId: string, passed: boolean): Promise<TestStatus>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=test-status-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-status-store.d.ts","sourceRoot":"","sources":["../../src/store/test-status-store.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,qBAAa,eAAe;IACd,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAEnC,OAAO,CAAC,QAAQ;IAIV,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAa1C,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU1D,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKpE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CA4CrF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { readFile, writeFile, mkdir } from 'node:fs/promises';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { parse, stringify } from 'yaml';
|
|
4
|
+
import { logger } from '../utils/logger.js';
|
|
5
|
+
export class TestStatusStore {
|
|
6
|
+
baseDir;
|
|
7
|
+
constructor(baseDir) {
|
|
8
|
+
this.baseDir = baseDir;
|
|
9
|
+
}
|
|
10
|
+
filePath(appId) {
|
|
11
|
+
return join(this.baseDir, appId, 'status.yaml');
|
|
12
|
+
}
|
|
13
|
+
async load(appId) {
|
|
14
|
+
try {
|
|
15
|
+
const content = await readFile(this.filePath(appId), 'utf-8');
|
|
16
|
+
const data = parse(content);
|
|
17
|
+
return data?.tests ?? [];
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
if (err.code === 'ENOENT') {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
throw err;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
async save(appId, statuses) {
|
|
27
|
+
const dir = join(this.baseDir, appId);
|
|
28
|
+
await mkdir(dir, { recursive: true });
|
|
29
|
+
const data = { tests: statuses };
|
|
30
|
+
const content = stringify(data);
|
|
31
|
+
await writeFile(this.filePath(appId), content, 'utf-8');
|
|
32
|
+
logger.debug(`Saved ${statuses.length} test statuses for ${appId}`);
|
|
33
|
+
}
|
|
34
|
+
async getStatus(appId, testId) {
|
|
35
|
+
const statuses = await this.load(appId);
|
|
36
|
+
return statuses.find((s) => s.id === testId) ?? null;
|
|
37
|
+
}
|
|
38
|
+
async recordRun(appId, testId, passed) {
|
|
39
|
+
const statuses = await this.load(appId);
|
|
40
|
+
let entry = statuses.find((s) => s.id === testId);
|
|
41
|
+
if (!entry) {
|
|
42
|
+
entry = {
|
|
43
|
+
id: testId,
|
|
44
|
+
status: 'new',
|
|
45
|
+
passRate: 0,
|
|
46
|
+
runHistory: [],
|
|
47
|
+
lastRun: new Date().toISOString(),
|
|
48
|
+
};
|
|
49
|
+
statuses.push(entry);
|
|
50
|
+
}
|
|
51
|
+
// Append result, keep last 5
|
|
52
|
+
entry.runHistory.push(passed);
|
|
53
|
+
if (entry.runHistory.length > 5) {
|
|
54
|
+
entry.runHistory = entry.runHistory.slice(-5);
|
|
55
|
+
}
|
|
56
|
+
entry.lastRun = new Date().toISOString();
|
|
57
|
+
// Calculate pass rate
|
|
58
|
+
const passes = entry.runHistory.filter(Boolean).length;
|
|
59
|
+
entry.passRate = passes / entry.runHistory.length;
|
|
60
|
+
// Promote/demote only when 5 runs accumulated
|
|
61
|
+
if (entry.runHistory.length === 5) {
|
|
62
|
+
if (passes === 5) {
|
|
63
|
+
entry.status = 'stable';
|
|
64
|
+
delete entry.failureReason;
|
|
65
|
+
}
|
|
66
|
+
else if (passes >= 3) {
|
|
67
|
+
entry.status = 'quarantine';
|
|
68
|
+
entry.failureReason = entry.failureReason ?? 'Intermittent failure';
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
entry.status = 'rejected';
|
|
72
|
+
entry.failureReason = entry.failureReason ?? 'Consistent failure';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
await this.save(appId, statuses);
|
|
76
|
+
return entry;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=test-status-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-status-store.js","sourceRoot":"","sources":["../../src/store/test-status-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAe5C,MAAM,OAAO,eAAe;IACN;IAApB,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAE/B,QAAQ,CAAC,KAAa;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAAa;QACtB,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;YAC9D,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAsB,CAAC;YACjD,OAAO,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACtB,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACrD,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AAE,QAAQ,CAAC,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TestCase {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
confidence: number;
|
|
5
|
+
status: 'approved' | 'pending';
|
|
6
|
+
platform: ('flutter' | 'web')[];
|
|
7
|
+
code: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class TestStore {
|
|
10
|
+
private store;
|
|
11
|
+
save(appId: string, tests: TestCase[]): void;
|
|
12
|
+
get(appId: string): TestCase[] | undefined;
|
|
13
|
+
list(): Map<string, TestCase[]>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=test-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-store.d.ts","sourceRoot":"","sources":["../../src/store/test-store.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,KAAK,CAAiC;IAE9C,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI;IAc5C,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,GAAG,SAAS;IAI1C,IAAI,IAAI,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;CAGhC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class TestStore {
|
|
2
|
+
store = new Map();
|
|
3
|
+
save(appId, tests) {
|
|
4
|
+
const existing = this.store.get(appId) ?? [];
|
|
5
|
+
const merged = [...existing];
|
|
6
|
+
for (const test of tests) {
|
|
7
|
+
const idx = merged.findIndex((t) => t.id === test.id);
|
|
8
|
+
if (idx >= 0) {
|
|
9
|
+
merged[idx] = test;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
merged.push(test);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
this.store.set(appId, merged);
|
|
16
|
+
}
|
|
17
|
+
get(appId) {
|
|
18
|
+
return this.store.get(appId);
|
|
19
|
+
}
|
|
20
|
+
list() {
|
|
21
|
+
return this.store;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=test-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-store.js","sourceRoot":"","sources":["../../src/store/test-store.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,SAAS;IACZ,KAAK,GAAG,IAAI,GAAG,EAAsB,CAAC;IAE9C,IAAI,CAAC,KAAa,EAAE,KAAiB;QACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7C,MAAM,MAAM,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC;QAC7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC;YACtD,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC;gBACb,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,GAAG,CAAC,KAAa;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import type { ReportStore } from '../report/report-store.js';
|
|
3
|
+
export declare function registerGetReport(server: McpServer, reportStore: ReportStore): void;
|
|
4
|
+
//# sourceMappingURL=get-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-report.d.ts","sourceRoot":"","sources":["../../src/tools/get-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAG7D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,QA+C5E"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getReportSchema } from '../schemas/tools.js';
|
|
2
|
+
export function registerGetReport(server, reportStore) {
|
|
3
|
+
server.registerTool('get_report', {
|
|
4
|
+
description: 'Get latest test result summary for an app (returns Markdown report)',
|
|
5
|
+
inputSchema: getReportSchema,
|
|
6
|
+
}, async ({ app_id }) => {
|
|
7
|
+
const latest = await reportStore.getLatest(app_id);
|
|
8
|
+
if (!latest) {
|
|
9
|
+
return {
|
|
10
|
+
content: [{
|
|
11
|
+
type: 'text',
|
|
12
|
+
text: JSON.stringify({
|
|
13
|
+
app_id,
|
|
14
|
+
status: 'no reports available',
|
|
15
|
+
message: 'No test reports found. Run tests first with run_tests.',
|
|
16
|
+
}, null, 2),
|
|
17
|
+
}],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
content: [
|
|
22
|
+
{
|
|
23
|
+
type: 'text',
|
|
24
|
+
text: JSON.stringify({
|
|
25
|
+
app_id,
|
|
26
|
+
report_path: latest.path,
|
|
27
|
+
summary: latest.jsonResult
|
|
28
|
+
? {
|
|
29
|
+
total: latest.jsonResult.total,
|
|
30
|
+
passed: latest.jsonResult.passed,
|
|
31
|
+
failed: latest.jsonResult.failed,
|
|
32
|
+
skipped: latest.jsonResult.skipped,
|
|
33
|
+
timedOut: latest.jsonResult.timedOut,
|
|
34
|
+
duration: latest.jsonResult.duration,
|
|
35
|
+
timestamp: latest.jsonResult.meta?.timestamp,
|
|
36
|
+
}
|
|
37
|
+
: null,
|
|
38
|
+
}, null, 2),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'text',
|
|
42
|
+
text: latest.markdown,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=get-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-report.js","sourceRoot":"","sources":["../../src/tools/get-report.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,UAAU,iBAAiB,CAAC,MAAiB,EAAE,WAAwB;IAC3E,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE;QAChC,WAAW,EAAE,qEAAqE;QAClF,WAAW,EAAE,eAAe;KAC7B,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACtB,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEnD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;gBACL,OAAO,EAAE,CAAC;wBACR,IAAI,EAAE,MAAe;wBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;4BACnB,MAAM;4BACN,MAAM,EAAE,sBAAsB;4BAC9B,OAAO,EAAE,wDAAwD;yBAClE,EAAE,IAAI,EAAE,CAAC,CAAC;qBACZ,CAAC;aACH,CAAC;QACJ,CAAC;QAED,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,MAAM;wBACN,WAAW,EAAE,MAAM,CAAC,IAAI;wBACxB,OAAO,EAAE,MAAM,CAAC,UAAU;4BACxB,CAAC,CAAC;gCACE,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK;gCAC9B,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM;gCAChC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM;gCAChC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO;gCAClC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;gCACpC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;gCACpC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS;6BAC7C;4BACH,CAAC,CAAC,IAAI;qBACT,EAAE,IAAI,EAAE,CAAC,CAAC;iBACZ;gBACD;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,MAAM,CAAC,QAAQ;iBACtB;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import type { AppRegistry } from '../registry/registry.js';
|
|
3
|
+
export declare function registerGetSelectors(server: McpServer, registry: AppRegistry): void;
|
|
4
|
+
//# sourceMappingURL=get-selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-selectors.d.ts","sourceRoot":"","sources":["../../src/tools/get-selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG3D,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,QAgB5E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getSelectorsSchema } from '../schemas/tools.js';
|
|
2
|
+
export function registerGetSelectors(server, registry) {
|
|
3
|
+
server.registerTool('get_selectors', {
|
|
4
|
+
description: 'Get UI selector mappings for an app (used for test code generation)',
|
|
5
|
+
inputSchema: getSelectorsSchema,
|
|
6
|
+
}, async ({ app_id }) => {
|
|
7
|
+
const selectors = await registry.getSelectors(app_id);
|
|
8
|
+
if (!selectors) {
|
|
9
|
+
return {
|
|
10
|
+
content: [{ type: 'text', text: `No selectors found for app: ${app_id}` }],
|
|
11
|
+
isError: true,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
content: [{ type: 'text', text: JSON.stringify(selectors, null, 2) }],
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=get-selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-selectors.js","sourceRoot":"","sources":["../../src/tools/get-selectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,UAAU,oBAAoB,CAAC,MAAiB,EAAE,QAAqB;IAC3E,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE;QACnC,WAAW,EAAE,qEAAqE;QAClF,WAAW,EAAE,kBAAkB;KAChC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;QACtB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,+BAA+B,MAAM,EAAE,EAAE,CAAC;gBACnF,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;SAC/E,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-apps.d.ts","sourceRoot":"","sources":["../../src/tools/list-apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,QAMxE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function registerListApps(server, registry) {
|
|
2
|
+
server.registerTool('list_apps', {
|
|
3
|
+
description: 'List all registered apps in the registry',
|
|
4
|
+
}, async () => ({
|
|
5
|
+
content: [{ type: 'text', text: JSON.stringify(registry.listApps(), null, 2) }],
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=list-apps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-apps.js","sourceRoot":"","sources":["../../src/tools/list-apps.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,gBAAgB,CAAC,MAAiB,EAAE,QAAqB;IACvE,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE;QAC/B,WAAW,EAAE,0CAA0C;KACxD,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QACd,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;KACzF,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import type { TestStore } from '../store/test-store.js';
|
|
3
|
+
import type { TestStatusStore } from '../store/test-status-store.js';
|
|
4
|
+
import type { AppRegistry } from '../registry/registry.js';
|
|
5
|
+
import type { ReportStore } from '../report/report-store.js';
|
|
6
|
+
export declare function registerRunTests(server: McpServer, store: TestStore, registry: AppRegistry, reportStore: ReportStore, statusStore: TestStatusStore): void;
|
|
7
|
+
//# sourceMappingURL=run-tests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-tests.d.ts","sourceRoot":"","sources":["../../src/tools/run-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAU7D,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,eAAe,QAiP7B"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { runTestsSchema } from '../schemas/tools.js';
|
|
2
|
+
import { runPlaywrightTests } from '@sentinel-qa/playwright-runner';
|
|
3
|
+
import { runMaestroTests } from '@sentinel-qa/maestro-bridge';
|
|
4
|
+
import { validateEvents } from '../event-validation/index.js';
|
|
5
|
+
import { logger } from '../utils/logger.js';
|
|
6
|
+
export function registerRunTests(server, store, registry, reportStore, statusStore) {
|
|
7
|
+
server.registerTool('run_tests', {
|
|
8
|
+
description: 'Run tests for an app (long-running, supports progress notifications)',
|
|
9
|
+
inputSchema: runTestsSchema,
|
|
10
|
+
}, async ({ app_id, suite, platform, validate_events: shouldValidateEvents, include_quarantine }) => {
|
|
11
|
+
let tests = store.get(app_id);
|
|
12
|
+
if (!tests || tests.length === 0) {
|
|
13
|
+
return {
|
|
14
|
+
content: [{ type: 'text', text: `No tests found for app: ${app_id}` }],
|
|
15
|
+
isError: true,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
// Filter by quarantine status
|
|
19
|
+
const statuses = await statusStore.load(app_id);
|
|
20
|
+
const statusMap = new Map(statuses.map((s) => [s.id, s]));
|
|
21
|
+
tests = tests.filter((test) => {
|
|
22
|
+
const status = statusMap.get(test.id);
|
|
23
|
+
if (!status)
|
|
24
|
+
return true; // new tests are included
|
|
25
|
+
if (status.status === 'rejected')
|
|
26
|
+
return false;
|
|
27
|
+
if (status.status === 'quarantine')
|
|
28
|
+
return include_quarantine === true;
|
|
29
|
+
return true; // 'new' and 'stable' are always included
|
|
30
|
+
});
|
|
31
|
+
if (tests.length === 0) {
|
|
32
|
+
return {
|
|
33
|
+
content: [{
|
|
34
|
+
type: 'text',
|
|
35
|
+
text: `All tests for app "${app_id}" are quarantined or rejected. Use include_quarantine: true to run quarantined tests.`,
|
|
36
|
+
}],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
// Determine target platform from registry if not specified
|
|
41
|
+
const app = registry.getApp(app_id);
|
|
42
|
+
const targetPlatform = platform ?? (app?.type === 'web' ? 'web' : undefined);
|
|
43
|
+
// Filter tests by platform if specified
|
|
44
|
+
const filteredTests = targetPlatform === 'web'
|
|
45
|
+
? tests.filter((t) => t.platform.includes('web'))
|
|
46
|
+
: targetPlatform === 'ios' || targetPlatform === 'android'
|
|
47
|
+
? tests.filter((t) => t.platform.includes('flutter'))
|
|
48
|
+
: tests;
|
|
49
|
+
if (filteredTests.length === 0) {
|
|
50
|
+
return {
|
|
51
|
+
content: [{
|
|
52
|
+
type: 'text',
|
|
53
|
+
text: `No tests found for app "${app_id}" matching platform: ${targetPlatform}`,
|
|
54
|
+
}],
|
|
55
|
+
isError: true,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// Route to the appropriate runner
|
|
59
|
+
if (targetPlatform === 'web') {
|
|
60
|
+
const testInputs = filteredTests.map((t) => ({
|
|
61
|
+
id: t.id,
|
|
62
|
+
title: t.title,
|
|
63
|
+
code: t.code,
|
|
64
|
+
}));
|
|
65
|
+
logger.info(`Running ${testInputs.length} Playwright tests for app: ${app_id}`);
|
|
66
|
+
let result;
|
|
67
|
+
try {
|
|
68
|
+
result = await runPlaywrightTests(testInputs, {
|
|
69
|
+
timeout: 30_000,
|
|
70
|
+
headless: true,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
logger.error('Playwright runner error:', err);
|
|
75
|
+
return {
|
|
76
|
+
content: [{
|
|
77
|
+
type: 'text',
|
|
78
|
+
text: `Playwright runner failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
79
|
+
}],
|
|
80
|
+
isError: true,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
// Record run results in status store
|
|
84
|
+
for (const testResult of result.tests) {
|
|
85
|
+
await statusStore.recordRun(app_id, testResult.id, testResult.status === 'passed');
|
|
86
|
+
}
|
|
87
|
+
// Event validation (data log QA)
|
|
88
|
+
let eventValidation;
|
|
89
|
+
if (shouldValidateEvents) {
|
|
90
|
+
try {
|
|
91
|
+
const eventSpec = await registry.getEventSpec(app_id);
|
|
92
|
+
if (eventSpec) {
|
|
93
|
+
// In a real implementation, captured events would come from
|
|
94
|
+
// Playwright network interception during test execution.
|
|
95
|
+
// For now, we accept captured events stored alongside test results.
|
|
96
|
+
// This will be fully integrated when the Playwright runner
|
|
97
|
+
// supports event capture via page.on('request').
|
|
98
|
+
const capturedEvents = [];
|
|
99
|
+
logger.info(`Validating ${eventSpec.events.length} event specs for app: ${app_id}`);
|
|
100
|
+
eventValidation = validateEvents(eventSpec.events, capturedEvents);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
logger.warn(`No event spec found for app: ${app_id}, skipping event validation`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
catch (err) {
|
|
107
|
+
logger.warn('Event validation error:', err);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Save report to disk
|
|
111
|
+
let reportPath;
|
|
112
|
+
try {
|
|
113
|
+
reportPath = await reportStore.save(result, {
|
|
114
|
+
appId: app_id,
|
|
115
|
+
suite: suite ?? 'all',
|
|
116
|
+
platform: 'web',
|
|
117
|
+
}, eventValidation);
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
logger.warn('Failed to save report:', err);
|
|
121
|
+
}
|
|
122
|
+
const response = {
|
|
123
|
+
app_id,
|
|
124
|
+
suite: suite ?? 'all',
|
|
125
|
+
platform: 'web',
|
|
126
|
+
total: result.total,
|
|
127
|
+
passed: result.passed,
|
|
128
|
+
failed: result.failed,
|
|
129
|
+
skipped: result.skipped,
|
|
130
|
+
timedOut: result.timedOut,
|
|
131
|
+
duration: result.duration,
|
|
132
|
+
tests: result.tests,
|
|
133
|
+
report_path: reportPath,
|
|
134
|
+
};
|
|
135
|
+
if (eventValidation) {
|
|
136
|
+
response.event_validation = eventValidation;
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
content: [{
|
|
140
|
+
type: 'text',
|
|
141
|
+
text: JSON.stringify(response, null, 2),
|
|
142
|
+
}],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
// Flutter (Maestro)
|
|
146
|
+
if (targetPlatform === 'ios' || targetPlatform === 'android') {
|
|
147
|
+
const maestroInputs = filteredTests.map((t) => ({
|
|
148
|
+
id: t.id,
|
|
149
|
+
title: t.title,
|
|
150
|
+
yaml: t.code,
|
|
151
|
+
}));
|
|
152
|
+
logger.info(`Running ${maestroInputs.length} Maestro tests for app: ${app_id} on ${targetPlatform}`);
|
|
153
|
+
try {
|
|
154
|
+
const maestroResult = await runMaestroTests(maestroInputs, {
|
|
155
|
+
signal: undefined,
|
|
156
|
+
onProgress: (current, total, testTitle) => {
|
|
157
|
+
logger.info(`[${current}/${total}] Running: ${testTitle}`);
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
// Record run results
|
|
161
|
+
for (const testResult of maestroResult.tests) {
|
|
162
|
+
await statusStore.recordRun(app_id, testResult.id, testResult.status === 'passed');
|
|
163
|
+
}
|
|
164
|
+
// Save report
|
|
165
|
+
let reportPath;
|
|
166
|
+
try {
|
|
167
|
+
const runResult = {
|
|
168
|
+
passed: maestroResult.passed,
|
|
169
|
+
failed: maestroResult.failed,
|
|
170
|
+
skipped: 0,
|
|
171
|
+
timedOut: 0,
|
|
172
|
+
total: maestroResult.total,
|
|
173
|
+
duration: maestroResult.duration,
|
|
174
|
+
tests: maestroResult.tests.map((t) => ({
|
|
175
|
+
id: t.id,
|
|
176
|
+
title: t.title,
|
|
177
|
+
status: t.status === 'cancelled' ? 'skipped' : t.status,
|
|
178
|
+
duration: t.duration,
|
|
179
|
+
error: t.error,
|
|
180
|
+
})),
|
|
181
|
+
};
|
|
182
|
+
reportPath = await reportStore.save(runResult, {
|
|
183
|
+
appId: app_id,
|
|
184
|
+
suite: suite ?? 'all',
|
|
185
|
+
platform: targetPlatform,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
catch (err) {
|
|
189
|
+
logger.warn('Failed to save report:', err);
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
content: [{
|
|
193
|
+
type: 'text',
|
|
194
|
+
text: JSON.stringify({
|
|
195
|
+
app_id,
|
|
196
|
+
suite: suite ?? 'all',
|
|
197
|
+
platform: targetPlatform,
|
|
198
|
+
...maestroResult,
|
|
199
|
+
report_path: reportPath,
|
|
200
|
+
}, null, 2),
|
|
201
|
+
}],
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
catch (err) {
|
|
205
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
206
|
+
logger.error(`Maestro test execution failed: ${message}`);
|
|
207
|
+
return {
|
|
208
|
+
content: [{
|
|
209
|
+
type: 'text',
|
|
210
|
+
text: `Maestro test execution failed: ${message}`,
|
|
211
|
+
}],
|
|
212
|
+
isError: true,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
// No specific platform — return stub
|
|
217
|
+
return {
|
|
218
|
+
content: [{
|
|
219
|
+
type: 'text',
|
|
220
|
+
text: JSON.stringify({
|
|
221
|
+
app_id,
|
|
222
|
+
suite: suite ?? 'all',
|
|
223
|
+
platform: 'all',
|
|
224
|
+
total: filteredTests.length,
|
|
225
|
+
passed: filteredTests.length,
|
|
226
|
+
failed: 0,
|
|
227
|
+
status: 'stub — specify platform for actual execution',
|
|
228
|
+
}, null, 2),
|
|
229
|
+
}],
|
|
230
|
+
};
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=run-tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-tests.js","sourceRoot":"","sources":["../../src/tools/run-tests.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,UAAU,gBAAgB,CAC9B,MAAiB,EACjB,KAAgB,EAChB,QAAqB,EACrB,WAAwB,EACxB,WAA4B;IAE5B,MAAM,CAAC,YAAY,CAAC,WAAW,EAAE;QA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,EAAE,CAAC,CAAC;gBAC1D,OAAO;oBACL,OAAO,EAAE,CAAC;4BACR,IAAI,EAAE,MAAe;4BACrB,IAAI,EAAE,kCAAkC,OAAO,EAAE;yBAClD,CAAC;oBACF,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;QACH,CAAC;QAED,qCAAqC;QACrC,OAAO;YACL,OAAO,EAAE,CAAC;oBACR,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;wBACnB,MAAM;wBACN,KAAK,EAAE,KAAK,IAAI,KAAK;wBACrB,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,aAAa,CAAC,MAAM;wBAC3B,MAAM,EAAE,aAAa,CAAC,MAAM;wBAC5B,MAAM,EAAE,CAAC;wBACT,MAAM,EAAE,8CAA8C;qBACvD,EAAE,IAAI,EAAE,CAAC,CAAC;iBACZ,CAAC;SACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-tests.d.ts","sourceRoot":"","sources":["../../src/tools/save-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,QAUpE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { saveTestsSchema } from '../schemas/tools.js';
|
|
2
|
+
export function registerSaveTests(server, store) {
|
|
3
|
+
server.registerTool('save_tests', {
|
|
4
|
+
description: 'Save generated test cases/code',
|
|
5
|
+
inputSchema: saveTestsSchema,
|
|
6
|
+
}, async ({ app_id, test_cases }) => {
|
|
7
|
+
store.save(app_id, test_cases);
|
|
8
|
+
return {
|
|
9
|
+
content: [{ type: 'text', text: `${test_cases.length} test(s) saved for ${app_id}` }],
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=save-tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-tests.js","sourceRoot":"","sources":["../../src/tools/save-tests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,UAAU,iBAAiB,CAAC,MAAiB,EAAE,KAAgB;IACnE,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE;QAChC,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,eAAe;KAC7B,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC/B,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,MAAM,sBAAsB,MAAM,EAAE,EAAE,CAAC;SAC/F,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;oBACD,OAAO,EAAE;oBACT,OAAO,EAAE;qBACR,OAAO,EAAE;qBACT,OAAO,EAAE;CAK3B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const logger = {
|
|
2
|
+
info: (...args) => console.error('[sentinel-qa]', ...args),
|
|
3
|
+
warn: (...args) => console.error('[sentinel-qa:warn]', ...args),
|
|
4
|
+
error: (...args) => console.error('[sentinel-qa:error]', ...args),
|
|
5
|
+
debug: (...args) => {
|
|
6
|
+
if (process.env.DEBUG) {
|
|
7
|
+
console.error('[sentinel-qa:debug]', ...args);
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IACrE,IAAI,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,GAAG,IAAI,CAAC;IAC1E,KAAK,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,IAAI,CAAC;IAC5E,KAAK,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE;QAC5B,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;YACtB,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,IAAI,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-loader.d.ts","sourceRoot":"","sources":["../../src/utils/yaml-loader.ts"],"names":[],"mappings":"AAGA,wBAAsB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAG9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-loader.js","sourceRoot":"","sources":["../../src/utils/yaml-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAI,QAAgB;IAChD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAClD,OAAO,KAAK,CAAC,OAAO,CAAM,CAAC;AAC7B,CAAC"}
|