Initial commit: CI Agent competitive-intelligence monitoring app

FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring,
source collection, LLM-based change analysis, enrichment, and account
security (Turnstile, escalating lockout, email verification).
This commit is contained in:
2026-08-05 10:48:20 -04:00
commit 1a4c80958f
365 changed files with 43541 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { SystemStatus } from "./types";
/**
* True when this connection is getting the local-dev free pass (fixed
* account, no login) - both that the operator hasn't forced full lockdown
* (`auth_mode === "jwt"`) and that the backend actually recognized this
* specific request as coming from loopback (`is_localhost`). Used anywhere
* the UI needs to decide whether to show a login screen, a sign-out
* button, or local-dev-only copy.
*/
export function isLocalConvenience(status: SystemStatus): boolean {
return status.auth_mode !== "jwt" && status.is_localhost;
}