 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>
		
			
				
	
	
		
			87 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * @fileoverview Rule to flag references to the undefined variable.
 | |
|  * @author Michael Ficarra
 | |
|  */
 | |
| "use strict";
 | |
| 
 | |
| //------------------------------------------------------------------------------
 | |
| // Rule Definition
 | |
| //------------------------------------------------------------------------------
 | |
| 
 | |
| /** @type {import('../shared/types').Rule} */
 | |
| module.exports = {
 | |
|     meta: {
 | |
|         type: "suggestion",
 | |
| 
 | |
|         docs: {
 | |
|             description: "Disallow the use of `undefined` as an identifier",
 | |
|             recommended: false,
 | |
|             url: "https://eslint.org/docs/latest/rules/no-undefined"
 | |
|         },
 | |
| 
 | |
|         schema: [],
 | |
| 
 | |
|         messages: {
 | |
|             unexpectedUndefined: "Unexpected use of undefined."
 | |
|         }
 | |
|     },
 | |
| 
 | |
|     create(context) {
 | |
| 
 | |
|         const sourceCode = context.sourceCode;
 | |
| 
 | |
|         /**
 | |
|          * Report an invalid "undefined" identifier node.
 | |
|          * @param {ASTNode} node The node to report.
 | |
|          * @returns {void}
 | |
|          */
 | |
|         function report(node) {
 | |
|             context.report({
 | |
|                 node,
 | |
|                 messageId: "unexpectedUndefined"
 | |
|             });
 | |
|         }
 | |
| 
 | |
|         /**
 | |
|          * Checks the given scope for references to `undefined` and reports
 | |
|          * all references found.
 | |
|          * @param {eslint-scope.Scope} scope The scope to check.
 | |
|          * @returns {void}
 | |
|          */
 | |
|         function checkScope(scope) {
 | |
|             const undefinedVar = scope.set.get("undefined");
 | |
| 
 | |
|             if (!undefinedVar) {
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             const references = undefinedVar.references;
 | |
| 
 | |
|             const defs = undefinedVar.defs;
 | |
| 
 | |
|             // Report non-initializing references (those are covered in defs below)
 | |
|             references
 | |
|                 .filter(ref => !ref.init)
 | |
|                 .forEach(ref => report(ref.identifier));
 | |
| 
 | |
|             defs.forEach(def => report(def.name));
 | |
|         }
 | |
| 
 | |
|         return {
 | |
|             "Program:exit"(node) {
 | |
|                 const globalScope = sourceCode.getScope(node);
 | |
| 
 | |
|                 const stack = [globalScope];
 | |
| 
 | |
|                 while (stack.length) {
 | |
|                     const scope = stack.pop();
 | |
| 
 | |
|                     stack.push(...scope.childScopes);
 | |
|                     checkScope(scope);
 | |
|                 }
 | |
|             }
 | |
|         };
 | |
| 
 | |
|     }
 | |
| };
 |