Initial commit: RA-H Open Source Edition
Local-first knowledge management system with BYO API keys. Features: - 3-panel UI (Nodes | Focus | Helpers) - SQLite + sqlite-vec for vector search - Agent system (Easy/Hard mode orchestrators) - Content extraction (YouTube, PDF, web) - Integrate workflow for connection discovery - Dimension system with auto-assignment Tech stack: - Next.js 15 + TypeScript + Tailwind CSS - Anthropic (Claude) + OpenAI (GPT) via Vercel AI SDK Setup: npm install && npm rebuild better-sqlite3 scripts/dev/bootstrap-local.sh npm run dev MIT License
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
INFO() { printf "[clean-local] %s\n" "$1"; }
|
||||
|
||||
maybe_remove_dir() {
|
||||
local target="$1"
|
||||
if [ -d "$target" ]; then
|
||||
rm -rf "$target"
|
||||
INFO "Removed directory $target"
|
||||
fi
|
||||
}
|
||||
|
||||
maybe_remove_file() {
|
||||
local target="$1"
|
||||
if [ -f "$target" ]; then
|
||||
rm -f "$target"
|
||||
INFO "Removed file $target"
|
||||
fi
|
||||
}
|
||||
|
||||
INFO "Cleaning generated artifacts (safe-only)"
|
||||
|
||||
maybe_remove_dir "$REPO_ROOT/dist/local-app"
|
||||
maybe_remove_dir "$REPO_ROOT/dist/runtime"
|
||||
maybe_remove_dir "$REPO_ROOT/dist/.staging"
|
||||
maybe_remove_dir "$REPO_ROOT/.next"
|
||||
maybe_remove_dir "$REPO_ROOT/apps/mac/dist"
|
||||
|
||||
maybe_remove_file "$REPO_ROOT/dist/index.html"
|
||||
maybe_remove_file "$REPO_ROOT/logs/helper-interactions.log"
|
||||
maybe_remove_file "$REPO_ROOT/logs/next-dev.log"
|
||||
maybe_remove_file "$REPO_ROOT/app/api/logs/requests.log"
|
||||
|
||||
INFO "Cleanup complete"
|
||||
Reference in New Issue
Block a user