mirror of
https://github.com/supabase/agent-skills.git
synced 2026-03-27 10:09:26 +08:00
Host now only needs Docker + ANTHROPIC_API_KEY to run evals. Adds multi-stage Dockerfile, mock supabase/docker/psql scripts, entrypoint, docker-compose for local use, and switches CI to Docker-based execution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
628 B
Bash
Executable File
28 lines
628 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Mock Docker CLI for eval environments.
|
|
# Returns success for common commands the agent may invoke.
|
|
set -euo pipefail
|
|
|
|
CMD="${1:-}"
|
|
shift || true
|
|
|
|
case "$CMD" in
|
|
ps)
|
|
echo "CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES"
|
|
;;
|
|
exec)
|
|
# Consume flags until we hit something that isn't a flag
|
|
while [[ "${1:-}" == -* ]]; do shift || true; done
|
|
# Remaining args are container + command — just succeed silently
|
|
;;
|
|
info)
|
|
echo "Server Version: 24.0.0 (mock)"
|
|
;;
|
|
compose)
|
|
echo "docker compose: ok"
|
|
;;
|
|
*)
|
|
# Default: succeed silently
|
|
;;
|
|
esac
|