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(ops:daemon): critical installer + test + arg-parser fixes
auroracapital3195d6da5af7
diff --git a/claude-ops/scripts/ops-daemon-manager.sh b/claude-ops/scripts/ops-daemon-manager.shindex a325cc1c..ae486061 100755--- a/claude-ops/scripts/ops-daemon-manager.sh+++ b/claude-ops/scripts/ops-daemon-manager.sh@@ -39,6 +39,14 @@ EOF}# ── Arg parsing ──────────────────────────────────────────────────────────+# Handle bare --help / -h before any required-value flag handling so users+# can run `ops-daemon-manager.sh --help` without supplying a subcommand.+if (( $# >= 1 )); then+ case "$1" in+ -h|--help) usage; exit 0 ;;+ esac+fi+if (( $# < 1 )); thenusageexit 64@@ -49,7 +57,14 @@ DRY_RUN=0CLI_PLUGIN_ROOT=""while (( $# > 0 )); docase "$1" in- --plugin-root) CLI_PLUGIN_ROOT="$2"; shift 2 ;;+ --plugin-root)+ if [[ -z "${2:-}" ]]; then+ echo "Error: --plugin-root requires a value" >&2+ exit 64+ fi+ CLI_PLUGIN_ROOT="$2"+ shift 2+ ;;--dry-run) DRY_RUN=1; shift ;;-h|--help) usage; exit 0 ;;*) echo "Unknown option: $1" >&2; usage; exit 64 ;;diff --git a/claude-ops/scripts/ops-daemon.sh b/claude-ops/scripts/ops-daemon.shindex 0bbae707..c12fe50a 100755--- a/claude-ops/scripts/ops-daemon.sh+++ b/claude-ops/scripts/ops-daemon.sh@@ -693,9 +693,23 @@ install_daemon_launchd() {local daemon_plist_dst="$agents_dir/com.claude-ops.daemon.plist"local keepalive_plist_dst="$agents_dir/com.claude-ops.wacli-keepalive.plist"+ local bash_path+ bash_path="$(command -v bash)"+ if [[ -z "$bash_path" ]]; then+ echo "install_daemon_launchd: bash not found on PATH" >&2+ return 1+ fi+ local plugin_root="$SCRIPT_DIR"+ if [[ -z "$plugin_root" ]] || [[ ! -d "$plugin_root/scripts" ]]; then+ echo "install_daemon_launchd: invalid plugin root: $plugin_root" >&2+ return 1+ fi+# Substitute placeholders while copying.if [[ -f "$daemon_plist_src" ]]; thensed \+ -e "s|__BASH_PATH__|$bash_path|g" \+ -e "s|__PLUGIN_ROOT__|$plugin_root|g" \-e "s|__DAEMON_SCRIPT_PATH__|$OPS_DAEMON_SCRIPT|g" \-e "s|__LOG_DIR__|$LOG_DIR|g" \-e "s|__HOME__|$HOME|g" \@@ -707,6 +721,8 @@ install_daemon_launchd() {if [[ -f "$keepalive_plist_src" ]]; thensed \+ -e "s|__BASH_PATH__|$bash_path|g" \+ -e "s|__PLUGIN_ROOT__|$plugin_root|g" \-e "s|__KEEPALIVE_SCRIPT_PATH__|$OPS_KEEPALIVE_SCRIPT|g" \-e "s|__LOG_DIR__|$LOG_DIR|g" \-e "s|__HOME__|$HOME|g" \diff --git a/claude-ops/tests/test-ops-daemon-manager.sh b/claude-ops/tests/test-ops-daemon-manager.shindex cb0cd527..d833044c 100755--- a/claude-ops/tests/test-ops-daemon-manager.sh+++ b/claude-ops/tests/test-ops-daemon-manager.sh@@ -40,11 +40,11 @@ elseerr "ops-daemon.sh is missing bash version guard"fi-# 4. Daemon script does not use bare `wait` in refresh_briefing-if grep -Pzo 'refresh_briefing\(\)[\s\S]*?^\}' "$DAEMON_SCRIPT" 2>/dev/null | grep -qE '^\s*wait\s*$'; then- err "refresh_briefing still contains a bare 'wait' — will block on long-lived services"+# 4. Daemon script does not use bare `wait` in prefetch_briefing_cache+if grep -Pzo 'prefetch_briefing_cache\(\)[\s\S]*?^\}' "$DAEMON_SCRIPT" 2>/dev/null | grep -qE '^\s*wait\s*$'; then+ err "prefetch_briefing_cache still contains a bare 'wait' — will block on long-lived services"else- ok "refresh_briefing uses targeted wait (no bare 'wait')"+ ok "prefetch_briefing_cache uses targeted wait (no bare 'wait')"fi# 5. No hardcoded user paths