@open-qa/qa 0.1.0-alpha.3 → 0.1.0-alpha.5

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.
Files changed (118) hide show
  1. package/THIRD_PARTY.md +5 -0
  2. package/drizzle/0017_provider_notifications.sql +13 -0
  3. package/drizzle/0018_classification_registry.sql +39 -0
  4. package/drizzle/0019_trial_audit.sql +44 -0
  5. package/drizzle/meta/0017_snapshot.json +2092 -0
  6. package/drizzle/meta/0018_snapshot.json +2102 -0
  7. package/drizzle/meta/0019_snapshot.json +2451 -0
  8. package/drizzle/meta/_journal.json +21 -0
  9. package/package.json +12 -7
  10. package/src/access-binding.d.ts +8 -0
  11. package/src/access-binding.js +26 -0
  12. package/src/adapters/classification-write.d.ts +87 -0
  13. package/src/adapters/classification-write.js +64 -0
  14. package/src/adapters/e2b-executor.js +4 -0
  15. package/src/adapters/file-run-store.d.ts +186 -41
  16. package/src/adapters/file-run-store.js +87 -19
  17. package/src/adapters/file-trial-audit.d.ts +280 -0
  18. package/src/adapters/file-trial-audit.js +105 -0
  19. package/src/adapters/pg-classification-store.d.ts +98 -20
  20. package/src/adapters/pg-classification-store.js +84 -44
  21. package/src/adapters/pg-run-store.d.ts +1 -0
  22. package/src/adapters/pg-run-store.js +70 -9
  23. package/src/adapters/run-metadata.d.ts +2 -0
  24. package/src/adapters/run-metadata.js +10 -0
  25. package/src/adapters/secret-manager-credential-resolver.d.ts +1 -1
  26. package/src/attempt-audit.d.ts +363 -0
  27. package/src/attempt-audit.js +253 -0
  28. package/src/audit-command.d.ts +13 -0
  29. package/src/audit-command.js +77 -0
  30. package/src/classification-command.d.ts +14 -9
  31. package/src/classification-command.js +119 -26
  32. package/src/classification-model.d.ts +10 -3
  33. package/src/classification-model.js +40 -24
  34. package/src/classification-notifier.d.ts +4 -3
  35. package/src/classification-notifier.js +26 -6
  36. package/src/classify-runs.d.ts +2 -1
  37. package/src/classify-runs.js +39 -3
  38. package/src/cli-program.js +54 -8
  39. package/src/commands.d.ts +1 -0
  40. package/src/commands.js +2 -0
  41. package/src/db/database.d.ts +7 -0
  42. package/src/db/database.js +15 -0
  43. package/src/db/event-chunks.d.ts +38 -29
  44. package/src/db/flow-status.d.ts +7 -3
  45. package/src/db/flow-status.js +240 -16
  46. package/src/db/queries.d.ts +24 -1
  47. package/src/db/queries.js +22 -0
  48. package/src/db/schema.d.ts +333 -4
  49. package/src/db/schema.js +83 -11
  50. package/src/db/trial-audit.d.ts +526 -0
  51. package/src/db/trial-audit.js +84 -0
  52. package/src/doctor-command.js +2 -1
  53. package/src/draft-api.d.ts +25 -421
  54. package/src/draft-api.js +10 -3
  55. package/src/engine.d.ts +47 -4
  56. package/src/engine.js +97 -8
  57. package/src/execution-snapshot.d.ts +1 -1
  58. package/src/execution-snapshot.js +24 -18
  59. package/src/export-command.d.ts +6 -0
  60. package/src/export-command.js +106 -0
  61. package/src/flow-check.js +1 -1
  62. package/src/flow-loader.d.ts +72 -6
  63. package/src/flow-loader.js +76 -12
  64. package/src/http-stage-client.d.ts +98 -1
  65. package/src/independent-model.js +53 -6
  66. package/src/judge-review-store.d.ts +13 -0
  67. package/src/judge-review-store.js +58 -0
  68. package/src/local-host-executor.d.ts +3 -1
  69. package/src/local-host-executor.js +2 -0
  70. package/src/quarantine-command.d.ts +5 -1
  71. package/src/quarantine-command.js +56 -13
  72. package/src/remote-command.js +2 -0
  73. package/src/report/browser.css +1 -1
  74. package/src/report/browser.js +41 -41
  75. package/src/report/ctrf.d.ts +983 -0
  76. package/src/report/ctrf.js +306 -0
  77. package/src/report/generate.d.ts +1 -1
  78. package/src/report/generate.js +29 -6
  79. package/src/report/load.d.ts +738 -42
  80. package/src/report/load.js +78 -6
  81. package/src/result-notifier.js +1 -1
  82. package/src/result-trace.d.ts +62 -0
  83. package/src/result-trace.js +81 -0
  84. package/src/run-command.d.ts +9 -0
  85. package/src/run-command.js +300 -63
  86. package/src/run-setup-error.d.ts +11 -0
  87. package/src/run-setup-error.js +18 -0
  88. package/src/server/app.js +5 -4
  89. package/src/server/index.d.ts +2 -0
  90. package/src/server/index.js +11 -2
  91. package/src/server/repository.d.ts +166 -29
  92. package/src/server/repository.js +14 -2
  93. package/src/studio-command.d.ts +1 -0
  94. package/src/studio-command.js +11 -0
  95. package/src/studio-control.d.ts +5 -0
  96. package/src/studio-control.js +207 -0
  97. package/src/studio-review.d.ts +24 -0
  98. package/src/studio-review.js +64 -0
  99. package/src/studio-worker.d.ts +1 -0
  100. package/src/studio-worker.js +48 -0
  101. package/src/system-config.d.ts +2 -2
  102. package/src/system-config.js +5 -4
  103. package/src/trial-audit.d.ts +630 -0
  104. package/src/trial-audit.js +272 -0
  105. package/src/visual-baseline.d.ts +4 -0
  106. package/src/visual-baseline.js +42 -0
  107. package/src/webhook-notification.d.ts +15 -0
  108. package/src/webhook-notification.js +61 -0
  109. package/src/worker/execution.d.ts +2 -1
  110. package/src/worker/execution.js +122 -3
  111. package/src/worker/index.d.ts +4 -0
  112. package/src/worker/index.js +10 -1
  113. package/src/worker/quarantine-notifications.js +2 -2
  114. package/src/worker/queue.d.ts +6 -2
  115. package/src/worker/queue.js +80 -19
  116. package/src/worker/result-notifications.d.ts +10 -2
  117. package/src/worker/result-notifications.js +120 -23
  118. package/src/worker/store.js +6 -3
@@ -25,433 +25,37 @@ export interface DraftDependencies {
25
25
  export declare function readGithubIssue(number: number, repo?: string, signal?: AbortSignal, run?: (args: string[], signal?: AbortSignal) => Promise<string>): Promise<DraftIssue>;
26
26
  /** Programmatic API. The host supplies runtime and team credential policy; no model provider is constructed here. */
27
27
  export declare function draftIssue(request: DraftRequest, dependencies: DraftDependencies): Promise<{
28
- flow: {
28
+ flow: import("@open-qa/qa-engine").FlowSpec & {
29
29
  status: "draft";
30
30
  prod: "never";
31
- key: string;
32
- name: string;
33
- story: string;
34
- version: number;
35
- actors: Record<string, {
36
- role?: string | undefined;
37
- kind?: "system" | "user" | undefined;
38
- lease?: string | undefined;
39
- views?: string[] | undefined;
40
- persona?: string | undefined;
41
- count?: number | undefined;
42
- tools?: ("db" | "logs" | "github" | "http")[] | undefined;
43
- }>;
44
- views: Record<string, {
45
- surface: string;
46
- start?: string | undefined;
47
- chat?: string | undefined;
48
- owner?: string | undefined;
49
- }>;
50
- steps: {
51
- id?: string | undefined;
52
- actor?: string | string[] | undefined;
53
- do?: string | Record<string, string> | undefined;
54
- run?: string | undefined;
55
- expect?: ({
56
- "web.url": {
57
- matches: string;
58
- view?: string | undefined;
59
- within?: string | undefined;
60
- };
61
- } | {
62
- "web.visible": {
63
- text?: string | undefined;
64
- role?: string | undefined;
65
- name?: string | undefined;
66
- view?: string | undefined;
67
- within?: string | undefined;
68
- };
69
- } | {
70
- "web.images_loaded": {
71
- view?: string | undefined;
72
- within?: string | undefined;
73
- };
74
- } | {
75
- "web.no_console_errors": {
76
- ignore?: string[] | undefined;
77
- view?: string | undefined;
78
- within?: string | undefined;
79
- };
80
- } | {
81
- "telegram.message": {
82
- from?: string | undefined;
83
- contains?: string | undefined;
84
- reply_to?: string | undefined;
85
- count?: number | undefined;
86
- view?: string | undefined;
87
- within?: string | undefined;
88
- };
89
- } | {
90
- "telegram.no_message": {
91
- for: string;
92
- from?: string | undefined;
93
- contains?: string | undefined;
94
- reply_to?: string | undefined;
95
- count?: number | undefined;
96
- view?: string | undefined;
97
- within?: string | undefined;
98
- };
99
- } | {
100
- "discord.message": {
101
- channel?: string | undefined;
102
- has_button?: string | undefined;
103
- embed_title?: string | undefined;
104
- from?: string | undefined;
105
- contains?: string | undefined;
106
- reply_to?: string | undefined;
107
- count?: number | undefined;
108
- view?: string | undefined;
109
- within?: string | undefined;
110
- };
111
- } | {
112
- "email.received": {
113
- to: string;
114
- subject?: string | undefined;
115
- subject_contains?: string | undefined;
116
- contains?: string | undefined;
117
- view?: string | undefined;
118
- within?: string | undefined;
119
- };
120
- } | {
121
- "http.status": {
122
- url: string;
123
- equals: number;
124
- view?: string | undefined;
125
- within?: string | undefined;
126
- };
127
- } | {
128
- "http.json": {
129
- url: string;
130
- equals: import("zod").JSONType;
131
- view?: string | undefined;
132
- within?: string | undefined;
133
- };
134
- } | {
135
- "db.count": {
136
- sql: string;
137
- equals: number;
138
- view?: string | undefined;
139
- within?: string | undefined;
140
- };
141
- } | {
142
- "db.row": {
143
- sql: string;
144
- equals: number | Record<string, import("zod").JSONType>;
145
- view?: string | undefined;
146
- within?: string | undefined;
147
- };
148
- } | {
149
- "logs.entry": {
150
- filter: string;
151
- contains?: string | undefined;
152
- view?: string | undefined;
153
- within?: string | undefined;
154
- };
155
- } | {
156
- "github.pr": {
157
- repo: string;
158
- title_contains?: string | undefined;
159
- state?: "closed" | "open" | "merged" | undefined;
160
- view?: string | undefined;
161
- within?: string | undefined;
162
- };
163
- } | {
164
- "logs.contains": {
165
- filter: string;
166
- view?: string | undefined;
167
- within?: string | undefined;
168
- };
169
- })[] | undefined;
170
- judge?: string | undefined;
171
- save?: Record<string, string> | undefined;
172
- level?: "semantic" | "pixel" | "hybrid" | undefined;
173
- after?: string | string[] | undefined;
174
- wait_for?: string | {
175
- "web.url": {
176
- matches: string;
177
- view?: string | undefined;
178
- within?: string | undefined;
179
- };
180
- } | {
181
- "web.visible": {
182
- text?: string | undefined;
183
- role?: string | undefined;
184
- name?: string | undefined;
185
- view?: string | undefined;
186
- within?: string | undefined;
187
- };
188
- } | {
189
- "web.images_loaded": {
190
- view?: string | undefined;
191
- within?: string | undefined;
192
- };
193
- } | {
194
- "web.no_console_errors": {
195
- ignore?: string[] | undefined;
196
- view?: string | undefined;
197
- within?: string | undefined;
198
- };
199
- } | {
200
- "telegram.message": {
201
- from?: string | undefined;
202
- contains?: string | undefined;
203
- reply_to?: string | undefined;
204
- count?: number | undefined;
205
- view?: string | undefined;
206
- within?: string | undefined;
207
- };
208
- } | {
209
- "telegram.no_message": {
210
- for: string;
211
- from?: string | undefined;
212
- contains?: string | undefined;
213
- reply_to?: string | undefined;
214
- count?: number | undefined;
215
- view?: string | undefined;
216
- within?: string | undefined;
217
- };
218
- } | {
219
- "discord.message": {
220
- channel?: string | undefined;
221
- has_button?: string | undefined;
222
- embed_title?: string | undefined;
223
- from?: string | undefined;
224
- contains?: string | undefined;
225
- reply_to?: string | undefined;
226
- count?: number | undefined;
227
- view?: string | undefined;
228
- within?: string | undefined;
229
- };
230
- } | {
231
- "email.received": {
232
- to: string;
233
- subject?: string | undefined;
234
- subject_contains?: string | undefined;
235
- contains?: string | undefined;
236
- view?: string | undefined;
237
- within?: string | undefined;
238
- };
239
- } | {
240
- "http.status": {
241
- url: string;
242
- equals: number;
243
- view?: string | undefined;
244
- within?: string | undefined;
245
- };
246
- } | {
247
- "http.json": {
248
- url: string;
249
- equals: import("zod").JSONType;
250
- view?: string | undefined;
251
- within?: string | undefined;
252
- };
253
- } | {
254
- "db.count": {
255
- sql: string;
256
- equals: number;
257
- view?: string | undefined;
258
- within?: string | undefined;
259
- };
260
- } | {
261
- "db.row": {
262
- sql: string;
263
- equals: number | Record<string, import("zod").JSONType>;
264
- view?: string | undefined;
265
- within?: string | undefined;
266
- };
267
- } | {
268
- "logs.entry": {
269
- filter: string;
270
- contains?: string | undefined;
271
- view?: string | undefined;
272
- within?: string | undefined;
273
- };
274
- } | {
275
- "github.pr": {
276
- repo: string;
277
- title_contains?: string | undefined;
278
- state?: "closed" | "open" | "merged" | undefined;
279
- view?: string | undefined;
280
- within?: string | undefined;
281
- };
282
- } | {
283
- "logs.contains": {
284
- filter: string;
285
- view?: string | undefined;
286
- within?: string | undefined;
287
- };
288
- } | undefined;
289
- together?: string[] | undefined;
290
- within?: string | undefined;
291
- }[];
292
- run?: import("@open-qa/qa-engine").ProgramRun | undefined;
293
- lease?: string | undefined;
294
- heal?: "auto" | "review" | "off" | undefined;
295
- tier?: "T1" | "T2" | "T3" | "T4" | undefined;
296
- tags?: string[] | undefined;
297
- budget?: {
298
- actions?: number | undefined;
299
- minutes?: number | undefined;
300
- usd?: number | undefined;
301
- } | undefined;
302
- record?: "rrweb"[] | undefined;
303
- setup?: {
304
- hook: string;
305
- params?: Record<string, import("zod").JSONType> | undefined;
306
- }[] | undefined;
307
- teardown?: {
308
- hook: string;
309
- params?: Record<string, import("zod").JSONType> | undefined;
310
- }[] | undefined;
311
- expect_always?: ({
312
- "web.url": {
313
- matches: string;
314
- view?: string | undefined;
315
- within?: string | undefined;
316
- };
317
- } | {
318
- "web.visible": {
319
- text?: string | undefined;
320
- role?: string | undefined;
321
- name?: string | undefined;
322
- view?: string | undefined;
323
- within?: string | undefined;
324
- };
325
- } | {
326
- "web.images_loaded": {
327
- view?: string | undefined;
328
- within?: string | undefined;
329
- };
330
- } | {
331
- "web.no_console_errors": {
332
- ignore?: string[] | undefined;
333
- view?: string | undefined;
334
- within?: string | undefined;
335
- };
336
- } | {
337
- "telegram.message": {
338
- from?: string | undefined;
339
- contains?: string | undefined;
340
- reply_to?: string | undefined;
341
- count?: number | undefined;
342
- view?: string | undefined;
343
- within?: string | undefined;
344
- };
345
- } | {
346
- "telegram.no_message": {
347
- for: string;
348
- from?: string | undefined;
349
- contains?: string | undefined;
350
- reply_to?: string | undefined;
351
- count?: number | undefined;
352
- view?: string | undefined;
353
- within?: string | undefined;
354
- };
355
- } | {
356
- "discord.message": {
357
- channel?: string | undefined;
358
- has_button?: string | undefined;
359
- embed_title?: string | undefined;
360
- from?: string | undefined;
361
- contains?: string | undefined;
362
- reply_to?: string | undefined;
363
- count?: number | undefined;
364
- view?: string | undefined;
365
- within?: string | undefined;
366
- };
367
- } | {
368
- "email.received": {
369
- to: string;
370
- subject?: string | undefined;
371
- subject_contains?: string | undefined;
372
- contains?: string | undefined;
373
- view?: string | undefined;
374
- within?: string | undefined;
375
- };
376
- } | {
377
- "http.status": {
378
- url: string;
379
- equals: number;
380
- view?: string | undefined;
381
- within?: string | undefined;
382
- };
383
- } | {
384
- "http.json": {
385
- url: string;
386
- equals: import("zod").JSONType;
387
- view?: string | undefined;
388
- within?: string | undefined;
389
- };
390
- } | {
391
- "db.count": {
392
- sql: string;
393
- equals: number;
394
- view?: string | undefined;
395
- within?: string | undefined;
396
- };
397
- } | {
398
- "db.row": {
399
- sql: string;
400
- equals: number | Record<string, import("zod").JSONType>;
401
- view?: string | undefined;
402
- within?: string | undefined;
403
- };
404
- } | {
405
- "logs.entry": {
406
- filter: string;
407
- contains?: string | undefined;
408
- view?: string | undefined;
409
- within?: string | undefined;
410
- };
411
- } | {
412
- "github.pr": {
413
- repo: string;
414
- title_contains?: string | undefined;
415
- state?: "closed" | "open" | "merged" | undefined;
416
- view?: string | undefined;
417
- within?: string | undefined;
418
- };
419
- } | {
420
- "logs.contains": {
421
- filter: string;
422
- view?: string | undefined;
423
- within?: string | undefined;
424
- };
425
- })[] | undefined;
426
31
  };
427
32
  yaml: string;
428
33
  plannerAttempts: number;
429
- plan: {
430
- journeys: {
431
- actor: string;
432
- goal: string;
433
- success: string;
434
- ac: string[];
435
- }[];
436
- };
437
- coverage: {
438
- ac: string;
439
- checks: {
440
- step: string;
441
- kind: "judge" | "expect";
442
- index?: number | undefined;
443
- }[];
444
- reason?: string | undefined;
445
- }[];
34
+ plan: import("zod").infer<import("zod").ZodObject<{
35
+ journeys: import("zod").ZodArray<import("zod").ZodObject<{
36
+ actor: import("zod").ZodString;
37
+ goal: import("zod").ZodString;
38
+ success: import("zod").ZodString;
39
+ ac: import("zod").ZodArray<import("zod").ZodString>;
40
+ }, import("zod/v4/core").$strict>>;
41
+ }, import("zod/v4/core").$strict>>;
42
+ coverage: import("zod").infer<import("zod").ZodObject<{
43
+ yaml: import("zod").ZodString;
44
+ coverage: import("zod").ZodArray<import("zod").ZodObject<{
45
+ ac: import("zod").ZodString;
46
+ checks: import("zod").ZodArray<import("zod").ZodObject<{
47
+ step: import("zod").ZodString;
48
+ kind: import("zod").ZodEnum<{
49
+ judge: "judge";
50
+ expect: "expect";
51
+ }>;
52
+ index: import("zod").ZodOptional<import("zod").ZodNumber>;
53
+ }, import("zod/v4/core").$strict>>;
54
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
55
+ }, import("zod/v4/core").$strict>>;
56
+ }, import("zod/v4/core").$strict>>["coverage"];
446
57
  attempts: number;
447
- usage: {
448
- inputTokens: number;
449
- outputTokens: number;
450
- cacheReadTokens?: number | undefined;
451
- cacheWriteTokens?: number | undefined;
452
- costUsd?: number | undefined;
453
- costUnknown?: true | undefined;
454
- };
58
+ usage: Usage;
455
59
  key: string;
456
60
  status: "draft";
457
61
  source: string;
package/src/draft-api.js CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  DRAFT_DIRECTORY,
13
13
  isDraftPath,
14
14
  compile,
15
+ loadProviderRegistry,
15
16
  draftIssueSchema,
16
17
  generateDraft,
17
18
  parseFlow,
@@ -99,7 +100,8 @@ async function createDraft(request, dependencies) {
99
100
  const root = resolve(request.root);
100
101
  const suite = await directories(root, request.suite ?? ".");
101
102
  const qaMarkdown = await readText(join(root, "qa.md"));
102
- const config = await loadConfig(root);
103
+ const providers = await loadProviderRegistry();
104
+ const config = await loadConfig(root, providers);
103
105
  let defaults = {};
104
106
  for (let directory = suite; ; directory = dirname(directory)) {
105
107
  try {
@@ -161,8 +163,13 @@ async function createDraft(request, dependencies) {
161
163
  throw new Error("Expected a flow object");
162
164
  if (["setup", "teardown", "run"].some((field) => Object.hasOwn(source, field)))
163
165
  throw new Error("Model-authored hooks and run are not allowed in drafts");
164
- const flow = parseFlow({ ...source, key, status: "draft", prod: "never" }, config, defaults);
165
- compile(flow);
166
+ const flow = parseFlow(
167
+ { ...source, key, status: "draft", prod: "never" },
168
+ config,
169
+ defaults,
170
+ providers
171
+ );
172
+ compile(flow, void 0, { providers });
166
173
  const warnings = lintFlow(flow);
167
174
  if (warnings.length)
168
175
  throw new Error(
package/src/engine.d.ts CHANGED
@@ -1,12 +1,14 @@
1
- import { runFlow, type AgentPlacement, type ModelAccess, SecretRedactor, type Classifier, type Notifier, type ClassificationStore, type FlowStatusStore, type Reviewer, type ReviewerConfig, type Judge, type JudgeConfig, type AgentRuntime, type CredentialResolver, type Executor, type HookRunner, type LeasePool, type RunStore, type RunHistory, type ReplayCache, type StageClient, type StageHandle, type ExecutionPlan, type ConductorDeps, type QaConfig } from "@open-qa/qa-engine";
1
+ import { runFlow, type AgentPlacement, type ModelAccess, SecretRedactor, type ProjectClassificationRegistry, type Classifier, type Notifier, type ClassificationStore, type FlowStatusStore, type QuarantinePolicy, type Reviewer, type ReviewerConfig, type Judge, type JudgeConfig, type AgentRuntime, type CredentialResolver, type Executor, type HookRunner, type LeasePool, type RunStore, type RunHistory, type ReplayCache, type StageClient, type StageHandle, type ExecutionPlan, type ConductorDeps, type QaConfig } from "@open-qa/qa-engine";
2
2
  import { type LocalHostExecutorOptions } from "./local-host-executor.js";
3
3
  import { type QaE2bClient } from "./adapters/e2b-client.js";
4
4
  export declare class FlowStatusWriteError extends Error {
5
5
  readonly result: Awaited<ReturnType<typeof runFlow>> & {
6
6
  category: import("@open-qa/qa-engine/protocol").FailureCategory | null;
7
+ taxonomy?: import("@open-qa/qa-engine/protocol").TaxonomyIdentity;
7
8
  };
8
9
  constructor(result: Awaited<ReturnType<typeof runFlow>> & {
9
10
  category: import("@open-qa/qa-engine/protocol").FailureCategory | null;
11
+ taxonomy?: import("@open-qa/qa-engine/protocol").TaxonomyIdentity;
10
12
  });
11
13
  }
12
14
  export interface EngineAdapters {
@@ -17,6 +19,7 @@ export interface EngineAdapters {
17
19
  areaOwner: string;
18
20
  };
19
21
  classifier?: Classifier;
22
+ classificationScope?: ProjectClassificationRegistry;
20
23
  classifications?: ClassificationStore;
21
24
  targetRevision?: () => Promise<string | null>;
22
25
  onClassified?: (runId: string, classification: import("@open-qa/qa-engine/protocol").Classification, verdict: "failed" | "error") => Promise<void>;
@@ -40,6 +43,13 @@ export interface EngineOptions extends EngineAdapters {
40
43
  billing?: "metered" | "subscription";
41
44
  runId?: string;
42
45
  flowRevision?: string;
46
+ visualBaseline?: {
47
+ caseId: string;
48
+ environment: string;
49
+ };
50
+ quarantine?: QuarantinePolicy;
51
+ quarantineCaseId?: string;
52
+ quarantineTarget?: string;
43
53
  onCleanup?: ConductorDeps["onCleanup"];
44
54
  placement?: "local-host" | "e2b";
45
55
  agentAt?: AgentPlacement;
@@ -85,17 +95,50 @@ export declare function createEngine(options: EngineOptions): {
85
95
  credentialSource: "subscription-token" | "local-login" | "model-env" | null;
86
96
  placement: "local-host" | "e2b" | null;
87
97
  capabilities: {
88
- surfaces: ("telegram" | "discord" | "web")[];
98
+ surfaces: ("web" | "telegram" | "discord")[];
99
+ recording: "rrweb"[];
100
+ levels: ("semantic" | "pixel" | "hybrid")[];
101
+ } | {
89
102
  recording: "rrweb"[];
90
103
  levels: ("semantic" | "pixel" | "hybrid")[];
104
+ surfaces: ("web" | "telegram" | "discord" | "email" | "testapp" | "desktop")[];
91
105
  } | {
92
106
  recording: "rrweb"[];
93
107
  levels: ("semantic" | "pixel" | "hybrid")[];
94
- surfaces: ("telegram" | "email" | "discord" | "web" | "testapp" | "desktop")[];
108
+ surfaces: string[];
109
+ providers: {
110
+ kind: "surface" | "tool" | "access";
111
+ id: string;
112
+ provider: string;
113
+ version: string;
114
+ }[];
95
115
  } | null;
116
+ browserViews?: {
117
+ actor: string;
118
+ view: string;
119
+ device: {
120
+ viewport: {
121
+ width: number;
122
+ height: number;
123
+ };
124
+ version: string;
125
+ browser: "chromium";
126
+ preset: "desktop" | "mobile";
127
+ userAgent: string;
128
+ hasTouch: boolean;
129
+ isMobile: boolean;
130
+ locale: string;
131
+ colorScheme: "light" | "dark";
132
+ deviceScaleFactor: number;
133
+ };
134
+ }[] | undefined;
96
135
  };
97
136
  run: (plan: ExecutionPlan, signal?: AbortSignal) => Promise<{
98
- category: "env" | "agent" | "product-bug" | "test-case" | "flaky" | null;
137
+ category: string | null;
138
+ taxonomy: {
139
+ project: string;
140
+ version: string;
141
+ } | undefined;
99
142
  quarantined: boolean;
100
143
  lifecycle: "review" | "active" | "quarantined" | "draft" | "retired" | undefined;
101
144
  runId: string;