/** * Background Module * * Provides background task execution for non-blocking agent invocations * and pipeline steps. Supports concurrency control, cancellation, * progress tracking, and event-based notifications. * * @example * ```typescript * import { BackgroundTaskRunner } from './background/index.js'; * * const runner = new BackgroundTaskRunner({ maxConcurrent: 3 }, logger); * * // Submit a background agent invocation * const taskId = await runner.run( * 'agent_invocation', * 'Review authentication code', * async () => { * return await orchestrator.executeWithFailover('reviewer', messages, options); * }, * { role: 'reviewer', provider: 'openai' } * ); * * // Check status later * const task = runner.getTask(taskId); * * // Or wait for completion * const completed = await runner.waitFor(taskId, 60000); * ``` */ export * from './types.js'; export { BackgroundTaskRunner } from './task-runner.js'; //# sourceMappingURL=index.d.ts.map