 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>
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _keywords = require('../parser/tokenizer/keywords');
 | |
| 
 | |
| 
 | |
| /**
 | |
|  * Determine whether this optional chain or nullish coalescing operation has any await statements in
 | |
|  * it. If so, we'll need to transpile to an async operation.
 | |
|  *
 | |
|  * We compute this by walking the length of the operation and returning true if we see an await
 | |
|  * keyword used as a real await (rather than an object key or property access). Nested optional
 | |
|  * chain/nullish operations need to be tracked but don't silence await, but a nested async function
 | |
|  * (or any other nested scope) will make the await not count.
 | |
|  */
 | |
|  function isAsyncOperation(tokens) {
 | |
|   let index = tokens.currentIndex();
 | |
|   let depth = 0;
 | |
|   const startToken = tokens.currentToken();
 | |
|   do {
 | |
|     const token = tokens.tokens[index];
 | |
|     if (token.isOptionalChainStart) {
 | |
|       depth++;
 | |
|     }
 | |
|     if (token.isOptionalChainEnd) {
 | |
|       depth--;
 | |
|     }
 | |
|     depth += token.numNullishCoalesceStarts;
 | |
|     depth -= token.numNullishCoalesceEnds;
 | |
| 
 | |
|     if (
 | |
|       token.contextualKeyword === _keywords.ContextualKeyword._await &&
 | |
|       token.identifierRole == null &&
 | |
|       token.scopeDepth === startToken.scopeDepth
 | |
|     ) {
 | |
|       return true;
 | |
|     }
 | |
|     index += 1;
 | |
|   } while (depth > 0 && index < tokens.tokens.length);
 | |
|   return false;
 | |
| } exports.default = isAsyncOperation;
 |