squadrant 0.17.0 → 0.17.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/dist/index.js CHANGED
@@ -16416,7 +16416,7 @@ function localAheadOfBase(runner, projectPath, base) {
16416
16416
  function readFetchAgeMs(projectPath, now) {
16417
16417
  try {
16418
16418
  const stat2 = fs29.statSync(path31.join(projectPath, ".git", "FETCH_HEAD"));
16419
- return now - stat2.mtime.getTime();
16419
+ return Math.max(0, now - stat2.mtime.getTime());
16420
16420
  } catch {
16421
16421
  return null;
16422
16422
  }
@@ -16429,6 +16429,7 @@ function gatherLiveRepoState(projectPath, fallbackBaseBranch, tasks, runner = de
16429
16429
  const ghInfo = gatherGhRepoInfo(runner, projectPath);
16430
16430
  const baseBranch = ghInfo?.defaultBranch ?? fallbackBaseBranch;
16431
16431
  const baseBranchSource = ghInfo ? "gh-api" : "local-fallback";
16432
+ const branchState = gatherBranchState(runner, projectPath, branch, baseBranch, detached, fetch2);
16432
16433
  const fetchAgeMs = readFetchAgeMs(projectPath, now);
16433
16434
  let aheadOfBase = 0;
16434
16435
  let aheadOfBaseSource = "unknown";
@@ -16478,7 +16479,7 @@ function gatherLiveRepoState(projectPath, fallbackBaseBranch, tasks, runner = de
16478
16479
  openPRs: gatherOpenPRs(runner, projectPath),
16479
16480
  liveCrews: gatherLiveCrews(tasks),
16480
16481
  conflicts,
16481
- branchState: gatherBranchState(runner, projectPath, branch, baseBranch, detached, fetch2),
16482
+ branchState,
16482
16483
  unreleasedAheadOfReleaseBranch
16483
16484
  };
16484
16485
  }