@vm0/cli 9.104.1 → 9.105.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/{chunk-FYV4IKTF.js → chunk-2SZAWYHO.js} +97 -4
- package/chunk-2SZAWYHO.js.map +1 -0
- package/index.js +44 -12
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +13 -38
- package/zero.js.map +1 -1
- package/chunk-FYV4IKTF.js.map +0 -1
package/package.json
CHANGED
package/zero.js
CHANGED
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
upsertZeroOrgModelProvider,
|
|
116
116
|
withErrorHandler,
|
|
117
117
|
zeroAgentCustomSkillNameSchema
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-2SZAWYHO.js";
|
|
119
119
|
|
|
120
120
|
// src/zero.ts
|
|
121
121
|
import { Command as Command77 } from "commander";
|
|
@@ -5717,48 +5717,23 @@ var clientCursorPositionCommand = new Command75().name("cursor-position").descri
|
|
|
5717
5717
|
// src/commands/zero/computer-use/index.ts
|
|
5718
5718
|
var hostCommand = new Command76().name("host").description("Manage computer-use host daemon").addCommand(hostStartCommand).addCommand(hostStopCommand);
|
|
5719
5719
|
var clientCommand = new Command76().name("client").description("Interact with remote computer-use host").addCommand(clientScreenshotCommand).addCommand(clientZoomCommand).addCommand(clientInfoCommand).addCommand(clientLeftClickCommand).addCommand(clientRightClickCommand).addCommand(clientMiddleClickCommand).addCommand(clientDoubleClickCommand).addCommand(clientTripleClickCommand).addCommand(clientLeftClickDragCommand).addCommand(clientLeftMouseDownCommand).addCommand(clientLeftMouseUpCommand).addCommand(clientScrollCommand).addCommand(clientReadClipboardCommand).addCommand(clientWriteClipboardCommand).addCommand(clientKeyCommand).addCommand(clientHoldKeyCommand).addCommand(clientTypeCommand).addCommand(clientOpenAppCommand).addCommand(clientMouseMoveCommand).addCommand(clientCursorPositionCommand);
|
|
5720
|
-
|
|
5720
|
+
clientCommand.addHelpText(
|
|
5721
5721
|
"after",
|
|
5722
5722
|
`
|
|
5723
5723
|
Coordinate System:
|
|
5724
|
-
All
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
logical dimensions and scale factor.
|
|
5728
|
-
|
|
5729
|
-
The "screenshot" command returns an image at logical resolution. The "zoom"
|
|
5730
|
-
command accepts a region in logical coordinates but returns an image at physical
|
|
5731
|
-
resolution (logical size \xD7 scaleFactor), providing higher detail for precise
|
|
5732
|
-
element location.
|
|
5733
|
-
|
|
5734
|
-
Recommended AI agent workflow:
|
|
5735
|
-
1. screenshot \u2014 get a screen overview at logical resolution
|
|
5736
|
-
2. zoom --x --y ... \u2014 zoom into a region of interest for pixel-level detail
|
|
5737
|
-
3. Calculate the logical coordinates of the target element
|
|
5738
|
-
4. Execute click/type operations using those logical coordinates
|
|
5724
|
+
All coordinates use macOS logical points, not physical pixels.
|
|
5725
|
+
On Retina displays, logical size = physical size / scaleFactor.
|
|
5726
|
+
Run "info" to check your screen's logical dimensions.
|
|
5739
5727
|
|
|
5740
5728
|
Examples:
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
Double click at (100, 200): zero computer-use client double-click 100 200
|
|
5748
|
-
Drag from A to B: zero computer-use client left-click-drag 100 100 500 500
|
|
5749
|
-
Press mouse button: zero computer-use client left-mouse-down 200 300
|
|
5750
|
-
Release mouse button: zero computer-use client left-mouse-up 500 500
|
|
5751
|
-
Scroll down at position: zero computer-use client scroll 500 300 down 5
|
|
5752
|
-
Read clipboard text: zero computer-use client read-clipboard
|
|
5753
|
-
Write clipboard text: zero computer-use client write-clipboard "hello"
|
|
5754
|
-
Press key combo: zero computer-use client key "cmd+c"
|
|
5755
|
-
Hold shift for 2 seconds: zero computer-use client hold-key "shift" 2000
|
|
5756
|
-
Type text: zero computer-use client type "Hello, world!"
|
|
5757
|
-
Open an application: zero computer-use client open-app Safari
|
|
5758
|
-
Open by bundle ID: zero computer-use client open-app "com.apple.Safari"
|
|
5759
|
-
Move mouse to (100, 200): zero computer-use client mouse-move 100 200
|
|
5760
|
-
Get cursor position: zero computer-use client cursor-position`
|
|
5729
|
+
zero computer-use client screenshot
|
|
5730
|
+
zero computer-use client zoom --x 0 --y 0 --width 500 --height 500
|
|
5731
|
+
zero computer-use client info
|
|
5732
|
+
zero computer-use client left-click 500 300
|
|
5733
|
+
zero computer-use client scroll 500 300 down 5
|
|
5734
|
+
zero computer-use client key "cmd+c"`
|
|
5761
5735
|
);
|
|
5736
|
+
var zeroComputerUseCommand = new Command76().name("computer-use").description("Remote desktop control for cloud agents").addCommand(hostCommand).addCommand(clientCommand);
|
|
5762
5737
|
|
|
5763
5738
|
// src/zero.ts
|
|
5764
5739
|
var COMMAND_CAPABILITY_MAP = {
|
|
@@ -5810,7 +5785,7 @@ function registerZeroCommands(prog, commands) {
|
|
|
5810
5785
|
var program = new Command77();
|
|
5811
5786
|
program.name("zero").description(
|
|
5812
5787
|
"Zero CLI \u2014 interact with the zero platform from inside the sandbox"
|
|
5813
|
-
).version("9.
|
|
5788
|
+
).version("9.105.0").addHelpText(
|
|
5814
5789
|
"after",
|
|
5815
5790
|
`
|
|
5816
5791
|
Examples:
|