@spunto/build 0.21.0 → 0.21.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spunto/build",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Spunto's shared Build engine — the devcontainer image protocol and VS Code extension registry clients, with no database, no HTTP framework and no UI.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@ import { fileURLToPath } from "node:url"
19
19
  import os from "node:os"
20
20
  import net from "node:net"
21
21
 
22
- const VERSION = "0.10.0"
22
+ const VERSION = "0.11.0"
23
23
  const API = (process.env.SPUNTO_API_URL ?? "").replace(/\/$/, "")
24
24
  // `let`: a fork (RFC 0039 § 4.10) hands this process the identity of the copy it now runs in.
25
25
  let TOKEN = process.env.SPUNTO_SANDBOX_TOKEN ?? ""
@@ -430,8 +430,13 @@ function diskUsage() {
430
430
  return out
431
431
  }
432
432
 
433
+ // The box's live status — what its page's Resources panel and its "disk nearly full" warning read
434
+ // (`agent.heartbeat`). Not telemetry: nothing of it is stored, the platform keeps the last one in
435
+ // memory. Removed with the telemetry on 2026-10-19 (667cfa0f) by mistake: every sandbox page said
436
+ // "Loading stats…" for good, and a full disk said nothing.
433
437
  function heartbeat() {
434
- send({ type: "heartbeat" })
438
+ const r = boxResources()
439
+ send({ type: "heartbeat", load: os.loadavg(), memFree: r.memFree, memTotal: r.memTotal, cpuPercent: r.cpuPercent, cpus: r.cpus, uptime: os.uptime(), disks: diskUsage() })
435
440
  reportProject()
436
441
  }
437
442