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(whatsapp-bridge): build bridge with -tags sqlite_fts5 so message storage works (#412)
Aurora Capital207c1fd24b68
diff --git a/claude-ops/bin/ops-autofix b/claude-ops/bin/ops-autofixindex 91dabed7..24efb592 100755--- a/claude-ops/bin/ops-autofix+++ b/claude-ops/bin/ops-autofix@@ -88,7 +88,28 @@ fix_bridge_fts() {returnfi- # Run bridge schema migration to add FTS5 index (sqlite built-in, no rebuild needed)+ # The bridge binary (mattn/go-sqlite3) MUST be compiled with the `sqlite_fts5`+ # build tag. Without it, the FTS triggers added by the migration make EVERY+ # message INSERT fail with "no such module: fts5" and the bridge silently+ # stores nothing. So guarantee the binary is fts5-capable BEFORE adding triggers.+ BRIDGE_BIN="$(dirname "$(dirname "$BRIDGE_DB")")/whatsapp-bridge"+ if [ -f "$BRIDGE_BIN" ] && ! grep -qa "fts5" "$BRIDGE_BIN" 2>/dev/null; then+ if command -v go >/dev/null 2>&1; then+ if ( cd "$(dirname "$BRIDGE_BIN")" && CGO_ENABLED=1 go build -tags "sqlite_fts5" -o whatsapp-bridge . ) 2>/dev/null; then+ systemctl --user restart whatsapp-bridge.service 2>/dev/null || true+ log_fix "bridge-fts: rebuilt bridge binary with -tags sqlite_fts5 (was missing fts5 module)"+ else+ log_fail "bridge-fts: binary lacks fts5 and rebuild failed — skipping migration (triggers would break message storage)"+ return+ fi+ else+ log_fail "bridge-fts: binary lacks fts5 and go toolchain not found — skipping migration (triggers would break message storage)"+ return+ fi+ fi++ # Run bridge schema migration to add the FTS5 index + triggers (the binary is+ # now guaranteed fts5-capable above, so the triggers won't break inserts).MIGRATE="${CLAUDE_PLUGIN_ROOT:-$(dirname "$0")/..}/scripts/whatsapp-bridge-migrate.sh"if bash "$MIGRATE" 2>/dev/null; thenFTS_AFTER=$(sqlite3 "$BRIDGE_DB" "SELECT COUNT(*) FROM sqlite_master WHERE type='table' AND name='messages_fts';" 2>/dev/null || echo "0")diff --git a/claude-ops/bin/ops-setup-install b/claude-ops/bin/ops-setup-installindex 230d2b33..f4e6c6a9 100755--- a/claude-ops/bin/ops-setup-install+++ b/claude-ops/bin/ops-setup-install@@ -150,7 +150,7 @@ install_special() {return 2 ;;whatsapp-bridge)# whatsapp-bridge is installed as part of whatsapp-mcp- echo "○ whatsapp-bridge install: git clone https://github.com/your-org/whatsapp-mcp ~/.local/share/whatsapp-mcp && cd ~/.local/share/whatsapp-mcp/whatsapp-bridge && go build -o whatsapp-bridge ." >&2+ echo "○ whatsapp-bridge install: git clone https://github.com/your-org/whatsapp-mcp ~/.local/share/whatsapp-mcp && cd ~/.local/share/whatsapp-mcp/whatsapp-bridge && go build -tags \"sqlite_fts5\" -o whatsapp-bridge ." >&2return 2 ;;brew)# Homebrew has its own bootstrap installer.diff --git a/claude-ops/scripts/install-whatsapp-bridge-linux.sh b/claude-ops/scripts/install-whatsapp-bridge-linux.shindex 12ccd048..4209d0c0 100755--- a/claude-ops/scripts/install-whatsapp-bridge-linux.sh+++ b/claude-ops/scripts/install-whatsapp-bridge-linux.sh@@ -120,7 +120,11 @@ if [ "$SKIP_BUILD" -ne 1 ]; thengo get -u go.mau.fi/whatsmeow@latestgo get -u ./...go mod tidy- go build -o whatsapp-bridge .+ # -tags sqlite_fts5 is REQUIRED: ops-inbox search + whatsapp-bridge-migrate.sh+ # add an fts5 virtual table & triggers on messages.db. The bridge's own+ # mattn/go-sqlite3 must therefore have the fts5 module, or every message+ # INSERT fails with "no such module: fts5" and the bridge stores nothing.+ go build -tags "sqlite_fts5" -o whatsapp-bridge .popd >/dev/nullfidiff --git a/claude-ops/skills/setup/channels/whatsapp.md b/claude-ops/skills/setup/channels/whatsapp.mdindex 247f3094..7b5e2880 100644--- a/claude-ops/skills/setup/channels/whatsapp.md+++ b/claude-ops/skills/setup/channels/whatsapp.md@@ -17,7 +17,7 @@ If binary missing: ask `AskUserQuestion`: `[Show install docs]`, `[Skip WhatsApp```whatsapp-bridge (whatsmeow) is not installed. Install:git clone https://github.com/lharries/whatsapp-mcp ~/.local/share/whatsapp-mcp- cd ~/.local/share/whatsapp-mcp/whatsapp-bridge && go build -o whatsapp-bridge .+ cd ~/.local/share/whatsapp-mcp/whatsapp-bridge && go build -tags "sqlite_fts5" -o whatsapp-bridge .mkdir -p ~/.local/share/whatsapp-mcp/whatsapp-bridge/logs```