@ui-tars-test/cli 0.3.14 → 0.3.15
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.
|
@@ -24374,7 +24374,7 @@ var __webpack_modules__ = {
|
|
|
24374
24374
|
};
|
|
24375
24375
|
}
|
|
24376
24376
|
async calculateRealCoords(coords) {
|
|
24377
|
-
if (!coords.normalized) {
|
|
24377
|
+
if (coords.raw) { return { realX: coords.raw.x, realY: coords.raw.y }; } if (!coords.normalized) {
|
|
24378
24378
|
if (!coords.raw) throw new Error('Invalide coordinates');
|
|
24379
24379
|
return {
|
|
24380
24380
|
realX: coords.raw.x,
|
|
@@ -232131,7 +232131,7 @@ ${picocolors.cyan(prompts_dist_d)}
|
|
|
232131
232131
|
}
|
|
232132
232132
|
}
|
|
232133
232133
|
async calculateRealCoords(coords) {
|
|
232134
|
-
if (!coords.normalized) {
|
|
232134
|
+
if (coords.raw) { return { realX: coords.raw.x, realY: coords.raw.y }; } if (!coords.normalized) {
|
|
232135
232135
|
if (!coords.raw) throw new Error('Invalide coordinates');
|
|
232136
232136
|
return {
|
|
232137
232137
|
realX: coords.raw.x,
|
|
@@ -232329,7 +232329,7 @@ ${picocolors.cyan(prompts_dist_d)}
|
|
|
232329
232329
|
}
|
|
232330
232330
|
}
|
|
232331
232331
|
async calculateRealCoords(coords) {
|
|
232332
|
-
if (!coords.normalized) {
|
|
232332
|
+
if (coords.raw) { return { realX: coords.raw.x, realY: coords.raw.y }; } if (!coords.normalized) {
|
|
232333
232333
|
if (!coords.raw) throw new Error('Invalide coordinates');
|
|
232334
232334
|
return {
|
|
232335
232335
|
realX: coords.raw.x,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui-tars-test/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "CLI for GUI Agent",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@clack/prompts": "^0.11.0",
|
|
40
|
-
"@ui-tars-test/agent-sdk": "^0.3.
|
|
40
|
+
"@ui-tars-test/agent-sdk": "^0.3.15",
|
|
41
41
|
"@ui-tars-test/operator-adb": "^0.3.0",
|
|
42
42
|
"@ui-tars-test/operator-browser": "^0.3.0",
|
|
43
|
-
"@ui-tars-test/operator-nutjs": "^0.3.
|
|
43
|
+
"@ui-tars-test/operator-nutjs": "^0.3.4",
|
|
44
44
|
"commander": "^14.0.0",
|
|
45
45
|
"ffmpeg-static": "^5.3.0",
|
|
46
46
|
"fluent-ffmpeg": "^2.1.3",
|