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>
25 lines
603 B
JavaScript
25 lines
603 B
JavaScript
import {sin, cos, sqrt, pi, tau} from "../math.js";
|
|
|
|
const ka = 0.89081309152928522810;
|
|
const kr = sin(pi / 10) / sin(7 * pi / 10);
|
|
const kx = sin(tau / 10) * kr;
|
|
const ky = -cos(tau / 10) * kr;
|
|
|
|
export default {
|
|
draw(context, size) {
|
|
const r = sqrt(size * ka);
|
|
const x = kx * r;
|
|
const y = ky * r;
|
|
context.moveTo(0, -r);
|
|
context.lineTo(x, y);
|
|
for (let i = 1; i < 5; ++i) {
|
|
const a = tau * i / 5;
|
|
const c = cos(a);
|
|
const s = sin(a);
|
|
context.lineTo(s * r, -c * r);
|
|
context.lineTo(c * x - s * y, s * x + c * y);
|
|
}
|
|
context.closePath();
|
|
}
|
|
};
|