Remove unused generation scripts (not referenced): - scripts/generate-keypair.go (unused manual utility) - cmd/tools/keygen/ (unused utility, clutters cmd structure) Remove root-level dev files (clutter): - restart_and_fix.sh (dangerous: wipes database) - test_install_commands.sh (development only) - test-binary (compiled artifact) - sudo (third-party tool) - scanning_ux_summary.txt (dev notes) Fix ETHOS violations in build-secure-agent.sh: - Remove emojis (🔨, ✅, ℹ️) - Replace with proper format: [INFO] [build] ... Cleanup based on definitive code forensics. Impact: Cleaner repository, ETHOS-compliant, no functional loss.
24 lines
528 B
Bash
Executable File
24 lines
528 B
Bash
Executable File
#!/bin/bash
|
|
# RedFlag Agent Build Script
|
|
# Builds agent binary (public key fetched from server at runtime)
|
|
|
|
set -e
|
|
|
|
echo "[INFO] [build] RedFlag Agent Build"
|
|
echo "================================="
|
|
|
|
# Build agent
|
|
echo "[INFO] [build] Building agent..."
|
|
cd aggregator-agent
|
|
|
|
go build \
|
|
-o redflag-agent \
|
|
./cmd/agent
|
|
|
|
cd ..
|
|
|
|
echo "[INFO] [build] Agent build complete!"
|
|
echo " Binary: aggregator-agent/redflag-agent"
|
|
echo ""
|
|
echo "[INFO] [build] Note: Agent will fetch the server's public key automatically at startup"
|