@tsed/cli 7.0.0-alpha.9 → 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.
Files changed (126) hide show
  1. package/lib/esm/bin/ts-mode.js +10 -0
  2. package/lib/esm/bin/tsed.js +25 -3
  3. package/lib/esm/commands/add/AddCmd.js +2 -1
  4. package/lib/esm/commands/generate/GenerateCmd.js +2 -1
  5. package/lib/esm/commands/index.js +3 -1
  6. package/lib/esm/commands/init/InitCmd.js +20 -113
  7. package/lib/esm/commands/init/InitOptionsCmd.js +17 -0
  8. package/lib/esm/commands/init/config/FeaturesPrompt.js +35 -36
  9. package/lib/esm/commands/init/config/InitSchema.js +337 -0
  10. package/lib/esm/commands/init/prompts/getFeaturesPrompt.js +1 -1
  11. package/lib/esm/commands/mcp/McpCommand.js +15 -0
  12. package/lib/esm/commands/mcp/resources/index.js +4 -0
  13. package/lib/esm/commands/mcp/resources/initOptionsResource.js +93 -0
  14. package/lib/esm/commands/mcp/resources/projectInfoResource.js +43 -0
  15. package/lib/esm/commands/mcp/resources/serverInfoResource.js +40 -0
  16. package/lib/esm/commands/mcp/schema/InitMCPSchema.js +9 -0
  17. package/lib/esm/commands/mcp/schema/ProjectPreferencesSchema.js +16 -0
  18. package/lib/esm/commands/mcp/tools/generateTool.js +105 -0
  19. package/lib/esm/commands/mcp/tools/getTemplateTool.js +47 -0
  20. package/lib/esm/commands/mcp/tools/index.js +6 -0
  21. package/lib/esm/commands/mcp/tools/initProjectTool.js +64 -0
  22. package/lib/esm/commands/mcp/tools/listTemplatesTool.js +37 -0
  23. package/lib/esm/commands/mcp/tools/setWorkspaceTool.js +64 -0
  24. package/lib/esm/commands/run/RunCmd.js +4 -1
  25. package/lib/esm/commands/template/CreateTemplateCommand.js +2 -1
  26. package/lib/esm/commands/update/UpdateCmd.js +3 -4
  27. package/lib/esm/index.js +6 -1
  28. package/lib/esm/processors/transformConfigFile.js +1 -1
  29. package/lib/esm/processors/transformServerFile.js +5 -7
  30. package/lib/esm/services/CliProjectService.js +7 -3
  31. package/lib/esm/services/CliStats.js +45 -0
  32. package/lib/esm/services/CliTemplatesService.js +20 -8
  33. package/lib/esm/templates/agents.template.js +17 -0
  34. package/lib/esm/templates/asyncFactory.template.js +4 -3
  35. package/lib/esm/templates/barrels.template.js +1 -8
  36. package/lib/esm/templates/command.template.js +1 -0
  37. package/lib/esm/templates/controller.template.js +7 -0
  38. package/lib/esm/templates/decorator.template.js +22 -11
  39. package/lib/esm/templates/dockerfile.template.js +5 -0
  40. package/lib/esm/templates/exception-filter.template.js +1 -0
  41. package/lib/esm/templates/factory.template.js +4 -3
  42. package/lib/esm/templates/index.command.template.js +1 -1
  43. package/lib/esm/templates/index.controller.template.js +12 -8
  44. package/lib/esm/templates/index.js +1 -0
  45. package/lib/esm/templates/index.logger.template.js +0 -1
  46. package/lib/esm/templates/interceptor.template.js +1 -0
  47. package/lib/esm/templates/interface.template.js +1 -0
  48. package/lib/esm/templates/middleware.template.js +14 -4
  49. package/lib/esm/templates/model.template.js +1 -0
  50. package/lib/esm/templates/module.template.js +1 -0
  51. package/lib/esm/templates/pipe.template.js +1 -0
  52. package/lib/esm/templates/prisma.service.template.js +1 -0
  53. package/lib/esm/templates/repository.template.js +1 -0
  54. package/lib/esm/templates/response-filter.template.js +1 -0
  55. package/lib/esm/templates/service.template.js +1 -0
  56. package/lib/esm/templates/value.template.js +1 -0
  57. package/lib/esm/utils/resolveSchema.js +17 -0
  58. package/lib/esm/utils/summarizeSchema.js +24 -0
  59. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  60. package/lib/types/bin/ts-mode.d.ts +1 -0
  61. package/lib/types/bin/tsed.d.ts +1 -1
  62. package/lib/types/commands/generate/GenerateCmd.d.ts +38 -1
  63. package/lib/types/commands/index.d.ts +103 -1
  64. package/lib/types/commands/init/InitCmd.d.ts +2 -5
  65. package/lib/types/commands/init/InitOptionsCmd.d.ts +52 -0
  66. package/lib/types/commands/init/config/FeaturesPrompt.d.ts +26 -32
  67. package/lib/types/commands/init/config/InitSchema.d.ts +18 -0
  68. package/lib/types/commands/mcp/McpCommand.d.ts +52 -0
  69. package/lib/types/commands/mcp/resources/index.d.ts +2 -0
  70. package/lib/types/commands/mcp/resources/initOptionsResource.d.ts +1 -0
  71. package/lib/types/commands/mcp/resources/projectInfoResource.d.ts +1 -0
  72. package/lib/types/commands/mcp/resources/serverInfoResource.d.ts +1 -0
  73. package/lib/types/commands/mcp/schema/InitMCPSchema.d.ts +5 -0
  74. package/lib/types/commands/mcp/schema/ProjectPreferencesSchema.d.ts +9 -0
  75. package/lib/types/commands/mcp/tools/generateTool.d.ts +116 -0
  76. package/lib/types/commands/mcp/tools/getTemplateTool.d.ts +114 -0
  77. package/lib/types/commands/mcp/tools/index.d.ts +345 -0
  78. package/lib/types/commands/mcp/tools/initProjectTool.d.ts +116 -0
  79. package/lib/types/commands/mcp/tools/listTemplatesTool.d.ts +114 -0
  80. package/lib/types/commands/mcp/tools/setWorkspaceTool.d.ts +119 -0
  81. package/lib/types/index.d.ts +6 -1
  82. package/lib/types/interfaces/InitCmdOptions.d.ts +1 -1
  83. package/lib/types/pipes/SymbolNamePipe.d.ts +1 -1
  84. package/lib/types/services/CliProjectService.d.ts +1 -1
  85. package/lib/types/services/CliStats.d.ts +36 -0
  86. package/lib/types/services/CliTemplatesService.d.ts +7 -4
  87. package/lib/types/templates/agents.template.d.ts +17 -0
  88. package/lib/types/templates/asyncFactory.template.d.ts +1 -0
  89. package/lib/types/templates/barrels.template.d.ts +1 -0
  90. package/lib/types/templates/command.template.d.ts +1 -0
  91. package/lib/types/templates/config.template.d.ts +1 -0
  92. package/lib/types/templates/controller.template.d.ts +1 -0
  93. package/lib/types/templates/decorator.template.d.ts +1 -0
  94. package/lib/types/templates/docker-compose.template.d.ts +1 -0
  95. package/lib/types/templates/exception-filter.template.d.ts +1 -0
  96. package/lib/types/templates/factory.template.d.ts +1 -0
  97. package/lib/types/templates/index.command.template.d.ts +1 -0
  98. package/lib/types/templates/index.config.utils.template.d.ts +1 -0
  99. package/lib/types/templates/index.controller.template.d.ts +1 -0
  100. package/lib/types/templates/index.d.ts +1 -0
  101. package/lib/types/templates/index.logger.template.d.ts +3 -2
  102. package/lib/types/templates/index.template.d.ts +1 -0
  103. package/lib/types/templates/interceptor.template.d.ts +1 -0
  104. package/lib/types/templates/interface.template.d.ts +1 -0
  105. package/lib/types/templates/middleware.template.d.ts +1 -0
  106. package/lib/types/templates/model.template.d.ts +1 -0
  107. package/lib/types/templates/module.template.d.ts +1 -0
  108. package/lib/types/templates/pipe.template.d.ts +1 -0
  109. package/lib/types/templates/prisma.service.template.d.ts +1 -0
  110. package/lib/types/templates/readme.template.d.ts +1 -0
  111. package/lib/types/templates/repository.template.d.ts +1 -0
  112. package/lib/types/templates/response-filter.template.d.ts +1 -0
  113. package/lib/types/templates/server.template.d.ts +1 -0
  114. package/lib/types/templates/service.template.d.ts +1 -0
  115. package/lib/types/templates/tsconfig.spec.template.d.ts +1 -0
  116. package/lib/types/templates/value.template.d.ts +1 -0
  117. package/lib/types/utils/defineTemplate.d.ts +11 -0
  118. package/lib/types/utils/resolveSchema.d.ts +2 -0
  119. package/lib/types/utils/summarizeSchema.d.ts +8 -0
  120. package/package.json +19 -14
  121. package/templates/views/home.ejs +347 -0
  122. package/lib/esm/Cli.js +0 -58
  123. package/lib/esm/commands/init/config/InitFileSchema.js +0 -49
  124. package/lib/types/Cli.d.ts +0 -27
  125. package/lib/types/commands/init/config/InitFileSchema.d.ts +0 -49
  126. package/templates/views/swagger.ejs +0 -100
@@ -0,0 +1,345 @@
1
+ declare const _default: (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
+ 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/di").TokenProvider;
115
+ name: string;
116
+ }> | import("@tsed/di").FactoryTokenProvider<{
117
+ inputSchema: Record<string, import("zod").AnyZodObject> | undefined;
118
+ outputSchema: Record<string, import("zod").AnyZodObject> | undefined;
119
+ handler(args: import("@tsed/schema").PropsToShape<{
120
+ cwd: import("@tsed/schema").JsonSchema<string>;
121
+ }> & {
122
+ [x: string]: unknown;
123
+ }, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
124
+ [x: string]: unknown;
125
+ content: ({
126
+ type: "text";
127
+ text: string;
128
+ annotations?: {
129
+ audience?: ("user" | "assistant")[] | undefined;
130
+ priority?: number | undefined;
131
+ lastModified?: string | undefined;
132
+ } | undefined;
133
+ _meta?: {
134
+ [x: string]: unknown;
135
+ } | undefined;
136
+ } | {
137
+ type: "image";
138
+ data: string;
139
+ mimeType: string;
140
+ annotations?: {
141
+ audience?: ("user" | "assistant")[] | undefined;
142
+ priority?: number | undefined;
143
+ lastModified?: string | undefined;
144
+ } | undefined;
145
+ _meta?: {
146
+ [x: string]: unknown;
147
+ } | undefined;
148
+ } | {
149
+ type: "audio";
150
+ data: string;
151
+ mimeType: string;
152
+ annotations?: {
153
+ audience?: ("user" | "assistant")[] | undefined;
154
+ priority?: number | undefined;
155
+ lastModified?: string | undefined;
156
+ } | undefined;
157
+ _meta?: {
158
+ [x: string]: unknown;
159
+ } | undefined;
160
+ } | {
161
+ uri: string;
162
+ name: string;
163
+ type: "resource_link";
164
+ description?: string | undefined;
165
+ mimeType?: string | undefined;
166
+ annotations?: {
167
+ audience?: ("user" | "assistant")[] | undefined;
168
+ priority?: number | undefined;
169
+ lastModified?: string | undefined;
170
+ } | undefined;
171
+ _meta?: {
172
+ [x: string]: unknown;
173
+ } | undefined;
174
+ icons?: {
175
+ src: string;
176
+ mimeType?: string | undefined;
177
+ sizes?: string[] | undefined;
178
+ theme?: "light" | "dark" | undefined;
179
+ }[] | undefined;
180
+ title?: string | undefined;
181
+ } | {
182
+ type: "resource";
183
+ resource: {
184
+ uri: string;
185
+ text: string;
186
+ mimeType?: string | undefined;
187
+ _meta?: {
188
+ [x: string]: unknown;
189
+ } | undefined;
190
+ } | {
191
+ uri: string;
192
+ blob: string;
193
+ mimeType?: string | undefined;
194
+ _meta?: {
195
+ [x: string]: unknown;
196
+ } | undefined;
197
+ };
198
+ annotations?: {
199
+ audience?: ("user" | "assistant")[] | undefined;
200
+ priority?: number | undefined;
201
+ lastModified?: string | undefined;
202
+ } | undefined;
203
+ _meta?: {
204
+ [x: string]: unknown;
205
+ } | undefined;
206
+ })[];
207
+ _meta?: {
208
+ [x: string]: unknown;
209
+ progressToken?: string | number | undefined;
210
+ "io.modelcontextprotocol/related-task"?: {
211
+ taskId: string;
212
+ } | undefined;
213
+ } | undefined;
214
+ structuredContent?: {
215
+ [x: string]: unknown;
216
+ } | undefined;
217
+ isError?: boolean | undefined;
218
+ } | {
219
+ content: never[];
220
+ structuredContent: {
221
+ code: string;
222
+ message: any;
223
+ };
224
+ }>;
225
+ _meta?: Record<string, unknown> | undefined;
226
+ description?: string | undefined;
227
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
228
+ title?: string | undefined;
229
+ token?: import("@tsed/di").TokenProvider;
230
+ name: string;
231
+ }> | import("@tsed/di").FactoryTokenProvider<{
232
+ inputSchema: Record<string, import("zod").AnyZodObject> | undefined;
233
+ outputSchema: Record<string, import("zod").AnyZodObject> | undefined;
234
+ handler(args: import("@tsed/schema").PropsToShape<{
235
+ search: import("@tsed/schema").JsonSchema<string>;
236
+ }>, extra: import("@modelcontextprotocol/sdk/shared/protocol.js").RequestHandlerExtra<import("@modelcontextprotocol/sdk/types.js").ServerRequest, import("@modelcontextprotocol/sdk/types.js").ServerNotification>): Promise<{
237
+ [x: string]: unknown;
238
+ content: ({
239
+ type: "text";
240
+ text: string;
241
+ annotations?: {
242
+ audience?: ("user" | "assistant")[] | undefined;
243
+ priority?: number | undefined;
244
+ lastModified?: string | undefined;
245
+ } | undefined;
246
+ _meta?: {
247
+ [x: string]: unknown;
248
+ } | undefined;
249
+ } | {
250
+ type: "image";
251
+ data: string;
252
+ mimeType: string;
253
+ annotations?: {
254
+ audience?: ("user" | "assistant")[] | undefined;
255
+ priority?: number | undefined;
256
+ lastModified?: string | undefined;
257
+ } | undefined;
258
+ _meta?: {
259
+ [x: string]: unknown;
260
+ } | undefined;
261
+ } | {
262
+ type: "audio";
263
+ data: string;
264
+ mimeType: string;
265
+ annotations?: {
266
+ audience?: ("user" | "assistant")[] | undefined;
267
+ priority?: number | undefined;
268
+ lastModified?: string | undefined;
269
+ } | undefined;
270
+ _meta?: {
271
+ [x: string]: unknown;
272
+ } | undefined;
273
+ } | {
274
+ uri: string;
275
+ name: string;
276
+ type: "resource_link";
277
+ description?: string | undefined;
278
+ mimeType?: string | undefined;
279
+ annotations?: {
280
+ audience?: ("user" | "assistant")[] | undefined;
281
+ priority?: number | undefined;
282
+ lastModified?: string | undefined;
283
+ } | undefined;
284
+ _meta?: {
285
+ [x: string]: unknown;
286
+ } | undefined;
287
+ icons?: {
288
+ src: string;
289
+ mimeType?: string | undefined;
290
+ sizes?: string[] | undefined;
291
+ theme?: "light" | "dark" | undefined;
292
+ }[] | undefined;
293
+ title?: string | undefined;
294
+ } | {
295
+ type: "resource";
296
+ resource: {
297
+ uri: string;
298
+ text: string;
299
+ mimeType?: string | undefined;
300
+ _meta?: {
301
+ [x: string]: unknown;
302
+ } | undefined;
303
+ } | {
304
+ uri: string;
305
+ blob: string;
306
+ mimeType?: string | undefined;
307
+ _meta?: {
308
+ [x: string]: unknown;
309
+ } | undefined;
310
+ };
311
+ annotations?: {
312
+ audience?: ("user" | "assistant")[] | undefined;
313
+ priority?: number | undefined;
314
+ lastModified?: string | undefined;
315
+ } | undefined;
316
+ _meta?: {
317
+ [x: string]: unknown;
318
+ } | undefined;
319
+ })[];
320
+ _meta?: {
321
+ [x: string]: unknown;
322
+ progressToken?: string | number | undefined;
323
+ "io.modelcontextprotocol/related-task"?: {
324
+ taskId: string;
325
+ } | undefined;
326
+ } | undefined;
327
+ structuredContent?: {
328
+ [x: string]: unknown;
329
+ } | undefined;
330
+ isError?: boolean | undefined;
331
+ } | {
332
+ content: never[];
333
+ structuredContent: {
334
+ code: string;
335
+ message: any;
336
+ };
337
+ }>;
338
+ _meta?: Record<string, unknown> | undefined;
339
+ description?: string | undefined;
340
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
341
+ title?: string | undefined;
342
+ token?: import("@tsed/di").TokenProvider;
343
+ name: string;
344
+ }>)[];
345
+ export default _default;
@@ -0,0 +1,116 @@
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
+ 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 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
+ 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
+ }>;
@@ -0,0 +1,119 @@
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
+ type: "text";
15
+ text: string;
16
+ annotations?: {
17
+ audience?: ("user" | "assistant")[] | undefined;
18
+ priority?: number | undefined;
19
+ lastModified?: string | undefined;
20
+ } | undefined;
21
+ _meta?: {
22
+ [x: string]: unknown;
23
+ } | undefined;
24
+ } | {
25
+ type: "image";
26
+ data: string;
27
+ mimeType: string;
28
+ annotations?: {
29
+ audience?: ("user" | "assistant")[] | undefined;
30
+ priority?: number | undefined;
31
+ lastModified?: string | undefined;
32
+ } | undefined;
33
+ _meta?: {
34
+ [x: string]: unknown;
35
+ } | undefined;
36
+ } | {
37
+ type: "audio";
38
+ data: string;
39
+ mimeType: string;
40
+ annotations?: {
41
+ audience?: ("user" | "assistant")[] | undefined;
42
+ priority?: number | undefined;
43
+ lastModified?: string | undefined;
44
+ } | undefined;
45
+ _meta?: {
46
+ [x: string]: unknown;
47
+ } | undefined;
48
+ } | {
49
+ uri: string;
50
+ name: string;
51
+ type: "resource_link";
52
+ description?: string | undefined;
53
+ mimeType?: string | undefined;
54
+ annotations?: {
55
+ audience?: ("user" | "assistant")[] | undefined;
56
+ priority?: number | undefined;
57
+ lastModified?: string | undefined;
58
+ } | undefined;
59
+ _meta?: {
60
+ [x: string]: unknown;
61
+ } | undefined;
62
+ icons?: {
63
+ src: string;
64
+ mimeType?: string | undefined;
65
+ sizes?: string[] | undefined;
66
+ theme?: "light" | "dark" | undefined;
67
+ }[] | undefined;
68
+ title?: string | undefined;
69
+ } | {
70
+ type: "resource";
71
+ resource: {
72
+ uri: string;
73
+ text: string;
74
+ mimeType?: string | undefined;
75
+ _meta?: {
76
+ [x: string]: unknown;
77
+ } | undefined;
78
+ } | {
79
+ uri: string;
80
+ blob: string;
81
+ mimeType?: string | undefined;
82
+ _meta?: {
83
+ [x: string]: unknown;
84
+ } | undefined;
85
+ };
86
+ annotations?: {
87
+ audience?: ("user" | "assistant")[] | undefined;
88
+ priority?: number | undefined;
89
+ lastModified?: string | undefined;
90
+ } | undefined;
91
+ _meta?: {
92
+ [x: string]: unknown;
93
+ } | undefined;
94
+ })[];
95
+ _meta?: {
96
+ [x: string]: unknown;
97
+ progressToken?: string | number | undefined;
98
+ "io.modelcontextprotocol/related-task"?: {
99
+ taskId: string;
100
+ } | undefined;
101
+ } | undefined;
102
+ structuredContent?: {
103
+ [x: string]: unknown;
104
+ } | undefined;
105
+ isError?: boolean | undefined;
106
+ } | {
107
+ content: never[];
108
+ structuredContent: {
109
+ code: string;
110
+ message: any;
111
+ };
112
+ }>;
113
+ _meta?: Record<string, unknown> | undefined;
114
+ description?: string | undefined;
115
+ annotations?: import("@modelcontextprotocol/sdk/types.js").ToolAnnotations | undefined;
116
+ title?: string | undefined;
117
+ token?: import("@tsed/cli-core").TokenProvider;
118
+ name: string;
119
+ }>;