feat: add main agent runtime flow v1

This commit is contained in:
kris
2026-03-29 18:25:39 +08:00
parent ccbe6ca565
commit 30e37e5ce1
6 changed files with 845 additions and 5 deletions

View File

@@ -71,7 +71,13 @@ need_cmd() {
need_cmd python3
need_cmd security
need_cmd rsync
need_cmd docker
if [ "$DEPLOY_MODE" = "prebuilt_local" ]; then
if ! command -v docker >/dev/null 2>&1 || ! docker info >/dev/null 2>&1; then
echo "[deploy] local Docker unavailable, fallback to remote_build" >&2
DEPLOY_MODE="remote_build"
fi
fi
shell_quote() {
python3 - "$1" <<'PY'