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>
33 lines
1.5 KiB
TypeScript
33 lines
1.5 KiB
TypeScript
import { type ElementType, type MutableRefObject, type Ref } from 'react';
|
|
import type { Props } from '../../types.js';
|
|
import { type HasDisplayName, type RefProp } from '../../utils/render.js';
|
|
type Containers = (() => Iterable<HTMLElement>) | MutableRefObject<Set<MutableRefObject<HTMLElement | null>>>;
|
|
declare let DEFAULT_FOCUS_TRAP_TAG: "div";
|
|
declare enum Features {
|
|
/** No features enabled for the focus trap. */
|
|
None = 1,
|
|
/** Ensure that we move focus initially into the container. */
|
|
InitialFocus = 2,
|
|
/** Ensure that pressing `Tab` and `Shift+Tab` is trapped within the container. */
|
|
TabLock = 4,
|
|
/** Ensure that programmatically moving focus outside of the container is disallowed. */
|
|
FocusLock = 8,
|
|
/** Ensure that we restore the focus when unmounting the focus trap. */
|
|
RestoreFocus = 16,
|
|
/** Enable all features. */
|
|
All = 30
|
|
}
|
|
export type FocusTrapProps<TTag extends ElementType> = Props<TTag> & {
|
|
initialFocus?: MutableRefObject<HTMLElement | null>;
|
|
features?: Features;
|
|
containers?: Containers;
|
|
};
|
|
declare function FocusTrapFn<TTag extends ElementType = typeof DEFAULT_FOCUS_TRAP_TAG>(props: FocusTrapProps<TTag>, ref: Ref<HTMLDivElement>): JSX.Element;
|
|
export interface _internal_ComponentFocusTrap extends HasDisplayName {
|
|
<TTag extends ElementType = typeof DEFAULT_FOCUS_TRAP_TAG>(props: FocusTrapProps<TTag> & RefProp<typeof FocusTrapFn>): JSX.Element;
|
|
}
|
|
export declare let FocusTrap: _internal_ComponentFocusTrap & {
|
|
features: typeof Features;
|
|
};
|
|
export {};
|