@vostride/agent-qa-dashboard 0.0.1 → 0.1.2

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.
@@ -0,0 +1,100 @@
1
+ import { D as DashboardDatabase } from './index-CmNQ5PbF.cjs';
2
+ export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-CmNQ5PbF.cjs';
3
+ import { Reporter, SecretRedactor, SuiteDefinition, RunArtifactReporterContext, SuiteSummary, TestDefinition, StepResult, TestResult, RunSummary, HookResultEvent } from '@vostride/agent-qa-core';
4
+ import 'node:http';
5
+ import '@vostride/agent-qa-mcp';
6
+ import 'yaml';
7
+ import 'node:events';
8
+ import 'node:child_process';
9
+
10
+ declare const SCHEMA_VERSION = 1;
11
+ interface DashboardMigration {
12
+ version: number;
13
+ sql: string[];
14
+ }
15
+ declare const MIGRATIONS: DashboardMigration[];
16
+
17
+ interface RunIdMigrationOptions {
18
+ dbPath: string;
19
+ screenshotsDir?: string;
20
+ videosDir?: string;
21
+ logger?: (message: string) => void;
22
+ }
23
+ interface RunIdMigrationResult {
24
+ migratedRunCount: number;
25
+ totalRunCount: number;
26
+ runIdMap: Record<string, string>;
27
+ preservedRunIds: string[];
28
+ updatedScreenshotRows: number;
29
+ updatedVideoRows: number;
30
+ renamedScreenshotDirs: Array<{
31
+ from: string;
32
+ to: string;
33
+ }>;
34
+ renamedVideoDirs: Array<{
35
+ from: string;
36
+ to: string;
37
+ }>;
38
+ missingArtifacts: string[];
39
+ }
40
+ declare function migrateWorkspaceRunIds({ dbPath, screenshotsDir, videosDir, logger, }: RunIdMigrationOptions): Promise<RunIdMigrationResult>;
41
+
42
+ interface ResolveDashboardDbPathOptions {
43
+ configDir: string;
44
+ configuredDbPath?: string;
45
+ }
46
+ declare function resolveDashboardDbPath({ configDir, configuredDbPath, }: ResolveDashboardDbPathOptions): string;
47
+
48
+ type ArtifactReporterContext = RunArtifactReporterContext;
49
+ declare class DashboardReporter implements Reporter {
50
+ private db;
51
+ private artifactsDir;
52
+ private suiteRunId;
53
+ private currentSuiteId;
54
+ private runIdToState;
55
+ private executionKeyToRunId;
56
+ private nameToCurrentRunId;
57
+ private completedResultRunIds;
58
+ private runStartTime;
59
+ private onRunCreated?;
60
+ private redactor?;
61
+ constructor({ db, artifactsDir, onRunCreated, redactor, }: {
62
+ db: DashboardDatabase;
63
+ artifactsDir?: string;
64
+ onRunCreated?: (runId: string) => void;
65
+ redactor?: SecretRedactor;
66
+ });
67
+ private redactValue;
68
+ private redactString;
69
+ private sanitizeSecretsFileMetadata;
70
+ private sanitizeArtifactPayload;
71
+ private fallbackAttributes;
72
+ private readAttributesFromEnv;
73
+ private resolveAttributes;
74
+ private withAttributeMetadata;
75
+ onSuiteStart(suite: SuiteDefinition, context?: ArtifactReporterContext): void;
76
+ onSuiteEnd(summary: SuiteSummary): void;
77
+ onRunStart(_tests: TestDefinition[]): void;
78
+ onTestStart(test: TestDefinition, filePath: string, context?: ArtifactReporterContext): Promise<void>;
79
+ onStepEnd(result: StepResult, testName: string): Promise<void>;
80
+ onTestEnd(result: TestResult): Promise<void>;
81
+ onRunEnd(summary: RunSummary): void;
82
+ onHookEnd(event: HookResultEvent): void;
83
+ private getCurrentRunId;
84
+ private createExecutionKey;
85
+ private getStateByTestName;
86
+ private getStateForResult;
87
+ private deleteState;
88
+ private resultKey;
89
+ private buildResultErrorLog;
90
+ private writeArtifact;
91
+ private stageSuiteChildLink;
92
+ private stageSuiteSummary;
93
+ private buildSuiteMemoryAggregate;
94
+ private persistStep;
95
+ private saveScreenshot;
96
+ private saveHealingScreenshot;
97
+ private saveSubActionScreenshot;
98
+ }
99
+
100
+ export { DashboardDatabase, DashboardReporter, MIGRATIONS, type ResolveDashboardDbPathOptions, type RunIdMigrationOptions, type RunIdMigrationResult, SCHEMA_VERSION, migrateWorkspaceRunIds, resolveDashboardDbPath };
@@ -0,0 +1,100 @@
1
+ import { D as DashboardDatabase } from './index-CmNQ5PbF.js';
2
+ export { A as AppiumManager, C as ConfigManager, L as LiveExecutionEvent, R as RunRow, S as StepRow, T as TestFileInfo, a as TestFileManager, b as TestRunHandle, c as TestRunner, d as TestValidationError, e as TestValidationResult, f as createRouter, r as readJsonBody, s as startServer } from './index-CmNQ5PbF.js';
3
+ import { Reporter, SecretRedactor, SuiteDefinition, RunArtifactReporterContext, SuiteSummary, TestDefinition, StepResult, TestResult, RunSummary, HookResultEvent } from '@vostride/agent-qa-core';
4
+ import 'node:http';
5
+ import '@vostride/agent-qa-mcp';
6
+ import 'yaml';
7
+ import 'node:events';
8
+ import 'node:child_process';
9
+
10
+ declare const SCHEMA_VERSION = 1;
11
+ interface DashboardMigration {
12
+ version: number;
13
+ sql: string[];
14
+ }
15
+ declare const MIGRATIONS: DashboardMigration[];
16
+
17
+ interface RunIdMigrationOptions {
18
+ dbPath: string;
19
+ screenshotsDir?: string;
20
+ videosDir?: string;
21
+ logger?: (message: string) => void;
22
+ }
23
+ interface RunIdMigrationResult {
24
+ migratedRunCount: number;
25
+ totalRunCount: number;
26
+ runIdMap: Record<string, string>;
27
+ preservedRunIds: string[];
28
+ updatedScreenshotRows: number;
29
+ updatedVideoRows: number;
30
+ renamedScreenshotDirs: Array<{
31
+ from: string;
32
+ to: string;
33
+ }>;
34
+ renamedVideoDirs: Array<{
35
+ from: string;
36
+ to: string;
37
+ }>;
38
+ missingArtifacts: string[];
39
+ }
40
+ declare function migrateWorkspaceRunIds({ dbPath, screenshotsDir, videosDir, logger, }: RunIdMigrationOptions): Promise<RunIdMigrationResult>;
41
+
42
+ interface ResolveDashboardDbPathOptions {
43
+ configDir: string;
44
+ configuredDbPath?: string;
45
+ }
46
+ declare function resolveDashboardDbPath({ configDir, configuredDbPath, }: ResolveDashboardDbPathOptions): string;
47
+
48
+ type ArtifactReporterContext = RunArtifactReporterContext;
49
+ declare class DashboardReporter implements Reporter {
50
+ private db;
51
+ private artifactsDir;
52
+ private suiteRunId;
53
+ private currentSuiteId;
54
+ private runIdToState;
55
+ private executionKeyToRunId;
56
+ private nameToCurrentRunId;
57
+ private completedResultRunIds;
58
+ private runStartTime;
59
+ private onRunCreated?;
60
+ private redactor?;
61
+ constructor({ db, artifactsDir, onRunCreated, redactor, }: {
62
+ db: DashboardDatabase;
63
+ artifactsDir?: string;
64
+ onRunCreated?: (runId: string) => void;
65
+ redactor?: SecretRedactor;
66
+ });
67
+ private redactValue;
68
+ private redactString;
69
+ private sanitizeSecretsFileMetadata;
70
+ private sanitizeArtifactPayload;
71
+ private fallbackAttributes;
72
+ private readAttributesFromEnv;
73
+ private resolveAttributes;
74
+ private withAttributeMetadata;
75
+ onSuiteStart(suite: SuiteDefinition, context?: ArtifactReporterContext): void;
76
+ onSuiteEnd(summary: SuiteSummary): void;
77
+ onRunStart(_tests: TestDefinition[]): void;
78
+ onTestStart(test: TestDefinition, filePath: string, context?: ArtifactReporterContext): Promise<void>;
79
+ onStepEnd(result: StepResult, testName: string): Promise<void>;
80
+ onTestEnd(result: TestResult): Promise<void>;
81
+ onRunEnd(summary: RunSummary): void;
82
+ onHookEnd(event: HookResultEvent): void;
83
+ private getCurrentRunId;
84
+ private createExecutionKey;
85
+ private getStateByTestName;
86
+ private getStateForResult;
87
+ private deleteState;
88
+ private resultKey;
89
+ private buildResultErrorLog;
90
+ private writeArtifact;
91
+ private stageSuiteChildLink;
92
+ private stageSuiteSummary;
93
+ private buildSuiteMemoryAggregate;
94
+ private persistStep;
95
+ private saveScreenshot;
96
+ private saveHealingScreenshot;
97
+ private saveSubActionScreenshot;
98
+ }
99
+
100
+ export { DashboardDatabase, DashboardReporter, MIGRATIONS, type ResolveDashboardDbPathOptions, type RunIdMigrationOptions, type RunIdMigrationResult, SCHEMA_VERSION, migrateWorkspaceRunIds, resolveDashboardDbPath };