Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/complete-agi-core / thataiguy/api-daemon.sh |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 223c58f8857eb60c4d020e6d6feacdbfb482d71d |
| Branch | main |
| Path or archive member | thataiguy/api-daemon.sh |
| Original SHA-256 | 17c14ad74197d9e3787982a4f4b6813e1b48911994ce68e1d7bbf7a2d0e359fe |
| Git blob SHA | bdf68c7bff966cafdc9a87494d2cf994e2c6f557 |
| Reading-copy SHA-256 | 17c14ad74197d9e3787982a4f4b6813e1b48911994ce68e1d7bbf7a2d0e359fe |
Recovered source transcript
Download complete source text ↓18 lines · 0.4 KB
#!/bin/bash
# ThatAIGuyAGI API Daemon
# Runs the HTTP API server on port 8000
API_DIR="${HOME}/ThatAIGuyCore/api"
LOG_DIR="/tmp/thataiguy_logs"
PID_FILE="${HOME}/.thataiguy/pids/api.pid"
mkdir -p "$LOG_DIR" "$(dirname $PID_FILE)"
echo "[API Daemon] Starting ThatAIGuyAGI API on port 8000..."
cd "$API_DIR"
python3 server.py >> "${LOG_DIR}/api.log" 2>&1 &
echo $! > "$PID_FILE"
echo "[API Daemon] Started with PID: $(cat $PID_FILE)"