v0.1.40 - Measure Command Refactoring (2025-12-13)¶
What Changed?¶
This release refactors the measure command for improved code quality and robustness. The threshold extraction logic now uses response channel fields directly instead of relying on response order, making the implementation more reliable. Variable names have been simplified for clarity, and the docstring has been updated to accurately reflect the command's behavior.
What's New¶
Improved: Measure Command Implementation¶
What changed:
The measure command implementation has been refactored for better code quality and reliability. The threshold extraction now uses resp.channel to identify which channel each response belongs to, instead of relying on enumerate order. This makes the code more robust and independent of response ordering.
Key improvements:
- Uses resp.threshold to get threshold values directly
- Uses resp.channel to correctly map thresholds to channels
- Simpler variable names: responses, meta instead of threshold_responses, threshold_dict
- More accurate docstring explaining command behavior and output format
Usage (unchanged):
# Measure 10 events at specified thresholds
uv run kazunoko measure "1:300;2:300;3:300" 10
# With custom poll count
uv run kazunoko measure "1:500;2:400;3:300" 5 --poll-count 25000
Installation¶
Quick Start¶
# Get the release
git checkout v0.1.40
# Setup
uv sync
# Run CLI
uv run kazunoko --help
What's Different from the Last Version?¶
✅ Added¶
- None (refactoring release)
🔧 Changed¶
- Refactored threshold extraction to use
resp.channelinstead of enumerate - Simplified variable names:
threshold_responses→responses,threshold_dict→meta - Updated docstring with more accurate description and better examples
- Removed unnecessary model_dump() call and filtering logic in threshold extraction
🐛 Fixed¶
- Threshold extraction now independent of response ordering (more robust)
Is It Safe to Upgrade?¶
Backward Compatible: Yes
- No changes to CLI interface or command behavior
measurecommand works exactly the same way- Only internal implementation has been improved
- No impact on existing workflows
Tests Passed¶
- ✅ Builds without errors
- ✅
measurecommand produces identical output format - ✅ Thresholds correctly extracted regardless of response order
- ✅ All integration tests pass
Release Details¶
- Date: 2025-12-13
- Version: v0.1.40
- Files Changed: 1
- Commits: fc24806
Next Steps¶
Future enhancements could include: - Per-channel threshold scanning optimization - Additional metadata fields in measurement output - Real-time threshold scanning visualization