@midscene/core 1.4.1 → 1.4.2

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.
@@ -123,4 +123,6 @@ export type IOSDeviceOpt = {
123
123
  wdaHost?: string;
124
124
  /** Whether to use WebDriverAgent */
125
125
  useWDA?: boolean;
126
+ /** WDA MJPEG server port for real-time screen streaming (default: 9100) */
127
+ wdaMjpegPort?: number;
126
128
  } & IOSDeviceInputOpt;
@@ -34,6 +34,8 @@ export declare abstract class AbstractInterface {
34
34
  * This is useful when the system time and device time are not synchronized.
35
35
  */
36
36
  getTimestamp?(): Promise<number>;
37
+ /** URL of native MJPEG stream for real-time screen preview (e.g. WDA MJPEG server) */
38
+ mjpegStreamUrl?: string;
37
39
  }
38
40
  export declare const defineAction: <TSchema extends z.ZodType | undefined = undefined, TRuntime = TSchema extends z.ZodType ? z.infer<TSchema> : undefined, TReturn = any>(config: {
39
41
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
4
- "version": "1.4.1",
4
+ "version": "1.4.2",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -89,7 +89,7 @@
89
89
  "semver": "7.5.2",
90
90
  "undici": "^6.0.0",
91
91
  "zod": "3.24.3",
92
- "@midscene/shared": "1.4.1"
92
+ "@midscene/shared": "1.4.2"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "^0.18.3",