donobu 5.41.0 → 5.41.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.
@@ -1,69 +0,0 @@
1
- /**
2
- * Library entrypoint for Donobu Site Test Generator (coverage-aware).
3
- *
4
- * Use `runGenerateSiteTests(options, onProgress?, shouldCancel?)` to invoke programmatically.
5
- */
6
- type DiscoveryTestCase = {
7
- title: string;
8
- objective: string;
9
- assertions: string[];
10
- category?: string;
11
- startUrl?: string;
12
- dependsOnAuth?: boolean;
13
- dataNeeds?: string[];
14
- priority?: 'P0' | 'P1' | 'P2';
15
- };
16
- type DiscoveryResult = {
17
- siteProfile: {
18
- siteType: string;
19
- primaryAudiences: string[];
20
- requiresAuth: boolean;
21
- authNotes?: string;
22
- keyJourneys: string[];
23
- riskAreas: string[];
24
- };
25
- testCases: DiscoveryTestCase[];
26
- };
27
- export type GenerateSiteTestsOptions = {
28
- url: string;
29
- outDir?: string;
30
- storageStatePath?: string;
31
- maxTests?: number;
32
- maxDiscoverySteps?: number;
33
- maxTestSteps?: number;
34
- gptConfigName?: string;
35
- playwrightVariant?: 'ai' | 'classic';
36
- headed?: boolean;
37
- slowMo?: number;
38
- disableSelfHeal?: boolean;
39
- /** Explicit tool allowlist for discovery and test flows. If provided, only these tools are enabled. */
40
- toolAllowlist?: string[];
41
- /** Tool denylist to disable specific tools. Applied after allowlist. */
42
- toolDenylist?: string[];
43
- };
44
- export type ProgressEvent = {
45
- type: 'log';
46
- level?: 'info' | 'warn' | 'error';
47
- message: string;
48
- } | {
49
- type: 'flow';
50
- stage: 'start' | 'end';
51
- flowId: string;
52
- name?: string;
53
- } | {
54
- type: 'stdout';
55
- data: string;
56
- } | {
57
- type: 'summary';
58
- data: {
59
- projectDir: string;
60
- newlyGeneratedTests: number;
61
- totalPlannedTests: number;
62
- requiresAuth: boolean;
63
- usedStorageState: boolean;
64
- siteProfile?: DiscoveryResult['siteProfile'];
65
- };
66
- };
67
- export declare function runGenerateSiteTests(opts: GenerateSiteTestsOptions, onProgress?: (event: ProgressEvent) => void, shouldCancel?: () => boolean): Promise<void>;
68
- export {};
69
- //# sourceMappingURL=runGenerateSiteTests.d.ts.map