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 contact registry dedup, Gmail flag placement, and todo label matching (#628)
Aurora Capital1412542bd463
diff --git a/claude-ops/bin/ops-contact-registry b/claude-ops/bin/ops-contact-registryindex bae5ae35..294fd0a7 100755--- a/claude-ops/bin/ops-contact-registry+++ b/claude-ops/bin/ops-contact-registry@@ -176,9 +176,11 @@ def build(with_gmail=False, with_slack=False, out=DEFAULT_OUT):breakif target is None:target = new_record(name)- records.append(target)- for ph in phones:- by_phone[ph] = target+ if phones:+ for ph in phones:+ by_phone[ph] = target+ else:+ records.append(target)merge_into(target, name=name, emails=emails, phones=phones,slack_id=(slack[0] if slack else ""), context=ctx, tone=tone,sources="memory")@@ -191,7 +193,7 @@ def build(with_gmail=False, with_slack=False, out=DEFAULT_OUT):cmd = ["gog", "gmail", "search", "in:anywhere newer_than:120d","-j", "--results-only", "--no-input", "--max", "300"]if acct:- cmd[2:2] = ["-a", acct]+ cmd[3:3] = ["-a", acct]try:p = subprocess.run(cmd, capture_output=True, text=True, timeout=60)data = json.loads(p.stdout) if p.stdout.strip() else []diff --git a/claude-ops/bin/ops-inbox-scan b/claude-ops/bin/ops-inbox-scanindex 864ef611..4e0aa157 100755--- a/claude-ops/bin/ops-inbox-scan+++ b/claude-ops/bin/ops-inbox-scan@@ -459,6 +459,8 @@ PROTECTED_SUBSTRINGS = ()# a 'done/completed' label clears protection even if a stale todo label lingersCOMPLETION_SUBSTRINGS = ("ACTIONED", "DONE", "COMPLETED", "RESOLVED", "HANDLED", "ARCHIVED")+PROTECTED_PHRASES = tuple(s for s in PROTECTED_SUBSTRINGS if " " in s)+PROTECTED_WORDS = tuple(s for s in PROTECTED_SUBSTRINGS if " " not in s)def protected_todo_labels(labels):"""Return the list of protected todo/action labels on a message (empty if none/done)."""hits, done = [], False@@ -466,9 +468,13 @@ def protected_todo_labels(labels):if str(raw).upper() in SYSTEM_LABELS or str(raw).upper().startswith("CATEGORY_"):continuen = _norm_label(raw)- if any(c in n for c in COMPLETION_SUBSTRINGS):- done = True- if any(s in n for s in PROTECTED_SUBSTRINGS):+ words = set(n.split())+ tokens = n.split()+ for i, t in enumerate(tokens):+ if t in COMPLETION_SUBSTRINGS and (i == 0 or tokens[i - 1] != "NOT"):+ done = True+ break+ if any(p in n for p in PROTECTED_PHRASES) or any(w in words for w in PROTECTED_WORDS):hits.append(str(raw))return [] if done else hits