@beastmode-develeap/beastmode 0.1.125 → 0.1.126

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/index.js CHANGED
@@ -6521,15 +6521,20 @@ async function startServer(options = {}) {
6521
6521
  }
6522
6522
  if (method === "GET" && url === "/api/build-stamp") {
6523
6523
  let stamp = "unknown";
6524
+ let commit_sha = null;
6524
6525
  try {
6525
6526
  const dir = staticDir || resolveStaticDir();
6526
6527
  const stampPath = join14(dir, "build-stamp.txt");
6527
6528
  if (existsSync16(stampPath)) {
6528
6529
  stamp = readFileSync13(stampPath, "utf-8").trim();
6529
6530
  }
6531
+ const commitPath = join14(dir, "build-commit.txt");
6532
+ if (existsSync16(commitPath)) {
6533
+ commit_sha = readFileSync13(commitPath, "utf-8").trim() || null;
6534
+ }
6530
6535
  } catch {
6531
6536
  }
6532
- sendJson(res, 200, { stamp, service: "ui" });
6537
+ sendJson(res, 200, { stamp, commit_sha, service: "ui" });
6533
6538
  return;
6534
6539
  }
6535
6540
  if (boardRoutes.length > 0) {