Skip to content

Build your personal knowledge base with Trilium Notes

fix unrelated issue causing tests to fail, originating from the main branch

Adorian Doran4ee0a0983544
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6b5818a04b..f872ada55a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -15,6 +15,7 @@ overrides:
'@lezer/common': 1.5.2
'@lezer/highlight': 1.2.3
'@lezer/lr': 1.4.10
+ '@ai-sdk/provider-utils': 5.0.19
mermaid: 11.16.0
preact: 10.29.8
roughjs: 4.6.6
@@ -1529,12 +1530,6 @@ packages:
peerDependencies:
zod: '>=4.0.0'
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-9W8c2mXiGgbo9sBBT4ybEWF8znxla2CO8VTim8t5oCCLP4aDH4o6RvkHfwL/iLC6mEbO4a6LpS2FBbQHccU+ig==}
- engines: {node: '>=22'}
- peerDependencies:
- zod: '>=4.0.0'
-
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-9WAerTaPU2jcVi8dh8x27tySEuLur1Kfg7Go74GuCmsC/2MDSvrTkrK8ZrXWjryEevKfcPPmO1enveE7eqlzoA==}
engines: {node: '>=22'}
@@ -12526,7 +12521,7 @@ snapshots:
dependencies:
'@ai-sdk/provider': 4.0.5
- '@ai-sdk/provider-utils': 5.0.20([email protected])
+ '@ai-sdk/provider-utils': 5.0.19([email protected])
zod: 4.4.3
@@ -12557,15 +12552,6 @@ snapshots:
undici: 7.28.0
zod: 4.4.3
- dependencies:
- '@ai-sdk/provider': 4.0.5
- '@standard-schema/spec': 1.1.0
- '@workflow/serde': 4.1.0
- eventsource-parser: 3.1.0
- undici: 7.28.0
- zod: 4.4.3
-
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index ff10aeae41..3678ef4432 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -30,6 +30,12 @@ overrides:
"@lezer/common": "1.5.2"
"@lezer/highlight": "1.2.3"
"@lezer/lr": "1.4.10"
+ # The AI SDK packages each pin @ai-sdk/provider-utils to an exact patch, and they do not move in
+ # step: `ai` and the OpenAI/Google providers ask for one, the Anthropic provider for another. Two
+ # 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.19"
"mermaid": "11.16.0"
"preact": "10.29.8"
"roughjs": "4.6.6"