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]4dda9c054faf
diff --git a/apps/server/package.json b/apps/server/package.jsonindex f4d868cc0c..979ce83555 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -33,14 +33,14 @@},"dependencies": {"@agentclientprotocol/codex-acp": "1.13.1",- "@ai-sdk/anthropic": "4.0.60",- "@ai-sdk/deepseek": "3.0.50",- "@ai-sdk/google": "4.0.77",- "@ai-sdk/openai": "4.0.72",+ "@ai-sdk/anthropic": "4.0.62",+ "@ai-sdk/deepseek": "3.0.52",+ "@ai-sdk/google": "4.0.79",+ "@ai-sdk/openai": "4.0.74","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.111",+ "ai": "7.0.113","better-sqlite3": "13.0.3","i18next": "26.4.2","ipaddr.js": "^2.4.0",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex 9215ec8744..7ec9737b64 100644--- a/packages/trilium-core/package.json+++ b/packages/trilium-core/package.json@@ -8,15 +8,15 @@"update-model-prices": "tsx ./scripts/update-model-prices.ts"},"dependencies": {- "@ai-sdk/anthropic": "4.0.60",- "@ai-sdk/deepseek": "3.0.50",- "@ai-sdk/google": "4.0.77",- "@ai-sdk/openai": "4.0.72",+ "@ai-sdk/anthropic": "4.0.62",+ "@ai-sdk/deepseek": "3.0.52",+ "@ai-sdk/google": "4.0.79",+ "@ai-sdk/openai": "4.0.74","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/highlightjs": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.111",+ "ai": "7.0.113","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3dfdb0d7b8..5ccf191346 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.45+ '@ai-sdk/provider-utils': 5.0.47'@agentclientprotocol/codex-acp>@openai/codex': '-'zod: 4.6.5mermaid: 12.0.0@@ -638,17 +638,17 @@ importers:specifier: 1.13.1version: 1.13.1'@ai-sdk/anthropic':- specifier: 4.0.60- version: 4.0.60([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@ai-sdk/deepseek':- specifier: 3.0.50- version: 3.0.50([email protected])+ specifier: 3.0.52+ version: 3.0.52([email protected])'@ai-sdk/google':- specifier: 4.0.77- version: 4.0.77([email protected])+ specifier: 4.0.79+ version: 4.0.79([email protected])'@ai-sdk/openai':- specifier: 4.0.72- version: 4.0.72([email protected])+ specifier: 4.0.74+ version: 4.0.74([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.280(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -659,8 +659,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.111- version: 7.0.111([email protected])+ specifier: 7.0.113+ version: 7.0.113([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1415,17 +1415,17 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.60- version: 4.0.60([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@ai-sdk/deepseek':- specifier: 3.0.50- version: 3.0.50([email protected])+ specifier: 3.0.52+ version: 3.0.52([email protected])'@ai-sdk/google':- specifier: 4.0.77- version: 4.0.77([email protected])+ specifier: 4.0.79+ version: 4.0.79([email protected])'@ai-sdk/openai':- specifier: 4.0.72- version: 4.0.72([email protected])+ specifier: 4.0.74+ version: 4.0.74([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1439,8 +1439,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.111- version: 7.0.111([email protected])+ specifier: 7.0.113+ version: 7.0.113([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1577,44 +1577,44 @@ packages:peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-7Hb10pUnPRLYQxrWC5OtcYEmrOIGmAez6+meKBePxCO09Jjle5Ke+L2mTOonAVkY/7MEafpY7c55F7DJ9yGeNg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-+3jlcfQ5yNlsbfhlWx36iKq6bEPISFz5crDaRsHOq6dWW8a9YkKiWDGahOBwenL++Pg3tqipinwFXoOoF4hAVQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-xqQwo+nlsr/LQDU1TTk14LpW6a8BlepkCMadjj8Myoq9eOMZ7zv7Y/YC62OMTQYjC1dds7oYtZWMN6nTpMeKzg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-6RBM7PAkHMUtIQqlrIx9jDmZk1Aof79ncMcR/4b57Y2sgeYZD7SVpvz/692aeCsz39PhH7aFUN3eKuJs67WvcA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-n0Q88UUASYQBGK3Ogs9pCe8h3ZXeTHFSuGOLBJAyH73MVGNKUv9w8EJX2f340WUF3eDWWOV305gO7YBpSCPblA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-bUjtlAh1wV8aiYIOuPK4mBA3oAd7cETU4A1oTXNCkjGagZJvFfj+hx4b1ZaF5gHL0IPa6KfmIvZ0VVKhAlapVg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-7s1Gy6PL/KRk12s31g+LMMY5v1D80AQT6Lm+HUGXvCXw5T5WCxzbUuxOrBegXhhLPfIXTRunkYgSIjcRys37Zw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-yKUxBy7jc+poiL9eThYzUo5gdwfpeLLO5AmhMYBMOwunJ9ppdZNxfhyq1F5CbsMPSuOr8AaPwrmEVMwoODFJbA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-X5dowqxAXPhu72FpspKX7P5nDycvl/Nt0Qi9A5VjdotV1SrJdhH4vOeWVdBootwEC6uY2hYN0SHAuL1fd4cV8Q==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-w8/lTBdxf3FR2sP2i7ihQkQhO7eHPL6dHw80sVW28IeoMIi8UhcNCFUkSniO0tANP67R0X/im8ejXPPf1fZUQw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-gLuaCups8OCIRz3eO6WWz5op7VLYNNtFzyH0sWUr0FE9v7cTxR0qxDpQdrKnGcql+9WWttobjnZsJVsuEbsPQQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-NZQ1hMxY6Hd4ZiinjpU5HUOsyCHiTFkHw7AiM1EVN+Cd3kNTi47flZWNvFwGqnBojntB1+2eBRTeHRuVLtPhEg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-VYMBxIQdcHqbIf1j+YZlI9Ati6LZ4wJe0GGd4z4a5H/KxTggjeOiyaVYTnfF7LHZK5jMQ+rofmzz4QPqf++NUw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-+GZJIgz1jk86pwEbb3f1BD2bdoSKyWE4Jg4YUc7NMnMozbWemSKYZcw2F4nMaO5qwsL5A8RmioAKW81YktRpIQ==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5861,8 +5861,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-jd35WisL5FT7lFB6wIsZ38G0EaL4p1o+bUuRfkZGTXqO21U3SWyEZ+muV7N191QQfNeExgoyaeFoa8Jx6Uo+0A==}+ resolution: {integrity: sha512-hOowAtiIUXwRqcdVRXll6ToNHYDdfXg+sFF1kYPlNDlgZ63rjR4mp1O29n5lSWZUNcHM1TlSzs30+6/XDUVcAA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5@@ -12077,47 +12077,47 @@ snapshots:dependencies: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.45([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([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.45([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([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.45([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([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.45([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([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.45([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([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': 4.0.18'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.1undici: 7.29.1zod: 4.6.5- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -18133,11 +18133,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.89([email protected])- '@ai-sdk/provider': 4.0.17- '@ai-sdk/provider-utils': 5.0.45([email protected])+ '@ai-sdk/gateway': 4.0.91([email protected])+ '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider-utils': 5.0.47([email protected])zod: 4.6.5diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex b40e22cf74..dc52c4b2a6 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.45"+ "@ai-sdk/provider-utils": "5.0.47"# The Codex provider runs the adapter against the user's own `codex` (CODEX_PATH), so the# 300-400 MB native Codex build the adapter depends on is never used."@agentclientprotocol/codex-acp>@openai/codex": "-"