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:
2026-06-11 12:06:17 +00:00
parent 3540bc8fa6
commit 5488008216
37 changed files with 2576 additions and 340 deletions
+9
View File
@@ -219,6 +219,13 @@ async def devii_ws(websocket: WebSocket):
text = str(data.get("text", "")).strip()
if not text:
continue
command = text.lower().lstrip("/").strip()
if command == "stop":
await session.stop()
continue
if command == "reset":
await session.reset()
continue
limit = svc.daily_limit_for(owner_kind, owner_is_admin)
spent = svc.spent_24h(owner_kind, owner_id)
if limit > 0 and spent >= limit:
@@ -232,6 +239,8 @@ async def devii_ws(websocket: WebSocket):
session.spawn_turn(text)
elif kind == "reset":
await session.reset()
elif kind == "stop":
await session.stop()
elif kind == "clear":
await session.reset_conversation()
elif kind == "visibility":