sandbox 3.4.3 → 3.5.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.
@@ -7284,7 +7284,7 @@ const scope = {
7284
7284
 
7285
7285
  //#endregion
7286
7286
  //#region package.json
7287
- var version = "3.4.3";
7287
+ var version = "3.5.0";
7288
7288
 
7289
7289
  //#endregion
7290
7290
  //#region src/error.ts
@@ -8302,6 +8302,13 @@ const run = import_cjs$13.command({
8302
8302
  //#region src/commands/list.ts
8303
8303
  var import_cjs$12 = /* @__PURE__ */ __toESM(require_cjs());
8304
8304
  init_source();
8305
+ function formatImage(image) {
8306
+ const [repository, digest] = image.split("@");
8307
+ if (!digest) return image;
8308
+ const [algorithm, hex] = digest.split(":");
8309
+ if (!hex) return image;
8310
+ return `${repository}@${algorithm}:${hex.slice(0, 12)}…`;
8311
+ }
8305
8312
  const list = import_cjs$12.command({
8306
8313
  name: "list",
8307
8314
  aliases: ["ls"],
@@ -8391,7 +8398,7 @@ const list = import_cjs$12.command({
8391
8398
  CREATED: { value: (s$1) => timeAgo(s$1.createdAt) },
8392
8399
  MEMORY: { value: (s$1) => s$1.memory != null ? memoryFormatter.format(s$1.memory) : "-" },
8393
8400
  VCPUS: { value: (s$1) => s$1.vcpus ?? "-" },
8394
- RUNTIME: { value: (s$1) => s$1.runtime ?? "-" },
8401
+ "RUNTIME/IMAGE": { value: (s$1) => s$1.runtime ?? (s$1.image ? formatImage(s$1.image) : "-") },
8395
8402
  TIMEOUT: { value: (s$1) => {
8396
8403
  if (s$1.expiresAt != null) return timeAgo(s$1.expiresAt);
8397
8404
  if (s$1.timeout != null) return timeAgo(s$1.createdAt + s$1.timeout);
@@ -12085,4 +12092,4 @@ const app = (opts) => (0, import_cjs.subcommands)({
12085
12092
 
12086
12093
  //#endregion
12087
12094
  export { source_exports as a, init_source as i, printTopLevelError as n, require_cjs as r, app as t };
12088
- //# sourceMappingURL=app-BHH8y5dv.mjs.map
12095
+ //# sourceMappingURL=app-6L6SGPXD.mjs.map