@midscene/core 0.30.3-beta-20251011064436.0 → 0.30.3-beta-20251011125638.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.
@@ -68,16 +68,12 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
68
68
  value: string;
69
69
  } & {
70
70
  autoDismissKeyboard?: boolean;
71
- } & {
72
- append?: boolean;
73
71
  }): Promise<any>;
74
72
  /**
75
73
  * @deprecated Use aiInput(locatePrompt, opt) instead where opt contains the value
76
74
  */
77
75
  aiInput(value: string, locatePrompt: TUserPrompt, opt?: LocateOption & {
78
76
  autoDismissKeyboard?: boolean;
79
- } & {
80
- append?: boolean;
81
77
  }): Promise<any>;
82
78
  aiKeyboardPress(locatePrompt: TUserPrompt, opt: LocateOption & {
83
79
  keyName: string;
@@ -559,8 +559,11 @@ export declare const dumpActionParam: (jsonObject: Record<string, any>, zodSchem
559
559
  export declare const loadActionParam: (jsonObject: Record<string, any>, zodSchema: z.ZodType<any>) => Record<string, any>;
560
560
  /**
561
561
  * Parse and validate action parameters using Zod schema.
562
- * All fields are validated through Zod, including locator fields which have their own schema.
562
+ * All fields are validated through Zod, EXCEPT locator fields which are skipped.
563
563
  * Default values defined in the schema are automatically applied.
564
+ *
565
+ * Locator fields are special business logic fields with complex validation requirements,
566
+ * so they are intentionally excluded from Zod parsing and use existing validation logic.
564
567
  */
565
568
  export declare const parseActionParam: (rawParam: Record<string, any>, zodSchema: z.ZodType<any>) => Record<string, any>;
566
569
  export {};
@@ -719,7 +719,6 @@ export declare const actionInputParamSchema: z.ZodObject<{
719
719
  cacheable: z.ZodOptional<z.ZodBoolean>;
720
720
  xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
721
721
  }, z.ZodTypeAny, "passthrough">>>;
722
- append: z.ZodOptional<z.ZodBoolean>;
723
722
  }, "strip", z.ZodTypeAny, {
724
723
  value: string;
725
724
  locate?: z.objectOutputType<{
@@ -758,7 +757,6 @@ export declare const actionInputParamSchema: z.ZodObject<{
758
757
  cacheable: z.ZodOptional<z.ZodBoolean>;
759
758
  xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
760
759
  }, z.ZodTypeAny, "passthrough"> | undefined;
761
- append?: boolean | undefined;
762
760
  }, {
763
761
  value: string;
764
762
  locate?: z.objectInputType<{
@@ -797,12 +795,10 @@ export declare const actionInputParamSchema: z.ZodObject<{
797
795
  cacheable: z.ZodOptional<z.ZodBoolean>;
798
796
  xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
799
797
  }, z.ZodTypeAny, "passthrough"> | undefined;
800
- append?: boolean | undefined;
801
798
  }>;
802
799
  export type ActionInputParam = {
803
800
  value: string;
804
801
  locate?: LocateResultElement;
805
- append?: boolean;
806
802
  };
807
803
  export declare const defineActionInput: (call: (param: ActionInputParam) => Promise<void>) => DeviceAction<ActionInputParam>;
808
804
  export declare const actionKeyboardPressParamSchema: 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.3-beta-20251011064436.0",
4
+ "version": "0.30.3-beta-20251011125638.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -87,8 +87,8 @@
87
87
  "zod": "3.24.3",
88
88
  "semver": "7.5.2",
89
89
  "js-yaml": "4.1.0",
90
- "@midscene/recorder": "0.30.3-beta-20251011064436.0",
91
- "@midscene/shared": "0.30.3-beta-20251011064436.0"
90
+ "@midscene/recorder": "0.30.3-beta-20251011125638.0",
91
+ "@midscene/shared": "0.30.3-beta-20251011125638.0"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@rslib/core": "^0.11.2",