@vfarcic/dot-ai 1.1.0 → 1.2.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/core/model-config.d.ts +1 -1
- package/dist/core/model-config.js +1 -1
- package/dist/interfaces/openapi-generator.d.ts.map +1 -1
- package/dist/interfaces/openapi-generator.js +32 -30
- package/dist/interfaces/rest-registry.d.ts +1 -1
- package/dist/interfaces/rest-registry.d.ts.map +1 -1
- package/dist/interfaces/rest-registry.js +12 -28
- package/dist/interfaces/schemas/common.d.ts +0 -7
- package/dist/interfaces/schemas/common.d.ts.map +1 -1
- package/dist/interfaces/schemas/common.js +17 -5
- package/dist/interfaces/schemas/events.d.ts +0 -4
- package/dist/interfaces/schemas/events.d.ts.map +1 -1
- package/dist/interfaces/schemas/knowledge.d.ts +0 -9
- package/dist/interfaces/schemas/knowledge.d.ts.map +1 -1
- package/dist/interfaces/schemas/logs.d.ts +0 -4
- package/dist/interfaces/schemas/logs.d.ts.map +1 -1
- package/dist/interfaces/schemas/prompts.d.ts +0 -6
- package/dist/interfaces/schemas/prompts.d.ts.map +1 -1
- package/dist/interfaces/schemas/resources.d.ts +0 -15
- package/dist/interfaces/schemas/resources.d.ts.map +1 -1
- package/dist/interfaces/schemas/sessions.d.ts +0 -3
- package/dist/interfaces/schemas/sessions.d.ts.map +1 -1
- package/dist/interfaces/schemas/tools.d.ts +0 -6
- package/dist/interfaces/schemas/tools.d.ts.map +1 -1
- package/dist/interfaces/schemas/visualization.d.ts +0 -4
- package/dist/interfaces/schemas/visualization.d.ts.map +1 -1
- package/dist/tools/prompts.d.ts +1 -1
- package/dist/tools/prompts.d.ts.map +1 -1
- package/dist/tools/prompts.js +6 -3
- package/package.json +6 -6
- package/scripts/generate-openapi.sh +56 -0
- package/scripts/grafana-stack.nu +118 -0
- package/shared-prompts/prd-create.md +2 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const CURRENT_MODELS: {
|
|
8
8
|
readonly anthropic: "claude-sonnet-4-5-20250929";
|
|
9
|
-
readonly anthropic_opus: "claude-opus-4-
|
|
9
|
+
readonly anthropic_opus: "claude-opus-4-6";
|
|
10
10
|
readonly anthropic_haiku: "claude-haiku-4-5-20251001";
|
|
11
11
|
readonly openai: "gpt-5.1-codex";
|
|
12
12
|
readonly google: "gemini-3-pro-preview";
|
|
@@ -10,7 +10,7 @@ exports.CURRENT_MODELS = void 0;
|
|
|
10
10
|
exports.getCurrentModel = getCurrentModel;
|
|
11
11
|
exports.CURRENT_MODELS = {
|
|
12
12
|
anthropic: 'claude-sonnet-4-5-20250929',
|
|
13
|
-
anthropic_opus: 'claude-opus-4-
|
|
13
|
+
anthropic_opus: 'claude-opus-4-6',
|
|
14
14
|
anthropic_haiku: 'claude-haiku-4-5-20251001',
|
|
15
15
|
openai: 'gpt-5.1-codex',
|
|
16
16
|
google: 'gemini-3-pro-preview',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi-generator.d.ts","sourceRoot":"","sources":["../../src/interfaces/openapi-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"openapi-generator.d.ts","sourceRoot":"","sources":["../../src/interfaces/openapi-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,OAAO,EAAE,gBAAgB,EAAY,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAmB,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAMhD;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9C,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAA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OpenApiGenerator = void 0;
|
|
14
|
-
const
|
|
14
|
+
const fs_1 = require("fs");
|
|
15
|
+
const path_1 = require("path");
|
|
16
|
+
const zod_1 = require("zod");
|
|
17
|
+
const packageJson = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../../package.json'), 'utf8'));
|
|
15
18
|
/**
|
|
16
19
|
* OpenAPI 3.0 specification generator
|
|
17
20
|
*/
|
|
@@ -31,7 +34,7 @@ class OpenApiGenerator {
|
|
|
31
34
|
this.config = {
|
|
32
35
|
title: 'DevOps AI Toolkit REST API',
|
|
33
36
|
description: 'REST API gateway for DevOps AI Toolkit MCP tools - provides HTTP access to all AI-powered DevOps automation capabilities',
|
|
34
|
-
version:
|
|
37
|
+
version: packageJson.version,
|
|
35
38
|
basePath: '/api',
|
|
36
39
|
apiVersion: 'v1',
|
|
37
40
|
serverUrl: 'http://localhost:3456',
|
|
@@ -58,14 +61,10 @@ class OpenApiGenerator {
|
|
|
58
61
|
// Generate paths from tool registry (MCP tools)
|
|
59
62
|
const toolPaths = this.generateToolPaths(tools);
|
|
60
63
|
// Generate paths from route registry (REST endpoints) - PRD #354
|
|
61
|
-
const routePaths = this.routeRegistry
|
|
62
|
-
? this.generateRoutePaths()
|
|
63
|
-
: {};
|
|
64
|
+
const routePaths = this.routeRegistry ? this.generateRoutePaths() : {};
|
|
64
65
|
// Generate component schemas
|
|
65
66
|
const toolSchemas = this.generateToolSchemas(tools);
|
|
66
|
-
const routeSchemas = this.routeRegistry
|
|
67
|
-
? this.generateRouteSchemas()
|
|
68
|
-
: {};
|
|
67
|
+
const routeSchemas = this.routeRegistry ? this.generateRouteSchemas() : {};
|
|
69
68
|
const spec = {
|
|
70
69
|
openapi: '3.0.0',
|
|
71
70
|
info: this.generateInfo(),
|
|
@@ -105,12 +104,12 @@ class OpenApiGenerator {
|
|
|
105
104
|
contact: {
|
|
106
105
|
name: 'Viktor Farcic',
|
|
107
106
|
url: 'https://devopstoolkit.live/',
|
|
108
|
-
email: 'viktor@farcic.com'
|
|
107
|
+
email: 'viktor@farcic.com',
|
|
109
108
|
},
|
|
110
109
|
license: {
|
|
111
110
|
name: 'MIT',
|
|
112
|
-
url: 'https://github.com/vfarcic/dot-ai/blob/main/LICENSE'
|
|
113
|
-
}
|
|
111
|
+
url: 'https://github.com/vfarcic/dot-ai/blob/main/LICENSE',
|
|
112
|
+
},
|
|
114
113
|
};
|
|
115
114
|
return info;
|
|
116
115
|
}
|
|
@@ -121,8 +120,8 @@ class OpenApiGenerator {
|
|
|
121
120
|
return [
|
|
122
121
|
{
|
|
123
122
|
url: this.config.serverUrl || 'http://localhost:3456',
|
|
124
|
-
description: 'DevOps AI Toolkit MCP Server'
|
|
125
|
-
}
|
|
123
|
+
description: 'DevOps AI Toolkit MCP Server',
|
|
124
|
+
},
|
|
126
125
|
];
|
|
127
126
|
}
|
|
128
127
|
/**
|
|
@@ -256,7 +255,9 @@ class OpenApiGenerator {
|
|
|
256
255
|
description: 'Tool execution result',
|
|
257
256
|
content: {
|
|
258
257
|
'application/json': {
|
|
259
|
-
schema: {
|
|
258
|
+
schema: {
|
|
259
|
+
$ref: '#/components/schemas/ToolExecutionResponse',
|
|
260
|
+
},
|
|
260
261
|
},
|
|
261
262
|
},
|
|
262
263
|
},
|
|
@@ -307,7 +308,8 @@ class OpenApiGenerator {
|
|
|
307
308
|
if (!paths[openApiPath]) {
|
|
308
309
|
paths[openApiPath] = {};
|
|
309
310
|
}
|
|
310
|
-
paths[openApiPath][method] =
|
|
311
|
+
paths[openApiPath][method] =
|
|
312
|
+
this.routeToOpenApiOperation(route);
|
|
311
313
|
}
|
|
312
314
|
return paths;
|
|
313
315
|
}
|
|
@@ -450,8 +452,8 @@ class OpenApiGenerator {
|
|
|
450
452
|
const pathParts = route.path
|
|
451
453
|
.replace(/^\/api\/v\d+\//, '') // Remove /api/v1/ prefix
|
|
452
454
|
.split('/')
|
|
453
|
-
.filter(
|
|
454
|
-
.map(
|
|
455
|
+
.filter(part => part.length > 0)
|
|
456
|
+
.map(part => {
|
|
455
457
|
// Remove : prefix for params and capitalize
|
|
456
458
|
const cleaned = part.replace(/^:/, '');
|
|
457
459
|
return cleaned.charAt(0).toUpperCase() + cleaned.slice(1);
|
|
@@ -486,15 +488,10 @@ class OpenApiGenerator {
|
|
|
486
488
|
return this.schemaCache.get(cacheKey);
|
|
487
489
|
}
|
|
488
490
|
try {
|
|
489
|
-
|
|
490
|
-
//
|
|
491
|
-
const jsonSchema = (0, zod_to_json_schema_1.zodToJsonSchema)(schema, {
|
|
492
|
-
target: 'openApi3',
|
|
493
|
-
$refStrategy: 'none', // Inline all schemas
|
|
494
|
-
});
|
|
495
|
-
// Remove $schema property if present (not valid in OpenAPI component schemas)
|
|
496
|
-
const result = { ...jsonSchema };
|
|
491
|
+
const result = zod_1.z.toJSONSchema(schema);
|
|
492
|
+
// Remove $schema and additionalProperties (not valid in OpenAPI component schemas)
|
|
497
493
|
delete result.$schema;
|
|
494
|
+
delete result.additionalProperties;
|
|
498
495
|
this.schemaCache.set(cacheKey, result);
|
|
499
496
|
return result;
|
|
500
497
|
}
|
|
@@ -524,7 +521,10 @@ class OpenApiGenerator {
|
|
|
524
521
|
properties: {
|
|
525
522
|
code: { type: 'string', description: 'Error code' },
|
|
526
523
|
message: { type: 'string', description: 'Error message' },
|
|
527
|
-
details: {
|
|
524
|
+
details: {
|
|
525
|
+
type: 'object',
|
|
526
|
+
description: 'Additional error details',
|
|
527
|
+
},
|
|
528
528
|
},
|
|
529
529
|
},
|
|
530
530
|
meta: {
|
|
@@ -774,7 +774,7 @@ class OpenApiGenerator {
|
|
|
774
774
|
},
|
|
775
775
|
];
|
|
776
776
|
// Track tag names to avoid duplicates
|
|
777
|
-
const tagNames = new Set(tags.map(
|
|
777
|
+
const tagNames = new Set(tags.map(t => t.name));
|
|
778
778
|
// Add category-based tags from tool registry
|
|
779
779
|
for (const category of categories) {
|
|
780
780
|
if (!tagNames.has(category)) {
|
|
@@ -786,7 +786,7 @@ class OpenApiGenerator {
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
// Add generic tools tag for uncategorized tools
|
|
789
|
-
if (this.toolRegistry.getAllTools().some(
|
|
789
|
+
if (this.toolRegistry.getAllTools().some(tool => !tool.category)) {
|
|
790
790
|
if (!tagNames.has('Tools')) {
|
|
791
791
|
tags.push({
|
|
792
792
|
name: 'Tools',
|
|
@@ -826,7 +826,7 @@ class OpenApiGenerator {
|
|
|
826
826
|
catch (error) {
|
|
827
827
|
this.logger.warn('Failed to generate example for tool', {
|
|
828
828
|
toolName: tool.name,
|
|
829
|
-
error: error instanceof Error ? error.message : String(error)
|
|
829
|
+
error: error instanceof Error ? error.message : String(error),
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
return example;
|
|
@@ -868,7 +868,9 @@ class OpenApiGenerator {
|
|
|
868
868
|
case 'boolean':
|
|
869
869
|
return false;
|
|
870
870
|
case 'array':
|
|
871
|
-
return [
|
|
871
|
+
return [
|
|
872
|
+
this.generateExampleValue(propSchema.items, 'item'),
|
|
873
|
+
];
|
|
872
874
|
case 'object': {
|
|
873
875
|
const objExample = {};
|
|
874
876
|
if (propSchema.properties) {
|
|
@@ -76,7 +76,7 @@ export declare class RestToolRegistry {
|
|
|
76
76
|
*/
|
|
77
77
|
clear(): void;
|
|
78
78
|
/**
|
|
79
|
-
* Convert Zod schema to JSON Schema using
|
|
79
|
+
* Convert Zod schema to JSON Schema using Zod v4 native toJSONSchema
|
|
80
80
|
*/
|
|
81
81
|
private convertZodSchemaToJsonSchema;
|
|
82
82
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest-registry.d.ts","sourceRoot":"","sources":["../../src/interfaces/rest-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"rest-registry.d.ts","sourceRoot":"","sources":["../../src/interfaces/rest-registry.ts"],"names":[],"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QAAQ,EAAE,YAAY,GAAG,IAAI;IAa1C;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAI/C;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE;IAIxB;;OAEG;IACH,WAAW,IAAI,QAAQ,EAAE;IAazB;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B;;OAEG;IACH,YAAY,IAAI,MAAM;IAItB;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAgDpC;;OAEG;IACH,gBAAgB,CACd,OAAO,GAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACZ,GACL,QAAQ,EAAE;IAuBb;;OAEG;IACH,aAAa,IAAI,MAAM,EAAE;IAUzB;;OAEG;IACH,OAAO,IAAI,MAAM,EAAE;IAUnB;;OAEG;IACH,QAAQ,IAAI;QACV,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB;CAQF"}
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.RestToolRegistry = void 0;
|
|
10
10
|
const zod_1 = require("zod");
|
|
11
|
-
const zod_to_json_schema_1 = require("zod-to-json-schema");
|
|
12
11
|
/**
|
|
13
12
|
* Registry for managing all tools available via REST API
|
|
14
13
|
*/
|
|
@@ -30,7 +29,7 @@ class RestToolRegistry {
|
|
|
30
29
|
name: metadata.name,
|
|
31
30
|
description: metadata.description,
|
|
32
31
|
category: metadata.category,
|
|
33
|
-
tags: metadata.tags
|
|
32
|
+
tags: metadata.tags,
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
@@ -56,7 +55,7 @@ class RestToolRegistry {
|
|
|
56
55
|
description: tool.description,
|
|
57
56
|
schema: this.convertZodSchemaToJsonSchema(tool.name, tool.inputSchema),
|
|
58
57
|
category: tool.category,
|
|
59
|
-
tags: tool.tags
|
|
58
|
+
tags: tool.tags,
|
|
60
59
|
};
|
|
61
60
|
});
|
|
62
61
|
}
|
|
@@ -81,7 +80,7 @@ class RestToolRegistry {
|
|
|
81
80
|
this.logger.debug('REST tool registry cleared');
|
|
82
81
|
}
|
|
83
82
|
/**
|
|
84
|
-
* Convert Zod schema to JSON Schema using
|
|
83
|
+
* Convert Zod schema to JSON Schema using Zod v4 native toJSONSchema
|
|
85
84
|
*/
|
|
86
85
|
convertZodSchemaToJsonSchema(toolName, zodSchemas) {
|
|
87
86
|
const cached = this.schemaCache.get(toolName);
|
|
@@ -89,45 +88,30 @@ class RestToolRegistry {
|
|
|
89
88
|
return cached;
|
|
90
89
|
}
|
|
91
90
|
try {
|
|
92
|
-
// Create a Zod object schema from the individual field schemas
|
|
93
91
|
const zodObjectSchema = zod_1.z.object(zodSchemas);
|
|
94
|
-
//
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// Place definitions where OpenAPI expects them
|
|
100
|
-
definitionPath: 'components.schemas',
|
|
101
|
-
$refStrategy: 'none' // inline sub-schemas to avoid unresolved refs
|
|
102
|
-
});
|
|
103
|
-
let result = jsonSchema;
|
|
104
|
-
// Extract the actual schema from components.schemas if it's using $ref
|
|
105
|
-
const jsonSchemaWithComponents = jsonSchema;
|
|
106
|
-
if (result.$ref && jsonSchemaWithComponents['components.schemas']) {
|
|
107
|
-
const refKey = result.$ref.replace('#/components.schemas/', '');
|
|
108
|
-
if (jsonSchemaWithComponents['components.schemas'][refKey]) {
|
|
109
|
-
result = jsonSchemaWithComponents['components.schemas'][refKey];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- JsonSchema index signature
|
|
93
|
+
const result = zod_1.z.toJSONSchema(zodObjectSchema);
|
|
94
|
+
// Remove $schema and additionalProperties (not valid in OpenAPI component schemas)
|
|
95
|
+
delete result.$schema;
|
|
96
|
+
delete result.additionalProperties;
|
|
112
97
|
this.schemaCache.set(toolName, result);
|
|
113
98
|
this.logger.debug('Converted Zod schema to JSON Schema', {
|
|
114
99
|
toolName,
|
|
115
100
|
schemaKeys: Object.keys(zodSchemas),
|
|
116
|
-
resultType: result.type
|
|
101
|
+
resultType: result.type,
|
|
117
102
|
});
|
|
118
103
|
return result;
|
|
119
104
|
}
|
|
120
105
|
catch (error) {
|
|
121
106
|
this.logger.error('Failed to convert Zod schema to JSON Schema', error instanceof Error ? error : new Error(String(error)), {
|
|
122
107
|
toolName,
|
|
123
|
-
errorMessage: error instanceof Error ? error.message : String(error)
|
|
108
|
+
errorMessage: error instanceof Error ? error.message : String(error),
|
|
124
109
|
});
|
|
125
|
-
// Fallback to a basic schema
|
|
126
110
|
const fallbackSchema = {
|
|
127
111
|
type: 'object',
|
|
128
112
|
description: `Schema conversion failed for ${toolName} - using fallback`,
|
|
129
113
|
properties: {},
|
|
130
|
-
additionalProperties: true
|
|
114
|
+
additionalProperties: true,
|
|
131
115
|
};
|
|
132
116
|
return fallbackSchema;
|
|
133
117
|
}
|
|
@@ -182,7 +166,7 @@ class RestToolRegistry {
|
|
|
182
166
|
totalTools: this.tools.size,
|
|
183
167
|
categories: this.getCategories(),
|
|
184
168
|
tags: this.getTags(),
|
|
185
|
-
cacheSize: this.schemaCache.size
|
|
169
|
+
cacheSize: this.schemaCache.size,
|
|
186
170
|
};
|
|
187
171
|
}
|
|
188
172
|
}
|
|
@@ -48,7 +48,6 @@ export type RestApiResponse = z.infer<typeof RestApiResponseSchema>;
|
|
|
48
48
|
export declare function createSuccessResponseSchema<T extends z.ZodTypeAny>(dataSchema: T): z.ZodObject<{
|
|
49
49
|
success: z.ZodLiteral<true>;
|
|
50
50
|
data: T;
|
|
51
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
52
51
|
meta: z.ZodOptional<z.ZodObject<{
|
|
53
52
|
timestamp: z.ZodString;
|
|
54
53
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -60,7 +59,6 @@ export declare function createSuccessResponseSchema<T extends z.ZodTypeAny>(data
|
|
|
60
59
|
*/
|
|
61
60
|
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
62
61
|
success: z.ZodLiteral<false>;
|
|
63
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
64
62
|
error: z.ZodObject<{
|
|
65
63
|
code: z.ZodString;
|
|
66
64
|
message: z.ZodString;
|
|
@@ -78,7 +76,6 @@ export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
|
78
76
|
*/
|
|
79
77
|
export declare const NotFoundErrorSchema: z.ZodObject<{
|
|
80
78
|
success: z.ZodLiteral<false>;
|
|
81
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
82
79
|
meta: z.ZodOptional<z.ZodObject<{
|
|
83
80
|
timestamp: z.ZodString;
|
|
84
81
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -92,7 +89,6 @@ export declare const NotFoundErrorSchema: z.ZodObject<{
|
|
|
92
89
|
}, z.core.$strip>;
|
|
93
90
|
export declare const BadRequestErrorSchema: z.ZodObject<{
|
|
94
91
|
success: z.ZodLiteral<false>;
|
|
95
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
96
92
|
meta: z.ZodOptional<z.ZodObject<{
|
|
97
93
|
timestamp: z.ZodString;
|
|
98
94
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -112,7 +108,6 @@ export declare const BadRequestErrorSchema: z.ZodObject<{
|
|
|
112
108
|
}, z.core.$strip>;
|
|
113
109
|
export declare const MethodNotAllowedErrorSchema: z.ZodObject<{
|
|
114
110
|
success: z.ZodLiteral<false>;
|
|
115
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
116
111
|
meta: z.ZodOptional<z.ZodObject<{
|
|
117
112
|
timestamp: z.ZodString;
|
|
118
113
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -126,7 +121,6 @@ export declare const MethodNotAllowedErrorSchema: z.ZodObject<{
|
|
|
126
121
|
}, z.core.$strip>;
|
|
127
122
|
export declare const ServiceUnavailableErrorSchema: z.ZodObject<{
|
|
128
123
|
success: z.ZodLiteral<false>;
|
|
129
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
130
124
|
meta: z.ZodOptional<z.ZodObject<{
|
|
131
125
|
timestamp: z.ZodString;
|
|
132
126
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -145,7 +139,6 @@ export declare const ServiceUnavailableErrorSchema: z.ZodObject<{
|
|
|
145
139
|
}, z.core.$strip>;
|
|
146
140
|
export declare const InternalServerErrorSchema: z.ZodObject<{
|
|
147
141
|
success: z.ZodLiteral<false>;
|
|
148
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
149
142
|
meta: z.ZodOptional<z.ZodObject<{
|
|
150
143
|
timestamp: z.ZodString;
|
|
151
144
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/common.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,UAAU;;;;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/common.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,UAAU;;;;iBAOrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAOhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAChE,UAAU,EAAE,CAAC;;;;;;;;kBAOd;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAI9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBAUhC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;iBASxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBpC,CAAC"}
|
|
@@ -14,7 +14,10 @@ const zod_1 = require("zod");
|
|
|
14
14
|
*/
|
|
15
15
|
exports.MetaSchema = zod_1.z.object({
|
|
16
16
|
timestamp: zod_1.z.string().describe('ISO 8601 timestamp of the response'),
|
|
17
|
-
requestId: zod_1.z
|
|
17
|
+
requestId: zod_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('Unique request identifier for tracing'),
|
|
18
21
|
version: zod_1.z.string().describe('API version'),
|
|
19
22
|
});
|
|
20
23
|
/**
|
|
@@ -42,7 +45,6 @@ function createSuccessResponseSchema(dataSchema) {
|
|
|
42
45
|
return zod_1.z.object({
|
|
43
46
|
success: zod_1.z.literal(true),
|
|
44
47
|
data: dataSchema,
|
|
45
|
-
error: zod_1.z.undefined().optional(),
|
|
46
48
|
meta: exports.MetaSchema.optional(),
|
|
47
49
|
});
|
|
48
50
|
}
|
|
@@ -51,7 +53,6 @@ function createSuccessResponseSchema(dataSchema) {
|
|
|
51
53
|
*/
|
|
52
54
|
exports.ErrorResponseSchema = zod_1.z.object({
|
|
53
55
|
success: zod_1.z.literal(false),
|
|
54
|
-
data: zod_1.z.undefined().optional(),
|
|
55
56
|
error: exports.ErrorDetailsSchema,
|
|
56
57
|
meta: exports.MetaSchema.optional(),
|
|
57
58
|
});
|
|
@@ -65,7 +66,13 @@ exports.NotFoundErrorSchema = exports.ErrorResponseSchema.extend({
|
|
|
65
66
|
});
|
|
66
67
|
exports.BadRequestErrorSchema = exports.ErrorResponseSchema.extend({
|
|
67
68
|
error: exports.ErrorDetailsSchema.extend({
|
|
68
|
-
code: zod_1.z.enum([
|
|
69
|
+
code: zod_1.z.enum([
|
|
70
|
+
'BAD_REQUEST',
|
|
71
|
+
'INVALID_REQUEST',
|
|
72
|
+
'MISSING_PARAMETER',
|
|
73
|
+
'INVALID_PARAMETER',
|
|
74
|
+
'VALIDATION_ERROR',
|
|
75
|
+
]),
|
|
69
76
|
}),
|
|
70
77
|
});
|
|
71
78
|
exports.MethodNotAllowedErrorSchema = exports.ErrorResponseSchema.extend({
|
|
@@ -75,7 +82,12 @@ exports.MethodNotAllowedErrorSchema = exports.ErrorResponseSchema.extend({
|
|
|
75
82
|
});
|
|
76
83
|
exports.ServiceUnavailableErrorSchema = exports.ErrorResponseSchema.extend({
|
|
77
84
|
error: exports.ErrorDetailsSchema.extend({
|
|
78
|
-
code: zod_1.z.enum([
|
|
85
|
+
code: zod_1.z.enum([
|
|
86
|
+
'AI_NOT_CONFIGURED',
|
|
87
|
+
'PLUGIN_UNAVAILABLE',
|
|
88
|
+
'VECTOR_DB_UNAVAILABLE',
|
|
89
|
+
'SERVICE_UNAVAILABLE',
|
|
90
|
+
]),
|
|
79
91
|
}),
|
|
80
92
|
});
|
|
81
93
|
exports.InternalServerErrorSchema = exports.ErrorResponseSchema.extend({
|
|
@@ -75,7 +75,6 @@ export declare const EventsResponseSchema: z.ZodObject<{
|
|
|
75
75
|
}, z.core.$strip>>;
|
|
76
76
|
count: z.ZodNumber;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
79
78
|
meta: z.ZodOptional<z.ZodObject<{
|
|
80
79
|
timestamp: z.ZodString;
|
|
81
80
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -88,7 +87,6 @@ export type EventsResponse = z.infer<typeof EventsResponseSchema>;
|
|
|
88
87
|
*/
|
|
89
88
|
export declare const EventsBadRequestErrorSchema: z.ZodObject<{
|
|
90
89
|
success: z.ZodLiteral<false>;
|
|
91
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
92
90
|
meta: z.ZodOptional<z.ZodObject<{
|
|
93
91
|
timestamp: z.ZodString;
|
|
94
92
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -102,7 +100,6 @@ export declare const EventsBadRequestErrorSchema: z.ZodObject<{
|
|
|
102
100
|
}, z.core.$strip>;
|
|
103
101
|
export declare const EventsPluginUnavailableErrorSchema: z.ZodObject<{
|
|
104
102
|
success: z.ZodLiteral<false>;
|
|
105
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
106
103
|
meta: z.ZodOptional<z.ZodObject<{
|
|
107
104
|
timestamp: z.ZodString;
|
|
108
105
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -116,7 +113,6 @@ export declare const EventsPluginUnavailableErrorSchema: z.ZodObject<{
|
|
|
116
113
|
}, z.core.$strip>;
|
|
117
114
|
export declare const EventsErrorSchema: z.ZodObject<{
|
|
118
115
|
success: z.ZodLiteral<false>;
|
|
119
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
120
116
|
meta: z.ZodOptional<z.ZodObject<{
|
|
121
117
|
timestamp: z.ZodString;
|
|
122
118
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAQhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;iBAQhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;iBAAgD,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;iBAM7C,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAM5B,CAAC"}
|
|
@@ -22,7 +22,6 @@ export declare const DeleteBySourceResponseSchema: z.ZodObject<{
|
|
|
22
22
|
sourceIdentifier: z.ZodString;
|
|
23
23
|
chunksDeleted: z.ZodNumber;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
26
25
|
meta: z.ZodOptional<z.ZodObject<{
|
|
27
26
|
timestamp: z.ZodString;
|
|
28
27
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -35,7 +34,6 @@ export type DeleteBySourceResponse = z.infer<typeof DeleteBySourceResponseSchema
|
|
|
35
34
|
*/
|
|
36
35
|
export declare const DeleteBySourceBadRequestErrorSchema: z.ZodObject<{
|
|
37
36
|
success: z.ZodLiteral<false>;
|
|
38
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
39
37
|
meta: z.ZodOptional<z.ZodObject<{
|
|
40
38
|
timestamp: z.ZodString;
|
|
41
39
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -49,7 +47,6 @@ export declare const DeleteBySourceBadRequestErrorSchema: z.ZodObject<{
|
|
|
49
47
|
}, z.core.$strip>;
|
|
50
48
|
export declare const DeleteBySourcePluginUnavailableErrorSchema: z.ZodObject<{
|
|
51
49
|
success: z.ZodLiteral<false>;
|
|
52
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
53
50
|
meta: z.ZodOptional<z.ZodObject<{
|
|
54
51
|
timestamp: z.ZodString;
|
|
55
52
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -63,7 +60,6 @@ export declare const DeleteBySourcePluginUnavailableErrorSchema: z.ZodObject<{
|
|
|
63
60
|
}, z.core.$strip>;
|
|
64
61
|
export declare const DeleteBySourceErrorSchema: z.ZodObject<{
|
|
65
62
|
success: z.ZodLiteral<false>;
|
|
66
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
67
63
|
meta: z.ZodOptional<z.ZodObject<{
|
|
68
64
|
timestamp: z.ZodString;
|
|
69
65
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -137,7 +133,6 @@ export declare const KnowledgeAskResponseSchema: z.ZodObject<{
|
|
|
137
133
|
chunkIndex: z.ZodNumber;
|
|
138
134
|
}, z.core.$strip>>;
|
|
139
135
|
}, z.core.$strip>;
|
|
140
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
141
136
|
meta: z.ZodOptional<z.ZodObject<{
|
|
142
137
|
timestamp: z.ZodString;
|
|
143
138
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -150,7 +145,6 @@ export type KnowledgeAskResponse = z.infer<typeof KnowledgeAskResponseSchema>;
|
|
|
150
145
|
*/
|
|
151
146
|
export declare const KnowledgeAskBadRequestErrorSchema: z.ZodObject<{
|
|
152
147
|
success: z.ZodLiteral<false>;
|
|
153
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
154
148
|
meta: z.ZodOptional<z.ZodObject<{
|
|
155
149
|
timestamp: z.ZodString;
|
|
156
150
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -164,7 +158,6 @@ export declare const KnowledgeAskBadRequestErrorSchema: z.ZodObject<{
|
|
|
164
158
|
}, z.core.$strip>;
|
|
165
159
|
export declare const KnowledgeAskAIUnavailableErrorSchema: z.ZodObject<{
|
|
166
160
|
success: z.ZodLiteral<false>;
|
|
167
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
168
161
|
meta: z.ZodOptional<z.ZodObject<{
|
|
169
162
|
timestamp: z.ZodString;
|
|
170
163
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -178,7 +171,6 @@ export declare const KnowledgeAskAIUnavailableErrorSchema: z.ZodObject<{
|
|
|
178
171
|
}, z.core.$strip>;
|
|
179
172
|
export declare const KnowledgeAskPluginUnavailableErrorSchema: z.ZodObject<{
|
|
180
173
|
success: z.ZodLiteral<false>;
|
|
181
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
182
174
|
meta: z.ZodOptional<z.ZodObject<{
|
|
183
175
|
timestamp: z.ZodString;
|
|
184
176
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -192,7 +184,6 @@ export declare const KnowledgeAskPluginUnavailableErrorSchema: z.ZodObject<{
|
|
|
192
184
|
}, z.core.$strip>;
|
|
193
185
|
export declare const KnowledgeAskErrorSchema: z.ZodObject<{
|
|
194
186
|
success: z.ZodLiteral<false>;
|
|
195
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
196
187
|
meta: z.ZodOptional<z.ZodObject<{
|
|
197
188
|
timestamp: z.ZodString;
|
|
198
189
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/knowledge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../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,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;iBAM5C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAM/C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;iBAMnD,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAMlC,CAAC"}
|
|
@@ -23,7 +23,6 @@ export declare const LogsResponseSchema: z.ZodObject<{
|
|
|
23
23
|
container: z.ZodString;
|
|
24
24
|
containerCount: z.ZodNumber;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
27
26
|
meta: z.ZodOptional<z.ZodObject<{
|
|
28
27
|
timestamp: z.ZodString;
|
|
29
28
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -36,7 +35,6 @@ export type LogsResponse = z.infer<typeof LogsResponseSchema>;
|
|
|
36
35
|
*/
|
|
37
36
|
export declare const LogsBadRequestErrorSchema: z.ZodObject<{
|
|
38
37
|
success: z.ZodLiteral<false>;
|
|
39
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
40
38
|
meta: z.ZodOptional<z.ZodObject<{
|
|
41
39
|
timestamp: z.ZodString;
|
|
42
40
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -53,7 +51,6 @@ export declare const LogsBadRequestErrorSchema: z.ZodObject<{
|
|
|
53
51
|
}, z.core.$strip>;
|
|
54
52
|
export declare const LogsPluginUnavailableErrorSchema: z.ZodObject<{
|
|
55
53
|
success: z.ZodLiteral<false>;
|
|
56
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
57
54
|
meta: z.ZodOptional<z.ZodObject<{
|
|
58
55
|
timestamp: z.ZodString;
|
|
59
56
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -67,7 +64,6 @@ export declare const LogsPluginUnavailableErrorSchema: z.ZodObject<{
|
|
|
67
64
|
}, z.core.$strip>;
|
|
68
65
|
export declare const LogsErrorSchema: z.ZodObject<{
|
|
69
66
|
success: z.ZodLiteral<false>;
|
|
70
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
71
67
|
meta: z.ZodOptional<z.ZodObject<{
|
|
72
68
|
timestamp: z.ZodString;
|
|
73
69
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/logs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/logs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAA8C,CAAC;AAE9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBAM3C,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;iBAM1B,CAAC"}
|
|
@@ -56,7 +56,6 @@ export declare const PromptsListResponseSchema: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>>>;
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
60
59
|
meta: z.ZodOptional<z.ZodObject<{
|
|
61
60
|
timestamp: z.ZodString;
|
|
62
61
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -114,7 +113,6 @@ export declare const PromptGetResponseSchema: z.ZodObject<{
|
|
|
114
113
|
}, z.core.$strip>;
|
|
115
114
|
}, z.core.$strip>>;
|
|
116
115
|
}, z.core.$strip>;
|
|
117
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
118
116
|
meta: z.ZodOptional<z.ZodObject<{
|
|
119
117
|
timestamp: z.ZodString;
|
|
120
118
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -134,7 +132,6 @@ export type PromptGetRequest = z.infer<typeof PromptGetRequestSchema>;
|
|
|
134
132
|
*/
|
|
135
133
|
export declare const PromptNotFoundErrorSchema: z.ZodObject<{
|
|
136
134
|
success: z.ZodLiteral<false>;
|
|
137
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
138
135
|
meta: z.ZodOptional<z.ZodObject<{
|
|
139
136
|
timestamp: z.ZodString;
|
|
140
137
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -148,7 +145,6 @@ export declare const PromptNotFoundErrorSchema: z.ZodObject<{
|
|
|
148
145
|
}, z.core.$strip>;
|
|
149
146
|
export declare const PromptValidationErrorSchema: z.ZodObject<{
|
|
150
147
|
success: z.ZodLiteral<false>;
|
|
151
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
152
148
|
meta: z.ZodOptional<z.ZodObject<{
|
|
153
149
|
timestamp: z.ZodString;
|
|
154
150
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -162,7 +158,6 @@ export declare const PromptValidationErrorSchema: z.ZodObject<{
|
|
|
162
158
|
}, z.core.$strip>;
|
|
163
159
|
export declare const PromptsListErrorSchema: z.ZodObject<{
|
|
164
160
|
success: z.ZodLiteral<false>;
|
|
165
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
166
161
|
meta: z.ZodOptional<z.ZodObject<{
|
|
167
162
|
timestamp: z.ZodString;
|
|
168
163
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -176,7 +171,6 @@ export declare const PromptsListErrorSchema: z.ZodObject<{
|
|
|
176
171
|
}, z.core.$strip>;
|
|
177
172
|
export declare const PromptGetErrorSchema: z.ZodObject<{
|
|
178
173
|
success: z.ZodLiteral<false>;
|
|
179
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
180
174
|
meta: z.ZodOptional<z.ZodObject<{
|
|
181
175
|
timestamp: z.ZodString;
|
|
182
176
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/prompts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;iBAI3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/interf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sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAM/B,CAAC"}
|
|
@@ -46,7 +46,6 @@ export declare const ResourceKindsResponseSchema: z.ZodObject<{
|
|
|
46
46
|
apiGroup: z.ZodOptional<z.ZodString>;
|
|
47
47
|
}, z.core.$strip>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
50
49
|
meta: z.ZodOptional<z.ZodObject<{
|
|
51
50
|
timestamp: z.ZodString;
|
|
52
51
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -108,7 +107,6 @@ export declare const ResourceSearchResponseSchema: z.ZodObject<{
|
|
|
108
107
|
limit: z.ZodNumber;
|
|
109
108
|
offset: z.ZodNumber;
|
|
110
109
|
}, z.core.$strip>;
|
|
111
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
112
110
|
meta: z.ZodOptional<z.ZodObject<{
|
|
113
111
|
timestamp: z.ZodString;
|
|
114
112
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -155,7 +153,6 @@ export declare const ResourceListResponseSchema: z.ZodObject<{
|
|
|
155
153
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
156
154
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
157
155
|
}, z.core.$strip>;
|
|
158
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
159
156
|
meta: z.ZodOptional<z.ZodObject<{
|
|
160
157
|
timestamp: z.ZodString;
|
|
161
158
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -176,7 +173,6 @@ export declare const SingleResourceResponseSchema: z.ZodObject<{
|
|
|
176
173
|
data: z.ZodObject<{
|
|
177
174
|
resource: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
178
175
|
}, z.core.$strip>;
|
|
179
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
180
176
|
meta: z.ZodOptional<z.ZodObject<{
|
|
181
177
|
timestamp: z.ZodString;
|
|
182
178
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -197,7 +193,6 @@ export declare const NamespacesResponseSchema: z.ZodObject<{
|
|
|
197
193
|
data: z.ZodObject<{
|
|
198
194
|
namespaces: z.ZodArray<z.ZodString>;
|
|
199
195
|
}, z.core.$strip>;
|
|
200
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
201
196
|
meta: z.ZodOptional<z.ZodObject<{
|
|
202
197
|
timestamp: z.ZodString;
|
|
203
198
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -233,7 +228,6 @@ export declare const ResourceSyncResponseSchema: z.ZodObject<{
|
|
|
233
228
|
healthy: z.ZodOptional<z.ZodBoolean>;
|
|
234
229
|
message: z.ZodOptional<z.ZodString>;
|
|
235
230
|
}, z.core.$strip>;
|
|
236
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
237
231
|
meta: z.ZodOptional<z.ZodObject<{
|
|
238
232
|
timestamp: z.ZodString;
|
|
239
233
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -246,7 +240,6 @@ export type ResourceSyncResponse = z.infer<typeof ResourceSyncResponseSchema>;
|
|
|
246
240
|
*/
|
|
247
241
|
export declare const ResourceNotFoundErrorSchema: z.ZodObject<{
|
|
248
242
|
success: z.ZodLiteral<false>;
|
|
249
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
250
243
|
meta: z.ZodOptional<z.ZodObject<{
|
|
251
244
|
timestamp: z.ZodString;
|
|
252
245
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -260,7 +253,6 @@ export declare const ResourceNotFoundErrorSchema: z.ZodObject<{
|
|
|
260
253
|
}, z.core.$strip>;
|
|
261
254
|
export declare const ResourceBadRequestErrorSchema: z.ZodObject<{
|
|
262
255
|
success: z.ZodLiteral<false>;
|
|
263
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
264
256
|
meta: z.ZodOptional<z.ZodObject<{
|
|
265
257
|
timestamp: z.ZodString;
|
|
266
258
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -279,7 +271,6 @@ export declare const ResourceBadRequestErrorSchema: z.ZodObject<{
|
|
|
279
271
|
}, z.core.$strip>;
|
|
280
272
|
export declare const ResourcePluginUnavailableErrorSchema: z.ZodObject<{
|
|
281
273
|
success: z.ZodLiteral<false>;
|
|
282
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
283
274
|
meta: z.ZodOptional<z.ZodObject<{
|
|
284
275
|
timestamp: z.ZodString;
|
|
285
276
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -293,7 +284,6 @@ export declare const ResourcePluginUnavailableErrorSchema: z.ZodObject<{
|
|
|
293
284
|
}, z.core.$strip>;
|
|
294
285
|
export declare const ResourceKindsErrorSchema: z.ZodObject<{
|
|
295
286
|
success: z.ZodLiteral<false>;
|
|
296
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
297
287
|
meta: z.ZodOptional<z.ZodObject<{
|
|
298
288
|
timestamp: z.ZodString;
|
|
299
289
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -307,7 +297,6 @@ export declare const ResourceKindsErrorSchema: z.ZodObject<{
|
|
|
307
297
|
}, z.core.$strip>;
|
|
308
298
|
export declare const ResourceSearchErrorSchema: z.ZodObject<{
|
|
309
299
|
success: z.ZodLiteral<false>;
|
|
310
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
311
300
|
meta: z.ZodOptional<z.ZodObject<{
|
|
312
301
|
timestamp: z.ZodString;
|
|
313
302
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -321,7 +310,6 @@ export declare const ResourceSearchErrorSchema: z.ZodObject<{
|
|
|
321
310
|
}, z.core.$strip>;
|
|
322
311
|
export declare const ResourceListErrorSchema: z.ZodObject<{
|
|
323
312
|
success: z.ZodLiteral<false>;
|
|
324
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
325
313
|
meta: z.ZodOptional<z.ZodObject<{
|
|
326
314
|
timestamp: z.ZodString;
|
|
327
315
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -335,7 +323,6 @@ export declare const ResourceListErrorSchema: z.ZodObject<{
|
|
|
335
323
|
}, z.core.$strip>;
|
|
336
324
|
export declare const SingleResourceErrorSchema: z.ZodObject<{
|
|
337
325
|
success: z.ZodLiteral<false>;
|
|
338
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
339
326
|
meta: z.ZodOptional<z.ZodObject<{
|
|
340
327
|
timestamp: z.ZodString;
|
|
341
328
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -349,7 +336,6 @@ export declare const SingleResourceErrorSchema: z.ZodObject<{
|
|
|
349
336
|
}, z.core.$strip>;
|
|
350
337
|
export declare const NamespacesErrorSchema: z.ZodObject<{
|
|
351
338
|
success: z.ZodLiteral<false>;
|
|
352
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
353
339
|
meta: z.ZodOptional<z.ZodObject<{
|
|
354
340
|
timestamp: z.ZodString;
|
|
355
341
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -363,7 +349,6 @@ export declare const NamespacesErrorSchema: z.ZodObject<{
|
|
|
363
349
|
}, z.core.$strip>;
|
|
364
350
|
export declare const ResourceSyncErrorSchema: z.ZodObject<{
|
|
365
351
|
success: z.ZodLiteral<false>;
|
|
366
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
367
352
|
meta: z.ZodOptional<z.ZodObject<{
|
|
368
353
|
timestamp: z.ZodString;
|
|
369
354
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/resources.ts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AAM,sBAAsB;;;;;iBAKjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;iBAAsD,CAAC;AAE9F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAMtC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAM/C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAMhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAMlC,CAAC"}
|
|
@@ -48,7 +48,6 @@ export declare const SessionResponseSchema: z.ZodObject<{
|
|
|
48
48
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
49
49
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
52
51
|
meta: z.ZodOptional<z.ZodObject<{
|
|
53
52
|
timestamp: z.ZodString;
|
|
54
53
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -61,7 +60,6 @@ export type SessionResponse = z.infer<typeof SessionResponseSchema>;
|
|
|
61
60
|
*/
|
|
62
61
|
export declare const SessionNotFoundErrorSchema: z.ZodObject<{
|
|
63
62
|
success: z.ZodLiteral<false>;
|
|
64
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
65
63
|
meta: z.ZodOptional<z.ZodObject<{
|
|
66
64
|
timestamp: z.ZodString;
|
|
67
65
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -75,7 +73,6 @@ export declare const SessionNotFoundErrorSchema: z.ZodObject<{
|
|
|
75
73
|
}, z.core.$strip>;
|
|
76
74
|
export declare const SessionRetrievalErrorSchema: z.ZodObject<{
|
|
77
75
|
success: z.ZodLiteral<false>;
|
|
78
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
79
76
|
meta: z.ZodOptional<z.ZodObject<{
|
|
80
77
|
timestamp: z.ZodString;
|
|
81
78
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/sessions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;iBAId,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/sessions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;iBAId,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;iBAKpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAAyD,CAAC;AAE5F,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAMtC,CAAC"}
|
|
@@ -87,7 +87,6 @@ export declare const ToolDiscoveryResponseSchema: z.ZodObject<{
|
|
|
87
87
|
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
88
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
89
|
}, z.core.$strip>;
|
|
90
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
91
90
|
meta: z.ZodOptional<z.ZodObject<{
|
|
92
91
|
timestamp: z.ZodString;
|
|
93
92
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -115,7 +114,6 @@ export declare const ToolExecutionResponseSchema: z.ZodObject<{
|
|
|
115
114
|
tool: z.ZodString;
|
|
116
115
|
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
117
116
|
}, z.core.$strip>;
|
|
118
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
119
117
|
meta: z.ZodOptional<z.ZodObject<{
|
|
120
118
|
timestamp: z.ZodString;
|
|
121
119
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -128,7 +126,6 @@ export type ToolExecutionResponse = z.infer<typeof ToolExecutionResponseSchema>;
|
|
|
128
126
|
*/
|
|
129
127
|
export declare const ToolNotFoundErrorSchema: z.ZodObject<{
|
|
130
128
|
success: z.ZodLiteral<false>;
|
|
131
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
132
129
|
meta: z.ZodOptional<z.ZodObject<{
|
|
133
130
|
timestamp: z.ZodString;
|
|
134
131
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -145,7 +142,6 @@ export declare const ToolNotFoundErrorSchema: z.ZodObject<{
|
|
|
145
142
|
*/
|
|
146
143
|
export declare const InvalidToolRequestErrorSchema: z.ZodObject<{
|
|
147
144
|
success: z.ZodLiteral<false>;
|
|
148
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
149
145
|
meta: z.ZodOptional<z.ZodObject<{
|
|
150
146
|
timestamp: z.ZodString;
|
|
151
147
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -162,7 +158,6 @@ export declare const InvalidToolRequestErrorSchema: z.ZodObject<{
|
|
|
162
158
|
*/
|
|
163
159
|
export declare const ToolExecutionErrorSchema: z.ZodObject<{
|
|
164
160
|
success: z.ZodLiteral<false>;
|
|
165
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
166
161
|
meta: z.ZodOptional<z.ZodObject<{
|
|
167
162
|
timestamp: z.ZodString;
|
|
168
163
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -179,7 +174,6 @@ export declare const ToolExecutionErrorSchema: z.ZodObject<{
|
|
|
179
174
|
*/
|
|
180
175
|
export declare const ToolDiscoveryErrorSchema: z.ZodObject<{
|
|
181
176
|
success: z.ZodLiteral<false>;
|
|
182
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
183
177
|
meta: z.ZodOptional<z.ZodObject<{
|
|
184
178
|
timestamp: z.ZodString;
|
|
185
179
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAOzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAOzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAuD,CAAC;AAEhG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAAuD,CAAC;AAEhG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAMlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;iBAMxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAMnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAMnC,CAAC"}
|
|
@@ -317,7 +317,6 @@ export declare const VisualizationResponseSchema: z.ZodObject<{
|
|
|
317
317
|
insights: z.ZodArray<z.ZodString>;
|
|
318
318
|
toolsUsed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
319
319
|
}, z.core.$strip>;
|
|
320
|
-
error: z.ZodOptional<z.ZodUndefined>;
|
|
321
320
|
meta: z.ZodOptional<z.ZodObject<{
|
|
322
321
|
timestamp: z.ZodString;
|
|
323
322
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -330,7 +329,6 @@ export type VisualizationResponse = z.infer<typeof VisualizationResponseSchema>;
|
|
|
330
329
|
*/
|
|
331
330
|
export declare const VisualizationNotFoundErrorSchema: z.ZodObject<{
|
|
332
331
|
success: z.ZodLiteral<false>;
|
|
333
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
334
332
|
meta: z.ZodOptional<z.ZodObject<{
|
|
335
333
|
timestamp: z.ZodString;
|
|
336
334
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -344,7 +342,6 @@ export declare const VisualizationNotFoundErrorSchema: z.ZodObject<{
|
|
|
344
342
|
}, z.core.$strip>;
|
|
345
343
|
export declare const VisualizationServiceUnavailableErrorSchema: z.ZodObject<{
|
|
346
344
|
success: z.ZodLiteral<false>;
|
|
347
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
348
345
|
meta: z.ZodOptional<z.ZodObject<{
|
|
349
346
|
timestamp: z.ZodString;
|
|
350
347
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -358,7 +355,6 @@ export declare const VisualizationServiceUnavailableErrorSchema: z.ZodObject<{
|
|
|
358
355
|
}, z.core.$strip>;
|
|
359
356
|
export declare const VisualizationInternalErrorSchema: z.ZodObject<{
|
|
360
357
|
success: z.ZodLiteral<false>;
|
|
361
|
-
data: z.ZodOptional<z.ZodUndefined>;
|
|
362
358
|
meta: z.ZodOptional<z.ZodObject<{
|
|
363
359
|
timestamp: z.ZodString;
|
|
364
360
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualization.d.ts","sourceRoot":"","sources":["../../../src/interfaces/schemas/visualization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;EAOlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AA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eAAO,MAAM,0CAA0C;;;;;;;;;;;;iBAMrD,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;iBAM3C,CAAC"}
|
package/dist/tools/prompts.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/tools/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQhD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/tools/prompts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQhD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC;CAC7B;AA8ED;;GAEG;AACH,wBAAgB,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,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC,CAAC;CAC5E;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAuG7B"}
|
package/dist/tools/prompts.js
CHANGED
|
@@ -132,8 +132,8 @@ function loadPromptFile(filePath, source = 'built-in') {
|
|
|
132
132
|
const [, frontmatterYaml, promptContent] = frontmatterMatch;
|
|
133
133
|
// Parse YAML with support for arguments array
|
|
134
134
|
const metadata = parseYamlFrontmatter(frontmatterYaml);
|
|
135
|
-
if (!metadata.name || !metadata.description
|
|
136
|
-
throw new Error(`Missing required metadata in ${filePath}: name, description
|
|
135
|
+
if (!metadata.name || !metadata.description) {
|
|
136
|
+
throw new Error(`Missing required metadata in ${filePath}: name, description`);
|
|
137
137
|
}
|
|
138
138
|
return {
|
|
139
139
|
name: metadata.name,
|
|
@@ -297,7 +297,10 @@ async function handlePromptsGetRequest(args, logger, requestId) {
|
|
|
297
297
|
operation: 'prompts_get',
|
|
298
298
|
component: 'PromptsHandler',
|
|
299
299
|
requestId,
|
|
300
|
-
input: {
|
|
300
|
+
input: {
|
|
301
|
+
promptName: prompt.name,
|
|
302
|
+
missingArguments: missingRequired,
|
|
303
|
+
},
|
|
301
304
|
});
|
|
302
305
|
}
|
|
303
306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
|
|
5
5
|
"mcpName": "io.github.vfarcic/dot-ai",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,11 +42,12 @@
|
|
|
42
42
|
"build:mcp": "npm run build && echo 'MCP server built successfully'",
|
|
43
43
|
"dev": "ts-node src/index.ts",
|
|
44
44
|
"start:mcp": "node dist/mcp/server.js",
|
|
45
|
-
"lint": "eslint src/
|
|
45
|
+
"lint": "eslint src/",
|
|
46
46
|
"format": "prettier --write src/",
|
|
47
47
|
"audit": "npm audit",
|
|
48
48
|
"version:dev": "npm version patch --preid=devel --prerelease",
|
|
49
|
-
"version:prod": "npm version patch"
|
|
49
|
+
"version:prod": "npm version patch",
|
|
50
|
+
"generate:openapi": "./scripts/generate-openapi.sh"
|
|
50
51
|
},
|
|
51
52
|
"keywords": [
|
|
52
53
|
"kubernetes",
|
|
@@ -84,7 +85,6 @@
|
|
|
84
85
|
"LICENSE"
|
|
85
86
|
],
|
|
86
87
|
"devDependencies": {
|
|
87
|
-
"better-npm-audit": "^3.11.0",
|
|
88
88
|
"@eslint/js": "^9.39.2",
|
|
89
89
|
"@types/glob": "^9.0.0",
|
|
90
90
|
"@types/handlebars": "^4.0.40",
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
94
94
|
"@typescript-eslint/parser": "^8.54.0",
|
|
95
95
|
"@vitest/ui": "^3.2.4",
|
|
96
|
+
"better-npm-audit": "^3.11.0",
|
|
96
97
|
"eslint": "^9.39.2",
|
|
97
98
|
"globals": "^17.2.0",
|
|
98
99
|
"prettier": "^3.0.0",
|
|
@@ -122,8 +123,7 @@
|
|
|
122
123
|
"handlebars": "^4.7.8",
|
|
123
124
|
"mermaid": "^10.9.5",
|
|
124
125
|
"posthog-node": "^5.23.0",
|
|
125
|
-
"yaml": "^2.8.0"
|
|
126
|
-
"zod-to-json-schema": "^3.24.6"
|
|
126
|
+
"yaml": "^2.8.0"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
129
|
"@rollup/rollup-linux-x64-gnu": "4.52.5"
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
# Generate OpenAPI spec by starting the server temporarily and fetching the spec.
|
|
5
|
+
# The server starts without an API key (uses NoOp provider) — only the OpenAPI
|
|
6
|
+
# endpoint is needed, which requires no auth and no AI.
|
|
7
|
+
|
|
8
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
9
|
+
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
10
|
+
OUTPUT_FILE="$PROJECT_ROOT/schema/openapi.json"
|
|
11
|
+
PORT="${PORT:-3457}"
|
|
12
|
+
HOST="127.0.0.1"
|
|
13
|
+
MAX_RETRIES=30
|
|
14
|
+
RETRY_INTERVAL=1
|
|
15
|
+
|
|
16
|
+
mkdir -p "$PROJECT_ROOT/schema"
|
|
17
|
+
mkdir -p "$PROJECT_ROOT/tmp/sessions"
|
|
18
|
+
|
|
19
|
+
# Start the server in the background
|
|
20
|
+
DOT_AI_SESSION_DIR="$PROJECT_ROOT/tmp/sessions" \
|
|
21
|
+
PORT="$PORT" \
|
|
22
|
+
HOST="$HOST" \
|
|
23
|
+
TRANSPORT_TYPE=http \
|
|
24
|
+
node "$PROJECT_ROOT/dist/mcp/server.js" &
|
|
25
|
+
SERVER_PID=$!
|
|
26
|
+
|
|
27
|
+
cleanup() {
|
|
28
|
+
if kill -0 "$SERVER_PID" 2>/dev/null; then
|
|
29
|
+
kill "$SERVER_PID" 2>/dev/null || true
|
|
30
|
+
wait "$SERVER_PID" 2>/dev/null || true
|
|
31
|
+
fi
|
|
32
|
+
}
|
|
33
|
+
trap cleanup EXIT
|
|
34
|
+
|
|
35
|
+
# Wait for the server to be ready
|
|
36
|
+
echo "Waiting for server on $HOST:$PORT..."
|
|
37
|
+
for i in $(seq 1 $MAX_RETRIES); do
|
|
38
|
+
if curl -sf "http://$HOST:$PORT/api/v1/openapi" -o /dev/null 2>/dev/null; then
|
|
39
|
+
echo "Server ready after ${i}s"
|
|
40
|
+
break
|
|
41
|
+
fi
|
|
42
|
+
if ! kill -0 "$SERVER_PID" 2>/dev/null; then
|
|
43
|
+
echo "ERROR: Server process exited unexpectedly" >&2
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
if [ "$i" -eq "$MAX_RETRIES" ]; then
|
|
47
|
+
echo "ERROR: Server did not become ready within ${MAX_RETRIES}s" >&2
|
|
48
|
+
exit 1
|
|
49
|
+
fi
|
|
50
|
+
sleep "$RETRY_INTERVAL"
|
|
51
|
+
done
|
|
52
|
+
|
|
53
|
+
# Fetch and save the OpenAPI spec
|
|
54
|
+
curl -sf "http://$HOST:$PORT/api/v1/openapi" | jq . > "$OUTPUT_FILE"
|
|
55
|
+
|
|
56
|
+
echo "OpenAPI spec written to $OUTPUT_FILE"
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
#!/usr/bin/env nu
|
|
2
|
+
|
|
3
|
+
# Installs Grafana and Prometheus with Kubernetes dashboards
|
|
4
|
+
#
|
|
5
|
+
# Installs kube-prometheus-stack which includes Grafana with Prometheus
|
|
6
|
+
# as a data source, Prometheus configured to scrape Kubernetes metrics,
|
|
7
|
+
# and common Kubernetes dashboards.
|
|
8
|
+
#
|
|
9
|
+
# Examples:
|
|
10
|
+
# > main apply grafana-stack traefik 127.0.0.1.nip.io
|
|
11
|
+
def "main apply grafana-stack" [
|
|
12
|
+
ingress_class: string, # The Ingress class to use
|
|
13
|
+
ingress_host: string # The base hostname for Ingress
|
|
14
|
+
] {
|
|
15
|
+
|
|
16
|
+
print $"\nInstalling (ansi yellow_bold)Grafana Stack(ansi reset)...\n"
|
|
17
|
+
|
|
18
|
+
let values = {
|
|
19
|
+
grafana: {
|
|
20
|
+
ingress: {
|
|
21
|
+
enabled: true
|
|
22
|
+
ingressClassName: $ingress_class
|
|
23
|
+
hosts: [$"grafana.($ingress_host)"]
|
|
24
|
+
}
|
|
25
|
+
defaultDashboardsEnabled: true
|
|
26
|
+
defaultDashboardsTimezone: utc
|
|
27
|
+
sidecar: {
|
|
28
|
+
dashboards: {
|
|
29
|
+
enabled: true
|
|
30
|
+
searchNamespace: ALL
|
|
31
|
+
}
|
|
32
|
+
datasources: {
|
|
33
|
+
enabled: true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
dashboardProviders: {
|
|
37
|
+
"dashboardproviders.yaml": {
|
|
38
|
+
apiVersion: 1
|
|
39
|
+
providers: [{
|
|
40
|
+
name: grafana-dashboards-kubernetes
|
|
41
|
+
orgId: 1
|
|
42
|
+
folder: Kubernetes
|
|
43
|
+
type: file
|
|
44
|
+
disableDeletion: true
|
|
45
|
+
editable: false
|
|
46
|
+
options: {
|
|
47
|
+
path: /var/lib/grafana/dashboards/grafana-dashboards-kubernetes
|
|
48
|
+
}
|
|
49
|
+
}]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
dashboards: {
|
|
53
|
+
grafana-dashboards-kubernetes: {
|
|
54
|
+
k8s-views-global: {
|
|
55
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-views-global.json"
|
|
56
|
+
datasource: Prometheus
|
|
57
|
+
}
|
|
58
|
+
k8s-views-namespaces: {
|
|
59
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-views-namespaces.json"
|
|
60
|
+
datasource: Prometheus
|
|
61
|
+
}
|
|
62
|
+
k8s-views-nodes: {
|
|
63
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-views-nodes.json"
|
|
64
|
+
datasource: Prometheus
|
|
65
|
+
}
|
|
66
|
+
k8s-views-pods: {
|
|
67
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-views-pods.json"
|
|
68
|
+
datasource: Prometheus
|
|
69
|
+
}
|
|
70
|
+
k8s-system-api-server: {
|
|
71
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-system-api-server.json"
|
|
72
|
+
datasource: Prometheus
|
|
73
|
+
}
|
|
74
|
+
k8s-system-coredns: {
|
|
75
|
+
url: "https://raw.githubusercontent.com/dotdc/grafana-dashboards-kubernetes/master/dashboards/k8s-system-coredns.json"
|
|
76
|
+
datasource: Prometheus
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
prometheus: {
|
|
82
|
+
ingress: {
|
|
83
|
+
enabled: true
|
|
84
|
+
ingressClassName: $ingress_class
|
|
85
|
+
hosts: [$"prometheus.($ingress_host)"]
|
|
86
|
+
}
|
|
87
|
+
prometheusSpec: {
|
|
88
|
+
serviceMonitorSelectorNilUsesHelmValues: false
|
|
89
|
+
podMonitorSelectorNilUsesHelmValues: false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
$values | to yaml | save values-grafana-stack.yaml --force
|
|
95
|
+
|
|
96
|
+
(
|
|
97
|
+
helm upgrade --install
|
|
98
|
+
kube-prometheus-stack kube-prometheus-stack
|
|
99
|
+
--repo https://prometheus-community.github.io/helm-charts
|
|
100
|
+
--values values-grafana-stack.yaml
|
|
101
|
+
--namespace monitoring --create-namespace
|
|
102
|
+
--wait
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
rm values-grafana-stack.yaml
|
|
106
|
+
|
|
107
|
+
print $"\nGrafana is available at (ansi yellow_bold)http://grafana.($ingress_host)(ansi reset)"
|
|
108
|
+
print $"Prometheus is available at (ansi yellow_bold)http://prometheus.($ingress_host)(ansi reset)"
|
|
109
|
+
print $"\nDefault Grafana credentials: admin / prom-operator"
|
|
110
|
+
print $"\nIncluded Kubernetes dashboards:"
|
|
111
|
+
print $" - K8s Views Global"
|
|
112
|
+
print $" - K8s Views Namespaces"
|
|
113
|
+
print $" - K8s Views Nodes"
|
|
114
|
+
print $" - K8s Views Pods"
|
|
115
|
+
print $" - K8s System API Server"
|
|
116
|
+
print $" - K8s System CoreDNS"
|
|
117
|
+
|
|
118
|
+
}
|
|
@@ -112,6 +112,8 @@ Work through the PRD template focusing on project management, milestone tracking
|
|
|
112
112
|
|
|
113
113
|
**Note**: If any `gh` command fails with "command not found", inform the user that GitHub CLI is required and provide the installation link: https://cli.github.com/
|
|
114
114
|
|
|
115
|
+
**Note**: If creating the GitHub issue fails because the "PRD" label does not exist, create the label first (`gh label create "PRD" --description "Product Requirements Document" --color 0052CC`) and then retry creating the issue.
|
|
116
|
+
|
|
115
117
|
## Workflow
|
|
116
118
|
|
|
117
119
|
1. **Concept Discussion**: Get the basic idea and validate the need
|