@tonbo/cli 0.27.0 → 0.29.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/bin/tonbo.js +8 -12
  2. package/package.json +1 -1
package/dist/bin/tonbo.js CHANGED
@@ -2028,10 +2028,6 @@ var cliSessionContract = {
2028
2028
  },
2029
2029
  "idleDays": 30
2030
2030
  };
2031
- var machineIdleActions = [
2032
- "suspend",
2033
- "release"
2034
- ];
2035
2031
  var machinePortAccess = [
2036
2032
  "private",
2037
2033
  "public"
@@ -5690,7 +5686,13 @@ var MACHINE_COLUMNS = {
5690
5686
  network_rx_bytes: ["NET IN", (value) => bytes(value)],
5691
5687
  network_tx_bytes: ["NET OUT", (value) => bytes(value)],
5692
5688
  internet_rx_bytes: ["INTERNET IN", (value) => bytes(value)],
5693
- internet_tx_bytes: ["INTERNET OUT", (value) => bytes(value)]
5689
+ internet_tx_bytes: ["INTERNET OUT", (value) => bytes(value)],
5690
+ volume_throttled_requests: ["VOLUME THROTTLED", String],
5691
+ disk_stalled_seconds: ["DISK STALLED", (value) => `${value} s`],
5692
+ disk_read_bytes: ["DISK READ", (value) => bytes(value)],
5693
+ disk_write_bytes: ["DISK WRITTEN", (value) => bytes(value)],
5694
+ disk_read_ops: ["DISK READ OPS", String],
5695
+ disk_write_ops: ["DISK WRITE OPS", String]
5694
5696
  };
5695
5697
  function machineMetricsTable(granularity, points) {
5696
5698
  const series = Object.keys(MACHINE_COLUMNS).filter(
@@ -6749,7 +6751,6 @@ async function machineCreateCommand(deps, name, command, options = {}) {
6749
6751
  env: Object.keys(env).length ? env : void 0,
6750
6752
  ...Object.keys(secrets).length ? { secrets } : {},
6751
6753
  sleep_after_seconds: options.sleepAfter,
6752
- idle_action: options.idleAction,
6753
6754
  stop_grace_seconds: options.stopGrace,
6754
6755
  ...bound ? { volumes: [bound.binding] } : {},
6755
6756
  delete_after_seconds: deleteAfterSeconds(options.deleteAfter),
@@ -6917,7 +6918,6 @@ async function machineUpdateCommand(deps, name, command, options = {}) {
6917
6918
  shape: options.shape,
6918
6919
  command: options.imageCommand ? null : command.length ? command : void 0,
6919
6920
  sleep_after_seconds: options.sleepAfter,
6920
- idle_action: options.idleAction,
6921
6921
  stop_grace_seconds: options.stopGrace,
6922
6922
  delete_after_seconds: deleteAfterSeconds(options.deleteAfter)
6923
6923
  };
@@ -7881,7 +7881,7 @@ var COMMAND_HELP = {
7881
7881
  },
7882
7882
  "tonbo machine metrics": {
7883
7883
  about: [
7884
- "Prints the Machine's metrics, one row per UTC hour or day: how long it was awake, its wakes and refused wakes and how long they took (the median and the longest), its average CPU (in cores) and memory while awake, the bytes on its network interface, Tonbo's traffic included, and the bytes it exchanged with the internet. A dash is a step it was never awake in; the current step is still growing.",
7884
+ "Prints the Machine's metrics, one row per UTC hour or day: how long it was awake, its wakes and refused wakes and how long they took (the median and the longest), its average CPU (in cores) and memory while awake, the bytes on its network interface, Tonbo's traffic included, the bytes it exchanged with the internet, and its disks: the Volume drive's requests held back at the shape's disk limit, the time its own disks stalled on I/O, and their bytes and operations. Above zero, either of the first two means the Machine is hitting its shape's disk limit. A dash is a step it was never awake in, or for the disks one with no reading; the current step is still growing.",
7885
7885
  "Give `--window`, or `--from` and `--to` with `--granularity` (at most 32 days hourly, 92 days daily). `--series` prints only the series it names. It carries no money: `tonbo usage show` says what it cost."
7886
7886
  ],
7887
7887
  examples: [
@@ -9408,10 +9408,6 @@ function machineSpecOptions(command, update) {
9408
9408
  "--sleep-after <seconds>",
9409
9409
  "how long the Machine stays awake without a connection",
9410
9410
  parseWhole
9411
- ).addOption(
9412
- new Option("--idle-action <action>", "what sleeping does to the Machine").choices(
9413
- machineIdleActions
9414
- )
9415
9411
  ).option(
9416
9412
  "--stop-grace <seconds>",
9417
9413
  "the seconds between SIGTERM and SIGKILL on a planned stop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonbo/cli",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "description": "The Tonbo CLI. Compute, disks, databases and streams for AI agents: your agent picks what it needs, sets it up, and knows what it costs, from the command line.",
5
5
  "homepage": "https://tonbo.dev",
6
6
  "bugs": {