@midscene/core 0.30.8 → 0.30.9

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,4 +1,4 @@
1
1
  import type { ResponseFormatJSONSchema } from 'openai/resources/index';
2
2
  export declare function systemPromptToExtract(): string;
3
- export declare const extractDataQueryPrompt: (pageDescription: string, dataQuery: string | Record<string, string>) => Promise<string>;
3
+ export declare const extractDataQueryPrompt: (pageDescription: string, dataQuery: string | Record<string, string>) => string;
4
4
  export declare const extractDataSchema: ResponseFormatJSONSchema;
@@ -1,9 +1,8 @@
1
- import { PromptTemplate } from '@langchain/core/prompts';
2
1
  import type { TVlModeTypes } from '@midscene/shared/env';
3
2
  import type { ResponseFormatJSONSchema } from 'openai/resources/index';
4
3
  export declare function systemPromptToLocateElement(vlMode: TVlModeTypes | undefined): string;
5
4
  export declare const locatorSchema: ResponseFormatJSONSchema;
6
- export declare const findElementPrompt: PromptTemplate<{
7
- pageDescription: any;
8
- targetElementDescription: any;
9
- }, any>;
5
+ export declare const findElementPrompt: ({ pageDescription, targetElementDescription, }: {
6
+ pageDescription: string;
7
+ targetElementDescription: string;
8
+ }) => string;
@@ -1,6 +1,5 @@
1
- import { PromptTemplate } from '@langchain/core/prompts';
2
1
  import type { TVlModeTypes } from '@midscene/shared/env';
3
2
  export declare function systemPromptToLocateSection(vlMode: TVlModeTypes | undefined): string;
4
- export declare const sectionLocatorInstruction: PromptTemplate<{
5
- sectionDescription: any;
6
- }, any>;
3
+ export declare const sectionLocatorInstruction: ({ sectionDescription, }: {
4
+ sectionDescription: string;
5
+ }) => 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": "0.30.8",
4
+ "version": "0.30.9",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -81,7 +81,6 @@
81
81
  "dependencies": {
82
82
  "@anthropic-ai/sdk": "0.33.1",
83
83
  "@azure/identity": "4.5.0",
84
- "@langchain/core": "0.3.26",
85
84
  "@ui-tars/action-parser": "1.2.3",
86
85
  "dotenv": "^16.4.5",
87
86
  "https-proxy-agent": "7.0.2",
@@ -92,8 +91,8 @@
92
91
  "zod": "3.24.3",
93
92
  "semver": "7.5.2",
94
93
  "js-yaml": "4.1.0",
95
- "@midscene/recorder": "0.30.8",
96
- "@midscene/shared": "0.30.8"
94
+ "@midscene/recorder": "0.30.9",
95
+ "@midscene/shared": "0.30.9"
97
96
  },
98
97
  "devDependencies": {
99
98
  "@rslib/core": "^0.11.2",