@mcp-use/cli 3.2.1-canary.9 → 3.3.0-canary.20
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/dist/commands/screenshot.d.ts +11 -0
- package/dist/commands/screenshot.d.ts.map +1 -1
- package/dist/index.cjs +67 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +67 -24
- package/dist/index.js.map +1 -1
- package/dist/utils/cdp-screenshot.d.ts +19 -3
- package/dist/utils/cdp-screenshot.d.ts.map +1 -1
- package/dist/utils/widget-paths.d.ts +2 -0
- package/dist/utils/widget-paths.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
interface CaptureScreenshotOptions {
|
|
2
2
|
url: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Desired output width in CSS pixels. Optional — when omitted, the capture
|
|
5
|
+
* clips to the rendered widget's natural width (read from `body[data-view-width]`
|
|
6
|
+
* set by the inspector preview route). Falls back to the internal default
|
|
7
|
+
* viewport width if the page didn't expose a width.
|
|
8
|
+
*/
|
|
9
|
+
width?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Desired output height in CSS pixels. Same semantics as `width` — omit to
|
|
12
|
+
* fit the widget's natural height.
|
|
13
|
+
*/
|
|
14
|
+
height?: number;
|
|
5
15
|
theme: "light" | "dark";
|
|
6
16
|
waitForSelector: string;
|
|
7
17
|
timeoutMs: number;
|
|
@@ -47,6 +57,12 @@ interface CaptureScreenshotOptions {
|
|
|
47
57
|
* - Page.navigate, then poll Runtime.evaluate for `waitForSelector`.
|
|
48
58
|
* - Page.captureScreenshot, write PNG, clean up.
|
|
49
59
|
*/
|
|
50
|
-
|
|
60
|
+
interface CaptureScreenshotResult {
|
|
61
|
+
/** Final clip width in CSS pixels (what the PNG visually represents). */
|
|
62
|
+
width: number;
|
|
63
|
+
/** Final clip height in CSS pixels. */
|
|
64
|
+
height: number;
|
|
65
|
+
}
|
|
66
|
+
export declare function captureScreenshot(opts: CaptureScreenshotOptions): Promise<CaptureScreenshotResult>;
|
|
51
67
|
export {};
|
|
52
68
|
//# sourceMappingURL=cdp-screenshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdp-screenshot.d.ts","sourceRoot":"","sources":["../../src/utils/cdp-screenshot.ts"],"names":[],"mappings":"AAMA,UAAU,wBAAwB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"cdp-screenshot.d.ts","sourceRoot":"","sources":["../../src/utils/cdp-screenshot.ts"],"names":[],"mappings":"AAMA,UAAU,wBAAwB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AA4HD;;;;;;;;;;;;;;;GAeG;AACH,UAAU,uBAAuB;IAC/B,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CA4RlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-paths.d.ts","sourceRoot":"","sources":["../../src/utils/widget-paths.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,UAAU,EAAE,MAAM,GACjB,MAAM,CAOR"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-use/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.3.0-canary.20",
|
|
5
5
|
"description": "The mcp-use CLI is a tool for building and deploying MCP servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.",
|
|
6
6
|
"author": "mcp-use, Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"vite-plugin-singlefile": "^2.3.2",
|
|
56
56
|
"ws": "^8.19.0",
|
|
57
57
|
"zod": "4.3.5",
|
|
58
|
-
"mcp-use": "
|
|
59
|
-
"
|
|
58
|
+
"@mcp-use/inspector": "7.0.0-canary.20",
|
|
59
|
+
"mcp-use": "1.29.0-canary.20"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/ws": "^8.18.1",
|