@midscene/core 1.0.1-beta-20251211095502.0 → 1.0.1-beta-20251211124955.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 +12 -3
- package/dist/es/agent/agent.mjs.map +1 -1
- package/dist/es/agent/tasks.mjs +3 -3
- package/dist/es/agent/tasks.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/types.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/agent.js +12 -3
- package/dist/lib/agent/agent.js.map +1 -1
- package/dist/lib/agent/tasks.js +3 -3
- package/dist/lib/agent/tasks.js.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/agent/agent.d.ts +1 -0
- package/dist/types/agent/tasks.d.ts +1 -1
- package/dist/types/types.d.ts +3 -2
- package/dist/types/yaml.d.ts +1 -1
- package/package.json +2 -2
|
@@ -32,6 +32,7 @@ export declare class Agent<InterfaceType extends AbstractInterface = AbstractInt
|
|
|
32
32
|
* Frozen page context for consistent AI operations
|
|
33
33
|
*/
|
|
34
34
|
private frozenUIContext?;
|
|
35
|
+
private get aiActContext();
|
|
35
36
|
/**
|
|
36
37
|
* Flag to track if VL model warning has been shown
|
|
37
38
|
*/
|
|
@@ -46,7 +46,7 @@ export declare class TaskExecutor {
|
|
|
46
46
|
runner: TaskRunner;
|
|
47
47
|
}>;
|
|
48
48
|
runPlans(title: string, plans: PlanningAction[], modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig): Promise<ExecutionResult>;
|
|
49
|
-
action(userPrompt: string, modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig, includeBboxInPlanning: boolean,
|
|
49
|
+
action(userPrompt: string, modelConfigForPlanning: IModelConfig, modelConfigForDefaultIntent: IModelConfig, includeBboxInPlanning: boolean, aiActContext?: string, cacheable?: boolean, replanningCycleLimitOverride?: number, imagesIncludeCount?: number): Promise<ExecutionResult<{
|
|
50
50
|
yamlFlow?: MidsceneYamlFlowItem[];
|
|
51
51
|
} | undefined>>;
|
|
52
52
|
private createTypeQueryTask;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -274,7 +274,7 @@ export interface ExecutionDump extends DumpMeta {
|
|
|
274
274
|
name: string;
|
|
275
275
|
description?: string;
|
|
276
276
|
tasks: ExecutionTask[];
|
|
277
|
-
|
|
277
|
+
aiActContext?: string;
|
|
278
278
|
}
|
|
279
279
|
export type ExecutionTaskInsightLocateParam = PlanningLocateParam;
|
|
280
280
|
export interface ExecutionTaskInsightLocateOutput {
|
|
@@ -304,7 +304,7 @@ export type ExecutionTaskLogApply<LogParam = {
|
|
|
304
304
|
export type ExecutionTaskLog = ExecutionTask<ExecutionTaskLogApply>;
|
|
305
305
|
export type ExecutionTaskPlanningApply = ExecutionTaskApply<'Planning', {
|
|
306
306
|
userInstruction: string;
|
|
307
|
-
|
|
307
|
+
aiActContext?: string;
|
|
308
308
|
}, PlanningAIResponse>;
|
|
309
309
|
export type ExecutionTaskPlanning = ExecutionTask<ExecutionTaskPlanningApply>;
|
|
310
310
|
export type ExecutionTaskPlanningLocateParam = PlanningLocateParam;
|
|
@@ -399,6 +399,7 @@ export interface AgentOpt {
|
|
|
399
399
|
generateReport?: boolean;
|
|
400
400
|
autoPrintReportMsg?: boolean;
|
|
401
401
|
onTaskStartTip?: OnTaskStartTip;
|
|
402
|
+
aiActContext?: string;
|
|
402
403
|
aiActionContext?: string;
|
|
403
404
|
reportFileName?: string;
|
|
404
405
|
modelConfig?: TModelConfig;
|
package/dist/types/yaml.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export interface MidsceneYamlTask {
|
|
|
67
67
|
* strategy: "read-write"
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
export type MidsceneYamlScriptAgentOpt = Pick<AgentOpt, 'testId' | 'groupName' | 'groupDescription' | 'generateReport' | 'autoPrintReportMsg' | 'reportFileName' | 'replanningCycleLimit' | 'aiActionContext' | 'cache'>;
|
|
70
|
+
export type MidsceneYamlScriptAgentOpt = Pick<AgentOpt, 'testId' | 'groupName' | 'groupDescription' | 'generateReport' | 'autoPrintReportMsg' | 'reportFileName' | 'replanningCycleLimit' | 'aiActContext' | 'aiActionContext' | 'cache'>;
|
|
71
71
|
export interface MidsceneYamlScriptConfig {
|
|
72
72
|
output?: string;
|
|
73
73
|
unstableLogContent?: boolean | string;
|
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-20251211124955.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-20251211124955.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@rslib/core": "^0.18.3",
|