fix: Add ASDF registry path to startup logic
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s

This commit is contained in:
2026-04-16 15:24:29 -04:00
parent 7923195a16
commit 23028a3082
2 changed files with 15 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ if [ -f "opencortex.asd" ] || [ -d "literate" ]; then
echo -e "${BLUE}Starting OpenCortex via SBCL...${NC}"
sbcl --non-interactive \
--eval "(load \"~/quicklisp/setup.lisp\")" \
--eval "(ql:quickload :opencortex)" \
--eval "(push "$(pwd)/" asdf:*central-registry*) (ql:quickload :opencortex)" \
--eval "(opencortex:main)"
fi
#+end_src

View File

@@ -44,12 +44,24 @@ if [ ! -d ".git" ]; then
bootstrap_opencortex
fi
# ... (Local Mode)
# 1. Try to drop straight into the CLI chat
if command_exists socat && socat - TCP:$HOST:$PORT,connect-timeout=1 2>/dev/null; then
echo -e "${BLUE}Connected to autonomous brain at $HOST:$PORT...${NC}"
socat READLINE,history=$HOME/.org_agent_history TCP:$HOST:$PORT
exit 0
fi
# 2. Local repository detection and launch
if [ -f "opencortex.asd" ] || [ -d "literate" ]; then
if [ ! -f .env ]; then ./scripts/onboard-baremetal.sh; fi
if [ ! -f .env ]; then
./scripts/onboard-baremetal.sh
fi
echo -e "${BLUE}Starting OpenCortex via SBCL...${NC}"
# EXPLICITLY push current directory to ASDF registry
sbcl --non-interactive \
--eval "(load \"~/quicklisp/setup.lisp\")" \
--eval "(push \"$(pwd)/\" asdf:*central-registry*)" \
--eval "(ql:quickload :opencortex)" \
--eval "(opencortex:main)"
fi