@tsed/cli 7.0.0-beta.2 → 7.0.0-beta.4

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.
Files changed (107) hide show
  1. package/lib/esm/bin/tsed.js +3 -1
  2. package/lib/esm/commands/add/AddCmd.js +2 -1
  3. package/lib/esm/commands/generate/GenerateCmd.js +2 -1
  4. package/lib/esm/commands/index.js +3 -1
  5. package/lib/esm/commands/init/InitCmd.js +16 -109
  6. package/lib/esm/commands/init/InitOptionsCmd.js +17 -0
  7. package/lib/esm/commands/init/config/FeaturesPrompt.js +29 -29
  8. package/lib/esm/commands/init/config/InitSchema.js +308 -0
  9. package/lib/esm/commands/mcp/McpCommand.js +15 -0
  10. package/lib/esm/commands/mcp/resources/index.js +3 -0
  11. package/lib/esm/commands/mcp/resources/projectInfoResource.js +43 -0
  12. package/lib/esm/commands/mcp/resources/serverInfoResource.js +40 -0
  13. package/lib/esm/commands/mcp/schema/InitMCPSchema.js +9 -0
  14. package/lib/esm/commands/mcp/schema/ProjectPreferencesSchema.js +16 -0
  15. package/lib/esm/commands/mcp/tools/generateTool.js +105 -0
  16. package/lib/esm/commands/mcp/tools/getTemplateTool.js +47 -0
  17. package/lib/esm/commands/mcp/tools/index.js +7 -0
  18. package/lib/esm/commands/mcp/tools/initProjectTool.js +65 -0
  19. package/lib/esm/commands/mcp/tools/listTemplatesTool.js +37 -0
  20. package/lib/esm/commands/mcp/tools/setWorkspaceTool.js +64 -0
  21. package/lib/esm/commands/run/RunCmd.js +2 -1
  22. package/lib/esm/commands/template/CreateTemplateCommand.js +2 -1
  23. package/lib/esm/commands/update/UpdateCmd.js +3 -4
  24. package/lib/esm/index.js +3 -0
  25. package/lib/esm/services/CliProjectService.js +4 -2
  26. package/lib/esm/services/CliStats.js +45 -0
  27. package/lib/esm/services/CliTemplatesService.js +10 -3
  28. package/lib/esm/templates/asyncFactory.template.js +4 -3
  29. package/lib/esm/templates/barrels.template.js +0 -3
  30. package/lib/esm/templates/command.template.js +1 -0
  31. package/lib/esm/templates/controller.template.js +7 -0
  32. package/lib/esm/templates/decorator.template.js +22 -11
  33. package/lib/esm/templates/dockerfile.template.js +5 -0
  34. package/lib/esm/templates/exception-filter.template.js +1 -0
  35. package/lib/esm/templates/factory.template.js +4 -3
  36. package/lib/esm/templates/index.logger.template.js +0 -1
  37. package/lib/esm/templates/interceptor.template.js +1 -0
  38. package/lib/esm/templates/interface.template.js +1 -0
  39. package/lib/esm/templates/middleware.template.js +14 -4
  40. package/lib/esm/templates/model.template.js +1 -0
  41. package/lib/esm/templates/module.template.js +1 -0
  42. package/lib/esm/templates/pipe.template.js +1 -0
  43. package/lib/esm/templates/prisma.service.template.js +1 -0
  44. package/lib/esm/templates/repository.template.js +1 -0
  45. package/lib/esm/templates/response-filter.template.js +1 -0
  46. package/lib/esm/templates/service.template.js +1 -0
  47. package/lib/esm/templates/value.template.js +1 -0
  48. package/lib/esm/utils/resolveSchema.js +17 -0
  49. package/lib/esm/utils/summarizeSchema.js +24 -0
  50. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  51. package/lib/types/commands/generate/GenerateCmd.d.ts +38 -1
  52. package/lib/types/commands/index.d.ts +103 -1
  53. package/lib/types/commands/init/InitCmd.d.ts +1 -4
  54. package/lib/types/commands/init/InitOptionsCmd.d.ts +52 -0
  55. package/lib/types/commands/init/config/FeaturesPrompt.d.ts +25 -25
  56. package/lib/types/commands/init/config/InitSchema.d.ts +18 -0
  57. package/lib/types/commands/mcp/McpCommand.d.ts +52 -0
  58. package/lib/types/commands/mcp/resources/index.d.ts +2 -0
  59. package/lib/types/commands/mcp/resources/projectInfoResource.d.ts +1 -0
  60. package/lib/types/commands/mcp/resources/serverInfoResource.d.ts +1 -0
  61. package/lib/types/commands/mcp/schema/InitMCPSchema.d.ts +5 -0
  62. package/lib/types/commands/mcp/schema/ProjectPreferencesSchema.d.ts +9 -0
  63. package/lib/types/commands/mcp/tools/generateTool.d.ts +94 -0
  64. package/lib/types/commands/mcp/tools/getTemplateTool.d.ts +92 -0
  65. package/lib/types/commands/mcp/tools/index.d.ts +2 -0
  66. package/lib/types/commands/mcp/tools/initProjectTool.d.ts +94 -0
  67. package/lib/types/commands/mcp/tools/listTemplatesTool.d.ts +92 -0
  68. package/lib/types/commands/mcp/tools/setWorkspaceTool.d.ts +97 -0
  69. package/lib/types/index.d.ts +3 -0
  70. package/lib/types/interfaces/InitCmdOptions.d.ts +1 -1
  71. package/lib/types/pipes/SymbolNamePipe.d.ts +1 -1
  72. package/lib/types/services/CliStats.d.ts +36 -0
  73. package/lib/types/services/CliTemplatesService.d.ts +5 -4
  74. package/lib/types/templates/asyncFactory.template.d.ts +1 -0
  75. package/lib/types/templates/barrels.template.d.ts +1 -0
  76. package/lib/types/templates/command.template.d.ts +1 -0
  77. package/lib/types/templates/config.template.d.ts +1 -0
  78. package/lib/types/templates/controller.template.d.ts +1 -0
  79. package/lib/types/templates/decorator.template.d.ts +1 -0
  80. package/lib/types/templates/docker-compose.template.d.ts +1 -0
  81. package/lib/types/templates/exception-filter.template.d.ts +1 -0
  82. package/lib/types/templates/factory.template.d.ts +1 -0
  83. package/lib/types/templates/index.command.template.d.ts +1 -0
  84. package/lib/types/templates/index.config.utils.template.d.ts +1 -0
  85. package/lib/types/templates/index.controller.template.d.ts +1 -0
  86. package/lib/types/templates/index.logger.template.d.ts +3 -2
  87. package/lib/types/templates/index.template.d.ts +1 -0
  88. package/lib/types/templates/interceptor.template.d.ts +1 -0
  89. package/lib/types/templates/interface.template.d.ts +1 -0
  90. package/lib/types/templates/middleware.template.d.ts +1 -0
  91. package/lib/types/templates/model.template.d.ts +1 -0
  92. package/lib/types/templates/module.template.d.ts +1 -0
  93. package/lib/types/templates/pipe.template.d.ts +1 -0
  94. package/lib/types/templates/prisma.service.template.d.ts +1 -0
  95. package/lib/types/templates/readme.template.d.ts +1 -0
  96. package/lib/types/templates/repository.template.d.ts +1 -0
  97. package/lib/types/templates/response-filter.template.d.ts +1 -0
  98. package/lib/types/templates/server.template.d.ts +1 -0
  99. package/lib/types/templates/service.template.d.ts +1 -0
  100. package/lib/types/templates/tsconfig.spec.template.d.ts +1 -0
  101. package/lib/types/templates/value.template.d.ts +1 -0
  102. package/lib/types/utils/defineTemplate.d.ts +11 -0
  103. package/lib/types/utils/resolveSchema.d.ts +2 -0
  104. package/lib/types/utils/summarizeSchema.d.ts +8 -0
  105. package/package.json +12 -11
  106. package/lib/esm/commands/init/config/InitFileSchema.js +0 -49
  107. package/lib/types/commands/init/config/InitFileSchema.d.ts +0 -49
@@ -0,0 +1,94 @@
1
+ export declare const initProjectTool: 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
+ cwd: import("@tsed/schema").JsonSchema<string>;
6
+ }> & {
7
+ [x: string]: unknown;
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
+ [x: string]: unknown;
12
+ type: "text";
13
+ text: string;
14
+ _meta?: {
15
+ [x: string]: unknown;
16
+ } | undefined;
17
+ } | {
18
+ [x: string]: unknown;
19
+ type: "image";
20
+ data: string;
21
+ mimeType: string;
22
+ _meta?: {
23
+ [x: string]: unknown;
24
+ } | undefined;
25
+ } | {
26
+ [x: string]: unknown;
27
+ type: "audio";
28
+ data: string;
29
+ mimeType: string;
30
+ _meta?: {
31
+ [x: string]: unknown;
32
+ } | undefined;
33
+ } | {
34
+ [x: string]: unknown;
35
+ type: "resource_link";
36
+ name: string;
37
+ uri: string;
38
+ _meta?: {
39
+ [x: string]: unknown;
40
+ } | undefined;
41
+ description?: string | undefined;
42
+ mimeType?: string | undefined;
43
+ title?: string | undefined;
44
+ icons?: {
45
+ [x: string]: unknown;
46
+ src: string;
47
+ mimeType?: string | undefined;
48
+ sizes?: string[] | undefined;
49
+ }[] | undefined;
50
+ } | {
51
+ [x: string]: unknown;
52
+ type: "resource";
53
+ resource: {
54
+ [x: string]: unknown;
55
+ text: string;
56
+ uri: string;
57
+ _meta?: {
58
+ [x: string]: unknown;
59
+ } | undefined;
60
+ mimeType?: string | undefined;
61
+ } | {
62
+ [x: string]: unknown;
63
+ uri: string;
64
+ blob: string;
65
+ _meta?: {
66
+ [x: string]: unknown;
67
+ } | undefined;
68
+ mimeType?: string | undefined;
69
+ };
70
+ _meta?: {
71
+ [x: string]: unknown;
72
+ } | undefined;
73
+ })[];
74
+ _meta?: {
75
+ [x: string]: unknown;
76
+ } | undefined;
77
+ structuredContent?: {
78
+ [x: string]: unknown;
79
+ } | undefined;
80
+ isError?: boolean | undefined;
81
+ } | {
82
+ content: never[];
83
+ structuredContent: {
84
+ code: string;
85
+ message: any;
86
+ };
87
+ }>;
88
+ _meta?: Record<string, unknown> | undefined;
89
+ description?: string | undefined;
90
+ title?: string | undefined;
91
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
92
+ token?: import("@tsed/cli-core").TokenProvider;
93
+ name: string;
94
+ }>;
@@ -0,0 +1,92 @@
1
+ export declare const listTemplatesTool: 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
+ search: 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
+ [x: string]: unknown;
10
+ type: "text";
11
+ text: string;
12
+ _meta?: {
13
+ [x: string]: unknown;
14
+ } | undefined;
15
+ } | {
16
+ [x: string]: unknown;
17
+ type: "image";
18
+ data: string;
19
+ mimeType: string;
20
+ _meta?: {
21
+ [x: string]: unknown;
22
+ } | undefined;
23
+ } | {
24
+ [x: string]: unknown;
25
+ type: "audio";
26
+ data: string;
27
+ mimeType: string;
28
+ _meta?: {
29
+ [x: string]: unknown;
30
+ } | undefined;
31
+ } | {
32
+ [x: string]: unknown;
33
+ type: "resource_link";
34
+ name: string;
35
+ uri: string;
36
+ _meta?: {
37
+ [x: string]: unknown;
38
+ } | undefined;
39
+ description?: string | undefined;
40
+ mimeType?: string | undefined;
41
+ title?: string | undefined;
42
+ icons?: {
43
+ [x: string]: unknown;
44
+ src: string;
45
+ mimeType?: string | undefined;
46
+ sizes?: string[] | undefined;
47
+ }[] | undefined;
48
+ } | {
49
+ [x: string]: unknown;
50
+ type: "resource";
51
+ resource: {
52
+ [x: string]: unknown;
53
+ text: string;
54
+ uri: string;
55
+ _meta?: {
56
+ [x: string]: unknown;
57
+ } | undefined;
58
+ mimeType?: string | undefined;
59
+ } | {
60
+ [x: string]: unknown;
61
+ uri: string;
62
+ blob: string;
63
+ _meta?: {
64
+ [x: string]: unknown;
65
+ } | undefined;
66
+ mimeType?: string | undefined;
67
+ };
68
+ _meta?: {
69
+ [x: string]: unknown;
70
+ } | undefined;
71
+ })[];
72
+ _meta?: {
73
+ [x: string]: unknown;
74
+ } | undefined;
75
+ structuredContent?: {
76
+ [x: string]: unknown;
77
+ } | undefined;
78
+ isError?: boolean | undefined;
79
+ } | {
80
+ content: never[];
81
+ structuredContent: {
82
+ code: string;
83
+ message: any;
84
+ };
85
+ }>;
86
+ _meta?: Record<string, unknown> | undefined;
87
+ description?: string | undefined;
88
+ title?: string | undefined;
89
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
90
+ token?: import("@tsed/di").TokenProvider;
91
+ name: string;
92
+ }>;
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Simplified behavior per MVP:
3
+ * - If the provided cwd exists: set it, resolve the nearest package.json root via ProjectPackageJson, return that resolved cwd.
4
+ * - If the provided cwd does not exist: do not create anything; return an error suggesting to confirm creation and run init-project.
5
+ */
6
+ export declare const setWorkspaceTool: import("@tsed/cli-core").FactoryTokenProvider<{
7
+ inputSchema: Record<string, import("zod").AnyZodObject> | undefined;
8
+ outputSchema: Record<string, import("zod").AnyZodObject> | undefined;
9
+ handler(args: import("@tsed/schema").PropsToShape<{
10
+ cwd: import("@tsed/schema").JsonSchema<string>;
11
+ }>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
12
+ [x: string]: unknown;
13
+ content: ({
14
+ [x: string]: unknown;
15
+ type: "text";
16
+ text: string;
17
+ _meta?: {
18
+ [x: string]: unknown;
19
+ } | undefined;
20
+ } | {
21
+ [x: string]: unknown;
22
+ type: "image";
23
+ data: string;
24
+ mimeType: string;
25
+ _meta?: {
26
+ [x: string]: unknown;
27
+ } | undefined;
28
+ } | {
29
+ [x: string]: unknown;
30
+ type: "audio";
31
+ data: string;
32
+ mimeType: string;
33
+ _meta?: {
34
+ [x: string]: unknown;
35
+ } | undefined;
36
+ } | {
37
+ [x: string]: unknown;
38
+ type: "resource_link";
39
+ name: string;
40
+ uri: string;
41
+ _meta?: {
42
+ [x: string]: unknown;
43
+ } | undefined;
44
+ description?: string | undefined;
45
+ mimeType?: string | undefined;
46
+ title?: string | undefined;
47
+ icons?: {
48
+ [x: string]: unknown;
49
+ src: string;
50
+ mimeType?: string | undefined;
51
+ sizes?: string[] | undefined;
52
+ }[] | undefined;
53
+ } | {
54
+ [x: string]: unknown;
55
+ type: "resource";
56
+ resource: {
57
+ [x: string]: unknown;
58
+ text: string;
59
+ uri: string;
60
+ _meta?: {
61
+ [x: string]: unknown;
62
+ } | undefined;
63
+ mimeType?: string | undefined;
64
+ } | {
65
+ [x: string]: unknown;
66
+ uri: string;
67
+ blob: string;
68
+ _meta?: {
69
+ [x: string]: unknown;
70
+ } | undefined;
71
+ mimeType?: string | undefined;
72
+ };
73
+ _meta?: {
74
+ [x: string]: unknown;
75
+ } | undefined;
76
+ })[];
77
+ _meta?: {
78
+ [x: string]: unknown;
79
+ } | undefined;
80
+ structuredContent?: {
81
+ [x: string]: unknown;
82
+ } | undefined;
83
+ isError?: boolean | undefined;
84
+ } | {
85
+ content: never[];
86
+ structuredContent: {
87
+ code: string;
88
+ message: any;
89
+ };
90
+ }>;
91
+ _meta?: Record<string, unknown> | undefined;
92
+ description?: string | undefined;
93
+ title?: string | undefined;
94
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
95
+ token?: import("@tsed/cli-core").TokenProvider;
96
+ name: string;
97
+ }>;
@@ -1,5 +1,6 @@
1
1
  import "@tsed/logger-std";
2
2
  import "./templates/index.js";
3
+ import "./services/CliStats.js";
3
4
  export * from "./commands/add/AddCmd.js";
4
5
  export * from "./commands/generate/GenerateCmd.js";
5
6
  export { default as commands } from "./commands/index.js";
@@ -7,6 +8,8 @@ export * from "./commands/init/config/FeaturesPrompt.js";
7
8
  export * from "./commands/init/config/FeaturesPrompt.js";
8
9
  export * from "./commands/init/InitCmd.js";
9
10
  export * from "./commands/init/prompts/getFeaturesPrompt.js";
11
+ export { default as resources } from "./commands/mcp/resources/index.js";
12
+ export { default as tools } from "./commands/mcp/tools/index.js";
10
13
  export * from "./commands/update/UpdateCmd.js";
11
14
  export * from "./constants/index.js";
12
15
  export * from "./fn/exec.js";
@@ -2,7 +2,7 @@ import type { RenderDataContext } from "./RenderDataContext.js";
2
2
  export interface InitOptions extends RenderDataContext {
3
3
  root: string;
4
4
  srcDir: string;
5
- skipPrompt: boolean;
5
+ skipPrompt?: boolean;
6
6
  GH_TOKEN?: string;
7
7
  }
8
8
  export type InitCmdContext = InitOptions;
@@ -8,5 +8,5 @@ export declare class SymbolNamePipe {
8
8
  name: string;
9
9
  type: string;
10
10
  format?: ProjectConvention;
11
- }): any;
11
+ }): string;
12
12
  }
@@ -0,0 +1,36 @@
1
+ import { CliHttpClient, ProjectPackageJson } from "@tsed/cli-core";
2
+ declare global {
3
+ namespace TsED {
4
+ interface Configuration {
5
+ stats?: {
6
+ disabled?: boolean;
7
+ url?: string;
8
+ };
9
+ }
10
+ }
11
+ }
12
+ type InitStatPayload = {
13
+ tsed_version: string;
14
+ platform: string;
15
+ convention: string;
16
+ package_manager: string;
17
+ runtime: string;
18
+ features: string[];
19
+ channel: string;
20
+ cli_version: string;
21
+ os: string;
22
+ is_success: boolean;
23
+ };
24
+ export declare class CliStats extends CliHttpClient {
25
+ protected disabled: boolean;
26
+ protected host: string;
27
+ protected projectPackage: ProjectPackageJson;
28
+ sendInit(opts: Partial<InitStatPayload>): Promise<unknown> | undefined;
29
+ $onFinish(data: {
30
+ commandName?: string;
31
+ features?: string[];
32
+ }, er?: Error): Promise<unknown> | undefined;
33
+ protected onSuccess(options: Record<string, unknown>): void;
34
+ protected onError(error: any, options: any): void;
35
+ }
36
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { CliFs } from "@tsed/cli-core";
2
2
  import type { SourceFile } from "ts-morph";
3
3
  import type { RenderDataContext } from "../interfaces/index.js";
4
+ import type { DefineTemplateOptions } from "../utils/defineTemplate.js";
4
5
  export type TemplateRenderOptions = {
5
6
  name?: string;
6
7
  symbolName?: string;
@@ -21,15 +22,15 @@ export type TemplateRenderReturnType = {
21
22
  export declare class CliTemplatesService {
22
23
  #private;
23
24
  readonly fs: CliFs;
24
- readonly renderedFiles: TemplateRenderReturnType[];
25
25
  get rootDir(): string;
26
26
  get srcDir(): string;
27
27
  get templatesDir(): string;
28
28
  $onInit(): Promise<void>;
29
29
  loadTemplates(): Promise<void>;
30
- getAll(): any[];
31
- find(id?: string): any[];
32
- get(id: string): any;
30
+ getAll(): DefineTemplateOptions[];
31
+ find(id?: string): DefineTemplateOptions[];
32
+ get(id: string): DefineTemplateOptions | undefined;
33
33
  render(templateId: string, data: TemplateRenderOptions): Promise<TemplateRenderReturnType | undefined>;
34
+ getRenderedFiles(): TemplateRenderReturnType[];
34
35
  protected pushRenderResult(renderedFile: TemplateRenderReturnType): TemplateRenderReturnType;
35
36
  }
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -10,6 +10,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
10
10
  hidden?: boolean;
11
11
  preserveCase?: boolean;
12
12
  preserveDirectory?: boolean;
13
+ schema?: import("@tsed/schema").JsonSchema;
13
14
  render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
14
15
  prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
15
16
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -10,6 +10,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
10
10
  hidden?: boolean;
11
11
  preserveCase?: boolean;
12
12
  preserveDirectory?: boolean;
13
+ schema?: import("@tsed/schema").JsonSchema;
13
14
  render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
14
15
  prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
15
16
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,8 +9,9 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
- render(symbolName: string, data: import("../interfaces/GenerateCmdContext.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
- prompts?(data: import("../interfaces/GenerateCmdContext.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../interfaces/GenerateCmdContext.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../interfaces/GenerateCmdContext.js").GenerateCmdContext>[]>;
12
+ schema?: import("@tsed/schema").JsonSchema;
13
+ render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
14
+ prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
15
16
  }>;
16
17
  export default _default;
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -10,6 +10,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
10
10
  hidden?: boolean;
11
11
  preserveCase?: boolean;
12
12
  preserveDirectory?: boolean;
13
+ schema?: import("@tsed/schema").JsonSchema;
13
14
  render(symbolName: string, data: GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
14
15
  prompts?(data: GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<GenerateCmdContext>[]>;
15
16
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/cli-core").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("@tsed/cli").GenerateCmdContext): Promise<string | undefined | import("@tsed/cli").TemplateRenderReturnType> | string | undefined | import("@tsed/cli").TemplateRenderReturnType;
13
14
  prompts?(data: import("@tsed/cli").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("@tsed/cli").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("@tsed/cli").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/cli-core").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];
@@ -9,6 +9,7 @@ declare const _default: import("@tsed/di").FactoryTokenProvider<{
9
9
  hidden?: boolean;
10
10
  preserveCase?: boolean;
11
11
  preserveDirectory?: boolean;
12
+ schema?: import("@tsed/schema").JsonSchema;
12
13
  render(symbolName: string, data: import("../index.js").GenerateCmdContext): Promise<string | undefined | import("../index.js").TemplateRenderReturnType> | string | undefined | import("../index.js").TemplateRenderReturnType;
13
14
  prompts?(data: import("../index.js").GenerateCmdContext): import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[] | Promise<import("@tsed/cli-core").QuestionOptions<import("../index.js").GenerateCmdContext>[]>;
14
15
  hooks?: import("@tsed/di").ProviderOpts["hooks"];