paperscope 0.2.8

Local-first AI document search with exact page and line citations. One binary: CLI + MCP server for LLMs. PDF, DOCX and 15+ formats, no cloud, no telemetry.
Documentation
use std::path::Path;

use crate::core::extract::ExtractedDocument;

// Shell-out accelerators have been removed for security (CODE_REVIEW C2).
//
// External binaries (pdftotext, pandoc, libreoffice) process
// attacker-controlled file content unsandboxed, with no size cap and no
// privilege separation. They have been dropped entirely; the pure-Rust
// extractors handle every supported format. The `shell-accel` feature is
// retained as a no-op so existing feature expressions keep compiling.

/// Try all accelerators for a given file extension. Always returns `Ok(None)`:
/// no external binary is ever spawned.
pub fn try_accelerators(
    _path: &Path,
    _ext: &str,
) -> anyhow::Result<Option<Vec<ExtractedDocument>>> {
    Ok(None)
}