UNPKG

@angular/cli

Version:
44 lines (43 loc) 1.46 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { z } from 'zod'; import { type McpToolContext, type McpToolDeclaration } from './tool-registry'; declare const modernizeInputSchema: z.ZodObject<{ transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<{ [x: string]: string; }>>>; path: z.ZodOptional<z.ZodString>; workspace: z.ZodOptional<z.ZodString>; project: z.ZodOptional<z.ZodString>; }, z.core.$strip>; declare const modernizeOutputSchema: z.ZodObject<{ instructions: z.ZodOptional<z.ZodArray<z.ZodString>>; logs: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$strip>; export type ModernizeInput = z.infer<typeof modernizeInputSchema>; export type ModernizeOutput = z.infer<typeof modernizeOutputSchema>; export declare function runModernization(input: ModernizeInput, context: McpToolContext): Promise<{ content: { type: "text"; text: string; }[]; structuredContent: { instructions: string[]; }; } | { content: { type: "text"; text: string; }[]; structuredContent: { instructions: string[] | undefined; logs: string[]; }; }>; export declare const MODERNIZE_TOOL: McpToolDeclaration<typeof modernizeInputSchema.shape, typeof modernizeOutputSchema.shape>; export {};