@midscene/core 0.8.9 → 0.8.10-beta-20241225041224.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.
@@ -4616,7 +4616,7 @@ var import_img = require("@midscene/shared/img");
4616
4616
  // src/ai-model/prompt/util.ts
4617
4617
  var characteristic = "You are a versatile professional in software UI design and testing. Your outstanding contributions will impact the user experience of billions of users.";
4618
4618
  var contextFormatIntro = `
4619
- The user will give you a screenshot and the texts on it. There may be some none-English characters (like Chinese) on it, indicating it's an non-English app.`;
4619
+ The user will give you a screenshot and some of the texts on it. There may be some none-English characters (like Chinese) on it, indicating it's an non-English app. If some text is shown on screenshot but not introduced by the JSON description, use the information you see on screenshot.`;
4620
4620
  function systemPromptToExtract() {
4621
4621
  return `
4622
4622
  You are a versatile professional in software UI design and testing. Your outstanding contributions will impact the user experience of billions of users.
package/dist/lib/index.js CHANGED
@@ -4526,7 +4526,7 @@ function stringifyDumpData(data, indents) {
4526
4526
  return JSON.stringify(data, replacerForPageObject, indents);
4527
4527
  }
4528
4528
  function getVersion() {
4529
- return "0.8.9";
4529
+ return "0.8.10-beta-20241225041224.0";
4530
4530
  }
4531
4531
 
4532
4532
  // src/action/executor.ts
@@ -4942,7 +4942,7 @@ var import_img = require("@midscene/shared/img");
4942
4942
  // src/ai-model/prompt/util.ts
4943
4943
  var characteristic = "You are a versatile professional in software UI design and testing. Your outstanding contributions will impact the user experience of billions of users.";
4944
4944
  var contextFormatIntro = `
4945
- The user will give you a screenshot and the texts on it. There may be some none-English characters (like Chinese) on it, indicating it's an non-English app.`;
4945
+ The user will give you a screenshot and some of the texts on it. There may be some none-English characters (like Chinese) on it, indicating it's an non-English app. If some text is shown on screenshot but not introduced by the JSON description, use the information you see on screenshot.`;
4946
4946
  var ONE_ELEMENT_LOCATOR_PREFIX = "LOCATE_ONE_ELEMENT";
4947
4947
  var ELEMENTS_LOCATOR_PREFIX = "LOCATE_ONE_OR_MORE_ELEMENTS";
4948
4948
  var SECTION_MATCHER_FLAG = "SECTION_MATCHER_FLAG/";
package/dist/lib/utils.js CHANGED
@@ -293,7 +293,7 @@ function stringifyDumpData(data, indents) {
293
293
  return JSON.stringify(data, replacerForPageObject, indents);
294
294
  }
295
295
  function getVersion() {
296
- return "0.8.9";
296
+ return "0.8.10-beta-20241225041224.0";
297
297
  }
298
298
  function debugLog(...message) {
299
299
  const debugMode = getAIConfig(MIDSCENE_DEBUG_MODE);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "An AI-powered automation SDK can control the page, perform assertions, and extract data in JSON format using natural language. See https://midscenejs.com/ for details.",
4
- "version": "0.8.9",
4
+ "version": "0.8.10-beta-20241225041224.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "jsnext:source": "./src/index.ts",
@@ -42,7 +42,7 @@
42
42
  "openai": "4.57.1",
43
43
  "optional": "0.1.4",
44
44
  "socks-proxy-agent": "8.0.4",
45
- "@midscene/shared": "0.8.9"
45
+ "@midscene/shared": "0.8.10-beta-20241225041224.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@modern-js/module-tools": "2.60.6",