Initial fleet skill

This commit is contained in:
Azat
2026-02-03 00:46:40 +01:00
commit bc2f2e89ed
23 changed files with 777 additions and 0 deletions

30
scripts/autorun.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
set -e
SKILL_DIR="$(dirname "$(dirname "$0")")"
UI_DIR="$SKILL_DIR/ui"
echo "=== Fleet Dashboard Setup ==="
# Check for Node.js
if ! command -v node &>/dev/null; then
echo "Installing Node.js..."
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
fi
echo "Node.js version: $(node --version)"
echo "npm version: $(npm --version)"
# Install UI dependencies
cd "$UI_DIR"
if [ ! -d "node_modules" ]; then
echo "Installing UI dependencies..."
npm install
fi
# Build UI
echo "Building UI..."
npm run build
echo "Fleet Dashboard setup complete"