@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm0/cli",
3
- "version": "9.104.1",
3
+ "version": "9.105.0",
4
4
  "description": "CLI application",
5
5
  "repository": {
6
6
  "type": "git",
package/zero.js CHANGED
@@ -115,7 +115,7 @@ import {
115
115
  upsertZeroOrgModelProvider,
116
116
  withErrorHandler,
117
117
  zeroAgentCustomSkillNameSchema
118
- } from "./chunk-FYV4IKTF.js";
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
- var zeroComputerUseCommand = new Command76().name("computer-use").description("Remote desktop control for cloud agents").addCommand(hostCommand).addCommand(clientCommand).addHelpText(
5720
+ clientCommand.addHelpText(
5721
5721
  "after",
5722
5722
  `
5723
5723
  Coordinate System:
5724
- All coordinate parameters use macOS logical coordinates (points), not physical
5725
- pixels. On Retina displays (scaleFactor: 2), a 2880\xD71800 physical screen has
5726
- logical dimensions of 1440\xD7900. Use the "info" command to check your screen's
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
- Start the host daemon (on macOS): zero computer-use host start
5742
- Stop the host daemon: zero computer-use host stop
5743
- Take a screenshot (from agent): zero computer-use client screenshot
5744
- Zoom into a region (from agent): zero computer-use client zoom --x 0 --y 0 --width 500 --height 500
5745
- Get screen info (from agent): zero computer-use client info
5746
- Left click at (500, 300): zero computer-use client left-click 500 300
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.104.1").addHelpText(
5788
+ ).version("9.105.0").addHelpText(
5814
5789
  "after",
5815
5790
  `
5816
5791
  Examples: