@kenkaiiii/gg-boss 4.10.0 → 4.10.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.
@@ -75622,6 +75622,7 @@ var SessionManager = class _SessionManager {
75622
75622
  });
75623
75623
  let first = null;
75624
75624
  let messageCount = 0;
75625
+ let lastActivity = null;
75625
75626
  for await (const line of rl) {
75626
75627
  if (!line)
75627
75628
  continue;
@@ -75633,6 +75634,8 @@ var SessionManager = class _SessionManager {
75633
75634
  first = parsed;
75634
75635
  } else if (parsed.type === "message") {
75635
75636
  messageCount++;
75637
+ if (parsed.timestamp)
75638
+ lastActivity = parsed.timestamp;
75636
75639
  }
75637
75640
  } catch {
75638
75641
  }
@@ -75643,13 +75646,14 @@ var SessionManager = class _SessionManager {
75643
75646
  id: first.id,
75644
75647
  path: filePath,
75645
75648
  timestamp: first.timestamp,
75649
+ lastActivity: lastActivity ?? first.timestamp,
75646
75650
  cwd: first.cwd,
75647
75651
  messageCount
75648
75652
  });
75649
75653
  } catch {
75650
75654
  }
75651
75655
  }
75652
- sessions.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
75656
+ sessions.sort((a, b) => b.lastActivity.localeCompare(a.lastActivity));
75653
75657
  return sessions;
75654
75658
  }
75655
75659
  async getMostRecent(cwd2) {
@@ -115704,4 +115708,4 @@ react/cjs/react-jsx-runtime.development.js:
115704
115708
  * LICENSE file in the root directory of this source tree.
115705
115709
  *)
115706
115710
  */
115707
- //# sourceMappingURL=chunk-UUWRFWTH.js.map
115711
+ //# sourceMappingURL=chunk-EV37X3XL.js.map