 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>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { getOrigin, checkTargetForNewValues } from '../utils/setters.mjs';
 | |
| import { parseDomVariant } from './utils/parse-dom-variant.mjs';
 | |
| import { VisualElement } from '../VisualElement.mjs';
 | |
| 
 | |
| class DOMVisualElement extends VisualElement {
 | |
|     sortInstanceNodePosition(a, b) {
 | |
|         /**
 | |
|          * compareDocumentPosition returns a bitmask, by using the bitwise &
 | |
|          * we're returning true if 2 in that bitmask is set to true. 2 is set
 | |
|          * to true if b preceeds a.
 | |
|          */
 | |
|         return a.compareDocumentPosition(b) & 2 ? 1 : -1;
 | |
|     }
 | |
|     getBaseTargetFromProps(props, key) {
 | |
|         return props.style ? props.style[key] : undefined;
 | |
|     }
 | |
|     removeValueFromRenderState(key, { vars, style }) {
 | |
|         delete vars[key];
 | |
|         delete style[key];
 | |
|     }
 | |
|     makeTargetAnimatableFromInstance({ transition, transitionEnd, ...target }, { transformValues }, isMounted) {
 | |
|         let origin = getOrigin(target, transition || {}, this);
 | |
|         /**
 | |
|          * If Framer has provided a function to convert `Color` etc value types, convert them
 | |
|          */
 | |
|         if (transformValues) {
 | |
|             if (transitionEnd)
 | |
|                 transitionEnd = transformValues(transitionEnd);
 | |
|             if (target)
 | |
|                 target = transformValues(target);
 | |
|             if (origin)
 | |
|                 origin = transformValues(origin);
 | |
|         }
 | |
|         if (isMounted) {
 | |
|             checkTargetForNewValues(this, target, origin);
 | |
|             const parsed = parseDomVariant(this, target, origin, transitionEnd);
 | |
|             transitionEnd = parsed.transitionEnd;
 | |
|             target = parsed.target;
 | |
|         }
 | |
|         return {
 | |
|             transition,
 | |
|             transitionEnd,
 | |
|             ...target,
 | |
|         };
 | |
|     }
 | |
| }
 | |
| 
 | |
| export { DOMVisualElement };
 |