bd8e1432e5
- 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.
28 lines
759 B
Bash
Executable File
28 lines
759 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# list.sh — muestra todos los agentes y su estado actual
|
|
# Uso: ./dev-scripts/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)
|