@midscene/core 0.19.1-beta-20250616080226.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/ai-model.js +1 -1
- package/dist/es/{chunk-EYIL4AHP.js → chunk-7EB47UPF.js} +3 -4
- package/dist/{lib/chunk-EYIL4AHP.js.map → es/chunk-7EB47UPF.js.map} +1 -1
- package/dist/es/{chunk-EYEGNQ2F.js → chunk-NQEPCJPP.js} +3 -3
- package/dist/es/index.js +2 -2
- package/dist/es/utils.js +1 -1
- package/dist/lib/ai-model.js +2 -2
- package/dist/lib/{chunk-EYIL4AHP.js → chunk-7EB47UPF.js} +3 -4
- package/dist/{es/chunk-EYIL4AHP.js.map → lib/chunk-7EB47UPF.js.map} +1 -1
- package/dist/lib/{chunk-EYEGNQ2F.js → chunk-NQEPCJPP.js} +3 -3
- package/dist/lib/index.js +12 -12
- package/dist/lib/utils.js +2 -2
- package/package.json +3 -3
- /package/dist/es/{chunk-EYEGNQ2F.js.map → chunk-NQEPCJPP.js.map} +0 -0
- /package/dist/lib/{chunk-EYEGNQ2F.js.map → chunk-NQEPCJPP.js.map} +0 -0
package/dist/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getVersion
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
14
|
+
} from "./chunk-7EB47UPF.js";
|
|
15
15
|
|
|
16
16
|
// src/ai-model/action-executor.ts
|
|
17
17
|
import {
|
package/dist/es/utils.js
CHANGED
package/dist/lib/ai-model.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
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 =
|
|
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
|
-
|
|
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-
|
|
2580
|
+
//# sourceMappingURL=chunk-7EB47UPF.js.map
|