Feature-gate runtime server; migrate MCP API; improve DOCX fallbacks

Gate runtime server behind `runtime-server` feature and align tool interfaces with latest `mcp_core` response types. Add safer DOCX->PDF fallbacks (dotext reader, inline comments/notes/cross-refs) and clarify crate imports (`image`, `lopdf`) to reduce conflicts; minor PDF utilities cleanup.
This commit is contained in:
Andy
2025-08-11 18:19:53 +08:00
parent ec800ce12c
commit f75a47fe76
6 changed files with 76 additions and 105 deletions
+4
View File
@@ -57,6 +57,9 @@ pulldown-cmark = "0.12" # Markdown parsing
html5ever = "0.29" # HTML parsing
comrak = "0.28" # CommonMark parsing
# Text extraction from DOCX
dotext = "0.1"
# Template rendering (pure Rust)
handlebars = "6.0" # Template engine
tera = { version = "1.20", optional = true }
@@ -96,6 +99,7 @@ wkhtmltopdf = { version = "0.4", optional = true }
[features]
default = ["embedded-fonts", "pure-rust-pdf"]
runtime-server = []
embedded-fonts = []
pure-rust-pdf = []
external-tools = ["headless_chrome", "wkhtmltopdf"]