#!/bin/sh
set -eu

export HWLAB_SERVICE_ID=hwlab-harnessrl-worker
export HWLAB_SERVICE_ENTRYPOINT=cmd/hwlab-harnessrl-worker/main.ts
export HARNESSRL_WORKER_HEALTH_PORT="${HARNESSRL_WORKER_HEALTH_PORT:-6676}"
export PORT="$HARNESSRL_WORKER_HEALTH_PORT"

exec "${HWLAB_BUN_COMMAND:-bun}" run cmd/hwlab-harnessrl-worker/main.ts
