 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>
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
 | |
| 
 | |
| exports.__esModule = true;
 | |
| exports.request = exports.cancel = void 0;
 | |
| 
 | |
| var _canUseDOM = _interopRequireDefault(require("./canUseDOM"));
 | |
| 
 | |
| /* https://github.com/component/raf */
 | |
| var prev = new Date().getTime();
 | |
| 
 | |
| function fallback(fn) {
 | |
|   var curr = new Date().getTime();
 | |
|   var ms = Math.max(0, 16 - (curr - prev));
 | |
|   var handle = setTimeout(fn, ms);
 | |
|   prev = curr;
 | |
|   return handle;
 | |
| }
 | |
| 
 | |
| var vendors = ['', 'webkit', 'moz', 'o', 'ms'];
 | |
| var cancelMethod = 'clearTimeout';
 | |
| var rafImpl = fallback; // eslint-disable-next-line import/no-mutable-exports
 | |
| 
 | |
| var getKey = function getKey(vendor, k) {
 | |
|   return vendor + (!vendor ? k : k[0].toUpperCase() + k.substr(1)) + "AnimationFrame";
 | |
| };
 | |
| 
 | |
| if (_canUseDOM.default) {
 | |
|   vendors.some(function (vendor) {
 | |
|     var rafMethod = getKey(vendor, 'request');
 | |
| 
 | |
|     if (rafMethod in window) {
 | |
|       cancelMethod = getKey(vendor, 'cancel'); // @ts-ignore
 | |
| 
 | |
|       rafImpl = function rafImpl(cb) {
 | |
|         return window[rafMethod](cb);
 | |
|       };
 | |
|     }
 | |
| 
 | |
|     return !!rafImpl;
 | |
|   });
 | |
| }
 | |
| 
 | |
| var cancel = function cancel(id) {
 | |
|   // @ts-ignore
 | |
|   if (typeof window[cancelMethod] === 'function') window[cancelMethod](id);
 | |
| };
 | |
| 
 | |
| exports.cancel = cancel;
 | |
| var request = rafImpl;
 | |
| exports.request = request; |