#!/usr/bin/env bash
# QEN Project Wrapper - Auto-generated by qen init
# This script ensures qen commands run in the context of this project
# even if you have multiple projects configured.
#
# Project: ${project_name}
# Branch: ${branch_name}
# Created: ${date}

# Resolve the directory containing this script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

# Project configuration
META_PATH="${meta_path}"
PROJECT_NAME="${project_name}"

# Run qen with project context using uvx
# This ensures we always use the latest qen version with the correct project settings
exec uvx qen --meta "$META_PATH" --proj "$PROJECT_NAME" "$@"
