@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptic/maestro",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Maestro — Autonomous AI agent operating system. Deploy AI employees on dedicated Mac minis.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,15 +23,21 @@ else
23
23
  echo "[OK] No emergency stop flag"
24
24
  fi
25
25
 
26
- # Check 2: Required environment variables
27
- for var in ANTHROPIC_API_KEY; do
28
- if [ -z "${!var}" ]; then
29
- echo "[FAIL] Missing environment variable: $var"
30
- ERRORS=$((ERRORS + 1))
31
- else
32
- echo "[OK] Environment variable: $var"
33
- fi
34
- done
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