-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathupdate-messaging.sh
More file actions
executable file
·64 lines (56 loc) · 2.16 KB
/
update-messaging.sh
File metadata and controls
executable file
·64 lines (56 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# AI Maestro - Agent Messaging System Updater
#
# v0.21.26: Simplified to delegate to install-plugin.sh (single source of truth).
# Previously this script iterated messaging_scripts/ which no longer exists.
set -e
# Colors
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
# Parse arguments
NON_INTERACTIVE=false
while [[ $# -gt 0 ]]; do
case $1 in
-y|--yes|--non-interactive) NON_INTERACTIVE=true; shift ;;
-h|--help)
echo "Usage: ./update-messaging.sh [-y|--yes]"
echo "Updates messaging scripts and skills via install-plugin.sh"
exit 0
;;
*) shift ;;
esac
done
echo ""
echo "╔════════════════════════════════════════════════════════════════╗"
echo "║ AI Maestro - Agent Messaging Updater ║"
echo "╚════════════════════════════════════════════════════════════════╝"
echo ""
# Check we're in the right directory
if [ ! -f "install-plugin.sh" ]; then
echo -e "${YELLOW}⚠️ install-plugin.sh not found in current directory${NC}" >&2
echo " Run this from the AI Maestro root directory:" >&2
echo " cd ~/ai-maestro && ./update-messaging.sh" >&2
exit 1
fi
# Confirm unless non-interactive
if [ "$NON_INTERACTIVE" != true ]; then
echo -e "${BLUE}ℹ️ This will reinstall AMP messaging scripts and skills.${NC}"
echo ""
read -p "Continue with update? (y/n): " CONFIRM
if [[ ! "$CONFIRM" =~ ^[Yy]$ ]]; then
echo -e "${YELLOW}⚠️ Update cancelled${NC}"
exit 0
fi
fi
# Delegate to install-plugin.sh (the single source of truth)
echo ""
./install-plugin.sh -y
echo ""
echo -e "${GREEN}✅ Messaging update complete!${NC}"
echo ""
echo -e "${YELLOW}⚠️ IMPORTANT: Restart Claude Code sessions to reload updated skills${NC}"
echo ""
echo -e "${BLUE}ℹ️ For a full update (server + all tools), run: ./update-aimaestro.sh${NC}"
echo ""