@midscene/core 1.0.1-beta-20251209024153.0 → 1.0.1-beta-20251209112631.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/device/index.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.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/device/index.js +1 -1
- package/dist/lib/device/index.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/agent/agent.d.ts +7 -7
- package/package.json +2 -2
|
@@ -5,6 +5,10 @@ import type { TaskRunner } from '../task-runner';
|
|
|
5
5
|
import { ModelConfigManager } from '@midscene/shared/env';
|
|
6
6
|
import { TaskCache } from './task-cache';
|
|
7
7
|
import { TaskExecutor } from './tasks';
|
|
8
|
+
type AiActOptions = {
|
|
9
|
+
cacheable?: boolean;
|
|
10
|
+
planningStrategy?: 'fast' | 'standard' | 'max';
|
|
11
|
+
};
|
|
8
12
|
export declare class Agent<InterfaceType extends AbstractInterface = AbstractInterface> {
|
|
9
13
|
interface: InterfaceType;
|
|
10
14
|
service: Service;
|
|
@@ -93,10 +97,7 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
|
|
|
93
97
|
* @deprecated Use aiScroll(locatePrompt, opt) instead where opt contains the scroll parameters
|
|
94
98
|
*/
|
|
95
99
|
aiScroll(scrollParam: ScrollParam, locatePrompt?: TUserPrompt, opt?: LocateOption): Promise<any>;
|
|
96
|
-
aiAct(taskPrompt: string, opt?: {
|
|
97
|
-
cacheable?: boolean;
|
|
98
|
-
planningStrategy?: 'fast' | 'standard' | 'max';
|
|
99
|
-
}): Promise<{
|
|
100
|
+
aiAct(taskPrompt: string, opt?: AiActOptions): Promise<{
|
|
100
101
|
result: Record<string, any>;
|
|
101
102
|
} | {
|
|
102
103
|
yamlFlow?: import("../yaml").MidsceneYamlFlowItem[];
|
|
@@ -104,9 +105,7 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
|
|
|
104
105
|
/**
|
|
105
106
|
* @deprecated Use {@link Agent.aiAct} instead.
|
|
106
107
|
*/
|
|
107
|
-
aiAction(taskPrompt: string, opt?: {
|
|
108
|
-
cacheable?: boolean;
|
|
109
|
-
}): Promise<{
|
|
108
|
+
aiAction(taskPrompt: string, opt?: AiActOptions): Promise<{
|
|
110
109
|
result: Record<string, any>;
|
|
111
110
|
} | {
|
|
112
111
|
yamlFlow?: import("../yaml").MidsceneYamlFlowItem[];
|
|
@@ -178,3 +177,4 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
|
|
|
178
177
|
}): Promise<void>;
|
|
179
178
|
}
|
|
180
179
|
export declare const createAgent: (interfaceInstance: AbstractInterface, opts?: AgentOpt) => Agent<AbstractInterface>;
|
|
180
|
+
export {};
|
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-20251209112631.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.1-beta-
|
|
92
|
+
"@midscene/shared": "1.0.1-beta-20251209112631.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.18.3",
|