 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>
		
			
				
	
	
		
			67 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| var ruleModules = require('../dotjs')
 | |
|   , toHash = require('./util').toHash;
 | |
| 
 | |
| module.exports = function rules() {
 | |
|   var RULES = [
 | |
|     { type: 'number',
 | |
|       rules: [ { 'maximum': ['exclusiveMaximum'] },
 | |
|                { 'minimum': ['exclusiveMinimum'] }, 'multipleOf', 'format'] },
 | |
|     { type: 'string',
 | |
|       rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
 | |
|     { type: 'array',
 | |
|       rules: [ 'maxItems', 'minItems', 'items', 'contains', 'uniqueItems' ] },
 | |
|     { type: 'object',
 | |
|       rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'propertyNames',
 | |
|                { 'properties': ['additionalProperties', 'patternProperties'] } ] },
 | |
|     { rules: [ '$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if' ] }
 | |
|   ];
 | |
| 
 | |
|   var ALL = [ 'type', '$comment' ];
 | |
|   var KEYWORDS = [
 | |
|     '$schema', '$id', 'id', '$data', '$async', 'title',
 | |
|     'description', 'default', 'definitions',
 | |
|     'examples', 'readOnly', 'writeOnly',
 | |
|     'contentMediaType', 'contentEncoding',
 | |
|     'additionalItems', 'then', 'else'
 | |
|   ];
 | |
|   var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
 | |
|   RULES.all = toHash(ALL);
 | |
|   RULES.types = toHash(TYPES);
 | |
| 
 | |
|   RULES.forEach(function (group) {
 | |
|     group.rules = group.rules.map(function (keyword) {
 | |
|       var implKeywords;
 | |
|       if (typeof keyword == 'object') {
 | |
|         var key = Object.keys(keyword)[0];
 | |
|         implKeywords = keyword[key];
 | |
|         keyword = key;
 | |
|         implKeywords.forEach(function (k) {
 | |
|           ALL.push(k);
 | |
|           RULES.all[k] = true;
 | |
|         });
 | |
|       }
 | |
|       ALL.push(keyword);
 | |
|       var rule = RULES.all[keyword] = {
 | |
|         keyword: keyword,
 | |
|         code: ruleModules[keyword],
 | |
|         implements: implKeywords
 | |
|       };
 | |
|       return rule;
 | |
|     });
 | |
| 
 | |
|     RULES.all.$comment = {
 | |
|       keyword: '$comment',
 | |
|       code: ruleModules.$comment
 | |
|     };
 | |
| 
 | |
|     if (group.type) RULES.types[group.type] = group;
 | |
|   });
 | |
| 
 | |
|   RULES.keywords = toHash(ALL.concat(KEYWORDS));
 | |
|   RULES.custom = {};
 | |
| 
 | |
|   return RULES;
 | |
| };
 |