@midscene/core 0.26.7-beta-20250820160625.0 → 0.26.7-beta-20250821041506.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.
@@ -1,5 +1,5 @@
1
1
  import { callAiFn } from '../ai-model/common';
2
- import type { AIElementResponse, AIUsageInfo, BaseElement, DetailedLocateParam, DumpSubscriber, InsightAction, InsightExtractOption, InsightExtractParam, InsightOptions, InsightTaskInfo, LocateResult, UIContext } from '../types';
2
+ import type { AIDescribeElementResponse, AIElementResponse, AIUsageInfo, BaseElement, DetailedLocateParam, DumpSubscriber, InsightAction, InsightExtractOption, InsightExtractParam, InsightOptions, InsightTaskInfo, LocateResult, Rect, UIContext } from '../types';
3
3
  import type { TMultimodalPrompt } from '../ai-model/common';
4
4
  export interface LocateOpts {
5
5
  context?: UIContext<BaseElement>;
@@ -20,4 +20,7 @@ export default class Insight<ElementType extends BaseElement = BaseElement, Cont
20
20
  thought?: string;
21
21
  usage?: AIUsageInfo;
22
22
  }>;
23
+ describe(target: Rect | [number, number], opt?: {
24
+ deepThink?: boolean;
25
+ }): Promise<Pick<AIDescribeElementResponse, 'description'>>;
23
26
  }
@@ -214,18 +214,13 @@ export interface PlanningActionParamInputOrKeyPress {
214
214
  value: string;
215
215
  autoDismissKeyboard?: boolean;
216
216
  }
217
- export interface PlanningActionParamAssert {
218
- assertion: TUserPrompt;
219
- }
220
217
  export interface PlanningActionParamSleep {
221
218
  timeMs: number;
222
219
  }
223
220
  export interface PlanningActionParamError {
224
221
  thought: string;
225
222
  }
226
- export type PlanningActionParamWaitFor = AgentWaitForOpt & {
227
- assertion: string;
228
- };
223
+ export type PlanningActionParamWaitFor = AgentWaitForOpt & {};
229
224
  export interface AndroidLongPressParam {
230
225
  duration?: number;
231
226
  }
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.26.7-beta-20250820160625.0",
4
+ "version": "0.26.7-beta-20250821041506.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -61,8 +61,8 @@
61
61
  "openai": "4.81.0",
62
62
  "socks-proxy-agent": "8.0.4",
63
63
  "zod": "3.24.3",
64
- "@midscene/recorder": "0.26.7-beta-20250820160625.0",
65
- "@midscene/shared": "0.26.7-beta-20250820160625.0"
64
+ "@midscene/recorder": "0.26.7-beta-20250821041506.0",
65
+ "@midscene/shared": "0.26.7-beta-20250821041506.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@microsoft/api-extractor": "^7.52.10",