@angular/cli
Version:
CLI tool for Angular
38 lines (37 loc) • 1.29 kB
TypeScript
/**
* @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 Host } from '../host';
import { type McpToolDeclaration } from './tool-registry';
declare const buildToolInputSchema: z.ZodObject<{
project: z.ZodOptional<z.ZodString>;
configuration: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type BuildToolInput = z.infer<typeof buildToolInputSchema>;
declare const buildToolOutputSchema: z.ZodObject<{
status: z.ZodEnum<{
success: "success";
failure: "failure";
}>;
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
path: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type BuildToolOutput = z.infer<typeof buildToolOutputSchema>;
export declare function runBuild(input: BuildToolInput, host: Host): Promise<{
content: {
type: "text";
text: string;
}[];
structuredContent: {
status: "success" | "failure";
logs?: string[] | undefined;
path?: string | undefined;
};
}>;
export declare const BUILD_TOOL: McpToolDeclaration<typeof buildToolInputSchema.shape, typeof buildToolOutputSchema.shape>;
export {};