#!/usr/bin/env bash
set -euo pipefail

ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT"

if ! command -v pi >/dev/null 2>&1; then
  echo "skip: pi not installed"
  exit 0
fi

pi --list-models cline 2>&1 | grep -q "z-ai/glm-5.3-flash"
echo "smoke ok: cline provider lists glm-5.3-flash"
