@adaptic/maestro 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/healthcheck.sh +15 -9
package/package.json
CHANGED
package/scripts/healthcheck.sh
CHANGED
|
@@ -23,15 +23,21 @@ else
|
|
|
23
23
|
echo "[OK] No emergency stop flag"
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
|
-
# Check 2:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
# Check 2: Anthropic auth — either ANTHROPIC_API_KEY set OR subscription
|
|
27
|
+
# auth enabled. Daemons launched under launchd don't inherit the agent's
|
|
28
|
+
# shell env, so a "missing" ANTHROPIC_API_KEY is normal when the operator
|
|
29
|
+
# opted into Claude Code subscription auth (MAESTRO_PREFER_SUBSCRIPTION_AUTH=1
|
|
30
|
+
# in .env strips the var and falls back to Keychain OAuth).
|
|
31
|
+
if [ -n "${ANTHROPIC_API_KEY:-}" ]; then
|
|
32
|
+
echo "[OK] Environment variable: ANTHROPIC_API_KEY"
|
|
33
|
+
elif [ -f "$SOPHIE_AI_DIR/.env" ] && grep -qE "^MAESTRO_PREFER_SUBSCRIPTION_AUTH=(1|true|yes)$" "$SOPHIE_AI_DIR/.env"; then
|
|
34
|
+
echo "[OK] Anthropic auth: subscription mode (.env: MAESTRO_PREFER_SUBSCRIPTION_AUTH=1)"
|
|
35
|
+
elif [ -f "$SOPHIE_AI_DIR/.env" ] && grep -qE "^ANTHROPIC_API_KEY=." "$SOPHIE_AI_DIR/.env"; then
|
|
36
|
+
echo "[OK] Anthropic auth: ANTHROPIC_API_KEY in .env"
|
|
37
|
+
else
|
|
38
|
+
echo "[FAIL] Anthropic auth not configured (.env needs either ANTHROPIC_API_KEY or MAESTRO_PREFER_SUBSCRIPTION_AUTH=1)"
|
|
39
|
+
ERRORS=$((ERRORS + 1))
|
|
40
|
+
fi
|
|
35
41
|
|
|
36
42
|
# Check 3: Key directories exist and are writable
|
|
37
43
|
for dir in logs outputs knowledge/memory config; do
|