@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
|
@@ -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 [ -
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
#
|
|
345
|
-
local boot_agent_dir="$
|
|
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 "║
|
|
624
|
+
echo "║ Maestro: $AGENT_DIR"
|
|
625
|
+
echo "║ Boot target: $CALLER_DIR"
|
|
622
626
|
echo "║ Current user: $CURRENT_USER"
|
|
623
627
|
echo "╚══════════════════════════════════════════════════════════════╝"
|
|
624
628
|
|