@midscene/core 0.26.7-beta-20250818034910.0 → 0.26.7-beta-20250818081955.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,4 +1,4 @@
1
- export { callAiFnWithStringResponse, callToGetJSONObject, call as callAi, } from './service-caller/index';
1
+ export { callAiFnWithStringResponse, callToGetJSONObject, call as callAi, getModelName, } from './service-caller/index';
2
2
  export { systemPromptToLocateElement } from './prompt/llm-locator';
3
3
  export { describeUserPage, elementByPositionWithElementInfo, } from './prompt/util';
4
4
  export { generatePlaywrightTest, generatePlaywrightTestStream, } from './prompt/playwright-generator';
@@ -9,6 +9,7 @@ export type AIUsageInfo = Record<string, any> & {
9
9
  completion_tokens: number | undefined;
10
10
  total_tokens: number | undefined;
11
11
  time_cost: number | undefined;
12
+ model_name: string | undefined;
12
13
  };
13
14
  /**
14
15
  * openai
@@ -132,8 +133,6 @@ export interface InsightTaskInfo {
132
133
  export interface DumpMeta {
133
134
  sdkVersion: string;
134
135
  logTime: number;
135
- model_name: string;
136
- model_description?: string;
137
136
  }
138
137
  export interface ReportDumpWithAttributes {
139
138
  dumpString: string;
@@ -334,6 +333,8 @@ export type ExecutionTaskPlanning = ExecutionTask<ExecutionTaskPlanningApply>;
334
333
  export interface GroupedActionDump {
335
334
  groupName: string;
336
335
  groupDescription?: string;
336
+ modelName: string;
337
+ modelDescription: string;
337
338
  executions: ExecutionDump[];
338
339
  }
339
340
  export type PageType = 'puppeteer' | 'playwright' | 'static' | 'chrome-extension-proxy' | 'android';
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-20250818034910.0",
4
+ "version": "0.26.7-beta-20250818081955.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -60,8 +60,8 @@
60
60
  "langsmith": "0.3.7",
61
61
  "openai": "4.81.0",
62
62
  "socks-proxy-agent": "8.0.4",
63
- "@midscene/shared": "0.26.7-beta-20250818034910.0",
64
- "@midscene/recorder": "0.26.7-beta-20250818034910.0"
63
+ "@midscene/recorder": "0.26.7-beta-20250818081955.0",
64
+ "@midscene/shared": "0.26.7-beta-20250818081955.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@microsoft/api-extractor": "^7.52.10",