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:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
# list.sh — muestra todos los agentes y su estado actual
|
||||
# Uso: ./dev-scripts/agent/list.sh
|
||||
|
||||
source "$(dirname "$0")/../_common.sh"
|
||||
|
||||
printf "%-22s %-12s %-8s %s\n" "ID" "STATUS" "VERSION" "DESCRIPTION"
|
||||
printf '%s\n' "$(printf '─%.0s' {1..70})"
|
||||
|
||||
while IFS='|' read -r id version enabled desc _cfg; do
|
||||
status=$(agent_status "$id" "$enabled")
|
||||
|
||||
case "$status" in
|
||||
running) label="${GRN}● running${RST}" ;;
|
||||
stopped) label="${DIM}○ stopped${RST}" ;;
|
||||
disabled) label="${YLW} disabled${RST}" ;;
|
||||
*) label="$status" ;;
|
||||
esac
|
||||
|
||||
# Truncate description
|
||||
[[ ${#desc} -gt 38 ]] && desc="${desc:0:37}…"
|
||||
|
||||
printf "%-22s " "$id"
|
||||
printf "${label}"
|
||||
printf " %-8s %s\n" "$version" "$desc"
|
||||
|
||||
done < <(list_agents_raw)
|
||||
Reference in New Issue
Block a user