agental 0.24.0 → 0.25.1

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 +80 -49
  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.24.0" : "dev";
7414
+ var CLI_VERSION = true ? "0.25.1" : "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}`;
@@ -8946,7 +8946,7 @@ async function saveCard(base, key2, term, message) {
8946
8946
  `);
8947
8947
  return false;
8948
8948
  }
8949
- if (!await yes(` Save a card in your browser now? Nothing is charged, and the free plan gives $10 of credit. [Y/n] `)) {
8949
+ if (!await yes(` Save a card in your browser now? Nothing is charged, and each month's first $5 of use is free. [Y/n] `)) {
8950
8950
  term.say(` Save one when you like: ${page}
8951
8951
  `);
8952
8952
  return false;
@@ -12103,25 +12103,31 @@ var MACHINE_SIZES = {
12103
12103
  large: { vcpu: 8, memoryMb: 16384, diskGb: 160 }
12104
12104
  };
12105
12105
  var MACHINE_SIZE_NAMES = ["tiny", "small", "medium", "large"];
12106
- var LIST_PRICE_MICROS_PER_HOUR = {
12107
- tiny: 13500,
12108
- small: 27e3,
12109
- medium: 54e3,
12110
- large: 108e3
12111
- };
12112
- var STOPPED_PRICE_PERCENT = 5;
12113
- var STOPPED_WITH_MEMORY_PRICE_PERCENT = 10;
12114
- var STOPPED_MICROS_PER_HOUR = {
12115
- tiny: Math.round(LIST_PRICE_MICROS_PER_HOUR.tiny * STOPPED_PRICE_PERCENT / 100),
12116
- small: Math.round(LIST_PRICE_MICROS_PER_HOUR.small * STOPPED_PRICE_PERCENT / 100),
12117
- medium: Math.round(LIST_PRICE_MICROS_PER_HOUR.medium * STOPPED_PRICE_PERCENT / 100),
12118
- large: Math.round(LIST_PRICE_MICROS_PER_HOUR.large * STOPPED_PRICE_PERCENT / 100)
12106
+ var HOURS_PER_MONTH = 730;
12107
+ var STOPPED_MICROS_PER_GB_MONTH = 5e4;
12108
+ var BYTES_PER_GB = 1e9;
12109
+ var NEVER_PAID_MAX_STORED_BYTES = 20 * BYTES_PER_GB;
12110
+ function stoppedMicrosPerHour(storedBytes) {
12111
+ if (storedBytes <= 0) {
12112
+ return 0;
12113
+ }
12114
+ return Math.max(1, Math.round(storedBytes * STOPPED_MICROS_PER_GB_MONTH / (BYTES_PER_GB * HOURS_PER_MONTH)));
12115
+ }
12116
+ function wholeStoredBytes(size2, withMemory) {
12117
+ const resources = MACHINE_SIZES[size2];
12118
+ return resources.diskGb * 2 ** 30 + (withMemory ? resources.memoryMb * 2 ** 20 : 0);
12119
+ }
12120
+ var STOPPED_MAX_MICROS_PER_HOUR = {
12121
+ tiny: stoppedMicrosPerHour(wholeStoredBytes("tiny", false)),
12122
+ small: stoppedMicrosPerHour(wholeStoredBytes("small", false)),
12123
+ medium: stoppedMicrosPerHour(wholeStoredBytes("medium", false)),
12124
+ large: stoppedMicrosPerHour(wholeStoredBytes("large", false))
12119
12125
  };
12120
- var STOPPED_WITH_MEMORY_MICROS_PER_HOUR = {
12121
- tiny: Math.round(LIST_PRICE_MICROS_PER_HOUR.tiny * STOPPED_WITH_MEMORY_PRICE_PERCENT / 100),
12122
- small: Math.round(LIST_PRICE_MICROS_PER_HOUR.small * STOPPED_WITH_MEMORY_PRICE_PERCENT / 100),
12123
- medium: Math.round(LIST_PRICE_MICROS_PER_HOUR.medium * STOPPED_WITH_MEMORY_PRICE_PERCENT / 100),
12124
- large: Math.round(LIST_PRICE_MICROS_PER_HOUR.large * STOPPED_WITH_MEMORY_PRICE_PERCENT / 100)
12126
+ var STOPPED_WITH_MEMORY_MAX_MICROS_PER_HOUR = {
12127
+ tiny: stoppedMicrosPerHour(wholeStoredBytes("tiny", true)),
12128
+ small: stoppedMicrosPerHour(wholeStoredBytes("small", true)),
12129
+ medium: stoppedMicrosPerHour(wholeStoredBytes("medium", true)),
12130
+ large: stoppedMicrosPerHour(wholeStoredBytes("large", true))
12125
12131
  };
12126
12132
  var SANDBOX_STATUSES = ["creating", "running", "stopped", "error", "deleted"];
12127
12133
  var SHOWN_STATUSES = [...SANDBOX_STATUSES, "restoring", "migrating"];
@@ -12177,12 +12183,6 @@ var PAID_PLANS = [
12177
12183
  plan("plan2000", 2e3, MACHINE_SIZE_NAMES, 2e3, 400)
12178
12184
  ];
12179
12185
  var PLANS = [FREE_PLAN, ...PAID_PLANS];
12180
- var FREE = {
12181
- /** The credit given once, in millionths of a US dollar. It does not expire. */
12182
- creditMicros: 10 * MICROS_PER_DOLLAR,
12183
- /** Small sandboxes an account on the free plan runs and starts at once before it has paid for anything. */
12184
- unpaidUnits: 2
12185
- };
12186
12186
  var PLAN_NAMES = { free: "Free", plan100: "Fleet", plan500: "Platform", plan2000: "Scale" };
12187
12187
  var TOP_UP_DOLLARS = { min: 15, max: 1e5 };
12188
12188
  var TOP_UP_BONUS = { fromDollars: 200, fromPercent: 2, toDollars: 1e4, toPercent: 25 };
@@ -12534,6 +12534,8 @@ async function main() {
12534
12534
  // The secret a sender makes for itself, as Stripe does for each endpoint, set on a trigger.
12535
12535
  "signing-secret": { type: "string" },
12536
12536
  ttl: { type: "string" },
12537
+ // agental create: what its time limit does when it runs out, delete or stop.
12538
+ "on-timeout": { type: "string" },
12537
12539
  "max-burst-fee": { type: "string" },
12538
12540
  in: { type: "string" },
12539
12541
  never: { type: "boolean", default: false },
@@ -12822,6 +12824,10 @@ async function create(values) {
12822
12824
  const given = labelsGiven(values);
12823
12825
  const burstHeaders = maxBurstFeeHeaders(values["max-burst-fee"]);
12824
12826
  const ttlSeconds = ttlOption(values.ttl);
12827
+ const onTimeout = values["on-timeout"];
12828
+ if (onTimeout !== void 0 && onTimeout !== "delete" && onTimeout !== "stop") {
12829
+ throw new Error("--on-timeout is delete or stop: what the sandbox's time limit does when it runs out");
12830
+ }
12825
12831
  if (values.size !== void 0 && !isMachineSize(values.size)) {
12826
12832
  throw new Error("--size must be tiny, small, medium or large");
12827
12833
  }
@@ -12847,6 +12853,7 @@ async function create(values) {
12847
12853
  ...allow ? { network: { allow } } : {},
12848
12854
  ...egressAsked ? { egress: egressAsked } : {},
12849
12855
  ...ttlSeconds === void 0 ? {} : { ttlSeconds },
12856
+ ...onTimeout === void 0 ? {} : { onTimeout },
12850
12857
  ...sshKeys2 === void 0 ? {} : { sshKeys: sshKeys2 },
12851
12858
  ...given
12852
12859
  })
@@ -13067,7 +13074,8 @@ async function summary(asJson, filter, facets) {
13067
13074
  process.stdout.write(line("total", read2.total));
13068
13075
  const running = read2.byState["running"];
13069
13076
  if (running && running.count > 0) {
13070
- process.stdout.write(`Stopped, the ${running.count} running would cost ${dollarsOf(read2.ifStopped.microsPerHour)} an hour, ${dollarsOf(running.microsPerHour - read2.ifStopped.microsPerHour)} less.
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.
13071
13079
  `);
13072
13080
  }
13073
13081
  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");
@@ -14633,7 +14641,7 @@ async function billing(positionals, asJson, limit) {
14633
14641
  body,
14634
14642
  () => body.url ? `Save a card for the free plan at:
14635
14643
  ${body.url}
14636
- Nothing is charged. Once it is saved, the account is given its credit, once, and may run sandboxes: agental billing shows it within a minute.
14644
+ Nothing is charged. Once it is saved, the account has its monthly free allowance and may run sandboxes: agental billing shows it within a minute.
14637
14645
  ` : "Nothing to save.\n"
14638
14646
  );
14639
14647
  return;
@@ -14674,6 +14682,9 @@ Nothing is charged until it is paid. agental billing shows it within a minute of
14674
14682
  throw new Error(usage);
14675
14683
  }
14676
14684
  }
14685
+ function wholeOrCents(micros) {
14686
+ return micros % 1e6 === 0 ? wholeMoney(micros) : money(micros);
14687
+ }
14677
14688
  function money(micros) {
14678
14689
  return `$${(micros / 1e6).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
14679
14690
  }
@@ -14687,9 +14698,9 @@ function describeBilling(body, card = null) {
14687
14698
  const lines = [];
14688
14699
  const free = body.free ?? null;
14689
14700
  if (free && body.plan) {
14690
- lines.push(["Plan", "free: nothing a month. What runs is paid from your credits, at list price."]);
14701
+ lines.push(["Plan", "free: nothing a month. Each month's use is free up to the allowance, then paid from your credits, at list price."]);
14691
14702
  if (!free.cardSaved) {
14692
- lines.push(["Card", "none saved. Save one, charged nothing, to run sandboxes and be given the free plan's credit: agental billing card save."]);
14703
+ lines.push(["Card", "none saved. Save one, charged nothing, to run sandboxes and have the free plan's monthly allowance: agental billing card save."]);
14693
14704
  } else if (card) {
14694
14705
  lines.push(["Card", describeCard(card)]);
14695
14706
  }
@@ -14697,9 +14708,16 @@ function describeBilling(body, card = null) {
14697
14708
  lines.push(["At once", `${free.unpaidUnits} small sandboxes until you buy a top-up, then ${(body.plan.runningUnits ?? 20).toLocaleString("en-US")}. A tiny counts half.`]);
14698
14709
  }
14699
14710
  lines.push(["Used", `${money(body.usedMicros)} this month at list price${usedParts(body)}`]);
14700
- lines.push(["Credits left", `${money(body.topUpMicros)}, the free credit and top-ups. They do not expire.`]);
14711
+ const allowance = free.allowanceMicros ?? 0;
14712
+ if (free.cardSaved) {
14713
+ lines.push([
14714
+ "Allowance",
14715
+ allowance > 0 ? `${money(allowance)}, ${money(Math.max(0, allowance - (free.allowanceUsedMicros ?? 0)))} left. It starts again on the 1st.` : "none: the card you saved had the free allowance on another account."
14716
+ ]);
14717
+ }
14718
+ lines.push(["Credits left", `${money(body.topUpMicros)} of top-ups, used after the free allowance. They do not expire.`]);
14701
14719
  if ((body.carriedMicros ?? 0) > 0) {
14702
- lines.push(["Owed", `${money(body.carriedMicros ?? 0)} an earlier month ran past your credits, taken from the next top-up first`]);
14720
+ lines.push(["Owed", `${money(body.carriedMicros ?? 0)} run past the free allowance and your credits, taken from the next top-up first`]);
14703
14721
  }
14704
14722
  if (body.autoReload) {
14705
14723
  lines.push(["Auto-reload", describeAutoReload(body.autoReload)]);
@@ -14732,13 +14750,13 @@ function describeBilling(body, card = null) {
14732
14750
  if (!body.canRun && body.reason) {
14733
14751
  lines.push([
14734
14752
  "Running",
14735
- body.reason === "out_of_credit" ? `no: ${free ? "your credits are" : "the plan's credits and the top-ups are"} used. agental billing top-up <dollars> buys more.` : body.reason === "billing_required" ? "no: save a card first, charged nothing, with agental billing card save." : `no: ${body.reason}`
14753
+ body.reason === "out_of_credit" ? `no: ${free ? "this month's free allowance and your credits are" : "the plan's credits and the top-ups are"} used. agental billing top-up <dollars> buys more.` : body.reason === "billing_required" ? "no: save a card first, charged nothing, with agental billing card save." : `no: ${body.reason}`
14736
14754
  ]);
14737
14755
  }
14738
14756
  if (body.lapse) {
14739
14757
  lines.push([
14740
14758
  "Deleted on",
14741
- body.lapse.reason === "unpaid" ? `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as the account owes for what it used past its plan. agental billing top-up <dollars> buys enough to pay it and keep them.` : body.lapse.reason === "out_of_credit" ? `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as your credits are used. agental billing top-up <dollars> keeps them.` : `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as the account has no card saved. agental billing card save saves one, charged nothing, to keep them.`
14759
+ body.lapse.reason === "unpaid" ? `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as the account owes for what it used past its plan. agental billing top-up <dollars> buys enough to pay it and keep them.` : body.lapse.reason === "out_of_credit" ? `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as the free allowance and your credits are used. agental billing top-up <dollars> keeps them.` : `${dayOf(body.lapse.deletesAt)}: your sandboxes and snapshots, as the account has no card saved. agental billing card save saves one, charged nothing, to keep them.`
14742
14760
  ]);
14743
14761
  }
14744
14762
  if (body.testMode) {
@@ -14886,7 +14904,7 @@ function pricesForPeople(body) {
14886
14904
  ...body.tiers.map((tier) => [
14887
14905
  (tier.id ? PLAN_NAMES[tier.id] : void 0) ?? (tier.dollarsPerMonth === 0 ? "Free" : `$${tier.dollarsPerMonth.toLocaleString("en-US")}`),
14888
14906
  wholeMoney(tier.dollarsPerMonth * 1e6),
14889
- tier.dollarsPerMonth === 0 ? body.free ? `${wholeMoney(body.free.creditMicros)}, once` : "none" : wholeMoney(tier.includedMicros),
14907
+ tier.dollarsPerMonth === 0 ? body.free ? `${wholeOrCents(body.free.allowanceMicros)} free` : "none" : wholeMoney(tier.includedMicros),
14890
14908
  count(tier.runningUnits ?? tier.sandboxesAtOnce),
14891
14909
  count(tier.freeBurstUnits),
14892
14910
  tier.sizes === void 0 ? "" : tier.sizes.length === body.plans.length ? "every size" : tier.sizes.join(", ")
@@ -14901,16 +14919,16 @@ function pricesForPeople(body) {
14901
14919
  section(
14902
14920
  "Sizes",
14903
14921
  [
14904
- ["", "VCPU", "MEMORY", "AN HOUR", ...body.storage ? ["STOPPED, AN HOUR"] : []],
14922
+ ["", "VCPU", "MEMORY", "AN HOUR", ...stoppedByShare(body) ? ["STOPPED, AN HOUR"] : []],
14905
14923
  ...body.plans.map((size2) => [
14906
14924
  size2.size,
14907
14925
  String(size2.vcpu),
14908
14926
  `${size2.memoryMb / 1024} GiB`,
14909
14927
  `$${size2.listPriceMicrosPerHour / 1e6}`,
14910
- ...body.storage ? [size2.stoppedMicrosPerHour === void 0 ? "" : `$${size2.stoppedMicrosPerHour / 1e6}`] : []
14928
+ ...stoppedByShare(body) ? [size2.stoppedMicrosPerHour === void 0 ? "" : `$${size2.stoppedMicrosPerHour / 1e6}`] : []
14911
14929
  ])
14912
14930
  ],
14913
- [`Charged by the second.${body.storage ? ` Stopped, a sandbox costs ${body.storage.stoppedPercent}% while its disk is kept.` : ""}`]
14931
+ [`Charged by the second.${body.storage ? ` ${stoppedWords(body.storage)}` : ""}`]
14914
14932
  );
14915
14933
  if (body.topUps?.length) {
14916
14934
  const range = body.topUpRange;
@@ -14952,12 +14970,12 @@ function describePrices(body) {
14952
14970
  const sizes = tier.sizes === void 0 ? "" : tier.sizes.length === body.plans.length ? "every size" : tier.sizes.join(", ");
14953
14971
  const speed = tier.runningUnits !== void 0 && tier.freeBurstUnits !== void 0 ? `${tier.runningUnits.toLocaleString("en-US")} running, ${tier.freeBurstUnits.toLocaleString("en-US")} start free` : tier.burst ? `${(tier.burst.perQuarterMb / 1024).toLocaleString("en-US")} GiB per 15 minutes` : typeof tier.sandboxesAtOnce === "number" ? `${tier.sandboxesAtOnce.toLocaleString("en-US")} sandboxes at once` : "";
14954
14972
  const price = tier.dollarsPerMonth === 0 ? "Free" : `$${tier.dollarsPerMonth.toLocaleString("en-US")}`;
14955
- const included = tier.dollarsPerMonth === 0 ? "pay as you go" : `${wholeMoney(tier.includedMicros)} of credits`;
14973
+ const included = tier.dollarsPerMonth === 0 ? body.free ? `${wholeOrCents(body.free.allowanceMicros)} free, then as you go` : "pay as you go" : `${wholeMoney(tier.includedMicros)} of credits`;
14956
14974
  out.push(` ${price.padEnd(8)}${included.padEnd(28)}${speed.padEnd(34)}${sizes}`.trimEnd());
14957
14975
  }
14958
14976
  if (body.free) {
14959
14977
  out.push(
14960
- ` Free needs a card saved, charged nothing, and gives ${wholeMoney(body.free.creditMicros)} of credit once. It runs ${body.free.unpaidUnits} small sandboxes at once until you buy a top-up.`
14978
+ ` Free needs a card saved, charged nothing. Each month's first ${wholeOrCents(body.free.allowanceMicros)} of use is free: 185 hours of a small sandbox, 370 of a tiny one, or 11,100 CI minutes on small. It runs ${body.free.unpaidUnits} small sandboxes at once until you buy a top-up.`
14961
14979
  );
14962
14980
  }
14963
14981
  if (body.tiers.some((tier) => tier.runningUnits !== void 0)) {
@@ -14989,19 +15007,28 @@ function describePrices(body) {
14989
15007
  );
14990
15008
  }
14991
15009
  }
14992
- out.push(body.storage ? "Sizes, an hour at list price, running and stopped" : "Sizes, an hour at list price");
15010
+ out.push(stoppedByShare(body) ? "Sizes, an hour at list price, running and stopped" : "Sizes, an hour at list price");
14993
15011
  for (const size2 of body.plans) {
14994
- const stopped = body.storage && size2.stoppedMicrosPerHour !== void 0 ? `$${size2.stoppedMicrosPerHour / 1e6} stopped` : "";
15012
+ const stopped = stoppedByShare(body) && size2.stoppedMicrosPerHour !== void 0 ? `$${size2.stoppedMicrosPerHour / 1e6} stopped` : "";
14995
15013
  out.push(` ${size2.size.padEnd(8)}${`${size2.vcpu} vCPU, ${size2.memoryMb / 1024} GiB`.padEnd(20)}${`$${size2.listPriceMicrosPerHour / 1e6}`.padEnd(12)}${stopped}`.trimEnd());
14996
15014
  }
14997
15015
  if (body.storage) {
14998
15016
  const month = body.storage.snapshotMicrosPerHour * 730 / 1e6;
14999
- out.push(`A stopped sandbox costs ${body.storage.stoppedPercent}% of its running price, by the second, while its disk is kept.`);
15017
+ out.push(stoppedWords(body.storage));
15000
15018
  out.push(`Snapshots: the ${body.storage.freeSnapshots} oldest are free, and each one past them is $${month.toFixed(2)} a month, by the second.`);
15001
15019
  }
15002
15020
  return `${out.join("\n")}
15003
15021
  `;
15004
15022
  }
15023
+ function stoppedByShare(body) {
15024
+ return body.storage !== void 0 && body.storage.stoppedMicrosPerGbMonth === void 0;
15025
+ }
15026
+ 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.`;
15031
+ }
15005
15032
  var BURST_DOCS = "https://agental.io/docs/usage#bursts";
15006
15033
  async function headroom(positionals, options) {
15007
15034
  if (positionals[0] === "budget") {
@@ -15345,7 +15372,7 @@ Setting up
15345
15372
  agental completion zsh|bash|fish
15346
15373
 
15347
15374
  Usage
15348
- agental create --name <name> [--template <template>] [--size tiny|small|medium|large] [--region <region>[,<region>...]] [--ttl <time> | --ttl default] [--idempotency-key <key>]
15375
+ 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>]
15349
15376
  ${operator ? "[--box <name-or-id>] " : ""}[--allow <address>[,<address>...]] [--egress box | residential:<country>[:sticky|rotating]] [--max-burst-fee <dollars>]
15350
15377
  [--ssh-key <public-key-or-file>]... [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]...
15351
15378
  agental summary [--where '<words>'] [--tag <tag>[,<tag>...]]... [--meta <key>=<value>]... [--facets <field>[,<field>...]] [--json]
@@ -15499,7 +15526,8 @@ bash) in ~/.bashrc, or agental completion fish | source in ~/.config/fish/config
15499
15526
  The key is kept in ~/.config/agental/credentials.json, readable by you alone. logout deletes the
15500
15527
  key from your account and that file. whoami says who the command is signed in as, and with which
15501
15528
  key. AGENTAL_API_KEY, when it is set, is used in place of what is kept.
15502
- Stop keeps the sandbox filesystem, and a stopped sandbox costs 5% of its running price. Processes do not survive a stop.
15529
+ Stop keeps the sandbox filesystem. A stopped sandbox is free for 14 days, then $0.05 a GB a month of
15530
+ what it stores, until it is started or deleted. Processes do not survive a stop.
15503
15531
  resize gives a sandbox a larger size, with more vCPUs, memory and disk, and its files in place; a
15504
15532
  smaller one is refused, as its disk is not made smaller. A stopped sandbox takes it at once, and its
15505
15533
  next start boots it at it. A running one keeps running, and paying, as its size until it is
@@ -15513,7 +15541,9 @@ Start of a sandbox that was archived is accepted and finished afterwards: list s
15513
15541
  restoring, and as running when it runs.
15514
15542
  A sandbox runs until it is stopped, unless it has a time limit: then it is stopped once it has
15515
15543
  run that long since its last start. create --ttl and template start --ttl set one, as 45m, 2h or
15516
- 1d, and --ttl default takes the deployment's, which is none unless it says otherwise. auto-stop
15544
+ 1d, and --ttl default takes the deployment's, which is none unless it says otherwise. When the
15545
+ time limit runs out the sandbox is deleted, with its disk, unless create --on-timeout stop said to
15546
+ stop it and keep its disk; agental stop always keeps the disk. auto-stop
15517
15547
  says when a running sandbox is to be stopped, with --in or --at moves that stop, later or sooner,
15518
15548
  for the run under way, and with --never takes its time limit away, for this run and the next.
15519
15549
  ${operator ? operator.OPERATOR_HELP : ""}template network says what a sandbox on a template may reach outside itself, and with open,
@@ -15702,11 +15732,12 @@ after it and do not expire, and the card it pays with. invoices lists the accoun
15702
15732
  newest first, each with its day, number, state, total and what it was for, and where to pay
15703
15733
  one that is not paid yet; --limit lists that many of the newest, and --json gives each one's
15704
15734
  page and PDF to the account's owner. details says who the invoices are made out to: the email
15705
- they go to, the name, address and tax ids on them, to the account's owner alone. The free plan costs nothing a month and pays for what runs from
15706
- credits alone; it makes tiny and small sandboxes. prices lists the plans with the sizes each
15735
+ they go to, the name, address and tax ids on them, to the account's owner alone. The free plan costs nothing a month and has each month's
15736
+ first $5 of use free, 185 small hours or 11,100 CI minutes, and pays for the rest from
15737
+ credits; it makes tiny and small sandboxes. prices lists the plans with the sizes each
15707
15738
  makes, the top-ups with their bonus and the hourly price of each size. card names the card the account
15708
15739
  pays with, and card save prints the address of a page to save one for the free plan: nothing is charged, and once it is saved the account
15709
- is given $10 of credit, once. Until it buys a top-up it runs 2 small sandboxes at once, then 20.
15740
+ has the monthly allowance, once a card. Until it buys a top-up it runs 2 small sandboxes at once, then 20.
15710
15741
  top-up <dollars> starts buying credits for
15711
15742
  any whole number of dollars from 15 to 100,000, and prints the address of the page to pay on.
15712
15743
  From $200 a top-up adds a bonus, 2% there and growing to 25% at $10,000: $500 adds $537.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agental",
3
- "version": "0.24.0",
3
+ "version": "0.25.1",
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",