import { WorkspaceResolution } from "../../workspace/WorkspaceManager.js"; import { TaskSelectionFilters } from "../execution/TaskSelectionService.js"; export interface GatewayDocSummary { id: string; docType: string; title: string; path?: string; excerpt?: string; } export interface GatewayTaskSummary { key: string; title: string; description?: string; status?: string; storyPoints?: number; storyKey?: string; storyTitle?: string; epicKey?: string; epicTitle?: string; acceptanceCriteria?: string[]; dependencies?: string[]; } export interface GatewayAnalysis { summary: string; reasoningSummary?: string; currentState: string; todo: string; understanding: string; plan: string[]; complexity: number; discipline: string; filesLikelyTouched: string[]; filesToCreate: string[]; dirsToCreate: string[]; assumptions: string[]; risks: string[]; docdexNotes: string[]; } export interface GatewayAgentDecision { agentId: string; agentSlug: string; rating?: number; reasoningRating?: number; bestUsage?: string; costPerMillion?: number; rationale: string; } export interface GatewayAgentResult { commandRunId: string; job: string; gatewayAgent: { id: string; slug: string; }; tasks: GatewayTaskSummary[]; docdex: GatewayDocSummary[]; analysis: GatewayAnalysis; chosenAgent: GatewayAgentDecision; warnings: string[]; } type AgentTierHint = "strong" | "specialist"; export interface GatewayAgentRequest extends TaskSelectionFilters { workspace: WorkspaceResolution; job: string; inputText?: string; gatewayAgentName?: string; maxDocs?: number; agentStream?: boolean; onStreamChunk?: (chunk: string) => void; rateAgents?: boolean; avoidAgents?: string[]; forceStronger?: boolean; forceTier?: AgentTierHint; } export declare class GatewayAgentService { private workspace; private deps; private taskSelectionService; private constructor(); static create(workspace: WorkspaceResolution): Promise; private readPromptFiles; close(): Promise; setDocdexAvailability(available: boolean, reason?: string): void; saveRepoMemory(text: string): Promise; savePreference(category: string, content: string, agentId?: string): Promise; private loadGatewayPrompts; private resolveGatewayAgent; private invokeGatewayAgent; private buildTasksSummary; private pickDocTypes; private buildQuerySeed; private buildDocSummaries; private buildGatewayPrompt; private normalizeAnalysis; private validateFilePlan; private listCandidates; private chooseCandidate; private selectAgentForJob; preflightExecutionAgents(job: string, overrideAgent?: string): Promise; run(request: GatewayAgentRequest): Promise; } export {}; //# sourceMappingURL=GatewayAgentService.d.ts.map