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]7306dd48cdee
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 4c4e1ace2f..c4d692d31d 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.42",- "@ai-sdk/google": "4.0.51",- "@ai-sdk/openai": "4.0.47",+ "@ai-sdk/anthropic": "4.0.44",+ "@ai-sdk/google": "4.0.55",+ "@ai-sdk/openai": "4.0.50","@anthropic-ai/claude-agent-sdk": "^0.3.207","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.79",+ "ai": "7.0.83","better-sqlite3": "13.0.3","html-to-text": "10.0.1","i18next": "26.4.0",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex ab4bc5d2f4..ab37741fe8 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.42",- "@ai-sdk/google": "4.0.51",- "@ai-sdk/openai": "4.0.47",+ "@ai-sdk/anthropic": "4.0.44",+ "@ai-sdk/google": "4.0.55",+ "@ai-sdk/openai": "4.0.50","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.79",+ "ai": "7.0.83","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex cbf0bfcce6..bed8752a81 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.30+ '@ai-sdk/provider-utils': 5.0.32mermaid: 11.17.2preact: 10.29.8roughjs: 4.6.6@@ -593,14 +593,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.42- version: 4.0.42([email protected])+ specifier: 4.0.44+ version: 4.0.44([email protected])'@ai-sdk/google':- specifier: 4.0.51- version: 4.0.51([email protected])+ specifier: 4.0.55+ version: 4.0.55([email protected])'@ai-sdk/openai':- specifier: 4.0.47- version: 4.0.47([email protected])+ specifier: 4.0.50+ version: 4.0.50([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.247(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -608,8 +608,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.79- version: 7.0.79([email protected])+ specifier: 7.0.83+ version: 7.0.83([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1379,14 +1379,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.42- version: 4.0.42([email protected])+ specifier: 4.0.44+ version: 4.0.44([email protected])'@ai-sdk/google':- specifier: 4.0.51- version: 4.0.51([email protected])+ specifier: 4.0.55+ version: 4.0.55([email protected])'@ai-sdk/openai':- specifier: 4.0.47- version: 4.0.47([email protected])+ specifier: 4.0.50+ version: 4.0.50([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1397,8 +1397,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.79- version: 7.0.79([email protected])+ specifier: 7.0.83+ version: 7.0.83([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1514,32 +1514,32 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-U3RJDo2/rWdH6SjSbA2Owd30ZawKwt4zFTqteTTn6Po0vEW1ec1KXf6s1nwNE3mxCqKrQWEavU21C46AfGYaeg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-PZT62FpNvilIeyyk09+BxYnWmmqRWFLe7ers25OPI8SnQxwDSeXtUTxiZNSbZt4ywj53op/INhLR1z5uyL6tHA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-iayK1z11I0b3sgbP3j6eKQypfpwO5Fbtaq1Mkwv7YxwGQG1YTNr5QAjyYsSfqyf/58WUOLWz2cTBpk+ExZVgpw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-LtyxLkg7dZ2iz8Ouh1806BJbA+q+FKc/mXUCl4v/wdNNIGtbfk80dNtlhqjhqOZa4dnfc3caVafRL7ocxzoegA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-VAVXFtmMwrMDWgWzONew3yBFuE+ktfPJQn554+bOgUspNSMqIAm6PJRU6Mdd4M+4xCUAJi5H5tVtFF0+Je+Eog==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-2jSn6A0wY0KIy/GiMYtpPb4LP/qRqs5ihzeNB1wUpG6XaxubNqbjuCH2wq6lAoh5+n2J8a3NVKcdm6xjaqE6Ug==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-5/Lm29x7Z+GvUuzW3Hj6WXIgcdU7rBlpmnZPRVIUh7dhLus021upunjzpteYaH5v+JBQKC+Fg6BkRYrazysgTQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-e2Jepw5RbSwsCsPwyiNzdlmOHoCQefCziNp3k1UxfIv8QD0/p4SF6+cx7GuWX98jAVNiWLjRv1W3NVSmx3FuEQ==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-9TyxUXolql77ntHIeygLqt7PO1O0HZPB73cJhLG2OsPecSBRIZhNXLxT1T7rlL6Zpm1eDoLMFrMV99kAJ28/Sg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-MZUhlINn6FzKIWuX3T36h+yM9d7bG+yatH+kC99ZCe0DHxXfP73KwaoLiLcZDPQDamFyO3umPPBLJieZJyG4DQ==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -5950,8 +5950,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-zZkSUq6MgmXjwIfML2wkPFeQ5Azk8kGEWkciAtE0NgnFy3slj4ljsw5LvigsCbYXxTSVr+6iCHBTPZafpx1P0w==}+ resolution: {integrity: sha512-bg7+SopUwqA7DeQ2O8I9qELyQTHCeeI/0RuNUlT/gGz+LqWrIl5vbYRQv3eMBEnUsVFaM33n6SA8Vqe9gi8L1w==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -12381,32 +12381,32 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.8- '@ai-sdk/provider-utils': 5.0.30([email protected])+ '@ai-sdk/provider-utils': 5.0.32([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.8- '@ai-sdk/provider-utils': 5.0.30([email protected])+ '@ai-sdk/provider-utils': 5.0.32([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.8- '@ai-sdk/provider-utils': 5.0.30([email protected])+ '@ai-sdk/provider-utils': 5.0.32([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.8- '@ai-sdk/provider-utils': 5.0.30([email protected])+ '@ai-sdk/provider-utils': 5.0.32([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 4.0.8'@standard-schema/spec': 1.1.0@@ -18530,11 +18530,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.64([email protected])+ '@ai-sdk/gateway': 4.0.67([email protected])'@ai-sdk/provider': 4.0.8- '@ai-sdk/provider-utils': 5.0.30([email protected])+ '@ai-sdk/provider-utils': 5.0.32([email protected])zod: 4.4.3diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex e5896b82bd..ad97f9d386 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.30"+ "@ai-sdk/provider-utils": "5.0.32""mermaid": "11.17.2""preact": "10.29.8""roughjs": "4.6.6"