@tsed/cli 7.0.0-beta.1 → 7.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/bin/ts-mode.js +10 -0
- package/lib/esm/bin/tsed.js +4 -2
- package/lib/esm/commands/add/AddCmd.js +2 -1
- package/lib/esm/commands/generate/GenerateCmd.js +2 -1
- package/lib/esm/commands/index.js +3 -1
- package/lib/esm/commands/init/InitCmd.js +20 -113
- package/lib/esm/commands/init/InitOptionsCmd.js +17 -0
- package/lib/esm/commands/init/config/FeaturesPrompt.js +35 -36
- package/lib/esm/commands/init/config/InitSchema.js +337 -0
- package/lib/esm/commands/init/prompts/getFeaturesPrompt.js +1 -1
- package/lib/esm/commands/mcp/McpCommand.js +15 -0
- package/lib/esm/commands/mcp/resources/index.js +4 -0
- package/lib/esm/commands/mcp/resources/initOptionsResource.js +93 -0
- package/lib/esm/commands/mcp/resources/projectInfoResource.js +43 -0
- package/lib/esm/commands/mcp/resources/serverInfoResource.js +40 -0
- package/lib/esm/commands/mcp/schema/InitMCPSchema.js +9 -0
- package/lib/esm/commands/mcp/schema/ProjectPreferencesSchema.js +16 -0
- package/lib/esm/commands/mcp/tools/generateTool.js +105 -0
- package/lib/esm/commands/mcp/tools/getTemplateTool.js +47 -0
- package/lib/esm/commands/mcp/tools/index.js +6 -0
- package/lib/esm/commands/mcp/tools/initProjectTool.js +64 -0
- package/lib/esm/commands/mcp/tools/listTemplatesTool.js +37 -0
- package/lib/esm/commands/mcp/tools/setWorkspaceTool.js +64 -0
- package/lib/esm/commands/run/RunCmd.js +4 -1
- package/lib/esm/commands/template/CreateTemplateCommand.js +2 -1
- package/lib/esm/commands/update/UpdateCmd.js +3 -4
- package/lib/esm/index.js +3 -0
- package/lib/esm/processors/transformConfigFile.js +1 -1
- package/lib/esm/processors/transformServerFile.js +5 -7
- package/lib/esm/services/CliProjectService.js +7 -3
- package/lib/esm/services/CliStats.js +45 -0
- package/lib/esm/services/CliTemplatesService.js +13 -4
- package/lib/esm/templates/agents.template.js +17 -0
- package/lib/esm/templates/asyncFactory.template.js +4 -3
- package/lib/esm/templates/barrels.template.js +1 -8
- package/lib/esm/templates/command.template.js +1 -0
- package/lib/esm/templates/controller.template.js +7 -0
- package/lib/esm/templates/decorator.template.js +22 -11
- package/lib/esm/templates/dockerfile.template.js +5 -0
- package/lib/esm/templates/exception-filter.template.js +1 -0
- package/lib/esm/templates/factory.template.js +4 -3
- package/lib/esm/templates/index.command.template.js +1 -1
- package/lib/esm/templates/index.controller.template.js +12 -8
- package/lib/esm/templates/index.js +1 -0
- package/lib/esm/templates/index.logger.template.js +0 -1
- package/lib/esm/templates/interceptor.template.js +1 -0
- package/lib/esm/templates/interface.template.js +1 -0
- package/lib/esm/templates/middleware.template.js +14 -4
- package/lib/esm/templates/model.template.js +1 -0
- package/lib/esm/templates/module.template.js +1 -0
- package/lib/esm/templates/pipe.template.js +1 -0
- package/lib/esm/templates/prisma.service.template.js +1 -0
- package/lib/esm/templates/repository.template.js +1 -0
- package/lib/esm/templates/response-filter.template.js +1 -0
- package/lib/esm/templates/service.template.js +1 -0
- package/lib/esm/templates/value.template.js +1 -0
- package/lib/esm/utils/resolveSchema.js +17 -0
- package/lib/esm/utils/summarizeSchema.js +24 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/bin/ts-mode.d.ts +1 -0
- package/lib/types/bin/tsed.d.ts +1 -1
- package/lib/types/commands/generate/GenerateCmd.d.ts +38 -1
- package/lib/types/commands/index.d.ts +103 -1
- package/lib/types/commands/init/InitCmd.d.ts +2 -5
- package/lib/types/commands/init/InitOptionsCmd.d.ts +52 -0
- package/lib/types/commands/init/config/FeaturesPrompt.d.ts +26 -32
- package/lib/types/commands/init/config/InitSchema.d.ts +18 -0
- package/lib/types/commands/mcp/McpCommand.d.ts +52 -0
- package/lib/types/commands/mcp/resources/index.d.ts +2 -0
- package/lib/types/commands/mcp/resources/initOptionsResource.d.ts +1 -0
- package/lib/types/commands/mcp/resources/projectInfoResource.d.ts +1 -0
- package/lib/types/commands/mcp/resources/serverInfoResource.d.ts +1 -0
- package/lib/types/commands/mcp/schema/InitMCPSchema.d.ts +5 -0
- package/lib/types/commands/mcp/schema/ProjectPreferencesSchema.d.ts +9 -0
- package/lib/types/commands/mcp/tools/generateTool.d.ts +116 -0
- package/lib/types/commands/mcp/tools/getTemplateTool.d.ts +114 -0
- package/lib/types/commands/mcp/tools/index.d.ts +345 -0
- package/lib/types/commands/mcp/tools/initProjectTool.d.ts +116 -0
- package/lib/types/commands/mcp/tools/listTemplatesTool.d.ts +114 -0
- package/lib/types/commands/mcp/tools/setWorkspaceTool.d.ts +119 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/interfaces/InitCmdOptions.d.ts +1 -1
- package/lib/types/pipes/SymbolNamePipe.d.ts +1 -1
- package/lib/types/services/CliProjectService.d.ts +1 -1
- package/lib/types/services/CliStats.d.ts +36 -0
- package/lib/types/services/CliTemplatesService.d.ts +6 -5
- package/lib/types/templates/agents.template.d.ts +17 -0
- package/lib/types/templates/asyncFactory.template.d.ts +1 -0
- package/lib/types/templates/barrels.template.d.ts +1 -0
- package/lib/types/templates/command.template.d.ts +1 -0
- package/lib/types/templates/config.template.d.ts +1 -0
- package/lib/types/templates/controller.template.d.ts +1 -0
- package/lib/types/templates/decorator.template.d.ts +1 -0
- package/lib/types/templates/docker-compose.template.d.ts +1 -0
- package/lib/types/templates/exception-filter.template.d.ts +1 -0
- package/lib/types/templates/factory.template.d.ts +1 -0
- package/lib/types/templates/index.command.template.d.ts +1 -0
- package/lib/types/templates/index.config.utils.template.d.ts +1 -0
- package/lib/types/templates/index.controller.template.d.ts +1 -0
- package/lib/types/templates/index.d.ts +1 -0
- package/lib/types/templates/index.logger.template.d.ts +3 -2
- package/lib/types/templates/index.template.d.ts +1 -0
- package/lib/types/templates/interceptor.template.d.ts +1 -0
- package/lib/types/templates/interface.template.d.ts +1 -0
- package/lib/types/templates/middleware.template.d.ts +1 -0
- package/lib/types/templates/model.template.d.ts +1 -0
- package/lib/types/templates/module.template.d.ts +1 -0
- package/lib/types/templates/pipe.template.d.ts +1 -0
- package/lib/types/templates/prisma.service.template.d.ts +1 -0
- package/lib/types/templates/readme.template.d.ts +1 -0
- package/lib/types/templates/repository.template.d.ts +1 -0
- package/lib/types/templates/response-filter.template.d.ts +1 -0
- package/lib/types/templates/server.template.d.ts +1 -0
- package/lib/types/templates/service.template.d.ts +1 -0
- package/lib/types/templates/tsconfig.spec.template.d.ts +1 -0
- package/lib/types/templates/value.template.d.ts +1 -0
- package/lib/types/utils/defineTemplate.d.ts +11 -0
- package/lib/types/utils/resolveSchema.d.ts +2 -0
- package/lib/types/utils/summarizeSchema.d.ts +8 -0
- package/package.json +18 -13
- package/templates/views/home.ejs +347 -0
- package/lib/esm/commands/init/config/InitFileSchema.js +0 -49
- package/lib/types/commands/init/config/InitFileSchema.d.ts +0 -49
- package/templates/views/swagger.ejs +0 -100
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/bin/tsed.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "
|
|
2
|
+
import "./ts-mode.js";
|
|
@@ -6,7 +6,44 @@ export declare class GenerateCmd implements CommandProvider {
|
|
|
6
6
|
protected projectPackageJson: ProjectPackageJson;
|
|
7
7
|
protected projectService: CliProjectService;
|
|
8
8
|
protected templates: CliTemplatesService;
|
|
9
|
-
$prompt(data: Partial<GenerateCmdContext>): Promise<
|
|
9
|
+
$prompt(data: Partial<GenerateCmdContext>): Promise<(import("inquirer").NumberQuestion<GenerateCmdContext> | import("inquirer").ListQuestion<GenerateCmdContext> | import("inquirer").CheckboxQuestion<GenerateCmdContext> | import("inquirer").PasswordQuestion<GenerateCmdContext> | import("inquirer").InputQuestion<GenerateCmdContext> | import("inquirer").RawListQuestion<GenerateCmdContext> | import("inquirer").ExpandQuestion<GenerateCmdContext> | import("inquirer").ConfirmQuestion<GenerateCmdContext> | import("inquirer").EditorQuestion<GenerateCmdContext> | import("inquirer-autocomplete-prompt").default.AutocompleteQuestionOptions<GenerateCmdContext> | readonly import("inquirer").DistinctQuestion<GenerateCmdContext>[] | import("rxjs").Observable<import("inquirer").DistinctQuestion<GenerateCmdContext>> | {
|
|
10
|
+
[x: string]: (import("inquirer").NumberQuestion<GenerateCmdContext> & {
|
|
11
|
+
name?: never;
|
|
12
|
+
}) | (import("inquirer").ListQuestion<GenerateCmdContext> & {
|
|
13
|
+
name?: never;
|
|
14
|
+
}) | (import("inquirer").CheckboxQuestion<GenerateCmdContext> & {
|
|
15
|
+
name?: never;
|
|
16
|
+
}) | (import("inquirer").PasswordQuestion<GenerateCmdContext> & {
|
|
17
|
+
name?: never;
|
|
18
|
+
}) | (import("inquirer").InputQuestion<GenerateCmdContext> & {
|
|
19
|
+
name?: never;
|
|
20
|
+
}) | (import("inquirer").RawListQuestion<GenerateCmdContext> & {
|
|
21
|
+
name?: never;
|
|
22
|
+
}) | (import("inquirer").ExpandQuestion<GenerateCmdContext> & {
|
|
23
|
+
name?: never;
|
|
24
|
+
}) | (import("inquirer").ConfirmQuestion<GenerateCmdContext> & {
|
|
25
|
+
name?: never;
|
|
26
|
+
}) | (import("inquirer").EditorQuestion<GenerateCmdContext> & {
|
|
27
|
+
name?: never;
|
|
28
|
+
}) | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
type: string;
|
|
31
|
+
name: string;
|
|
32
|
+
message: string;
|
|
33
|
+
default: string | undefined;
|
|
34
|
+
when: () => boolean;
|
|
35
|
+
source: (_: any, keyword: string) => {
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
} | {
|
|
40
|
+
type: string;
|
|
41
|
+
name: string;
|
|
42
|
+
message: string;
|
|
43
|
+
default: ((state: Partial<GenerateCmdContext>) => string) | undefined;
|
|
44
|
+
when: boolean;
|
|
45
|
+
source?: undefined;
|
|
46
|
+
})[]>;
|
|
10
47
|
$mapContext(ctx: Partial<GenerateCmdContext>): GenerateCmdContext;
|
|
11
48
|
$exec(ctx: GenerateCmdContext): Task[];
|
|
12
49
|
}
|
|
@@ -4,5 +4,107 @@ import { InitCmd } from "./init/InitCmd.js";
|
|
|
4
4
|
import { RunCmd } from "./run/RunCmd.js";
|
|
5
5
|
import { CreateTemplateCommand } from "./template/CreateTemplateCommand.js";
|
|
6
6
|
import { UpdateCmd } from "./update/UpdateCmd.js";
|
|
7
|
-
declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof GenerateCmd | typeof InitCmd |
|
|
7
|
+
declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof GenerateCmd | typeof InitCmd | import("@tsed/di").FactoryTokenProvider<{
|
|
8
|
+
$prompt: any;
|
|
9
|
+
$exec: any;
|
|
10
|
+
token: import("@tsed/di").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
11
|
+
name: string;
|
|
12
|
+
alias?: string;
|
|
13
|
+
description: string;
|
|
14
|
+
args?: {
|
|
15
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
16
|
+
};
|
|
17
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
18
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
19
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
20
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
21
|
+
}>>) | undefined;
|
|
22
|
+
options?: {
|
|
23
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
24
|
+
};
|
|
25
|
+
allowUnknownOption?: boolean;
|
|
26
|
+
enableFeatures?: string[];
|
|
27
|
+
disableReadUpPkg?: boolean;
|
|
28
|
+
bindLogger?: boolean;
|
|
29
|
+
} | {
|
|
30
|
+
$prompt: any;
|
|
31
|
+
$exec: any;
|
|
32
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
33
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
34
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
35
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
36
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
37
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
38
|
+
name: string;
|
|
39
|
+
alias?: string;
|
|
40
|
+
description: string;
|
|
41
|
+
args?: {
|
|
42
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
43
|
+
};
|
|
44
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
45
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
46
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
47
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
48
|
+
}>>) | undefined;
|
|
49
|
+
options?: {
|
|
50
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
51
|
+
};
|
|
52
|
+
allowUnknownOption?: boolean;
|
|
53
|
+
enableFeatures?: string[];
|
|
54
|
+
disableReadUpPkg?: boolean;
|
|
55
|
+
bindLogger?: boolean;
|
|
56
|
+
}> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
57
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
58
|
+
}>>> | import("@tsed/di").FactoryTokenProvider<{
|
|
59
|
+
$prompt: any;
|
|
60
|
+
$exec: any;
|
|
61
|
+
token: import("@tsed/di").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
62
|
+
name: string;
|
|
63
|
+
alias?: string;
|
|
64
|
+
description: string;
|
|
65
|
+
args?: {
|
|
66
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
67
|
+
};
|
|
68
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
69
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
70
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
71
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
72
|
+
}>>) | undefined;
|
|
73
|
+
options?: {
|
|
74
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
75
|
+
};
|
|
76
|
+
allowUnknownOption?: boolean;
|
|
77
|
+
enableFeatures?: string[];
|
|
78
|
+
disableReadUpPkg?: boolean;
|
|
79
|
+
bindLogger?: boolean;
|
|
80
|
+
} | {
|
|
81
|
+
$prompt: any;
|
|
82
|
+
$exec: any;
|
|
83
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
84
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
85
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
86
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
87
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
88
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
89
|
+
name: string;
|
|
90
|
+
alias?: string;
|
|
91
|
+
description: string;
|
|
92
|
+
args?: {
|
|
93
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
94
|
+
};
|
|
95
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
96
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
97
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
98
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
99
|
+
}>>) | undefined;
|
|
100
|
+
options?: {
|
|
101
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
102
|
+
};
|
|
103
|
+
allowUnknownOption?: boolean;
|
|
104
|
+
enableFeatures?: string[];
|
|
105
|
+
disableReadUpPkg?: boolean;
|
|
106
|
+
bindLogger?: boolean;
|
|
107
|
+
}> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
108
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
109
|
+
}>>> | typeof RunCmd | typeof UpdateCmd)[];
|
|
8
110
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CliExeca, CliFs, CliLoadFile, CliPlugins, type CommandProvider, PackageManagersModule, ProjectPackageJson, type QuestionOptions, type Task } from "@tsed/cli-core";
|
|
2
|
-
import {
|
|
2
|
+
import type { InitCmdContext } from "../../interfaces/index.js";
|
|
3
3
|
import type { InitOptions } from "../../interfaces/InitCmdOptions.js";
|
|
4
4
|
import { PlatformsModule } from "../../platforms/PlatformsModule.js";
|
|
5
5
|
import { RuntimesModule } from "../../runtimes/RuntimesModule.js";
|
|
@@ -16,11 +16,8 @@ export declare class InitCmd implements CommandProvider {
|
|
|
16
16
|
protected project: CliProjectService;
|
|
17
17
|
protected execa: CliExeca;
|
|
18
18
|
protected fs: CliFs;
|
|
19
|
-
|
|
20
|
-
$beforePrompt(initialOptions: Partial<InitOptions>): Promise<any>;
|
|
21
|
-
$prompt(initialOptions: Partial<InitOptions>): QuestionOptions;
|
|
19
|
+
$prompt(initialOptions: Partial<InitOptions>): Promise<QuestionOptions>;
|
|
22
20
|
$mapContext(ctx: any): InitOptions;
|
|
23
|
-
$beforeExec(ctx: InitOptions): Promise<any>;
|
|
24
21
|
$exec(ctx: InitOptions): Promise<Task[]>;
|
|
25
22
|
$afterPostInstall(): {
|
|
26
23
|
title: string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const InitOptionsCommand: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
$prompt: any;
|
|
3
|
+
$exec: any;
|
|
4
|
+
token: import("@tsed/cli-core").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
5
|
+
name: string;
|
|
6
|
+
alias?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
args?: {
|
|
9
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
10
|
+
};
|
|
11
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
12
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
13
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
14
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
15
|
+
}>>) | undefined;
|
|
16
|
+
options?: {
|
|
17
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
18
|
+
};
|
|
19
|
+
allowUnknownOption?: boolean;
|
|
20
|
+
enableFeatures?: string[];
|
|
21
|
+
disableReadUpPkg?: boolean;
|
|
22
|
+
bindLogger?: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
$prompt: any;
|
|
25
|
+
$exec: any;
|
|
26
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
27
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
28
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
29
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
30
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
31
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
32
|
+
name: string;
|
|
33
|
+
alias?: string;
|
|
34
|
+
description: string;
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
37
|
+
};
|
|
38
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
39
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
40
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
41
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
42
|
+
}>>) | undefined;
|
|
43
|
+
options?: {
|
|
44
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
45
|
+
};
|
|
46
|
+
allowUnknownOption?: boolean;
|
|
47
|
+
enableFeatures?: string[];
|
|
48
|
+
disableReadUpPkg?: boolean;
|
|
49
|
+
bindLogger?: boolean;
|
|
50
|
+
}> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
51
|
+
indent: import("@tsed/schema").JsonSchema<number>;
|
|
52
|
+
}>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type InitOptions
|
|
1
|
+
import { type InitOptions } from "../../../interfaces/index.js";
|
|
2
2
|
export interface Feature {
|
|
3
3
|
name: string;
|
|
4
4
|
value?: any;
|
|
@@ -14,7 +14,7 @@ export declare enum FeatureType {
|
|
|
14
14
|
PASSPORTJS = "passportjs",
|
|
15
15
|
CONFIG = "config",
|
|
16
16
|
COMMANDS = "commands",
|
|
17
|
-
|
|
17
|
+
ORM = "orm",
|
|
18
18
|
DOC = "doc",
|
|
19
19
|
CONFIG_ENVS = "config:envs",
|
|
20
20
|
CONFIG_DOTENV = "config:dotenv",
|
|
@@ -25,40 +25,34 @@ export declare enum FeatureType {
|
|
|
25
25
|
CONFIG_MONGO = "config:mongo:premium",
|
|
26
26
|
CONFIG_VAULT = "config:vault:premium",
|
|
27
27
|
CONFIG_POSTGRES = "config:postgres:premium",
|
|
28
|
-
SWAGGER = "swagger",
|
|
29
|
-
SCALAR = "scalar",
|
|
30
|
-
PRISMA = "prisma",
|
|
31
|
-
MONGOOSE = "mongoose",
|
|
32
|
-
TYPEORM = "typeorm",
|
|
33
|
-
TYPEORM_MYSQL = "typeorm:mysql",
|
|
34
|
-
TYPEORM_MARIADB = "typeorm:mariadb",
|
|
35
|
-
TYPEORM_POSTGRES = "typeorm:postgres",
|
|
36
|
-
TYPEORM_COCKROACHDB = "typeorm:cockroachdb",
|
|
37
|
-
TYPEORM_SQLITE = "typeorm:sqlite",
|
|
38
|
-
TYPEORM_BETTER_SQLITE3 = "typeorm:better-sqlite3",
|
|
39
|
-
TYPEORM_CORDOVA = "typeorm:cordova",
|
|
40
|
-
TYPEORM_NATIVESCRIPT = "typeorm:nativescript",
|
|
41
|
-
TYPEORM_ORACLE = "typeorm:oracle",
|
|
42
|
-
TYPEORM_MSSQL = "typeorm:mssql",
|
|
43
|
-
TYPEORM_MONGODB = "typeorm:mongodb",
|
|
44
|
-
TYPEORM_SQLJS = "typeorm:sqljs",
|
|
45
|
-
TYPEORM_REACTNATIVE = "typeorm:reactnative",
|
|
46
|
-
TYPEORM_EXPO = "typeorm:expo",
|
|
28
|
+
SWAGGER = "doc:swagger",
|
|
29
|
+
SCALAR = "doc:scalar",
|
|
30
|
+
PRISMA = "orm:prisma",
|
|
31
|
+
MONGOOSE = "orm:mongoose",
|
|
32
|
+
TYPEORM = "orm:typeorm",
|
|
33
|
+
TYPEORM_MYSQL = "orm:typeorm:mysql",
|
|
34
|
+
TYPEORM_MARIADB = "orm:typeorm:mariadb",
|
|
35
|
+
TYPEORM_POSTGRES = "orm:typeorm:postgres",
|
|
36
|
+
TYPEORM_COCKROACHDB = "orm:typeorm:cockroachdb",
|
|
37
|
+
TYPEORM_SQLITE = "orm:typeorm:sqlite",
|
|
38
|
+
TYPEORM_BETTER_SQLITE3 = "orm:typeorm:better-sqlite3",
|
|
39
|
+
TYPEORM_CORDOVA = "orm:typeorm:cordova",
|
|
40
|
+
TYPEORM_NATIVESCRIPT = "orm:typeorm:nativescript",
|
|
41
|
+
TYPEORM_ORACLE = "orm:typeorm:oracle",
|
|
42
|
+
TYPEORM_MSSQL = "orm:typeorm:mssql",
|
|
43
|
+
TYPEORM_MONGODB = "orm:typeorm:mongodb",
|
|
44
|
+
TYPEORM_SQLJS = "orm:typeorm:sqljs",
|
|
45
|
+
TYPEORM_REACTNATIVE = "orm:typeorm:reactnative",
|
|
46
|
+
TYPEORM_EXPO = "orm:typeorm:expo",
|
|
47
47
|
TESTING = "testing",
|
|
48
|
-
JEST = "jest",
|
|
49
|
-
VITEST = "vitest",
|
|
48
|
+
JEST = "testing:jest",
|
|
49
|
+
VITEST = "testing:vitest",
|
|
50
50
|
LINTER = "linter",
|
|
51
|
-
ESLINT = "eslint",
|
|
52
|
-
LINT_STAGED = "lintstaged",
|
|
53
|
-
PRETTIER = "prettier"
|
|
51
|
+
ESLINT = "linter:eslint",
|
|
52
|
+
LINT_STAGED = "linter:lintstaged",
|
|
53
|
+
PRETTIER = "linter:prettier"
|
|
54
54
|
}
|
|
55
55
|
export declare const FeaturesMap: Record<string, Feature>;
|
|
56
|
-
export declare const FrameworksPrompt: {
|
|
57
|
-
message: string;
|
|
58
|
-
type: string;
|
|
59
|
-
name: string;
|
|
60
|
-
choices: PlatformType[];
|
|
61
|
-
};
|
|
62
56
|
export declare const FeaturesPrompt: (availableRuntimes: string[], availablePackageManagers: string[]) => ({
|
|
63
57
|
type: string;
|
|
64
58
|
name: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PackageManager } from "@tsed/cli-core";
|
|
2
|
+
import { ArchitectureConvention, PlatformType, ProjectConvention } from "../../../interfaces/index.js";
|
|
3
|
+
import type { RuntimeTypes } from "../../../interfaces/RuntimeTypes.js";
|
|
4
|
+
import { FeatureType } from "../../init/config/FeaturesPrompt.js";
|
|
5
|
+
export declare const InitSchema: () => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
6
|
+
root: import("@tsed/schema").JsonSchema<string>;
|
|
7
|
+
projectName: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
8
|
+
platform: import("@tsed/schema").JsonSchema<PlatformType>;
|
|
9
|
+
architecture: import("@tsed/schema").JsonSchema<ArchitectureConvention>;
|
|
10
|
+
convention: import("@tsed/schema").JsonSchema<ProjectConvention>;
|
|
11
|
+
features: import("@tsed/schema").JsonSchema<FeatureType[]>;
|
|
12
|
+
runtime: import("@tsed/schema").JsonSchema<RuntimeTypes>;
|
|
13
|
+
packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
|
|
14
|
+
GH_TOKEN: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
15
|
+
tsedVersion: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
16
|
+
file: import("@tsed/schema").JsonSchema<string | undefined>;
|
|
17
|
+
skipPrompt: import("@tsed/schema").JsonSchema<boolean | undefined>;
|
|
18
|
+
}> & Record<string, unknown>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const McpCommand: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
$prompt: any;
|
|
3
|
+
$exec: any;
|
|
4
|
+
token: import("@tsed/cli-core").TokenProvider<import("@tsed/cli-core").CommandProvider>;
|
|
5
|
+
name: string;
|
|
6
|
+
alias?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
args?: {
|
|
9
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
10
|
+
};
|
|
11
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
12
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
13
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
14
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
15
|
+
}>>) | undefined;
|
|
16
|
+
options?: {
|
|
17
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
18
|
+
};
|
|
19
|
+
allowUnknownOption?: boolean;
|
|
20
|
+
enableFeatures?: string[];
|
|
21
|
+
disableReadUpPkg?: boolean;
|
|
22
|
+
bindLogger?: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
$prompt: any;
|
|
25
|
+
$exec: any;
|
|
26
|
+
prompt?<T extends import("inquirer").Answers = import("inquirer").Answers>(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
|
|
27
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
28
|
+
}>>): import("@tsed/cli-core").QuestionOptions<T> | Promise<import("@tsed/cli-core").QuestionOptions<T>>;
|
|
29
|
+
handler: (data: import("@tsed/schema").PropsToShape<{
|
|
30
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
31
|
+
}>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
|
|
32
|
+
name: string;
|
|
33
|
+
alias?: string;
|
|
34
|
+
description: string;
|
|
35
|
+
args?: {
|
|
36
|
+
[key: string]: import("@tsed/cli-core").CommandArg;
|
|
37
|
+
};
|
|
38
|
+
inputSchema?: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
39
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
40
|
+
}>> | (() => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
41
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
42
|
+
}>>) | undefined;
|
|
43
|
+
options?: {
|
|
44
|
+
[key: string]: import("@tsed/cli-core").CommandOpts;
|
|
45
|
+
};
|
|
46
|
+
allowUnknownOption?: boolean;
|
|
47
|
+
enableFeatures?: string[];
|
|
48
|
+
disableReadUpPkg?: boolean;
|
|
49
|
+
bindLogger?: boolean;
|
|
50
|
+
}> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
|
|
51
|
+
http: import("@tsed/schema").JsonSchema<boolean>;
|
|
52
|
+
}>>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initOptionsResource: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const projectInfoResource: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const serverInfoResource: any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageManager } from "@tsed/cli-core";
|
|
2
|
+
import { PlatformType } from "../../../interfaces/PlatformType.js";
|
|
3
|
+
import { ProjectConvention } from "../../../interfaces/ProjectConvention.js";
|
|
4
|
+
export declare const ProjectPreferenceSchema: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
|
|
5
|
+
convention: import("@tsed/schema").JsonSchema<ProjectConvention>;
|
|
6
|
+
packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
|
|
7
|
+
runtime: import("@tsed/schema").JsonSchema<"node" | "babel" | "webpack" | "bun" | "swc">;
|
|
8
|
+
platform: import("@tsed/schema").JsonSchema<PlatformType>;
|
|
9
|
+
}> | undefined>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export declare const generateTool: import("@tsed/cli-core").FactoryTokenProvider<{
|
|
2
|
+
inputSchema: Record<string, import("zod").AnyZodObject> | undefined;
|
|
3
|
+
outputSchema: Record<string, import("zod").AnyZodObject> | undefined;
|
|
4
|
+
handler(args: import("@tsed/schema").PropsToShape<{
|
|
5
|
+
id: import("@tsed/schema").JsonSchema<string>;
|
|
6
|
+
name: import("@tsed/schema").JsonSchema<string>;
|
|
7
|
+
properties: import("@tsed/schema").JsonSchema<(import("@tsed/schema").PropsToShape<Record<string, import("@tsed/schema").JsonSchema<any>>> & Record<string, unknown>) | undefined>;
|
|
8
|
+
}>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
|
|
9
|
+
[x: string]: unknown;
|
|
10
|
+
content: ({
|
|
11
|
+
type: "text";
|
|
12
|
+
text: string;
|
|
13
|
+
annotations?: {
|
|
14
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
15
|
+
priority?: number | undefined;
|
|
16
|
+
lastModified?: string | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
_meta?: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} | {
|
|
22
|
+
type: "image";
|
|
23
|
+
data: string;
|
|
24
|
+
mimeType: string;
|
|
25
|
+
annotations?: {
|
|
26
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
27
|
+
priority?: number | undefined;
|
|
28
|
+
lastModified?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
_meta?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
} | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
type: "audio";
|
|
35
|
+
data: string;
|
|
36
|
+
mimeType: string;
|
|
37
|
+
annotations?: {
|
|
38
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
39
|
+
priority?: number | undefined;
|
|
40
|
+
lastModified?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
_meta?: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
} | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
uri: string;
|
|
47
|
+
name: string;
|
|
48
|
+
type: "resource_link";
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
mimeType?: string | undefined;
|
|
51
|
+
annotations?: {
|
|
52
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
53
|
+
priority?: number | undefined;
|
|
54
|
+
lastModified?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
_meta?: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
} | undefined;
|
|
59
|
+
icons?: {
|
|
60
|
+
src: string;
|
|
61
|
+
mimeType?: string | undefined;
|
|
62
|
+
sizes?: string[] | undefined;
|
|
63
|
+
theme?: "light" | "dark" | undefined;
|
|
64
|
+
}[] | undefined;
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
type: "resource";
|
|
68
|
+
resource: {
|
|
69
|
+
uri: string;
|
|
70
|
+
text: string;
|
|
71
|
+
mimeType?: string | undefined;
|
|
72
|
+
_meta?: {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
} | undefined;
|
|
75
|
+
} | {
|
|
76
|
+
uri: string;
|
|
77
|
+
blob: string;
|
|
78
|
+
mimeType?: string | undefined;
|
|
79
|
+
_meta?: {
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
} | undefined;
|
|
82
|
+
};
|
|
83
|
+
annotations?: {
|
|
84
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
85
|
+
priority?: number | undefined;
|
|
86
|
+
lastModified?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
_meta?: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
} | undefined;
|
|
91
|
+
})[];
|
|
92
|
+
_meta?: {
|
|
93
|
+
[x: string]: unknown;
|
|
94
|
+
progressToken?: string | number | undefined;
|
|
95
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
96
|
+
taskId: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
structuredContent?: {
|
|
100
|
+
[x: string]: unknown;
|
|
101
|
+
} | undefined;
|
|
102
|
+
isError?: boolean | undefined;
|
|
103
|
+
} | {
|
|
104
|
+
content: never[];
|
|
105
|
+
structuredContent: {
|
|
106
|
+
code: string;
|
|
107
|
+
message: any;
|
|
108
|
+
};
|
|
109
|
+
}>;
|
|
110
|
+
_meta?: Record<string, unknown> | undefined;
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
|
|
113
|
+
title?: string | undefined;
|
|
114
|
+
token?: import("@tsed/cli-core").TokenProvider;
|
|
115
|
+
name: string;
|
|
116
|
+
}>;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export declare const getTemplateTool: import("@tsed/di").FactoryTokenProvider<{
|
|
2
|
+
inputSchema: Record<string, import("zod").AnyZodObject> | undefined;
|
|
3
|
+
outputSchema: Record<string, import("zod").AnyZodObject> | undefined;
|
|
4
|
+
handler(args: import("@tsed/schema").PropsToShape<{
|
|
5
|
+
id: import("@tsed/schema").JsonSchema<string>;
|
|
6
|
+
}>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
content: ({
|
|
9
|
+
type: "text";
|
|
10
|
+
text: string;
|
|
11
|
+
annotations?: {
|
|
12
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
13
|
+
priority?: number | undefined;
|
|
14
|
+
lastModified?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
_meta?: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
} | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
type: "image";
|
|
21
|
+
data: string;
|
|
22
|
+
mimeType: string;
|
|
23
|
+
annotations?: {
|
|
24
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
25
|
+
priority?: number | undefined;
|
|
26
|
+
lastModified?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
_meta?: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
} | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
type: "audio";
|
|
33
|
+
data: string;
|
|
34
|
+
mimeType: string;
|
|
35
|
+
annotations?: {
|
|
36
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
37
|
+
priority?: number | undefined;
|
|
38
|
+
lastModified?: string | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
_meta?: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
uri: string;
|
|
45
|
+
name: string;
|
|
46
|
+
type: "resource_link";
|
|
47
|
+
description?: string | undefined;
|
|
48
|
+
mimeType?: string | undefined;
|
|
49
|
+
annotations?: {
|
|
50
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
51
|
+
priority?: number | undefined;
|
|
52
|
+
lastModified?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
_meta?: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
} | undefined;
|
|
57
|
+
icons?: {
|
|
58
|
+
src: string;
|
|
59
|
+
mimeType?: string | undefined;
|
|
60
|
+
sizes?: string[] | undefined;
|
|
61
|
+
theme?: "light" | "dark" | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
title?: string | undefined;
|
|
64
|
+
} | {
|
|
65
|
+
type: "resource";
|
|
66
|
+
resource: {
|
|
67
|
+
uri: string;
|
|
68
|
+
text: string;
|
|
69
|
+
mimeType?: string | undefined;
|
|
70
|
+
_meta?: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
} | undefined;
|
|
73
|
+
} | {
|
|
74
|
+
uri: string;
|
|
75
|
+
blob: string;
|
|
76
|
+
mimeType?: string | undefined;
|
|
77
|
+
_meta?: {
|
|
78
|
+
[x: string]: unknown;
|
|
79
|
+
} | undefined;
|
|
80
|
+
};
|
|
81
|
+
annotations?: {
|
|
82
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
83
|
+
priority?: number | undefined;
|
|
84
|
+
lastModified?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
_meta?: {
|
|
87
|
+
[x: string]: unknown;
|
|
88
|
+
} | undefined;
|
|
89
|
+
})[];
|
|
90
|
+
_meta?: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
progressToken?: string | number | undefined;
|
|
93
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
94
|
+
taskId: string;
|
|
95
|
+
} | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
structuredContent?: {
|
|
98
|
+
[x: string]: unknown;
|
|
99
|
+
} | undefined;
|
|
100
|
+
isError?: boolean | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
content: never[];
|
|
103
|
+
structuredContent: {
|
|
104
|
+
code: string;
|
|
105
|
+
message: any;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
_meta?: Record<string, unknown> | undefined;
|
|
109
|
+
description?: string | undefined;
|
|
110
|
+
annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
|
|
111
|
+
title?: string | undefined;
|
|
112
|
+
token?: import("@tsed/di").TokenProvider;
|
|
113
|
+
name: string;
|
|
114
|
+
}>;
|