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]7150cc3ee56c
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 3d9ff844c5..bc222af8e5 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.44",- "@ai-sdk/google": "4.0.56",- "@ai-sdk/openai": "4.0.50",+ "@ai-sdk/anthropic": "4.0.45",+ "@ai-sdk/google": "4.0.57",+ "@ai-sdk/openai": "4.0.51","@anthropic-ai/claude-agent-sdk": "^0.3.207","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.83",+ "ai": "7.0.84","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 82b4589a82..44f31f55dd 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.44",- "@ai-sdk/google": "4.0.56",- "@ai-sdk/openai": "4.0.50",+ "@ai-sdk/anthropic": "4.0.45",+ "@ai-sdk/google": "4.0.57",+ "@ai-sdk/openai": "4.0.51","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.83",+ "ai": "7.0.84","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1e5d91f97e..df42ab569b 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.32+ '@ai-sdk/provider-utils': 5.0.33mermaid: 11.17.2preact: 10.29.8roughjs: 4.6.6@@ -593,14 +593,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.44- version: 4.0.44([email protected])+ specifier: 4.0.45+ version: 4.0.45([email protected])'@ai-sdk/google':- specifier: 4.0.56- version: 4.0.56([email protected])+ specifier: 4.0.57+ version: 4.0.57([email protected])'@ai-sdk/openai':- specifier: 4.0.50- version: 4.0.50([email protected])+ specifier: 4.0.51+ version: 4.0.51([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.250(@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.83- version: 7.0.83([email protected])+ specifier: 7.0.84+ version: 7.0.84([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.44- version: 4.0.44([email protected])+ specifier: 4.0.45+ version: 4.0.45([email protected])'@ai-sdk/google':- specifier: 4.0.56- version: 4.0.56([email protected])+ specifier: 4.0.57+ version: 4.0.57([email protected])'@ai-sdk/openai':- specifier: 4.0.50- version: 4.0.50([email protected])+ specifier: 4.0.51+ version: 4.0.51([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.83- version: 7.0.83([email protected])+ specifier: 7.0.84+ version: 7.0.84([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-PZT62FpNvilIeyyk09+BxYnWmmqRWFLe7ers25OPI8SnQxwDSeXtUTxiZNSbZt4ywj53op/INhLR1z5uyL6tHA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-2h1WYU1VdfkI6CU3mLes7Vh4Ua3jq5LDE1ciMgUymLNS7ZbtqhgVzBBPhnOdg83lnkYTAOeApCgkGOdwJHxdkA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-LtyxLkg7dZ2iz8Ouh1806BJbA+q+FKc/mXUCl4v/wdNNIGtbfk80dNtlhqjhqOZa4dnfc3caVafRL7ocxzoegA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-XKvZv6HFoMOWK64zXMaQatk4SxBzBDkGg7enXPWsCkxqPP4zDhFewOoBKasf3FPnZP9ceE+Yj3BgW925blAWtw==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-WsBlrDd1bG7JskRErnSsY0uhOuruSLH43gYeUnsyFsFeckCv3xHzJjWSZFQ/Bw28qeXMYeqQpHaUewY0QUPt4w==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-/d4DKIDB5iTQ3X2PDDEdU5cQlLAC3qW7UL2WP+U7QKrr1tCJ58PFRd35NWieahxFe0yQF7PZrHdi212ALSy1Hw==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-e2Jepw5RbSwsCsPwyiNzdlmOHoCQefCziNp3k1UxfIv8QD0/p4SF6+cx7GuWX98jAVNiWLjRv1W3NVSmx3FuEQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-ByLpf4FrmiAFFV/hI2f3EwtuRR+e0AWttik2UsUgTpS10KIGEOvdO6RSMcMcDINQyqIQh8iCb9V7MC/6RtmDsg==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-MZUhlINn6FzKIWuX3T36h+yM9d7bG+yatH+kC99ZCe0DHxXfP73KwaoLiLcZDPQDamFyO3umPPBLJieZJyG4DQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-TfjJqJmRsQyxAlb+3hGmP1o1xLUIT79yhOgtJuTF4hqsB37IC3CufGsuFhU04EeTOg7R9iptQ6Bzm0MW0n/c3g==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -5838,8 +5838,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-bg7+SopUwqA7DeQ2O8I9qELyQTHCeeI/0RuNUlT/gGz+LqWrIl5vbYRQv3eMBEnUsVFaM33n6SA8Vqe9gi8L1w==}+ resolution: {integrity: sha512-znHNBWADOy79k8EK7636kDm5LmnjF4tMzegC2TfmlLDobDZbs0z0OXD2sxtH3eDTp5Re+pJQESvjinWJ6+kadQ==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -12206,32 +12206,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.32([email protected])+ '@ai-sdk/provider-utils': 5.0.33([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.32([email protected])+ '@ai-sdk/provider-utils': 5.0.33([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.32([email protected])+ '@ai-sdk/provider-utils': 5.0.33([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.32([email protected])+ '@ai-sdk/provider-utils': 5.0.33([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@@ -18266,11 +18266,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.67([email protected])+ '@ai-sdk/gateway': 4.0.68([email protected])'@ai-sdk/provider': 4.0.8- '@ai-sdk/provider-utils': 5.0.32([email protected])+ '@ai-sdk/provider-utils': 5.0.33([email protected])zod: 4.4.3diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 8ea45305dd..608e574db5 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.32"+ "@ai-sdk/provider-utils": "5.0.33""mermaid": "11.17.2""preact": "10.29.8""roughjs": "4.6.6"