@midscene/core 1.8.2-beta-20260518060136.0 → 1.8.2
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/tasks.mjs +3 -3
- package/dist/es/agent/tasks.mjs.map +1 -1
- package/dist/es/agent/utils.mjs +1 -1
- package/dist/es/ai-model/inspect.mjs +19 -10
- package/dist/es/ai-model/inspect.mjs.map +1 -1
- package/dist/es/ai-model/prompt/extraction.mjs +21 -5
- package/dist/es/ai-model/prompt/extraction.mjs.map +1 -1
- package/dist/es/utils.mjs +2 -2
- 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/ai-model/inspect.js +19 -10
- package/dist/lib/ai-model/inspect.js.map +1 -1
- package/dist/lib/ai-model/prompt/extraction.js +23 -4
- package/dist/lib/ai-model/prompt/extraction.js.map +1 -1
- package/dist/lib/utils.js +2 -2
- package/dist/types/ai-model/prompt/extraction.d.ts +6 -2
- package/package.json +2 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { AIDataExtractionResponse } from '../../types';
|
|
1
|
+
import type { AIDataExtractionResponse, ServiceExtractParam } from '../../types';
|
|
2
|
+
export declare function buildTypeQueryDemandValue(type: 'Boolean' | 'Number' | 'String' | 'Assert' | 'WaitFor', demand: ServiceExtractParam): string;
|
|
2
3
|
/**
|
|
3
4
|
* Parse XML response from LLM and convert to AIDataExtractionResponse
|
|
4
5
|
*/
|
|
5
6
|
export declare function parseXMLExtractionResponse<T>(xmlString: string): AIDataExtractionResponse<T>;
|
|
6
|
-
export declare function systemPromptToExtract(
|
|
7
|
+
export declare function systemPromptToExtract(options?: {
|
|
8
|
+
screenshotIncluded?: boolean;
|
|
9
|
+
referenceImagesIncluded?: boolean;
|
|
10
|
+
}): string;
|
|
7
11
|
export declare const extractDataQueryPrompt: (pageDescription: string, dataQuery: string | Record<string, string>) => 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.8.2
|
|
4
|
+
"version": "1.8.2",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"semver": "7.5.2",
|
|
98
98
|
"undici": "^6.0.0",
|
|
99
99
|
"zod": "^3.25.1",
|
|
100
|
-
"@midscene/shared": "1.8.2
|
|
100
|
+
"@midscene/shared": "1.8.2"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@rslib/core": "^0.18.3",
|