#!/bin/sh
set -eu

export HWLAB_SERVICE_ID=hwlab-tasktree-worker
export HWLAB_SERVICE_ENTRYPOINT=cmd/hwlab-tasktree-worker/main.ts
export TASKTREE_WORKER_HEALTH_PORT="${TASKTREE_WORKER_HEALTH_PORT:-6674}"
export PORT="$TASKTREE_WORKER_HEALTH_PORT"

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