/** * MCP Server Types * * Types specific to the MCP (Model Context Protocol) server implementation. */ import { z } from 'zod'; /** * MCP Tool Result */ export interface McpToolResult { success: boolean; data?: T; error?: string; warnings?: string[]; } /** * Working directory resolution options */ export interface WorkingDirOptions { workingDir?: string | undefined; projectPath?: string | undefined; } /** * Input schemas for MCP tools */ export declare const NormalizeInputSchema: z.ZodObject<{ content: z.ZodString; format: z.ZodOptional>; projectPath: z.ZodOptional; }, "strip", z.ZodTypeAny, { content: string; format?: "markdown" | "json" | "yaml" | "text" | undefined; projectPath?: string | undefined; }, { content: string; format?: "markdown" | "json" | "yaml" | "text" | undefined; projectPath?: string | undefined; }>; export type NormalizeInputParams = z.infer; export declare const NormalizeFileSchema: z.ZodObject<{ filePath: z.ZodString; projectPath: z.ZodOptional; }, "strip", z.ZodTypeAny, { filePath: string; projectPath?: string | undefined; }, { filePath: string; projectPath?: string | undefined; }>; export type NormalizeFileParams = z.infer; export declare const GeneratePlanSchema: z.ZodObject<{ input: z.ZodRecord; options: z.ZodOptional; failFast: z.ZodOptional; autoCommit: z.ZodOptional; finalValidationCommand: z.ZodOptional; }, "strip", z.ZodTypeAny, { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; }, { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { input: Record; options?: { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; } | undefined; }, { input: Record; options?: { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; } | undefined; }>; export type GeneratePlanParams = z.infer; export declare const GeneratePlanFromTextSchema: z.ZodObject<{ text: z.ZodString; layer: z.ZodOptional>; projectPath: z.ZodOptional; options: z.ZodOptional; failFast: z.ZodOptional; autoCommit: z.ZodOptional; finalValidationCommand: z.ZodOptional; }, "strip", z.ZodTypeAny, { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; }, { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { text: string; options?: { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; } | undefined; layer?: "database" | "backend" | "frontend" | "fullstack" | "infrastructure" | undefined; projectPath?: string | undefined; }, { text: string; options?: { defaultMaxIterations?: number | undefined; failFast?: boolean | undefined; autoCommit?: boolean | undefined; finalValidationCommand?: string | undefined; } | undefined; layer?: "database" | "backend" | "frontend" | "fullstack" | "infrastructure" | undefined; projectPath?: string | undefined; }>; export type GeneratePlanFromTextParams = z.infer; export declare const ValidatePlanSchema: z.ZodObject<{ plan: z.ZodRecord; }, "strip", z.ZodTypeAny, { plan: Record; }, { plan: Record; }>; export type ValidatePlanParams = z.infer; export declare const ValidateInputSchema: z.ZodObject<{ input: z.ZodRecord; }, "strip", z.ZodTypeAny, { input: Record; }, { input: Record; }>; export type ValidateInputParams = z.infer; export declare const SavePlanSchema: z.ZodObject<{ plan: z.ZodRecord; filePath: z.ZodString; }, "strip", z.ZodTypeAny, { filePath: string; plan: Record; }, { filePath: string; plan: Record; }>; export type SavePlanParams = z.infer; export declare const LoadPlanSchema: z.ZodObject<{ filePath: z.ZodString; }, "strip", z.ZodTypeAny, { filePath: string; }, { filePath: string; }>; export type LoadPlanParams = z.infer; export declare const GetPipelineStatusSchema: z.ZodObject<{ workingDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; }, { workingDir?: string | undefined; }>; export type GetPipelineStatusParams = z.infer; export declare const GetPipelineProgressSchema: z.ZodObject<{ workingDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; }, { workingDir?: string | undefined; }>; export type GetPipelineProgressParams = z.infer; export declare const ListCompletedTasksSchema: z.ZodObject<{ workingDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; }, { workingDir?: string | undefined; }>; export type ListCompletedTasksParams = z.infer; export declare const ListPendingTasksSchema: z.ZodObject<{ workingDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; }, { workingDir?: string | undefined; }>; export type ListPendingTasksParams = z.infer; export declare const AnalyzeFeatureSchema: z.ZodObject<{ description: z.ZodString; projectPath: z.ZodOptional; }, "strip", z.ZodTypeAny, { description: string; projectPath?: string | undefined; }, { description: string; projectPath?: string | undefined; }>; export type AnalyzeFeatureParams = z.infer; export declare const DetectTechStackSchema: z.ZodObject<{ projectPath: z.ZodString; }, "strip", z.ZodTypeAny, { projectPath: string; }, { projectPath: string; }>; export type DetectTechStackParams = z.infer; export declare const DecomposeFeatureSchema: z.ZodObject<{ input: z.ZodRecord; options: z.ZodOptional>; includeTests: z.ZodOptional; }, "strip", z.ZodTypeAny, { includeTests?: boolean | undefined; heuristic?: "refactor" | "crud" | "migration" | undefined; }, { includeTests?: boolean | undefined; heuristic?: "refactor" | "crud" | "migration" | undefined; }>>; }, "strip", z.ZodTypeAny, { input: Record; options?: { includeTests?: boolean | undefined; heuristic?: "refactor" | "crud" | "migration" | undefined; } | undefined; }, { input: Record; options?: { includeTests?: boolean | undefined; heuristic?: "refactor" | "crud" | "migration" | undefined; } | undefined; }>; export type DecomposeFeatureParams = z.infer; export declare const CheckEligibilitySchema: z.ZodObject<{ input: z.ZodRecord; }, "strip", z.ZodTypeAny, { input: Record; }, { input: Record; }>; export type CheckEligibilityParams = z.infer; export declare const GitStatusSchema: z.ZodObject<{ workingDir: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; }, { workingDir?: string | undefined; }>; export type GitStatusParams = z.infer; export declare const GitDiffSchema: z.ZodObject<{ workingDir: z.ZodOptional; ref: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; ref?: string | undefined; }, { workingDir?: string | undefined; ref?: string | undefined; }>; export type GitDiffParams = z.infer; export declare const GitLogSchema: z.ZodObject<{ workingDir: z.ZodOptional; count: z.ZodOptional; }, "strip", z.ZodTypeAny, { workingDir?: string | undefined; count?: number | undefined; }, { workingDir?: string | undefined; count?: number | undefined; }>; export type GitLogParams = z.infer; /** * MCP Resource URIs */ export declare const RESOURCE_URIS: { readonly PLANS_ACTIVE: "rwuc://plans/active"; readonly PLANS_LIST: "rwuc://plans/list"; readonly STATE_CURRENT: "rwuc://state/current"; readonly STATE_PROGRESS: "rwuc://state/progress"; readonly TEMPLATES_LIST: "rwuc://templates/list"; readonly CONFIG_CURRENT: "rwuc://config/current"; }; export type ResourceUri = (typeof RESOURCE_URIS)[keyof typeof RESOURCE_URIS]; /** * MCP Tool Names */ export declare const TOOL_NAMES: { readonly NORMALIZE_INPUT: "normalize_input"; readonly NORMALIZE_FILE: "normalize_file"; readonly GENERATE_PLAN: "generate_plan"; readonly GENERATE_PLAN_FROM_TEXT: "generate_plan_from_text"; readonly VALIDATE_PLAN: "validate_plan"; readonly VALIDATE_INPUT: "validate_input"; readonly SAVE_PLAN: "save_plan"; readonly LOAD_PLAN: "load_plan"; readonly GET_PIPELINE_STATUS: "get_pipeline_status"; readonly GET_PIPELINE_PROGRESS: "get_pipeline_progress"; readonly LIST_COMPLETED_TASKS: "list_completed_tasks"; readonly LIST_PENDING_TASKS: "list_pending_tasks"; readonly ANALYZE_FEATURE: "analyze_feature"; readonly DETECT_TECH_STACK: "detect_tech_stack"; readonly DECOMPOSE_FEATURE: "decompose_feature"; readonly CHECK_ELIGIBILITY: "check_eligibility"; readonly GIT_STATUS: "git_status"; readonly GIT_DIFF: "git_diff"; readonly GIT_LOG: "git_log"; }; export type ToolName = (typeof TOOL_NAMES)[keyof typeof TOOL_NAMES]; /** * Helper function to resolve working directory */ export declare function resolveWorkingDir(options?: WorkingDirOptions): string; //# sourceMappingURL=types.d.ts.map