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.
@@ -0,0 +1,107 @@
1
+ /**
2
+ * AI Narrator
3
+ *
4
+ * Генерирует человекопонятное описание архитектуры проекта:
5
+ * - Что это за проект
6
+ * - Какая архитектура используется
7
+ * - Где проблемные места
8
+ * - Конкретные рекомендации
9
+ */
10
+ import { DependencyGraph, Symbol } from '../types/index.js';
11
+ export interface DetectedPattern {
12
+ name: string;
13
+ confidence: number;
14
+ evidence: string[];
15
+ files: string[];
16
+ }
17
+ export interface ArchitectureLayer {
18
+ name: string;
19
+ files: string[];
20
+ coverage: number;
21
+ role: string;
22
+ }
23
+ export interface ProblemArea {
24
+ severity: 'critical' | 'warning' | 'info';
25
+ title: string;
26
+ description: string;
27
+ files: string[];
28
+ suggestion: string;
29
+ }
30
+ export interface NarratorReport {
31
+ summary: {
32
+ projectType: string;
33
+ primaryLanguage: string;
34
+ secondaryLanguages: string[];
35
+ totalFiles: number;
36
+ totalSymbols: number;
37
+ linesOfCode: number;
38
+ };
39
+ techStack: {
40
+ frontend: string[];
41
+ backend: string[];
42
+ database: string[];
43
+ infrastructure: string[];
44
+ };
45
+ architecture: {
46
+ detected: string;
47
+ confidence: number;
48
+ layers: ArchitectureLayer[];
49
+ patterns: DetectedPattern[];
50
+ };
51
+ problems: ProblemArea[];
52
+ recommendations: string[];
53
+ narrative: string;
54
+ narrativeRu: string;
55
+ }
56
+ export declare class AINarrator {
57
+ /**
58
+ * Анализирует проект и генерирует нарратив
59
+ */
60
+ analyze(graph: DependencyGraph, symbols: Map<string, Symbol>, fileContents: Map<string, string>, projectMetadata?: {
61
+ framework?: string;
62
+ backend?: string;
63
+ database?: string;
64
+ dependencies?: Record<string, string>;
65
+ }): Promise<NarratorReport>;
66
+ /**
67
+ * Анализ файловой структуры
68
+ */
69
+ private analyzeFiles;
70
+ /**
71
+ * Определение стека технологий
72
+ */
73
+ private detectTechStack;
74
+ /**
75
+ * Анализ символов
76
+ */
77
+ private analyzeSymbols;
78
+ /**
79
+ * Определение архитектуры
80
+ */
81
+ private detectArchitecture;
82
+ /**
83
+ * Поиск проблем
84
+ */
85
+ private findProblems;
86
+ /**
87
+ * Генерация рекомендаций
88
+ */
89
+ private generateRecommendations;
90
+ /**
91
+ * Генерация человекопонятного текста
92
+ */
93
+ private generateNarrative;
94
+ /**
95
+ * Генерация нарратива на русском
96
+ */
97
+ private generateNarrativeRu;
98
+ private extToLanguage;
99
+ private shortPath;
100
+ private detectProjectType;
101
+ private translateProjectType;
102
+ private translateLayer;
103
+ private translateProblem;
104
+ private translateSuggestion;
105
+ private translateRecommendation;
106
+ }
107
+ //# sourceMappingURL=ai-narrator.d.ts.map