fc644ecd6e
Reemplaza el scaffold del echobot por la plataforma completa de bots traida desde ~/DataProyects/Github/agents_and_robots tras la operacion Matrix-out: los bots ya no hablan por Matrix sino por el bus unibus (modelo todo-rooms + E2E via shell/transportunibus sobre github.com/enmanuel/unibus/pkg/client). - go.mod: replace de unibus -> ../unibus y de fn-registry -> ../../../.. (paths relativos reajustados a la nueva ubicacion dentro de fn_registry). - app.md: bump a 0.2.0, descripcion + arquitectura + comandos + gotchas reales. - modulo Go conservado como github.com/enmanuel/agents (sin reescribir imports). agents_and_robots queda archivado como museo de la era Matrix.
72 lines
1.7 KiB
Markdown
72 lines
1.7 KiB
Markdown
# Template: config.yaml para robots
|
|
|
|
Config minimalista para robots (command-only, sin LLM).
|
|
|
|
## Template base
|
|
|
|
```yaml
|
|
# ============================================
|
|
# ROBOT: <bot-id>
|
|
# ============================================
|
|
|
|
agent:
|
|
id: "<bot-id>"
|
|
name: "<display-name>"
|
|
version: "1.0.0"
|
|
type: robot
|
|
enabled: true
|
|
description: "<description>"
|
|
tags: [robot]
|
|
|
|
# ============================================
|
|
# PERSONALIDAD (minima para robots)
|
|
# ============================================
|
|
personality:
|
|
prefix: "<emoji>"
|
|
language: es
|
|
|
|
# ============================================
|
|
# MATRIX
|
|
# ============================================
|
|
matrix:
|
|
homeserver: "https://matrix-af2f3d.organic-machine.com"
|
|
user_id: "@<bot-id>:matrix-af2f3d.organic-machine.com"
|
|
access_token_env: MATRIX_TOKEN_<NORM>
|
|
device_id: "<BOT-ID>"
|
|
|
|
encryption:
|
|
enabled: true
|
|
store_path: "./agents/<bot-id>/data/crypto/"
|
|
pickle_key_env: PICKLE_KEY_<NORM>
|
|
trust_mode: tofu
|
|
recovery_key_env: SSSS_RECOVERY_KEY_<NORM>
|
|
|
|
rooms:
|
|
listen: []
|
|
respond: []
|
|
admin: []
|
|
|
|
filters:
|
|
command_prefix: "!"
|
|
mention_respond: false
|
|
dm_respond: false
|
|
ignore_bots: true
|
|
ignore_users: []
|
|
unauthorized_response: silent
|
|
min_power_level: 0
|
|
|
|
threads:
|
|
enabled: true
|
|
auto_thread: false
|
|
```
|
|
|
|
## Regla de normalizacion de env vars
|
|
|
|
`<NORM>` = bot-id en mayusculas, guiones → underscores. **Nunca eliminar sufijos.**
|
|
|
|
| bot-id | NORM | Ejemplo env var |
|
|
|--------|------|-----------------|
|
|
| `ping-bot` | `PING_BOT` | `MATRIX_TOKEN_PING_BOT` |
|
|
| `monitor` | `MONITOR` | `MATRIX_TOKEN_MONITOR` |
|
|
| `mi-bot-2` | `MI_BOT_2` | `MATRIX_TOKEN_MI_BOT_2` |
|