import type { RuntimeServices } from './services.js'; import type { RemoteRunnerRegistry } from './remote/runner-registry.js'; import type { RemoteSupervisor } from './remote/supervisor.js'; import { type UiRuntimeEvents } from './ui-events.js'; import { type UiReadModels, type UiReadModelOptions } from './ui-read-models.js'; import type { ForensicsRegistry } from './forensics/index.js'; import type { ControlPlaneRecentEvent } from '../control-plane/index.js'; import type { ApprovalBroker } from '../control-plane/approval-broker.js'; import type { SharedSessionBroker } from '../control-plane/session-broker.js'; import type { ShellPathService } from './shell-paths.js'; import type { SecretsManager } from '../config/secrets.js'; export interface UiEnvironmentServices { readonly workingDirectory: string; readonly homeDirectory: string; readonly shellPaths: ShellPathService; } export interface UiShellServices { readonly keybindingsManager: RuntimeServices['keybindingsManager']; readonly panelManager: RuntimeServices['panelManager']; readonly processManager: RuntimeServices['processManager']; readonly profileManager: RuntimeServices['profileManager']; readonly bookmarkManager: RuntimeServices['bookmarkManager']; } export interface UiAgentServices { readonly agentManager: RuntimeServices['agentManager']; readonly agentMessageBus: RuntimeServices['agentMessageBus']; readonly wrfcController: RuntimeServices['wrfcController']; } export interface UiProviderServices { readonly providerRegistry: RuntimeServices['providerRegistry']; readonly favoritesStore: RuntimeServices['favoritesStore']; readonly benchmarkStore: RuntimeServices['benchmarkStore']; } export interface UiSessionServices { readonly sessionManager: RuntimeServices['sessionManager']; readonly sessionBroker: SharedSessionBroker; readonly sessionOrchestration: RuntimeServices['sessionOrchestration']; readonly sessionMemoryStore: RuntimeServices['sessionMemoryStore']; } export interface UiPlatformServices { readonly configManager: RuntimeServices['configManager']; readonly localUserAuthManager: RuntimeServices['localUserAuthManager']; readonly mcpRegistry: RuntimeServices['mcpRegistry']; readonly serviceRegistry: RuntimeServices['serviceRegistry']; readonly subscriptionManager: RuntimeServices['subscriptionManager']; readonly secretsManager: SecretsManager; readonly tokenAuditor: RuntimeServices['tokenAuditor']; readonly replayEngine: RuntimeServices['replayEngine']; readonly webhookNotifier: RuntimeServices['webhookNotifier']; readonly policyRuntimeState: RuntimeServices['policyRuntimeState']; } export interface UiPlanningServices { readonly planManager: RuntimeServices['planManager']; readonly adaptivePlanner: RuntimeServices['adaptivePlanner']; } export interface UiCoordinationServices { readonly approvalBroker: ApprovalBroker; } export interface UiRuntimeSharedServices { readonly environment: UiEnvironmentServices; readonly shell: UiShellServices; readonly agents: UiAgentServices; readonly providers: UiProviderServices; readonly sessions: UiSessionServices; readonly platform: UiPlatformServices; readonly planning: UiPlanningServices; readonly coordination: UiCoordinationServices; readonly runtime: { readonly distributedRuntime: RuntimeServices['distributedRuntime']; readonly remoteRunnerRegistry: RuntimeServices['remoteRunnerRegistry'] & RemoteRunnerRegistry; readonly remoteSupervisor: RuntimeServices['remoteSupervisor'] & RemoteSupervisor; }; } export interface UiRuntimeServices { readonly environment: UiEnvironmentServices; readonly shell: UiShellServices; readonly agents: UiAgentServices; readonly providers: UiProviderServices; readonly sessions: UiSessionServices; readonly platform: UiPlatformServices; readonly planning: UiPlanningServices; readonly coordination: UiCoordinationServices; readonly runtime: UiRuntimeSharedServices['runtime']; readonly events: UiRuntimeEvents; readonly readModels: UiReadModels; } export interface UiRuntimeServicesOptions extends UiReadModelOptions { readonly forensicsRegistry?: ForensicsRegistry | undefined; readonly getControlPlaneRecentEvents?: ((limit: number) => readonly ControlPlaneRecentEvent[]) | undefined; } export declare function createUiRuntimeServices(runtimeServices: RuntimeServices, options?: UiRuntimeServicesOptions): UiRuntimeServices; //# sourceMappingURL=ui-services.d.ts.map