agental 0.43.1 → 0.43.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -4
  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.43.1" : "dev";
7414
+ var CLI_VERSION = true ? "0.43.3" : "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}`;
@@ -7996,8 +7996,8 @@ function reachOf(key2, full) {
7996
7996
  if (key2.sandboxIds.length === 0 && key2.templateIds.length === 0) {
7997
7997
  return key2.seesAll ? "every account" : "all of the account";
7998
7998
  }
7999
- const sandboxes2 = key2.sandboxIds;
8000
7999
  const templates2 = key2.templateIds;
8000
+ const sandboxes2 = templates2.length > 0 ? [] : key2.sandboxIds;
8001
8001
  if (!full) {
8002
8002
  const one = (ids, noun) => ids.length === 1 ? `${noun} ${ids[0]}` : `${ids.length} ${noun}s`;
8003
8003
  return [...sandboxes2.length > 0 ? [one(sandboxes2, "sandbox")] : [], ...templates2.length > 0 ? [one(templates2, "template")] : []].join(", ");
@@ -12590,7 +12590,6 @@ var SPOT_PRICE_MICROS_PER_HOUR = {
12590
12590
  };
12591
12591
  var SPOT_ON_RECLAIM = ["delete", "stop"];
12592
12592
  var SPOT_ON_RECLAIM_READ = [...SPOT_ON_RECLAIM, "upgrade"];
12593
- var SPOT_RUN_LIMIT_SECONDS = 24 * 60 * 60;
12594
12593
  var HOURS_PER_MONTH = 730;
12595
12594
  var STOPPED_MICROS_PER_GB_MONTH = 5e4;
12596
12595
  var BYTES_PER_GB = 1e9;
@@ -15101,7 +15100,7 @@ async function autoStop(id, inText, at4, never, asJson) {
15101
15100
  );
15102
15101
  return;
15103
15102
  }
15104
- const by = body.setBy === "spot_limit" ? "a spot sandbox runs at most 24 hours at a time; agental spot <sandbox-id> off runs it on at the list price" : body.setBy === "sandbox" ? "as the sandbox itself set" : body.setBy === "account" ? "as moved from its account" : `its last start and ${body.ttlSeconds === null ? "the deployment's time limit" : timeInWords(body.ttlSeconds)}`;
15103
+ const by = body.setBy === "sandbox" ? "as the sandbox itself set" : body.setBy === "account" ? "as moved from its account" : `its last start and ${body.ttlSeconds === null ? "the deployment's time limit" : timeInWords(body.ttlSeconds)}`;
15105
15104
  process.stdout.write(`${body.sandboxId} stops at ${body.autoStopAt}, in ${timeInWords(body.secondsLeft ?? 0)}: ${by}.
15106
15105
  `);
15107
15106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.43.1",
3
+ "version": "0.43.3",
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",