@adaptic/maestro 1.1.6 → 1.1.7

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.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Maestro — Autonomous AI agent operating system. Deploy AI employees on dedicated Mac minis.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,14 +21,10 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
21
21
  MAESTRO_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
22
22
 
23
23
  # Detect agent directory — prefer sophie-ai if it exists
24
- AGENT_DIR="${1:-}"
25
- if [ -z "$AGENT_DIR" ]; then
26
- if [ -d "$HOME/sophie-ai" ]; then
27
- AGENT_DIR="$HOME/sophie-ai"
28
- else
29
- echo "ERROR: No agent directory specified and ~/sophie-ai not found" >&2
30
- exit 1
31
- fi
24
+ AGENT_DIR="${1:?Agent directory required as first argument (e.g. ~/sophie-ai)}"
25
+ if [ ! -d "$AGENT_DIR" ]; then
26
+ echo "ERROR: Agent directory does not exist: $AGENT_DIR" >&2
27
+ exit 1
32
28
  fi
33
29
 
34
30
  AGENT_NAME=$(basename "$AGENT_DIR")
@@ -29,6 +29,10 @@ AGENT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
29
29
  AGENT_NAME=$(basename "$AGENT_DIR")
30
30
  CURRENT_USER=$(whoami)
31
31
 
32
+ # The directory from which this script was invoked — used as the boot-time
33
+ # Claude Code working directory (e.g. ~/sophie-ai, ~/wundr, etc.)
34
+ CALLER_DIR="${PWD}"
35
+
32
36
  # Colours
33
37
  RED='\033[0;31m'
34
38
  GREEN='\033[0;32m'
@@ -341,9 +345,8 @@ configure_app_launches() {
341
345
  local real_home
342
346
  real_home=$(eval echo "~$real_user")
343
347
 
344
- # Detect the agent working directory (prefer sophie-ai)
345
- local boot_agent_dir="$HOME/sophie-ai"
346
- [ -d "$boot_agent_dir" ] || boot_agent_dir="$AGENT_DIR"
348
+ # Use the directory from which configure-macos.sh was invoked
349
+ local boot_agent_dir="$CALLER_DIR"
347
350
 
348
351
  cat > "$PLIST_PATH" << PLIST_EOF
349
352
  <?xml version="1.0" encoding="UTF-8"?>
@@ -618,7 +621,8 @@ main() {
618
621
  echo "╔══════════════════════════════════════════════════════════════╗"
619
622
  echo "║ Maestro — Mac Mini Configuration ║"
620
623
  echo "╠══════════════════════════════════════════════════════════════╣"
621
- echo "║ Agent directory: $AGENT_DIR"
624
+ echo "║ Maestro: $AGENT_DIR"
625
+ echo "║ Boot target: $CALLER_DIR"
622
626
  echo "║ Current user: $CURRENT_USER"
623
627
  echo "╚══════════════════════════════════════════════════════════════╝"
624
628