@beastmode-develeap/beastmode 0.1.373 → 0.1.375

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
@@ -5707,6 +5707,18 @@ function _gitHeadSha(repoPath) {
5707
5707
  return "no-git";
5708
5708
  }
5709
5709
  }
5710
+ function _computeGuideStaleness(projectsDir, name, meta) {
5711
+ const proj = readProjectRecord(projectsDir, name);
5712
+ const currentSha = proj ? _gitHeadSha(proj.path) : "no-git";
5713
+ if (currentSha === "no-git") {
5714
+ return { stale: false, current_head_sha: currentSha, head_check: "unavailable" };
5715
+ }
5716
+ return {
5717
+ stale: meta.target_repo_head_sha !== currentSha,
5718
+ current_head_sha: currentSha,
5719
+ head_check: "ok"
5720
+ };
5721
+ }
5710
5722
  function getBoardRoutes(factoryDir) {
5711
5723
  return [
5712
5724
  // ── Status ──
@@ -6733,7 +6745,8 @@ Path: ${projectPath}
6733
6745
  analyzed_at: meta.analyzed_at,
6734
6746
  duration_seconds: meta.duration_seconds,
6735
6747
  target_repo_head_sha: meta.target_repo_head_sha,
6736
- claude_skeleton: meta.claude_skeleton
6748
+ claude_skeleton: meta.claude_skeleton,
6749
+ ..._computeGuideStaleness(projectsDir, name, meta)
6737
6750
  };
6738
6751
  }
6739
6752
  if (meta && meta.status === "failed") {
@@ -6788,7 +6801,8 @@ Path: ${projectPath}
6788
6801
  throw new HttpError(404, { error: "Guide file not found" });
6789
6802
  }
6790
6803
  const content = readFileSync14(filePath, "utf-8");
6791
- return { level, content, meta };
6804
+ const staleness = _computeGuideStaleness(projectsDir, name, meta);
6805
+ return { level, content, meta, ...staleness };
6792
6806
  }
6793
6807
  },
6794
6808
  // ── Runs ──