Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix prevent providers from bundling @composio/core types (#2401)

Musthaq Ahamad277f02b1b0ff
diff --git a/.changeset/proud-horses-spend.md b/.changeset/proud-horses-spend.md
new file mode 100644
index 000000000..e7bcc0a31
--- /dev/null
+++ b/.changeset/proud-horses-spend.md
@@ -0,0 +1,5 @@
+---
+'@composio/core': patch
+---
+
+Fix bundling issues with external providers
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 983bb10be..6a32ed713 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -217,7 +217,7 @@ importers:
version: 6.0.27([email protected])
composio-core:
specifier: ^0.5.39
- version: 0.5.39(d9dad06768538c6934d49d2ffdc2b950)
+ version: 0.5.39(0b41c32fcdaccada540d504ac61aa4eb)
hono:
specifier: '>=4.10.3'
version: 4.10.6
@@ -734,8 +734,8 @@ importers:
specifier: ^0.0.11
version: 0.0.11([email protected])
'@ai-sdk/openai':
- specifier: ^2.0.72
- version: 2.0.77([email protected])
+ specifier: ^3.0.11
+ version: 3.0.12([email protected])
'@anthropic-ai/claude-agent-sdk':
specifier: ^0.1.55
version: 0.1.60([email protected])
@@ -852,8 +852,8 @@ importers:
specifier: ^1.0.1
version: 1.0.5([email protected])
'@ai-sdk/openai':
- specifier: ^3.0.1
- version: 3.0.7([email protected])
+ specifier: ^3.0.12
+ version: 3.0.12([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -1433,14 +1433,8 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-lEJ9vyWSU5VLo+6Msr6r32RnABf4SRxPSV3Hz1Yb5yt43bWYxbBzwaDNYGhJaDL6rCgfUVvcIf5TKiiEuVd4EQ==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.25.76 || ^4.1.8
-
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-CBoYn1U59Lop8yBL9KuVjHCKc/B06q9Qo0SasRwHoyMEq+X4I8LQZu3a8Ck1jwwcZTTxfyiExB70LtIRSynBDA==}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-zqLWEKuaKnjXhu7xCw1jgz/+yTbd3F7EtgU4T2Q8BAo8OJC5wZv14l+kwM7Jai7M1/2Y2T/zBkrfiIu+7NsvfQ==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.25.76 || ^4.1.8
@@ -1493,6 +1487,12 @@ packages:
peerDependencies:
zod: ^3.25.76 || ^4.1.8
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-ns9gN7MmpI8vTRandzgz+KK/zNMLzhrriiKECMt4euLtQFSBgNfydtagPOX4j4pS1/3KvHF6RivhT3gNQgBZsg==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ zod: ^3.25.76 || ^4.1.8
+
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}
engines: {node: '>=18'}
@@ -1505,6 +1505,10 @@ packages:
resolution: {integrity: sha512-HrEmNt/BH/hkQ7zpi2o6N3k1ZR1QTb7z85WYhYygiTxOQuaml4CMtHCWRbric5WPU+RNsYI7r1EpyVQMKO1pYw==}
engines: {node: '>=18'}
+ '@ai-sdk/[email protected]':
+ resolution: {integrity: sha512-5KXyBOSEX+l67elrEa+wqo/LSsSTtrPj9Uoh3zMbe/ceQX4ucHI3b9nUEfNkGF3Ry1svv90widAt+aiKdIJasQ==}
+ engines: {node: '>=18'}
+
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-3zcwCc8ezzFlwp3ZD15wAPjf2Au4s3vAbKsXQVyhxODHcmu0iyPO2Eua6D/vicq/AUm/BAo60r97O6HU+EI0+w==}
engines: {node: '>=18'}
@@ -7971,16 +7975,10 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.12([email protected])
zod: 4.3.5
dependencies:
- '@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.18([email protected])
- zod: 4.3.5
-
- dependencies:
- '@ai-sdk/provider': 3.0.2
- '@ai-sdk/provider-utils': 4.0.4([email protected])
+ '@ai-sdk/provider': 3.0.4
+ '@ai-sdk/provider-utils': 4.0.8([email protected])
zod: 4.3.5
@@ -8074,6 +8072,13 @@ snapshots:
eventsource-parser: 3.0.6
zod: 4.3.5
+ dependencies:
+ '@ai-sdk/provider': 3.0.4
+ '@standard-schema/spec': 1.1.0
+ eventsource-parser: 3.0.6
+ zod: 4.3.5
+
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
@@ -8086,6 +8091,10 @@ snapshots:
dependencies:
json-schema: 0.4.0
+ '@ai-sdk/[email protected]':
+ dependencies:
+ json-schema: 0.4.0
+
dependencies:
'@ai-sdk/provider': 1.1.3
@@ -11902,9 +11911,9 @@ snapshots:
has-own-prop: 2.0.0
repeat-string: 1.6.1
- [email protected](d9dad06768538c6934d49d2ffdc2b950):
+ [email protected](0b41c32fcdaccada540d504ac61aa4eb):
dependencies:
- '@ai-sdk/openai': 3.0.7([email protected])
+ '@ai-sdk/openai': 3.0.12([email protected])
'@cloudflare/workers-types': 4.20250917.0
'@composio/mcp': 1.0.3-0
'@hey-api/client-axios': 0.2.12([email protected])
diff --git a/ts/examples/tool-router/package.json b/ts/examples/tool-router/package.json
index a1739a5b7..b3ff609e9 100644
--- a/ts/examples/tool-router/package.json
+++ b/ts/examples/tool-router/package.json
@@ -1,7 +1,7 @@
{
"name": "tool-router-example",
"private": true,
- "version": "0.1.0",
+ "version": "1.0.10",
"description": "Example project for Tool-router",
"main": "src/index.ts",
"scripts": {
@@ -19,7 +19,7 @@
"packageManager": "[email protected]",
"dependencies": {
"@ai-sdk/mcp": "^0.0.11",
- "@ai-sdk/openai": "^2.0.72",
+ "@ai-sdk/openai": "^3.0.11",
"@anthropic-ai/claude-agent-sdk": "^0.1.55",
"@composio/core": "workspace:*",
"@composio/openai-agents": "workspace:*",
@@ -38,4 +38,4 @@
"@types/bun": "^1.2.9",
"typescript": "catalog:"
}
-}
+}
\ No newline at end of file
diff --git a/ts/examples/vercel/package.json b/ts/examples/vercel/package.json
index 38e0219e9..c6c4bf330 100644
--- a/ts/examples/vercel/package.json
+++ b/ts/examples/vercel/package.json
@@ -17,7 +17,7 @@
"packageManager": "[email protected]",
"dependencies": {
"@ai-sdk/mcp": "^1.0.1",
- "@ai-sdk/openai": "^3.0.1",
+ "@ai-sdk/openai": "^3.0.12",
"@composio/core": "workspace:*",
"@composio/vercel": "workspace:*",
"@modelcontextprotocol/sdk": "catalog:",
diff --git a/tsdown.config.base.ts b/tsdown.config.base.ts
index a8d3536ef..3c67a4301 100644
--- a/tsdown.config.base.ts
+++ b/tsdown.config.base.ts
@@ -61,7 +61,7 @@ export const baseConfig = {
/**
* External dependencies that should not be bundled, but provided by the consumer.
*/
- external: ['zod', /^node:/],
+ external: ['zod', '@composio/core', /^node:/],
/**
* Control how Node.js built-in module imports are handled.