@dgplsoares/singulai-ds-mcp 0.1.0 → 0.3.0
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/dist/catalog.d.ts +109 -0
- package/dist/catalog.js +14 -0
- package/dist/catalog.js.map +1 -1
- package/dist/data/catalog.json +1954 -159
- package/package.json +2 -2
package/dist/catalog.d.ts
CHANGED
|
@@ -94,6 +94,48 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
94
94
|
}[] | undefined;
|
|
95
95
|
examples?: string[] | undefined;
|
|
96
96
|
}>;
|
|
97
|
+
declare const ServiceSchema: z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
providedIn: z.ZodString;
|
|
100
|
+
description: z.ZodString;
|
|
101
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
102
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
signature: z.ZodString;
|
|
105
|
+
description: z.ZodString;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
name: string;
|
|
108
|
+
description: string;
|
|
109
|
+
signature: string;
|
|
110
|
+
}, {
|
|
111
|
+
name: string;
|
|
112
|
+
description: string;
|
|
113
|
+
signature: string;
|
|
114
|
+
}>, "many">;
|
|
115
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
tags: string[];
|
|
120
|
+
examples: string[];
|
|
121
|
+
providedIn: string;
|
|
122
|
+
methods: {
|
|
123
|
+
name: string;
|
|
124
|
+
description: string;
|
|
125
|
+
signature: string;
|
|
126
|
+
}[];
|
|
127
|
+
}, {
|
|
128
|
+
name: string;
|
|
129
|
+
description: string;
|
|
130
|
+
tags: string[];
|
|
131
|
+
providedIn: string;
|
|
132
|
+
methods: {
|
|
133
|
+
name: string;
|
|
134
|
+
description: string;
|
|
135
|
+
signature: string;
|
|
136
|
+
}[];
|
|
137
|
+
examples?: string[] | undefined;
|
|
138
|
+
}>;
|
|
97
139
|
declare const CatalogSchema: z.ZodObject<{
|
|
98
140
|
version: z.ZodString;
|
|
99
141
|
generated_at: z.ZodString;
|
|
@@ -190,6 +232,48 @@ declare const CatalogSchema: z.ZodObject<{
|
|
|
190
232
|
}[] | undefined;
|
|
191
233
|
examples?: string[] | undefined;
|
|
192
234
|
}>, "many">;
|
|
235
|
+
services: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
name: z.ZodString;
|
|
237
|
+
providedIn: z.ZodString;
|
|
238
|
+
description: z.ZodString;
|
|
239
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
240
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
signature: z.ZodString;
|
|
243
|
+
description: z.ZodString;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
name: string;
|
|
246
|
+
description: string;
|
|
247
|
+
signature: string;
|
|
248
|
+
}, {
|
|
249
|
+
name: string;
|
|
250
|
+
description: string;
|
|
251
|
+
signature: string;
|
|
252
|
+
}>, "many">;
|
|
253
|
+
examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
name: string;
|
|
256
|
+
description: string;
|
|
257
|
+
tags: string[];
|
|
258
|
+
examples: string[];
|
|
259
|
+
providedIn: string;
|
|
260
|
+
methods: {
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
signature: string;
|
|
264
|
+
}[];
|
|
265
|
+
}, {
|
|
266
|
+
name: string;
|
|
267
|
+
description: string;
|
|
268
|
+
tags: string[];
|
|
269
|
+
providedIn: string;
|
|
270
|
+
methods: {
|
|
271
|
+
name: string;
|
|
272
|
+
description: string;
|
|
273
|
+
signature: string;
|
|
274
|
+
}[];
|
|
275
|
+
examples?: string[] | undefined;
|
|
276
|
+
}>, "many">>>;
|
|
193
277
|
}, "strip", z.ZodTypeAny, {
|
|
194
278
|
version: string;
|
|
195
279
|
generated_at: string;
|
|
@@ -220,6 +304,18 @@ declare const CatalogSchema: z.ZodObject<{
|
|
|
220
304
|
type: string;
|
|
221
305
|
}[] | undefined;
|
|
222
306
|
}[];
|
|
307
|
+
services: {
|
|
308
|
+
name: string;
|
|
309
|
+
description: string;
|
|
310
|
+
tags: string[];
|
|
311
|
+
examples: string[];
|
|
312
|
+
providedIn: string;
|
|
313
|
+
methods: {
|
|
314
|
+
name: string;
|
|
315
|
+
description: string;
|
|
316
|
+
signature: string;
|
|
317
|
+
}[];
|
|
318
|
+
}[];
|
|
223
319
|
}, {
|
|
224
320
|
version: string;
|
|
225
321
|
generated_at: string;
|
|
@@ -250,10 +346,23 @@ declare const CatalogSchema: z.ZodObject<{
|
|
|
250
346
|
}[] | undefined;
|
|
251
347
|
examples?: string[] | undefined;
|
|
252
348
|
}[];
|
|
349
|
+
services?: {
|
|
350
|
+
name: string;
|
|
351
|
+
description: string;
|
|
352
|
+
tags: string[];
|
|
353
|
+
providedIn: string;
|
|
354
|
+
methods: {
|
|
355
|
+
name: string;
|
|
356
|
+
description: string;
|
|
357
|
+
signature: string;
|
|
358
|
+
}[];
|
|
359
|
+
examples?: string[] | undefined;
|
|
360
|
+
}[] | undefined;
|
|
253
361
|
}>;
|
|
254
362
|
export type Catalog = z.infer<typeof CatalogSchema>;
|
|
255
363
|
export type CatalogComponent = z.infer<typeof ComponentSchema>;
|
|
256
364
|
export type CatalogProp = z.infer<typeof PropSchema>;
|
|
365
|
+
export type CatalogService = z.infer<typeof ServiceSchema>;
|
|
257
366
|
export declare function loadCatalog(): Catalog;
|
|
258
367
|
/**
|
|
259
368
|
* Encontra um componente por name (ButtonComponent) ou selector (ds-button).
|
package/dist/catalog.js
CHANGED
|
@@ -31,6 +31,19 @@ const ComponentSchema = z.object({
|
|
|
31
31
|
outputs: z.array(OutputSchema).optional(),
|
|
32
32
|
examples: z.array(z.string()).default([]),
|
|
33
33
|
});
|
|
34
|
+
const ServiceMethodSchema = z.object({
|
|
35
|
+
name: z.string(),
|
|
36
|
+
signature: z.string(),
|
|
37
|
+
description: z.string(),
|
|
38
|
+
});
|
|
39
|
+
const ServiceSchema = z.object({
|
|
40
|
+
name: z.string(),
|
|
41
|
+
providedIn: z.string(),
|
|
42
|
+
description: z.string(),
|
|
43
|
+
tags: z.array(z.string()),
|
|
44
|
+
methods: z.array(ServiceMethodSchema),
|
|
45
|
+
examples: z.array(z.string()).default([]),
|
|
46
|
+
});
|
|
34
47
|
const CatalogSchema = z.object({
|
|
35
48
|
version: z.string(),
|
|
36
49
|
generated_at: z.string(),
|
|
@@ -44,6 +57,7 @@ const CatalogSchema = z.object({
|
|
|
44
57
|
}),
|
|
45
58
|
types: z.record(z.string(), z.array(z.string())),
|
|
46
59
|
components: z.array(ComponentSchema),
|
|
60
|
+
services: z.array(ServiceSchema).optional().default([]),
|
|
47
61
|
});
|
|
48
62
|
// ---------------------------------------------------------------------------
|
|
49
63
|
// Loader
|
package/dist/catalog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE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