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
Update ai sdk
renovate[bot]276c21987147
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 52b1c186df..558944da3a 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.49",- "@ai-sdk/google": "4.0.64",- "@ai-sdk/openai": "4.0.60",+ "@ai-sdk/anthropic": "4.0.50",+ "@ai-sdk/google": "4.0.65",+ "@ai-sdk/openai": "4.0.62","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.93",+ "ai": "7.0.94","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 73dfd2d549..5a8da3dafb 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.49",- "@ai-sdk/google": "4.0.64",- "@ai-sdk/openai": "4.0.60",+ "@ai-sdk/anthropic": "4.0.50",+ "@ai-sdk/google": "4.0.65",+ "@ai-sdk/openai": "4.0.62","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.93",+ "ai": "7.0.94","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6b2fb6ad6a..84cf6e247c 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.36+ '@ai-sdk/provider-utils': 5.0.37zod: 4.5.4mermaid: 11.17.2preact: 10.29.8@@ -604,14 +604,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.49- version: 4.0.49([email protected])+ specifier: 4.0.50+ version: 4.0.50([email protected])'@ai-sdk/google':- specifier: 4.0.64- version: 4.0.64([email protected])+ specifier: 4.0.65+ version: 4.0.65([email protected])'@ai-sdk/openai':- specifier: 4.0.60- version: 4.0.60([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.267(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -622,8 +622,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.93- version: 7.0.93([email protected])+ specifier: 7.0.94+ version: 7.0.94([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1390,14 +1390,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.49- version: 4.0.49([email protected])+ specifier: 4.0.50+ version: 4.0.50([email protected])'@ai-sdk/google':- specifier: 4.0.64- version: 4.0.64([email protected])+ specifier: 4.0.65+ version: 4.0.65([email protected])'@ai-sdk/openai':- specifier: 4.0.60- version: 4.0.60([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1408,8 +1408,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.93- version: 7.0.93([email protected])+ specifier: 7.0.94+ version: 7.0.94([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1525,38 +1525,38 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-fzy2sLrs3vNsliIgx65fuovsa6a7OTXd6DllKUgLuVmPyqLnvoZCv9NlKgq+krzDzSxLb9d0zTaJJpsjBVLNyA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-bHtVy5FC2JUX3T1zapquOqVxkYtDoDVUXUmZlobNq0EzZ2ESx72ysw223MzdlxCEoaFn3lDPog6EhjRgHd87qQ==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-HOnhw3oXtBnboBF7kAKipjToCN6+5w6EuukiUKiULcxBitS+vbHRRv9IUBcq+Z1wkXcJjfywKrt5r++I6OYyXg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-hWNtiveILLtkXm1t5tNmzeII8p+j/mzxlL2OtPAgU/0h4ZInkIVILX8Svx4SzI5U9d80B59gCPaKRAhb7jTtAw==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-D8+74xfXkzPi5qCe7iRzQRH/1WW805gBrXfwz7KKEBa0SMY2TENdsTrJnVqFZaT7UYow1Ls6qroaklLd9veU9w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-W687DtVx59ePCvzv1M8oqCOkSr/gs6wrHlEF/K1UXMHSwB2DuttrSMzXKudaDhwdoiqbCdckvt4efRih1OXHEQ==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-Wx8bRN/zD+jDujT7HDbU1tC66h0a5kNEMG1DDrILfUgil56IJ9JMeBrzGqDw56IspmcXFG6uRpRnuK8AEQeKgg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-KOemym7oinL4bSaPI/e1SYXp770jEkIAWz2VYgof4Xglua1q46ViLtrALTOndW9Vz8dYWar/CIYOMii5AnyMhw==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-MFXBn6XDyf37PNQAge/HTatPJE8Vmg/g/w4WPtjSV53jq8FKAzoaN5+43hsdQa9bqgN+/13jxug9ChvsG+godQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-WzLQPWtpLpunKBanq/TX8+rbBz7JdKpl8Io4nl/g+bLvePbxMlMuxLrxT8JzquxJmgWKbW4nfFrQ5mnX4A8mpw==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-fX2ENAc7iDpZ+Wp4+Rk06Usn/Ys7dI9uAkGv0jlF6XVrW13NkRWx5Ou+U6lIM2E1fTLkCs16GGrUAaVvroag7A==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-A/Cyjma9RLTLsF9xv/2OSaw9eyFhOIBqzoeOVZhp+xKZD8wv5opN+qyIa83NE4Jug2SjQ/Kaf08w1JX6CESR/w==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5852,8 +5852,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-CJss6zb9mlltk/mCr8qom20NBnqEQxVawkqwtT62tCwsxilZpXfHNRMRwcS3XRpzdP1kEluVuDBUayYWEEd95g==}+ resolution: {integrity: sha512-N70qu4y53SjhA+kHYQCGLNTXLsztV+Rh28l2JDuEzALY5EgNWloYvUDjssL2Pi1Ie2nILcgWShLRgTpU1HxGHg==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4@@ -11853,41 +11853,41 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.10- '@ai-sdk/provider-utils': 5.0.36([email protected])+ '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider-utils': 5.0.37([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.10- '@ai-sdk/provider-utils': 5.0.36([email protected])+ '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider-utils': 5.0.37([email protected])'@vercel/oidc': 3.2.0zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.10- '@ai-sdk/provider-utils': 5.0.36([email protected])+ '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider-utils': 5.0.37([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.10- '@ai-sdk/provider-utils': 5.0.36([email protected])+ '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider-utils': 5.0.37([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider': 4.0.11'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.1undici: 7.29.1zod: 4.5.4- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -17855,11 +17855,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.75([email protected])- '@ai-sdk/provider': 4.0.10- '@ai-sdk/provider-utils': 5.0.36([email protected])+ '@ai-sdk/gateway': 4.0.76([email protected])+ '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider-utils': 5.0.37([email protected])zod: 4.5.4diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 6f7d43be32..c1bf5052a9 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.36"+ "@ai-sdk/provider-utils": "5.0.37""zod": "4.5.4""mermaid": "11.17.2""preact": "10.29.8"