feat: add /stop and /reset chat commands and bots internals docs section
Add two new chat commands (`/stop` and `/reset`) to the Devii WebSocket handler, enabling users to stop or reset a session via text input. Introduce a new "Bots internals" documentation section with six prose pages covering architecture, personas, content generation, engagement, realism, and configuration for the autonomous bot fleet. Extend the bot service with article scoring, category picking, configurable pause/break timing, and a `gist_min_lines` parameter for LLM client initialization.
This commit is contained in:
+7
-3
@@ -12,7 +12,8 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git curl wget vim ack ca-certificates build-essential libpq-dev \
|
||||
tmux apache2-utils procps htop iftop iotop netcat-openbsd \
|
||||
tmux apache2-utils procps htop iftop iotop netcat-openbsd zip unzip \
|
||||
fakeroot \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
FROM base AS deps
|
||||
@@ -40,11 +41,13 @@ RUN pip install playwright && playwright install --with-deps chromium
|
||||
|
||||
FROM deps AS runtime
|
||||
COPY sudo /usr/local/bin/sudo
|
||||
COPY aptroot /usr/local/bin/aptroot
|
||||
COPY pagent /usr/bin/pagent.py
|
||||
COPY .vimrc /home/pravda/.vimrc
|
||||
RUN set -eu; \
|
||||
chmod 0755 /usr/local/bin/sudo /usr/bin/pagent.py; \
|
||||
chmod 0755 /usr/local/bin/sudo /usr/local/bin/aptroot /usr/bin/pagent.py; \
|
||||
ln -sf /usr/local/bin/sudo /usr/bin/sudo || true; \
|
||||
for t in apt apt-get dpkg; do ln -sf /usr/local/bin/aptroot "/usr/local/bin/$t"; done; \
|
||||
if getent passwd 1000 >/dev/null 2>&1; then \
|
||||
existing="$(getent passwd 1000 | cut -d: -f1)"; \
|
||||
if [ "$existing" != "pravda" ]; then userdel "$existing" 2>/dev/null || deluser "$existing" 2>/dev/null || true; fi; \
|
||||
@@ -55,7 +58,8 @@ RUN set -eu; \
|
||||
|| adduser -u 1000 -G pravda -D -s /bin/sh pravda 2>/dev/null || true; \
|
||||
fi; \
|
||||
mkdir -p /app /home/pravda/.local/bin; \
|
||||
for d in /app /home/pravda /usr/local/lib /usr/local/bin /usr/local/share /usr/lib/python3 /opt; do \
|
||||
for d in /app /home/pravda /usr/local/lib /usr/local/bin /usr/local/share /usr/lib/python3 /opt \
|
||||
/usr/lib /usr/bin /usr/sbin /usr/share /usr/include /etc /var/lib /var/cache /var/log /srv; do \
|
||||
[ -e "$d" ] && chown -R pravda:pravda "$d" 2>/dev/null || true; \
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user