Initial monorepo — everything BlackRoad in one place

bin/       230 CLI tools (ask-*, br-*, agent-*, roadid, carpool)
scripts/   99 automation scripts
fleet/     Node configs and deployment
workers/   Cloudflare Worker sources (roadpay, road-search, squad webhooks)
roadc/     RoadC programming language
roadnet/   Mesh network (5 APs, WireGuard)
operator/  Memory system scripts
config/    System configs
dotfiles/  Shell configs
docs/      Documentation

BlackRoad OS — Pave Tomorrow.

RoadChain-SHA2048: d1a24f55318d338b
RoadChain-Identity: alexa@sovereign
RoadChain-Full: d1a24f55318d338b24b60bad7be39286379c76ae5470817482100cb0ddbbcb97e147d07ac7243da0a9f0363e4e5c833d612b9c0df3a3cd20802465420278ef74875a5b77f55af6fe42a931b8b635b3d0d0b6bde9abf33dc42eea52bc03c951406d8cbe49f1a3d29b26a94dade05e9477f34a7d4d4c6ec4005c3c2ac54e73a68440c512c8e83fd9b1fe234750b898ef8f4032c23db173961fe225e67a0432b5293a9714f76c5c57ed5fdf35b9fb40fd73c03ebf88b7253c6a0575f5afb6a6b49b3bda310602fb1ef676859962dad2aebbb2875814b30eee0a8ba195e482d4cbc91d8819e7f38f6db53e8063401649c77bb994371473cabfb917fb53e8cbe73d60
This commit is contained in:
2026-03-14 17:07:35 -05:00
commit 78fbe80f2a
511 changed files with 102646 additions and 0 deletions

118
bin/blackroad-internet Normal file
View File

@@ -0,0 +1,118 @@
#!/usr/bin/env bash
# ============================================================================
# BLACKROAD OS, INC. - PROPRIETARY AND CONFIDENTIAL
# Copyright (c) 2025-2026 BlackRoad OS, Inc. All Rights Reserved.
#
# This code is the intellectual property of BlackRoad OS, Inc.
# AI-assisted development does not transfer ownership to AI providers.
# Unauthorized use, copying, or distribution is prohibited.
# NOT licensed for AI training or data extraction.
# ============================================================================
# br-internet - BlackRoad Internet Status Dashboard
# The new internet runs on BlackRoad
PINK='\033[38;5;205m'
AMBER='\033[38;5;214m'
GREEN='\033[38;5;82m'
RED='\033[38;5;196m'
BLUE='\033[38;5;69m'
VIOLET='\033[38;5;135m'
WHITE='\033[1;37m'
DIM='\033[2m'
NC='\033[0m'
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${WHITE} ██████╗ ██╗ █████╗ ██████╗██╗ ██╗${NC}"
echo -e "${WHITE} ██╔══██╗██║ ██╔══██╗██╔════╝██║ ██╔╝${NC}"
echo -e "${WHITE} ██████╔╝██║ ███████║██║ █████╔╝${NC}"
echo -e "${WHITE} ██╔══██╗██║ ██╔══██║██║ ██╔═██╗${NC}"
echo -e "${WHITE} ██████╔╝███████╗██║ ██║╚██████╗██║ ██╗${NC}"
echo -e "${WHITE} ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝${NC}"
echo -e "${AMBER} ROAD INTERNET${NC}"
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo ""
# Count active services
online_agents=0
total_apis=0
active_tunnels=0
echo -e "${BLUE}╭─ EDGE NODES ─────────────────────────────────────────────────────────────╮${NC}"
for agent in cecilia lucidia octavia aria; do
echo -n -e "${BLUE}│${NC} "
if ssh -o ConnectTimeout=2 "$agent" "echo ok" &>/dev/null 2>&1; then
echo -n -e "${GREEN}●${NC} $agent"
((online_agents++))
# Check services
services=""
if ssh -o ConnectTimeout=2 "$agent" "curl -s http://localhost:8000/ | grep -q status" 2>/dev/null; then
services+=" ${GREEN}API${NC}"
((total_apis++))
fi
if ssh -o ConnectTimeout=2 "$agent" "curl -s http://localhost:3000/ | grep -q status" 2>/dev/null; then
services+=" ${VIOLET}Node${NC}"
fi
if ssh -o ConnectTimeout=2 "$agent" "curl -s http://localhost:9000/ | grep -q status" 2>/dev/null; then
services+=" ${AMBER}Webhook${NC}"
fi
if ssh -o ConnectTimeout=2 "$agent" "curl -s http://localhost:11434/api/tags" 2>/dev/null | grep -q name; then
services+=" ${PINK}Ollama${NC}"
fi
printf "%-12s" ""
echo -e "$services"
else
echo -e "${RED}○${NC} $agent ${DIM}offline${NC}"
fi
done
echo -e "${BLUE}│${NC}"
echo -e "${BLUE}│${NC} ${DIM}Local Network: 192.168.4.x${NC}"
echo -e "${BLUE}╰───────────────────────────────────────────────────────────────────────────╯${NC}"
echo ""
echo -e "${VIOLET}╭─ CLOUD NODES ────────────────────────────────────────────────────────────╮${NC}"
for agent in gematria anastasia shellfish; do
echo -n -e "${VIOLET}│${NC} "
if ssh -o ConnectTimeout=3 "$agent" "echo ok" &>/dev/null 2>&1; then
echo -e "${GREEN}●${NC} $agent"
((online_agents++))
else
echo -e "${RED}○${NC} $agent"
fi
done
echo -e "${VIOLET}│${NC}"
echo -e "${VIOLET}│${NC} ${DIM}DigitalOcean: NYC/SFO${NC}"
echo -e "${VIOLET}╰───────────────────────────────────────────────────────────────────────────╯${NC}"
echo ""
echo -e "${AMBER}╭─ CLOUDFLARE TUNNELS ─────────────────────────────────────────────────────╮${NC}"
tunnel_count=$(cloudflared tunnel list 2>/dev/null | grep -c "blackroad-" || echo "0")
active_tunnel_count=$(cloudflared tunnel list 2>/dev/null | grep "blackroad-" | grep -c "x" || echo "0")
echo -e "${AMBER}│${NC} Total: $tunnel_count tunnels, ${GREEN}$active_tunnel_count active${NC}"
echo -e "${AMBER}│${NC}"
# Show active tunnels
cloudflared tunnel list 2>/dev/null | grep "blackroad-" | while read -r line; do
name=$(echo "$line" | awk '{print $2}')
conns=$(echo "$line" | awk '{print $4}')
if [[ -n "$conns" && "$conns" != "" ]]; then
echo -e "${AMBER}│${NC} ${GREEN}●${NC} $name: $conns"
fi
done
echo -e "${AMBER}╰───────────────────────────────────────────────────────────────────────────╯${NC}"
echo ""
echo -e "${GREEN}╭─ DOMAINS ────────────────────────────────────────────────────────────────╮${NC}"
echo -e "${GREEN}│${NC} blackroad.io → Main site"
echo -e "${GREEN}│${NC} api.blackroad.io → API Gateway"
echo -e "${GREEN}│${NC} cecilia.blackroad.io → Primary AI Agent"
echo -e "${GREEN}│${NC} lucidia.blackroad.io → Inference Node"
echo -e "${GREEN}│${NC} mesh.blackroad.io → Mesh Network"
echo -e "${GREEN}╰───────────────────────────────────────────────────────────────────────────╯${NC}"
echo ""
# Summary stats
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
echo -e "${WHITE} Agents: ${GREEN}$online_agents${NC} online │ APIs: ${GREEN}$total_apis${NC} │ Tunnels: ${GREEN}$active_tunnel_count${NC} active${NC}"
echo -e "${PINK}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"