You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,7 +44,7 @@ Code LoD is a CLI tool that generates and manages code descriptions at different
36
44
37
45
3.**Staleness Tracking** (`staleness.py`): `StalenessTracker` uses the hash index to determine if descriptions need regeneration.
38
46
39
-
4.**Generation** (`llm/`): Abstract `BaseGenerator` interface for LLM providers. Currently uses mock generator; real providers (OpenAI, Anthropic, Ollama) are planned.
47
+
4.**Generation** (`llm/description_generator/`): LLM provider implementations (OpenAI, Anthropic, Ollama, Mock) with auto-detection from environment variables and scope-specific model selection.
-`model_settings`: Hierarchical model configuration per scope
106
+
- Supports different models for different scopes (project, package, module, class, function)
107
+
108
+
Provider auto-detection: Checks `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` environment variables. Falls back to mock if none found.
109
+
110
+
Paths are resolved relative to project root via `Paths` dataclass.
94
111
95
112
### Git Hooks
96
113
97
-
The `install_hook` command creates pre-commit hooks that run `code-lod validate --fail-on-stale` to ensure descriptions stay fresh.
114
+
The `install-hook` command creates pre-commit hooks that run `code-lod validate --fail-on-stale` to ensure descriptions stay fresh. Use `uninstall-hook` to remove the hook.
115
+
116
+
Supports both `pre-commit` and `pre-push` hook types via `--hook-type` option.
4.**Generation** (`llm/description_generator/`): LLM provider implementations (OpenAI, Anthropic, Ollama, Mock) with auto-detection and scope-specific model selection
84
87
5.**Storage** (`db.py`, `lod_file/`): Dual storage system with SQLite database and `.lod` files
0 commit comments