/** * Lifecycle Manager — state machine + polling loop + reaction engine. * * Periodically polls all sessions and: * 1. Detects state transitions (spawning → working → pr_open → etc.) * 2. Emits events on transitions * 3. Triggers reactions (auto-handle CI failures, review comments, etc.) * 4. Escalates to human notification when auto-handling fails * * Reference: scripts/claude-session-status, scripts/claude-review-check */ import { type LifecycleManager, type SessionManager, type OrchestratorConfig, type PluginRegistry } from "./types.js"; export interface LifecycleManagerDeps { config: OrchestratorConfig; registry: PluginRegistry; sessionManager: SessionManager; /** When set, only poll sessions belonging to this project. */ projectId?: string; } /** Create a LifecycleManager instance. */ export declare function createLifecycleManager(deps: LifecycleManagerDeps): LifecycleManager; //# sourceMappingURL=lifecycle-manager.d.ts.map