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
Stabilize deploy-fix mocks and transient build-trigger test
Cursor Agentdc358476ce2a
diff --git a/claude-ops/tests/mocks/claude b/claude-ops/tests/mocks/claudeindex e0860133..16ea200c 100755--- a/claude-ops/tests/mocks/claude+++ b/claude-ops/tests/mocks/claude@@ -8,6 +8,8 @@ LOG="${MOCK_CLAUDE_LOG:-/dev/null}"PROMPT_OUT="${MOCK_CLAUDE_PROMPT_OUT:-/dev/null}"prompt="$(cat)"printf '%s' "$prompt" > "$PROMPT_OUT"+# Log argv first: hashing a large stdin can delay the line tests poll for.+printf 'argv=%s ' "$*" >> "$LOG"hash="$(printf '%s' "$prompt" | shasum | awk '{print $1}')"-printf 'argv=%s prompt_hash=%s\n' "$*" "$hash" >> "$LOG"+printf 'prompt_hash=%s\n' "$hash" >> "$LOG"exit "${MOCK_CLAUDE_RC:-0}"diff --git a/claude-ops/tests/mocks/gh b/claude-ops/tests/mocks/ghindex 599b6e81..63550760 100755--- a/claude-ops/tests/mocks/gh+++ b/claude-ops/tests/mocks/gh@@ -20,6 +20,7 @@ case "$sub" inpr)case "$sub2" inview)+ # Single-quoted default: ${VAR:-...} cannot nest raw `}` in the default value._default='{"baseRefName":"dev","mergeCommit":{"oid":"abcdef1234567890"},"state":"MERGED"}'echo "${MOCK_GH_PR_VIEW_JSON:-$_default}"exit 0diff --git a/claude-ops/tests/test-deploy-fix-hooks.sh b/claude-ops/tests/test-deploy-fix-hooks.shindex 5e77b663..d1e893a5 100755--- a/claude-ops/tests/test-deploy-fix-hooks.sh+++ b/claude-ops/tests/test-deploy-fix-hooks.sh@@ -136,6 +136,10 @@ STUBif [ -f "$TEST_LOGS/monitor-invoked.txt" ]; thenassert_eq "1a.monitor-args" "owner/repo 123" "$(cat "$TEST_LOGS/monitor-invoked.txt")"fi+ for _ in 1 2 3 4 5 6 7 8 9 10; do+ [ -f "$TEST_STATE/lock-monitor-owner-repo-pr123" ] && break+ sleep 0.2+ doneassert_file_exists "1a.lock-written" "$TEST_STATE/lock-monitor-owner-repo-pr123"}test_merge_trigger_happy@@ -239,8 +243,7 @@ test_build_trigger_skips_test_cmd() {}test_build_trigger_skips_test_cmd--# 2d — transient failure is detected and no fixer dispatched+# 2d — transient (E429): JSON context, notify, no fixer dispatchtest_build_trigger_transient() {new_isolated_env "case2-transient"export CLAUDE_PLUGIN_OPTION_DEPLOY_FIX_ENABLED=true@@ -250,13 +253,14 @@ test_build_trigger_transient() {out=$(cat "$FIXTURES/build-trigger-transient.json" | bash "$PLUGIN_ROOT/bin/ops-deploy-fix-build-trigger" 2>&1)rc=$?assert_eq "2d.exit-zero" "0" "$rc"+ assert_contains "2d.transient-context" "transient signature" "$out"sleep 0.5if [ ! -s "$TEST_LOGS/claude.log" ]; then- pass "2d.no-fixer-on-transient"+ pass "2d.no-fixer-on-transient-build"else- fail "2d.no-fixer-on-transient" "claude invoked for transient build failure"+ fail "2d.no-fixer-on-transient-build" "claude mock invoked for transient build failure"fi- assert_contains "2d.transient-message" "transient" "$out"+ assert_contains "2d.notify-build-transient" "Build transient" "$(cat "$TEST_LOGS/notifier.log" 2>/dev/null || echo "")"}test_build_trigger_transient@@ -505,6 +509,8 @@ echo ""echo "── Case 11: monitor real failure → fixer dispatched ──────────────"test_monitor_real_failure() {new_isolated_env "case11-real"+ # Hermetic: outer env may set a non-haiku fix model; this case asserts the default Haiku path.+ export CLAUDE_PLUGIN_OPTION_FIX_MODEL=haikuexport MOCK_GH_PR_VIEW_JSON='{"baseRefName":"dev","mergeCommit":{"oid":"abcdef1234567890"},"state":"MERGED"}'export MOCK_GH_RUN_LIST_JSON='[{"databaseId":99,"headSha":"abcdef1234567890","name":"deploy"}]'export MOCK_GH_RUN_WATCH_RC=1