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>
56 lines
2.0 KiB
TypeScript
56 lines
2.0 KiB
TypeScript
/**
|
|
* Error thrown by validation. Besides an informative message, it includes the path to the
|
|
* property which triggered the failure.
|
|
*/
|
|
export declare class VError extends Error {
|
|
path: string;
|
|
constructor(path: string, message: string);
|
|
}
|
|
/**
|
|
* IContext is used during validation to collect error messages. There is a "noop" fast
|
|
* implementation that does not pay attention to messages, and a full implementation that does.
|
|
*/
|
|
export interface IContext {
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
resolveUnion(ur: IUnionResolver): void;
|
|
}
|
|
/**
|
|
* This helper class is used to collect error messages reported while validating unions.
|
|
*/
|
|
export interface IUnionResolver {
|
|
createContext(): IContext;
|
|
}
|
|
/**
|
|
* IErrorDetail describes errors as returned by the validate() and validateStrict() methods.
|
|
*/
|
|
export interface IErrorDetail {
|
|
path: string;
|
|
message: string;
|
|
nested?: IErrorDetail[];
|
|
}
|
|
/**
|
|
* Fast implementation of IContext used for first-pass validation. If that fails, we can validate
|
|
* using DetailContext to collect error messages. That's faster for the common case when messages
|
|
* normally pass validation.
|
|
*/
|
|
export declare class NoopContext implements IContext, IUnionResolver {
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
createContext(): IContext;
|
|
resolveUnion(ur: IUnionResolver): void;
|
|
}
|
|
/**
|
|
* Complete implementation of IContext that collects meaningfull errors.
|
|
*/
|
|
export declare class DetailContext implements IContext {
|
|
private _propNames;
|
|
private _messages;
|
|
private _score;
|
|
fail(relPath: string | number | null, message: string | null, score: number): false;
|
|
unionResolver(): IUnionResolver;
|
|
resolveUnion(unionResolver: IUnionResolver): void;
|
|
getError(path: string): VError;
|
|
getErrorDetail(path: string): IErrorDetail | null;
|
|
}
|