@cappa/core 0.16.0 → 0.18.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 +616 -218
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -69
- package/dist/index.d.mts +160 -69
- package/dist/index.mjs +613 -213
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -5,64 +5,59 @@ import { BoundingBox, ChangeRegion, InterpretResult, InterpretResult as Interpre
|
|
|
5
5
|
import { Browser, BrowserContext, ConsoleMessage, Locator, Page } from "playwright-core";
|
|
6
6
|
//#region src/agent/verdict.d.ts
|
|
7
7
|
/**
|
|
8
|
-
* What a
|
|
8
|
+
* What a judge believes a changed screenshot is, after looking at it.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* Only a judge labels a change. Cappa's diff threshold already absorbs
|
|
11
|
+
* sub-pixel rendering differences, so a screenshot that reaches `changed`
|
|
12
|
+
* differs beyond the tolerance the project configured — and classifying it
|
|
13
|
+
* from diff signals alone (change types, severity, pixel counts) proved to
|
|
14
|
+
* mislabel exactly the changes that matter: a font-size change reads as a
|
|
15
|
+
* harmless shift plus recolour. Every changed screenshot is looked at instead.
|
|
16
|
+
*/
|
|
17
|
+
export declare const VERDICT_LABELS: readonly ["regression-likely", "intentional-likely", "noise-likely"];
|
|
15
18
|
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
19
|
/** What to do next with a screenshot carrying a label. */
|
|
20
20
|
type VerdictAction = "investigate" | "approve-if-intended" | "mask-or-approve";
|
|
21
21
|
export declare const ACTION_BY_LABEL: Record<VerdictLabel, VerdictAction>;
|
|
22
22
|
type Verdict = {
|
|
23
23
|
label: VerdictLabel;
|
|
24
|
-
/** One line, e.g. `
|
|
24
|
+
/** One line, e.g. `Submit button label is truncated`. */
|
|
25
25
|
headline: string;
|
|
26
26
|
rationale: string[];
|
|
27
27
|
action: VerdictAction;
|
|
28
28
|
};
|
|
29
29
|
export declare const isVerdictLabel: (value: unknown) => value is VerdictLabel;
|
|
30
|
-
export declare const isJudgedLabel: (value: unknown) => value is JudgedLabel;
|
|
31
30
|
/**
|
|
32
31
|
* Change types are normalised to kebab-case before they are compared.
|
|
33
32
|
*
|
|
34
33
|
* `@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`.
|
|
34
|
+
* releases reported `ColorChange`; normalising keeps the capture report's
|
|
35
|
+
* labels working across a diff-engine upgrade.
|
|
38
36
|
*/
|
|
39
37
|
export declare const normalizeChangeType: (changeType: string) => string;
|
|
40
|
-
|
|
41
|
-
export declare const SUB_PERCEPTUAL_PERCENT = 0.01;
|
|
42
|
-
type VerdictInput = {
|
|
38
|
+
type ChangeInput = {
|
|
43
39
|
/** Percentage of differing pixels (0-100), from the pixel diff. */
|
|
44
40
|
percentDifference?: number;
|
|
45
41
|
numDiffPixels?: number;
|
|
46
42
|
interpretation?: InterpretResult$1;
|
|
47
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Expected and actual have different dimensions. Pixel counts and the
|
|
45
|
+
* interpretation then describe a comparison on a canvas padded to the
|
|
46
|
+
* larger size.
|
|
47
|
+
*/
|
|
48
48
|
differentSizes?: boolean;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
|
-
* A one-line description of
|
|
52
|
-
* on different screenshots produces the same
|
|
53
|
-
*
|
|
54
|
-
* dozens of screenshots
|
|
55
|
-
*/
|
|
56
|
-
export declare const buildHeadline: (input: VerdictInput) => string;
|
|
57
|
-
/**
|
|
58
|
-
* Classify a changed screenshot from its diff interpretation alone.
|
|
51
|
+
* A one-line description of where and how much a screenshot changed, shaped
|
|
52
|
+
* so that the same change on different screenshots produces the same text —
|
|
53
|
+
* which is what lets a judge spot one shared cause (a footer timestamp, a
|
|
54
|
+
* theme toggle) across dozens of screenshots and judge them together.
|
|
59
55
|
*
|
|
60
|
-
* Deliberately
|
|
61
|
-
*
|
|
62
|
-
* at
|
|
63
|
-
* `ambiguous` costs one look.
|
|
56
|
+
* Deliberately geometry only: no change types, no severity. Those are guesses
|
|
57
|
+
* from pixel signals, and a judge primed with "noise" or "shift" looks less
|
|
58
|
+
* carefully at what is in fact a regression.
|
|
64
59
|
*/
|
|
65
|
-
export declare const
|
|
60
|
+
export declare const describeChange: (input: ChangeInput) => string;
|
|
66
61
|
//#endregion
|
|
67
62
|
//#region src/consoleEvents.d.ts
|
|
68
63
|
/**
|
|
@@ -88,6 +83,52 @@ export declare const toConsoleLogLevel: (type: ReturnType<ConsoleMessage["type"]
|
|
|
88
83
|
*/
|
|
89
84
|
export declare const attachConsoleLogging: (page: Pick<Page, "on">, setting: LogConsoleEvents | undefined, logger: ConsoleEventLogger) => void;
|
|
90
85
|
//#endregion
|
|
86
|
+
//#region src/crop.d.ts
|
|
87
|
+
/**
|
|
88
|
+
* Crop a screenshot to the content actually painted on the page.
|
|
89
|
+
*
|
|
90
|
+
* - `false` (default): no crop — the viewport, or the whole page with
|
|
91
|
+
* `fullPage`.
|
|
92
|
+
* - `true`: crop to the content of `document.body`, with the default padding.
|
|
93
|
+
* - an object: crop with a different root or padding.
|
|
94
|
+
*/
|
|
95
|
+
type CropSetting = boolean | ContentCropOptions;
|
|
96
|
+
type ContentCropOptions = {
|
|
97
|
+
/**
|
|
98
|
+
* CSS selector of the element whose content is measured. Only what it
|
|
99
|
+
* paints counts, not its own box, background or border.
|
|
100
|
+
* @default "body"
|
|
101
|
+
*/
|
|
102
|
+
root?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Space kept around the content, in CSS pixels — room for focus rings,
|
|
105
|
+
* text shadows and other paint that has no box of its own.
|
|
106
|
+
* @default 8
|
|
107
|
+
*/
|
|
108
|
+
padding?: number;
|
|
109
|
+
};
|
|
110
|
+
type ResolvedContentCrop = Required<ContentCropOptions>;
|
|
111
|
+
type CropRect = {
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
width: number;
|
|
115
|
+
height: number;
|
|
116
|
+
};
|
|
117
|
+
export declare const DEFAULT_CROP_PADDING = 8;
|
|
118
|
+
/** The crop to apply, or `undefined` for none. */
|
|
119
|
+
export declare const resolveCrop: (crop: CropSetting | undefined) => ResolvedContentCrop | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The clip for a content-cropped screenshot, or `undefined` when there is
|
|
122
|
+
* nothing to crop to (nothing painted, or the root is missing) — the caller
|
|
123
|
+
* then takes the uncropped screenshot rather than fail.
|
|
124
|
+
*
|
|
125
|
+
* Coordinates follow Playwright's `clip`: relative to the document with
|
|
126
|
+
* `fullPage`, to the viewport without it. Edges are rounded outwards to whole
|
|
127
|
+
* pixels so the crop never cuts into anti-aliased edges, and the padding is
|
|
128
|
+
* clamped to the document so it never asks for pixels that do not exist.
|
|
129
|
+
*/
|
|
130
|
+
export declare function measureContentClip(page: Page, crop: ResolvedContentCrop, fullPage: boolean): Promise<CropRect | undefined>;
|
|
131
|
+
//#endregion
|
|
91
132
|
//#region src/compare/pixel.d.ts
|
|
92
133
|
interface CompareResult$1 {
|
|
93
134
|
numDiffPixels: number;
|
|
@@ -96,7 +137,27 @@ interface CompareResult$1 {
|
|
|
96
137
|
diffBuffer?: Buffer;
|
|
97
138
|
passed: boolean;
|
|
98
139
|
error?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Whether the images have different sizes.
|
|
142
|
+
*
|
|
143
|
+
* When they do, both are compared on a canvas padded to the larger width
|
|
144
|
+
* and height (anchored top-left, each padded with its own background), so
|
|
145
|
+
* the pixel counts, the diff image and the interpretation still describe
|
|
146
|
+
* what changed. Such a comparison never passes, even with no differing
|
|
147
|
+
* pixels — the size change is itself the finding.
|
|
148
|
+
*/
|
|
99
149
|
differentSizes: boolean;
|
|
150
|
+
/** Both images' own dimensions — set when `differentSizes` is. */
|
|
151
|
+
dimensions?: {
|
|
152
|
+
expected: {
|
|
153
|
+
width: number;
|
|
154
|
+
height: number;
|
|
155
|
+
};
|
|
156
|
+
actual: {
|
|
157
|
+
width: number;
|
|
158
|
+
height: number;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
100
161
|
interpretation?: InterpretResult$1;
|
|
101
162
|
}
|
|
102
163
|
/**
|
|
@@ -544,6 +605,8 @@ declare class ScreenshotTool {
|
|
|
544
605
|
height: number;
|
|
545
606
|
};
|
|
546
607
|
fullPage: boolean;
|
|
608
|
+
/** Default content crop; a screenshot's own `crop` overrides it. */
|
|
609
|
+
crop: CropSetting;
|
|
547
610
|
outputDir: string;
|
|
548
611
|
browser: Browser | null;
|
|
549
612
|
context: BrowserContext | null;
|
|
@@ -577,6 +640,7 @@ declare class ScreenshotTool {
|
|
|
577
640
|
height: number;
|
|
578
641
|
};
|
|
579
642
|
fullPage?: boolean;
|
|
643
|
+
crop?: CropSetting;
|
|
580
644
|
outputDir?: string;
|
|
581
645
|
diff?: DiffOptions;
|
|
582
646
|
retries?: number;
|
|
@@ -652,6 +716,14 @@ declare class ScreenshotTool {
|
|
|
652
716
|
* Takes a screenshot of the page
|
|
653
717
|
*/
|
|
654
718
|
takeScreenshot(page: Page, filename: string, options: ScreenshotSettings): Promise<string | undefined>;
|
|
719
|
+
/**
|
|
720
|
+
* Take one screenshot with `options`, under its viewport and after its
|
|
721
|
+
* delay, cropped to the page's content when `crop` asks for it.
|
|
722
|
+
*
|
|
723
|
+
* The crop is measured right before the shot, after the delay, so it sees
|
|
724
|
+
* the same render the screenshot does — and every retry measures afresh.
|
|
725
|
+
*/
|
|
726
|
+
private shoot;
|
|
655
727
|
/**
|
|
656
728
|
* Sets the viewport size and executes the action, ensuring the original viewport is restored
|
|
657
729
|
* even if the action throws an error.
|
|
@@ -1003,9 +1075,26 @@ type UserConfig = {
|
|
|
1003
1075
|
fullPage?: boolean;
|
|
1004
1076
|
/**
|
|
1005
1077
|
* Default viewport size for screenshots.
|
|
1078
|
+
*
|
|
1079
|
+
* With `crop`, this is the size the page is laid out at — the most a
|
|
1080
|
+
* screenshot can cover, not the size it always has.
|
|
1006
1081
|
* @default { width: 1920, height: 1080 }
|
|
1007
1082
|
*/
|
|
1008
1083
|
viewport?: Viewport;
|
|
1084
|
+
/**
|
|
1085
|
+
* Crop screenshots to the content actually painted on the page instead
|
|
1086
|
+
* of capturing the whole viewport (or page).
|
|
1087
|
+
*
|
|
1088
|
+
* A small component on a 1920px wide viewport is mostly empty canvas,
|
|
1089
|
+
* which dilutes every percentage a diff reports: a changed word is 0.01%
|
|
1090
|
+
* of the viewport but several percent of the component. Cropping keeps
|
|
1091
|
+
* screenshots, diffs and thresholds about the content.
|
|
1092
|
+
*
|
|
1093
|
+
* `true` measures `body` with 8px of padding; pass an object to change
|
|
1094
|
+
* either. Plugins and per-screenshot options can override it.
|
|
1095
|
+
* @default false
|
|
1096
|
+
*/
|
|
1097
|
+
crop?: CropSetting;
|
|
1009
1098
|
};
|
|
1010
1099
|
/**
|
|
1011
1100
|
* Configuration for the review UI.
|
|
@@ -1042,6 +1131,11 @@ type Viewport = {
|
|
|
1042
1131
|
};
|
|
1043
1132
|
type ScreenshotSettings = {
|
|
1044
1133
|
fullPage?: boolean;
|
|
1134
|
+
/**
|
|
1135
|
+
* Crop to the content painted on the page — see `UserConfig.screenshot.crop`.
|
|
1136
|
+
* Overrides the global setting for this screenshot.
|
|
1137
|
+
*/
|
|
1138
|
+
crop?: CropSetting;
|
|
1045
1139
|
delay?: number;
|
|
1046
1140
|
skip?: boolean;
|
|
1047
1141
|
mask?: Locator[];
|
|
@@ -1086,20 +1180,23 @@ interface DiffMetadata {
|
|
|
1086
1180
|
interpretation?: InterpretResult$1;
|
|
1087
1181
|
}
|
|
1088
1182
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* review UI
|
|
1183
|
+
* A judge's verdict on a changed screenshot, as applied by the last
|
|
1184
|
+
* `cappa agent check` and shown in the review UI.
|
|
1091
1185
|
*/
|
|
1092
1186
|
interface AgentReview {
|
|
1093
1187
|
label: VerdictLabel;
|
|
1094
1188
|
headline: string;
|
|
1095
1189
|
rationale: string[];
|
|
1096
1190
|
action: VerdictAction;
|
|
1097
|
-
/**
|
|
1098
|
-
|
|
1191
|
+
/**
|
|
1192
|
+
* Always `agent`: only a judge labels a change. The wire format also
|
|
1193
|
+
* allows `heuristic`, which engines before 0.18 sent.
|
|
1194
|
+
*/
|
|
1195
|
+
source: "agent";
|
|
1099
1196
|
/** 0-1, when the judge gave one. */
|
|
1100
1197
|
confidence?: number;
|
|
1101
|
-
/**
|
|
1102
|
-
pending:
|
|
1198
|
+
/** Always false: a screenshot awaiting judgment carries no review. */
|
|
1199
|
+
pending: false;
|
|
1103
1200
|
/** When the check that produced this ran (ISO 8601). */
|
|
1104
1201
|
reviewedAt: string;
|
|
1105
1202
|
}
|
|
@@ -1114,8 +1211,8 @@ type ChangedScreenshot = {
|
|
|
1114
1211
|
*/
|
|
1115
1212
|
diffMeta?: DiffMetadata;
|
|
1116
1213
|
/**
|
|
1117
|
-
* The last `cappa agent check
|
|
1118
|
-
* when either image changed since — a verdict about other pixels is not one
|
|
1214
|
+
* The judge's verdict from the last `cappa agent check`. Absent when it is
|
|
1215
|
+
* not judged yet, or when either image changed since — a verdict about other pixels is not one
|
|
1119
1216
|
* worth showing.
|
|
1120
1217
|
*/
|
|
1121
1218
|
review?: AgentReview;
|
|
@@ -1166,6 +1263,12 @@ interface CompareResult {
|
|
|
1166
1263
|
diffBuffer?: Buffer;
|
|
1167
1264
|
passed: boolean;
|
|
1168
1265
|
error?: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Whether the images have different sizes. Both are then scored on a canvas
|
|
1268
|
+
* padded to the larger width and height (anchored top-left, each with its
|
|
1269
|
+
* own edge colour), and the comparison never passes.
|
|
1270
|
+
*/
|
|
1271
|
+
differentSizes?: boolean;
|
|
1169
1272
|
}
|
|
1170
1273
|
/**
|
|
1171
1274
|
* Compare two PNG images and return the difference
|
|
@@ -1860,6 +1963,7 @@ type LocalEngineOptions = {
|
|
|
1860
1963
|
concurrency?: number;
|
|
1861
1964
|
logConsoleEvents?: LogConsoleEvents;
|
|
1862
1965
|
fullPage?: boolean;
|
|
1966
|
+
crop?: CropSetting;
|
|
1863
1967
|
viewport?: Viewport;
|
|
1864
1968
|
connectionTimeout?: number;
|
|
1865
1969
|
/**
|
|
@@ -2238,22 +2342,11 @@ export declare class FsScreenshotStore implements ScreenshotStore {
|
|
|
2238
2342
|
*/
|
|
2239
2343
|
export declare const AGENT_DIRNAME = ".cappa-agent";
|
|
2240
2344
|
/** Bumped only if `request.json` or `report.json` change incompatibly. */
|
|
2241
|
-
export declare const AGENT_REPORT_VERSION =
|
|
2345
|
+
export declare const AGENT_REPORT_VERSION = 2;
|
|
2242
2346
|
export declare const agentDir: (outputDir: string) => string;
|
|
2243
2347
|
export declare const agentReportPath: (outputDir: string) => string;
|
|
2244
2348
|
//#endregion
|
|
2245
2349
|
//#region src/agent/review.d.ts
|
|
2246
|
-
/**
|
|
2247
|
-
* Which changed screenshots get a judgment request.
|
|
2248
|
-
*
|
|
2249
|
-
* - `ambiguous`: only those the heuristic could not label (default)
|
|
2250
|
-
* - `all`: every changed screenshot, for a full second opinion
|
|
2251
|
-
* - `none`: heuristic labels only, no new requests
|
|
2252
|
-
*
|
|
2253
|
-
* Judgments that already exist are kept and applied in every mode.
|
|
2254
|
-
*/
|
|
2255
|
-
type JudgeMode = "ambiguous" | "all" | "none";
|
|
2256
|
-
export declare const JUDGE_MODES: readonly JudgeMode[];
|
|
2257
2350
|
type AgentRegion = {
|
|
2258
2351
|
/** 1-based, matching the numbers in `locator.png` and rows in `regions.png`. */
|
|
2259
2352
|
index: number;
|
|
@@ -2267,12 +2360,9 @@ type AgentRegion = {
|
|
|
2267
2360
|
percentage: number;
|
|
2268
2361
|
position: string;
|
|
2269
2362
|
shape: string;
|
|
2270
|
-
changeType: string;
|
|
2271
|
-
confidence: number;
|
|
2272
2363
|
};
|
|
2364
|
+
/** A judge's verdict, as applied to a screenshot. */
|
|
2273
2365
|
type AppliedVerdict = Verdict & {
|
|
2274
|
-
/** Whether the label came from the heuristic or from a judge. */
|
|
2275
|
-
source: "heuristic" | "agent";
|
|
2276
2366
|
confidence?: number;
|
|
2277
2367
|
};
|
|
2278
2368
|
type JudgmentPaths = {
|
|
@@ -2306,14 +2396,16 @@ type AgentReportEntry = {
|
|
|
2306
2396
|
height: number;
|
|
2307
2397
|
};
|
|
2308
2398
|
};
|
|
2309
|
-
|
|
2310
|
-
|
|
2399
|
+
/**
|
|
2400
|
+
* Where and how much it changed, e.g. `2 regions @ top-left (1.20%)`. The
|
|
2401
|
+
* same change on different screenshots reads the same, so it groups them.
|
|
2402
|
+
*/
|
|
2403
|
+
change?: string;
|
|
2311
2404
|
/** Largest first. */
|
|
2312
2405
|
regions?: AgentRegion[];
|
|
2313
|
-
|
|
2314
|
-
/** The judge's verdict when there is a current one, else the heuristic's. */
|
|
2406
|
+
/** The judge's verdict, once one was written about these images. */
|
|
2315
2407
|
verdict?: AppliedVerdict;
|
|
2316
|
-
/** A
|
|
2408
|
+
/** A changed screenshot without a valid verdict yet. */
|
|
2317
2409
|
pending: boolean;
|
|
2318
2410
|
judgment?: JudgmentPaths;
|
|
2319
2411
|
/** Why a `verdict.json` that exists was ignored. */
|
|
@@ -2324,7 +2416,6 @@ type AgentReport = {
|
|
|
2324
2416
|
createdAt: string;
|
|
2325
2417
|
outputDir: string;
|
|
2326
2418
|
reportPath: string;
|
|
2327
|
-
judge: JudgeMode;
|
|
2328
2419
|
totals: {
|
|
2329
2420
|
total: number;
|
|
2330
2421
|
passed: number;
|
|
@@ -2348,7 +2439,7 @@ export declare const judgmentDir: (outputDir: string, name: string) => string;
|
|
|
2348
2439
|
export declare const fingerprintImages: (expectedPath: string, actualPath: string) => Promise<string>;
|
|
2349
2440
|
type ParsedAgentVerdict = {
|
|
2350
2441
|
ok: true;
|
|
2351
|
-
label:
|
|
2442
|
+
label: VerdictLabel;
|
|
2352
2443
|
headline: string;
|
|
2353
2444
|
rationale: string[];
|
|
2354
2445
|
confidence?: number;
|
|
@@ -2367,7 +2458,6 @@ type RunAgentCheckOptions = {
|
|
|
2367
2458
|
outputDir: string;
|
|
2368
2459
|
/** The project's diff config — its threshold is reused for interpretation. */
|
|
2369
2460
|
diff?: DiffOptions;
|
|
2370
|
-
judge?: JudgeMode;
|
|
2371
2461
|
/** Regions rendered into `regions.png` per screenshot. Default 8. */
|
|
2372
2462
|
maxTileRegions?: number;
|
|
2373
2463
|
/** Screenshots analysed in parallel. Default 4. */
|
|
@@ -2381,9 +2471,9 @@ type RunAgentCheckOptions = {
|
|
|
2381
2471
|
*/
|
|
2382
2472
|
export declare const clearJudgment: (outputDir: string, name: string) => Promise<void>;
|
|
2383
2473
|
/**
|
|
2384
|
-
* Analyse every non-passing screenshot, write judgment
|
|
2385
|
-
*
|
|
2386
|
-
*
|
|
2474
|
+
* Analyse every non-passing screenshot, write a judgment request for every
|
|
2475
|
+
* changed one, apply any verdicts already written, and persist the full
|
|
2476
|
+
* report to `<outputDir>/.cappa-agent/report.json`.
|
|
2387
2477
|
*/
|
|
2388
2478
|
export declare const runAgentCheck: (options: RunAgentCheckOptions) => Promise<AgentReport>;
|
|
2389
2479
|
/** Read the report the last {@link runAgentCheck} wrote, if any. */
|
|
@@ -2399,7 +2489,8 @@ type SlimAgentReport = {
|
|
|
2399
2489
|
results: Array<{
|
|
2400
2490
|
name: string;
|
|
2401
2491
|
category: AgentReportEntry["category"];
|
|
2402
|
-
|
|
2492
|
+
change?: string;
|
|
2493
|
+
verdict?: Pick<AppliedVerdict, "label" | "headline" | "action">;
|
|
2403
2494
|
pending?: true;
|
|
2404
2495
|
/** Judgment directory, present while a verdict is pending. */
|
|
2405
2496
|
judgment?: string;
|
|
@@ -2413,7 +2504,7 @@ type SlimAgentReport = {
|
|
|
2413
2504
|
*/
|
|
2414
2505
|
export declare const toSlimAgentReport: (report: AgentReport) => SlimAgentReport;
|
|
2415
2506
|
type AgentVerdictInput = {
|
|
2416
|
-
label:
|
|
2507
|
+
label: VerdictLabel;
|
|
2417
2508
|
headline: string;
|
|
2418
2509
|
rationale?: string[];
|
|
2419
2510
|
confidence?: number;
|
|
@@ -2556,5 +2647,5 @@ export declare function findRefusedConnection(error: unknown): RefusedConnection
|
|
|
2556
2647
|
*/
|
|
2557
2648
|
export declare function sameServer(a: string, b: string): boolean;
|
|
2558
2649
|
//#endregion
|
|
2559
|
-
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 CreateFileWatcher, type DeletedScreenshot, type DiffConfig, type DiffConfigGMSD, type DiffMetadata, type DiffOptions, type DiffOptionsGMSD, type DiffOptionsPixel, type EmittableWatchEvent, type FailedScreenshot, type FileWatcher, type InterpretResult, type
|
|
2650
|
+
export { type AgentRegion, type AgentReport, type AgentReportEntry, type AgentReview, type AgentVerdictInput, type AppliedVerdict, type ApproveResult, type CaptureEngine, type CaptureManifest, type CaptureRunnerOptions, type ChangeInput, 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 JudgmentPaths, type ListTargetsOptions, type LocalEngineOptions, type LogConsoleEvents, type NewScreenshot, type ParsedAgentVerdict, type PassedScreenshot, type Plugin, type PluginCaptureResult, type PluginDef, type PluginFunction, type PluginInfo, type PluginTask, type PluginWatch, type PluginWatchResolve, type ProcessExit, type RefusedConnection, 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 };
|
|
2560
2651
|
//# sourceMappingURL=index.d.mts.map
|