@midscene/core 0.2.1-beta-20240808072311.0 → 0.2.1
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 +2 -2
- package/dist/es/index.js +3 -3
- package/dist/es/utils.js +1 -1
- package/dist/lib/ai-model.js +2 -2
- package/dist/lib/index.js +3 -3
- package/dist/lib/utils.js +1 -1
- package/package.json +1 -1
package/dist/es/ai-model.js
CHANGED
|
@@ -4538,7 +4538,7 @@ async function describeUserPage(context) {
|
|
|
4538
4538
|
idElementMap[item.id] = item;
|
|
4539
4539
|
return __spreadValues({}, item);
|
|
4540
4540
|
});
|
|
4541
|
-
const elementInfosDescription =
|
|
4541
|
+
const elementInfosDescription = cropFieldInformation(elementsInfo);
|
|
4542
4542
|
return {
|
|
4543
4543
|
description: `
|
|
4544
4544
|
{
|
|
@@ -4556,7 +4556,7 @@ async function describeUserPage(context) {
|
|
|
4556
4556
|
}
|
|
4557
4557
|
};
|
|
4558
4558
|
}
|
|
4559
|
-
function
|
|
4559
|
+
function cropFieldInformation(elementsInfo) {
|
|
4560
4560
|
const elementInfosDescription = elementsInfo.map(
|
|
4561
4561
|
(item) => {
|
|
4562
4562
|
const { id, attributes = {}, rect, content } = item;
|
package/dist/es/index.js
CHANGED
|
@@ -1076,7 +1076,7 @@ function writeDumpFile(opts) {
|
|
|
1076
1076
|
`${gitIgnoreContent}
|
|
1077
1077
|
# Midscene.js dump files
|
|
1078
1078
|
${logDirName}/report
|
|
1079
|
-
${logDirName}/dump
|
|
1079
|
+
${logDirName}/dump
|
|
1080
1080
|
`,
|
|
1081
1081
|
"utf-8"
|
|
1082
1082
|
);
|
|
@@ -4787,7 +4787,7 @@ async function describeUserPage(context) {
|
|
|
4787
4787
|
idElementMap[item.id] = item;
|
|
4788
4788
|
return __spreadValues({}, item);
|
|
4789
4789
|
});
|
|
4790
|
-
const elementInfosDescription =
|
|
4790
|
+
const elementInfosDescription = cropFieldInformation(elementsInfo);
|
|
4791
4791
|
return {
|
|
4792
4792
|
description: `
|
|
4793
4793
|
{
|
|
@@ -4805,7 +4805,7 @@ async function describeUserPage(context) {
|
|
|
4805
4805
|
}
|
|
4806
4806
|
};
|
|
4807
4807
|
}
|
|
4808
|
-
function
|
|
4808
|
+
function cropFieldInformation(elementsInfo) {
|
|
4809
4809
|
const elementInfosDescription = elementsInfo.map(
|
|
4810
4810
|
(item) => {
|
|
4811
4811
|
const { id, attributes = {}, rect, content } = item;
|
package/dist/es/utils.js
CHANGED
package/dist/lib/ai-model.js
CHANGED
|
@@ -4549,7 +4549,7 @@ async function describeUserPage(context) {
|
|
|
4549
4549
|
idElementMap[item.id] = item;
|
|
4550
4550
|
return __spreadValues({}, item);
|
|
4551
4551
|
});
|
|
4552
|
-
const elementInfosDescription =
|
|
4552
|
+
const elementInfosDescription = cropFieldInformation(elementsInfo);
|
|
4553
4553
|
return {
|
|
4554
4554
|
description: `
|
|
4555
4555
|
{
|
|
@@ -4567,7 +4567,7 @@ async function describeUserPage(context) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
};
|
|
4569
4569
|
}
|
|
4570
|
-
function
|
|
4570
|
+
function cropFieldInformation(elementsInfo) {
|
|
4571
4571
|
const elementInfosDescription = elementsInfo.map(
|
|
4572
4572
|
(item) => {
|
|
4573
4573
|
const { id, attributes = {}, rect, content } = item;
|
package/dist/lib/index.js
CHANGED
|
@@ -1091,7 +1091,7 @@ function writeDumpFile(opts) {
|
|
|
1091
1091
|
`${gitIgnoreContent}
|
|
1092
1092
|
# Midscene.js dump files
|
|
1093
1093
|
${logDirName}/report
|
|
1094
|
-
${logDirName}/dump
|
|
1094
|
+
${logDirName}/dump
|
|
1095
1095
|
`,
|
|
1096
1096
|
"utf-8"
|
|
1097
1097
|
);
|
|
@@ -4802,7 +4802,7 @@ async function describeUserPage(context) {
|
|
|
4802
4802
|
idElementMap[item.id] = item;
|
|
4803
4803
|
return __spreadValues({}, item);
|
|
4804
4804
|
});
|
|
4805
|
-
const elementInfosDescription =
|
|
4805
|
+
const elementInfosDescription = cropFieldInformation(elementsInfo);
|
|
4806
4806
|
return {
|
|
4807
4807
|
description: `
|
|
4808
4808
|
{
|
|
@@ -4820,7 +4820,7 @@ async function describeUserPage(context) {
|
|
|
4820
4820
|
}
|
|
4821
4821
|
};
|
|
4822
4822
|
}
|
|
4823
|
-
function
|
|
4823
|
+
function cropFieldInformation(elementsInfo) {
|
|
4824
4824
|
const elementInfosDescription = elementsInfo.map(
|
|
4825
4825
|
(item) => {
|
|
4826
4826
|
const { id, attributes = {}, rect, content } = item;
|
package/dist/lib/utils.js
CHANGED
package/package.json
CHANGED