feat: add agent air start

This commit is contained in:
engigu
2026-02-10 15:57:19 +08:00
parent cb74c421e5
commit 0527f9883c
5 changed files with 120 additions and 6 deletions
+11 -2
View File
@@ -76,12 +76,21 @@ run:
# Development run with hot reload (both frontend and backend)
dev:
@command -v air > /dev/null 2>&1 || go install github.com/air-verse/air@latest
@command -v concurrently > /dev/null 2>&1 || npm install -g concurrently
concurrently --kill-others \
"air" \
"go tool air" \
"cd web && npm run dev"
# Run agent with hot reload
agent-dev:
go tool air -c agent.air.toml
# Run agent
agent-run:
@mkdir -p bin
$(GOBUILD) -o bin/baihu-agent ./agent
./bin/baihu-agent run -c ../agent/config.ini
# Install dependencies
deps:
$(GOMOD) tidy