Files
gh-jezweb-claude-skills-ski…/scripts/check-versions.sh
2025-11-30 08:24:54 +08:00

54 lines
1.3 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Check Google GenAI SDK and dependencies versions
# Usage: ./scripts/check-versions.sh
echo "🔍 Checking package versions for google-gemini-embeddings skill..."
echo ""
# Check if npm is available
if ! command -v npm &> /dev/null; then
echo "❌ npm not found. Please install Node.js first."
exit 1
fi
# Check @google/genai
echo "📦 @google/genai"
CURRENT=$(npm view @google/genai version 2>/dev/null)
if [ $? -eq 0 ]; then
echo " Latest: $CURRENT"
echo " Skill tested with: 1.27.0"
if [ "$CURRENT" != "1.27.0" ]; then
echo " ⚠️ New version available. Consider testing and updating skill."
else
echo " ✅ Up to date"
fi
else
echo " ❌ Error checking version"
fi
echo ""
# Check TypeScript
echo "📦 typescript"
CURRENT=$(npm view typescript version 2>/dev/null)
if [ $? -eq 0 ]; then
echo " Latest: $CURRENT"
echo " Skill tested with: 5.6.0"
if [ "$CURRENT" != "5.6.0" ]; then
echo " TypeScript version is different. Usually not breaking."
else
echo " ✅ Up to date"
fi
else
echo " ❌ Error checking version"
fi
echo ""
echo "✨ Version check complete!"
echo ""
echo "To install/update packages:"
echo " npm install @google/genai@latest typescript@latest"