@aiready/core 0.23.2 → 0.23.3

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 (79) hide show
  1. package/dist/__tests__/parser-factory.test.d.ts +1 -1
  2. package/dist/__tests__/parser-factory.test.js +62 -50
  3. package/dist/__tests__/python-parser.test.d.ts +1 -1
  4. package/dist/__tests__/python-parser.test.js +111 -109
  5. package/dist/__tests__/scoring.test.d.ts +1 -1
  6. package/dist/__tests__/scoring.test.js +193 -176
  7. package/dist/chunk-3YI4IS3D.mjs +191 -173
  8. package/dist/chunk-5HIXDC3X.mjs +273 -251
  9. package/dist/chunk-5V3L53AE.mjs +805 -0
  10. package/dist/chunk-CKVKHN3G.mjs +228 -211
  11. package/dist/chunk-COHIBX3Q.mjs +213 -195
  12. package/dist/chunk-CWRCDSKZ.mjs +91 -82
  13. package/dist/chunk-D3D3NCRR.mjs +147 -129
  14. package/dist/chunk-HCFYP7UD.mjs +805 -0
  15. package/dist/chunk-HFLFBA6F.mjs +79 -72
  16. package/dist/chunk-HKSARRCD.mjs +66 -58
  17. package/dist/chunk-JJ5JL5FX.mjs +91 -82
  18. package/dist/chunk-KDSTXVLQ.mjs +724 -0
  19. package/dist/chunk-KI7XORTN.mjs +91 -82
  20. package/dist/chunk-LTMHFNFK.mjs +690 -0
  21. package/dist/chunk-LTNXTXRI.mjs +228 -211
  22. package/dist/chunk-M22BXHBR.mjs +805 -0
  23. package/dist/chunk-MH3A3LX6.mjs +200 -182
  24. package/dist/chunk-NGHT7JOG.mjs +697 -0
  25. package/dist/chunk-OQ6IGDXG.mjs +147 -129
  26. package/dist/chunk-QAFB3HXQ.mjs +181 -165
  27. package/dist/chunk-QQBKXHLU.mjs +678 -0
  28. package/dist/chunk-RDHYGES7.mjs +678 -0
  29. package/dist/chunk-SWTDBVYJ.mjs +228 -213
  30. package/dist/chunk-UIWL5JQB.mjs +79 -72
  31. package/dist/chunk-UQGI67WR.mjs +79 -72
  32. package/dist/chunk-UTZOO4XO.mjs +147 -131
  33. package/dist/chunk-X4F46I5L.mjs +213 -195
  34. package/dist/chunk-XKK7YHPX.mjs +204 -186
  35. package/dist/chunk-YCA4FTEK.mjs +190 -172
  36. package/dist/chunk-ZSZRRTJM.mjs +719 -0
  37. package/dist/client-BgmiMoil.d.mts +1344 -0
  38. package/dist/client-BgmiMoil.d.ts +1344 -0
  39. package/dist/client-BxGrPuuN.d.mts +1191 -0
  40. package/dist/client-BxGrPuuN.d.ts +1191 -0
  41. package/dist/client-D-cn9ydj.d.mts +1136 -0
  42. package/dist/client-D-cn9ydj.d.ts +1136 -0
  43. package/dist/client-D9seCH4K.d.mts +1334 -0
  44. package/dist/client-D9seCH4K.d.ts +1334 -0
  45. package/dist/client-DIXIh7rw.d.mts +1193 -0
  46. package/dist/client-DIXIh7rw.d.ts +1193 -0
  47. package/dist/client-DVHXWOHw.d.mts +1245 -0
  48. package/dist/client-DVHXWOHw.d.ts +1245 -0
  49. package/dist/client.d.mts +2 -1098
  50. package/dist/client.d.ts +2 -1098
  51. package/dist/client.js +23 -43
  52. package/dist/client.mjs +3 -25
  53. package/dist/index.d.mts +325 -103
  54. package/dist/index.d.ts +325 -103
  55. package/dist/index.js +307 -324
  56. package/dist/index.mjs +283 -306
  57. package/dist/parsers/parser-factory.d.ts +45 -45
  58. package/dist/parsers/parser-factory.js +86 -84
  59. package/dist/parsers/python-parser.d.ts +33 -28
  60. package/dist/parsers/python-parser.js +224 -222
  61. package/dist/parsers/typescript-parser.d.ts +15 -10
  62. package/dist/parsers/typescript-parser.js +223 -197
  63. package/dist/scoring.d.ts +59 -49
  64. package/dist/scoring.js +129 -127
  65. package/dist/types/language.d.ts +104 -93
  66. package/dist/types/language.js +23 -23
  67. package/dist/types.d.ts +105 -87
  68. package/dist/types.js +1 -1
  69. package/dist/utils/ast-parser.d.ts +42 -33
  70. package/dist/utils/ast-parser.js +159 -162
  71. package/dist/utils/cli-helpers.d.ts +27 -10
  72. package/dist/utils/cli-helpers.js +45 -43
  73. package/dist/utils/config.d.ts +8 -3
  74. package/dist/utils/config.js +67 -69
  75. package/dist/utils/file-scanner.d.ts +1 -1
  76. package/dist/utils/file-scanner.js +80 -76
  77. package/dist/utils/metrics.d.ts +1 -1
  78. package/dist/utils/metrics.js +2 -2
  79. package/package.json +1 -1
@@ -0,0 +1,1136 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Severity levels for all AIReady issues.
5
+ */
6
+ declare enum Severity {
7
+ Critical = "critical",
8
+ Major = "major",
9
+ Minor = "minor",
10
+ Info = "info"
11
+ }
12
+ /** Zod schema for Severity enum */
13
+ declare const SeveritySchema: z.ZodEnum<typeof Severity>;
14
+ /**
15
+ * Canonical Tool Names (IDs)
16
+ * Used everywhere as the single source of truth for tool identification.
17
+ */
18
+ declare enum ToolName {
19
+ PatternDetect = "pattern-detect",
20
+ ContextAnalyzer = "context-analyzer",
21
+ NamingConsistency = "naming-consistency",
22
+ AiSignalClarity = "ai-signal-clarity",
23
+ AgentGrounding = "agent-grounding",
24
+ TestabilityIndex = "testability-index",
25
+ DocDrift = "doc-drift",
26
+ DependencyHealth = "dependency-health",
27
+ ChangeAmplification = "change-amplification",
28
+ CognitiveLoad = "cognitive-load",
29
+ PatternEntropy = "pattern-entropy",
30
+ ConceptCohesion = "concept-cohesion",
31
+ SemanticDistance = "semantic-distance"
32
+ }
33
+ /** Zod schema for ToolName enum */
34
+ declare const ToolNameSchema: z.ZodEnum<typeof ToolName>;
35
+ /**
36
+ * Friendly labels for UI display
37
+ */
38
+ declare const FRIENDLY_TOOL_NAMES: Record<ToolName, string>;
39
+ /**
40
+ * Standardized issue types across all AIReady tools.
41
+ */
42
+ declare enum IssueType {
43
+ DuplicatePattern = "duplicate-pattern",
44
+ PatternInconsistency = "pattern-inconsistency",
45
+ ContextFragmentation = "context-fragmentation",
46
+ DependencyHealth = "dependency-health",
47
+ CircularDependency = "circular-dependency",
48
+ DocDrift = "doc-drift",
49
+ NamingInconsistency = "naming-inconsistency",
50
+ NamingQuality = "naming-quality",
51
+ ArchitectureInconsistency = "architecture-inconsistency",
52
+ DeadCode = "dead-code",
53
+ MissingTypes = "missing-types",
54
+ MagicLiteral = "magic-literal",
55
+ BooleanTrap = "boolean-trap",
56
+ AiSignalClarity = "ai-signal-clarity",
57
+ LowTestability = "low-testability",
58
+ AgentNavigationFailure = "agent-navigation-failure",
59
+ AmbiguousApi = "ambiguous-api",
60
+ ChangeAmplification = "change-amplification"
61
+ }
62
+ /** Zod schema for IssueType enum */
63
+ declare const IssueTypeSchema: z.ZodEnum<typeof IssueType>;
64
+ /**
65
+ * Analysis processing status.
66
+ */
67
+ declare enum AnalysisStatus {
68
+ Processing = "processing",
69
+ Completed = "completed",
70
+ Failed = "failed"
71
+ }
72
+ /** Zod schema for AnalysisStatus enum */
73
+ declare const AnalysisStatusSchema: z.ZodEnum<typeof AnalysisStatus>;
74
+ /**
75
+ * AI Model Context Tiers.
76
+ */
77
+ declare enum ModelTier {
78
+ Compact = "compact",
79
+ Standard = "standard",
80
+ Extended = "extended",
81
+ Frontier = "frontier"
82
+ }
83
+ /** Zod schema for ModelTier enum */
84
+ declare const ModelTierSchema: z.ZodEnum<typeof ModelTier>;
85
+ /**
86
+ * Source code location schema.
87
+ */
88
+ /** Zod schema for Location object */
89
+ declare const LocationSchema: z.ZodObject<{
90
+ file: z.ZodString;
91
+ line: z.ZodNumber;
92
+ column: z.ZodOptional<z.ZodNumber>;
93
+ endLine: z.ZodOptional<z.ZodNumber>;
94
+ endColumn: z.ZodOptional<z.ZodNumber>;
95
+ }, z.core.$strip>;
96
+ type Location = z.infer<typeof LocationSchema>;
97
+ /**
98
+ * Standard Issue schema.
99
+ */
100
+ /** Zod schema for Issue object */
101
+ declare const IssueSchema: z.ZodObject<{
102
+ type: z.ZodEnum<typeof IssueType>;
103
+ severity: z.ZodEnum<typeof Severity>;
104
+ message: z.ZodString;
105
+ location: z.ZodObject<{
106
+ file: z.ZodString;
107
+ line: z.ZodNumber;
108
+ column: z.ZodOptional<z.ZodNumber>;
109
+ endLine: z.ZodOptional<z.ZodNumber>;
110
+ endColumn: z.ZodOptional<z.ZodNumber>;
111
+ }, z.core.$strip>;
112
+ suggestion: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strip>;
114
+ type Issue = z.infer<typeof IssueSchema>;
115
+ /**
116
+ * Standard Metrics schema.
117
+ */
118
+ /** Zod schema for Metrics object */
119
+ declare const MetricsSchema: z.ZodObject<{
120
+ tokenCost: z.ZodOptional<z.ZodNumber>;
121
+ complexityScore: z.ZodOptional<z.ZodNumber>;
122
+ consistencyScore: z.ZodOptional<z.ZodNumber>;
123
+ docFreshnessScore: z.ZodOptional<z.ZodNumber>;
124
+ aiSignalClarityScore: z.ZodOptional<z.ZodNumber>;
125
+ agentGroundingScore: z.ZodOptional<z.ZodNumber>;
126
+ testabilityScore: z.ZodOptional<z.ZodNumber>;
127
+ docDriftScore: z.ZodOptional<z.ZodNumber>;
128
+ dependencyHealthScore: z.ZodOptional<z.ZodNumber>;
129
+ modelContextTier: z.ZodOptional<z.ZodEnum<typeof ModelTier>>;
130
+ estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>;
131
+ estimatedDeveloperHours: z.ZodOptional<z.ZodNumber>;
132
+ comprehensionDifficultyIndex: z.ZodOptional<z.ZodNumber>;
133
+ totalSymbols: z.ZodOptional<z.ZodNumber>;
134
+ totalExports: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>;
136
+ type Metrics = z.infer<typeof MetricsSchema>;
137
+ /**
138
+ * Individual file/module analysis result.
139
+ */
140
+ declare const AnalysisResultSchema: z.ZodObject<{
141
+ fileName: z.ZodString;
142
+ issues: z.ZodArray<z.ZodObject<{
143
+ type: z.ZodEnum<typeof IssueType>;
144
+ severity: z.ZodEnum<typeof Severity>;
145
+ message: z.ZodString;
146
+ location: z.ZodObject<{
147
+ file: z.ZodString;
148
+ line: z.ZodNumber;
149
+ column: z.ZodOptional<z.ZodNumber>;
150
+ endLine: z.ZodOptional<z.ZodNumber>;
151
+ endColumn: z.ZodOptional<z.ZodNumber>;
152
+ }, z.core.$strip>;
153
+ suggestion: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>>;
155
+ metrics: z.ZodObject<{
156
+ tokenCost: z.ZodOptional<z.ZodNumber>;
157
+ complexityScore: z.ZodOptional<z.ZodNumber>;
158
+ consistencyScore: z.ZodOptional<z.ZodNumber>;
159
+ docFreshnessScore: z.ZodOptional<z.ZodNumber>;
160
+ aiSignalClarityScore: z.ZodOptional<z.ZodNumber>;
161
+ agentGroundingScore: z.ZodOptional<z.ZodNumber>;
162
+ testabilityScore: z.ZodOptional<z.ZodNumber>;
163
+ docDriftScore: z.ZodOptional<z.ZodNumber>;
164
+ dependencyHealthScore: z.ZodOptional<z.ZodNumber>;
165
+ modelContextTier: z.ZodOptional<z.ZodEnum<typeof ModelTier>>;
166
+ estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>;
167
+ estimatedDeveloperHours: z.ZodOptional<z.ZodNumber>;
168
+ comprehensionDifficultyIndex: z.ZodOptional<z.ZodNumber>;
169
+ totalSymbols: z.ZodOptional<z.ZodNumber>;
170
+ totalExports: z.ZodOptional<z.ZodNumber>;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
173
+ type AnalysisResult = z.infer<typeof AnalysisResultSchema>;
174
+ /**
175
+ * Standard spoke tool summary schema.
176
+ */
177
+ declare const SpokeSummarySchema: z.ZodObject<{
178
+ totalFiles: z.ZodOptional<z.ZodNumber>;
179
+ totalIssues: z.ZodOptional<z.ZodNumber>;
180
+ criticalIssues: z.ZodOptional<z.ZodNumber>;
181
+ majorIssues: z.ZodOptional<z.ZodNumber>;
182
+ score: z.ZodOptional<z.ZodNumber>;
183
+ }, z.core.$catchall<z.ZodAny>>;
184
+ type SpokeSummary = z.infer<typeof SpokeSummarySchema>;
185
+ /**
186
+ * Standard spoke tool output contract.
187
+ */
188
+ declare const SpokeOutputSchema: z.ZodObject<{
189
+ results: z.ZodArray<z.ZodObject<{
190
+ fileName: z.ZodString;
191
+ issues: z.ZodArray<z.ZodObject<{
192
+ type: z.ZodEnum<typeof IssueType>;
193
+ severity: z.ZodEnum<typeof Severity>;
194
+ message: z.ZodString;
195
+ location: z.ZodObject<{
196
+ file: z.ZodString;
197
+ line: z.ZodNumber;
198
+ column: z.ZodOptional<z.ZodNumber>;
199
+ endLine: z.ZodOptional<z.ZodNumber>;
200
+ endColumn: z.ZodOptional<z.ZodNumber>;
201
+ }, z.core.$strip>;
202
+ suggestion: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strip>>;
204
+ metrics: z.ZodObject<{
205
+ tokenCost: z.ZodOptional<z.ZodNumber>;
206
+ complexityScore: z.ZodOptional<z.ZodNumber>;
207
+ consistencyScore: z.ZodOptional<z.ZodNumber>;
208
+ docFreshnessScore: z.ZodOptional<z.ZodNumber>;
209
+ aiSignalClarityScore: z.ZodOptional<z.ZodNumber>;
210
+ agentGroundingScore: z.ZodOptional<z.ZodNumber>;
211
+ testabilityScore: z.ZodOptional<z.ZodNumber>;
212
+ docDriftScore: z.ZodOptional<z.ZodNumber>;
213
+ dependencyHealthScore: z.ZodOptional<z.ZodNumber>;
214
+ modelContextTier: z.ZodOptional<z.ZodEnum<typeof ModelTier>>;
215
+ estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>;
216
+ estimatedDeveloperHours: z.ZodOptional<z.ZodNumber>;
217
+ comprehensionDifficultyIndex: z.ZodOptional<z.ZodNumber>;
218
+ totalSymbols: z.ZodOptional<z.ZodNumber>;
219
+ totalExports: z.ZodOptional<z.ZodNumber>;
220
+ }, z.core.$strip>;
221
+ }, z.core.$strip>>;
222
+ summary: z.ZodObject<{
223
+ totalFiles: z.ZodOptional<z.ZodNumber>;
224
+ totalIssues: z.ZodOptional<z.ZodNumber>;
225
+ criticalIssues: z.ZodOptional<z.ZodNumber>;
226
+ majorIssues: z.ZodOptional<z.ZodNumber>;
227
+ score: z.ZodOptional<z.ZodNumber>;
228
+ }, z.core.$catchall<z.ZodAny>>;
229
+ metadata: z.ZodOptional<z.ZodObject<{
230
+ toolName: z.ZodString;
231
+ version: z.ZodOptional<z.ZodString>;
232
+ timestamp: z.ZodOptional<z.ZodString>;
233
+ config: z.ZodOptional<z.ZodAny>;
234
+ }, z.core.$catchall<z.ZodAny>>>;
235
+ }, z.core.$strip>;
236
+ type SpokeOutput = z.infer<typeof SpokeOutputSchema>;
237
+ /**
238
+ * Master Unified Report contract (CLI -> Platform).
239
+ */
240
+ declare const UnifiedReportSchema: z.ZodObject<{
241
+ summary: z.ZodObject<{
242
+ totalFiles: z.ZodNumber;
243
+ totalIssues: z.ZodNumber;
244
+ criticalIssues: z.ZodNumber;
245
+ majorIssues: z.ZodNumber;
246
+ businessImpact: z.ZodOptional<z.ZodObject<{
247
+ estimatedMonthlyWaste: z.ZodOptional<z.ZodNumber>;
248
+ potentialSavings: z.ZodOptional<z.ZodNumber>;
249
+ productivityHours: z.ZodOptional<z.ZodNumber>;
250
+ }, z.core.$strip>>;
251
+ }, z.core.$strip>;
252
+ results: z.ZodArray<z.ZodObject<{
253
+ fileName: z.ZodString;
254
+ issues: z.ZodArray<z.ZodObject<{
255
+ type: z.ZodEnum<typeof IssueType>;
256
+ severity: z.ZodEnum<typeof Severity>;
257
+ message: z.ZodString;
258
+ location: z.ZodObject<{
259
+ file: z.ZodString;
260
+ line: z.ZodNumber;
261
+ column: z.ZodOptional<z.ZodNumber>;
262
+ endLine: z.ZodOptional<z.ZodNumber>;
263
+ endColumn: z.ZodOptional<z.ZodNumber>;
264
+ }, z.core.$strip>;
265
+ suggestion: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strip>>;
267
+ metrics: z.ZodObject<{
268
+ tokenCost: z.ZodOptional<z.ZodNumber>;
269
+ complexityScore: z.ZodOptional<z.ZodNumber>;
270
+ consistencyScore: z.ZodOptional<z.ZodNumber>;
271
+ docFreshnessScore: z.ZodOptional<z.ZodNumber>;
272
+ aiSignalClarityScore: z.ZodOptional<z.ZodNumber>;
273
+ agentGroundingScore: z.ZodOptional<z.ZodNumber>;
274
+ testabilityScore: z.ZodOptional<z.ZodNumber>;
275
+ docDriftScore: z.ZodOptional<z.ZodNumber>;
276
+ dependencyHealthScore: z.ZodOptional<z.ZodNumber>;
277
+ modelContextTier: z.ZodOptional<z.ZodEnum<typeof ModelTier>>;
278
+ estimatedMonthlyCost: z.ZodOptional<z.ZodNumber>;
279
+ estimatedDeveloperHours: z.ZodOptional<z.ZodNumber>;
280
+ comprehensionDifficultyIndex: z.ZodOptional<z.ZodNumber>;
281
+ totalSymbols: z.ZodOptional<z.ZodNumber>;
282
+ totalExports: z.ZodOptional<z.ZodNumber>;
283
+ }, z.core.$strip>;
284
+ }, z.core.$strip>>;
285
+ scoring: z.ZodOptional<z.ZodObject<{
286
+ overall: z.ZodNumber;
287
+ rating: z.ZodString;
288
+ timestamp: z.ZodString;
289
+ breakdown: z.ZodArray<z.ZodObject<{
290
+ toolName: z.ZodUnion<readonly [z.ZodEnum<typeof ToolName>, z.ZodString]>;
291
+ score: z.ZodNumber;
292
+ }, z.core.$catchall<z.ZodAny>>>;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$catchall<z.ZodAny>>;
295
+ type UnifiedReport = z.infer<typeof UnifiedReportSchema>;
296
+
297
+ /**
298
+ * AST Parsing and Export Extraction Types
299
+ */
300
+ interface ExportWithImports {
301
+ name: string;
302
+ type: 'function' | 'class' | 'const' | 'type' | 'interface' | 'default';
303
+ imports: string[];
304
+ dependencies: string[];
305
+ typeReferences: string[];
306
+ loc?: {
307
+ start: {
308
+ line: number;
309
+ column: number;
310
+ };
311
+ end: {
312
+ line: number;
313
+ column: number;
314
+ };
315
+ };
316
+ }
317
+ interface FileImport {
318
+ source: string;
319
+ specifiers: string[];
320
+ isTypeOnly: boolean;
321
+ }
322
+ interface ASTNode {
323
+ type: string;
324
+ loc?: {
325
+ start: {
326
+ line: number;
327
+ column: number;
328
+ };
329
+ end: {
330
+ line: number;
331
+ column: number;
332
+ };
333
+ };
334
+ }
335
+ /**
336
+ * AI token budget unit economics (v0.13+)
337
+ */
338
+ interface TokenBudget {
339
+ totalContextTokens: number;
340
+ estimatedResponseTokens?: number;
341
+ wastedTokens: {
342
+ total: number;
343
+ bySource: {
344
+ duplication: number;
345
+ fragmentation: number;
346
+ chattiness: number;
347
+ };
348
+ };
349
+ efficiencyRatio: number;
350
+ potentialRetrievableTokens: number;
351
+ }
352
+
353
+ /**
354
+ * Shared types for graph-based visualizations
355
+ */
356
+ interface GraphNode {
357
+ id: string;
358
+ label: string;
359
+ path?: string;
360
+ size?: number;
361
+ value?: number;
362
+ color?: string;
363
+ group?: string;
364
+ title?: string;
365
+ x?: number;
366
+ y?: number;
367
+ duplicates?: number;
368
+ tokenCost?: number;
369
+ severity?: string;
370
+ }
371
+ interface GraphEdge {
372
+ source: string;
373
+ target: string;
374
+ type?: string;
375
+ weight?: number;
376
+ }
377
+ interface GraphData {
378
+ nodes: GraphNode[];
379
+ edges: GraphEdge[];
380
+ clusters?: {
381
+ id: string;
382
+ name: string;
383
+ nodeIds: string[];
384
+ }[];
385
+ issues?: {
386
+ id: string;
387
+ type: string;
388
+ severity: string;
389
+ nodeIds: string[];
390
+ message: string;
391
+ }[];
392
+ metadata?: any;
393
+ /** Whether the graph was truncated due to size limits */
394
+ truncated?: {
395
+ nodes: boolean;
396
+ edges: boolean;
397
+ nodeCount?: number;
398
+ edgeCount?: number;
399
+ nodeLimit?: number;
400
+ edgeLimit?: number;
401
+ };
402
+ }
403
+
404
+ /**
405
+ * AI readiness configuration
406
+ */
407
+ interface AIReadyConfig {
408
+ /** Target score threshold (0-100) */
409
+ threshold?: number;
410
+ /** Files or directories to include in scan */
411
+ include?: string[];
412
+ /** Files or directories to exclude from scan */
413
+ exclude?: string[];
414
+ /** Scan-specific configuration */
415
+ scan?: {
416
+ include?: string[];
417
+ exclude?: string[];
418
+ parallel?: boolean;
419
+ deep?: boolean;
420
+ };
421
+ /** Output-specific configuration */
422
+ output?: {
423
+ /** Output format (json, console, html) */
424
+ format?: 'json' | 'console' | 'html';
425
+ /** Output file path */
426
+ path?: string;
427
+ /** Output directory */
428
+ saveTo?: string;
429
+ /** Whether to show score breakdown in console */
430
+ showBreakdown?: boolean;
431
+ /** Baseline report to compare against */
432
+ compareBaseline?: string;
433
+ };
434
+ /** Tool-specific configuration overrides */
435
+ tools?: Record<string, any>;
436
+ /** Scoring profile and weights */
437
+ scoring?: {
438
+ /** Name of the scoring profile (e.g. "strict", "balanced") */
439
+ profile?: string;
440
+ /** Custom weights for tools and metrics */
441
+ weights?: Record<string, number>;
442
+ };
443
+ }
444
+ /**
445
+ * Legacy alias for Config
446
+ */
447
+ type Config = AIReadyConfig;
448
+ /**
449
+ * Common tool options
450
+ */
451
+ interface ToolOptions {
452
+ /** Root directory of the project */
453
+ rootDir: string;
454
+ /** Files to include in this tool's analysis */
455
+ include?: string[];
456
+ /** Files to exclude from this tool's analysis */
457
+ exclude?: string[];
458
+ /** Tool-specific configuration values */
459
+ config?: any;
460
+ /** Any other dynamic options */
461
+ [key: string]: any;
462
+ }
463
+ /**
464
+ * Scan options for tool providers
465
+ */
466
+ interface ScanOptions extends ToolOptions {
467
+ /** Target output format */
468
+ output?: string | {
469
+ format: string;
470
+ file?: string;
471
+ };
472
+ /** Visual format (json/console/html) */
473
+ format?: 'json' | 'console' | 'html';
474
+ /** Whether to run in parallel */
475
+ parallel?: boolean;
476
+ }
477
+ /**
478
+ * Result of a single tool execution
479
+ */
480
+ interface ToolOutput {
481
+ /** Unique name/ID of the tool */
482
+ toolName: ToolName | string;
483
+ /** Whether the tool ran successfully */
484
+ success: boolean;
485
+ /** List of issues found by the tool */
486
+ issues: IssueType[] | any[];
487
+ /** Numeric metrics produced by the tool */
488
+ metrics: Metrics;
489
+ /** Execution duration in milliseconds */
490
+ duration?: number;
491
+ }
492
+ /**
493
+ * Overall scan result
494
+ */
495
+ interface ScanResult {
496
+ /** ISO timestamp of the scan */
497
+ timestamp: string;
498
+ /** Root directory analyzed */
499
+ rootDir: string;
500
+ /** Number of files processed */
501
+ filesAnalyzed: number;
502
+ /** Total issues found across all tools */
503
+ totalIssues: number;
504
+ /** Breakdown of issue counts by type */
505
+ issuesByType: Record<string, number>;
506
+ /** Breakdown of issue counts by severity */
507
+ issuesBySeverity: Record<Severity | string, number>;
508
+ /** Final calculated AIReady score (0-100) */
509
+ score: number;
510
+ /** Individual tool outputs */
511
+ tools: ToolOutput[];
512
+ }
513
+ /**
514
+ * Cost configuration for business impact analysis
515
+ */
516
+ interface CostConfig {
517
+ /** Price in USD per 1,000 tokens */
518
+ pricePer1KTokens: number;
519
+ /** Average number of AI queries per developer per day */
520
+ queriesPerDevPerDay: number;
521
+ /** Total number of developers in the team */
522
+ developerCount: number;
523
+ /** Working days per month */
524
+ daysPerMonth: number;
525
+ }
526
+ /**
527
+ * Productivity impact metrics
528
+ */
529
+ interface ProductivityImpact {
530
+ /** Estimated developer hours wasted on quality issues */
531
+ totalHours: number;
532
+ /** Developer hourly rate used for calculation */
533
+ hourlyRate: number;
534
+ /** Estimated total monthly cost of productivity loss */
535
+ totalCost: number;
536
+ /** Impact breakdown by severity */
537
+ bySeverity: Record<Severity | string, {
538
+ /** Hours lost for this severity level */
539
+ hours: number;
540
+ /** Cost associated with these hours */
541
+ cost: number;
542
+ }>;
543
+ }
544
+ /**
545
+ * AI suggestion acceptance prediction
546
+ */
547
+ interface AcceptancePrediction {
548
+ /** Predicted acceptance rate (0-1) */
549
+ rate: number;
550
+ /** Confidence level of the prediction (0-1) */
551
+ confidence: number;
552
+ /** Qualitative factors influencing the prediction */
553
+ factors: Array<{
554
+ /** Factor name */
555
+ name: string;
556
+ /** Impact weight (-100 to 100) */
557
+ impact: number;
558
+ }>;
559
+ }
560
+ /**
561
+ * Technical Value Chain summary
562
+ */
563
+ interface TechnicalValueChain {
564
+ /** Overall business value score for the component */
565
+ score?: number;
566
+ /** Business logic density (e.g. core vs boilerplate) */
567
+ density?: number;
568
+ /** Data access layer complexity */
569
+ complexity?: number;
570
+ /** API surface area and exposure */
571
+ surface?: number;
572
+ /** Issue type associated with this chain */
573
+ issueType?: string;
574
+ /** Name of the leading technical metric */
575
+ technicalMetric?: string;
576
+ /** Raw value of the technical metric */
577
+ technicalValue?: number;
578
+ /** Impact on AI agents */
579
+ aiImpact?: {
580
+ description: string;
581
+ scoreImpact: number;
582
+ };
583
+ /** Impact on developer experience */
584
+ developerImpact?: {
585
+ description: string;
586
+ productivityLoss: number;
587
+ };
588
+ /** Predicted business outcome */
589
+ businessOutcome?: {
590
+ directCost: number;
591
+ opportunityCost: number;
592
+ riskLevel: 'low' | 'moderate' | 'high' | 'critical';
593
+ };
594
+ }
595
+ /**
596
+ * Compatibility alias
597
+ */
598
+ type TechnicalValueChainSummary = TechnicalValueChain;
599
+ /**
600
+ * Code comprehension difficulty metrics
601
+ */
602
+ interface ComprehensionDifficulty {
603
+ /** Overall difficulty score (0-100) */
604
+ score: number;
605
+ /** Descriptive rating of difficulty */
606
+ rating: 'trivial' | 'easy' | 'moderate' | 'difficult' | 'expert';
607
+ /** Ratios and factors contributing to difficulty */
608
+ factors: {
609
+ /** Ratio of file tokens to model context limit */
610
+ budgetRatio: number;
611
+ /** Relative depth of dependency tree */
612
+ depthRatio: number;
613
+ /** Level of logical fragmentation */
614
+ fragmentation: number;
615
+ };
616
+ }
617
+ /**
618
+ * Business impact metrics (v0.10+)
619
+ */
620
+ interface BusinessMetrics {
621
+ /** Predicted monthly cost of technical waste */
622
+ estimatedMonthlyCost?: number;
623
+ /** Estimated developer hours lost per month */
624
+ estimatedDeveloperHours?: number;
625
+ /** Predicted rate of AI suggestion acceptance */
626
+ aiAcceptanceRate?: number;
627
+ /** Overall AI readiness score */
628
+ aiReadinessScore?: number;
629
+ }
630
+ /**
631
+ * Canonical file content structure
632
+ */
633
+ interface FileContent {
634
+ /** Absolute or relative file path */
635
+ file: string;
636
+ /** UTF-8 file content */
637
+ content: string;
638
+ }
639
+ /**
640
+ * Constants for tests and configuration stability
641
+ */
642
+ declare const GLOBAL_INFRA_OPTIONS: string[];
643
+ declare const GLOBAL_SCAN_OPTIONS: string[];
644
+ declare const COMMON_FINE_TUNING_OPTIONS: string[];
645
+
646
+ /**
647
+ * Analysis issue mapping to graph
648
+ */
649
+ type GraphIssueSeverity = Severity;
650
+ /**
651
+ * Graph metadata
652
+ */
653
+ interface GraphMetadata {
654
+ /** Project name if available */
655
+ projectName?: string;
656
+ /** ISO timestamp of analysis */
657
+ timestamp: string;
658
+ /** Total number of files in the graph */
659
+ totalFiles: number;
660
+ /** Total dependency edges in the graph */
661
+ totalDependencies: number;
662
+ /** Types of analysis performed */
663
+ analysisTypes: string[];
664
+ /** Count of critical issues in graph nodes */
665
+ criticalIssues: number;
666
+ /** Count of major issues in graph nodes */
667
+ majorIssues: number;
668
+ /** Count of minor issues in graph nodes */
669
+ minorIssues: number;
670
+ /** Count of informational issues in graph nodes */
671
+ infoIssues: number;
672
+ /** AI token budget unit economics (v0.13+) */
673
+ tokenBudget?: TokenBudget;
674
+ /** Execution time in milliseconds */
675
+ executionTime?: number;
676
+ }
677
+
678
+ /**
679
+ * Language-agnostic AST and parser interfaces for multi-language support
680
+ *
681
+ * This module provides abstractions for parsing different programming languages
682
+ * while maintaining a consistent interface for analysis tools.
683
+ */
684
+ /**
685
+ * Supported programming languages
686
+ */
687
+ declare enum Language {
688
+ TypeScript = "typescript",
689
+ JavaScript = "javascript",
690
+ Python = "python",
691
+ Java = "java",
692
+ Go = "go",
693
+ Rust = "rust",
694
+ CSharp = "csharp"
695
+ }
696
+ /**
697
+ * File extensions mapped to languages
698
+ */
699
+ declare const LANGUAGE_EXTENSIONS: Record<string, Language>;
700
+ /**
701
+ * Location information in source code
702
+ */
703
+ interface SourceLocation {
704
+ line: number;
705
+ column: number;
706
+ }
707
+ interface SourceRange {
708
+ start: SourceLocation;
709
+ end: SourceLocation;
710
+ }
711
+ /**
712
+ * Common AST node type (language-agnostic)
713
+ */
714
+ interface CommonASTNode {
715
+ type: string;
716
+ loc?: SourceRange;
717
+ raw?: any;
718
+ }
719
+ /**
720
+ * Export information (function, class, variable, etc.)
721
+ */
722
+ interface ExportInfo {
723
+ name: string;
724
+ type: 'function' | 'class' | 'const' | 'type' | 'interface' | 'default' | 'variable';
725
+ loc?: SourceRange;
726
+ /** Imports used within this export */
727
+ imports?: string[];
728
+ /** Dependencies on other exports in same file */
729
+ dependencies?: string[];
730
+ /** TypeScript types referenced */
731
+ typeReferences?: string[];
732
+ /** For methods: parent class name */
733
+ parentClass?: string;
734
+ /** For functions/methods: parameters */
735
+ parameters?: string[];
736
+ /** For classes/interfaces: number of methods and properties */
737
+ methodCount?: number;
738
+ propertyCount?: number;
739
+ /** Visibility (public, private, protected) */
740
+ visibility?: 'public' | 'private' | 'protected';
741
+ /** Behavioral metadata for advanced metrics */
742
+ isPure?: boolean;
743
+ hasSideEffects?: boolean;
744
+ /** Associated documentation */
745
+ documentation?: {
746
+ content: string;
747
+ type: 'jsdoc' | 'docstring' | 'comment' | 'xml-doc';
748
+ isStale?: boolean;
749
+ };
750
+ }
751
+ /**
752
+ * Import information
753
+ */
754
+ interface ImportInfo {
755
+ /** Module being imported from */
756
+ source: string;
757
+ /** What's being imported */
758
+ specifiers: string[];
759
+ /** Is this a type-only import (TypeScript) */
760
+ isTypeOnly?: boolean;
761
+ /** Location in source */
762
+ loc?: SourceRange;
763
+ }
764
+ /**
765
+ * Parse result containing exports and imports
766
+ */
767
+ interface ParseResult {
768
+ exports: ExportInfo[];
769
+ imports: ImportInfo[];
770
+ /** Language of the parsed file */
771
+ language: Language;
772
+ /** Any parse warnings (non-fatal) */
773
+ warnings?: string[];
774
+ }
775
+ /**
776
+ * Naming convention rules per language
777
+ */
778
+ interface NamingConvention {
779
+ /** Allowed variable naming patterns */
780
+ variablePattern: RegExp;
781
+ /** Allowed function naming patterns */
782
+ functionPattern: RegExp;
783
+ /** Allowed class naming patterns */
784
+ classPattern: RegExp;
785
+ /** Allowed constant naming patterns */
786
+ constantPattern: RegExp;
787
+ /** Allowed type naming patterns */
788
+ typePattern?: RegExp;
789
+ /** Allowed interface naming patterns */
790
+ interfacePattern?: RegExp;
791
+ /** Language-specific exceptions (e.g., __init__ in Python) */
792
+ exceptions?: string[];
793
+ }
794
+ /**
795
+ * Language-specific configuration
796
+ */
797
+ interface LanguageConfig {
798
+ language: Language;
799
+ /** File extensions for this language */
800
+ extensions: string[];
801
+ /** Naming conventions */
802
+ namingConventions: NamingConvention;
803
+ /** Common abbreviations allowed */
804
+ allowedAbbreviations?: string[];
805
+ /** Language-specific keywords to ignore */
806
+ keywords?: string[];
807
+ }
808
+ /**
809
+ * Abstract interface for language parsers
810
+ * Each language implementation should implement this interface
811
+ */
812
+ interface LanguageParser {
813
+ /** Language this parser handles */
814
+ readonly language: Language;
815
+ /** File extensions this parser supports */
816
+ readonly extensions: string[];
817
+ /**
818
+ * Parse source code and extract structure
819
+ * @param code - Source code to parse
820
+ * @param filePath - Path to the file (for context)
821
+ * @returns Parse result with exports and imports
822
+ * @throws ParseError if code has syntax errors
823
+ */
824
+ parse(code: string, filePath: string): ParseResult;
825
+ /**
826
+ * Get naming conventions for this language
827
+ */
828
+ getNamingConventions(): NamingConvention;
829
+ /**
830
+ * Initialize the parser (e.g. load WASM)
831
+ */
832
+ initialize(): Promise<void>;
833
+ /**
834
+ * Check if this parser can handle a file
835
+ * @param filePath - File path to check
836
+ */
837
+ canHandle(filePath: string): boolean;
838
+ /**
839
+ * Get the raw AST for advanced querying
840
+ * @param code - Source code to parse
841
+ * @param filePath - Path to the file
842
+ */
843
+ getAST(code: string, filePath: string): Promise<any>;
844
+ /**
845
+ * Analyze structural metadata for a node (e.g. purity)
846
+ * @param node - The AST node to analyze (language specific)
847
+ * @param code - The original source code
848
+ */
849
+ analyzeMetadata(node: any, code: string): Partial<ExportInfo>;
850
+ }
851
+ /**
852
+ * Parser error with location information
853
+ */
854
+ declare class ParseError extends Error {
855
+ readonly filePath: string;
856
+ readonly loc?: SourceLocation | undefined;
857
+ constructor(message: string, filePath: string, loc?: SourceLocation | undefined);
858
+ }
859
+ /**
860
+ * Statistics about parsed code
861
+ */
862
+ interface ParseStatistics {
863
+ language: Language;
864
+ filesAnalyzed: number;
865
+ totalExports: number;
866
+ totalImports: number;
867
+ parseErrors: number;
868
+ warnings: number;
869
+ }
870
+
871
+ /**
872
+ * Priority levels for actionable recommendations.
873
+ *
874
+ * Used to Sort and display fixes for the user.
875
+ */
876
+ declare enum RecommendationPriority {
877
+ High = "high",
878
+ Medium = "medium",
879
+ Low = "low"
880
+ }
881
+ /**
882
+ * AI Readiness Rating categories.
883
+ *
884
+ * Provides a high-level qualitative assessment based on the numeric score.
885
+ */
886
+ declare enum ReadinessRating {
887
+ Excellent = "Excellent",
888
+ Good = "Good",
889
+ Fair = "Fair",
890
+ NeedsWork = "Needs Work",
891
+ Critical = "Critical"
892
+ }
893
+ /**
894
+ * Output structure for a single tool's scoring analysis.
895
+ */
896
+ interface ToolScoringOutput {
897
+ /** Unique tool identifier (e.g., "pattern-detect") */
898
+ toolName: string;
899
+ /** Normalized 0-100 score for this tool */
900
+ score: number;
901
+ /** AI token budget unit economics (v0.13+) */
902
+ tokenBudget?: TokenBudget;
903
+ /** Raw metrics used to calculate the score */
904
+ rawMetrics: Record<string, any>;
905
+ /** Factors that influenced the score */
906
+ factors: Array<{
907
+ /** Human-readable name of the factor */
908
+ name: string;
909
+ /** Points contribution (positive or negative) */
910
+ impact: number;
911
+ /** Explanation of the factor's impact */
912
+ description: string;
913
+ }>;
914
+ /** Actionable recommendations with estimated impact */
915
+ recommendations: Array<{
916
+ /** The recommended action to take */
917
+ action: string;
918
+ /** Potential points increase if implemented */
919
+ estimatedImpact: number;
920
+ /** Implementation priority */
921
+ priority: RecommendationPriority | 'high' | 'medium' | 'low';
922
+ }>;
923
+ }
924
+ /**
925
+ * Consolidated scoring result across all tools.
926
+ *
927
+ * This is the final report object containing the overall score,
928
+ * rating, and detailed breakdown for all tools.
929
+ */
930
+ interface ScoringResult {
931
+ /** Overall AI Readiness Score (0-100) */
932
+ overall: number;
933
+ /** Rating category representing the overall readiness */
934
+ rating: ReadinessRating | string;
935
+ /** Timestamp of score calculation */
936
+ timestamp: string;
937
+ /** Tools that contributed to this score */
938
+ toolsUsed: string[];
939
+ /** Breakdown by individual tool */
940
+ breakdown: ToolScoringOutput[];
941
+ /** Internal calculation details for transparency */
942
+ calculation: {
943
+ /** Textual representation of the calculation formula */
944
+ formula: string;
945
+ /** Weights applied to each tool */
946
+ weights: Record<string, number>;
947
+ /** Simplified normalized formula output */
948
+ normalized: string;
949
+ };
950
+ }
951
+ /**
952
+ * Configuration options for the scoring system.
953
+ */
954
+ interface ScoringConfig {
955
+ /** Minimum passing score (CLI will exit with non-zero if below) */
956
+ threshold?: number;
957
+ /** Whether to show the detailed tool-by-tool breakdown */
958
+ showBreakdown?: boolean;
959
+ /** Path to a baseline report JSON for trend comparison */
960
+ compareBaseline?: string;
961
+ /** Target file path to persist the calculated score */
962
+ saveTo?: string;
963
+ }
964
+ /**
965
+ * Default weights for known tools.
966
+ *
967
+ * Weights represent the percentage contribution of each tool to the overall score.
968
+ * By default, they sum to 100 for a standard project.
969
+ */
970
+ declare const DEFAULT_TOOL_WEIGHTS: Record<string, number>;
971
+ /**
972
+ * Tool name normalization map.
973
+ *
974
+ * Maps common shorthands and aliases to canonical tool IDs.
975
+ */
976
+ declare const TOOL_NAME_MAP: Record<string, string>;
977
+ /**
978
+ * Model context tiers for context-aware threshold calibration.
979
+ */
980
+ type ModelContextTier = 'compact' | 'standard' | 'extended' | 'frontier';
981
+ /**
982
+ * Scoring profiles for project-aware weighting adjustments.
983
+ *
984
+ * Different profiles prioritize different aspects of AI readiness based
985
+ * on the project's primary focus.
986
+ */
987
+ declare enum ScoringProfile {
988
+ Default = "default",
989
+ Agentic = "agentic",// Focus on AI agent navigation and signal
990
+ Logic = "logic",// Focus on testability and complexity
991
+ UI = "ui",// Focus on consistency and context
992
+ Cost = "cost",// Focus on token waste reduction
993
+ Security = "security"
994
+ }
995
+ /**
996
+ * Project-type-aware tool weight presets for different profiles.
997
+ */
998
+ declare const SCORING_PROFILES: Record<ScoringProfile, Record<string, number>>;
999
+ /**
1000
+ * Context budget thresholds per tier.
1001
+ *
1002
+ * "Ideal" represents target state. "Critical" represents failure state.
1003
+ */
1004
+ declare const CONTEXT_TIER_THRESHOLDS: Record<ModelContextTier, {
1005
+ idealTokens: number;
1006
+ criticalTokens: number;
1007
+ idealDepth: number;
1008
+ }>;
1009
+ /**
1010
+ * Project-size-adjusted minimum thresholds.
1011
+ *
1012
+ * Larger projects have slightly lower thresholds due to inherent complexity.
1013
+ */
1014
+ declare const SIZE_ADJUSTED_THRESHOLDS: Record<string, number>;
1015
+ /**
1016
+ * Determine project size tier based on the total number of files.
1017
+ *
1018
+ * @param fileCount Total number of files in the project
1019
+ * @returns A string identifier for the project size tier (xs, small, medium, large, enterprise)
1020
+ */
1021
+ declare function getProjectSizeTier(fileCount: number): keyof typeof SIZE_ADJUSTED_THRESHOLDS;
1022
+ /**
1023
+ * Calculate the recommended minimum AI readiness threshold for a project.
1024
+ *
1025
+ * Threshold is adjusted based on project size and the model context tier targeted.
1026
+ *
1027
+ * @param fileCount Total number of files in the project
1028
+ * @param modelTier The model context tier targeted (compact, standard, extended, frontier)
1029
+ * @returns The recommended score threshold (0-100)
1030
+ */
1031
+ declare function getRecommendedThreshold(fileCount: number, modelTier?: ModelContextTier): number;
1032
+ /**
1033
+ * Normalize a tool name from a shorthand or alias to its canonical ID.
1034
+ *
1035
+ * @param shortName The tool shorthand or alias name
1036
+ * @returns The canonical tool ID
1037
+ */
1038
+ declare function normalizeToolName(shortName: string): string;
1039
+ /**
1040
+ * Retrieve the weight for a specific tool, considering overrides and profiles.
1041
+ *
1042
+ * @param toolName The canonical tool ID
1043
+ * @param toolConfig Optional configuration for the tool containing a weight
1044
+ * @param cliOverride Optional weight override from the CLI
1045
+ * @param profile Optional scoring profile to use
1046
+ * @returns The weight to be used for this tool in overall scoring
1047
+ */
1048
+ declare function getToolWeight(toolName: string, toolConfig?: {
1049
+ scoreWeight?: number;
1050
+ }, cliOverride?: number, profile?: ScoringProfile): number;
1051
+ /**
1052
+ * Parse a comma-separated weight string from the CLI.
1053
+ *
1054
+ * Format: "tool1:weight1,tool2:weight2"
1055
+ *
1056
+ * @param weightStr The raw weight string from the CLI or config
1057
+ * @returns A Map of tool IDs to their parsed weights
1058
+ */
1059
+ declare function parseWeightString(weightStr?: string): Map<string, number>;
1060
+ /**
1061
+ * Calculate the overall consolidated AI Readiness Score.
1062
+ *
1063
+ * Orchestrates the weighted aggregation of all tool individual scores.
1064
+ *
1065
+ * @param toolOutputs Map of tool IDs to their individual scoring outputs
1066
+ * @param config Optional global configuration
1067
+ * @param cliWeights Optional weight overrides from the CLI
1068
+ * @returns Consolidate ScoringResult including overall score and rating
1069
+ */
1070
+ declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
1071
+ /**
1072
+ * Convert numeric score to qualitative rating category.
1073
+ *
1074
+ * @param score The numerical AI readiness score (0-100)
1075
+ * @returns The corresponding ReadinessRating category
1076
+ */
1077
+ declare function getRating(score: number): ReadinessRating;
1078
+ /**
1079
+ * Get a URL-friendly slug representing the rating category.
1080
+ *
1081
+ * @param score The numerical score
1082
+ * @returns A kebab-case string (e.g., 'excellent', 'needs-work')
1083
+ */
1084
+ declare function getRatingSlug(score: number): string;
1085
+ /**
1086
+ * Convert score to rating with project-size and model awareness.
1087
+ *
1088
+ * Provides a more accurate rating by considering the target model's limits.
1089
+ *
1090
+ * @param score The numerical AI readiness score
1091
+ * @param fileCount Total number of files in the project
1092
+ * @param modelTier The model context tier being targeted
1093
+ * @returns The size-aware ReadinessRating
1094
+ */
1095
+ declare function getRatingWithContext(score: number, fileCount: number, modelTier?: ModelContextTier): ReadinessRating;
1096
+ /**
1097
+ * Get display properties (emoji and color) for a given rating.
1098
+ *
1099
+ * @param rating The readiness rating category
1100
+ * @returns Object containing display emoji and color string
1101
+ */
1102
+ declare function getRatingDisplay(rating: ReadinessRating | string): {
1103
+ emoji: string;
1104
+ color: string;
1105
+ };
1106
+ /**
1107
+ * Format overall score for compact console display.
1108
+ *
1109
+ * @param result The consolidated scoring result
1110
+ * @returns Formatted string (e.g., "85/100 (Good) 👍")
1111
+ */
1112
+ declare function formatScore(result: ScoringResult): string;
1113
+ /**
1114
+ * Format detailed tool score for expanded console display.
1115
+ *
1116
+ * Includes breakdown of influencing factors and actionable recommendations.
1117
+ *
1118
+ * @param output The scoring output for a single tool
1119
+ * @returns Multi-line formatted string for console output
1120
+ */
1121
+ declare function formatToolScore(output: ToolScoringOutput): string;
1122
+
1123
+ /**
1124
+ * Visualization utilities for generating HTML from graph data
1125
+ */
1126
+
1127
+ /**
1128
+ * Generate HTML visualization from graph data
1129
+ * Creates an interactive HTML page with a canvas-based graph visualization
1130
+ *
1131
+ * @param graph - The graph data to visualize
1132
+ * @returns HTML string representing the interactive visualization
1133
+ */
1134
+ declare function generateHTML(graph: GraphData): string;
1135
+
1136
+ export { ModelTierSchema as $, type AnalysisResult as A, type BusinessMetrics as B, type CostConfig as C, DEFAULT_TOOL_WEIGHTS as D, type ExportWithImports as E, type FileImport as F, GLOBAL_INFRA_OPTIONS as G, type GraphMetadata as H, type ImportInfo as I, type GraphNode as J, type Issue as K, type LanguageParser as L, type ModelContextTier as M, type NamingConvention as N, IssueSchema as O, type ProductivityImpact as P, IssueType as Q, IssueTypeSchema as R, type ScanOptions as S, ToolName as T, LANGUAGE_EXTENSIONS as U, type LanguageConfig as V, type Location as W, LocationSchema as X, type Metrics as Y, MetricsSchema as Z, ModelTier as _, type SpokeOutput as a, ParseError as a0, type ParseStatistics as a1, ReadinessRating as a2, RecommendationPriority as a3, SCORING_PROFILES as a4, SIZE_ADJUSTED_THRESHOLDS as a5, type ScanResult as a6, type ScoringConfig as a7, ScoringProfile as a8, type ScoringResult as a9, SeveritySchema as aa, type SourceLocation as ab, type SourceRange as ac, SpokeOutputSchema as ad, type SpokeSummary as ae, SpokeSummarySchema as af, TOOL_NAME_MAP as ag, ToolNameSchema as ah, type ToolOptions as ai, type ToolOutput as aj, type UnifiedReport as ak, UnifiedReportSchema as al, calculateOverallScore as am, formatScore as an, formatToolScore as ao, generateHTML as ap, getProjectSizeTier as aq, getRating as ar, getRatingDisplay as as, getRatingSlug as at, getRatingWithContext as au, getRecommendedThreshold as av, getToolWeight as aw, normalizeToolName as ax, parseWeightString as ay, type ToolScoringOutput as b, Severity as c, type ASTNode as d, type AIReadyConfig as e, type TokenBudget as f, type AcceptancePrediction as g, type ComprehensionDifficulty as h, type TechnicalValueChainSummary as i, type TechnicalValueChain as j, Language as k, type ExportInfo as l, type ParseResult as m, AnalysisResultSchema as n, AnalysisStatus as o, AnalysisStatusSchema as p, COMMON_FINE_TUNING_OPTIONS as q, CONTEXT_TIER_THRESHOLDS as r, type CommonASTNode as s, type Config as t, FRIENDLY_TOOL_NAMES as u, type FileContent as v, GLOBAL_SCAN_OPTIONS as w, type GraphData as x, type GraphEdge as y, type GraphIssueSeverity as z };