@midscene/core 1.0.1-beta-20251111120301.0 → 1.0.1-beta-20251112060124.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 +20 -1
- package/dist/es/agent/agent.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/device/index.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/agent.js +20 -1
- package/dist/lib/agent/agent.js.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/device/index.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/device/index.d.ts +1 -7
- package/dist/types/yaml.d.ts +8 -6
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeviceAction, LocateResultElement } from '../types';
|
|
1
|
+
import type { ActionScrollParam, DeviceAction, LocateResultElement } from '../types';
|
|
2
2
|
import type { IModelConfig } from '@midscene/shared/env';
|
|
3
3
|
import type { ElementNode } from '@midscene/shared/extractor';
|
|
4
4
|
import { z } from 'zod';
|
|
@@ -1188,12 +1188,6 @@ export declare const actionScrollParamSchema: z.ZodObject<{
|
|
|
1188
1188
|
scrollType?: "singleAction" | "scrollToBottom" | "scrollToTop" | "scrollToRight" | "scrollToLeft" | undefined;
|
|
1189
1189
|
distance?: number | null | undefined;
|
|
1190
1190
|
}>;
|
|
1191
|
-
export type ActionScrollParam = {
|
|
1192
|
-
direction?: 'down' | 'up' | 'right' | 'left';
|
|
1193
|
-
scrollType?: 'singleAction' | 'scrollToBottom' | 'scrollToTop' | 'scrollToRight' | 'scrollToLeft';
|
|
1194
|
-
distance?: number | null;
|
|
1195
|
-
locate?: LocateResultElement;
|
|
1196
|
-
};
|
|
1197
1191
|
export declare const defineActionScroll: (call: (param: ActionScrollParam) => Promise<void>) => DeviceAction<ActionScrollParam>;
|
|
1198
1192
|
export declare const actionDragAndDropParamSchema: z.ZodObject<{
|
|
1199
1193
|
from: z.ZodObject<{
|
package/dist/types/yaml.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TUserPrompt } from './ai-model/common';
|
|
2
2
|
import type { AndroidDeviceOpt, IOSDeviceOpt } from './device';
|
|
3
|
-
import type { AgentOpt, Rect } from './types';
|
|
3
|
+
import type { AgentOpt, LocateResultElement, Rect } from './types';
|
|
4
4
|
import type { UIContext } from './types';
|
|
5
5
|
export interface LocateOption {
|
|
6
6
|
prompt?: TUserPrompt;
|
|
@@ -21,11 +21,13 @@ export interface DetailedLocateParam extends LocateOption {
|
|
|
21
21
|
prompt: TUserPrompt;
|
|
22
22
|
referenceImage?: ReferenceImage;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
direction
|
|
26
|
-
scrollType
|
|
27
|
-
distance?:
|
|
28
|
-
|
|
24
|
+
export type ActionScrollParam = {
|
|
25
|
+
direction?: 'down' | 'up' | 'right' | 'left';
|
|
26
|
+
scrollType?: 'singleAction' | 'scrollToBottom' | 'scrollToTop' | 'scrollToRight' | 'scrollToLeft';
|
|
27
|
+
distance?: number | null;
|
|
28
|
+
locate?: LocateResultElement;
|
|
29
|
+
};
|
|
30
|
+
export type ScrollParam = Omit<ActionScrollParam, 'locate'>;
|
|
29
31
|
export interface MidsceneYamlScript {
|
|
30
32
|
target?: MidsceneYamlScriptWebEnv;
|
|
31
33
|
web?: MidsceneYamlScriptWebEnv;
|
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.1-beta-
|
|
4
|
+
"version": "1.0.1-beta-20251112060124.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
|
"zod": "3.24.3",
|
|
90
90
|
"semver": "7.5.2",
|
|
91
91
|
"js-yaml": "4.1.0",
|
|
92
|
-
"@midscene/shared": "1.0.1-beta-
|
|
92
|
+
"@midscene/shared": "1.0.1-beta-20251112060124.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.11.2",
|