@cappa/core 0.17.0 → 0.19.0
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/index.cjs +439 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -77
- package/dist/index.d.mts +146 -77
- package/dist/index.mjs +433 -177
- package/dist/index.mjs.map +1 -1
- package/dist/playwright.cjs +77 -0
- package/dist/playwright.cjs.map +1 -0
- package/dist/playwright.d.cts +117 -0
- package/dist/playwright.d.mts +117 -0
- package/dist/playwright.mjs +73 -0
- package/dist/playwright.mjs.map +1 -0
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BrowserConfig, BrowserInstance, BrowserName, BrowserProvider, ContainerOptions, DEFAULT_CONTAINER_IMAGE, PlaywrightProviderOptions, ResolvedBrowserConfig, ResolvedContainerOptions, playwright, resolveBrowserConfig, resolveContainerOptions } from "./playwright.mjs";
|
|
1
2
|
import "@blazediff/gmsd";
|
|
2
3
|
import { Logger } from "@cappa/logger";
|
|
3
4
|
import "@blazediff/core-native";
|
|
@@ -5,49 +6,37 @@ import { BoundingBox, ChangeRegion, InterpretResult, InterpretResult as Interpre
|
|
|
5
6
|
import { Browser, BrowserContext, ConsoleMessage, Locator, Page } from "playwright-core";
|
|
6
7
|
//#region src/agent/verdict.d.ts
|
|
7
8
|
/**
|
|
8
|
-
* What a
|
|
9
|
+
* What a judge believes a changed screenshot is, after looking at it.
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Only a judge labels a change. Cappa's diff threshold already absorbs
|
|
12
|
+
* sub-pixel rendering differences, so a screenshot that reaches `changed`
|
|
13
|
+
* differs beyond the tolerance the project configured — and classifying it
|
|
14
|
+
* from diff signals alone (change types, severity, pixel counts) proved to
|
|
15
|
+
* mislabel exactly the changes that matter: a font-size change reads as a
|
|
16
|
+
* harmless shift plus recolour. Every changed screenshot is looked at instead.
|
|
13
17
|
*/
|
|
14
|
-
export declare const VERDICT_LABELS: readonly ["regression-likely", "intentional-likely", "noise-likely"
|
|
18
|
+
export declare const VERDICT_LABELS: readonly ["regression-likely", "intentional-likely", "noise-likely"];
|
|
15
19
|
type VerdictLabel = (typeof VERDICT_LABELS)[number];
|
|
16
|
-
/** The labels a judge may hand back — everything but `ambiguous`. */
|
|
17
|
-
export declare const JUDGED_LABELS: readonly ["regression-likely", "intentional-likely", "noise-likely"];
|
|
18
|
-
type JudgedLabel = (typeof JUDGED_LABELS)[number];
|
|
19
20
|
/** What to do next with a screenshot carrying a label. */
|
|
20
21
|
type VerdictAction = "investigate" | "approve-if-intended" | "mask-or-approve";
|
|
21
22
|
export declare const ACTION_BY_LABEL: Record<VerdictLabel, VerdictAction>;
|
|
22
23
|
type Verdict = {
|
|
23
24
|
label: VerdictLabel;
|
|
24
|
-
/** One line, e.g. `
|
|
25
|
+
/** One line, e.g. `Submit button label is truncated`. */
|
|
25
26
|
headline: string;
|
|
26
27
|
rationale: string[];
|
|
27
28
|
action: VerdictAction;
|
|
28
29
|
};
|
|
29
30
|
export declare const isVerdictLabel: (value: unknown) => value is VerdictLabel;
|
|
30
|
-
export declare const isJudgedLabel: (value: unknown) => value is JudgedLabel;
|
|
31
31
|
/**
|
|
32
32
|
* Change types are normalised to kebab-case before they are compared.
|
|
33
33
|
*
|
|
34
34
|
* `@blazediff/interpret-native` reports `color-change` today but earlier
|
|
35
|
-
* releases reported `ColorChange`; normalising keeps the
|
|
36
|
-
* across a diff-engine upgrade
|
|
37
|
-
* to `ambiguous`.
|
|
35
|
+
* releases reported `ColorChange`; normalising keeps the capture report's
|
|
36
|
+
* labels working across a diff-engine upgrade.
|
|
38
37
|
*/
|
|
39
38
|
export declare const normalizeChangeType: (changeType: string) => string;
|
|
40
|
-
|
|
41
|
-
* At or below this many differing pixels, a low-severity change is not
|
|
42
|
-
* perceptible.
|
|
43
|
-
*
|
|
44
|
-
* An absolute count rather than a share of the image: a share depends on how
|
|
45
|
-
* much empty canvas surrounds the content, so the same changed glyph would be
|
|
46
|
-
* noise in a 1920x1080 capture and a regression in a tight crop of the
|
|
47
|
-
* component. The pixels that changed are the same either way.
|
|
48
|
-
*/
|
|
49
|
-
export declare const SUB_PERCEPTUAL_PIXELS = 25;
|
|
50
|
-
type VerdictInput = {
|
|
39
|
+
type ChangeInput = {
|
|
51
40
|
/** Percentage of differing pixels (0-100), from the pixel diff. */
|
|
52
41
|
percentDifference?: number;
|
|
53
42
|
numDiffPixels?: number;
|
|
@@ -60,21 +49,16 @@ type VerdictInput = {
|
|
|
60
49
|
differentSizes?: boolean;
|
|
61
50
|
};
|
|
62
51
|
/**
|
|
63
|
-
* A one-line description of
|
|
64
|
-
* on different screenshots produces the same
|
|
65
|
-
*
|
|
66
|
-
* dozens of screenshots
|
|
67
|
-
*/
|
|
68
|
-
export declare const buildHeadline: (input: VerdictInput) => string;
|
|
69
|
-
/**
|
|
70
|
-
* Classify a changed screenshot from its diff interpretation alone.
|
|
52
|
+
* A one-line description of where and how much a screenshot changed, shaped
|
|
53
|
+
* so that the same change on different screenshots produces the same text —
|
|
54
|
+
* which is what lets a judge spot one shared cause (a footer timestamp, a
|
|
55
|
+
* theme toggle) across dozens of screenshots and judge them together.
|
|
71
56
|
*
|
|
72
|
-
* Deliberately
|
|
73
|
-
*
|
|
74
|
-
* at
|
|
75
|
-
* `ambiguous` costs one look.
|
|
57
|
+
* Deliberately geometry only: no change types, no severity. Those are guesses
|
|
58
|
+
* from pixel signals, and a judge primed with "noise" or "shift" looks less
|
|
59
|
+
* carefully at what is in fact a regression.
|
|
76
60
|
*/
|
|
77
|
-
export declare const
|
|
61
|
+
export declare const describeChange: (input: ChangeInput) => string;
|
|
78
62
|
//#endregion
|
|
79
63
|
//#region src/consoleEvents.d.ts
|
|
80
64
|
/**
|
|
@@ -197,6 +181,65 @@ export declare function compareImages(image1: string | Buffer, image2: string |
|
|
|
197
181
|
*/
|
|
198
182
|
export declare function imagesMatch(image1: string | Buffer, image2: string | Buffer, options?: DiffConfig): Promise<boolean>;
|
|
199
183
|
//#endregion
|
|
184
|
+
//#region src/container.d.ts
|
|
185
|
+
/**
|
|
186
|
+
* Runs the official Playwright image for an exact `playwright-core` version
|
|
187
|
+
* through a container CLI (docker, podman, nerdctl, …) and hands back the
|
|
188
|
+
* `run-server` endpoint.
|
|
189
|
+
*
|
|
190
|
+
* Only subcommands all of those CLIs share are used: `version`, `image
|
|
191
|
+
* inspect`, `pull`, `inspect`, `run`, `port`, `logs`, `ps` and `rm`.
|
|
192
|
+
*/
|
|
193
|
+
/** Label on every container cappa starts; `removePlaywrightContainers` finds them by it. */
|
|
194
|
+
export declare const CONTAINER_LABEL = "dev.cappa.playwright";
|
|
195
|
+
type ExecResult = {
|
|
196
|
+
stdout: string;
|
|
197
|
+
stderr: string;
|
|
198
|
+
};
|
|
199
|
+
type Exec = (file: string, args: string[]) => Promise<ExecResult>;
|
|
200
|
+
type PlaywrightContainer = {
|
|
201
|
+
/** `ws://127.0.0.1:<port>/` — pass to `browserType.connect()`. */
|
|
202
|
+
wsEndpoint: string;
|
|
203
|
+
/** Container name, `cappa-playwright-v<version>-<hash>`. */
|
|
204
|
+
name: string;
|
|
205
|
+
/** The image with `{version}` filled in. */
|
|
206
|
+
image: string;
|
|
207
|
+
/** `true` when an already running container was picked up. */
|
|
208
|
+
reused: boolean;
|
|
209
|
+
/** Remove the container. */
|
|
210
|
+
stop(): Promise<void>;
|
|
211
|
+
};
|
|
212
|
+
type EnsureContainerOptions = Omit<ResolvedContainerOptions, "keepAlive"> & {
|
|
213
|
+
/** Exact `playwright-core` version, e.g. `1.63.0`. */
|
|
214
|
+
version: string;
|
|
215
|
+
/**
|
|
216
|
+
* The host's `playwright-core` directory (symlinks resolved). Mounted
|
|
217
|
+
* read-only and run as the server, so the container needs no npm access and
|
|
218
|
+
* runs exactly the client's version — the image only supplies OS and
|
|
219
|
+
* browsers.
|
|
220
|
+
*/
|
|
221
|
+
packageDir: string;
|
|
222
|
+
log?: (message: string) => void;
|
|
223
|
+
/** Injection points for tests. */
|
|
224
|
+
exec?: Exec;
|
|
225
|
+
probe?: (url: string) => Promise<boolean>;
|
|
226
|
+
sleep?: (ms: number) => Promise<void>;
|
|
227
|
+
now?: () => number;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Start — or reuse — the Playwright server container for `version` and wait
|
|
231
|
+
* until it accepts connections.
|
|
232
|
+
*/
|
|
233
|
+
export declare function ensurePlaywrightContainer(options: EnsureContainerOptions): Promise<PlaywrightContainer>;
|
|
234
|
+
/**
|
|
235
|
+
* Remove every container cappa started, whatever its version. Returns their
|
|
236
|
+
* names.
|
|
237
|
+
*/
|
|
238
|
+
export declare function removePlaywrightContainers(options: {
|
|
239
|
+
cli: string;
|
|
240
|
+
exec?: Exec;
|
|
241
|
+
}): Promise<string[]>;
|
|
242
|
+
//#endregion
|
|
200
243
|
//#region src/filesystem.d.ts
|
|
201
244
|
/**
|
|
202
245
|
* Map a diff image path to its sidecar metadata path (`.png` -> `.json`).
|
|
@@ -615,8 +658,16 @@ type ScreenshotLogSink = (level: RunLogLevel, message: string, ...args: unknown[
|
|
|
615
658
|
*/
|
|
616
659
|
type ScreenshotCaptureSink = (page: Page, filename: string) => void;
|
|
617
660
|
declare class ScreenshotTool {
|
|
618
|
-
browserType:
|
|
661
|
+
browserType: BrowserName;
|
|
619
662
|
headless: boolean;
|
|
663
|
+
/** Browser provider, headless mode and instance — see `UserConfig.browser`. */
|
|
664
|
+
browserConfig: ResolvedBrowserConfig;
|
|
665
|
+
/**
|
|
666
|
+
* Set when the browser goes away underneath the tool — a remote browser
|
|
667
|
+
* server restarting, or a local browser crashing. `WarmBrowser` checks it so
|
|
668
|
+
* it starts a fresh browser instead of handing out a dead one.
|
|
669
|
+
*/
|
|
670
|
+
disconnected: boolean;
|
|
620
671
|
viewport: {
|
|
621
672
|
width: number;
|
|
622
673
|
height: number;
|
|
@@ -644,13 +695,20 @@ declare class ScreenshotTool {
|
|
|
644
695
|
filesystem: ScreenshotFileSystem;
|
|
645
696
|
logConsoleEvents: LogConsoleEvents;
|
|
646
697
|
connectionTimeout: number;
|
|
698
|
+
/** The container `init()` started or reused, when `container` is on. */
|
|
699
|
+
container: PlaywrightContainer | null;
|
|
647
700
|
private defaultUserAgent;
|
|
648
701
|
/** The real logger, kept so `setLogSink(null)` restores the same instance. */
|
|
649
702
|
private readonly baseLogger;
|
|
650
703
|
/** Set while a `CaptureRunner` owns this tool — see `setCaptureSink`. */
|
|
651
704
|
private captureSink;
|
|
652
705
|
constructor(options: {
|
|
653
|
-
|
|
706
|
+
/**
|
|
707
|
+
* Provider, headless mode and instance. When given, `browserType` and
|
|
708
|
+
* `headless` are ignored — they are derived from it.
|
|
709
|
+
*/
|
|
710
|
+
browser?: BrowserConfig;
|
|
711
|
+
browserType?: BrowserName;
|
|
654
712
|
headless?: boolean;
|
|
655
713
|
viewport?: {
|
|
656
714
|
width: number;
|
|
@@ -698,6 +756,10 @@ declare class ScreenshotTool {
|
|
|
698
756
|
init(): Promise<void>;
|
|
699
757
|
/**
|
|
700
758
|
* Create the pool of browser contexts and pages.
|
|
759
|
+
*
|
|
760
|
+
* `contextOptions` from the provider merge over cappa's defaults; the
|
|
761
|
+
* viewport and the `CappaStorybook` user-agent suffix always win, because
|
|
762
|
+
* plugins and `isCappa()` rely on them.
|
|
701
763
|
*/
|
|
702
764
|
private createContexts;
|
|
703
765
|
/**
|
|
@@ -1113,6 +1175,21 @@ type UserConfig = {
|
|
|
1113
1175
|
*/
|
|
1114
1176
|
crop?: CropSetting;
|
|
1115
1177
|
};
|
|
1178
|
+
/**
|
|
1179
|
+
* The browser screenshots are taken in. Shaped like Vitest browser mode's
|
|
1180
|
+
* `browser` block.
|
|
1181
|
+
*
|
|
1182
|
+
* @example
|
|
1183
|
+
* import { playwright } from "@cappa/core/playwright";
|
|
1184
|
+
*
|
|
1185
|
+
* browser: {
|
|
1186
|
+
* provider: playwright({
|
|
1187
|
+
* // unset → cappa launches a local browser
|
|
1188
|
+
* connectOptions: { wsEndpoint: process.env.CAPPA_BROWSER_WS },
|
|
1189
|
+
* }),
|
|
1190
|
+
* }
|
|
1191
|
+
*/
|
|
1192
|
+
browser?: BrowserConfig;
|
|
1116
1193
|
/**
|
|
1117
1194
|
* Configuration for the review UI.
|
|
1118
1195
|
*/
|
|
@@ -1197,20 +1274,23 @@ interface DiffMetadata {
|
|
|
1197
1274
|
interpretation?: InterpretResult$1;
|
|
1198
1275
|
}
|
|
1199
1276
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
* review UI
|
|
1277
|
+
* A judge's verdict on a changed screenshot, as applied by the last
|
|
1278
|
+
* `cappa agent check` and shown in the review UI.
|
|
1202
1279
|
*/
|
|
1203
1280
|
interface AgentReview {
|
|
1204
1281
|
label: VerdictLabel;
|
|
1205
1282
|
headline: string;
|
|
1206
1283
|
rationale: string[];
|
|
1207
1284
|
action: VerdictAction;
|
|
1208
|
-
/**
|
|
1209
|
-
|
|
1285
|
+
/**
|
|
1286
|
+
* Always `agent`: only a judge labels a change. The wire format also
|
|
1287
|
+
* allows `heuristic`, which engines before 0.18 sent.
|
|
1288
|
+
*/
|
|
1289
|
+
source: "agent";
|
|
1210
1290
|
/** 0-1, when the judge gave one. */
|
|
1211
1291
|
confidence?: number;
|
|
1212
|
-
/**
|
|
1213
|
-
pending:
|
|
1292
|
+
/** Always false: a screenshot awaiting judgment carries no review. */
|
|
1293
|
+
pending: false;
|
|
1214
1294
|
/** When the check that produced this ran (ISO 8601). */
|
|
1215
1295
|
reviewedAt: string;
|
|
1216
1296
|
}
|
|
@@ -1225,8 +1305,8 @@ type ChangedScreenshot = {
|
|
|
1225
1305
|
*/
|
|
1226
1306
|
diffMeta?: DiffMetadata;
|
|
1227
1307
|
/**
|
|
1228
|
-
* The last `cappa agent check
|
|
1229
|
-
* when either image changed since — a verdict about other pixels is not one
|
|
1308
|
+
* The judge's verdict from the last `cappa agent check`. Absent when it is
|
|
1309
|
+
* not judged yet, or when either image changed since — a verdict about other pixels is not one
|
|
1230
1310
|
* worth showing.
|
|
1231
1311
|
*/
|
|
1232
1312
|
review?: AgentReview;
|
|
@@ -1980,6 +2060,8 @@ type LocalEngineOptions = {
|
|
|
1980
2060
|
crop?: CropSetting;
|
|
1981
2061
|
viewport?: Viewport;
|
|
1982
2062
|
connectionTimeout?: number;
|
|
2063
|
+
/** Provider, headless mode and instance — see `UserConfig.browser`. */
|
|
2064
|
+
browser?: BrowserConfig;
|
|
1983
2065
|
/**
|
|
1984
2066
|
* How long the browser stays warm between runs.
|
|
1985
2067
|
* @default 300_000 (5 minutes)
|
|
@@ -2356,22 +2438,11 @@ export declare class FsScreenshotStore implements ScreenshotStore {
|
|
|
2356
2438
|
*/
|
|
2357
2439
|
export declare const AGENT_DIRNAME = ".cappa-agent";
|
|
2358
2440
|
/** Bumped only if `request.json` or `report.json` change incompatibly. */
|
|
2359
|
-
export declare const AGENT_REPORT_VERSION =
|
|
2441
|
+
export declare const AGENT_REPORT_VERSION = 2;
|
|
2360
2442
|
export declare const agentDir: (outputDir: string) => string;
|
|
2361
2443
|
export declare const agentReportPath: (outputDir: string) => string;
|
|
2362
2444
|
//#endregion
|
|
2363
2445
|
//#region src/agent/review.d.ts
|
|
2364
|
-
/**
|
|
2365
|
-
* Which changed screenshots get a judgment request.
|
|
2366
|
-
*
|
|
2367
|
-
* - `ambiguous`: only those the heuristic could not label (default)
|
|
2368
|
-
* - `all`: every changed screenshot, for a full second opinion
|
|
2369
|
-
* - `none`: heuristic labels only, no new requests
|
|
2370
|
-
*
|
|
2371
|
-
* Judgments that already exist are kept and applied in every mode.
|
|
2372
|
-
*/
|
|
2373
|
-
type JudgeMode = "ambiguous" | "all" | "none";
|
|
2374
|
-
export declare const JUDGE_MODES: readonly JudgeMode[];
|
|
2375
2446
|
type AgentRegion = {
|
|
2376
2447
|
/** 1-based, matching the numbers in `locator.png` and rows in `regions.png`. */
|
|
2377
2448
|
index: number;
|
|
@@ -2385,12 +2456,9 @@ type AgentRegion = {
|
|
|
2385
2456
|
percentage: number;
|
|
2386
2457
|
position: string;
|
|
2387
2458
|
shape: string;
|
|
2388
|
-
changeType: string;
|
|
2389
|
-
confidence: number;
|
|
2390
2459
|
};
|
|
2460
|
+
/** A judge's verdict, as applied to a screenshot. */
|
|
2391
2461
|
type AppliedVerdict = Verdict & {
|
|
2392
|
-
/** Whether the label came from the heuristic or from a judge. */
|
|
2393
|
-
source: "heuristic" | "agent";
|
|
2394
2462
|
confidence?: number;
|
|
2395
2463
|
};
|
|
2396
2464
|
type JudgmentPaths = {
|
|
@@ -2424,14 +2492,16 @@ type AgentReportEntry = {
|
|
|
2424
2492
|
height: number;
|
|
2425
2493
|
};
|
|
2426
2494
|
};
|
|
2427
|
-
|
|
2428
|
-
|
|
2495
|
+
/**
|
|
2496
|
+
* Where and how much it changed, e.g. `2 regions @ top-left (1.20%)`. The
|
|
2497
|
+
* same change on different screenshots reads the same, so it groups them.
|
|
2498
|
+
*/
|
|
2499
|
+
change?: string;
|
|
2429
2500
|
/** Largest first. */
|
|
2430
2501
|
regions?: AgentRegion[];
|
|
2431
|
-
|
|
2432
|
-
/** The judge's verdict when there is a current one, else the heuristic's. */
|
|
2502
|
+
/** The judge's verdict, once one was written about these images. */
|
|
2433
2503
|
verdict?: AppliedVerdict;
|
|
2434
|
-
/** A
|
|
2504
|
+
/** A changed screenshot without a valid verdict yet. */
|
|
2435
2505
|
pending: boolean;
|
|
2436
2506
|
judgment?: JudgmentPaths;
|
|
2437
2507
|
/** Why a `verdict.json` that exists was ignored. */
|
|
@@ -2442,7 +2512,6 @@ type AgentReport = {
|
|
|
2442
2512
|
createdAt: string;
|
|
2443
2513
|
outputDir: string;
|
|
2444
2514
|
reportPath: string;
|
|
2445
|
-
judge: JudgeMode;
|
|
2446
2515
|
totals: {
|
|
2447
2516
|
total: number;
|
|
2448
2517
|
passed: number;
|
|
@@ -2466,7 +2535,7 @@ export declare const judgmentDir: (outputDir: string, name: string) => string;
|
|
|
2466
2535
|
export declare const fingerprintImages: (expectedPath: string, actualPath: string) => Promise<string>;
|
|
2467
2536
|
type ParsedAgentVerdict = {
|
|
2468
2537
|
ok: true;
|
|
2469
|
-
label:
|
|
2538
|
+
label: VerdictLabel;
|
|
2470
2539
|
headline: string;
|
|
2471
2540
|
rationale: string[];
|
|
2472
2541
|
confidence?: number;
|
|
@@ -2485,7 +2554,6 @@ type RunAgentCheckOptions = {
|
|
|
2485
2554
|
outputDir: string;
|
|
2486
2555
|
/** The project's diff config — its threshold is reused for interpretation. */
|
|
2487
2556
|
diff?: DiffOptions;
|
|
2488
|
-
judge?: JudgeMode;
|
|
2489
2557
|
/** Regions rendered into `regions.png` per screenshot. Default 8. */
|
|
2490
2558
|
maxTileRegions?: number;
|
|
2491
2559
|
/** Screenshots analysed in parallel. Default 4. */
|
|
@@ -2499,9 +2567,9 @@ type RunAgentCheckOptions = {
|
|
|
2499
2567
|
*/
|
|
2500
2568
|
export declare const clearJudgment: (outputDir: string, name: string) => Promise<void>;
|
|
2501
2569
|
/**
|
|
2502
|
-
* Analyse every non-passing screenshot, write judgment
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2570
|
+
* Analyse every non-passing screenshot, write a judgment request for every
|
|
2571
|
+
* changed one, apply any verdicts already written, and persist the full
|
|
2572
|
+
* report to `<outputDir>/.cappa-agent/report.json`.
|
|
2505
2573
|
*/
|
|
2506
2574
|
export declare const runAgentCheck: (options: RunAgentCheckOptions) => Promise<AgentReport>;
|
|
2507
2575
|
/** Read the report the last {@link runAgentCheck} wrote, if any. */
|
|
@@ -2517,7 +2585,8 @@ type SlimAgentReport = {
|
|
|
2517
2585
|
results: Array<{
|
|
2518
2586
|
name: string;
|
|
2519
2587
|
category: AgentReportEntry["category"];
|
|
2520
|
-
|
|
2588
|
+
change?: string;
|
|
2589
|
+
verdict?: Pick<AppliedVerdict, "label" | "headline" | "action">;
|
|
2521
2590
|
pending?: true;
|
|
2522
2591
|
/** Judgment directory, present while a verdict is pending. */
|
|
2523
2592
|
judgment?: string;
|
|
@@ -2531,7 +2600,7 @@ type SlimAgentReport = {
|
|
|
2531
2600
|
*/
|
|
2532
2601
|
export declare const toSlimAgentReport: (report: AgentReport) => SlimAgentReport;
|
|
2533
2602
|
type AgentVerdictInput = {
|
|
2534
|
-
label:
|
|
2603
|
+
label: VerdictLabel;
|
|
2535
2604
|
headline: string;
|
|
2536
2605
|
rationale?: string[];
|
|
2537
2606
|
confidence?: number;
|
|
@@ -2674,5 +2743,5 @@ export declare function findRefusedConnection(error: unknown): RefusedConnection
|
|
|
2674
2743
|
*/
|
|
2675
2744
|
export declare function sameServer(a: string, b: string): boolean;
|
|
2676
2745
|
//#endregion
|
|
2677
|
-
export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type
|
|
2746
|
+
export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type BrowserConfig, type BrowserInstance, type BrowserName, type BrowserProvider, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, type ChangeRegion, type ChangedScreenshot, type ConfigEnv, type ConsoleLogLevel, type ContainerOptions, type ContentCropOptions, type CreateFileWatcher, type CropRect, type CropSetting, DEFAULT_CONTAINER_IMAGE, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type PlaywrightContainer, type PlaywrightProviderOptions, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, type ResolvedBrowserConfig, type ResolvedContainerOptions, type ResolvedWebServerConfig, type RunAgentCheckOptions, type RunDetail, type RunEvent, type RunEventListener, type RunEventType, type RunLogLevel, type RunState, type RunStoreOptions, type RunSummary, type RunTrigger, type RunnablePlugin, type Screenshot, type ScreenshotBucket, type ScreenshotCaptureDetails, type ScreenshotCaptureExtras, type ScreenshotCaptureResult, type ScreenshotCaptureSink, type ScreenshotOptions, type ScreenshotOrigin, type ScreenshotQuery, type ScreenshotSettings, type ScreenshotStore, ScreenshotTool, type ScreenshotVariant, type ScreenshotVariantCaptureDetails, type ScreenshotVariantWithUrl, type SerializedError, type ServerProcess, type SlimAgentReport, type SpawnServerOptions, type StartRunRequest, type StartWatchRequest, type SubscribeOptions, type Target, type TaskFailure, type TaskRecord, type TaskStatus, type TileOptions, type TileResult, type UserConfig, type Verdict, type VerdictAction, type VerdictLabel, type Viewport, type WaitForUrlOptions, type WaitForUrlResult, type WarmBrowserOptions, type WatchChange, type WatchEvent, type WatchEventType, type WatchScope, type WatchSessionOptions, type WatchStatus, type WebServerConfig, type WebServerLog, type WebServerLogLevel, type WebServerPoolOptions, playwright, resolveBrowserConfig, resolveContainerOptions };
|
|
2678
2747
|
//# sourceMappingURL=index.d.mts.map
|