Repository navigation
Release 0.2.1: describe derives input_formats from the registry; add --version - #49
Conversation
…--version describe advertised only the original six input_formats (csv/tsv/ndjson/json/ parquet/arrow) — a stale literal in describe.rs that never tracked the 26 parsers added since, so the machine-discovery surface claimed 6 formats while the binary reads 32. Derive the list from the live ParserRegistry instead (reflects the build's features: all 32 by default, fewer under --no-default-features); this is what describe.rs's own doc comment already promised. A guard test asserts describe's input_formats equal the registry ids, so it can't drift again. Also wire 'anomalyx --version' (-V / version), which previously printed nothing. Bumps the workspace version 0.2.0 -> 0.2.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis release (v0.2.1) fixes the Changesv0.2.1 Release
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Found while verifying the installed
0.2.0binary:describeunder-reported supported formats.The bug
describe.rshardcodedinput_formatsas the original six(
csv/tsv/ndjson/json/parquet/arrow) — a literal that never trackedthe 26 parsers added since. So the machine-discovery surface claimed 6 formats
while the binary actually reads 32. An agent calling
describeto learncapabilities would never know to feed it pcap/syslog/EVTX/etc. (ironically,
describe.rs's own doc comment promises it's "derived from the same registriesscanuses, so the description can never drift from behavior").Fix
input_formatsnow derives from the liveParserRegistry— reflecting thebuild's features (all 32 by default; fewer under
--no-default-features).describe'sinput_formatsequal the registry ids,so it can't silently drift again.
anomalyx --version(-V/version), which previously printednothing.
Bumps the workspace version
0.2.0→0.2.1. fmt / clippy / full workspacetests green.
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
New Features
-V,--version,versionsubcommand).Chores