import { AgentService } from "@mcoda/agents"; import { DocdexClient } from "@mcoda/integrations"; import { GlobalRepository, WorkspaceRepository } from "@mcoda/db"; import { RefineTasksRequest, RefineTasksResult } from "@mcoda/shared"; import { WorkspaceResolution } from "../../workspace/WorkspaceManager.js"; import { JobService } from "../jobs/JobService.js"; import { RoutingService } from "../agents/RoutingService.js"; import { AgentRatingService } from "../agents/AgentRatingService.js"; interface RefineTasksOptions extends RefineTasksRequest { workspace: WorkspaceResolution; storyKey?: string; agentName?: string; agentStream?: boolean; rateAgents?: boolean; fromDb?: boolean; planInPath?: string; planOutPath?: string; jobId?: string; apply?: boolean; excludeAlreadyRefined?: boolean; allowEmptySelection?: boolean; outputJson?: boolean; } export declare class RefineTasksService { private docdex; private jobService; private agentService; private repo; private workspaceRepo; private routingService; private workspace; private ratingService?; constructor(workspace: WorkspaceResolution, deps: { docdex: DocdexClient; jobService: JobService; agentService: AgentService; repo: GlobalRepository; workspaceRepo: WorkspaceRepository; routingService: RoutingService; ratingService?: AgentRatingService; }); static create(workspace: WorkspaceResolution): Promise; close(): Promise; private seedPriorities; private resolveAgent; private selectFallbackAgent; private ensureRatingService; private selectTasks; private parseTaskKeyParts; private ensureTaskExists; private buildStoryExecutionContext; private buildStoryPrompt; private buildOpenApiHintSummary; private buildDocLinkHandle; private collectCandidateTargetsFromDocs; private readPlanningArtifactJson; private loadPlanningArtifactContext; private summarizeDocs; private summarizeHistory; private logWarningsToTasks; private mergeMetadata; private applyStageMetadata; private sanitizeStatusUpdate; private detectCycle; private hasDependencyPath; private evaluateTaskQuality; private evaluateOperationsQuality; private buildQualityRetryPrompt; private buildExecutionMetadata; private applyOperations; private invokeAgent; refineTasks(options: RefineTasksOptions): Promise; } export {}; //# sourceMappingURL=RefineTasksService.d.ts.map