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]4a97e03500d2
diff --git a/apps/server/package.json b/apps/server/package.jsonindex fb8609732c..16b379b066 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -29,14 +29,14 @@},"dependencies": {"@agentclientprotocol/codex-acp": "2.0.0",- "@ai-sdk/anthropic": "4.0.65",- "@ai-sdk/deepseek": "3.0.54",- "@ai-sdk/google": "4.0.82",- "@ai-sdk/openai": "4.0.78",+ "@ai-sdk/anthropic": "4.0.68",+ "@ai-sdk/deepseek": "3.0.56",+ "@ai-sdk/google": "4.0.85",+ "@ai-sdk/openai": "4.0.81","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "2.1.13","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.116",+ "ai": "7.0.122","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 89e7f334dc..e00bd2b724 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.65",- "@ai-sdk/deepseek": "3.0.54",- "@ai-sdk/google": "4.0.82",- "@ai-sdk/openai": "4.0.78",+ "@ai-sdk/anthropic": "4.0.68",+ "@ai-sdk/deepseek": "3.0.56",+ "@ai-sdk/google": "4.0.85",+ "@ai-sdk/openai": "4.0.81","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/highlightjs": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.116",+ "ai": "7.0.122","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3f61276173..faabf9f904 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -16,7 +16,7 @@ overrides:'@lezer/common': 1.5.3'@lezer/highlight': 1.2.5'@lezer/lr': 1.4.10- '@ai-sdk/provider-utils': 5.0.49+ '@ai-sdk/provider-utils': 5.0.51'@agentclientprotocol/codex-acp>@openai/codex': '-'zod: 4.6.5mermaid: 12.0.0@@ -647,17 +647,17 @@ importers:specifier: 2.0.0version: 2.0.0'@ai-sdk/anthropic':- specifier: 4.0.65- version: 4.0.65([email protected])+ specifier: 4.0.68+ version: 4.0.68([email protected])'@ai-sdk/deepseek':- specifier: 3.0.54- version: 3.0.54([email protected])+ specifier: 3.0.56+ version: 3.0.56([email protected])'@ai-sdk/google':- specifier: 4.0.82- version: 4.0.82([email protected])+ specifier: 4.0.85+ version: 4.0.85([email protected])'@ai-sdk/openai':- specifier: 4.0.78- version: 4.0.78([email protected])+ specifier: 4.0.81+ version: 4.0.81([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.284(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -668,8 +668,8 @@ importers:specifier: ^1.12.1version: 1.31.0([email protected])([email protected])ai:- specifier: 7.0.116- version: 7.0.116([email protected])+ specifier: 7.0.122+ version: 7.0.122([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1427,17 +1427,17 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.65- version: 4.0.65([email protected])+ specifier: 4.0.68+ version: 4.0.68([email protected])'@ai-sdk/deepseek':- specifier: 3.0.54- version: 3.0.54([email protected])+ specifier: 3.0.56+ version: 3.0.56([email protected])'@ai-sdk/google':- specifier: 4.0.82- version: 4.0.82([email protected])+ specifier: 4.0.85+ version: 4.0.85([email protected])'@ai-sdk/openai':- specifier: 4.0.78- version: 4.0.78([email protected])+ specifier: 4.0.81+ version: 4.0.81([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1451,8 +1451,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.116- version: 7.0.116([email protected])+ specifier: 7.0.122+ version: 7.0.122([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1589,44 +1589,44 @@ packages:peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-3fmxxn5xWGOPU1wGrUCI30YFW5r6h2WrY+sz3rokkVlBHrDr889hPYP1yNoSmOVvtAwCFWlm79P2lRngIPOObg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-7PzZEf2brum218FSdXf6gE9yz4gKkLwkoLkPwoBExWYFj/Qsbi2JetWDKnFOdV6eezOnP72pGs3T0OKUaAEcLw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-1ByKYV/uis+3U66kueMJgF2DjN0DcJVtacZf7s1+BttKQwIRmHhKnQ3aqDRlIzpc2as59eqO5dxGi8Bfii2Pnw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-ZBmtMofJqRzJK1JoPhz7EwcboJgsA7CCZDQ4Ld6SyHoONN29Sb3Pvnrq6YsK4gE3InnTx/cjjE+GJhL0Z/G+lw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-hcp7GLnMynH6NfMnemgvW9acn7j3WsUe/dHFzX3/fhPit08xhm1aYmDGHMiIT6YwsXVBxkit9TriKb2SGAOg+Q==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-diJXVW2D1/NUW2JSg99b8yTpN8eW9AK5ntXSW4B7NrsW5STqwcGJAAOFlfOrQBzYHJlWReyy11WefWetdx4Qsw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-2zPYyBSyIcywLtOEJRxlrtXjBjz4KxEU19Qqg/Dk8I9BrsB08+ghG2jv155dtuDZj8qZMrh6LO8J+Wt5O4xVhg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-gYfORjh13EkLZWKvpF3gEe2cAMEC3O9tnWniz2wuz8mHqJo08RfCjtLtP8iTka/xq4+a8lnXD4OGipDELd/GnA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-S9WLSZUqebRjZbwYM8uorb4fsjo4Lhz/PGA3rWl01x88WeF/1PdHtNckcxqNZy5xMRzCHPVv9iA3F+ckV74zfA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-xLKx+4pbRvKF1gaXckfg0gQxDppi5SVYQsB/gkkzElCjAZ1OYDJB7xp+CvXIZGI6fzspricSfOl7MxEDvEdilg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-T+/H8DCvqJoCqLhltVatS7ffA779Iyk/ZZrgNXkrgv51E0n2Cd6eIdCmtwhCGIKqtbTtwCvTmQdAMv5Z8rOGHQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-z0IsEsDx+dxlZqyCtDjMbBj16NGmxFVTgQcP3+n3EFm9ttNU6wjOgL/kgvaPwtmZM6F7JbtRuLyzr6WOfo5DMw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-+GZJIgz1jk86pwEbb3f1BD2bdoSKyWE4Jg4YUc7NMnMozbWemSKYZcw2F4nMaO5qwsL5A8RmioAKW81YktRpIQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-ryVZSSfmpEsr4bM8rbt9cSBWal+KGYRrm57C+k/hiPQHMiMahaqg2bPF0MpxSUWY8mGpt7s/ajM6PAqNTMKqPQ==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5689,8 +5689,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-gmkVGPzTNPcJixBiG9zUvP3gmvwko85dHiKrxFKK0zcVJIIu1FP6YDo3jna+ZrC2twMAsUPLr5htCwZjCINH3Q==}+ resolution: {integrity: sha512-Un4yVROG+BMd6Q62xUxb9yV+wlTrUGeXhRtg5ltEFDV0p3lOYQaQHK9ozB6rdPdqlH3LyaszfbFdUkZ1p00nIQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.5@@ -11865,47 +11865,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.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([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.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([email protected])zod: 4.6.5- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.18+ '@ai-sdk/provider': 4.0.19'@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@@ -17176,11 +17176,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.94([email protected])- '@ai-sdk/provider': 4.0.18- '@ai-sdk/provider-utils': 5.0.49([email protected])+ '@ai-sdk/gateway': 4.0.100([email protected])+ '@ai-sdk/provider': 4.0.19+ '@ai-sdk/provider-utils': 5.0.51([email protected])zod: 4.6.5diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 59f38107d3..e7788c0e36 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.49"+ "@ai-sdk/provider-utils": "5.0.51"# 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": "-"