 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>
		
			
				
	
	
		
			64 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // @ts-check
 | |
| "use strict";
 | |
| Object.defineProperty(exports, "__esModule", {
 | |
|     value: true
 | |
| });
 | |
| Object.defineProperty(exports, "init", {
 | |
|     enumerable: true,
 | |
|     get: function() {
 | |
|         return init;
 | |
|     }
 | |
| });
 | |
| const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
 | |
| const _path = /*#__PURE__*/ _interop_require_default(require("path"));
 | |
| function _interop_require_default(obj) {
 | |
|     return obj && obj.__esModule ? obj : {
 | |
|         default: obj
 | |
|     };
 | |
| }
 | |
| function isESM() {
 | |
|     const pkgPath = _path.default.resolve("./package.json");
 | |
|     try {
 | |
|         let pkg = JSON.parse(_fs.default.readFileSync(pkgPath, "utf8"));
 | |
|         return pkg.type && pkg.type === "module";
 | |
|     } catch (err) {
 | |
|         return false;
 | |
|     }
 | |
| }
 | |
| function init(args) {
 | |
|     let messages = [];
 | |
|     let isProjectESM = args["--ts"] || args["--esm"] || isESM();
 | |
|     let syntax = args["--ts"] ? "ts" : isProjectESM ? "js" : "cjs";
 | |
|     let extension = args["--ts"] ? "ts" : "js";
 | |
|     var _args___;
 | |
|     let tailwindConfigLocation = _path.default.resolve((_args___ = args["_"][1]) !== null && _args___ !== void 0 ? _args___ : `./tailwind.config.${extension}`);
 | |
|     if (_fs.default.existsSync(tailwindConfigLocation)) {
 | |
|         messages.push(`${_path.default.basename(tailwindConfigLocation)} already exists.`);
 | |
|     } else {
 | |
|         let stubContentsFile = _fs.default.readFileSync(args["--full"] ? _path.default.resolve(__dirname, "../../../stubs/config.full.js") : _path.default.resolve(__dirname, "../../../stubs/config.simple.js"), "utf8");
 | |
|         let stubFile = _fs.default.readFileSync(_path.default.resolve(__dirname, `../../../stubs/tailwind.config.${syntax}`), "utf8");
 | |
|         // Change colors import
 | |
|         stubContentsFile = stubContentsFile.replace("../colors", "tailwindcss/colors");
 | |
|         // Replace contents of {ts,js,cjs} file with the stub {simple,full}.
 | |
|         stubFile = stubFile.replace("__CONFIG__", stubContentsFile.replace("module.exports =", "").trim()).trim() + "\n\n";
 | |
|         _fs.default.writeFileSync(tailwindConfigLocation, stubFile, "utf8");
 | |
|         messages.push(`Created Tailwind CSS config file: ${_path.default.basename(tailwindConfigLocation)}`);
 | |
|     }
 | |
|     if (args["--postcss"]) {
 | |
|         let postcssConfigLocation = _path.default.resolve("./postcss.config.js");
 | |
|         if (_fs.default.existsSync(postcssConfigLocation)) {
 | |
|             messages.push(`${_path.default.basename(postcssConfigLocation)} already exists.`);
 | |
|         } else {
 | |
|             let stubFile = _fs.default.readFileSync(isProjectESM ? _path.default.resolve(__dirname, "../../../stubs/postcss.config.js") : _path.default.resolve(__dirname, "../../../stubs/postcss.config.cjs"), "utf8");
 | |
|             _fs.default.writeFileSync(postcssConfigLocation, stubFile, "utf8");
 | |
|             messages.push(`Created PostCSS config file: ${_path.default.basename(postcssConfigLocation)}`);
 | |
|         }
 | |
|     }
 | |
|     if (messages.length > 0) {
 | |
|         console.log();
 | |
|         for (let message of messages){
 | |
|             console.log(message);
 | |
|         }
 | |
|     }
 | |
| }
 |