@devries-cameron20 / composio Mirror · read-only / commits / 6c08f1763
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 16:00 UTC

test(json-schema): share one corpus loader across the SDK test suites

The loader was copied into four packages, identical but for one path constant. Core now owns it and the Zod, Effect, and CLI suites re-export it. It also read its fixture with node:fs, which pulled @types/node into the Zod and Effect test typechecks for the first time and broke them against the Node 26 line the workspace was pinned to. That had been worked around by centralizing @types/node on a Node 24 catalog entry across ten manifests. resolveJsonModule is already enabled in every consumer, so a static JSON import removes the node:fs dependency and the whole detour with it: the catalog entry, the pnpm override, the per-package types fields, and 171 lines of lockfile churn are all reverted.

jkomyno committed Aug 8, 2026 at 00:22 UTC 6c08f176376fa343c7b375b16fdb3e4f7ed1b972
18 files changed +154 -365
package.json
+1 -1
@@ -79,7 +79,7 @@
79 "@composio/core": "workspace:*",
80 "@composio/openai": "workspace:*",
81 "@types/bun": "catalog:",
82 - "@types/node": "catalog:",
82 + "@types/node": "^26.1.2",
83 "@vitest/ui": "catalog:",
84 "husky": "^9.1.7",
85 "lint-staged": "^17.3.0",
pnpm-lock.yaml
+94 -74
@@ -114,7 +114,6 @@ catalogs:
114 version: 6.0.2
115
116 overrides:
117 - '@types/node': ^24.13.3
117 qs@<6.14.1: '>=6.14.1'
118 protobufjs: 7.6.5
119 minimatch@>=10.0.0 <10.2.3: '>=10.2.3 <11'
@@ -140,7 +139,7 @@ importers:
139 version: 0.18.5
140 '@changesets/cli':
141 specifier: ^2.31.1
143 - version: 2.31.1(@types/node@24.13.3)
142 + version: 2.31.1(@types/node@26.1.2)
143 '@changesets/read':
144 specifier: ^0.6.7
145 version: 0.6.7
@@ -160,8 +159,8 @@ importers:
159 specifier: 'catalog:'
160 version: 1.3.14
161 '@types/node':
163 - specifier: ^24.13.3
164 - version: 24.13.3
162 + specifier: ^26.1.2
163 + version: 26.1.2
164 '@vitest/ui':
165 specifier: 'catalog:'
166 version: 4.1.10(vitest@4.1.10)
@@ -203,7 +202,7 @@ importers:
202 version: '@typescript/typescript6@6.0.2'
203 vitest:
204 specifier: 'catalog:'
206 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
205 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
206 zod:
207 specifier: 'catalog:'
208 version: 4.4.3
@@ -297,7 +296,7 @@ importers:
296 version: 7.0.2
297 vitest:
298 specifier: 'catalog:'
300 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
299 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
300 wrangler:
301 specifier: 'catalog:'
302 version: 4.118.0(@cloudflare/workers-types@5.20260804.1)
@@ -325,7 +324,7 @@ importers:
324 version: 7.0.2
325 vitest:
326 specifier: 'catalog:'
328 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
327 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
328 wrangler:
329 specifier: 'catalog:'
330 version: 4.118.0(@cloudflare/workers-types@5.20260804.1)
@@ -365,7 +364,7 @@ importers:
364 version: 7.0.2
365 vitest:
366 specifier: 'catalog:'
368 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
367 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
368 wrangler:
369 specifier: 'catalog:'
370 version: 4.118.0(@cloudflare/workers-types@5.20260804.1)
@@ -645,7 +644,7 @@ importers:
644 version: 7.0.2
645 vitest:
646 specifier: 'catalog:'
648 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
647 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
648 wrangler:
649 specifier: 'catalog:'
650 version: 4.118.0(@cloudflare/workers-types@5.20260804.1)
@@ -838,8 +837,8 @@ importers:
837 specifier: 'catalog:'
838 version: 1.3.14
839 '@types/node':
841 - specifier: ^24.13.3
842 - version: 24.13.3
840 + specifier: ^26.1.2
841 + version: 26.1.2
842 typescript:
843 specifier: 'catalog:'
844 version: 7.0.2
@@ -875,8 +874,8 @@ importers:
874 specifier: 'catalog:'
875 version: 1.3.14
876 '@types/node':
878 - specifier: ^24.13.3
879 - version: 24.13.3
877 + specifier: ^26.1.2
878 + version: 26.1.2
879 typescript:
880 specifier: 'catalog:'
881 version: 7.0.2
@@ -1023,8 +1022,8 @@ importers:
1022 specifier: 'catalog:'
1023 version: 1.3.14
1024 '@types/node':
1026 - specifier: ^24.13.3
1027 - version: 24.13.3
1025 + specifier: ^26.1.2
1026 + version: 26.1.2
1027 typescript:
1028 specifier: 'catalog:'
1029 version: 7.0.2
@@ -1135,8 +1134,8 @@ importers:
1134 specifier: 'catalog:'
1135 version: 1.3.14
1136 '@types/node':
1138 - specifier: ^24.13.3
1139 - version: 24.13.3
1137 + specifier: ^26.1.2
1138 + version: 26.1.2
1139 typescript:
1140 specifier: 'catalog:'
1141 version: 7.0.2
@@ -1306,13 +1305,13 @@ importers:
1305 version: '@typescript/typescript6@6.0.2'
1306 vitest:
1307 specifier: 'catalog:'
1309 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1308 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1309
1310 ts/packages/cli-keyring:
1311 devDependencies:
1312 '@types/node':
1314 - specifier: ^24.13.3
1315 - version: 24.13.3
1313 + specifier: ^26.1.2
1314 + version: 26.1.2
1315 bun-types:
1316 specifier: ^1.3.14
1317 version: 1.3.14
@@ -1327,7 +1326,7 @@ importers:
1326 version: 7.0.2
1327 vitest:
1328 specifier: 'catalog:'
1330 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1329 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1330
1331 ts/packages/cli-local-tools:
1332 dependencies:
@@ -1345,8 +1344,8 @@ importers:
1344 version: 4.4.3
1345 devDependencies:
1346 '@types/node':
1348 - specifier: ^24.13.3
1349 - version: 24.13.3
1347 + specifier: ^26.1.2
1348 + version: 26.1.2
1349 chrome-devtools-mcp:
1350 specifier: 1.6.0
1351 version: 1.6.0
@@ -1358,7 +1357,7 @@ importers:
1357 version: 7.0.2
1358 vitest:
1359 specifier: 'catalog:'
1361 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1360 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1361
1362 ts/packages/core:
1363 dependencies:
@@ -1410,7 +1409,7 @@ importers:
1409 version: '@typescript/typescript6@6.0.2'
1410 vitest:
1411 specifier: 'catalog:'
1413 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1412 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1413 zod:
1414 specifier: 'catalog:'
1415 version: 4.4.3
@@ -1432,7 +1431,7 @@ importers:
1431 version: 0.83.0(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(zod@4.4.3))(supports-color@10.2.2)(ws@8.21.2)(zod@4.4.3)
1432 eve:
1433 specifier: ^0.29.5
1435 - version: 0.29.5(@opentelemetry/api@1.9.0)(ai@7.0.51(zod@4.4.3))(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1))
1434 + version: 0.29.5(@opentelemetry/api@1.9.0)(ai@7.0.51(zod@4.4.3))(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1))
1435 tsdown:
1436 specifier: 'catalog:'
1437 version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.23)(tsx@4.23.5)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
@@ -1444,7 +1443,7 @@ importers:
1443 version: 7.0.2
1444 vitest:
1445 specifier: 'catalog:'
1447 - version: 4.1.10(@opentelemetry/api@1.9.0)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1446 + version: 4.1.10(@opentelemetry/api@1.9.0)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1447
1448 ts/packages/json-schema-to-effect-schema:
1449 dependencies:
@@ -1458,9 +1457,6 @@ importers:
1457 '@composio/json-schema-to-zod':
1458 specifier: workspace:*
1459 version: link:../json-schema-to-zod
1461 - '@types/node':
1462 - specifier: ^24.13.3
1463 - version: 24.13.3
1460 tsdown:
1461 specifier: 'catalog:'
1462 version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.23)(tsx@4.23.5)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
@@ -1469,7 +1465,7 @@ importers:
1465 version: 7.0.2
1466 vitest:
1467 specifier: 'catalog:'
1472 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1468 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1469 zod:
1470 specifier: 'catalog:'
1471 version: 4.4.3
@@ -1480,8 +1476,8 @@ importers:
1476 specifier: ^7.0.15
1477 version: 7.0.15
1478 '@types/node':
1483 - specifier: ^24.13.3
1484 - version: 24.13.3
1479 + specifier: ^26.1.2
1480 + version: 26.1.2
1481 tsdown:
1482 specifier: 'catalog:'
1483 version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.23)(tsx@4.23.5)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
@@ -1490,7 +1486,7 @@ importers:
1486 version: 7.0.2
1487 vitest:
1488 specifier: 'catalog:'
1493 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1489 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1490 zod:
1491 specifier: ^4.4.3
1492 version: 4.4.3
@@ -1520,7 +1516,7 @@ importers:
1516 version: 7.0.2
1517 vitest:
1518 specifier: 'catalog:'
1523 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1519 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1520
1521 ts/packages/providers/claude-agent-sdk:
1522 dependencies:
@@ -1545,7 +1541,7 @@ importers:
1541 version: 7.0.2
1542 vitest:
1543 specifier: 'catalog:'
1548 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1544 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1545
1546 ts/packages/providers/cloudflare:
1547 dependencies:
@@ -1564,7 +1560,7 @@ importers:
1560 version: 7.0.2
1561 vitest:
1562 specifier: 'catalog:'
1567 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1563 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1564
1565 ts/packages/providers/google:
1566 dependencies:
@@ -1598,7 +1594,7 @@ importers:
1594 version: 7.0.2
1595 vitest:
1596 specifier: 'catalog:'
1601 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1597 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1598 zod:
1599 specifier: 'catalog:'
1600 version: 4.4.3
@@ -1642,7 +1638,7 @@ importers:
1638 version: 7.0.2
1639 vitest:
1640 specifier: 'catalog:'
1645 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1641 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1642 zod:
1643 specifier: 'catalog:'
1644 version: 4.4.3
@@ -1663,7 +1659,7 @@ importers:
1659 version: 7.0.2
1660 vitest:
1661 specifier: 'catalog:'
1666 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1662 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1663
1664 ts/packages/providers/openai-agents:
1665 devDependencies:
@@ -1681,7 +1677,7 @@ importers:
1677 version: 7.0.2
1678 vitest:
1679 specifier: 'catalog:'
1684 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1680 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1681 zod:
1682 specifier: 'catalog:'
1683 version: 4.4.3
@@ -1702,7 +1698,7 @@ importers:
1698 version: 7.0.2
1699 vitest:
1700 specifier: 'catalog:'
1705 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1701 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1702 zod:
1703 specifier: 'catalog:'
1704 version: 4.4.3
@@ -1761,7 +1757,7 @@ importers:
1757 version: 0.22.14(@arethetypeswrong/core@0.18.5)(publint@0.3.23)(tsx@4.23.5)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.2))
1758 vitest:
1759 specifier: 'catalog:'
1764 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1760 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
1761
1762 packages:
1763
@@ -2832,7 +2828,7 @@ packages:
2828 resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==}
2829 engines: {node: '>=18'}
2830 peerDependencies:
2835 - '@types/node': ^24.13.3
2831 + '@types/node': '>=18'
2832 peerDependenciesMeta:
2833 '@types/node':
2834 optional: true
@@ -4096,9 +4092,18 @@ packages:
4092 '@types/ms@2.1.0':
4093 resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
4094
4095 + '@types/node@12.20.55':
4096 + resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
4097 +
4098 '@types/node@24.13.3':
4099 resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==}
4100
4101 + '@types/node@26.1.1':
4102 + resolution: {integrity: sha512-nxAkRSVkN1Y0JC1W8ky/fTfkGsMmcrRsbx+3XoZE+rMOX71kLYTV7fLXpqud1GpbpP5TuffXFqfX7fH2GgZREw==}
4103 +
4104 + '@types/node@26.1.2':
4105 + resolution: {integrity: sha512-Vu4a5UFA9rIIFJ7rB/Vaafh9lrCQszopTCx6KjFboXTGQbPNasehVR5TEiithSDGyd1DEiUByggTZsg8jukeIg==}
4106 +
4107 '@types/retry@0.12.0':
4108 resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}
4109
@@ -6718,6 +6723,9 @@ packages:
6723 undici-types@7.18.2:
6724 resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==}
6725
6726 + undici-types@8.3.0:
6727 + resolution: {integrity: sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==}
6728 +
6729 undici@6.28.0:
6730 resolution: {integrity: sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==}
6731 engines: {node: '>=18.17'}
@@ -6886,7 +6894,7 @@ packages:
6894 engines: {node: ^20.19.0 || >=22.12.0}
6895 hasBin: true
6896 peerDependencies:
6889 - '@types/node': ^24.13.3
6897 + '@types/node': ^20.19.0 || >=22.12.0
6898 jiti: '>=1.21.0'
6899 less: ^4.0.0
6900 lightningcss: ^1.21.0
@@ -6928,7 +6936,7 @@ packages:
6936 peerDependencies:
6937 '@edge-runtime/vm': '*'
6938 '@opentelemetry/api': ^1.9.0
6931 - '@types/node': ^24.13.3
6939 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
6940 '@vitest/browser-playwright': 4.1.10
6941 '@vitest/browser-preview': 4.1.10
6942 '@vitest/browser-webdriverio': 4.1.10
@@ -7659,7 +7667,7 @@ snapshots:
7667 dependencies:
7668 '@changesets/types': 6.1.0
7669
7662 - '@changesets/cli@2.31.1(@types/node@24.13.3)':
7670 + '@changesets/cli@2.31.1(@types/node@26.1.2)':
7671 dependencies:
7672 '@changesets/apply-release-plan': 7.1.1
7673 '@changesets/assemble-release-plan': 6.0.10
@@ -7675,7 +7683,7 @@ snapshots:
7683 '@changesets/should-skip-package': 0.1.2
7684 '@changesets/types': 6.1.0
7685 '@changesets/write': 0.4.0
7678 - '@inquirer/external-editor': 1.0.3(@types/node@24.13.3)
7686 + '@inquirer/external-editor': 1.0.3(@types/node@26.1.2)
7687 '@manypkg/get-packages': 1.1.3
7688 ansi-colors: 4.1.3
7689 enquirer: 2.4.1
@@ -7800,7 +7808,7 @@ snapshots:
7808 cjs-module-lexer: 1.2.3
7809 esbuild: 0.28.1
7810 miniflare: 5.20260730.0-alpha
7803 - vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
7811 + vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
7812 wrangler: 4.118.0(@cloudflare/workers-types@5.20260804.1)
7813 zod: 4.4.3
7814 transitivePeerDependencies:
@@ -8012,7 +8020,7 @@ snapshots:
8020 '@effect/vitest@0.30.0(effect@3.22.1)(vitest@4.1.10)':
8021 dependencies:
8022 effect: 3.22.1
8015 - vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
8023 + vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
8024
8025 '@effect/workflow@0.19.1(@effect/experimental@0.61.1(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(@effect/platform@0.97.1(effect@3.22.1))(@effect/rpc@0.76.2(@effect/platform@0.97.1(effect@3.22.1))(effect@3.22.1))(effect@3.22.1)':
8026 dependencies:
@@ -8331,12 +8339,12 @@ snapshots:
8339 '@img/sharp-win32-x64@0.35.2':
8340 optional: true
8341
8334 - '@inquirer/external-editor@1.0.3(@types/node@24.13.3)':
8342 + '@inquirer/external-editor@1.0.3(@types/node@26.1.2)':
8343 dependencies:
8344 chardet: 2.2.0
8345 iconv-lite: 0.7.3
8346 optionalDependencies:
8339 - '@types/node': 24.13.3
8347 + '@types/node': 26.1.2
8348
8349 '@isaacs/fs-minipass@4.0.1':
8350 dependencies:
@@ -8524,7 +8532,7 @@ snapshots:
8532 '@manypkg/find-root@1.1.0':
8533 dependencies:
8534 '@babel/runtime': 7.29.7
8527 - '@types/node': 24.13.3
8535 + '@types/node': 12.20.55
8536 find-up: 4.1.0
8537 fs-extra: 8.1.0
8538
@@ -9550,10 +9558,20 @@ snapshots:
9558
9559 '@types/ms@2.1.0': {}
9560
9561 + '@types/node@12.20.55': {}
9562 +
9563 '@types/node@24.13.3':
9564 dependencies:
9565 undici-types: 7.18.2
9566
9567 + '@types/node@26.1.1':
9568 + dependencies:
9569 + undici-types: 8.3.0
9570 +
9571 + '@types/node@26.1.2':
9572 + dependencies:
9573 + undici-types: 8.3.0
9574 +
9575 '@types/retry@0.12.0': {}
9576
9577 '@types/semver@7.8.0': {}
@@ -9562,11 +9580,11 @@ snapshots:
9580
9581 '@types/ws@8.18.1':
9582 dependencies:
9565 - '@types/node': 24.13.3
9583 + '@types/node': 26.1.1
9584
9585 '@types/yauzl@2.10.3':
9586 dependencies:
9569 - '@types/node': 24.13.3
9587 + '@types/node': 26.1.2
9588 optional: true
9589
9590 '@typescript/typescript-aix-ppc64@7.0.2':
@@ -9644,13 +9662,13 @@ snapshots:
9662 chai: 6.2.2
9663 tinyrainbow: 3.1.0
9664
9647 - '@vitest/mocker@4.1.10(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))':
9665 + '@vitest/mocker@4.1.10(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))':
9666 dependencies:
9667 '@vitest/spy': 4.1.10
9668 estree-walker: 3.0.3
9669 magic-string: 0.30.21
9670 optionalDependencies:
9653 - vite: 7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
9671 + vite: 7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
9672
9673 '@vitest/pretty-format@4.1.10':
9674 dependencies:
@@ -9679,7 +9697,7 @@ snapshots:
9697 sirv: 3.0.2
9698 tinyglobby: 0.2.17
9699 tinyrainbow: 3.1.0
9682 - vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
9700 + vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
9701
9702 '@vitest/utils@4.1.10':
9703 dependencies:
@@ -9911,7 +9929,7 @@ snapshots:
9929
9930 bun-types@1.3.14:
9931 dependencies:
9914 - '@types/node': 24.13.3
9932 + '@types/node': 26.1.2
9933
9934 bundle-name@4.1.0:
9935 dependencies:
@@ -10240,10 +10258,10 @@ snapshots:
10258
10259 etag@1.8.1: {}
10260
10243 - eve@0.29.5(@opentelemetry/api@1.9.0)(ai@7.0.51(zod@4.4.3))(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1)):
10261 + eve@0.29.5(@opentelemetry/api@1.9.0)(ai@7.0.51(zod@4.4.3))(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1)):
10262 dependencies:
10263 ai: 7.0.51(zod@4.4.3)
10246 - nitro: 3.0.260610-beta(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1))
10264 + nitro: 3.0.260610-beta(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1))
10265 undici: 8.9.0
10266 optionalDependencies:
10267 '@opentelemetry/api': 1.9.0
@@ -11309,7 +11327,7 @@ snapshots:
11327
11328 nf3@0.3.23: {}
11329
11312 - nitro@3.0.260610-beta(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1)):
11330 + nitro@3.0.260610-beta(dotenv@17.4.2)(jiti@2.7.0)(lru-cache@11.5.2)(miniflare@4.20260722.0)(rollup@4.62.4)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))(wrangler@4.118.0(@cloudflare/workers-types@5.20260804.1)):
11331 dependencies:
11332 consola: 3.4.2
11333 crossws: 0.4.10(srvx@0.11.22)
@@ -11329,7 +11347,7 @@ snapshots:
11347 dotenv: 17.4.2
11348 jiti: 2.7.0
11349 rollup: 4.62.4
11332 - vite: 7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
11350 + vite: 7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
11351 transitivePeerDependencies:
11352 - '@azure/app-configuration'
11353 - '@azure/cosmos'
@@ -11653,7 +11671,7 @@ snapshots:
11671 '@protobufjs/path': 1.1.2
11672 '@protobufjs/pool': 1.1.0
11673 '@protobufjs/utf8': 1.1.2
11656 - '@types/node': 24.13.3
11674 + '@types/node': 26.1.2
11675 long: 5.3.2
11676
11677 proxy-addr@2.0.7:
@@ -12307,6 +12325,8 @@ snapshots:
12325
12326 undici-types@7.18.2: {}
12327
12328 + undici-types@8.3.0: {}
12329 +
12330 undici@6.28.0: {}
12331
12332 undici@7.29.0: {}
@@ -12394,7 +12414,7 @@ snapshots:
12414 '@types/unist': 3.0.3
12415 vfile-message: 4.0.3
12416
12397 - vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0):
12417 + vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0):
12418 dependencies:
12419 esbuild: 0.28.1
12420 fdir: 6.5.0(picomatch@4.0.5)
@@ -12403,16 +12423,16 @@ snapshots:
12423 rollup: 4.62.4
12424 tinyglobby: 0.2.17
12425 optionalDependencies:
12406 - '@types/node': 24.13.3
12426 + '@types/node': 26.1.2
12427 fsevents: 2.3.3
12428 jiti: 2.7.0
12429 tsx: 4.23.5
12430 yaml: 2.9.0
12431
12412 - vitest@4.1.10(@opentelemetry/api@1.9.0)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)):
12432 + vitest@4.1.10(@opentelemetry/api@1.9.0)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)):
12433 dependencies:
12434 '@vitest/expect': 4.1.10
12415 - '@vitest/mocker': 4.1.10(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
12435 + '@vitest/mocker': 4.1.10(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
12436 '@vitest/pretty-format': 4.1.10
12437 '@vitest/runner': 4.1.10
12438 '@vitest/snapshot': 4.1.10
@@ -12429,19 +12449,19 @@ snapshots:
12449 tinyexec: 1.2.4
12450 tinyglobby: 0.2.17
12451 tinyrainbow: 3.1.0
12432 - vite: 7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
12452 + vite: 7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
12453 why-is-node-running: 2.3.0
12454 optionalDependencies:
12455 '@opentelemetry/api': 1.9.0
12436 - '@types/node': 24.13.3
12456 + '@types/node': 26.1.2
12457 '@vitest/ui': 4.1.10(vitest@4.1.10)
12458 transitivePeerDependencies:
12459 - msw
12460
12441 - vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)):
12461 + vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@26.1.2)(@vitest/ui@4.1.10)(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)):
12462 dependencies:
12463 '@vitest/expect': 4.1.10
12444 - '@vitest/mocker': 4.1.10(vite@7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
12464 + '@vitest/mocker': 4.1.10(vite@7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0))
12465 '@vitest/pretty-format': 4.1.10
12466 '@vitest/runner': 4.1.10
12467 '@vitest/snapshot': 4.1.10
@@ -12458,11 +12478,11 @@ snapshots:
12478 tinyexec: 1.2.4
12479 tinyglobby: 0.2.17
12480 tinyrainbow: 3.1.0
12461 - vite: 7.3.5(@types/node@24.13.3)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
12481 + vite: 7.3.5(@types/node@26.1.2)(jiti@2.7.0)(tsx@4.23.5)(yaml@2.9.0)
12482 why-is-node-running: 2.3.0
12483 optionalDependencies:
12484 '@opentelemetry/api': 1.9.1
12465 - '@types/node': 24.13.3
12485 + '@types/node': 26.1.2
12486 '@vitest/ui': 4.1.10(vitest@4.1.10)
12487 transitivePeerDependencies:
12488 - msw
pnpm-workspace.yaml
-9
@@ -48,9 +48,6 @@ catalog:
48 '@mastra/core': 1.52.1
49 '@modelcontextprotocol/sdk': ^1.30.0
50 '@types/bun': ^1.3.14
51 - # Node 26 is not a safe target yet; every workspace package types against the
52 - # Node 24 line through this entry rather than pinning its own major.
53 - '@types/node': ^24.13.3
51 ai: ^7.0.51
52 dotenv: ^17.4.2
53 effect: ^3.22.1
@@ -105,12 +102,6 @@ peerDependencyRules:
102 zod: ^4.0.0
103
104 overrides:
108 - # Node 26 is not a safe target yet. The catalog entry covers every package
109 - # that declares `@types/node` itself; this override also pulls the transitive
110 - # copies onto the 24 line -- `@types/ws` and `@types/yauzl` depend on
111 - # `@types/node: *`, and vite/vitest peer-resolve to whatever that drags in,
112 - # so without it those packages still typecheck against 26.
113 - '@types/node': 'catalog:'
105 qs@<6.14.1: '>=6.14.1'
106 protobufjs: 7.6.5
107 # temporary: @zed-industries/claude-code-acp@0.16.2 (latest) exact-pins vulnerable 10.2.1; drop when it ships >=10.2.3
ts/examples/mastra/package.json
+1 -1
@@ -36,7 +36,7 @@
36 "devDependencies": {
37 "@cloudflare/workers-types": "catalog:",
38 "@types/bun": "catalog:",
39 - "@types/node": "catalog:",
39 + "@types/node": "^26.1.2",
40 "typescript": "catalog:",
41 "wrangler": "catalog:"
42 }
ts/examples/mcp/package.json
+1 -1
@@ -27,7 +27,7 @@
27 },
28 "devDependencies": {
29 "@types/bun": "catalog:",
30 - "@types/node": "catalog:",
30 + "@types/node": "^26.1.2",
31 "typescript": "catalog:"
32 }
33 }
ts/examples/tool-router/package.json
+1 -1
@@ -42,7 +42,7 @@
42 },
43 "devDependencies": {
44 "@types/bun": "catalog:",
45 - "@types/node": "catalog:",
45 + "@types/node": "^26.1.2",
46 "typescript": "catalog:"
47 }
48 }
ts/examples/vercel/package.json
+1 -1
@@ -27,7 +27,7 @@
27 },
28 "devDependencies": {
29 "@types/bun": "catalog:",
30 - "@types/node": "catalog:",
30 + "@types/node": "^26.1.2",
31 "typescript": "catalog:"
32 }
33 }
ts/packages/cli-keyring/package.json
+1 -1
@@ -48,7 +48,7 @@
48 "author": "Composio",
49 "license": "ISC",
50 "devDependencies": {
51 - "@types/node": "catalog:",
51 + "@types/node": "^26.1.2",
52 "bun-types": "^1.3.14",
53 "effect": "catalog:",
54 "tsdown": "catalog:",
ts/packages/cli-local-tools/package.json
+1 -1
@@ -41,7 +41,7 @@
41 "zod": "catalog:"
42 },
43 "devDependencies": {
44 - "@types/node": "catalog:",
44 + "@types/node": "^26.1.2",
45 "chrome-devtools-mcp": "1.6.0",
46 "tsdown": "catalog:",
47 "typescript": "catalog:",
ts/packages/cli/test/fixtures/corpus.ts
+14 -85
@@ -1,88 +1,17 @@
1 /**
2 - * Loader for the shared cross-SDK JSON Schema conversion corpus.
2 + * Re-export of the shared cross-SDK JSON Schema conversion corpus.
3 *
4 - * The corpus is a single logical fixture with one byte-identical copy per
5 - * language (`ts/packages/core/test/fixtures/json-schema-conversion/` and
6 - * `python/tests/fixtures/json-schema-conversion/`), following the same
7 - * convention as the webhook fixtures. Every consumer resolves its own copy
8 - * module-relatively — no working-directory or repository-root assumptions.
4 + * The corpus and its loader are owned by `@composio/core`
5 + * (`ts/packages/core/test/fixtures/json-schema-conversion/`) and mirrored
6 + * byte-identically for Python in `python/tests/fixtures/json-schema-conversion/`.
7 + * Consumers re-export rather than re-implement so the decoding rules and the
8 + * cross-language invariants have exactly one definition.
9 */
10 -import { readFileSync } from 'node:fs';
11 -import { fileURLToPath } from 'node:url';
12 -import * as z from 'zod';
13 -
14 -const CORPUS_PATH = '../../../core/test/fixtures/json-schema-conversion/object-cases.json';
15 -
16 -const JsonObject = z.record(z.string(), z.unknown());
17 -
18 -const LanguageExpectation = z.object({
19 - output: z.unknown().optional(),
20 - accepted: z.boolean().optional(),
21 -});
22 -
23 -const CorpusInstance = z.object({
24 - input: JsonObject,
25 - accepted: z.boolean(),
26 - zod: LanguageExpectation.optional(),
27 - effect: LanguageExpectation.optional(),
28 - python: LanguageExpectation.optional(),
29 - divergence: z.object({ reason: z.string().min(1) }).optional(),
30 -});
31 -
32 -const CorpusCase = z.object({
33 - id: z.string().min(1),
34 - description: z.string().optional(),
35 - divergesFromJsonSchema: z.string().optional(),
36 - schema: JsonObject,
37 - ingress: z.object({ accepted: z.boolean(), preserved: JsonObject }).optional(),
38 - instances: z.array(CorpusInstance).min(1),
39 -});
40 -
41 -const Corpus = z.object({ cases: z.array(CorpusCase).min(1) });
42 -
43 -export type CorpusInstance = z.infer<typeof CorpusInstance>;
44 -export type CorpusCase = z.infer<typeof CorpusCase>;
45 -export type CorpusLanguage = 'zod' | 'effect' | 'python';
46 -
47 -/**
48 - * Enforce the invariants that keep the corpus a shared contract rather than a
49 - * per-language wish list: ids are unique, and a language may only disagree about
50 - * acceptance when the instance declares why.
51 - */
52 -export const assertCorpusInvariants = (cases: ReadonlyArray<CorpusCase>): void => {
53 - const seen = new Set<string>();
54 - for (const testCase of cases) {
55 - if (seen.has(testCase.id)) {
56 - throw new Error(`Duplicate corpus case id: ${testCase.id}`);
57 - }
58 - seen.add(testCase.id);
59 -
60 - for (const [index, instance] of testCase.instances.entries()) {
61 - for (const language of ['zod', 'effect', 'python'] as const) {
62 - const override = instance[language]?.accepted;
63 - if (override !== undefined && override !== instance.accepted && !instance.divergence) {
64 - throw new Error(
65 - `Corpus case ${testCase.id} instance ${index} overrides ${language} acceptance without a divergence reason`
66 - );
67 - }
68 - }
69 - }
70 - }
71 -};
72 -
73 -let cached: ReadonlyArray<CorpusCase> | undefined;
74 -
75 -/** Decode the shared corpus and enforce its cross-language invariants. */
76 -export const loadObjectCases = (): ReadonlyArray<CorpusCase> => {
77 - if (!cached) {
78 - const raw = readFileSync(fileURLToPath(new URL(CORPUS_PATH, import.meta.url)), 'utf8');
79 - const { cases } = Corpus.parse(JSON.parse(raw));
80 - assertCorpusInvariants(cases);
81 - cached = cases;
82 - }
83 - return cached;
84 -};
85 -
86 -/** Acceptance for one language: the shared flag unless a declared divergence overrides it. */
87 -export const acceptedFor = (instance: CorpusInstance, language: CorpusLanguage): boolean =>
88 - instance[language]?.accepted ?? instance.accepted;
10 +export {
11 + acceptedFor,
12 + assertCorpusInvariants,
13 + loadObjectCases,
14 + type CorpusCase,
15 + type CorpusInstance,
16 + type CorpusLanguage,
17 +} from '../../../core/test/fixtures/json-schema-conversion/corpus';
ts/packages/core/test/fixtures/json-schema-conversion/corpus.ts
+2 -5
@@ -7,11 +7,9 @@
7 * convention as the webhook fixtures. Every consumer resolves its own copy
8 * module-relatively — no working-directory or repository-root assumptions.
9 */
10 -import { readFileSync } from 'node:fs';
11 -import { fileURLToPath } from 'node:url';
10 import * as z from 'zod';
11
14 -const CORPUS_PATH = './object-cases.json';
12 +import corpusDocument from './object-cases.json';
13
14 const JsonObject = z.record(z.string(), z.unknown());
15
@@ -75,8 +73,7 @@ let cached: ReadonlyArray<CorpusCase> | undefined;
73 /** Decode the shared corpus and enforce its cross-language invariants. */
74 export const loadObjectCases = (): ReadonlyArray<CorpusCase> => {
75 if (!cached) {
78 - const raw = readFileSync(fileURLToPath(new URL(CORPUS_PATH, import.meta.url)), 'utf8');
79 - const { cases } = Corpus.parse(JSON.parse(raw));
76 + const { cases } = Corpus.parse(corpusDocument);
77 assertCorpusInvariants(cases);
78 cached = cases;
79 }
ts/packages/json-schema-to-effect-schema/package.json
-1
@@ -35,7 +35,6 @@
35 },
36 "devDependencies": {
37 "@composio/json-schema-to-zod": "workspace:*",
38 - "@types/node": "catalog:",
38 "tsdown": "catalog:",
39 "typescript": "catalog:",
40 "vitest": "catalog:",
ts/packages/json-schema-to-effect-schema/test/fixtures/corpus.ts
+14 -85
@@ -1,88 +1,17 @@
1 /**
2 - * Loader for the shared cross-SDK JSON Schema conversion corpus.
2 + * Re-export of the shared cross-SDK JSON Schema conversion corpus.
3 *
4 - * The corpus is a single logical fixture with one byte-identical copy per
5 - * language (`ts/packages/core/test/fixtures/json-schema-conversion/` and
6 - * `python/tests/fixtures/json-schema-conversion/`), following the same
7 - * convention as the webhook fixtures. Every consumer resolves its own copy
8 - * module-relatively — no working-directory or repository-root assumptions.
4 + * The corpus and its loader are owned by `@composio/core`
5 + * (`ts/packages/core/test/fixtures/json-schema-conversion/`) and mirrored
6 + * byte-identically for Python in `python/tests/fixtures/json-schema-conversion/`.
7 + * Consumers re-export rather than re-implement so the decoding rules and the
8 + * cross-language invariants have exactly one definition.
9 */
10 -import { readFileSync } from 'node:fs';
11 -import { fileURLToPath } from 'node:url';
12 -import * as z from 'zod';
13 -
14 -const CORPUS_PATH = '../../../core/test/fixtures/json-schema-conversion/object-cases.json';
15 -
16 -const JsonObject = z.record(z.string(), z.unknown());
17 -
18 -const LanguageExpectation = z.object({
19 - output: z.unknown().optional(),
20 - accepted: z.boolean().optional(),
21 -});
22 -
23 -const CorpusInstance = z.object({
24 - input: JsonObject,
25 - accepted: z.boolean(),
26 - zod: LanguageExpectation.optional(),
27 - effect: LanguageExpectation.optional(),
28 - python: LanguageExpectation.optional(),
29 - divergence: z.object({ reason: z.string().min(1) }).optional(),
30 -});
31 -
32 -const CorpusCase = z.object({
33 - id: z.string().min(1),
34 - description: z.string().optional(),
35 - divergesFromJsonSchema: z.string().optional(),
36 - schema: JsonObject,
37 - ingress: z.object({ accepted: z.boolean(), preserved: JsonObject }).optional(),
38 - instances: z.array(CorpusInstance).min(1),
39 -});
40 -
41 -const Corpus = z.object({ cases: z.array(CorpusCase).min(1) });
42 -
43 -export type CorpusInstance = z.infer<typeof CorpusInstance>;
44 -export type CorpusCase = z.infer<typeof CorpusCase>;
45 -export type CorpusLanguage = 'zod' | 'effect' | 'python';
46 -
47 -/**
48 - * Enforce the invariants that keep the corpus a shared contract rather than a
49 - * per-language wish list: ids are unique, and a language may only disagree about
50 - * acceptance when the instance declares why.
51 - */
52 -export const assertCorpusInvariants = (cases: ReadonlyArray<CorpusCase>): void => {
53 - const seen = new Set<string>();
54 - for (const testCase of cases) {
55 - if (seen.has(testCase.id)) {
56 - throw new Error(`Duplicate corpus case id: ${testCase.id}`);
57 - }
58 - seen.add(testCase.id);
59 -
60 - for (const [index, instance] of testCase.instances.entries()) {
61 - for (const language of ['zod', 'effect', 'python'] as const) {
62 - const override = instance[language]?.accepted;
63 - if (override !== undefined && override !== instance.accepted && !instance.divergence) {
64 - throw new Error(
65 - `Corpus case ${testCase.id} instance ${index} overrides ${language} acceptance without a divergence reason`
66 - );
67 - }
68 - }
69 - }
70 - }
71 -};
72 -
73 -let cached: ReadonlyArray<CorpusCase> | undefined;
74 -
75 -/** Decode the shared corpus and enforce its cross-language invariants. */
76 -export const loadObjectCases = (): ReadonlyArray<CorpusCase> => {
77 - if (!cached) {
78 - const raw = readFileSync(fileURLToPath(new URL(CORPUS_PATH, import.meta.url)), 'utf8');
79 - const { cases } = Corpus.parse(JSON.parse(raw));
80 - assertCorpusInvariants(cases);
81 - cached = cases;
82 - }
83 - return cached;
84 -};
85 -
86 -/** Acceptance for one language: the shared flag unless a declared divergence overrides it. */
87 -export const acceptedFor = (instance: CorpusInstance, language: CorpusLanguage): boolean =>
88 - instance[language]?.accepted ?? instance.accepted;
10 +export {
11 + acceptedFor,
12 + assertCorpusInvariants,
13 + loadObjectCases,
14 + type CorpusCase,
15 + type CorpusInstance,
16 + type CorpusLanguage,
17 +} from '../../../core/test/fixtures/json-schema-conversion/corpus';
ts/packages/json-schema-to-effect-schema/tsconfig.test.json
+2 -3
@@ -2,9 +2,8 @@
2 "$schema": "https://json.schemastore.org/tsconfig",
3 "extends": "./tsconfig.options.json",
4 "compilerOptions": {
5 - "rootDir": ".",
6 - // the corpus loader reads its fixture copy with `node:fs`
7 - "types": ["node"]
5 + // widened so the shared corpus loader, owned by `@composio/core`, is in range
6 + "rootDir": "../.."
7 },
8 "include": ["src/**/*", "test/**/*", "package.json"],
9 "exclude": ["node_modules", "../../../node_modules", "**/dist"]
ts/packages/json-schema-to-zod/package.json
+1 -1
@@ -44,7 +44,7 @@
44 "license": "ISC",
45 "devDependencies": {
46 "@types/json-schema": "^7.0.15",
47 - "@types/node": "catalog:",
47 + "@types/node": "^26.1.2",
48 "tsdown": "catalog:",
49 "typescript": "catalog:",
50 "vitest": "catalog:",
ts/packages/json-schema-to-zod/test/fixtures/corpus.ts
+14 -85
@@ -1,88 +1,17 @@
1 /**
2 - * Loader for the shared cross-SDK JSON Schema conversion corpus.
2 + * Re-export of the shared cross-SDK JSON Schema conversion corpus.
3 *
4 - * The corpus is a single logical fixture with one byte-identical copy per
5 - * language (`ts/packages/core/test/fixtures/json-schema-conversion/` and
6 - * `python/tests/fixtures/json-schema-conversion/`), following the same
7 - * convention as the webhook fixtures. Every consumer resolves its own copy
8 - * module-relatively — no working-directory or repository-root assumptions.
4 + * The corpus and its loader are owned by `@composio/core`
5 + * (`ts/packages/core/test/fixtures/json-schema-conversion/`) and mirrored
6 + * byte-identically for Python in `python/tests/fixtures/json-schema-conversion/`.
7 + * Consumers re-export rather than re-implement so the decoding rules and
8 + * cross-language invariants have exactly one definition.
9 */
10 -import { readFileSync } from 'node:fs';
11 -import { fileURLToPath } from 'node:url';
12 -import * as z from 'zod';
13 -
14 -const CORPUS_PATH = '../../../core/test/fixtures/json-schema-conversion/object-cases.json';
15 -
16 -const JsonObject = z.record(z.string(), z.unknown());
17 -
18 -const LanguageExpectation = z.object({
19 - output: z.unknown().optional(),
20 - accepted: z.boolean().optional(),
21 -});
22 -
23 -const CorpusInstance = z.object({
24 - input: JsonObject,
25 - accepted: z.boolean(),
26 - zod: LanguageExpectation.optional(),
27 - effect: LanguageExpectation.optional(),
28 - python: LanguageExpectation.optional(),
29 - divergence: z.object({ reason: z.string().min(1) }).optional(),
30 -});
31 -
32 -const CorpusCase = z.object({
33 - id: z.string().min(1),
34 - description: z.string().optional(),
35 - divergesFromJsonSchema: z.string().optional(),
36 - schema: JsonObject,
37 - ingress: z.object({ accepted: z.boolean(), preserved: JsonObject }).optional(),
38 - instances: z.array(CorpusInstance).min(1),
39 -});
40 -
41 -const Corpus = z.object({ cases: z.array(CorpusCase).min(1) });
42 -
43 -export type CorpusInstance = z.infer<typeof CorpusInstance>;
44 -export type CorpusCase = z.infer<typeof CorpusCase>;
45 -export type CorpusLanguage = 'zod' | 'effect' | 'python';
46 -
47 -/**
48 - * Enforce the invariants that keep the corpus a shared contract rather than a
49 - * per-language wish list: ids are unique, and a language may only disagree about
50 - * acceptance when the instance declares why.
51 - */
52 -export const assertCorpusInvariants = (cases: ReadonlyArray<CorpusCase>): void => {
53 - const seen = new Set<string>();
54 - for (const testCase of cases) {
55 - if (seen.has(testCase.id)) {
56 - throw new Error(`Duplicate corpus case id: ${testCase.id}`);
57 - }
58 - seen.add(testCase.id);
59 -
60 - for (const [index, instance] of testCase.instances.entries()) {
61 - for (const language of ['zod', 'effect', 'python'] as const) {
62 - const override = instance[language]?.accepted;
63 - if (override !== undefined && override !== instance.accepted && !instance.divergence) {
64 - throw new Error(
65 - `Corpus case ${testCase.id} instance ${index} overrides ${language} acceptance without a divergence reason`
66 - );
67 - }
68 - }
69 - }
70 - }
71 -};
72 -
73 -let cached: ReadonlyArray<CorpusCase> | undefined;
74 -
75 -/** Decode the shared corpus and enforce its cross-language invariants. */
76 -export const loadObjectCases = (): ReadonlyArray<CorpusCase> => {
77 - if (!cached) {
78 - const raw = readFileSync(fileURLToPath(new URL(CORPUS_PATH, import.meta.url)), 'utf8');
79 - const { cases } = Corpus.parse(JSON.parse(raw));
80 - assertCorpusInvariants(cases);
81 - cached = cases;
82 - }
83 - return cached;
84 -};
85 -
86 -/** Acceptance for one language: the shared flag unless a declared divergence overrides it. */
87 -export const acceptedFor = (instance: CorpusInstance, language: CorpusLanguage): boolean =>
88 - instance[language]?.accepted ?? instance.accepted;
10 +export {
11 + acceptedFor,
12 + assertCorpusInvariants,
13 + loadObjectCases,
14 + type CorpusCase,
15 + type CorpusInstance,
16 + type CorpusLanguage,
17 +} from '../../../core/test/fixtures/json-schema-conversion/corpus';
ts/packages/json-schema-to-zod/tsconfig.test.json
+2 -3
@@ -2,9 +2,8 @@
2 "$schema": "https://json.schemastore.org/tsconfig",
3 "extends": "./tsconfig.options.json",
4 "compilerOptions": {
5 - "rootDir": ".",
6 - // the corpus loader reads its fixture copy with `node:fs`
7 - "types": ["node"]
5 + // widened so the shared corpus loader, owned by `@composio/core`, is in range
6 + "rootDir": "../.."
7 },
8 "include": ["src/**/*", "test/**/*", "package.json"],
9 "exclude": ["node_modules", "../../../node_modules", "**/dist", "test/e2e", "test-sandboxes"]
turbo.jsonc
+4 -7
@@ -25,13 +25,10 @@
25 },
26 "test": {
27 "dependsOn": ["^build"],
28 - // the shared cross-SDK JSON Schema conversion corpus is owned by
29 - // `@composio/core` but read by the Zod, Effect, and CLI test suites, whose
30 - // $TURBO_DEFAULT$ inputs stop at their own package directory
31 - "inputs": [
32 - "$TURBO_DEFAULT$",
33 - "../core/test/fixtures/json-schema-conversion/object-cases.json"
34 - ]
28 + // the shared cross-SDK JSON Schema conversion corpus and its loader are
29 + // owned by `@composio/core` but imported by the Zod, Effect, and CLI test
30 + // suites, whose $TURBO_DEFAULT$ inputs stop at their own package directory
31 + "inputs": ["$TURBO_DEFAULT$", "../core/test/fixtures/json-schema-conversion/*"]
32 },
33 "test:e2e": {
34 "dependsOn": ["^build"],