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]fad163632eea
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 55fc5c8436..8ab74c0132 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -32,12 +32,12 @@"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.39",- "@ai-sdk/google": "4.0.45",- "@ai-sdk/openai": "4.0.43",+ "@ai-sdk/anthropic": "4.0.40",+ "@ai-sdk/google": "4.0.47",+ "@ai-sdk/openai": "4.0.44","@anthropic-ai/claude-agent-sdk": "^0.3.207","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.68",+ "ai": "7.0.70","better-sqlite3": "13.0.3","html-to-text": "10.0.0","i18next": "26.3.6",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex e7235f12e2..5d73434733 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.39",- "@ai-sdk/google": "4.0.45",- "@ai-sdk/openai": "4.0.43",+ "@ai-sdk/anthropic": "4.0.40",+ "@ai-sdk/google": "4.0.47",+ "@ai-sdk/openai": "4.0.44","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.68",+ "ai": "7.0.70","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex df7655d087..013e77959e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -15,7 +15,7 @@ overrides:'@lezer/common': 1.5.2'@lezer/highlight': 1.2.3'@lezer/lr': 1.4.10- '@ai-sdk/provider-utils': 5.0.27+ '@ai-sdk/provider-utils': 5.0.28mermaid: 11.17.0preact: 10.29.8roughjs: 4.6.6@@ -589,14 +589,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.39- version: 4.0.39([email protected])+ specifier: 4.0.40+ version: 4.0.40([email protected])'@ai-sdk/google':- specifier: 4.0.45- version: 4.0.45([email protected])+ specifier: 4.0.47+ version: 4.0.47([email protected])'@ai-sdk/openai':- specifier: 4.0.43- version: 4.0.43([email protected])+ specifier: 4.0.44+ version: 4.0.44([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.235(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -604,8 +604,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.68- version: 7.0.68([email protected])+ specifier: 7.0.70+ version: 7.0.70([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1378,14 +1378,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.39- version: 4.0.39([email protected])+ specifier: 4.0.40+ version: 4.0.40([email protected])'@ai-sdk/google':- specifier: 4.0.45- version: 4.0.45([email protected])+ specifier: 4.0.47+ version: 4.0.47([email protected])'@ai-sdk/openai':- specifier: 4.0.43- version: 4.0.43([email protected])+ specifier: 4.0.44+ version: 4.0.44([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1396,8 +1396,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.68- version: 7.0.68([email protected])+ specifier: 7.0.70+ version: 7.0.70([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1513,32 +1513,32 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-JAMGtYeEuaBzqbsPO4fkho6vQyNoVhsHASM4o59wmJRU6Vh7prjOp490Kmc7YQTY+ioU1/xYzXvWOtxZBup0Xw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-cFlCZspCUC1LGDipARsKx3+4A8c9qI+vFuG0/04Phs0deKwifNsl8wDmcU2HO31aiNR9AJgEBcvg5S00zUS70g==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-x4fAXDqCtYzB/M5vsIQLYcyrzpJuaRgcIwDSw+lpTMMbgH19fU3ds75GSlHNLzfx6Z5yL4Z9+EMr0GJcqVy9QA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-fc7tq+v7WrzCV+aXegbq/EOs68tFDJYLEwnCOnVYcB/Y5ZTjUIHzyJlrqdoJUlMTkc/qmKsXb1ovVvdUYPmxIA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-1oLHhc2twSQzm7O8j/HaRWLfBh+tPjQP55d8yXmrZvvopoH6/P7WaDznVJqjouGSof429lR+tYdINkjvUl+8Qg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-Aj/VRSDpNmxjC0mU1qWNI9BydRoRI3INVHv1KZcFj3lI7rdxmXuenhUfXw8KnfZlREWX3J3rM9JNF1khuxGfnw==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-O5t21AmcBwsEg/l8ro91CHzdBjEkxtJRFh6DH9KDjRrWDeTMuqJt7XkaFHIqL8H0nvjFv8H7kck+JwirUWPS2g==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-x3XjhKu5r7DKELWwE5WzCAKePkAqZXlgvat4eIiSm37MaQHk+n3qeJxmVcfqJWlQ2kkAld8+f7G3E3yjG+4ShQ==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-EzAn4pdgG5g0xXtH6lE2zyNmfjDQIDjATkfqzuidEI35g++hh4+07vnjzkT/RmGmIClPZiRj/Q2GMPV2V7mkHw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-TnHUyd/rCYQqHg5RuiOaz/hUql6U+kbUaBW0Rp+0N5UhnAInA9CzzV0HXvuAAPwppDsK6fAx9Rd+tRawpJ/3pg==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -5997,8 +5997,8 @@ packages:resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}engines: {node: '>=8'}- resolution: {integrity: sha512-9QuZOT77wzoxxUC0NcueXhCo3HUHA/1pApIJ9VRyE+9/K+3Innkq4kVhrd9aEnwIviJz2Nga063m+UTsPSdOyw==}+ resolution: {integrity: sha512-r7Y0alVQqairf0WvT3puyjz5wPMjRV5zYSHiGz87K3uoqkCeK1EaN6O8lLqduSszLcfqC6XVJAIdy3/RkPwPHg==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -12476,32 +12476,32 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.7- '@ai-sdk/provider-utils': 5.0.27([email protected])+ '@ai-sdk/provider-utils': 5.0.28([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.7- '@ai-sdk/provider-utils': 5.0.27([email protected])+ '@ai-sdk/provider-utils': 5.0.28([email protected])'@vercel/oidc': 3.2.0zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.7- '@ai-sdk/provider-utils': 5.0.27([email protected])+ '@ai-sdk/provider-utils': 5.0.28([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.7- '@ai-sdk/provider-utils': 5.0.27([email protected])+ '@ai-sdk/provider-utils': 5.0.28([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.7'@standard-schema/spec': 1.1.0@@ -18715,11 +18715,11 @@ snapshots:clean-stack: 2.2.0indent-string: 4.0.0dependencies:- '@ai-sdk/gateway': 4.0.54([email protected])+ '@ai-sdk/gateway': 4.0.56([email protected])'@ai-sdk/provider': 4.0.7- '@ai-sdk/provider-utils': 5.0.27([email protected])+ '@ai-sdk/provider-utils': 5.0.28([email protected])zod: 4.4.3diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex c450551b93..872566a8bf 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -35,7 +35,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.27"+ "@ai-sdk/provider-utils": "5.0.28""mermaid": "11.17.0""preact": "10.29.8""roughjs": "4.6.6"