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
fix(recap-digest): plain-text fallback when Claude auth unavailable in daemon (#216)
Aurora Capital0579119263ca
diff --git a/claude-ops/scripts/recap/digest.sh b/claude-ops/scripts/recap/digest.shindex 967afc8d..6dd5770a 100755--- a/claude-ops/scripts/recap/digest.sh+++ b/claude-ops/scripts/recap/digest.sh@@ -75,12 +75,22 @@ result=$(printf '%s' "$prompt" | claude -p --model haiku --no-session-persistenc# Reject Claude error / auth / quota strings — never let them pollute the# digest OR the rolling log (which feeds back as PRIOR HEADLINES on next run).case "$result" in- ""|"Prompt is too long"*|"Error:"*|"error:"*|"API Error"*|"Credit balance"*|"Invalid API"*|"You've hit your limit"*|"You've reached your"*|"Claude AI usage limit"*|"Usage limit"*|"usage limit"*|"Rate limit"*|"rate limit"*|"resets May"*|"resets at"*|"Please try again"*|"Account is restricted"*|"Not logged in"*|*"Please run /login"*|*"run /login"*|"OAuth"*|"oauth"*|"Authentication"*|"authentication"*)- printf '[%s] SKIP bad-result: %s\n' "$(date '+%H:%M')" "$result" >> "${LOG}.errors"- exit 0+ ""|"Prompt is too long"*|"Error:"*|"error:"*|"API Error"*|"Credit balance"*|"Invalid API"*|"You've hit your limit"*|"You've reached your"*|"Claude AI usage limit"*|"Usage limit"*|"usage limit"*|"Rate limit"*|"rate limit"*|"resets "*|"resets at"*|"Please try again"*|"Account is restricted"*|"Not logged in"*|*"Please run /login"*|*"run /login"*|"OAuth"*|"oauth"*|"Authentication"*|"authentication"*)+ printf '[%s] SKIP bad-result: %s+' "$(date '+%H:%M')" "$result" >> "${LOG}.errors"+ result="";;esac+# Fallback: if Claude unavailable, assemble a plain-text digest from session recaps+if [ -z "$result" ] && [ -n "$sessions" ]; then+ result=$(printf '%s' "$sessions" \+ | LC_ALL=C tr '+' ' ' \+ | LC_ALL=C sed 's/^- //; s/ - / /g' \+ | head -c 240)+fi+if [ -n "$result" ]; thenprintf '%s' "$result" > "$DIGEST"printf '[%s] %s\n' "$(date '+%H:%M')" "$result" >> "$LOG"