 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>
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { addPointerEvent } from '../events/add-pointer-event.mjs';
 | |
| import { pipe } from '../utils/pipe.mjs';
 | |
| import { isDragActive } from './drag/utils/lock.mjs';
 | |
| import { Feature } from '../motion/features/Feature.mjs';
 | |
| import { frame } from '../frameloop/frame.mjs';
 | |
| 
 | |
| function addHoverEvent(node, isActive) {
 | |
|     const eventName = "pointer" + (isActive ? "enter" : "leave");
 | |
|     const callbackName = "onHover" + (isActive ? "Start" : "End");
 | |
|     const handleEvent = (event, info) => {
 | |
|         if (event.pointerType === "touch" || isDragActive())
 | |
|             return;
 | |
|         const props = node.getProps();
 | |
|         if (node.animationState && props.whileHover) {
 | |
|             node.animationState.setActive("whileHover", isActive);
 | |
|         }
 | |
|         if (props[callbackName]) {
 | |
|             frame.update(() => props[callbackName](event, info));
 | |
|         }
 | |
|     };
 | |
|     return addPointerEvent(node.current, eventName, handleEvent, {
 | |
|         passive: !node.getProps()[callbackName],
 | |
|     });
 | |
| }
 | |
| class HoverGesture extends Feature {
 | |
|     mount() {
 | |
|         this.unmount = pipe(addHoverEvent(this.node, true), addHoverEvent(this.node, false));
 | |
|     }
 | |
|     unmount() { }
 | |
| }
 | |
| 
 | |
| export { HoverGesture };
 |