@@ -138,13 +138,13 @@ start_agent() {
138138
139139 if [ " $BUILD_CLI " = true ]; then
140140 # Use wheel from dist directory at repo root
141- local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
142- if [[ -z " $wheel_file " ]]; then
143- echo -e " ${RED} ❌ No built wheel found in dist/agentex_sdk-*.whl${NC} "
144- echo -e " ${YELLOW} 💡 Please build the local SDK first by running: uv build${NC} "
145- echo -e " ${YELLOW} 💡 From the repo root directory${NC} "
146- cd " $original_dir "
147- return 1
141+ local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
142+ if [[ -z " $wheel_file " ]]; then
143+ echo -e " ${RED} ❌ No built wheel found in dist/agentex_sdk-*.whl${NC} "
144+ echo -e " ${YELLOW} 💡 Please build the local SDK first by running: uv build${NC} "
145+ echo -e " ${YELLOW} 💡 From the repo root directory${NC} "
146+ cd " $original_dir "
147+ return 1
148148 fi
149149 fi
150150
@@ -159,7 +159,7 @@ start_agent() {
159159 cd " $repo_root " || return 1
160160 if [ " $BUILD_CLI " = true ]; then
161161 local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
162- # Use the built wheel
162+ # Use the built wheel
163163 uv run --with " $wheel_file " agentex agents run --manifest " $abs_manifest " > " $logfile " 2>&1 &
164164 else
165165 uv run agentex agents run --manifest " $abs_manifest " > " $logfile " 2>&1 &
@@ -172,7 +172,7 @@ start_agent() {
172172 cd " $tutorial_path " || return 1
173173 if [ " $BUILD_CLI " = true ]; then
174174 local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
175- # Use the built wheel
175+ # Use the built wheel
176176 uv run --with " $wheel_file " agentex agents run --manifest manifest.yaml > " $logfile " 2>&1 &
177177 else
178178 uv run agentex agents run --manifest manifest.yaml > " $logfile " 2>&1 &
@@ -371,36 +371,36 @@ execute_tutorial_test() {
371371 fi
372372}
373373
374- # Function to check if built wheel is available
375- check_built_wheel () {
376-
377- # Navigate to the repo root (two levels up from examples/tutorials)
378- local repo_root=" ../../"
379- local original_dir=" $PWD "
380-
381- cd " $repo_root " || {
382- echo -e " ${RED} ❌ Failed to navigate to repo root${NC} "
383- return 1
384- }
385-
386- # Check if wheel exists in dist directory at repo root
387- local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
388- if [[ -z " $wheel_file " ]]; then
389- echo -e " ${RED} ❌ No built wheel found in dist/agentex_sdk-*.whl${NC} "
390- echo -e " ${YELLOW} 💡 Please build the local SDK first by running: uv build${NC} "
391- echo -e " ${YELLOW} 💡 From the repo root directory${NC} "
392- cd " $original_dir "
393- return 1
394- fi
395-
396- # Test the wheel by running agentex --help
397- if ! uv run --with " $wheel_file " agentex --help > /dev/null 2>&1 ; then
398- echo -e " ${RED} ❌ Failed to run agentex with built wheel${NC} "
399- cd " $original_dir "
400- return 1
401- fi
402- cd " $original_dir "
403- return 0
374+ # Function to check if built wheel is available
375+ check_built_wheel () {
376+
377+ # Navigate to the repo root (two levels up from examples/tutorials)
378+ local repo_root=" ../../"
379+ local original_dir=" $PWD "
380+
381+ cd " $repo_root " || {
382+ echo -e " ${RED} ❌ Failed to navigate to repo root${NC} "
383+ return 1
384+ }
385+
386+ # Check if wheel exists in dist directory at repo root
387+ local wheel_file=$( ls /home/runner/work/* /* /dist/agentex_sdk-* .whl 2> /dev/null | head -n1)
388+ if [[ -z " $wheel_file " ]]; then
389+ echo -e " ${RED} ❌ No built wheel found in dist/agentex_sdk-*.whl${NC} "
390+ echo -e " ${YELLOW} 💡 Please build the local SDK first by running: uv build${NC} "
391+ echo -e " ${YELLOW} 💡 From the repo root directory${NC} "
392+ cd " $original_dir "
393+ return 1
394+ fi
395+
396+ # Test the wheel by running agentex --help
397+ if ! uv run --with " $wheel_file " agentex --help > /dev/null 2>&1 ; then
398+ echo -e " ${RED} ❌ Failed to run agentex with built wheel${NC} "
399+ cd " $original_dir "
400+ return 1
401+ fi
402+ cd " $original_dir "
403+ return 0
404404}
405405
406406# Main execution function
@@ -430,7 +430,7 @@ main() {
430430
431431 # Check prerequisites
432432 check_prerequisites
433-
433+
434434 # Check built wheel if requested
435435 if [ " $BUILD_CLI " = true ]; then
436436 if ! check_built_wheel; then
0 commit comments