Skip to content

Your lightweight open-source personal agent.

chore(release): refresh PDF image and Git runtime dependencies

Xubin Ren428b5fb6198b
diff --git a/docs/releases/0.4.0.md b/docs/releases/0.4.0.md
index 0c502832a..37f2a1627 100644
--- a/docs/releases/0.4.0.md
+++ b/docs/releases/0.4.0.md
@@ -27,6 +27,7 @@ The gateway now owns model history and WebUI display history in SQLite. Existing
- Native terminal packages include Mermaid image rendering and smaller standalone builds with target-specific native dependencies. Platform wheels include the matching TUI and built WebUI; supported wheel installations do not need Bun or a first-launch TUI download.
- The TUI SVG parser is updated to the maintained `@xmldom/xmldom` 0.8.15 patch release. Restricted image rendering and isolated rendering workers remain in place.
+- PDF and image readers and the memory Git backend use updated pypdf, Pillow and Dulwich releases. Compatibility extras such as `nanobot-ai[pdf]` select the same supported reader versions as the base installation.
- Model setup includes searchable providers, explicit API choices and per-preset request overrides. Shared proxy settings can be selected independently by supported providers, web tools and MCP connections.
- Native Linear and WhatsApp Agent Platform channels, QQ QR setup, DeepSeek Search, and further provider/channel compatibility improvements are included.
- Scheduled jobs can be updated, enabled and disabled in place, and their recent run history can be inspected. Restart and delivery fixes preserve pending work without treating an unknown delivery result as permission to replay it.
diff --git a/pyproject.toml b/pyproject.toml
index da7995603..7a247de39 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,7 +41,7 @@ dependencies = [
"lxml-html-clean>=0.4.0,<1.0.0",
"rich>=14.0.0,<15.0.0",
"qrcode[pil]>=8.0",
- "pillow>=11.0,<13.0",
+ "pillow>=13.0.0,<14.0.0",
"croniter>=6.0.0,<7.0.0",
"prompt-toolkit>=3.0.52,<4.0.0",
"setproctitle>=1.3.7,<2.0.0; sys_platform != 'win32'",
@@ -52,7 +52,7 @@ dependencies = [
"openai>=2.8.0",
"tiktoken>=0.12.0,<1.0.0",
"jinja2>=3.1.0,<4.0.0",
- "dulwich>=0.24.0,<1.0.0",
+ "dulwich>=1.2.20,<2.0.0",
"rapidfuzz>=3.14.6,<4.0.0",
"pyyaml>=6.0,<7.0.0",
"filelock>=3.25.2",
@@ -61,7 +61,7 @@ dependencies = [
"tzdata>=2025.2",
"tzlocal>=5.3.1,<6.0.0",
"defusedxml>=0.7.1,<1.0.0",
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
"python-docx>=1.1.0,<2.0.0",
"openpyxl>=3.1.0,<4.0.0",
"python-pptx>=1.0.0,<2.0.0",
@@ -81,7 +81,7 @@ bedrock = [
documents = [
# Compatibility extra: document readers are bundled since v0.2.3.
"defusedxml>=0.7.1,<1.0.0",
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
"python-docx>=1.1.0,<2.0.0",
"openpyxl>=3.1.0,<4.0.0",
"python-pptx>=1.0.0,<2.0.0",
@@ -91,7 +91,7 @@ langfuse = [
]
pdf = [
# Compatibility extra: PDF reading is bundled since v0.2.3.
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
]
olostep = [
"olostep>=0.1.0; python_version < '3.14'",
@@ -108,7 +108,7 @@ dev = [
"basedpyright>=1.39.0,<2.0.0",
"setproctitle>=1.3.7,<2.0.0",
"pymupdf>=1.25.0",
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
"python-docx>=1.1.0,<2.0.0",
"openpyxl>=3.1.0,<4.0.0",
"python-pptx>=1.0.0,<2.0.0",
diff --git a/tests/channels/test_channel_plugins.py b/tests/channels/test_channel_plugins.py
index 741a1fab1..dfe327faa 100644
--- a/tests/channels/test_channel_plugins.py
+++ b/tests/channels/test_channel_plugins.py
@@ -2664,7 +2664,7 @@ def test_optional_dependency_metadata_for_enable():
for dependency in (
"tzdata>=2025.2",
"defusedxml>=0.7.1,<1.0.0",
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
"python-docx>=1.1.0,<2.0.0",
"openpyxl>=3.1.0,<4.0.0",
"python-pptx>=1.0.0,<2.0.0",
@@ -2672,12 +2672,12 @@ def test_optional_dependency_metadata_for_enable():
assert dependency in required
assert deps["documents"] == [
"defusedxml>=0.7.1,<1.0.0",
- "pypdf>=5.0.0,<6.0.0",
+ "pypdf>=6.21.3,<7.0.0",
"python-docx>=1.1.0,<2.0.0",
"openpyxl>=3.1.0,<4.0.0",
"python-pptx>=1.0.0,<2.0.0",
]
- assert deps["pdf"] == ["pypdf>=5.0.0,<6.0.0"]
+ assert deps["pdf"] == ["pypdf>=6.21.3,<7.0.0"]
assert deps["langfuse"] == ["langfuse>=4.7.0,<5.0.0"]
assert deps["olostep"] == ["olostep>=0.1.0; python_version < '3.14'"]
expected_olostep_args = [] if sys.version_info >= (3, 14) else ["olostep>=0.1.0"]