feat(cli): add config --dump to print fully resolved config as TOML#597
Merged
feat(cli): add config --dump to print fully resolved config as TOML#597
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #597 +/- ##
==========================================
+ Coverage 76.20% 76.25% +0.05%
==========================================
Files 63 64 +1
Lines 18776 19052 +276
==========================================
+ Hits 14309 14529 +220
- Misses 3788 3831 +43
- Partials 679 692 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
751a324 to
8f42ae8
Compare
cpcloud
added a commit
that referenced
this pull request
Mar 4, 2026
Reflection-based walker produces annotated TOML directly from struct tags (toml, env, doc), avoiding an encode-then-reparse pipeline. Each field gets an inline comment showing its env var (and whether it's actively overriding). Hidden paths (api_key) are redacted, deprecated fields warn with the replacement key and its current value, and empty override sections ([llm.chat], [llm.extraction]) are elided. closes #597 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8f42ae8 to
12517e6
Compare
cpcloud
added a commit
that referenced
this pull request
Mar 4, 2026
Reflection-based walker produces annotated TOML directly from struct tags (toml, env, doc), avoiding an encode-then-reparse pipeline. Each field gets an inline comment showing its env var (and whether it's actively overriding). Hidden paths (api_key) are redacted, deprecated fields warn with the replacement key and its current value, and empty override sections ([llm.chat], [llm.extraction]) are elided. closes #597 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fce6572 to
60fb2cf
Compare
Reflection-based walker produces annotated TOML directly from struct tags (toml, env, doc), avoiding an encode-then-reparse pipeline. Each field gets an inline comment showing its env var (and whether it's actively overriding). Hidden paths (api_key) are redacted, deprecated fields warn with the replacement key and its current value, and empty override sections ([llm.chat], [llm.extraction]) are elided. closes #415 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
60fb2cf to
15d37f2
Compare
cpcloud
added a commit
that referenced
this pull request
Mar 19, 2026
…597) ## Summary - Add `micasa config --dump` to print the fully resolved configuration as valid, annotated TOML - Each field shows its env var (`# env: MICASA_...`) and marks active overrides (`# src(env): ...`) - API keys are omitted entirely from output to prevent accidental leakage - Deprecated fields (`cache_ttl_days`, `extraction.model`, `extraction.thinking`) show warnings with the replacement key and its resolved value (e.g. `# DEPRECATED: use documents.cache_ttl = "14d"`) - Inline comments are column-aligned within each TOML section - Section headers include descriptions from `doc` struct tags (e.g. `[llm] # LLM provider, model, and connection settings.`) - Per-pipeline override sections (`[llm.chat]`, `[llm.extraction]`) are only shown when non-empty - Add `MarshalText` to `Duration` and `ByteSize` for human-friendly TOML encoding - Document `[llm.chat]` and `[llm.extraction]` sections in reference docs; mark deprecated extraction fields closes #415 Co-authored-by: Claude Opus 4.6 <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
micasa config --dumpto print the fully resolved configuration as valid, annotated TOML# env: MICASA_...) and marks active overrides (# src(env): ...)cache_ttl_days,extraction.model,extraction.thinking) show warnings with the replacement key and its resolved value (e.g.# DEPRECATED: use documents.cache_ttl = "14d")docstruct tags (e.g.[llm] # LLM provider, model, and connection settings.)[llm.chat],[llm.extraction]) are only shown when non-emptyMarshalTexttoDurationandByteSizefor human-friendly TOML encoding[llm.chat]and[llm.extraction]sections in reference docs; mark deprecated extraction fieldscloses #415