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>
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| const isWin = process.platform === 'win32';
 | |
| 
 | |
| function notFoundError(original, syscall) {
 | |
|     return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
 | |
|         code: 'ENOENT',
 | |
|         errno: 'ENOENT',
 | |
|         syscall: `${syscall} ${original.command}`,
 | |
|         path: original.command,
 | |
|         spawnargs: original.args,
 | |
|     });
 | |
| }
 | |
| 
 | |
| function hookChildProcess(cp, parsed) {
 | |
|     if (!isWin) {
 | |
|         return;
 | |
|     }
 | |
| 
 | |
|     const originalEmit = cp.emit;
 | |
| 
 | |
|     cp.emit = function (name, arg1) {
 | |
|         // If emitting "exit" event and exit code is 1, we need to check if
 | |
|         // the command exists and emit an "error" instead
 | |
|         // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
 | |
|         if (name === 'exit') {
 | |
|             const err = verifyENOENT(arg1, parsed);
 | |
| 
 | |
|             if (err) {
 | |
|                 return originalEmit.call(cp, 'error', err);
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
 | |
|     };
 | |
| }
 | |
| 
 | |
| function verifyENOENT(status, parsed) {
 | |
|     if (isWin && status === 1 && !parsed.file) {
 | |
|         return notFoundError(parsed.original, 'spawn');
 | |
|     }
 | |
| 
 | |
|     return null;
 | |
| }
 | |
| 
 | |
| function verifyENOENTSync(status, parsed) {
 | |
|     if (isWin && status === 1 && !parsed.file) {
 | |
|         return notFoundError(parsed.original, 'spawnSync');
 | |
|     }
 | |
| 
 | |
|     return null;
 | |
| }
 | |
| 
 | |
| module.exports = {
 | |
|     hookChildProcess,
 | |
|     verifyENOENT,
 | |
|     verifyENOENTSync,
 | |
|     notFoundError,
 | |
| };
 |