import { AgentService } from "@mcoda/agents"; import { GlobalRepository, WorkspaceRepository } from "@mcoda/db"; import { Agent, AgentHealth } from "@mcoda/shared"; import { RoutingService } from "./RoutingService.js"; import { WorkspaceResolution } from "../../workspace/WorkspaceManager.js"; export type AgentRatingRequest = { workspace: WorkspaceResolution; agentId: string; commandName: string; jobId?: string; commandRunId?: string; taskId?: string; taskKey?: string; discipline?: string; complexity?: number; reviewerAgentName?: string; ratingWindow?: number; }; export type AgentCapabilityCandidate = { agent: Agent; capabilities: string[]; healthStatus?: AgentHealth["status"] | "unknown"; }; export type AgentCapabilitySelection = { agent: Agent; capabilities: string[]; missingRequired: string[]; missingPreferred: string[]; meetsRequired: boolean; reason: string; }; export declare const selectBestAgentForCapabilities: (input: { candidates: AgentCapabilityCandidate[]; required: string[]; preferred?: string[]; }) => AgentCapabilitySelection | undefined; export declare class AgentRatingService { private workspace; private deps; constructor(workspace: WorkspaceResolution, deps: { workspaceRepo: WorkspaceRepository; globalRepo: GlobalRepository; agentService: AgentService; routingService: RoutingService; }); static create(workspace: WorkspaceResolution): Promise; close(): Promise; private ratingPromptPath; private loadRatingPrompt; private resolveReviewer; private loadUsage; private countIterations; private loadDurationSeconds; private buildReviewContext; private runReviewer; private computeBudgets; rate(request: AgentRatingRequest): Promise; private writeRatingArtifact; } //# sourceMappingURL=AgentRatingService.d.ts.map