ccstatusline 2.0.16 → 2.0.17
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/ccstatusline.js +3 -2
- package/package.json +1 -1
package/dist/ccstatusline.js
CHANGED
|
@@ -51374,7 +51374,7 @@ import { execSync as execSync3 } from "child_process";
|
|
|
51374
51374
|
import * as fs5 from "fs";
|
|
51375
51375
|
import * as path4 from "path";
|
|
51376
51376
|
var __dirname = "/Users/sirmalloc/Projects/Personal/ccstatusline/src/utils";
|
|
51377
|
-
var PACKAGE_VERSION = "2.0.
|
|
51377
|
+
var PACKAGE_VERSION = "2.0.17";
|
|
51378
51378
|
function getPackageVersion() {
|
|
51379
51379
|
if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
|
|
51380
51380
|
return PACKAGE_VERSION;
|
|
@@ -58997,6 +58997,7 @@ function getBlockMetrics(transcriptPath) {
|
|
|
58997
58997
|
}
|
|
58998
58998
|
function findMostRecentBlockStartTime(rootDir, sessionDurationHours = 5) {
|
|
58999
58999
|
const sessionDurationMs = sessionDurationHours * 60 * 60 * 1000;
|
|
59000
|
+
const sessionGapThresholdMs = Math.min(sessionDurationMs, 60 * 60 * 1000);
|
|
59000
59001
|
const now = new Date;
|
|
59001
59002
|
const pattern = path6.join(rootDir, "projects", "**", "*.jsonl").replace(/\\/g, "/");
|
|
59002
59003
|
const files = globSync([pattern]);
|
|
@@ -59044,7 +59045,7 @@ function findMostRecentBlockStartTime(rootDir, sessionDurationHours = 5) {
|
|
|
59044
59045
|
if (!currentTimestamp || !previousTimestamp)
|
|
59045
59046
|
continue;
|
|
59046
59047
|
const gap = previousTimestamp.getTime() - currentTimestamp.getTime();
|
|
59047
|
-
if (gap >=
|
|
59048
|
+
if (gap >= sessionGapThresholdMs) {
|
|
59048
59049
|
foundSessionGap = true;
|
|
59049
59050
|
break;
|
|
59050
59051
|
}
|