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>
61 lines
1.8 KiB
TypeScript
61 lines
1.8 KiB
TypeScript
declare module 'Fraction';
|
|
|
|
export interface NumeratorDenominator {
|
|
n: number;
|
|
d: number;
|
|
}
|
|
|
|
type FractionConstructor = {
|
|
(fraction: Fraction): Fraction;
|
|
(num: number | string): Fraction;
|
|
(numerator: number, denominator: number): Fraction;
|
|
(numbers: [number | string, number | string]): Fraction;
|
|
(fraction: NumeratorDenominator): Fraction;
|
|
(firstValue: Fraction | number | string | [number | string, number | string] | NumeratorDenominator, secondValue?: number): Fraction;
|
|
};
|
|
|
|
export default class Fraction {
|
|
constructor (fraction: Fraction);
|
|
constructor (num: number | string);
|
|
constructor (numerator: number, denominator: number);
|
|
constructor (numbers: [number | string, number | string]);
|
|
constructor (fraction: NumeratorDenominator);
|
|
constructor (firstValue: Fraction | number | string | [number | string, number | string] | NumeratorDenominator, secondValue?: number);
|
|
|
|
s: number;
|
|
n: number;
|
|
d: number;
|
|
|
|
abs(): Fraction;
|
|
neg(): Fraction;
|
|
|
|
add: FractionConstructor;
|
|
sub: FractionConstructor;
|
|
mul: FractionConstructor;
|
|
div: FractionConstructor;
|
|
pow: FractionConstructor;
|
|
gcd: FractionConstructor;
|
|
lcm: FractionConstructor;
|
|
|
|
mod(n?: number | string | Fraction): Fraction;
|
|
|
|
ceil(places?: number): Fraction;
|
|
floor(places?: number): Fraction;
|
|
round(places?: number): Fraction;
|
|
|
|
inverse(): Fraction;
|
|
|
|
simplify(eps?: number): Fraction;
|
|
|
|
equals(n: number | string | Fraction): boolean;
|
|
compare(n: number | string | Fraction): number;
|
|
divisible(n: number | string | Fraction): boolean;
|
|
|
|
valueOf(): number;
|
|
toString(decimalPlaces?: number): string;
|
|
toLatex(excludeWhole?: boolean): string;
|
|
toFraction(excludeWhole?: boolean): string;
|
|
toContinued(): number[];
|
|
clone(): Fraction;
|
|
}
|