#!/bin/bash
# Package Pro Kit skill files into a ZIP for R2 upload
set -e

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILLS_DIR="$SCRIPT_DIR/skills"
OUTPUT="$SCRIPT_DIR/kodadocs-pro-kit.zip"

echo "Packaging Pro Kit skills..."
cd "$SKILLS_DIR"
zip -r "$OUTPUT" . -x ".*"
cd -

echo "Created: $OUTPUT"
echo "Upload to R2: npx wrangler r2 object put kodadocs-sites/pro-kit/kodadocs-pro-kit.zip --file=$OUTPUT"
