archicore 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyzers/ai-narrator.d.ts +107 -0
- package/dist/analyzers/ai-narrator.js +632 -0
- package/dist/analyzers/context-builder.d.ts +150 -0
- package/dist/analyzers/context-builder.js +708 -0
- package/dist/analyzers/response-enhancer.d.ts +85 -0
- package/dist/analyzers/response-enhancer.js +632 -0
- package/dist/cli/commands/interactive.js +151 -1
- package/dist/cli/ui/prompt.js +1 -0
- package/dist/cli/utils/upload-utils.js +44 -18
- package/dist/orchestrator/index.js +67 -1
- package/dist/server/routes/api.js +70 -0
- package/dist/server/services/project-service.d.ts +11 -0
- package/dist/server/services/project-service.js +97 -2
- package/dist/types/index.d.ts +44 -0
- package/package.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchiCore Response Enhancer
|
|
3
|
+
*
|
|
4
|
+
* Улучшает ответы ИИ дополнительными инструментами:
|
|
5
|
+
* 1. Follow-up Suggestions - предложения следующих вопросов
|
|
6
|
+
* 2. Visual Diagrams - ASCII/Mermaid диаграммы
|
|
7
|
+
* 3. Test Generator - генерация тестов
|
|
8
|
+
* 4. Performance Hints - подсказки по оптимизации
|
|
9
|
+
*/
|
|
10
|
+
import { DependencyGraph, Symbol } from '../types/index.js';
|
|
11
|
+
import { ProjectContext } from './context-builder.js';
|
|
12
|
+
export interface EnhancedResponse {
|
|
13
|
+
answer: string;
|
|
14
|
+
followUpSuggestions: FollowUpSuggestion[];
|
|
15
|
+
diagrams: Diagram[];
|
|
16
|
+
generatedTests: GeneratedTest[];
|
|
17
|
+
performanceHints: PerformanceHint[];
|
|
18
|
+
metadata: {
|
|
19
|
+
intent: string;
|
|
20
|
+
processingTime: number;
|
|
21
|
+
symbolsAnalyzed: number;
|
|
22
|
+
filesAnalyzed: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface FollowUpSuggestion {
|
|
26
|
+
question: string;
|
|
27
|
+
intent: string;
|
|
28
|
+
relevance: number;
|
|
29
|
+
icon: string;
|
|
30
|
+
}
|
|
31
|
+
export interface Diagram {
|
|
32
|
+
type: 'ascii' | 'mermaid';
|
|
33
|
+
title: string;
|
|
34
|
+
content: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GeneratedTest {
|
|
37
|
+
functionName: string;
|
|
38
|
+
filePath: string;
|
|
39
|
+
language: 'typescript' | 'javascript' | 'php' | 'python';
|
|
40
|
+
testCode: string;
|
|
41
|
+
testFramework: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PerformanceHint {
|
|
44
|
+
severity: 'critical' | 'warning' | 'info';
|
|
45
|
+
type: string;
|
|
46
|
+
file: string;
|
|
47
|
+
line: number;
|
|
48
|
+
description: string;
|
|
49
|
+
suggestion: string;
|
|
50
|
+
estimatedImpact: string;
|
|
51
|
+
codeExample?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare function generateFollowUpSuggestions(context: ProjectContext, _answer: string): FollowUpSuggestion[];
|
|
54
|
+
export declare function generateDiagram(context: ProjectContext, graph: DependencyGraph, diagramType?: 'dependencies' | 'flow' | 'architecture'): Diagram | null;
|
|
55
|
+
export declare function generateTests(context: ProjectContext): GeneratedTest[];
|
|
56
|
+
export declare function analyzePerformance(context: ProjectContext, fileContents: Map<string, string>): PerformanceHint[];
|
|
57
|
+
export declare class ResponseEnhancer {
|
|
58
|
+
private graph;
|
|
59
|
+
private fileContents;
|
|
60
|
+
constructor(graph: DependencyGraph, _symbols: Map<string, Symbol>, fileContents: Map<string, string>);
|
|
61
|
+
/**
|
|
62
|
+
* Улучшает ответ ИИ дополнительной информацией
|
|
63
|
+
*/
|
|
64
|
+
enhance(originalAnswer: string, context: ProjectContext): EnhancedResponse;
|
|
65
|
+
/**
|
|
66
|
+
* Форматирует улучшенный ответ для CLI
|
|
67
|
+
*/
|
|
68
|
+
formatForCLI(enhanced: EnhancedResponse): string;
|
|
69
|
+
/**
|
|
70
|
+
* Форматирует улучшенный ответ для API/Web
|
|
71
|
+
*/
|
|
72
|
+
formatForAPI(enhanced: EnhancedResponse): {
|
|
73
|
+
answer: string;
|
|
74
|
+
followUpSuggestions: FollowUpSuggestion[];
|
|
75
|
+
diagrams: Diagram[];
|
|
76
|
+
generatedTests: GeneratedTest[];
|
|
77
|
+
performanceHints: PerformanceHint[];
|
|
78
|
+
metadata: EnhancedResponse['metadata'];
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Создание энхансера
|
|
83
|
+
*/
|
|
84
|
+
export declare function createResponseEnhancer(graph: DependencyGraph, symbols: Map<string, Symbol>, fileContents: Map<string, string>): ResponseEnhancer;
|
|
85
|
+
//# sourceMappingURL=response-enhancer.d.ts.map
|