import { useState } from 'react' import { Shield, Check, Copy, CheckCircle2, FileCode, Cpu } from 'lucide-react' export default function DesktopInstallerSection() { const [activeTab, setActiveTab] = useState<'pip' | 'cli' | 'vscode' | 'source'>('pip') const [copied, setCopied] = useState(null) const commands = { pip: 'pip install btp-guard', cli: 'pip install btp-guard && btp-guard init', vscode: 'code --install-extension bartholomew.vsix', source: 'git clone https://github.com/ivegotahunnitonit/bartholomew.git && cd bartholomew && pip install -e .' } const tabLabels = { pip: '[PYTHON PIP (PYPI)]', cli: '[BTP-GUARD CLI INIT]', vscode: '[VS CODE / CURSOR VSIX]', source: '[SOURCE REPO]' } const directDownloadFiles = { pip: { filename: 'pypi-btp-guard', href: 'https://pypi.org/project/btp-guard/', label: 'VIEW PYPI PACKAGE' }, cli: { filename: 'pypi-btp-guard', href: 'https://pypi.org/project/btp-guard/', label: 'VIEW PYPI DOCUMENTATION' }, vscode: { filename: 'bartholomew.vsix', href: 'https://bartholomew.info/bartholomew.vsix', label: 'DOWNLOAD .VSIX' }, source: { filename: 'source-main.zip', href: 'https://github.com/ivegotahunnitonit/bartholomew/archive/refs/heads/main.zip', label: 'DOWNLOAD SOURCE ZIP' } } const handleCopy = (tab: keyof typeof commands) => { navigator.clipboard.writeText(commands[tab]) setCopied(tab) setTimeout(() => setCopied(null), 2000) } return (
{/* Ambient background glow */}
[ VERIFIED SOURCE INSTALLATION & OFFLINE INSPECTION ]

Install Directly from Verified Registries

Bartholomew is 100% open source. Install directly via pip, btp-guard CLI, VS Code extension, or clone the repository to run the 31-suite security gate on your own machine with zero remote script execution.

{/* OS Selector & Terminal Card - Frontier Glassmorphism */}
{/* Top Glowing Ambient Highlight */}
{/* Terminal Window Header */}
verified-install-channel
FIPS 186-5 • RFC 8785
{/* Selector Tabs — 2 col grid on mobile, 4 col on sm+ */}
{(['pip', 'cli', 'vscode', 'source'] as const).map((tab) => ( ))}
{/* Terminal Command Display & Action */}
{/* Command string + action buttons */}
{/* Scrollable command line */}
❯ $ {commands[activeTab]}
{/* Action buttons */}
[{directDownloadFiles[activeTab].label}]
{/* In-Process Library Highlight Banner */}
EMBEDDED IN-PROCESS MODE (ZERO DAEMONS REQUIRED)

Runs directly in your process memory. Evaluates AST invariants with the fastest and most reliable local gating, with zero IPC, zero background daemons, and zero network telemetry.

[VIEW ON PYPI ↗]
{/* Verification Features Grid — 1 col mobile, 3 col md+ */}
AUDITABLE CODEBASE

Every parser, invariant checker, and cryptographic signing routine is readable in clean, audited reference files.

RFC 8785 DETERMINISM

JSON Canonicalization Scheme ensures identical byte-level hash determinism across Python, Go, and C.

NO PROXY BOTTLENECK

Pure local in-process gating provides the fastest and most reliable AST inspection, avoiding the latency and network failure modes of remote webhooks.

) }