@midscene/core 1.0.1-beta-20251107065041.0 → 1.0.1-beta-20251110055007.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.
@@ -13,6 +13,7 @@ export declare function printReportMsg(filepath: string): void;
13
13
  */
14
14
  export declare function getCurrentExecutionFile(trace?: string): string | false;
15
15
  export declare function generateCacheId(fileName?: string): string;
16
+ export declare function ifPlanLocateParamIsBbox(planLocateParam: PlanningLocateParam): boolean;
16
17
  export declare function matchElementFromPlan(planLocateParam: PlanningLocateParam): LocateResultElement | undefined;
17
18
  export declare function matchElementFromCache(context: {
18
19
  taskCache?: TaskCache;
@@ -564,5 +564,5 @@ export declare const loadActionParam: (jsonObject: Record<string, any>, zodSchem
564
564
  * Locator fields are special business logic fields with complex validation requirements,
565
565
  * so they are intentionally excluded from Zod parsing and use existing validation logic.
566
566
  */
567
- export declare const parseActionParam: (rawParam: Record<string, any>, zodSchema: z.ZodType<any>) => Record<string, any>;
567
+ export declare const parseActionParam: (rawParam: Record<string, any> | undefined, zodSchema?: z.ZodType<any>) => Record<string, any> | undefined;
568
568
  export {};
@@ -22,11 +22,11 @@ export declare abstract class AbstractInterface {
22
22
  abstract evaluateJavaScript?<T = any>(script: string): Promise<T>;
23
23
  abstract getContext?(): Promise<UIContext>;
24
24
  }
25
- export declare const defineAction: <TSchema extends z.ZodType, TRuntime = z.infer<TSchema>, TReturn = any>(config: {
25
+ export declare const defineAction: <TSchema extends z.ZodType | undefined = undefined, TRuntime = TSchema extends z.ZodType ? z.infer<TSchema> : undefined, TReturn = any>(config: {
26
26
  name: string;
27
27
  description: string;
28
28
  interfaceAlias?: string;
29
- paramSchema: TSchema;
29
+ paramSchema?: TSchema;
30
30
  call: (param: TRuntime) => Promise<TReturn> | TReturn;
31
31
  } & Partial<Omit<DeviceAction<TRuntime, TReturn>, "name" | "description" | "interfaceAlias" | "paramSchema" | "call">>) => DeviceAction<TRuntime, TReturn>;
32
32
  export declare const actionTapParamSchema: z.ZodObject<{
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-20251107065041.0",
4
+ "version": "1.0.1-beta-20251110055007.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-20251107065041.0"
92
+ "@midscene/shared": "1.0.1-beta-20251110055007.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@rslib/core": "^0.11.2",