@noyrax/documentation-system-plugin 1.0.4-beta.1

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 (200) hide show
  1. package/.vscodeignore +41 -0
  2. package/LICENSE +21 -0
  3. package/MCP_SERVER_SETUP.md +371 -0
  4. package/README.md +663 -0
  5. package/assets/icon.svg +27 -0
  6. package/docs/LINKEDIN_ANTWORT_SEQUENZDIAGRAMME.md +190 -0
  7. package/docs/SEQUENZDIAGRAMM_BEWEIS.md +469 -0
  8. package/docs/SEQUENZDIAGRAMM_VALIDATE_FLOW.md +282 -0
  9. package/docs/adr/001-signatur-abweichung-fix.md +54 -0
  10. package/docs/adr/002-file-specific-validation-1.0.1.md +45 -0
  11. package/docs/adr/003-documentation-generation-bugs.md +134 -0
  12. package/docs/adr/004-validator-signature-matching-fix.md +121 -0
  13. package/docs/adr/005-validator-generic-simplification-tightening.md +35 -0
  14. package/docs/adr/006-parser-variable-type-extraction.md +33 -0
  15. package/docs/adr/007-ts-parser-load-libs-for-accurate-types.md +31 -0
  16. package/docs/adr/008-dependencies-cache-phase1.md +133 -0
  17. package/docs/adr/009-consolidation-union-logic-phase1-2.md +147 -0
  18. package/docs/adr/010-extension-union-integration-phase1-3-and-phase2.md +179 -0
  19. package/docs/adr/011-module-doc-change-tracking-phase3.md +190 -0
  20. package/docs/adr/012-git-deletions-change-report-phase4.md +235 -0
  21. package/docs/adr/013-system-functionality-fixes.md +279 -0
  22. package/docs/adr/014-rules-migration-und-mcp-integration.md +113 -0
  23. package/docs/adr/015-global-agent-package.md +158 -0
  24. package/docs/adr/016-produktisierung-docguard.md +193 -0
  25. package/docs/adr/017-signature-matching-optional-fields.md +128 -0
  26. package/docs/adr/018-rebranding-docguard-to-noyrax.md +109 -0
  27. package/docs/adr/019-system-schwachstellen-analyse-und-fixes.md +204 -0
  28. package/docs/adr/020-api-doc-tiefe-und-signatureformatter.md +74 -0
  29. package/docs/adr/021-semantic-api-docs-and-symbol-classifier.md +125 -0
  30. package/docs/adr/022-semantic-class-and-constants-rendering.md +82 -0
  31. package/docs/adr/023-adr-verknuepfung-modul-doku.md +54 -0
  32. package/docs/adr/024-cursor-rules-mehrdimensionaler-raum.md +230 -0
  33. package/docs/adr/025-mcp-tools-scan-validate-cli-bridge.md +202 -0
  34. package/docs/adr/026-reality-driven-development-system.md +173 -0
  35. package/docs/adr/027-scanner-excludes-and-union-logic-fix.md +189 -0
  36. package/docs/adr/028-src-coverage-union-resync.md +124 -0
  37. package/docs/adr/029-parser-flow-kopplung-und-sync-drift-modi.md +102 -0
  38. package/docs/adr/030-dependency-import-symbol-names-preservation.md +123 -0
  39. package/docs/adr/031-generate-cli-vollstaendige-dokumentation.md +99 -0
  40. package/docs/adr/032-windows-optimized-verification-scripts.md +165 -0
  41. package/docs/adr/036-enhanced-dependency-metadata.md +190 -0
  42. package/docs/adr/TEMPLATE.md +76 -0
  43. package/docs/index/symbols.jsonl +31 -0
  44. package/docs/modules/action__action.yml.md +50 -0
  45. package/docs/modules/documentation.config.schema.json.md +37 -0
  46. package/docs/modules/mcp__package.json.md +130 -0
  47. package/docs/modules/mcp__src__resources__docs.ts.md +94 -0
  48. package/docs/modules/mcp__src__server.ts.md +15 -0
  49. package/docs/modules/mcp__src__tools__drift.ts.md +110 -0
  50. package/docs/modules/mcp__src__tools__impact.ts.md +127 -0
  51. package/docs/modules/mcp__src__tools__scan.ts.md +75 -0
  52. package/docs/modules/mcp__src__tools__validate.ts.md +116 -0
  53. package/docs/modules/mcp__src__tools__verify-adrs.ts.md +106 -0
  54. package/docs/modules/mcp__tsconfig.json.md +22 -0
  55. package/docs/modules/package.json.md +131 -0
  56. package/docs/modules/packages__doc-system-agent__examples__basic-project__package.json.md +43 -0
  57. package/docs/modules/packages__doc-system-agent__examples__basic-project__src__calculator.ts.md +81 -0
  58. package/docs/modules/packages__doc-system-agent__package.json.md +154 -0
  59. package/docs/modules/packages__doc-system-agent__src__cli__index.ts.md +8 -0
  60. package/docs/modules/packages__doc-system-agent__src__cli__init.ts.md +93 -0
  61. package/docs/modules/packages__doc-system-agent__src__cli__update.ts.md +113 -0
  62. package/docs/modules/packages__doc-system-agent__src__constants.ts.md +29 -0
  63. package/docs/modules/packages__doc-system-agent__src__index.ts.md +234 -0
  64. package/docs/modules/packages__doc-system-agent__src__mcp__resources__docs.ts.md +94 -0
  65. package/docs/modules/packages__doc-system-agent__src__mcp__server.ts.md +17 -0
  66. package/docs/modules/packages__doc-system-agent__src__mcp__tools__drift.ts.md +38 -0
  67. package/docs/modules/packages__doc-system-agent__src__mcp__tools__impact.ts.md +75 -0
  68. package/docs/modules/packages__doc-system-agent__src__mcp__tools__scan.ts.md +23 -0
  69. package/docs/modules/packages__doc-system-agent__src__mcp__tools__validate.ts.md +23 -0
  70. package/docs/modules/packages__doc-system-agent__src__mcp__tools__verify-adrs.ts.md +106 -0
  71. package/docs/modules/packages__doc-system-agent__src__mcp__types.ts.md +355 -0
  72. package/docs/modules/packages__doc-system-agent__tsconfig.json.md +22 -0
  73. package/docs/modules/scripts__verify-adrs.js.md +97 -0
  74. package/docs/modules/scripts__verify-architecture.js.md +93 -0
  75. package/docs/modules/scripts__verify-imports.js.md +114 -0
  76. package/docs/modules/src____tests____setup.ts.md +8 -0
  77. package/docs/modules/src____tests____signature-formatter.test.ts.md +16 -0
  78. package/docs/modules/src____tests____snapshot-doc-generation.test.ts.md +8 -0
  79. package/docs/modules/src____tests____symbol-classifier.test.ts.md +16 -0
  80. package/docs/modules/src__cache__ast-cache.ts.md +91 -0
  81. package/docs/modules/src__cache__dependencies-cache.ts.md +89 -0
  82. package/docs/modules/src__cache__output-cache.ts.md +91 -0
  83. package/docs/modules/src__cache__signature-cache.ts.md +76 -0
  84. package/docs/modules/src__cli__generate-cli.ts.md +130 -0
  85. package/docs/modules/src__cli__scan-cli.ts.md +99 -0
  86. package/docs/modules/src__cli__validate-cli.ts.md +144 -0
  87. package/docs/modules/src__core__async.ts.md +18 -0
  88. package/docs/modules/src__core__consolidation.ts.md +158 -0
  89. package/docs/modules/src__core__git.ts.md +35 -0
  90. package/docs/modules/src__core__language-detection.ts.md +31 -0
  91. package/docs/modules/src__core__scanner.ts.md +101 -0
  92. package/docs/modules/src__core__signature-formatter.ts.md +232 -0
  93. package/docs/modules/src__core__symbol-classifier.ts.md +178 -0
  94. package/docs/modules/src__core__symbols.ts.md +31 -0
  95. package/docs/modules/src__drift__index.ts.md +53 -0
  96. package/docs/modules/src__extension.ts.md +418 -0
  97. package/docs/modules/src__generator__adr-linker.ts.md +154 -0
  98. package/docs/modules/src__generator__change-report.ts.md +85 -0
  99. package/docs/modules/src__generator__dependency-graph.ts.md +63 -0
  100. package/docs/modules/src__generator__index.ts.md +40 -0
  101. package/docs/modules/src__generator__module-doc.ts.md +242 -0
  102. package/docs/modules/src__index__index.ts.md +141 -0
  103. package/docs/modules/src__logging__index.ts.md +87 -0
  104. package/docs/modules/src__parsers__dependencies.ts.md +69 -0
  105. package/docs/modules/src__parsers__json-yaml.ts.md +81 -0
  106. package/docs/modules/src__parsers__python.ts.md +73 -0
  107. package/docs/modules/src__parsers__ts-js.ts.md +48 -0
  108. package/docs/modules/src__parsers__types.ts.md +99 -0
  109. package/docs/modules/src__ui__commands-provider.ts.md +70 -0
  110. package/docs/modules/src__ui__status-bar.ts.md +79 -0
  111. package/docs/modules/src__validator__index.ts.md +211 -0
  112. package/docs/modules/src__validator__signature-matching.ts.md +209 -0
  113. package/docs/modules/src__validator__status.ts.md +72 -0
  114. package/docs/modules/test-mcp-resources.js.md +27 -0
  115. package/docs/modules/tsconfig.json.md +22 -0
  116. package/docs/system/CHANGE_REPORT.md +19 -0
  117. package/docs/system/DEPENDENCIES.md +430 -0
  118. package/docs/system/DEPENDENCY_GRAPH.md +368 -0
  119. package/docs/system/NAVIGATION_SPACE_ANALYSIS.md +244 -0
  120. package/docs/system/NPX_CACHE_FIX.md +85 -0
  121. package/docs/system/NPX_LOCAL_USAGE.md +66 -0
  122. package/docs/system/PLUGIN_ECOSYSTEM_STATUS.md +465 -0
  123. package/docs/system/PLUGIN_UPDATE_GUIDE.md +212 -0
  124. package/docs/system/RULES_UPDATE_GUIDE.md +182 -0
  125. package/docs/system/SYSTEM_ANALYSIS.md +947 -0
  126. package/documentation.config.schema.json +77 -0
  127. package/noyrax-5d-database-plugin-0.1.8.tgz +0 -0
  128. package/out/cache/ast-cache.js +69 -0
  129. package/out/cache/ast-cache.js.map +1 -0
  130. package/out/cache/dependencies-cache.js +73 -0
  131. package/out/cache/dependencies-cache.js.map +1 -0
  132. package/out/cache/output-cache.js +69 -0
  133. package/out/cache/output-cache.js.map +1 -0
  134. package/out/cache/signature-cache.js +60 -0
  135. package/out/cache/signature-cache.js.map +1 -0
  136. package/out/cli/generate-cli.js +330 -0
  137. package/out/cli/generate-cli.js.map +1 -0
  138. package/out/cli/scan-cli.js +151 -0
  139. package/out/cli/scan-cli.js.map +1 -0
  140. package/out/cli/validate-cli.js +258 -0
  141. package/out/cli/validate-cli.js.map +1 -0
  142. package/out/core/async.js +38 -0
  143. package/out/core/async.js.map +1 -0
  144. package/out/core/consolidation.js +230 -0
  145. package/out/core/consolidation.js.map +1 -0
  146. package/out/core/git.js +48 -0
  147. package/out/core/git.js.map +1 -0
  148. package/out/core/language-detection.js +29 -0
  149. package/out/core/language-detection.js.map +1 -0
  150. package/out/core/scanner.js +179 -0
  151. package/out/core/scanner.js.map +1 -0
  152. package/out/core/signature-formatter.js +162 -0
  153. package/out/core/signature-formatter.js.map +1 -0
  154. package/out/core/symbol-classifier.js +96 -0
  155. package/out/core/symbol-classifier.js.map +1 -0
  156. package/out/core/symbols.js +24 -0
  157. package/out/core/symbols.js.map +1 -0
  158. package/out/drift/index.js +28 -0
  159. package/out/drift/index.js.map +1 -0
  160. package/out/extension.js +984 -0
  161. package/out/extension.js.map +1 -0
  162. package/out/generator/adr-linker.js +216 -0
  163. package/out/generator/adr-linker.js.map +1 -0
  164. package/out/generator/change-report.js +124 -0
  165. package/out/generator/change-report.js.map +1 -0
  166. package/out/generator/dependency-graph.js +98 -0
  167. package/out/generator/dependency-graph.js.map +1 -0
  168. package/out/generator/index.js +117 -0
  169. package/out/generator/index.js.map +1 -0
  170. package/out/generator/module-doc.js +438 -0
  171. package/out/generator/module-doc.js.map +1 -0
  172. package/out/index/index.js +147 -0
  173. package/out/index/index.js.map +1 -0
  174. package/out/logging/index.js +24 -0
  175. package/out/logging/index.js.map +1 -0
  176. package/out/parsers/dependencies.js +126 -0
  177. package/out/parsers/dependencies.js.map +1 -0
  178. package/out/parsers/json-yaml.js +90 -0
  179. package/out/parsers/json-yaml.js.map +1 -0
  180. package/out/parsers/python.js +160 -0
  181. package/out/parsers/python.js.map +1 -0
  182. package/out/parsers/ts-js.js +397 -0
  183. package/out/parsers/ts-js.js.map +1 -0
  184. package/out/parsers/types.js +3 -0
  185. package/out/parsers/types.js.map +1 -0
  186. package/out/ui/commands-provider.js +91 -0
  187. package/out/ui/commands-provider.js.map +1 -0
  188. package/out/ui/status-bar.js +85 -0
  189. package/out/ui/status-bar.js.map +1 -0
  190. package/out/validator/index.js +185 -0
  191. package/out/validator/index.js.map +1 -0
  192. package/out/validator/signature-matching.js +261 -0
  193. package/out/validator/signature-matching.js.map +1 -0
  194. package/out/validator/status.js +38 -0
  195. package/out/validator/status.js.map +1 -0
  196. package/package.json +306 -0
  197. package/publish.ps1 +21 -0
  198. package/scripts/verify-adrs.js +312 -0
  199. package/scripts/verify-architecture.js +181 -0
  200. package/scripts/verify-imports.js +274 -0
@@ -0,0 +1,144 @@
1
+ # Modul: src/cli/validate-cli.ts
2
+
3
+ ## Relevante ADRs
4
+
5
+ - [ADR-025: MCP-Server Tools Scan/Validate – CLI-Bridge-Pattern](../adr/025-mcp-tools-scan-validate-cli-bridge.md)
6
+ - [ADR-029: Parser-Flow-Kopplung und Sync/Drift-Modi für die Validierung](../adr/029-parser-flow-kopplung-und-sync-drift-modi.md)
7
+
8
+ ### interface: ValidateCliResult
9
+ Rolle: domain-model (Sichtbarkeit: public, Priorität: high)
10
+ Signatur: `interface ValidateCliResult {
11
+ status: 'success' | 'warnings' | 'errors';
12
+ errors: ValidationError[];
13
+ warnings: ValidationError[];
14
+ coverage: {
15
+ documented: number;
16
+ total: number;
17
+ percentage: number;
18
+ };
19
+ duration: number;
20
+ logs: string[];
21
+ }`
22
+ ```ts
23
+ interface ValidateCliResult {
24
+ status: 'success' | 'warnings' | 'errors';
25
+ errors: ValidationError[];
26
+ warnings: ValidationError[];
27
+ coverage: {
28
+ documented: number;
29
+ total: number;
30
+ percentage: number;
31
+ };
32
+ duration: number;
33
+ logs: string[];
34
+ }
35
+ ```
36
+
37
+ Eigenschaften:
38
+
39
+ | Name | Typ | Optional |
40
+ |------|-----|----------|
41
+ | `coverage` | `{
42
+ documented: number;
43
+ total: number;
44
+ percentage: number;
45
+ }` | nein |
46
+ | `duration` | `number` | nein |
47
+ | `errors` | `ValidationError[]` | nein |
48
+ | `logs` | `string[]` | nein |
49
+ | `status` | `'success' | 'warnings' | 'errors'` | nein |
50
+ | `warnings` | `ValidationError[]` | nein |
51
+
52
+ ### interface: ValidateCliOptions
53
+ Rolle: config (Sichtbarkeit: public, Priorität: normal)
54
+ Signatur: `interface ValidateCliOptions {
55
+ workspaceRoot?: string;
56
+ outputPath?: string;
57
+ files?: string[];
58
+ verbose?: boolean;
59
+ thresholds?: CoverageThresholds;
60
+ }`
61
+ ```ts
62
+ interface ValidateCliOptions {
63
+ workspaceRoot?: string;
64
+ outputPath?: string;
65
+ files?: string[];
66
+ verbose?: boolean;
67
+ thresholds?: CoverageThresholds;
68
+ }
69
+ ```
70
+
71
+ Eigenschaften:
72
+
73
+ | Name | Typ | Optional |
74
+ |------|-----|----------|
75
+ | `files` | `string[]` | ja |
76
+ | `outputPath` | `string` | ja |
77
+ | `thresholds` | `CoverageThresholds` | ja |
78
+ | `verbose` | `boolean` | ja |
79
+ | `workspaceRoot` | `string` | ja |
80
+
81
+ ### interface: ValidationError
82
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
83
+ Signatur: `interface ValidationError {
84
+ file: string;
85
+ type: 'signature_mismatch' | 'missing_docs' | 'stale_docs' | 'coverage';
86
+ message: string;
87
+ expected?: string;
88
+ found?: string;
89
+ }`
90
+ ```ts
91
+ interface ValidationError {
92
+ file: string;
93
+ type: 'signature_mismatch' | 'missing_docs' | 'stale_docs' | 'coverage';
94
+ message: string;
95
+ expected?: string;
96
+ found?: string;
97
+ }
98
+ ```
99
+
100
+ Eigenschaften:
101
+
102
+ | Name | Typ | Optional |
103
+ |------|-----|----------|
104
+ | `expected` | `string` | ja |
105
+ | `file` | `string` | nein |
106
+ | `found` | `string` | ja |
107
+ | `message` | `string` | nein |
108
+ | `type` | `'signature_mismatch' | 'missing_docs' | 'stale_docs' | 'coverage'` | nein |
109
+
110
+ ### function: runValidateCli
111
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
112
+ Signatur: `runValidateCli(options: ValidateCliOptions = …): Promise<ValidateCliResult>`
113
+ ```ts
114
+ runValidateCli(options: ValidateCliOptions = …): Promise<ValidateCliResult>
115
+ ```
116
+
117
+ Parameter:
118
+
119
+ | Name | Typ | Optional | Default |
120
+ |------|-----|----------|---------|
121
+ | `options` | `ValidateCliOptions` | nein | ja |
122
+
123
+ Rückgabewert: `Promise<ValidateCliResult>`
124
+
125
+ ### variable: reexport:runValidateClifrom:undefined
126
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
127
+ Signatur: `reexport:runValidateClifrom:undefined`
128
+ ```ts
129
+ reexport:runValidateClifrom:undefined
130
+ ```
131
+
132
+ ### variable: reexport:ValidateCliOptionsfrom:undefined
133
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
134
+ Signatur: `reexport:ValidateCliOptionsfrom:undefined`
135
+ ```ts
136
+ reexport:ValidateCliOptionsfrom:undefined
137
+ ```
138
+
139
+ ### variable: reexport:ValidateCliResultfrom:undefined
140
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
141
+ Signatur: `reexport:ValidateCliResultfrom:undefined`
142
+ ```ts
143
+ reexport:ValidateCliResultfrom:undefined
144
+ ```
@@ -0,0 +1,18 @@
1
+ # Modul: src/core/async.ts
2
+
3
+ ### function: mapLimit
4
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
5
+ Signatur: `mapLimit(items: T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>`
6
+ ```ts
7
+ mapLimit(items: T[], limit: number, fn: (item: T, index: number) => Promise<R>): Promise<R[]>
8
+ ```
9
+
10
+ Parameter:
11
+
12
+ | Name | Typ | Optional | Default |
13
+ |------|-----|----------|---------|
14
+ | `fn` | `(item: T, index: number) => Promise<R>` | nein | nein |
15
+ | `items` | `T[]` | nein | nein |
16
+ | `limit` | `number` | nein | nein |
17
+
18
+ Rückgabewert: `Promise<R[]>`
@@ -0,0 +1,158 @@
1
+ # Modul: src/core/consolidation.ts
2
+
3
+ ## Relevante ADRs
4
+
5
+ - [ADR-008: dependencies-cache-phase1](../adr/008-dependencies-cache-phase1.md)
6
+ - [ADR-009: consolidation-union-logic-phase1-2](../adr/009-consolidation-union-logic-phase1-2.md)
7
+ - [ADR-027: Scanner-Excludes und Union-Logik Fix](../adr/027-scanner-excludes-and-union-logic-fix.md)
8
+ - [ADR-036: Enhanced Dependency Metadata (Aliasing, Type-Only, Re-Exports)](../adr/036-enhanced-dependency-metadata.md)
9
+
10
+ <!-- change: symbol-added name="deduplicateAndSortDependencies" kind="function" -->
11
+ ### interface: DependenciesUnionResult
12
+ Rolle: domain-model (Sichtbarkeit: public, Priorität: high)
13
+ Signatur: `interface DependenciesUnionResult {
14
+ dependencies: DependencyCacheEntry[];
15
+ debug: UnionDebugInfo;
16
+ }`
17
+ ```ts
18
+ interface DependenciesUnionResult {
19
+ dependencies: DependencyCacheEntry[];
20
+ debug: UnionDebugInfo;
21
+ }
22
+ ```
23
+
24
+ Eigenschaften:
25
+
26
+ | Name | Typ | Optional |
27
+ |------|-----|----------|
28
+ | `debug` | `UnionDebugInfo` | nein |
29
+ | `dependencies` | `DependencyCacheEntry[]` | nein |
30
+
31
+ ### interface: UnionDebugInfo
32
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
33
+ Signatur: `interface UnionDebugInfo {
34
+ keptFromUnparsed: number;
35
+ skippedFromParsed: number;
36
+ skippedFromDeleted: number;
37
+ newDeps: number;
38
+ }`
39
+ ```ts
40
+ interface UnionDebugInfo {
41
+ keptFromUnparsed: number;
42
+ skippedFromParsed: number;
43
+ skippedFromDeleted: number;
44
+ newDeps: number;
45
+ }
46
+ ```
47
+
48
+ Eigenschaften:
49
+
50
+ | Name | Typ | Optional |
51
+ |------|-----|----------|
52
+ | `keptFromUnparsed` | `number` | nein |
53
+ | `newDeps` | `number` | nein |
54
+ | `skippedFromDeleted` | `number` | nein |
55
+ | `skippedFromParsed` | `number` | nein |
56
+
57
+ ### function: buildDependenciesUnion
58
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
59
+ Signatur: `buildDependenciesUnion(dependenciesNew: ModuleDependency[], dependenciesCachePrev: DependencyCacheEntry[], parsedFiles: Set<string>, deletedFiles: Set<string>): DependencyCacheEntry[]`
60
+ ```ts
61
+ buildDependenciesUnion(dependenciesNew: ModuleDependency[], dependenciesCachePrev: DependencyCacheEntry[], parsedFiles: Set<string>, deletedFiles: Set<string>): DependencyCacheEntry[]
62
+ ```
63
+
64
+ Parameter:
65
+
66
+ | Name | Typ | Optional | Default |
67
+ |------|-----|----------|---------|
68
+ | `deletedFiles` | `Set<string>` | nein | nein |
69
+ | `dependenciesCachePrev` | `DependencyCacheEntry[]` | nein | nein |
70
+ | `dependenciesNew` | `ModuleDependency[]` | nein | nein |
71
+ | `parsedFiles` | `Set<string>` | nein | nein |
72
+
73
+ Rückgabewert: `DependencyCacheEntry[]`
74
+
75
+ ### function: buildDependenciesUnionWithDebug
76
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
77
+ Signatur: `buildDependenciesUnionWithDebug(dependenciesNew: ModuleDependency[], dependenciesCachePrev: DependencyCacheEntry[], parsedFiles: Set<string>, deletedFiles: Set<string>): DependenciesUnionResult`
78
+ ```ts
79
+ buildDependenciesUnionWithDebug(dependenciesNew: ModuleDependency[], dependenciesCachePrev: DependencyCacheEntry[], parsedFiles: Set<string>, deletedFiles: Set<string>): DependenciesUnionResult
80
+ ```
81
+
82
+ Parameter:
83
+
84
+ | Name | Typ | Optional | Default |
85
+ |------|-----|----------|---------|
86
+ | `deletedFiles` | `Set<string>` | nein | nein |
87
+ | `dependenciesCachePrev` | `DependencyCacheEntry[]` | nein | nein |
88
+ | `dependenciesNew` | `ModuleDependency[]` | nein | nein |
89
+ | `parsedFiles` | `Set<string>` | nein | nein |
90
+
91
+ Rückgabewert: `DependenciesUnionResult`
92
+
93
+ ### function: buildPreviousDependenciesMap
94
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
95
+ Signatur: `buildPreviousDependenciesMap(entries: DependencyCacheEntry[]): Map<string, DependencyCacheEntry[]>`
96
+ ```ts
97
+ buildPreviousDependenciesMap(entries: DependencyCacheEntry[]): Map<string, DependencyCacheEntry[]>
98
+ ```
99
+
100
+ Parameter:
101
+
102
+ | Name | Typ | Optional | Default |
103
+ |------|-----|----------|---------|
104
+ | `entries` | `DependencyCacheEntry[]` | nein | nein |
105
+
106
+ Rückgabewert: `Map<string, DependencyCacheEntry[]>`
107
+
108
+ ### function: buildSymbolsUnion
109
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
110
+ Signatur: `buildSymbolsUnion(symbolsNew: ParsedSymbol[], symbolsPrev: ParsedSymbol[], parsedFiles: Set<string>, deletedFiles: Set<string>, scannedFiles: Set<string>): ParsedSymbol[]`
111
+ ```ts
112
+ buildSymbolsUnion(symbolsNew: ParsedSymbol[], symbolsPrev: ParsedSymbol[], parsedFiles: Set<string>, deletedFiles: Set<string>, scannedFiles: Set<string>): ParsedSymbol[]
113
+ ```
114
+
115
+ Parameter:
116
+
117
+ | Name | Typ | Optional | Default |
118
+ |------|-----|----------|---------|
119
+ | `deletedFiles` | `Set<string>` | nein | nein |
120
+ | `parsedFiles` | `Set<string>` | nein | nein |
121
+ | `scannedFiles` | `Set<string>` | nein | nein |
122
+ | `symbolsNew` | `ParsedSymbol[]` | nein | nein |
123
+ | `symbolsPrev` | `ParsedSymbol[]` | nein | nein |
124
+
125
+ Rückgabewert: `ParsedSymbol[]`
126
+
127
+ ### function: buildUnionMap
128
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
129
+ Signatur: `buildUnionMap(dependenciesNew: ModuleDependency[], depMapPrev: Map<string, DependencyCacheEntry[]>, parsedFiles: Set<string>, deletedFiles: Set<string>): { union: Map<string, DependencyCacheEntry[]>, debug: UnionDebugInfo }`
130
+ ```ts
131
+ buildUnionMap(dependenciesNew: ModuleDependency[], depMapPrev: Map<string, DependencyCacheEntry[]>, parsedFiles: Set<string>, deletedFiles: Set<string>): { union: Map<string, DependencyCacheEntry[]>, debug: UnionDebugInfo }
132
+ ```
133
+
134
+ Parameter:
135
+
136
+ | Name | Typ | Optional | Default |
137
+ |------|-----|----------|---------|
138
+ | `deletedFiles` | `Set<string>` | nein | nein |
139
+ | `dependenciesNew` | `ModuleDependency[]` | nein | nein |
140
+ | `depMapPrev` | `Map<string, DependencyCacheEntry[]>` | nein | nein |
141
+ | `parsedFiles` | `Set<string>` | nein | nein |
142
+
143
+ Rückgabewert: `{ union: Map<string, DependencyCacheEntry[]>, debug: UnionDebugInfo }`
144
+
145
+ ### function: deduplicateAndSortDependencies
146
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
147
+ Signatur: `deduplicateAndSortDependencies(depMap: Map<string, DependencyCacheEntry[]>): DependencyCacheEntry[]`
148
+ ```ts
149
+ deduplicateAndSortDependencies(depMap: Map<string, DependencyCacheEntry[]>): DependencyCacheEntry[]
150
+ ```
151
+
152
+ Parameter:
153
+
154
+ | Name | Typ | Optional | Default |
155
+ |------|-----|----------|---------|
156
+ | `depMap` | `Map<string, DependencyCacheEntry[]>` | nein | nein |
157
+
158
+ Rückgabewert: `DependencyCacheEntry[]`
@@ -0,0 +1,35 @@
1
+ # Modul: src/core/git.ts
2
+
3
+ ## Relevante ADRs
4
+
5
+ - [ADR-012: git-deletions-change-report-phase4](../adr/012-git-deletions-change-report-phase4.md)
6
+
7
+ ### function: getChangedFiles
8
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
9
+ Signatur: `getChangedFiles(repoRoot: string): Set<string> | null`
10
+ ```ts
11
+ getChangedFiles(repoRoot: string): Set<string> | null
12
+ ```
13
+
14
+ Parameter:
15
+
16
+ | Name | Typ | Optional | Default |
17
+ |------|-----|----------|---------|
18
+ | `repoRoot` | `string` | nein | nein |
19
+
20
+ Rückgabewert: `Set<string> | null`
21
+
22
+ ### function: getDeletedFiles
23
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
24
+ Signatur: `getDeletedFiles(repoRoot: string): Set<string> | null`
25
+ ```ts
26
+ getDeletedFiles(repoRoot: string): Set<string> | null
27
+ ```
28
+
29
+ Parameter:
30
+
31
+ | Name | Typ | Optional | Default |
32
+ |------|-----|----------|---------|
33
+ | `repoRoot` | `string` | nein | nein |
34
+
35
+ Rückgabewert: `Set<string> | null`
@@ -0,0 +1,31 @@
1
+ # Modul: src/core/language-detection.ts
2
+
3
+ ### function: guessLanguageByShebang
4
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
5
+ Signatur: `guessLanguageByShebang(firstLine: string | null): string | null`
6
+ ```ts
7
+ guessLanguageByShebang(firstLine: string | null): string | null
8
+ ```
9
+
10
+ Parameter:
11
+
12
+ | Name | Typ | Optional | Default |
13
+ |------|-----|----------|---------|
14
+ | `firstLine` | `string | null` | nein | nein |
15
+
16
+ Rückgabewert: `string | null`
17
+
18
+ ### function: normalizeLineEndings
19
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
20
+ Signatur: `normalizeLineEndings(content: string): string`
21
+ ```ts
22
+ normalizeLineEndings(content: string): string
23
+ ```
24
+
25
+ Parameter:
26
+
27
+ | Name | Typ | Optional | Default |
28
+ |------|-----|----------|---------|
29
+ | `content` | `string` | nein | nein |
30
+
31
+ Rückgabewert: `string`
@@ -0,0 +1,101 @@
1
+ # Modul: src/core/scanner.ts
2
+
3
+ ## Relevante ADRs
4
+
5
+ - [ADR-006: parser-variable-type-extraction](../adr/006-parser-variable-type-extraction.md)
6
+ - [ADR-012: git-deletions-change-report-phase4](../adr/012-git-deletions-change-report-phase4.md)
7
+ - [ADR-019: System-Schwachstellen-Analyse und proaktive Fixes](../adr/019-system-schwachstellen-analyse-und-fixes.md)
8
+ - [ADR-025: MCP-Server Tools Scan/Validate – CLI-Bridge-Pattern](../adr/025-mcp-tools-scan-validate-cli-bridge.md)
9
+ - [ADR-027: Scanner-Excludes und Union-Logik Fix](../adr/027-scanner-excludes-and-union-logic-fix.md)
10
+ - [ADR-028: Vollständige `src`-Abdeckung, Union-Logik & Resync-Strategie](../adr/028-src-coverage-union-resync.md)
11
+
12
+ ### interface: ScanOptions
13
+ Rolle: config (Sichtbarkeit: public, Priorität: normal)
14
+ Signatur: `interface ScanOptions {
15
+ workspaceRoot: string;
16
+ includeGlobs?: string[];
17
+ excludeGlobs?: string[];
18
+ }`
19
+ ```ts
20
+ interface ScanOptions {
21
+ workspaceRoot: string;
22
+ includeGlobs?: string[];
23
+ excludeGlobs?: string[];
24
+ }
25
+ ```
26
+
27
+ Eigenschaften:
28
+
29
+ | Name | Typ | Optional |
30
+ |------|-----|----------|
31
+ | `excludeGlobs` | `string[]` | ja |
32
+ | `includeGlobs` | `string[]` | ja |
33
+ | `workspaceRoot` | `string` | nein |
34
+
35
+ ### interface: ScannedFile
36
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
37
+ Signatur: `interface ScannedFile {
38
+ absolutePath: string;
39
+ repositoryRelativePath: string;
40
+ language: string | null;
41
+ }`
42
+ ```ts
43
+ interface ScannedFile {
44
+ absolutePath: string;
45
+ repositoryRelativePath: string;
46
+ language: string | null;
47
+ }
48
+ ```
49
+
50
+ Eigenschaften:
51
+
52
+ | Name | Typ | Optional |
53
+ |------|-----|----------|
54
+ | `absolutePath` | `string` | nein |
55
+ | `language` | `string | null` | nein |
56
+ | `repositoryRelativePath` | `string` | nein |
57
+
58
+ ### function: scanWorkspace
59
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
60
+ Signatur: `scanWorkspace(options: ScanOptions, includeBackups: boolean = …): ScannedFile[]`
61
+ ```ts
62
+ scanWorkspace(options: ScanOptions, includeBackups: boolean = …): ScannedFile[]
63
+ ```
64
+
65
+ Parameter:
66
+
67
+ | Name | Typ | Optional | Default |
68
+ |------|-----|----------|---------|
69
+ | `includeBackups` | `boolean` | nein | ja |
70
+ | `options` | `ScanOptions` | nein | nein |
71
+
72
+ Rückgabewert: `ScannedFile[]`
73
+
74
+ ### variable: BACKUP_DIR_NAMES
75
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
76
+ Signatur: `BACKUP_DIR_NAMES: Set<string>`
77
+ ```ts
78
+ BACKUP_DIR_NAMES: Set<string>
79
+ ```
80
+
81
+ ### variable: BACKUP_FILE_SUFFIXES
82
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
83
+ Signatur: `BACKUP_FILE_SUFFIXES: string[]`
84
+ ```ts
85
+ BACKUP_FILE_SUFFIXES: string[]
86
+ ```
87
+
88
+ ### variable: DEFAULT_EXCLUDES
89
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
90
+ Signatur: `DEFAULT_EXCLUDES: Set<string>`
91
+ ```ts
92
+ DEFAULT_EXCLUDES: Set<string>
93
+ ```
94
+
95
+ <!-- change: symbol-added name="EXCLUDE_FILE_PATTERNS" kind="variable" -->
96
+ ### variable: EXCLUDE_FILE_PATTERNS
97
+ Rolle: other (Sichtbarkeit: public, Priorität: normal)
98
+ Signatur: `EXCLUDE_FILE_PATTERNS: RegExp[]`
99
+ ```ts
100
+ EXCLUDE_FILE_PATTERNS: RegExp[]
101
+ ```