//! The documents tools `packages/server/src/mcp/documents.ts` hosts.//!//! Nine tools over one subject: the LIBRARY (`list_documents`,//! `search_documents`, `get_document`, `get_document_bytes`), the INTAKE//! (`request_document_upload`, `file_document`), the CORRECTION//! (`update_document`, `delete_document`) and the one way an assistant may//! interrupt the owner (`notify_owner`).//!//! WHAT IS NOT HERE, and why. The documents WORKER — text extraction, mupdf,//! the password loop, the profiling model, the sweep and its statuses — belongs//! to the worker slice (2f). What these tools need of it is declared as a SEAM,//! [`rail::DocumentsRail`], in exactly the shape agent L's `GoogleWorker`//! takes: a trait, an idle implementation that dials nothing, and a scripted//! double that lives beside the trait. `ToolServices::documents` is `None` on a//! server with no object store, and every tool that needs bytes refuses BY NAME//! rather than half-working — which is the TypeScript's own//! `documentServices(ctx, what)` sentence.//!//! THE LINK IS THE PRESIGN RAIL's, not this seam's. `get_document`'s//! `includeFileUrl` mints a five-minute GET through//! [`crate::mcp::dispatch::PresignRail`], the same rail a message's keyed//! attachment goes through, because a link is one capability and two signers//! would be two answers to "how long is a link good for".pubmod notify_optin;pubmod paths;pubmod rail;pubmod tools;usecrate::mcp::dispatch::HandlerGroup;pubfn handlers() -> HandlerGroup { &[// the library ("list_documents", tools::list_documents), ("search_documents", tools::search_documents), ("get_document", tools::get_document), ("get_document_bytes", tools::get_document_bytes),// the intake ("request_document_upload", tools::request_document_upload), ("file_document", tools::file_document),// the correction ("update_document", tools::update_document), ("delete_document", tools::delete_document),// the one interruption ("notify_owner", tools::notify_owner), ]}