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]60f05daf4251
diff --git a/apps/server/package.json b/apps/server/package.jsonindex d66165aa4d..d67bf3c7c1 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.50",- "@ai-sdk/google": "4.0.65",- "@ai-sdk/openai": "4.0.62",+ "@ai-sdk/anthropic": "4.0.52",+ "@ai-sdk/google": "4.0.67",+ "@ai-sdk/openai": "4.0.65","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.94",+ "ai": "7.0.97","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 5a8da3dafb..e839cdd7f3 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.50",- "@ai-sdk/google": "4.0.65",- "@ai-sdk/openai": "4.0.62",+ "@ai-sdk/anthropic": "4.0.52",+ "@ai-sdk/google": "4.0.67",+ "@ai-sdk/openai": "4.0.65","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.94",+ "ai": "7.0.97","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex f11be29d60..9e51ce4b61 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.37+ '@ai-sdk/provider-utils': 5.0.39zod: 4.5.4mermaid: 11.17.2preact: 10.29.8@@ -604,14 +604,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.50- version: 4.0.50([email protected])+ specifier: 4.0.52+ version: 4.0.52([email protected])'@ai-sdk/google':+ specifier: 4.0.67+ version: 4.0.67([email protected])+ '@ai-sdk/openai':specifier: 4.0.65version: 4.0.65([email protected])- '@ai-sdk/openai':- 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.94- version: 7.0.94([email protected])+ specifier: 7.0.97+ version: 7.0.97([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.50- version: 4.0.50([email protected])+ specifier: 4.0.52+ version: 4.0.52([email protected])'@ai-sdk/google':+ specifier: 4.0.67+ version: 4.0.67([email protected])+ '@ai-sdk/openai':specifier: 4.0.65version: 4.0.65([email protected])- '@ai-sdk/openai':- 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.94- version: 7.0.94([email protected])+ specifier: 7.0.97+ version: 7.0.97([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-bHtVy5FC2JUX3T1zapquOqVxkYtDoDVUXUmZlobNq0EzZ2ESx72ysw223MzdlxCEoaFn3lDPog6EhjRgHd87qQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-IQt/y++kSUdqa9EbFOJntxLGjZMURTm/MnTUikNBZ5X86K5l96t/BwsRsX/SrH5kx+7yRPrmJ1WBNlmE8quSVg==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-hWNtiveILLtkXm1t5tNmzeII8p+j/mzxlL2OtPAgU/0h4ZInkIVILX8Svx4SzI5U9d80B59gCPaKRAhb7jTtAw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-fcamzmFlcy+c/tIc7QcATLe/kArgSVGQ1QxaddMjhOSX8zypc2hmD5sHB2bp1DSFcSxDD32d6usF9a7xLCTULg==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-W687DtVx59ePCvzv1M8oqCOkSr/gs6wrHlEF/K1UXMHSwB2DuttrSMzXKudaDhwdoiqbCdckvt4efRih1OXHEQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-F+o3bRDz0ua2hJbpnuEsoNsKR11NT+nAhq1eZfaRJr2rzs5eKi/E9wJw8ZXeJx7NlYeBF6il5/+itTBdkM1kJg==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-KOemym7oinL4bSaPI/e1SYXp770jEkIAWz2VYgof4Xglua1q46ViLtrALTOndW9Vz8dYWar/CIYOMii5AnyMhw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-rpk1Tv7TR0H338zTKmSVMxv4yo++HDOxioiuvBySb8cWkx2fS10tWl/5cEwL0diJbcV/+p3+9gpIOre52UoQJA==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-WzLQPWtpLpunKBanq/TX8+rbBz7JdKpl8Io4nl/g+bLvePbxMlMuxLrxT8JzquxJmgWKbW4nfFrQ5mnX4A8mpw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-VIFp4Qv3j+V941crFB1y2VG5yeGbeLOFRxiPaZJETkkpo1H5WviLx6H5yRkFkrXIGxnTGygKsPgCAJG0X61Auw==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-A/Cyjma9RLTLsF9xv/2OSaw9eyFhOIBqzoeOVZhp+xKZD8wv5opN+qyIa83NE4Jug2SjQ/Kaf08w1JX6CESR/w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-sJvnbFIFLzmKFXIjfwS8XCOAj6puHCawItwvA9PBZgk2f/l/TiC4OSfK3ueDbUVXfRCOn5eJN97EIF10toIOmQ==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5852,8 +5852,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-N70qu4y53SjhA+kHYQCGLNTXLsztV+Rh28l2JDuEzALY5EgNWloYvUDjssL2Pi1Ie2nILcgWShLRgTpU1HxGHg==}+ resolution: {integrity: sha512-tQGZ234p/bk5X/LNQdB43a5/z1Bve7wK0EOR1AwN6xrosZih4MIC/3pXhcnytcpBJHMbhLISW6J1dFTd/tnwPA==}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.11- '@ai-sdk/provider-utils': 5.0.37([email protected])+ '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider-utils': 5.0.39([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.11- '@ai-sdk/provider-utils': 5.0.37([email protected])+ '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider-utils': 5.0.39([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.11- '@ai-sdk/provider-utils': 5.0.37([email protected])+ '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider-utils': 5.0.39([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.11- '@ai-sdk/provider-utils': 5.0.37([email protected])+ '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider-utils': 5.0.39([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.11+ '@ai-sdk/provider': 4.0.13'@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.76([email protected])- '@ai-sdk/provider': 4.0.11- '@ai-sdk/provider-utils': 5.0.37([email protected])+ '@ai-sdk/gateway': 4.0.78([email protected])+ '@ai-sdk/provider': 4.0.13+ '@ai-sdk/provider-utils': 5.0.39([email protected])zod: 4.5.4diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex c1bf5052a9..c27d71b8a6 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.37"+ "@ai-sdk/provider-utils": "5.0.39""zod": "4.5.4""mermaid": "11.17.2""preact": "10.29.8"