update lock clucknut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
Build, Push and Deploy / build-and-push (push) Successful in 3m14s
Build, Push and Deploy / deploy-staging (push) Successful in 25s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 20:32:18 +07:00
parent 4554035227
commit dcaf267458
3359 changed files with 153185 additions and 205489 deletions

79
vendor/laravel/sail/bin/sail vendored Normal file → Executable file
View File

@@ -153,6 +153,7 @@ export SAIL_SHARE_SERVER_PORT=${SAIL_SHARE_SERVER_PORT:-8080}
export SAIL_SHARE_SUBDOMAIN=${SAIL_SHARE_SUBDOMAIN:-""}
export SAIL_SHARE_DOMAIN=${SAIL_SHARE_DOMAIN:-"$SAIL_SHARE_SERVER_HOST"}
export SAIL_SHARE_SERVER=${SAIL_SHARE_SERVER:-""}
export SAIL_DOCKER_BINARY=${SAIL_DOCKER_BINARY:-"docker"}
# Function that outputs Sail is not running...
function sail_is_not_running {
@@ -163,11 +164,41 @@ function sail_is_not_running {
exit 1
}
# AI agent environment variables to forward into containers...
AGENT_ENV_VARS=(
AI_AGENT
CLAUDECODE
CLAUDE_CODE
CURSOR_TRACE_ID
CURSOR_AGENT
GEMINI_CLI
CODEX_SANDBOX
CODEX_CI
CODEX_THREAD_ID
AUGMENT_AGENT
OPENCODE_CLIENT
OPENCODE
AMP_CURRENT_THREAD_ID
REPL_ID
ANTIGRAVITY_AGENT
COPILOT_MODEL
COPILOT_CLI
PI_CODING_AGENT
)
function forward_agent_env() {
for VAR in "${AGENT_ENV_VARS[@]}"; do
if [ -n "${!VAR:-}" ]; then
ARGS+=(-e "${VAR}=${!VAR}")
fi
done
}
# Define Docker Compose command prefix...
if docker compose &> /dev/null; then
DOCKER_COMPOSE=(docker compose)
if ${SAIL_DOCKER_BINARY} compose &> /dev/null; then
COMPOSE_CMD=(${SAIL_DOCKER_BINARY} compose)
else
DOCKER_COMPOSE=(docker-compose)
COMPOSE_CMD=(${SAIL_DOCKER_BINARY}-compose)
fi
if [ -n "$SAIL_FILES" ]; then
@@ -176,7 +207,7 @@ if [ -n "$SAIL_FILES" ]; then
for FILE in "${SAIL_FILES[@]}"; do
if [ -f "$FILE" ]; then
DOCKER_COMPOSE+=(-f "$FILE")
COMPOSE_CMD+=(-f "$FILE")
else
echo "${BOLD}Unable to find Docker Compose file: '${FILE}'${NC}" >&2
@@ -189,20 +220,20 @@ EXEC="yes"
if [ -z "$SAIL_SKIP_CHECKS" ]; then
# Ensure that Docker is running...
if ! docker info > /dev/null 2>&1; then
echo "${BOLD}Docker is not running.${NC}" >&2
if ! ${SAIL_DOCKER_BINARY} info > /dev/null 2>&1; then
echo "${BOLD}Docker or Podman is not running.${NC}" >&2
exit 1
fi
# Determine if Sail is currently up...
if "${DOCKER_COMPOSE[@]}" ps "$APP_SERVICE" 2>&1 | grep 'Exit\|exited'; then
if "${COMPOSE_CMD[@]}" ps "$APP_SERVICE" 2>&1 | grep 'Exit\|exited'; then
echo "${BOLD}Shutting down old Sail processes...${NC}" >&2
"${DOCKER_COMPOSE[@]}" down > /dev/null 2>&1
"${COMPOSE_CMD[@]}" down > /dev/null 2>&1
EXEC="no"
elif [ -z "$("${DOCKER_COMPOSE[@]}" ps -q)" ]; then
elif [ -z "$("${COMPOSE_CMD[@]}" ps -q)" ]; then
EXEC="no"
fi
fi
@@ -216,6 +247,7 @@ if [ "$1" == "php" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" "php")
else
sail_is_not_running
@@ -230,6 +262,7 @@ elif [ "$1" == "bin" ]; then
shift 1
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" ./vendor/bin/"$CMD")
else
sail_is_not_running
@@ -244,6 +277,7 @@ elif [ "$1" == "run" ]; then
shift 1
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" "$CMD")
else
sail_is_not_running
@@ -256,7 +290,8 @@ elif [ "$1" == "docker-compose" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
ARGS+=("$APP_SERVICE" "${DOCKER_COMPOSE[@]}")
forward_agent_env
ARGS+=("$APP_SERVICE" "${COMPOSE_CMD[@]}")
else
sail_is_not_running
fi
@@ -268,6 +303,7 @@ elif [ "$1" == "composer" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" "composer")
else
sail_is_not_running
@@ -280,6 +316,7 @@ elif [ "$1" == "artisan" ] || [ "$1" == "art" ] || [ "$1" == "a" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php artisan)
else
sail_is_not_running
@@ -292,6 +329,7 @@ elif [ "$1" == "debug" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER" -e XDEBUG_TRIGGER=1)
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php artisan)
else
sail_is_not_running
@@ -304,6 +342,7 @@ elif [ "$1" == "test" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php artisan test)
else
sail_is_not_running
@@ -316,6 +355,7 @@ elif [ "$1" == "phpunit" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php vendor/bin/phpunit)
else
sail_is_not_running
@@ -328,6 +368,7 @@ elif [ "$1" == "pest" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php vendor/bin/pest)
else
sail_is_not_running
@@ -340,6 +381,7 @@ elif [ "$1" == "pint" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php vendor/bin/pint)
else
sail_is_not_running
@@ -352,6 +394,7 @@ elif [ "$1" == "dusk" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=(-e "APP_URL=http://${APP_SERVICE}")
ARGS+=(-e "DUSK_DRIVER_URL=http://selenium:4444/wd/hub")
ARGS+=("$APP_SERVICE" php artisan dusk)
@@ -366,6 +409,7 @@ elif [ "$1" == "dusk:fails" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=(-e "APP_URL=http://${APP_SERVICE}")
ARGS+=(-e "DUSK_DRIVER_URL=http://selenium:4444/wd/hub")
ARGS+=("$APP_SERVICE" php artisan dusk:fails)
@@ -380,6 +424,7 @@ elif [ "$1" == "tinker" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" php artisan tinker)
else
sail_is_not_running
@@ -392,6 +437,7 @@ elif [ "$1" == "node" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" node)
else
sail_is_not_running
@@ -404,6 +450,7 @@ elif [ "$1" == "npm" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" npm)
else
sail_is_not_running
@@ -416,6 +463,7 @@ elif [ "$1" == "npx" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" npx)
else
sail_is_not_running
@@ -428,6 +476,7 @@ elif [ "$1" == "pnpm" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" pnpm)
else
sail_is_not_running
@@ -440,6 +489,7 @@ elif [ "$1" == "pnpx" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" pnpx)
else
sail_is_not_running
@@ -452,6 +502,7 @@ elif [ "$1" == "yarn" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" yarn)
else
sail_is_not_running
@@ -464,6 +515,7 @@ elif [ "$1" == "bun" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" bun)
else
sail_is_not_running
@@ -476,6 +528,7 @@ elif [ "$1" == "bunx" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" bunx)
else
sail_is_not_running
@@ -527,6 +580,7 @@ elif [ "$1" == "shell" ] || [ "$1" == "bash" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u "$APP_USER")
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" bash)
else
sail_is_not_running
@@ -539,6 +593,7 @@ elif [ "$1" == "root-shell" ] || [ "$1" == "root-bash" ]; then
if [ "$EXEC" == "yes" ]; then
ARGS+=(exec -u root)
[ ! -t 0 ] && ARGS+=(-T)
forward_agent_env
ARGS+=("$APP_SERVICE" bash)
else
sail_is_not_running
@@ -585,7 +640,7 @@ elif [ "$1" == "share" ]; then
shift 1
if [ "$EXEC" == "yes" ]; then
docker run --init --rm --add-host=host.docker.internal:host-gateway -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \
${SAIL_DOCKER_BINARY} run --init --rm --add-host=host.docker.internal:host-gateway -p "$SAIL_SHARE_DASHBOARD":4040 -t beyondcodegmbh/expose-server:latest share http://host.docker.internal:"$APP_PORT" \
--server-host="$SAIL_SHARE_SERVER_HOST" \
--server-port="$SAIL_SHARE_SERVER_PORT" \
--auth="$SAIL_SHARE_TOKEN" \
@@ -629,4 +684,4 @@ elif [ "$1" == "open" ]; then
fi
# Run Docker Compose with the defined arguments...
"${DOCKER_COMPOSE[@]}" "${ARGS[@]}" "$@"
"${COMPOSE_CMD[@]}" "${ARGS[@]}" "$@"