agental 0.25.1 → 0.25.2

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 -21
  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.25.1" : "dev";
7414
+ var CLI_VERSION = true ? "0.25.2" : "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}`;
@@ -13074,8 +13074,7 @@ async function summary(asJson, filter, facets) {
13074
13074
  process.stdout.write(line("total", read2.total));
13075
13075
  const running = read2.byState["running"];
13076
13076
  if (running && running.count > 0) {
13077
- const free = read2.ifStopped.freeDays === void 0 ? "" : ` for their first ${read2.ifStopped.freeDays} days`;
13078
- process.stdout.write(`Stopped, the ${running.count} running would cost ${dollarsOf(read2.ifStopped.microsPerHour)} an hour${free}, ${dollarsOf(running.microsPerHour - read2.ifStopped.microsPerHour)} less.
13077
+ process.stdout.write(`Stopped, the ${running.count} running would cost ${dollarsOf(read2.ifStopped.microsPerHour)} an hour for their first ${read2.ifStopped.freeDays} days, ${dollarsOf(running.microsPerHour - read2.ifStopped.microsPerHour)} less.
13079
13078
  `);
13080
13079
  }
13081
13080
  process.stdout.write("A day is at the rate of now. Today is the UTC day, and spent is for these sandboxes alone: the account's month is on Billing.\n");
@@ -14919,14 +14918,8 @@ function pricesForPeople(body) {
14919
14918
  section(
14920
14919
  "Sizes",
14921
14920
  [
14922
- ["", "VCPU", "MEMORY", "AN HOUR", ...stoppedByShare(body) ? ["STOPPED, AN HOUR"] : []],
14923
- ...body.plans.map((size2) => [
14924
- size2.size,
14925
- String(size2.vcpu),
14926
- `${size2.memoryMb / 1024} GiB`,
14927
- `$${size2.listPriceMicrosPerHour / 1e6}`,
14928
- ...stoppedByShare(body) ? [size2.stoppedMicrosPerHour === void 0 ? "" : `$${size2.stoppedMicrosPerHour / 1e6}`] : []
14929
- ])
14921
+ ["", "VCPU", "MEMORY", "AN HOUR"],
14922
+ ...body.plans.map((size2) => [size2.size, String(size2.vcpu), `${size2.memoryMb / 1024} GiB`, `$${size2.listPriceMicrosPerHour / 1e6}`])
14930
14923
  ],
14931
14924
  [`Charged by the second.${body.storage ? ` ${stoppedWords(body.storage)}` : ""}`]
14932
14925
  );
@@ -15007,10 +15000,9 @@ function describePrices(body) {
15007
15000
  );
15008
15001
  }
15009
15002
  }
15010
- out.push(stoppedByShare(body) ? "Sizes, an hour at list price, running and stopped" : "Sizes, an hour at list price");
15003
+ out.push("Sizes, an hour at list price");
15011
15004
  for (const size2 of body.plans) {
15012
- const stopped = stoppedByShare(body) && size2.stoppedMicrosPerHour !== void 0 ? `$${size2.stoppedMicrosPerHour / 1e6} stopped` : "";
15013
- out.push(` ${size2.size.padEnd(8)}${`${size2.vcpu} vCPU, ${size2.memoryMb / 1024} GiB`.padEnd(20)}${`$${size2.listPriceMicrosPerHour / 1e6}`.padEnd(12)}${stopped}`.trimEnd());
15005
+ out.push(` ${size2.size.padEnd(8)}${`${size2.vcpu} vCPU, ${size2.memoryMb / 1024} GiB`.padEnd(20)}$${size2.listPriceMicrosPerHour / 1e6}`);
15014
15006
  }
15015
15007
  if (body.storage) {
15016
15008
  const month = body.storage.snapshotMicrosPerHour * 730 / 1e6;
@@ -15020,14 +15012,8 @@ function describePrices(body) {
15020
15012
  return `${out.join("\n")}
15021
15013
  `;
15022
15014
  }
15023
- function stoppedByShare(body) {
15024
- return body.storage !== void 0 && body.storage.stoppedMicrosPerGbMonth === void 0;
15025
- }
15026
15015
  function stoppedWords(storage) {
15027
- if (storage.stoppedMicrosPerGbMonth === void 0) {
15028
- return `A stopped sandbox costs ${storage.stoppedPercent}% of its running price, by the second, while its disk is kept.`;
15029
- }
15030
- return `A stopped sandbox is free for ${storage.stoppedFreeDays ?? 14} days after each stop, then $${storage.stoppedMicrosPerGbMonth / 1e6} a GB a month of what it stores, by the second.`;
15016
+ return `A stopped sandbox is free for ${storage.stoppedFreeDays} days after each stop, then $${storage.stoppedMicrosPerGbMonth / 1e6} a GB a month of what it stores, by the second.`;
15031
15017
  }
15032
15018
  var BURST_DOCS = "https://agental.io/docs/usage#bursts";
15033
15019
  async function headroom(positionals, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
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",