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(core): export tool router types and add type-level safeguards (#2033)

Rahul Tarake5b9db3d6879
diff --git a/.changeset/old-views-hear.md b/.changeset/old-views-hear.md
new file mode 100644
index 000000000..c999d1d8f
--- /dev/null
+++ b/.changeset/old-views-hear.md
@@ -0,0 +1,5 @@
+---
+'@composio/core': patch
+---
+
+Fix exports for experimental tool router
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 161d77360..7159eaf67 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -268,7 +268,7 @@ importers:
devDependencies:
'@cloudflare/vitest-pool-workers':
specifier: 'catalog:'
- version: 0.9.2(@cloudflare/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])
typescript:
specifier: 'catalog:'
version: 5.9.2
@@ -384,7 +384,7 @@ importers:
version: 16.5.0
zod-to-json-schema:
specifier: ^3.24.5
- version: 3.24.5([email protected])
+ version: 3.24.5([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -437,13 +437,13 @@ importers:
version: 0.4.20(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
'@llamaindex/workflow':
specifier: ^1.1.24
dotenv:
specifier: ^16.4.1
version: 16.6.1
llamaindex:
specifier: ^0.12.0
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -487,7 +487,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^2.0.35
- version: 2.0.35([email protected])
+ version: 2.0.35([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -499,7 +499,7 @@ importers:
version: 1.18.0
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
dotenv:
specifier: ^16.4.1
version: 16.6.1
@@ -515,7 +515,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^1.3.16
- version: 1.3.22([email protected])
+ version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -524,7 +524,7 @@ importers:
version: link:../../packages/providers/vercel
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -590,7 +590,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^1.3.16
- version: 1.3.22([email protected])
+ version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -599,7 +599,7 @@ importers:
version: link:../../packages/providers/vercel
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -618,10 +618,10 @@ importers:
version: 16.5.0
openai:
specifier: ^5.19.1
zod-to-json-schema:
specifier: ^3.24.5
- version: 3.24.5([email protected])
+ version: 3.24.5([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -650,7 +650,7 @@ importers:
dependencies:
'@ai-sdk/openai':
specifier: ^2.0.16
- version: 2.0.16([email protected])
+ version: 2.0.16([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -662,7 +662,7 @@ importers:
version: 1.18.0
ai:
specifier: 'catalog:'
- version: 5.0.44([email protected])
+ version: 5.0.44([email protected])
dotenv:
specifier: ^16.5.0
version: 16.5.0
@@ -761,7 +761,7 @@ importers:
version: 0.85.2([email protected])
'@effect/vitest':
specifier: ^0.23.8
'@types/bun':
specifier: ^1.2.16
version: 1.2.16
@@ -817,6 +817,9 @@ importers:
specifier: ^3.24.5
version: 3.24.5([email protected])
devDependencies:
+ '@type-challenges/utils':
+ specifier: ^0.1.1
+ version: 0.1.1
'@types/semver':
specifier: ^7.7.0
version: 7.7.0
@@ -867,7 +870,7 @@ importers:
version: 0.52.0
'@mastra/mcp':
specifier: ^0.12.0
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -921,7 +924,7 @@ importers:
dependencies:
'@langchain/core':
specifier: ^0.3.63
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -943,7 +946,7 @@ importers:
dependencies:
llamaindex:
specifier: ^0.12.0
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -1897,163 +1900,138 @@ packages:
resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-D8n8wgWmPDakc83LORcfJepdOSN6MvWNzzz2ux0MnIbOqdieRZwVYY32zxVx+IFUT8er5KPcyU3XXsn+GzG/0Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-0DZzkvuEOqQUP9mo2kjjKNok5AmnOr1jB2XYjkaoNRwpAYMDzRmAqUIa1nRi58S2WswqSfPOWLNOr0FDT3H5RQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-EGZ1xwhBI7dNISwxjChqBGELCWMGDvmxZXKjQRuqMrakhO8QoMgqCrdjnAqJq/CScxfRn+Bb7suXBElKQpPDiw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [s390x]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-sD7J+h5nFLMMmOXYH4DD9UtSNBD05tWSSdWAcEyzqW8Cn5UxXvsHAxmxSesYUsTOBmUnjtxghKDl15EvfqLFbQ==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-NEE2vQ6wcxYav1/A22OOxoSOGiKnNmDzCYFOZ949xFmrWZOVII1Bp3NqVVpvj+3UeHMFyN5eP/V5hzViQ5CZNA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-DOYMrDm5E6/8bm/yQLCWyuDJwUnlevR8xtF8bs+gjZ7cyUNYXiSf/E8Kp0Ss5xasIaXSHzb888V1BE4i1hFhAA==}
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}
@@ -2408,28 +2386,24 @@ packages:
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [glibc]
resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- libc: [musl]
resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}
@@ -2993,42 +2967,36 @@ packages:
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}
@@ -3142,67 +3110,56 @@ packages:
resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==}
cpu: [arm]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==}
cpu: [loong64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==}
cpu: [ppc64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==}
cpu: [riscv64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==}
cpu: [s390x]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@rollup/[email protected]':
resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==}
cpu: [x64]
os: [linux]
- libc: [musl]
'@rollup/[email protected]':
resolution: {integrity: sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==}
@@ -3280,6 +3237,9 @@ packages:
'@ts-morph/[email protected]':
resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}
+ '@type-challenges/[email protected]':
+ resolution: {integrity: sha512-A7ljYfBM+FLw+NDyuYvGBJiCEV9c0lPWEAdzfOAkb3JFqfLl0Iv/WhWMMARHiRKlmmiD1g8gz/507yVvHdQUYA==}
+
resolution: {integrity: sha512-AX+AbjH/rH5ezX1fbK8onC/a+HyQHo7QGmvoxAE42n22OsciAxvZoZNEr22tbXs8WfP1nIsBjKDpgPm3HjOZbA==}
@@ -6803,23 +6763,41 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.7([email protected])
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@ai-sdk/provider-utils': 3.0.7([email protected])
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 2.0.0
'@ai-sdk/provider-utils': 3.0.9([email protected])
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@ai-sdk/provider-utils': 3.0.9([email protected])
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 1.1.3
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 2.0.0
- '@ai-sdk/provider-utils': 3.0.4([email protected])
- zod: 3.25.76
+ '@ai-sdk/provider-utils': 3.0.4([email protected])
+ zod: 4.1.9
dependencies:
@@ -6827,6 +6805,12 @@ snapshots:
'@ai-sdk/provider-utils': 3.0.9([email protected])
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@ai-sdk/provider-utils': 3.0.9([email protected])
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 1.1.3
@@ -6834,13 +6818,20 @@ snapshots:
secure-json-parse: 2.7.0
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 1.1.3
+ nanoid: 3.3.11
+ secure-json-parse: 2.7.0
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 2.0.0
'@standard-schema/spec': 1.0.0
eventsource-parser: 3.0.3
- zod: 3.25.76
- zod-to-json-schema: 3.24.6([email protected])
+ zod: 4.1.9
+ zod-to-json-schema: 3.24.6([email protected])
dependencies:
@@ -6850,6 +6841,14 @@ snapshots:
zod: 3.25.76
zod-to-json-schema: 3.24.6([email protected])
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@standard-schema/spec': 1.0.0
+ eventsource-parser: 3.0.6
+ zod: 4.1.9
+ zod-to-json-schema: 3.24.6([email protected])
+
dependencies:
'@ai-sdk/provider': 2.0.0
@@ -6857,6 +6856,13 @@ snapshots:
eventsource-parser: 3.0.6
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@standard-schema/spec': 1.0.0
+ eventsource-parser: 3.0.6
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 2.0.0
@@ -6864,6 +6870,13 @@ snapshots:
eventsource-parser: 3.0.6
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider': 2.0.0
+ '@standard-schema/spec': 1.0.0
+ eventsource-parser: 3.0.6
+ zod: 4.1.9
+
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
@@ -6882,6 +6895,16 @@ snapshots:
optionalDependencies:
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ '@ai-sdk/ui-utils': 1.2.11([email protected])
+ react: 18.3.1
+ swr: 2.3.3([email protected])
+ throttleit: 2.1.0
+ optionalDependencies:
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/provider': 1.1.3
@@ -6889,6 +6912,13 @@ snapshots:
zod: 3.25.76
zod-to-json-schema: 3.24.6([email protected])
+ dependencies:
+ '@ai-sdk/provider': 1.1.3
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ zod: 4.1.9
+ zod-to-json-schema: 3.24.6([email protected])
+
'@alloc/[email protected]': {}
'@anthropic-ai/[email protected]': {}
@@ -7096,7 +7126,7 @@ snapshots:
optionalDependencies:
workerd: 1.20250913.0
dependencies:
'@vitest/runner': 3.2.4
'@vitest/snapshot': 3.2.4
@@ -7250,7 +7280,7 @@ snapshots:
dependencies:
effect: 3.16.16
dependencies:
effect: 3.16.16
@@ -7845,14 +7875,14 @@ snapshots:
transitivePeerDependencies:
- openai
dependencies:
'@cfworker/json-schema': 4.1.1
ansi-styles: 5.2.0
camelcase: 6.3.0
decamelize: 1.2.0
js-tiktoken: 1.0.20
mustache: 4.2.0
p-queue: 6.6.2
p-retry: 4.6.2
@@ -7988,7 +8018,7 @@ snapshots:
rxjs: 7.8.2
zod: 3.25.76
optionalDependencies:
'@modelcontextprotocol/sdk': 1.18.0
hono: 4.9.7
@@ -7996,12 +8026,8 @@ snapshots:
rxjs: 7.8.2
zod: 3.25.76
optionalDependencies:
- '@modelcontextprotocol/sdk': 1.18.0
- hono: 4.9.7
- rxjs: 7.8.2
zod: 4.1.9
@@ -8017,11 +8043,11 @@ snapshots:
- rxjs
- zod
dependencies:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
+ '@llamaindex/workflow-core': 1.3.3(@modelcontextprotocol/[email protected])([email protected])([email protected])([email protected])([email protected])
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- hono
@@ -8030,11 +8056,11 @@ snapshots:
- rxjs
- zod
dependencies:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
+ '@llamaindex/workflow-core': 1.3.3([email protected])
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- hono
@@ -8116,6 +8142,63 @@ snapshots:
- valibot
- zod-openapi
+ dependencies:
+ '@a2a-js/sdk': 0.2.5
+ '@ai-sdk/provider': 1.1.3
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ '@ai-sdk/provider-utils-v5': '@ai-sdk/[email protected]([email protected])'
+ '@ai-sdk/provider-v5': '@ai-sdk/[email protected]'
+ '@ai-sdk/ui-utils': 1.2.11([email protected])
+ '@opentelemetry/api': 1.9.0
+ '@opentelemetry/auto-instrumentations-node': 0.62.1(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))
+ '@opentelemetry/core': 2.0.1(@opentelemetry/[email protected])
+ '@opentelemetry/exporter-trace-otlp-grpc': 0.203.0(@opentelemetry/[email protected])
+ '@opentelemetry/exporter-trace-otlp-http': 0.203.0(@opentelemetry/[email protected])
+ '@opentelemetry/otlp-exporter-base': 0.203.0(@opentelemetry/[email protected])
+ '@opentelemetry/otlp-transformer': 0.203.0(@opentelemetry/[email protected])
+ '@opentelemetry/resources': 2.0.1(@opentelemetry/[email protected])
+ '@opentelemetry/sdk-metrics': 2.0.1(@opentelemetry/[email protected])
+ '@opentelemetry/sdk-node': 0.203.0(@opentelemetry/[email protected])
+ '@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/[email protected])
+ '@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/[email protected])
+ '@opentelemetry/semantic-conventions': 1.36.0
+ '@sindresorhus/slugify': 2.2.1
+ date-fns: 3.6.0
+ dotenv: 16.6.1
+ hono: 4.9.7
+ js-tiktoken: 1.0.20
+ json-schema: 0.4.0
+ json-schema-to-zod: 2.6.1
+ p-map: 7.0.3
+ pino: 9.7.0
+ pino-pretty: 13.0.0
+ radash: 12.1.1
+ sift: 17.1.3
+ xstate: 5.20.2
+ zod: 4.1.9
+ zod-to-json-schema: 3.24.6([email protected])
+ transitivePeerDependencies:
+ - '@hono/arktype-validator'
+ - '@hono/effect-validator'
+ - '@hono/typebox-validator'
+ - '@hono/valibot-validator'
+ - '@hono/zod-validator'
+ - '@sinclair/typebox'
+ - '@valibot/to-json-schema'
+ - arktype
+ - effect
+ - encoding
+ - openapi-types
+ - react
+ - supports-color
+ - valibot
+ - zod-openapi
+
dependencies:
'@apidevtools/json-schema-ref-parser': 14.2.1(@types/[email protected])
@@ -8132,6 +8215,22 @@ snapshots:
- '@types/json-schema'
- supports-color
+ dependencies:
+ '@apidevtools/json-schema-ref-parser': 14.2.1(@types/[email protected])
+ '@modelcontextprotocol/sdk': 1.18.0
+ date-fns: 4.1.0
+ exit-hook: 4.0.0
+ fast-deep-equal: 3.1.3
+ uuid: 11.1.0
+ zod: 4.1.9
+ zod-from-json-schema: 0.5.0
+ zod-from-json-schema-v3: [email protected]
+ transitivePeerDependencies:
+ - '@types/json-schema'
+ - supports-color
+
dependencies:
@@ -8141,6 +8240,15 @@ snapshots:
zod-from-json-schema-v3: [email protected]
zod-to-json-schema: 3.24.6([email protected])
+ dependencies:
+ json-schema: 0.4.0
+ zod: 4.1.9
+ zod-from-json-schema: 0.5.0
+ zod-from-json-schema-v3: [email protected]
+ zod-to-json-schema: 3.24.6([email protected])
+
'@modelcontextprotocol/[email protected]':
dependencies:
ajv: 6.12.6
@@ -9239,6 +9347,8 @@ snapshots:
minimatch: 10.0.3
path-browserify: 1.0.1
+ '@type-challenges/[email protected]': {}
+
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -9581,7 +9691,7 @@ snapshots:
sirv: 3.0.1
tinyglobby: 0.2.14
tinyrainbow: 2.0.0
'@vitest/[email protected]':
dependencies:
@@ -9635,6 +9745,18 @@ snapshots:
optionalDependencies:
react: 18.3.1
+ dependencies:
+ '@ai-sdk/provider': 1.1.3
+ '@ai-sdk/provider-utils': 2.2.8([email protected])
+ '@ai-sdk/react': 1.2.12([email protected])([email protected])
+ '@ai-sdk/ui-utils': 1.2.11([email protected])
+ '@opentelemetry/api': 1.9.0
+ jsondiffpatch: 0.6.0
+ zod: 4.1.9
+ optionalDependencies:
+ react: 18.3.1
+
dependencies:
'@ai-sdk/gateway': 1.0.15([email protected])
@@ -9643,6 +9765,14 @@ snapshots:
'@opentelemetry/api': 1.9.0
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/gateway': 1.0.15([email protected])
+ '@ai-sdk/provider': 2.0.0
+ '@ai-sdk/provider-utils': 3.0.7([email protected])
+ '@opentelemetry/api': 1.9.0
+ zod: 4.1.9
+
dependencies:
'@ai-sdk/gateway': 1.0.23([email protected])
@@ -9651,6 +9781,14 @@ snapshots:
'@opentelemetry/api': 1.9.0
zod: 3.25.76
+ dependencies:
+ '@ai-sdk/gateway': 1.0.23([email protected])
+ '@ai-sdk/provider': 2.0.0
+ '@ai-sdk/provider-utils': 3.0.9([email protected])
+ '@opentelemetry/api': 1.9.0
+ zod: 4.1.9
+
dependencies:
fast-deep-equal: 3.1.3
@@ -10799,6 +10937,15 @@ snapshots:
hono: 4.9.7
zod: 3.25.76
+ dependencies:
+ json-schema-walker: 2.0.0
+ openapi-types: 12.1.3
+ optionalDependencies:
+ effect: 3.16.16
+ hono: 4.9.7
+ zod: 4.1.9
+
@@ -11086,7 +11233,7 @@ snapshots:
optionalDependencies:
dependencies:
'@types/uuid': 10.0.0
chalk: 4.1.2
@@ -11152,12 +11299,12 @@ snapshots:
rfdc: 1.4.1
wrap-ansi: 9.0.0
dependencies:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
'@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@llamaindex/workflow': 1.1.24(@llamaindex/[email protected])(@llamaindex/[email protected])(@modelcontextprotocol/[email protected])([email protected])([email protected])([email protected])([email protected])
'@types/lodash': 4.17.20
'@types/node': 24.6.2
lodash: 4.17.21
@@ -11174,12 +11321,12 @@ snapshots:
- web-tree-sitter
- zod
dependencies:
'@llamaindex/core': 0.6.22
'@llamaindex/env': 0.1.30
'@llamaindex/node-parser': 2.0.22(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])([email protected])
+ '@llamaindex/workflow': 1.1.24(@llamaindex/[email protected])(@llamaindex/[email protected])([email protected])
'@types/lodash': 4.17.20
'@types/node': 24.6.2
lodash: 4.17.21
@@ -11516,10 +11663,10 @@ snapshots:
ws: 8.18.2
zod: 3.25.76
optionalDependencies:
ws: 8.18.2
- zod: 3.25.76
+ zod: 4.1.9
optionalDependencies:
@@ -13130,10 +13277,18 @@ snapshots:
dependencies:
zod: 3.25.76
+ dependencies:
+ zod: 4.1.9
+
dependencies:
zod: 3.25.76
+ dependencies:
+ zod: 4.1.9
+
diff --git a/ts/packages/core/package.json b/ts/packages/core/package.json
index a7d182233..8f7ff6447 100644
--- a/ts/packages/core/package.json
+++ b/ts/packages/core/package.json
@@ -29,13 +29,14 @@
"clean": "git clean -xdf node_modules",
"build": "tsup",
"test": "vitest run",
- "typecheck": "tsc --noEmit --skipLibCheck"
+ "typecheck": "tsc --noEmit --skipLibCheck && tsc --noEmit --skipLibCheck -p tsconfig.type-tests.json"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "[email protected]",
"devDependencies": {
+ "@type-challenges/utils": "^0.1.1",
"@types/semver": "^7.7.0",
"tsup": "catalog:",
"tsx": "catalog:",
diff --git a/ts/packages/core/src/index.ts b/ts/packages/core/src/index.ts
index 41b78702e..7ab732cd7 100644
--- a/ts/packages/core/src/index.ts
+++ b/ts/packages/core/src/index.ts
@@ -4,6 +4,7 @@ export { OpenAIProvider } from './provider/OpenAIProvider';
export { ComposioProvider } from './provider/ComposioProvider';
export { BaseNonAgenticProvider, BaseAgenticProvider } from './provider/BaseProvider';
export type { BaseComposioProvider } from './provider/BaseProvider';
+export { ToolRouter } from './models/ToolRouter.experimental';
export { jsonSchemaToZodSchema, removeNonRequiredProperties } from './utils/jsonSchema';
export { AuthScheme } from './models/AuthScheme';
export { MCP } from './models/MCP';
@@ -20,6 +21,7 @@ export * from './types/triggers.types';
export * from './types/mcp.types';
export * from './types/files.types';
export * from './types/connectionRequest.types';
+export * from './types/toolRouter.types';
export * as constants from './utils/constants';
export { default as logger } from './utils/logger';
diff --git a/ts/packages/core/tsconfig.type-tests.json b/ts/packages/core/tsconfig.type-tests.json
new file mode 100644
index 000000000..ce40650a1
--- /dev/null
+++ b/ts/packages/core/tsconfig.type-tests.json
@@ -0,0 +1,8 @@
+{
+ "extends": "./tsconfig.json",
+ "compilerOptions": {
+ "noEmit": true,
+ "rootDir": "."
+ },
+ "include": ["src/**/*.ts", "type-tests/**/*.ts", "type-tests/**/*.d.ts", "package.json"]
+}
diff --git a/ts/packages/core/type-tests/tool-router.type-test.ts b/ts/packages/core/type-tests/tool-router.type-test.ts
new file mode 100644
index 000000000..1da679044
--- /dev/null
+++ b/ts/packages/core/type-tests/tool-router.type-test.ts
@@ -0,0 +1,39 @@
+import type { Equal, Expect } from '@type-challenges/utils';
+import type { Composio, ToolRouterConfig, ToolRouterSession } from '../src';
+
+type ToolRouterModel = Composio['experimental']['toolRouter'];
+
+type SessionResult = Awaited<ReturnType<ToolRouterModel['createSession']>>;
+type SessionParams = Parameters<ToolRouterModel['createSession']>;
+
+type IsAny<T> = 0 extends 1 & T ? true : false;
+
+type _Param0Type = Expect<Equal<SessionParams[0], string>>;
+type _Param1Type = Expect<Equal<SessionParams[1], ToolRouterConfig | undefined>>;
+
+// Ensure the promise resolves to the public schema type and isn't `any`.
+type _SessionMatchesSchema = Expect<Equal<SessionResult, ToolRouterSession>>;
+type _SessionIsNotAny = Expect<Equal<IsAny<SessionResult>, false>>;
+
+// Ensure the optional config parameter is typed correctly and not `any`.
+type _ConfigIsNotAny = Expect<Equal<IsAny<SessionParams[1]>, false>>;
+
+type ToolkitArray = ToolRouterConfig['toolkits'];
+type ToolkitEntry = NonNullable<ToolkitArray>[number];
+
+type _ToolkitArrayShape = Expect<
+ Equal<
+ ToolkitArray,
+ Array<string | { toolkit: string; authConfigId?: string | undefined }> | undefined
+ >
+>;
+
+type _ToolkitEntryShape = Expect<
+ Equal<ToolkitEntry, string | { toolkit: string; authConfigId?: string | undefined }>
+>;
+
+// Flag also stays optional boolean
+
+type _ManualFlagOptional = Expect<
+ Equal<ToolRouterConfig['manuallyManageConnections'], boolean | undefined>
+>;