fix: Install missing system dependencies, add ~/.local/bin to PATH, and clone to ~/.opencortex to prevent autocomplete collision
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 27s

This commit is contained in:
2026-04-17 16:39:20 -04:00
parent 5deb4eac5b
commit bcb7acd6fb
2 changed files with 22 additions and 4 deletions

View File

@@ -11,14 +11,23 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# --- 1. BOOTSTRAP ---
if [ ! -d "$SCRIPT_DIR/.git" ] && [[ ! "$(pwd)" =~ "opencortex" ]]; then
echo -e "${BLUE}=== OpenCortex: Zero-to-One Bootstrapper ===${NC}"
git clone http://10.10.10.201:3001/amr/opencortex.git opencortex
cd opencortex && git submodule update --init --recursive
git clone http://10.10.10.201:3001/amr/opencortex.git ~/.opencortex
cd ~/.opencortex && git submodule update --init --recursive
exec ./opencortex.sh "$@"
fi
# --- 2. SETUP ---
setup_system() {
echo -e "${BLUE}=== OpenCortex: Initializing System ===${NC}"
echo -e "${YELLOW}--- Installing System Dependencies ---${NC}"
if command_exists apt-get; then
sudo apt-get update && sudo apt-get install -y sbcl emacs-nox rlwrap netcat-openbsd curl git socat
fi
if [ ! -d "$HOME/quicklisp" ]; then
curl -O https://beta.quicklisp.org/quicklisp.lisp
sbcl --non-interactive --load quicklisp.lisp --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))"
rm quicklisp.lisp
fi
cd "$SCRIPT_DIR"
if [ ! -f .env ]; then
cp .env.example .env