@aiready/core 0.23.11 → 0.23.12

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