Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
feat(dash): fix FinOps endpoint + preferences fallback for creds (#289)
Aurora Capitalb7f4b54988d4
diff --git a/claude-ops/bin/ops-dash b/claude-ops/bin/ops-dashindex fd3aba65..f0c69d2b 100755--- a/claude-ops/bin/ops-dash+++ b/claude-ops/bin/ops-dash@@ -301,10 +301,25 @@ TOTAL_PROBES=12(FINOPS_URL="${FINOPS_DASHBOARD_URL:-}"FINOPS_TOKEN="${FINOPS_OPS_API_TOKEN:-}"+ # Fall back to preferences.json if env vars not set+ if [[ -z "$FINOPS_URL" || -z "$FINOPS_TOKEN" ]] && [[ -f "$PREFS" ]] && command -v jq &>/dev/null; then+ FINOPS_URL="${FINOPS_URL:-$(jq -r '.finops.url // empty' "$PREFS" 2>/dev/null)}"+ FINOPS_TOKEN="${FINOPS_TOKEN:-$(jq -r '.finops.token // empty' "$PREFS" 2>/dev/null)}"+ fiif [[ -n "$FINOPS_URL" && -n "$FINOPS_TOKEN" ]]; then- curl -sf -H "Authorization: Bearer $FINOPS_TOKEN" \- "${FINOPS_URL}/api/summary" --max-time 5 2>/dev/null \- > "$TMPDIR_DASH/revenue.json" \+ RAW=$(curl -sf -H "Authorization: Bearer $FINOPS_TOKEN" \+ "${FINOPS_URL}/api/ops/snapshot" --max-time 5 2>/dev/null) \+ && echo "$RAW" | jq '{+ mrr: (.revenue_snapshot.total_mrr_usd | tostring),+ mrr_cents: .revenue_snapshot.total_mrr_cents,+ aws_burn_30d: (.current_month_spend | to_entries | map(.value) | add // 0 | tostring),+ aws_burn_7d: "n/a",+ runway_months: "n/a",+ anomalies_open: .anomalies_open,+ services_tracked: .services_tracked,+ burn_by_service: .burn_by_service,+ revenue_by_project: .revenue_snapshot.by_project+ }' 2>/dev/null > "$TMPDIR_DASH/revenue.json" \|| echo '{}' > "$TMPDIR_DASH/revenue.json"elseecho '{}' > "$TMPDIR_DASH/revenue.json"