@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
|
@@ -120,7 +120,7 @@ interface GraphData {
|
|
|
120
120
|
nodeIds: string[];
|
|
121
121
|
message: string;
|
|
122
122
|
}[];
|
|
123
|
-
metadata?:
|
|
123
|
+
metadata?: GraphMetadata$1;
|
|
124
124
|
/** Whether the graph was truncated due to size limits */
|
|
125
125
|
truncated?: {
|
|
126
126
|
nodes: boolean;
|
|
@@ -131,6 +131,29 @@ interface GraphData {
|
|
|
131
131
|
edgeLimit?: number;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Metadata about the graph
|
|
136
|
+
*/
|
|
137
|
+
interface GraphMetadata$1 {
|
|
138
|
+
projectName?: string;
|
|
139
|
+
timestamp: string;
|
|
140
|
+
totalFiles: number;
|
|
141
|
+
totalDependencies: number;
|
|
142
|
+
analysisTypes: string[];
|
|
143
|
+
totalLinesOfCode?: number;
|
|
144
|
+
totalTokenCost?: number;
|
|
145
|
+
averageComplexity?: number;
|
|
146
|
+
criticalIssues: number;
|
|
147
|
+
majorIssues: number;
|
|
148
|
+
minorIssues: number;
|
|
149
|
+
infoIssues: number;
|
|
150
|
+
estimatedMonthlyCost?: number;
|
|
151
|
+
estimatedDeveloperHours?: number;
|
|
152
|
+
aiAcceptanceRate?: number;
|
|
153
|
+
aiReadinessScore?: number;
|
|
154
|
+
/** AI token budget unit economics (v0.13+) */
|
|
155
|
+
tokenBudget?: any;
|
|
156
|
+
}
|
|
134
157
|
|
|
135
158
|
/**
|
|
136
159
|
* Lead Source identifiers.
|
|
@@ -959,14 +982,9 @@ interface ParseStatistics {
|
|
|
959
982
|
}
|
|
960
983
|
|
|
961
984
|
/**
|
|
962
|
-
*
|
|
963
|
-
*
|
|
985
|
+
* Shared rating helper functions for scoring and display.
|
|
986
|
+
* Extracted to eliminate duplication between scoring.ts and CLI output modules.
|
|
964
987
|
*/
|
|
965
|
-
declare enum RecommendationPriority {
|
|
966
|
-
High = "high",
|
|
967
|
-
Medium = "medium",
|
|
968
|
-
Low = "low"
|
|
969
|
-
}
|
|
970
988
|
/**
|
|
971
989
|
* AI Readiness Rating categories.
|
|
972
990
|
* Provides a high-level qualitative assessment based on the numeric score.
|
|
@@ -978,6 +996,69 @@ declare enum ReadinessRating {
|
|
|
978
996
|
NeedsWork = "Needs Work",
|
|
979
997
|
Critical = "Critical"
|
|
980
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* Metadata for a given score range.
|
|
1001
|
+
*/
|
|
1002
|
+
interface RatingMetadata {
|
|
1003
|
+
label: string;
|
|
1004
|
+
slug: string;
|
|
1005
|
+
emoji: string;
|
|
1006
|
+
rating: ReadinessRating;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Get all metadata for a specific score.
|
|
1010
|
+
* Unified to remove structural duplication.
|
|
1011
|
+
*
|
|
1012
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1013
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
1014
|
+
*/
|
|
1015
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
1016
|
+
/**
|
|
1017
|
+
* Get rating label from score
|
|
1018
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1019
|
+
* @returns Human-readable rating label
|
|
1020
|
+
*/
|
|
1021
|
+
declare function getRatingLabel(score: number): string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Get rating slug from score (URL-friendly)
|
|
1024
|
+
* @param score The numerical score
|
|
1025
|
+
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1026
|
+
*/
|
|
1027
|
+
declare function getRatingSlug(score: number): string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Get rating emoji from score
|
|
1030
|
+
* @param score The numerical score
|
|
1031
|
+
* @returns Emoji string for display
|
|
1032
|
+
*/
|
|
1033
|
+
declare function getRatingEmoji(score: number): string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Get tool emoji from score (alias for getRatingEmoji)
|
|
1036
|
+
* @param score The numerical score
|
|
1037
|
+
* @returns Emoji string for display
|
|
1038
|
+
*/
|
|
1039
|
+
declare function getToolEmoji(score: number): string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Get priority icon from priority level
|
|
1042
|
+
* @param priority Priority level string
|
|
1043
|
+
* @returns Emoji string for display
|
|
1044
|
+
*/
|
|
1045
|
+
declare function getPriorityIcon(priority: string): string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Convert numeric score to ReadinessRating enum
|
|
1048
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1049
|
+
* @returns The corresponding ReadinessRating category
|
|
1050
|
+
*/
|
|
1051
|
+
declare function getRating(score: number): ReadinessRating;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Priority levels for actionable recommendations.
|
|
1055
|
+
* Used to sort and display fixes for the user.
|
|
1056
|
+
*/
|
|
1057
|
+
declare enum RecommendationPriority {
|
|
1058
|
+
High = "high",
|
|
1059
|
+
Medium = "medium",
|
|
1060
|
+
Low = "low"
|
|
1061
|
+
}
|
|
981
1062
|
/**
|
|
982
1063
|
* Output structure for a single tool's scoring analysis.
|
|
983
1064
|
*/
|
|
@@ -1149,20 +1230,6 @@ declare function parseWeightString(weightStr?: string): Map<string, number>;
|
|
|
1149
1230
|
* @returns Consolidate ScoringResult including overall score and rating
|
|
1150
1231
|
*/
|
|
1151
1232
|
declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
|
|
1152
|
-
/**
|
|
1153
|
-
* Convert numeric score to qualitative rating category.
|
|
1154
|
-
*
|
|
1155
|
-
* @param score The numerical AI readiness score (0-100)
|
|
1156
|
-
* @returns The corresponding ReadinessRating category
|
|
1157
|
-
*/
|
|
1158
|
-
declare function getRating(score: number): ReadinessRating;
|
|
1159
|
-
/**
|
|
1160
|
-
* Get a URL-friendly slug representing the rating category.
|
|
1161
|
-
*
|
|
1162
|
-
* @param score The numerical score
|
|
1163
|
-
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1164
|
-
*/
|
|
1165
|
-
declare function getRatingSlug(score: number): string;
|
|
1166
1233
|
/**
|
|
1167
1234
|
* Convert score to rating with project-size and model awareness.
|
|
1168
1235
|
*
|
|
@@ -1214,4 +1281,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1214
1281
|
*/
|
|
1215
1282
|
declare function generateHTML(graph: GraphData): string;
|
|
1216
1283
|
|
|
1217
|
-
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,
|
|
1284
|
+
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, 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, getPriorityIcon as ay, getProjectSizeTier 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 };
|
|
@@ -120,7 +120,7 @@ interface GraphData {
|
|
|
120
120
|
nodeIds: string[];
|
|
121
121
|
message: string;
|
|
122
122
|
}[];
|
|
123
|
-
metadata?:
|
|
123
|
+
metadata?: GraphMetadata$1;
|
|
124
124
|
/** Whether the graph was truncated due to size limits */
|
|
125
125
|
truncated?: {
|
|
126
126
|
nodes: boolean;
|
|
@@ -131,6 +131,29 @@ interface GraphData {
|
|
|
131
131
|
edgeLimit?: number;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Metadata about the graph
|
|
136
|
+
*/
|
|
137
|
+
interface GraphMetadata$1 {
|
|
138
|
+
projectName?: string;
|
|
139
|
+
timestamp: string;
|
|
140
|
+
totalFiles: number;
|
|
141
|
+
totalDependencies: number;
|
|
142
|
+
analysisTypes: string[];
|
|
143
|
+
totalLinesOfCode?: number;
|
|
144
|
+
totalTokenCost?: number;
|
|
145
|
+
averageComplexity?: number;
|
|
146
|
+
criticalIssues: number;
|
|
147
|
+
majorIssues: number;
|
|
148
|
+
minorIssues: number;
|
|
149
|
+
infoIssues: number;
|
|
150
|
+
estimatedMonthlyCost?: number;
|
|
151
|
+
estimatedDeveloperHours?: number;
|
|
152
|
+
aiAcceptanceRate?: number;
|
|
153
|
+
aiReadinessScore?: number;
|
|
154
|
+
/** AI token budget unit economics (v0.13+) */
|
|
155
|
+
tokenBudget?: any;
|
|
156
|
+
}
|
|
134
157
|
|
|
135
158
|
/**
|
|
136
159
|
* Lead Source identifiers.
|
|
@@ -959,14 +982,9 @@ interface ParseStatistics {
|
|
|
959
982
|
}
|
|
960
983
|
|
|
961
984
|
/**
|
|
962
|
-
*
|
|
963
|
-
*
|
|
985
|
+
* Shared rating helper functions for scoring and display.
|
|
986
|
+
* Extracted to eliminate duplication between scoring.ts and CLI output modules.
|
|
964
987
|
*/
|
|
965
|
-
declare enum RecommendationPriority {
|
|
966
|
-
High = "high",
|
|
967
|
-
Medium = "medium",
|
|
968
|
-
Low = "low"
|
|
969
|
-
}
|
|
970
988
|
/**
|
|
971
989
|
* AI Readiness Rating categories.
|
|
972
990
|
* Provides a high-level qualitative assessment based on the numeric score.
|
|
@@ -978,6 +996,69 @@ declare enum ReadinessRating {
|
|
|
978
996
|
NeedsWork = "Needs Work",
|
|
979
997
|
Critical = "Critical"
|
|
980
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* Metadata for a given score range.
|
|
1001
|
+
*/
|
|
1002
|
+
interface RatingMetadata {
|
|
1003
|
+
label: string;
|
|
1004
|
+
slug: string;
|
|
1005
|
+
emoji: string;
|
|
1006
|
+
rating: ReadinessRating;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Get all metadata for a specific score.
|
|
1010
|
+
* Unified to remove structural duplication.
|
|
1011
|
+
*
|
|
1012
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1013
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
1014
|
+
*/
|
|
1015
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
1016
|
+
/**
|
|
1017
|
+
* Get rating label from score
|
|
1018
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1019
|
+
* @returns Human-readable rating label
|
|
1020
|
+
*/
|
|
1021
|
+
declare function getRatingLabel(score: number): string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Get rating slug from score (URL-friendly)
|
|
1024
|
+
* @param score The numerical score
|
|
1025
|
+
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1026
|
+
*/
|
|
1027
|
+
declare function getRatingSlug(score: number): string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Get rating emoji from score
|
|
1030
|
+
* @param score The numerical score
|
|
1031
|
+
* @returns Emoji string for display
|
|
1032
|
+
*/
|
|
1033
|
+
declare function getRatingEmoji(score: number): string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Get tool emoji from score (alias for getRatingEmoji)
|
|
1036
|
+
* @param score The numerical score
|
|
1037
|
+
* @returns Emoji string for display
|
|
1038
|
+
*/
|
|
1039
|
+
declare function getToolEmoji(score: number): string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Get priority icon from priority level
|
|
1042
|
+
* @param priority Priority level string
|
|
1043
|
+
* @returns Emoji string for display
|
|
1044
|
+
*/
|
|
1045
|
+
declare function getPriorityIcon(priority: string): string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Convert numeric score to ReadinessRating enum
|
|
1048
|
+
* @param score The numerical AI readiness score (0-100)
|
|
1049
|
+
* @returns The corresponding ReadinessRating category
|
|
1050
|
+
*/
|
|
1051
|
+
declare function getRating(score: number): ReadinessRating;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Priority levels for actionable recommendations.
|
|
1055
|
+
* Used to sort and display fixes for the user.
|
|
1056
|
+
*/
|
|
1057
|
+
declare enum RecommendationPriority {
|
|
1058
|
+
High = "high",
|
|
1059
|
+
Medium = "medium",
|
|
1060
|
+
Low = "low"
|
|
1061
|
+
}
|
|
981
1062
|
/**
|
|
982
1063
|
* Output structure for a single tool's scoring analysis.
|
|
983
1064
|
*/
|
|
@@ -1149,20 +1230,6 @@ declare function parseWeightString(weightStr?: string): Map<string, number>;
|
|
|
1149
1230
|
* @returns Consolidate ScoringResult including overall score and rating
|
|
1150
1231
|
*/
|
|
1151
1232
|
declare function calculateOverallScore(toolOutputs: Map<string, ToolScoringOutput>, config?: any, cliWeights?: Map<string, number>): ScoringResult;
|
|
1152
|
-
/**
|
|
1153
|
-
* Convert numeric score to qualitative rating category.
|
|
1154
|
-
*
|
|
1155
|
-
* @param score The numerical AI readiness score (0-100)
|
|
1156
|
-
* @returns The corresponding ReadinessRating category
|
|
1157
|
-
*/
|
|
1158
|
-
declare function getRating(score: number): ReadinessRating;
|
|
1159
|
-
/**
|
|
1160
|
-
* Get a URL-friendly slug representing the rating category.
|
|
1161
|
-
*
|
|
1162
|
-
* @param score The numerical score
|
|
1163
|
-
* @returns A kebab-case string (e.g., 'excellent', 'needs-work')
|
|
1164
|
-
*/
|
|
1165
|
-
declare function getRatingSlug(score: number): string;
|
|
1166
1233
|
/**
|
|
1167
1234
|
* Convert score to rating with project-size and model awareness.
|
|
1168
1235
|
*
|
|
@@ -1214,4 +1281,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1214
1281
|
*/
|
|
1215
1282
|
declare function generateHTML(graph: GraphData): string;
|
|
1216
1283
|
|
|
1217
|
-
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,
|
|
1284
|
+
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, 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, getPriorityIcon as ay, getProjectSizeTier 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 };
|
|
@@ -973,6 +973,23 @@ declare enum ReadinessRating {
|
|
|
973
973
|
NeedsWork = "Needs Work",
|
|
974
974
|
Critical = "Critical"
|
|
975
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* Metadata for a given score range.
|
|
978
|
+
*/
|
|
979
|
+
interface RatingMetadata {
|
|
980
|
+
label: string;
|
|
981
|
+
slug: string;
|
|
982
|
+
emoji: string;
|
|
983
|
+
rating: ReadinessRating;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Get all metadata for a specific score.
|
|
987
|
+
* Unified to remove structural duplication.
|
|
988
|
+
*
|
|
989
|
+
* @param score The numerical AI readiness score (0-100)
|
|
990
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
991
|
+
*/
|
|
992
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
976
993
|
/**
|
|
977
994
|
* Get rating label from score
|
|
978
995
|
* @param score The numerical AI readiness score (0-100)
|
|
@@ -1241,4 +1258,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1241
1258
|
*/
|
|
1242
1259
|
declare function generateHTML(graph: GraphData): string;
|
|
1243
1260
|
|
|
1244
|
-
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD,
|
|
1261
|
+
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, 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, getPriorityIcon as ay, getProjectSizeTier 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 };
|
|
@@ -973,6 +973,23 @@ declare enum ReadinessRating {
|
|
|
973
973
|
NeedsWork = "Needs Work",
|
|
974
974
|
Critical = "Critical"
|
|
975
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* Metadata for a given score range.
|
|
978
|
+
*/
|
|
979
|
+
interface RatingMetadata {
|
|
980
|
+
label: string;
|
|
981
|
+
slug: string;
|
|
982
|
+
emoji: string;
|
|
983
|
+
rating: ReadinessRating;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Get all metadata for a specific score.
|
|
987
|
+
* Unified to remove structural duplication.
|
|
988
|
+
*
|
|
989
|
+
* @param score The numerical AI readiness score (0-100)
|
|
990
|
+
* @returns Metadata object including label, slug, emoji, and rating category
|
|
991
|
+
*/
|
|
992
|
+
declare function getRatingMetadata(score: number): RatingMetadata;
|
|
976
993
|
/**
|
|
977
994
|
* Get rating label from score
|
|
978
995
|
* @param score The numerical AI readiness score (0-100)
|
|
@@ -1241,4 +1258,4 @@ declare function formatToolScore(output: ToolScoringOutput): string;
|
|
|
1241
1258
|
*/
|
|
1242
1259
|
declare function generateHTML(graph: GraphData): string;
|
|
1243
1260
|
|
|
1244
|
-
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD,
|
|
1261
|
+
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, getRating as aA, getRatingDisplay as aB, getRatingEmoji as aC, getRatingLabel as aD, getRatingMetadata as aE, getRatingSlug as aF, getRatingWithContext as aG, getRecommendedThreshold as aH, getToolEmoji as aI, getToolWeight as aJ, normalizeToolName as aK, parseWeightString as aL, type BaseGraphLink as aM, type BaseGraphNode as aN, 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, getPriorityIcon as ay, getProjectSizeTier 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 };
|
package/dist/client.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema,
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, aN as BaseGraphLink, aO as BaseGraphNode, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as IssueOverlay, U as IssueSchema, V as IssueType, W as IssueTypeSchema, X as LANGUAGE_EXTENSIONS, L as Language, Y as LanguageConfig, l as LanguageParser, Z as Lead, _ as LeadSchema, $ as LeadSource, a0 as LeadSourceSchema, a1 as LeadSubmission, a2 as LeadSubmissionSchema, a3 as Location, a4 as LocationSchema, M as Metrics, a7 as MetricsSchema, f as ModelContextTier, a8 as ModelTier, a9 as ModelTierSchema, N as NamingConvention, aa as ParseError, m as ParseResult, ab as ParseStatistics, P as ProductivityImpact, ad as RecommendationPriority, ae as SCORING_PROFILES, af as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ag as ScanResult, ah as ScoringConfig, ai as ScoringProfile, aj as ScoringResult, d as Severity, ak as SeveritySchema, d as SeverityType, al as SourceLocation, am as SourceRange, a as SpokeOutput, an as SpokeOutputSchema, ao as SpokeSummary, ap as SpokeSummarySchema, aq as TOOL_NAME_MAP, k as TechnicalValueChain, j as TechnicalValueChainSummary, g as TokenBudget, T as ToolName, ar as ToolNameSchema, c as ToolOptions, as as ToolOutput, b as ToolScoringOutput, at as UnifiedReport, au as UnifiedReportSchema, av as calculateOverallScore, aw as formatScore, ax as formatToolScore, ay as generateHTML, aA as getProjectSizeTier, aB as getRating, aC as getRatingDisplay, aG as getRatingSlug, aH as getRatingWithContext, aI as getRecommendedThreshold, aK as getToolWeight, aL as normalizeToolName, aM as parseWeightString } from './client-Bdi4ty0v.mjs';
|
|
2
2
|
import 'zod';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema,
|
|
1
|
+
export { e as AIReadyConfig, o as AIReadyConfigSchema, h as AcceptancePrediction, A as AnalysisResult, q as AnalysisResultSchema, r as AnalysisStatus, s as AnalysisStatusSchema, aN as BaseGraphLink, aO as BaseGraphNode, B as BusinessMetrics, t as COMMON_FINE_TUNING_OPTIONS, u as CONTEXT_TIER_THRESHOLDS, v as CommonASTNode, i as ComprehensionDifficulty, w as Config, C as CostConfig, D as DEFAULT_TOOL_WEIGHTS, n as ExportInfo, x as FRIENDLY_TOOL_NAMES, y as FileContent, G as GLOBAL_INFRA_OPTIONS, z as GLOBAL_SCAN_OPTIONS, H as GraphData, J as GraphEdge, K as GraphIssueSeverity, O as GraphMetadata, Q as GraphNode, I as Issue, R as IssueOverlay, U as IssueSchema, V as IssueType, W as IssueTypeSchema, X as LANGUAGE_EXTENSIONS, L as Language, Y as LanguageConfig, l as LanguageParser, Z as Lead, _ as LeadSchema, $ as LeadSource, a0 as LeadSourceSchema, a1 as LeadSubmission, a2 as LeadSubmissionSchema, a3 as Location, a4 as LocationSchema, M as Metrics, a7 as MetricsSchema, f as ModelContextTier, a8 as ModelTier, a9 as ModelTierSchema, N as NamingConvention, aa as ParseError, m as ParseResult, ab as ParseStatistics, P as ProductivityImpact, ad as RecommendationPriority, ae as SCORING_PROFILES, af as SIZE_ADJUSTED_THRESHOLDS, S as ScanOptions, ag as ScanResult, ah as ScoringConfig, ai as ScoringProfile, aj as ScoringResult, d as Severity, ak as SeveritySchema, d as SeverityType, al as SourceLocation, am as SourceRange, a as SpokeOutput, an as SpokeOutputSchema, ao as SpokeSummary, ap as SpokeSummarySchema, aq as TOOL_NAME_MAP, k as TechnicalValueChain, j as TechnicalValueChainSummary, g as TokenBudget, T as ToolName, ar as ToolNameSchema, c as ToolOptions, as as ToolOutput, b as ToolScoringOutput, at as UnifiedReport, au as UnifiedReportSchema, av as calculateOverallScore, aw as formatScore, ax as formatToolScore, ay as generateHTML, aA as getProjectSizeTier, aB as getRating, aC as getRatingDisplay, aG as getRatingSlug, aH as getRatingWithContext, aI as getRecommendedThreshold, aK as getToolWeight, aL as normalizeToolName, aM as parseWeightString } from './client-Bdi4ty0v.js';
|
|
2
2
|
import 'zod';
|
package/dist/client.js
CHANGED
|
@@ -410,28 +410,62 @@ var ParseError = class extends Error {
|
|
|
410
410
|
};
|
|
411
411
|
|
|
412
412
|
// src/utils/rating-helpers.ts
|
|
413
|
+
function getRatingMetadata(score) {
|
|
414
|
+
if (score >= 90) {
|
|
415
|
+
return {
|
|
416
|
+
label: "Excellent",
|
|
417
|
+
slug: "excellent",
|
|
418
|
+
emoji: "\u2705",
|
|
419
|
+
rating: "Excellent" /* Excellent */
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
if (score >= 75) {
|
|
423
|
+
return {
|
|
424
|
+
label: "Good",
|
|
425
|
+
slug: "good",
|
|
426
|
+
emoji: "\u{1F44D}",
|
|
427
|
+
rating: "Good" /* Good */
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
if (score >= 60) {
|
|
431
|
+
return {
|
|
432
|
+
label: "Fair",
|
|
433
|
+
slug: "fair",
|
|
434
|
+
emoji: "\u{1F44C}",
|
|
435
|
+
rating: "Fair" /* Fair */
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
if (score >= 40) {
|
|
439
|
+
return {
|
|
440
|
+
label: "Needs Work",
|
|
441
|
+
slug: "needs-work",
|
|
442
|
+
emoji: "\u{1F528}",
|
|
443
|
+
rating: "Needs Work" /* NeedsWork */
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
return {
|
|
447
|
+
label: "Critical",
|
|
448
|
+
slug: "critical",
|
|
449
|
+
emoji: "\u{1F6A8}",
|
|
450
|
+
rating: "Critical" /* Critical */
|
|
451
|
+
};
|
|
452
|
+
}
|
|
413
453
|
function getRatingSlug(score) {
|
|
414
|
-
|
|
415
|
-
if (score >= 75) return "good";
|
|
416
|
-
if (score >= 60) return "fair";
|
|
417
|
-
if (score >= 40) return "needs-work";
|
|
418
|
-
return "critical";
|
|
454
|
+
return getRatingMetadata(score).slug;
|
|
419
455
|
}
|
|
420
456
|
function getRating(score) {
|
|
421
|
-
|
|
422
|
-
if (score >= 75) return "Good" /* Good */;
|
|
423
|
-
if (score >= 60) return "Fair" /* Fair */;
|
|
424
|
-
if (score >= 40) return "Needs Work" /* NeedsWork */;
|
|
425
|
-
return "Critical" /* Critical */;
|
|
457
|
+
return getRatingMetadata(score).rating;
|
|
426
458
|
}
|
|
427
459
|
|
|
428
|
-
// src/scoring.ts
|
|
460
|
+
// src/scoring-types.ts
|
|
429
461
|
var RecommendationPriority = /* @__PURE__ */ ((RecommendationPriority2) => {
|
|
430
462
|
RecommendationPriority2["High"] = "high";
|
|
431
463
|
RecommendationPriority2["Medium"] = "medium";
|
|
432
464
|
RecommendationPriority2["Low"] = "low";
|
|
433
465
|
return RecommendationPriority2;
|
|
434
466
|
})(RecommendationPriority || {});
|
|
467
|
+
|
|
468
|
+
// src/scoring.ts
|
|
435
469
|
var DEFAULT_TOOL_WEIGHTS = {
|
|
436
470
|
["pattern-detect" /* PatternDetect */]: 22,
|
|
437
471
|
["context-analyzer" /* ContextAnalyzer */]: 19,
|
|
@@ -592,8 +626,8 @@ function calculateOverallScore(toolOutputs, config, cliWeights) {
|
|
|
592
626
|
const rating = getRating(overall);
|
|
593
627
|
const formulaParts = Array.from(toolOutputs.entries()).map(
|
|
594
628
|
([name, output]) => {
|
|
595
|
-
const
|
|
596
|
-
return `(${output.score} \xD7 ${
|
|
629
|
+
const weight = weights.get(name) ?? 5;
|
|
630
|
+
return `(${output.score} \xD7 ${weight})`;
|
|
597
631
|
}
|
|
598
632
|
);
|
|
599
633
|
const formulaStr = `[${formulaParts.join(" + ")}] / ${totalWeight} = ${overall}`;
|
package/dist/client.mjs
CHANGED
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
IssueSchema,
|
|
13
13
|
IssueType,
|
|
14
14
|
IssueTypeSchema,
|
|
15
|
-
LANGUAGE_EXTENSIONS,
|
|
16
|
-
Language,
|
|
17
15
|
LeadSchema,
|
|
18
16
|
LeadSource,
|
|
19
17
|
LeadSourceSchema,
|
|
@@ -22,7 +20,6 @@ import {
|
|
|
22
20
|
MetricsSchema,
|
|
23
21
|
ModelTier,
|
|
24
22
|
ModelTierSchema,
|
|
25
|
-
ParseError,
|
|
26
23
|
RecommendationPriority,
|
|
27
24
|
SCORING_PROFILES,
|
|
28
25
|
SIZE_ADJUSTED_THRESHOLDS,
|
|
@@ -48,7 +45,12 @@ import {
|
|
|
48
45
|
getToolWeight,
|
|
49
46
|
normalizeToolName,
|
|
50
47
|
parseWeightString
|
|
51
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WVNVC2PP.mjs";
|
|
49
|
+
import {
|
|
50
|
+
LANGUAGE_EXTENSIONS,
|
|
51
|
+
Language,
|
|
52
|
+
ParseError
|
|
53
|
+
} from "./chunk-U3IY2CFC.mjs";
|
|
52
54
|
export {
|
|
53
55
|
AIReadyConfigSchema,
|
|
54
56
|
AnalysisResultSchema,
|