@ui5/mcp-server 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/registerTools.d.ts +64 -30
- package/lib/registerTools.js +13 -9
- package/lib/registerTools.js.map +1 -1
- package/lib/server.js +1 -0
- package/lib/server.js.map +1 -1
- package/lib/tools/create_integration_card/schema.d.ts +8 -1
- package/lib/tools/create_ui5_app/schema.d.ts +11 -31
- package/lib/tools/get_api_reference/schema.d.ts +1 -7
- package/lib/tools/get_project_info/schema.d.ts +14 -58
- package/lib/tools/get_version_info/schema.d.ts +13 -47
- package/lib/tools/run_ui5_linter/index.js +0 -3
- package/lib/tools/run_ui5_linter/index.js.map +1 -1
- package/lib/tools/run_ui5_linter/schema.d.ts +18 -276
- package/lib/utils/ui5Framework.d.ts +4 -1
- package/npm-shrinkwrap.json +138 -88
- package/package.json +7 -7
- package/resources/template-js/webapp/view/Main.view.xml +2 -2
- package/resources/template-ts/webapp/view/Main.view.xml +2 -2
|
@@ -2,25 +2,15 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const inputSchema: {
|
|
3
3
|
projectDir: z.ZodString;
|
|
4
4
|
fix: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5
|
-
filePatterns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
5
|
+
filePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
6
|
provideContextInformation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7
7
|
};
|
|
8
8
|
export declare const inputSchemaObject: z.ZodObject<{
|
|
9
9
|
projectDir: z.ZodString;
|
|
10
10
|
fix: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
-
filePatterns: z.ZodOptional<z.ZodArray<z.ZodString
|
|
11
|
+
filePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
12
|
provideContextInformation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
-
},
|
|
14
|
-
projectDir: string;
|
|
15
|
-
fix: boolean;
|
|
16
|
-
provideContextInformation: boolean;
|
|
17
|
-
filePatterns?: string[] | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
projectDir: string;
|
|
20
|
-
fix?: boolean | undefined;
|
|
21
|
-
filePatterns?: string[] | undefined;
|
|
22
|
-
provideContextInformation?: boolean | undefined;
|
|
23
|
-
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
24
14
|
export declare const outputSchema: {
|
|
25
15
|
projectDir: z.ZodString;
|
|
26
16
|
frameworkVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -34,117 +24,25 @@ export declare const outputSchema: {
|
|
|
34
24
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
35
25
|
message: z.ZodString;
|
|
36
26
|
messageDetails: z.ZodOptional<z.ZodString>;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
severity: number;
|
|
40
|
-
ruleId: string;
|
|
41
|
-
line?: number | undefined;
|
|
42
|
-
messageDetails?: string | undefined;
|
|
43
|
-
fatal?: boolean | undefined;
|
|
44
|
-
column?: number | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
message: string;
|
|
47
|
-
severity: number;
|
|
48
|
-
ruleId: string;
|
|
49
|
-
line?: number | undefined;
|
|
50
|
-
messageDetails?: string | undefined;
|
|
51
|
-
fatal?: boolean | undefined;
|
|
52
|
-
column?: number | undefined;
|
|
53
|
-
}>, "many">;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
messages: {
|
|
56
|
-
message: string;
|
|
57
|
-
severity: number;
|
|
58
|
-
ruleId: string;
|
|
59
|
-
line?: number | undefined;
|
|
60
|
-
messageDetails?: string | undefined;
|
|
61
|
-
fatal?: boolean | undefined;
|
|
62
|
-
column?: number | undefined;
|
|
63
|
-
}[];
|
|
64
|
-
filePath: string;
|
|
65
|
-
}, {
|
|
66
|
-
messages: {
|
|
67
|
-
message: string;
|
|
68
|
-
severity: number;
|
|
69
|
-
ruleId: string;
|
|
70
|
-
line?: number | undefined;
|
|
71
|
-
messageDetails?: string | undefined;
|
|
72
|
-
fatal?: boolean | undefined;
|
|
73
|
-
column?: number | undefined;
|
|
74
|
-
}[];
|
|
75
|
-
filePath: string;
|
|
76
|
-
}>, "many">;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
77
29
|
contextInformation: z.ZodOptional<z.ZodObject<{
|
|
78
30
|
ruleDescriptions: z.ZodArray<z.ZodObject<{
|
|
79
31
|
ruleId: z.ZodString;
|
|
80
32
|
description: z.ZodString;
|
|
81
|
-
},
|
|
82
|
-
description: string;
|
|
83
|
-
ruleId: string;
|
|
84
|
-
}, {
|
|
85
|
-
description: string;
|
|
86
|
-
ruleId: string;
|
|
87
|
-
}>, "many">;
|
|
33
|
+
}, z.core.$strip>>;
|
|
88
34
|
migrationGuides: z.ZodArray<z.ZodObject<{
|
|
89
35
|
title: z.ZodString;
|
|
90
36
|
text: z.ZodString;
|
|
91
37
|
uri: z.ZodString;
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
text: string;
|
|
95
|
-
uri: string;
|
|
96
|
-
}, {
|
|
97
|
-
title: string;
|
|
98
|
-
text: string;
|
|
99
|
-
uri: string;
|
|
100
|
-
}>, "many">;
|
|
101
|
-
apiReferences: z.ZodArray<z.ZodAny, "many">;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
apiReferences: z.ZodArray<z.ZodAny>;
|
|
102
40
|
documentationResources: z.ZodArray<z.ZodObject<{
|
|
103
41
|
title: z.ZodString;
|
|
104
42
|
text: z.ZodString;
|
|
105
43
|
uri: z.ZodString;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
text: string;
|
|
109
|
-
uri: string;
|
|
110
|
-
}, {
|
|
111
|
-
title: string;
|
|
112
|
-
text: string;
|
|
113
|
-
uri: string;
|
|
114
|
-
}>, "many">;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
ruleDescriptions: {
|
|
117
|
-
description: string;
|
|
118
|
-
ruleId: string;
|
|
119
|
-
}[];
|
|
120
|
-
migrationGuides: {
|
|
121
|
-
title: string;
|
|
122
|
-
text: string;
|
|
123
|
-
uri: string;
|
|
124
|
-
}[];
|
|
125
|
-
apiReferences: any[];
|
|
126
|
-
documentationResources: {
|
|
127
|
-
title: string;
|
|
128
|
-
text: string;
|
|
129
|
-
uri: string;
|
|
130
|
-
}[];
|
|
131
|
-
}, {
|
|
132
|
-
ruleDescriptions: {
|
|
133
|
-
description: string;
|
|
134
|
-
ruleId: string;
|
|
135
|
-
}[];
|
|
136
|
-
migrationGuides: {
|
|
137
|
-
title: string;
|
|
138
|
-
text: string;
|
|
139
|
-
uri: string;
|
|
140
|
-
}[];
|
|
141
|
-
apiReferences: any[];
|
|
142
|
-
documentationResources: {
|
|
143
|
-
title: string;
|
|
144
|
-
text: string;
|
|
145
|
-
uri: string;
|
|
146
|
-
}[];
|
|
147
|
-
}>>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
148
46
|
};
|
|
149
47
|
export declare const outputSchemaObject: z.ZodObject<{
|
|
150
48
|
projectDir: z.ZodString;
|
|
@@ -159,182 +57,26 @@ export declare const outputSchemaObject: z.ZodObject<{
|
|
|
159
57
|
fatal: z.ZodOptional<z.ZodBoolean>;
|
|
160
58
|
message: z.ZodString;
|
|
161
59
|
messageDetails: z.ZodOptional<z.ZodString>;
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
severity: number;
|
|
165
|
-
ruleId: string;
|
|
166
|
-
line?: number | undefined;
|
|
167
|
-
messageDetails?: string | undefined;
|
|
168
|
-
fatal?: boolean | undefined;
|
|
169
|
-
column?: number | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
message: string;
|
|
172
|
-
severity: number;
|
|
173
|
-
ruleId: string;
|
|
174
|
-
line?: number | undefined;
|
|
175
|
-
messageDetails?: string | undefined;
|
|
176
|
-
fatal?: boolean | undefined;
|
|
177
|
-
column?: number | undefined;
|
|
178
|
-
}>, "many">;
|
|
179
|
-
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
messages: {
|
|
181
|
-
message: string;
|
|
182
|
-
severity: number;
|
|
183
|
-
ruleId: string;
|
|
184
|
-
line?: number | undefined;
|
|
185
|
-
messageDetails?: string | undefined;
|
|
186
|
-
fatal?: boolean | undefined;
|
|
187
|
-
column?: number | undefined;
|
|
188
|
-
}[];
|
|
189
|
-
filePath: string;
|
|
190
|
-
}, {
|
|
191
|
-
messages: {
|
|
192
|
-
message: string;
|
|
193
|
-
severity: number;
|
|
194
|
-
ruleId: string;
|
|
195
|
-
line?: number | undefined;
|
|
196
|
-
messageDetails?: string | undefined;
|
|
197
|
-
fatal?: boolean | undefined;
|
|
198
|
-
column?: number | undefined;
|
|
199
|
-
}[];
|
|
200
|
-
filePath: string;
|
|
201
|
-
}>, "many">;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
202
62
|
contextInformation: z.ZodOptional<z.ZodObject<{
|
|
203
63
|
ruleDescriptions: z.ZodArray<z.ZodObject<{
|
|
204
64
|
ruleId: z.ZodString;
|
|
205
65
|
description: z.ZodString;
|
|
206
|
-
},
|
|
207
|
-
description: string;
|
|
208
|
-
ruleId: string;
|
|
209
|
-
}, {
|
|
210
|
-
description: string;
|
|
211
|
-
ruleId: string;
|
|
212
|
-
}>, "many">;
|
|
66
|
+
}, z.core.$strip>>;
|
|
213
67
|
migrationGuides: z.ZodArray<z.ZodObject<{
|
|
214
68
|
title: z.ZodString;
|
|
215
69
|
text: z.ZodString;
|
|
216
70
|
uri: z.ZodString;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
text: string;
|
|
220
|
-
uri: string;
|
|
221
|
-
}, {
|
|
222
|
-
title: string;
|
|
223
|
-
text: string;
|
|
224
|
-
uri: string;
|
|
225
|
-
}>, "many">;
|
|
226
|
-
apiReferences: z.ZodArray<z.ZodAny, "many">;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
apiReferences: z.ZodArray<z.ZodAny>;
|
|
227
73
|
documentationResources: z.ZodArray<z.ZodObject<{
|
|
228
74
|
title: z.ZodString;
|
|
229
75
|
text: z.ZodString;
|
|
230
76
|
uri: z.ZodString;
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
uri: string;
|
|
235
|
-
}, {
|
|
236
|
-
title: string;
|
|
237
|
-
text: string;
|
|
238
|
-
uri: string;
|
|
239
|
-
}>, "many">;
|
|
240
|
-
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
ruleDescriptions: {
|
|
242
|
-
description: string;
|
|
243
|
-
ruleId: string;
|
|
244
|
-
}[];
|
|
245
|
-
migrationGuides: {
|
|
246
|
-
title: string;
|
|
247
|
-
text: string;
|
|
248
|
-
uri: string;
|
|
249
|
-
}[];
|
|
250
|
-
apiReferences: any[];
|
|
251
|
-
documentationResources: {
|
|
252
|
-
title: string;
|
|
253
|
-
text: string;
|
|
254
|
-
uri: string;
|
|
255
|
-
}[];
|
|
256
|
-
}, {
|
|
257
|
-
ruleDescriptions: {
|
|
258
|
-
description: string;
|
|
259
|
-
ruleId: string;
|
|
260
|
-
}[];
|
|
261
|
-
migrationGuides: {
|
|
262
|
-
title: string;
|
|
263
|
-
text: string;
|
|
264
|
-
uri: string;
|
|
265
|
-
}[];
|
|
266
|
-
apiReferences: any[];
|
|
267
|
-
documentationResources: {
|
|
268
|
-
title: string;
|
|
269
|
-
text: string;
|
|
270
|
-
uri: string;
|
|
271
|
-
}[];
|
|
272
|
-
}>>;
|
|
273
|
-
}, "strip", z.ZodTypeAny, {
|
|
274
|
-
projectDir: string;
|
|
275
|
-
results: {
|
|
276
|
-
messages: {
|
|
277
|
-
message: string;
|
|
278
|
-
severity: number;
|
|
279
|
-
ruleId: string;
|
|
280
|
-
line?: number | undefined;
|
|
281
|
-
messageDetails?: string | undefined;
|
|
282
|
-
fatal?: boolean | undefined;
|
|
283
|
-
column?: number | undefined;
|
|
284
|
-
}[];
|
|
285
|
-
filePath: string;
|
|
286
|
-
}[];
|
|
287
|
-
frameworkVersion?: string | undefined;
|
|
288
|
-
contextInformation?: {
|
|
289
|
-
ruleDescriptions: {
|
|
290
|
-
description: string;
|
|
291
|
-
ruleId: string;
|
|
292
|
-
}[];
|
|
293
|
-
migrationGuides: {
|
|
294
|
-
title: string;
|
|
295
|
-
text: string;
|
|
296
|
-
uri: string;
|
|
297
|
-
}[];
|
|
298
|
-
apiReferences: any[];
|
|
299
|
-
documentationResources: {
|
|
300
|
-
title: string;
|
|
301
|
-
text: string;
|
|
302
|
-
uri: string;
|
|
303
|
-
}[];
|
|
304
|
-
} | undefined;
|
|
305
|
-
}, {
|
|
306
|
-
projectDir: string;
|
|
307
|
-
results: {
|
|
308
|
-
messages: {
|
|
309
|
-
message: string;
|
|
310
|
-
severity: number;
|
|
311
|
-
ruleId: string;
|
|
312
|
-
line?: number | undefined;
|
|
313
|
-
messageDetails?: string | undefined;
|
|
314
|
-
fatal?: boolean | undefined;
|
|
315
|
-
column?: number | undefined;
|
|
316
|
-
}[];
|
|
317
|
-
filePath: string;
|
|
318
|
-
}[];
|
|
319
|
-
frameworkVersion?: string | undefined;
|
|
320
|
-
contextInformation?: {
|
|
321
|
-
ruleDescriptions: {
|
|
322
|
-
description: string;
|
|
323
|
-
ruleId: string;
|
|
324
|
-
}[];
|
|
325
|
-
migrationGuides: {
|
|
326
|
-
title: string;
|
|
327
|
-
text: string;
|
|
328
|
-
uri: string;
|
|
329
|
-
}[];
|
|
330
|
-
apiReferences: any[];
|
|
331
|
-
documentationResources: {
|
|
332
|
-
title: string;
|
|
333
|
-
text: string;
|
|
334
|
-
uri: string;
|
|
335
|
-
}[];
|
|
336
|
-
} | undefined;
|
|
337
|
-
}>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
338
80
|
export type RunUi5LinterParams = z.infer<typeof inputSchemaObject>;
|
|
339
81
|
export type RunUi5LinterResult = z.infer<typeof outputSchemaObject>;
|
|
340
82
|
export type RunUi5LinterResultContext = z.infer<typeof outputSchema.contextInformation>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const Ui5FrameworkSchema: z.ZodEnum<
|
|
2
|
+
export declare const Ui5FrameworkSchema: z.ZodEnum<{
|
|
3
|
+
OpenUI5: "OpenUI5";
|
|
4
|
+
SAPUI5: "SAPUI5";
|
|
5
|
+
}>;
|
|
3
6
|
export type Ui5Framework = z.infer<typeof Ui5FrameworkSchema>;
|
|
4
7
|
export declare function isUi5Framework(value: unknown): value is Ui5Framework;
|