@noyrax/documentation-system-plugin 1.0.4-beta.3 → 1.0.4-beta.5

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.
Files changed (197) hide show
  1. package/out/cache/ast-cache.js +69 -0
  2. package/out/cache/ast-cache.js.map +1 -0
  3. package/out/cache/dependencies-cache.js +73 -0
  4. package/out/cache/dependencies-cache.js.map +1 -0
  5. package/out/cache/output-cache.js +69 -0
  6. package/out/cache/output-cache.js.map +1 -0
  7. package/out/cache/signature-cache.js +60 -0
  8. package/out/cache/signature-cache.js.map +1 -0
  9. package/out/cli/generate-cli.js +345 -0
  10. package/out/cli/generate-cli.js.map +1 -0
  11. package/out/cli/scan-cli.js +157 -0
  12. package/out/cli/scan-cli.js.map +1 -0
  13. package/out/cli/validate-cli.js +258 -0
  14. package/out/cli/validate-cli.js.map +1 -0
  15. package/out/core/async.js +38 -0
  16. package/out/core/async.js.map +1 -0
  17. package/out/core/consolidation.js +230 -0
  18. package/out/core/consolidation.js.map +1 -0
  19. package/out/core/git.js +48 -0
  20. package/out/core/git.js.map +1 -0
  21. package/out/core/language-detection.js +29 -0
  22. package/out/core/language-detection.js.map +1 -0
  23. package/out/core/scanner.js +180 -0
  24. package/out/core/scanner.js.map +1 -0
  25. package/out/core/signature-formatter.js +162 -0
  26. package/out/core/signature-formatter.js.map +1 -0
  27. package/out/core/symbol-classifier.js +96 -0
  28. package/out/core/symbol-classifier.js.map +1 -0
  29. package/out/core/symbols.js +24 -0
  30. package/out/core/symbols.js.map +1 -0
  31. package/out/drift/index.js +28 -0
  32. package/out/drift/index.js.map +1 -0
  33. package/out/extension.js +984 -0
  34. package/out/extension.js.map +1 -0
  35. package/out/generator/adr-linker.js +216 -0
  36. package/out/generator/adr-linker.js.map +1 -0
  37. package/out/generator/change-report.js +124 -0
  38. package/out/generator/change-report.js.map +1 -0
  39. package/out/generator/dependency-graph.js +98 -0
  40. package/out/generator/dependency-graph.js.map +1 -0
  41. package/out/generator/index.js +117 -0
  42. package/out/generator/index.js.map +1 -0
  43. package/out/generator/module-doc.js +438 -0
  44. package/out/generator/module-doc.js.map +1 -0
  45. package/out/generator/system-metadata.js +202 -0
  46. package/out/generator/system-metadata.js.map +1 -0
  47. package/out/index/index.js +161 -0
  48. package/out/index/index.js.map +1 -0
  49. package/out/logging/index.js +24 -0
  50. package/out/logging/index.js.map +1 -0
  51. package/out/parsers/dependencies.js +126 -0
  52. package/out/parsers/dependencies.js.map +1 -0
  53. package/out/parsers/json-yaml.js +121 -0
  54. package/out/parsers/json-yaml.js.map +1 -0
  55. package/out/parsers/python.js +160 -0
  56. package/out/parsers/python.js.map +1 -0
  57. package/out/parsers/ts-js.js +598 -0
  58. package/out/parsers/ts-js.js.map +1 -0
  59. package/out/parsers/types.js +3 -0
  60. package/out/parsers/types.js.map +1 -0
  61. package/out/ui/commands-provider.js +91 -0
  62. package/out/ui/commands-provider.js.map +1 -0
  63. package/out/ui/status-bar.js +85 -0
  64. package/out/ui/status-bar.js.map +1 -0
  65. package/out/validator/index.js +185 -0
  66. package/out/validator/index.js.map +1 -0
  67. package/out/validator/signature-matching.js +261 -0
  68. package/out/validator/signature-matching.js.map +1 -0
  69. package/out/validator/status.js +38 -0
  70. package/out/validator/status.js.map +1 -0
  71. package/package.json +9 -1
  72. package/.vscodeignore +0 -41
  73. package/MCP_SERVER_SETUP.md +0 -371
  74. package/assets/icon.svg +0 -27
  75. package/docs/LINKEDIN_ANTWORT_SEQUENZDIAGRAMME.md +0 -190
  76. package/docs/SEQUENZDIAGRAMM_BEWEIS.md +0 -469
  77. package/docs/SEQUENZDIAGRAMM_VALIDATE_FLOW.md +0 -282
  78. package/docs/adr/001-signatur-abweichung-fix.md +0 -54
  79. package/docs/adr/002-file-specific-validation-1.0.1.md +0 -45
  80. package/docs/adr/003-documentation-generation-bugs.md +0 -134
  81. package/docs/adr/004-validator-signature-matching-fix.md +0 -121
  82. package/docs/adr/005-validator-generic-simplification-tightening.md +0 -35
  83. package/docs/adr/006-parser-variable-type-extraction.md +0 -33
  84. package/docs/adr/007-ts-parser-load-libs-for-accurate-types.md +0 -31
  85. package/docs/adr/008-dependencies-cache-phase1.md +0 -133
  86. package/docs/adr/009-consolidation-union-logic-phase1-2.md +0 -147
  87. package/docs/adr/010-extension-union-integration-phase1-3-and-phase2.md +0 -179
  88. package/docs/adr/011-module-doc-change-tracking-phase3.md +0 -190
  89. package/docs/adr/012-git-deletions-change-report-phase4.md +0 -235
  90. package/docs/adr/013-system-functionality-fixes.md +0 -279
  91. package/docs/adr/014-rules-migration-und-mcp-integration.md +0 -113
  92. package/docs/adr/015-global-agent-package.md +0 -158
  93. package/docs/adr/016-produktisierung-docguard.md +0 -193
  94. package/docs/adr/017-signature-matching-optional-fields.md +0 -128
  95. package/docs/adr/018-rebranding-docguard-to-noyrax.md +0 -109
  96. package/docs/adr/019-system-schwachstellen-analyse-und-fixes.md +0 -204
  97. package/docs/adr/020-api-doc-tiefe-und-signatureformatter.md +0 -74
  98. package/docs/adr/021-semantic-api-docs-and-symbol-classifier.md +0 -125
  99. package/docs/adr/022-semantic-class-and-constants-rendering.md +0 -82
  100. package/docs/adr/023-adr-verknuepfung-modul-doku.md +0 -54
  101. package/docs/adr/024-cursor-rules-mehrdimensionaler-raum.md +0 -230
  102. package/docs/adr/025-mcp-tools-scan-validate-cli-bridge.md +0 -202
  103. package/docs/adr/026-reality-driven-development-system.md +0 -173
  104. package/docs/adr/027-scanner-excludes-and-union-logic-fix.md +0 -189
  105. package/docs/adr/028-src-coverage-union-resync.md +0 -124
  106. package/docs/adr/029-parser-flow-kopplung-und-sync-drift-modi.md +0 -102
  107. package/docs/adr/030-dependency-import-symbol-names-preservation.md +0 -123
  108. package/docs/adr/031-generate-cli-vollstaendige-dokumentation.md +0 -99
  109. package/docs/adr/032-windows-optimized-verification-scripts.md +0 -165
  110. package/docs/adr/036-enhanced-dependency-metadata.md +0 -190
  111. package/docs/adr/TEMPLATE.md +0 -76
  112. package/docs/index/symbols.jsonl +0 -78
  113. package/docs/modules/action__action.yml.md +0 -50
  114. package/docs/modules/documentation.config.schema.json.md +0 -37
  115. package/docs/modules/mcp__package.json.md +0 -130
  116. package/docs/modules/mcp__src__resources__docs.ts.md +0 -94
  117. package/docs/modules/mcp__src__server.ts.md +0 -15
  118. package/docs/modules/mcp__src__tools__drift.ts.md +0 -114
  119. package/docs/modules/mcp__src__tools__impact.ts.md +0 -130
  120. package/docs/modules/mcp__src__tools__scan.ts.md +0 -75
  121. package/docs/modules/mcp__src__tools__validate.ts.md +0 -116
  122. package/docs/modules/mcp__src__tools__verify-adrs.ts.md +0 -106
  123. package/docs/modules/mcp__tsconfig.json.md +0 -22
  124. package/docs/modules/package.json.md +0 -130
  125. package/docs/modules/packages__doc-system-agent__examples__basic-project__package.json.md +0 -43
  126. package/docs/modules/packages__doc-system-agent__examples__basic-project__src__calculator.ts.md +0 -81
  127. package/docs/modules/packages__doc-system-agent__package.json.md +0 -154
  128. package/docs/modules/packages__doc-system-agent__src__cli__index.ts.md +0 -8
  129. package/docs/modules/packages__doc-system-agent__src__cli__init.ts.md +0 -93
  130. package/docs/modules/packages__doc-system-agent__src__cli__update.ts.md +0 -113
  131. package/docs/modules/packages__doc-system-agent__src__constants.ts.md +0 -29
  132. package/docs/modules/packages__doc-system-agent__src__index.ts.md +0 -234
  133. package/docs/modules/packages__doc-system-agent__src__mcp__resources__docs.ts.md +0 -94
  134. package/docs/modules/packages__doc-system-agent__src__mcp__server.ts.md +0 -17
  135. package/docs/modules/packages__doc-system-agent__src__mcp__tools__drift.ts.md +0 -38
  136. package/docs/modules/packages__doc-system-agent__src__mcp__tools__impact.ts.md +0 -75
  137. package/docs/modules/packages__doc-system-agent__src__mcp__tools__scan.ts.md +0 -23
  138. package/docs/modules/packages__doc-system-agent__src__mcp__tools__validate.ts.md +0 -23
  139. package/docs/modules/packages__doc-system-agent__src__mcp__tools__verify-adrs.ts.md +0 -106
  140. package/docs/modules/packages__doc-system-agent__src__mcp__types.ts.md +0 -355
  141. package/docs/modules/packages__doc-system-agent__tsconfig.json.md +0 -22
  142. package/docs/modules/scripts__verify-adrs.js.md +0 -97
  143. package/docs/modules/scripts__verify-architecture.js.md +0 -93
  144. package/docs/modules/scripts__verify-imports.js.md +0 -114
  145. package/docs/modules/src____tests____setup.ts.md +0 -8
  146. package/docs/modules/src____tests____signature-formatter.test.ts.md +0 -16
  147. package/docs/modules/src____tests____snapshot-doc-generation.test.ts.md +0 -8
  148. package/docs/modules/src____tests____symbol-classifier.test.ts.md +0 -16
  149. package/docs/modules/src__cache__ast-cache.ts.md +0 -91
  150. package/docs/modules/src__cache__dependencies-cache.ts.md +0 -89
  151. package/docs/modules/src__cache__output-cache.ts.md +0 -91
  152. package/docs/modules/src__cache__signature-cache.ts.md +0 -76
  153. package/docs/modules/src__cli__generate-cli.ts.md +0 -130
  154. package/docs/modules/src__cli__scan-cli.ts.md +0 -99
  155. package/docs/modules/src__cli__validate-cli.ts.md +0 -144
  156. package/docs/modules/src__core__async.ts.md +0 -18
  157. package/docs/modules/src__core__consolidation.ts.md +0 -157
  158. package/docs/modules/src__core__git.ts.md +0 -35
  159. package/docs/modules/src__core__language-detection.ts.md +0 -31
  160. package/docs/modules/src__core__scanner.ts.md +0 -100
  161. package/docs/modules/src__core__signature-formatter.ts.md +0 -232
  162. package/docs/modules/src__core__symbol-classifier.ts.md +0 -178
  163. package/docs/modules/src__core__symbols.ts.md +0 -31
  164. package/docs/modules/src__drift__index.ts.md +0 -53
  165. package/docs/modules/src__extension.ts.md +0 -418
  166. package/docs/modules/src__generator__adr-linker.ts.md +0 -154
  167. package/docs/modules/src__generator__change-report.ts.md +0 -85
  168. package/docs/modules/src__generator__dependency-graph.ts.md +0 -63
  169. package/docs/modules/src__generator__index.ts.md +0 -40
  170. package/docs/modules/src__generator__module-doc.ts.md +0 -242
  171. package/docs/modules/src__index__index.ts.md +0 -159
  172. package/docs/modules/src__logging__index.ts.md +0 -87
  173. package/docs/modules/src__parsers__dependencies.ts.md +0 -69
  174. package/docs/modules/src__parsers__json-yaml.ts.md +0 -96
  175. package/docs/modules/src__parsers__python.ts.md +0 -73
  176. package/docs/modules/src__parsers__ts-js.ts.md +0 -48
  177. package/docs/modules/src__parsers__types.ts.md +0 -117
  178. package/docs/modules/src__ui__commands-provider.ts.md +0 -70
  179. package/docs/modules/src__ui__status-bar.ts.md +0 -79
  180. package/docs/modules/src__validator__index.ts.md +0 -211
  181. package/docs/modules/src__validator__signature-matching.ts.md +0 -209
  182. package/docs/modules/src__validator__status.ts.md +0 -72
  183. package/docs/modules/test-mcp-resources.js.md +0 -27
  184. package/docs/modules/tsconfig.json.md +0 -22
  185. package/docs/system/CHANGE_REPORT.md +0 -26
  186. package/docs/system/DEPENDENCIES.md +0 -403
  187. package/docs/system/DEPENDENCY_GRAPH.md +0 -336
  188. package/docs/system/NAVIGATION_SPACE_ANALYSIS.md +0 -244
  189. package/docs/system/NPX_CACHE_FIX.md +0 -85
  190. package/docs/system/NPX_LOCAL_USAGE.md +0 -66
  191. package/docs/system/PLUGIN_ECOSYSTEM_STATUS.md +0 -465
  192. package/docs/system/PLUGIN_UPDATE_GUIDE.md +0 -212
  193. package/docs/system/RULES_UPDATE_GUIDE.md +0 -182
  194. package/docs/system/SYSTEM_ANALYSIS.md +0 -947
  195. package/docs/system/SYSTEM_METADATA.json +0 -37
  196. package/documentation.config.schema.json +0 -77
  197. package/publish.ps1 +0 -21
@@ -1,66 +0,0 @@
1
- # NPX lokale Version verwenden
2
-
3
- **Problem:** NPX verwendet eine alte Version aus dem npm-Cache (z. B. 1.1.0), obwohl lokal bereits eine neuere Version (z. B. 1.2.0) verfügbar ist.
4
-
5
- ## Lösung: Lokale Version direkt verwenden
6
-
7
- Bis das Package auf npm veröffentlicht wurde, kann die lokale Version direkt verwendet werden:
8
-
9
- ### Windows (PowerShell)
10
-
11
- ```powershell
12
- # Update-Rules mit lokaler Version
13
- node D:\Extensions\documentation-system-plugin\packages\doc-system-agent\dist\cli\index.js update-rules --verbose
14
-
15
- # Info mit lokaler Version
16
- node D:\Extensions\documentation-system-plugin\packages\doc-system-agent\dist\cli\index.js info
17
-
18
- # Init mit lokaler Version
19
- node D:\Extensions\documentation-system-plugin\packages\doc-system-agent\dist\cli\index.js init --verbose
20
- ```
21
-
22
- ### Alternative: npm link (für Entwicklung)
23
-
24
- ```bash
25
- # Im documentation-system-plugin Verzeichnis
26
- cd D:\Extensions\documentation-system-plugin\packages\doc-system-agent
27
- npm link
28
-
29
- # Im database-plugin Verzeichnis
30
- cd D:\Extensions\database-plugin
31
- npm link @noyrax/cli
32
-
33
- # Dann funktioniert npx
34
- npx @noyrax/cli update-rules
35
- ```
36
-
37
- ### Alternative: NPX Cache leeren
38
-
39
- ```bash
40
- # NPX Cache leeren
41
- npx clear-npx-cache
42
-
43
- # Dann erneut versuchen (mit expliziter Versionsangabe)
44
- npx @noyrax/cli@1.2.0 update-rules
45
- ```
46
-
47
- ## Verifizierung
48
-
49
- Nach dem Update prüfen:
50
-
51
- ```bash
52
- # Version prüfen
53
- node D:\Extensions\documentation-system-plugin\packages\doc-system-agent\dist\cli\index.js info
54
-
55
- # Sollte (beispielhaft) zeigen:
56
- # Package-Version: 1.2.0
57
- # Rules-Version: 2
58
- # `002-system-context.mdc` sollte in der Liste sein
59
- ```
60
-
61
- ## Warum funktioniert npx nicht?
62
-
63
- NPX verwendet eine **gecachte Version** aus dem npm-Cache. Wenn das Package lokal aktualisiert wurde, aber noch nicht auf npm veröffentlicht wurde, verwendet npx die alte Version.
64
-
65
- **Lösung:** Lokale Version direkt verwenden oder npm link nutzen.
66
-
@@ -1,465 +0,0 @@
1
- # Plugin-Ecosystem Status
2
-
3
- **Stand:** 2025-01-XX
4
- **Zweck:** Dokumentation des aktuellen Implementierungsstands der Plugin-Architektur
5
-
6
- ## Übersicht
7
-
8
- Das Documentation-System-Plugin ist Teil eines modularen Plugin-Ecosystems mit drei Hauptkomponenten:
9
-
10
- ```
11
- Documentation-System-Plugin (Basis)
12
- ↓ generiert docs/
13
- Database Plugin ✅ KOMPLETT
14
- ↓ persistiert in SQLite
15
- Semantic Brain Plugin 🔄 FAST FERTIG
16
- ↓ Graph & Embeddings
17
- Context/RAG Plugin 📋 GEPLANT
18
- ↓ AI-Agent Integration
19
- ```
20
-
21
- ---
22
-
23
- ## 1. Documentation-System-Plugin
24
-
25
- **Pfad:** `d:\Extensions\documentation-system-plugin`
26
- **Status:** ✅ Produktiv
27
-
28
- ### Neue Features (ADR-020 bis ADR-026)
29
-
30
- - **SignatureFormatter** (ADR-020): Zentrale Signatur-Formatierung für Generator und Validator
31
- - **SymbolClassifier** (ADR-021): Semantische Klassifizierung (visibility, role, priority)
32
- - **Semantisches Rendering** (ADR-022): Klassen und Konstanten strukturiert darstellen
33
- - **ADR-Linking** (ADR-023): Automatische ADR-Verknüpfung mit Modulen
34
- - **Mehrdimensionaler Navigationsraum** (ADR-024): 5 Dimensionen für KI-Agenten
35
- - **MCP-Server CLI-Bridge** (ADR-025): CLI-Tools für MCP-Server-Integration
36
- - **Reality-Driven Development** (ADR-026): Verification-Loops verhindern Halluzinationen
37
-
38
- ### Generierte Artefakte
39
-
40
- - **`docs/modules/*.md`** - 68 Modul-Dokumentationen mit API-Signaturen (inkl. ADR-Links, semantisches Rendering)
41
- - **`docs/index/symbols.jsonl`** - Symbol-Index mit Dependencies (435 Zeilen)
42
- - **`docs/system/DEPENDENCY_GRAPH.md`** - Mermaid-Graph mit 127 Knoten
43
- - **`docs/system/DEPENDENCIES.md`** - Import-Übersicht pro Modul
44
- - **`docs/system/CHANGE_REPORT.md`** - Änderungsprotokoll (Zeit-Dimension)
45
- - **`docs/adr/*.md`** - 29 ADRs mit automatischer Modul-Verknüpfung (ADR-023)
46
-
47
- ### MCP-Server Integration (ADR-025)
48
-
49
- Der MCP-Server (`mcp/` und `packages/doc-system-agent/`) ermöglicht Agent-Zugriff:
50
-
51
- **Resources (99 insgesamt):**
52
- - `docs://modules/{path}` - Modul-Dokumentation (71 Resources)
53
- - `docs://system/graph` - Dependency-Graph
54
- - `docs://system/dependencies` - Dependency-Übersicht
55
- - `docs://system/changes` - Change Report (Zeit-Dimension)
56
- - `docs://adr/{name}` - ADRs (24 Resources)
57
- - `docs://index/symbols.jsonl` - Symbol-Index
58
-
59
- **Tools:**
60
- - `validation/runScan` - Scan via CLI-Bridge (`npm run scan:cli`)
61
- - `validation/runValidate` - Validate via CLI-Bridge (`npm run validate:cli`)
62
- - `validation/runDriftCheck` - Drift-Check
63
- - `validation/analyzeImpact` - Impact-Analyse via Symbol-Index
64
-
65
- ### Core-Komponenten
66
-
67
- - **SignatureFormatter** (`src/core/signature-formatter.ts`): `formatForDoc()`, `compare()`, `normalize()`
68
- - **SymbolClassifier** (`src/core/symbol-classifier.ts`): `classifySymbol()` - Liefert `visibility`, `role`, `priority`
69
- - **AdrLinker** (`src/generator/adr-linker.ts`): `getRelevantAdrs()`, `getAdrMetadata()`
70
-
71
- ### Verification-Scripts (ADR-026)
72
-
73
- - `scripts/verify-architecture.js` - Architektur-Regeln prüfen
74
- - `scripts/verify-adrs.js` - ADR-Claims gegen Code prüfen
75
- - `scripts/verify-imports.js` - Import-Verfügbarkeit prüfen
76
- - Integration: Pre-Commit Hook, GitHub Actions, VS Code Tasks
77
-
78
- ---
79
-
80
- ## 2. Database Plugin
81
-
82
- **Pfad:** `d:\Extensions\database-plugin`
83
- **Status:** ✅ KOMPLETT
84
- **MVP-Plan:** `MVP_PLAN database.md`
85
- **Architektur:** Hybrid-Datenbank (Registry-DB + Workspace-DB, ADR-035)
86
-
87
- ### Implementierte Komponenten
88
-
89
- #### Core (4 Dateien)
90
- - ✅ `database-manager.ts` - SQLite-Verbindungs-Management (Registry + Workspace)
91
- - ✅ `migration-manager.ts` - Schema-Migrationen (beide DB-Typen)
92
- - ✅ `query-builder.ts` - SQL Query Builder
93
- - ✅ `data-migration.ts` - Migration von zentraler DB zu Hybrid (ADR-035)
94
-
95
- #### Models (7 Dateien)
96
- - ✅ `plugin.ts` - Plugin-Metadaten
97
- - ✅ `snapshot.ts` - Snapshot-Verwaltung
98
- - ✅ `symbol.ts` - Symbol-Rohdaten
99
- - ✅ `dependency.ts` - Dependency-Rohdaten
100
- - ✅ `file.ts` - Datei-Metadaten
101
- - ✅ `adr-relation.ts` - ADR-Verknüpfungen (ADR-034)
102
- - ✅ `change-record.ts` - Change-Records (ADR-034)
103
-
104
- #### Repositories (7 Dateien)
105
- - ✅ `base-repository.ts` - Basis-Repository Pattern (mit DB-Typ-Support)
106
- - ✅ `plugin-repository.ts` - Plugin CRUD (Registry-DB)
107
- - ✅ `symbol-repository.ts` - Symbol CRUD (Workspace-DB)
108
- - ✅ `dependency-repository.ts` - Dependency CRUD (Workspace-DB)
109
- - ✅ `snapshot-repository.ts` - Snapshot CRUD (Workspace-DB)
110
- - ✅ `adr-relation-repository.ts` - ADR-Relations CRUD (Workspace-DB, ADR-034)
111
- - ✅ `change-record-repository.ts` - Change-Records CRUD (Workspace-DB, ADR-034)
112
-
113
- #### APIs (7 Dateien)
114
- - ✅ `plugin-api.ts` - Plugin-Abfragen (Registry-DB)
115
- - ✅ `symbol-api.ts` - Symbol-Abfragen (Workspace-DB)
116
- - ✅ `dependency-api.ts` - Dependency-Abfragen (Workspace-DB)
117
- - ✅ `search-api.ts` - Basis-Suche
118
- - ✅ `snapshot-api.ts` - Snapshot-Management (Workspace-DB)
119
- - ✅ `adr-api.ts` - ADR-Relations Abfragen (Workspace-DB, ADR-034)
120
- - ✅ `change-api.ts` - Change-Records Abfragen (Workspace-DB, ADR-034)
121
-
122
- #### Ingestors (5 Dateien)
123
- - ✅ `docs-ingestor.ts` - docs/ Ordner Parser
124
- - ✅ `jsonl-ingestor.ts` - JSONL Index Parser
125
- - ✅ `markdown-ingestor.ts` - Markdown Dokumentation (inkl. ADR-Extraktion)
126
- - ✅ `batch-ingestor.ts` - Batch-Processing
127
- - ✅ `change-report-ingestor.ts` - CHANGE_REPORT.md Parser (ADR-034)
128
-
129
- #### Validators (3 Dateien)
130
- - ✅ `schema-validator.ts` - Schema-Konsistenz
131
- - ✅ `integrity-validator.ts` - Referentielle Integrität
132
- - ✅ `consistency-validator.ts` - Daten-Konsistenz
133
-
134
- #### Cache (3 Dateien)
135
- - ✅ `query-cache.ts` - Query-Result Caching
136
- - ✅ `ingestion-cache.ts` - Ingestion-Status Cache
137
- - ✅ `metadata-cache.ts` - Metadaten Cache
138
-
139
- #### UI (3 Dateien)
140
- - ✅ `database-explorer.ts` - TreeView für DB-Inhalt
141
- - ✅ `commands.ts` - VSCode Commands
142
- - ✅ `status-provider.ts` - Status-Anzeige
143
-
144
- #### Tests
145
- - ✅ Integration Tests: `end-to-end-ingestion.test.ts`
146
- - ✅ Unit Tests: 26 Test-Dateien für alle Komponenten
147
-
148
- #### Dokumentation
149
- - ✅ **35 ADRs** dokumentieren die komplette Implementierung
150
- - Wichtig: ADR-034 (ADR- und Change-Integration), ADR-035 (Hybrid-Datenbank-Architektur)
151
-
152
- ### Hybrid-Datenbank-Architektur (ADR-035)
153
-
154
- Das Plugin verwendet eine **Hybrid-Architektur** mit zwei separaten Datenbanken:
155
-
156
- **Registry-DB** (`~/.vscode/globalStorage/database-plugin/registry.db`):
157
- - Globale Plugin-Registrierungen (`plugins` Tabelle)
158
- - Zentrale Verwaltung aller registrierten Plugins
159
- - Schema-Versionierung (`schema_metadata` Tabelle)
160
-
161
- **Workspace-DB** (`{workspace}/.database/data.db`):
162
- - Workspace-spezifische Plugin-Daten
163
- - `snapshots`, `raw_symbols`, `raw_dependencies`
164
- - `adr_relations`, `change_records` (neu, ADR-034)
165
- - Jedes Workspace hat seine eigene Datenbank
166
-
167
- **Vorteile:**
168
- - Isolierung von Plugin-Daten pro Workspace
169
- - Bessere Skalierbarkeit bei vielen Plugins
170
- - Einfacheres Backup und Migration
171
- - Cross-Workspace Queries nur über Registry-DB möglich
172
-
173
- **Migration:** Automatische Migration von zentraler `plugins.db` zu Hybrid-Architektur bei Extension-Aktivierung (`src/core/data-migration.ts`).
174
-
175
- ### Kommunikation mit Documentation-System-Plugin
176
-
177
- Der `DocsIngestor` (`src/ingestors/docs-ingestor.ts`) liest die generierten `docs/` Artefakte:
178
- - Parst `docs/modules/*.md` für Modul-Metadaten (inkl. ADR-Verknüpfungen)
179
- - Liest `docs/index/symbols.jsonl` für Symbol-Daten
180
- - Extrahiert Dependencies aus `docs/system/DEPENDENCIES.md`
181
- - Verarbeitet `docs/system/CHANGE_REPORT.md` via `ChangeReportIngestor` (ADR-034)
182
-
183
- ### Neue APIs für abhängige Module
184
-
185
- **ADR-API** (`src/api/adr-api.ts`):
186
- - `getAdrsForModule(moduleFilePath, snapshotId?)` - ADRs für Modul abrufen
187
- - `getModulesForAdr(adrId, snapshotId?)` - Module für ADR abrufen
188
- - `getAllAdrRelations(pluginId, filters?)` - Alle ADR-Relations abrufen
189
-
190
- **Change-API** (`src/api/change-api.ts`):
191
- - `getRecentChanges(snapshotId)` - Änderungen für Snapshot abrufen
192
- - `getChangesByType(snapshotId, changeType)` - Änderungen nach Typ filtern
193
- - `getChangesForFile(filePath, snapshotId?)` - Änderungen für Datei abrufen
194
-
195
- **Workspace-DB Zugriff:**
196
- - Abhängige Module müssen Workspace-DB initialisieren vor Datenzugriff
197
- - Cross-Workspace Queries nur über Registry-DB möglich
198
- - Siehe `src/core/database-manager.ts` → `initializeWorkspace()` für Details
199
-
200
- ---
201
-
202
- ## 3. Semantic Brain Plugin
203
-
204
- **Pfad:** `d:\Extensions\semantic-brain-plugin`
205
- **Status:** 🔄 FAST FERTIG
206
- **MVP-Plan:** `MVP_PLAN semantic brain.md`
207
-
208
- ### Implementierte Komponenten
209
-
210
- #### Core (3 Dateien)
211
- - ✅ `brain-manager.ts` - Hauptsteuerung
212
- - ✅ `database-client.ts` - Client für Database Plugin
213
- - ✅ `graph-manager.ts` - Graph-Operationen
214
- - ❌ `embedding-manager.ts` - FEHLT (geplant)
215
-
216
- #### Graph Layer
217
-
218
- **Models (3 Dateien)**
219
- - ✅ `semantic-node.ts` - Knoten (Symbole, Module)
220
- - ✅ `semantic-edge.ts` - Kanten (Beziehungen)
221
- - ✅ `graph-cluster.ts` - Cluster/Communities
222
-
223
- **Builders (1 Datei)**
224
- - ✅ `symbol-graph-builder.ts` - Symbol-Abhängigkeiten
225
- - ❌ `module-graph-builder.ts` - FEHLT (geplant)
226
- - ❌ `cross-plugin-graph-builder.ts` - FEHLT (geplant)
227
-
228
- **Analyzers (3 Dateien)**
229
- - ✅ `centrality-analyzer.ts` - Zentralitäts-Metriken
230
- - ✅ `community-detector.ts` - Community-Detection
231
- - ✅ `path-analyzer.ts` - Pfad-Analysen
232
- - ❌ `influence-analyzer.ts` - FEHLT (geplant)
233
-
234
- **Exporters (2 Dateien)**
235
- - ✅ `mermaid-exporter.ts` - Mermaid Diagramme
236
- - ✅ `graphml-exporter.ts` - GraphML für Gephi
237
- - ❌ `cytoscape-exporter.ts` - FEHLT (geplant)
238
-
239
- **Infrastructure**
240
- - ✅ `graph-store.ts` - In-Memory Graph Database
241
-
242
- #### Vector Layer
243
-
244
- **Models (3 Dateien)**
245
- - ✅ `symbol-embedding.ts` - Symbol-Embeddings
246
- - ✅ `document-embedding.ts` - Dokument-Embeddings
247
- - ✅ `similarity-score.ts` - Ähnlichkeits-Scores
248
-
249
- **Embedders (3 Dateien)**
250
- - ✅ `code-embedder.ts` - Code-spezifische Embeddings
251
- - ✅ `text-embedder.ts` - Text/Doku-Embeddings
252
- - ✅ `hybrid-embedder.ts` - Kombinierte Embeddings
253
-
254
- **Similarity (2 Dateien)**
255
- - ✅ `cosine-similarity.ts` - Cosinus-Ähnlichkeit
256
- - ✅ `semantic-similarity.ts` - Semantische Ähnlichkeit
257
- - ❌ `structural-similarity.ts` - FEHLT (geplant)
258
-
259
- **Indexes**
260
- - ❌ `faiss-index.ts` - FEHLT (Dependency installiert, aber nicht implementiert)
261
- - ❌ `annoy-index.ts` - FEHLT (Dependency installiert, aber nicht implementiert)
262
-
263
- #### Fehlende Komponenten
264
-
265
- **Scoring-Algorithmen** (0 von 4)
266
- - ❌ `importance-scorer.ts` - FEHLT
267
- - ❌ `complexity-scorer.ts` - FEHLT
268
- - ❌ `coupling-scorer.ts` - FEHLT
269
- - ❌ `quality-scorer.ts` - FEHLT
270
-
271
- **Cache** (0 von 3)
272
- - ❌ `graph-cache.ts` - FEHLT
273
- - ❌ `vector-cache.ts` - FEHLT
274
- - ❌ `computation-cache.ts` - FEHLT
275
-
276
- **APIs** (0 von 4)
277
- - ❌ `graph-api.ts` - FEHLT
278
- - ❌ `similarity-api.ts` - FEHLT
279
- - ❌ `recommendation-api.ts` - FEHLT
280
- - ❌ `analytics-api.ts` - FEHLT
281
-
282
- **UI** (0 von 3)
283
- - ❌ `graph-visualizer.ts` - FEHLT
284
- - ❌ `similarity-explorer.ts` - FEHLT
285
- - ❌ `semantic-search.ts` - FEHLT
286
-
287
- **Extension**
288
- - ❌ `extension.ts` - FEHLT (Commands in package.json definiert, aber keine Implementierung)
289
-
290
- ### Kommunikation mit Database Plugin
291
-
292
- Der `DatabaseClient` implementiert `IDatabaseClient`:
293
- - `getSymbols(pluginId)` - Symbole vom Database Plugin abrufen
294
- - `getDependencies(pluginId)` - Dependencies abrufen
295
- - `getPluginIds()` - Verfügbare Plugins
296
-
297
- ### Dependencies
298
-
299
- - ✅ `faiss-node` - Installiert, aber noch nicht genutzt
300
- - ✅ `annoy` - Installiert, aber noch nicht genutzt
301
- - ✅ `ml-matrix` - Installiert
302
- - ✅ `graph-theory` - Installiert
303
-
304
- ### Dokumentation
305
-
306
- - ✅ **11 ADRs** dokumentieren die Architektur
307
-
308
- ---
309
-
310
- ## 4. Context/RAG Plugin
311
-
312
- **Pfad:** `d:\Extensions\context-rag-plugin` (noch nicht erstellt)
313
- **Status:** 📋 GEPLANT
314
- **MVP-Plan:** `MVP_PLAN RAG context.md`
315
-
316
- ### Geplante Komponenten
317
-
318
- - Agent-Bridge für AI-Agent-System Integration
319
- - Context-Assembly mit semantischen Daten
320
- - Multi-Provider RAG (OpenAI, Anthropic, lokale Modelle)
321
- - Agent-Enhanced RAG mit spezialisierten Agenten
322
-
323
- ---
324
-
325
- ## Koordinaten-System für KI-Agenten
326
-
327
- ### Mehrdimensionaler Navigationsraum (ADR-024)
328
-
329
- Das Documentation-System-Plugin generiert ein **Koordinaten-System** mit 5 Dimensionen, das KI-Agenten ermöglicht, sich im Code-Raum zu bewegen:
330
-
331
- | Dimension | Artefakt | Funktion | Zugriff |
332
- |-----------|----------|----------|---------|
333
- | **Modul-Raum (X)** | `docs/modules/*.md` | API-Dokumentation pro Datei | `docs://modules/{path}` |
334
- | **Symbol-Raum (Y)** | `docs/index/symbols.jsonl` | Symbole mit Dependencies | `docs://index/symbols.jsonl` |
335
- | **Beziehungs-Raum (Z)** | `docs/system/DEPENDENCY_GRAPH.md` | Modul-Abhängigkeiten | `docs://system/graph` |
336
- | **Wissens-Raum (W)** | `docs/adr/*.md` | Architektur-Entscheidungen (Landkarte) | `docs://adr/{name}` |
337
- | **Zeit-Raum (T)** | `docs/system/CHANGE_REPORT.md` | Änderungen über die Zeit | `docs://system/changes` |
338
-
339
- **MCP-Server-Integration:**
340
- - 99 Resources verfügbar (4 System, 71 Module, 24 ADRs)
341
- - Strukturierter Zugriff via `docs://` URIs
342
- - Tools: `validation/runScan`, `validation/runValidate`, `validation/runDriftCheck`, `validation/analyzeImpact`
343
-
344
- ### Agent-Navigation
345
-
346
- **Via MCP-Server (ADR-025):**
347
- ```typescript
348
- // Modul-Dokumentation lesen
349
- readDocsResource('docs://modules/src__parsers__ts-js.ts.md')
350
-
351
- // Dependency-Graph abrufen
352
- readDocsResource('docs://system/graph')
353
-
354
- // Change Report abrufen (Zeit-Dimension)
355
- readDocsResource('docs://system/changes')
356
-
357
- // ADRs lesen
358
- readDocsResource('docs://adr/020-api-doc-tiefe-und-signatureformatter.md')
359
-
360
- // Impact-Analyse durchführen
361
- analyzeImpact({ file: 'src/parsers/ts-js.ts', symbol: 'TsJsParser' })
362
-
363
- // Scan via CLI-Bridge
364
- runScan({ workspaceRoot: '...' })
365
-
366
- // Validate via CLI-Bridge
367
- runValidate({ workspaceRoot: '...' })
368
- ```
369
-
370
- **Via Database Plugin (Hybrid-Architektur, ADR-035):**
371
- ```typescript
372
- // Workspace-DB initialisieren (wichtig!)
373
- initializeWorkspace(workspaceRoot)
374
-
375
- // Symbole abrufen (Workspace-DB)
376
- getSymbols(pluginId)
377
-
378
- // Dependencies abrufen (Workspace-DB)
379
- getDependencies(pluginId)
380
-
381
- // ADR-Verknüpfungen abrufen (Workspace-DB, ADR-034)
382
- getAdrsForModule(moduleFilePath, snapshotId?)
383
- getModulesForAdr(adrId, snapshotId?)
384
-
385
- // Change-Records abrufen (Workspace-DB, ADR-034)
386
- getRecentChanges(snapshotId)
387
- getChangesByType(snapshotId, changeType)
388
- getChangesForFile(filePath, snapshotId?)
389
-
390
- // Suche durchführen
391
- searchSymbols({ name: 'Parser', kind: 'class' })
392
- ```
393
-
394
- **Via Semantic Brain Plugin (geplant):**
395
- ```typescript
396
- // Graph-Nachbarschaft abrufen (APIs fehlen noch)
397
- getNeighborhood({ nodeId: '...', depth: 2 })
398
-
399
- // Ähnliche Symbole finden (APIs fehlen noch)
400
- findSimilarNodes({ nodeId: '...', minSimilarity: 0.7 })
401
-
402
- // Semantische Suche (APIs fehlen noch)
403
- semanticSearch({ query: 'parser implementation' })
404
- ```
405
-
406
- ---
407
-
408
- ## Nächste Schritte
409
-
410
- ### 1. Semantic Brain Plugin fertigstellen
411
-
412
- **Priorität: Hoch**
413
-
414
- 1. **Scoring-Algorithmen** implementieren
415
- - `importance-scorer.ts`
416
- - `complexity-scorer.ts`
417
- - `coupling-scorer.ts`
418
- - `quality-scorer.ts`
419
-
420
- 2. **APIs** implementieren
421
- - `graph-api.ts`
422
- - `similarity-api.ts`
423
- - `recommendation-api.ts`
424
- - `analytics-api.ts`
425
-
426
- 3. **Extension** implementieren
427
- - `extension.ts` mit Command-Handlern
428
- - UI-Komponenten für Graph-Visualisierung
429
-
430
- 4. **Cache** implementieren
431
- - `graph-cache.ts`
432
- - `vector-cache.ts`
433
- - `computation-cache.ts`
434
-
435
- ### 2. Context/RAG Plugin starten
436
-
437
- **Priorität: Mittel**
438
-
439
- Gemäß `MVP_PLAN RAG context.md`:
440
- - Agent-Bridge für AI-Agent-System
441
- - Context-Assembly mit Semantic Brain Daten
442
- - Multi-Provider RAG
443
-
444
- ### 3. Integration testen
445
-
446
- **Priorität: Hoch**
447
-
448
- - End-to-End Tests: Documentation-System → Database → Semantic Brain
449
- - Performance-Tests für große Codebases
450
- - Cross-Plugin Dependency-Analysis
451
-
452
- ---
453
-
454
- ## Referenzen
455
-
456
- - **Database Plugin MVP-Plan:** `d:\Extensions\database-plugin\MVP_PLAN.md`
457
- - **Semantic Brain MVP-Plan:** `d:\Extensions\semantic-brain-plugin\MVP_PLAN.md`
458
- - **RAG Context MVP-Plan:** `MVP_PLAN RAG context.md` (im Documentation-System-Plugin)
459
- - **Database Plugin ADRs:** `d:\Extensions\database-plugin\docs\adr\`
460
- - **Semantic Brain ADRs:** `d:\Extensions\semantic-brain-plugin\docs\adr\`
461
-
462
- ---
463
-
464
- *Diese Dokumentation wird aktualisiert, sobald neue Komponenten implementiert werden.*
465
-