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>
60 lines
2.7 KiB
JavaScript
60 lines
2.7 KiB
JavaScript
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
import setRafTimeout from './setRafTimeout';
|
|
export default function createAnimateManager() {
|
|
var currStyle = {};
|
|
var handleChange = function handleChange() {
|
|
return null;
|
|
};
|
|
var shouldStop = false;
|
|
var setStyle = function setStyle(_style) {
|
|
if (shouldStop) {
|
|
return;
|
|
}
|
|
if (Array.isArray(_style)) {
|
|
if (!_style.length) {
|
|
return;
|
|
}
|
|
var styles = _style;
|
|
var _styles = _toArray(styles),
|
|
curr = _styles[0],
|
|
restStyles = _styles.slice(1);
|
|
if (typeof curr === 'number') {
|
|
setRafTimeout(setStyle.bind(null, restStyles), curr);
|
|
return;
|
|
}
|
|
setStyle(curr);
|
|
setRafTimeout(setStyle.bind(null, restStyles));
|
|
return;
|
|
}
|
|
if (_typeof(_style) === 'object') {
|
|
currStyle = _style;
|
|
handleChange(currStyle);
|
|
}
|
|
if (typeof _style === 'function') {
|
|
_style();
|
|
}
|
|
};
|
|
return {
|
|
stop: function stop() {
|
|
shouldStop = true;
|
|
},
|
|
start: function start(style) {
|
|
shouldStop = false;
|
|
setStyle(style);
|
|
},
|
|
subscribe: function subscribe(_handleChange) {
|
|
handleChange = _handleChange;
|
|
return function () {
|
|
handleChange = function handleChange() {
|
|
return null;
|
|
};
|
|
};
|
|
}
|
|
};
|
|
} |