ccburn 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {ccburn-0.1.0/src/ccburn.egg-info → ccburn-0.1.1}/PKG-INFO +1 -1
- {ccburn-0.1.0 → ccburn-0.1.1}/pyproject.toml +1 -1
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/credentials.py +3 -0
- {ccburn-0.1.0 → ccburn-0.1.1/src/ccburn.egg-info}/PKG-INFO +1 -1
- {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_cli.py +1 -1
- {ccburn-0.1.0 → ccburn-0.1.1}/LICENSE +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/README.md +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/setup.cfg +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/__init__.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/app.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/cli.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/__init__.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/history.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/models.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/usage_client.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/__init__.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/chart.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/gauges.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/layout.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/main.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/__init__.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/calculator.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/formatting.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/SOURCES.txt +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/dependency_links.txt +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/entry_points.txt +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/requires.txt +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/top_level.txt +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_calculator.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_formatting.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_history.py +0 -0
- {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_models.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ccburn"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "Terminal-based Claude Code usage limit visualizer with real-time burn-up charts"
|
|
9
9
|
authors = [{name = "JuanjoFuchs"}]
|
|
10
10
|
readme = "README.md"
|
|
@@ -92,6 +92,9 @@ def check_token_expired(credentials: dict) -> bool:
|
|
|
92
92
|
if isinstance(expires_at, str):
|
|
93
93
|
expiry = datetime.fromisoformat(expires_at.replace("Z", "+00:00"))
|
|
94
94
|
elif isinstance(expires_at, (int, float)):
|
|
95
|
+
# Handle milliseconds (JS timestamps) vs seconds (Unix timestamps)
|
|
96
|
+
if expires_at > 1e12: # Likely milliseconds
|
|
97
|
+
expires_at = expires_at / 1000
|
|
95
98
|
expiry = datetime.fromtimestamp(expires_at, tz=timezone.utc)
|
|
96
99
|
else:
|
|
97
100
|
return False
|
|
@@ -54,7 +54,7 @@ class TestCLI:
|
|
|
54
54
|
result = runner.invoke(app, ["--version"])
|
|
55
55
|
assert result.exit_code == 0
|
|
56
56
|
assert "ccburn" in result.stdout
|
|
57
|
-
assert "0.1.
|
|
57
|
+
assert "0.1.1" in result.stdout
|
|
58
58
|
|
|
59
59
|
def test_help(self):
|
|
60
60
|
result = runner.invoke(app, ["--help"])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|