agental 0.46.0 → 0.47.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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7411,7 +7411,7 @@ import { parseArgs } from "node:util";
7411
7411
 
7412
7412
  // ../src/cli-build.ts
7413
7413
  var PUBLISHED = true;
7414
- var CLI_VERSION = true ? "0.46.0" : "dev";
7414
+ var CLI_VERSION = true ? "0.47.0" : "dev";
7415
7415
  var DEFAULT_API_URL = true ? "https://agental.io" : "http://127.0.0.1:8741";
7416
7416
  var PACKAGE_NAME = "agental";
7417
7417
  var USER_AGENT = `agental-cli/${CLI_VERSION}`;
@@ -15499,8 +15499,8 @@ async function screenshot(id, file, options) {
15499
15499
  query.set("height", String(region[3]));
15500
15500
  }
15501
15501
  if (options.scale !== void 0) {
15502
- if (!/^(0(\.\d+)?|1(\.0+)?)$/.test(options.scale) || Number(options.scale) < 0.1) {
15503
- throw new Error("--scale is how much smaller the picture is made, from 0.1 to 1: 0.5 is half as wide and half as high");
15502
+ if (!/^(0(\.\d+)?|1(\.0+)?|2(\.0+)?)$/.test(options.scale) || Number(options.scale) < 0.1) {
15503
+ throw new Error("--scale is how large the picture is made, from 0.1 to 1, or 2 for every pixel of a desktop drawn at 2x: 0.5 is half as wide and half as high");
15504
15504
  }
15505
15505
  query.set("scale", options.scale);
15506
15506
  }
@@ -17696,7 +17696,7 @@ ${FILES_USAGE.map((line) => ` ${line}`).join("\n")}
17696
17696
  [--reply-to <message-id>] [--idempotency-key <key>]
17697
17697
  agental email account [--json]
17698
17698
  agental desktop <sandbox-id> [--screen <width>x<height>] [--off] [--status]
17699
- agental desktop <sandbox-id> --screenshot <file> [--crop <x,y,width,height>] [--scale <0.1-1>]
17699
+ agental desktop <sandbox-id> --screenshot <file> [--crop <x,y,width,height>] [--scale <0.1-2>]
17700
17700
  [--quality <1-100>] [--no-cursor]
17701
17701
  agental desktop <sandbox-id> --click <x,y> | --move <x,y> | --drag <x,y,x,y>
17702
17702
  | --scroll <x,y,notches> | --type <text> | --key <keys>
@@ -18070,8 +18070,9 @@ it off, after which the url leads nowhere, and --status only reads it. On a desk
18070
18070
  --type and --key use its pointer and keyboard, one for each run: --click 640,400,right,2 is a
18071
18071
  double click of the right button, --scroll 640,400,-3 turns the wheel up three notches, and
18072
18072
  --key ctrl+l presses keys named as xdotool names them. The picture is a JPEG when the file is
18073
- named .jpg, of a part of the screen with --crop, smaller with --scale, and without the pointer
18074
- with --no-cursor: each makes it cheaper for a model to read. --clipboard prints the text on the
18073
+ named .jpg, of a part of the screen with --crop, smaller with --scale (2 is every pixel of a
18074
+ desktop drawn at 2x), and without the pointer with --no-cursor: each makes it cheaper for a
18075
+ model to read. --clipboard prints the text on the
18075
18076
  desktop's clipboard, and --set-clipboard puts text there, read from standard input with -, for
18076
18077
  --key ctrl+v to paste at once what --type would type a key at a time. --tree prints what is on
18077
18078
  the screen as its programs tell it: each window, then its buttons, fields and menus, each with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "The agental command: Linux sandboxes for your agents, from the terminal. npx agental@latest signs you in and installs the agent skills.",
5
5
  "license": "MIT",
6
6
  "author": "VERTIXER LTD",