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