import type { ToolsInput } from '@mastra/core/agent'; import type { MastraModelConfig } from '@mastra/core/llm'; import type { MastraStorage } from '@mastra/core/storage'; import type { MastraVector } from '@mastra/core/vector'; import { z } from 'zod'; /** * Configuration options for the AgentBuilder */ export interface AgentBuilderConfig { /** The language model to use for agent generation */ model: MastraModelConfig; /** Storage provider for memory (optional) */ storage?: MastraStorage; /** Vector provider for memory (optional) */ vectorProvider?: MastraVector; /** Additional tools to include beyond the default set */ tools?: ToolsInput; /** Custom instructions to append to the default system prompt */ instructions?: string; /** Memory configuration options */ memoryConfig?: { maxMessages?: number; tokenLimit?: number; }; /** Project path */ projectPath: string; /** Summary model */ summaryModel?: MastraModelConfig; /** Mode */ mode?: 'template' | 'code-editor'; } /** * Options for generating agents with AgentBuilder */ export interface GenerateAgentOptions { /** Request Context for the generation */ requestContext?: any; /** Output format preference */ outputFormat?: 'code' | 'explanation' | 'both'; } /** * Project management action types */ export type ProjectAction = 'create' | 'install' | 'upgrade' | 'check'; /** * Project types that can be created */ export type ProjectType = 'standalone' | 'api' | 'nextjs'; /** * Package manager options */ export type PackageManager = 'npm' | 'pnpm' | 'yarn'; /** * Validation types for code validation */ export type ValidationType = 'types' | 'schemas' | 'tests' | 'integration'; export declare const UNIT_KINDS: readonly ["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]; export type UnitKind = (typeof UNIT_KINDS)[number]; export interface TemplateUnit { kind: UnitKind; id: string; file: string; } export interface TemplateManifest { slug: string; ref?: string; description?: string; units: TemplateUnit[]; } export interface MergePlan { slug: string; commitSha: string; templateDir: string; units: TemplateUnit[]; } export declare const TemplateUnitSchema: z.ZodObject<{ kind: z.ZodEnum<{ integration: "integration"; "mcp-server": "mcp-server"; tool: "tool"; workflow: "workflow"; agent: "agent"; network: "network"; other: "other"; }>; id: z.ZodString; file: z.ZodString; }, z.core.$strip>; export declare const TemplateManifestSchema: z.ZodObject<{ slug: z.ZodString; ref: z.ZodOptional; description: z.ZodOptional; units: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export declare const AgentBuilderInputSchema: z.ZodObject<{ repo: z.ZodString; ref: z.ZodOptional; slug: z.ZodOptional; targetPath: z.ZodOptional; variables: z.ZodOptional>; }, z.core.$strip>; export declare const MergePlanSchema: z.ZodObject<{ slug: z.ZodString; commitSha: z.ZodString; templateDir: z.ZodString; units: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export declare const CopiedFileSchema: z.ZodObject<{ source: z.ZodString; destination: z.ZodString; unit: z.ZodObject<{ kind: z.ZodEnum<{ integration: "integration"; "mcp-server": "mcp-server"; tool: "tool"; workflow: "workflow"; agent: "agent"; network: "network"; other: "other"; }>; id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare const ConflictSchema: z.ZodObject<{ unit: z.ZodObject<{ kind: z.ZodEnum<{ integration: "integration"; "mcp-server": "mcp-server"; tool: "tool"; workflow: "workflow"; agent: "agent"; network: "network"; other: "other"; }>; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; sourceFile: z.ZodString; targetFile: z.ZodString; }, z.core.$strip>; export declare const FileCopyInputSchema: z.ZodObject<{ orderedUnits: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; templateDir: z.ZodString; commitSha: z.ZodString; slug: z.ZodString; targetPath: z.ZodOptional; variables: z.ZodOptional>; }, z.core.$strip>; export declare const FileCopyResultSchema: z.ZodObject<{ success: z.ZodBoolean; copiedFiles: z.ZodArray; id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; conflicts: z.ZodArray; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; sourceFile: z.ZodString; targetFile: z.ZodString; }, z.core.$strip>>; message: z.ZodString; error: z.ZodOptional; }, z.core.$strip>; export declare const ConflictResolutionSchema: z.ZodObject<{ unit: z.ZodObject<{ kind: z.ZodEnum<{ integration: "integration"; "mcp-server": "mcp-server"; tool: "tool"; workflow: "workflow"; agent: "agent"; network: "network"; other: "other"; }>; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; resolution: z.ZodString; }, z.core.$strip>; export declare const IntelligentMergeInputSchema: z.ZodObject<{ conflicts: z.ZodArray; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; sourceFile: z.ZodString; targetFile: z.ZodString; }, z.core.$strip>>; copiedFiles: z.ZodArray; id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; templateDir: z.ZodString; commitSha: z.ZodString; slug: z.ZodString; targetPath: z.ZodOptional; branchName: z.ZodOptional; }, z.core.$strip>; export declare const IntelligentMergeResultSchema: z.ZodObject<{ success: z.ZodBoolean; applied: z.ZodBoolean; message: z.ZodString; conflictsResolved: z.ZodArray; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; resolution: z.ZodString; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>; export declare const ValidationResultsSchema: z.ZodObject<{ valid: z.ZodBoolean; errorsFixed: z.ZodNumber; remainingErrors: z.ZodNumber; errors: z.ZodOptional>; }, z.core.$strip>; export declare const ValidationFixInputSchema: z.ZodObject<{ commitSha: z.ZodString; slug: z.ZodString; targetPath: z.ZodOptional; templateDir: z.ZodString; orderedUnits: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; copiedFiles: z.ZodArray; id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>>; conflictsResolved: z.ZodOptional; id: z.ZodString; }, z.core.$strip>; issue: z.ZodString; resolution: z.ZodString; }, z.core.$strip>>>; maxIterations: z.ZodDefault>; }, z.core.$strip>; export declare const ValidationFixResultSchema: z.ZodObject<{ success: z.ZodBoolean; applied: z.ZodBoolean; message: z.ZodString; validationResults: z.ZodObject<{ valid: z.ZodBoolean; errorsFixed: z.ZodNumber; remainingErrors: z.ZodNumber; errors: z.ZodOptional>; }, z.core.$strip>; error: z.ZodOptional; }, z.core.$strip>; export declare const ApplyResultSchema: z.ZodObject<{ success: z.ZodBoolean; applied: z.ZodBoolean; branchName: z.ZodOptional; message: z.ZodString; validationResults: z.ZodOptional>; }, z.core.$strip>>; error: z.ZodOptional; errors: z.ZodOptional>; stepResults: z.ZodOptional; analyzeSuccess: z.ZodOptional; discoverSuccess: z.ZodOptional; orderSuccess: z.ZodOptional; prepareBranchSuccess: z.ZodOptional; packageMergeSuccess: z.ZodOptional; installSuccess: z.ZodOptional; copySuccess: z.ZodOptional; mergeSuccess: z.ZodOptional; validationSuccess: z.ZodOptional; filesCopied: z.ZodNumber; conflictsSkipped: z.ZodNumber; conflictsResolved: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; export declare const CloneTemplateResultSchema: z.ZodObject<{ templateDir: z.ZodString; commitSha: z.ZodString; slug: z.ZodString; success: z.ZodOptional; error: z.ZodOptional; targetPath: z.ZodOptional; }, z.core.$strip>; export declare const PackageAnalysisSchema: z.ZodObject<{ name: z.ZodOptional; version: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; peerDependencies: z.ZodOptional>; scripts: z.ZodOptional>; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export declare const DiscoveryResultSchema: z.ZodObject<{ units: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export declare const OrderedUnitsSchema: z.ZodObject<{ orderedUnits: z.ZodArray; id: z.ZodString; file: z.ZodString; }, z.core.$strip>>; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export declare const PackageMergeInputSchema: z.ZodObject<{ commitSha: z.ZodString; slug: z.ZodString; targetPath: z.ZodOptional; packageInfo: z.ZodObject<{ name: z.ZodOptional; version: z.ZodOptional; description: z.ZodOptional; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; peerDependencies: z.ZodOptional>; scripts: z.ZodOptional>; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; export declare const PackageMergeResultSchema: z.ZodObject<{ success: z.ZodBoolean; applied: z.ZodBoolean; message: z.ZodString; error: z.ZodOptional; }, z.core.$strip>; export declare const InstallInputSchema: z.ZodObject<{ targetPath: z.ZodOptional; }, z.core.$strip>; export declare const InstallResultSchema: z.ZodObject<{ success: z.ZodBoolean; error: z.ZodOptional; }, z.core.$strip>; export declare const PrepareBranchInputSchema: z.ZodObject<{ slug: z.ZodString; commitSha: z.ZodOptional; targetPath: z.ZodOptional; }, z.core.$strip>; export declare const PrepareBranchResultSchema: z.ZodObject<{ branchName: z.ZodString; success: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; //# sourceMappingURL=types.d.ts.map