@devries-cameron20 / composio Mirror · read-only
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, 06:00 UTC

next
ts 23 lines 891 Bytes
Raw
1 type ZodVersion = {
2 readonly major: number;
3 readonly minor: number;
4 readonly patch: number;
5 };
6
7 /**
8 * The first zod release whose `zod/v4` shares its metadata registry through
9 * `globalThis.__zod_globalRegistry`. Below it, two copies of zod in one
10 * process keep separate registries, and the descriptions and annotations the
11 * v4 builder writes are invisible to a serializer loaded from the other copy.
12 */
13 export const ZOD_V4_FLOOR: ZodVersion = { major: 4, minor: 1, patch: 13 };
14
15 export const formatZodVersion = (version: ZodVersion): string =>
16 `${version.major}.${version.minor}.${version.patch}`;
17
18 export const meetsZodV4Floor = (version: ZodVersion): boolean =>
19 version.major !== ZOD_V4_FLOOR.major
20 ? version.major > ZOD_V4_FLOOR.major
21 : version.minor !== ZOD_V4_FLOOR.minor
22 ? version.minor > ZOD_V4_FLOOR.minor
23 : version.patch >= ZOD_V4_FLOOR.patch;