/** * MCP Server Runtime Management * * Provides Effect runtime lifecycle management for the MCP server. * The runtime is initialized once at startup and shared across all tool calls. */ import { Effect, ManagedRuntime } from "effect"; import { TaskService, ReadyService, DependencyService, HierarchyService, LearningService, FileLearningService, SyncService, MessageService, DocService, RunHeartbeatService, PinService, ClaimService, MemoryService, MemoryRetrieverService, GuardService, VerifyService, ReflectService, DecomposeService, SpecTraceService, DecisionService, LabelRepository, SqliteClient } from "@jamesaphoenix/tx"; export type McpServices = TaskService | ReadyService | DependencyService | HierarchyService | LearningService | FileLearningService | SyncService | MessageService | DocService | RunHeartbeatService | PinService | ClaimService | MemoryService | MemoryRetrieverService | GuardService | VerifyService | ReflectService | DecomposeService | SpecTraceService | DecisionService | LabelRepository | SqliteClient; /** * Initialize the Effect runtime ONCE at server startup. * Creates the full service layer with database connection. */ export declare const initRuntime: (dbPath?: string) => Promise; /** * Run an Effect using the pre-built runtime. * Must call initRuntime() first. */ export declare const runEffect: (effect: Effect.Effect) => Promise; /** * Get the current runtime for advanced use cases. * Returns null if not initialized. */ export declare const getRuntime: () => ManagedRuntime.ManagedRuntime | null; /** * Dispose of the runtime and release resources. * Call when shutting down the server. */ export declare const disposeRuntime: () => Promise; //# sourceMappingURL=runtime.d.ts.map