 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>
		
			
				
	
	
		
			183 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			183 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Days in 1 week.
 | |
|  *
 | |
|  * @name daysInWeek
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var daysInWeek = 7;
 | |
| 
 | |
| /**
 | |
|  * Days in 1 year
 | |
|  * One years equals 365.2425 days according to the formula:
 | |
|  *
 | |
|  * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400.
 | |
|  * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
 | |
|  *
 | |
|  * @name daysInYear
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var daysInYear = 365.2425;
 | |
| 
 | |
| /**
 | |
|  * Maximum allowed time.
 | |
|  *
 | |
|  * @name maxTime
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
 | |
| 
 | |
| /**
 | |
|  * Milliseconds in 1 minute
 | |
|  *
 | |
|  * @name millisecondsInMinute
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var millisecondsInMinute = 60000;
 | |
| 
 | |
| /**
 | |
|  * Milliseconds in 1 hour
 | |
|  *
 | |
|  * @name millisecondsInHour
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var millisecondsInHour = 3600000;
 | |
| 
 | |
| /**
 | |
|  * Milliseconds in 1 second
 | |
|  *
 | |
|  * @name millisecondsInSecond
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var millisecondsInSecond = 1000;
 | |
| 
 | |
| /**
 | |
|  * Minimum allowed time.
 | |
|  *
 | |
|  * @name minTime
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var minTime = -maxTime;
 | |
| 
 | |
| /**
 | |
|  * Minutes in 1 hour
 | |
|  *
 | |
|  * @name minutesInHour
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var minutesInHour = 60;
 | |
| 
 | |
| /**
 | |
|  * Months in 1 quarter
 | |
|  *
 | |
|  * @name monthsInQuarter
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var monthsInQuarter = 3;
 | |
| 
 | |
| /**
 | |
|  * Months in 1 year
 | |
|  *
 | |
|  * @name monthsInYear
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var monthsInYear = 12;
 | |
| 
 | |
| /**
 | |
|  * Quarters in 1 year
 | |
|  *
 | |
|  * @name quartersInYear
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var quartersInYear = 4;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 hour
 | |
|  *
 | |
|  * @name secondsInHour
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInHour = 3600;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 minute
 | |
|  *
 | |
|  * @name secondsInMinute
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInMinute = 60;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 day
 | |
|  *
 | |
|  * @name secondsInDay
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInDay = secondsInHour * 24;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 week
 | |
|  *
 | |
|  * @name secondsInWeek
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInWeek = secondsInDay * 7;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 year
 | |
|  *
 | |
|  * @name secondsInYear
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInYear = secondsInDay * daysInYear;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 month
 | |
|  *
 | |
|  * @name secondsInMonth
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInMonth = secondsInYear / 12;
 | |
| 
 | |
| /**
 | |
|  * Seconds in 1 quarter
 | |
|  *
 | |
|  * @name secondsInQuarter
 | |
|  * @constant
 | |
|  * @type {number}
 | |
|  * @default
 | |
|  */
 | |
| export var secondsInQuarter = secondsInMonth * 3; |