#!/usr/bin/env node
/**
 * ShieldCortex - Brain-like Memory System for Claude Code
 *
 * This server provides persistent, intelligent memory for Claude Code,
 * solving the context compaction and session persistence problems.
 *
 * Usage (after `npm install -g shieldcortex`):
 *   shieldcortex                         # Start MCP server (default)
 *   shieldcortex --mode mcp              # Start MCP server
 *   shieldcortex --mode api              # Start visualization API server
 *   shieldcortex --mode both             # Start both servers
 *   shieldcortex --mode worker           # Start headless background worker
 *   shieldcortex --dashboard             # Start API + Dashboard (admin panel)
 *   shieldcortex --db /path/to.db        # Custom database path
 *   shieldcortex scan "text"             # Quick content scan (no MCP/ML)
 *   shieldcortex audit                   # Full security audit of agent environment
 *   shieldcortex audit --json            # Audit with JSON output
 *   shieldcortex audit --markdown        # Audit with Markdown output
 *   shieldcortex audit --ci              # Audit in CI mode (exit code reflects grade)
 *   shieldcortex status                  # Show database and system status
 *   shieldcortex quickstart              # Detect integrations and offer guided install
 *   shieldcortex quickstart --yes        # Install across all detected integrations
 *   shieldcortex setup                   # Configure Claude for proactive memory use
 *   shieldcortex install                 # Alias for setup
 *   shieldcortex install --with-stop-hook        # Opt in to the Stop hook (sampled per-turn extraction)
 *   shieldcortex install --with-session-end      # Opt in to the SessionEnd hook (final extraction on session exit)
 *   shieldcortex install --with-stop-hook --with-session-end   # Both at once
 *   shieldcortex hook pre-compact        # Run pre-compact hook (for settings.json)
 *   shieldcortex hook session-start      # Run session-start hook (for settings.json)
 *   shieldcortex hook session-end        # Run session-end hook (for settings.json)
 *   shieldcortex service install         # Install persistent ShieldCortex service
 *   shieldcortex service install --headless  # Recommended for always-on servers
 *   shieldcortex service repair          # Rebuild persistent service with current install path
 *   shieldcortex service uninstall       # Remove persistent service
 *   shieldcortex service status          # Check service status
 *   shieldcortex openclaw install        # Install OpenClaw hook/plugin (compatibility wrapper)
 *   shieldcortex openclaw uninstall      # Remove OpenClaw hook
 *   shieldcortex openclaw status         # Check OpenClaw hook status
 *   shieldcortex config --openclaw-auto-memory true   # Enable OpenClaw auto-memory extraction
 *   shieldcortex config --openclaw-auto-memory false  # Disable OpenClaw auto-memory extraction
 *   shieldcortex cloud sync --full      # Backfill local memories + graph to ShieldCortex Cloud
 *   shieldcortex review-copilot status  # Local AI Explainer status (Pro)
 *   shieldcortex copilot install         # Configure MCP server for VS Code + Cursor
 *   shieldcortex copilot uninstall       # Remove MCP server configuration
 *   shieldcortex copilot status          # Check MCP server configuration
 *   shieldcortex codex install           # Configure MCP server for Codex CLI + VS Code extension
 *   shieldcortex codex uninstall         # Remove Codex MCP configuration
 *   shieldcortex codex status            # Check Codex MCP configuration
 *   shieldcortex xray <target>           # Inspect package/file/plugin for hidden risk
 *   shieldcortex xray <path> --deep      # Deep scan (Pro) with full analysis
 *   shieldcortex xray <package> --json   # JSON output
 *   shieldcortex cortex capture      # Log a mistake with rule extraction
 *   shieldcortex cortex preflight    # Pre-flight check before a task
 *   shieldcortex cortex review       # Weekly pattern review
 *   shieldcortex cortex graduate     # Archive learned rules
 *   shieldcortex license activate <key>  # Activate a licence key
 *   shieldcortex license status          # Show current licence tier and features
 *   shieldcortex license deactivate      # Remove licence
 *   shieldcortex migrate                 # Migrate from Claude Cortex
 *   shieldcortex setup uninstall         # Remove hooks + CLAUDE.md block (requires confirmation)
 *   shieldcortex uninstall               # Full uninstall (requires confirmation)
 *   shieldcortex uninstall --confirm     # Full uninstall (non-interactive)
 *   shieldcortex uninstall --keep-logs   # Full uninstall but keep log files
 */
export * from './lib.js';
