a713505f447c27da646a1bd32eaa7ef1f4552d58
apps/worker/src/lib/telegram.ts: - sendTelegram() with Redis-backed dedupe (NX SETEX, 1h TTL) - Helpers: alertP0Insight, alertRegression, alertSanitizationAnomaly, alertBudgetCap Wired into: - analyze.ts: P0/P1 insight creation → instant alert (dedupe per insight_id); budget guard halt → daily cap alert (dedupe per state per day) - validation.ts: regression detected (≥3 sessions w/ same fingerprint after shippedAt) → alert (dedupe per insight_id) - compress-sessions.ts: sanitization anomaly (>500 tokens, 0 PII matches) → alert (dedupe per session_id) — possible PII leak warning Daily Brief (jobs/daily-brief.ts): - Cron @05:00 UTC (= 08:00 Europe/Istanbul) - 24h: sessions/insights/cost/cache-hit + 3 top priorities + 7d shipped/validated/regressed - POST /api/insights/brief/send for manual trigger / smoke test Env: TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID, PANEL_PUBLIC_URL (Coolify both apps). Bot: @Pl24_mitm_bot (AiFactory), chat 7840804807. Source: airflow3 monitoring DAG. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Süper Panel
Internal admin panel — sp.semih.ai — Tailscale-only access.
Phase 0 skeleton: Next.js 16 + Better Auth (email/password + TOTP) + Prisma + Postgres + Redis. Deployed on Coolify, fronted by Traefik with Let's Encrypt (Cloudflare DNS-01).
See super-panel-prd.md for the full PRD.
Local dev
pnpm install
cp .env.example .env
# fill DATABASE_URL_PANEL, BETTER_AUTH_SECRET (32+ chars)
pnpm --filter @panel/web prisma:generate
pnpm dev
Production deploy
Pushes to main trigger Coolify deploy via webhook.
Deploy status
First production deploy: 2026-05-13. Live at https://sp.semih.ai (Tailscale only).
Description
Languages
TypeScript
99.2%
CSS
0.4%
Shell
0.2%
Dockerfile
0.2%