@kvbox/cli 0.5.51 → 0.6.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.
package/dist/kvbox.js CHANGED
@@ -164,7 +164,7 @@ function versionOf(srcFileUrl, injected) {
164
164
  }
165
165
 
166
166
  // src/version.ts
167
- var VERSION = versionOf(import.meta.url, true ? "0.5.51" : void 0);
167
+ var VERSION = versionOf(import.meta.url, true ? "0.6.0" : void 0);
168
168
 
169
169
  // src/commands/vm/index.ts
170
170
  import { Command as Command37 } from "commander";
@@ -651,6 +651,11 @@ var MachineSchema = z2.object({
651
651
  host: z2.string().optional(),
652
652
  /** The country code of that host (`RO`, `US`), when its admin gave one. Only the control plane fills it in. */
653
653
  country: z2.string().optional(),
654
+ /**
655
+ * The kind of managed service the box runs (`postgres`, `redis`, `storage`). Only an admin's
656
+ * `GET /machines?all=1` lists such boxes, so a host's boxes add up; every other listing hides them.
657
+ */
658
+ managed: z2.string().optional(),
654
659
  /** Seconds without network traffic before the host hibernates the box (#47). Absent: never. */
655
660
  autoHibernateSec: z2.number().int().positive().optional(),
656
661
  /** A script inside the box that says it is idle (#102, exit 0): auto-hibernate asks it instead of watching the traffic. */
@@ -2662,7 +2667,8 @@ var hostCell = (b) => b.host === void 0 ? "-" : b.country === void 0 ? b.host :
2662
2667
  function lsRows(boxes, cloud) {
2663
2668
  return boxes.map((b) => ({
2664
2669
  ...cloud ? { owner: ownerCell(b, cloud.me) } : {},
2665
- name: boxName(b.name),
2670
+ // a managed service's or storage's box, which only a platform admin's --all lists: `s3-1a2b3c (storage)`
2671
+ name: b.managed === void 0 ? boxName(b.name) : `${boxName(b.name)} ${color.dim(`(${b.managed})`)}`,
2666
2672
  status: status(b.status),
2667
2673
  ...cloud?.showHost ? { host: hostCell(b) } : {},
2668
2674
  address: addressOf(b),