@midscene/core 0.30.5 → 0.30.6-beta-20251021115636.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.
@@ -79,12 +79,12 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
79
79
  mode?: 'replace' | 'clear' | 'append';
80
80
  }): Promise<any>;
81
81
  aiKeyboardPress(locatePrompt: TUserPrompt, opt: LocateOption & {
82
- keyName: string;
82
+ keyName: string | string[];
83
83
  }): Promise<any>;
84
84
  /**
85
85
  * @deprecated Use aiKeyboardPress(locatePrompt, opt) instead where opt contains the keyName
86
86
  */
87
- aiKeyboardPress(keyName: string, locatePrompt?: TUserPrompt, opt?: LocateOption): Promise<any>;
87
+ aiKeyboardPress(keyName: string | string[], locatePrompt?: TUserPrompt, opt?: LocateOption): Promise<any>;
88
88
  aiScroll(locatePrompt: TUserPrompt | undefined, opt: LocateOption & ScrollParam): Promise<any>;
89
89
  /**
90
90
  * @deprecated Use aiScroll(locatePrompt, opt) instead where opt contains the scroll parameters
@@ -912,9 +912,9 @@ export declare const actionKeyboardPressParamSchema: z.ZodObject<{
912
912
  cacheable: z.ZodOptional<z.ZodBoolean>;
913
913
  xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
914
914
  }, z.ZodTypeAny, "passthrough">>>;
915
- keyName: z.ZodString;
915
+ keyName: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
916
916
  }, "strip", z.ZodTypeAny, {
917
- keyName: string;
917
+ keyName: string | string[];
918
918
  locate?: z.objectOutputType<{
919
919
  prompt: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
920
920
  prompt: z.ZodString;
@@ -952,7 +952,7 @@ export declare const actionKeyboardPressParamSchema: z.ZodObject<{
952
952
  xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
953
953
  }, z.ZodTypeAny, "passthrough"> | undefined;
954
954
  }, {
955
- keyName: string;
955
+ keyName: string | string[];
956
956
  locate?: z.objectInputType<{
957
957
  prompt: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
958
958
  prompt: z.ZodString;
@@ -992,7 +992,7 @@ export declare const actionKeyboardPressParamSchema: z.ZodObject<{
992
992
  }>;
993
993
  export type ActionKeyboardPressParam = {
994
994
  locate?: LocateResultElement;
995
- keyName: string;
995
+ keyName: string | string[];
996
996
  };
997
997
  export declare const defineActionKeyboardPress: (call: (param: ActionKeyboardPressParam) => Promise<void>) => DeviceAction<ActionKeyboardPressParam>;
998
998
  export declare const actionScrollParamSchema: z.ZodObject<{
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": "0.30.5",
4
+ "version": "0.30.6-beta-20251021115636.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -92,8 +92,8 @@
92
92
  "zod": "3.24.3",
93
93
  "semver": "7.5.2",
94
94
  "js-yaml": "4.1.0",
95
- "@midscene/recorder": "0.30.5",
96
- "@midscene/shared": "0.30.5"
95
+ "@midscene/recorder": "0.30.6-beta-20251021115636.0",
96
+ "@midscene/shared": "0.30.6-beta-20251021115636.0"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@rslib/core": "^0.11.2",