@midscene/core 1.0.4 → 1.0.5-beta-20251230124359.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/utils.mjs +1 -1
- package/dist/es/ai-model/prompt/llm-planning.mjs +11 -3
- package/dist/es/ai-model/prompt/llm-planning.mjs.map +1 -1
- package/dist/es/device/index.mjs +6 -6
- package/dist/es/device/index.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/ai-model/prompt/llm-planning.js +11 -3
- package/dist/lib/ai-model/prompt/llm-planning.js.map +1 -1
- package/dist/lib/device/index.js +6 -6
- package/dist/lib/device/index.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/device/index.d.ts +3 -3
- package/package.json +2 -2
|
@@ -998,8 +998,8 @@ export type ActionKeyboardPressParam = {
|
|
|
998
998
|
};
|
|
999
999
|
export declare const defineActionKeyboardPress: (call: (param: ActionKeyboardPressParam) => Promise<void>) => DeviceAction<ActionKeyboardPressParam>;
|
|
1000
1000
|
export declare const actionScrollParamSchema: z.ZodObject<{
|
|
1001
|
-
direction: z.ZodDefault<z.ZodEnum<["down", "up", "right", "left"]>>;
|
|
1002
1001
|
scrollType: z.ZodDefault<z.ZodEnum<["singleAction", "scrollToBottom", "scrollToTop", "scrollToRight", "scrollToLeft"]>>;
|
|
1002
|
+
direction: z.ZodDefault<z.ZodEnum<["down", "up", "right", "left"]>>;
|
|
1003
1003
|
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1004
1004
|
locate: z.ZodOptional<z.ZodObject<{
|
|
1005
1005
|
prompt: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
@@ -1108,8 +1108,8 @@ export declare const actionScrollParamSchema: z.ZodObject<{
|
|
|
1108
1108
|
xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
1109
1109
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1110
1110
|
}, "strip", z.ZodTypeAny, {
|
|
1111
|
-
direction: "down" | "up" | "right" | "left";
|
|
1112
1111
|
scrollType: "singleAction" | "scrollToBottom" | "scrollToTop" | "scrollToRight" | "scrollToLeft";
|
|
1112
|
+
direction: "down" | "up" | "right" | "left";
|
|
1113
1113
|
locate?: z.objectOutputType<{
|
|
1114
1114
|
prompt: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
1115
1115
|
prompt: z.ZodString;
|
|
@@ -1184,8 +1184,8 @@ export declare const actionScrollParamSchema: z.ZodObject<{
|
|
|
1184
1184
|
cacheable: z.ZodOptional<z.ZodBoolean>;
|
|
1185
1185
|
xpath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
1186
1186
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
1187
|
-
direction?: "down" | "up" | "right" | "left" | undefined;
|
|
1188
1187
|
scrollType?: "singleAction" | "scrollToBottom" | "scrollToTop" | "scrollToRight" | "scrollToLeft" | undefined;
|
|
1188
|
+
direction?: "down" | "up" | "right" | "left" | undefined;
|
|
1189
1189
|
distance?: number | null | undefined;
|
|
1190
1190
|
}>;
|
|
1191
1191
|
export declare const defineActionScroll: (call: (param: ActionScrollParam) => Promise<void>) => DeviceAction<ActionScrollParam>;
|
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.0.
|
|
4
|
+
"version": "1.0.5-beta-20251230124359.0",
|
|
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
|
"js-yaml": "4.1.0",
|
|
91
91
|
"zod": "3.24.3",
|
|
92
|
-
"@midscene/shared": "1.0.
|
|
92
|
+
"@midscene/shared": "1.0.5-beta-20251230124359.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.18.3",
|