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]40d97706ad16
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 8d3e0b55d1..07659dc723 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -29,14 +29,14 @@},"dependencies": {"@agentclientprotocol/codex-acp": "2.2.2",- "@ai-sdk/anthropic": "4.0.79",- "@ai-sdk/deepseek": "3.0.64",- "@ai-sdk/google": "4.0.95",- "@ai-sdk/openai": "4.0.93",+ "@ai-sdk/anthropic": "4.0.81",+ "@ai-sdk/deepseek": "3.0.66",+ "@ai-sdk/google": "4.0.98",+ "@ai-sdk/openai": "4.0.95","@anthropic-ai/claude-agent-sdk": "^0.3.207","@hyzyla/pdfium": "3.0.0","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.140",+ "ai": "7.0.142","better-sqlite3": "13.0.3","i18next": "26.4.5","ipaddr.js": "^2.4.0",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex 090698cc7d..af3dc42e02 100644--- a/packages/trilium-core/package.json+++ b/packages/trilium-core/package.json@@ -8,17 +8,17 @@"update-model-prices": "tsx ./scripts/update-model-prices.ts"},"dependencies": {- "@ai-sdk/anthropic": "4.0.79",- "@ai-sdk/deepseek": "3.0.64",- "@ai-sdk/google": "4.0.95",- "@ai-sdk/openai": "4.0.93",+ "@ai-sdk/anthropic": "4.0.81",+ "@ai-sdk/deepseek": "3.0.66",+ "@ai-sdk/google": "4.0.98",+ "@ai-sdk/openai": "4.0.95","@braintree/sanitize-url": "7.1.2","@triliumnext/codemirror": "workspace:*","@triliumnext/commons": "workspace:*","@triliumnext/highlightjs": "workspace:*","@triliumnext/share-theme": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.140",+ "ai": "7.0.142","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b91e9ebbff..01a7717533 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.11- '@ai-sdk/provider-utils': 5.0.59+ '@ai-sdk/provider-utils': 5.0.61'@agentclientprotocol/codex-acp>@openai/codex': '-'zod: 4.6.7mermaid: 12.2.0@@ -642,17 +642,17 @@ importers:specifier: 2.2.2version: 2.2.2'@ai-sdk/anthropic':- specifier: 4.0.79- version: 4.0.79([email protected])+ specifier: 4.0.81+ version: 4.0.81([email protected])'@ai-sdk/deepseek':- specifier: 3.0.64- version: 3.0.64([email protected])+ specifier: 3.0.66+ version: 3.0.66([email protected])'@ai-sdk/google':+ specifier: 4.0.98+ version: 4.0.98([email protected])+ '@ai-sdk/openai':specifier: 4.0.95version: 4.0.95([email protected])- '@ai-sdk/openai':- specifier: 4.0.93- version: 4.0.93([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.300(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -663,8 +663,8 @@ importers:specifier: ^1.12.1version: 1.32.1([email protected])([email protected])ai:- specifier: 7.0.140- version: 7.0.140([email protected])+ specifier: 7.0.142+ version: 7.0.142([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1443,17 +1443,17 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.79- version: 4.0.79([email protected])+ specifier: 4.0.81+ version: 4.0.81([email protected])'@ai-sdk/deepseek':- specifier: 3.0.64- version: 3.0.64([email protected])+ specifier: 3.0.66+ version: 3.0.66([email protected])'@ai-sdk/google':+ specifier: 4.0.98+ version: 4.0.98([email protected])+ '@ai-sdk/openai':specifier: 4.0.95version: 4.0.95([email protected])- '@ai-sdk/openai':- specifier: 4.0.93- version: 4.0.93([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1473,8 +1473,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.140- version: 7.0.140([email protected])+ specifier: 7.0.142+ version: 7.0.142([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1608,44 +1608,44 @@ packages:peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-bBAmgc8IcwJDz7RkyIHaGNrN6k84oqZu6K2aYcdekYwab8PNcxvUgp/LG1S/tSU3SBoS+blFYuMjTQrIg8WHRQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-xcd2bmpJ1QvSAGtXhE/OJ1DPsCFZMfDoV49VlXdgkVBeHLgBf766l4VJUmGXq6ch+mLViE11Iy08F2g7Bi8O4A==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-nv+NE2CzKykapKCYTsUlOZ+HBPPMNc0QYl3PKYHEy9cvorKTWDWtN/u4UCXs2Uj5VjDF9nNUg22gLOgDYCy+Lw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-STb5esJAlQzKyfcw5PlHeA28cBs37EokRKxtgGZnls2QOjwMakw2Ab9vV+5xGclWV6fKGg2O5cuhEWVFjULTcw==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-fYov5+sH1A20/eN1PaL5z8bZ9RUq0CcL9yAsAhCHz/qUCKliDOg9HXjNYzOUlH6o21lIrp/aKQc8QLGkEEZGlQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-Xn+gDWM4Ti2FzYmxhlZtjEuGBGZlOYaQMpwcVRSN4c9qCMUszD5F5TAbkxgLV/tHKeMfEX+WEuTCl6Kkj2r73A==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-EKIJUHuA1lvZqEg7Oeizop/TjyHPh01wtZ09kHf03Qd0MBQ4wCLpE/i9/8oXgDe/CVr7+TM9rAZE0ocjNt525Q==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-oKV8Alas+fs4q0rfm/cErkP8HudA8L4hkR+JyFCmN/plyXU1w0pqF+K41ovnytK+m91HAwPcrrzh7YxLZji0UA==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-UUTCBDWwkNvsbukMstaT31K6wYnL73vp0X4gQL1/7W3LZlHT1wOZ6eZzlwj76s/O+QLXefWF6+ceRgPwTOX6FA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-rx8agb3u+pvDDqvrDYrXfMJVlnlwigNcdgqbwH4oGVi/UZRMNVY+SYhGNI9ynwjmiGcl6QG/QJz73e6qaGL7jg==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-eaXBTkguxBFzS+KvxGRsbdkX9A7+R1g/C4jWx9mup0oSs3Cx5Mb427/byGpD2XL8SnMYT9O8LmXBmrgo+N3TJw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-Y+Z3539UXw0ctFDNepTtG23VqBQHr2A6yI2qUxvQcg75DJYgJoD2F9U2Vp5OgQjX7lxto1BLgFtKuOhzrr52vQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-TtWwm6SxFiPomlMIbTQa+yhJte+w4/oCsW+wJrJzMC3MqHpAY9e5dJF1Y4HxyKt3W2Csac0KiI76Ckio11TFYw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-6ThcmkJQXSMlBrf6mirIjUUS04Q5/kApbYTOzd5lZfYXLa1XPpnDLxP/G96/DKc00fDIUOW9S2ls0mSzb0+l9w==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5680,8 +5680,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-GHWqpUcY7EsRHc7jC99SqzpgabExb9w7anxDYa5N79AIVsGavIZFxZKhVQ/SORkuXFkPO4FG8cCSweaGutvwSw==}+ resolution: {integrity: sha512-Tifni6/6nNhCu4GnFEeYYR7CGmJ3Yhm44SGxYrOupqP2aaZwmGGiiB5Zx4hiauJR0AWimcXULejDT+Qsj+SHOQ==}engines: {node: '>=22'}peerDependencies:zod: 4.6.7@@ -11990,47 +11990,47 @@ snapshots:dependencies:zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])'@vercel/oidc': 3.2.0zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])zod: 4.6.7- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.27+ '@ai-sdk/provider': 4.0.28'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.1undici: 7.29.1zod: 4.6.7- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -17356,11 +17356,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.113([email protected])- '@ai-sdk/provider': 4.0.27- '@ai-sdk/provider-utils': 5.0.59([email protected])+ '@ai-sdk/gateway': 4.0.115([email protected])+ '@ai-sdk/provider': 4.0.28+ '@ai-sdk/provider-utils': 5.0.61([email protected])zod: 4.6.7diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex e291084fd1..fbcab08795 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.59"+ "@ai-sdk/provider-utils": "5.0.61"# 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": "-"