playwright-core 1.58.0-alpha-2025-12-11 → 1.58.0-alpha-2025-12-13
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/ThirdPartyNotices.txt +3 -3
- package/browsers.json +5 -5
- package/lib/client/page.js +4 -3
- package/lib/mcpBundleImpl/index.js +15 -15
- package/lib/protocol/validator.js +26 -8
- package/lib/server/agent/agent.js +20 -7
- package/lib/server/agent/backend.js +2 -5
- package/lib/server/agent/codegen.js +83 -0
- package/lib/server/agent/context.js +18 -1
- package/lib/server/codegen/javascript.js +6 -29
- package/lib/server/deviceDescriptorsSource.json +54 -54
- package/lib/server/dispatchers/pageDispatcher.js +3 -2
- package/lib/utils/isomorphic/stringUtils.js +29 -0
- package/lib/vite/htmlReport/index.html +1 -1
- package/package.json +1 -1
- package/types/protocol.d.ts +172 -111
- package/types/types.d.ts +27 -2
package/ThirdPartyNotices.txt
CHANGED
|
@@ -4,7 +4,7 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
|
4
4
|
|
|
5
5
|
This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
|
|
6
6
|
|
|
7
|
-
- @lowire/loop@0.0.
|
|
7
|
+
- @lowire/loop@0.0.8 (https://github.com/pavelfeldman/lowire)
|
|
8
8
|
- @modelcontextprotocol/sdk@1.24.2 (https://github.com/modelcontextprotocol/typescript-sdk)
|
|
9
9
|
- accepts@2.0.0 (https://github.com/jshttp/accepts)
|
|
10
10
|
- agent-base@7.1.4 (https://github.com/TooTallNate/proxy-agents)
|
|
@@ -135,7 +135,7 @@ This project incorporates components from the projects listed below. The origina
|
|
|
135
135
|
- zod-to-json-schema@3.25.0 (https://github.com/StefanTerdell/zod-to-json-schema)
|
|
136
136
|
- zod@3.25.76 (https://github.com/colinhacks/zod)
|
|
137
137
|
|
|
138
|
-
%% @lowire/loop@0.0.
|
|
138
|
+
%% @lowire/loop@0.0.8 NOTICES AND INFORMATION BEGIN HERE
|
|
139
139
|
=========================================
|
|
140
140
|
Apache License
|
|
141
141
|
Version 2.0, January 2004
|
|
@@ -339,7 +339,7 @@ Apache License
|
|
|
339
339
|
See the License for the specific language governing permissions and
|
|
340
340
|
limitations under the License.
|
|
341
341
|
=========================================
|
|
342
|
-
END OF @lowire/loop@0.0.
|
|
342
|
+
END OF @lowire/loop@0.0.8 AND INFORMATION
|
|
343
343
|
|
|
344
344
|
%% @modelcontextprotocol/sdk@1.24.2 NOTICES AND INFORMATION BEGIN HERE
|
|
345
345
|
=========================================
|
package/browsers.json
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
"browsers": [
|
|
4
4
|
{
|
|
5
5
|
"name": "chromium",
|
|
6
|
-
"revision": "
|
|
6
|
+
"revision": "1205",
|
|
7
7
|
"installByDefault": true,
|
|
8
|
-
"browserVersion": "
|
|
8
|
+
"browserVersion": "144.0.7559.20",
|
|
9
9
|
"title": "Chrome for Testing"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "chromium-headless-shell",
|
|
13
|
-
"revision": "
|
|
13
|
+
"revision": "1205",
|
|
14
14
|
"installByDefault": true,
|
|
15
|
-
"browserVersion": "
|
|
15
|
+
"browserVersion": "144.0.7559.20",
|
|
16
16
|
"title": "Chrome Headless Shell"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "webkit",
|
|
48
|
-
"revision": "
|
|
48
|
+
"revision": "2239",
|
|
49
49
|
"installByDefault": true,
|
|
50
50
|
"revisionOverrides": {
|
|
51
51
|
"debian11-x64": "2105",
|
package/lib/client/page.js
CHANGED
|
@@ -675,11 +675,12 @@ class Page extends import_channelOwner.ChannelOwner {
|
|
|
675
675
|
return result.pdf;
|
|
676
676
|
}
|
|
677
677
|
async perform(task, options = {}) {
|
|
678
|
-
await this._channel.perform({ task, ...options });
|
|
678
|
+
const result = await this._channel.perform({ task, ...options });
|
|
679
|
+
return { usage: { ...result } };
|
|
679
680
|
}
|
|
680
681
|
async extract(query, schema, options = {}) {
|
|
681
|
-
const { result } = await this._channel.extract({ query, schema: this._platform.zodToJsonSchema(schema), ...options });
|
|
682
|
-
return result;
|
|
682
|
+
const { result, ...usage } = await this._channel.extract({ query, schema: this._platform.zodToJsonSchema(schema), ...options });
|
|
683
|
+
return { result, usage };
|
|
683
684
|
}
|
|
684
685
|
async _snapshotForAI(options = {}) {
|
|
685
686
|
return await this._channel.snapshotForAI({ timeout: this._timeoutSettings.timeout(options), track: options.track });
|