feat: uteke.toml config with layered resolution#68
Conversation
β¦al > defaults) - Create config.rs with full Config struct (store, embedding, tier, logging, aging) - Layered resolution: CLI args > .uteke/uteke.toml > ~/.uteke/uteke.toml > defaults - Migrate legacy config.toml β uteke.toml with backup - Expand tilde paths via Config::expand_tilde - 8 unit tests covering defaults, parsing, merge, migration - Remove old Config struct and write_default_config from main.rs Closes #48
|
Warning Review limit reached
More reviews will be available in 30 minutes and 59 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. β How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. π¦ How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. βΉοΈ Review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (2)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Closes #48
Changes
Create
crates/uteke-cli/src/config.rsβ fullConfigstruct with 5 sections:[store]β path, namespace[embedding]β model, max_seq_length[tier]β hot_days, warm_days, hot_boost[logging]β level, file[aging]β enabled, max_age_days, max_cold_countModify
crates/uteke-cli/src/main.rsβ addmod config;, remove old Config struct, wire new configLayered config resolution: CLI args > project
.uteke/uteke.toml> global~/.uteke/uteke.toml> defaultsLegacy migration:
config.tomlβuteke.tomlwith.bakbackup8 unit tests: defaults, full parse, partial parse, merge, nonexistent file, tilde expansion, old format migration
Verification
cargo checkβ cleancargo clippyβ no warningscargo testβ 22 passed (15 core + 7 config)cargo fmtβ clean