Skip to content

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.

fix(ops): repair infra and Shopify health probes

github-actions[bot]a2c83503e99b
diff --git a/claude-ops/bin/ops-external b/claude-ops/bin/ops-external
index d2f99541..999333db 100755
--- a/claude-ops/bin/ops-external
+++ b/claude-ops/bin/ops-external
@@ -120,9 +120,12 @@ if [ -f "$PREFS" ]; then
# --- 2. preferences.json: partner_registry.shopify_admin.stores ---
PR_ALIASES=$(jq -r '.partner_registry.shopify_admin.stores // {} | keys[]' "$PREFS" 2>/dev/null || true)
for alias in $PR_ALIASES; do
- # Skip if we already emitted this alias from .ecom.projects
- [ -f "$TMPDIR_OPS/shopify-${alias}.json" ] && continue
- [ -f "$TMPDIR_OPS/shopify-partner-${alias}.json" ] && continue
+ # .ecom.projects is the higher-priority source. Do not use background-created
+ # temp files as the dedupe signal: the probe may not have written them yet,
+ # allowing the lower-priority partner_registry result to overwrite it.
+ if printf '%s\n' "$ECOM_ALIASES" | grep -Fxq "$alias"; then
+ continue
+ fi
STORE_INFO=$(jq -c --arg a "$alias" '.partner_registry.shopify_admin.stores[$a]' "$PREFS")
TYPE=$(echo "$STORE_INFO" | jq -r '.type // "merchant"')
diff --git a/claude-ops/bin/ops-infra b/claude-ops/bin/ops-infra
index f37f921b..883c7efa 100755
--- a/claude-ops/bin/ops-infra
+++ b/claude-ops/bin/ops-infra
@@ -52,11 +52,15 @@ trap 'rm -rf "$TMPDIR_OPS"' EXIT
# Check each cluster in parallel
for cluster in $CLUSTERS; do
(
- # List services
- SERVICES=$(aws ecs list-services ${AWS_REGION_ARG[@]+"${AWS_REGION_ARG[@]}"} --cluster "$cluster" --query 'serviceArns[*]' --output text 2>/dev/null | xargs -n1 basename 2>/dev/null | tr '\n' ' ')
+ # Cluster values may be full ARNs; use a filesystem-safe result filename.
+ cluster_file=$(printf '%s' "$cluster" | tr '/:' '__')
+
+ # List services. AWS returns full ARNs; keep only the final service segment.
+ SERVICES=$(aws ecs list-services ${AWS_REGION_ARG[@]+"${AWS_REGION_ARG[@]}"} --cluster "$cluster" --query 'serviceArns[*]' --output text 2>/dev/null \
+ | tr '\t' '\n' | sed '/^$/d; s#.*/##' | tr '\n' ' ')
if [ -z "$SERVICES" ]; then
- echo "{\"cluster\":\"$cluster\",\"status\":\"empty\",\"services\":[]}" > "$TMPDIR_OPS/$cluster.json"
+ echo "{\"cluster\":\"$cluster\",\"status\":\"empty\",\"services\":[]}" > "$TMPDIR_OPS/$cluster_file.json"
else
RESULT=$(aws ecs describe-services ${AWS_REGION_ARG[@]+"${AWS_REGION_ARG[@]}"} --cluster "$cluster" --services $SERVICES \
--query 'services[*].{name:serviceName,running:runningCount,desired:desiredCount,status:status}' \
@@ -74,7 +78,7 @@ for cluster in $CLUSTERS; do
STATUS="degraded"
fi
- echo "{\"cluster\":\"$cluster\",\"status\":\"$STATUS\",\"services\":$RESULT}" > "$TMPDIR_OPS/$cluster.json"
+ echo "{\"cluster\":\"$cluster\",\"status\":\"$STATUS\",\"services\":$RESULT}" > "$TMPDIR_OPS/$cluster_file.json"
fi
) &
done