repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources15d ago| #1 | #!/usr/bin/env bash |
| #2 | # Deploy Clawd Memory as a Hermes MemoryProvider via the plugin system. |
| #3 | # This creates a symlink in ~/.hermes/plugins/mnemosyne — zero Hermes core changes. |
| #4 | |
| #5 | set -euo pipefail |
| #6 | |
| #7 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| #8 | PROVIDER_DIR="$SCRIPT_DIR/hermes_memory_provider" |
| #9 | HERMES_HOME="${HERMES_HOME:-$HOME/.hermes}" |
| #10 | TARGET_DIR="$HERMES_HOME/plugins/mnemosyne" |
| #11 | |
| #12 | echo "🚀 Clawd MemoryProvider Deploy" |
| #13 | echo "===============================" |
| #14 | echo "" |
| #15 | |
| #16 | if [ ! -d "$PROVIDER_DIR" ]; then |
| #17 | echo "❌ Error: hermes_memory_provider/ not found at $PROVIDER_DIR" |
| #18 | exit 1 |
| #19 | fi |
| #20 | |
| #21 | # Ensure plugins directory exists |
| #22 | mkdir -p "$HERMES_HOME/plugins" |
| #23 | |
| #24 | # Remove existing symlink or directory |
| #25 | if [ -L "$TARGET_DIR" ]; then |
| #26 | echo "🔄 Removing existing symlink: $TARGET_DIR" |
| #27 | rm "$TARGET_DIR" |
| #28 | elif [ -d "$TARGET_DIR" ]; then |
| #29 | echo "🔄 Removing existing directory: $TARGET_DIR" |
| #30 | rm -rf "$TARGET_DIR" |
| #31 | fi |
| #32 | |
| #33 | # Create symlink |
| #34 | ln -s "$PROVIDER_DIR" "$TARGET_DIR" |
| #35 | echo "✅ Symlinked: $TARGET_DIR -> $PROVIDER_DIR" |
| #36 | |
| #37 | # Verify |
| #38 | if [ -L "$TARGET_DIR" ] && [ -d "$TARGET_DIR" ]; then |
| #39 | echo "✅ Deploy verified." |
| #40 | else |
| #41 | echo "❌ Deploy failed." |
| #42 | exit 1 |
| #43 | fi |
| #44 | |
| #45 | echo "" |
| #46 | echo "Next steps:" |
| #47 | echo " 1. Set provider in config:" |
| #48 | echo " hermes config set memory.provider mnemosyne" |
| #49 | echo "" |
| #50 | echo " 2. Or edit ~/.hermes/config.yaml:" |
| #51 | echo " memory:" |
| #52 | echo " provider: mnemosyne" |
| #53 | echo "" |
| #54 | echo " 3. Verify:" |
| #55 | echo " hermes memory status" |
| #56 | echo " hermes mnemosyne stats" |
| #57 | echo "" |
| #58 |