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.
35 lines
623 B
Bash
Executable File
35 lines
623 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export PATH="/usr/local/go/bin:$PATH"
|
|
|
|
BIN="bin"
|
|
TAGS="-tags goolm"
|
|
LDFLAGS="-ldflags=-s -w"
|
|
|
|
mkdir -p "$BIN"
|
|
|
|
echo "==> Ejecutando tests..."
|
|
go test $TAGS ./...
|
|
echo ""
|
|
|
|
echo "==> Compilando todos los binarios en $BIN/ ..."
|
|
|
|
targets=(
|
|
"launcher:./cmd/launcher"
|
|
"agentctl:./cmd/agentctl"
|
|
"register:./cmd/register"
|
|
"dashboard:./cmd/dashboard"
|
|
)
|
|
|
|
for entry in "${targets[@]}"; do
|
|
name="${entry%%:*}"
|
|
pkg="${entry##*:}"
|
|
echo " $name"
|
|
go build $TAGS "$LDFLAGS" -o "$BIN/$name" "$pkg"
|
|
done
|
|
|
|
echo ""
|
|
echo "==> Listo. Binarios disponibles:"
|
|
ls -lh "$BIN"/
|