@midscene/core 1.0.1-beta-20251112060124.0 → 1.0.1-beta-20251113024542.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 +1 -20
- 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 +1 -20
- 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 +7 -1
- package/dist/types/yaml.d.ts +6 -8
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { 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,6 +1188,12 @@ 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
|
+
};
|
|
1191
1197
|
export declare const defineActionScroll: (call: (param: ActionScrollParam) => Promise<void>) => DeviceAction<ActionScrollParam>;
|
|
1192
1198
|
export declare const actionDragAndDropParamSchema: z.ZodObject<{
|
|
1193
1199
|
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,
|
|
3
|
+
import type { AgentOpt, Rect } from './types';
|
|
4
4
|
import type { UIContext } from './types';
|
|
5
5
|
export interface LocateOption {
|
|
6
6
|
prompt?: TUserPrompt;
|
|
@@ -21,13 +21,11 @@ export interface DetailedLocateParam extends LocateOption {
|
|
|
21
21
|
prompt: TUserPrompt;
|
|
22
22
|
referenceImage?: ReferenceImage;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
direction
|
|
26
|
-
scrollType
|
|
27
|
-
distance?:
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
export type ScrollParam = Omit<ActionScrollParam, 'locate'>;
|
|
24
|
+
export interface ScrollParam {
|
|
25
|
+
direction: 'down' | 'up' | 'right' | 'left';
|
|
26
|
+
scrollType: 'once' | 'untilBottom' | 'untilTop' | 'untilRight' | 'untilLeft';
|
|
27
|
+
distance?: null | number;
|
|
28
|
+
}
|
|
31
29
|
export interface MidsceneYamlScript {
|
|
32
30
|
target?: MidsceneYamlScriptWebEnv;
|
|
33
31
|
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-20251113024542.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-20251113024542.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.11.2",
|