Skip to content

Rename project from llm-monitor to clawmeter#23

Merged
danielithomas merged 6 commits into
mainfrom
feature/rename-to-clawmeter
Apr 12, 2026
Merged

Rename project from llm-monitor to clawmeter#23
danielithomas merged 6 commits into
mainfrom
feature/rename-to-clawmeter

Conversation

@danielithomas
Copy link
Copy Markdown
Owner

@danielithomas danielithomas commented Apr 12, 2026

Summary

  • Rename Python module src/llm_monitor/src/clawmeter/ with all imports updated
  • Rename env vars from LLM_MONITOR_* to CLAWMETER_* prefix
  • Add migration logic (src/clawmeter/migrate.py) for seamless transition: auto-moves XDG directories, migrates keyring credentials, warns on deprecated env vars
  • Update all documentation (README, CLAUDE.md, CHANGELOG, SPEC, Docker)

Closes #22

Test plan

  • All 492 tests pass
  • uv run clawmeter --version shows new name
  • XDG directory migration fires on first run (verified locally)
  • Docker build succeeds with new entry point
  • Keyring migration tested with stored credentials

🤖 Generated with Claude Code

danielithomas and others added 5 commits April 12, 2026 14:04
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>
@danielithomas
Copy link
Copy Markdown
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>
@danielithomas danielithomas merged commit e7a423f into main Apr 12, 2026
3 checks passed
@danielithomas danielithomas deleted the feature/rename-to-clawmeter branch April 12, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v0.7.2 Rename Project

1 participant