# === COST REPORT APP COMMANDS === # # Direct cost data from Cost Report API (workspace-level) .PHONY: fetch-cost-report-full regenerate-cost-report fetch-cost-report-full: ## Fetch full cost report data (Aug 28 - today, workspace-level) @echo "Fetching cost report from Aug 28 to today..." @mkdir -p $(OUTPUT_DIR)/cost_report/raw uv run python -m src.cost_report.cost_report_analyzer \ --start 2025-11-25 \ --end 2025-12-10 \ --output $(OUTPUT_DIR)/cost_report/cost_report.json \ --debug regenerate-cost-report: ## Regenerate cost_report.json from raw data (no API call) @echo "Regenerating cost_report.json from raw JSON files..." @if [ ! -d $(OUTPUT_DIR)/cost_report/raw ]; then \ echo "❌ Error: $(OUTPUT_DIR)/cost_report/raw directory not found!"; \ echo " Run 'make fetch-cost-report-full' first to fetch the data."; \ exit 1; \ fi @uv run python -m src.cost_report.regenerate_from_raw \ --output $(OUTPUT_DIR)/cost_report/cost_report.json @echo "✅ cost_report.json regenerated!"