@beastmode-develeap/beastmode 0.1.102 → 0.1.103

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
@@ -6345,6 +6345,7 @@ function isAuthExempt(method, url) {
6345
6345
  if (url === "/auth/logout") return true;
6346
6346
  if (url.startsWith("/static/")) return true;
6347
6347
  if (url === "/health" && method === "GET") return true;
6348
+ if (url === "/api/build-stamp" && method === "GET") return true;
6348
6349
  return false;
6349
6350
  }
6350
6351
  function setSessionCookie(res) {
@@ -6478,6 +6479,19 @@ async function startServer(options = {}) {
6478
6479
  sendJson(res, 200, { status: "ok", uptime: process.uptime() });
6479
6480
  return;
6480
6481
  }
6482
+ if (method === "GET" && url === "/api/build-stamp") {
6483
+ let stamp = "unknown";
6484
+ try {
6485
+ const dir = staticDir || resolveStaticDir();
6486
+ const stampPath = join14(dir, "build-stamp.txt");
6487
+ if (existsSync16(stampPath)) {
6488
+ stamp = readFileSync13(stampPath, "utf-8").trim();
6489
+ }
6490
+ } catch {
6491
+ }
6492
+ sendJson(res, 200, { stamp, service: "ui" });
6493
+ return;
6494
+ }
6481
6495
  if (boardRoutes.length > 0) {
6482
6496
  const boardMatch = matchBoardRoute(boardRoutes, method, url);
6483
6497
  if (boardMatch) {