@midscene/core 0.19.1-beta-20250616124611.0 → 0.19.1-beta-20250616133247.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.
package/dist/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getVersion
3
- } from "./chunk-FIMT74SQ.js";
3
+ } from "./chunk-NQEPCJPP.js";
4
4
  import {
5
5
  AiAssert,
6
6
  AiExtractElementInfo,
@@ -11,7 +11,7 @@ import {
11
11
  describeUserPage,
12
12
  expandSearchArea,
13
13
  plan
14
- } from "./chunk-EYIL4AHP.js";
14
+ } from "./chunk-7EB47UPF.js";
15
15
 
16
16
  // src/ai-model/action-executor.ts
17
17
  import {
package/dist/es/utils.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  uploadTestInfoToServer,
13
13
  writeDumpReport,
14
14
  writeLogFile
15
- } from "./chunk-FIMT74SQ.js";
15
+ } from "./chunk-NQEPCJPP.js";
16
16
  export {
17
17
  getTmpDir,
18
18
  getTmpFile,
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- var _chunkEYIL4AHPjs = require('./chunk-EYIL4AHP.js');
19
+ var _chunk7EB47UPFjs = require('./chunk-7EB47UPF.js');
20
20
 
21
21
 
22
22
 
@@ -35,4 +35,4 @@ var _chunkEYIL4AHPjs = require('./chunk-EYIL4AHP.js');
35
35
 
36
36
 
37
37
 
38
- exports.AIActionType = _chunkEYIL4AHPjs.AIActionType; exports.AiAssert = _chunkEYIL4AHPjs.AiAssert; exports.AiExtractElementInfo = _chunkEYIL4AHPjs.AiExtractElementInfo; exports.AiLocateElement = _chunkEYIL4AHPjs.AiLocateElement; exports.AiLocateSection = _chunkEYIL4AHPjs.AiLocateSection; exports.adaptBboxToRect = _chunkEYIL4AHPjs.adaptBboxToRect; exports.callAi = _chunkEYIL4AHPjs.call; exports.callAiFn = _chunkEYIL4AHPjs.callAiFn; exports.callToGetJSONObject = _chunkEYIL4AHPjs.callToGetJSONObject; exports.describeUserPage = _chunkEYIL4AHPjs.describeUserPage; exports.elementByPositionWithElementInfo = _chunkEYIL4AHPjs.elementByPositionWithElementInfo; exports.generatePlaywrightTest = _chunkEYIL4AHPjs.generatePlaywrightTest; exports.generateYamlTest = _chunkEYIL4AHPjs.generateYamlTest; exports.plan = _chunkEYIL4AHPjs.plan; exports.resizeImageForUiTars = _chunkEYIL4AHPjs.resizeImageForUiTars; exports.systemPromptToLocateElement = _chunkEYIL4AHPjs.systemPromptToLocateElement; exports.vlmPlanning = _chunkEYIL4AHPjs.vlmPlanning;
38
+ exports.AIActionType = _chunk7EB47UPFjs.AIActionType; exports.AiAssert = _chunk7EB47UPFjs.AiAssert; exports.AiExtractElementInfo = _chunk7EB47UPFjs.AiExtractElementInfo; exports.AiLocateElement = _chunk7EB47UPFjs.AiLocateElement; exports.AiLocateSection = _chunk7EB47UPFjs.AiLocateSection; exports.adaptBboxToRect = _chunk7EB47UPFjs.adaptBboxToRect; exports.callAi = _chunk7EB47UPFjs.call; exports.callAiFn = _chunk7EB47UPFjs.callAiFn; exports.callToGetJSONObject = _chunk7EB47UPFjs.callToGetJSONObject; exports.describeUserPage = _chunk7EB47UPFjs.describeUserPage; exports.elementByPositionWithElementInfo = _chunk7EB47UPFjs.elementByPositionWithElementInfo; exports.generatePlaywrightTest = _chunk7EB47UPFjs.generatePlaywrightTest; exports.generateYamlTest = _chunk7EB47UPFjs.generateYamlTest; exports.plan = _chunk7EB47UPFjs.plan; exports.resizeImageForUiTars = _chunk7EB47UPFjs.resizeImageForUiTars; exports.systemPromptToLocateElement = _chunk7EB47UPFjs.systemPromptToLocateElement; exports.vlmPlanning = _chunk7EB47UPFjs.vlmPlanning;
@@ -643,10 +643,9 @@ function elementByPositionWithElementInfo(treeRoot, position, options) {
643
643
  if (_optionalChain([node, 'optionalAccess', _12 => _12.node])) {
644
644
  const item = node.node;
645
645
  if (item.rect.left <= position.x && position.x <= item.rect.left + item.rect.width && item.rect.top <= position.y && position.y <= item.rect.top + item.rect.height) {
646
- if (filterPositionElements && _optionalChain([item, 'access', _13 => _13.attributes, 'optionalAccess', _14 => _14.nodeType]) === _constants.NodeType.POSITION) {
647
- return;
646
+ if (!(filterPositionElements && _optionalChain([item, 'access', _13 => _13.attributes, 'optionalAccess', _14 => _14.nodeType]) === _constants.NodeType.POSITION)) {
647
+ matchingElements.push(item);
648
648
  }
649
- matchingElements.push(item);
650
649
  }
651
650
  }
652
651
  for (const child of node.children) {
@@ -2578,4 +2577,4 @@ async function resizeImageForUiTars(imageBase64, size) {
2578
2577
 
2579
2578
  exports.systemPromptToLocateElement = systemPromptToLocateElement; exports.elementByPositionWithElementInfo = elementByPositionWithElementInfo; exports.describeUserPage = describeUserPage; exports.call = call; exports.callToGetJSONObject = callToGetJSONObject; exports.AIActionType = AIActionType; exports.callAiFn = callAiFn; exports.adaptBboxToRect = adaptBboxToRect; exports.expandSearchArea = expandSearchArea; exports.generatePlaywrightTest = generatePlaywrightTest; exports.generateYamlTest = generateYamlTest; exports.AiLocateElement = AiLocateElement; exports.AiLocateSection = AiLocateSection; exports.AiExtractElementInfo = AiExtractElementInfo; exports.AiAssert = AiAssert; exports.plan = plan; exports.vlmPlanning = vlmPlanning; exports.resizeImageForUiTars = resizeImageForUiTars;
2580
2579
 
2581
- //# sourceMappingURL=chunk-EYIL4AHP.js.map
2580
+ //# sourceMappingURL=chunk-7EB47UPF.js.map