#!/usr/bin/env bash
# Prints AWS CLI and agentcore versions. Does not call Bedrock or deploy anything.
set -euo pipefail

if command -v aws >/dev/null 2>&1; then
  aws --version
else
  echo "aws=absent"
fi

if command -v agentcore >/dev/null 2>&1; then
  v="$(agentcore --version)"
  echo "agentcore=$v"
  case "$v" in
    0.*) echo "warn=agentcore 0.x; 1.0 renamed commands. Upgrade, then run agentcore migrate in each project." ;;
  esac
else
  echo "agentcore=absent"
fi

echo "lab=ok"
