cdp-toolkit 3.2.0 → 3.3.0
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 +17 -0
- package/README.md +31 -16
- package/dist/bidi/mux-daemon.js +201 -17
- package/dist/cli.js +462 -34
- package/dist/index.js +2 -1
- package/dist/mcp.js +455 -27
- package/package.json +1 -1
- package/src/bidi/driver.ts +346 -54
- package/src/bidi/protocol.ts +27 -9
- package/src/bidi-browser-tools.ts +366 -0
- package/src/bidi-tools.ts +29 -2
- package/src/cdp/driver.ts +1 -1
- package/src/driver.ts +22 -5
- package/src/firefox-tools.ts +6 -3
- package/src/manifest.ts +2 -2
- package/src/policy.ts +2 -2
- package/src/shared-tools.ts +4 -3
- package/src/toolDocs.ts +5 -5
- package/src/tools/dispatch-mouse.ts +6 -1
- package/src/tools/downloads.ts +5 -6
- package/src/tools/permissions.ts +5 -5
- package/src/version.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -2463,6 +2463,7 @@ var CDP_CAPABILITIES = new Set([
|
|
|
2463
2463
|
"locate.xpath",
|
|
2464
2464
|
"capture.screencast",
|
|
2465
2465
|
"input.raw",
|
|
2466
|
+
"input.modifierClick",
|
|
2466
2467
|
"input.html5Drag",
|
|
2467
2468
|
"emulate.focus",
|
|
2468
2469
|
"browser.downloads",
|
|
@@ -4483,7 +4484,7 @@ function resolveScreenshotScale(scale, capabilities) {
|
|
|
4483
4484
|
throw new SharedToolError(`take_screenshot: 'scale' must be a finite number greater than 0 and at most ${MAX_SCREENSHOT_SCALE} (default 1)`);
|
|
4484
4485
|
}
|
|
4485
4486
|
if (scale !== 1 && !capabilities.has("screenshot.scale")) {
|
|
4486
|
-
throw new SharedToolError("take_screenshot: 'scale' is not supported by this backend (
|
|
4487
|
+
throw new SharedToolError("take_screenshot: 'scale' is not supported by this backend (no per-capture scale primitive). " + `Call emulate with deviceScaleFactor:${scale} first and capture at scale 1, or use --browser chrome for a per-capture scale.`);
|
|
4487
4488
|
}
|
|
4488
4489
|
return scale;
|
|
4489
4490
|
}
|