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:
@@ -0,0 +1,62 @@
|
||||
BIN := bin
|
||||
TAGS := -tags goolm
|
||||
LDFLAGS := -ldflags="-s -w"
|
||||
|
||||
.PHONY: build build-launcher build-agentctl build-register \
|
||||
test ci \
|
||||
list start stop remove register \
|
||||
clean tidy
|
||||
|
||||
# ── Test ───────────────────────────────────────────────────────────────────
|
||||
|
||||
test:
|
||||
go test $(TAGS) ./...
|
||||
|
||||
# ── Build ──────────────────────────────────────────────────────────────────
|
||||
|
||||
ci: test build
|
||||
|
||||
build: build-launcher build-agentctl build-register
|
||||
|
||||
build-launcher:
|
||||
@mkdir -p $(BIN)
|
||||
go build $(TAGS) $(LDFLAGS) -o $(BIN)/launcher ./cmd/launcher
|
||||
|
||||
build-agentctl:
|
||||
@mkdir -p $(BIN)
|
||||
go build $(TAGS) $(LDFLAGS) -o $(BIN)/agentctl ./cmd/agentctl
|
||||
|
||||
build-register:
|
||||
@mkdir -p $(BIN)
|
||||
go build $(TAGS) $(LDFLAGS) -o $(BIN)/register ./cmd/register
|
||||
|
||||
# ── Agent management (shortcuts via agentctl) ──────────────────────────────
|
||||
|
||||
list:
|
||||
@go run ./cmd/agentctl list
|
||||
|
||||
start:
|
||||
@go run ./cmd/agentctl start $(AGENT)
|
||||
|
||||
stop:
|
||||
@go run ./cmd/agentctl stop $(AGENT)
|
||||
|
||||
remove:
|
||||
@go run ./cmd/agentctl remove $(AGENT)
|
||||
|
||||
# Usage: make register USERNAME=assistant-bot DISPLAYNAME="Assistant" ENV_VAR=MATRIX_TOKEN_ASSISTANT
|
||||
register:
|
||||
MATRIX_ADMIN_TOKEN=$$MATRIX_ADMIN_TOKEN \
|
||||
go run ./cmd/register \
|
||||
--homeserver $$MATRIX_HOMESERVER \
|
||||
--username $(USERNAME) \
|
||||
--displayname "$(DISPLAYNAME)" \
|
||||
--env-var $(ENV_VAR)
|
||||
|
||||
# ── Dev ────────────────────────────────────────────────────────────────────
|
||||
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
clean:
|
||||
rm -rf $(BIN) run/
|
||||
Reference in New Issue
Block a user