ccstatusline 2.0.5 → 2.0.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 ccstatusline contributors
3
+ Copyright (c) 2025 Matthew Breedlove (https://github.com/sirmalloc)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,8 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
22
+
23
+ ---
24
+ Original author: Matthew Breedlove (https://github.com/sirmalloc)
25
+ Official repository: https://github.com/sirmalloc/ccstatusline
package/README.md CHANGED
@@ -343,7 +343,7 @@ Contributions are welcome! Please feel free to submit a Pull Request.
343
343
  ## 🔗 Related Projects
344
344
 
345
345
  - [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize Claude Code themes, thinking verbs, and more.
346
- - [ccusage](https://github.com/samuelint/ccusage) - Track and display Claude Code usage metrics.
346
+ - [ccusage](https://github.com/ryoppippi/ccusage) - Track and display Claude Code usage metrics.
347
347
 
348
348
  ---
349
349
 
@@ -51035,7 +51035,7 @@ import { execSync as execSync3 } from "child_process";
51035
51035
  import * as fs5 from "fs";
51036
51036
  import * as path4 from "path";
51037
51037
  var __dirname = "/Users/sirmalloc/Projects/Personal/ccstatusline/src/utils";
51038
- var PACKAGE_VERSION = "2.0.5";
51038
+ var PACKAGE_VERSION = "2.0.6";
51039
51039
  function getPackageVersion() {
51040
51040
  if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
51041
51041
  return PACKAGE_VERSION;
@@ -57976,13 +57976,15 @@ function findMostRecentBlockStartTime(rootDir, sessionDurationHours = 5) {
57976
57976
  const completedBlocks = Math.floor(totalWorkTime / sessionDurationMs);
57977
57977
  blockStart = new Date(flooredWorkStart.getTime() + completedBlocks * sessionDurationMs);
57978
57978
  }
57979
- const timeSinceActivity = now.getTime() - mostRecentTimestamp.getTime();
57980
57979
  const blockEnd = new Date(blockStart.getTime() + sessionDurationMs);
57981
- const isActive = timeSinceActivity < sessionDurationMs && now < blockEnd;
57980
+ const inBlockWindow = now.getTime() >= blockStart.getTime() && now.getTime() <= blockEnd.getTime();
57981
+ const activityInThisBlock = mostRecentTimestamp.getTime() >= blockStart.getTime() && mostRecentTimestamp.getTime() <= now.getTime();
57982
+ const isActive = inBlockWindow && activityInThisBlock;
57983
+ if (!isActive)
57984
+ return null;
57982
57985
  return {
57983
57986
  startTime: blockStart,
57984
- lastActivity: mostRecentTimestamp,
57985
- isActive
57987
+ lastActivity: mostRecentTimestamp
57986
57988
  };
57987
57989
  }
57988
57990
  function getAllTimestampsFromFile(filePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccstatusline",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "A customizable status line formatter for Claude Code CLI",
5
5
  "module": "src/ccstatusline.ts",
6
6
  "type": "module",