feat: import agents_and_robots platform as unibots (Matrix-out, unibus transport)

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.
This commit is contained in:
agent
2026-06-07 11:50:13 +02:00
parent bb5b0e09b1
commit fc644ecd6e
308 changed files with 38829 additions and 474 deletions
+49
View File
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
# start.sh — inicia el launcher unificado (todos los agentes habilitados)
#
# Uso:
# ./dev-scripts/server/start.sh # inicia el launcher unificado
source "$(dirname "$0")/../_common.sh"
load_env
if is_launcher_running; then
pid="$(read_launcher_pid)"
fail "El launcher ya está corriendo (PID $pid). Usa restart.sh para reiniciar."
fi
BIN="$REPO_ROOT/bin/launcher"
LOG="$(launcher_log_file)"
PID_F="$(launcher_pid_file)"
# Always rebuild — Go is fast and avoids stale binaries from changes in pkg/, agents/, etc.
info "Ejecutando tests..."
"$GO" test -tags goolm ./... || fail "Tests fallaron — corrige antes de compilar"
info "Compilando launcher..."
mkdir -p "$(dirname "$BIN")"
"$GO" build -tags goolm -o "$BIN" ./cmd/launcher || fail "Error de compilación"
info "Iniciando launcher unificado..."
nohup "$BIN" --log-level "${LOG_LEVEL:-info}" \
>> "$LOG" 2>&1 &
pid=$!
echo "$pid" > "$PID_F"
sleep 1
if kill -0 "$pid" 2>/dev/null; then
# Count enabled agents
enabled=0
total=0
while IFS='|' read -r _id _v en _d _c; do
((total++)) || true
[[ "$en" == "true" ]] && ((enabled++)) || true
done < <(list_agents_raw)
ok "Launcher PID $pid ($enabled/$total agentes habilitados) → logs: $LOG"
else
rm -f "$PID_F"
fail "Launcher arrancó pero murió — revisa: tail -f $LOG"
fi