feat: implement cost report template generator with Claude session tracking (issue #119)
Some checks failed
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled

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:
2025-10-04 01:31:36 +02:00
parent 59814d84d8
commit dab6b9fdef
14 changed files with 4179 additions and 0 deletions

View File

@@ -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)