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]e4f29210b6ea
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 20cf4dd720..656b5d0a6c 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.56",- "@ai-sdk/google": "4.0.74",- "@ai-sdk/openai": "4.0.69",+ "@ai-sdk/anthropic": "4.0.58",+ "@ai-sdk/google": "4.0.76",+ "@ai-sdk/openai": "4.0.71","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.105",+ "ai": "7.0.107","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 6a0a8726e9..af213f14f7 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.56",- "@ai-sdk/google": "4.0.74",- "@ai-sdk/openai": "4.0.69",+ "@ai-sdk/anthropic": "4.0.58",+ "@ai-sdk/google": "4.0.76",+ "@ai-sdk/openai": "4.0.71","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.105",+ "ai": "7.0.107","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex afc1a53c8b..5512bd7ead 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.43+ '@ai-sdk/provider-utils': 5.0.45zod: 4.6.5mermaid: 12.0.0preact: 10.29.8@@ -610,14 +610,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.56- version: 4.0.56([email protected])+ specifier: 4.0.58+ version: 4.0.58([email protected])'@ai-sdk/google':- specifier: 4.0.74- version: 4.0.74([email protected])+ specifier: 4.0.76+ version: 4.0.76([email protected])'@ai-sdk/openai':- specifier: 4.0.69- version: 4.0.69([email protected])+ specifier: 4.0.71+ version: 4.0.71([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.276(@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.105- version: 7.0.105([email protected])+ specifier: 7.0.107+ version: 7.0.107([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.56- version: 4.0.56([email protected])+ specifier: 4.0.58+ version: 4.0.58([email protected])'@ai-sdk/google':- specifier: 4.0.74- version: 4.0.74([email protected])+ specifier: 4.0.76+ version: 4.0.76([email protected])'@ai-sdk/openai':- specifier: 4.0.69- version: 4.0.69([email protected])+ specifier: 4.0.71+ version: 4.0.71([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.105- version: 7.0.105([email protected])+ specifier: 7.0.107+ version: 7.0.107([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1528,32 +1528,32 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-rpz9LepVvjCs0YXWN/I5DLNAK/SbaA8g2sMTS1iyWQyH7Vsjqeonc3A7WbZiM6bfhNtrGO6irhvkDjL/xWpE1w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-vhXKBz7jnIhBlOoj2d0joyHicWISuIxDNha65SLrAnagAkVgulLoZBRLZRazstxlO/BtXU+cDERe1opVKte2OQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-c8ztST/CslupqO3p7izsAuG3TlKg9mhE6mGJ42iUADsSMJIV5IOKd9AsLG33QCAY7SWs6NDO2giM/rq7bUTNlQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-6wJmX/D5OO7tvDJbtFdXdBuRt8AkCnW+FLK+W35UHe/tHgolAa4hclXtJcMSYnlTDy/t5DNRgdesVaoMXtwzow==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-MoWPhC+kwqiAsFF21iPDCxZPXW6lQYY1ImjohQ0q7VHgY4e8I/mfgKeeessYFI/mh0e7vSxG0/P767PSsTdngg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-RHYTfsrlzM2D7VS4dxq2TWFj0tzE+ALesbTIkrFgyqBbBER8TLw/r93h9IVhR27cLcl4II1tLyiuzZq44IyoCQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-HAKua/QVNjwsBpJE3SUGLEPCSRThOLiiOy92gsUOkX4ZnEJHubkR6REHvi4RGGIn97lYBma+mq3BjBqgyNuhwQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-w8FuHr1bD/bP/8SIgcaJKUyePE4ke9s7+Ew2ed/9i5mDoFXEfyVUyFX8R0wQ3YfcdMKmTs8ct/f6XJsXsnPVsQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-gw/bcNseOGSs59TMtV4H1KwqXXe24NHgx+uBYr98pa4Fg6Uvp8hPPxjuckVnfFFyIxHCDew8so0ujpvcSuyMZA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-gLuaCups8OCIRz3eO6WWz5op7VLYNNtFzyH0sWUr0FE9v7cTxR0qxDpQdrKnGcql+9WWttobjnZsJVsuEbsPQQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5@@ -2144,13 +2144,6 @@ packages:'@csstools/css-parser-algorithms': ^4.0.0'@csstools/css-tokenizer': ^4.0.0- '@csstools/[email protected]':- resolution: {integrity: sha512-3QKjR/vxyjcSXBLgb6lP0S3MGdvwbmqSsvLPbYdVORqPDc8FX1HAJ0Spk38bxaRXgvENTA47tlhhbb5Z2e8hEg==}- engines: {node: '>=20.19.0'}- peerDependencies:- '@csstools/css-parser-algorithms': ^4.0.0- '@csstools/css-tokenizer': ^4.0.0-'@csstools/[email protected]':resolution: {integrity: sha512-y4LpL+lmpuyKDiEFq2PnZUVFdAjsoB/qQJod79yLNokXyW7jewi+/WJ69EfItj8A2unWtxXnGjw6LYXgXu5ZjA==}engines: {node: '>=20.19.0'}@@ -5790,8 +5783,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-gkV3W+tTtWwQ41KNV/KjV8wabBrk+bnbnZ3f0AWp/T9LLyljose8uhFViKleVy7tIdEiR2PiS4BpbNdcExf7rQ==}+ resolution: {integrity: sha512-PVYQ3W9kR8oYiGQxbg4aFIlhQzKskZm8UV+4E0zB2uKOzFr8ju3bXQncOOZtLsOgJY8vdpgyu3cXtomsfcdQYg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5@@ -11815,32 +11808,32 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.17- '@ai-sdk/provider-utils': 5.0.43([email protected])+ '@ai-sdk/provider-utils': 5.0.45([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.17- '@ai-sdk/provider-utils': 5.0.43([email protected])+ '@ai-sdk/provider-utils': 5.0.45([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.17- '@ai-sdk/provider-utils': 5.0.43([email protected])+ '@ai-sdk/provider-utils': 5.0.45([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.17- '@ai-sdk/provider-utils': 5.0.43([email protected])+ '@ai-sdk/provider-utils': 5.0.45([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.17'@standard-schema/spec': 1.1.0@@ -11884,11 +11877,11 @@ snapshots:'@asamuzakjp/[email protected]':dependencies:- '@csstools/css-calc': 3.3.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])- '@csstools/css-color-parser': 4.2.2(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])- '@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])- '@csstools/css-tokenizer': 4.0.0- lru-cache: 11.5.2+ '@csstools/css-calc': 3.4.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-color-parser': 4.2.3(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])+ '@csstools/css-tokenizer': 4.0.1+ lru-cache: 11.5.3optional: true'@asamuzakjp/[email protected]':@@ -11904,7 +11897,7 @@ snapshots:bidi-js: 1.1.0css-tree: 3.2.1is-potential-custom-element-name: 1.0.1- lru-cache: 11.5.2+ lru-cache: 11.5.3optional: true'@asamuzakjp/[email protected]':@@ -13014,12 +13007,10 @@ snapshots:'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])'@csstools/css-tokenizer': 4.0.1- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':dependencies:- '@csstools/color-helpers': 6.1.1- '@csstools/css-calc': 3.3.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])- '@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])- '@csstools/css-tokenizer': 4.0.0+ '@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])+ '@csstools/css-tokenizer': 4.0.1optional: true'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':@@ -13029,6 +13020,14 @@ snapshots:'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])'@csstools/css-tokenizer': 4.0.1+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ dependencies:+ '@csstools/color-helpers': 6.1.1+ '@csstools/css-calc': 3.4.0(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])+ '@csstools/css-tokenizer': 4.0.1+ optional: true+'@csstools/[email protected](@csstools/[email protected])':dependencies:'@csstools/css-tokenizer': 4.0.0@@ -17837,11 +17836,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.85([email protected])+ '@ai-sdk/gateway': 4.0.87([email protected])'@ai-sdk/provider': 4.0.17- '@ai-sdk/provider-utils': 5.0.43([email protected])+ '@ai-sdk/provider-utils': 5.0.45([email protected])zod: 4.6.5@@ -21052,14 +21051,14 @@ snapshots:'@asamuzakjp/css-color': 6.0.7'@asamuzakjp/dom-selector': 8.3.2'@bramus/specificity': 2.4.2- '@csstools/css-syntax-patches-for-csstree': 1.1.12([email protected])+ '@csstools/css-syntax-patches-for-csstree': 1.1.14([email protected])'@exodus/bytes': 1.15.1(@noble/[email protected])css-tree: 3.2.1data-urls: 7.0.0(@noble/[email protected])decimal.js: 10.6.0html-encoding-sniffer: 6.0.0(@noble/[email protected])is-potential-custom-element-name: 1.0.1- lru-cache: 11.5.2+ lru-cache: 11.5.3parse5: 8.0.1saxes: 6.0.0symbol-tree: 3.2.4diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 1fe513b6d5..878b132a11 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.43"+ "@ai-sdk/provider-utils": "5.0.45""zod": "4.6.5""mermaid": "12.0.0""preact": "10.29.8"