@flutchai/flutch-sdk 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5355,7 +5355,11 @@ var McpConverter = class _McpConverter {
5355
5355
  let zodProp;
5356
5356
  switch (prop.type) {
5357
5357
  case "string":
5358
- zodProp = zod.z.string();
5358
+ if (prop.enum && Array.isArray(prop.enum) && prop.enum.length > 0) {
5359
+ zodProp = zod.z.enum(prop.enum);
5360
+ } else {
5361
+ zodProp = zod.z.string();
5362
+ }
5359
5363
  break;
5360
5364
  case "number":
5361
5365
  zodProp = zod.z.number();