mirror of
https://github.com/samvallad33/vestige.git
synced 2026-06-08 20:25:16 +02:00
Some checks failed
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (ubuntu-latest) (push) Has been cancelled
Test Suite / Unit Tests (push) Has been cancelled
Test Suite / MCP E2E Tests (push) Has been cancelled
Test Suite / Dashboard Build (push) Has been cancelled
Test Suite / Code Coverage (push) Has been cancelled
CI / Release Build (aarch64-apple-darwin) (push) Has been cancelled
CI / Release Build (x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / Release Build (x86_64-apple-darwin) (push) Has been cancelled
Test Suite / User Journey Tests (push) Has been cancelled
Concrete search, irreversible purge, first-class contradictions tool, vestige update CLI, dense dream persistence fix, embedding-model upgrade repair, and a /dashboard/waitlist Pro early-access preview. 25 MCP tools. SQLite migration v13. Backwards compatible: 'delete' remains as a 'purge' alias. Closes #50, #51.
39 lines
2.1 KiB
Bash
Executable file
39 lines
2.1 KiB
Bash
Executable file
#!/bin/bash
|
|
# Load ALL memory MD files on every UserPromptSubmit.
|
|
# This legacy opt-in hook cats every file in the memory directory into prompt
|
|
# context. It is intentionally not enabled by default.
|
|
|
|
# Resolve per-user Claude Code project memory dir from $HOME.
|
|
# Claude Code encodes home path as `-Users-<name>`; allow override via env.
|
|
if [ -n "${VESTIGE_MEMORY_DIR:-}" ]; then
|
|
MEM_DIR="$VESTIGE_MEMORY_DIR"
|
|
else
|
|
MEM_DIR="$HOME/.claude/projects/$(printf '%s' "$HOME" | tr '/' '-')/memory"
|
|
fi
|
|
|
|
if [ ! -d "$MEM_DIR" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "═══════════════════════════════════════════════════════════════"
|
|
echo "[FULL MEMORY DUMP — EVERY FILE LOADED]"
|
|
echo "═══════════════════════════════════════════════════════════════"
|
|
echo ""
|
|
|
|
# Iterate every .md file in the memory directory (not archive)
|
|
for f in "$MEM_DIR"/*.md; do
|
|
if [ -f "$f" ]; then
|
|
filename=$(basename "$f")
|
|
echo ""
|
|
echo "┌─────────────────────────────────────────────────────────────"
|
|
echo "│ FILE: $filename"
|
|
echo "└─────────────────────────────────────────────────────────────"
|
|
cat "$f"
|
|
echo ""
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "═══════════════════════════════════════════════════════════════"
|
|
echo "[END FULL MEMORY DUMP — $(ls "$MEM_DIR"/*.md 2>/dev/null | wc -l | tr -d ' ') files loaded]"
|
|
echo "═══════════════════════════════════════════════════════════════"
|