/** * Sends typed direct-conversion prompts through whichever provider is * configured, keeping provider mechanics out of discovery and application. */ import { type DirectBlueprintPromptInput } from "../prompts/direct-blueprint.ts"; import { type DirectTurnClassificationPromptInput, type DirectTurnPlan } from "../prompts/direct-turn-classification.ts"; import { type DirectPlanClassificationItem } from "../prompts/direct-plan-classification.ts"; import { type DirectTodoPromptInput } from "../prompts/direct-todos.ts"; import { type DirectIntegrationAuditFile, type DirectIntegrationIssue, type DirectIntegrationRelationship } from "../prompts/direct-integration.ts"; import { type DirectRepairDiagnostic, type DirectRepairRelatedFile } from "../prompts/direct-repair.ts"; import { type CompilerDiagnosticPromptItem, type SemanticDiagnostic } from "../prompts/compiler-diagnostics.ts"; import { type ModelSkill } from "../skills/index.ts"; import type { GenerateOptions } from "./types.ts"; /** * Resolve the exact package-owned guidance used for one coding request. Compiler * replay keys call the same helper, so changing a selected skill invalidates * cached bytes instead of replaying output generated under older guidance. */ export declare function loadCodingModelSkills(instruction: string, options: GenerateOptions): Promise; /** Send one direct-conversion request to OpenAI-compatible chat or Ollama. */ export declare function generateCode(instruction: string, options: GenerateOptions): Promise; /** * Decide, in one request, which units in a batch need a todo-planning pass. * Returns the set of the batch's 1-based indices that warrant planning. The * output is a bounded integer list, so a mis-classification only shifts cost — * it can never inject content into generated code. */ export declare function classifyPlanningNeed(items: readonly DirectPlanClassificationItem[], options: GenerateOptions): Promise>; /** Ask the opt-in semantic layer only for additional unresolved decisions. */ export declare function generateSpecDiagnostics(items: readonly CompilerDiagnosticPromptItem[], options: GenerateOptions): Promise; /** Decide whether one marker is conversation/context or an actual source edit. */ export declare function classifyHumanTurn(request: DirectTurnClassificationPromptInput, options: GenerateOptions): Promise; /** * One shared planning request per run. Its output is strict JSON, so it is not * passed through the code-fence stripper's expectations beyond the shared * transport; the caller parses and bounds it. */ export declare function generateBlueprint(request: DirectBlueprintPromptInput, options: GenerateOptions): Promise; /** One todo-list planning request for exactly one target. */ export declare function generateUnitTodos(request: Omit, options: GenerateOptions): Promise; export interface IntegrationAuditGenerationRequest { files: readonly DirectIntegrationAuditFile[]; relationships: readonly DirectIntegrationRelationship[]; projectMemory?: string; } /** Send one opt-in, read-only, cross-language integration audit request. */ export declare function generateIntegrationAudit(request: IntegrationAuditGenerationRequest, options: GenerateOptions): Promise; export interface IntegrationRepairGenerationRequest { targetPath: string; instruction: string; currentCode: string; issues: readonly DirectIntegrationIssue[]; relatedFiles: ReadonlyArray<{ path: string; content: string; }>; projectMemory?: string; } /** Send one bounded target repair after a generic integration audit. */ export declare function generateIntegrationRepairCode(request: IntegrationRepairGenerationRequest, options: GenerateOptions): Promise; export interface RepairGenerationRequest { targetPath: string; inline: boolean; instruction: string; currentCode: string; diagnostics: readonly DirectRepairDiagnostic[]; hints?: readonly string[]; relatedFiles: readonly DirectRepairRelatedFile[]; projectMemory?: string; } /** Send one bounded cross-file repair request with the same provider and model. */ export declare function generateRepairCode(request: RepairGenerationRequest, options: GenerateOptions): Promise; //# sourceMappingURL=generation-client.d.ts.map