Files
2026-05-29 13:47:34 +02:00

25 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
# ttyd-wrapper.sh — entrypoint launched by ttyd for each browser session.
# Ensures bt7274 cart is active, then handoff to `claude`.
set -euo pipefail
# Make sure marauder + claude on PATH for non-login shells
export PATH="/home/chi/.local/bin:/home/linuxbrew/.linuxbrew/bin:$PATH"
# Set the persona for this session (idempotent if already active globally)
marauder cart use bt7274 >/dev/null 2>&1 || true
# Optional banner — confirms this is the right channel
cat <<'BANNER'
╔════════════════════════════════════════════════════════════════╗
║ SAIDEN TACTICAL SYSTEMS — MARAUDER REMOTE BRIDGE ║
║ Operator: BT-7274 • Channel: chat.saiden.dev ║
║ Host: junkpile • Authenticated via CF Access ║
║ ║
║ Sign out: https://chat.saiden.dev/cdn-cgi/access/logout ║
╚════════════════════════════════════════════════════════════════╝
BANNER
# Hand off to the Pilot's Titan
exec claude