Rename project from llm-monitor to clawmeter#23
Merged
Conversation
Rename the package directory src/llm_monitor/ to src/clawmeter/, update pyproject.toml (package name, entry point, build paths), and replace all imports across source and test files. Closes part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rename all environment variables from the old LLM_MONITOR_ prefix to CLAWMETER_ (CONFIG, DATA_DIR, CACHE_DIR, LOG_LEVEL, CONTAINER, NO_COLOR). Update Dockerfile and docker-compose.yml with new names, service names, and volume names. Part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add src/clawmeter/migrate.py with three migration capabilities: - XDG directory migration (auto-moves old llm-monitor dirs on first run) - Keyring credential migration (copies from old service name) - Deprecation warning for old LLM_MONITOR_* env vars Integrated into config.py (path migration on import) and providers/base.py (keyring migration on credential resolution). Part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace all occurrences of llm-monitor, llm_monitor, and LLM_MONITOR_* with clawmeter equivalents across README.md, CLAUDE.md, CHANGELOG.md, docs/SPEC.md, and research docs. Part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The migrate_keyring_credential call in resolve_credential makes additional get_password calls, so switch from assert_called_once_with to assert_any_call for the expected credential lookup. Part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
Author
|
Docker compose has problems - will load into a future issue. |
Add CLAWMETER_CONFIG monkeypatch to history tests that invoke the CLI, preventing the permission warning for the real config file from leaking into captured output and corrupting JSON parsing. Also move migration calls from config.py module-level to __main__.py entry point to avoid side effects during test imports. Part of #22 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/llm_monitor/→src/clawmeter/with all imports updatedLLM_MONITOR_*toCLAWMETER_*prefixsrc/clawmeter/migrate.py) for seamless transition: auto-moves XDG directories, migrates keyring credentials, warns on deprecated env varsCloses #22
Test plan
uv run clawmeter --versionshows new name🤖 Generated with Claude Code