@aiready/core 0.23.20 → 0.23.22

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 (116) hide show
  1. package/dist/chunk-2N7ISIKE.mjs +158 -0
  2. package/dist/chunk-ARUIZO7M.mjs +297 -0
  3. package/dist/chunk-CYC5EGEI.mjs +297 -0
  4. package/dist/{chunk-REU6OUBT.mjs → chunk-DBOPSRBC.mjs} +47 -22
  5. package/dist/chunk-E55RNGGK.mjs +852 -0
  6. package/dist/chunk-EZ7ECLAZ.mjs +299 -0
  7. package/dist/chunk-FNPULWG7.mjs +248 -0
  8. package/dist/chunk-FZTFKZUQ.mjs +250 -0
  9. package/dist/chunk-GTS642BQ.mjs +262 -0
  10. package/dist/chunk-IXPY5J4K.mjs +248 -0
  11. package/dist/chunk-JJQLYW6Z.mjs +111 -0
  12. package/dist/chunk-L6BKANJC.mjs +130 -0
  13. package/dist/chunk-LXEO5PG3.mjs +292 -0
  14. package/dist/chunk-LZHO636W.mjs +501 -0
  15. package/dist/chunk-MTK2IIDZ.mjs +262 -0
  16. package/dist/chunk-QDCQETSI.mjs +262 -0
  17. package/dist/chunk-QZNY7B2N.mjs +248 -0
  18. package/dist/chunk-RCZSMGCX.mjs +250 -0
  19. package/dist/chunk-SWZOT67M.mjs +250 -0
  20. package/dist/chunk-U3IY2CFC.mjs +36 -0
  21. package/dist/chunk-UBCM5Y6R.mjs +275 -0
  22. package/dist/chunk-UTCRW3N7.mjs +301 -0
  23. package/dist/{chunk-SQHS6PFL.mjs → chunk-UYLH35LA.mjs} +47 -22
  24. package/dist/{chunk-ZB3EHHAG.mjs → chunk-WVNVC2PP.mjs} +90 -60
  25. package/dist/chunk-WYOW6O3P.mjs +114 -0
  26. package/dist/{chunk-RMH2TPAT.mjs → chunk-YRSSR4KN.mjs} +87 -59
  27. package/dist/client/index.d.mts +2 -0
  28. package/dist/client/index.d.ts +2 -0
  29. package/dist/client/index.js +922 -0
  30. package/dist/client/index.mjs +104 -0
  31. package/dist/client-2xbeKnrg.d.mts +1291 -0
  32. package/dist/client-2xbeKnrg.d.ts +1291 -0
  33. package/dist/client-4HLAGzFg.d.mts +1291 -0
  34. package/dist/client-4HLAGzFg.d.ts +1291 -0
  35. package/dist/client-B4TQwNa7.d.mts +1290 -0
  36. package/dist/client-B4TQwNa7.d.ts +1290 -0
  37. package/dist/client-Bdi4ty0v.d.mts +1294 -0
  38. package/dist/client-Bdi4ty0v.d.ts +1294 -0
  39. package/dist/client-BsKpUH3H.d.mts +1339 -0
  40. package/dist/client-BsKpUH3H.d.ts +1339 -0
  41. package/dist/client-Bv1zOaWF.d.mts +1291 -0
  42. package/dist/client-Bv1zOaWF.d.ts +1291 -0
  43. package/dist/client-Bz9YJMIX.d.mts +1290 -0
  44. package/dist/client-Bz9YJMIX.d.ts +1290 -0
  45. package/dist/client-CBpzm34X.d.mts +1291 -0
  46. package/dist/client-CBpzm34X.d.ts +1291 -0
  47. package/dist/client-CNu_tCZZ.d.mts +1305 -0
  48. package/dist/client-CNu_tCZZ.d.ts +1305 -0
  49. package/dist/client-CmEvxxQu.d.mts +1339 -0
  50. package/dist/client-CmEvxxQu.d.ts +1339 -0
  51. package/dist/client-Ctl_0z6F.d.mts +1294 -0
  52. package/dist/client-Ctl_0z6F.d.ts +1294 -0
  53. package/dist/client-DGMAxkZc.d.mts +1339 -0
  54. package/dist/client-DGMAxkZc.d.ts +1339 -0
  55. package/dist/client-DZq-CqcD.d.mts +1292 -0
  56. package/dist/client-DZq-CqcD.d.ts +1292 -0
  57. package/dist/{client-CYz0qxGB.d.mts → client-DcqGfDTt.d.mts} +90 -23
  58. package/dist/{client-CYz0qxGB.d.ts → client-DcqGfDTt.d.ts} +90 -23
  59. package/dist/{client-jGuH6TAG.d.mts → client-O8RvSRm0.d.mts} +18 -1
  60. package/dist/{client-jGuH6TAG.d.ts → client-O8RvSRm0.d.ts} +18 -1
  61. package/dist/client.d.mts +1 -1
  62. package/dist/client.d.ts +1 -1
  63. package/dist/client.js +47 -13
  64. package/dist/client.mjs +6 -4
  65. package/dist/csharp-parser-4ZKCSX5B.mjs +9 -0
  66. package/dist/csharp-parser-5HKICCRR.mjs +9 -0
  67. package/dist/csharp-parser-JCKXIAJW.mjs +9 -0
  68. package/dist/go-parser-J4KIH4RG.mjs +9 -0
  69. package/dist/go-parser-TKXL3DVH.mjs +9 -0
  70. package/dist/go-parser-XOM232XZ.mjs +9 -0
  71. package/dist/index-Ctl_0z6F.d.mts +1294 -0
  72. package/dist/index-Ctl_0z6F.d.ts +1294 -0
  73. package/dist/index.d.mts +372 -165
  74. package/dist/index.d.ts +372 -165
  75. package/dist/index.js +3825 -3123
  76. package/dist/index.mjs +901 -2128
  77. package/dist/java-parser-3KHXOXRQ.mjs +9 -0
  78. package/dist/java-parser-MASGS4WB.mjs +9 -0
  79. package/dist/java-parser-T5LXD63J.mjs +9 -0
  80. package/dist/python-parser-FNFK2473.mjs +8 -0
  81. package/dist/typescript-parser-2GGNRNB5.mjs +7 -0
  82. package/dist/typescript-parser-3ENJ6C7H.mjs +7 -0
  83. package/dist/typescript-parser-4GI7DPSW.mjs +7 -0
  84. package/dist/typescript-parser-4H3HUBO4.mjs +7 -0
  85. package/dist/typescript-parser-K63IVZMF.mjs +7 -0
  86. package/dist/typescript-parser-ZJKROMQG.mjs +7 -0
  87. package/package.json +6 -6
  88. package/dist/chunk-2Y6WZCES.mjs +0 -859
  89. package/dist/chunk-5SHLHMH7.mjs +0 -760
  90. package/dist/chunk-CGOS2J6T.mjs +0 -807
  91. package/dist/chunk-FMNCV4CC.mjs +0 -859
  92. package/dist/chunk-Q55AMEFV.mjs +0 -760
  93. package/dist/chunk-ST75O5C5.mjs +0 -859
  94. package/dist/chunk-TJXR2CHZ.mjs +0 -799
  95. package/dist/client-BEoUYNLp.d.mts +0 -1191
  96. package/dist/client-BEoUYNLp.d.ts +0 -1191
  97. package/dist/client-BrIMPk89.d.mts +0 -1214
  98. package/dist/client-BrIMPk89.d.ts +0 -1214
  99. package/dist/client-C5BuGX4F.d.mts +0 -1205
  100. package/dist/client-C5BuGX4F.d.ts +0 -1205
  101. package/dist/client-CKcjnPXt.d.mts +0 -1214
  102. package/dist/client-CKcjnPXt.d.ts +0 -1214
  103. package/dist/client-CLulBnie.d.mts +0 -1182
  104. package/dist/client-CLulBnie.d.ts +0 -1182
  105. package/dist/client-CQwvp8ep.d.mts +0 -1182
  106. package/dist/client-CQwvp8ep.d.ts +0 -1182
  107. package/dist/client-DLvFR2qA.d.mts +0 -1197
  108. package/dist/client-DLvFR2qA.d.ts +0 -1197
  109. package/dist/client-PFPdeo-z.d.mts +0 -1186
  110. package/dist/client-PFPdeo-z.d.ts +0 -1186
  111. package/dist/client-WVCAIWdJ.d.mts +0 -1192
  112. package/dist/client-WVCAIWdJ.d.ts +0 -1192
  113. package/dist/client-pYldIAg2.d.mts +0 -1209
  114. package/dist/client-pYldIAg2.d.ts +0 -1209
  115. package/dist/client-wk2fgk1q.d.mts +0 -1184
  116. package/dist/client-wk2fgk1q.d.ts +0 -1184
@@ -1,1191 +0,0 @@
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';
371
- imports: string[];
372
- dependencies: string[];
373
- typeReferences: string[];
374
- loc?: SourceRange;
375
- }
376
- /**
377
- * Information about a single import declaration
378
- */
379
- interface FileImport {
380
- /** Module being imported from */
381
- source: string;
382
- /** What's being imported */
383
- specifiers: string[];
384
- /** Is this a type-only import (TypeScript) */
385
- isTypeOnly?: boolean;
386
- /** Location in source */
387
- loc?: SourceRange;
388
- }
389
- interface ASTNode {
390
- type: string;
391
- loc?: SourceRange;
392
- }
393
- /**
394
- * AI token budget unit economics (v0.13+)
395
- */
396
- interface TokenBudget {
397
- totalContextTokens: number;
398
- estimatedResponseTokens?: number;
399
- wastedTokens: {
400
- total: number;
401
- bySource: {
402
- duplication: number;
403
- fragmentation: number;
404
- chattiness: number;
405
- };
406
- };
407
- efficiencyRatio: number;
408
- potentialRetrievableTokens: number;
409
- }
410
-
411
- /**
412
- * Shared types for graph-based visualizations
413
- */
414
- interface GraphNode {
415
- id: string;
416
- label: string;
417
- path?: string;
418
- size?: number;
419
- value?: number;
420
- color?: string;
421
- group?: string;
422
- title?: string;
423
- x?: number;
424
- y?: number;
425
- duplicates?: number;
426
- tokenCost?: number;
427
- severity?: string;
428
- }
429
- interface GraphEdge {
430
- source: string;
431
- target: string;
432
- type?: string;
433
- weight?: number;
434
- }
435
- interface GraphData {
436
- nodes: GraphNode[];
437
- edges: GraphEdge[];
438
- clusters?: {
439
- id: string;
440
- name: string;
441
- nodeIds: string[];
442
- }[];
443
- issues?: {
444
- id: string;
445
- type: string;
446
- severity: string;
447
- nodeIds: string[];
448
- message: string;
449
- }[];
450
- metadata?: any;
451
- /** Whether the graph was truncated due to size limits */
452
- truncated?: {
453
- nodes: boolean;
454
- edges: boolean;
455
- nodeCount?: number;
456
- edgeCount?: number;
457
- nodeLimit?: number;
458
- edgeLimit?: number;
459
- };
460
- }
461
-
462
- /**
463
- * Lead Source identifiers.
464
- */
465
- declare enum LeadSource {
466
- ClawMoreHero = "clawmore-hero",
467
- ClawMoreWaitlist = "clawmore-waitlist",
468
- ClawMoreBeta = "clawmore-beta",
469
- AiReadyPlatform = "aiready-platform"
470
- }
471
- /** Zod schema for LeadSource enum */
472
- declare const LeadSourceSchema: z.ZodEnum<typeof LeadSource>;
473
- /**
474
- * Business Lead schema for waitlists and beta signups.
475
- */
476
- declare const LeadSchema: z.ZodObject<{
477
- id: z.ZodString;
478
- email: z.ZodString;
479
- name: z.ZodString;
480
- interest: z.ZodDefault<z.ZodString>;
481
- notes: z.ZodOptional<z.ZodString>;
482
- timestamp: z.ZodString;
483
- source: z.ZodEnum<typeof LeadSource>;
484
- status: z.ZodDefault<z.ZodEnum<{
485
- new: "new";
486
- contacted: "contacted";
487
- qualified: "qualified";
488
- converted: "converted";
489
- archived: "archived";
490
- }>>;
491
- }, z.core.$strip>;
492
- type Lead = z.infer<typeof LeadSchema>;
493
- /**
494
- * Lead Submission (input from form)
495
- */
496
- declare const LeadSubmissionSchema: z.ZodObject<{
497
- source: z.ZodEnum<typeof LeadSource>;
498
- email: z.ZodString;
499
- name: z.ZodString;
500
- interest: z.ZodDefault<z.ZodString>;
501
- notes: z.ZodOptional<z.ZodString>;
502
- }, z.core.$strip>;
503
- type LeadSubmission = z.infer<typeof LeadSubmissionSchema>;
504
- /**
505
- * Managed AWS Account metadata for the Account Vending Machine.
506
- */
507
- declare const ManagedAccountSchema: z.ZodObject<{
508
- id: z.ZodString;
509
- accountId: z.ZodString;
510
- userId: z.ZodString;
511
- stripeSubscriptionId: z.ZodString;
512
- tokenStrategy: z.ZodDefault<z.ZodEnum<{
513
- managed: "managed";
514
- byok: "byok";
515
- }>>;
516
- byokConfig: z.ZodOptional<z.ZodObject<{
517
- openaiKey: z.ZodOptional<z.ZodString>;
518
- anthropicKey: z.ZodOptional<z.ZodString>;
519
- openrouterKey: z.ZodOptional<z.ZodString>;
520
- }, z.core.$strip>>;
521
- baseFeeCents: z.ZodDefault<z.ZodNumber>;
522
- includedComputeCents: z.ZodDefault<z.ZodNumber>;
523
- includedTokenCents: z.ZodDefault<z.ZodNumber>;
524
- prepaidTokenBalanceCents: z.ZodDefault<z.ZodNumber>;
525
- currentMonthlyTokenSpendCents: z.ZodDefault<z.ZodNumber>;
526
- status: z.ZodDefault<z.ZodEnum<{
527
- provisioning: "provisioning";
528
- active: "active";
529
- warning: "warning";
530
- quarantined: "quarantined";
531
- suspended: "suspended";
532
- }>>;
533
- lastCostSyncAt: z.ZodOptional<z.ZodString>;
534
- region: z.ZodDefault<z.ZodString>;
535
- alertThresholds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
536
- }, z.core.$strip>;
537
- type ManagedAccount = z.infer<typeof ManagedAccountSchema>;
538
-
539
- /**
540
- * AI readiness configuration
541
- */
542
- type AIReadyConfig = z.infer<typeof AIReadyConfigSchema>;
543
- /**
544
- * Legacy alias for Config
545
- */
546
- type Config = AIReadyConfig;
547
- /**
548
- * Scan options for tool providers
549
- */
550
- interface ScanOptions extends ToolOptions {
551
- /** Target output format */
552
- output?: string | {
553
- format: string;
554
- file?: string;
555
- };
556
- /** Visual format (json/console/html) */
557
- format?: 'json' | 'console' | 'html';
558
- /** Whether to run in parallel */
559
- parallel?: boolean;
560
- }
561
- /**
562
- * Result of a single tool execution
563
- */
564
- interface ToolOutput {
565
- /** Unique name/ID of the tool */
566
- toolName: ToolName | string;
567
- /** Whether the tool ran successfully */
568
- success: boolean;
569
- /** List of issues found by the tool */
570
- issues: IssueType[] | any[];
571
- /** Numeric metrics produced by the tool */
572
- metrics: Metrics;
573
- /** Execution duration in milliseconds */
574
- duration?: number;
575
- }
576
- /**
577
- * Overall scan result
578
- */
579
- interface ScanResult {
580
- /** ISO timestamp of the scan */
581
- timestamp: string;
582
- /** Root directory analyzed */
583
- rootDir: string;
584
- /** Number of files processed */
585
- filesAnalyzed: number;
586
- /** Total issues found across all tools */
587
- totalIssues: number;
588
- /** Breakdown of issue counts by type */
589
- issuesByType: Record<string, number>;
590
- /** Breakdown of issue counts by severity */
591
- issuesBySeverity: Record<Severity | string, number>;
592
- /** Final calculated AIReady score (0-100) */
593
- score: number;
594
- /** Individual tool outputs */
595
- tools: ToolOutput[];
596
- }
597
- /**
598
- * Cost configuration for business impact analysis
599
- */
600
- interface CostConfig {
601
- /** Price in USD per 1,000 tokens */
602
- pricePer1KTokens: number;
603
- /** Average number of AI queries per developer per day */
604
- queriesPerDevPerDay: number;
605
- /** Total number of developers in the team */
606
- developerCount: number;
607
- /** Working days per month */
608
- daysPerMonth: number;
609
- }
610
- /**
611
- * Productivity impact metrics
612
- */
613
- interface ProductivityImpact {
614
- /** Estimated developer hours wasted on quality issues */
615
- totalHours: number;
616
- /** Developer hourly rate used for calculation */
617
- hourlyRate: number;
618
- /** Estimated total monthly cost of productivity loss */
619
- totalCost: number;
620
- /** Impact breakdown by severity */
621
- bySeverity: Record<Severity | string, {
622
- /** Hours lost for this severity level */
623
- hours: number;
624
- /** Cost associated with these hours */
625
- cost: number;
626
- }>;
627
- }
628
- /**
629
- * AI suggestion acceptance prediction
630
- */
631
- interface AcceptancePrediction {
632
- /** Predicted acceptance rate (0-1) */
633
- rate: number;
634
- /** Confidence level of the prediction (0-1) */
635
- confidence: number;
636
- /** Qualitative factors influencing the prediction */
637
- factors: Array<{
638
- /** Factor name */
639
- name: string;
640
- /** Impact weight (-100 to 100) */
641
- impact: number;
642
- }>;
643
- }
644
- /**
645
- * Technical Value Chain summary
646
- */
647
- interface TechnicalValueChain {
648
- /** Overall business value score for the component */
649
- score?: number;
650
- /** Business logic density (e.g. core vs boilerplate) */
651
- density?: number;
652
- /** Data access layer complexity */
653
- complexity?: number;
654
- /** API surface area and exposure */
655
- surface?: number;
656
- /** Issue type associated with this chain */
657
- issueType?: string;
658
- /** Name of the leading technical metric */
659
- technicalMetric?: string;
660
- /** Raw value of the technical metric */
661
- technicalValue?: number;
662
- /** Impact on AI agents */
663
- aiImpact?: {
664
- description: string;
665
- scoreImpact: number;
666
- };
667
- /** Impact on developer experience */
668
- developerImpact?: {
669
- description: string;
670
- productivityLoss: number;
671
- };
672
- /** Predicted business outcome */
673
- businessOutcome?: {
674
- directCost: number;
675
- opportunityCost: number;
676
- riskLevel: 'low' | 'moderate' | 'high' | 'critical';
677
- };
678
- }
679
- /**
680
- * Compatibility alias
681
- */
682
- type TechnicalValueChainSummary = TechnicalValueChain;
683
- /**
684
- * Code comprehension difficulty metrics
685
- */
686
- interface ComprehensionDifficulty {
687
- /** Overall difficulty score (0-100) */
688
- score: number;
689
- /** Descriptive rating of difficulty */
690
- rating: 'trivial' | 'easy' | 'moderate' | 'difficult' | 'expert';
691
- /** Ratios and factors contributing to difficulty */
692
- factors: {
693
- /** Ratio of file tokens to model context limit */
694
- budgetRatio: number;
695
- /** Relative depth of dependency tree */
696
- depthRatio: number;
697
- /** Level of logical fragmentation */
698
- fragmentation: number;
699
- };
700
- }
701
- /**
702
- * Business impact metrics (v0.10+)
703
- */
704
- interface BusinessMetrics {
705
- /** Predicted monthly cost of technical waste */
706
- estimatedMonthlyCost?: number;
707
- /** Estimated developer hours lost per month */
708
- estimatedDeveloperHours?: number;
709
- /** Predicted rate of AI suggestion acceptance */
710
- aiAcceptanceRate?: number;
711
- /** Overall AI readiness score */
712
- aiReadinessScore?: number;
713
- }
714
- /**
715
- * Canonical file content structure
716
- */
717
- interface FileContent {
718
- /** Absolute or relative file path */
719
- file: string;
720
- /** UTF-8 file content */
721
- content: string;
722
- }
723
- /**
724
- * Constants for tests and configuration stability
725
- */
726
- declare const GLOBAL_INFRA_OPTIONS: string[];
727
- declare const GLOBAL_SCAN_OPTIONS: string[];
728
- declare const COMMON_FINE_TUNING_OPTIONS: string[];
729
-
730
- /**
731
- * Analysis issue mapping to graph
732
- */
733
- type GraphIssueSeverity = Severity;
734
- /**
735
- * Graph metadata
736
- */
737
- interface GraphMetadata {
738
- /** Project name if available */
739
- projectName?: string;
740
- /** ISO timestamp of analysis */
741
- timestamp: string;
742
- /** Total number of files in the graph */
743
- totalFiles: number;
744
- /** Total dependency edges in the graph */
745
- totalDependencies: number;
746
- /** Types of analysis performed */
747
- analysisTypes: string[];
748
- /** Count of critical issues in graph nodes */
749
- criticalIssues: number;
750
- /** Count of major issues in graph nodes */
751
- majorIssues: number;
752
- /** Count of minor issues in graph nodes */
753
- minorIssues: number;
754
- /** Count of informational issues in graph nodes */
755
- infoIssues: number;
756
- /** AI token budget unit economics (v0.13+) */
757
- tokenBudget?: TokenBudget;
758
- /** Execution time in milliseconds */
759
- executionTime?: number;
760
- }
761
-
762
- /**
763
- * Language-agnostic AST and parser interfaces for multi-language support
764
- *
765
- * This module provides abstractions for parsing different programming languages
766
- * while maintaining a consistent interface for analysis tools.
767
- */
768
-
769
- /**
770
- * Supported programming languages
771
- */
772
- declare enum Language {
773
- TypeScript = "typescript",
774
- JavaScript = "javascript",
775
- Python = "python",
776
- Java = "java",
777
- Go = "go",
778
- Rust = "rust",
779
- CSharp = "csharp"
780
- }
781
- /**
782
- * File extensions mapped to languages
783
- */
784
- declare const LANGUAGE_EXTENSIONS: Record<string, Language>;
785
- /**
786
- * Common AST node type (language-agnostic)
787
- */
788
- interface CommonASTNode {
789
- type: string;
790
- loc?: SourceRange;
791
- raw?: any;
792
- }
793
- /**
794
- * Export information (function, class, variable, etc.)
795
- */
796
- interface ExportInfo {
797
- name: string;
798
- type: 'function' | 'class' | 'const' | 'type' | 'interface' | 'default' | 'variable';
799
- loc?: SourceRange;
800
- /** Imports used within this export */
801
- imports?: string[];
802
- /** Dependencies on other exports in same file */
803
- dependencies?: string[];
804
- /** TypeScript types referenced */
805
- typeReferences?: string[];
806
- /** For methods: parent class name */
807
- parentClass?: string;
808
- /** For functions/methods: parameters */
809
- parameters?: string[];
810
- /** For classes/interfaces: number of methods and properties */
811
- methodCount?: number;
812
- propertyCount?: number;
813
- /** Visibility (public, private, protected) */
814
- visibility?: 'public' | 'private' | 'protected';
815
- /** Whether the value is a primitive (string, number, boolean) */
816
- isPrimitive?: boolean;
817
- /** Behavioral metadata for advanced metrics */
818
- isPure?: boolean;
819
- hasSideEffects?: boolean;
820
- /** Associated documentation */
821
- documentation?: {
822
- content: string;
823
- type: 'jsdoc' | 'docstring' | 'comment' | 'xml-doc';
824
- loc?: SourceRange;
825
- isStale?: boolean;
826
- };
827
- }
828
- /**
829
- * Parse result containing exports and imports
830
- */
831
- interface ParseResult {
832
- exports: ExportInfo[];
833
- imports: FileImport[];
834
- /** Language of the parsed file */
835
- language: Language;
836
- /** Any parse warnings (non-fatal) */
837
- warnings?: string[];
838
- }
839
- /**
840
- * Naming convention rules per language
841
- */
842
- interface NamingConvention {
843
- /** Allowed variable naming patterns */
844
- variablePattern: RegExp;
845
- /** Allowed function naming patterns */
846
- functionPattern: RegExp;
847
- /** Allowed class naming patterns */
848
- classPattern: RegExp;
849
- /** Allowed constant naming patterns */
850
- constantPattern: RegExp;
851
- /** Allowed type naming patterns */
852
- typePattern?: RegExp;
853
- /** Allowed interface naming patterns */
854
- interfacePattern?: RegExp;
855
- /** Language-specific exceptions (e.g., __init__ in Python) */
856
- exceptions?: string[];
857
- }
858
- /**
859
- * Language-specific configuration
860
- */
861
- interface LanguageConfig {
862
- language: Language;
863
- /** File extensions for this language */
864
- extensions: string[];
865
- /** Naming conventions */
866
- namingConventions: NamingConvention;
867
- /** Common abbreviations allowed */
868
- allowedAbbreviations?: string[];
869
- /** Language-specific keywords to ignore */
870
- keywords?: string[];
871
- }
872
- /**
873
- * Abstract interface for language parsers
874
- * Each language implementation should implement this interface
875
- */
876
- interface LanguageParser {
877
- /** Language this parser handles */
878
- readonly language: Language;
879
- /** File extensions this parser supports */
880
- readonly extensions: string[];
881
- /**
882
- * Parse source code and extract structure
883
- * @param code - Source code to parse
884
- * @param filePath - Path to the file (for context)
885
- * @returns Parse result with exports and imports
886
- * @throws ParseError if code has syntax errors
887
- */
888
- parse(code: string, filePath: string): ParseResult;
889
- /**
890
- * Get naming conventions for this language
891
- */
892
- getNamingConventions(): NamingConvention;
893
- /**
894
- * Initialize the parser (e.g. load WASM)
895
- */
896
- initialize(): Promise<void>;
897
- /**
898
- * Check if this parser can handle a file
899
- * @param filePath - File path to check
900
- */
901
- canHandle(filePath: string): boolean;
902
- /**
903
- * Get the raw AST for advanced querying
904
- * @param code - Source code to parse
905
- * @param filePath - Path to the file
906
- */
907
- getAST(code: string, filePath: string): Promise<any>;
908
- /**
909
- * Analyze structural metadata for a node (e.g. purity)
910
- * @param node - The AST node to analyze (language specific)
911
- * @param code - The original source code
912
- */
913
- analyzeMetadata(node: any, code: string): Partial<ExportInfo>;
914
- }
915
- /**
916
- * Parser error with location information
917
- */
918
- declare class ParseError extends Error {
919
- readonly filePath: string;
920
- readonly loc?: SourceLocation | undefined;
921
- constructor(message: string, filePath: string, loc?: SourceLocation | undefined);
922
- }
923
- /**
924
- * Statistics about parsed code
925
- */
926
- interface ParseStatistics {
927
- language: Language;
928
- filesAnalyzed: number;
929
- totalExports: number;
930
- totalImports: number;
931
- parseErrors: number;
932
- warnings: number;
933
- }
934
-
935
- /**
936
- * Priority levels for actionable recommendations.
937
- * Used to sort and display fixes for the user.
938
- */
939
- declare enum RecommendationPriority {
940
- High = "high",
941
- Medium = "medium",
942
- Low = "low"
943
- }
944
- /**
945
- * AI Readiness Rating categories.
946
- * Provides a high-level qualitative assessment based on the numeric score.
947
- */
948
- declare enum ReadinessRating {
949
- Excellent = "Excellent",
950
- Good = "Good",
951
- Fair = "Fair",
952
- NeedsWork = "Needs Work",
953
- Critical = "Critical"
954
- }
955
- /**
956
- * Output structure for a single tool's scoring analysis.
957
- */
958
- interface ToolScoringOutput {
959
- /** Unique tool identifier (e.g., "pattern-detect") */
960
- toolName: string;
961
- /** Normalized 0-100 score for this tool */
962
- score: number;
963
- /** AI token budget unit economics (v0.13+) */
964
- tokenBudget?: TokenBudget;
965
- /** Raw metrics used to calculate the score */
966
- rawMetrics: Record<string, any>;
967
- /** Factors that influenced the score */
968
- factors: Array<{
969
- /** Human-readable name of the factor */
970
- name: string;
971
- /** Points contribution (positive or negative) */
972
- impact: number;
973
- /** Explanation of the factor's impact */
974
- description: string;
975
- }>;
976
- /** Actionable recommendations with estimated impact */
977
- recommendations: Array<{
978
- /** The recommended action to take */
979
- action: string;
980
- /** Potential points increase if implemented */
981
- estimatedImpact: number;
982
- /** Implementation priority */
983
- priority: RecommendationPriority | 'high' | 'medium' | 'low';
984
- }>;
985
- }
986
- /**
987
- * Consolidated scoring result across all tools.
988
- */
989
- interface ScoringResult {
990
- /** Overall AI Readiness Score (0-100) */
991
- overall: number;
992
- /** Rating category representing the overall readiness */
993
- rating: ReadinessRating | string;
994
- /** Timestamp of score calculation */
995
- timestamp: string;
996
- /** Tools that contributed to this score */
997
- toolsUsed: string[];
998
- /** Breakdown by individual tool */
999
- breakdown: ToolScoringOutput[];
1000
- /** Internal calculation details for transparency */
1001
- calculation: {
1002
- /** Textual representation of the calculation formula */
1003
- formula: string;
1004
- /** Weights applied to each tool */
1005
- weights: Record<string, number>;
1006
- /** Simplified normalized formula output */
1007
- normalized: string;
1008
- };
1009
- }
1010
- /**
1011
- * Configuration options for the scoring system.
1012
- */
1013
- interface ScoringConfig {
1014
- /** Minimum passing score (CLI will exit with non-zero if below) */
1015
- threshold?: number;
1016
- /** Whether to show the detailed tool-by-tool breakdown */
1017
- showBreakdown?: boolean;
1018
- /** Path to a baseline report JSON for trend comparison */
1019
- compareBaseline?: string;
1020
- /** Target file path to persist the calculated score */
1021
- saveTo?: string;
1022
- }
1023
- /**
1024
- * Default weights for known tools.
1025
- */
1026
- declare const DEFAULT_TOOL_WEIGHTS: Record<string, number>;
1027
- /**
1028
- * Tool name normalization map.
1029
- * Maps common shorthands and aliases to canonical tool IDs.
1030
- */
1031
- declare const TOOL_NAME_MAP: Record<string, string>;
1032
- /**
1033
- * Model context tiers for context-aware threshold calibration.
1034
- */
1035
- type ModelContextTier = 'compact' | 'standard' | 'extended' | 'frontier';
1036
- /**
1037
- * Scoring profiles for project-aware weighting adjustments.
1038
- *
1039
- * Different profiles prioritize different aspects of AI readiness based
1040
- * on the project's primary focus.
1041
- */
1042
- declare enum ScoringProfile {
1043
- Default = "default",
1044
- Agentic = "agentic",// Focus on AI agent navigation and signal
1045
- Logic = "logic",// Focus on testability and complexity
1046
- UI = "ui",// Focus on consistency and context
1047
- Cost = "cost",// Focus on token waste reduction
1048
- Security = "security"
1049
- }
1050
- /**
1051
- * Project-type-aware tool weight presets for different profiles.
1052
- */
1053
- declare const SCORING_PROFILES: Record<ScoringProfile, Record<string, number>>;
1054
- /**
1055
- * Context budget thresholds per tier.
1056
- *
1057
- * "Ideal" represents target state. "Critical" represents failure state.
1058
- */
1059
- declare const CONTEXT_TIER_THRESHOLDS: Record<ModelContextTier, {
1060
- idealTokens: number;
1061
- criticalTokens: number;
1062
- idealDepth: number;
1063
- }>;
1064
- /**
1065
- * Project-size-adjusted minimum thresholds.
1066
- *
1067
- * Larger projects have slightly lower thresholds due to inherent complexity.
1068
- */
1069
- declare const SIZE_ADJUSTED_THRESHOLDS: Record<string, number>;
1070
- /**
1071
- * Determine project size tier based on the total number of files.
1072
- *
1073
- * @param fileCount Total number of files in the project
1074
- * @returns A string identifier for the project size tier (xs, small, medium, large, enterprise)
1075
- */
1076
- declare function getProjectSizeTier(fileCount: number): keyof typeof SIZE_ADJUSTED_THRESHOLDS;
1077
- /**
1078
- * Calculate the recommended minimum AI readiness threshold for a project.
1079
- *
1080
- * Threshold is adjusted based on project size and the model context tier targeted.
1081
- *
1082
- * @param fileCount Total number of files in the project
1083
- * @param modelTier The model context tier targeted (compact, standard, extended, frontier)
1084
- * @returns The recommended score threshold (0-100)
1085
- */
1086
- declare function getRecommendedThreshold(fileCount: number, modelTier?: ModelContextTier): number;
1087
- /**
1088
- * Normalize a tool name from a shorthand or alias to its canonical ID.
1089
- *
1090
- * @param shortName The tool shorthand or alias name
1091
- * @returns The canonical tool ID
1092
- */
1093
- declare function normalizeToolName(shortName: string): string;
1094
- /**
1095
- * Retrieve the weight for a specific tool, considering overrides and profiles.
1096
- *
1097
- * @param toolName The canonical tool ID
1098
- * @param toolConfig Optional configuration for the tool containing a weight
1099
- * @param cliOverride Optional weight override from the CLI
1100
- * @param profile Optional scoring profile to use
1101
- * @returns The weight to be used for this tool in overall scoring
1102
- */
1103
- declare function getToolWeight(toolName: string, toolConfig?: {
1104
- scoreWeight?: number;
1105
- }, cliOverride?: number, profile?: ScoringProfile): number;
1106
- /**
1107
- * Parse a comma-separated weight string from the CLI.
1108
- *
1109
- * Format: "tool1:weight1,tool2:weight2"
1110
- *
1111
- * @param weightStr The raw weight string from the CLI or config
1112
- * @returns A Map of tool IDs to their parsed weights
1113
- */
1114
- declare function parseWeightString(weightStr?: string): Map<string, number>;
1115
- /**
1116
- * Calculate the overall consolidated AI Readiness Score.
1117
- *
1118
- * Orchestrates the weighted aggregation of all tool individual scores.
1119
- *
1120
- * @param toolOutputs Map of tool IDs to their individual scoring outputs
1121
- * @param config Optional global configuration
1122
- * @param cliWeights Optional weight overrides from the CLI
1123
- * @returns Consolidate ScoringResult including overall score and rating
1124
- */
1125
- declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
1126
- /**
1127
- * Convert numeric score to qualitative rating category.
1128
- *
1129
- * @param score The numerical AI readiness score (0-100)
1130
- * @returns The corresponding ReadinessRating category
1131
- */
1132
- declare function getRating(score: number): ReadinessRating;
1133
- /**
1134
- * Get a URL-friendly slug representing the rating category.
1135
- *
1136
- * @param score The numerical score
1137
- * @returns A kebab-case string (e.g., 'excellent', 'needs-work')
1138
- */
1139
- declare function getRatingSlug(score: number): string;
1140
- /**
1141
- * Convert score to rating with project-size and model awareness.
1142
- *
1143
- * Provides a more accurate rating by considering the target model's limits.
1144
- *
1145
- * @param score The numerical AI readiness score
1146
- * @param fileCount Total number of files in the project
1147
- * @param modelTier The model context tier being targeted
1148
- * @returns The size-aware ReadinessRating
1149
- */
1150
- declare function getRatingWithContext(score: number, fileCount: number, modelTier?: ModelContextTier): ReadinessRating;
1151
- /**
1152
- * Get display properties (emoji and color) for a given rating.
1153
- *
1154
- * @param rating The readiness rating category
1155
- * @returns Object containing display emoji and color string
1156
- */
1157
- declare function getRatingDisplay(rating: ReadinessRating | string): {
1158
- emoji: string;
1159
- color: string;
1160
- };
1161
- /**
1162
- * Format overall score for compact console display.
1163
- *
1164
- * @param result The consolidated scoring result
1165
- * @returns Formatted string (e.g., "85/100 (Good) 👍")
1166
- */
1167
- declare function formatScore(result: ScoringResult): string;
1168
- /**
1169
- * Format detailed tool score for expanded console display.
1170
- *
1171
- * Includes breakdown of influencing factors and actionable recommendations.
1172
- *
1173
- * @param output The scoring output for a single tool
1174
- * @returns Multi-line formatted string for console output
1175
- */
1176
- declare function formatToolScore(output: ToolScoringOutput): string;
1177
-
1178
- /**
1179
- * Visualization utilities for generating HTML from graph data
1180
- */
1181
-
1182
- /**
1183
- * Generate HTML visualization from graph data
1184
- * Creates an interactive HTML page with a canvas-based graph visualization
1185
- *
1186
- * @param graph - The graph data to visualize
1187
- * @returns HTML string representing the interactive visualization
1188
- */
1189
- declare function generateHTML(graph: GraphData): string;
1190
-
1191
- 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 };