Initial commit: Complete Hive distributed AI orchestration platform
This comprehensive implementation includes: - FastAPI backend with MCP server integration - React/TypeScript frontend with Vite - PostgreSQL database with Redis caching - Grafana/Prometheus monitoring stack - Docker Compose orchestration - Full MCP protocol support for Claude Code integration Features: - Agent discovery and management across network - Visual workflow editor and execution engine - Real-time task coordination and monitoring - Multi-model support with specialized agents - Distributed development task allocation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		
							
								
								
									
										72
									
								
								mcp-server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								mcp-server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| import { parseDef } from "../parseDef.js"; | ||||
| export function parseObjectDef(def, refs) { | ||||
|     const forceOptionalIntoNullable = refs.target === "openAi"; | ||||
|     const result = { | ||||
|         type: "object", | ||||
|         properties: {}, | ||||
|     }; | ||||
|     const required = []; | ||||
|     const shape = def.shape(); | ||||
|     for (const propName in shape) { | ||||
|         let propDef = shape[propName]; | ||||
|         if (propDef === undefined || propDef._def === undefined) { | ||||
|             continue; | ||||
|         } | ||||
|         let propOptional = safeIsOptional(propDef); | ||||
|         if (propOptional && forceOptionalIntoNullable) { | ||||
|             if (propDef._def.typeName === "ZodOptional") { | ||||
|                 propDef = propDef._def.innerType; | ||||
|             } | ||||
|             if (!propDef.isNullable()) { | ||||
|                 propDef = propDef.nullable(); | ||||
|             } | ||||
|             propOptional = false; | ||||
|         } | ||||
|         const parsedDef = parseDef(propDef._def, { | ||||
|             ...refs, | ||||
|             currentPath: [...refs.currentPath, "properties", propName], | ||||
|             propertyPath: [...refs.currentPath, "properties", propName], | ||||
|         }); | ||||
|         if (parsedDef === undefined) { | ||||
|             continue; | ||||
|         } | ||||
|         result.properties[propName] = parsedDef; | ||||
|         if (!propOptional) { | ||||
|             required.push(propName); | ||||
|         } | ||||
|     } | ||||
|     if (required.length) { | ||||
|         result.required = required; | ||||
|     } | ||||
|     const additionalProperties = decideAdditionalProperties(def, refs); | ||||
|     if (additionalProperties !== undefined) { | ||||
|         result.additionalProperties = additionalProperties; | ||||
|     } | ||||
|     return result; | ||||
| } | ||||
| function decideAdditionalProperties(def, refs) { | ||||
|     if (def.catchall._def.typeName !== "ZodNever") { | ||||
|         return parseDef(def.catchall._def, { | ||||
|             ...refs, | ||||
|             currentPath: [...refs.currentPath, "additionalProperties"], | ||||
|         }); | ||||
|     } | ||||
|     switch (def.unknownKeys) { | ||||
|         case "passthrough": | ||||
|             return refs.allowedAdditionalProperties; | ||||
|         case "strict": | ||||
|             return refs.rejectedAdditionalProperties; | ||||
|         case "strip": | ||||
|             return refs.removeAdditionalStrategy === "strict" | ||||
|                 ? refs.allowedAdditionalProperties | ||||
|                 : refs.rejectedAdditionalProperties; | ||||
|     } | ||||
| } | ||||
| function safeIsOptional(schema) { | ||||
|     try { | ||||
|         return schema.isOptional(); | ||||
|     } | ||||
|     catch { | ||||
|         return true; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 anthonyrawlins
					anthonyrawlins