Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(deps): update ai sdk
renovate[bot]5fb99d4c9bbe
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 83b701c451..1e568e31d8 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -32,13 +32,13 @@"proxy-nginx-subdir": "docker run --name trilium-nginx-subdir --rm -p 8095:8095 --add-host=host.docker.internal:host-gateway -v ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro nginx:latest"},"dependencies": {- "@ai-sdk/anthropic": "4.0.54",- "@ai-sdk/google": "4.0.72",- "@ai-sdk/openai": "4.0.67",+ "@ai-sdk/anthropic": "4.0.56",+ "@ai-sdk/google": "4.0.74",+ "@ai-sdk/openai": "4.0.69","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.102",+ "ai": "7.0.105","better-sqlite3": "13.0.3","html-to-text": "10.0.1","i18next": "26.4.2",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex d7ae72f923..6a0a8726e9 100644--- a/packages/trilium-core/package.json+++ b/packages/trilium-core/package.json@@ -8,13 +8,13 @@"update-model-prices": "tsx ./scripts/update-model-prices.ts"},"dependencies": {- "@ai-sdk/anthropic": "4.0.54",- "@ai-sdk/google": "4.0.72",- "@ai-sdk/openai": "4.0.67",+ "@ai-sdk/anthropic": "4.0.56",+ "@ai-sdk/google": "4.0.74",+ "@ai-sdk/openai": "4.0.69","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.102",+ "ai": "7.0.105","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex f3da590521..052fa61dc6 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -16,7 +16,7 @@ overrides:'@lezer/common': 1.5.2'@lezer/highlight': 1.2.3'@lezer/lr': 1.4.10- '@ai-sdk/provider-utils': 5.0.41+ '@ai-sdk/provider-utils': 5.0.43zod: 4.6.5mermaid: 12.0.0preact: 10.29.8@@ -610,14 +610,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.54- version: 4.0.54([email protected])+ specifier: 4.0.56+ version: 4.0.56([email protected])'@ai-sdk/google':- specifier: 4.0.72- version: 4.0.72([email protected])+ specifier: 4.0.74+ version: 4.0.74([email protected])'@ai-sdk/openai':- specifier: 4.0.67- version: 4.0.67([email protected])+ specifier: 4.0.69+ version: 4.0.69([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.273(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -628,8 +628,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.102- version: 7.0.102([email protected])+ specifier: 7.0.105+ version: 7.0.105([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1393,14 +1393,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.54- version: 4.0.54([email protected])+ specifier: 4.0.56+ version: 4.0.56([email protected])'@ai-sdk/google':- specifier: 4.0.72- version: 4.0.72([email protected])+ specifier: 4.0.74+ version: 4.0.74([email protected])'@ai-sdk/openai':- specifier: 4.0.67- version: 4.0.67([email protected])+ specifier: 4.0.69+ version: 4.0.69([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1411,8 +1411,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.102- version: 7.0.102([email protected])+ specifier: 7.0.105+ version: 7.0.105([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1528,38 +1528,38 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-HBYwlpuHgDDiCe+5MnEWPD5UTkB+BOpCzdptteRMSYL0GZot0XUC/j5Aeh0csDnSzohnSEqXMxQdgUgMeEZs/w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-rpz9LepVvjCs0YXWN/I5DLNAK/SbaA8g2sMTS1iyWQyH7Vsjqeonc3A7WbZiM6bfhNtrGO6irhvkDjL/xWpE1w==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-WbRChvbJY2zf0qBxFu6UENi0p69fPzP7lKViNTIp3gr76w9bLUFvV5fTXS5uGPqDOkzlTIuAkqWxYNayEBSn6Q==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-c8ztST/CslupqO3p7izsAuG3TlKg9mhE6mGJ42iUADsSMJIV5IOKd9AsLG33QCAY7SWs6NDO2giM/rq7bUTNlQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-0e8BKY1/P9/YJ2K09jNG3E0PZlsvtN3dugBjmfCc8vEEQr28tpkv/KB1V6cP3CHw4MKxqQU4wppPYUntpkiM1w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-MoWPhC+kwqiAsFF21iPDCxZPXW6lQYY1ImjohQ0q7VHgY4e8I/mfgKeeessYFI/mh0e7vSxG0/P767PSsTdngg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-F14lzHMAEtFyN6hlIP1jH7zqcm4Lutpv4QV9jqpT+/SDRvRssNJrOEZGWA9FSolrUDNfzESPcX/AhvEzlm3czw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-HAKua/QVNjwsBpJE3SUGLEPCSRThOLiiOy92gsUOkX4ZnEJHubkR6REHvi4RGGIn97lYBma+mq3BjBqgyNuhwQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-hSosMII5k33z0buaZ6dugH/g8yIJjPQBILuQvr4ThdiMJxrkiZxFWTgIkvKsT6Dk493JbsnGz5W/q88Y5bR7WA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-gw/bcNseOGSs59TMtV4H1KwqXXe24NHgx+uBYr98pa4Fg6Uvp8hPPxjuckVnfFFyIxHCDew8so0ujpvcSuyMZA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-LIDCrT8xgWVMiVUV13+v9FXPJ8B5uX/5ByEMXxp9Sspr2SyB1PwMSCPshZoI/t+4AgxyZCFEVutdaigCnqje3w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-VYMBxIQdcHqbIf1j+YZlI9Ati6LZ4wJe0GGd4z4a5H/KxTggjeOiyaVYTnfF7LHZK5jMQ+rofmzz4QPqf++NUw==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5756,8 +5756,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-zYpEoHm3+T+KGGlP7aLGhrEVCbJdTxb7eoxvGBB+BjSrHnt55+uQ/sHUO69xUly1LB2RoDpHD3o521HSzs+h8g==}+ resolution: {integrity: sha512-gkV3W+tTtWwQ41KNV/KjV8wabBrk+bnbnZ3f0AWp/T9LLyljose8uhFViKleVy7tIdEiR2PiS4BpbNdcExf7rQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5@@ -11766,41 +11766,41 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.15- '@ai-sdk/provider-utils': 5.0.41([email protected])+ '@ai-sdk/provider': 4.0.17+ '@ai-sdk/provider-utils': 5.0.43([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.15- '@ai-sdk/provider-utils': 5.0.41([email protected])+ '@ai-sdk/provider': 4.0.17+ '@ai-sdk/provider-utils': 5.0.43([email protected])'@vercel/oidc': 3.2.0zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.15- '@ai-sdk/provider-utils': 5.0.41([email protected])+ '@ai-sdk/provider': 4.0.17+ '@ai-sdk/provider-utils': 5.0.43([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.15- '@ai-sdk/provider-utils': 5.0.41([email protected])+ '@ai-sdk/provider': 4.0.17+ '@ai-sdk/provider-utils': 5.0.43([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.15+ '@ai-sdk/provider': 4.0.17'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.1undici: 7.29.1zod: 4.6.5- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -15524,7 +15524,7 @@ snapshots:'@types/[email protected]':dependencies:'@types/connect': 3.4.38- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/[email protected]':dependencies:@@ -15559,7 +15559,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/[email protected](@types/[email protected])':dependencies:@@ -15702,7 +15702,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/qs': 6.15.1'@types/range-parser': 1.2.7'@types/send': 1.2.1@@ -15820,7 +15820,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/[email protected]':dependencies:@@ -15829,7 +15829,7 @@ snapshots:'@types/[email protected]':dependencies:'@types/http-errors': 2.0.5- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/[email protected]': {}@@ -15860,7 +15860,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 24.13.4+ '@types/node': 24.13.5'@types/[email protected]':dependencies:@@ -17748,11 +17748,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.82([email protected])- '@ai-sdk/provider': 4.0.15- '@ai-sdk/provider-utils': 5.0.41([email protected])+ '@ai-sdk/gateway': 4.0.85([email protected])+ '@ai-sdk/provider': 4.0.17+ '@ai-sdk/provider-utils': 5.0.43([email protected])zod: 4.6.5diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 79d0b1d60d..1fe513b6d5 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -38,7 +38,7 @@ overrides:# copies in the tree mean two declarations of the `unique symbol` that marks a `Schema`, so a tool# built by one provider stops being assignable to the ToolSet `ai` expects (TS2322 on the Anthropic# web-search tool). Pin the version `ai` itself is built against, and raise it with the next bump.- "@ai-sdk/provider-utils": "5.0.41"+ "@ai-sdk/provider-utils": "5.0.43""zod": "4.6.5""mermaid": "12.0.0""preact": "10.29.8"