@empiricalrun/playwright-utils 0.58.5 → 0.58.6
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 +13 -0
- package/dist/api-worker-client.d.ts +17 -0
- package/dist/api-worker-client.d.ts.map +1 -1
- package/dist/api-worker-client.js +34 -2
- package/dist/generated/api-worker-openapi.d.ts +96 -89
- package/dist/generated/api-worker-openapi.d.ts.map +1 -1
- package/dist/overlay-tests/cache.spec.js +28 -4
- package/dist/reporter/test-case-sync.d.ts +2 -25
- package/dist/reporter/test-case-sync.d.ts.map +1 -1
- package/dist/test/expect/visual.d.ts.map +1 -1
- package/dist/test/expect/visual.js +4 -1
- package/dist/test/scripts/pw-locator-patch/dismiss-overlays/index.d.ts.map +1 -1
- package/dist/test/scripts/pw-locator-patch/dismiss-overlays/index.js +5 -0
- package/dist/test/scripts/pw-locator-patch/vision/query.d.ts.map +1 -1
- package/dist/test/scripts/pw-locator-patch/vision/query.js +4 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.58.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bcf5ed7: chore: drop fallbacks for LLM proxy
|
|
8
|
+
- 68091d9: feat: route LLM calls via api-worker proxy for usage attribution
|
|
9
|
+
- Updated dependencies [bcf5ed7]
|
|
10
|
+
- Updated dependencies [68091d9]
|
|
11
|
+
- Updated dependencies [ed03fc8]
|
|
12
|
+
- @empiricalrun/llm@0.27.1
|
|
13
|
+
- @empiricalrun/cua@0.4.2
|
|
14
|
+
- @empiricalrun/reporter@0.30.0
|
|
15
|
+
|
|
3
16
|
## 0.58.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -9,6 +9,23 @@ export type TwoCaptchaProxyResponse = components["schemas"]["TwoCaptchaProxyResp
|
|
|
9
9
|
export type ProjectKvGetResponse = components["schemas"]["ProjectKvGetResponse"];
|
|
10
10
|
export type ProjectKvSetRequest = NonNullable<paths["/api/projects/kv"]["post"]["requestBody"]>["content"]["application/json"];
|
|
11
11
|
export type ProjectKvSetResponse = components["schemas"]["ProjectKvSetResponse"];
|
|
12
|
+
/**
|
|
13
|
+
* OpenAI client config for the LLM calls playwright-utils makes from inside a
|
|
14
|
+
* test run — the overlay-dismissal browser agent and the toLookRight visual
|
|
15
|
+
* assertion. Both go through api-worker's proxy, which holds the provider key
|
|
16
|
+
* and forwards via the Cloudflare AI Gateway; the run worker puts
|
|
17
|
+
* EMPIRICALRUN_API_KEY and DASHBOARD_DOMAIN in the Playwright child process.
|
|
18
|
+
*
|
|
19
|
+
* There is deliberately no fallback to a direct OPENAI_API_KEY. A fallback
|
|
20
|
+
* makes the transport depend on ambient env, which hides a broken proxy behind
|
|
21
|
+
* a working direct call and lets a test that clears one credential still reach
|
|
22
|
+
* the model. Returns undefined only for a pi sandbox, whose OPENAI_BASE_URL
|
|
23
|
+
* already points at the sidecar's own keyless proxy route.
|
|
24
|
+
*/
|
|
25
|
+
export declare function llmProxyOpenAIConfig(): {
|
|
26
|
+
baseURL: string;
|
|
27
|
+
apiKey: string;
|
|
28
|
+
} | undefined;
|
|
12
29
|
export declare class HTTPError extends Error {
|
|
13
30
|
status: number;
|
|
14
31
|
constructor(message: string, status: number);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-worker-client.d.ts","sourceRoot":"","sources":["../src/api-worker-client.ts"],"names":[],"mappings":"AACA,OAAqB,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAExE,KAAK,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAEzC,KAAK,iBAAiB,GAClB,kBAAkB,GAClB,sBAAsB,GACtB,yBAAyB,CA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B,EACvB,IAAI,EAAE,oBAAoB,GACzB,OAAO,CAAC,qBAAqB,CAAC,CAKhC;IAED,MAAM,CAAC,CAAC,EACN,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,QAAQ,CAAC;KACpB,EACD,KAAK,EAAE,MAAM,GACZ,CAAC,CAUH;CACF"}
|
|
@@ -4,8 +4,41 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ApiWorkerClient = exports.RetryableHTTPError = exports.NonRetryableHTTPError = exports.HTTPError = void 0;
|
|
7
|
+
exports.llmProxyOpenAIConfig = llmProxyOpenAIConfig;
|
|
7
8
|
const async_retry_1 = __importDefault(require("async-retry"));
|
|
8
9
|
const openapi_fetch_1 = __importDefault(require("openapi-fetch"));
|
|
10
|
+
const DEFAULT_API_WORKER_URL = "https://api.empirical.run";
|
|
11
|
+
function apiWorkerBaseUrl() {
|
|
12
|
+
return process.env.DASHBOARD_DOMAIN || DEFAULT_API_WORKER_URL;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* OpenAI client config for the LLM calls playwright-utils makes from inside a
|
|
16
|
+
* test run — the overlay-dismissal browser agent and the toLookRight visual
|
|
17
|
+
* assertion. Both go through api-worker's proxy, which holds the provider key
|
|
18
|
+
* and forwards via the Cloudflare AI Gateway; the run worker puts
|
|
19
|
+
* EMPIRICALRUN_API_KEY and DASHBOARD_DOMAIN in the Playwright child process.
|
|
20
|
+
*
|
|
21
|
+
* There is deliberately no fallback to a direct OPENAI_API_KEY. A fallback
|
|
22
|
+
* makes the transport depend on ambient env, which hides a broken proxy behind
|
|
23
|
+
* a working direct call and lets a test that clears one credential still reach
|
|
24
|
+
* the model. Returns undefined only for a pi sandbox, whose OPENAI_BASE_URL
|
|
25
|
+
* already points at the sidecar's own keyless proxy route.
|
|
26
|
+
*/
|
|
27
|
+
function llmProxyOpenAIConfig() {
|
|
28
|
+
if (process.env.OPENAI_BASE_URL) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const apiKey = process.env.EMPIRICALRUN_API_KEY;
|
|
32
|
+
if (!apiKey) {
|
|
33
|
+
throw new Error("EMPIRICALRUN_API_KEY is required to reach Empirical's LLM proxy. Set it, " +
|
|
34
|
+
"or point OPENAI_BASE_URL at a proxy of your own — playwright-utils no " +
|
|
35
|
+
"longer calls OpenAI directly with OPENAI_API_KEY.");
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
baseURL: `${apiWorkerBaseUrl()}/api/llm/openai/v1`,
|
|
39
|
+
apiKey,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
9
42
|
class HTTPError extends Error {
|
|
10
43
|
status;
|
|
11
44
|
constructor(message, status) {
|
|
@@ -63,8 +96,7 @@ class ApiWorkerClient {
|
|
|
63
96
|
baseUrl;
|
|
64
97
|
client;
|
|
65
98
|
constructor({ projectApiKey, baseUrl, } = {}) {
|
|
66
|
-
this.baseUrl =
|
|
67
|
-
baseUrl || process.env.DASHBOARD_DOMAIN || "https://api.empirical.run";
|
|
99
|
+
this.baseUrl = baseUrl || apiWorkerBaseUrl();
|
|
68
100
|
const apiKey = projectApiKey || process.env.EMPIRICALRUN_API_KEY;
|
|
69
101
|
if (!apiKey) {
|
|
70
102
|
throw new Error("EMPIRICALRUN_API_KEY environment variable is required");
|
|
@@ -2433,26 +2433,6 @@ export interface paths {
|
|
|
2433
2433
|
patch?: never;
|
|
2434
2434
|
trace?: never;
|
|
2435
2435
|
};
|
|
2436
|
-
"/api/chat-sessions/{id}/sandbox/terminal-session": {
|
|
2437
|
-
parameters: {
|
|
2438
|
-
query?: never;
|
|
2439
|
-
header?: never;
|
|
2440
|
-
path?: never;
|
|
2441
|
-
cookie?: never;
|
|
2442
|
-
};
|
|
2443
|
-
get?: never;
|
|
2444
|
-
put?: never;
|
|
2445
|
-
/**
|
|
2446
|
-
* ⚙️ Create a sandbox terminal session
|
|
2447
|
-
* @description Creates a PTY session on the sandbox and returns the WebSocket URL and token to connect to it. Super-admin only.
|
|
2448
|
-
*/
|
|
2449
|
-
post: operations["createChatSessionSandboxTerminalSession"];
|
|
2450
|
-
delete?: never;
|
|
2451
|
-
options?: never;
|
|
2452
|
-
head?: never;
|
|
2453
|
-
patch?: never;
|
|
2454
|
-
trace?: never;
|
|
2455
|
-
};
|
|
2456
2436
|
"/api/chat-sessions/{id}/session-state": {
|
|
2457
2437
|
parameters: {
|
|
2458
2438
|
query?: never;
|
|
@@ -2593,6 +2573,26 @@ export interface paths {
|
|
|
2593
2573
|
patch?: never;
|
|
2594
2574
|
trace?: never;
|
|
2595
2575
|
};
|
|
2576
|
+
"/api/chat-sessions/sandbox/protected-branches": {
|
|
2577
|
+
parameters: {
|
|
2578
|
+
query?: never;
|
|
2579
|
+
header?: never;
|
|
2580
|
+
path?: never;
|
|
2581
|
+
cookie?: never;
|
|
2582
|
+
};
|
|
2583
|
+
/**
|
|
2584
|
+
* ⚙️ List branches the sandbox may not push to
|
|
2585
|
+
* @description Returns the project's default branch and the chat session's base branch. The sandbox git proxy blocks pushes to these. The session is derived from the sandbox-delegation principal.
|
|
2586
|
+
*/
|
|
2587
|
+
get: operations["getChatSessionSandboxProtectedBranches"];
|
|
2588
|
+
put?: never;
|
|
2589
|
+
post?: never;
|
|
2590
|
+
delete?: never;
|
|
2591
|
+
options?: never;
|
|
2592
|
+
head?: never;
|
|
2593
|
+
patch?: never;
|
|
2594
|
+
trace?: never;
|
|
2595
|
+
};
|
|
2596
2596
|
"/api/chat-sessions/users": {
|
|
2597
2597
|
parameters: {
|
|
2598
2598
|
query?: never;
|
|
@@ -8920,6 +8920,10 @@ export interface components {
|
|
|
8920
8920
|
/** @description Human-readable error message. */
|
|
8921
8921
|
error: string;
|
|
8922
8922
|
};
|
|
8923
|
+
SandboxProtectedBranches: {
|
|
8924
|
+
/** @description Branch names the sandbox must not push to. */
|
|
8925
|
+
branches: string[];
|
|
8926
|
+
};
|
|
8923
8927
|
SandboxActionSuccess: {
|
|
8924
8928
|
/** @description Always true when the action succeeded. */
|
|
8925
8929
|
success: boolean;
|
|
@@ -8986,14 +8990,6 @@ export interface components {
|
|
|
8986
8990
|
/** @description Human-readable error message. */
|
|
8987
8991
|
error: string;
|
|
8988
8992
|
};
|
|
8989
|
-
SandboxTerminalSession: {
|
|
8990
|
-
/** @description WebSocket URL for the PTY session. */
|
|
8991
|
-
ws_url: string;
|
|
8992
|
-
/** @description Auth token for the terminal WebSocket. */
|
|
8993
|
-
token: string;
|
|
8994
|
-
/** @description Error message, or null on success. */
|
|
8995
|
-
error: string | null;
|
|
8996
|
-
};
|
|
8997
8993
|
SubscribeChatSessionResponse: {
|
|
8998
8994
|
data: {
|
|
8999
8995
|
already_waiting: boolean;
|
|
@@ -10143,8 +10139,6 @@ export interface components {
|
|
|
10143
10139
|
id: number;
|
|
10144
10140
|
/** @description ISO 8601 creation timestamp. */
|
|
10145
10141
|
created_at: string;
|
|
10146
|
-
/** @description Test case slug. */
|
|
10147
|
-
slug: string | null;
|
|
10148
10142
|
/** @description Playwright test ID. */
|
|
10149
10143
|
pw_test_id: string | null;
|
|
10150
10144
|
/** @description Test run ID. */
|
|
@@ -10662,6 +10656,23 @@ export interface components {
|
|
|
10662
10656
|
/** @description Playwright test id, if known. */
|
|
10663
10657
|
pw_test_id?: string | null;
|
|
10664
10658
|
}[];
|
|
10659
|
+
/** @description Scheduled dependency groups (serial blocks). */
|
|
10660
|
+
dependency_groups?: {
|
|
10661
|
+
/** @description Stable group id. */
|
|
10662
|
+
id: string;
|
|
10663
|
+
/**
|
|
10664
|
+
* @description Only Playwright serial groups today.
|
|
10665
|
+
* @enum {string}
|
|
10666
|
+
*/
|
|
10667
|
+
kind: "playwright_serial";
|
|
10668
|
+
/** @description Members in execution order. */
|
|
10669
|
+
members: {
|
|
10670
|
+
/** @description Playwright test id of the member. */
|
|
10671
|
+
test_case_id: string;
|
|
10672
|
+
/** @description 0-based execution order within the group. */
|
|
10673
|
+
dependency_order: number;
|
|
10674
|
+
}[];
|
|
10675
|
+
}[];
|
|
10665
10676
|
/** @description Legacy base64-gzip manifest blob. Ignored when `tests` is present. */
|
|
10666
10677
|
run_manifest?: string;
|
|
10667
10678
|
/** @description Zero-based shard index, when the run is sharded. */
|
|
@@ -10731,6 +10742,8 @@ export interface components {
|
|
|
10731
10742
|
last_commit_before_run_started_at: string | null;
|
|
10732
10743
|
/** @description Snoozes matching this case at read time. */
|
|
10733
10744
|
snooze_info: components["schemas"]["TestRunCaseSnoozeInfo"][];
|
|
10745
|
+
/** @description Attempts that never ran because an earlier member of this case's Playwright serial group failed on the same attempt. Null when the case is not in a snapshotted group or when nothing was blocked. */
|
|
10746
|
+
skipped_attempts: components["schemas"]["TestRunCaseSkippedAttempt"][] | null;
|
|
10734
10747
|
};
|
|
10735
10748
|
TestRunCaseRetryDetail: {
|
|
10736
10749
|
/** @description Zero-based retry attempt index. */
|
|
@@ -10804,6 +10817,19 @@ export interface components {
|
|
|
10804
10817
|
/** @description Environment the snooze is scoped to, if any. */
|
|
10805
10818
|
scoped_to_environment_id: number | null;
|
|
10806
10819
|
};
|
|
10820
|
+
TestRunCaseSkippedAttempt: {
|
|
10821
|
+
/** @description Attempt index this explains. */
|
|
10822
|
+
retry_index: number;
|
|
10823
|
+
/** @description The serial-group member that blocked this attempt. */
|
|
10824
|
+
blocked_by: {
|
|
10825
|
+
/** @description Playwright test id of the blocking test. */
|
|
10826
|
+
pw_test_id: string | null;
|
|
10827
|
+
/** @description Title of the blocking test. */
|
|
10828
|
+
name: string;
|
|
10829
|
+
/** @description The blocking test's outcome on this attempt. */
|
|
10830
|
+
status: string;
|
|
10831
|
+
};
|
|
10832
|
+
};
|
|
10807
10833
|
GetTestRunCaseResponse: {
|
|
10808
10834
|
/** @description Response payload. */
|
|
10809
10835
|
data: {
|
|
@@ -10845,6 +10871,8 @@ export interface components {
|
|
|
10845
10871
|
last_commit_before_run_started_at: string | null;
|
|
10846
10872
|
/** @description Snoozes matching this case at read time. */
|
|
10847
10873
|
snooze_info: components["schemas"]["TestRunCaseSnoozeInfo"][];
|
|
10874
|
+
/** @description Attempts that never ran because an earlier member of this case's Playwright serial group failed on the same attempt. Null when the case is not in a snapshotted group or when nothing was blocked. */
|
|
10875
|
+
skipped_attempts: components["schemas"]["TestRunCaseSkippedAttempt"][] | null;
|
|
10848
10876
|
};
|
|
10849
10877
|
};
|
|
10850
10878
|
UiGetTestRunResponse: {
|
|
@@ -19212,65 +19240,6 @@ export interface operations {
|
|
|
19212
19240
|
};
|
|
19213
19241
|
};
|
|
19214
19242
|
};
|
|
19215
|
-
createChatSessionSandboxTerminalSession: {
|
|
19216
|
-
parameters: {
|
|
19217
|
-
query?: never;
|
|
19218
|
-
header?: never;
|
|
19219
|
-
path: {
|
|
19220
|
-
/** @description Chat session ID. */
|
|
19221
|
-
id: number;
|
|
19222
|
-
};
|
|
19223
|
-
cookie?: never;
|
|
19224
|
-
};
|
|
19225
|
-
requestBody?: never;
|
|
19226
|
-
responses: {
|
|
19227
|
-
/** @description Terminal session connection details. */
|
|
19228
|
-
200: {
|
|
19229
|
-
headers: {
|
|
19230
|
-
[name: string]: unknown;
|
|
19231
|
-
};
|
|
19232
|
-
content: {
|
|
19233
|
-
"application/json": components["schemas"]["SandboxTerminalSession"];
|
|
19234
|
-
};
|
|
19235
|
-
};
|
|
19236
|
-
/** @description Invalid request. */
|
|
19237
|
-
400: {
|
|
19238
|
-
headers: {
|
|
19239
|
-
[name: string]: unknown;
|
|
19240
|
-
};
|
|
19241
|
-
content: {
|
|
19242
|
-
"application/json": components["schemas"]["ErrorResponse"];
|
|
19243
|
-
};
|
|
19244
|
-
};
|
|
19245
|
-
/** @description Forbidden. */
|
|
19246
|
-
403: {
|
|
19247
|
-
headers: {
|
|
19248
|
-
[name: string]: unknown;
|
|
19249
|
-
};
|
|
19250
|
-
content: {
|
|
19251
|
-
"application/json": components["schemas"]["SandboxTerminalSession"];
|
|
19252
|
-
};
|
|
19253
|
-
};
|
|
19254
|
-
/** @description Sandbox not found. */
|
|
19255
|
-
404: {
|
|
19256
|
-
headers: {
|
|
19257
|
-
[name: string]: unknown;
|
|
19258
|
-
};
|
|
19259
|
-
content: {
|
|
19260
|
-
"application/json": components["schemas"]["SandboxTerminalSession"];
|
|
19261
|
-
};
|
|
19262
|
-
};
|
|
19263
|
-
/** @description Failed to create terminal session. */
|
|
19264
|
-
500: {
|
|
19265
|
-
headers: {
|
|
19266
|
-
[name: string]: unknown;
|
|
19267
|
-
};
|
|
19268
|
-
content: {
|
|
19269
|
-
"application/json": components["schemas"]["SandboxTerminalSession"];
|
|
19270
|
-
};
|
|
19271
|
-
};
|
|
19272
|
-
};
|
|
19273
|
-
};
|
|
19274
19243
|
getChatSessionState: {
|
|
19275
19244
|
parameters: {
|
|
19276
19245
|
query?: {
|
|
@@ -19576,6 +19545,44 @@ export interface operations {
|
|
|
19576
19545
|
};
|
|
19577
19546
|
};
|
|
19578
19547
|
};
|
|
19548
|
+
getChatSessionSandboxProtectedBranches: {
|
|
19549
|
+
parameters: {
|
|
19550
|
+
query?: never;
|
|
19551
|
+
header?: never;
|
|
19552
|
+
path?: never;
|
|
19553
|
+
cookie?: never;
|
|
19554
|
+
};
|
|
19555
|
+
requestBody?: never;
|
|
19556
|
+
responses: {
|
|
19557
|
+
/** @description Protected branches. */
|
|
19558
|
+
200: {
|
|
19559
|
+
headers: {
|
|
19560
|
+
[name: string]: unknown;
|
|
19561
|
+
};
|
|
19562
|
+
content: {
|
|
19563
|
+
"application/json": components["schemas"]["SandboxProtectedBranches"];
|
|
19564
|
+
};
|
|
19565
|
+
};
|
|
19566
|
+
/** @description The caller is not a sandbox principal. */
|
|
19567
|
+
400: {
|
|
19568
|
+
headers: {
|
|
19569
|
+
[name: string]: unknown;
|
|
19570
|
+
};
|
|
19571
|
+
content: {
|
|
19572
|
+
"application/json": components["schemas"]["SandboxErrorMessage"];
|
|
19573
|
+
};
|
|
19574
|
+
};
|
|
19575
|
+
/** @description Chat session not found. */
|
|
19576
|
+
404: {
|
|
19577
|
+
headers: {
|
|
19578
|
+
[name: string]: unknown;
|
|
19579
|
+
};
|
|
19580
|
+
content: {
|
|
19581
|
+
"application/json": components["schemas"]["SandboxErrorMessage"];
|
|
19582
|
+
};
|
|
19583
|
+
};
|
|
19584
|
+
};
|
|
19585
|
+
};
|
|
19579
19586
|
listChatSessionUsers: {
|
|
19580
19587
|
parameters: {
|
|
19581
19588
|
query?: {
|