forked from imbilly88/hermes-a2a
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·31 lines (25 loc) · 743 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·31 lines (25 loc) · 743 Bytes
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
#!/bin/bash
# Install hermes-a2a as a Hermes plugin.
# Usage: ./install.sh
set -e
PLUGIN_DIR="$HOME/.hermes/plugins/a2a"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SOURCE_DIR="$SCRIPT_DIR/plugin"
if [ ! -d "$SOURCE_DIR" ]; then
echo "Error: plugin/ directory not found"
exit 1
fi
if [ -d "$PLUGIN_DIR" ]; then
echo "Backing up existing plugin to $PLUGIN_DIR.bak.$(date +%Y%m%d%H%M%S)"
cp -r "$PLUGIN_DIR" "$PLUGIN_DIR.bak.$(date +%Y%m%d%H%M%S)"
fi
mkdir -p "$HOME/.hermes/plugins"
cp -r "$SOURCE_DIR" "$PLUGIN_DIR"
echo "Installed to $PLUGIN_DIR"
echo ""
echo "Add to ~/.hermes/.env:"
echo " A2A_ENABLED=true"
echo " A2A_PORT=8081"
echo " # A2A_AUTH_TOKEN=your-secret (optional)"
echo ""
echo "Then restart Hermes."