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]023e30e32615
diff --git a/apps/server/package.json b/apps/server/package.jsonindex bc44820260..7bd3b1b649 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 --network=host -v ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro nginx:latest"},"dependencies": {- "@ai-sdk/anthropic": "4.0.34",- "@ai-sdk/google": "4.0.37",- "@ai-sdk/openai": "4.0.34",+ "@ai-sdk/anthropic": "4.0.36",+ "@ai-sdk/google": "4.0.39",+ "@ai-sdk/openai": "4.0.36","@anthropic-ai/claude-agent-sdk": "^0.3.207","@modelcontextprotocol/sdk": "^1.12.1",- "ai": "7.0.56",+ "ai": "7.0.58","better-sqlite3": "13.0.3","html-to-text": "10.0.0","i18next": "26.3.6",diff --git a/packages/trilium-core/package.json b/packages/trilium-core/package.jsonindex 24a7e04b30..215e2967e5 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.34",- "@ai-sdk/google": "4.0.37",- "@ai-sdk/openai": "4.0.34",+ "@ai-sdk/anthropic": "4.0.36",+ "@ai-sdk/google": "4.0.39",+ "@ai-sdk/openai": "4.0.36","@braintree/sanitize-url": "7.1.2","@triliumnext/commons": "workspace:*","@triliumnext/turndown-plugin-gfm": "workspace:*",- "ai": "7.0.56",+ "ai": "7.0.58","async-mutex": "0.5.0","chardet": "2.2.0","color": "5.0.3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 03996f212b..0e603e90cc 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -15,7 +15,7 @@ overrides:'@lezer/common': 1.5.2'@lezer/highlight': 1.2.3'@lezer/lr': 1.4.10- '@ai-sdk/provider-utils': 5.0.23+ '@ai-sdk/provider-utils': 5.0.25mermaid: 11.16.1preact: 10.29.8roughjs: 4.6.6@@ -589,14 +589,14 @@ importers:apps/server:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.34- version: 4.0.34([email protected])+ specifier: 4.0.36+ version: 4.0.36([email protected])'@ai-sdk/google':- specifier: 4.0.37- version: 4.0.37([email protected])+ specifier: 4.0.39+ version: 4.0.39([email protected])'@ai-sdk/openai':- specifier: 4.0.34- version: 4.0.34([email protected])+ specifier: 4.0.36+ version: 4.0.36([email protected])'@anthropic-ai/claude-agent-sdk':specifier: ^0.3.207version: 0.3.223(@anthropic-ai/[email protected]([email protected]))(@modelcontextprotocol/[email protected]([email protected])([email protected]))([email protected])@@ -604,8 +604,8 @@ importers:specifier: ^1.12.1version: 1.30.0([email protected])([email protected])ai:- specifier: 7.0.56- version: 7.0.56([email protected])+ specifier: 7.0.58+ version: 7.0.58([email protected])better-sqlite3:specifier: 13.0.3version: 13.0.3@@ -1378,14 +1378,14 @@ importers:packages/trilium-core:dependencies:'@ai-sdk/anthropic':- specifier: 4.0.34- version: 4.0.34([email protected])+ specifier: 4.0.36+ version: 4.0.36([email protected])'@ai-sdk/google':- specifier: 4.0.37- version: 4.0.37([email protected])+ specifier: 4.0.39+ version: 4.0.39([email protected])'@ai-sdk/openai':- specifier: 4.0.34- version: 4.0.34([email protected])+ specifier: 4.0.36+ version: 4.0.36([email protected])'@braintree/sanitize-url':specifier: 7.1.2version: 7.1.2@@ -1396,8 +1396,8 @@ importers:specifier: workspace:*version: link:../turndown-plugin-gfmai:- specifier: 7.0.56- version: 7.0.56([email protected])+ specifier: 7.0.58+ version: 7.0.58([email protected])async-mutex:specifier: 0.5.0version: 0.5.0@@ -1513,38 +1513,38 @@ packages:'@adobe/[email protected]':resolution: {integrity: sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==}- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-k3cj4AQ2calM6idUodma1cYlQuEeRxBjzyc2IBO+5kx+yAI8x0fku/Fq+DBKdOgSwNoBbv7lO1CsmmEkBBFbmw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-Wg5jfray0X4+qkrr73GZ7U7K2JNGx+S+rNY9LorVlXhkhTqnvtNLYWRA1WxSxlCDCw3yjRCJdL9kyc+b7naAog==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-dQ/AHH1do1iEpWEXdAge37FtpXV17fsj7NkL9w+xuzVgvmI7+dQFeDerul+F2I5czmxe61Lq+TnUREjU92UXYg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-LIAO6kAG8fpXQb9L0iwPk1FIbXftvqnyC56v5NEAzeWTeL8fUsy/Hx86VPBTWEDFdwbVprjWifJOAqS6AOj3mA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-wtf81hl7lAy/cMREfwxeMRcfGl7WrSiZI5nTEDwHqH/dEWEM8lPQn13s9S97nbQn1DHNeyduljH4huCeILP/bw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-+mRx7UBZn9PkJ4J6YXowaRZKMZYa290cknVqqOw/roZaDg186IUOLn9JHNQkvgaj91/MLW1AZNESy1ZD2yXDCg==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-DPGehPPwuTmnWxCDxeWZJgGLn7Lh+QfiiN20tvqnEQMUwCmuadZ3FLlRtTkTpeEa2l+Lsa/sWVkBwShWGjGmKA==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-wHJNArBdjJPXb8GXcA+FslbRt+7qIE1KoHSAVi+CeBFidinVrTVBZKFMJz3mNZMj8YILBMl/VIvTD/oGFjX6/g==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-mFvAAszenK8Xny3v+4Vntke5IcUkyzjss3gTBOxVWNrSIWmt/FhQ5gCgoJXW7IK11cklRaicMPwOXTnnBtaqFQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-xscPPHCSjCHWrdhai25sbHCJeKNLW/3D1uSpUZa4cEtTKXA8OnPQ3+Rfu1SmM5Ea/Mf8Dfn3cllw9zeMzo/zFA==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-YYXjvs8F3q/BdEn9tBDoDuQACotfR7c5foGw/ADsM6iAVC1JabqEjQSkwHv/Kg2vNIr1c2AVHcQb+JYsYk76Qw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-6or44XprPzKbr8zkmzosowSE0pxkvJcoojBL+mCZvPUt3kvXp3XSNqeVun9golb1acEfSo6yaEBRT18h2VU+1Q==}engines: {node: '>=22'}'@aklinker1/[email protected]':@@ -6227,8 +6227,8 @@ packages:resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}engines: {node: '>=8'}- resolution: {integrity: sha512-Lp7q9tZFl/TGOpBBNgt2wZ85SoCvJJVlHQksMkqrgiFUnIGOw+L2FWJ0gXuNEngLQTp9+t32k8QuIB7Jc5uKRA==}+ resolution: {integrity: sha512-GfgO90CQQ0yYuoxJAUOeQ6tviyYw1BUIDygSZ1q3Ce6kSc93tYmB5eltKY/NxC0YOouAax7JvDqVnYxvIAr04Q==}engines: {node: '>=22'}peerDependencies:zod: '>=4.0.0'@@ -12738,41 +12738,41 @@ snapshots:'@adobe/[email protected]': {}- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.6- '@ai-sdk/provider-utils': 5.0.23([email protected])+ '@ai-sdk/provider': 4.0.7+ '@ai-sdk/provider-utils': 5.0.25([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.6- '@ai-sdk/provider-utils': 5.0.23([email protected])+ '@ai-sdk/provider': 4.0.7+ '@ai-sdk/provider-utils': 5.0.25([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.6- '@ai-sdk/provider-utils': 5.0.23([email protected])+ '@ai-sdk/provider': 4.0.7+ '@ai-sdk/provider-utils': 5.0.25([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.6- '@ai-sdk/provider-utils': 5.0.23([email protected])+ '@ai-sdk/provider': 4.0.7+ '@ai-sdk/provider-utils': 5.0.25([email protected])zod: 4.4.3- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:- '@ai-sdk/provider': 4.0.6+ '@ai-sdk/provider': 4.0.7'@standard-schema/spec': 1.1.0'@workflow/serde': 4.1.0eventsource-parser: 3.1.0undici: 7.28.0zod: 4.4.3- '@ai-sdk/[email protected]':+ '@ai-sdk/[email protected]':dependencies:json-schema: 0.4.0@@ -19103,11 +19103,11 @@ snapshots:clean-stack: 2.2.0indent-string: 4.0.0dependencies:- '@ai-sdk/gateway': 4.0.44([email protected])- '@ai-sdk/provider': 4.0.6- '@ai-sdk/provider-utils': 5.0.23([email protected])+ '@ai-sdk/gateway': 4.0.46([email protected])+ '@ai-sdk/provider': 4.0.7+ '@ai-sdk/provider-utils': 5.0.25([email protected])zod: 4.4.3diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex a807f86c1a..47de1323d1 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -35,7 +35,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.23"+ "@ai-sdk/provider-utils": "5.0.25""mermaid": "11.16.1""preact": "10.29.8""roughjs": "4.6.6"