Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
chore: fix peer dep issue when using zod-4, causing types to not appear (#2045)
Co-authored-by: haxzie <musthu.gm@gmail.com> Co-authored-by: Musthaq Ahamad <53584487+haxzie@users.noreply.github.com>
Rahul Tarak committed
Oct 8, 2025 at 03:17 UTC
8741165180e5fec9830f258cdf89ba6071aac153
47 files changed
+281
-457
.changeset/petite-lamps-cough.md
new
+6
@@ -0,0 +1,6 @@
1
+---
2
+'@composio/core': patch
3
+'@composio/json-schema-to-zod': patch
4
+---
5
+
6
+Add zod 4 support via zod/v3 and fix zod schema parsing
pnpm-lock.yaml
+107
-276
@@ -268,7 +268,7 @@ importers:
268
devDependencies:
269
'@cloudflare/vitest-pool-workers':
270
specifier: 'catalog:'
271
- version: 0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
271
+ version: 0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)
272
typescript:
273
specifier: 'catalog:'
274
version: 5.9.2
@@ -384,7 +384,7 @@ importers:
384
version: 16.5.0
385
zod-to-json-schema:
386
specifier: ^3.24.5
387
- version: 3.24.5(zod@4.1.9)
387
+ version: 3.24.5(zod@3.25.76)
388
devDependencies:
389
'@types/bun':
390
specifier: ^1.2.9
@@ -437,13 +437,13 @@ importers:
437
version: 0.4.20(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(ws@8.18.2)(zod@3.25.76)
438
'@llamaindex/workflow':
439
specifier: ^1.1.24
440
- version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(zod@3.25.76)
440
+ version: 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)
441
dotenv:
442
specifier: ^16.4.1
443
version: 16.6.1
444
llamaindex:
445
specifier: ^0.12.0
446
- version: 0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76)
446
+ version: 0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76)
447
devDependencies:
448
'@types/bun':
449
specifier: ^1.2.9
@@ -487,7 +487,7 @@ importers:
487
dependencies:
488
'@ai-sdk/openai':
489
specifier: ^2.0.35
490
- version: 2.0.35(zod@4.1.9)
490
+ version: 2.0.35(zod@3.25.76)
491
'@composio/core':
492
specifier: workspace:*
493
version: link:../../packages/core
@@ -499,7 +499,7 @@ importers:
499
version: 1.18.0
500
ai:
501
specifier: 'catalog:'
502
- version: 5.0.44(zod@4.1.9)
502
+ version: 5.0.44(zod@3.25.76)
503
dotenv:
504
specifier: ^16.4.1
505
version: 16.6.1
@@ -515,7 +515,7 @@ importers:
515
dependencies:
516
'@ai-sdk/openai':
517
specifier: ^1.3.16
518
- version: 1.3.22(zod@4.1.9)
518
+ version: 1.3.22(zod@3.25.76)
519
'@composio/core':
520
specifier: workspace:*
521
version: link:../../packages/core
@@ -524,7 +524,7 @@ importers:
524
version: link:../../packages/providers/vercel
525
ai:
526
specifier: 'catalog:'
527
- version: 5.0.44(zod@4.1.9)
527
+ version: 5.0.44(zod@3.25.76)
528
devDependencies:
529
'@types/bun':
530
specifier: ^1.2.9
@@ -590,7 +590,7 @@ importers:
590
dependencies:
591
'@ai-sdk/openai':
592
specifier: ^1.3.16
593
- version: 1.3.22(zod@4.1.9)
593
+ version: 1.3.22(zod@3.25.76)
594
'@composio/core':
595
specifier: workspace:*
596
version: link:../../packages/core
@@ -599,7 +599,7 @@ importers:
599
version: link:../../packages/providers/vercel
600
ai:
601
specifier: 'catalog:'
602
- version: 5.0.44(zod@4.1.9)
602
+ version: 5.0.44(zod@3.25.76)
603
devDependencies:
604
'@types/bun':
605
specifier: ^1.2.9
@@ -618,10 +618,13 @@ importers:
618
version: 16.5.0
619
openai:
620
specifier: ^5.19.1
621
- version: 5.19.1(ws@8.18.2)(zod@4.1.9)
621
+ version: 5.19.1(ws@8.18.2)(zod@3.25.76)
622
+ zod:
623
+ specifier: 'catalog:'
624
+ version: 3.25.76
625
zod-to-json-schema:
626
specifier: ^3.24.5
624
- version: 3.24.5(zod@4.1.9)
627
+ version: 3.24.5(zod@3.25.76)
628
devDependencies:
629
'@types/bun':
630
specifier: ^1.2.9
@@ -650,7 +653,7 @@ importers:
653
dependencies:
654
'@ai-sdk/openai':
655
specifier: ^2.0.16
653
- version: 2.0.16(zod@4.1.9)
656
+ version: 2.0.16(zod@3.25.76)
657
'@composio/core':
658
specifier: workspace:*
659
version: link:../../packages/core
@@ -662,10 +665,13 @@ importers:
665
version: 1.18.0
666
ai:
667
specifier: 'catalog:'
665
- version: 5.0.44(zod@4.1.9)
668
+ version: 5.0.44(zod@3.25.76)
669
dotenv:
670
specifier: ^16.5.0
671
version: 16.5.0
672
+ zod-to-json-schema:
673
+ specifier: ^3.24.6
674
+ version: 3.24.6(zod@3.25.76)
675
devDependencies:
676
'@types/bun':
677
specifier: ^1.2.9
@@ -761,7 +767,7 @@ importers:
767
version: 0.85.2(effect@3.16.16)
768
'@effect/vitest':
769
specifier: ^0.23.8
764
- version: 0.23.8(effect@3.16.16)(vitest@3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
770
+ version: 0.23.8(effect@3.16.16)(vitest@3.2.4)
771
'@types/bun':
772
specifier: ^1.2.16
773
version: 1.2.16
@@ -870,7 +876,7 @@ importers:
876
version: 0.52.0
877
'@mastra/mcp':
878
specifier: ^0.12.0
873
- version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.9))(@types/json-schema@7.0.15)(zod@4.1.9)
879
+ version: 0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)
880
devDependencies:
881
'@composio/core':
882
specifier: workspace:*
@@ -924,7 +930,7 @@ importers:
930
dependencies:
931
'@langchain/core':
932
specifier: ^0.3.63
927
- version: 0.3.63(openai@5.20.3(zod@3.25.76))
933
+ version: 0.3.63(openai@5.20.3(ws@8.18.2)(zod@3.25.76))
934
devDependencies:
935
'@composio/core':
936
specifier: workspace:*
@@ -946,7 +952,7 @@ importers:
952
dependencies:
953
llamaindex:
954
specifier: ^0.12.0
949
- version: 0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.9)
955
+ version: 0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.12)
956
devDependencies:
957
'@composio/core':
958
specifier: workspace:*
@@ -1900,138 +1906,163 @@ packages:
1906
resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==}
1907
cpu: [arm64]
1908
os: [linux]
1909
+ libc: [glibc]
1910
1911
'@img/sharp-libvips-linux-arm64@1.1.0':
1912
resolution: {integrity: sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==}
1913
cpu: [arm64]
1914
os: [linux]
1915
+ libc: [glibc]
1916
1917
'@img/sharp-libvips-linux-arm@1.0.5':
1918
resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==}
1919
cpu: [arm]
1920
os: [linux]
1921
+ libc: [glibc]
1922
1923
'@img/sharp-libvips-linux-arm@1.1.0':
1924
resolution: {integrity: sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==}
1925
cpu: [arm]
1926
os: [linux]
1927
+ libc: [glibc]
1928
1929
'@img/sharp-libvips-linux-ppc64@1.1.0':
1930
resolution: {integrity: sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==}
1931
cpu: [ppc64]
1932
os: [linux]
1933
+ libc: [glibc]
1934
1935
'@img/sharp-libvips-linux-s390x@1.0.4':
1936
resolution: {integrity: sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==}
1937
cpu: [s390x]
1938
os: [linux]
1939
+ libc: [glibc]
1940
1941
'@img/sharp-libvips-linux-s390x@1.1.0':
1942
resolution: {integrity: sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==}
1943
cpu: [s390x]
1944
os: [linux]
1945
+ libc: [glibc]
1946
1947
'@img/sharp-libvips-linux-x64@1.0.4':
1948
resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==}
1949
cpu: [x64]
1950
os: [linux]
1951
+ libc: [glibc]
1952
1953
'@img/sharp-libvips-linux-x64@1.1.0':
1954
resolution: {integrity: sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==}
1955
cpu: [x64]
1956
os: [linux]
1957
+ libc: [glibc]
1958
1959
'@img/sharp-libvips-linuxmusl-arm64@1.0.4':
1960
resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==}
1961
cpu: [arm64]
1962
os: [linux]
1963
+ libc: [musl]
1964
1965
'@img/sharp-libvips-linuxmusl-arm64@1.1.0':
1966
resolution: {integrity: sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==}
1967
cpu: [arm64]
1968
os: [linux]
1969
+ libc: [musl]
1970
1971
'@img/sharp-libvips-linuxmusl-x64@1.0.4':
1972
resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==}
1973
cpu: [x64]
1974
os: [linux]
1975
+ libc: [musl]
1976
1977
'@img/sharp-libvips-linuxmusl-x64@1.1.0':
1978
resolution: {integrity: sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==}
1979
cpu: [x64]
1980
os: [linux]
1981
+ libc: [musl]
1982
1983
'@img/sharp-linux-arm64@0.33.5':
1984
resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==}
1985
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
1986
cpu: [arm64]
1987
os: [linux]
1988
+ libc: [glibc]
1989
1990
'@img/sharp-linux-arm64@0.34.2':
1991
resolution: {integrity: sha512-D8n8wgWmPDakc83LORcfJepdOSN6MvWNzzz2ux0MnIbOqdieRZwVYY32zxVx+IFUT8er5KPcyU3XXsn+GzG/0Q==}
1992
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
1993
cpu: [arm64]
1994
os: [linux]
1995
+ libc: [glibc]
1996
1997
'@img/sharp-linux-arm@0.33.5':
1998
resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==}
1999
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2000
cpu: [arm]
2001
os: [linux]
2002
+ libc: [glibc]
2003
2004
'@img/sharp-linux-arm@0.34.2':
2005
resolution: {integrity: sha512-0DZzkvuEOqQUP9mo2kjjKNok5AmnOr1jB2XYjkaoNRwpAYMDzRmAqUIa1nRi58S2WswqSfPOWLNOr0FDT3H5RQ==}
2006
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2007
cpu: [arm]
2008
os: [linux]
2009
+ libc: [glibc]
2010
2011
'@img/sharp-linux-s390x@0.33.5':
2012
resolution: {integrity: sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==}
2013
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2014
cpu: [s390x]
2015
os: [linux]
2016
+ libc: [glibc]
2017
2018
'@img/sharp-linux-s390x@0.34.2':
2019
resolution: {integrity: sha512-EGZ1xwhBI7dNISwxjChqBGELCWMGDvmxZXKjQRuqMrakhO8QoMgqCrdjnAqJq/CScxfRn+Bb7suXBElKQpPDiw==}
2020
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2021
cpu: [s390x]
2022
os: [linux]
2023
+ libc: [glibc]
2024
2025
'@img/sharp-linux-x64@0.33.5':
2026
resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==}
2027
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2028
cpu: [x64]
2029
os: [linux]
2030
+ libc: [glibc]
2031
2032
'@img/sharp-linux-x64@0.34.2':
2033
resolution: {integrity: sha512-sD7J+h5nFLMMmOXYH4DD9UtSNBD05tWSSdWAcEyzqW8Cn5UxXvsHAxmxSesYUsTOBmUnjtxghKDl15EvfqLFbQ==}
2034
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2035
cpu: [x64]
2036
os: [linux]
2037
+ libc: [glibc]
2038
2039
'@img/sharp-linuxmusl-arm64@0.33.5':
2040
resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==}
2041
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2042
cpu: [arm64]
2043
os: [linux]
2044
+ libc: [musl]
2045
2046
'@img/sharp-linuxmusl-arm64@0.34.2':
2047
resolution: {integrity: sha512-NEE2vQ6wcxYav1/A22OOxoSOGiKnNmDzCYFOZ949xFmrWZOVII1Bp3NqVVpvj+3UeHMFyN5eP/V5hzViQ5CZNA==}
2048
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2049
cpu: [arm64]
2050
os: [linux]
2051
+ libc: [musl]
2052
2053
'@img/sharp-linuxmusl-x64@0.33.5':
2054
resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==}
2055
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2056
cpu: [x64]
2057
os: [linux]
2058
+ libc: [musl]
2059
2060
'@img/sharp-linuxmusl-x64@0.34.2':
2061
resolution: {integrity: sha512-DOYMrDm5E6/8bm/yQLCWyuDJwUnlevR8xtF8bs+gjZ7cyUNYXiSf/E8Kp0Ss5xasIaXSHzb888V1BE4i1hFhAA==}
2062
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
2063
cpu: [x64]
2064
os: [linux]
2065
+ libc: [musl]
2066
2067
'@img/sharp-wasm32@0.33.5':
2068
resolution: {integrity: sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==}
@@ -2386,24 +2417,28 @@ packages:
2417
engines: {node: '>= 10'}
2418
cpu: [arm64]
2419
os: [linux]
2420
+ libc: [glibc]
2421
2422
'@next/swc-linux-arm64-musl@15.3.4':
2423
resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}
2424
engines: {node: '>= 10'}
2425
cpu: [arm64]
2426
os: [linux]
2427
+ libc: [musl]
2428
2429
'@next/swc-linux-x64-gnu@15.3.4':
2430
resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}
2431
engines: {node: '>= 10'}
2432
cpu: [x64]
2433
os: [linux]
2434
+ libc: [glibc]
2435
2436
'@next/swc-linux-x64-musl@15.3.4':
2437
resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}
2438
engines: {node: '>= 10'}
2439
cpu: [x64]
2440
os: [linux]
2441
+ libc: [musl]
2442
2443
'@next/swc-win32-arm64-msvc@15.3.4':
2444
resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}
@@ -2967,36 +3002,42 @@ packages:
3002
engines: {node: '>= 10.0.0'}
3003
cpu: [arm]
3004
os: [linux]
3005
+ libc: [glibc]
3006
3007
'@parcel/watcher-linux-arm-musl@2.5.1':
3008
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
3009
engines: {node: '>= 10.0.0'}
3010
cpu: [arm]
3011
os: [linux]
3012
+ libc: [musl]
3013
3014
'@parcel/watcher-linux-arm64-glibc@2.5.1':
3015
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
3016
engines: {node: '>= 10.0.0'}
3017
cpu: [arm64]
3018
os: [linux]
3019
+ libc: [glibc]
3020
3021
'@parcel/watcher-linux-arm64-musl@2.5.1':
3022
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
3023
engines: {node: '>= 10.0.0'}
3024
cpu: [arm64]
3025
os: [linux]
3026
+ libc: [musl]
3027
3028
'@parcel/watcher-linux-x64-glibc@2.5.1':
3029
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
3030
engines: {node: '>= 10.0.0'}
3031
cpu: [x64]
3032
os: [linux]
3033
+ libc: [glibc]
3034
3035
'@parcel/watcher-linux-x64-musl@2.5.1':
3036
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
3037
engines: {node: '>= 10.0.0'}
3038
cpu: [x64]
3039
os: [linux]
3040
+ libc: [musl]
3041
3042
'@parcel/watcher-win32-arm64@2.5.1':
3043
resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}
@@ -3110,56 +3151,67 @@ packages:
3151
resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==}
3152
cpu: [arm]
3153
os: [linux]
3154
+ libc: [glibc]
3155
3156
'@rollup/rollup-linux-arm-musleabihf@4.43.0':
3157
resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==}
3158
cpu: [arm]
3159
os: [linux]
3160
+ libc: [musl]
3161
3162
'@rollup/rollup-linux-arm64-gnu@4.43.0':
3163
resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==}
3164
cpu: [arm64]
3165
os: [linux]
3166
+ libc: [glibc]
3167
3168
'@rollup/rollup-linux-arm64-musl@4.43.0':
3169
resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==}
3170
cpu: [arm64]
3171
os: [linux]
3172
+ libc: [musl]
3173
3174
'@rollup/rollup-linux-loongarch64-gnu@4.43.0':
3175
resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==}
3176
cpu: [loong64]
3177
os: [linux]
3178
+ libc: [glibc]
3179
3180
'@rollup/rollup-linux-powerpc64le-gnu@4.43.0':
3181
resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==}
3182
cpu: [ppc64]
3183
os: [linux]
3184
+ libc: [glibc]
3185
3186
'@rollup/rollup-linux-riscv64-gnu@4.43.0':
3187
resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==}
3188
cpu: [riscv64]
3189
os: [linux]
3190
+ libc: [glibc]
3191
3192
'@rollup/rollup-linux-riscv64-musl@4.43.0':
3193
resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==}
3194
cpu: [riscv64]
3195
os: [linux]
3196
+ libc: [musl]
3197
3198
'@rollup/rollup-linux-s390x-gnu@4.43.0':
3199
resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==}
3200
cpu: [s390x]
3201
os: [linux]
3202
+ libc: [glibc]
3203
3204
'@rollup/rollup-linux-x64-gnu@4.43.0':
3205
resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==}
3206
cpu: [x64]
3207
os: [linux]
3208
+ libc: [glibc]
3209
3210
'@rollup/rollup-linux-x64-musl@4.43.0':
3211
resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==}
3212
cpu: [x64]
3213
os: [linux]
3214
+ libc: [musl]
3215
3216
'@rollup/rollup-win32-arm64-msvc@4.43.0':
3217
resolution: {integrity: sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==}
@@ -6735,8 +6787,8 @@ packages:
6787
zod@3.25.76:
6788
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
6789
6738
- zod@4.1.9:
6739
- resolution: {integrity: sha512-HI32jTq0AUAC125z30E8bQNz0RQ+9Uc+4J7V97gLYjZVKRjeydPgGt6dvQzFrav7MYOUGFqqOGiHpA/fdbd0cQ==}
6790
+ zod@4.1.12:
6791
+ resolution: {integrity: sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==}
6792
6793
snapshots:
6794
@@ -6763,41 +6815,23 @@ snapshots:
6815
'@ai-sdk/provider-utils': 3.0.7(zod@3.25.76)
6816
zod: 3.25.76
6817
6766
- '@ai-sdk/gateway@1.0.15(zod@4.1.9)':
6767
- dependencies:
6768
- '@ai-sdk/provider': 2.0.0
6769
- '@ai-sdk/provider-utils': 3.0.7(zod@4.1.9)
6770
- zod: 4.1.9
6771
-
6818
'@ai-sdk/gateway@1.0.23(zod@3.25.76)':
6819
dependencies:
6820
'@ai-sdk/provider': 2.0.0
6821
'@ai-sdk/provider-utils': 3.0.9(zod@3.25.76)
6822
zod: 3.25.76
6823
6778
- '@ai-sdk/gateway@1.0.23(zod@4.1.9)':
6779
- dependencies:
6780
- '@ai-sdk/provider': 2.0.0
6781
- '@ai-sdk/provider-utils': 3.0.9(zod@4.1.9)
6782
- zod: 4.1.9
6783
-
6824
'@ai-sdk/openai@1.3.22(zod@3.25.76)':
6825
dependencies:
6826
'@ai-sdk/provider': 1.1.3
6827
'@ai-sdk/provider-utils': 2.2.8(zod@3.25.76)
6828
zod: 3.25.76
6829
6790
- '@ai-sdk/openai@1.3.22(zod@4.1.9)':
6791
- dependencies:
6792
- '@ai-sdk/provider': 1.1.3
6793
- '@ai-sdk/provider-utils': 2.2.8(zod@4.1.9)
6794
- zod: 4.1.9
6795
-
6796
- '@ai-sdk/openai@2.0.16(zod@4.1.9)':
6830
+ '@ai-sdk/openai@2.0.16(zod@3.25.76)':
6831
dependencies:
6832
'@ai-sdk/provider': 2.0.0
6799
- '@ai-sdk/provider-utils': 3.0.4(zod@4.1.9)
6800
- zod: 4.1.9
6833
+ '@ai-sdk/provider-utils': 3.0.4(zod@3.25.76)
6834
+ zod: 3.25.76
6835
6836
'@ai-sdk/openai@2.0.35(zod@3.25.76)':
6837
dependencies:
@@ -6805,12 +6839,6 @@ snapshots:
6839
'@ai-sdk/provider-utils': 3.0.9(zod@3.25.76)
6840
zod: 3.25.76
6841
6808
- '@ai-sdk/openai@2.0.35(zod@4.1.9)':
6809
- dependencies:
6810
- '@ai-sdk/provider': 2.0.0
6811
- '@ai-sdk/provider-utils': 3.0.9(zod@4.1.9)
6812
- zod: 4.1.9
6813
-
6842
'@ai-sdk/provider-utils@2.2.8(zod@3.25.76)':
6843
dependencies:
6844
'@ai-sdk/provider': 1.1.3
@@ -6818,20 +6846,13 @@ snapshots:
6846
secure-json-parse: 2.7.0
6847
zod: 3.25.76
6848
6821
- '@ai-sdk/provider-utils@2.2.8(zod@4.1.9)':
6822
- dependencies:
6823
- '@ai-sdk/provider': 1.1.3
6824
- nanoid: 3.3.11
6825
- secure-json-parse: 2.7.0
6826
- zod: 4.1.9
6827
-
6828
- '@ai-sdk/provider-utils@3.0.4(zod@4.1.9)':
6849
+ '@ai-sdk/provider-utils@3.0.4(zod@3.25.76)':
6850
dependencies:
6851
'@ai-sdk/provider': 2.0.0
6852
'@standard-schema/spec': 1.0.0
6853
eventsource-parser: 3.0.3
6833
- zod: 4.1.9
6834
- zod-to-json-schema: 3.24.6(zod@4.1.9)
6854
+ zod: 3.25.76
6855
+ zod-to-json-schema: 3.24.6(zod@3.25.76)
6856
6857
'@ai-sdk/provider-utils@3.0.5(zod@3.25.76)':
6858
dependencies:
@@ -6841,14 +6862,6 @@ snapshots:
6862
zod: 3.25.76
6863
zod-to-json-schema: 3.24.6(zod@3.25.76)
6864
6844
- '@ai-sdk/provider-utils@3.0.5(zod@4.1.9)':
6845
- dependencies:
6846
- '@ai-sdk/provider': 2.0.0
6847
- '@standard-schema/spec': 1.0.0
6848
- eventsource-parser: 3.0.6
6849
- zod: 4.1.9
6850
- zod-to-json-schema: 3.24.6(zod@4.1.9)
6851
-
6865
'@ai-sdk/provider-utils@3.0.7(zod@3.25.76)':
6866
dependencies:
6867
'@ai-sdk/provider': 2.0.0
@@ -6856,13 +6869,6 @@ snapshots:
6869
eventsource-parser: 3.0.6
6870
zod: 3.25.76
6871
6859
- '@ai-sdk/provider-utils@3.0.7(zod@4.1.9)':
6860
- dependencies:
6861
- '@ai-sdk/provider': 2.0.0
6862
- '@standard-schema/spec': 1.0.0
6863
- eventsource-parser: 3.0.6
6864
- zod: 4.1.9
6865
-
6872
'@ai-sdk/provider-utils@3.0.9(zod@3.25.76)':
6873
dependencies:
6874
'@ai-sdk/provider': 2.0.0
@@ -6870,13 +6876,6 @@ snapshots:
6876
eventsource-parser: 3.0.6
6877
zod: 3.25.76
6878
6873
- '@ai-sdk/provider-utils@3.0.9(zod@4.1.9)':
6874
- dependencies:
6875
- '@ai-sdk/provider': 2.0.0
6876
- '@standard-schema/spec': 1.0.0
6877
- eventsource-parser: 3.0.6
6878
- zod: 4.1.9
6879
-
6879
'@ai-sdk/provider@1.1.3':
6880
dependencies:
6881
json-schema: 0.4.0
@@ -6895,16 +6894,6 @@ snapshots:
6894
optionalDependencies:
6895
zod: 3.25.76
6896
6898
- '@ai-sdk/react@1.2.12(react@18.3.1)(zod@4.1.9)':
6899
- dependencies:
6900
- '@ai-sdk/provider-utils': 2.2.8(zod@4.1.9)
6901
- '@ai-sdk/ui-utils': 1.2.11(zod@4.1.9)
6902
- react: 18.3.1
6903
- swr: 2.3.3(react@18.3.1)
6904
- throttleit: 2.1.0
6905
- optionalDependencies:
6906
- zod: 4.1.9
6907
-
6897
'@ai-sdk/ui-utils@1.2.11(zod@3.25.76)':
6898
dependencies:
6899
'@ai-sdk/provider': 1.1.3
@@ -6912,13 +6901,6 @@ snapshots:
6901
zod: 3.25.76
6902
zod-to-json-schema: 3.24.6(zod@3.25.76)
6903
6915
- '@ai-sdk/ui-utils@1.2.11(zod@4.1.9)':
6916
- dependencies:
6917
- '@ai-sdk/provider': 1.1.3
6918
- '@ai-sdk/provider-utils': 2.2.8(zod@4.1.9)
6919
- zod: 4.1.9
6920
- zod-to-json-schema: 3.24.6(zod@4.1.9)
6921
-
6904
'@alloc/quick-lru@5.2.0': {}
6905
6906
'@anthropic-ai/sdk@0.52.0': {}
@@ -7126,7 +7108,7 @@ snapshots:
7108
optionalDependencies:
7109
workerd: 1.20250913.0
7110
7129
- '@cloudflare/vitest-pool-workers@0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))':
7111
+ '@cloudflare/vitest-pool-workers@0.9.2(@cloudflare/workers-types@4.20250917.0)(@vitest/runner@3.2.4)(@vitest/snapshot@3.2.4)(vitest@3.2.4)':
7112
dependencies:
7113
'@vitest/runner': 3.2.4
7114
'@vitest/snapshot': 3.2.4
@@ -7280,7 +7262,7 @@ snapshots:
7262
dependencies:
7263
effect: 3.16.16
7264
7283
- '@effect/vitest@0.23.8(effect@3.16.16)(vitest@3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))':
7265
+ '@effect/vitest@0.23.8(effect@3.16.16)(vitest@3.2.4)':
7266
dependencies:
7267
effect: 3.16.16
7268
vitest: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
@@ -7494,9 +7476,9 @@ snapshots:
7476
'@eslint/core': 0.15.0
7477
levn: 0.4.1
7478
7497
- '@finom/zod-to-json-schema@3.24.11(zod@4.1.9)':
7479
+ '@finom/zod-to-json-schema@3.24.11(zod@4.1.12)':
7480
dependencies:
7499
- zod: 4.1.9
7481
+ zod: 4.1.12
7482
7483
'@gerrit0/mini-shiki@3.6.0':
7484
dependencies:
@@ -7875,14 +7857,14 @@ snapshots:
7857
transitivePeerDependencies:
7858
- openai
7859
7878
- '@langchain/core@0.3.63(openai@5.20.3(zod@3.25.76))':
7860
+ '@langchain/core@0.3.63(openai@5.20.3(ws@8.18.2)(zod@3.25.76))':
7861
dependencies:
7862
'@cfworker/json-schema': 4.1.1
7863
ansi-styles: 5.2.0
7864
camelcase: 6.3.0
7865
decamelize: 1.2.0
7866
js-tiktoken: 1.0.20
7885
- langsmith: 0.3.33(openai@5.20.3(zod@3.25.76))
7867
+ langsmith: 0.3.33(openai@5.20.3(ws@8.18.2)(zod@3.25.76))
7868
mustache: 4.2.0
7869
p-queue: 6.6.2
7870
p-retry: 4.6.2
@@ -7978,11 +7960,11 @@ snapshots:
7960
7961
'@llamaindex/core@0.6.22':
7962
dependencies:
7981
- '@finom/zod-to-json-schema': 3.24.11(zod@4.1.9)
7963
+ '@finom/zod-to-json-schema': 3.24.11(zod@4.1.12)
7964
'@llamaindex/env': 0.1.30
7965
'@types/node': 24.6.2
7966
magic-bytes.js: 1.12.1
7985
- zod: 4.1.9
7967
+ zod: 4.1.12
7968
transitivePeerDependencies:
7969
- '@huggingface/transformers'
7970
- gpt-tokenizer
@@ -8018,7 +8000,7 @@ snapshots:
8000
rxjs: 7.8.2
8001
zod: 3.25.76
8002
8021
- '@llamaindex/workflow-core@1.3.3(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(zod@3.25.76)':
8003
+ '@llamaindex/workflow-core@1.3.3(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)':
8004
optionalDependencies:
8005
'@modelcontextprotocol/sdk': 1.18.0
8006
hono: 4.9.7
@@ -8026,9 +8008,9 @@ snapshots:
8008
rxjs: 7.8.2
8009
zod: 3.25.76
8010
8029
- '@llamaindex/workflow-core@1.3.3(zod@4.1.9)':
8011
+ '@llamaindex/workflow-core@1.3.3(zod@4.1.12)':
8012
optionalDependencies:
8031
- zod: 4.1.9
8013
+ zod: 4.1.12
8014
8015
'@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.8.0)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)':
8016
dependencies:
@@ -8043,11 +8025,11 @@ snapshots:
8025
- rxjs
8026
- zod
8027
8046
- '@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(zod@3.25.76)':
8028
+ '@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)':
8029
dependencies:
8030
'@llamaindex/core': 0.6.22
8031
'@llamaindex/env': 0.1.30
8050
- '@llamaindex/workflow-core': 1.3.3(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(zod@3.25.76)
8032
+ '@llamaindex/workflow-core': 1.3.3(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)
8033
transitivePeerDependencies:
8034
- '@modelcontextprotocol/sdk'
8035
- hono
@@ -8056,11 +8038,11 @@ snapshots:
8038
- rxjs
8039
- zod
8040
8059
- '@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@4.1.9)':
8041
+ '@llamaindex/workflow@1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@4.1.12)':
8042
dependencies:
8043
'@llamaindex/core': 0.6.22
8044
'@llamaindex/env': 0.1.30
8063
- '@llamaindex/workflow-core': 1.3.3(zod@4.1.9)
8045
+ '@llamaindex/workflow-core': 1.3.3(zod@4.1.12)
8046
transitivePeerDependencies:
8047
- '@modelcontextprotocol/sdk'
8048
- hono
@@ -8142,63 +8124,6 @@ snapshots:
8124
- valibot
8125
- zod-openapi
8126
8145
- '@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.9)':
8146
- dependencies:
8147
- '@a2a-js/sdk': 0.2.5
8148
- '@ai-sdk/provider': 1.1.3
8149
- '@ai-sdk/provider-utils': 2.2.8(zod@4.1.9)
8150
- '@ai-sdk/provider-utils-v5': '@ai-sdk/provider-utils@3.0.5(zod@4.1.9)'
8151
- '@ai-sdk/provider-v5': '@ai-sdk/provider@2.0.0'
8152
- '@ai-sdk/ui-utils': 1.2.11(zod@4.1.9)
8153
- '@mastra/schema-compat': 0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.9))(zod@4.1.9)
8154
- '@opentelemetry/api': 1.9.0
8155
- '@opentelemetry/auto-instrumentations-node': 0.62.1(@opentelemetry/api@1.9.0)(@opentelemetry/core@2.0.1(@opentelemetry/api@1.9.0))
8156
- '@opentelemetry/core': 2.0.1(@opentelemetry/api@1.9.0)
8157
- '@opentelemetry/exporter-trace-otlp-grpc': 0.203.0(@opentelemetry/api@1.9.0)
8158
- '@opentelemetry/exporter-trace-otlp-http': 0.203.0(@opentelemetry/api@1.9.0)
8159
- '@opentelemetry/otlp-exporter-base': 0.203.0(@opentelemetry/api@1.9.0)
8160
- '@opentelemetry/otlp-transformer': 0.203.0(@opentelemetry/api@1.9.0)
8161
- '@opentelemetry/resources': 2.0.1(@opentelemetry/api@1.9.0)
8162
- '@opentelemetry/sdk-metrics': 2.0.1(@opentelemetry/api@1.9.0)
8163
- '@opentelemetry/sdk-node': 0.203.0(@opentelemetry/api@1.9.0)
8164
- '@opentelemetry/sdk-trace-base': 2.0.1(@opentelemetry/api@1.9.0)
8165
- '@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/api@1.9.0)
8166
- '@opentelemetry/semantic-conventions': 1.36.0
8167
- '@sindresorhus/slugify': 2.2.1
8168
- ai: 4.3.19(react@18.3.1)(zod@4.1.9)
8169
- ai-v5: ai@5.0.28(zod@4.1.9)
8170
- date-fns: 3.6.0
8171
- dotenv: 16.6.1
8172
- hono: 4.9.7
8173
- hono-openapi: 0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@4.1.9)
8174
- js-tiktoken: 1.0.20
8175
- json-schema: 0.4.0
8176
- json-schema-to-zod: 2.6.1
8177
- p-map: 7.0.3
8178
- pino: 9.7.0
8179
- pino-pretty: 13.0.0
8180
- radash: 12.1.1
8181
- sift: 17.1.3
8182
- xstate: 5.20.2
8183
- zod: 4.1.9
8184
- zod-to-json-schema: 3.24.6(zod@4.1.9)
8185
- transitivePeerDependencies:
8186
- - '@hono/arktype-validator'
8187
- - '@hono/effect-validator'
8188
- - '@hono/typebox-validator'
8189
- - '@hono/valibot-validator'
8190
- - '@hono/zod-validator'
8191
- - '@sinclair/typebox'
8192
- - '@valibot/to-json-schema'
8193
- - arktype
8194
- - effect
8195
- - encoding
8196
- - openapi-types
8197
- - react
8198
- - supports-color
8199
- - valibot
8200
- - zod-openapi
8201
-
8127
'@mastra/mcp@0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.76))(@types/json-schema@7.0.15)(zod@3.25.76)':
8128
dependencies:
8129
'@apidevtools/json-schema-ref-parser': 14.2.1(@types/json-schema@7.0.15)
@@ -8215,22 +8140,6 @@ snapshots:
8140
- '@types/json-schema'
8141
- supports-color
8142
8218
- '@mastra/mcp@0.12.0(@mastra/core@0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.9))(@types/json-schema@7.0.15)(zod@4.1.9)':
8219
- dependencies:
8220
- '@apidevtools/json-schema-ref-parser': 14.2.1(@types/json-schema@7.0.15)
8221
- '@mastra/core': 0.16.3(effect@3.16.16)(openapi-types@12.1.3)(react@18.3.1)(zod@4.1.9)
8222
- '@modelcontextprotocol/sdk': 1.18.0
8223
- date-fns: 4.1.0
8224
- exit-hook: 4.0.0
8225
- fast-deep-equal: 3.1.3
8226
- uuid: 11.1.0
8227
- zod: 4.1.9
8228
- zod-from-json-schema: 0.5.0
8229
- zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8230
- transitivePeerDependencies:
8231
- - '@types/json-schema'
8232
- - supports-color
8233
-
8143
'@mastra/schema-compat@0.11.3(ai@4.3.19(react@18.3.1)(zod@3.25.76))(zod@3.25.76)':
8144
dependencies:
8145
ai: 4.3.19(react@18.3.1)(zod@3.25.76)
@@ -8240,15 +8149,6 @@ snapshots:
8149
zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8150
zod-to-json-schema: 3.24.6(zod@3.25.76)
8151
8243
- '@mastra/schema-compat@0.11.3(ai@4.3.19(react@18.3.1)(zod@4.1.9))(zod@4.1.9)':
8244
- dependencies:
8245
- ai: 4.3.19(react@18.3.1)(zod@4.1.9)
8246
- json-schema: 0.4.0
8247
- zod: 4.1.9
8248
- zod-from-json-schema: 0.5.0
8249
- zod-from-json-schema-v3: zod-from-json-schema@0.0.5
8250
- zod-to-json-schema: 3.24.6(zod@4.1.9)
8251
-
8152
'@modelcontextprotocol/sdk@1.18.0':
8153
dependencies:
8154
ajv: 6.12.6
@@ -9630,14 +9530,6 @@ snapshots:
9530
chai: 5.2.0
9531
tinyrainbow: 2.0.0
9532
9633
- '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.0))':
9634
- dependencies:
9635
- '@vitest/spy': 3.2.4
9636
- estree-walker: 3.0.3
9637
- magic-string: 0.30.17
9638
- optionalDependencies:
9639
- vite: 6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.0)
9640
-
9533
'@vitest/mocker@3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))':
9534
dependencies:
9535
'@vitest/spy': 3.2.4
@@ -9646,22 +9538,6 @@ snapshots:
9538
optionalDependencies:
9539
vite: 6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
9540
9649
- '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))':
9650
- dependencies:
9651
- '@vitest/spy': 3.2.4
9652
- estree-walker: 3.0.3
9653
- magic-string: 0.30.17
9654
- optionalDependencies:
9655
- vite: 6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
9656
-
9657
- '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@24.6.2)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))':
9658
- dependencies:
9659
- '@vitest/spy': 3.2.4
9660
- estree-walker: 3.0.3
9661
- magic-string: 0.30.17
9662
- optionalDependencies:
9663
- vite: 6.3.5(@types/node@24.6.2)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
9664
-
9541
'@vitest/pretty-format@3.2.4':
9542
dependencies:
9543
tinyrainbow: 2.0.0
@@ -9691,7 +9567,7 @@ snapshots:
9567
sirv: 3.0.1
9568
tinyglobby: 0.2.14
9569
tinyrainbow: 2.0.0
9694
- vitest: 3.2.4(@types/node@24.6.2)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
9570
+ vitest: 3.2.4(@types/node@22.15.32)(@vitest/ui@3.2.4)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1)
9571
9572
'@vitest/utils@3.2.4':
9573
dependencies:
@@ -9745,18 +9621,6 @@ snapshots:
9621
optionalDependencies:
9622
react: 18.3.1
9623
9748
- ai@4.3.19(react@18.3.1)(zod@4.1.9):
9749
- dependencies:
9750
- '@ai-sdk/provider': 1.1.3
9751
- '@ai-sdk/provider-utils': 2.2.8(zod@4.1.9)
9752
- '@ai-sdk/react': 1.2.12(react@18.3.1)(zod@4.1.9)
9753
- '@ai-sdk/ui-utils': 1.2.11(zod@4.1.9)
9754
- '@opentelemetry/api': 1.9.0
9755
- jsondiffpatch: 0.6.0
9756
- zod: 4.1.9
9757
- optionalDependencies:
9758
- react: 18.3.1
9759
-
9624
ai@5.0.28(zod@3.25.76):
9625
dependencies:
9626
'@ai-sdk/gateway': 1.0.15(zod@3.25.76)
@@ -9765,14 +9629,6 @@ snapshots:
9629
'@opentelemetry/api': 1.9.0
9630
zod: 3.25.76
9631
9768
- ai@5.0.28(zod@4.1.9):
9769
- dependencies:
9770
- '@ai-sdk/gateway': 1.0.15(zod@4.1.9)
9771
- '@ai-sdk/provider': 2.0.0
9772
- '@ai-sdk/provider-utils': 3.0.7(zod@4.1.9)
9773
- '@opentelemetry/api': 1.9.0
9774
- zod: 4.1.9
9775
-
9632
ai@5.0.44(zod@3.25.76):
9633
dependencies:
9634
'@ai-sdk/gateway': 1.0.23(zod@3.25.76)
@@ -9781,14 +9637,6 @@ snapshots:
9637
'@opentelemetry/api': 1.9.0
9638
zod: 3.25.76
9639
9784
- ai@5.0.44(zod@4.1.9):
9785
- dependencies:
9786
- '@ai-sdk/gateway': 1.0.23(zod@4.1.9)
9787
- '@ai-sdk/provider': 2.0.0
9788
- '@ai-sdk/provider-utils': 3.0.9(zod@4.1.9)
9789
- '@opentelemetry/api': 1.9.0
9790
- zod: 4.1.9
9791
-
9640
ajv@6.12.6:
9641
dependencies:
9642
fast-deep-equal: 3.1.3
@@ -10117,7 +9965,7 @@ snapshots:
9965
resolve-package-path: 4.0.3
9966
uuid: 10.0.0
9967
zod: 3.25.76
10120
- zod-to-json-schema: 3.24.5(zod@3.25.76)
9968
+ zod-to-json-schema: 3.24.6(zod@3.25.76)
9969
transitivePeerDependencies:
9970
- debug
9971
@@ -10937,15 +10785,6 @@ snapshots:
10785
hono: 4.9.7
10786
zod: 3.25.76
10787
10940
- hono-openapi@0.4.8(effect@3.16.16)(hono@4.9.7)(openapi-types@12.1.3)(zod@4.1.9):
10941
- dependencies:
10942
- json-schema-walker: 2.0.0
10943
- openapi-types: 12.1.3
10944
- optionalDependencies:
10945
- effect: 3.16.16
10946
- hono: 4.9.7
10947
- zod: 4.1.9
10948
-
10788
hono@4.8.0: {}
10789
10790
hono@4.9.7: {}
@@ -11233,7 +11072,7 @@ snapshots:
11072
optionalDependencies:
11073
openai: 4.104.0(ws@8.18.2)(zod@3.25.76)
11074
11236
- langsmith@0.3.33(openai@5.20.3(zod@3.25.76)):
11075
+ langsmith@0.3.33(openai@5.20.3(ws@8.18.2)(zod@3.25.76)):
11076
dependencies:
11077
'@types/uuid': 10.0.0
11078
chalk: 4.1.2
@@ -11299,12 +11138,12 @@ snapshots:
11138
rfdc: 1.4.1
11139
wrap-ansi: 9.0.0
11140
11302
- llamaindex@0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76):
11141
+ llamaindex@0.12.0(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@3.25.76):
11142
dependencies:
11143
'@llamaindex/core': 0.6.22
11144
'@llamaindex/env': 0.1.30
11145
'@llamaindex/node-parser': 2.0.22(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)
11307
- '@llamaindex/workflow': 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4)(rxjs@7.8.2)(zod@3.25.76)
11146
+ '@llamaindex/workflow': 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(@modelcontextprotocol/sdk@1.18.0)(hono@4.9.7)(next@15.3.4(@opentelemetry/api@1.9.0)(react-dom@19.1.0(react@18.3.1))(react@18.3.1))(rxjs@7.8.2)(zod@3.25.76)
11147
'@types/lodash': 4.17.20
11148
'@types/node': 24.6.2
11149
lodash: 4.17.21
@@ -11321,12 +11160,12 @@ snapshots:
11160
- web-tree-sitter
11161
- zod
11162
11324
- llamaindex@0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.9):
11163
+ llamaindex@0.12.0(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)(zod@4.1.12):
11164
dependencies:
11165
'@llamaindex/core': 0.6.22
11166
'@llamaindex/env': 0.1.30
11167
'@llamaindex/node-parser': 2.0.22(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(tree-sitter@0.22.4)(web-tree-sitter@0.24.7)
11329
- '@llamaindex/workflow': 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@4.1.9)
11168
+ '@llamaindex/workflow': 1.1.24(@llamaindex/core@0.6.22)(@llamaindex/env@0.1.30)(zod@4.1.12)
11169
'@types/lodash': 4.17.20
11170
'@types/node': 24.6.2
11171
lodash: 4.17.21
@@ -11663,10 +11502,10 @@ snapshots:
11502
ws: 8.18.2
11503
zod: 3.25.76
11504
11666
- openai@5.19.1(ws@8.18.2)(zod@4.1.9):
11505
+ openai@5.19.1(ws@8.18.2)(zod@3.25.76):
11506
optionalDependencies:
11507
ws: 8.18.2
11669
- zod: 4.1.9
11508
+ zod: 3.25.76
11509
11510
openai@5.20.3(ws@8.18.2)(zod@3.25.76):
11511
optionalDependencies:
@@ -12954,7 +12793,7 @@ snapshots:
12793
dependencies:
12794
'@types/chai': 5.2.2
12795
'@vitest/expect': 3.2.4
12957
- '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@20.19.1)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.0))
12796
+ '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
12797
'@vitest/pretty-format': 3.2.4
12798
'@vitest/runner': 3.2.4
12799
'@vitest/snapshot': 3.2.4
@@ -13038,7 +12877,7 @@ snapshots:
12877
dependencies:
12878
'@types/chai': 5.2.2
12879
'@vitest/expect': 3.2.4
13041
- '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@24.0.3)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
12880
+ '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
12881
'@vitest/pretty-format': 3.2.4
12882
'@vitest/runner': 3.2.4
12883
'@vitest/snapshot': 3.2.4
@@ -13080,7 +12919,7 @@ snapshots:
12919
dependencies:
12920
'@types/chai': 5.2.2
12921
'@vitest/expect': 3.2.4
13083
- '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@24.6.2)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
12922
+ '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@22.15.32)(jiti@1.21.7)(tsx@4.20.5)(yaml@2.8.1))
12923
'@vitest/pretty-format': 3.2.4
12924
'@vitest/runner': 3.2.4
12925
'@vitest/snapshot': 3.2.4
@@ -13271,28 +13110,20 @@ snapshots:
13110
13111
zod-from-json-schema@0.5.0:
13112
dependencies:
13274
- zod: 4.1.9
13113
+ zod: 4.1.12
13114
13115
zod-to-json-schema@3.24.5(zod@3.25.76):
13116
dependencies:
13117
zod: 3.25.76
13118
13280
- zod-to-json-schema@3.24.5(zod@4.1.9):
13281
- dependencies:
13282
- zod: 4.1.9
13283
-
13119
zod-to-json-schema@3.24.6(zod@3.25.76):
13120
dependencies:
13121
zod: 3.25.76
13122
13288
- zod-to-json-schema@3.24.6(zod@4.1.9):
13289
- dependencies:
13290
- zod: 4.1.9
13291
-
13123
zod@3.22.3: {}
13124
13125
zod@3.25.32: {}
13126
13127
zod@3.25.76: {}
13128
13298
- zod@4.1.9: {}
13129
+ zod@4.1.12: {}
ts/examples/tools/package.json
+1
@@ -21,6 +21,7 @@
21
"@composio/core": "workspace:*",
22
"dotenv": "^16.4.1",
23
"openai": "^5.19.1",
24
+ "zod": "catalog:",
25
"zod-to-json-schema": "^3.24.5"
26
},
27
"devDependencies": {
ts/examples/tools/src/tool-conversion.ts
+1
-2
@@ -1,12 +1,11 @@
1
import { Composio, jsonSchemaToZodSchema } from '@composio/core';
2
-import { nullable, z } from 'zod';
2
import zodToJsonSchema from 'zod-to-json-schema';
3
4
const composio = new Composio({
5
apiKey: process.env.COMPOSIO_API_KEY,
6
});
7
9
-const tool = await composio.tools.getRawComposioToolBySlug('SLACK_SEND_MESSAGE');
8
+const tool = await composio.tools.getRawComposioToolBySlug('HUBSPOT_CREATE_LINE_ITEMS');
9
const inputParams = tool.inputParameters;
10
console.log(`---------- Original Input Parameters ----------`);
11
console.log(JSON.stringify(inputParams, null, 2));
ts/examples/vercel/package.json
+2
-1
@@ -20,7 +20,8 @@
20
"@composio/vercel": "workspace:*",
21
"@modelcontextprotocol/sdk": "^1.18.0",
22
"ai": "catalog:",
23
- "dotenv": "^16.5.0"
23
+ "dotenv": "^16.5.0",
24
+ "zod-to-json-schema": "^3.24.6"
25
},
26
"devDependencies": {
27
"@types/bun": "^1.2.9",
ts/examples/vercel/src/index.ts
+5
-3
@@ -19,7 +19,7 @@ const composio = new Composio({
19
* Alternatively, you can use the `composio.getToolBySlug` method
20
*/
21
async function run() {
22
- const tools = await composio.tools.get('test-user-id', 'HACKERNEWS_GET_FRONTPAGE', {
22
+ const tools = await composio.tools.get('test-user-id', 'HUBSPOT_CREATE_LINE_ITEMS', {
23
beforeExecute: ({ params, toolSlug }) => {
24
console.log(`🔄 Executing ${toolSlug} with params:`, { params });
25
return params;
@@ -33,12 +33,14 @@ async function run() {
33
const messages: ModelMessage[] = [
34
{
35
role: MessageRoles.USER,
36
- content: 'Summarize the front page of HackerNews',
36
+ content: 'What tools do you have access to?',
37
},
38
];
39
40
+ // const schema = tools[0].inputSchema;
41
+
42
const { text } = await generateText({
41
- model: openai('gpt-4o-mini'),
43
+ model: openai.responses('gpt-4.1'),
44
tools: tools,
45
messages,
46
stopWhen: stepCountIs(5),
ts/packages/core/package.json
+1
-1
@@ -45,7 +45,7 @@
45
"zod": "catalog:"
46
},
47
"peerDependencies": {
48
- "zod": "3.25.76"
48
+ "zod": ">=3.25.76 <5"
49
},
50
"dependencies": {
51
"@composio/client": "catalog:",
ts/packages/core/src/errors/ComposioError.ts
+1
-1
@@ -9,7 +9,7 @@
9
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error}
10
*/
11
import chalk from 'chalk';
12
-import { ZodError } from 'zod';
12
+import { ZodError } from 'zod/v3';
13
import { BadRequestError } from '@composio/client';
14
import logger from '../utils/logger';
15
ts/packages/core/src/errors/ValidationErrors.ts
+1
-1
@@ -1,6 +1,6 @@
1
// packages/core/src/errors/ValidationError.ts
2
3
-import { ZodError } from 'zod';
3
+import { ZodError } from 'zod/v3';
4
import { ComposioError, ComposioErrorOptions } from './ComposioError';
5
6
/**
ts/packages/core/src/services/internal/InternalService.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
export interface ComposioSDKRealtimeCredentialsResponse {
4
pusher_key: string;
ts/packages/core/src/services/telemetry/TelemetryService.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
export const TelemetryMetricSourceSchema = z.object({
4
host: z
ts/packages/core/src/types/authConfigs.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
export const AuthConfigTypes = {
4
CUSTOM: 'use_custom_auth',
ts/packages/core/src/types/connectedAccountAuthStates.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { AuthSchemeTypes } from './authConfigs.types';
3
4
export const ConnectionStatuses = {
ts/packages/core/src/types/connectedAccounts.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { ConnectionDataSchema } from './connectedAccountAuthStates.types';
3
4
/**
ts/packages/core/src/types/customTool.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { Tool, ToolProxyParams } from './tool.types';
3
import { ToolExecuteResponse } from '@composio/client/resources/tools';
4
import { ConnectionData } from './connectedAccountAuthStates.types';
ts/packages/core/src/types/mcp.experimental.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import z from 'zod';
1
+import z from 'zod/v3';
2
3
export const MCPServerInstanceSchema = z.object({
4
id: z.string(),
ts/packages/core/src/types/mcp.types.ts
+1
-1
@@ -3,7 +3,7 @@ import {
3
McpCreateResponse as McpCreateResponseRaw,
4
GenerateURLResponse as GenerateURLResponseRaw,
5
} from '@composio/client/resources/mcp';
6
-import { z } from 'zod';
6
+import { z } from 'zod/v3';
7
8
/**
9
* @deprecated
ts/packages/core/src/types/tool.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { CustomConnectionDataSchema } from './connectedAccountAuthStates.types';
3
import { TransformToolSchemaModifier } from './modifiers.types';
4
ts/packages/core/src/types/toolRouter.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import z from 'zod';
1
+import z from 'zod/v3';
2
3
export const ToolRouterToolkitConfigSchema = z.object({
4
toolkit: z.string(),
ts/packages/core/src/types/toolkit.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { AuthSchemeEnum } from './authConfigs.types';
3
4
/**
ts/packages/core/src/types/triggers.types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
export const TriggerStatuses = {
4
ENABLE: 'enable',
ts/packages/core/src/utils/jsonSchema.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
import { JsonSchemaToZodError } from '../errors';
3
import { jsonSchemaToZod } from '@composio/json-schema-to-zod';
4
ts/packages/core/src/utils/transform.ts
+1
-1
@@ -11,7 +11,7 @@
11
* .using((raw) => ({ ... }))
12
* ```
13
*/
14
-import { ZodTypeAny, z } from 'zod';
14
+import { ZodTypeAny, z } from 'zod/v3';
15
import { ValidationError } from '../errors';
16
import { logger } from '..';
17
ts/packages/core/test/AuthConfigs/authConfigs.test.ts
+1
-1
@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
2
import { AuthConfigs } from '../../src/models/AuthConfigs';
3
import ComposioClient from '@composio/client';
4
import { ValidationError } from '../../src/errors/ValidationErrors';
5
-import { ZodError } from 'zod';
5
+import { ZodError } from 'zod/v3';
6
import {
7
AuthConfigRetrieveResponse as ComposioAuthConfigRetrieveResponse,
8
AuthConfigDeleteResponse,
ts/packages/core/test/tools/customTools.test.ts
+1
-1
@@ -3,7 +3,7 @@ import { CustomTools } from '../../src/models/CustomTools';
3
import { mockClient } from '../utils/mocks/client.mock';
4
import { toolMocks } from '../utils/mocks/data.mock';
5
import ComposioClient from '@composio/client';
6
-import { z } from 'zod';
6
+import { z } from 'zod/v3';
7
import { ComposioToolNotFoundError } from '../../src/errors/ToolErrors';
8
import { ComposioConnectedAccountNotFoundError } from '../../src/errors/ConnectedAccountsErrors';
9
import { ValidationError } from '../../src/errors';
ts/packages/core/test/utils/mocks/data.mock.ts
-2
@@ -1,5 +1,3 @@
1
-import { z } from 'zod';
2
-
1
export const toolMocks = {
2
rawTool: {
3
slug: 'COMPOSIO_TOOL',
ts/packages/json-schema-to-zod/package.json
+1
-1
@@ -39,6 +39,6 @@
39
"zod": "catalog:"
40
},
41
"peerDependencies": {
42
- "zod": "3.25.76"
42
+ "zod": ">=3.25.76 <5"
43
}
44
}
ts/packages/json-schema-to-zod/src/json-schema-to-zod.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import type { z } from 'zod';
1
+import type { z } from 'zod/v3';
2
3
import { parseSchema } from './parsers/parse-schema';
4
import type { JsonSchemaToZodOptions, JsonSchema } from './types';
ts/packages/json-schema-to-zod/src/parsers/parse-all-of.ts
+29
-29
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, JsonSchema, Refs } from '../types';
@@ -7,40 +7,40 @@ import { half } from '../utils/half';
7
const originalIndex = Symbol('Original index');
8
9
const ensureOriginalIndex = (arr: JsonSchema[]) => {
10
- const newArr = [];
11
-
12
- for (let i = 0; i < arr.length; i++) {
13
- const item = arr[i];
14
- if (typeof item === 'boolean') {
15
- newArr.push(item ? { [originalIndex]: i } : { [originalIndex]: i, not: {} });
16
- } else if (originalIndex in item) {
17
- return arr;
18
- } else {
19
- newArr.push({ ...item, [originalIndex]: i });
20
- }
21
- }
22
-
23
- return newArr;
10
+ const newArr = [];
11
+
12
+ for (let i = 0; i < arr.length; i++) {
13
+ const item = arr[i];
14
+ if (typeof item === 'boolean') {
15
+ newArr.push(item ? { [originalIndex]: i } : { [originalIndex]: i, not: {} });
16
+ } else if (originalIndex in item) {
17
+ return arr;
18
+ } else {
19
+ newArr.push({ ...item, [originalIndex]: i });
20
+ }
21
+ }
22
+
23
+ return newArr;
24
};
25
26
export function parseAllOf(
27
- jsonSchema: JsonSchemaObject & { allOf: JsonSchema[] },
28
- refs: Refs,
27
+ jsonSchema: JsonSchemaObject & { allOf: JsonSchema[] },
28
+ refs: Refs
29
): z.ZodTypeAny {
30
- if (jsonSchema.allOf.length === 0) {
31
- return z.never();
32
- }
30
+ if (jsonSchema.allOf.length === 0) {
31
+ return z.never();
32
+ }
33
34
- if (jsonSchema.allOf.length === 1) {
35
- const item = jsonSchema.allOf[0];
34
+ if (jsonSchema.allOf.length === 1) {
35
+ const item = jsonSchema.allOf[0];
36
37
- return parseSchema(item, {
38
- ...refs,
39
- path: [...refs.path, 'allOf', (item as never)[originalIndex]],
40
- });
41
- }
37
+ return parseSchema(item, {
38
+ ...refs,
39
+ path: [...refs.path, 'allOf', (item as never)[originalIndex]],
40
+ });
41
+ }
42
43
- const [left, right] = half(ensureOriginalIndex(jsonSchema.allOf));
43
+ const [left, right] = half(ensureOriginalIndex(jsonSchema.allOf));
44
45
- return z.intersection(parseAllOf({ allOf: left }, refs), parseAllOf({ allOf: right }, refs));
45
+ return z.intersection(parseAllOf({ allOf: left }, refs), parseAllOf({ allOf: right }, refs));
46
}
ts/packages/json-schema-to-zod/src/parsers/parse-any-of.ts
+13
-13
@@ -1,19 +1,19 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, JsonSchema, Refs } from '../types';
5
6
export const parseAnyOf = (jsonSchema: JsonSchemaObject & { anyOf: JsonSchema[] }, refs: Refs) => {
7
- return jsonSchema.anyOf.length
8
- ? jsonSchema.anyOf.length === 1
9
- ? parseSchema(jsonSchema.anyOf[0], {
10
- ...refs,
11
- path: [...refs.path, 'anyOf', 0],
12
- })
13
- : z.union(
14
- jsonSchema.anyOf.map((schema, i) =>
15
- parseSchema(schema, { ...refs, path: [...refs.path, 'anyOf', i] }),
16
- ) as [z.ZodTypeAny, z.ZodTypeAny],
17
- )
18
- : z.any();
7
+ return jsonSchema.anyOf.length
8
+ ? jsonSchema.anyOf.length === 1
9
+ ? parseSchema(jsonSchema.anyOf[0], {
10
+ ...refs,
11
+ path: [...refs.path, 'anyOf', 0],
12
+ })
13
+ : z.union(
14
+ jsonSchema.anyOf.map((schema, i) =>
15
+ parseSchema(schema, { ...refs, path: [...refs.path, 'anyOf', i] })
16
+ ) as [z.ZodTypeAny, z.ZodTypeAny]
17
+ )
18
+ : z.any();
19
};
ts/packages/json-schema-to-zod/src/parsers/parse-array.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, Refs, JsonSchema } from '../types';
ts/packages/json-schema-to-zod/src/parsers/parse-boolean.ts
+2
-2
@@ -1,7 +1,7 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
5
export const parseBoolean = (_jsonSchema: JsonSchemaObject & { type: 'boolean' }) => {
6
- return z.boolean();
6
+ return z.boolean();
7
};
ts/packages/json-schema-to-zod/src/parsers/parse-const.ts
+2
-2
@@ -1,7 +1,7 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject, Serializable } from '../types';
4
5
export const parseConst = (jsonSchema: JsonSchemaObject & { const: Serializable }) => {
6
- return z.literal(jsonSchema.const as z.Primitive);
6
+ return z.literal(jsonSchema.const as z.Primitive);
7
};
ts/packages/json-schema-to-zod/src/parsers/parse-default.ts
+2
-2
@@ -1,7 +1,7 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
5
export const parseDefault = (_jsonSchema: JsonSchemaObject) => {
6
- return z.any();
6
+ return z.any();
7
};
ts/packages/json-schema-to-zod/src/parsers/parse-enum.ts
+14
-17
@@ -1,25 +1,22 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject, Serializable } from '../types';
4
5
export const parseEnum = (jsonSchema: JsonSchemaObject & { enum: Serializable[] }) => {
6
- if (jsonSchema.enum.length === 0) {
7
- return z.never();
8
- }
6
+ if (jsonSchema.enum.length === 0) {
7
+ return z.never();
8
+ }
9
10
- if (jsonSchema.enum.length === 1) {
11
- // union does not work when there is only one element
12
- return z.literal(jsonSchema.enum[0] as z.Primitive);
13
- }
10
+ if (jsonSchema.enum.length === 1) {
11
+ // union does not work when there is only one element
12
+ return z.literal(jsonSchema.enum[0] as z.Primitive);
13
+ }
14
15
- if (jsonSchema.enum.every((x) => typeof x === 'string')) {
16
- return z.enum(jsonSchema.enum as [string]);
17
- }
15
+ if (jsonSchema.enum.every(x => typeof x === 'string')) {
16
+ return z.enum(jsonSchema.enum as [string]);
17
+ }
18
19
- return z.union(
20
- jsonSchema.enum.map((x) => z.literal(x as z.Primitive)) as unknown as [
21
- z.ZodTypeAny,
22
- z.ZodTypeAny,
23
- ],
24
- );
19
+ return z.union(
20
+ jsonSchema.enum.map(x => z.literal(x as z.Primitive)) as unknown as [z.ZodTypeAny, z.ZodTypeAny]
21
+ );
22
};
ts/packages/json-schema-to-zod/src/parsers/parse-if-then-else.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, JsonSchema, Refs } from '../types';
ts/packages/json-schema-to-zod/src/parsers/parse-multiple-type.ts
+9
-9
@@ -1,16 +1,16 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchema, JsonSchemaObject, Refs } from '../types';
5
6
export const parseMultipleType = (
7
- jsonSchema: JsonSchemaObject & { type: string[] },
8
- refs: Refs,
7
+ jsonSchema: JsonSchemaObject & { type: string[] },
8
+ refs: Refs
9
) => {
10
- return z.union(
11
- jsonSchema.type.map((type) => parseSchema({ ...jsonSchema, type } as JsonSchema, refs)) as [
12
- z.ZodTypeAny,
13
- z.ZodTypeAny,
14
- ],
15
- );
10
+ return z.union(
11
+ jsonSchema.type.map(type => parseSchema({ ...jsonSchema, type } as JsonSchema, refs)) as [
12
+ z.ZodTypeAny,
13
+ z.ZodTypeAny,
14
+ ]
15
+ );
16
};
ts/packages/json-schema-to-zod/src/parsers/parse-not.ts
+9
-9
@@ -1,15 +1,15 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, JsonSchema, Refs } from '../types';
5
6
export const parseNot = (jsonSchema: JsonSchemaObject & { not: JsonSchema }, refs: Refs) => {
7
- return z.any().refine(
8
- (value) =>
9
- !parseSchema(jsonSchema.not, {
10
- ...refs,
11
- path: [...refs.path, 'not'],
12
- }).safeParse(value).success,
13
- 'Invalid input: Should NOT be valid against schema',
14
- );
7
+ return z.any().refine(
8
+ value =>
9
+ !parseSchema(jsonSchema.not, {
10
+ ...refs,
11
+ path: [...refs.path, 'not'],
12
+ }).safeParse(value).success,
13
+ 'Invalid input: Should NOT be valid against schema'
14
+ );
15
};
ts/packages/json-schema-to-zod/src/parsers/parse-null.ts
+2
-2
@@ -1,7 +1,7 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
5
export const parseNull = (_jsonSchema: JsonSchemaObject & { type: 'null' }) => {
6
- return z.null();
6
+ return z.null();
7
};
ts/packages/json-schema-to-zod/src/parsers/parse-number.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
import { extendSchemaWithMessage } from '../utils/extend-schema';
ts/packages/json-schema-to-zod/src/parsers/parse-object.ts
+6
-11
@@ -1,4 +1,4 @@
1
-import * as z from 'zod';
1
+import * as z from 'zod/v3';
2
3
import { parseAllOf } from './parse-all-of';
4
import { parseAnyOf } from './parse-any-of';
@@ -9,7 +9,8 @@ import { its } from '../utils/its';
9
10
function parseObjectProperties(objectSchema: JsonSchemaObject & { type: 'object' }, refs: Refs) {
11
if (!objectSchema.properties) {
12
- return undefined;
12
+ // leave it as an empty object or else this will break openai responses
13
+ return z.object({});
14
}
15
16
const propertyKeys = Object.keys(objectSchema.properties);
@@ -187,17 +188,11 @@ export function parseObject(
188
// When additionalProperties was explicitly true, use passthrough
189
output = propertiesSchema.passthrough();
190
} else {
190
- // Check if propertiesSchema is an empty object
191
- const isEmptyObject = Object.keys(propertiesSchema._def.shape()).length === 0;
192
- if (isEmptyObject) {
193
- output = propertiesSchema.passthrough();
194
- } else {
195
- output = propertiesSchema.catchall(additionalProperties);
196
- }
191
+ output = propertiesSchema.catchall(additionalProperties);
192
}
193
} else {
199
- // When additionalProperties is not specified, treat it as true
200
- output = propertiesSchema.passthrough();
194
+ // When additionalProperties is not specified, treat it as false
195
+ output = propertiesSchema.strict();
196
}
197
} else {
198
if (hasPatternProperties) {
ts/packages/json-schema-to-zod/src/parsers/parse-one-of.ts
+31
-31
@@ -1,41 +1,41 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import { parseSchema } from './parse-schema';
4
import type { JsonSchemaObject, JsonSchema, Refs } from '../types';
5
6
export const parseOneOf = (jsonSchema: JsonSchemaObject & { oneOf: JsonSchema[] }, refs: Refs) => {
7
- if (!jsonSchema.oneOf.length) {
8
- return z.any();
9
- }
7
+ if (!jsonSchema.oneOf.length) {
8
+ return z.any();
9
+ }
10
11
- if (jsonSchema.oneOf.length === 1) {
12
- return parseSchema(jsonSchema.oneOf[0], {
13
- ...refs,
14
- path: [...refs.path, 'oneOf', 0],
15
- });
16
- }
11
+ if (jsonSchema.oneOf.length === 1) {
12
+ return parseSchema(jsonSchema.oneOf[0], {
13
+ ...refs,
14
+ path: [...refs.path, 'oneOf', 0],
15
+ });
16
+ }
17
18
- return z.any().superRefine((x, ctx) => {
19
- const schemas = jsonSchema.oneOf.map((schema, i) =>
20
- parseSchema(schema, {
21
- ...refs,
22
- path: [...refs.path, 'oneOf', i],
23
- }),
24
- );
18
+ return z.any().superRefine((x, ctx) => {
19
+ const schemas = jsonSchema.oneOf.map((schema, i) =>
20
+ parseSchema(schema, {
21
+ ...refs,
22
+ path: [...refs.path, 'oneOf', i],
23
+ })
24
+ );
25
26
- const unionErrors = schemas.reduce<z.ZodError[]>(
27
- (errors, schema) =>
28
- ((result) => (result.error ? [...errors, result.error] : errors))(schema.safeParse(x)),
29
- [],
30
- );
26
+ const unionErrors = schemas.reduce<z.ZodError[]>(
27
+ (errors, schema) =>
28
+ (result => (result.error ? [...errors, result.error] : errors))(schema.safeParse(x)),
29
+ []
30
+ );
31
32
- if (schemas.length - unionErrors.length !== 1) {
33
- ctx.addIssue({
34
- path: ctx.path,
35
- code: 'invalid_union',
36
- unionErrors,
37
- message: 'Invalid input: Should pass single schema',
38
- });
39
- }
40
- });
32
+ if (schemas.length - unionErrors.length !== 1) {
33
+ ctx.addIssue({
34
+ path: ctx.path,
35
+ code: 'invalid_union',
36
+ unionErrors,
37
+ message: 'Invalid input: Should pass single schema',
38
+ });
39
+ }
40
+ });
41
};
ts/packages/json-schema-to-zod/src/parsers/parse-schema.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import * as z from 'zod';
1
+import * as z from 'zod/v3';
2
3
import { parseAllOf } from './parse-all-of';
4
import { parseAnyOf } from './parse-any-of';
ts/packages/json-schema-to-zod/src/parsers/parse-string.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import { z } from 'zod';
1
+import { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
import { extendSchemaWithMessage } from '../utils/extend-schema';
ts/packages/json-schema-to-zod/src/types.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import type { ZodTypeAny } from 'zod';
1
+import type { ZodTypeAny } from 'zod/v3';
2
import type { JSONSchema7 } from 'json-schema';
3
4
export type Serializable =
ts/packages/json-schema-to-zod/src/utils/extend-schema.ts
+1
-1
@@ -1,4 +1,4 @@
1
-import type { z } from 'zod';
1
+import type { z } from 'zod/v3';
2
3
import type { JsonSchemaObject } from '../types';
4
ts/packages/json-schema-to-zod/test/json-to-zod.test.ts
+12
-18
@@ -1,5 +1,5 @@
1
import { describe, it, expect } from 'vitest';
2
-import { z } from 'zod';
2
+import { z } from 'zod/v3';
3
import zodToJsonSchema from 'zod-to-json-schema';
4
import { jsonSchemaToZod } from '../src/json-schema-to-zod';
5
import type { JsonSchema } from '../src/types';
@@ -292,7 +292,7 @@ describe('jsonSchemaToZod', () => {
292
).toThrow();
293
});
294
295
- it('should allow any additional properties when additionalProperties is not specified', () => {
295
+ it('should reject additional properties when additionalProperties is not specified', () => {
296
const schema: JsonSchema = {
297
type: 'object',
298
properties: {
@@ -301,10 +301,7 @@ describe('jsonSchemaToZod', () => {
301
};
302
const zodSchema = jsonSchemaToZod(schema);
303
expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
304
- expect(zodSchema.parse({ name: 'John', extra: 'field' })).toEqual({
305
- name: 'John',
306
- extra: 'field',
307
- });
304
+ expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
305
});
306
307
it('should handle additionalProperties with patternProperties', () => {
@@ -1289,7 +1286,7 @@ describe('jsonSchemaToZod', () => {
1286
count: { type: 'number' },
1287
},
1288
required: ['value'],
1292
- additionalProperties: true,
1289
+ additionalProperties: false,
1290
});
1291
1292
// Test parsing behavior
@@ -1309,13 +1306,13 @@ describe('jsonSchemaToZod', () => {
1306
const zodSchema = jsonSchemaToZod(schema);
1307
const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1308
1312
- // When additionalProperties is undefined, it should default to true behavior
1313
- expect(convertedBack.additionalProperties).toBe(true);
1309
+ // When additionalProperties is undefined, it should default to false behavior (strict)
1310
+ expect(convertedBack.additionalProperties).toBe(false);
1311
expect(convertedBack.type).toBe('object');
1312
1316
- // Test parsing behavior - should allow any additional properties
1313
+ // Test parsing behavior - should reject additional properties
1314
expect(zodSchema.parse({})).toEqual({});
1318
- expect(zodSchema.parse({ any: 'value', number: 123 })).toEqual({ any: 'value', number: 123 });
1315
+ expect(() => zodSchema.parse({ any: 'value', number: 123 })).toThrow();
1316
});
1317
1318
it('should handle objects with properties and additionalProperties undefined (default behavior)', () => {
@@ -1329,16 +1326,13 @@ describe('jsonSchemaToZod', () => {
1326
const zodSchema = jsonSchemaToZod(schema);
1327
const convertedBack = zodToJsonSchema(zodSchema, { target: 'jsonSchema7' }) as any;
1328
1332
- // When additionalProperties is undefined, it should default to true behavior
1333
- expect(convertedBack.additionalProperties).toBe(true);
1329
+ // When additionalProperties is undefined, it should default to false behavior (strict)
1330
+ expect(convertedBack.additionalProperties).toBe(false);
1331
expect(convertedBack.properties).toBeDefined();
1332
1336
- // Test parsing behavior - should allow any additional properties
1333
+ // Test parsing behavior - should reject additional properties
1334
expect(zodSchema.parse({ name: 'John' })).toEqual({ name: 'John' });
1338
- expect(zodSchema.parse({ name: 'John', extra: 'field' })).toEqual({
1339
- name: 'John',
1340
- extra: 'field',
1341
- });
1335
+ expect(() => zodSchema.parse({ name: 'John', extra: 'field' })).toThrow();
1336
});
1337
1338
it('should handle nested objects with different additionalProperties settings', () => {