@midscene/core 0.6.1 → 0.6.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.
@@ -4384,6 +4384,7 @@ You are an expert in software page image (2D) and page element text analysis.
4384
4384
  - Accurately identify element information based on the user's description and return the corresponding element ID from the element description information, not extracted from the image.
4385
4385
  - If no elements are found, the "elements" array should be empty.
4386
4386
  - The returned data must conform to the specified JSON format.
4387
+ - The returned value id information must use the id from element info (important: **use id not indexId, id is hash content**)
4387
4388
 
4388
4389
  ## Output Format:
4389
4390
 
@@ -4396,7 +4397,7 @@ Please return the result in JSON format as follows:
4396
4397
  {
4397
4398
  "reason": "PLACEHOLDER", // The thought process for finding the element, replace PLACEHOLDER with your thought process
4398
4399
  "text": "PLACEHOLDER", // Replace PLACEHOLDER with the text of elementInfo, if none, leave empty
4399
- "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID of elementInfo, **use id not indexId**
4400
+ "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID (important: **use id not indexId, id is hash content**) of elementInfo
4400
4401
  }
4401
4402
  // More elements...
4402
4403
  ],
package/dist/es/index.js CHANGED
@@ -4549,6 +4549,7 @@ You are an expert in software page image (2D) and page element text analysis.
4549
4549
  - Accurately identify element information based on the user's description and return the corresponding element ID from the element description information, not extracted from the image.
4550
4550
  - If no elements are found, the "elements" array should be empty.
4551
4551
  - The returned data must conform to the specified JSON format.
4552
+ - The returned value id information must use the id from element info (important: **use id not indexId, id is hash content**)
4552
4553
 
4553
4554
  ## Output Format:
4554
4555
 
@@ -4561,7 +4562,7 @@ Please return the result in JSON format as follows:
4561
4562
  {
4562
4563
  "reason": "PLACEHOLDER", // The thought process for finding the element, replace PLACEHOLDER with your thought process
4563
4564
  "text": "PLACEHOLDER", // Replace PLACEHOLDER with the text of elementInfo, if none, leave empty
4564
- "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID of elementInfo, **use id not indexId**
4565
+ "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID (important: **use id not indexId, id is hash content**) of elementInfo
4565
4566
  }
4566
4567
  // More elements...
4567
4568
  ],
@@ -4404,6 +4404,7 @@ You are an expert in software page image (2D) and page element text analysis.
4404
4404
  - Accurately identify element information based on the user's description and return the corresponding element ID from the element description information, not extracted from the image.
4405
4405
  - If no elements are found, the "elements" array should be empty.
4406
4406
  - The returned data must conform to the specified JSON format.
4407
+ - The returned value id information must use the id from element info (important: **use id not indexId, id is hash content**)
4407
4408
 
4408
4409
  ## Output Format:
4409
4410
 
@@ -4416,7 +4417,7 @@ Please return the result in JSON format as follows:
4416
4417
  {
4417
4418
  "reason": "PLACEHOLDER", // The thought process for finding the element, replace PLACEHOLDER with your thought process
4418
4419
  "text": "PLACEHOLDER", // Replace PLACEHOLDER with the text of elementInfo, if none, leave empty
4419
- "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID of elementInfo, **use id not indexId**
4420
+ "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID (important: **use id not indexId, id is hash content**) of elementInfo
4420
4421
  }
4421
4422
  // More elements...
4422
4423
  ],
package/dist/lib/index.js CHANGED
@@ -4571,6 +4571,7 @@ You are an expert in software page image (2D) and page element text analysis.
4571
4571
  - Accurately identify element information based on the user's description and return the corresponding element ID from the element description information, not extracted from the image.
4572
4572
  - If no elements are found, the "elements" array should be empty.
4573
4573
  - The returned data must conform to the specified JSON format.
4574
+ - The returned value id information must use the id from element info (important: **use id not indexId, id is hash content**)
4574
4575
 
4575
4576
  ## Output Format:
4576
4577
 
@@ -4583,7 +4584,7 @@ Please return the result in JSON format as follows:
4583
4584
  {
4584
4585
  "reason": "PLACEHOLDER", // The thought process for finding the element, replace PLACEHOLDER with your thought process
4585
4586
  "text": "PLACEHOLDER", // Replace PLACEHOLDER with the text of elementInfo, if none, leave empty
4586
- "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID of elementInfo, **use id not indexId**
4587
+ "id": "PLACEHOLDER" // Replace PLACEHOLDER with the ID (important: **use id not indexId, id is hash content**) of elementInfo
4587
4588
  }
4588
4589
  // More elements...
4589
4590
  ],
package/package.json CHANGED
@@ -1,7 +1,9 @@
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.6.1",
4
+ "version": "0.6.2",
5
+ "repository": "https://github.com/web-infra-dev/midscene",
6
+ "homepage": "https://midscenejs.com/",
5
7
  "jsnext:source": "./src/index.ts",
6
8
  "type": "commonjs",
7
9
  "main": "./dist/lib/index.js",
@@ -38,7 +40,7 @@
38
40
  "node-fetch": "2.6.7",
39
41
  "openai": "4.57.1",
40
42
  "optional": "0.1.4",
41
- "@midscene/shared": "0.6.1"
43
+ "@midscene/shared": "0.6.2"
42
44
  },
43
45
  "devDependencies": {
44
46
  "@modern-js/module-tools": "2.58.2",