ucu-mcp 0.1.1 → 0.1.3
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/bin/ucu-mcp.js
CHANGED
|
File without changes
|
|
@@ -495,11 +495,9 @@ export class MacOSPlatform {
|
|
|
495
495
|
const out = execFileSync("osascript", [
|
|
496
496
|
"-l", "JavaScript",
|
|
497
497
|
"-e",
|
|
498
|
-
`ObjC.import('
|
|
499
|
-
var
|
|
500
|
-
|
|
501
|
-
$.CFRelease(event);
|
|
502
|
-
JSON.stringify({x:Math.round(loc.x),y:Math.round(loc.y)})`,
|
|
498
|
+
`ObjC.import('AppKit');
|
|
499
|
+
var pt = $.NSEvent.mouseLocation;
|
|
500
|
+
JSON.stringify({x:Math.round(pt.x),y:Math.round($.NSScreen.mainScreen.frame.size.height - pt.y)});`,
|
|
503
501
|
], { encoding: "utf-8", timeout: 5000 }).trim();
|
|
504
502
|
return JSON.parse(out);
|
|
505
503
|
}
|