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]a8ec9ee08b92
diff --git a/apps/server/package.json b/apps/server/package.jsonindex 7df2eaf1c8..0d86afdaa7 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.46",- "@ai-sdk/google": "4.0.59",- "@ai-sdk/openai": "4.0.53",+ "@ai-sdk/anthropic": "4.0.48",+ "@ai-sdk/google": "4.0.62",+ "@ai-sdk/openai": "4.0.56","@anthropic-ai/claude-agent-sdk": "^0.3.207","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.87",+ "ai": "7.0.90","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 7046341151..9d4f495026 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.46",- "@ai-sdk/google": "4.0.59",- "@ai-sdk/openai": "4.0.53",+ "@ai-sdk/anthropic": "4.0.48",+ "@ai-sdk/google": "4.0.62",+ "@ai-sdk/openai": "4.0.56","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.87",+ "ai": "7.0.90","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 03e21c92c5..43106c3846 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.34+ '@ai-sdk/provider-utils': 5.0.36zod: 4.5.4mermaid: 11.17.2preact: 10.29.8@@ -593,14 +593,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.46- version: 4.0.46([email protected])+ specifier: 4.0.48+ version: 4.0.48([email protected])'@ai-sdk/google':- specifier: 4.0.59- version: 4.0.59([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@ai-sdk/openai':- specifier: 4.0.53- version: 4.0.53([email protected])+ specifier: 4.0.56+ version: 4.0.56([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.252(@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.87- version: 7.0.87([email protected])+ specifier: 7.0.90+ version: 7.0.90([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1376,14 +1376,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.46- version: 4.0.46([email protected])+ specifier: 4.0.48+ version: 4.0.48([email protected])'@ai-sdk/google':- specifier: 4.0.59- version: 4.0.59([email protected])+ specifier: 4.0.62+ version: 4.0.62([email protected])'@ai-sdk/openai':- specifier: 4.0.53- version: 4.0.53([email protected])+ specifier: 4.0.56+ version: 4.0.56([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1394,8 +1394,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.87- version: 7.0.87([email protected])+ specifier: 7.0.90+ version: 7.0.90([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1511,38 +1511,38 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-/q/wWLArkavQHeOYdv8kZyJRTuasTRwrzoAnvUaY0sHx/BGDYDWW9ENn7lu/H5iUeYId6NhtYAVv+TlqHpp9Cg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-9KRW3ySRQ8pGn1ZHWgek42OqOcOTKlRrVOOiEHA9k2BiiRn7Hzd0QNYtrYjvI+TCo9K7DaE0uLoW2yyB+L8/Bw==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-0tzAH2vwXOs/kVktAZRS04dATEQJk1hf1QR+VuVfvo9QmW3UPgcjhhJD9QFgP8HZLxkrEGDImwLIQ7sUfQTIsA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-iNNgagJ0+Ow1kdOFSyKPRk8kTh7qwhLZPLFdbXw4KMbMMF7JLzWlBSkyMSjh6U4O6D4D+76xj0HGws4JTLNeYA==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-5fAbNdudYEB+PE+QkXl0tjdGpn+8nmVWVFSlOzFnwXZv1v8/8/IzM0iyMNzcvqW5Xh4MjdWJrxo+GWkMiDbOyw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-DB8i10h9S3ki9b/bPz51B9f9Uy8/5vLfyYsyHuRgHDraro1TM+eqo6RqErZ5RA3smZZ5uFcNzK43ks07qr7vrA==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-2hoR6/HVmNZenRGgRcEJqJcT4kq69uqjzMqZMjWj4yT79kbzlcgoGiaX0KaK3mgiEeSOaG7gQ2cVJ/Gtl8KCUA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-q/GyXWeYUJFk76JIlgwp1yMEvEFPFT/ueKHTazbYI+tQ/8ZTTTdkL1y6bWN06zCIusbpt7laiKytFV+37JZsgA==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-tRBdgRcys/4d8wyQdOdyYScq1AxfMdMd0hIlwolxJKVIbBwXUgClZuQT0VIsz4e7pylY8FE6utYCCZ494UAMJQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-MFXBn6XDyf37PNQAge/HTatPJE8Vmg/g/w4WPtjSV53jq8FKAzoaN5+43hsdQa9bqgN+/13jxug9ChvsG+godQ==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-XnGXPWiBIfqjsVEud5pOaVneRByJQOu2sYNwlSVJTPCvakdCDkVuYKKfNuStkIpMUYl7JIkBZGBx+B5YfNeVjA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-fX2ENAc7iDpZ+Wp4+Rk06Usn/Ys7dI9uAkGv0jlF6XVrW13NkRWx5Ou+U6lIM2E1fTLkCs16GGrUAaVvroag7A==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -5910,8 +5910,8 @@ packages:resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}engines: {node: '>= 20'}- resolution: {integrity: sha512-/hrT7toRx8vLIyr/lTKOOPDxCGdxk2tVs5viHDwIPlUsge5FBaLe9h3BhPAr7cOmEAXkN/Cf2+2N8HYGCjJbHg==}+ resolution: {integrity: sha512-cvG7Od3DPlnnljkIXP1CQ8wABOfDqV1uBFWemBjGupiqcQD8O9SSg5m4FL+GiMA47NN7dxIJnaw8/uowwN+D2g==}engines: {node: '>=22'}peerDependencies:zod: 4.5.4@@ -11558,6 +11558,10 @@ packages:resolution: {integrity: sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==}engines: {node: '>=20.18.1'}+ resolution: {integrity: sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==}+ engines: {node: '>=20.18.1'}+resolution: {integrity: sha512-aWZpUj7XoGonMClx4gdDRfgBjqeA+F473aDmROQQbM9n6PRfK/u1q/a0X4wMTgcHfT8H6fpbt98PFuDUwFg2YA==}engines: {node: '>=22.19.0'}@@ -12279,41 +12283,41 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.9- '@ai-sdk/provider-utils': 5.0.34([email protected])+ '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider-utils': 5.0.36([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.9- '@ai-sdk/provider-utils': 5.0.34([email protected])+ '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider-utils': 5.0.36([email protected])'@vercel/oidc': 3.2.0zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.9- '@ai-sdk/provider-utils': 5.0.34([email protected])+ '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider-utils': 5.0.36([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.9- '@ai-sdk/provider-utils': 5.0.34([email protected])+ '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider-utils': 5.0.36([email protected])zod: 4.5.4- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.9+ '@ai-sdk/provider': 4.0.10'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.0- undici: 7.28.0+ undici: 7.29.1zod: 4.5.4- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -18387,11 +18391,11 @@ snapshots:dependencies:- '@ai-sdk/gateway': 4.0.70([email protected])- '@ai-sdk/provider': 4.0.9- '@ai-sdk/provider-utils': 5.0.34([email protected])+ '@ai-sdk/gateway': 4.0.72([email protected])+ '@ai-sdk/provider': 4.0.10+ '@ai-sdk/provider-utils': 5.0.36([email protected])zod: 4.5.4@@ -24994,7 +24998,10 @@ snapshots:- [email protected]: {}+ optional: true++ [email protected]: {}diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 2a9987a40f..5f60faa243 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.34"+ "@ai-sdk/provider-utils": "5.0.36""zod": "4.5.4""mermaid": "11.17.2""preact": "10.29.8"