@spunto/build 0.28.0 → 0.28.2

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.28.0",
3
+ "version": "0.28.2",
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",
@@ -94,7 +94,7 @@ export const AGENT_CATALOGS: Record<"claude" | "codex" | "mistral", AgentCatalog
94
94
  models: [
95
95
  { value: "claude-sonnet-5-5", label: "Claude Sonnet 5.5", description: "Default (recommended)", default: true },
96
96
  { value: "claude-opus-5-5", label: "Claude Opus 5.5" },
97
- { value: "claude-fable-5-1", label: "Claude Fable 5.1" },
97
+ { value: "claude-fable-5-2", label: "Claude Fable 5.2" },
98
98
  { value: "claude-haiku-5-5", label: "Claude Haiku 5.5" },
99
99
  ],
100
100
  params: [
@@ -43,8 +43,10 @@ const LONG_CONTEXT_SUFFIX = "[1m]"
43
43
  */
44
44
  const WINDOWS: Record<string, number> = {
45
45
  // 1M native — no opt-in, no suffix, nothing to detect in the stream.
46
+ "claude-fable-5-2": 1_000_000,
46
47
  "claude-fable-5-1": 1_000_000,
47
48
  "claude-fable-5": 1_000_000,
49
+ "claude-mythos-5-2": 1_000_000,
48
50
  "claude-mythos-5-1": 1_000_000,
49
51
  "claude-mythos-5": 1_000_000,
50
52
  "claude-mythos-preview": 1_000_000,
@@ -134,13 +134,26 @@ function runnerPid() {
134
134
  return null
135
135
  }
136
136
 
137
- /** This boot of the box: the same after a resume (its RAM loaded), a new one after any boot. */
137
+ /**
138
+ * This boot of the box: the same after a resume (its RAM loaded), a new one after any boot. The
139
+ * kernel's boot_id alone is the host's in a container (Spunto Lite): the same at every
140
+ * `docker start`, so postStart never ran again after the first one (2026-11-09). The start time of
141
+ * PID 1 goes with it: a new init at every start of a container, the same one in a resumed microVM.
142
+ */
138
143
  function bootId() {
144
+ let boot
139
145
  try {
140
- return readFileSync("/proc/sys/kernel/random/boot_id", "utf8").trim()
146
+ boot = readFileSync("/proc/sys/kernel/random/boot_id", "utf8").trim()
141
147
  } catch {
142
148
  return null
143
149
  }
150
+ try {
151
+ // Field 22 (starttime), counted after the `(comm)`, which may hold spaces.
152
+ const stat = readFileSync("/proc/1/stat", "utf8")
153
+ const start = stat.slice(stat.lastIndexOf(")") + 2).split(" ")[19]
154
+ if (start) return `${boot}/${start}`
155
+ } catch {}
156
+ return boot
144
157
  }
145
158
 
146
159
  /** The runner's last start: under which boot, and how it ended (`exitCode`, null while it runs or unknown). */