@yalehwang/archguard 0.1.4 → 0.1.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 (83) hide show
  1. package/dist/cli/commands/analyze.js +1 -0
  2. package/dist/cli/commands/analyze.js.map +1 -1
  3. package/dist/cli/config-loader.d.ts +83 -623
  4. package/dist/cli/config-loader.d.ts.map +1 -1
  5. package/dist/cli/config-loader.js +1 -1
  6. package/dist/cli/config-loader.js.map +1 -1
  7. package/dist/cli/processors/diagram-processor.d.ts +2 -1
  8. package/dist/cli/processors/diagram-processor.d.ts.map +1 -1
  9. package/dist/cli/processors/diagram-processor.js +29 -24
  10. package/dist/cli/processors/diagram-processor.js.map +1 -1
  11. package/dist/cli/utils/cpp-project-structure-detector.d.ts.map +1 -1
  12. package/dist/cli/utils/cpp-project-structure-detector.js +30 -8
  13. package/dist/cli/utils/cpp-project-structure-detector.js.map +1 -1
  14. package/dist/cli/utils/diagram-index-generator.d.ts +4 -0
  15. package/dist/cli/utils/diagram-index-generator.d.ts.map +1 -1
  16. package/dist/cli/utils/diagram-index-generator.js +56 -0
  17. package/dist/cli/utils/diagram-index-generator.js.map +1 -1
  18. package/dist/cli/utils/file-discovery-service.js +1 -1
  19. package/dist/cli/utils/file-discovery-service.js.map +1 -1
  20. package/dist/cli/utils/project-structure-detector.js.map +1 -1
  21. package/dist/core/plugin-registry.js.map +1 -1
  22. package/dist/mermaid/cpp-package-flowchart-generator.js +3 -3
  23. package/dist/mermaid/cpp-package-flowchart-generator.js.map +1 -1
  24. package/dist/mermaid/diagram-generator.js.map +1 -1
  25. package/dist/mermaid/generator.d.ts.map +1 -1
  26. package/dist/mermaid/generator.js +6 -2
  27. package/dist/mermaid/generator.js.map +1 -1
  28. package/dist/mermaid/render-worker.js.map +1 -1
  29. package/dist/mermaid/ts-module-graph-renderer.d.ts.map +1 -1
  30. package/dist/mermaid/ts-module-graph-renderer.js +3 -4
  31. package/dist/mermaid/ts-module-graph-renderer.js.map +1 -1
  32. package/dist/parser/archjson-aggregator.d.ts.map +1 -1
  33. package/dist/parser/archjson-aggregator.js.map +1 -1
  34. package/dist/parser/class-extractor.d.ts.map +1 -1
  35. package/dist/parser/class-extractor.js.map +1 -1
  36. package/dist/parser/enum-extractor.d.ts.map +1 -1
  37. package/dist/parser/enum-extractor.js.map +1 -1
  38. package/dist/parser/interface-extractor.d.ts.map +1 -1
  39. package/dist/parser/interface-extractor.js.map +1 -1
  40. package/dist/parser/metrics-calculator.d.ts +3 -1
  41. package/dist/parser/metrics-calculator.d.ts.map +1 -1
  42. package/dist/parser/metrics-calculator.js +123 -16
  43. package/dist/parser/metrics-calculator.js.map +1 -1
  44. package/dist/parser/relation-extractor.d.ts.map +1 -1
  45. package/dist/parser/relation-extractor.js.map +1 -1
  46. package/dist/plugins/cpp/archjson-mapper.d.ts.map +1 -1
  47. package/dist/plugins/cpp/archjson-mapper.js +6 -6
  48. package/dist/plugins/cpp/archjson-mapper.js.map +1 -1
  49. package/dist/plugins/cpp/builders/class-builder.d.ts.map +1 -1
  50. package/dist/plugins/cpp/builders/class-builder.js +1 -1
  51. package/dist/plugins/cpp/builders/class-builder.js.map +1 -1
  52. package/dist/plugins/cpp/builders/header-merger.d.ts.map +1 -1
  53. package/dist/plugins/cpp/builders/header-merger.js +2 -2
  54. package/dist/plugins/cpp/builders/header-merger.js.map +1 -1
  55. package/dist/plugins/cpp/cpp-type-extractor.d.ts.map +1 -1
  56. package/dist/plugins/cpp/cpp-type-extractor.js +119 -35
  57. package/dist/plugins/cpp/cpp-type-extractor.js.map +1 -1
  58. package/dist/plugins/cpp/tree-sitter-bridge.d.ts.map +1 -1
  59. package/dist/plugins/cpp/tree-sitter-bridge.js.map +1 -1
  60. package/dist/plugins/golang/archjson-mapper.d.ts.map +1 -1
  61. package/dist/plugins/golang/archjson-mapper.js.map +1 -1
  62. package/dist/plugins/golang/atlas/behavior-analyzer.d.ts.map +1 -1
  63. package/dist/plugins/golang/atlas/behavior-analyzer.js.map +1 -1
  64. package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts.map +1 -1
  65. package/dist/plugins/golang/atlas/builders/flow-graph-builder.js +66 -29
  66. package/dist/plugins/golang/atlas/builders/flow-graph-builder.js.map +1 -1
  67. package/dist/plugins/golang/atlas/framework-detector.d.ts.map +1 -1
  68. package/dist/plugins/golang/atlas/framework-detector.js +2 -2
  69. package/dist/plugins/golang/atlas/framework-detector.js.map +1 -1
  70. package/dist/plugins/golang/atlas/go-mod-resolver.d.ts.map +1 -1
  71. package/dist/plugins/golang/atlas/go-mod-resolver.js.map +1 -1
  72. package/dist/plugins/golang/atlas/index.js +2 -2
  73. package/dist/plugins/golang/atlas/index.js.map +1 -1
  74. package/dist/plugins/golang/atlas/renderers/atlas-renderer.d.ts.map +1 -1
  75. package/dist/plugins/golang/atlas/renderers/atlas-renderer.js.map +1 -1
  76. package/dist/plugins/golang/atlas/renderers/mermaid-templates.d.ts.map +1 -1
  77. package/dist/plugins/golang/atlas/renderers/mermaid-templates.js +7 -3
  78. package/dist/plugins/golang/atlas/renderers/mermaid-templates.js.map +1 -1
  79. package/dist/plugins/java/dependency-extractor.d.ts.map +1 -1
  80. package/dist/plugins/java/dependency-extractor.js.map +1 -1
  81. package/dist/types/index.d.ts +18 -0
  82. package/dist/types/index.d.ts.map +1 -1
  83. package/package.json +24 -19
@@ -2,44 +2,33 @@ import { z } from 'zod';
2
2
  export type { ArchGuardConfig } from '../types/config.js';
3
3
  declare const configSchema: z.ZodObject<{
4
4
  outputDir: z.ZodDefault<z.ZodString>;
5
- format: z.ZodDefault<z.ZodEnum<["mermaid", "json"]>>;
5
+ format: z.ZodDefault<z.ZodEnum<{
6
+ mermaid: "mermaid";
7
+ json: "json";
8
+ }>>;
6
9
  mermaid: z.ZodDefault<z.ZodObject<{
7
- renderer: z.ZodDefault<z.ZodEnum<["isomorphic", "cli"]>>;
8
- theme: z.ZodDefault<z.ZodEnum<["default", "forest", "dark", "neutral"]>>;
10
+ renderer: z.ZodDefault<z.ZodEnum<{
11
+ isomorphic: "isomorphic";
12
+ cli: "cli";
13
+ }>>;
14
+ theme: z.ZodDefault<z.ZodEnum<{
15
+ default: "default";
16
+ forest: "forest";
17
+ dark: "dark";
18
+ neutral: "neutral";
19
+ }>>;
9
20
  transparentBackground: z.ZodDefault<z.ZodBoolean>;
10
- }, "strip", z.ZodTypeAny, {
11
- renderer?: "isomorphic" | "cli";
12
- theme?: "default" | "forest" | "dark" | "neutral";
13
- transparentBackground?: boolean;
14
- }, {
15
- renderer?: "isomorphic" | "cli";
16
- theme?: "default" | "forest" | "dark" | "neutral";
17
- transparentBackground?: boolean;
18
- }>>;
19
- exclude: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
21
+ }, z.core.$strip>>;
22
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
20
23
  cli: z.ZodDefault<z.ZodObject<{
21
24
  command: z.ZodDefault<z.ZodString>;
22
- args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
25
+ args: z.ZodDefault<z.ZodArray<z.ZodString>>;
23
26
  timeout: z.ZodDefault<z.ZodNumber>;
24
- }, "strip", z.ZodTypeAny, {
25
- timeout?: number;
26
- command?: string;
27
- args?: string[];
28
- }, {
29
- timeout?: number;
30
- command?: string;
31
- args?: string[];
32
- }>>;
27
+ }, z.core.$strip>>;
33
28
  cache: z.ZodDefault<z.ZodObject<{
34
29
  enabled: z.ZodDefault<z.ZodBoolean>;
35
30
  ttl: z.ZodDefault<z.ZodNumber>;
36
- }, "strip", z.ZodTypeAny, {
37
- enabled?: boolean;
38
- ttl?: number;
39
- }, {
40
- enabled?: boolean;
41
- ttl?: number;
42
- }>>;
31
+ }, z.core.$strip>>;
43
32
  concurrency: z.ZodDefault<z.ZodNumber>;
44
33
  verbose: z.ZodDefault<z.ZodBoolean>;
45
34
  metadata: z.ZodOptional<z.ZodObject<{
@@ -48,162 +37,65 @@ declare const configSchema: z.ZodObject<{
48
37
  system: z.ZodOptional<z.ZodString>;
49
38
  author: z.ZodOptional<z.ZodString>;
50
39
  projectUrl: z.ZodOptional<z.ZodString>;
51
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
- }, "strip", z.ZodTypeAny, {
53
- title?: string;
54
- description?: string;
55
- system?: string;
56
- author?: string;
57
- projectUrl?: string;
58
- keywords?: string[];
59
- }, {
60
- title?: string;
61
- description?: string;
62
- system?: string;
63
- author?: string;
64
- projectUrl?: string;
65
- keywords?: string[];
66
- }>>;
40
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
41
+ }, z.core.$strip>>;
67
42
  diagrams: z.ZodDefault<z.ZodArray<z.ZodObject<{
68
43
  name: z.ZodString;
69
- sources: z.ZodArray<z.ZodString, "many">;
70
- level: z.ZodEnum<["package", "class", "method"]>;
44
+ sources: z.ZodArray<z.ZodString>;
45
+ level: z.ZodEnum<{
46
+ package: "package";
47
+ class: "class";
48
+ method: "method";
49
+ }>;
71
50
  description: z.ZodOptional<z.ZodString>;
72
- format: z.ZodOptional<z.ZodEnum<["mermaid", "json"]>>;
73
- exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
+ format: z.ZodOptional<z.ZodEnum<{
52
+ mermaid: "mermaid";
53
+ json: "json";
54
+ }>>;
55
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
56
  metadata: z.ZodOptional<z.ZodObject<{
75
57
  title: z.ZodOptional<z.ZodString>;
76
58
  subtitle: z.ZodOptional<z.ZodString>;
77
59
  purpose: z.ZodOptional<z.ZodString>;
78
- primaryActors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
60
+ primaryActors: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
61
  input: z.ZodOptional<z.ZodObject<{
80
62
  type: z.ZodString;
81
63
  description: z.ZodOptional<z.ZodString>;
82
64
  example: z.ZodOptional<z.ZodString>;
83
- }, "strip", z.ZodTypeAny, {
84
- type?: string;
85
- description?: string;
86
- example?: string;
87
- }, {
88
- type?: string;
89
- description?: string;
90
- example?: string;
91
- }>>;
65
+ }, z.core.$strip>>;
92
66
  output: z.ZodOptional<z.ZodObject<{
93
67
  description: z.ZodString;
94
- formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
68
+ formats: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
69
  example: z.ZodOptional<z.ZodString>;
96
- }, "strip", z.ZodTypeAny, {
97
- description?: string;
98
- example?: string;
99
- formats?: string[];
100
- }, {
101
- description?: string;
102
- example?: string;
103
- formats?: string[];
104
- }>>;
105
- }, "strip", z.ZodTypeAny, {
106
- title?: string;
107
- subtitle?: string;
108
- purpose?: string;
109
- input?: {
110
- type?: string;
111
- description?: string;
112
- example?: string;
113
- };
114
- output?: {
115
- description?: string;
116
- example?: string;
117
- formats?: string[];
118
- };
119
- primaryActors?: string[];
120
- }, {
121
- title?: string;
122
- subtitle?: string;
123
- purpose?: string;
124
- input?: {
125
- type?: string;
126
- description?: string;
127
- example?: string;
128
- };
129
- output?: {
130
- description?: string;
131
- example?: string;
132
- formats?: string[];
133
- };
134
- primaryActors?: string[];
135
- }>>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>>;
136
72
  design: z.ZodOptional<z.ZodObject<{
137
- architectureStyle: z.ZodOptional<z.ZodEnum<["layered", "event-driven", "microkernel", "serverless"]>>;
73
+ architectureStyle: z.ZodOptional<z.ZodEnum<{
74
+ layered: "layered";
75
+ "event-driven": "event-driven";
76
+ microkernel: "microkernel";
77
+ serverless: "serverless";
78
+ }>>;
138
79
  patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
80
  name: z.ZodString;
140
- category: z.ZodEnum<["creational", "structural", "behavioral", "concurrency"]>;
141
- participants: z.ZodArray<z.ZodString, "many">;
81
+ category: z.ZodEnum<{
82
+ creational: "creational";
83
+ structural: "structural";
84
+ behavioral: "behavioral";
85
+ concurrency: "concurrency";
86
+ }>;
87
+ participants: z.ZodArray<z.ZodString>;
142
88
  description: z.ZodString;
143
89
  codeExample: z.ZodOptional<z.ZodString>;
144
- }, "strip", z.ZodTypeAny, {
145
- description?: string;
146
- name?: string;
147
- category?: "creational" | "structural" | "behavioral" | "concurrency";
148
- participants?: string[];
149
- codeExample?: string;
150
- }, {
151
- description?: string;
152
- name?: string;
153
- category?: "creational" | "structural" | "behavioral" | "concurrency";
154
- participants?: string[];
155
- codeExample?: string;
156
- }>, "many">>;
157
- principles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
+ }, z.core.$strip>>>;
91
+ principles: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
92
  decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
93
  topic: z.ZodString;
160
94
  decision: z.ZodString;
161
95
  rationale: z.ZodString;
162
- alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
163
- }, "strip", z.ZodTypeAny, {
164
- topic?: string;
165
- decision?: string;
166
- rationale?: string;
167
- alternatives?: string[];
168
- }, {
169
- topic?: string;
170
- decision?: string;
171
- rationale?: string;
172
- alternatives?: string[];
173
- }>, "many">>;
174
- }, "strip", z.ZodTypeAny, {
175
- patterns?: {
176
- description?: string;
177
- name?: string;
178
- category?: "creational" | "structural" | "behavioral" | "concurrency";
179
- participants?: string[];
180
- codeExample?: string;
181
- }[];
182
- principles?: string[];
183
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
184
- decisions?: {
185
- topic?: string;
186
- decision?: string;
187
- rationale?: string;
188
- alternatives?: string[];
189
- }[];
190
- }, {
191
- patterns?: {
192
- description?: string;
193
- name?: string;
194
- category?: "creational" | "structural" | "behavioral" | "concurrency";
195
- participants?: string[];
196
- codeExample?: string;
197
- }[];
198
- principles?: string[];
199
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
200
- decisions?: {
201
- topic?: string;
202
- decision?: string;
203
- rationale?: string;
204
- alternatives?: string[];
205
- }[];
206
- }>>;
96
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString>>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>;
207
99
  process: z.ZodOptional<z.ZodObject<{
208
100
  stages: z.ZodOptional<z.ZodNumber>;
209
101
  stageList: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -211,479 +103,47 @@ declare const configSchema: z.ZodObject<{
211
103
  name: z.ZodString;
212
104
  description: z.ZodString;
213
105
  namespace: z.ZodOptional<z.ZodString>;
214
- patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
- }, "strip", z.ZodTypeAny, {
216
- patterns?: string[];
217
- description?: string;
218
- name?: string;
219
- order?: number;
220
- namespace?: string;
221
- }, {
222
- patterns?: string[];
223
- description?: string;
224
- name?: string;
225
- order?: number;
226
- namespace?: string;
227
- }>, "many">>;
106
+ patterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ }, z.core.$strip>>>;
228
108
  dataFlow: z.ZodOptional<z.ZodString>;
229
- keyDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
230
- }, "strip", z.ZodTypeAny, {
231
- stages?: number;
232
- stageList?: {
233
- patterns?: string[];
234
- description?: string;
235
- name?: string;
236
- order?: number;
237
- namespace?: string;
238
- }[];
239
- dataFlow?: string;
240
- keyDependencies?: string[];
241
- }, {
242
- stages?: number;
243
- stageList?: {
244
- patterns?: string[];
245
- description?: string;
246
- name?: string;
247
- order?: number;
248
- namespace?: string;
249
- }[];
250
- dataFlow?: string;
251
- keyDependencies?: string[];
252
- }>>;
109
+ keyDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ }, z.core.$strip>>;
253
111
  annotations: z.ZodOptional<z.ZodObject<{
254
112
  enableComments: z.ZodOptional<z.ZodBoolean>;
255
113
  highlightPatterns: z.ZodOptional<z.ZodBoolean>;
256
114
  showExternalDeps: z.ZodOptional<z.ZodBoolean>;
257
115
  includeUsageExample: z.ZodOptional<z.ZodBoolean>;
258
116
  enableVisibleTitle: z.ZodOptional<z.ZodBoolean>;
259
- visibleTitleSections: z.ZodOptional<z.ZodArray<z.ZodEnum<["title", "subtitle", "purpose", "input", "output", "patterns", "principles", "process"]>, "many">>;
260
- titlePosition: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
261
- }, "strip", z.ZodTypeAny, {
262
- enableComments?: boolean;
263
- highlightPatterns?: boolean;
264
- showExternalDeps?: boolean;
265
- includeUsageExample?: boolean;
266
- enableVisibleTitle?: boolean;
267
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
268
- titlePosition?: "top" | "bottom";
269
- }, {
270
- enableComments?: boolean;
271
- highlightPatterns?: boolean;
272
- showExternalDeps?: boolean;
273
- includeUsageExample?: boolean;
274
- enableVisibleTitle?: boolean;
275
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
276
- titlePosition?: "top" | "bottom";
277
- }>>;
117
+ visibleTitleSections: z.ZodOptional<z.ZodArray<z.ZodEnum<{
118
+ title: "title";
119
+ subtitle: "subtitle";
120
+ purpose: "purpose";
121
+ input: "input";
122
+ output: "output";
123
+ patterns: "patterns";
124
+ principles: "principles";
125
+ process: "process";
126
+ }>>>;
127
+ titlePosition: z.ZodOptional<z.ZodEnum<{
128
+ top: "top";
129
+ bottom: "bottom";
130
+ }>>;
131
+ }, z.core.$strip>>;
278
132
  classes: z.ZodOptional<z.ZodObject<{
279
- highlightClasses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
133
+ highlightClasses: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
134
  annotateClasses: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
135
  className: z.ZodString;
282
136
  note: z.ZodOptional<z.ZodString>;
283
- stereotypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
137
+ stereotypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
284
138
  responsibility: z.ZodOptional<z.ZodString>;
285
- }, "strip", z.ZodTypeAny, {
286
- className?: string;
287
- note?: string;
288
- stereotypes?: string[];
289
- responsibility?: string;
290
- }, {
291
- className?: string;
292
- note?: string;
293
- stereotypes?: string[];
294
- responsibility?: string;
295
- }>, "many">>;
139
+ }, z.core.$strip>>>;
296
140
  visibility: z.ZodOptional<z.ZodObject<{
297
- show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
- hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
- }, "strip", z.ZodTypeAny, {
300
- show?: string[];
301
- hide?: string[];
302
- }, {
303
- show?: string[];
304
- hide?: string[];
305
- }>>;
306
- }, "strip", z.ZodTypeAny, {
307
- highlightClasses?: string[];
308
- annotateClasses?: {
309
- className?: string;
310
- note?: string;
311
- stereotypes?: string[];
312
- responsibility?: string;
313
- }[];
314
- visibility?: {
315
- show?: string[];
316
- hide?: string[];
317
- };
318
- }, {
319
- highlightClasses?: string[];
320
- annotateClasses?: {
321
- className?: string;
322
- note?: string;
323
- stereotypes?: string[];
324
- responsibility?: string;
325
- }[];
326
- visibility?: {
327
- show?: string[];
328
- hide?: string[];
329
- };
330
- }>>;
331
- }, "strip", z.ZodTypeAny, {
332
- process?: {
333
- stages?: number;
334
- stageList?: {
335
- patterns?: string[];
336
- description?: string;
337
- name?: string;
338
- order?: number;
339
- namespace?: string;
340
- }[];
341
- dataFlow?: string;
342
- keyDependencies?: string[];
343
- };
344
- description?: string;
345
- name?: string;
346
- format?: "mermaid" | "json";
347
- exclude?: string[];
348
- metadata?: {
349
- title?: string;
350
- subtitle?: string;
351
- purpose?: string;
352
- input?: {
353
- type?: string;
354
- description?: string;
355
- example?: string;
356
- };
357
- output?: {
358
- description?: string;
359
- example?: string;
360
- formats?: string[];
361
- };
362
- primaryActors?: string[];
363
- };
364
- sources?: string[];
365
- level?: "package" | "class" | "method";
366
- design?: {
367
- patterns?: {
368
- description?: string;
369
- name?: string;
370
- category?: "creational" | "structural" | "behavioral" | "concurrency";
371
- participants?: string[];
372
- codeExample?: string;
373
- }[];
374
- principles?: string[];
375
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
376
- decisions?: {
377
- topic?: string;
378
- decision?: string;
379
- rationale?: string;
380
- alternatives?: string[];
381
- }[];
382
- };
383
- annotations?: {
384
- enableComments?: boolean;
385
- highlightPatterns?: boolean;
386
- showExternalDeps?: boolean;
387
- includeUsageExample?: boolean;
388
- enableVisibleTitle?: boolean;
389
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
390
- titlePosition?: "top" | "bottom";
391
- };
392
- classes?: {
393
- highlightClasses?: string[];
394
- annotateClasses?: {
395
- className?: string;
396
- note?: string;
397
- stereotypes?: string[];
398
- responsibility?: string;
399
- }[];
400
- visibility?: {
401
- show?: string[];
402
- hide?: string[];
403
- };
404
- };
405
- }, {
406
- process?: {
407
- stages?: number;
408
- stageList?: {
409
- patterns?: string[];
410
- description?: string;
411
- name?: string;
412
- order?: number;
413
- namespace?: string;
414
- }[];
415
- dataFlow?: string;
416
- keyDependencies?: string[];
417
- };
418
- description?: string;
419
- name?: string;
420
- format?: "mermaid" | "json";
421
- exclude?: string[];
422
- metadata?: {
423
- title?: string;
424
- subtitle?: string;
425
- purpose?: string;
426
- input?: {
427
- type?: string;
428
- description?: string;
429
- example?: string;
430
- };
431
- output?: {
432
- description?: string;
433
- example?: string;
434
- formats?: string[];
435
- };
436
- primaryActors?: string[];
437
- };
438
- sources?: string[];
439
- level?: "package" | "class" | "method";
440
- design?: {
441
- patterns?: {
442
- description?: string;
443
- name?: string;
444
- category?: "creational" | "structural" | "behavioral" | "concurrency";
445
- participants?: string[];
446
- codeExample?: string;
447
- }[];
448
- principles?: string[];
449
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
450
- decisions?: {
451
- topic?: string;
452
- decision?: string;
453
- rationale?: string;
454
- alternatives?: string[];
455
- }[];
456
- };
457
- annotations?: {
458
- enableComments?: boolean;
459
- highlightPatterns?: boolean;
460
- showExternalDeps?: boolean;
461
- includeUsageExample?: boolean;
462
- enableVisibleTitle?: boolean;
463
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
464
- titlePosition?: "top" | "bottom";
465
- };
466
- classes?: {
467
- highlightClasses?: string[];
468
- annotateClasses?: {
469
- className?: string;
470
- note?: string;
471
- stereotypes?: string[];
472
- responsibility?: string;
473
- }[];
474
- visibility?: {
475
- show?: string[];
476
- hide?: string[];
477
- };
478
- };
479
- }>, "many">>;
480
- }, "strip", z.ZodTypeAny, {
481
- cli?: {
482
- timeout?: number;
483
- command?: string;
484
- args?: string[];
485
- };
486
- mermaid?: {
487
- renderer?: "isomorphic" | "cli";
488
- theme?: "default" | "forest" | "dark" | "neutral";
489
- transparentBackground?: boolean;
490
- };
491
- concurrency?: number;
492
- cache?: {
493
- enabled?: boolean;
494
- ttl?: number;
495
- };
496
- outputDir?: string;
497
- format?: "mermaid" | "json";
498
- exclude?: string[];
499
- verbose?: boolean;
500
- metadata?: {
501
- title?: string;
502
- description?: string;
503
- system?: string;
504
- author?: string;
505
- projectUrl?: string;
506
- keywords?: string[];
507
- };
508
- diagrams?: {
509
- process?: {
510
- stages?: number;
511
- stageList?: {
512
- patterns?: string[];
513
- description?: string;
514
- name?: string;
515
- order?: number;
516
- namespace?: string;
517
- }[];
518
- dataFlow?: string;
519
- keyDependencies?: string[];
520
- };
521
- description?: string;
522
- name?: string;
523
- format?: "mermaid" | "json";
524
- exclude?: string[];
525
- metadata?: {
526
- title?: string;
527
- subtitle?: string;
528
- purpose?: string;
529
- input?: {
530
- type?: string;
531
- description?: string;
532
- example?: string;
533
- };
534
- output?: {
535
- description?: string;
536
- example?: string;
537
- formats?: string[];
538
- };
539
- primaryActors?: string[];
540
- };
541
- sources?: string[];
542
- level?: "package" | "class" | "method";
543
- design?: {
544
- patterns?: {
545
- description?: string;
546
- name?: string;
547
- category?: "creational" | "structural" | "behavioral" | "concurrency";
548
- participants?: string[];
549
- codeExample?: string;
550
- }[];
551
- principles?: string[];
552
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
553
- decisions?: {
554
- topic?: string;
555
- decision?: string;
556
- rationale?: string;
557
- alternatives?: string[];
558
- }[];
559
- };
560
- annotations?: {
561
- enableComments?: boolean;
562
- highlightPatterns?: boolean;
563
- showExternalDeps?: boolean;
564
- includeUsageExample?: boolean;
565
- enableVisibleTitle?: boolean;
566
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
567
- titlePosition?: "top" | "bottom";
568
- };
569
- classes?: {
570
- highlightClasses?: string[];
571
- annotateClasses?: {
572
- className?: string;
573
- note?: string;
574
- stereotypes?: string[];
575
- responsibility?: string;
576
- }[];
577
- visibility?: {
578
- show?: string[];
579
- hide?: string[];
580
- };
581
- };
582
- }[];
583
- }, {
584
- cli?: {
585
- timeout?: number;
586
- command?: string;
587
- args?: string[];
588
- };
589
- mermaid?: {
590
- renderer?: "isomorphic" | "cli";
591
- theme?: "default" | "forest" | "dark" | "neutral";
592
- transparentBackground?: boolean;
593
- };
594
- concurrency?: number;
595
- cache?: {
596
- enabled?: boolean;
597
- ttl?: number;
598
- };
599
- outputDir?: string;
600
- format?: "mermaid" | "json";
601
- exclude?: string[];
602
- verbose?: boolean;
603
- metadata?: {
604
- title?: string;
605
- description?: string;
606
- system?: string;
607
- author?: string;
608
- projectUrl?: string;
609
- keywords?: string[];
610
- };
611
- diagrams?: {
612
- process?: {
613
- stages?: number;
614
- stageList?: {
615
- patterns?: string[];
616
- description?: string;
617
- name?: string;
618
- order?: number;
619
- namespace?: string;
620
- }[];
621
- dataFlow?: string;
622
- keyDependencies?: string[];
623
- };
624
- description?: string;
625
- name?: string;
626
- format?: "mermaid" | "json";
627
- exclude?: string[];
628
- metadata?: {
629
- title?: string;
630
- subtitle?: string;
631
- purpose?: string;
632
- input?: {
633
- type?: string;
634
- description?: string;
635
- example?: string;
636
- };
637
- output?: {
638
- description?: string;
639
- example?: string;
640
- formats?: string[];
641
- };
642
- primaryActors?: string[];
643
- };
644
- sources?: string[];
645
- level?: "package" | "class" | "method";
646
- design?: {
647
- patterns?: {
648
- description?: string;
649
- name?: string;
650
- category?: "creational" | "structural" | "behavioral" | "concurrency";
651
- participants?: string[];
652
- codeExample?: string;
653
- }[];
654
- principles?: string[];
655
- architectureStyle?: "layered" | "event-driven" | "microkernel" | "serverless";
656
- decisions?: {
657
- topic?: string;
658
- decision?: string;
659
- rationale?: string;
660
- alternatives?: string[];
661
- }[];
662
- };
663
- annotations?: {
664
- enableComments?: boolean;
665
- highlightPatterns?: boolean;
666
- showExternalDeps?: boolean;
667
- includeUsageExample?: boolean;
668
- enableVisibleTitle?: boolean;
669
- visibleTitleSections?: ("title" | "subtitle" | "purpose" | "input" | "output" | "patterns" | "principles" | "process")[];
670
- titlePosition?: "top" | "bottom";
671
- };
672
- classes?: {
673
- highlightClasses?: string[];
674
- annotateClasses?: {
675
- className?: string;
676
- note?: string;
677
- stereotypes?: string[];
678
- responsibility?: string;
679
- }[];
680
- visibility?: {
681
- show?: string[];
682
- hide?: string[];
683
- };
684
- };
685
- }[];
686
- }>;
141
+ show: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ hide: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>>>;
146
+ }, z.core.$strip>;
687
147
  export type Config = z.infer<typeof configSchema>;
688
148
  export declare class ConfigLoader {
689
149
  private configDir;