@empiricalrun/playwright-utils 0.25.16 → 0.25.18
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
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @empiricalrun/playwright-utils
|
|
2
2
|
|
|
3
|
+
## 0.25.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a3a1863]
|
|
8
|
+
- Updated dependencies [a32c076]
|
|
9
|
+
- Updated dependencies [eb89698]
|
|
10
|
+
- Updated dependencies [9cc17cc]
|
|
11
|
+
- Updated dependencies [17fcf83]
|
|
12
|
+
- Updated dependencies [1c1fd00]
|
|
13
|
+
- Updated dependencies [c4c5a32]
|
|
14
|
+
- Updated dependencies [48702e0]
|
|
15
|
+
- @empiricalrun/test-gen@0.53.6
|
|
16
|
+
- @empiricalrun/llm@0.14.5
|
|
17
|
+
|
|
18
|
+
## 0.25.17
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [9f3cb10]
|
|
23
|
+
- @empiricalrun/test-gen@0.53.5
|
|
24
|
+
- @empiricalrun/llm@0.14.4
|
|
25
|
+
|
|
3
26
|
## 0.25.16
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/dismiss-overlays/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/test/scripts/pw-locator-patch/dismiss-overlays/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAOzC,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,WAKhE;AAoDD,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,GACnB,cAAc,GAAG,SAAS,CAiC5B;AAwBD,wBAAsB,uBAAuB,CAC3C,aAAa,EAAE,GAAG,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,GACtC,OAAO,CAAC,IAAI,CAAC,CAiBf"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.attemptToDismissOverlay = exports.extractInterceptingElement = exports.isErrorSupported = void 0;
|
|
4
|
+
const llm_1 = require("@empiricalrun/llm");
|
|
4
5
|
const run_1 = require("@empiricalrun/test-gen/agent/master/run");
|
|
5
6
|
const cache_1 = require("./cache");
|
|
6
7
|
const prompt_1 = require("./prompt");
|
|
@@ -37,9 +38,19 @@ async function runAgentOnOverlay(pageRef, element) {
|
|
|
37
38
|
generatedCode = result.code;
|
|
38
39
|
}
|
|
39
40
|
else if (PREFERRED_AGENT === "openai-cua") {
|
|
41
|
+
const trace = (0, llm_1.createLangfuseTrace)({
|
|
42
|
+
name: "overlay_dismiss",
|
|
43
|
+
input: task,
|
|
44
|
+
tags: ["overlay_dismiss"],
|
|
45
|
+
});
|
|
46
|
+
if (trace) {
|
|
47
|
+
const traceUrl = trace.getTraceUrl();
|
|
48
|
+
console.log(`Starting computer use agent: ${traceUrl}`);
|
|
49
|
+
}
|
|
40
50
|
const result = await (0, run_1.createTestUsingComputerUseAgent)({
|
|
41
51
|
page: pageRef,
|
|
42
52
|
task,
|
|
53
|
+
trace,
|
|
43
54
|
});
|
|
44
55
|
generatedCode = result.code;
|
|
45
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/playwright-utils",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"mailosaur": "^8.6.1",
|
|
39
39
|
"puppeteer-extra-plugin-recaptcha": "^3.6.8",
|
|
40
40
|
"rimraf": "^6.0.1",
|
|
41
|
-
"@empiricalrun/llm": "^0.14.
|
|
41
|
+
"@empiricalrun/llm": "^0.14.5",
|
|
42
42
|
"@empiricalrun/r2-uploader": "^0.3.8",
|
|
43
|
-
"@empiricalrun/test-gen": "^0.53.
|
|
43
|
+
"@empiricalrun/test-gen": "^0.53.6"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"dev": "tsc --build --watch",
|