screw-bugs 0.1.9 → 0.1.10
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/README.md +49 -34
- package/dist/browser-playwright/capture.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli/app.js +6 -2
- package/dist/cli/commands.js +4 -3
- package/dist/cli/doctor.d.ts +17 -2
- package/dist/cli/doctor.js +62 -4
- package/dist/cli/mcp.js +2 -2
- package/dist/cli/report-server.d.ts +19 -10
- package/dist/cli/report-server.js +43 -18
- package/dist/cli/share.js +2 -2
- package/dist/cli/sign-in.d.ts +9 -3
- package/dist/cli/sign-in.js +12 -9
- package/dist/cli/tailnet.d.ts +57 -0
- package/dist/cli/tailnet.js +82 -0
- package/dist/core/index.d.ts +1 -14
- package/dist/core/index.js +3 -14
- package/dist/report/index.d.ts +1 -10
- package/dist/report/index.js +3 -10
- package/dist/schema/index.d.ts +1 -9
- package/dist/schema/index.js +3 -9
- package/package.json +14 -14
- package/dist/core/accounts.d.ts +0 -40
- package/dist/core/accounts.js +0 -95
- package/dist/core/css.d.ts +0 -95
- package/dist/core/css.js +0 -436
- package/dist/core/engine.d.ts +0 -75
- package/dist/core/engine.js +0 -560
- package/dist/core/errors.d.ts +0 -85
- package/dist/core/errors.js +0 -36
- package/dist/core/evidence.d.ts +0 -14
- package/dist/core/evidence.js +0 -131
- package/dist/core/labels.d.ts +0 -47
- package/dist/core/labels.js +0 -199
- package/dist/core/liveness.d.ts +0 -45
- package/dist/core/liveness.js +0 -66
- package/dist/core/marks.d.ts +0 -63
- package/dist/core/marks.js +0 -410
- package/dist/core/services.d.ts +0 -579
- package/dist/core/services.js +0 -25
- package/dist/core/share.d.ts +0 -68
- package/dist/core/share.js +0 -318
- package/dist/core/steps.d.ts +0 -106
- package/dist/core/steps.js +0 -722
- package/dist/core/uploads.d.ts +0 -49
- package/dist/core/uploads.js +0 -133
- package/dist/core/video.d.ts +0 -53
- package/dist/core/video.js +0 -241
- package/dist/core/viewport.d.ts +0 -28
- package/dist/core/viewport.js +0 -50
- package/dist/report/assets.d.ts +0 -34
- package/dist/report/assets.js +0 -105
- package/dist/report/bug.d.ts +0 -11
- package/dist/report/bug.js +0 -20
- package/dist/report/html.d.ts +0 -47
- package/dist/report/html.js +0 -923
- package/dist/report/icons.d.ts +0 -51
- package/dist/report/icons.js +0 -93
- package/dist/report/live.d.ts +0 -7
- package/dist/report/live.js +0 -135
- package/dist/report/logos.d.ts +0 -4
- package/dist/report/logos.js +0 -19
- package/dist/report/markup.d.ts +0 -50
- package/dist/report/markup.js +0 -156
- package/dist/report/menu-bar.d.ts +0 -60
- package/dist/report/menu-bar.js +0 -157
- package/dist/report/player.d.ts +0 -102
- package/dist/report/player.js +0 -315
- package/dist/report/pr-summary.d.ts +0 -11
- package/dist/report/pr-summary.js +0 -119
- package/dist/report/sha256.d.ts +0 -9
- package/dist/report/sha256.js +0 -97
- package/dist/report/share-page.d.ts +0 -48
- package/dist/report/share-page.js +0 -291
- package/dist/report/shots.d.ts +0 -59
- package/dist/report/shots.js +0 -280
- package/dist/report/sign-in.d.ts +0 -41
- package/dist/report/sign-in.js +0 -568
- package/dist/report/styles.d.ts +0 -3
- package/dist/report/styles.js +0 -274
- package/dist/report/view.d.ts +0 -296
- package/dist/report/view.js +0 -702
- package/dist/report/walkthrough.d.ts +0 -93
- package/dist/report/walkthrough.js +0 -716
- package/dist/schema/accounts.d.ts +0 -137
- package/dist/schema/accounts.js +0 -121
- package/dist/schema/config.d.ts +0 -7
- package/dist/schema/config.js +0 -6
- package/dist/schema/doctor.d.ts +0 -46
- package/dist/schema/doctor.js +0 -30
- package/dist/schema/evidence.d.ts +0 -1115
- package/dist/schema/evidence.js +0 -565
- package/dist/schema/findings.d.ts +0 -161
- package/dist/schema/findings.js +0 -82
- package/dist/schema/job.d.ts +0 -1905
- package/dist/schema/job.js +0 -577
- package/dist/schema/ledger.d.ts +0 -1124
- package/dist/schema/ledger.js +0 -285
- package/dist/schema/share.d.ts +0 -55
- package/dist/schema/share.js +0 -64
- package/dist/schema/status.d.ts +0 -7
- package/dist/schema/status.js +0 -11
package/dist/schema/ledger.d.ts
DELETED
|
@@ -1,1124 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { Findings } from './findings.js';
|
|
3
|
-
import { type JobRecord } from './job.js';
|
|
4
|
-
import { CaseStatus } from './status.js';
|
|
5
|
-
/**
|
|
6
|
-
* `run_status` cuts each listed reason to this many characters. A reason with a hint about where
|
|
7
|
-
* else its text or element is (see `withHint` in core) is kept within it, so the hint shows.
|
|
8
|
-
*/
|
|
9
|
-
export declare const REASON_MAX = 150;
|
|
10
|
-
/** One row of the case ledger. Evidence entries are paths relative to the run directory. */
|
|
11
|
-
export declare const CaseEntry: Schema.Struct<{
|
|
12
|
-
readonly id: Schema.NonEmptyString;
|
|
13
|
-
readonly title: Schema.NonEmptyString;
|
|
14
|
-
readonly status: Schema.Literals<readonly ["passed", "failed", "blocked", "not_verified"]>;
|
|
15
|
-
/**
|
|
16
|
-
* For a case that continued (`CaseSpec.continue`): the ID of the case before it, on whose page
|
|
17
|
-
* it started rather than at the job URL.
|
|
18
|
-
*/
|
|
19
|
-
readonly continuedFrom: Schema.optionalKey<Schema.String>;
|
|
20
|
-
/** Why the case did not pass, in plain language. Never DOM or browser logs. */
|
|
21
|
-
readonly reason: Schema.optionalKey<Schema.String>;
|
|
22
|
-
/**
|
|
23
|
-
* 1-based index of the step that decided a failed or blocked status; 0 is the opening
|
|
24
|
-
* navigation to the job URL that a case gets when its first step is not goto.
|
|
25
|
-
*/
|
|
26
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
27
|
-
/**
|
|
28
|
-
* Paths such as `evidence/01/02-after-login.png`: case and screenshot numbers, so they never
|
|
29
|
-
* collide on any file system. Runs from older versions have `evidence/<case>/<name>.png` or
|
|
30
|
-
* `evidence/<case>-<name>.png`.
|
|
31
|
-
*/
|
|
32
|
-
readonly evidence: Schema.$Array<Schema.String>;
|
|
33
|
-
/**
|
|
34
|
-
* The name each evidence path was saved under, as the job gave it (`after-login`), or
|
|
35
|
-
* `step3-failed` for the screenshot taken when the case stopped. Missing in older runs.
|
|
36
|
-
*/
|
|
37
|
-
readonly evidenceNames: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
38
|
-
/** The session it ran in (`Session.number`). Missing in older runs, as are the fields below. */
|
|
39
|
-
readonly session: Schema.optionalKey<Schema.Int>;
|
|
40
|
-
/** When the case started and ended, in ms from the start of its session's video. */
|
|
41
|
-
readonly startMs: Schema.optionalKey<Schema.Number>;
|
|
42
|
-
readonly endMs: Schema.optionalKey<Schema.Number>;
|
|
43
|
-
/** When each step that ran started and ended. */
|
|
44
|
-
readonly steps: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
45
|
-
readonly index: Schema.Int;
|
|
46
|
-
readonly startMs: Schema.Number;
|
|
47
|
-
readonly endMs: Schema.Number;
|
|
48
|
-
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
49
|
-
readonly name: Schema.String;
|
|
50
|
-
readonly size: Schema.Number;
|
|
51
|
-
}>>>;
|
|
52
|
-
readonly action: Schema.optionalKey<Schema.Struct<{
|
|
53
|
-
readonly kind: Schema.Literals<readonly ["click", "hover", "fill", "upload", "press", "scroll", "goto", "reload"]>;
|
|
54
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
55
|
-
readonly point: Schema.optionalKey<Schema.Struct<{
|
|
56
|
-
readonly x: Schema.Number;
|
|
57
|
-
readonly y: Schema.Number;
|
|
58
|
-
}>>;
|
|
59
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
60
|
-
readonly x: Schema.Number;
|
|
61
|
-
readonly y: Schema.Number;
|
|
62
|
-
readonly width: Schema.Number;
|
|
63
|
-
readonly height: Schema.Number;
|
|
64
|
-
}>>;
|
|
65
|
-
readonly scale: Schema.optionalKey<Schema.Number>;
|
|
66
|
-
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
67
|
-
readonly width: Schema.Number;
|
|
68
|
-
readonly height: Schema.Number;
|
|
69
|
-
}>>;
|
|
70
|
-
}>>;
|
|
71
|
-
readonly onScreen: Schema.optionalKey<Schema.Struct<{
|
|
72
|
-
readonly shown: Schema.Number;
|
|
73
|
-
readonly problem: Schema.optionalKey<Schema.Literals<readonly ["clipped", "covered", "offscreen", "transparent"]>>;
|
|
74
|
-
readonly by: Schema.optionalKey<Schema.String>;
|
|
75
|
-
readonly scrolls: Schema.optionalKey<Schema.Boolean>;
|
|
76
|
-
}>>;
|
|
77
|
-
}>>>;
|
|
78
|
-
/** Every screenshot of `evidence`, with what it shows. */
|
|
79
|
-
readonly shots: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
80
|
-
readonly id: Schema.String;
|
|
81
|
-
readonly path: Schema.String;
|
|
82
|
-
readonly name: Schema.String;
|
|
83
|
-
readonly kind: Schema.Literals<readonly ["step", "named", "failure"]>;
|
|
84
|
-
readonly step: Schema.Int;
|
|
85
|
-
readonly fullPage: Schema.Boolean;
|
|
86
|
-
readonly width: Schema.Int;
|
|
87
|
-
readonly height: Schema.Int;
|
|
88
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
89
|
-
readonly x: Schema.Number;
|
|
90
|
-
readonly y: Schema.Number;
|
|
91
|
-
readonly width: Schema.Number;
|
|
92
|
-
readonly height: Schema.Number;
|
|
93
|
-
}>>;
|
|
94
|
-
readonly targetContent: Schema.optionalKey<Schema.Struct<{
|
|
95
|
-
readonly x: Schema.Number;
|
|
96
|
-
readonly y: Schema.Number;
|
|
97
|
-
readonly width: Schema.Number;
|
|
98
|
-
readonly height: Schema.Number;
|
|
99
|
-
}>>;
|
|
100
|
-
readonly targetProblem: Schema.optionalKey<Schema.String>;
|
|
101
|
-
readonly page: Schema.optionalKey<Schema.String>;
|
|
102
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
103
|
-
readonly targetAtMs: Schema.optionalKey<Schema.Number>;
|
|
104
|
-
readonly visual: Schema.optionalKey<Schema.Struct<{
|
|
105
|
-
readonly scale: Schema.Number;
|
|
106
|
-
readonly x: Schema.Number;
|
|
107
|
-
readonly y: Schema.Number;
|
|
108
|
-
}>>;
|
|
109
|
-
}>>>;
|
|
110
|
-
/** Short facts about the page when the case ended. */
|
|
111
|
-
readonly facts: Schema.optionalKey<Schema.Struct<{
|
|
112
|
-
readonly url: Schema.String;
|
|
113
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
114
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
115
|
-
readonly httpErrors: Schema.$Array<Schema.Struct<{
|
|
116
|
-
readonly url: Schema.String;
|
|
117
|
-
readonly status: Schema.Int;
|
|
118
|
-
}>>;
|
|
119
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
120
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
121
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
122
|
-
readonly width: Schema.Number;
|
|
123
|
-
readonly height: Schema.Number;
|
|
124
|
-
}>>>;
|
|
125
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
126
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
127
|
-
readonly href: Schema.String;
|
|
128
|
-
}>>>;
|
|
129
|
-
readonly frames: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
130
|
-
readonly url: Schema.String;
|
|
131
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
132
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
133
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
134
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
135
|
-
readonly width: Schema.Number;
|
|
136
|
-
readonly height: Schema.Number;
|
|
137
|
-
}>>>;
|
|
138
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
139
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
140
|
-
readonly href: Schema.String;
|
|
141
|
-
}>>>;
|
|
142
|
-
}>>>;
|
|
143
|
-
}>>;
|
|
144
|
-
}>;
|
|
145
|
-
export type CaseEntry = typeof CaseEntry.Type;
|
|
146
|
-
/**
|
|
147
|
-
* The browser a run used, as Playwright reported it when the run's browser started: its type
|
|
148
|
-
* (`chromium`), the channel it was launched with (`chrome`, `msedge`; none for the Chromium
|
|
149
|
-
* Playwright downloaded, which runs headless as its headless shell) and its version, such as
|
|
150
|
-
* `141.0.7390.37`.
|
|
151
|
-
*/
|
|
152
|
-
export declare const BrowserRecord: Schema.Struct<{
|
|
153
|
-
readonly type: Schema.String;
|
|
154
|
-
readonly channel: Schema.optionalKey<Schema.String>;
|
|
155
|
-
readonly version: Schema.String;
|
|
156
|
-
}>;
|
|
157
|
-
export type BrowserRecord = typeof BrowserRecord.Type;
|
|
158
|
-
/**
|
|
159
|
-
* Where a running job is: the case (1-based, in job order) and, once it started one, the step
|
|
160
|
-
* running in it, numbered as `CaseEntry.step` numbers steps (0 is the opening navigation), with
|
|
161
|
-
* its action (`click`). Saved with the heartbeat and when a case ends, so it may be a few seconds
|
|
162
|
-
* behind; only a running ledger has it.
|
|
163
|
-
*/
|
|
164
|
-
export declare const RunProgress: Schema.Struct<{
|
|
165
|
-
readonly case: Schema.Int;
|
|
166
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
167
|
-
readonly kind: Schema.optionalKey<Schema.String>;
|
|
168
|
-
}>;
|
|
169
|
-
export type RunProgress = typeof RunProgress.Type;
|
|
170
|
-
/** The running record of every case in a job; the source of truth for status and reports. */
|
|
171
|
-
export declare const CaseLedger: Schema.Struct<{
|
|
172
|
-
readonly jobId: Schema.brand<Schema.String, "JobId">;
|
|
173
|
-
readonly state: Schema.Literals<readonly ["queued", "running", "waiting_for_answer", "finished", "errored"]>;
|
|
174
|
-
readonly cases: Schema.$Array<Schema.Struct<{
|
|
175
|
-
readonly id: Schema.NonEmptyString;
|
|
176
|
-
readonly title: Schema.NonEmptyString;
|
|
177
|
-
readonly status: Schema.Literals<readonly ["passed", "failed", "blocked", "not_verified"]>;
|
|
178
|
-
/**
|
|
179
|
-
* For a case that continued (`CaseSpec.continue`): the ID of the case before it, on whose page
|
|
180
|
-
* it started rather than at the job URL.
|
|
181
|
-
*/
|
|
182
|
-
readonly continuedFrom: Schema.optionalKey<Schema.String>;
|
|
183
|
-
/** Why the case did not pass, in plain language. Never DOM or browser logs. */
|
|
184
|
-
readonly reason: Schema.optionalKey<Schema.String>;
|
|
185
|
-
/**
|
|
186
|
-
* 1-based index of the step that decided a failed or blocked status; 0 is the opening
|
|
187
|
-
* navigation to the job URL that a case gets when its first step is not goto.
|
|
188
|
-
*/
|
|
189
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
190
|
-
/**
|
|
191
|
-
* Paths such as `evidence/01/02-after-login.png`: case and screenshot numbers, so they never
|
|
192
|
-
* collide on any file system. Runs from older versions have `evidence/<case>/<name>.png` or
|
|
193
|
-
* `evidence/<case>-<name>.png`.
|
|
194
|
-
*/
|
|
195
|
-
readonly evidence: Schema.$Array<Schema.String>;
|
|
196
|
-
/**
|
|
197
|
-
* The name each evidence path was saved under, as the job gave it (`after-login`), or
|
|
198
|
-
* `step3-failed` for the screenshot taken when the case stopped. Missing in older runs.
|
|
199
|
-
*/
|
|
200
|
-
readonly evidenceNames: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
201
|
-
/** The session it ran in (`Session.number`). Missing in older runs, as are the fields below. */
|
|
202
|
-
readonly session: Schema.optionalKey<Schema.Int>;
|
|
203
|
-
/** When the case started and ended, in ms from the start of its session's video. */
|
|
204
|
-
readonly startMs: Schema.optionalKey<Schema.Number>;
|
|
205
|
-
readonly endMs: Schema.optionalKey<Schema.Number>;
|
|
206
|
-
/** When each step that ran started and ended. */
|
|
207
|
-
readonly steps: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
208
|
-
readonly index: Schema.Int;
|
|
209
|
-
readonly startMs: Schema.Number;
|
|
210
|
-
readonly endMs: Schema.Number;
|
|
211
|
-
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
212
|
-
readonly name: Schema.String;
|
|
213
|
-
readonly size: Schema.Number;
|
|
214
|
-
}>>>;
|
|
215
|
-
readonly action: Schema.optionalKey<Schema.Struct<{
|
|
216
|
-
readonly kind: Schema.Literals<readonly ["click", "hover", "fill", "upload", "press", "scroll", "goto", "reload"]>;
|
|
217
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
218
|
-
readonly point: Schema.optionalKey<Schema.Struct<{
|
|
219
|
-
readonly x: Schema.Number;
|
|
220
|
-
readonly y: Schema.Number;
|
|
221
|
-
}>>;
|
|
222
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
223
|
-
readonly x: Schema.Number;
|
|
224
|
-
readonly y: Schema.Number;
|
|
225
|
-
readonly width: Schema.Number;
|
|
226
|
-
readonly height: Schema.Number;
|
|
227
|
-
}>>;
|
|
228
|
-
readonly scale: Schema.optionalKey<Schema.Number>;
|
|
229
|
-
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
230
|
-
readonly width: Schema.Number;
|
|
231
|
-
readonly height: Schema.Number;
|
|
232
|
-
}>>;
|
|
233
|
-
}>>;
|
|
234
|
-
readonly onScreen: Schema.optionalKey<Schema.Struct<{
|
|
235
|
-
readonly shown: Schema.Number;
|
|
236
|
-
readonly problem: Schema.optionalKey<Schema.Literals<readonly ["clipped", "covered", "offscreen", "transparent"]>>;
|
|
237
|
-
readonly by: Schema.optionalKey<Schema.String>;
|
|
238
|
-
readonly scrolls: Schema.optionalKey<Schema.Boolean>;
|
|
239
|
-
}>>;
|
|
240
|
-
}>>>;
|
|
241
|
-
/** Every screenshot of `evidence`, with what it shows. */
|
|
242
|
-
readonly shots: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
243
|
-
readonly id: Schema.String;
|
|
244
|
-
readonly path: Schema.String;
|
|
245
|
-
readonly name: Schema.String;
|
|
246
|
-
readonly kind: Schema.Literals<readonly ["step", "named", "failure"]>;
|
|
247
|
-
readonly step: Schema.Int;
|
|
248
|
-
readonly fullPage: Schema.Boolean;
|
|
249
|
-
readonly width: Schema.Int;
|
|
250
|
-
readonly height: Schema.Int;
|
|
251
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
252
|
-
readonly x: Schema.Number;
|
|
253
|
-
readonly y: Schema.Number;
|
|
254
|
-
readonly width: Schema.Number;
|
|
255
|
-
readonly height: Schema.Number;
|
|
256
|
-
}>>;
|
|
257
|
-
readonly targetContent: Schema.optionalKey<Schema.Struct<{
|
|
258
|
-
readonly x: Schema.Number;
|
|
259
|
-
readonly y: Schema.Number;
|
|
260
|
-
readonly width: Schema.Number;
|
|
261
|
-
readonly height: Schema.Number;
|
|
262
|
-
}>>;
|
|
263
|
-
readonly targetProblem: Schema.optionalKey<Schema.String>;
|
|
264
|
-
readonly page: Schema.optionalKey<Schema.String>;
|
|
265
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
266
|
-
readonly targetAtMs: Schema.optionalKey<Schema.Number>;
|
|
267
|
-
readonly visual: Schema.optionalKey<Schema.Struct<{
|
|
268
|
-
readonly scale: Schema.Number;
|
|
269
|
-
readonly x: Schema.Number;
|
|
270
|
-
readonly y: Schema.Number;
|
|
271
|
-
}>>;
|
|
272
|
-
}>>>;
|
|
273
|
-
/** Short facts about the page when the case ended. */
|
|
274
|
-
readonly facts: Schema.optionalKey<Schema.Struct<{
|
|
275
|
-
readonly url: Schema.String;
|
|
276
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
277
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
278
|
-
readonly httpErrors: Schema.$Array<Schema.Struct<{
|
|
279
|
-
readonly url: Schema.String;
|
|
280
|
-
readonly status: Schema.Int;
|
|
281
|
-
}>>;
|
|
282
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
283
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
284
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
285
|
-
readonly width: Schema.Number;
|
|
286
|
-
readonly height: Schema.Number;
|
|
287
|
-
}>>>;
|
|
288
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
289
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
290
|
-
readonly href: Schema.String;
|
|
291
|
-
}>>>;
|
|
292
|
-
readonly frames: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
293
|
-
readonly url: Schema.String;
|
|
294
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
295
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
296
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
297
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
298
|
-
readonly width: Schema.Number;
|
|
299
|
-
readonly height: Schema.Number;
|
|
300
|
-
}>>>;
|
|
301
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
302
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
303
|
-
readonly href: Schema.String;
|
|
304
|
-
}>>>;
|
|
305
|
-
}>>>;
|
|
306
|
-
}>>;
|
|
307
|
-
}>>;
|
|
308
|
-
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
309
|
-
readonly finishedAt: Schema.optionalKey<Schema.String>;
|
|
310
|
-
/** Why the job stopped early, when `state` is `errored`. */
|
|
311
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
312
|
-
/**
|
|
313
|
-
* When the process running the job last rewrote the ledger. Refreshed every few seconds while
|
|
314
|
-
* the job is queued or running; a stale one means that process is gone.
|
|
315
|
-
*/
|
|
316
|
-
readonly heartbeatAt: Schema.optionalKey<Schema.String>;
|
|
317
|
-
/** ID of the operating-system process running the job, when known. */
|
|
318
|
-
readonly pid: Schema.optionalKey<Schema.Int>;
|
|
319
|
-
/** The device the browser emulated, as people read it, such as `iPhone 17 (Chromium)`. */
|
|
320
|
-
readonly deviceLabel: Schema.optionalKey<Schema.String>;
|
|
321
|
-
/** The browser the run used, once it started. Missing in older runs. */
|
|
322
|
-
readonly browser: Schema.optionalKey<Schema.Struct<{
|
|
323
|
-
readonly type: Schema.String;
|
|
324
|
-
readonly channel: Schema.optionalKey<Schema.String>;
|
|
325
|
-
readonly version: Schema.String;
|
|
326
|
-
}>>;
|
|
327
|
-
/** The browser sessions of the run, each with its video. Missing in older runs. */
|
|
328
|
-
readonly sessions: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
329
|
-
readonly number: Schema.Int;
|
|
330
|
-
readonly account: Schema.optionalKey<Schema.String>;
|
|
331
|
-
readonly startedAt: Schema.String;
|
|
332
|
-
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
333
|
-
readonly durationMs: Schema.optionalKey<Schema.Number>;
|
|
334
|
-
readonly video: Schema.optionalKey<Schema.String>;
|
|
335
|
-
readonly videoDurationMs: Schema.optionalKey<Schema.Number>;
|
|
336
|
-
readonly videoProblem: Schema.optionalKey<Schema.String>;
|
|
337
|
-
readonly still: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
338
|
-
readonly fromMs: Schema.Number;
|
|
339
|
-
readonly toMs: Schema.Number;
|
|
340
|
-
}>>>;
|
|
341
|
-
}>>>;
|
|
342
|
-
/** The screw-bugs version that ran the job. */
|
|
343
|
-
readonly version: Schema.optionalKey<Schema.String>;
|
|
344
|
-
/** Where the job is while it runs (see `RunProgress`). */
|
|
345
|
-
readonly progress: Schema.optionalKey<Schema.Struct<{
|
|
346
|
-
readonly case: Schema.Int;
|
|
347
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
348
|
-
readonly kind: Schema.optionalKey<Schema.String>;
|
|
349
|
-
}>>;
|
|
350
|
-
}>;
|
|
351
|
-
export type CaseLedger = typeof CaseLedger.Type;
|
|
352
|
-
/**
|
|
353
|
-
* A highlight of the agent's findings as the report draws it: its box on the screenshot, or in
|
|
354
|
-
* words why it has none (the element was not found, or more than one matched). Never a guess.
|
|
355
|
-
*/
|
|
356
|
-
export declare const PlacedMark: Schema.Struct<{
|
|
357
|
-
readonly mark: Schema.Literals<readonly ["red", "green"]>;
|
|
358
|
-
/** The element as the agent named it, such as `button "Sign in"`. */
|
|
359
|
-
readonly target: Schema.String;
|
|
360
|
-
readonly note: Schema.optionalKey<Schema.String>;
|
|
361
|
-
readonly box: Schema.optionalKey<Schema.Struct<{
|
|
362
|
-
readonly x: Schema.Number;
|
|
363
|
-
readonly y: Schema.Number;
|
|
364
|
-
readonly width: Schema.Number;
|
|
365
|
-
readonly height: Schema.Number;
|
|
366
|
-
}>>;
|
|
367
|
-
/** Where the element's text and images are inside `box` (`Candidate.content`), when known. */
|
|
368
|
-
readonly content: Schema.optionalKey<Schema.Struct<{
|
|
369
|
-
readonly x: Schema.Number;
|
|
370
|
-
readonly y: Schema.Number;
|
|
371
|
-
readonly width: Schema.Number;
|
|
372
|
-
readonly height: Schema.Number;
|
|
373
|
-
}>>;
|
|
374
|
-
readonly problem: Schema.optionalKey<Schema.String>;
|
|
375
|
-
/**
|
|
376
|
-
* Other matches that were left out because they were not on the screenshot, in words, such as
|
|
377
|
-
* `1 more match outside this screenshot was ignored`.
|
|
378
|
-
*/
|
|
379
|
-
readonly ignored: Schema.optionalKey<Schema.String>;
|
|
380
|
-
}>;
|
|
381
|
-
export type PlacedMark = typeof PlacedMark.Type;
|
|
382
|
-
/**
|
|
383
|
-
* Everything a finished run leaves on disk. `files` paths are relative to the bundle directory,
|
|
384
|
-
* so a bundle can be zipped, moved or uploaded as is.
|
|
385
|
-
*/
|
|
386
|
-
export declare const ReportBundle: Schema.Struct<{
|
|
387
|
-
readonly formatVersion: Schema.Literal<1>;
|
|
388
|
-
/**
|
|
389
|
-
* The screw-bugs version that built this bundle: the run, or a later `screw-bugs report`,
|
|
390
|
-
* `submit_findings` or `screw-bugs findings`, which may be a newer version than the one that ran
|
|
391
|
-
* the job (`ledger.version`). Missing in bundles built before it was kept, or by a build that
|
|
392
|
-
* does not know its version.
|
|
393
|
-
*/
|
|
394
|
-
readonly generator: Schema.optionalKey<Schema.Struct<{
|
|
395
|
-
readonly name: Schema.Literal<"screw-bugs">;
|
|
396
|
-
readonly version: Schema.String;
|
|
397
|
-
}>>;
|
|
398
|
-
readonly jobId: Schema.brand<Schema.String, "JobId">;
|
|
399
|
-
readonly spec: Schema.Struct<{
|
|
400
|
-
readonly version: Schema.Literal<1>;
|
|
401
|
-
readonly url: Schema.NonEmptyString;
|
|
402
|
-
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
403
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
404
|
-
readonly summary: Schema.optionalKey<Schema.String>;
|
|
405
|
-
readonly cases: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
406
|
-
readonly id: Schema.String;
|
|
407
|
-
readonly title: Schema.NonEmptyString;
|
|
408
|
-
readonly steps: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
409
|
-
readonly action: Schema.Literal<"goto">;
|
|
410
|
-
readonly url: Schema.NonEmptyString;
|
|
411
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
412
|
-
}>, Schema.Struct<{
|
|
413
|
-
readonly action: Schema.Literal<"reload">;
|
|
414
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
415
|
-
}>, Schema.Struct<{
|
|
416
|
-
readonly action: Schema.Literal<"click">;
|
|
417
|
-
readonly target: Schema.Struct<{
|
|
418
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
419
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
420
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
421
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
422
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
423
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
424
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
425
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
426
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
427
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
428
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
429
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
430
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
431
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
432
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
433
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
434
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
435
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
436
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
437
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
438
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
439
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
440
|
-
}>>]>>;
|
|
441
|
-
}>;
|
|
442
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
443
|
-
}>, Schema.Struct<{
|
|
444
|
-
readonly action: Schema.Literal<"hover">;
|
|
445
|
-
readonly target: Schema.Struct<{
|
|
446
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
447
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
448
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
449
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
450
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
451
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
452
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
453
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
454
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
455
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
456
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
457
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
458
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
459
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
460
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
461
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
462
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
463
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
464
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
465
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
466
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
467
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
468
|
-
}>>]>>;
|
|
469
|
-
}>;
|
|
470
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
471
|
-
}>, Schema.Struct<{
|
|
472
|
-
readonly action: Schema.Literal<"fill">;
|
|
473
|
-
readonly target: Schema.Struct<{
|
|
474
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
475
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
476
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
477
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
478
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
479
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
480
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
481
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
482
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
483
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
484
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
485
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
486
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
487
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
488
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
489
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
490
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
491
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
492
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
493
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
494
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
495
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
496
|
-
}>>]>>;
|
|
497
|
-
}>;
|
|
498
|
-
readonly value: Schema.String;
|
|
499
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
500
|
-
}>, Schema.Struct<{
|
|
501
|
-
readonly action: Schema.Literal<"upload">;
|
|
502
|
-
readonly target: Schema.Struct<{
|
|
503
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
504
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
505
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
506
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
507
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
508
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
509
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
510
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
511
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
512
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
513
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
514
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
515
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
516
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
517
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
518
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
519
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
520
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
521
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
522
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
523
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
524
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
525
|
-
}>>]>>;
|
|
526
|
-
}>;
|
|
527
|
-
readonly files: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{
|
|
528
|
-
readonly path: Schema.NonEmptyString;
|
|
529
|
-
readonly about: Schema.optionalKey<Schema.String>;
|
|
530
|
-
readonly allowMismatch: Schema.optionalKey<Schema.Boolean>;
|
|
531
|
-
}>]>>;
|
|
532
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
533
|
-
}>, Schema.Struct<{
|
|
534
|
-
readonly action: Schema.Literal<"press">;
|
|
535
|
-
readonly key: Schema.NonEmptyString;
|
|
536
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
537
|
-
}>, Schema.Struct<{
|
|
538
|
-
readonly action: Schema.Literal<"expectText">;
|
|
539
|
-
readonly text: Schema.NonEmptyString;
|
|
540
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
541
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
542
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
543
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
544
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
545
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
546
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
547
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
548
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
549
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
550
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
551
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
552
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
553
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
554
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
555
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
556
|
-
}>>]>>;
|
|
557
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
558
|
-
}>, Schema.Struct<{
|
|
559
|
-
readonly action: Schema.Literal<"expectNoText">;
|
|
560
|
-
readonly text: Schema.NonEmptyString;
|
|
561
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
562
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
563
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
564
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
565
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
566
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
567
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
568
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
569
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
570
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
571
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
572
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
573
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
574
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
575
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
576
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
577
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
578
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
579
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
580
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
581
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
582
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
583
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
584
|
-
}>>]>>;
|
|
585
|
-
}>>;
|
|
586
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
587
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
588
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
589
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
590
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
591
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
592
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
593
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
594
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
595
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
596
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
597
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
598
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
599
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
600
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
601
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
602
|
-
}>>]>>;
|
|
603
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
604
|
-
}>, Schema.Struct<{
|
|
605
|
-
readonly action: Schema.Literal<"waitFor">;
|
|
606
|
-
readonly target: Schema.Struct<{
|
|
607
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
608
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
609
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
610
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
611
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
612
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
613
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
614
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
615
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
616
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
617
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
618
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
619
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
620
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
621
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
622
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
623
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
624
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
625
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
626
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
627
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
628
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
629
|
-
}>>]>>;
|
|
630
|
-
}>;
|
|
631
|
-
readonly state: Schema.optionalKey<Schema.Literals<readonly ["visible", "hidden", "attached", "detached"]>>;
|
|
632
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
633
|
-
}>, Schema.Struct<{
|
|
634
|
-
readonly action: Schema.Literal<"scroll">;
|
|
635
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
636
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
637
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
638
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
639
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
640
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
641
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
642
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
643
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
644
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
645
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
646
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
647
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
648
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
649
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
650
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
651
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
652
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
653
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
654
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
655
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
656
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
657
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
658
|
-
}>>]>>;
|
|
659
|
-
}>>;
|
|
660
|
-
readonly to: Schema.optionalKey<Schema.Literals<readonly ["top", "bottom"]>>;
|
|
661
|
-
readonly by: Schema.optionalKey<Schema.Finite>;
|
|
662
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
663
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
664
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
665
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
666
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
667
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
668
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
669
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
670
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
671
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
672
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
673
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
674
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
675
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
676
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
677
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
678
|
-
}>>]>>;
|
|
679
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
680
|
-
}>, Schema.Struct<{
|
|
681
|
-
readonly action: Schema.Literal<"expectUrl">;
|
|
682
|
-
readonly includes: Schema.NonEmptyString;
|
|
683
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
684
|
-
}>, Schema.Struct<{
|
|
685
|
-
readonly action: Schema.Literal<"expectLink">;
|
|
686
|
-
readonly target: Schema.Struct<{
|
|
687
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
688
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
689
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
690
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
691
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
692
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
693
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
694
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
695
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
696
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
697
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
698
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
699
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
700
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
701
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
702
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
703
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
704
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
705
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
706
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
707
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
708
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
709
|
-
}>>]>>;
|
|
710
|
-
}>;
|
|
711
|
-
readonly href: Schema.NonEmptyString;
|
|
712
|
-
readonly match: Schema.optionalKey<Schema.Literals<readonly ["contains", "exact"]>>;
|
|
713
|
-
readonly timeoutMs: Schema.optionalKey<Schema.Finite>;
|
|
714
|
-
}>, Schema.Struct<{
|
|
715
|
-
readonly action: Schema.Literal<"screenshot">;
|
|
716
|
-
readonly name: Schema.String;
|
|
717
|
-
}>]>>;
|
|
718
|
-
readonly continue: Schema.optionalKey<Schema.Boolean>;
|
|
719
|
-
readonly success: Schema.optionalKey<Schema.String>;
|
|
720
|
-
}>>>;
|
|
721
|
-
readonly device: Schema.optionalKey<Schema.Literals<readonly ["desktop", "mobile"]>>;
|
|
722
|
-
readonly account: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
723
|
-
readonly label: Schema.String;
|
|
724
|
-
readonly about: Schema.optionalKey<Schema.String>;
|
|
725
|
-
readonly renew: Schema.optionalKey<Schema.Boolean>;
|
|
726
|
-
}>]>>;
|
|
727
|
-
}>;
|
|
728
|
-
readonly ledger: Schema.Struct<{
|
|
729
|
-
readonly jobId: Schema.brand<Schema.String, "JobId">;
|
|
730
|
-
readonly state: Schema.Literals<readonly ["queued", "running", "waiting_for_answer", "finished", "errored"]>;
|
|
731
|
-
readonly cases: Schema.$Array<Schema.Struct<{
|
|
732
|
-
readonly id: Schema.NonEmptyString;
|
|
733
|
-
readonly title: Schema.NonEmptyString;
|
|
734
|
-
readonly status: Schema.Literals<readonly ["passed", "failed", "blocked", "not_verified"]>;
|
|
735
|
-
/**
|
|
736
|
-
* For a case that continued (`CaseSpec.continue`): the ID of the case before it, on whose page
|
|
737
|
-
* it started rather than at the job URL.
|
|
738
|
-
*/
|
|
739
|
-
readonly continuedFrom: Schema.optionalKey<Schema.String>;
|
|
740
|
-
/** Why the case did not pass, in plain language. Never DOM or browser logs. */
|
|
741
|
-
readonly reason: Schema.optionalKey<Schema.String>;
|
|
742
|
-
/**
|
|
743
|
-
* 1-based index of the step that decided a failed or blocked status; 0 is the opening
|
|
744
|
-
* navigation to the job URL that a case gets when its first step is not goto.
|
|
745
|
-
*/
|
|
746
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
747
|
-
/**
|
|
748
|
-
* Paths such as `evidence/01/02-after-login.png`: case and screenshot numbers, so they never
|
|
749
|
-
* collide on any file system. Runs from older versions have `evidence/<case>/<name>.png` or
|
|
750
|
-
* `evidence/<case>-<name>.png`.
|
|
751
|
-
*/
|
|
752
|
-
readonly evidence: Schema.$Array<Schema.String>;
|
|
753
|
-
/**
|
|
754
|
-
* The name each evidence path was saved under, as the job gave it (`after-login`), or
|
|
755
|
-
* `step3-failed` for the screenshot taken when the case stopped. Missing in older runs.
|
|
756
|
-
*/
|
|
757
|
-
readonly evidenceNames: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
758
|
-
/** The session it ran in (`Session.number`). Missing in older runs, as are the fields below. */
|
|
759
|
-
readonly session: Schema.optionalKey<Schema.Int>;
|
|
760
|
-
/** When the case started and ended, in ms from the start of its session's video. */
|
|
761
|
-
readonly startMs: Schema.optionalKey<Schema.Number>;
|
|
762
|
-
readonly endMs: Schema.optionalKey<Schema.Number>;
|
|
763
|
-
/** When each step that ran started and ended. */
|
|
764
|
-
readonly steps: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
765
|
-
readonly index: Schema.Int;
|
|
766
|
-
readonly startMs: Schema.Number;
|
|
767
|
-
readonly endMs: Schema.Number;
|
|
768
|
-
readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
769
|
-
readonly name: Schema.String;
|
|
770
|
-
readonly size: Schema.Number;
|
|
771
|
-
}>>>;
|
|
772
|
-
readonly action: Schema.optionalKey<Schema.Struct<{
|
|
773
|
-
readonly kind: Schema.Literals<readonly ["click", "hover", "fill", "upload", "press", "scroll", "goto", "reload"]>;
|
|
774
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
775
|
-
readonly point: Schema.optionalKey<Schema.Struct<{
|
|
776
|
-
readonly x: Schema.Number;
|
|
777
|
-
readonly y: Schema.Number;
|
|
778
|
-
}>>;
|
|
779
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
780
|
-
readonly x: Schema.Number;
|
|
781
|
-
readonly y: Schema.Number;
|
|
782
|
-
readonly width: Schema.Number;
|
|
783
|
-
readonly height: Schema.Number;
|
|
784
|
-
}>>;
|
|
785
|
-
readonly scale: Schema.optionalKey<Schema.Number>;
|
|
786
|
-
readonly viewport: Schema.optionalKey<Schema.Struct<{
|
|
787
|
-
readonly width: Schema.Number;
|
|
788
|
-
readonly height: Schema.Number;
|
|
789
|
-
}>>;
|
|
790
|
-
}>>;
|
|
791
|
-
readonly onScreen: Schema.optionalKey<Schema.Struct<{
|
|
792
|
-
readonly shown: Schema.Number;
|
|
793
|
-
readonly problem: Schema.optionalKey<Schema.Literals<readonly ["clipped", "covered", "offscreen", "transparent"]>>;
|
|
794
|
-
readonly by: Schema.optionalKey<Schema.String>;
|
|
795
|
-
readonly scrolls: Schema.optionalKey<Schema.Boolean>;
|
|
796
|
-
}>>;
|
|
797
|
-
}>>>;
|
|
798
|
-
/** Every screenshot of `evidence`, with what it shows. */
|
|
799
|
-
readonly shots: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
800
|
-
readonly id: Schema.String;
|
|
801
|
-
readonly path: Schema.String;
|
|
802
|
-
readonly name: Schema.String;
|
|
803
|
-
readonly kind: Schema.Literals<readonly ["step", "named", "failure"]>;
|
|
804
|
-
readonly step: Schema.Int;
|
|
805
|
-
readonly fullPage: Schema.Boolean;
|
|
806
|
-
readonly width: Schema.Int;
|
|
807
|
-
readonly height: Schema.Int;
|
|
808
|
-
readonly target: Schema.optionalKey<Schema.Struct<{
|
|
809
|
-
readonly x: Schema.Number;
|
|
810
|
-
readonly y: Schema.Number;
|
|
811
|
-
readonly width: Schema.Number;
|
|
812
|
-
readonly height: Schema.Number;
|
|
813
|
-
}>>;
|
|
814
|
-
readonly targetContent: Schema.optionalKey<Schema.Struct<{
|
|
815
|
-
readonly x: Schema.Number;
|
|
816
|
-
readonly y: Schema.Number;
|
|
817
|
-
readonly width: Schema.Number;
|
|
818
|
-
readonly height: Schema.Number;
|
|
819
|
-
}>>;
|
|
820
|
-
readonly targetProblem: Schema.optionalKey<Schema.String>;
|
|
821
|
-
readonly page: Schema.optionalKey<Schema.String>;
|
|
822
|
-
readonly atMs: Schema.optionalKey<Schema.Number>;
|
|
823
|
-
readonly targetAtMs: Schema.optionalKey<Schema.Number>;
|
|
824
|
-
readonly visual: Schema.optionalKey<Schema.Struct<{
|
|
825
|
-
readonly scale: Schema.Number;
|
|
826
|
-
readonly x: Schema.Number;
|
|
827
|
-
readonly y: Schema.Number;
|
|
828
|
-
}>>;
|
|
829
|
-
}>>>;
|
|
830
|
-
/** Short facts about the page when the case ended. */
|
|
831
|
-
readonly facts: Schema.optionalKey<Schema.Struct<{
|
|
832
|
-
readonly url: Schema.String;
|
|
833
|
-
readonly title: Schema.optionalKey<Schema.String>;
|
|
834
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
835
|
-
readonly httpErrors: Schema.$Array<Schema.Struct<{
|
|
836
|
-
readonly url: Schema.String;
|
|
837
|
-
readonly status: Schema.Int;
|
|
838
|
-
}>>;
|
|
839
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
840
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
841
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
842
|
-
readonly width: Schema.Number;
|
|
843
|
-
readonly height: Schema.Number;
|
|
844
|
-
}>>>;
|
|
845
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
846
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
847
|
-
readonly href: Schema.String;
|
|
848
|
-
}>>>;
|
|
849
|
-
readonly frames: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
850
|
-
readonly url: Schema.String;
|
|
851
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
852
|
-
readonly images: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
853
|
-
readonly alt: Schema.optionalKey<Schema.String>;
|
|
854
|
-
readonly src: Schema.optionalKey<Schema.String>;
|
|
855
|
-
readonly width: Schema.Number;
|
|
856
|
-
readonly height: Schema.Number;
|
|
857
|
-
}>>>;
|
|
858
|
-
readonly links: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
859
|
-
readonly text: Schema.optionalKey<Schema.String>;
|
|
860
|
-
readonly href: Schema.String;
|
|
861
|
-
}>>>;
|
|
862
|
-
}>>>;
|
|
863
|
-
}>>;
|
|
864
|
-
}>>;
|
|
865
|
-
readonly startedAt: Schema.optionalKey<Schema.String>;
|
|
866
|
-
readonly finishedAt: Schema.optionalKey<Schema.String>;
|
|
867
|
-
/** Why the job stopped early, when `state` is `errored`. */
|
|
868
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
869
|
-
/**
|
|
870
|
-
* When the process running the job last rewrote the ledger. Refreshed every few seconds while
|
|
871
|
-
* the job is queued or running; a stale one means that process is gone.
|
|
872
|
-
*/
|
|
873
|
-
readonly heartbeatAt: Schema.optionalKey<Schema.String>;
|
|
874
|
-
/** ID of the operating-system process running the job, when known. */
|
|
875
|
-
readonly pid: Schema.optionalKey<Schema.Int>;
|
|
876
|
-
/** The device the browser emulated, as people read it, such as `iPhone 17 (Chromium)`. */
|
|
877
|
-
readonly deviceLabel: Schema.optionalKey<Schema.String>;
|
|
878
|
-
/** The browser the run used, once it started. Missing in older runs. */
|
|
879
|
-
readonly browser: Schema.optionalKey<Schema.Struct<{
|
|
880
|
-
readonly type: Schema.String;
|
|
881
|
-
readonly channel: Schema.optionalKey<Schema.String>;
|
|
882
|
-
readonly version: Schema.String;
|
|
883
|
-
}>>;
|
|
884
|
-
/** The browser sessions of the run, each with its video. Missing in older runs. */
|
|
885
|
-
readonly sessions: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
886
|
-
readonly number: Schema.Int;
|
|
887
|
-
readonly account: Schema.optionalKey<Schema.String>;
|
|
888
|
-
readonly startedAt: Schema.String;
|
|
889
|
-
readonly endedAt: Schema.optionalKey<Schema.String>;
|
|
890
|
-
readonly durationMs: Schema.optionalKey<Schema.Number>;
|
|
891
|
-
readonly video: Schema.optionalKey<Schema.String>;
|
|
892
|
-
readonly videoDurationMs: Schema.optionalKey<Schema.Number>;
|
|
893
|
-
readonly videoProblem: Schema.optionalKey<Schema.String>;
|
|
894
|
-
readonly still: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
895
|
-
readonly fromMs: Schema.Number;
|
|
896
|
-
readonly toMs: Schema.Number;
|
|
897
|
-
}>>>;
|
|
898
|
-
}>>>;
|
|
899
|
-
/** The screw-bugs version that ran the job. */
|
|
900
|
-
readonly version: Schema.optionalKey<Schema.String>;
|
|
901
|
-
/** Where the job is while it runs (see `RunProgress`). */
|
|
902
|
-
readonly progress: Schema.optionalKey<Schema.Struct<{
|
|
903
|
-
readonly case: Schema.Int;
|
|
904
|
-
readonly step: Schema.optionalKey<Schema.Int>;
|
|
905
|
-
readonly kind: Schema.optionalKey<Schema.String>;
|
|
906
|
-
}>>;
|
|
907
|
-
}>;
|
|
908
|
-
readonly startedAt: Schema.String;
|
|
909
|
-
readonly finishedAt: Schema.optionalKey<Schema.String>;
|
|
910
|
-
/**
|
|
911
|
-
* What the run tests, from `summaryOf(spec)`: the caller's summary, or one derived from the case
|
|
912
|
-
* titles when `derived` is true. The caller's own text, if any, is also in `spec.summary`.
|
|
913
|
-
*/
|
|
914
|
-
readonly summary: Schema.Struct<{
|
|
915
|
-
readonly text: Schema.String;
|
|
916
|
-
readonly derived: Schema.Boolean;
|
|
917
|
-
}>;
|
|
918
|
-
/**
|
|
919
|
-
* The device the run used: `spec.device` (desktop by default) and its label from the ledger,
|
|
920
|
-
* or a generic one for runs recorded before ledgers kept it.
|
|
921
|
-
*/
|
|
922
|
-
readonly device: Schema.Struct<{
|
|
923
|
-
readonly kind: Schema.Literals<readonly ["desktop", "mobile"]>;
|
|
924
|
-
readonly label: Schema.String;
|
|
925
|
-
}>;
|
|
926
|
-
/** The browser the run used, from the ledger; missing for runs recorded before it kept it. */
|
|
927
|
-
readonly browser: Schema.optionalKey<Schema.Struct<{
|
|
928
|
-
readonly type: Schema.String;
|
|
929
|
-
readonly channel: Schema.optionalKey<Schema.String>;
|
|
930
|
-
readonly version: Schema.String;
|
|
931
|
-
}>>;
|
|
932
|
-
readonly files: Schema.Struct<{
|
|
933
|
-
readonly ledger: Schema.String;
|
|
934
|
-
readonly html: Schema.optionalKey<Schema.String>;
|
|
935
|
-
/** The walkthrough (`runFiles.walkthrough`), when one was written with this report. */
|
|
936
|
-
readonly walkthrough: Schema.optionalKey<Schema.String>;
|
|
937
|
-
readonly evidenceDir: Schema.String;
|
|
938
|
-
}>;
|
|
939
|
-
/** The agent's write-up, once it submitted one. */
|
|
940
|
-
readonly findings: Schema.optionalKey<Schema.Struct<{
|
|
941
|
-
readonly version: Schema.optionalKey<Schema.Literal<1>>;
|
|
942
|
-
readonly headline: Schema.String;
|
|
943
|
-
readonly fixes: Schema.$Array<Schema.Struct<{
|
|
944
|
-
readonly title: Schema.String;
|
|
945
|
-
readonly severity: Schema.Literals<readonly ["high", "medium", "low"]>;
|
|
946
|
-
readonly caseIds: Schema.$Array<Schema.NonEmptyString>;
|
|
947
|
-
readonly why: Schema.String;
|
|
948
|
-
}>>;
|
|
949
|
-
readonly cases: Schema.$Array<Schema.Struct<{
|
|
950
|
-
readonly id: Schema.NonEmptyString;
|
|
951
|
-
readonly did: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
952
|
-
readonly worked: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
953
|
-
readonly didnt: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
954
|
-
readonly failed: Schema.optionalKey<Schema.String>;
|
|
955
|
-
readonly highlights: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
956
|
-
readonly shot: Schema.NonEmptyString;
|
|
957
|
-
readonly target: Schema.Struct<{
|
|
958
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
959
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
960
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
961
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
962
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
963
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
964
|
-
readonly frame: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
965
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
966
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
967
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
968
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
969
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
970
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
971
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
972
|
-
}>, Schema.$Array<Schema.Struct<{
|
|
973
|
-
readonly role: Schema.optionalKey<Schema.NonEmptyString>;
|
|
974
|
-
readonly name: Schema.optionalKey<Schema.NonEmptyString>;
|
|
975
|
-
readonly text: Schema.optionalKey<Schema.NonEmptyString>;
|
|
976
|
-
readonly label: Schema.optionalKey<Schema.NonEmptyString>;
|
|
977
|
-
readonly alt: Schema.optionalKey<Schema.NonEmptyString>;
|
|
978
|
-
readonly css: Schema.optionalKey<Schema.NonEmptyString>;
|
|
979
|
-
readonly frame: Schema.optionalKey<Schema.Unknown>;
|
|
980
|
-
}>>]>>;
|
|
981
|
-
}>;
|
|
982
|
-
readonly mark: Schema.Literals<readonly ["red", "green"]>;
|
|
983
|
-
readonly note: Schema.optionalKey<Schema.String>;
|
|
984
|
-
}>>>;
|
|
985
|
-
readonly keyMoments: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
986
|
-
readonly ms: Schema.Int;
|
|
987
|
-
readonly label: Schema.String;
|
|
988
|
-
}>>>;
|
|
989
|
-
readonly observed: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
990
|
-
}>>;
|
|
991
|
-
readonly notTested: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
992
|
-
readonly what: Schema.String;
|
|
993
|
-
readonly why: Schema.String;
|
|
994
|
-
}>>>;
|
|
995
|
-
readonly nextTests: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
996
|
-
}>>;
|
|
997
|
-
/** The agent's highlights, placed on their screenshots by code, by screenshot ID. */
|
|
998
|
-
readonly marks: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.Struct<{
|
|
999
|
-
readonly mark: Schema.Literals<readonly ["red", "green"]>;
|
|
1000
|
-
/** The element as the agent named it, such as `button "Sign in"`. */
|
|
1001
|
-
readonly target: Schema.String;
|
|
1002
|
-
readonly note: Schema.optionalKey<Schema.String>;
|
|
1003
|
-
readonly box: Schema.optionalKey<Schema.Struct<{
|
|
1004
|
-
readonly x: Schema.Number;
|
|
1005
|
-
readonly y: Schema.Number;
|
|
1006
|
-
readonly width: Schema.Number;
|
|
1007
|
-
readonly height: Schema.Number;
|
|
1008
|
-
}>>;
|
|
1009
|
-
/** Where the element's text and images are inside `box` (`Candidate.content`), when known. */
|
|
1010
|
-
readonly content: Schema.optionalKey<Schema.Struct<{
|
|
1011
|
-
readonly x: Schema.Number;
|
|
1012
|
-
readonly y: Schema.Number;
|
|
1013
|
-
readonly width: Schema.Number;
|
|
1014
|
-
readonly height: Schema.Number;
|
|
1015
|
-
}>>;
|
|
1016
|
-
readonly problem: Schema.optionalKey<Schema.String>;
|
|
1017
|
-
/**
|
|
1018
|
-
* Other matches that were left out because they were not on the screenshot, in words, such as
|
|
1019
|
-
* `1 more match outside this screenshot was ignored`.
|
|
1020
|
-
*/
|
|
1021
|
-
readonly ignored: Schema.optionalKey<Schema.String>;
|
|
1022
|
-
}>>>>;
|
|
1023
|
-
/** Copies of screenshots with the highlights drawn in, by screenshot ID; relative paths. */
|
|
1024
|
-
readonly annotated: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1025
|
-
/**
|
|
1026
|
-
* The boxes of the page's elements on screenshots that get boxes drawn on them, by screenshot
|
|
1027
|
-
* ID, from their saved page state: labels keep off them where they can.
|
|
1028
|
-
*/
|
|
1029
|
-
readonly elements: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Array<Schema.Struct<{
|
|
1030
|
-
readonly x: Schema.Number;
|
|
1031
|
-
readonly y: Schema.Number;
|
|
1032
|
-
readonly width: Schema.Number;
|
|
1033
|
-
readonly height: Schema.Number;
|
|
1034
|
-
}>>>>;
|
|
1035
|
-
/**
|
|
1036
|
-
* The page's URL when each screenshot was taken, from its saved page state, by screenshot ID:
|
|
1037
|
-
* what the reports' players show as the address at that moment of the video.
|
|
1038
|
-
*/
|
|
1039
|
-
readonly urls: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
1040
|
-
}>;
|
|
1041
|
-
export type ReportBundle = typeof ReportBundle.Type;
|
|
1042
|
-
/** Where things are inside a run folder, relative to it. */
|
|
1043
|
-
export declare const runFiles: {
|
|
1044
|
-
readonly job: 'job.json';
|
|
1045
|
-
readonly ledger: 'ledger.json';
|
|
1046
|
-
/** The run's own report; only the run, or `screw-bugs report` once it has ended, writes it. */
|
|
1047
|
-
readonly html: 'report.html';
|
|
1048
|
-
/** The report of a run whose process is gone, written by whoever reads its status. */
|
|
1049
|
-
readonly interruptedHtml: 'report-interrupted.html';
|
|
1050
|
-
/**
|
|
1051
|
-
* The run's walkthrough: its video with every step as a clickable script. Written with
|
|
1052
|
-
* `report.html`, by whoever writes that, never by itself or with `report-interrupted.html`.
|
|
1053
|
-
*/
|
|
1054
|
-
readonly walkthrough: 'walkthrough.html';
|
|
1055
|
-
/**
|
|
1056
|
-
* The page a person watches a run on while it goes: written only by the run, when it starts and
|
|
1057
|
-
* with every ledger write, refreshing itself while the run is going; its last write links the
|
|
1058
|
-
* report (and the walkthrough). Never the report, and nothing else reads it.
|
|
1059
|
-
*/
|
|
1060
|
-
readonly live: 'live.html';
|
|
1061
|
-
readonly evidenceDir: 'evidence';
|
|
1062
|
-
/** The evidence pack of an ended run, written by the run. */
|
|
1063
|
-
readonly evidence: 'evidence.json';
|
|
1064
|
-
/** The agent's write-up, written by `submit_findings` and `screw-bugs findings`. */
|
|
1065
|
-
readonly findings: 'findings.json';
|
|
1066
|
-
/** One video per session, `video/session-<n>.webm`. */
|
|
1067
|
-
readonly videoDir: 'video';
|
|
1068
|
-
/**
|
|
1069
|
-
* Screenshots with the agent's highlights drawn in, `annotated/<shot ID>-<revision>.png`, where
|
|
1070
|
-
* the revision is that of the `findings.json` they were drawn for. Copies for older findings
|
|
1071
|
-
* may be left there; nothing shows them.
|
|
1072
|
-
*/
|
|
1073
|
-
readonly annotatedDir: 'annotated';
|
|
1074
|
-
};
|
|
1075
|
-
/** Where the video of session `number` goes, relative to the run folder. */
|
|
1076
|
-
export declare const videoFile: (number: number) => string;
|
|
1077
|
-
/**
|
|
1078
|
-
* Where the annotated copy of a screenshot goes, relative to the run folder, for the findings of
|
|
1079
|
-
* `revision` (see `findingsRevision`).
|
|
1080
|
-
*/
|
|
1081
|
-
export declare const annotatedFile: (shotId: string, revision: string) => string;
|
|
1082
|
-
/**
|
|
1083
|
-
* A short fingerprint of the text of a `findings.json` (FNV-1a, 64 bits, in hex), so annotated
|
|
1084
|
-
* copies drawn for other findings are never taken for this one's. Not a security measure.
|
|
1085
|
-
*/
|
|
1086
|
-
export declare const findingsRevision: (text: string) => string;
|
|
1087
|
-
/**
|
|
1088
|
-
* The report bundle of a run, from its job record and (current or final) ledger. `version` is
|
|
1089
|
-
* the screw-bugs version building it (`generator`); undefined leaves that out.
|
|
1090
|
-
*/
|
|
1091
|
-
export declare const reportBundleOf: (job: JobRecord, ledger: CaseLedger, writeUp?: Pick<ReportBundle, 'findings' | 'marks' | 'annotated' | 'elements' | 'urls'>, version?: string) => ReportBundle;
|
|
1092
|
-
/**
|
|
1093
|
-
* The cases the agent's findings mark failed (`CaseFindings.failed`), by case ID, with what is
|
|
1094
|
-
* wrong. Empty without findings.
|
|
1095
|
-
*/
|
|
1096
|
-
export declare const agentFailures: (findings: Findings | undefined) => ReadonlyMap<string, string>;
|
|
1097
|
-
/** A case as results show it: its status there, and what the run's code decided. */
|
|
1098
|
-
export type JudgedCase = CaseEntry & {
|
|
1099
|
-
/** The status the run's code gave it, as `ledger.json` keeps it. */
|
|
1100
|
-
readonly checkStatus: CaseStatus;
|
|
1101
|
-
/** What is wrong, when the agent's findings mark it failed (then `status` is `failed`). */
|
|
1102
|
-
readonly agentFailed?: string;
|
|
1103
|
-
};
|
|
1104
|
-
/**
|
|
1105
|
-
* A case's status as results show it: `failed` when the agent's findings mark it failed, else the
|
|
1106
|
-
* code's. Findings can only turn a case into a failure, never make one pass.
|
|
1107
|
-
*/
|
|
1108
|
-
export declare const judgedCase: (entry: CaseEntry, failures: ReadonlyMap<string, string>) => JudgedCase;
|
|
1109
|
-
/** A ledger whose cases have their statuses as results show them (see `judgedLedger`). */
|
|
1110
|
-
export type JudgedLedger = Omit<CaseLedger, 'cases'> & {
|
|
1111
|
-
readonly cases: ReadonlyArray<JudgedCase>;
|
|
1112
|
-
};
|
|
1113
|
-
/**
|
|
1114
|
-
* The ledger as everything that shows results reads it (reports, replies, the CLI): each case's
|
|
1115
|
-
* status after the agent's findings (`judgedCase`). `ledger.json` and `evidence.json` keep the
|
|
1116
|
-
* code's statuses.
|
|
1117
|
-
*/
|
|
1118
|
-
export declare const judgedLedger: (ledger: CaseLedger, findings: Findings | undefined) => JudgedLedger;
|
|
1119
|
-
/**
|
|
1120
|
-
* Where a running job is, in words: `case 2 of 3 (reply-maya), step 4 (click)`, or without the
|
|
1121
|
-
* step before its case started one. Undefined unless the ledger is running and has a progress
|
|
1122
|
-
* that names one of its cases.
|
|
1123
|
-
*/
|
|
1124
|
-
export declare const progressText: (ledger: Pick<CaseLedger, 'state' | 'cases' | 'progress'>) => string | undefined;
|