diff --git a/.windsurf/workflows/repo_backup-and-push.md b/.windsurf/workflows/repo_backup-and-push.md index e05b7634..0a27ca22 100644 --- a/.windsurf/workflows/repo_backup-and-push.md +++ b/.windsurf/workflows/repo_backup-and-push.md @@ -18,10 +18,11 @@ Run `bash scripts/backup-main.sh` from any repository root // turbo ```bash -for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do +while IFS= read -r repo; do + [[ -z "$repo" || "$repo" =~ ^# ]] && continue echo "━━━ Pushing $repo ━━━" (cd ~/code/mygh/$repo && git push origin main 2>&1) -done +done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt echo "" echo "✨ All repos pushed!" ``` @@ -33,13 +34,7 @@ echo "✨ All repos pushed!" ## Repositories: -- learning_ai_common_plat -- learning_voice_ai_agent -- learning_multimodal_memory_agents -- learning_ai_clock -- learning_ai_fastgap -- learning_ai_jarvis_jr -- learning_ai_peakpulse +See `repos.txt` for the canonical list of all workspace repositories. ## When to use: diff --git a/.windsurf/workflows/repo_backup-main-branch.md b/.windsurf/workflows/repo_backup-main-branch.md index 1bae9e93..451cbd03 100644 --- a/.windsurf/workflows/repo_backup-main-branch.md +++ b/.windsurf/workflows/repo_backup-main-branch.md @@ -9,6 +9,8 @@ Creates smart backups of main branches across all repositories. // turbo Run `bash scripts/backup-main.sh` from any repository root +The script reads `repos.txt` to determine which repositories to back up. + ## What it does: 1. Checks each repository for changes @@ -19,13 +21,7 @@ Run `bash scripts/backup-main.sh` from any repository root ## Repositories covered: -- learning_ai_common_plat -- learning_voice_ai_agent -- learning_multimodal_memory_agents -- learning_ai_clock -- learning_ai_fastgap -- learning_ai_jarvis_jr -- learning_ai_peakpulse +See `repos.txt` for the canonical list of all workspace repositories. ## Features: diff --git a/.windsurf/workflows/repo_commit-workspace.md b/.windsurf/workflows/repo_commit-workspace.md index 2cce84ca..99b05312 100644 --- a/.windsurf/workflows/repo_commit-workspace.md +++ b/.windsurf/workflows/repo_commit-workspace.md @@ -12,14 +12,9 @@ Scans all repositories for pending changes and commits them in logical order wit ## What it does: -1. **Scans** all 7 repos for changes: - - learning_ai_common_plat - - learning_voice_ai_agent - - learning_multimodal_memory_agents - - learning_ai_clock - - learning_ai_fastgap - - learning_ai_jarvis_jr - - learning_ai_peakpulse +1. **Scans** all repos for changes (reads from `repos.txt`): + +See `repos.txt` for the canonical list of all workspace repositories. 2. **Analyzes** changed files to determine: - Commit scope (auth, ci, docs, feat, chore, etc.) diff --git a/.windsurf/workflows/repo_push-repos.md b/.windsurf/workflows/repo_push-repos.md index 7caa060c..175e3be0 100644 --- a/.windsurf/workflows/repo_push-repos.md +++ b/.windsurf/workflows/repo_push-repos.md @@ -9,10 +9,11 @@ Pushes local `main` to `origin/main` for all workspace repositories. // turbo ```bash -for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do +while IFS= read -r repo; do + [[ -z "$repo" || "$repo" =~ ^# ]] && continue echo "━━━ $repo ━━━" (cd ~/code/mygh/$repo && git push origin main) -done +done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt ``` ## What it does: @@ -23,13 +24,7 @@ done ## Repositories: -- learning_ai_common_plat -- learning_voice_ai_agent -- learning_multimodal_memory_agents -- learning_ai_clock -- learning_ai_fastgap -- learning_ai_jarvis_jr -- learning_ai_peakpulse +See `repos.txt` for the canonical list of all workspace repositories. ## When to use: diff --git a/.windsurf/workflows/repo_sync-repos.md b/.windsurf/workflows/repo_sync-repos.md index 2f513bbb..48d83120 100644 --- a/.windsurf/workflows/repo_sync-repos.md +++ b/.windsurf/workflows/repo_sync-repos.md @@ -9,10 +9,11 @@ Pulls the latest changes from `origin/main` for all workspace repositories. // turbo ```bash -for repo in learning_ai_common_plat learning_voice_ai_agent learning_multimodal_memory_agents learning_ai_clock learning_ai_fastgap learning_ai_jarvis_jr learning_ai_peakpulse; do +while IFS= read -r repo; do + [[ -z "$repo" || "$repo" =~ ^# ]] && continue echo "━━━ $repo ━━━" (cd ~/code/mygh/$repo && git pull --ff-only origin main) -done +done < ~/code/mygh/learning_ai_common_plat/.windsurf/workflows/repos.txt ``` ## What it does: @@ -23,13 +24,7 @@ done ## Repositories: -- learning_ai_common_plat -- learning_voice_ai_agent -- learning_multimodal_memory_agents -- learning_ai_clock -- learning_ai_fastgap -- learning_ai_jarvis_jr -- learning_ai_peakpulse +See `repos.txt` for the canonical list of all workspace repositories. ## When to use: diff --git a/.windsurf/workflows/repos.txt b/.windsurf/workflows/repos.txt new file mode 100644 index 00000000..69f15496 --- /dev/null +++ b/.windsurf/workflows/repos.txt @@ -0,0 +1,11 @@ +# All workspace repositories +# Single source of truth for repo-management workflows +# Reference this file in scripts instead of hardcoding repo lists + +learning_ai_common_plat +learning_voice_ai_agent +learning_multimodal_memory_agents +learning_ai_clock +learning_ai_fastgap +learning_ai_jarvis_jr +learning_ai_peakpulse