@empiricalrun/playwright-utils 0.58.2 → 0.58.4
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/CHANGELOG.md +18 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +12 -2
- package/dist/generated/api-worker-openapi.d.ts +98 -0
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.d.ts.map +1 -1
- package/dist/reporter/empirical-reporter.js +9 -0
- package/dist/reporter/harness.d.ts +36 -0
- package/dist/reporter/harness.d.ts.map +1 -1
- package/dist/reporter/harness.js +81 -2
- package/dist/reporter/ibr-utils.d.ts +6 -0
- package/dist/reporter/ibr-utils.d.ts.map +1 -1
- package/dist/reporter/ibr-utils.js +15 -1
- package/dist/reporter/incremental-blob-reporter.d.ts +6 -1
- package/dist/reporter/incremental-blob-reporter.d.ts.map +1 -1
- package/dist/reporter/incremental-blob-reporter.js +30 -6
- package/dist/reporter/lifecycle-events.d.ts +5 -3
- package/dist/reporter/lifecycle-events.d.ts.map +1 -1
- package/dist/reporter/lifecycle-events.js +54 -3
- package/dist/reporter/parity-utils.d.ts +63 -0
- package/dist/reporter/parity-utils.d.ts.map +1 -0
- package/dist/reporter/parity-utils.js +109 -0
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/upstream-oracle/README.md +48 -0
- package/upstream-oracle/ibr-adapter.js +72 -0
- package/upstream-oracle/intermediate-mode-ibr.patch +16 -0
- package/upstream-oracle/run.mjs +395 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.58.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4af421a: feat: send test annotations in the test-case run-end event so they reach the run ledger and dashboard
|
|
8
|
+
- @empiricalrun/cua@0.4.1
|
|
9
|
+
- @empiricalrun/llm@0.27.0
|
|
10
|
+
- @empiricalrun/reporter@0.29.1
|
|
11
|
+
|
|
12
|
+
## 0.58.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- edef32d: feat: env var to disable the native blob reporter
|
|
17
|
+
- 9f1f2d1: feat: incremental blob reporter emits step-level annotations and attachments, falls back to config.shard when shard env vars are unset
|
|
18
|
+
- 760771b: feat: incremental blob reporter emits stdio, run-level errors, body attachments and annotations
|
|
19
|
+
- 8b883dd: feat: incremental blob reporter uploads on clean finish, with a completeness marker
|
|
20
|
+
|
|
3
21
|
## 0.58.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBzD,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAgBzD,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AA+CD,eAAO,MAAM,UAAU,EAAE,oBA+BxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAarB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -39,8 +39,14 @@ function getReporters() {
|
|
|
39
39
|
if (process.env.HAS_SHARDING && !process.env.SHARD_INDEX) {
|
|
40
40
|
throw new Error("Invalid env variables: HAS_SHARDING needs SHARD_INDEX");
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
// Set from the ibr_only_blob_reporter feature flag by test-run-worker: the
|
|
43
|
+
// incremental blob reporter's clean-finish upload (with its completeness
|
|
44
|
+
// marker) is the merge input, so the native blob reporter would only write
|
|
45
|
+
// a zip the merge step discards as superseded.
|
|
46
|
+
const ibrOnly = process.env.IBR_ONLY_BLOB_REPORTER === "true";
|
|
47
|
+
const nativeBlob = ibrOnly
|
|
48
|
+
? []
|
|
49
|
+
: [
|
|
44
50
|
[
|
|
45
51
|
"blob",
|
|
46
52
|
{
|
|
@@ -48,6 +54,10 @@ function getReporters() {
|
|
|
48
54
|
fileName: `report-${process.env.SHARD_INDEX}.zip`,
|
|
49
55
|
},
|
|
50
56
|
],
|
|
57
|
+
];
|
|
58
|
+
const middle = process.env.HAS_SHARDING
|
|
59
|
+
? [
|
|
60
|
+
...nativeBlob,
|
|
51
61
|
// Salvage path for a blob report that never gets written: on SIGINT the
|
|
52
62
|
// blob reporter can be cut off mid-run, and this one has already been
|
|
53
63
|
// streaming events to disk. It is only useful where a merge step exists
|
|
@@ -2493,6 +2493,26 @@ export interface paths {
|
|
|
2493
2493
|
patch?: never;
|
|
2494
2494
|
trace?: never;
|
|
2495
2495
|
};
|
|
2496
|
+
"/api/chat-sessions/{id}/subscribe": {
|
|
2497
|
+
parameters: {
|
|
2498
|
+
query?: never;
|
|
2499
|
+
header?: never;
|
|
2500
|
+
path?: never;
|
|
2501
|
+
cookie?: never;
|
|
2502
|
+
};
|
|
2503
|
+
get?: never;
|
|
2504
|
+
put?: never;
|
|
2505
|
+
/**
|
|
2506
|
+
* ⚙️ Wake the calling session when this session settles
|
|
2507
|
+
* @description Subscribes the caller's own chat session (from the sandbox-delegation principal) to the target session. When the target ends its turn and waits for input — or is closed — a message is delivered into the caller's session, resuming it. One-shot: consumed when it fires. If the target is already waiting for input, no subscription is created and `already_waiting` is true.
|
|
2508
|
+
*/
|
|
2509
|
+
post: operations["subscribeChatSession"];
|
|
2510
|
+
delete?: never;
|
|
2511
|
+
options?: never;
|
|
2512
|
+
head?: never;
|
|
2513
|
+
patch?: never;
|
|
2514
|
+
trace?: never;
|
|
2515
|
+
};
|
|
2496
2516
|
"/api/chat-sessions/{id}/threads/{thread_id}": {
|
|
2497
2517
|
parameters: {
|
|
2498
2518
|
query?: never;
|
|
@@ -9015,6 +9035,12 @@ export interface components {
|
|
|
9015
9035
|
/** @description Error message, or null on success. */
|
|
9016
9036
|
error: string | null;
|
|
9017
9037
|
};
|
|
9038
|
+
SubscribeChatSessionResponse: {
|
|
9039
|
+
data: {
|
|
9040
|
+
already_waiting: boolean;
|
|
9041
|
+
subscription_id?: number;
|
|
9042
|
+
};
|
|
9043
|
+
};
|
|
9018
9044
|
GithubCommitDiffResponse: {
|
|
9019
9045
|
/** @description Response payload. */
|
|
9020
9046
|
data: {
|
|
@@ -10215,6 +10241,13 @@ export interface components {
|
|
|
10215
10241
|
attachments?: components["schemas"]["RetryAttachment"][];
|
|
10216
10242
|
/** @description The source line that triggered the failure. */
|
|
10217
10243
|
failingLine?: string;
|
|
10244
|
+
/** @description Playwright annotations for the attempt (static + runtime). Absent on rows recorded before annotations were captured. */
|
|
10245
|
+
annotations?: {
|
|
10246
|
+
/** @description Annotation type. */
|
|
10247
|
+
type: string;
|
|
10248
|
+
/** @description Annotation description, if any. */
|
|
10249
|
+
description?: string;
|
|
10250
|
+
}[];
|
|
10218
10251
|
};
|
|
10219
10252
|
RetryAttachment: {
|
|
10220
10253
|
/** @description Attachment name. */
|
|
@@ -10783,6 +10816,13 @@ export interface components {
|
|
|
10783
10816
|
}[];
|
|
10784
10817
|
/** @description Source line that failed, if known. */
|
|
10785
10818
|
failingLine?: string;
|
|
10819
|
+
/** @description Playwright annotations for the attempt (static + runtime). Absent on rows recorded before annotations were captured. */
|
|
10820
|
+
annotations?: {
|
|
10821
|
+
/** @description Annotation type. */
|
|
10822
|
+
type: string;
|
|
10823
|
+
/** @description Annotation description, if any. */
|
|
10824
|
+
description?: string;
|
|
10825
|
+
}[];
|
|
10786
10826
|
};
|
|
10787
10827
|
TestRunCaseSnoozeInfo: {
|
|
10788
10828
|
/** @description ID of the matching snooze. */
|
|
@@ -19341,6 +19381,64 @@ export interface operations {
|
|
|
19341
19381
|
};
|
|
19342
19382
|
};
|
|
19343
19383
|
};
|
|
19384
|
+
subscribeChatSession: {
|
|
19385
|
+
parameters: {
|
|
19386
|
+
query?: never;
|
|
19387
|
+
header?: never;
|
|
19388
|
+
path: {
|
|
19389
|
+
id: number;
|
|
19390
|
+
};
|
|
19391
|
+
cookie?: never;
|
|
19392
|
+
};
|
|
19393
|
+
requestBody?: never;
|
|
19394
|
+
responses: {
|
|
19395
|
+
/** @description Subscription outcome. */
|
|
19396
|
+
200: {
|
|
19397
|
+
headers: {
|
|
19398
|
+
[name: string]: unknown;
|
|
19399
|
+
};
|
|
19400
|
+
content: {
|
|
19401
|
+
"application/json": components["schemas"]["SubscribeChatSessionResponse"];
|
|
19402
|
+
};
|
|
19403
|
+
};
|
|
19404
|
+
/** @description Cannot subscribe a session to itself. */
|
|
19405
|
+
400: {
|
|
19406
|
+
headers: {
|
|
19407
|
+
[name: string]: unknown;
|
|
19408
|
+
};
|
|
19409
|
+
content: {
|
|
19410
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
19411
|
+
};
|
|
19412
|
+
};
|
|
19413
|
+
/** @description Caller is not acting on behalf of a chat session. */
|
|
19414
|
+
403: {
|
|
19415
|
+
headers: {
|
|
19416
|
+
[name: string]: unknown;
|
|
19417
|
+
};
|
|
19418
|
+
content: {
|
|
19419
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
19420
|
+
};
|
|
19421
|
+
};
|
|
19422
|
+
/** @description Chat session not found. */
|
|
19423
|
+
404: {
|
|
19424
|
+
headers: {
|
|
19425
|
+
[name: string]: unknown;
|
|
19426
|
+
};
|
|
19427
|
+
content: {
|
|
19428
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
19429
|
+
};
|
|
19430
|
+
};
|
|
19431
|
+
/** @description Target session is closed. */
|
|
19432
|
+
409: {
|
|
19433
|
+
headers: {
|
|
19434
|
+
[name: string]: unknown;
|
|
19435
|
+
};
|
|
19436
|
+
content: {
|
|
19437
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
19438
|
+
};
|
|
19439
|
+
};
|
|
19440
|
+
};
|
|
19441
|
+
};
|
|
19344
19442
|
updateChatSessionSlackThreadSync: {
|
|
19345
19443
|
parameters: {
|
|
19346
19444
|
query?: never;
|