 85bf1341f3
			
		
	
	85bf1341f3
	
	
	
		
			
			Frontend Enhancements: - Complete React TypeScript frontend with modern UI components - Distributed workflows management interface with real-time updates - Socket.IO integration for live agent status monitoring - Agent management dashboard with cluster visualization - Project management interface with metrics and task tracking - Responsive design with proper error handling and loading states Backend Infrastructure: - Distributed coordinator for multi-agent workflow orchestration - Cluster management API with comprehensive agent operations - Enhanced database models for agents and projects - Project service for filesystem-based project discovery - Performance monitoring and metrics collection - Comprehensive API documentation and error handling Documentation: - Complete distributed development guide (README_DISTRIBUTED.md) - Comprehensive development report with architecture insights - System configuration templates and deployment guides The platform now provides a complete web interface for managing the distributed AI cluster with real-time monitoring, workflow orchestration, and agent coordination capabilities. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			77 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			77 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| var __importDefault = (this && this.__importDefault) || function (mod) {
 | |
|     return (mod && mod.__esModule) ? mod : { "default": mod };
 | |
| };
 | |
| Object.defineProperty(exports, "__esModule", { value: true });
 | |
| exports.WebTransport = exports.WebSocket = exports.NodeWebSocket = exports.XHR = exports.NodeXHR = exports.Fetch = exports.Socket = exports.Manager = exports.protocol = void 0;
 | |
| exports.io = lookup;
 | |
| exports.connect = lookup;
 | |
| exports.default = lookup;
 | |
| const url_js_1 = require("./url.js");
 | |
| const manager_js_1 = require("./manager.js");
 | |
| Object.defineProperty(exports, "Manager", { enumerable: true, get: function () { return manager_js_1.Manager; } });
 | |
| const socket_js_1 = require("./socket.js");
 | |
| Object.defineProperty(exports, "Socket", { enumerable: true, get: function () { return socket_js_1.Socket; } });
 | |
| const debug_1 = __importDefault(require("debug")); // debug()
 | |
| const debug = (0, debug_1.default)("socket.io-client"); // debug()
 | |
| /**
 | |
|  * Managers cache.
 | |
|  */
 | |
| const cache = {};
 | |
| function lookup(uri, opts) {
 | |
|     if (typeof uri === "object") {
 | |
|         opts = uri;
 | |
|         uri = undefined;
 | |
|     }
 | |
|     opts = opts || {};
 | |
|     const parsed = (0, url_js_1.url)(uri, opts.path || "/socket.io");
 | |
|     const source = parsed.source;
 | |
|     const id = parsed.id;
 | |
|     const path = parsed.path;
 | |
|     const sameNamespace = cache[id] && path in cache[id]["nsps"];
 | |
|     const newConnection = opts.forceNew ||
 | |
|         opts["force new connection"] ||
 | |
|         false === opts.multiplex ||
 | |
|         sameNamespace;
 | |
|     let io;
 | |
|     if (newConnection) {
 | |
|         debug("ignoring socket cache for %s", source);
 | |
|         io = new manager_js_1.Manager(source, opts);
 | |
|     }
 | |
|     else {
 | |
|         if (!cache[id]) {
 | |
|             debug("new io instance for %s", source);
 | |
|             cache[id] = new manager_js_1.Manager(source, opts);
 | |
|         }
 | |
|         io = cache[id];
 | |
|     }
 | |
|     if (parsed.query && !opts.query) {
 | |
|         opts.query = parsed.queryKey;
 | |
|     }
 | |
|     return io.socket(parsed.path, opts);
 | |
| }
 | |
| // so that "lookup" can be used both as a function (e.g. `io(...)`) and as a
 | |
| // namespace (e.g. `io.connect(...)`), for backward compatibility
 | |
| Object.assign(lookup, {
 | |
|     Manager: manager_js_1.Manager,
 | |
|     Socket: socket_js_1.Socket,
 | |
|     io: lookup,
 | |
|     connect: lookup,
 | |
| });
 | |
| /**
 | |
|  * Protocol version.
 | |
|  *
 | |
|  * @public
 | |
|  */
 | |
| var socket_io_parser_1 = require("socket.io-parser");
 | |
| Object.defineProperty(exports, "protocol", { enumerable: true, get: function () { return socket_io_parser_1.protocol; } });
 | |
| var engine_io_client_1 = require("engine.io-client");
 | |
| Object.defineProperty(exports, "Fetch", { enumerable: true, get: function () { return engine_io_client_1.Fetch; } });
 | |
| Object.defineProperty(exports, "NodeXHR", { enumerable: true, get: function () { return engine_io_client_1.NodeXHR; } });
 | |
| Object.defineProperty(exports, "XHR", { enumerable: true, get: function () { return engine_io_client_1.XHR; } });
 | |
| Object.defineProperty(exports, "NodeWebSocket", { enumerable: true, get: function () { return engine_io_client_1.NodeWebSocket; } });
 | |
| Object.defineProperty(exports, "WebSocket", { enumerable: true, get: function () { return engine_io_client_1.WebSocket; } });
 | |
| Object.defineProperty(exports, "WebTransport", { enumerable: true, get: function () { return engine_io_client_1.WebTransport; } });
 | |
| 
 | |
| module.exports = lookup;
 |