@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
@@ -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<any[]>;
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 | typeof RunCmd | typeof UpdateCmd)[];
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;
@@ -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
- checkPrecondition(ctx: InitOptions): void;
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
+ }>>>;
@@ -14,7 +14,7 @@ export declare enum FeatureType {
14
14
  PASSPORTJS = "passportjs",
15
15
  CONFIG = "config",
16
16
  COMMANDS = "commands",
17
- DB = "db",
17
+ ORM = "orm",
18
18
  DOC = "doc",
19
19
  CONFIG_ENVS = "config:envs",
20
20
  CONFIG_DOTENV = "config:dotenv",
@@ -25,32 +25,32 @@ 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
56
  export declare const FrameworksPrompt: {
@@ -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,2 @@
1
+ declare const _default: any[];
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const projectInfoResource: any;
@@ -0,0 +1 @@
1
+ export declare const serverInfoResource: any;
@@ -0,0 +1,5 @@
1
+ export declare const InitMCPSchema: () => import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
2
+ cwd: import("@tsed/schema").JsonSchema<string>;
3
+ }> & {
4
+ [x: string]: unknown;
5
+ }>;
@@ -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,94 @@
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
+ [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 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
+ [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,2 @@
1
+ declare const _default: any[];
2
+ export default _default;