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.
- package/README.md +266 -90
- package/assets/project-faf-screenshot.png +0 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +40 -22
- package/dist/cli.js.map +1 -1
- package/dist/commands/git.d.ts.map +1 -1
- package/dist/commands/git.js +9 -7
- package/dist/commands/git.js.map +1 -1
- package/dist/commands/readme.d.ts +11 -6
- package/dist/commands/readme.d.ts.map +1 -1
- package/dist/commands/readme.js +167 -120
- package/dist/commands/readme.js.map +1 -1
- package/dist/commands/show.d.ts.map +1 -1
- package/dist/commands/show.js +22 -7
- package/dist/commands/show.js.map +1 -1
- package/dist/commands/sixws.d.ts +6 -0
- package/dist/commands/sixws.d.ts.map +1 -0
- package/dist/commands/sixws.js +154 -0
- package/dist/commands/sixws.js.map +1 -0
- package/dist/github/current-score-calculator.d.ts +15 -0
- package/dist/github/current-score-calculator.d.ts.map +1 -0
- package/dist/github/current-score-calculator.js +125 -0
- package/dist/github/current-score-calculator.js.map +1 -0
- package/dist/github/faf-git-generator.d.ts +58 -0
- package/dist/github/faf-git-generator.d.ts.map +1 -0
- package/dist/github/faf-git-generator.js +557 -0
- package/dist/github/faf-git-generator.js.map +1 -0
- package/dist/github/github-extractor.d.ts +4 -0
- package/dist/github/github-extractor.d.ts.map +1 -1
- package/dist/github/github-extractor.js +27 -0
- package/dist/github/github-extractor.js.map +1 -1
- package/dist/github/repo-selector.d.ts +2 -2
- package/dist/github/repo-selector.d.ts.map +1 -1
- package/dist/github/repo-selector.js +30 -23
- package/dist/github/repo-selector.js.map +1 -1
- package/dist/utils/file-utils.d.ts.map +1 -1
- package/dist/utils/file-utils.js +1 -4
- package/dist/utils/file-utils.js.map +1 -1
- package/dist/utils/slot-counter.d.ts +56 -0
- package/dist/utils/slot-counter.d.ts.map +1 -0
- package/dist/utils/slot-counter.js +100 -0
- package/dist/utils/slot-counter.js.map +1 -0
- package/dist/utils/yaml-generator.d.ts.map +1 -1
- package/dist/utils/yaml-generator.js +3 -7
- package/dist/utils/yaml-generator.js.map +1 -1
- package/package.json +7 -2
- package/project.faf +5 -9
- package/scripts/ANTHROPIC-DEMO.sh +203 -0
- package/scripts/boris-ready.sh +169 -0
- package/scripts/bundle-yaml.js +87 -0
- package/scripts/check-version.js +88 -0
- package/scripts/clean-build.js +34 -0
- package/scripts/cleanup-unused.sh +54 -0
- package/scripts/debug-django.txt +9 -0
- package/scripts/debug-mongo.txt +9 -0
- package/scripts/debug-react.txt +9 -0
- package/scripts/debug-rust.txt +9 -0
- package/scripts/debug-whisper.cpp.txt +9 -0
- package/scripts/evaluate-family-member.ts +300 -0
- package/scripts/generate-docs.ts +358 -0
- package/scripts/generate-drift-reports.sh +111 -0
- package/scripts/industry-showcase.json +122 -0
- package/scripts/mcp-ecosystem-research.sh +58 -0
- package/scripts/migrate-yaml-imports.sh +55 -0
- package/scripts/migrate-yaml.ts +132 -0
- package/scripts/performance-validation.ts +460 -0
- package/scripts/postinstall.js +30 -0
- package/scripts/prepare-release.ts +421 -0
- package/scripts/run-industry-showcase.ts +237 -0
- package/scripts/run-test-showcase.ts +244 -0
- package/scripts/setup-github-watch.sh +43 -0
- package/scripts/sync-version.js +35 -0
- package/scripts/test-integration-detection.ts +93 -0
- package/scripts/test-integration-simple.js +93 -0
- package/scripts/test-medal-progression.sh +143 -0
- package/scripts/test-showcase-results.json +109 -0
- package/scripts/test-showcase.json +32 -0
- package/scripts/update-version.js +148 -0
- package/scripts/verify-build.js +343 -0
- package/scripts/version-check.js +78 -0
- 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
|