@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.
- package/dist/es/agent/agent.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/ai-model/common.mjs +14 -1
- package/dist/es/ai-model/common.mjs.map +1 -1
- package/dist/es/device/index.mjs +1 -2
- package/dist/es/device/index.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/agent.js.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/ai-model/common.js +14 -1
- package/dist/lib/ai-model/common.js.map +1 -1
- package/dist/lib/device/index.js +1 -2
- package/dist/lib/device/index.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/agent/agent.d.ts +0 -4
- package/dist/types/ai-model/common.d.ts +4 -1
- package/dist/types/device/index.d.ts +0 -4
- package/package.json +3 -3
|
@@ -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,
|
|
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-
|
|
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-
|
|
91
|
-
"@midscene/shared": "0.30.3-beta-
|
|
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",
|