feat: add assistant bot with LLM integration and configuration
- Implemented the assistant bot with basic command handling and LLM routing. - Created configuration file for the assistant bot with personality, behavior, and LLM settings. - Added system prompt for the assistant bot to define its capabilities and limitations. - Developed registration script for creating Matrix bot users via Synapse admin API. - Introduced common development scripts for agent management (start, stop, list, logs). - Scaffolded new agent creation script to streamline the addition of new agents. - Implemented agent removal script to disable agents without deleting data.
This commit is contained in:
+24
-19
@@ -3,32 +3,37 @@
|
||||
# NEVER commit .env to git.
|
||||
# ============================================================
|
||||
|
||||
# Matrix
|
||||
MATRIX_HOMESERVER=https://matrix.example.com
|
||||
MATRIX_SERVER_NAME=example.com
|
||||
MATRIX_TOKEN_DEVOPS=syt_...
|
||||
MATRIX_TOKEN_MONITOR=syt_...
|
||||
# ── Matrix ───────────────────────────────────────────────────
|
||||
MATRIX_HOMESERVER=https://matrix-af2f3d.organic-machine.com
|
||||
MATRIX_SERVER_NAME=matrix-af2f3d.organic-machine.com
|
||||
|
||||
# Admin token — solo necesario para correr cmd/register
|
||||
# Obtenerlo desde Element > Settings > Help & About > Access Token
|
||||
MATRIX_ADMIN_TOKEN=syt_...
|
||||
|
||||
# Tokens de cada bot — generados por cmd/register
|
||||
MATRIX_TOKEN_ASSISTANT=syt_...
|
||||
MATRIX_TOKEN_DEVOPS=syt_...
|
||||
|
||||
# Matrix room IDs (!roomid:server)
|
||||
MATRIX_ROOM_DEVOPS=!abc123:example.com
|
||||
MATRIX_ROOM_ALERTS=!def456:example.com
|
||||
MATRIX_ROOM_LOGS=!ghi789:example.com
|
||||
MATRIX_ROOM_ADMIN=!xyz000:example.com
|
||||
MATRIX_ROOM_AUDIT=!aud001:example.com
|
||||
MATRIX_ROOM_AGENTS_INTERNAL=!int002:example.com
|
||||
|
||||
# LLM providers
|
||||
ANTHROPIC_API_KEY=sk-ant-...
|
||||
# ── LLM providers ────────────────────────────────────────────
|
||||
OPENAI_API_KEY=sk-...
|
||||
ANTHROPIC_API_KEY=sk-ant-... # opcional, para cuando añadas el devops-bot con Claude
|
||||
|
||||
# SSH
|
||||
SSH_PRIVATE_KEY_PATH=/home/deploy/.ssh/id_ed25519
|
||||
SSH_MONITOR_KEY_PATH=/home/monitor/.ssh/id_ed25519
|
||||
# ── SSH (para devops-bot, cuando lo añadas) ──────────────────
|
||||
SSH_PRIVATE_KEY_PATH=/home/ubuntu/.ssh/id_ed25519
|
||||
SSH_MONITOR_KEY_PATH=/home/ubuntu/.ssh/id_ed25519
|
||||
|
||||
# Infrastructure hosts
|
||||
# ── Infrastructure hosts (para devops-bot) ───────────────────
|
||||
PROD_HOST_1=10.0.1.10
|
||||
PROD_HOST_2=10.0.1.11
|
||||
STAGING_HOST=10.0.2.10
|
||||
MONITORING_HOST=10.0.3.10
|
||||
BASTION_HOST=bastion.example.com
|
||||
|
||||
# ── Matrix rooms (opcionales — el assistant-bot opera en DMs) ─
|
||||
MATRIX_ROOM_DEVOPS=
|
||||
MATRIX_ROOM_ALERTS=
|
||||
MATRIX_ROOM_LOGS=
|
||||
MATRIX_ROOM_ADMIN=
|
||||
MATRIX_ROOM_AUDIT=
|
||||
MATRIX_ROOM_AGENTS_INTERNAL=
|
||||
|
||||
Reference in New Issue
Block a user