faf-cli 4.2.2 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +266 -90
  2. package/assets/project-faf-screenshot.png +0 -0
  3. package/dist/cli.d.ts.map +1 -1
  4. package/dist/cli.js +40 -22
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/git.d.ts.map +1 -1
  7. package/dist/commands/git.js +9 -7
  8. package/dist/commands/git.js.map +1 -1
  9. package/dist/commands/readme.d.ts +11 -6
  10. package/dist/commands/readme.d.ts.map +1 -1
  11. package/dist/commands/readme.js +167 -120
  12. package/dist/commands/readme.js.map +1 -1
  13. package/dist/commands/show.d.ts.map +1 -1
  14. package/dist/commands/show.js +22 -7
  15. package/dist/commands/show.js.map +1 -1
  16. package/dist/commands/sixws.d.ts +6 -0
  17. package/dist/commands/sixws.d.ts.map +1 -0
  18. package/dist/commands/sixws.js +154 -0
  19. package/dist/commands/sixws.js.map +1 -0
  20. package/dist/github/current-score-calculator.d.ts +15 -0
  21. package/dist/github/current-score-calculator.d.ts.map +1 -0
  22. package/dist/github/current-score-calculator.js +125 -0
  23. package/dist/github/current-score-calculator.js.map +1 -0
  24. package/dist/github/faf-git-generator.d.ts +58 -0
  25. package/dist/github/faf-git-generator.d.ts.map +1 -0
  26. package/dist/github/faf-git-generator.js +557 -0
  27. package/dist/github/faf-git-generator.js.map +1 -0
  28. package/dist/github/github-extractor.d.ts +4 -0
  29. package/dist/github/github-extractor.d.ts.map +1 -1
  30. package/dist/github/github-extractor.js +27 -0
  31. package/dist/github/github-extractor.js.map +1 -1
  32. package/dist/github/repo-selector.d.ts +2 -2
  33. package/dist/github/repo-selector.d.ts.map +1 -1
  34. package/dist/github/repo-selector.js +30 -23
  35. package/dist/github/repo-selector.js.map +1 -1
  36. package/dist/utils/file-utils.d.ts.map +1 -1
  37. package/dist/utils/file-utils.js +1 -4
  38. package/dist/utils/file-utils.js.map +1 -1
  39. package/dist/utils/slot-counter.d.ts +56 -0
  40. package/dist/utils/slot-counter.d.ts.map +1 -0
  41. package/dist/utils/slot-counter.js +100 -0
  42. package/dist/utils/slot-counter.js.map +1 -0
  43. package/dist/utils/yaml-generator.d.ts.map +1 -1
  44. package/dist/utils/yaml-generator.js +3 -7
  45. package/dist/utils/yaml-generator.js.map +1 -1
  46. package/package.json +7 -2
  47. package/project.faf +5 -9
  48. package/scripts/ANTHROPIC-DEMO.sh +203 -0
  49. package/scripts/boris-ready.sh +169 -0
  50. package/scripts/bundle-yaml.js +87 -0
  51. package/scripts/check-version.js +88 -0
  52. package/scripts/clean-build.js +34 -0
  53. package/scripts/cleanup-unused.sh +54 -0
  54. package/scripts/debug-django.txt +9 -0
  55. package/scripts/debug-mongo.txt +9 -0
  56. package/scripts/debug-react.txt +9 -0
  57. package/scripts/debug-rust.txt +9 -0
  58. package/scripts/debug-whisper.cpp.txt +9 -0
  59. package/scripts/evaluate-family-member.ts +300 -0
  60. package/scripts/generate-docs.ts +358 -0
  61. package/scripts/generate-drift-reports.sh +111 -0
  62. package/scripts/industry-showcase.json +122 -0
  63. package/scripts/mcp-ecosystem-research.sh +58 -0
  64. package/scripts/migrate-yaml-imports.sh +55 -0
  65. package/scripts/migrate-yaml.ts +132 -0
  66. package/scripts/performance-validation.ts +460 -0
  67. package/scripts/postinstall.js +30 -0
  68. package/scripts/prepare-release.ts +421 -0
  69. package/scripts/run-industry-showcase.ts +237 -0
  70. package/scripts/run-test-showcase.ts +244 -0
  71. package/scripts/setup-github-watch.sh +43 -0
  72. package/scripts/sync-version.js +35 -0
  73. package/scripts/test-integration-detection.ts +93 -0
  74. package/scripts/test-integration-simple.js +93 -0
  75. package/scripts/test-medal-progression.sh +143 -0
  76. package/scripts/test-showcase-results.json +109 -0
  77. package/scripts/test-showcase.json +32 -0
  78. package/scripts/update-version.js +148 -0
  79. package/scripts/verify-build.js +343 -0
  80. package/scripts/version-check.js +78 -0
  81. package/scripts/watch-discussions.sh +86 -0
@@ -0,0 +1,86 @@
1
+ #!/bin/bash
2
+ # 🩵 FAF Discussions Monitor - Real-time alerts for community engagement
3
+
4
+ set -e
5
+
6
+ # FAF cyan color
7
+ CYAN='\033[36m'
8
+ RESET='\033[0m'
9
+ BOLD='\033[1m'
10
+
11
+ echo -e "${CYAN}${BOLD}🩵 FAF Discussions Monitor${RESET}"
12
+ echo -e "${CYAN}Watching for new comments on GitHub Discussions...${RESET}"
13
+ echo ""
14
+
15
+ # Store last known comment count
16
+ LAST_COUNT_FILE="/tmp/.faf-discussions-count"
17
+
18
+ # Initialize count file if doesn't exist
19
+ if [ ! -f "$LAST_COUNT_FILE" ]; then
20
+ echo "0" > "$LAST_COUNT_FILE"
21
+ fi
22
+
23
+ while true; do
24
+ # Use gh's built-in formatting instead of jq
25
+ DISCUSSIONS=$(gh api graphql -f query='
26
+ query {
27
+ repository(owner: "Wolfe-Jam", name: "faf") {
28
+ discussions(first: 10, orderBy: {field: UPDATED_AT, direction: DESC}) {
29
+ nodes {
30
+ number
31
+ title
32
+ updatedAt
33
+ comments {
34
+ totalCount
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }' --jq '.data.repository.discussions.nodes[] | "\(.number)|\(.title)|\(.comments.totalCount)|\(.updatedAt)"' 2>/dev/null)
40
+
41
+ if [ -n "$DISCUSSIONS" ]; then
42
+ # Count total comments
43
+ TOTAL_COMMENTS=0
44
+ while IFS='|' read -r num title count updated; do
45
+ TOTAL_COMMENTS=$((TOTAL_COMMENTS + count))
46
+ done <<< "$DISCUSSIONS"
47
+
48
+ LAST_COUNT=$(cat "$LAST_COUNT_FILE")
49
+
50
+ # Check for new comments
51
+ if [ "$TOTAL_COMMENTS" -gt "$LAST_COUNT" ]; then
52
+ echo -e "${CYAN}${BOLD}🔔 New Activity Detected!${RESET}"
53
+
54
+ # Show recent discussions with comments
55
+ while IFS='|' read -r num title count updated; do
56
+ if [ "$count" -gt 0 ]; then
57
+ echo "Discussion #$num: $title"
58
+ echo " 💬 $count comments (updated: $updated)"
59
+ echo ""
60
+ fi
61
+ done <<< "$DISCUSSIONS"
62
+
63
+ # Play system notification sound if available
64
+ if command -v afplay &> /dev/null; then
65
+ afplay /System/Library/Sounds/Glass.aiff 2>/dev/null || true
66
+ fi
67
+
68
+ # Send macOS notification if available
69
+ if command -v osascript &> /dev/null; then
70
+ osascript -e "display notification \"New comments in FAF discussions!\" with title \"🩵 FAF Community\" subtitle \"Check GitHub Discussions\""
71
+ fi
72
+
73
+ echo "$TOTAL_COMMENTS" > "$LAST_COUNT_FILE"
74
+ echo -e "${CYAN}─────────────────────────────${RESET}"
75
+ fi
76
+
77
+ # Show summary every 5 minutes
78
+ if [ $(($(date +%s) % 300)) -lt 30 ]; then
79
+ DISCUSSION_COUNT=$(echo "$DISCUSSIONS" | wc -l | tr -d ' ')
80
+ echo -e "${CYAN}📊 Status: $DISCUSSION_COUNT discussions tracked, $TOTAL_COMMENTS total comments${RESET}"
81
+ fi
82
+ fi
83
+
84
+ # Wait 30 seconds before next check
85
+ sleep 30
86
+ done