feat: implement cost report template generator with Claude session tracking (issue #119)
Comprehensive cost tracking system implementation including: - Cost report generator with multiple formats (summary, detailed, audit) - Full CLI integration with cost management commands - Claude session cost tracking and estimation - Professional markdown reports with frontmatter/contentmatter - Automatic cost note generation for issue implementations - Complete test coverage (33 test cases) - Database integration with finance schema initialization 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
59814d84d8
commit
dab6b9fdef
14 changed files with 4179 additions and 0 deletions
|
|
@ -31,6 +31,13 @@ from .__version__ import get_version_info, get_release_info
|
|||
from .batch_processor import BatchProcessor, ProcessingMode, ErrorHandling, create_file_processor
|
||||
from .config_manager import ConfigurationManager
|
||||
|
||||
# Import cost tracking commands
|
||||
try:
|
||||
from .finance.cli import cost_commands
|
||||
COST_TRACKING_AVAILABLE = True
|
||||
except ImportError:
|
||||
COST_TRACKING_AVAILABLE = False
|
||||
|
||||
|
||||
def get_database_path(config):
|
||||
"""Get database path from config."""
|
||||
|
|
@ -6545,6 +6552,10 @@ def categories(config):
|
|||
print(f" {category}: {len(paradigms)} paradigms")
|
||||
|
||||
|
||||
# Register cost tracking commands
|
||||
if COST_TRACKING_AVAILABLE:
|
||||
cli.add_command(cost_commands)
|
||||
|
||||
# Register paradigms commands
|
||||
cli.add_command(paradigms)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue