#!/bin/sh
set -eu

export HWLAB_SERVICE_ID="${HWLAB_SERVICE_ID:-opencode-provider-proxy}"
export HWLAB_ENVIRONMENT="${HWLAB_ENVIRONMENT:-v03}"
export HWLAB_COMMIT_ID="${HWLAB_BOOT_COMMIT:-${HWLAB_COMMIT_ID:-unknown}}"
export HWLAB_REVISION="${HWLAB_BOOT_COMMIT:-${HWLAB_REVISION:-$HWLAB_COMMIT_ID}}"
export PORT="${PORT:-${HWLAB_OPENCODE_PROVIDER_PROXY_PORT:-4097}}"

exec node internal/dev-entrypoint/opencode-provider-proxy.mjs
