 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>
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| Object.defineProperty(exports, "__esModule", { value: true });
 | |
| const fsScandir = require("@nodelib/fs.scandir");
 | |
| const common = require("./common");
 | |
| const reader_1 = require("./reader");
 | |
| class SyncReader extends reader_1.default {
 | |
|     constructor() {
 | |
|         super(...arguments);
 | |
|         this._scandir = fsScandir.scandirSync;
 | |
|         this._storage = [];
 | |
|         this._queue = new Set();
 | |
|     }
 | |
|     read() {
 | |
|         this._pushToQueue(this._root, this._settings.basePath);
 | |
|         this._handleQueue();
 | |
|         return this._storage;
 | |
|     }
 | |
|     _pushToQueue(directory, base) {
 | |
|         this._queue.add({ directory, base });
 | |
|     }
 | |
|     _handleQueue() {
 | |
|         for (const item of this._queue.values()) {
 | |
|             this._handleDirectory(item.directory, item.base);
 | |
|         }
 | |
|     }
 | |
|     _handleDirectory(directory, base) {
 | |
|         try {
 | |
|             const entries = this._scandir(directory, this._settings.fsScandirSettings);
 | |
|             for (const entry of entries) {
 | |
|                 this._handleEntry(entry, base);
 | |
|             }
 | |
|         }
 | |
|         catch (error) {
 | |
|             this._handleError(error);
 | |
|         }
 | |
|     }
 | |
|     _handleError(error) {
 | |
|         if (!common.isFatalError(this._settings, error)) {
 | |
|             return;
 | |
|         }
 | |
|         throw error;
 | |
|     }
 | |
|     _handleEntry(entry, base) {
 | |
|         const fullpath = entry.path;
 | |
|         if (base !== undefined) {
 | |
|             entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
 | |
|         }
 | |
|         if (common.isAppliedFilter(this._settings.entryFilter, entry)) {
 | |
|             this._pushToStorage(entry);
 | |
|         }
 | |
|         if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
 | |
|             this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
 | |
|         }
 | |
|     }
 | |
|     _pushToStorage(entry) {
 | |
|         this._storage.push(entry);
 | |
|     }
 | |
| }
 | |
| exports.default = SyncReader;
 |