refactor: mover runtime Go de agents/ a devagents/

agents/ ahora solo contiene carpetas de agentes (config, reglas, prompts).
El runtime (Agent, Robot, Runner, registry, handler, commands, llm, memory)
vive en devagents/ como package devagents.

Cambios:
- git mv agents/*.go → devagents/*.go
- package agents → package devagents en todos los archivos movidos
- Actualizar imports en agents/*/agent.go, cmd/launcher/, dev-scripts/
- Actualizar docs: CLAUDE.md, rules/, docs/e2ee.md, issues pendientes

Build y tests pasan sin errores.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 21:19:25 +00:00
parent 52d5632d89
commit bd0c8c0dd3
30 changed files with 61 additions and 59 deletions
+8 -7
View File
@@ -9,10 +9,11 @@ Monorepo Go para bots Matrix autonomos. Modulo: `github.com/enmanuel/agents`.
### 1. Functional PRogramming: Pure core / Impure shell
```
pkg/ → PURO: tipos, funciones puras, cero side effects
shell/ → IMPURO: todo I/O (Matrix, LLM, SSH, filesystem)
agents/ composicion: reglas puras + ensamblado con shell
tools/ → Def (puro) + Exec (impuro)
pkg/ → PURO: tipos, funciones puras, cero side effects
shell/ → IMPURO: todo I/O (Matrix, LLM, SSH, filesystem)
devagents/ → runtime: Agent/Robot ensambla core + shell
agents/ reglas puras por agente + config.yaml + prompts
tools/ → Def (puro) + Exec (impuro)
```
**Nunca** side effects en `pkg/`. El core produce `[]decision.Action` (datos puros), el shell los interpreta.
@@ -56,9 +57,9 @@ shell/mcp/ cliente y servidor MCP (Model Context Protocol)
shell/skills/ loader (filesystem) + executor (scripts)
shell/effects/ Runner: []Action → side effects
shell/bus/ comunicacion inter-agente
agents/types.go Runner interface (comun a Agent y Robot)
agents/runtime.go Agent{}: ensambla core + shell (runtime completo con LLM)
agents/robot.go Robot{}: runtime ligero command-only (sin LLM, reglas, memoria)
devagents/types.go Runner interface (comun a Agent y Robot)
devagents/runtime.go Agent{}: ensambla core + shell (runtime completo con LLM)
devagents/robot.go Robot{}: runtime ligero command-only (sin LLM, reglas, memoria)
agents/<id>/ agent.go (reglas puras) + config.yaml + prompts/system.md
tools/ tool registry + tool implementations (subpackages)
tools/mcptools/ bridge: convierte MCP tools → tools.Tool