From 262b1374dc5239c9fdc4e7e0f756120e1597423d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Oct 2025 04:44:24 +0000 Subject: [PATCH 2/2] Add generate_rollouts.sh script with executable permissions Co-authored-by: sahiixx <221578902+sahiixx@users.noreply.github.com> --- generate_rollouts.sh | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 generate_rollouts.sh diff --git a/generate_rollouts.sh b/generate_rollouts.sh new file mode 100755 index 00000000..0356a712 --- /dev/null +++ b/generate_rollouts.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +# Generate Rollouts Script +# This script generates a summary of all system prompts and AI tool configurations in the repository + +echo "==================================" +echo "System Prompts and Models Rollout" +echo "==================================" +echo "" +echo "Generating rollout summary..." +echo "" + +# Initialize counters +total_dirs=0 +total_files=0 + +# Function to count files in a directory +count_files() { + local dir="$1" + local count=$(find "$dir" -type f \( -name "*.txt" -o -name "*.md" -o -name "*.json" \) 2>/dev/null | wc -l) + echo "$count" +} + +# Main directories to scan (excluding .git, .github, node_modules, etc.) +echo "📊 Scanning repository structure..." +echo "" + +for dir in */ ; do + # Skip hidden directories, site, and node_modules + if [[ "$dir" == "." || "$dir" == ".git/" || "$dir" == ".github/" || "$dir" == "site/" || "$dir" == "node_modules/" ]]; then + continue + fi + + # Count files in this directory + file_count=$(count_files "$dir") + + if [ $file_count -gt 0 ]; then + total_dirs=$((total_dirs + 1)) + total_files=$((total_files + file_count)) + echo "📁 $dir - $file_count files" + fi +done + +echo "" +echo "==================================" +echo "📈 Summary:" +echo " Total Directories: $total_dirs" +echo " Total Files: $total_files" +echo "==================================" +echo "" +echo "✅ Rollout generation complete!" +echo "" +echo "To view specific system prompts, navigate to the respective directories." +echo "For more information, see README.md"