avancement planning
This commit is contained in:
+8
-8
@@ -17,18 +17,18 @@ export declare const EXPERIMENTAL_TOOLS: readonly [import("./tools/tool-registry
|
||||
}, {
|
||||
examples: import("zod").ZodArray<import("zod").ZodObject<{
|
||||
content: import("zod").ZodString;
|
||||
}, "strip", import("zod").ZodTypeAny, {
|
||||
content: string;
|
||||
}, {
|
||||
content: string;
|
||||
}>, "many">;
|
||||
}, import("zod/v4/core").$strip>>;
|
||||
}>, import("./tools/tool-registry").McpToolDeclaration<{
|
||||
transformations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<[string, ...string[]]>, "many">>;
|
||||
transformations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
||||
[x: string]: string;
|
||||
}>>>;
|
||||
}, {
|
||||
instructions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
||||
instructions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
||||
}>, import("./tools/tool-registry").McpToolDeclaration<{
|
||||
fileOrDirPath: import("zod").ZodString;
|
||||
}, import("zod").ZodRawShape>];
|
||||
}, Readonly<{
|
||||
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
||||
}>>];
|
||||
export declare function createMcpServer(options: {
|
||||
workspace?: AngularWorkspace;
|
||||
readOnly?: boolean;
|
||||
|
||||
+5
-1
@@ -5,4 +5,8 @@
|
||||
* 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
|
||||
*/
|
||||
export declare const BEST_PRACTICES_TOOL: import("./tool-registry").McpToolDeclaration<import("zod").ZodRawShape, import("zod").ZodRawShape>;
|
||||
export declare const BEST_PRACTICES_TOOL: import("./tool-registry").McpToolDeclaration<Readonly<{
|
||||
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
||||
}>, Readonly<{
|
||||
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
||||
}>>;
|
||||
|
||||
+1
-11
@@ -15,15 +15,5 @@ export declare const DOC_SEARCH_TOOL: import("./tool-registry").McpToolDeclarati
|
||||
breadcrumb: z.ZodString;
|
||||
url: z.ZodString;
|
||||
content: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
title: string;
|
||||
breadcrumb: string;
|
||||
url: string;
|
||||
content?: string | undefined;
|
||||
}, {
|
||||
title: string;
|
||||
breadcrumb: string;
|
||||
url: string;
|
||||
content?: string | undefined;
|
||||
}>, "many">;
|
||||
}, z.core.$strip>>;
|
||||
}>;
|
||||
|
||||
+1
-5
@@ -11,11 +11,7 @@ export declare const FIND_EXAMPLE_TOOL: import("./tool-registry").McpToolDeclara
|
||||
}, {
|
||||
examples: z.ZodArray<z.ZodObject<{
|
||||
content: z.ZodString;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
content: string;
|
||||
}, {
|
||||
content: string;
|
||||
}>, "many">;
|
||||
}, z.core.$strip>>;
|
||||
}>;
|
||||
/**
|
||||
* Escapes a search query for FTS5 by tokenizing and quoting terms.
|
||||
|
||||
+8
-8
@@ -7,12 +7,10 @@
|
||||
*/
|
||||
import { z } from 'zod';
|
||||
declare const modernizeInputSchema: z.ZodObject<{
|
||||
transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
transformations?: string[] | undefined;
|
||||
}, {
|
||||
transformations?: string[] | undefined;
|
||||
}>;
|
||||
transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
||||
[x: string]: string;
|
||||
}>>>;
|
||||
}, z.core.$strip>;
|
||||
export type ModernizeInput = z.infer<typeof modernizeInputSchema>;
|
||||
export declare function runModernization(input: ModernizeInput): Promise<{
|
||||
content: {
|
||||
@@ -24,8 +22,10 @@ export declare function runModernization(input: ModernizeInput): Promise<{
|
||||
};
|
||||
}>;
|
||||
export declare const MODERNIZE_TOOL: import("./tool-registry").McpToolDeclaration<{
|
||||
transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">>;
|
||||
transformations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
||||
[x: string]: string;
|
||||
}>>>;
|
||||
}, {
|
||||
instructions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
||||
instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
||||
}>;
|
||||
export {};
|
||||
|
||||
Generated
Vendored
+3
-1
@@ -10,5 +10,7 @@ import { ServerNotification, ServerRequest } from '@modelcontextprotocol/sdk/typ
|
||||
import { z } from 'zod';
|
||||
export declare const ZONELESS_MIGRATION_TOOL: import("../tool-registry").McpToolDeclaration<{
|
||||
fileOrDirPath: z.ZodString;
|
||||
}, z.ZodRawShape>;
|
||||
}, Readonly<{
|
||||
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
||||
}>>;
|
||||
export declare function registerZonelessMigrationTool(fileOrDirPath: string, extras: RequestHandlerExtra<ServerRequest, ServerNotification>): Promise<import("./types").MigrationResponse>;
|
||||
|
||||
+8
-15
@@ -6,24 +6,17 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import z from 'zod';
|
||||
export declare const LIST_PROJECTS_TOOL: import("./tool-registry").McpToolDeclaration<z.ZodRawShape, {
|
||||
export declare const LIST_PROJECTS_TOOL: import("./tool-registry").McpToolDeclaration<Readonly<{
|
||||
[k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
||||
}>, {
|
||||
projects: z.ZodArray<z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
type: z.ZodOptional<z.ZodEnum<["application", "library"]>>;
|
||||
type: z.ZodOptional<z.ZodEnum<{
|
||||
application: "application";
|
||||
library: "library";
|
||||
}>>;
|
||||
root: z.ZodString;
|
||||
sourceRoot: z.ZodString;
|
||||
selectorPrefix: z.ZodOptional<z.ZodString>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
name: string;
|
||||
root: string;
|
||||
sourceRoot: string;
|
||||
type?: "application" | "library" | undefined;
|
||||
selectorPrefix?: string | undefined;
|
||||
}, {
|
||||
name: string;
|
||||
root: string;
|
||||
sourceRoot: string;
|
||||
type?: "application" | "library" | undefined;
|
||||
selectorPrefix?: string | undefined;
|
||||
}>, "many">;
|
||||
}, z.core.$strip>>;
|
||||
}>;
|
||||
|
||||
+3
-4
@@ -6,9 +6,9 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
import type { McpServer, ToolCallback } from '@modelcontextprotocol/sdk/server/mcp.js';
|
||||
import { ZodRawShape } from 'zod';
|
||||
import type { ToolAnnotations } from '@modelcontextprotocol/sdk/types';
|
||||
import type { ZodRawShape } from 'zod';
|
||||
import type { AngularWorkspace } from '../../../utilities/config';
|
||||
type ToolConfig = Parameters<McpServer['registerTool']>[1];
|
||||
export interface McpToolContext {
|
||||
workspace?: AngularWorkspace;
|
||||
logger: {
|
||||
@@ -21,7 +21,7 @@ export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends
|
||||
name: string;
|
||||
title?: string;
|
||||
description: string;
|
||||
annotations?: ToolConfig['annotations'];
|
||||
annotations?: ToolAnnotations;
|
||||
inputSchema?: TInput;
|
||||
outputSchema?: TOutput;
|
||||
factory: McpToolFactory<TInput>;
|
||||
@@ -32,4 +32,3 @@ export interface McpToolDeclaration<TInput extends ZodRawShape, TOutput extends
|
||||
export type AnyMcpToolDeclaration = McpToolDeclaration<any, any>;
|
||||
export declare function declareTool<TInput extends ZodRawShape, TOutput extends ZodRawShape>(declaration: McpToolDeclaration<TInput, TOutput>): McpToolDeclaration<TInput, TOutput>;
|
||||
export declare function registerTools(server: McpServer, context: McpToolContext, declarations: AnyMcpToolDeclaration[]): Promise<void>;
|
||||
export {};
|
||||
|
||||
+1
-1
@@ -22,4 +22,4 @@ class Version {
|
||||
this.patch = patch;
|
||||
}
|
||||
}
|
||||
exports.VERSION = new Version('20.3.10');
|
||||
exports.VERSION = new Version('20.3.26');
|
||||
|
||||
Reference in New Issue
Block a user