46 lines · 2.0 KB · TypeScript
RawDownload
import type { Config } from "../config/env";import type { Logger } from "../core/logger";import type { EventManager } from "../modules/monitoring/event-manager";import type { LaunchState } from "../modules/lifecycle/state/launch-state";import type { ControllerMetrics, MetricsRegistry } from "../modules/monitoring/metrics";import type { ProcessManager } from "../modules/lifecycle/process/process-manager";import type { LifecycleCoordinator } from "../modules/lifecycle/state/lifecycle-coordinator";import type { DownloadManager } from "../modules/downloads/manager";import type { ChatRunManager } from "../modules/chat/agent/run-manager";import type { ChatStore } from "../modules/chat/store";import type { DownloadStore } from "../modules/downloads/store";import type { LifetimeMetricsStore, PeakMetricsStore } from "../modules/monitoring/metrics-store";import type { McpStore } from "../modules/mcp/store";import type { RecipeStore } from "../modules/lifecycle/recipes/recipe-store";import type { JobStore } from "../stores/job-store";import type { JobManager } from "../modules/jobs/job-manager";import type { DistributedStore } from "../stores/distributed-store";import type { DistributedClusterManager } from "../modules/distributed/cluster-manager"; /** * Application-wide dependency container. */export interface AppContext {  config: Config;  logger: Logger;  eventManager: EventManager;  launchState: LaunchState;  metrics: ControllerMetrics;  metricsRegistry: MetricsRegistry;  processManager: ProcessManager;  lifecycleCoordinator: LifecycleCoordinator;  downloadManager: DownloadManager;  runManager: ChatRunManager;  jobManager: JobManager;  distributedManager: DistributedClusterManager;  stores: {    recipeStore: RecipeStore;    chatStore: ChatStore;    downloadStore: DownloadStore;    peakMetricsStore: PeakMetricsStore;    lifetimeMetricsStore: LifetimeMetricsStore;    mcpStore: McpStore;    jobStore: JobStore;    distributedStore: DistributedStore;  };}