import { AgentService } from "@mcoda/agents"; import { GlobalRepository, WorkspaceRepository } from "@mcoda/db"; import { DocdexClient } from "@mcoda/integrations"; import { JobService } from "../jobs/JobService.js"; import { WorkspaceResolution } from "../../workspace/WorkspaceManager.js"; import { RoutingService } from "../agents/RoutingService.js"; import { AgentRatingService } from "../agents/AgentRatingService.js"; export interface GeneratePdrOptions { workspace: WorkspaceResolution; projectKey?: string; rfpId?: string; rfpPath?: string; outPath?: string; agentName?: string; agentStream?: boolean; rateAgents?: boolean; fast?: boolean; iterate?: boolean; buildReady?: boolean; noPlaceholders?: boolean; resolveOpenQuestions?: boolean; noMaybes?: boolean; crossAlign?: boolean; dryRun?: boolean; json?: boolean; onToken?: (token: string) => void; resumeJobId?: string; } export interface GeneratePdrResult { jobId: string; commandRunId: string; outputPath?: string; draft: string; docdexId?: string; warnings: string[]; } export interface GenerateSdsOptions { workspace: WorkspaceResolution; projectKey?: string; outPath?: string; agentName?: string; templateName?: string; agentStream?: boolean; rateAgents?: boolean; fast?: boolean; iterate?: boolean; buildReady?: boolean; noPlaceholders?: boolean; resolveOpenQuestions?: boolean; noMaybes?: boolean; crossAlign?: boolean; dryRun?: boolean; json?: boolean; force?: boolean; resumeJobId?: string; onToken?: (token: string) => void; } export interface GenerateSdsResult { jobId: string; commandRunId: string; outputPath?: string; draft: string; docdexId?: string; warnings: string[]; } export interface GenerateSdsSuggestionsOptions { workspace: WorkspaceResolution; projectKey?: string; sdsPath?: string; reviewAgentName?: string; fixAgentName?: string; agentStream?: boolean; rateAgents?: boolean; maxIterations?: number; dryRun?: boolean; json?: boolean; onToken?: (token: string) => void; } export interface GenerateSdsSuggestionsResult { jobId: string; commandRunId: string; sdsPath: string; suggestionsDir: string; suggestionFiles: string[]; reviewerAgentId: string; fixerAgentId: string; iterations: number; finalStatus: "pass" | "max_iterations_reached" | "dry_run"; warnings: string[]; } export declare class DocsService { private workspace; private docdex; private jobService; private agentService; private repo; private routingService; private ratingService?; private workspaceRepo?; constructor(workspace: WorkspaceResolution, deps: { docdex?: DocdexClient; jobService?: JobService; agentService: AgentService; repo: GlobalRepository; routingService: RoutingService; workspaceRepo?: WorkspaceRepository; ratingService?: AgentRatingService; noTelemetry?: boolean; }); static create(workspace: WorkspaceResolution, options?: { noTelemetry?: boolean; }): Promise; close(): Promise; private defaultPdrOutputPath; private defaultSdsOutputPath; private normalizeMaxIterations; private listSdsSuggestionPathCandidates; private resolveSdsSuggestionsPath; private ensureSuggestionsDir; private nextSuggestionsFilePath; private rankSdsSuggestionCandidates; private selectSdsSuggestionAgents; private buildSdsSuggestionsReviewPrompt; private parseSdsSuggestionsReviewResult; private buildSdsSuggestionsFixPrompt; private renderSdsSuggestionArtifact; private loadSdsTemplate; private buildDocgenCapabilityProfile; private collectDocgenCandidates; private selectDocgenAgent; private ensureRatingService; private createRunContext; private recordDocgenStage; private enforceToolDenylist; private applyDocPatches; private resolveMaxIterations; private isIterationEnabled; private shouldBlockGate; private appendUniqueWarnings; private summarizeIssues; private appendGateWarnings; private runReviewGates; private buildPatchPlanFromIssues; private resolveQuestionDecision; private sanitizeIndecisiveLine; private formatResolvedDecisions; private resolveOpenQuestions; private reviewReportDir; private reviewReportPaths; private buildReviewReport; private persistReviewReport; private runIterationLoop; private enforcePlaceholderArtifacts; private enforceApiPathConsistency; private enforceOpenApiSchemaSanity; private enforceOpenApiCoverage; private enforceSqlSyntax; private enforceSqlRequiredTables; private generateDeploymentBlueprint; private enforceAdminOpenApiSpec; private enforceTerminologyNormalization; private enforceOpenQuestions; private enforceNoMaybes; private enforceRfpConsent; private enforceRfpDefinitionCoverage; private enforcePdrInterfaces; private enforcePdrOwnership; private enforcePdrOpenQuestionsQuality; private enforceSdsExplicitDecisions; private enforceSdsPolicyTelemetry; private enforceSdsOpsObservabilityTesting; private enforceSdsExternalAdapters; private enforceDeploymentBlueprint; private enforceBuildReadyCompleteness; private writePdrFile; private registerPdr; private writeSdsFile; private checkSdsDocdexProfile; private registerSds; private invokeAgent; generatePdr(options: GeneratePdrOptions): Promise; private tryResumeSds; generateSds(options: GenerateSdsOptions): Promise; generateSdsSuggestions(options: GenerateSdsSuggestionsOptions): Promise; } //# sourceMappingURL=DocsService.d.ts.map