mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
Consolidate all Hanzo agent infrastructure into one repo: - control-plane/: Go control plane server (was agents-new) - sdk/: Go, Python, TypeScript SDKs - deployments/: Docker, Kubernetes, Helm configs - Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest) - CI builds both SDK + control-plane images No more agentfield — everything is hanzoai/agent.
32 lines
790 B
Bash
Executable File
32 lines
790 B
Bash
Executable File
#!/bin/bash
|
|
# Start control plane with hot-reload using Air
|
|
#
|
|
# Usage:
|
|
# ./dev.sh # Start with hot-reload (SQLite mode)
|
|
# ./dev.sh postgres # Start with PostgreSQL (set HANZO_AGENTS_DATABASE_URL first)
|
|
#
|
|
# Prerequisites:
|
|
# go install github.com/air-verse/[email protected]
|
|
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
# Check if air is installed
|
|
if ! command -v air &> /dev/null; then
|
|
echo "Air not found. Installing..."
|
|
go install github.com/air-verse/[email protected]
|
|
fi
|
|
|
|
case "${1:-}" in
|
|
postgres|pg)
|
|
echo "Starting control plane with PostgreSQL (hot-reload)..."
|
|
export HANZO_AGENTS_STORAGE_MODE=postgresql
|
|
air -c .air.toml
|
|
;;
|
|
*)
|
|
echo "Starting control plane with SQLite (hot-reload)..."
|
|
export HANZO_AGENTS_STORAGE_MODE=local
|
|
air -c .air.toml
|
|
;;
|
|
esac
|