 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>
		
			
				
	
	
		
			68 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| var SetCache = require('./_SetCache'),
 | |
|     arrayIncludes = require('./_arrayIncludes'),
 | |
|     arrayIncludesWith = require('./_arrayIncludesWith'),
 | |
|     arrayMap = require('./_arrayMap'),
 | |
|     baseUnary = require('./_baseUnary'),
 | |
|     cacheHas = require('./_cacheHas');
 | |
| 
 | |
| /** Used as the size to enable large array optimizations. */
 | |
| var LARGE_ARRAY_SIZE = 200;
 | |
| 
 | |
| /**
 | |
|  * The base implementation of methods like `_.difference` without support
 | |
|  * for excluding multiple arrays or iteratee shorthands.
 | |
|  *
 | |
|  * @private
 | |
|  * @param {Array} array The array to inspect.
 | |
|  * @param {Array} values The values to exclude.
 | |
|  * @param {Function} [iteratee] The iteratee invoked per element.
 | |
|  * @param {Function} [comparator] The comparator invoked per element.
 | |
|  * @returns {Array} Returns the new array of filtered values.
 | |
|  */
 | |
| function baseDifference(array, values, iteratee, comparator) {
 | |
|   var index = -1,
 | |
|       includes = arrayIncludes,
 | |
|       isCommon = true,
 | |
|       length = array.length,
 | |
|       result = [],
 | |
|       valuesLength = values.length;
 | |
| 
 | |
|   if (!length) {
 | |
|     return result;
 | |
|   }
 | |
|   if (iteratee) {
 | |
|     values = arrayMap(values, baseUnary(iteratee));
 | |
|   }
 | |
|   if (comparator) {
 | |
|     includes = arrayIncludesWith;
 | |
|     isCommon = false;
 | |
|   }
 | |
|   else if (values.length >= LARGE_ARRAY_SIZE) {
 | |
|     includes = cacheHas;
 | |
|     isCommon = false;
 | |
|     values = new SetCache(values);
 | |
|   }
 | |
|   outer:
 | |
|   while (++index < length) {
 | |
|     var value = array[index],
 | |
|         computed = iteratee == null ? value : iteratee(value);
 | |
| 
 | |
|     value = (comparator || value !== 0) ? value : 0;
 | |
|     if (isCommon && computed === computed) {
 | |
|       var valuesIndex = valuesLength;
 | |
|       while (valuesIndex--) {
 | |
|         if (values[valuesIndex] === computed) {
 | |
|           continue outer;
 | |
|         }
 | |
|       }
 | |
|       result.push(value);
 | |
|     }
 | |
|     else if (!includes(values, computed, comparator)) {
 | |
|       result.push(value);
 | |
|     }
 | |
|   }
 | |
|   return result;
 | |
| }
 | |
| 
 | |
| module.exports = baseDifference;
 |