diff --git a/CLAUDE.md b/CLAUDE.md index 9f61341..161a51f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -113,7 +113,7 @@ Before publishing: ## Known Limitations -1. **Python required**: npm package needs Python 3.10+ on user's system +1. **Python required**: npm package needs Python 3.9+ on user's system 2. **Gemini OAuth**: Must have Gemini CLI installed for token refresh 3. **Z.AI**: 5h shared quota across GLM-4.7, GLM-4.6, GLM-4.5V, GLM-4.5, GLM-4.5-Air, and Visual Analysis 4. **Codex API key mode**: No quota info (only OAuth has it) diff --git a/README.md b/README.md index d95e798..511a5da 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ npm install -g cclimits cclimits ``` -**Requires**: Python 3.10+ installed on your system. +**Requires**: Python 3.9+ installed on your system. ### Via Git @@ -209,7 +209,7 @@ export GEMINI_OAUTH_CLIENT_SECRET="..." ## Requirements -- Python 3.10+ +- Python 3.9+ - `requests` library (optional, falls back to urllib) ## License diff --git a/bin/cclimits.js b/bin/cclimits.js index da3f3ff..96b05c2 100755 --- a/bin/cclimits.js +++ b/bin/cclimits.js @@ -10,7 +10,7 @@ const child = spawn('python3', [script, ...process.argv.slice(2)], { child.on('error', (err) => { if (err.code === 'ENOENT') { - console.error('Error: python3 not found. Please install Python 3.10+'); + console.error('Error: python3 not found. Please install Python 3.9+'); process.exit(1); } throw err; diff --git a/lib/cclimits.py b/lib/cclimits.py index 79f7a0b..6ddeb7a 100755 --- a/lib/cclimits.py +++ b/lib/cclimits.py @@ -4,6 +4,7 @@ Fetches remaining quota/usage for Claude Code, Codex, Gemini, and Z.AI """ +from __future__ import annotations import json import os import subprocess diff --git a/memory-bank/projectbrief.md b/memory-bank/projectbrief.md index c57b816..70df96e 100644 --- a/memory-bank/projectbrief.md +++ b/memory-bank/projectbrief.md @@ -24,7 +24,7 @@ ### Non-Functional - No external dependencies required (urllib fallback) -- Python 3.10+ compatible +- Python 3.9+ compatible - Fast execution (<5s for all tools) - Graceful degradation if tools unavailable diff --git a/memory-bank/techContext.md b/memory-bank/techContext.md index c288b92..571b9dc 100644 --- a/memory-bank/techContext.md +++ b/memory-bank/techContext.md @@ -4,7 +4,7 @@ | Component | Technology | |-----------|------------| -| Core Script | Python 3.10+ | +| Core Script | Python 3.9+ | | npm Wrapper | Node.js 16+ | | HTTP Client | requests (optional), urllib (fallback) | | Distribution | npm, GitHub | @@ -26,7 +26,7 @@ cclimits/ ## Dependencies ### Runtime -- **Python 3.10+**: Required (type hints, match statements) +- **Python 3.9+**: Required (type hints deferred with __future__) - **requests**: Optional (improves HTTP handling) - **Node.js 16+**: Required for npx distribution