agental 0.30.0 → 0.31.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 +8 -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.30.0" : "dev";
7414
+ var CLI_VERSION = true ? "0.31.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}`;
@@ -12984,8 +12984,8 @@ async function create(values) {
12984
12984
  const burstHeaders = maxBurstFeeHeaders(values["max-burst-fee"]);
12985
12985
  const ttlSeconds = ttlOption(values.ttl);
12986
12986
  const onTimeout = values["on-timeout"];
12987
- if (onTimeout !== void 0 && onTimeout !== "delete" && onTimeout !== "stop") {
12988
- throw new Error("--on-timeout is delete or stop: what the sandbox's time limit does when it runs out");
12987
+ if (onTimeout !== void 0 && onTimeout !== "delete" && onTimeout !== "stop" && onTimeout !== "stop-with-memory" && onTimeout !== "stop_with_memory") {
12988
+ throw new Error("--on-timeout is delete, stop or stop-with-memory: what the sandbox's time limit does when it runs out");
12989
12989
  }
12990
12990
  if (values.size !== void 0 && !isMachineSize(values.size)) {
12991
12991
  throw new Error("--size must be tiny, small, medium or large");
@@ -13012,7 +13012,7 @@ async function create(values) {
13012
13012
  ...allow ? { network: { allow } } : {},
13013
13013
  ...egressAsked ? { egress: egressAsked } : {},
13014
13014
  ...ttlSeconds === void 0 ? {} : { ttlSeconds },
13015
- ...onTimeout === void 0 ? {} : { onTimeout },
13015
+ ...onTimeout === void 0 ? {} : { onTimeout: onTimeout.replaceAll("-", "_") },
13016
13016
  ...sshKeys2 === void 0 ? {} : { sshKeys: sshKeys2 },
13017
13017
  ...given
13018
13018
  })
@@ -15561,7 +15561,7 @@ Setting up
15561
15561
  agental completion zsh|bash|fish
15562
15562
 
15563
15563
  Usage
15564
- agental create [--name <name>] [--template <template>] [--size tiny|small|medium|large] [--region <region>[,<region>...]] [--ttl <time> | --ttl default] [--on-timeout delete|stop] [--idempotency-key <key>]
15564
+ agental create [--name <name>] [--template <template>] [--size tiny|small|medium|large] [--region <region>[,<region>...]] [--ttl <time> | --ttl default] [--on-timeout delete|stop|stop-with-memory] [--idempotency-key <key>]
15565
15565
  ${operator ? "[--box <name-or-id>] " : ""}[--allow <address>[,<address>...]] [--egress box | residential:<country>[:sticky|rotating]] [--max-burst-fee <dollars>]
15566
15566
  [--ssh-key <public-key-or-file>]... [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]...
15567
15567
  agental summary [--where '<words>'] [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]... [--facets <field>[,<field>...]] [--json]
@@ -15737,7 +15737,9 @@ A sandbox runs until it is stopped, unless it has a time limit: then it is stopp
15737
15737
  run that long since its last start. create --ttl and template start --ttl set one, as 45m, 2h or
15738
15738
  1d, and --ttl default takes the deployment's, which is none unless it says otherwise. When the
15739
15739
  time limit runs out the sandbox is deleted, with its disk, unless create --on-timeout stop said to
15740
- stop it and keep its disk; agental stop always keeps the disk. auto-stop
15740
+ stop it and keep its disk, or --on-timeout stop-with-memory to keep its memory too, so its next
15741
+ start carries on where it was (after the account's first top-up: before it, refused with
15742
+ memory_needs_top_up); agental stop always keeps the disk. auto-stop
15741
15743
  says when a running sandbox is to be stopped, with --in or --at moves that stop, later or sooner,
15742
15744
  for the run under way, and with --never takes its time limit away, for this run and the next.
15743
15745
  ${operator ? operator.OPERATOR_HELP : ""}template network says what a sandbox on a template may reach outside itself, and with open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.30.0",
3
+ "version": "0.31.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",