@godscene/core
Advanced tools
@@ -305,3 +305,4 @@ import { findAllMidsceneLocatorField, parseActionParam } from "../ai-model/index.mjs"; | ||
| if (this.interface.getElementFromPoint && element.center) try { | ||
| const [x, y] = element.center; | ||
| const x = Math.round(element.center[0] / shrunkShotToLogicalRatio); | ||
| const y = Math.round(element.center[1] / shrunkShotToLogicalRatio); | ||
| const data = await this.interface.getElementFromPoint({ | ||
@@ -311,3 +312,2 @@ x, | ||
| }); | ||
| console.log(data, 'getElementFromPoint data'); | ||
| element.allPaths = data?.allPaths || []; | ||
@@ -314,0 +314,0 @@ element.containerPaths = data?.containerPaths || []; |
@@ -126,3 +126,3 @@ import { ScreenshotItem } from "../screenshot-item.mjs"; | ||
| } | ||
| const getMidsceneVersion = ()=>"1.7.16"; | ||
| const getMidsceneVersion = ()=>"1.7.17"; | ||
| const parsePrompt = (prompt)=>{ | ||
@@ -129,0 +129,0 @@ if ('string' == typeof prompt) return { |
@@ -334,3 +334,4 @@ "use strict"; | ||
| if (this.interface.getElementFromPoint && element.center) try { | ||
| const [x, y] = element.center; | ||
| const x = Math.round(element.center[0] / shrunkShotToLogicalRatio); | ||
| const y = Math.round(element.center[1] / shrunkShotToLogicalRatio); | ||
| const data = await this.interface.getElementFromPoint({ | ||
@@ -340,3 +341,2 @@ x, | ||
| }); | ||
| console.log(data, 'getElementFromPoint data'); | ||
| element.allPaths = data?.allPaths || []; | ||
@@ -343,0 +343,0 @@ element.containerPaths = data?.containerPaths || []; |
@@ -173,3 +173,3 @@ "use strict"; | ||
| } | ||
| const getMidsceneVersion = ()=>"1.7.16"; | ||
| const getMidsceneVersion = ()=>"1.7.17"; | ||
| const parsePrompt = (prompt)=>{ | ||
@@ -176,0 +176,0 @@ if ('string' == typeof prompt) return { |
+2
-2
| { | ||
| "name": "@godscene/core", | ||
| "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.", | ||
| "version": "1.7.17", | ||
| "version": "1.7.18", | ||
| "repository": "https://github.com/web-infra-dev/midscene", | ||
@@ -100,3 +100,3 @@ "homepage": "https://midscenejs.com/", | ||
| "zod": "^3.25.1", | ||
| "@godscene/shared": "1.7.17" | ||
| "@godscene/shared": "1.7.18" | ||
| }, | ||
@@ -103,0 +103,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1647264
0.01%41
-2.38%+ Added
- Removed
Updated