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]4204f1f1fd99
diff --git a/apps/server/package.json b/apps/server/package.jsonindex eb1d6188e9..c46c2ecc96 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.52",- "@ai-sdk/google": "4.0.67",- "@ai-sdk/openai": "4.0.65",+ "@ai-sdk/anthropic": "4.0.53",+ "@ai-sdk/google": "4.0.69",+ "@ai-sdk/openai": "4.0.66","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.97",+ "ai": "7.0.99","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 1204dd03bf..097cb3a396 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.52",- "@ai-sdk/google": "4.0.67",- "@ai-sdk/openai": "4.0.65",+ "@ai-sdk/anthropic": "4.0.53",+ "@ai-sdk/google": "4.0.69",+ "@ai-sdk/openai": "4.0.66","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.97",+ "ai": "7.0.99","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b6565aefcf..739482e2d3 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.39+ '@ai-sdk/provider-utils': 5.0.40zod: 4.6.2mermaid: 12.0.0preact: 10.29.8@@ -613,14 +613,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.52- version: 4.0.52([email protected])+ specifier: 4.0.53+ version: 4.0.53([email protected])'@ai-sdk/google':- specifier: 4.0.67- version: 4.0.67([email protected])+ specifier: 4.0.69+ version: 4.0.69([email protected])'@ai-sdk/openai':- specifier: 4.0.65- version: 4.0.65([email protected])+ specifier: 4.0.66+ version: 4.0.66([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.268(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -631,8 +631,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.97- version: 7.0.97([email protected])+ specifier: 7.0.99+ version: 7.0.99([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1399,14 +1399,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.52- version: 4.0.52([email protected])+ specifier: 4.0.53+ version: 4.0.53([email protected])'@ai-sdk/google':- specifier: 4.0.67- version: 4.0.67([email protected])+ specifier: 4.0.69+ version: 4.0.69([email protected])'@ai-sdk/openai':- specifier: 4.0.65- version: 4.0.65([email protected])+ specifier: 4.0.66+ version: 4.0.66([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1417,8 +1417,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.97- version: 7.0.97([email protected])+ specifier: 7.0.99+ version: 7.0.99([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1534,38 +1534,38 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-IQt/y++kSUdqa9EbFOJntxLGjZMURTm/MnTUikNBZ5X86K5l96t/BwsRsX/SrH5kx+7yRPrmJ1WBNlmE8quSVg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-JMxAuCFte6mFOvoaUcig3Dp2LObin0wU2Li8ncsveh7hHKW7cG3g1bFjooxn1paxeT8UUf5XMSjhxtXG9wFLig==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-fcamzmFlcy+c/tIc7QcATLe/kArgSVGQ1QxaddMjhOSX8zypc2hmD5sHB2bp1DSFcSxDD32d6usF9a7xLCTULg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-6t+07o8lSthpKf64Xb1qHWR2bWvJ3Fd2oFvS9fQc45p31bi2OUqan246e/ojAmZpWCiMPjKyQ4TBr4MYytnTiQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-F+o3bRDz0ua2hJbpnuEsoNsKR11NT+nAhq1eZfaRJr2rzs5eKi/E9wJw8ZXeJx7NlYeBF6il5/+itTBdkM1kJg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-clIivD3RQwutykzKQ8CV+BXIA6EX3xcrfJyXXvAni2SlR9JVATSRbu+JFK/j25a330aZ6WiDwbGyD/u951qXOg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-rpk1Tv7TR0H338zTKmSVMxv4yo++HDOxioiuvBySb8cWkx2fS10tWl/5cEwL0diJbcV/+p3+9gpIOre52UoQJA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-W4GooZjROdOmf7dfjWlRWNVs+Vvr7ZwfDZbyAJRPo1bgQbpRoDd9ZcCwy/PX1X0s2G7B/dhN2RWOORsHtr0wGg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-VIFp4Qv3j+V941crFB1y2VG5yeGbeLOFRxiPaZJETkkpo1H5WviLx6H5yRkFkrXIGxnTGygKsPgCAJG0X61Auw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-zsXPwSAQ9mRJ2hvyITaLOYUyuGrBmzFhJXOg4mllGmla1PfNxZcm4GwqMiV2xQaDgcgBMdUGxXkp9xekZZNIkg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-sJvnbFIFLzmKFXIjfwS8XCOAj6puHCawItwvA9PBZgk2f/l/TiC4OSfK3ueDbUVXfRCOn5eJN97EIF10toIOmQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-yukP2tbcQQErG5gLCMBGvpvb/rM3D3KlTKG6eKKOdNHLHqtNNDEeBxdYrY/JL+O76B2ig5dXY19H/f1HFSvRiQ==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5759,8 +5759,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-tQGZ234p/bk5X/LNQdB43a5/z1Bve7wK0EOR1AwN6xrosZih4MIC/3pXhcnytcpBJHMbhLISW6J1dFTd/tnwPA==}+ resolution: {integrity: sha512-Ov+3j/nSajaVH5hO8C94wN9wisG5tAJ8HWsLV9d/+nlzrRGUh3oYO3Kp1fRyUNWjAWLSpGLHLPaHCdfxb307Vg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.2@@ -11767,41 +11767,41 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.13- '@ai-sdk/provider-utils': 5.0.39([email protected])+ '@ai-sdk/provider': 4.0.14+ '@ai-sdk/provider-utils': 5.0.40([email protected])zod: 4.6.2- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.13- '@ai-sdk/provider-utils': 5.0.39([email protected])+ '@ai-sdk/provider': 4.0.14+ '@ai-sdk/provider-utils': 5.0.40([email protected])'@vercel/oidc': 3.2.0zod: 4.6.2- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.13- '@ai-sdk/provider-utils': 5.0.39([email protected])+ '@ai-sdk/provider': 4.0.14+ '@ai-sdk/provider-utils': 5.0.40([email protected])zod: 4.6.2- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.13- '@ai-sdk/provider-utils': 5.0.39([email protected])+ '@ai-sdk/provider': 4.0.14+ '@ai-sdk/provider-utils': 5.0.40([email protected])zod: 4.6.2- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider': 4.0.14'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.1undici: 7.29.1zod: 4.6.2- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -17703,11 +17703,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.78([email protected])- '@ai-sdk/provider': 4.0.13- '@ai-sdk/provider-utils': 5.0.39([email protected])+ '@ai-sdk/gateway': 4.0.80([email protected])+ '@ai-sdk/provider': 4.0.14+ '@ai-sdk/provider-utils': 5.0.40([email protected])zod: 4.6.2diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 7b96b76e43..457939d251 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.39"+ "@ai-sdk/provider-utils": "5.0.40""zod": "4.6.2""mermaid": "12.0.0""preact": "10.29.8"