Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a new internal usage analysis module ( Changes
Sequence Diagram(s)sequenceDiagram
participant MainScript as claude_monitor.py
participant UsageAPI as usage_analyzer.api.analyze_usage
participant DataLoader as DataLoader
participant BlockIdentifier as SessionBlockIdentifier
participant BurnRateCalc as BurnRateCalculator
participant Formatter as JSONFormatter
MainScript->>UsageAPI: analyze_usage()
UsageAPI->>DataLoader: load_usage_data()
DataLoader-->>UsageAPI: usage_entries
UsageAPI->>BlockIdentifier: identify_blocks(usage_entries)
BlockIdentifier-->>UsageAPI: session_blocks
loop For each active block
UsageAPI->>BurnRateCalc: calculate_burn_rate(block)
UsageAPI->>BurnRateCalc: project_block_usage(block)
end
UsageAPI->>Formatter: format_blocks(session_blocks)
Formatter-->>UsageAPI: formatted_json
UsageAPI-->>MainScript: usage_data (dict)
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (23)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Create logic for usage analyzer without external tools
Summary by CodeRabbit