cc-context-stats 1.6.0 → 1.6.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/CHANGELOG.md +8 -0
- package/docs/context-stats.md +1 -1
- package/install +9 -2
- package/install.sh +8 -1
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/context-stats.sh +2 -2
- package/src/claude_statusline/__init__.py +1 -1
- package/src/claude_statusline/graphs/renderer.py +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.6.1] - 2026-03-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Footer version drift** - Corrected stale version `1.2.3` in bash script and `1.0.0` default in Python renderer to match actual release version
|
|
15
|
+
- **Footer project name** - Renamed `claude-statusline` to `cc-context-stats` in the footer display across bash and Python implementations
|
|
16
|
+
- **Install version embedding** - Install scripts now read version from `package.json` and embed it into the installed script, preventing future version drift
|
|
17
|
+
|
|
10
18
|
## [1.6.0] - 2026-03-13
|
|
11
19
|
|
|
12
20
|
### Added
|
package/docs/context-stats.md
CHANGED
|
@@ -68,7 +68,7 @@ Session Summary
|
|
|
68
68
|
Output Tokens: 43,429
|
|
69
69
|
Session Duration: 2h 29m
|
|
70
70
|
|
|
71
|
-
Powered by
|
|
71
|
+
Powered by cc-context-stats v1.6.1 - https://github.com/luongnv89/cc-context-stats
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Features
|
package/install
CHANGED
|
@@ -237,10 +237,17 @@ install_token_graph() {
|
|
|
237
237
|
download_file "scripts/token-graph.sh" "$DEST"
|
|
238
238
|
fi
|
|
239
239
|
|
|
240
|
-
# Embed commit hash
|
|
240
|
+
# Embed version and commit hash
|
|
241
|
+
local pkg_version
|
|
242
|
+
if [ "$INSTALL_MODE" = "local" ]; then
|
|
243
|
+
pkg_version=$(grep -o '"version": *"[^"]*"' "$SCRIPT_DIR/package.json" | head -1 | grep -o '"[^"]*"$' | tr -d '"')
|
|
244
|
+
else
|
|
245
|
+
pkg_version=$(curl -fsSL "${GITHUB_RAW_URL}/package.json" 2>/dev/null | grep -o '"version": *"[^"]*"' | head -1 | grep -o '"[^"]*"$' | tr -d '"')
|
|
246
|
+
fi
|
|
247
|
+
[ -n "$pkg_version" ] && sed -i.bak "s/VERSION=\"[^\"]*\"/VERSION=\"$pkg_version\"/" "$DEST" && rm -f "$DEST.bak"
|
|
241
248
|
sed -i.bak "s/COMMIT_HASH=\"dev\"/COMMIT_HASH=\"$commit_hash\"/" "$DEST" && rm -f "$DEST.bak"
|
|
242
249
|
chmod +x "$DEST"
|
|
243
|
-
echo -e "${GREEN}✓${RESET} Installed: $DEST (
|
|
250
|
+
echo -e "${GREEN}✓${RESET} Installed: $DEST (v${pkg_version:-1.6.0}-$commit_hash)"
|
|
244
251
|
|
|
245
252
|
# Check if ~/.local/bin is in PATH
|
|
246
253
|
if [[ ":$PATH:" != *":$LOCAL_BIN:"* ]]; then
|
package/install.sh
CHANGED
|
@@ -181,7 +181,14 @@ install_context_stats() {
|
|
|
181
181
|
download_file "scripts/context-stats.sh" "$DEST"
|
|
182
182
|
fi
|
|
183
183
|
|
|
184
|
-
# Embed commit hash
|
|
184
|
+
# Embed version and commit hash
|
|
185
|
+
local pkg_version
|
|
186
|
+
if [ "$INSTALL_MODE" = "local" ]; then
|
|
187
|
+
pkg_version=$(grep -o '"version": *"[^"]*"' "$SCRIPT_DIR/package.json" | head -1 | grep -o '"[^"]*"$' | tr -d '"')
|
|
188
|
+
else
|
|
189
|
+
pkg_version=$(curl -fsSL "${GITHUB_RAW_URL}/package.json" 2>/dev/null | grep -o '"version": *"[^"]*"' | head -1 | grep -o '"[^"]*"$' | tr -d '"')
|
|
190
|
+
fi
|
|
191
|
+
[ -n "$pkg_version" ] && sed -i.bak "s/VERSION=\"[^\"]*\"/VERSION=\"$pkg_version\"/" "$DEST" && rm -f "$DEST.bak"
|
|
185
192
|
sed -i.bak "s/COMMIT_HASH=\"dev\"/COMMIT_HASH=\"$commit_hash\"/" "$DEST" && rm -f "$DEST.bak"
|
|
186
193
|
chmod +x "$DEST"
|
|
187
194
|
echo -e "${GREEN}✓${RESET} Installed: $DEST"
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cc-context-stats"
|
|
7
|
-
version = "1.6.
|
|
7
|
+
version = "1.6.1"
|
|
8
8
|
description = "Monitor your Claude Code session context in real-time - track token usage and never run out of context"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
package/scripts/context-stats.sh
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
# === CONFIGURATION ===
|
|
24
24
|
# shellcheck disable=SC2034
|
|
25
|
-
VERSION="1.
|
|
25
|
+
VERSION="1.6.1"
|
|
26
26
|
COMMIT_HASH="dev" # Will be replaced during installation
|
|
27
27
|
STATE_DIR=~/.claude/statusline
|
|
28
28
|
CONFIG_FILE=~/.claude/statusline.conf
|
|
@@ -873,7 +873,7 @@ render_summary() {
|
|
|
873
873
|
}
|
|
874
874
|
|
|
875
875
|
render_footer() {
|
|
876
|
-
echo -e "${DIM}Powered by ${CYAN}
|
|
876
|
+
echo -e "${DIM}Powered by ${CYAN}cc-context-stats${DIM} v${VERSION}-${COMMIT_HASH} - https://github.com/luongnv89/cc-context-stats${RESET}"
|
|
877
877
|
echo ""
|
|
878
878
|
}
|
|
879
879
|
|
|
@@ -351,7 +351,7 @@ class GraphRenderer:
|
|
|
351
351
|
)
|
|
352
352
|
self._emit()
|
|
353
353
|
|
|
354
|
-
def render_footer(self, version: str = "1.
|
|
354
|
+
def render_footer(self, version: str = "1.6.1", commit_hash: str = "dev") -> None:
|
|
355
355
|
"""Render the footer with version info.
|
|
356
356
|
|
|
357
357
|
Args:
|
|
@@ -359,7 +359,7 @@ class GraphRenderer:
|
|
|
359
359
|
commit_hash: Git commit hash
|
|
360
360
|
"""
|
|
361
361
|
self._emit(
|
|
362
|
-
f"{self.colors.dim}Powered by {self.colors.cyan}
|
|
362
|
+
f"{self.colors.dim}Powered by {self.colors.cyan}cc-context-stats"
|
|
363
363
|
f"{self.colors.dim} v{version}-{commit_hash} - "
|
|
364
364
|
f"https://github.com/luongnv89/cc-context-stats{self.colors.reset}"
|
|
365
365
|
)
|