chore: gitignore hardening, VERSION, CI workflow, tests, docs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-11 07:25:15 -05:00
parent 3d1168ff8c
commit 838860fdf0
6 changed files with 225 additions and 34 deletions
+13 -1
View File
@@ -47,5 +47,17 @@ FRONTEND_PID=$(_start "NEXUS FRONTEND SERVICE" "$FRONTEND_LOG" "$FRONTEND_DIR" \
sleep 5
_check "NEXUS FRONTEND SERVICE" "$FRONTEND_PID" "$FRONTEND_LOG"
trap "kill $MEMORY_PID $BACKEND_PID $FRONTEND_PID 2>/dev/null; echo ''; echo 'NEXUS STOPPED'; exit" SIGINT SIGTERM
_shutdown() {
echo ''
echo 'Stopping NexusOS...'
# First TERM the processes we directly spawned.
kill "$MEMORY_PID" "$BACKEND_PID" "$FRONTEND_PID" 2>/dev/null
# uvicorn --reload leaves a worker child holding the port and `npm run dev`
# reparents vite, so the direct kills above orphan survivors. Delegate to the
# management CLI's port-based teardown, which reliably clears all three ports.
"$PROJECT_ROOT/management/nexus-cli.sh" stop >/dev/null 2>&1
echo 'NEXUS STOPPED'
exit
}
trap _shutdown SIGINT SIGTERM SIGHUP
wait