@midscene/core 0.30.3 → 0.30.4-beta-20251016083204.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 +4 -4
- package/dist/es/agent/agent.mjs.map +1 -1
- package/dist/es/agent/tasks.mjs +7 -29
- package/dist/es/agent/tasks.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/ai-model/action-executor.mjs +1 -3
- package/dist/es/ai-model/action-executor.mjs.map +1 -1
- package/dist/es/insight/utils.mjs +0 -2
- package/dist/es/insight/utils.mjs.map +1 -1
- package/dist/es/types.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- package/dist/lib/agent/agent.js +3 -3
- package/dist/lib/agent/agent.js.map +1 -1
- package/dist/lib/agent/tasks.js +7 -29
- package/dist/lib/agent/tasks.js.map +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/ai-model/action-executor.js +1 -3
- package/dist/lib/ai-model/action-executor.js.map +1 -1
- package/dist/lib/insight/utils.js +0 -2
- package/dist/lib/insight/utils.js.map +1 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/agent/tasks.d.ts +0 -1
- package/dist/types/agent/utils.d.ts +0 -1
- package/dist/types/types.d.ts +6 -8
- package/dist/types/yaml.d.ts +0 -1
- package/package.json +3 -3
|
@@ -41,7 +41,6 @@ export declare class TaskExecutor {
|
|
|
41
41
|
} | undefined>>;
|
|
42
42
|
private createTypeQueryTask;
|
|
43
43
|
createTypeQueryExecution<T>(type: 'Query' | 'Boolean' | 'Number' | 'String' | 'Assert', demand: InsightExtractParam, modelConfig: IModelConfig, opt?: InsightExtractOption, multimodalPrompt?: TMultimodalPrompt): Promise<ExecutionResult<T>>;
|
|
44
|
-
assert(assertion: TUserPrompt, modelConfig: IModelConfig, opt?: InsightExtractOption): Promise<ExecutionResult<boolean>>;
|
|
45
44
|
private appendErrorPlan;
|
|
46
45
|
taskForSleep(timeMs: number, modelConfig: IModelConfig): Promise<ExecutionTaskApply<any, any, any, any>>;
|
|
47
46
|
waitFor(assertion: TUserPrompt, opt: PlanningActionParamWaitFor, modelConfig: IModelConfig): Promise<ExecutionResult<void>>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -129,7 +129,6 @@ export interface InsightTaskInfo {
|
|
|
129
129
|
searchAreaUsage?: AIUsageInfo;
|
|
130
130
|
}
|
|
131
131
|
export interface DumpMeta {
|
|
132
|
-
sdkVersion: string;
|
|
133
132
|
logTime: number;
|
|
134
133
|
}
|
|
135
134
|
export interface ReportDumpWithAttributes {
|
|
@@ -154,7 +153,7 @@ export interface InsightDump extends DumpMeta {
|
|
|
154
153
|
error?: string;
|
|
155
154
|
output?: any;
|
|
156
155
|
}
|
|
157
|
-
export type PartialInsightDumpFromSDK = Omit<InsightDump, '
|
|
156
|
+
export type PartialInsightDumpFromSDK = Omit<InsightDump, 'logTime' | 'logId' | 'model_name'>;
|
|
158
157
|
export type DumpSubscriber = (dump: InsightDump) => Promise<void> | void;
|
|
159
158
|
export interface LiteUISection {
|
|
160
159
|
name: string;
|
|
@@ -295,10 +294,8 @@ export type ExecutionTaskInsightLocateParam = PlanningLocateParam;
|
|
|
295
294
|
export interface ExecutionTaskInsightLocateOutput {
|
|
296
295
|
element: LocateResultElement | null;
|
|
297
296
|
}
|
|
298
|
-
export
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
export type ExecutionTaskInsightLocateApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightLocateParam, ExecutionTaskInsightLocateOutput, ExecutionTaskInsightDumpLog>;
|
|
297
|
+
export type ExecutionTaskInsightDump = InsightDump;
|
|
298
|
+
export type ExecutionTaskInsightLocateApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightLocateParam, ExecutionTaskInsightLocateOutput, ExecutionTaskInsightDump>;
|
|
302
299
|
export type ExecutionTaskInsightLocate = ExecutionTask<ExecutionTaskInsightLocateApply>;
|
|
303
300
|
export interface ExecutionTaskInsightQueryParam {
|
|
304
301
|
dataDemand: InsightExtractParam;
|
|
@@ -306,12 +303,12 @@ export interface ExecutionTaskInsightQueryParam {
|
|
|
306
303
|
export interface ExecutionTaskInsightQueryOutput {
|
|
307
304
|
data: any;
|
|
308
305
|
}
|
|
309
|
-
export type ExecutionTaskInsightQueryApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightQueryParam, any,
|
|
306
|
+
export type ExecutionTaskInsightQueryApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightQueryParam, any, ExecutionTaskInsightDump>;
|
|
310
307
|
export type ExecutionTaskInsightQuery = ExecutionTask<ExecutionTaskInsightQueryApply>;
|
|
311
308
|
export interface ExecutionTaskInsightAssertionParam {
|
|
312
309
|
assertion: string;
|
|
313
310
|
}
|
|
314
|
-
export type ExecutionTaskInsightAssertionApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightAssertionParam, InsightAssertionResponse,
|
|
311
|
+
export type ExecutionTaskInsightAssertionApply = ExecutionTaskApply<'Insight', ExecutionTaskInsightAssertionParam, InsightAssertionResponse, ExecutionTaskInsightDump>;
|
|
315
312
|
export type ExecutionTaskInsightAssertion = ExecutionTask<ExecutionTaskInsightAssertionApply>;
|
|
316
313
|
export type ExecutionTaskActionApply<ActionParam = any> = ExecutionTaskApply<'Action', ActionParam, void, void>;
|
|
317
314
|
export type ExecutionTaskAction = ExecutionTask<ExecutionTaskActionApply>;
|
|
@@ -324,6 +321,7 @@ export type ExecutionTaskPlanningApply = ExecutionTaskApply<'Planning', {
|
|
|
324
321
|
}, PlanningAIResponse>;
|
|
325
322
|
export type ExecutionTaskPlanning = ExecutionTask<ExecutionTaskPlanningApply>;
|
|
326
323
|
export interface GroupedActionDump {
|
|
324
|
+
sdkVersion: string;
|
|
327
325
|
groupName: string;
|
|
328
326
|
groupDescription?: string;
|
|
329
327
|
modelBriefs: string[];
|
package/dist/types/yaml.d.ts
CHANGED
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": "0.30.
|
|
4
|
+
"version": "0.30.4-beta-20251016083204.0",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"zod": "3.24.3",
|
|
93
93
|
"semver": "7.5.2",
|
|
94
94
|
"js-yaml": "4.1.0",
|
|
95
|
-
"@midscene/
|
|
96
|
-
"@midscene/
|
|
95
|
+
"@midscene/recorder": "0.30.4-beta-20251016083204.0",
|
|
96
|
+
"@midscene/shared": "0.30.4-beta-20251016083204.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@rslib/core": "^0.11.2",
|